Lines Matching defs:idlp
1987 iscsi_target_list_t *idlp;
1993 idlp = (iscsi_target_list_t *)calloc(1, sizeof (iscsi_target_list_t));
1994 if (idlp == NULL) {
1998 idlp->tl_vers = ISCSI_INTERFACE_VERSION;
1999 idlp->tl_in_cnt = idlp->tl_out_cnt = 1;
2000 idlp->tl_tgt_list_type = targetListType;
2007 if (ioctl(fd, ISCSI_TARGET_OID_LIST_GET, idlp) != 0) {
2014 if (idlp->tl_out_cnt > 1) {
2015 out_cnt = idlp->tl_out_cnt;
2016 free(idlp);
2020 idlp = (iscsi_target_list_t *)calloc(1, target_list_size);
2021 if (idlp == NULL) {
2025 idlp->tl_vers = ISCSI_INTERFACE_VERSION;
2026 idlp->tl_in_cnt = out_cnt;
2027 idlp->tl_tgt_list_type = targetListType;
2030 if (ioctl(fd, ISCSI_TARGET_OID_LIST_GET, idlp) != 0) {
2032 free(idlp);
2043 idlp->tl_out_cnt * sizeof (IMA_OID));
2044 (*ppList)->oidCount = idlp->tl_out_cnt;
2045 for (i = 0; i < idlp->tl_out_cnt; i++) {
2048 (*ppList)->oids[i].objectSequenceNumber = idlp->tl_oid_list[i];
2051 free(idlp);
2483 iscsi_addr_list_t *idlp, al_info;
2521 idlp = (iscsi_addr_list_t *)calloc(1, addr_list_size);
2522 if (idlp == NULL) {
2527 idlp->al_vers = ISCSI_INTERFACE_VERSION;
2528 idlp->al_in_cnt = al_info.al_out_cnt;
2531 if (ioctl(fd, ISCSI_DISCOVERY_ADDR_LIST_GET, idlp) != 0) {
2535 free(idlp);
2543 for (i = 0; i < idlp->al_out_cnt; i++) {
2544 insize = idlp->al_addrs[i].a_addr.i_insize;
2549 if (idlp->al_addrs[i].a_addr.i_addr.in4.s_addr ==
2551 matched_addr = &(idlp->al_addrs[i]);
2557 idlp->al_addrs[i].a_addr.i_addr.in6.s6_addr,
2559 matched_addr = &(idlp->al_addrs[i]);
2565 free(idlp);