• Home
  • Raw
  • Download

Lines Matching refs:rq

59 static void clear_vda_request(struct esas2r_request *rq);
62 struct esas2r_request *rq);
67 struct esas2r_request *rq, in esas2r_process_vda_ioctl() argument
93 clear_vda_request(rq); in esas2r_process_vda_ioctl()
95 rq->vrq->scsi.function = vi->function; in esas2r_process_vda_ioctl()
96 rq->interrupt_cb = esas2r_complete_vda_ioctl; in esas2r_process_vda_ioctl()
97 rq->interrupt_cx = vi; in esas2r_process_vda_ioctl()
112 rq->vrq->flash.length = cpu_to_le32(datalen); in esas2r_process_vda_ioctl()
113 rq->vrq->flash.sub_func = vi->cmd.flash.sub_func; in esas2r_process_vda_ioctl()
115 memcpy(rq->vrq->flash.data.file.file_name, in esas2r_process_vda_ioctl()
119 firstsg = rq->vrq->flash.data.file.sge; in esas2r_process_vda_ioctl()
126 rq->vrq->cli.cmd_rsp_len = in esas2r_process_vda_ioctl()
128 rq->vrq->cli.length = cpu_to_le32(datalen); in esas2r_process_vda_ioctl()
130 firstsg = rq->vrq->cli.sge; in esas2r_process_vda_ioctl()
152 rq->vrq->mgt.payld_sglst_offset = in esas2r_process_vda_ioctl()
169 rq->vrq->mgt.length = cpu_to_le32(datalen); in esas2r_process_vda_ioctl()
172 rq->vrq->mgt.payld_length = in esas2r_process_vda_ioctl()
175 esas2r_sgc_init(sgc, a, rq, in esas2r_process_vda_ioctl()
176 rq->vrq->mgt.payld_sge); in esas2r_process_vda_ioctl()
179 if (!esas2r_build_sg_list(a, rq, sgc)) { in esas2r_process_vda_ioctl()
187 rq->vrq->mgt.length = cpu_to_le32(datalen); in esas2r_process_vda_ioctl()
194 firstsg = rq->vrq->mgt.sge; in esas2r_process_vda_ioctl()
198 rq->vrq->mgt.mgt_func = vi->cmd.mgt.mgt_func; in esas2r_process_vda_ioctl()
199 rq->vrq->mgt.scan_generation = vi->cmd.mgt.scan_generation; in esas2r_process_vda_ioctl()
200 rq->vrq->mgt.dev_index = in esas2r_process_vda_ioctl()
203 esas2r_nuxi_mgt_data(rq->vrq->mgt.mgt_func, &vi->cmd.mgt.data); in esas2r_process_vda_ioctl()
220 rq->vrq->cfg.sub_func = vi->cmd.cfg.cfg_func; in esas2r_process_vda_ioctl()
221 rq->vrq->cfg.length = cpu_to_le32(vi->cmd.cfg.data_length); in esas2r_process_vda_ioctl()
224 memcpy(&rq->vrq->cfg.data, in esas2r_process_vda_ioctl()
228 esas2r_nuxi_cfg_data(rq->vrq->cfg.sub_func, in esas2r_process_vda_ioctl()
229 &rq->vrq->cfg.data); in esas2r_process_vda_ioctl()
255 esas2r_sgc_init(sgc, a, rq, firstsg); in esas2r_process_vda_ioctl()
258 if (!esas2r_build_sg_list(a, rq, sgc)) { in esas2r_process_vda_ioctl()
264 esas2r_start_request(a, rq); in esas2r_process_vda_ioctl()
270 struct esas2r_request *rq) in esas2r_complete_vda_ioctl() argument
272 struct atto_ioctl_vda *vi = (struct atto_ioctl_vda *)rq->interrupt_cx; in esas2r_complete_vda_ioctl()
274 vi->vda_status = rq->req_stat; in esas2r_complete_vda_ioctl()
282 le32_to_cpu(rq->func_rsp.flash_rsp.file_size); in esas2r_complete_vda_ioctl()
289 rq->func_rsp.mgt_rsp.scan_generation; in esas2r_complete_vda_ioctl()
291 rq->func_rsp.mgt_rsp.dev_index); in esas2r_complete_vda_ioctl()
295 le32_to_cpu(rq->func_rsp.mgt_rsp.length); in esas2r_complete_vda_ioctl()
297 esas2r_nuxi_mgt_data(rq->vrq->mgt.mgt_func, &vi->cmd.mgt.data); in esas2r_complete_vda_ioctl()
304 struct atto_vda_cfg_rsp *rsp = &rq->func_rsp.cfg_rsp; in esas2r_complete_vda_ioctl()
327 esas2r_nuxi_cfg_data(rq->vrq->cfg.sub_func, in esas2r_complete_vda_ioctl()
336 le32_to_cpu(rq->func_rsp.cli_rsp.cmd_rsp_len); in esas2r_complete_vda_ioctl()
347 struct esas2r_request *rq, in esas2r_build_flash_req() argument
353 struct atto_vda_flash_req *vrq = &rq->vrq->flash; in esas2r_build_flash_req()
355 clear_vda_request(rq); in esas2r_build_flash_req()
357 rq->vrq->scsi.function = VDA_FUNC_FLASH; in esas2r_build_flash_req()
373 struct esas2r_request *rq, in esas2r_build_mgt_req() argument
380 struct atto_vda_mgmt_req *vrq = &rq->vrq->mgt; in esas2r_build_mgt_req()
382 clear_vda_request(rq); in esas2r_build_mgt_req()
384 rq->vrq->scsi.function = VDA_FUNC_MGT; in esas2r_build_mgt_req()
398 rq->vrq_md->phys_addr + in esas2r_build_mgt_req()
406 rq->vrq_md->phys_addr + in esas2r_build_mgt_req()
414 memcpy(&rq->vda_rsp_data->mgt_data.data.bytes[0], data, in esas2r_build_mgt_req()
420 void esas2r_build_ae_req(struct esas2r_adapter *a, struct esas2r_request *rq) in esas2r_build_ae_req() argument
422 struct atto_vda_ae_req *vrq = &rq->vrq->ae; in esas2r_build_ae_req()
424 clear_vda_request(rq); in esas2r_build_ae_req()
426 rq->vrq->scsi.function = VDA_FUNC_AE; in esas2r_build_ae_req()
435 rq->vrq_md->phys_addr + in esas2r_build_ae_req()
442 rq->vrq_md->phys_addr + in esas2r_build_ae_req()
449 struct esas2r_request *rq, in esas2r_build_cli_req() argument
453 struct atto_vda_cli_req *vrq = &rq->vrq->cli; in esas2r_build_cli_req()
455 clear_vda_request(rq); in esas2r_build_cli_req()
457 rq->vrq->scsi.function = VDA_FUNC_CLI; in esas2r_build_cli_req()
466 struct esas2r_request *rq, in esas2r_build_ioctl_req() argument
470 struct atto_vda_ioctl_req *vrq = &rq->vrq->ioctl; in esas2r_build_ioctl_req()
472 clear_vda_request(rq); in esas2r_build_ioctl_req()
474 rq->vrq->scsi.function = VDA_FUNC_IOCTL; in esas2r_build_ioctl_req()
483 struct esas2r_request *rq, in esas2r_build_cfg_req() argument
488 struct atto_vda_cfg_req *vrq = &rq->vrq->cfg; in esas2r_build_cfg_req()
490 clear_vda_request(rq); in esas2r_build_cfg_req()
492 rq->vrq->scsi.function = VDA_FUNC_CFG; in esas2r_build_cfg_req()
504 static void clear_vda_request(struct esas2r_request *rq) in clear_vda_request() argument
506 u32 handle = rq->vrq->scsi.handle; in clear_vda_request()
508 memset(rq->vrq, 0, sizeof(*rq->vrq)); in clear_vda_request()
510 rq->vrq->scsi.handle = handle; in clear_vda_request()
512 rq->req_stat = RS_PENDING; in clear_vda_request()
516 memset(rq->data_buf, 0, ESAS2R_DATA_BUF_LEN); in clear_vda_request()
523 INIT_LIST_HEAD(&rq->req_list); in clear_vda_request()