Lines Matching refs:command_packet

295 	TW_Command_Apache *command_packet;  in twl_scsiop_execute_scsi()  local
313 command_packet = &full_command_packet->command.newcommand; in twl_scsiop_execute_scsi()
314 command_packet->status = 0; in twl_scsiop_execute_scsi()
315 command_packet->opcode__reserved = TW_OPRES_IN(0, TW_OP_EXECUTE_SCSI); in twl_scsiop_execute_scsi()
319 memcpy(command_packet->cdb, srb->cmnd, TW_MAX_CDB_LEN); in twl_scsiop_execute_scsi()
321 memcpy(command_packet->cdb, cdb, TW_MAX_CDB_LEN); in twl_scsiop_execute_scsi()
324 command_packet->unit = srb->device->id; in twl_scsiop_execute_scsi()
325 command_packet->request_id__lunl = in twl_scsiop_execute_scsi()
328 command_packet->request_id__lunl = in twl_scsiop_execute_scsi()
330 command_packet->unit = 0; in twl_scsiop_execute_scsi()
333 command_packet->sgl_offset = 16; in twl_scsiop_execute_scsi()
343 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sg_dma_address(sg)); in twl_scsiop_execute_scsi()
344 command_packet->sg_list[i].length = TW_CPU_TO_SGL(sg_dma_len(sg)); in twl_scsiop_execute_scsi()
346command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_cou… in twl_scsiop_execute_scsi()
351 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sglistarg[i].address); in twl_scsiop_execute_scsi()
352 command_packet->sg_list[i].length = TW_CPU_TO_SGL(sglistarg[i].length); in twl_scsiop_execute_scsi()
354 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg)); in twl_scsiop_execute_scsi()
413 TW_Command *command_packet; in twl_aen_sync_time() local
420 command_packet = &full_command_packet->command.oldcommand; in twl_aen_sync_time()
421 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_SET_PARAM); in twl_aen_sync_time()
422 command_packet->request_id = request_id; in twl_aen_sync_time()
423command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[requ… in twl_aen_sync_time()
424 command_packet->byte8_offset.param.sgl[0].length = TW_CPU_TO_SGL(TW_SECTOR_SIZE); in twl_aen_sync_time()
425 command_packet->size = TW_COMMAND_SIZE; in twl_aen_sync_time()
426 command_packet->byte6_offset.parameter_count = cpu_to_le16(1); in twl_aen_sync_time()
470 TW_Command *command_packet; in twl_aen_complete() local
479 command_packet = &full_command_packet->command.oldcommand; in twl_aen_complete()
482 if (TW_OP_OUT(command_packet->opcode__sgloffset) == TW_OP_SET_PARAM) { in twl_aen_complete()
930 TW_Command *command_packet; in twl_get_param() local
937 command_packet = &full_command_packet->command.oldcommand; in twl_get_param()
939 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in twl_get_param()
940 command_packet->size = TW_COMMAND_SIZE; in twl_get_param()
941 command_packet->request_id = request_id; in twl_get_param()
942 command_packet->byte6_offset.block_count = cpu_to_le16(1); in twl_get_param()
951command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[requ… in twl_get_param()
952 command_packet->byte8_offset.param.sgl[0].length = TW_CPU_TO_SGL(TW_SECTOR_SIZE); in twl_get_param()