Lines Matching refs:va
674 struct be_mcc_mailbox *mbox = mbox_mem->va; in be_mbox_notify_wait()
826 int i, buf_pages = min(PAGES_4K_SPANNED(mem->va, mem->size), max_pages); in be_cmd_page_addrs_prepare()
840 = &((struct be_mcc_mailbox *)(mbox_mem->va))->wrb; in wrb_from_mbox()
1020 req->num_pages = cpu_to_le16(PAGES_4K_SPANNED(q_mem->va, q_mem->size)); in be_cmd_eq_create()
1182 req->num_pages = cpu_to_le16(PAGES_4K_SPANNED(q_mem->va, q_mem->size)); in be_cmd_cq_create()
1260 req->num_pages = cpu_to_le16(PAGES_4K_SPANNED(q_mem->va, q_mem->size)); in be_cmd_mccq_ext_create()
1325 req->num_pages = cpu_to_le16(PAGES_4K_SPANNED(q_mem->va, q_mem->size)); in be_cmd_mccq_org_create()
1387 req->num_pages = PAGES_4K_SPANNED(q_mem->va, q_mem->size); in be_cmd_txq_create()
1606 hdr = nonemb_cmd->va; in be_cmd_get_stats()
1650 req = nonemb_cmd->va; in lancer_cmd_get_pport_stats()
1811 get_fat_cmd.va = dma_zalloc_coherent(&adapter->pdev->dev, in be_cmd_get_fat_dump()
1814 if (!get_fat_cmd.va) in be_cmd_get_fat_dump()
1828 req = get_fat_cmd.va; in be_cmd_get_fat_dump()
1842 struct be_cmd_resp_get_fat *resp = get_fat_cmd.va; in be_cmd_get_fat_dump()
1856 get_fat_cmd.va, get_fat_cmd.dma); in be_cmd_get_fat_dump()
1985 struct be_cmd_req_rx_filter *req = mem->va; in __be_cmd_rx_filter()
2305 cmd.va = dma_zalloc_coherent(&adapter->pdev->dev, cmd.size, &cmd.dma, in be_cmd_read_port_transceiver_data()
2307 if (!cmd.va) { in be_cmd_read_port_transceiver_data()
2319 req = cmd.va; in be_cmd_read_port_transceiver_data()
2329 struct be_cmd_resp_port_type *resp = cmd.va; in be_cmd_read_port_transceiver_data()
2335 dma_free_coherent(&adapter->pdev->dev, cmd.size, cmd.va, cmd.dma); in be_cmd_read_port_transceiver_data()
2551 req = cmd->va; in be_cmd_write_flashrom()
2696 struct be_cmd_write_flashrom *req = flash_cmd->va; in be_flash()
3069 flash_cmd.va = dma_zalloc_coherent(dev, flash_cmd.size, in lancer_fw_download()
3071 if (!flash_cmd.va) in lancer_fw_download()
3074 dest_image_ptr = flash_cmd.va + in lancer_fw_download()
3107 dma_free_coherent(dev, flash_cmd.size, flash_cmd.va, flash_cmd.dma); in lancer_fw_download()
3187 flash_cmd.va = dma_zalloc_coherent(dev, flash_cmd.size, &flash_cmd.dma, in be_fw_download()
3189 if (!flash_cmd.va) in be_fw_download()
3209 dma_free_coherent(dev, flash_cmd.size, flash_cmd.va, flash_cmd.dma); in be_fw_download()
3230 req = nonemb_cmd->va; in be_cmd_enable_magic_wol()
3361 req = cmd->va; in be_cmd_ddr_dma_test()
3380 resp = cmd->va; in be_cmd_ddr_dma_test()
3406 req = nonemb_cmd->va; in be_cmd_get_seeprom_data()
3438 cmd.va = dma_zalloc_coherent(&adapter->pdev->dev, cmd.size, &cmd.dma, in be_cmd_get_phy_info()
3440 if (!cmd.va) { in be_cmd_get_phy_info()
3446 req = cmd.va; in be_cmd_get_phy_info()
3455 cmd.va + sizeof(struct be_cmd_req_hdr); in be_cmd_get_phy_info()
3473 dma_free_coherent(&adapter->pdev->dev, cmd.size, cmd.va, cmd.dma); in be_cmd_get_phy_info()
3525 attribs_cmd.va = dma_zalloc_coherent(&adapter->pdev->dev, in be_cmd_get_cntl_attributes()
3528 if (!attribs_cmd.va) { in be_cmd_get_cntl_attributes()
3539 req = attribs_cmd.va; in be_cmd_get_cntl_attributes()
3547 attribs = attribs_cmd.va + sizeof(struct be_cmd_resp_hdr); in be_cmd_get_cntl_attributes()
3562 if (attribs_cmd.va) in be_cmd_get_cntl_attributes()
3564 attribs_cmd.va, attribs_cmd.dma); in be_cmd_get_cntl_attributes()
3702 get_mac_list_cmd.va = dma_zalloc_coherent(&adapter->pdev->dev, in be_cmd_get_mac_from_list()
3707 if (!get_mac_list_cmd.va) { in be_cmd_get_mac_from_list()
3721 req = get_mac_list_cmd.va; in be_cmd_get_mac_from_list()
3739 get_mac_list_cmd.va; in be_cmd_get_mac_from_list()
3779 get_mac_list_cmd.va, get_mac_list_cmd.dma); in be_cmd_get_mac_from_list()
3832 cmd.va = dma_zalloc_coherent(&adapter->pdev->dev, cmd.size, &cmd.dma, in be_cmd_set_mac_list()
3834 if (!cmd.va) in be_cmd_set_mac_list()
3845 req = cmd.va; in be_cmd_set_mac_list()
3858 dma_free_coherent(&adapter->pdev->dev, cmd.size, cmd.va, cmd.dma); in be_cmd_set_mac_list()
4038 cmd.va = dma_zalloc_coherent(&adapter->pdev->dev, cmd.size, &cmd.dma, in be_cmd_get_acpi_wol_cap()
4040 if (!cmd.va) { in be_cmd_get_acpi_wol_cap()
4052 req = cmd.va; in be_cmd_get_acpi_wol_cap()
4065 resp = (struct be_cmd_resp_acpi_wol_magic_config_v1 *)cmd.va; in be_cmd_get_acpi_wol_cap()
4076 if (cmd.va) in be_cmd_get_acpi_wol_cap()
4077 dma_free_coherent(&adapter->pdev->dev, cmd.size, cmd.va, in be_cmd_get_acpi_wol_cap()
4092 extfat_cmd.va = dma_zalloc_coherent(&adapter->pdev->dev, in be_cmd_set_fw_log_level()
4095 if (!extfat_cmd.va) in be_cmd_set_fw_log_level()
4103 (extfat_cmd.va + sizeof(struct be_cmd_resp_hdr)); in be_cmd_set_fw_log_level()
4116 dma_free_coherent(&adapter->pdev->dev, extfat_cmd.size, extfat_cmd.va, in be_cmd_set_fw_log_level()
4130 extfat_cmd.va = dma_zalloc_coherent(&adapter->pdev->dev, in be_cmd_get_fw_log_level()
4134 if (!extfat_cmd.va) { in be_cmd_get_fw_log_level()
4142 cfgs = (struct be_fat_conf_params *)(extfat_cmd.va + in be_cmd_get_fw_log_level()
4150 dma_free_coherent(&adapter->pdev->dev, extfat_cmd.size, extfat_cmd.va, in be_cmd_get_fw_log_level()
4176 req = cmd->va; in be_cmd_get_ext_fat_capabilites()
4204 req = cmd->va; in be_cmd_set_ext_fat_capabilites()
4357 cmd.va = dma_zalloc_coherent(&adapter->pdev->dev, cmd.size, &cmd.dma, in be_cmd_get_func_config()
4359 if (!cmd.va) { in be_cmd_get_func_config()
4371 req = cmd.va; in be_cmd_get_func_config()
4382 struct be_cmd_resp_get_func_config *resp = cmd.va; in be_cmd_get_func_config()
4406 if (cmd.va) in be_cmd_get_func_config()
4407 dma_free_coherent(&adapter->pdev->dev, cmd.size, cmd.va, in be_cmd_get_func_config()
4455 cmd.va = dma_zalloc_coherent(&adapter->pdev->dev, cmd.size, &cmd.dma, in be_cmd_get_profile_config()
4457 if (!cmd.va) in be_cmd_get_profile_config()
4460 req = cmd.va; in be_cmd_get_profile_config()
4481 resp = cmd.va; in be_cmd_get_profile_config()
4525 if (cmd.va) in be_cmd_get_profile_config()
4526 dma_free_coherent(&adapter->pdev->dev, cmd.size, cmd.va, in be_cmd_get_profile_config()
4542 cmd.va = dma_zalloc_coherent(&adapter->pdev->dev, cmd.size, &cmd.dma, in be_cmd_set_profile_config()
4544 if (!cmd.va) in be_cmd_set_profile_config()
4547 req = cmd.va; in be_cmd_set_profile_config()
4558 if (cmd.va) in be_cmd_set_profile_config()
4559 dma_free_coherent(&adapter->pdev->dev, cmd.size, cmd.va, in be_cmd_set_profile_config()