Lines Matching refs:command_packet
295 TW_Command_Apache *command_packet; in twl_scsiop_execute_scsi() local
310 command_packet = &full_command_packet->command.newcommand; in twl_scsiop_execute_scsi()
311 command_packet->status = 0; in twl_scsiop_execute_scsi()
312 command_packet->opcode__reserved = TW_OPRES_IN(0, TW_OP_EXECUTE_SCSI); in twl_scsiop_execute_scsi()
316 memcpy(command_packet->cdb, srb->cmnd, TW_MAX_CDB_LEN); in twl_scsiop_execute_scsi()
318 memcpy(command_packet->cdb, cdb, TW_MAX_CDB_LEN); in twl_scsiop_execute_scsi()
321 command_packet->unit = srb->device->id; in twl_scsiop_execute_scsi()
322 command_packet->request_id__lunl = in twl_scsiop_execute_scsi()
325 command_packet->request_id__lunl = in twl_scsiop_execute_scsi()
327 command_packet->unit = 0; in twl_scsiop_execute_scsi()
330 command_packet->sgl_offset = 16; in twl_scsiop_execute_scsi()
340 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sg_dma_address(sg)); in twl_scsiop_execute_scsi()
341 command_packet->sg_list[i].length = TW_CPU_TO_SGL(sg_dma_len(sg)); in twl_scsiop_execute_scsi()
343 …command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_cou… in twl_scsiop_execute_scsi()
348 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sglistarg[i].address); in twl_scsiop_execute_scsi()
349 command_packet->sg_list[i].length = TW_CPU_TO_SGL(sglistarg[i].length); in twl_scsiop_execute_scsi()
351 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg)); in twl_scsiop_execute_scsi()
410 TW_Command *command_packet; in twl_aen_sync_time() local
417 command_packet = &full_command_packet->command.oldcommand; in twl_aen_sync_time()
418 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_SET_PARAM); in twl_aen_sync_time()
419 command_packet->request_id = request_id; in twl_aen_sync_time()
420 …command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[requ… in twl_aen_sync_time()
421 command_packet->byte8_offset.param.sgl[0].length = TW_CPU_TO_SGL(TW_SECTOR_SIZE); in twl_aen_sync_time()
422 command_packet->size = TW_COMMAND_SIZE; in twl_aen_sync_time()
423 command_packet->byte6_offset.parameter_count = cpu_to_le16(1); in twl_aen_sync_time()
467 TW_Command *command_packet; in twl_aen_complete() local
476 command_packet = &full_command_packet->command.oldcommand; in twl_aen_complete()
479 if (TW_OP_OUT(command_packet->opcode__sgloffset) == TW_OP_SET_PARAM) { in twl_aen_complete()
926 TW_Command *command_packet; in twl_get_param() local
933 command_packet = &full_command_packet->command.oldcommand; in twl_get_param()
935 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in twl_get_param()
936 command_packet->size = TW_COMMAND_SIZE; in twl_get_param()
937 command_packet->request_id = request_id; in twl_get_param()
938 command_packet->byte6_offset.block_count = cpu_to_le16(1); in twl_get_param()
947 …command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[requ… in twl_get_param()
948 command_packet->byte8_offset.param.sgl[0].length = TW_CPU_TO_SGL(TW_SECTOR_SIZE); in twl_get_param()