Lines Matching refs:command

139 	unsigned char *command = us->iobuf;  in datafab_read_data()  local
179 command[0] = 0; in datafab_read_data()
180 command[1] = thistime; in datafab_read_data()
181 command[2] = sector & 0xFF; in datafab_read_data()
182 command[3] = (sector >> 8) & 0xFF; in datafab_read_data()
183 command[4] = (sector >> 16) & 0xFF; in datafab_read_data()
185 command[5] = 0xE0 + (info->lun << 4); in datafab_read_data()
186 command[5] |= (sector >> 24) & 0x0F; in datafab_read_data()
187 command[6] = 0x20; in datafab_read_data()
188 command[7] = 0x01; in datafab_read_data()
191 result = datafab_bulk_write(us, command, 8); in datafab_read_data()
222 unsigned char *command = us->iobuf; in datafab_write_data() local
267 command[0] = 0; in datafab_write_data()
268 command[1] = thistime; in datafab_write_data()
269 command[2] = sector & 0xFF; in datafab_write_data()
270 command[3] = (sector >> 8) & 0xFF; in datafab_write_data()
271 command[4] = (sector >> 16) & 0xFF; in datafab_write_data()
273 command[5] = 0xE0 + (info->lun << 4); in datafab_write_data()
274 command[5] |= (sector >> 24) & 0x0F; in datafab_write_data()
275 command[6] = 0x30; in datafab_write_data()
276 command[7] = 0x02; in datafab_write_data()
279 result = datafab_bulk_write(us, command, 8); in datafab_write_data()
323 unsigned char *command = us->iobuf; in datafab_determine_lun() local
330 memcpy(command, scommand, 8); in datafab_determine_lun()
340 command[5] = 0xa0; in datafab_determine_lun()
342 rc = datafab_bulk_write(us, command, 8); in datafab_determine_lun()
355 command[5] = 0xb0; in datafab_determine_lun()
357 rc = datafab_bulk_write(us, command, 8); in datafab_determine_lun()
388 unsigned char *command = us->iobuf; in datafab_id_device() local
401 memcpy(command, scommand, 8); in datafab_id_device()
406 command[5] += (info->lun << 4); in datafab_id_device()
408 rc = datafab_bulk_write(us, command, 8); in datafab_id_device()