Searched refs:command_packet (Results 1 - 3 of 3) sorted by relevance

/linux-4.1.27/drivers/scsi/
H A D3w-xxxx.c544 TW_Command *command_packet; tw_aen_read_queue() local
562 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; tw_aen_read_queue()
563 memset(command_packet, 0, sizeof(TW_Sector)); tw_aen_read_queue()
564 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); tw_aen_read_queue()
565 command_packet->size = 4; tw_aen_read_queue()
566 command_packet->request_id = request_id; tw_aen_read_queue()
567 command_packet->status = 0; tw_aen_read_queue()
568 command_packet->flags = 0; tw_aen_read_queue()
569 command_packet->byte6.parameter_count = 1; tw_aen_read_queue()
590 command_packet->byte8.param.sgl[0].address = param_value; tw_aen_read_queue()
591 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); tw_aen_read_queue()
674 TW_Command *command_packet; tw_aen_drain_queue() local
703 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; tw_aen_drain_queue()
704 memset(command_packet, 0, sizeof(TW_Sector)); tw_aen_drain_queue()
705 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); tw_aen_drain_queue()
706 command_packet->size = 4; tw_aen_drain_queue()
707 command_packet->request_id = request_id; tw_aen_drain_queue()
708 command_packet->status = 0; tw_aen_drain_queue()
709 command_packet->flags = 0; tw_aen_drain_queue()
710 command_packet->byte6.parameter_count = 1; tw_aen_drain_queue()
732 command_packet->byte8.param.sgl[0].address = param_value; tw_aen_drain_queue()
733 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); tw_aen_drain_queue()
751 if (command_packet->status != 0) { tw_aen_drain_queue()
752 if (command_packet->flags != TW_AEN_TABLE_UNDEFINED) { tw_aen_drain_queue()
1070 TW_Command *command_packet; tw_initconnection() local
1082 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; tw_initconnection()
1083 memset(command_packet, 0, sizeof(TW_Sector)); tw_initconnection()
1084 command_packet->opcode__sgloffset = TW_OPSGL_IN(0, TW_OP_INIT_CONNECTION); tw_initconnection()
1085 command_packet->size = TW_INIT_COMMAND_PACKET_SIZE; tw_initconnection()
1086 command_packet->request_id = request_id; tw_initconnection()
1087 command_packet->status = 0x0; tw_initconnection()
1088 command_packet->flags = 0x0; tw_initconnection()
1089 command_packet->byte6.message_credits = message_credits; tw_initconnection()
1090 command_packet->byte8.init_connection.response_queue_pointer = 0x0; tw_initconnection()
1111 if (command_packet->status != 0) { tw_initconnection()
1125 TW_Command *command_packet; tw_setfeature() local
1136 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; tw_setfeature()
1137 memset(command_packet, 0, sizeof(TW_Sector)); tw_setfeature()
1140 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_SET_PARAM); tw_setfeature()
1154 command_packet->byte8.param.sgl[0].address = param_value; tw_setfeature()
1155 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); tw_setfeature()
1157 command_packet->size = 4; tw_setfeature()
1158 command_packet->request_id = request_id; tw_setfeature()
1159 command_packet->byte6.parameter_count = 1; tw_setfeature()
1180 if (command_packet->status != 0) { tw_setfeature()
1390 TW_Command *command_packet; tw_scsiop_inquiry() local
1397 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; tw_scsiop_inquiry()
1398 if (command_packet == NULL) { tw_scsiop_inquiry()
1402 memset(command_packet, 0, sizeof(TW_Sector)); tw_scsiop_inquiry()
1403 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); tw_scsiop_inquiry()
1404 command_packet->size = 4; tw_scsiop_inquiry()
1405 command_packet->request_id = request_id; tw_scsiop_inquiry()
1406 command_packet->status = 0; tw_scsiop_inquiry()
1407 command_packet->flags = 0; tw_scsiop_inquiry()
1408 command_packet->byte6.parameter_count = 1; tw_scsiop_inquiry()
1426 command_packet->byte8.param.sgl[0].address = param_value; tw_scsiop_inquiry()
1427 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); tw_scsiop_inquiry()
1488 TW_Command *command_packet; tw_scsiop_mode_sense() local
1504 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; tw_scsiop_mode_sense()
1505 if (command_packet == NULL) { tw_scsiop_mode_sense()
1511 memset(command_packet, 0, sizeof(TW_Sector)); tw_scsiop_mode_sense()
1512 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); tw_scsiop_mode_sense()
1513 command_packet->size = 4; tw_scsiop_mode_sense()
1514 command_packet->request_id = request_id; tw_scsiop_mode_sense()
1515 command_packet->status = 0; tw_scsiop_mode_sense()
1516 command_packet->flags = 0; tw_scsiop_mode_sense()
1517 command_packet->byte6.parameter_count = 1; tw_scsiop_mode_sense()
1536 command_packet->byte8.param.sgl[0].address = param_value; tw_scsiop_mode_sense()
1537 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); tw_scsiop_mode_sense()
1587 TW_Command *command_packet; tw_scsiop_read_capacity() local
1594 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; tw_scsiop_read_capacity()
1596 if (command_packet == NULL) { tw_scsiop_read_capacity()
1600 memset(command_packet, 0, sizeof(TW_Sector)); tw_scsiop_read_capacity()
1601 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); tw_scsiop_read_capacity()
1602 command_packet->size = 4; tw_scsiop_read_capacity()
1603 command_packet->request_id = request_id; tw_scsiop_read_capacity()
1604 command_packet->unit__hostid = TW_UNITHOST_IN(0, tw_dev->srb[request_id]->device->id); tw_scsiop_read_capacity()
1605 command_packet->status = 0; tw_scsiop_read_capacity()
1606 command_packet->flags = 0; tw_scsiop_read_capacity()
1607 command_packet->byte6.block_count = 1; tw_scsiop_read_capacity()
1626 command_packet->byte8.param.sgl[0].address = param_value; tw_scsiop_read_capacity()
1627 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); tw_scsiop_read_capacity()
1686 TW_Command *command_packet; tw_scsiop_read_write() local
1704 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; tw_scsiop_read_write()
1705 if (command_packet == NULL) { tw_scsiop_read_write()
1711 command_packet->opcode__sgloffset = TW_OPSGL_IN(3, TW_OP_READ); tw_scsiop_read_write()
1713 command_packet->opcode__sgloffset = TW_OPSGL_IN(3, TW_OP_WRITE); tw_scsiop_read_write()
1716 command_packet->size = 3; tw_scsiop_read_write()
1717 command_packet->request_id = request_id; tw_scsiop_read_write()
1718 command_packet->unit__hostid = TW_UNITHOST_IN(0, srb->device->id); tw_scsiop_read_write()
1719 command_packet->status = 0; tw_scsiop_read_write()
1720 command_packet->flags = 0; tw_scsiop_read_write()
1724 command_packet->flags = 1; tw_scsiop_read_write()
1741 command_packet->byte8.io.lba = lba; tw_scsiop_read_write()
1742 command_packet->byte6.block_count = num_sectors; tw_scsiop_read_write()
1749 command_packet->byte8.io.sgl[i].address = sg_dma_address(sg); tw_scsiop_read_write()
1750 command_packet->byte8.io.sgl[i].length = sg_dma_len(sg); tw_scsiop_read_write()
1751 command_packet->size+=2; tw_scsiop_read_write()
1798 TW_Command *command_packet; tw_scsiop_synchronize_cache() local
1804 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; tw_scsiop_synchronize_cache()
1805 if (command_packet == NULL) { tw_scsiop_synchronize_cache()
1811 memset(command_packet, 0, sizeof(TW_Sector)); tw_scsiop_synchronize_cache()
1812 command_packet->opcode__sgloffset = TW_OPSGL_IN(0, TW_OP_FLUSH_CACHE); tw_scsiop_synchronize_cache()
1813 command_packet->size = 2; tw_scsiop_synchronize_cache()
1814 command_packet->request_id = request_id; tw_scsiop_synchronize_cache()
1815 command_packet->unit__hostid = TW_UNITHOST_IN(0, tw_dev->srb[request_id]->device->id); tw_scsiop_synchronize_cache()
1816 command_packet->status = 0; tw_scsiop_synchronize_cache()
1817 command_packet->flags = 0; tw_scsiop_synchronize_cache()
1818 command_packet->byte6.parameter_count = 1; tw_scsiop_synchronize_cache()
1835 TW_Command *command_packet; tw_scsiop_test_unit_ready() local
1842 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; tw_scsiop_test_unit_ready()
1843 if (command_packet == NULL) { tw_scsiop_test_unit_ready()
1847 memset(command_packet, 0, sizeof(TW_Sector)); tw_scsiop_test_unit_ready()
1848 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); tw_scsiop_test_unit_ready()
1849 command_packet->size = 4; tw_scsiop_test_unit_ready()
1850 command_packet->request_id = request_id; tw_scsiop_test_unit_ready()
1851 command_packet->status = 0; tw_scsiop_test_unit_ready()
1852 command_packet->flags = 0; tw_scsiop_test_unit_ready()
1853 command_packet->byte6.parameter_count = 1; tw_scsiop_test_unit_ready()
1871 command_packet->byte8.param.sgl[0].address = param_value; tw_scsiop_test_unit_ready()
1872 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); tw_scsiop_test_unit_ready()
1996 TW_Command *command_packet; tw_interrupt() local
2076 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; tw_interrupt()
2080 if (command_packet->status != 0) { tw_interrupt()
H A D3w-9xxx.c230 TW_Command *command_packet; twa_aen_complete() local
239 command_packet = &full_command_packet->command.oldcommand; twa_aen_complete()
242 if (TW_OP_OUT(command_packet->opcode__sgloffset) == TW_OP_SET_PARAM) { twa_aen_complete()
481 TW_Command *command_packet; twa_aen_sync_time() local
488 command_packet = &full_command_packet->command.oldcommand; twa_aen_sync_time()
489 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_SET_PARAM); twa_aen_sync_time()
490 command_packet->request_id = request_id; twa_aen_sync_time()
491 command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[request_id]); twa_aen_sync_time()
492 command_packet->byte8_offset.param.sgl[0].length = cpu_to_le32(TW_SECTOR_SIZE); twa_aen_sync_time()
493 command_packet->size = TW_COMMAND_SIZE; twa_aen_sync_time()
494 command_packet->byte6_offset.parameter_count = cpu_to_le16(1); twa_aen_sync_time()
1058 TW_Command *command_packet; twa_get_param() local
1065 command_packet = &full_command_packet->command.oldcommand; twa_get_param()
1067 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); twa_get_param()
1068 command_packet->size = TW_COMMAND_SIZE; twa_get_param()
1069 command_packet->request_id = request_id; twa_get_param()
1070 command_packet->byte6_offset.block_count = cpu_to_le16(1); twa_get_param()
1079 command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[request_id]); twa_get_param()
1080 command_packet->byte8_offset.param.sgl[0].length = cpu_to_le32(TW_SECTOR_SIZE); twa_get_param()
1804 TW_Command_Apache *command_packet; twa_scsiop_execute_scsi() local
1823 command_packet = &full_command_packet->command.newcommand; twa_scsiop_execute_scsi()
1824 command_packet->status = 0; twa_scsiop_execute_scsi()
1825 command_packet->opcode__reserved = TW_OPRES_IN(0, TW_OP_EXECUTE_SCSI); twa_scsiop_execute_scsi()
1829 memcpy(command_packet->cdb, srb->cmnd, TW_MAX_CDB_LEN); twa_scsiop_execute_scsi()
1831 memcpy(command_packet->cdb, cdb, TW_MAX_CDB_LEN); twa_scsiop_execute_scsi()
1834 command_packet->unit = srb->device->id; twa_scsiop_execute_scsi()
1835 command_packet->request_id__lunl = twa_scsiop_execute_scsi()
1838 command_packet->request_id__lunl = twa_scsiop_execute_scsi()
1840 command_packet->unit = 0; twa_scsiop_execute_scsi()
1843 command_packet->sgl_offset = 16; twa_scsiop_execute_scsi()
1855 command_packet->sg_list[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[request_id]); twa_scsiop_execute_scsi()
1856 command_packet->sg_list[0].length = cpu_to_le32(TW_MIN_SGL_LENGTH); twa_scsiop_execute_scsi()
1863 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sg_dma_address(sg)); scsi_for_each_sg()
1864 command_packet->sg_list[i].length = cpu_to_le32(sg_dma_len(sg)); scsi_for_each_sg()
1865 if (command_packet->sg_list[i].address & TW_CPU_TO_SGL(TW_ALIGNMENT_9000_SGL)) { scsi_for_each_sg()
1871 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_count(tw_dev->srb[request_id])));
1876 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sglistarg[i].address);
1877 command_packet->sg_list[i].length = cpu_to_le32(sglistarg[i].length);
1878 if (command_packet->sg_list[i].address & TW_CPU_TO_SGL(TW_ALIGNMENT_9000_SGL)) {
1883 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg));
H A D3w-sas.c297 TW_Command_Apache *command_packet; twl_scsiop_execute_scsi() local
315 command_packet = &full_command_packet->command.newcommand; twl_scsiop_execute_scsi()
316 command_packet->status = 0; twl_scsiop_execute_scsi()
317 command_packet->opcode__reserved = TW_OPRES_IN(0, TW_OP_EXECUTE_SCSI); twl_scsiop_execute_scsi()
321 memcpy(command_packet->cdb, srb->cmnd, TW_MAX_CDB_LEN); twl_scsiop_execute_scsi()
323 memcpy(command_packet->cdb, cdb, TW_MAX_CDB_LEN); twl_scsiop_execute_scsi()
326 command_packet->unit = srb->device->id; twl_scsiop_execute_scsi()
327 command_packet->request_id__lunl = twl_scsiop_execute_scsi()
330 command_packet->request_id__lunl = twl_scsiop_execute_scsi()
332 command_packet->unit = 0; twl_scsiop_execute_scsi()
335 command_packet->sgl_offset = 16; twl_scsiop_execute_scsi()
345 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sg_dma_address(sg)); scsi_for_each_sg()
346 command_packet->sg_list[i].length = TW_CPU_TO_SGL(sg_dma_len(sg)); scsi_for_each_sg()
348 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_count(tw_dev->srb[request_id])));
353 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sglistarg[i].address);
354 command_packet->sg_list[i].length = TW_CPU_TO_SGL(sglistarg[i].length);
356 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg));
416 TW_Command *command_packet; twl_aen_sync_time() local
423 command_packet = &full_command_packet->command.oldcommand; twl_aen_sync_time()
424 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_SET_PARAM); twl_aen_sync_time()
425 command_packet->request_id = request_id; twl_aen_sync_time()
426 command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[request_id]); twl_aen_sync_time()
427 command_packet->byte8_offset.param.sgl[0].length = TW_CPU_TO_SGL(TW_SECTOR_SIZE); twl_aen_sync_time()
428 command_packet->size = TW_COMMAND_SIZE; twl_aen_sync_time()
429 command_packet->byte6_offset.parameter_count = cpu_to_le16(1); twl_aen_sync_time()
474 TW_Command *command_packet; twl_aen_complete() local
483 command_packet = &full_command_packet->command.oldcommand; twl_aen_complete()
486 if (TW_OP_OUT(command_packet->opcode__sgloffset) == TW_OP_SET_PARAM) { twl_aen_complete()
933 TW_Command *command_packet; twl_get_param() local
940 command_packet = &full_command_packet->command.oldcommand; twl_get_param()
942 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); twl_get_param()
943 command_packet->size = TW_COMMAND_SIZE; twl_get_param()
944 command_packet->request_id = request_id; twl_get_param()
945 command_packet->byte6_offset.block_count = cpu_to_le16(1); twl_get_param()
954 command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[request_id]); twl_get_param()
955 command_packet->byte8_offset.param.sgl[0].length = TW_CPU_TO_SGL(TW_SECTOR_SIZE); twl_get_param()

Completed in 487 milliseconds