Lines Matching defs:idlp
787 iscsi_addr_list_t *idlp, al_info;
816 idlp = (iscsi_addr_list_t *)calloc(1, addr_list_size);
817 if (idlp == NULL) {
822 idlp->al_vers = ISCSI_INTERFACE_VERSION;
823 idlp->al_in_cnt = al_info.al_out_cnt;
825 if (ioctl(fd, ISCSI_DISCOVERY_ADDR_LIST_GET, idlp) != 0) {
829 free(idlp);
835 idlp->al_out_cnt * sizeof (IMA_OID));
837 free(idlp);
841 (*ppList)->oidCount = idlp->al_out_cnt;
843 for (i = 0; i < idlp->al_out_cnt; i++) {
848 idlp->al_addrs[i].a_oid;
851 free(idlp);
931 iscsi_addr_list_t *idlp, al_info;
966 idlp = (iscsi_addr_list_t *)calloc(1, addr_list_size);
967 if (idlp == NULL) {
972 idlp->al_vers = ISCSI_INTERFACE_VERSION;
973 idlp->al_in_cnt = al_info.al_out_cnt;
976 if (ioctl(fd, ISCSI_DISCOVERY_ADDR_LIST_GET, idlp) != 0) {
980 free(idlp);
985 for (i = 0; i < idlp->al_out_cnt; i++) {
987 idlp->al_addrs[i].a_oid)
989 matched_addr = &(idlp->al_addrs[i]);
1032 free(idlp);
1169 iscsi_addr_list_t *idlp, al_info;
1205 idlp = (iscsi_addr_list_t *)calloc(1, addr_list_size);
1206 if (idlp == NULL) {
1211 idlp->al_vers = ISCSI_INTERFACE_VERSION;
1212 idlp->al_in_cnt = al_info.al_out_cnt;
1215 if (ioctl(fd, ISCSI_DISCOVERY_ADDR_LIST_GET, idlp) != 0) {
1216 free(idlp);
1224 for (i = 0; i < idlp->al_out_cnt; i++) {
1226 idlp->al_addrs[i].a_oid)
1228 matched_addr = &(idlp->al_addrs[i]);
1259 free(idlp);
2491 iscsi_target_list_t *idlp, tl_info;
2521 idlp = (iscsi_target_list_t *)calloc(1, target_list_size);
2522 if (idlp == NULL) {
2527 idlp->tl_vers = ISCSI_INTERFACE_VERSION;
2528 idlp->tl_in_cnt = tl_info.tl_out_cnt;
2529 idlp->tl_tgt_list_type = targetListType;
2532 if (ioctl(fd, ISCSI_TARGET_OID_LIST_GET, idlp) != 0) {
2533 free(idlp);
2542 idlp->tl_out_cnt * sizeof (IMA_OID));
2544 free(idlp);
2548 (*ppList)->oidCount = idlp->tl_out_cnt;
2550 for (i = 0; i < idlp->tl_out_cnt; i++) {
2559 (*ppList)->oids[i].objectSequenceNumber = idlp->tl_oid_list[i];
2562 free(idlp);