• Home
  • Raw
  • Download

Lines Matching refs:req

174 	struct be_cmd_reopen_session_req *req;  in mgmt_reopen_session()  local
189 req = embedded_payload(wrb); in mgmt_reopen_session()
191 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in mgmt_reopen_session()
192 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI_INI, in mgmt_reopen_session()
197 req->reopen_type = reopen_type; in mgmt_reopen_session()
198 req->session_handle = sess_handle; in mgmt_reopen_session()
209 struct be_cmd_get_boot_target_req *req; in mgmt_get_boot_target() local
224 req = embedded_payload(wrb); in mgmt_get_boot_target()
226 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in mgmt_get_boot_target()
227 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI_INI, in mgmt_get_boot_target()
243 struct be_cmd_get_session_req *req; in mgmt_get_session_info() local
259 req = nonemb_cmd->va; in mgmt_get_session_info()
260 memset(req, 0, sizeof(*req)); in mgmt_get_session_info()
267 be_wrb_hdr_prepare(wrb, sizeof(*req), false, 1); in mgmt_get_session_info()
268 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI_INI, in mgmt_get_session_info()
271 req->session_handle = boot_session_handle; in mgmt_get_session_info()
285 struct be_fw_cfg *req = embedded_payload(wrb); in mgmt_get_fw_config() local
291 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in mgmt_get_fw_config()
293 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON, in mgmt_get_fw_config()
294 OPCODE_COMMON_QUERY_FIRMWARE_CONFIG, sizeof(*req)); in mgmt_get_fw_config()
298 pfw_cfg = req; in mgmt_get_fw_config()
330 struct be_mgmt_controller_attributes *req; in mgmt_check_supported_fw() local
344 req = nonemb_cmd.va; in mgmt_check_supported_fw()
345 memset(req, 0, sizeof(*req)); in mgmt_check_supported_fw()
348 be_wrb_hdr_prepare(wrb, sizeof(*req), false, 1); in mgmt_check_supported_fw()
349 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON, in mgmt_check_supported_fw()
350 OPCODE_COMMON_GET_CNTL_ATTRIBUTES, sizeof(*req)); in mgmt_check_supported_fw()
394 struct be_bsg_vendor_cmd *req = nonemb_cmd->va; in mgmt_vendor_specific_fw_cmd() local
404 req->region = region; in mgmt_vendor_specific_fw_cmd()
405 req->sector = sector; in mgmt_vendor_specific_fw_cmd()
406 req->offset = offset; in mgmt_vendor_specific_fw_cmd()
413 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI, in mgmt_vendor_specific_fw_cmd()
414 OPCODE_COMMON_WRITE_FLASH, sizeof(*req)); in mgmt_vendor_specific_fw_cmd()
420 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI, in mgmt_vendor_specific_fw_cmd()
421 OPCODE_COMMON_READ_FLASH, sizeof(*req)); in mgmt_vendor_specific_fw_cmd()
455 struct iscsi_cleanup_req *req = embedded_payload(wrb); in mgmt_epfw_cleanup() local
461 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in mgmt_epfw_cleanup()
462 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI, in mgmt_epfw_cleanup()
463 OPCODE_COMMON_ISCSI_CLEANUP, sizeof(*req)); in mgmt_epfw_cleanup()
465 req->chute = chute; in mgmt_epfw_cleanup()
466 req->hdr_ring_id = cpu_to_le16(HWI_GET_DEF_HDRQ_ID(phba)); in mgmt_epfw_cleanup()
467 req->data_ring_id = cpu_to_le16(HWI_GET_DEF_BUFQ_ID(phba)); in mgmt_epfw_cleanup()
486 struct invalidate_commands_params_in *req; in mgmt_invalidate_icds() local
496 req = nonemb_cmd->va; in mgmt_invalidate_icds()
497 memset(req, 0, sizeof(*req)); in mgmt_invalidate_icds()
502 be_wrb_hdr_prepare(wrb, sizeof(*req), false, 1); in mgmt_invalidate_icds()
503 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI, in mgmt_invalidate_icds()
505 sizeof(*req)); in mgmt_invalidate_icds()
506 req->ref_handle = 0; in mgmt_invalidate_icds()
507 req->cleanup_type = CMD_ISCSI_COMMAND_INVALIDATE; in mgmt_invalidate_icds()
509 req->table[i].icd = inv_tbl->icd; in mgmt_invalidate_icds()
510 req->table[i].cid = inv_tbl->cid; in mgmt_invalidate_icds()
511 req->icd_count++; in mgmt_invalidate_icds()
531 struct iscsi_invalidate_connection_params_in *req; in mgmt_invalidate_connection() local
542 req = embedded_payload(wrb); in mgmt_invalidate_connection()
544 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in mgmt_invalidate_connection()
545 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI_INI, in mgmt_invalidate_connection()
547 sizeof(*req)); in mgmt_invalidate_connection()
548 req->session_handle = beiscsi_ep->fw_handle; in mgmt_invalidate_connection()
549 req->cid = cid; in mgmt_invalidate_connection()
551 req->cleanup_type = CMD_ISCSI_CONNECTION_ISSUE_TCP_RST; in mgmt_invalidate_connection()
553 req->cleanup_type = CMD_ISCSI_CONNECTION_INVALIDATE; in mgmt_invalidate_connection()
554 req->save_cfg = savecfg_flag; in mgmt_invalidate_connection()
565 struct tcp_upload_params_in *req; in mgmt_upload_connection() local
575 req = embedded_payload(wrb); in mgmt_upload_connection()
578 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in mgmt_upload_connection()
579 be_cmd_hdr_prepare(&req->hdr, CMD_COMMON_TCP_UPLOAD, in mgmt_upload_connection()
580 OPCODE_COMMON_TCP_UPLOAD, sizeof(*req)); in mgmt_upload_connection()
581 req->id = (unsigned short)cid; in mgmt_upload_connection()
582 req->upload_type = (unsigned char)upload_flag; in mgmt_upload_connection()
599 struct tcp_connect_and_offload_in *req; in mgmt_open_connection() local
626 req = nonemb_cmd->va; in mgmt_open_connection()
627 memset(req, 0, sizeof(*req)); in mgmt_open_connection()
630 be_wrb_hdr_prepare(wrb, sizeof(*req), false, 1); in mgmt_open_connection()
631 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI, in mgmt_open_connection()
633 sizeof(*req)); in mgmt_open_connection()
636 req->ip_address.ip_type = BE2_IPV4; in mgmt_open_connection()
637 req->ip_address.addr[0] = s_addr & 0x000000ff; in mgmt_open_connection()
638 req->ip_address.addr[1] = (s_addr & 0x0000ff00) >> 8; in mgmt_open_connection()
639 req->ip_address.addr[2] = (s_addr & 0x00ff0000) >> 16; in mgmt_open_connection()
640 req->ip_address.addr[3] = (s_addr & 0xff000000) >> 24; in mgmt_open_connection()
641 req->tcp_port = ntohs(daddr_in->sin_port); in mgmt_open_connection()
646 req->ip_address.ip_type = BE2_IPV6; in mgmt_open_connection()
647 memcpy(&req->ip_address.addr, in mgmt_open_connection()
649 req->tcp_port = ntohs(daddr_in6->sin6_port); in mgmt_open_connection()
663 req->cid = cid; in mgmt_open_connection()
667 req->cq_id = phwi_context->be_cq[i].id; in mgmt_open_connection()
669 "BG_%d : i=%d cq_id=%d\n", i, req->cq_id); in mgmt_open_connection()
670 req->defq_id = def_hdr_id; in mgmt_open_connection()
671 req->hdr_ring_id = def_hdr_id; in mgmt_open_connection()
672 req->data_ring_id = def_data_id; in mgmt_open_connection()
673 req->do_offload = 1; in mgmt_open_connection()
674 req->dataout_template_pa.lo = ptemplate_address->lo; in mgmt_open_connection()
675 req->dataout_template_pa.hi = ptemplate_address->hi; in mgmt_open_connection()
688 struct be_cmd_get_all_if_id_req *req = embedded_payload(wrb); in mgmt_get_all_if_id() local
689 struct be_cmd_get_all_if_id_req *pbe_allid = req; in mgmt_get_all_if_id()
696 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in mgmt_get_all_if_id()
697 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI, in mgmt_get_all_if_id()
699 sizeof(*req)); in mgmt_get_all_if_id()
790 struct be_cmd_set_ip_addr_req *req; in mgmt_static_ip_modify() local
797 sizeof(*req)); in mgmt_static_ip_modify()
804 req = nonemb_cmd.va; in mgmt_static_ip_modify()
805 req->ip_params.record_entry_count = 1; in mgmt_static_ip_modify()
806 req->ip_params.ip_record.action = ip_action; in mgmt_static_ip_modify()
807 req->ip_params.ip_record.interface_hndl = in mgmt_static_ip_modify()
809 req->ip_params.ip_record.ip_addr.size_of_structure = in mgmt_static_ip_modify()
811 req->ip_params.ip_record.ip_addr.ip_type = ip_type; in mgmt_static_ip_modify()
814 memcpy(req->ip_params.ip_record.ip_addr.addr, ip_param->value, in mgmt_static_ip_modify()
818 memcpy(req->ip_params.ip_record.ip_addr.subnet_mask, in mgmt_static_ip_modify()
821 memcpy(req->ip_params.ip_record.ip_addr.addr, in mgmt_static_ip_modify()
824 memcpy(req->ip_params.ip_record.ip_addr.subnet_mask, in mgmt_static_ip_modify()
838 struct be_cmd_set_def_gateway_req *req; in mgmt_modify_gateway() local
845 sizeof(*req)); in mgmt_modify_gateway()
849 req = nonemb_cmd.va; in mgmt_modify_gateway()
850 req->action = gtway_action; in mgmt_modify_gateway()
851 req->ip_addr.ip_type = BE2_IPV4; in mgmt_modify_gateway()
853 memcpy(req->ip_addr.addr, gt_addr, param_len); in mgmt_modify_gateway()
1016 struct be_cmd_get_def_gateway_req *req; in mgmt_get_gateway() local
1026 req = nonemb_cmd.va; in mgmt_get_gateway()
1027 req->ip_type = ip_type; in mgmt_get_gateway()
1036 struct be_cmd_get_if_info_req *req; in mgmt_get_if_info() local
1049 req = nonemb_cmd.va; in mgmt_get_if_info()
1050 req->interface_hndl = phba->interface_handle; in mgmt_get_if_info()
1051 req->ip_type = ip_type; in mgmt_get_if_info()
1078 struct be_cmd_hba_name *req; in be_cmd_get_initname() local
1089 req = embedded_payload(wrb); in be_cmd_get_initname()
1091 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in be_cmd_get_initname()
1092 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI_INI, in be_cmd_get_initname()
1094 sizeof(*req)); in be_cmd_get_initname()
1105 struct be_cmd_ntwk_link_status_req *req; in be_cmd_get_port_speed() local
1116 req = embedded_payload(wrb); in be_cmd_get_port_speed()
1118 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in be_cmd_get_port_speed()
1119 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON, in be_cmd_get_port_speed()
1121 sizeof(*req)); in be_cmd_get_port_speed()