Home
last modified time | relevance | path

Searched refs:scsa2usbp (Results 1 – 3 of 3) sorted by relevance

/titanic_41/usr/src/uts/common/io/usb/scsa2usb/
H A Dscsa2usb.c573 scsa2usb_state_t *scsa2usbp = NULL; in scsa2usb_info() local
579 if (((scsa2usbp = ddi_get_soft_state(scsa2usb_statep, in scsa2usb_info()
581 scsa2usbp->scsa2usb_dip) { in scsa2usb_info()
582 *result = scsa2usbp->scsa2usb_dip; in scsa2usb_info()
622 scsa2usb_state_t *scsa2usbp; in scsa2usb_attach() local
654 if ((scsa2usbp = ddi_get_soft_state(scsa2usb_statep, in scsa2usb_attach()
663 scsa2usbp->scsa2usb_dip = dip; in scsa2usb_attach()
664 scsa2usbp->scsa2usb_instance = instance; in scsa2usb_attach()
667 scsa2usbp->scsa2usb_log_handle = log_handle = in scsa2usb_attach()
689 mutex_init(&scsa2usbp->scsa2usb_mutex, NULL, MUTEX_DRIVER, in scsa2usb_attach()
[all …]
H A Dusb_ms_cbi.c151 scsa2usb_cbi_transport(scsa2usb_state_t *scsa2usbp, scsa2usb_cmd_t *cmd) in scsa2usb_cbi_transport() argument
160 USB_DPRINTF_L4(DPRINT_MASK_SCSA, scsa2usbp->scsa2usb_log_handle, in scsa2usb_cbi_transport()
162 ASSERT(mutex_owned(&scsa2usbp->scsa2usb_mutex)); in scsa2usb_cbi_transport()
165 if (!(SCSA2USB_DEVICE_ACCESS_OK(scsa2usbp))) { in scsa2usb_cbi_transport()
180 SCSA2USB_PRINT_CDB(scsa2usbp, cmd); /* print the CDB */ in scsa2usb_cbi_transport()
183 mutex_exit(&scsa2usbp->scsa2usb_mutex); in scsa2usb_cbi_transport()
184 rval = usb_pipe_sync_ctrl_xfer(scsa2usbp->scsa2usb_dip, in scsa2usb_cbi_transport()
185 scsa2usbp->scsa2usb_default_pipe, in scsa2usb_cbi_transport()
189 scsa2usbp->scsa2usb_intfc_num, /* wIndex */ in scsa2usb_cbi_transport()
194 mutex_enter(&scsa2usbp->scsa2usb_mutex); in scsa2usb_cbi_transport()
[all …]
H A Dusb_ms_bulkonly.c196 scsa2usb_bulk_only_transport(scsa2usb_state_t *scsa2usbp, scsa2usb_cmd_t *cmd) in scsa2usb_bulk_only_transport() argument
202 ASSERT(mutex_owned(&scsa2usbp->scsa2usb_mutex)); in scsa2usb_bulk_only_transport()
209 req = scsa2usb_init_bulk_req(scsa2usbp, USB_BULK_CBWCMD_LEN, in scsa2usb_bulk_only_transport()
212 scsa2usb_fill_in_cbw(scsa2usbp, cmd, req->bulk_data); /* Fill CBW */ in scsa2usb_bulk_only_transport()
213 SCSA2USB_PRINT_CDB(scsa2usbp, cmd); /* Print CDB */ in scsa2usb_bulk_only_transport()
216 mutex_exit(&scsa2usbp->scsa2usb_mutex); in scsa2usb_bulk_only_transport()
219 rval = usb_pipe_bulk_xfer(scsa2usbp->scsa2usb_bulkout_pipe, req, in scsa2usb_bulk_only_transport()
221 mutex_enter(&scsa2usbp->scsa2usb_mutex); in scsa2usb_bulk_only_transport()
223 USB_DPRINTF_L4(DPRINT_MASK_SCSA, scsa2usbp->scsa2usb_log_handle, in scsa2usb_bulk_only_transport()
230 scsa2usb_bulk_only_handle_error(scsa2usbp, req); in scsa2usb_bulk_only_transport()
[all …]