• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/scsi/

Lines Matching refs:command_packet

232 	TW_Command *command_packet;
241 command_packet = &full_command_packet->command.oldcommand;
244 if (TW_OP_OUT(command_packet->opcode__sgloffset) == TW_OP_SET_PARAM) {
483 TW_Command *command_packet;
490 command_packet = &full_command_packet->command.oldcommand;
491 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_SET_PARAM);
492 command_packet->request_id = request_id;
493 command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[request_id]);
494 command_packet->byte8_offset.param.sgl[0].length = cpu_to_le32(TW_SECTOR_SIZE);
495 command_packet->size = TW_COMMAND_SIZE;
496 command_packet->byte6_offset.parameter_count = cpu_to_le16(1);
1060 TW_Command *command_packet;
1067 command_packet = &full_command_packet->command.oldcommand;
1069 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM);
1070 command_packet->size = TW_COMMAND_SIZE;
1071 command_packet->request_id = request_id;
1072 command_packet->byte6_offset.block_count = cpu_to_le16(1);
1081 command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[request_id]);
1082 command_packet->byte8_offset.param.sgl[0].length = cpu_to_le32(TW_SECTOR_SIZE);
1819 TW_Command_Apache *command_packet;
1838 command_packet = &full_command_packet->command.newcommand;
1839 command_packet->status = 0;
1840 command_packet->opcode__reserved = TW_OPRES_IN(0, TW_OP_EXECUTE_SCSI);
1844 memcpy(command_packet->cdb, srb->cmnd, TW_MAX_CDB_LEN);
1846 memcpy(command_packet->cdb, cdb, TW_MAX_CDB_LEN);
1849 command_packet->unit = srb->device->id;
1850 command_packet->request_id__lunl =
1853 command_packet->request_id__lunl =
1855 command_packet->unit = 0;
1858 command_packet->sgl_offset = 16;
1871 command_packet->sg_list[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[request_id]);
1872 command_packet->sg_list[0].length = cpu_to_le32(TW_MIN_SGL_LENGTH);
1879 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sg_dma_address(sg));
1880 command_packet->sg_list[i].length = cpu_to_le32(sg_dma_len(sg));
1881 if (command_packet->sg_list[i].address & TW_CPU_TO_SGL(TW_ALIGNMENT_9000_SGL)) {
1887 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_count(tw_dev->srb[request_id])));
1892 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sglistarg[i].address);
1893 command_packet->sg_list[i].length = cpu_to_le32(sglistarg[i].length);
1894 if (command_packet->sg_list[i].address & TW_CPU_TO_SGL(TW_ALIGNMENT_9000_SGL)) {
1899 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg));