Lines Matching refs:id
436 struct persist_transport_id *id, *id2;
466 id = malloc(sizeof(*id));
467 if (id == NULL) {
469 __func__, sizeof(*id));
473 bzero(id, sizeof(*id));
479 free(id);
483 error = scsi_parse_transportid(id_str, &id->hdr,
484 &id->alloc_len, error_str, error_str_len);
488 free(id);
494 STAILQ_INSERT_TAIL(&transport_id_list, id, links);
496 id_len += id->alloc_len;
777 STAILQ_FOREACH(id, &transport_id_list, links) {
778 bcopy(id->hdr, bufptr, id->alloc_len);
779 bufptr += id->alloc_len;
820 id = STAILQ_FIRST(&transport_id_list);
825 if (id == NULL) {
831 bcopy(id->hdr, bufptr, id->alloc_len);
832 scsi_ulto4b(id->alloc_len,
960 STAILQ_FOREACH_SAFE(id, &transport_id_list, links, id2) {
961 STAILQ_REMOVE(&transport_id_list, id, persist_transport_id,
963 free(id);