Lines Matching refs:lun

633 	uint_t			lun;  in scsa2usb_attach()  local
707 for (lun = 0; lun < SCSA2USB_MAX_LUNS; lun++) { in scsa2usb_attach()
708 usba_init_list(&scsa2usbp->scsa2usb_waitQ[lun], NULL, in scsa2usb_attach()
967 for (lun = 0; lun < SCSA2USB_MAX_LUNS; lun++) { in scsa2usb_attach()
968 scsa2usbp->scsa2usb_lbasize[lun] = DEV_BSIZE; in scsa2usb_attach()
1345 uint_t lun; in scsa2usb_cleanup() local
1381 for (lun = 0; lun < SCSA2USB_MAX_LUNS; lun++) { in scsa2usb_cleanup()
1382 scsa2usb_flush_waitQ(scsa2usbp, lun, CMD_TRAN_ERR); in scsa2usb_cleanup()
1383 usba_destroy_list(&scsa2usbp->scsa2usb_waitQ[lun]); in scsa2usb_cleanup()
1770 int lun, rval; in scsa2usb_create_luns() local
1806 for (lun = 0; lun < scsa2usbp->scsa2usb_n_luns; lun++) { in scsa2usb_create_luns()
1807 ASSERT(scsa2usbp->scsa2usb_lun_dip[lun] == NULL); in scsa2usb_create_luns()
1810 scsa2usb_do_inquiry(scsa2usbp, 0, lun); in scsa2usb_create_luns()
1812 dtype = scsa2usbp->scsa2usb_lun_inquiry[lun]. in scsa2usb_create_luns()
1816 "dtype[%d]=0x%x", lun, dtype); in scsa2usb_create_luns()
1915 rval = ndi_prop_update_int(DDI_DEV_T_NONE, cdip, "lun", lun); in scsa2usb_create_luns()
2044 uint_t lun; in scsa2usb_panic_callb() local
2073 for (lun = 0; lun < SCSA2USB_MAX_LUNS; lun++) { in scsa2usb_panic_callb()
2074 scsa2usb_flush_waitQ(scsa2usbp, lun, CMD_CMPLT); in scsa2usb_panic_callb()
2294 int lun; in scsa2usb_scsi_tgt_init() local
2295 int t_len = sizeof (lun); in scsa2usb_scsi_tgt_init()
2298 DDI_PROP_DONTPASS|DDI_PROP_CANSLEEP, "lun", (caddr_t)&lun, in scsa2usb_scsi_tgt_init()
2305 "scsa2usb_scsi_tgt_init: %s, lun%d", ddi_driver_name(cdip), lun); in scsa2usb_scsi_tgt_init()
2339 if ((lun >= scsa2usbp->scsa2usb_n_luns) || in scsa2usb_scsi_tgt_init()
2340 (scsa2usbp->scsa2usb_lun_dip[lun] != NULL)) { in scsa2usb_scsi_tgt_init()
2346 scsa2usbp->scsa2usb_lun_dip[lun] = cdip; in scsa2usb_scsi_tgt_init()
2363 int lun; in scsa2usb_scsi_tgt_free() local
2364 int t_len = sizeof (lun); in scsa2usb_scsi_tgt_free()
2373 DDI_PROP_DONTPASS|DDI_PROP_CANSLEEP, "lun", (caddr_t)&lun, in scsa2usb_scsi_tgt_free()
2380 "scsa2usb_scsi_tgt_free: %s lun%d", ddi_driver_name(cdip), lun); in scsa2usb_scsi_tgt_free()
2383 if (lun < scsa2usbp->scsa2usb_n_luns) { in scsa2usb_scsi_tgt_free()
2384 if (scsa2usbp->scsa2usb_lun_dip[lun] == cdip) { in scsa2usb_scsi_tgt_free()
2385 scsa2usbp->scsa2usb_lun_dip[lun] = NULL; in scsa2usb_scsi_tgt_free()
2614 uint_t lun = ap->a_lun; in scsa2usb_scsi_start() local
2664 if (usba_list_entry_count(&scsa2usbp->scsa2usb_waitQ[lun]) > in scsa2usb_scsi_start()
2675 usba_add_to_list(&scsa2usbp->scsa2usb_waitQ[lun], &cmd->cmd_waitQ); in scsa2usb_scsi_start()
2680 usba_list_entry_count(&scsa2usbp->scsa2usb_waitQ[lun]), lun); in scsa2usb_scsi_start()
2692 &scsa2usbp->scsa2usb_waitQ[lun], in scsa2usb_scsi_start()
4064 scsa2usb_transport_request(scsa2usb_state_t *scsa2usbp, uint_t lun) in scsa2usb_transport_request() argument
4072 &scsa2usbp->scsa2usb_waitQ[lun])) == NULL) { in scsa2usb_transport_request()
4179 uint_t lun; in scsa2usb_work_thread() local
4206 for (lun = 0; lun < scsa2usbp->scsa2usb_n_luns; lun++) { in scsa2usb_work_thread()
4207 scsa2usb_transport_request(scsa2usbp, lun); in scsa2usb_work_thread()
4210 for (lun = 0; lun < SCSA2USB_MAX_LUNS; lun++) { in scsa2usb_work_thread()
4212 &scsa2usbp->scsa2usb_waitQ[lun]); in scsa2usb_work_thread()
4250 scsa2usb_flush_waitQ(scsa2usb_state_t *scsa2usbp, uint_t lun, in scsa2usb_flush_waitQ() argument
4259 usba_move_list(&scsa2usbp->scsa2usb_waitQ[lun], &head, in scsa2usb_flush_waitQ()
4281 scsa2usb_do_inquiry(scsa2usb_state_t *scsa2usbp, uint_t target, uint_t lun) in scsa2usb_do_inquiry() argument
4294 &scsa2usbp->scsa2usb_lun_inquiry[lun]); in scsa2usb_do_inquiry()
4303 ap.a_lun = (uchar_t)lun; in scsa2usb_do_inquiry()
4342 &scsa2usbp->scsa2usb_lun_inquiry[lun]); in scsa2usb_do_inquiry()
5467 uint_t lun; in scsa2usb_all_waitQs_empty() local
5469 for (lun = 0; lun < SCSA2USB_MAX_LUNS; lun++) { in scsa2usb_all_waitQs_empty()
5471 &scsa2usbp->scsa2usb_waitQ[lun])) { in scsa2usb_all_waitQs_empty()