Lines Matching refs:nonemb_cmd
36 struct be_dma_mem *nonemb_cmd) in mgmt_vendor_specific_fw_cmd() argument
42 struct be_bsg_vendor_cmd *req = nonemb_cmd->va; in mgmt_vendor_specific_fw_cmd()
45 nonemb_cmd->size = job->request_payload.payload_len; in mgmt_vendor_specific_fw_cmd()
46 memset(nonemb_cmd->va, 0, nonemb_cmd->size); in mgmt_vendor_specific_fw_cmd()
64 nonemb_cmd->va + offset, job->request_len); in mgmt_vendor_specific_fw_cmd()
86 be_wrb_hdr_prepare(wrb, nonemb_cmd->size, false, in mgmt_vendor_specific_fw_cmd()
88 mcc_sge->pa_hi = cpu_to_le32(upper_32_bits(nonemb_cmd->dma)); in mgmt_vendor_specific_fw_cmd()
89 mcc_sge->pa_lo = cpu_to_le32(nonemb_cmd->dma & 0xFFFFFFFF); in mgmt_vendor_specific_fw_cmd()
90 mcc_sge->len = cpu_to_le32(nonemb_cmd->size); in mgmt_vendor_specific_fw_cmd()
112 struct be_dma_mem *nonemb_cmd) in mgmt_open_connection() argument
156 req = nonemb_cmd->va; in mgmt_open_connection()
159 be_wrb_hdr_prepare(wrb, nonemb_cmd->size, false, 1); in mgmt_open_connection()
162 nonemb_cmd->size); in mgmt_open_connection()
198 sge->pa_hi = cpu_to_le32(upper_32_bits(nonemb_cmd->dma)); in mgmt_open_connection()
199 sge->pa_lo = cpu_to_le32(nonemb_cmd->dma & 0xFFFFFFFF); in mgmt_open_connection()
200 sge->len = cpu_to_le32(nonemb_cmd->size); in mgmt_open_connection()
223 struct be_dma_mem *nonemb_cmd, in beiscsi_exec_nemb_cmd() argument
242 be_wrb_hdr_prepare(wrb, nonemb_cmd->size, false, 1); in beiscsi_exec_nemb_cmd()
243 sge->pa_hi = cpu_to_le32(upper_32_bits(nonemb_cmd->dma)); in beiscsi_exec_nemb_cmd()
244 sge->pa_lo = cpu_to_le32(lower_32_bits(nonemb_cmd->dma)); in beiscsi_exec_nemb_cmd()
245 sge->len = cpu_to_le32(nonemb_cmd->size); in beiscsi_exec_nemb_cmd()
255 tag_mem->size = nonemb_cmd->size; in beiscsi_exec_nemb_cmd()
256 tag_mem->va = nonemb_cmd->va; in beiscsi_exec_nemb_cmd()
257 tag_mem->dma = nonemb_cmd->dma; in beiscsi_exec_nemb_cmd()
266 rc = beiscsi_mccq_compl_wait(phba, tag, NULL, nonemb_cmd); in beiscsi_exec_nemb_cmd()
270 memcpy(resp_buf, nonemb_cmd->va, resp_buf_len); in beiscsi_exec_nemb_cmd()
324 struct be_dma_mem nonemb_cmd; in beiscsi_modify_eq_delay() local
327 rc = beiscsi_prep_nemb_cmd(phba, &nonemb_cmd, CMD_SUBSYSTEM_COMMON, in beiscsi_modify_eq_delay()
332 req = nonemb_cmd.va; in beiscsi_modify_eq_delay()
341 rc = beiscsi_exec_nemb_cmd(phba, &nonemb_cmd, __beiscsi_eq_delay_compl, in beiscsi_modify_eq_delay()
348 beiscsi_free_nemb_cmd(phba, &nonemb_cmd, rc); in beiscsi_modify_eq_delay()
362 struct be_dma_mem nonemb_cmd; in beiscsi_get_initiator_name() local
367 rc = beiscsi_prep_nemb_cmd(phba, &nonemb_cmd, CMD_SUBSYSTEM_ISCSI_INI, in beiscsi_get_initiator_name()
372 req = nonemb_cmd.va; in beiscsi_get_initiator_name()
375 rc = beiscsi_exec_nemb_cmd(phba, &nonemb_cmd, NULL, in beiscsi_get_initiator_name()
377 beiscsi_free_nemb_cmd(phba, &nonemb_cmd, rc); in beiscsi_get_initiator_name()
441 struct be_dma_mem nonemb_cmd; in beiscsi_if_mod_gw() local
444 rt_val = beiscsi_prep_nemb_cmd(phba, &nonemb_cmd, CMD_SUBSYSTEM_ISCSI, in beiscsi_if_mod_gw()
450 req = nonemb_cmd.va; in beiscsi_if_mod_gw()
455 rt_val = beiscsi_exec_nemb_cmd(phba, &nonemb_cmd, NULL, NULL, 0); in beiscsi_if_mod_gw()
456 beiscsi_free_nemb_cmd(phba, &nonemb_cmd, rt_val); in beiscsi_if_mod_gw()
495 struct be_dma_mem nonemb_cmd; in beiscsi_if_get_gw() local
498 rc = beiscsi_prep_nemb_cmd(phba, &nonemb_cmd, CMD_SUBSYSTEM_ISCSI, in beiscsi_if_get_gw()
504 req = nonemb_cmd.va; in beiscsi_if_get_gw()
507 rc = beiscsi_exec_nemb_cmd(phba, &nonemb_cmd, NULL, resp, in beiscsi_if_get_gw()
509 beiscsi_free_nemb_cmd(phba, &nonemb_cmd, rc); in beiscsi_if_get_gw()
518 struct be_dma_mem nonemb_cmd; in beiscsi_if_clr_ip() local
521 rc = beiscsi_prep_nemb_cmd(phba, &nonemb_cmd, CMD_SUBSYSTEM_ISCSI, in beiscsi_if_clr_ip()
527 req = nonemb_cmd.va; in beiscsi_if_clr_ip()
541 rc = beiscsi_exec_nemb_cmd(phba, &nonemb_cmd, NULL, NULL, 0); in beiscsi_if_clr_ip()
547 beiscsi_free_nemb_cmd(phba, &nonemb_cmd, rc); in beiscsi_if_clr_ip()
556 struct be_dma_mem nonemb_cmd; in beiscsi_if_set_ip() local
560 rc = beiscsi_prep_nemb_cmd(phba, &nonemb_cmd, CMD_SUBSYSTEM_ISCSI, in beiscsi_if_set_ip()
566 req = nonemb_cmd.va; in beiscsi_if_set_ip()
580 rc = beiscsi_exec_nemb_cmd(phba, &nonemb_cmd, NULL, NULL, 0); in beiscsi_if_set_ip()
592 beiscsi_free_nemb_cmd(phba, &nonemb_cmd, rc); in beiscsi_if_set_ip()
601 struct be_dma_mem nonemb_cmd; in beiscsi_if_en_static() local
609 rc = beiscsi_prep_nemb_cmd(phba, &nonemb_cmd, in beiscsi_if_en_static()
616 reldhcp = nonemb_cmd.va; in beiscsi_if_en_static()
619 rc = beiscsi_exec_nemb_cmd(phba, &nonemb_cmd, NULL, NULL, 0); in beiscsi_if_en_static()
620 beiscsi_free_nemb_cmd(phba, &nonemb_cmd, rc); in beiscsi_if_en_static()
649 struct be_dma_mem nonemb_cmd; in beiscsi_if_en_dhcp() local
690 rc = beiscsi_prep_nemb_cmd(phba, &nonemb_cmd, CMD_SUBSYSTEM_ISCSI, in beiscsi_if_en_dhcp()
696 dhcpreq = nonemb_cmd.va; in beiscsi_if_en_dhcp()
701 rc = beiscsi_exec_nemb_cmd(phba, &nonemb_cmd, NULL, NULL, 0); in beiscsi_if_en_dhcp()
702 beiscsi_free_nemb_cmd(phba, &nonemb_cmd, rc); in beiscsi_if_en_dhcp()
748 struct be_dma_mem nonemb_cmd; in beiscsi_if_get_info() local
757 rc = beiscsi_prep_nemb_cmd(phba, &nonemb_cmd, in beiscsi_if_get_info()
764 req = nonemb_cmd.va; in beiscsi_if_get_info()
775 beiscsi_free_nemb_cmd(phba, &nonemb_cmd, in beiscsi_if_get_info()
780 rc = beiscsi_exec_nemb_cmd(phba, &nonemb_cmd, NULL, *if_info, in beiscsi_if_get_info()
788 nonemb_cmd.va)->actual_resp_len; in beiscsi_if_get_info()
791 beiscsi_free_nemb_cmd(phba, &nonemb_cmd, rc); in beiscsi_if_get_info()
795 beiscsi_free_nemb_cmd(phba, &nonemb_cmd, rc); in beiscsi_if_get_info()
805 struct be_dma_mem nonemb_cmd; in mgmt_get_nic_conf() local
808 rc = beiscsi_prep_nemb_cmd(phba, &nonemb_cmd, CMD_SUBSYSTEM_ISCSI, in mgmt_get_nic_conf()
814 rc = beiscsi_exec_nemb_cmd(phba, &nonemb_cmd, NULL, nic, sizeof(*nic)); in mgmt_get_nic_conf()
815 beiscsi_free_nemb_cmd(phba, &nonemb_cmd, rc); in mgmt_get_nic_conf()
868 &bs->nonemb_cmd); in beiscsi_boot_process_compl()
870 sess_resp = bs->nonemb_cmd.va; in beiscsi_boot_process_compl()
880 dma_free_coherent(&phba->ctrl.pdev->dev, bs->nonemb_cmd.size, in beiscsi_boot_process_compl()
881 bs->nonemb_cmd.va, bs->nonemb_cmd.dma); in beiscsi_boot_process_compl()
882 bs->nonemb_cmd.va = NULL; in beiscsi_boot_process_compl()
1009 struct be_dma_mem *nonemb_cmd; in beiscsi_boot_get_sinfo() local
1021 nonemb_cmd = &phba->boot_struct.nonemb_cmd; in beiscsi_boot_get_sinfo()
1022 nonemb_cmd->size = sizeof(struct be_cmd_get_session_resp); in beiscsi_boot_get_sinfo()
1023 nonemb_cmd->va = dma_alloc_coherent(&phba->ctrl.pdev->dev, in beiscsi_boot_get_sinfo()
1024 nonemb_cmd->size, in beiscsi_boot_get_sinfo()
1025 &nonemb_cmd->dma, in beiscsi_boot_get_sinfo()
1027 if (!nonemb_cmd->va) { in beiscsi_boot_get_sinfo()
1032 req = nonemb_cmd->va; in beiscsi_boot_get_sinfo()
1040 sge->pa_hi = cpu_to_le32(upper_32_bits(nonemb_cmd->dma)); in beiscsi_boot_get_sinfo()
1041 sge->pa_lo = cpu_to_le32(nonemb_cmd->dma & 0xFFFFFFFF); in beiscsi_boot_get_sinfo()
1042 sge->len = cpu_to_le32(nonemb_cmd->size); in beiscsi_boot_get_sinfo()
1506 struct be_dma_mem nonemb_cmd; in beiscsi_mgmt_invalidate_icds() local
1515 nonemb_cmd.size = sizeof(union be_invldt_cmds_params); in beiscsi_mgmt_invalidate_icds()
1516 nonemb_cmd.va = dma_alloc_coherent(&phba->ctrl.pdev->dev, in beiscsi_mgmt_invalidate_icds()
1517 nonemb_cmd.size, &nonemb_cmd.dma, in beiscsi_mgmt_invalidate_icds()
1519 if (!nonemb_cmd.va) { in beiscsi_mgmt_invalidate_icds()
1529 dma_free_coherent(&phba->ctrl.pdev->dev, nonemb_cmd.size, in beiscsi_mgmt_invalidate_icds()
1530 nonemb_cmd.va, nonemb_cmd.dma); in beiscsi_mgmt_invalidate_icds()
1534 req = nonemb_cmd.va; in beiscsi_mgmt_invalidate_icds()
1535 be_wrb_hdr_prepare(wrb, nonemb_cmd.size, false, 1); in beiscsi_mgmt_invalidate_icds()
1547 sge->pa_hi = cpu_to_le32(upper_32_bits(nonemb_cmd.dma)); in beiscsi_mgmt_invalidate_icds()
1548 sge->pa_lo = cpu_to_le32(lower_32_bits(nonemb_cmd.dma)); in beiscsi_mgmt_invalidate_icds()
1549 sge->len = cpu_to_le32(nonemb_cmd.size); in beiscsi_mgmt_invalidate_icds()
1554 rc = beiscsi_mccq_compl_wait(phba, tag, NULL, &nonemb_cmd); in beiscsi_mgmt_invalidate_icds()
1556 dma_free_coherent(&phba->ctrl.pdev->dev, nonemb_cmd.size, in beiscsi_mgmt_invalidate_icds()
1557 nonemb_cmd.va, nonemb_cmd.dma); in beiscsi_mgmt_invalidate_icds()