Lines Matching refs:vrq
95 rq->vrq->scsi.function = vi->function; 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()
176 rq->vrq->mgt.payld_sge); 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()
297 esas2r_nuxi_mgt_data(rq->vrq->mgt.mgt_func, &vi->cmd.mgt.data); in esas2r_complete_vda_ioctl()
327 esas2r_nuxi_cfg_data(rq->vrq->cfg.sub_func, in esas2r_complete_vda_ioctl()
353 struct atto_vda_flash_req *vrq = &rq->vrq->flash; in esas2r_build_flash_req() local
357 rq->vrq->scsi.function = VDA_FUNC_FLASH; in esas2r_build_flash_req()
362 vrq->sg_list_offset = (u8)offsetof(struct atto_vda_flash_req, in esas2r_build_flash_req()
365 vrq->length = cpu_to_le32(length); in esas2r_build_flash_req()
366 vrq->flash_addr = cpu_to_le32(addr); in esas2r_build_flash_req()
367 vrq->checksum = cksum; in esas2r_build_flash_req()
368 vrq->sub_func = sub_func; in esas2r_build_flash_req()
380 struct atto_vda_mgmt_req *vrq = &rq->vrq->mgt; in esas2r_build_mgt_req() local
384 rq->vrq->scsi.function = VDA_FUNC_MGT; in esas2r_build_mgt_req()
386 vrq->mgt_func = sub_func; in esas2r_build_mgt_req()
387 vrq->scan_generation = scan_gen; in esas2r_build_mgt_req()
388 vrq->dev_index = cpu_to_le16(dev_index); in esas2r_build_mgt_req()
389 vrq->length = cpu_to_le32(length); in esas2r_build_mgt_req()
391 if (vrq->length) { in esas2r_build_mgt_req()
393 vrq->sg_list_offset = (u8)offsetof( in esas2r_build_mgt_req()
396 vrq->sge[0].length = cpu_to_le32(SGE_LAST | length); in esas2r_build_mgt_req()
397 vrq->sge[0].address = cpu_to_le64( in esas2r_build_mgt_req()
401 vrq->sg_list_offset = (u8)offsetof( in esas2r_build_mgt_req()
404 vrq->prde[0].ctl_len = cpu_to_le32(length); in esas2r_build_mgt_req()
405 vrq->prde[0].address = cpu_to_le64( in esas2r_build_mgt_req()
422 struct atto_vda_ae_req *vrq = &rq->vrq->ae; in esas2r_build_ae_req() local
426 rq->vrq->scsi.function = VDA_FUNC_AE; in esas2r_build_ae_req()
428 vrq->length = cpu_to_le32(sizeof(struct atto_vda_ae_data)); in esas2r_build_ae_req()
431 vrq->sg_list_offset = in esas2r_build_ae_req()
433 vrq->sge[0].length = cpu_to_le32(SGE_LAST | vrq->length); in esas2r_build_ae_req()
434 vrq->sge[0].address = cpu_to_le64( in esas2r_build_ae_req()
438 vrq->sg_list_offset = (u8)offsetof(struct atto_vda_ae_req, in esas2r_build_ae_req()
440 vrq->prde[0].ctl_len = cpu_to_le32(vrq->length); in esas2r_build_ae_req()
441 vrq->prde[0].address = cpu_to_le64( in esas2r_build_ae_req()
453 struct atto_vda_cli_req *vrq = &rq->vrq->cli; in esas2r_build_cli_req() local
457 rq->vrq->scsi.function = VDA_FUNC_CLI; in esas2r_build_cli_req()
459 vrq->length = cpu_to_le32(length); in esas2r_build_cli_req()
460 vrq->cmd_rsp_len = cpu_to_le32(cmd_rsp_len); in esas2r_build_cli_req()
461 vrq->sg_list_offset = (u8)offsetof(struct atto_vda_cli_req, sge); in esas2r_build_cli_req()
470 struct atto_vda_ioctl_req *vrq = &rq->vrq->ioctl; in esas2r_build_ioctl_req() local
474 rq->vrq->scsi.function = VDA_FUNC_IOCTL; in esas2r_build_ioctl_req()
476 vrq->length = cpu_to_le32(length); in esas2r_build_ioctl_req()
477 vrq->sub_func = sub_func; in esas2r_build_ioctl_req()
478 vrq->sg_list_offset = (u8)offsetof(struct atto_vda_ioctl_req, sge); in esas2r_build_ioctl_req()
488 struct atto_vda_cfg_req *vrq = &rq->vrq->cfg; in esas2r_build_cfg_req() local
492 rq->vrq->scsi.function = VDA_FUNC_CFG; in esas2r_build_cfg_req()
494 vrq->sub_func = sub_func; in esas2r_build_cfg_req()
495 vrq->length = cpu_to_le32(length); in esas2r_build_cfg_req()
500 memcpy(&vrq->data, data, length); in esas2r_build_cfg_req()
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()