Lines Matching refs:bcb
492 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ene_send_scsi_cmd() local
498 unsigned int transfer_length = bcb->DataTransferLength; in ene_send_scsi_cmd()
503 bcb, US_BULK_CB_WRAP_LEN, NULL); in ene_send_scsi_cmd()
675 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in sd_scsi_read() local
697 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); in sd_scsi_read()
698 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in sd_scsi_read()
699 bcb->DataTransferLength = blenByte; in sd_scsi_read()
700 bcb->Flags = US_BULK_FLAG_IN; in sd_scsi_read()
701 bcb->CDB[0] = 0xF1; in sd_scsi_read()
702 bcb->CDB[5] = (unsigned char)(bnByte); in sd_scsi_read()
703 bcb->CDB[4] = (unsigned char)(bnByte>>8); in sd_scsi_read()
704 bcb->CDB[3] = (unsigned char)(bnByte>>16); in sd_scsi_read()
705 bcb->CDB[2] = (unsigned char)(bnByte>>24); in sd_scsi_read()
715 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in sd_scsi_write() local
737 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); in sd_scsi_write()
738 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in sd_scsi_write()
739 bcb->DataTransferLength = blenByte; in sd_scsi_write()
740 bcb->Flags = 0x00; in sd_scsi_write()
741 bcb->CDB[0] = 0xF0; in sd_scsi_write()
742 bcb->CDB[5] = (unsigned char)(bnByte); in sd_scsi_write()
743 bcb->CDB[4] = (unsigned char)(bnByte>>8); in sd_scsi_write()
744 bcb->CDB[3] = (unsigned char)(bnByte>>16); in sd_scsi_write()
745 bcb->CDB[2] = (unsigned char)(bnByte>>24); in sd_scsi_write()
873 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_read_readpage() local
884 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); in ms_read_readpage()
885 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in ms_read_readpage()
886 bcb->DataTransferLength = 0x200; in ms_read_readpage()
887 bcb->Flags = US_BULK_FLAG_IN; in ms_read_readpage()
888 bcb->CDB[0] = 0xF1; in ms_read_readpage()
890 bcb->CDB[1] = 0x02; /* in init.c ENE_MSInit() is 0x01 */ in ms_read_readpage()
892 bcb->CDB[5] = (unsigned char)(bn); in ms_read_readpage()
893 bcb->CDB[4] = (unsigned char)(bn>>8); in ms_read_readpage()
894 bcb->CDB[3] = (unsigned char)(bn>>16); in ms_read_readpage()
895 bcb->CDB[2] = (unsigned char)(bn>>24); in ms_read_readpage()
903 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); in ms_read_readpage()
904 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in ms_read_readpage()
905 bcb->DataTransferLength = 0x4; in ms_read_readpage()
906 bcb->Flags = US_BULK_FLAG_IN; in ms_read_readpage()
907 bcb->CDB[0] = 0xF1; in ms_read_readpage()
908 bcb->CDB[1] = 0x03; in ms_read_readpage()
910 bcb->CDB[5] = (unsigned char)(PageNum); in ms_read_readpage()
911 bcb->CDB[4] = (unsigned char)(PhyBlockAddr); in ms_read_readpage()
912 bcb->CDB[3] = (unsigned char)(PhyBlockAddr>>8); in ms_read_readpage()
913 bcb->CDB[2] = (unsigned char)(PhyBlockAddr>>16); in ms_read_readpage()
914 bcb->CDB[6] = 0x01; in ms_read_readpage()
1156 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_read_copyblock() local
1163 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); in ms_read_copyblock()
1164 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in ms_read_copyblock()
1165 bcb->DataTransferLength = 0x200*len; in ms_read_copyblock()
1166 bcb->Flags = 0x00; in ms_read_copyblock()
1167 bcb->CDB[0] = 0xF0; in ms_read_copyblock()
1168 bcb->CDB[1] = 0x08; in ms_read_copyblock()
1169 bcb->CDB[4] = (unsigned char)(oldphy); in ms_read_copyblock()
1170 bcb->CDB[3] = (unsigned char)(oldphy>>8); in ms_read_copyblock()
1171 bcb->CDB[2] = 0; /* (BYTE)(oldphy>>16) */ in ms_read_copyblock()
1172 bcb->CDB[7] = (unsigned char)(newphy); in ms_read_copyblock()
1173 bcb->CDB[6] = (unsigned char)(newphy>>8); in ms_read_copyblock()
1174 bcb->CDB[5] = 0; /* (BYTE)(newphy>>16) */ in ms_read_copyblock()
1175 bcb->CDB[9] = (unsigned char)(PhyBlockAddr); in ms_read_copyblock()
1176 bcb->CDB[8] = (unsigned char)(PhyBlockAddr>>8); in ms_read_copyblock()
1177 bcb->CDB[10] = PageNum; in ms_read_copyblock()
1188 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_read_eraseblock() local
1196 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); in ms_read_eraseblock()
1197 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in ms_read_eraseblock()
1198 bcb->DataTransferLength = 0x200; in ms_read_eraseblock()
1199 bcb->Flags = US_BULK_FLAG_IN; in ms_read_eraseblock()
1200 bcb->CDB[0] = 0xF2; in ms_read_eraseblock()
1201 bcb->CDB[1] = 0x06; in ms_read_eraseblock()
1202 bcb->CDB[4] = (unsigned char)(bn); in ms_read_eraseblock()
1203 bcb->CDB[3] = (unsigned char)(bn>>8); in ms_read_eraseblock()
1204 bcb->CDB[2] = (unsigned char)(bn>>16); in ms_read_eraseblock()
1266 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_lib_overwrite_extra() local
1273 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); in ms_lib_overwrite_extra()
1274 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in ms_lib_overwrite_extra()
1275 bcb->DataTransferLength = 0x4; in ms_lib_overwrite_extra()
1276 bcb->Flags = US_BULK_FLAG_IN; in ms_lib_overwrite_extra()
1277 bcb->CDB[0] = 0xF2; in ms_lib_overwrite_extra()
1278 bcb->CDB[1] = 0x05; in ms_lib_overwrite_extra()
1279 bcb->CDB[5] = (unsigned char)(PageNum); in ms_lib_overwrite_extra()
1280 bcb->CDB[4] = (unsigned char)(PhyBlockAddr); in ms_lib_overwrite_extra()
1281 bcb->CDB[3] = (unsigned char)(PhyBlockAddr>>8); in ms_lib_overwrite_extra()
1282 bcb->CDB[2] = (unsigned char)(PhyBlockAddr>>16); in ms_lib_overwrite_extra()
1283 bcb->CDB[6] = OverwriteFlag; in ms_lib_overwrite_extra()
1284 bcb->CDB[7] = 0xFF; in ms_lib_overwrite_extra()
1285 bcb->CDB[8] = 0xFF; in ms_lib_overwrite_extra()
1286 bcb->CDB[9] = 0xFF; in ms_lib_overwrite_extra()
1350 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_lib_read_extra() local
1355 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); in ms_lib_read_extra()
1356 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in ms_lib_read_extra()
1357 bcb->DataTransferLength = 0x4; in ms_lib_read_extra()
1358 bcb->Flags = US_BULK_FLAG_IN; in ms_lib_read_extra()
1359 bcb->CDB[0] = 0xF1; in ms_lib_read_extra()
1360 bcb->CDB[1] = 0x03; in ms_lib_read_extra()
1361 bcb->CDB[5] = (unsigned char)(PageNum); in ms_lib_read_extra()
1362 bcb->CDB[4] = (unsigned char)(PhyBlock); in ms_lib_read_extra()
1363 bcb->CDB[3] = (unsigned char)(PhyBlock>>8); in ms_lib_read_extra()
1364 bcb->CDB[2] = (unsigned char)(PhyBlock>>16); in ms_lib_read_extra()
1365 bcb->CDB[6] = 0x01; in ms_lib_read_extra()
1535 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_lib_read_extrablock() local
1539 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); in ms_lib_read_extrablock()
1540 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in ms_lib_read_extrablock()
1541 bcb->DataTransferLength = 0x4 * blen; in ms_lib_read_extrablock()
1542 bcb->Flags = US_BULK_FLAG_IN; in ms_lib_read_extrablock()
1543 bcb->CDB[0] = 0xF1; in ms_lib_read_extrablock()
1544 bcb->CDB[1] = 0x03; in ms_lib_read_extrablock()
1545 bcb->CDB[5] = (unsigned char)(PageNum); in ms_lib_read_extrablock()
1546 bcb->CDB[4] = (unsigned char)(PhyBlock); in ms_lib_read_extrablock()
1547 bcb->CDB[3] = (unsigned char)(PhyBlock>>8); in ms_lib_read_extrablock()
1548 bcb->CDB[2] = (unsigned char)(PhyBlock>>16); in ms_lib_read_extrablock()
1549 bcb->CDB[6] = blen; in ms_lib_read_extrablock()
1639 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_scsi_read() local
1658 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); in ms_scsi_read()
1659 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in ms_scsi_read()
1660 bcb->DataTransferLength = blenByte; in ms_scsi_read()
1661 bcb->Flags = US_BULK_FLAG_IN; in ms_scsi_read()
1662 bcb->CDB[0] = 0xF1; in ms_scsi_read()
1663 bcb->CDB[1] = 0x02; in ms_scsi_read()
1664 bcb->CDB[5] = (unsigned char)(bn); in ms_scsi_read()
1665 bcb->CDB[4] = (unsigned char)(bn>>8); in ms_scsi_read()
1666 bcb->CDB[3] = (unsigned char)(bn>>16); in ms_scsi_read()
1667 bcb->CDB[2] = (unsigned char)(bn>>24); in ms_scsi_read()
1702 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); in ms_scsi_read()
1703 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in ms_scsi_read()
1704 bcb->DataTransferLength = 0x200 * len; in ms_scsi_read()
1705 bcb->Flags = US_BULK_FLAG_IN; in ms_scsi_read()
1706 bcb->CDB[0] = 0xF1; in ms_scsi_read()
1707 bcb->CDB[1] = 0x02; in ms_scsi_read()
1708 bcb->CDB[5] = (unsigned char)(blkno); in ms_scsi_read()
1709 bcb->CDB[4] = (unsigned char)(blkno>>8); in ms_scsi_read()
1710 bcb->CDB[3] = (unsigned char)(blkno>>16); in ms_scsi_read()
1711 bcb->CDB[2] = (unsigned char)(blkno>>24); in ms_scsi_read()
1737 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_scsi_write() local
1759 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); in ms_scsi_write()
1760 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in ms_scsi_write()
1761 bcb->DataTransferLength = blenByte; in ms_scsi_write()
1762 bcb->Flags = 0x00; in ms_scsi_write()
1763 bcb->CDB[0] = 0xF0; in ms_scsi_write()
1764 bcb->CDB[1] = 0x04; in ms_scsi_write()
1765 bcb->CDB[5] = (unsigned char)(bn); in ms_scsi_write()
1766 bcb->CDB[4] = (unsigned char)(bn>>8); in ms_scsi_write()
1767 bcb->CDB[3] = (unsigned char)(bn>>16); in ms_scsi_write()
1768 bcb->CDB[2] = (unsigned char)(bn>>24); in ms_scsi_write()
1832 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ene_get_card_type() local
1835 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); in ene_get_card_type()
1836 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in ene_get_card_type()
1837 bcb->DataTransferLength = 0x01; in ene_get_card_type()
1838 bcb->Flags = US_BULK_FLAG_IN; in ene_get_card_type()
1839 bcb->CDB[0] = 0xED; in ene_get_card_type()
1840 bcb->CDB[2] = (unsigned char)(index>>8); in ene_get_card_type()
1841 bcb->CDB[3] = (unsigned char)index; in ene_get_card_type()
1884 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ene_load_bincode() local
1931 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); in ene_load_bincode()
1932 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in ene_load_bincode()
1933 bcb->DataTransferLength = sd_fw->size; in ene_load_bincode()
1934 bcb->Flags = 0x00; in ene_load_bincode()
1935 bcb->CDB[0] = 0xEF; in ene_load_bincode()
2071 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ene_ms_init() local
2088 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); in ene_ms_init()
2089 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in ene_ms_init()
2090 bcb->DataTransferLength = 0x200; in ene_ms_init()
2091 bcb->Flags = US_BULK_FLAG_IN; in ene_ms_init()
2092 bcb->CDB[0] = 0xF1; in ene_ms_init()
2093 bcb->CDB[1] = 0x01; in ene_ms_init()
2129 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ene_sd_init() local
2141 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); in ene_sd_init()
2142 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in ene_sd_init()
2143 bcb->Flags = US_BULK_FLAG_IN; in ene_sd_init()
2144 bcb->CDB[0] = 0xF2; in ene_sd_init()
2159 memset(bcb, 0, sizeof(struct bulk_cb_wrap)); in ene_sd_init()
2160 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in ene_sd_init()
2161 bcb->DataTransferLength = 0x200; in ene_sd_init()
2162 bcb->Flags = US_BULK_FLAG_IN; in ene_sd_init()
2163 bcb->CDB[0] = 0xF1; in ene_sd_init()