Home
last modified time | relevance | path

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

/linux-2.4.37.9/drivers/usb/storage/
Dinitializers.c67 struct bulk_cb_wrap *bcb; in usb_stor_ucr61s2b_init() local
71 bcb = kmalloc(sizeof *bcb, in_interrupt() ? GFP_ATOMIC : GFP_NOIO); in usb_stor_ucr61s2b_init()
72 if (!bcb) { in usb_stor_ucr61s2b_init()
77 kfree(bcb); in usb_stor_ucr61s2b_init()
83 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in usb_stor_ucr61s2b_init()
84 bcb->Tag = ++(us->tag); in usb_stor_ucr61s2b_init()
85 bcb->DataTransferLength = cpu_to_le32(0); in usb_stor_ucr61s2b_init()
86 bcb->Flags = bcb->Lun = 0; in usb_stor_ucr61s2b_init()
87 bcb->Length = sizeof(UCR61S2B_INIT); in usb_stor_ucr61s2b_init()
88 memset(bcb->CDB, 0, sizeof(bcb->CDB)); in usb_stor_ucr61s2b_init()
[all …]
Dtransport.c1116 struct bulk_cb_wrap *bcb; in usb_stor_Bulk_transport() local
1123 bcb = kmalloc(sizeof *bcb, in_interrupt() ? GFP_ATOMIC : GFP_NOIO); in usb_stor_Bulk_transport()
1124 if (!bcb) { in usb_stor_Bulk_transport()
1129 kfree(bcb); in usb_stor_Bulk_transport()
1134 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in usb_stor_Bulk_transport()
1135 bcb->DataTransferLength = cpu_to_le32(usb_stor_transfer_length(srb)); in usb_stor_Bulk_transport()
1136 bcb->Flags = srb->sc_data_direction == SCSI_DATA_READ ? 1 << 7 : 0; in usb_stor_Bulk_transport()
1137 bcb->Tag = ++(us->tag); in usb_stor_Bulk_transport()
1138 bcb->Lun = srb->cmnd[1] >> 5; in usb_stor_Bulk_transport()
1140 bcb->Lun |= srb->target << 4; in usb_stor_Bulk_transport()
[all …]
Disd200.c538 struct bulk_cb_wrap bcb; in isd200_Bulk_transport() local
551 bcb.Signature = cpu_to_le32(US_BULK_CB_SIGN); in isd200_Bulk_transport()
552 bcb.DataTransferLength = cpu_to_le32(transfer_amount); in isd200_Bulk_transport()
553 bcb.Flags = srb->sc_data_direction == SCSI_DATA_READ ? 1 << 7 : 0; in isd200_Bulk_transport()
554 bcb.Tag = srb->serial_number; in isd200_Bulk_transport()
555 bcb.Lun = srb->cmnd[1] >> 5; in isd200_Bulk_transport()
557 bcb.Lun |= srb->target << 4; in isd200_Bulk_transport()
559 bcb.Length = AtaCdbLength; in isd200_Bulk_transport()
565 memset(bcb.CDB, 0, sizeof(bcb.CDB)); in isd200_Bulk_transport()
566 memcpy(bcb.CDB, AtaCdb, bcb.Length); in isd200_Bulk_transport()
[all …]