H A D | 3w-xxxx.c | 544 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()
|