Searched refs:bcb (Results 1 - 5 of 5) sorted by relevance

/linux-4.4.14/drivers/usb/storage/
H A Dene_ub6250.c502 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; ene_send_scsi_cmd() local
508 unsigned int transfer_length = bcb->DataTransferLength; ene_send_scsi_cmd()
513 bcb, US_BULK_CB_WRAP_LEN, NULL); ene_send_scsi_cmd()
667 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; sd_scsi_read() local
689 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); sd_scsi_read()
690 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); sd_scsi_read()
691 bcb->DataTransferLength = blenByte; sd_scsi_read()
692 bcb->Flags = US_BULK_FLAG_IN; sd_scsi_read()
693 bcb->CDB[0] = 0xF1; sd_scsi_read()
694 bcb->CDB[5] = (unsigned char)(bnByte); sd_scsi_read()
695 bcb->CDB[4] = (unsigned char)(bnByte>>8); sd_scsi_read()
696 bcb->CDB[3] = (unsigned char)(bnByte>>16); sd_scsi_read()
697 bcb->CDB[2] = (unsigned char)(bnByte>>24); sd_scsi_read()
707 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; sd_scsi_write() local
729 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); sd_scsi_write()
730 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); sd_scsi_write()
731 bcb->DataTransferLength = blenByte; sd_scsi_write()
732 bcb->Flags = 0x00; sd_scsi_write()
733 bcb->CDB[0] = 0xF0; sd_scsi_write()
734 bcb->CDB[5] = (unsigned char)(bnByte); sd_scsi_write()
735 bcb->CDB[4] = (unsigned char)(bnByte>>8); sd_scsi_write()
736 bcb->CDB[3] = (unsigned char)(bnByte>>16); sd_scsi_write()
737 bcb->CDB[2] = (unsigned char)(bnByte>>24); sd_scsi_write()
860 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; ms_read_readpage() local
873 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); ms_read_readpage()
874 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); ms_read_readpage()
875 bcb->DataTransferLength = 0x200; ms_read_readpage()
876 bcb->Flags = US_BULK_FLAG_IN; ms_read_readpage()
877 bcb->CDB[0] = 0xF1; ms_read_readpage()
879 bcb->CDB[1] = 0x02; /* in init.c ENE_MSInit() is 0x01 */ ms_read_readpage()
881 bcb->CDB[5] = (unsigned char)(bn); ms_read_readpage()
882 bcb->CDB[4] = (unsigned char)(bn>>8); ms_read_readpage()
883 bcb->CDB[3] = (unsigned char)(bn>>16); ms_read_readpage()
884 bcb->CDB[2] = (unsigned char)(bn>>24); ms_read_readpage()
892 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); ms_read_readpage()
893 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); ms_read_readpage()
894 bcb->DataTransferLength = 0x4; ms_read_readpage()
895 bcb->Flags = US_BULK_FLAG_IN; ms_read_readpage()
896 bcb->CDB[0] = 0xF1; ms_read_readpage()
897 bcb->CDB[1] = 0x03; ms_read_readpage()
899 bcb->CDB[5] = (unsigned char)(PageNum); ms_read_readpage()
900 bcb->CDB[4] = (unsigned char)(PhyBlockAddr); ms_read_readpage()
901 bcb->CDB[3] = (unsigned char)(PhyBlockAddr>>8); ms_read_readpage()
902 bcb->CDB[2] = (unsigned char)(PhyBlockAddr>>16); ms_read_readpage()
903 bcb->CDB[6] = 0x01; ms_read_readpage()
1141 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; ms_read_copyblock() local
1150 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); ms_read_copyblock()
1151 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); ms_read_copyblock()
1152 bcb->DataTransferLength = 0x200*len; ms_read_copyblock()
1153 bcb->Flags = 0x00; ms_read_copyblock()
1154 bcb->CDB[0] = 0xF0; ms_read_copyblock()
1155 bcb->CDB[1] = 0x08; ms_read_copyblock()
1156 bcb->CDB[4] = (unsigned char)(oldphy); ms_read_copyblock()
1157 bcb->CDB[3] = (unsigned char)(oldphy>>8); ms_read_copyblock()
1158 bcb->CDB[2] = 0; /* (BYTE)(oldphy>>16) */ ms_read_copyblock()
1159 bcb->CDB[7] = (unsigned char)(newphy); ms_read_copyblock()
1160 bcb->CDB[6] = (unsigned char)(newphy>>8); ms_read_copyblock()
1161 bcb->CDB[5] = 0; /* (BYTE)(newphy>>16) */ ms_read_copyblock()
1162 bcb->CDB[9] = (unsigned char)(PhyBlockAddr); ms_read_copyblock()
1163 bcb->CDB[8] = (unsigned char)(PhyBlockAddr>>8); ms_read_copyblock()
1164 bcb->CDB[10] = PageNum; ms_read_copyblock()
1175 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; ms_read_eraseblock() local
1185 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); ms_read_eraseblock()
1186 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); ms_read_eraseblock()
1187 bcb->DataTransferLength = 0x200; ms_read_eraseblock()
1188 bcb->Flags = US_BULK_FLAG_IN; ms_read_eraseblock()
1189 bcb->CDB[0] = 0xF2; ms_read_eraseblock()
1190 bcb->CDB[1] = 0x06; ms_read_eraseblock()
1191 bcb->CDB[4] = (unsigned char)(bn); ms_read_eraseblock()
1192 bcb->CDB[3] = (unsigned char)(bn>>8); ms_read_eraseblock()
1193 bcb->CDB[2] = (unsigned char)(bn>>16); ms_read_eraseblock()
1255 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; ms_lib_overwrite_extra() local
1264 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); ms_lib_overwrite_extra()
1265 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); ms_lib_overwrite_extra()
1266 bcb->DataTransferLength = 0x4; ms_lib_overwrite_extra()
1267 bcb->Flags = US_BULK_FLAG_IN; ms_lib_overwrite_extra()
1268 bcb->CDB[0] = 0xF2; ms_lib_overwrite_extra()
1269 bcb->CDB[1] = 0x05; ms_lib_overwrite_extra()
1270 bcb->CDB[5] = (unsigned char)(PageNum); ms_lib_overwrite_extra()
1271 bcb->CDB[4] = (unsigned char)(PhyBlockAddr); ms_lib_overwrite_extra()
1272 bcb->CDB[3] = (unsigned char)(PhyBlockAddr>>8); ms_lib_overwrite_extra()
1273 bcb->CDB[2] = (unsigned char)(PhyBlockAddr>>16); ms_lib_overwrite_extra()
1274 bcb->CDB[6] = OverwriteFlag; ms_lib_overwrite_extra()
1275 bcb->CDB[7] = 0xFF; ms_lib_overwrite_extra()
1276 bcb->CDB[8] = 0xFF; ms_lib_overwrite_extra()
1277 bcb->CDB[9] = 0xFF; ms_lib_overwrite_extra()
1341 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; ms_lib_read_extra() local
1346 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); ms_lib_read_extra()
1347 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); ms_lib_read_extra()
1348 bcb->DataTransferLength = 0x4; ms_lib_read_extra()
1349 bcb->Flags = US_BULK_FLAG_IN; ms_lib_read_extra()
1350 bcb->CDB[0] = 0xF1; ms_lib_read_extra()
1351 bcb->CDB[1] = 0x03; ms_lib_read_extra()
1352 bcb->CDB[5] = (unsigned char)(PageNum); ms_lib_read_extra()
1353 bcb->CDB[4] = (unsigned char)(PhyBlock); ms_lib_read_extra()
1354 bcb->CDB[3] = (unsigned char)(PhyBlock>>8); ms_lib_read_extra()
1355 bcb->CDB[2] = (unsigned char)(PhyBlock>>16); ms_lib_read_extra()
1356 bcb->CDB[6] = 0x01; ms_lib_read_extra()
1541 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; ms_lib_read_extrablock() local
1548 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); ms_lib_read_extrablock()
1549 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); ms_lib_read_extrablock()
1550 bcb->DataTransferLength = 0x4 * blen; ms_lib_read_extrablock()
1551 bcb->Flags = US_BULK_FLAG_IN; ms_lib_read_extrablock()
1552 bcb->CDB[0] = 0xF1; ms_lib_read_extrablock()
1553 bcb->CDB[1] = 0x03; ms_lib_read_extrablock()
1554 bcb->CDB[5] = (unsigned char)(PageNum); ms_lib_read_extrablock()
1555 bcb->CDB[4] = (unsigned char)(PhyBlock); ms_lib_read_extrablock()
1556 bcb->CDB[3] = (unsigned char)(PhyBlock>>8); ms_lib_read_extrablock()
1557 bcb->CDB[2] = (unsigned char)(PhyBlock>>16); ms_lib_read_extrablock()
1558 bcb->CDB[6] = blen; ms_lib_read_extrablock()
1646 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; ms_scsi_read() local
1665 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); ms_scsi_read()
1666 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); ms_scsi_read()
1667 bcb->DataTransferLength = blenByte; ms_scsi_read()
1668 bcb->Flags = US_BULK_FLAG_IN; ms_scsi_read()
1669 bcb->CDB[0] = 0xF1; ms_scsi_read()
1670 bcb->CDB[1] = 0x02; ms_scsi_read()
1671 bcb->CDB[5] = (unsigned char)(bn); ms_scsi_read()
1672 bcb->CDB[4] = (unsigned char)(bn>>8); ms_scsi_read()
1673 bcb->CDB[3] = (unsigned char)(bn>>16); ms_scsi_read()
1674 bcb->CDB[2] = (unsigned char)(bn>>24); ms_scsi_read()
1709 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); ms_scsi_read()
1710 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); ms_scsi_read()
1711 bcb->DataTransferLength = 0x200 * len; ms_scsi_read()
1712 bcb->Flags = US_BULK_FLAG_IN; ms_scsi_read()
1713 bcb->CDB[0] = 0xF1; ms_scsi_read()
1714 bcb->CDB[1] = 0x02; ms_scsi_read()
1715 bcb->CDB[5] = (unsigned char)(blkno); ms_scsi_read()
1716 bcb->CDB[4] = (unsigned char)(blkno>>8); ms_scsi_read()
1717 bcb->CDB[3] = (unsigned char)(blkno>>16); ms_scsi_read()
1718 bcb->CDB[2] = (unsigned char)(blkno>>24); ms_scsi_read()
1744 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; ms_scsi_write() local
1766 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); ms_scsi_write()
1767 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); ms_scsi_write()
1768 bcb->DataTransferLength = blenByte; ms_scsi_write()
1769 bcb->Flags = 0x00; ms_scsi_write()
1770 bcb->CDB[0] = 0xF0; ms_scsi_write()
1771 bcb->CDB[1] = 0x04; ms_scsi_write()
1772 bcb->CDB[5] = (unsigned char)(bn); ms_scsi_write()
1773 bcb->CDB[4] = (unsigned char)(bn>>8); ms_scsi_write()
1774 bcb->CDB[3] = (unsigned char)(bn>>16); ms_scsi_write()
1775 bcb->CDB[2] = (unsigned char)(bn>>24); ms_scsi_write()
1839 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; ene_get_card_type() local
1842 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); ene_get_card_type()
1843 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); ene_get_card_type()
1844 bcb->DataTransferLength = 0x01; ene_get_card_type()
1845 bcb->Flags = US_BULK_FLAG_IN; ene_get_card_type()
1846 bcb->CDB[0] = 0xED; ene_get_card_type()
1847 bcb->CDB[2] = (unsigned char)(index>>8); ene_get_card_type()
1848 bcb->CDB[3] = (unsigned char)index; ene_get_card_type()
1891 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; ene_load_bincode() local
1938 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); ene_load_bincode()
1939 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); ene_load_bincode()
1940 bcb->DataTransferLength = sd_fw->size; ene_load_bincode()
1941 bcb->Flags = 0x00; ene_load_bincode()
1942 bcb->CDB[0] = 0xEF; ene_load_bincode()
2076 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; ene_ms_init() local
2092 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); ene_ms_init()
2093 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); ene_ms_init()
2094 bcb->DataTransferLength = 0x200; ene_ms_init()
2095 bcb->Flags = US_BULK_FLAG_IN; ene_ms_init()
2096 bcb->CDB[0] = 0xF1; ene_ms_init()
2097 bcb->CDB[1] = 0x01; ene_ms_init()
2133 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; ene_sd_init() local
2144 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); ene_sd_init()
2145 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); ene_sd_init()
2146 bcb->Flags = US_BULK_FLAG_IN; ene_sd_init()
2147 bcb->CDB[0] = 0xF2; ene_sd_init()
2162 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); ene_sd_init()
2163 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); ene_sd_init()
2164 bcb->DataTransferLength = 0x200; ene_sd_init()
2165 bcb->Flags = US_BULK_FLAG_IN; ene_sd_init()
2166 bcb->CDB[0] = 0xF1; ene_sd_init()
H A Dinitializers.c64 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap*) us->iobuf; usb_stor_ucr61s2b_init() local
72 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); usb_stor_ucr61s2b_init()
73 bcb->Tag = 0; usb_stor_ucr61s2b_init()
74 bcb->DataTransferLength = cpu_to_le32(0); usb_stor_ucr61s2b_init()
75 bcb->Flags = bcb->Lun = 0; usb_stor_ucr61s2b_init()
76 bcb->Length = sizeof(init_string) - 1; usb_stor_ucr61s2b_init()
77 memset(bcb->CDB, 0, sizeof(bcb->CDB)); usb_stor_ucr61s2b_init()
78 memcpy(bcb->CDB, init_string, sizeof(init_string) - 1); usb_stor_ucr61s2b_init()
80 res = usb_stor_bulk_transfer_buf(us, us->send_bulk_pipe, bcb, usb_stor_ucr61s2b_init()
H A Drealtek_cr.c216 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *)us->iobuf; rts51x_bulk_transport() local
224 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); rts51x_bulk_transport()
225 bcb->DataTransferLength = cpu_to_le32(buf_len); rts51x_bulk_transport()
226 bcb->Flags = (dir == DMA_FROM_DEVICE) ? US_BULK_FLAG_IN : 0; rts51x_bulk_transport()
227 bcb->Tag = ++us->tag; rts51x_bulk_transport()
228 bcb->Lun = lun; rts51x_bulk_transport()
229 bcb->Length = cmd_len; rts51x_bulk_transport()
232 memset(bcb->CDB, 0, sizeof(bcb->CDB)); rts51x_bulk_transport()
233 memcpy(bcb->CDB, cmd, bcb->Length); rts51x_bulk_transport()
237 bcb, cbwlen, NULL); rts51x_bulk_transport()
303 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; rts51x_bulk_transport_special() local
310 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); rts51x_bulk_transport_special()
311 bcb->DataTransferLength = cpu_to_le32(buf_len); rts51x_bulk_transport_special()
312 bcb->Flags = (dir == DMA_FROM_DEVICE) ? US_BULK_FLAG_IN : 0; rts51x_bulk_transport_special()
313 bcb->Tag = ++us->tag; rts51x_bulk_transport_special()
314 bcb->Lun = lun; rts51x_bulk_transport_special()
315 bcb->Length = cmd_len; rts51x_bulk_transport_special()
318 memset(bcb->CDB, 0, sizeof(bcb->CDB)); rts51x_bulk_transport_special()
319 memcpy(bcb->CDB, cmd, bcb->Length); rts51x_bulk_transport_special()
323 bcb, cbwlen, NULL); rts51x_bulk_transport_special()
H A Dtransport.c1065 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; usb_stor_Bulk_transport() local
1081 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); usb_stor_Bulk_transport()
1082 bcb->DataTransferLength = cpu_to_le32(transfer_length); usb_stor_Bulk_transport()
1083 bcb->Flags = srb->sc_data_direction == DMA_FROM_DEVICE ? usb_stor_Bulk_transport()
1085 bcb->Tag = ++us->tag; usb_stor_Bulk_transport()
1086 bcb->Lun = srb->device->lun; usb_stor_Bulk_transport()
1088 bcb->Lun |= srb->device->id << 4; usb_stor_Bulk_transport()
1089 bcb->Length = srb->cmd_len; usb_stor_Bulk_transport()
1092 memset(bcb->CDB, 0, sizeof(bcb->CDB)); usb_stor_Bulk_transport()
1093 memcpy(bcb->CDB, srb->cmnd, bcb->Length); usb_stor_Bulk_transport()
1097 le32_to_cpu(bcb->Signature), bcb->Tag, usb_stor_Bulk_transport()
1098 le32_to_cpu(bcb->DataTransferLength), bcb->Flags, usb_stor_Bulk_transport()
1099 (bcb->Lun >> 4), (bcb->Lun & 0x0F), usb_stor_Bulk_transport()
1100 bcb->Length); usb_stor_Bulk_transport()
1102 bcb, cbwlen, NULL); usb_stor_Bulk_transport()
/linux-4.4.14/drivers/video/fbdev/omap2/dss/
H A Ddispc.c245 int ry, rcr, rcb, gy, gcr, gcb, by, bcr, bcb; member in struct:color_conv_coef
699 dispc_write_reg(DISPC_OVL_CONV_COEF(plane, 4), CVAL(0, ct->bcb)); dispc_ovl_write_color_conv_coef()

Completed in 208 milliseconds