Lines Matching refs:param

255 	TW_Param *param;  in tw_aen_complete()  local
264 param = (TW_Param *)tw_dev->alignment_virtual_address[request_id]; in tw_aen_complete()
265 aen = *(unsigned short *)(param->data); in tw_aen_complete()
320 TW_Param *param; in tw_aen_drain_queue() local
375 param = (TW_Param *)tw_dev->alignment_virtual_address[request_id]; in tw_aen_drain_queue()
376 memset(param, 0, sizeof(TW_Sector)); in tw_aen_drain_queue()
377 param->table_id = 0x401; /* AEN table */ in tw_aen_drain_queue()
378 param->parameter_id = 2; /* Unit code */ in tw_aen_drain_queue()
379 param->parameter_size_bytes = 2; in tw_aen_drain_queue()
385 command_packet->byte8.param.sgl[0].address = param_value; in tw_aen_drain_queue()
386 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_aen_drain_queue()
415 aen = *(unsigned short *)(param->data); in tw_aen_drain_queue()
485 TW_Param *param; in tw_aen_read_queue() local
526 param = (TW_Param *)tw_dev->alignment_virtual_address[request_id]; in tw_aen_read_queue()
527 memset(param, 0, sizeof(TW_Sector)); in tw_aen_read_queue()
528 param->table_id = 0x401; /* AEN table */ in tw_aen_read_queue()
529 param->parameter_id = 2; /* Unit code */ in tw_aen_read_queue()
530 param->parameter_size_bytes = 2; in tw_aen_read_queue()
536 command_packet->byte8.param.sgl[0].address = param_value; in tw_aen_read_queue()
537 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_aen_read_queue()
727 tw_ioctl->firmware_command.byte8.param.sgl[0].address = dma_handle + sizeof(TW_New_Ioctl) - 1; in tw_chrdev_ioctl()
728 tw_ioctl->firmware_command.byte8.param.sgl[0].length = data_buffer_length_adjusted; in tw_chrdev_ioctl()
1409 TW_Param *param; in tw_initialize_units() local
1446 param = (TW_Param *)tw_dev->alignment_virtual_address[request_id]; in tw_initialize_units()
1447 memset(param, 0, sizeof(TW_Sector)); in tw_initialize_units()
1448 param->table_id = 3; /* unit summary table */ in tw_initialize_units()
1449 param->parameter_id = 3; /* unitstatus parameter */ in tw_initialize_units()
1450 param->parameter_size_bytes = TW_MAX_UNITS; in tw_initialize_units()
1457 command_packet->byte8.param.sgl[0].address = param_value; in tw_initialize_units()
1458 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_initialize_units()
1490 param = (TW_Param *)tw_dev->alignment_virtual_address[request_id]; in tw_initialize_units()
1491 is_unit_present = (unsigned char *)&(param->data[0]); in tw_initialize_units()
1538 param = (TW_Param *)tw_dev->alignment_virtual_address[request_id]; in tw_initialize_units()
1539 memset(param, 0, sizeof(TW_Sector)); in tw_initialize_units()
1540 param->table_id = 0x300+j; /* unit summary table */ in tw_initialize_units()
1541 param->parameter_id = 0x6; /* unit descriptor */ in tw_initialize_units()
1542 param->parameter_size_bytes = 0xc; in tw_initialize_units()
1549 command_packet->byte8.param.sgl[0].address = param_value; in tw_initialize_units()
1550 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_initialize_units()
1582 param = (TW_Param *)tw_dev->alignment_virtual_address[request_id]; in tw_initialize_units()
1583 raid_level = (unsigned char *)&(param->data[1]); in tw_initialize_units()
1824 TW_Param *param; in tw_ioctl() local
1867 param = (TW_Param *)tw_dev->alignment_virtual_address[request_id]; in tw_ioctl()
1868 memset(param, 0, sizeof(TW_Sector)); in tw_ioctl()
1882 param->table_id = ioctl->table_id; in tw_ioctl()
1883 param->parameter_id = ioctl->parameter_id; in tw_ioctl()
1884 param->parameter_size_bytes = ioctl->parameter_size_bytes; in tw_ioctl()
1886 …_id = %d parameter_id = %d parameter_size_bytes %d\n", param->table_id, param->parameter_id, param in tw_ioctl()
1893 param->table_id = ioctl->table_id; in tw_ioctl()
1894 param->parameter_id = ioctl->parameter_id; in tw_ioctl()
1895 param->parameter_size_bytes = ioctl->parameter_size_bytes; in tw_ioctl()
1896 memcpy(param->data, ioctl->data, ioctl->parameter_size_bytes); in tw_ioctl()
1936 if ((passthru->param != 0) && (passthru->param != 0x8)) { in tw_ioctl()
1974 total_bytes+=command_packet->byte8.param.sgl[i].length; in tw_ioctl()
1985 if (command_packet->byte8.param.sgl[i].address != 0) { in tw_ioctl()
1986 …a_ptr, (void *)(unsigned long)command_packet->byte8.param.sgl[i].address, command_packet->byte8.pa… in tw_ioctl()
1996 data_ptr+=command_packet->byte8.param.sgl[i].length; in tw_ioctl()
1999 command_packet->byte8.param.sgl[0].address = dma_handle; in tw_ioctl()
2000 command_packet->byte8.param.sgl[0].length = total_bytes; in tw_ioctl()
2073 if (command_save->byte8.param.sgl[i].address != 0) { in tw_ioctl()
2074 …user((void *)(unsigned long)command_save->byte8.param.sgl[i].address, data_ptr, command_save->byte… in tw_ioctl()
2079 …opied %ld bytes to pid %d.\n", tw_dev->host->host_no, command_save->byte8.param.sgl[i].length, cur… in tw_ioctl()
2080 data_ptr+=command_save->byte8.param.sgl[i].length; in tw_ioctl()
2147 command_packet->byte8.param.sgl[0].address = param_value; in tw_ioctl()
2148 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_ioctl()
2169 TW_Param *param; in tw_ioctl_complete() local
2195 if ((passthru->param != 0) && (passthru->param != 0x8)) in tw_ioctl_complete()
2209 param = (TW_Param *)tw_dev->alignment_virtual_address[request_id]; in tw_ioctl_complete()
2210 if (param == NULL) { in tw_ioctl_complete()
2214 param_data = &(param->data[0]); in tw_ioctl_complete()
2839 TW_Param *param; in tw_scsiop_inquiry() local
2870 param = (TW_Param *)tw_dev->alignment_virtual_address[request_id]; in tw_scsiop_inquiry()
2871 memset(param, 0, sizeof(TW_Sector)); in tw_scsiop_inquiry()
2872 param->table_id = 3; /* unit summary table */ in tw_scsiop_inquiry()
2873 param->parameter_id = 3; /* unitsstatus parameter */ in tw_scsiop_inquiry()
2874 param->parameter_size_bytes = TW_MAX_UNITS; in tw_scsiop_inquiry()
2881 command_packet->byte8.param.sgl[0].address = param_value; in tw_scsiop_inquiry()
2882 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_scsiop_inquiry()
2900 TW_Param *param; in tw_scsiop_inquiry_complete() local
2919 param = (TW_Param *)tw_dev->alignment_virtual_address[request_id]; in tw_scsiop_inquiry_complete()
2920 if (param == NULL) { in tw_scsiop_inquiry_complete()
2924 is_unit_present = &(param->data[0]); in tw_scsiop_inquiry_complete()
2940 TW_Param *param; in tw_scsiop_mode_sense() local
2981 param = (TW_Param *)tw_dev->alignment_virtual_address[request_id]; in tw_scsiop_mode_sense()
2982 memset(param, 0, sizeof(TW_Sector)); in tw_scsiop_mode_sense()
2983 param->table_id = TW_UNIT_INFORMATION_TABLE_BASE + tw_dev->srb[request_id]->target; in tw_scsiop_mode_sense()
2984 param->parameter_id = 7; /* unit flags */ in tw_scsiop_mode_sense()
2985 param->parameter_size_bytes = 1; in tw_scsiop_mode_sense()
2992 command_packet->byte8.param.sgl[0].address = param_value; in tw_scsiop_mode_sense()
2993 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_scsiop_mode_sense()
3009 TW_Param *param; in tw_scsiop_mode_sense_complete() local
3015 param = (TW_Param *)tw_dev->alignment_virtual_address[request_id]; in tw_scsiop_mode_sense_complete()
3016 if (param == NULL) { in tw_scsiop_mode_sense_complete()
3020 flags = (char *)&(param->data[0]); in tw_scsiop_mode_sense_complete()
3041 TW_Param *param; in tw_scsiop_read_capacity() local
3073 param = (TW_Param *)tw_dev->alignment_virtual_address[request_id]; in tw_scsiop_read_capacity()
3074 memset(param, 0, sizeof(TW_Sector)); in tw_scsiop_read_capacity()
3075 param->table_id = TW_UNIT_INFORMATION_TABLE_BASE + in tw_scsiop_read_capacity()
3077 param->parameter_id = 4; /* unitcapacity parameter */ in tw_scsiop_read_capacity()
3078 param->parameter_size_bytes = 4; in tw_scsiop_read_capacity()
3085 command_packet->byte8.param.sgl[0].address = param_value; in tw_scsiop_read_capacity()
3086 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_scsiop_read_capacity()
3105 TW_Param *param; in tw_scsiop_read_capacity_complete() local
3115 param = (TW_Param *)tw_dev->alignment_virtual_address[request_id]; in tw_scsiop_read_capacity_complete()
3116 if (param == NULL) { in tw_scsiop_read_capacity_complete()
3120 param_data = &(param->data[0]); in tw_scsiop_read_capacity_complete()
3342 TW_Param *param; in tw_scsiop_test_unit_ready() local
3373 param = (TW_Param *)tw_dev->alignment_virtual_address[request_id]; in tw_scsiop_test_unit_ready()
3374 memset(param, 0, sizeof(TW_Sector)); in tw_scsiop_test_unit_ready()
3375 param->table_id = 3; /* unit summary table */ in tw_scsiop_test_unit_ready()
3376 param->parameter_id = 3; /* unitsstatus parameter */ in tw_scsiop_test_unit_ready()
3377 param->parameter_size_bytes = TW_MAX_UNITS; in tw_scsiop_test_unit_ready()
3384 command_packet->byte8.param.sgl[0].address = param_value; in tw_scsiop_test_unit_ready()
3385 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_scsiop_test_unit_ready()
3402 TW_Param *param; in tw_scsiop_test_unit_ready_complete() local
3406 param = (TW_Param *)tw_dev->alignment_virtual_address[request_id]; in tw_scsiop_test_unit_ready_complete()
3407 if (param == NULL) { in tw_scsiop_test_unit_ready_complete()
3411 is_unit_present = &(param->data[0]); in tw_scsiop_test_unit_ready_complete()
3453 TW_Param *param; in tw_setfeature() local
3469 param = (TW_Param *)tw_dev->alignment_virtual_address[request_id]; in tw_setfeature()
3473 param->table_id = 0x404; /* Features table */ in tw_setfeature()
3474 param->parameter_id = parm; in tw_setfeature()
3475 param->parameter_size_bytes = param_size; in tw_setfeature()
3476 memcpy(param->data, val, param_size); in tw_setfeature()
3486 command_packet->byte8.param.sgl[0].address = param_value; in tw_setfeature()
3487 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_setfeature()