Lines Matching refs:command_struct
108 ips_io_cmd *command_struct; in ips_io_request_callback() local
126 command_struct = (ips_io_cmd *)command->command_buffer; in ips_io_request_callback()
127 command_struct->id = command->id; in ips_io_request_callback()
128 command_struct->drivenum = dsc->sc->drives[dsc->disk_number].drivenum; in ips_io_request_callback()
135 command_struct->segnum = segnum; in ips_io_request_callback()
143 command_struct->buffaddr = in ips_io_request_callback()
150 command_struct->buffaddr = segments[0].ds_addr; in ips_io_request_callback()
153 command_struct->command = cmdtype; in ips_io_request_callback()
154 command_struct->lba = bio->bio_offset / IPS_BLKSIZE; in ips_io_request_callback()
156 command_struct->length = length; in ips_io_request_callback()
267 ips_adapter_info_cmd *command_struct; in ips_adapter_info_callback() local
275 command_struct = (ips_adapter_info_cmd *)command->command_buffer; in ips_adapter_info_callback()
276 command_struct->command = IPS_ADAPTER_INFO_CMD; in ips_adapter_info_callback()
277 command_struct->id = command->id; in ips_adapter_info_callback()
278 command_struct->buffaddr = segments[0].ds_addr; in ips_adapter_info_callback()
363 ips_drive_cmd *command_struct; in ips_drive_info_callback() local
373 command_struct = (ips_drive_cmd *)command->command_buffer; in ips_drive_info_callback()
374 command_struct->command = IPS_DRIVE_INFO_CMD; in ips_drive_info_callback()
375 command_struct->id = command->id; in ips_drive_info_callback()
376 command_struct->buffaddr = segments[0].ds_addr; in ips_drive_info_callback()
460 ips_generic_cmd *command_struct; in ips_send_flush_cache_cmd() local
464 command_struct = (ips_generic_cmd *)command->command_buffer; in ips_send_flush_cache_cmd()
465 command_struct->command = IPS_CACHE_FLUSH_CMD; in ips_send_flush_cache_cmd()
466 command_struct->id = command->id; in ips_send_flush_cache_cmd()
544 ips_adapter_ffdc_cmd *command_struct; in ips_send_ffdc_reset_cmd() local
548 command_struct = (ips_adapter_ffdc_cmd *)command->command_buffer; in ips_send_ffdc_reset_cmd()
549 command_struct->command = IPS_FFDC_CMD; in ips_send_ffdc_reset_cmd()
550 command_struct->id = command->id; in ips_send_ffdc_reset_cmd()
551 command_struct->reset_count = sc->ffdc_resetcount; in ips_send_ffdc_reset_cmd()
552 command_struct->reset_type = 0x0; in ips_send_ffdc_reset_cmd()
553 ips_ffdc_settime(command_struct, sc->ffdc_resettime.tv_sec); in ips_send_ffdc_reset_cmd()
591 ips_rw_nvram_cmd *command_struct; in ips_write_nvram() local
596 command_struct = (ips_rw_nvram_cmd *)command->command_buffer; in ips_write_nvram()
597 command_struct->command = IPS_RW_NVRAM_CMD; in ips_write_nvram()
598 command_struct->id = command->id; in ips_write_nvram()
599 command_struct->pagenum = 5; in ips_write_nvram()
600 command_struct->rw = 1; /* write */ in ips_write_nvram()
620 ips_rw_nvram_cmd *command_struct; in ips_read_nvram_callback() local
629 command_struct = (ips_rw_nvram_cmd *)command->command_buffer; in ips_read_nvram_callback()
630 command_struct->command = IPS_RW_NVRAM_CMD; in ips_read_nvram_callback()
631 command_struct->id = command->id; in ips_read_nvram_callback()
632 command_struct->pagenum = 5; in ips_read_nvram_callback()
633 command_struct->rw = 0; in ips_read_nvram_callback()
634 command_struct->buffaddr = segments[0].ds_addr; in ips_read_nvram_callback()
710 ips_generic_cmd *command_struct; in ips_send_config_sync_cmd() local
714 command_struct = (ips_generic_cmd *)command->command_buffer; in ips_send_config_sync_cmd()
715 command_struct->command = IPS_CONFIG_SYNC_CMD; in ips_send_config_sync_cmd()
716 command_struct->id = command->id; in ips_send_config_sync_cmd()
717 command_struct->reserve2 = IPS_POCL; in ips_send_config_sync_cmd()
731 ips_generic_cmd *command_struct; in ips_send_error_table_cmd() local
735 command_struct = (ips_generic_cmd *)command->command_buffer; in ips_send_error_table_cmd()
736 command_struct->command = IPS_ERROR_TABLE_CMD; in ips_send_error_table_cmd()
737 command_struct->id = command->id; in ips_send_error_table_cmd()
738 command_struct->reserve2 = IPS_CSL; in ips_send_error_table_cmd()