Lines Matching refs:req
163 struct be_cmd_req_modify_eq_delay *req; in be_cmd_modify_eq_delay() local
175 req = embedded_payload(wrb); in be_cmd_modify_eq_delay()
178 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in be_cmd_modify_eq_delay()
179 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON, in be_cmd_modify_eq_delay()
180 OPCODE_COMMON_MODIFY_EQ_DELAY, sizeof(*req)); in be_cmd_modify_eq_delay()
182 req->num_eq = cpu_to_le32(num); in be_cmd_modify_eq_delay()
184 req->delay[i].eq_id = cpu_to_le32(set_eqd[i].eq_id); in be_cmd_modify_eq_delay()
185 req->delay[i].phase = 0; in be_cmd_modify_eq_delay()
186 req->delay[i].delay_multiplier = in be_cmd_modify_eq_delay()
211 struct be_cmd_reopen_session_req *req; in mgmt_reopen_session() local
226 req = embedded_payload(wrb); in mgmt_reopen_session()
228 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in mgmt_reopen_session()
229 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI_INI, in mgmt_reopen_session()
234 req->reopen_type = reopen_type; in mgmt_reopen_session()
235 req->session_handle = sess_handle; in mgmt_reopen_session()
246 struct be_cmd_get_boot_target_req *req; in mgmt_get_boot_target() local
261 req = embedded_payload(wrb); in mgmt_get_boot_target()
263 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in mgmt_get_boot_target()
264 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI_INI, in mgmt_get_boot_target()
280 struct be_cmd_get_session_req *req; in mgmt_get_session_info() local
296 req = nonemb_cmd->va; in mgmt_get_session_info()
297 memset(req, 0, sizeof(*req)); in mgmt_get_session_info()
304 be_wrb_hdr_prepare(wrb, sizeof(*req), false, 1); in mgmt_get_session_info()
305 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI_INI, in mgmt_get_session_info()
308 req->session_handle = boot_session_handle; in mgmt_get_session_info()
334 struct be_fw_cfg *req = embedded_payload(wrb); in mgmt_get_fw_config() local
340 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in mgmt_get_fw_config()
342 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON, in mgmt_get_fw_config()
349 pfw_cfg = req; in mgmt_get_fw_config()
427 struct be_mgmt_controller_attributes *req; in mgmt_check_supported_fw() local
441 req = nonemb_cmd.va; in mgmt_check_supported_fw()
442 memset(req, 0, sizeof(*req)); in mgmt_check_supported_fw()
445 be_wrb_hdr_prepare(wrb, sizeof(*req), false, 1); in mgmt_check_supported_fw()
446 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON, in mgmt_check_supported_fw()
447 OPCODE_COMMON_GET_CNTL_ATTRIBUTES, sizeof(*req)); in mgmt_check_supported_fw()
491 struct be_bsg_vendor_cmd *req = nonemb_cmd->va; in mgmt_vendor_specific_fw_cmd() local
501 req->region = region; in mgmt_vendor_specific_fw_cmd()
502 req->sector = sector; in mgmt_vendor_specific_fw_cmd()
503 req->offset = offset; in mgmt_vendor_specific_fw_cmd()
509 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI, in mgmt_vendor_specific_fw_cmd()
510 OPCODE_COMMON_WRITE_FLASH, sizeof(*req)); in mgmt_vendor_specific_fw_cmd()
516 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI, in mgmt_vendor_specific_fw_cmd()
517 OPCODE_COMMON_READ_FLASH, sizeof(*req)); in mgmt_vendor_specific_fw_cmd()
562 struct iscsi_cleanup_req *req = embedded_payload(wrb); in mgmt_epfw_cleanup() local
567 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in mgmt_epfw_cleanup()
568 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI, in mgmt_epfw_cleanup()
569 OPCODE_COMMON_ISCSI_CLEANUP, sizeof(*req)); in mgmt_epfw_cleanup()
571 req->chute = (1 << ulp_num); in mgmt_epfw_cleanup()
572 req->hdr_ring_id = cpu_to_le16(HWI_GET_DEF_HDRQ_ID(phba, ulp_num)); in mgmt_epfw_cleanup()
573 req->data_ring_id = cpu_to_le16(HWI_GET_DEF_BUFQ_ID(phba, ulp_num)); in mgmt_epfw_cleanup()
592 struct invalidate_commands_params_in *req; in mgmt_invalidate_icds() local
602 req = nonemb_cmd->va; in mgmt_invalidate_icds()
603 memset(req, 0, sizeof(*req)); in mgmt_invalidate_icds()
608 be_wrb_hdr_prepare(wrb, sizeof(*req), false, 1); in mgmt_invalidate_icds()
609 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI, in mgmt_invalidate_icds()
611 sizeof(*req)); in mgmt_invalidate_icds()
612 req->ref_handle = 0; in mgmt_invalidate_icds()
613 req->cleanup_type = CMD_ISCSI_COMMAND_INVALIDATE; in mgmt_invalidate_icds()
615 req->table[i].icd = inv_tbl->icd; in mgmt_invalidate_icds()
616 req->table[i].cid = inv_tbl->cid; in mgmt_invalidate_icds()
617 req->icd_count++; in mgmt_invalidate_icds()
637 struct iscsi_invalidate_connection_params_in *req; in mgmt_invalidate_connection() local
648 req = embedded_payload(wrb); in mgmt_invalidate_connection()
650 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in mgmt_invalidate_connection()
651 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI_INI, in mgmt_invalidate_connection()
653 sizeof(*req)); in mgmt_invalidate_connection()
654 req->session_handle = beiscsi_ep->fw_handle; in mgmt_invalidate_connection()
655 req->cid = cid; in mgmt_invalidate_connection()
657 req->cleanup_type = CMD_ISCSI_CONNECTION_ISSUE_TCP_RST; in mgmt_invalidate_connection()
659 req->cleanup_type = CMD_ISCSI_CONNECTION_INVALIDATE; in mgmt_invalidate_connection()
660 req->save_cfg = savecfg_flag; in mgmt_invalidate_connection()
671 struct tcp_upload_params_in *req; in mgmt_upload_connection() local
681 req = embedded_payload(wrb); in mgmt_upload_connection()
684 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in mgmt_upload_connection()
685 be_cmd_hdr_prepare(&req->hdr, CMD_COMMON_TCP_UPLOAD, in mgmt_upload_connection()
686 OPCODE_COMMON_TCP_UPLOAD, sizeof(*req)); in mgmt_upload_connection()
687 req->id = (unsigned short)cid; in mgmt_upload_connection()
688 req->upload_type = (unsigned char)upload_flag; in mgmt_upload_connection()
715 struct tcp_connect_and_offload_in_v1 *req; in mgmt_open_connection() local
744 req = nonemb_cmd->va; in mgmt_open_connection()
745 memset(req, 0, sizeof(*req)); in mgmt_open_connection()
749 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI, in mgmt_open_connection()
754 req->ip_address.ip_type = BE2_IPV4; in mgmt_open_connection()
755 req->ip_address.addr[0] = s_addr & 0x000000ff; in mgmt_open_connection()
756 req->ip_address.addr[1] = (s_addr & 0x0000ff00) >> 8; in mgmt_open_connection()
757 req->ip_address.addr[2] = (s_addr & 0x00ff0000) >> 16; in mgmt_open_connection()
758 req->ip_address.addr[3] = (s_addr & 0xff000000) >> 24; in mgmt_open_connection()
759 req->tcp_port = ntohs(daddr_in->sin_port); in mgmt_open_connection()
764 req->ip_address.ip_type = BE2_IPV6; in mgmt_open_connection()
765 memcpy(&req->ip_address.addr, in mgmt_open_connection()
767 req->tcp_port = ntohs(daddr_in6->sin6_port); in mgmt_open_connection()
781 req->cid = cid; in mgmt_open_connection()
785 req->cq_id = phwi_context->be_cq[i].id; in mgmt_open_connection()
787 "BG_%d : i=%d cq_id=%d\n", i, req->cq_id); in mgmt_open_connection()
788 req->defq_id = def_hdr_id; in mgmt_open_connection()
789 req->hdr_ring_id = def_hdr_id; in mgmt_open_connection()
790 req->data_ring_id = def_data_id; in mgmt_open_connection()
791 req->do_offload = 1; in mgmt_open_connection()
792 req->dataout_template_pa.lo = ptemplate_address->lo; in mgmt_open_connection()
793 req->dataout_template_pa.hi = ptemplate_address->hi; in mgmt_open_connection()
799 req->hdr.version = MBX_CMD_VER1; in mgmt_open_connection()
800 req->tcp_window_size = 0; in mgmt_open_connection()
801 req->tcp_window_scale_count = 2; in mgmt_open_connection()
813 struct be_cmd_get_all_if_id_req *req = embedded_payload(wrb); in mgmt_get_all_if_id() local
814 struct be_cmd_get_all_if_id_req *pbe_allid = req; in mgmt_get_all_if_id()
821 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in mgmt_get_all_if_id()
822 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI, in mgmt_get_all_if_id()
824 sizeof(*req)); in mgmt_get_all_if_id()
921 struct be_cmd_set_ip_addr_req *req; in mgmt_static_ip_modify() local
928 sizeof(*req)); in mgmt_static_ip_modify()
935 req = nonemb_cmd.va; in mgmt_static_ip_modify()
936 req->ip_params.record_entry_count = 1; in mgmt_static_ip_modify()
937 req->ip_params.ip_record.action = ip_action; in mgmt_static_ip_modify()
938 req->ip_params.ip_record.interface_hndl = in mgmt_static_ip_modify()
940 req->ip_params.ip_record.ip_addr.size_of_structure = in mgmt_static_ip_modify()
942 req->ip_params.ip_record.ip_addr.ip_type = ip_type; in mgmt_static_ip_modify()
945 memcpy(req->ip_params.ip_record.ip_addr.addr, ip_param->value, in mgmt_static_ip_modify()
946 sizeof(req->ip_params.ip_record.ip_addr.addr)); in mgmt_static_ip_modify()
949 memcpy(req->ip_params.ip_record.ip_addr.subnet_mask, in mgmt_static_ip_modify()
951 sizeof(req->ip_params.ip_record.ip_addr.subnet_mask)); in mgmt_static_ip_modify()
953 memcpy(req->ip_params.ip_record.ip_addr.addr, in mgmt_static_ip_modify()
955 sizeof(req->ip_params.ip_record.ip_addr.addr)); in mgmt_static_ip_modify()
957 memcpy(req->ip_params.ip_record.ip_addr.subnet_mask, in mgmt_static_ip_modify()
959 sizeof(req->ip_params.ip_record.ip_addr.subnet_mask)); in mgmt_static_ip_modify()
972 struct be_cmd_set_def_gateway_req *req; in mgmt_modify_gateway() local
979 sizeof(*req)); in mgmt_modify_gateway()
983 req = nonemb_cmd.va; in mgmt_modify_gateway()
984 req->action = gtway_action; in mgmt_modify_gateway()
985 req->ip_addr.ip_type = BE2_IPV4; in mgmt_modify_gateway()
987 memcpy(req->ip_addr.addr, gt_addr, sizeof(req->ip_addr.addr)); in mgmt_modify_gateway()
1151 struct be_cmd_get_def_gateway_req *req; in mgmt_get_gateway() local
1161 req = nonemb_cmd.va; in mgmt_get_gateway()
1162 req->ip_type = ip_type; in mgmt_get_gateway()
1171 struct be_cmd_get_if_info_req *req; in mgmt_get_if_info() local
1186 req = nonemb_cmd.va; in mgmt_get_if_info()
1187 req->interface_hndl = phba->interface_handle; in mgmt_get_if_info()
1188 req->ip_type = ip_type; in mgmt_get_if_info()
1250 struct be_cmd_hba_name *req; in be_cmd_get_initname() local
1261 req = embedded_payload(wrb); in be_cmd_get_initname()
1263 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in be_cmd_get_initname()
1264 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI_INI, in be_cmd_get_initname()
1266 sizeof(*req)); in be_cmd_get_initname()
1277 struct be_cmd_ntwk_link_status_req *req; in be_cmd_get_port_speed() local
1288 req = embedded_payload(wrb); in be_cmd_get_port_speed()
1290 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in be_cmd_get_port_speed()
1291 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON, in be_cmd_get_port_speed()
1293 sizeof(*req)); in be_cmd_get_port_speed()