Home
last modified time | relevance | path

Searched refs:phys_addr (Results 1 – 25 of 199) sorted by relevance

12345678

/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ctx.c266 u64 phys_addr; in nx_fw_cmd_create_rx_ctx() local
327 prq_rds[i].host_phys_addr = cpu_to_le64(rds_ring->phys_addr); in nx_fw_cmd_create_rx_ctx()
340 prq_sds[i].host_phys_addr = cpu_to_le64(sds_ring->phys_addr); in nx_fw_cmd_create_rx_ctx()
345 phys_addr = hostrq_phys_addr; in nx_fw_cmd_create_rx_ctx()
347 cmd.req.arg1 = (u32)(phys_addr >> 32); in nx_fw_cmd_create_rx_ctx()
348 cmd.req.arg2 = (u32)(phys_addr & 0xffffffff); in nx_fw_cmd_create_rx_ctx()
425 u64 offset, phys_addr; in nx_fw_cmd_create_tx_ctx() local
460 prq->dummy_dma_addr = cpu_to_le64(adapter->dummy_dma.phys_addr); in nx_fw_cmd_create_tx_ctx()
462 offset = recv_ctx->phys_addr + sizeof(struct netxen_ring_ctx); in nx_fw_cmd_create_tx_ctx()
467 prq_cds->host_phys_addr = cpu_to_le64(tx_ring->phys_addr); in nx_fw_cmd_create_tx_ctx()
[all …]
/drivers/firmware/efi/
Dmemmap.c256 start = md->phys_addr; in efi_memmap_split_count()
321 start = md->phys_addr; in efi_memmap_insert()
322 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_insert()
331 md->num_pages = (m_end - md->phys_addr + 1) >> in efi_memmap_insert()
337 md->phys_addr = m_end + 1; in efi_memmap_insert()
338 md->num_pages = (end - md->phys_addr + 1) >> in efi_memmap_insert()
344 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert()
351 md->phys_addr = m_start; in efi_memmap_insert()
358 md->phys_addr = m_end + 1; in efi_memmap_insert()
366 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert()
[all …]
Dmemattr.c58 u64 in_paddr = in->phys_addr; in entry_is_valid()
71 (!PAGE_ALIGNED(in->phys_addr) || in entry_is_valid()
85 u64 md_paddr = md->phys_addr; in entry_is_valid()
90 if (md->virt_addr == 0 && md->phys_addr != 0) { in entry_is_valid()
167 valid ? "" : "!", md.phys_addr, in efi_memattr_apply_permissions()
168 md.phys_addr + size - 1, in efi_memattr_apply_permissions()
Defi.c337 debugfs_blob[i].data = memremap(md->phys_addr, in efi_debugfs_init()
447 int efi_mem_desc_lookup(u64 phys_addr, efi_memory_desc_t *out_md) in efi_mem_desc_lookup() argument
466 end = md->phys_addr + size; in efi_mem_desc_lookup()
467 if (phys_addr >= md->phys_addr && phys_addr < end) { in efi_mem_desc_lookup()
481 u64 end = md->phys_addr + size; in efi_mem_desc_end()
813 u64 efi_mem_attributes(unsigned long phys_addr) in efi_mem_attributes() argument
821 if ((md->phys_addr <= phys_addr) && in efi_mem_attributes()
822 (phys_addr < (md->phys_addr + in efi_mem_attributes()
837 int efi_mem_type(unsigned long phys_addr) in efi_mem_type() argument
845 if ((md->phys_addr <= phys_addr) && in efi_mem_type()
[all …]
Driscv-runtime.c39 phys_addr_t phys = md->phys_addr; in efi_virtmap_init()
98 res->start = md->phys_addr; in riscv_enable_runtime_services()
99 res->end = md->phys_addr + md_size - 1; in riscv_enable_runtime_services()
Darm-runtime.c61 phys_addr_t phys = md->phys_addr; in efi_virtmap_init()
120 res->start = md->phys_addr; in arm_enable_runtime_services()
121 res->end = md->phys_addr + md_size - 1; in arm_enable_runtime_services()
/drivers/input/serio/
Dxilinx_ps2.c236 resource_size_t remap_size, phys_addr; in xps2_of_probe() local
268 phys_addr = r_mem.start; in xps2_of_probe()
270 if (!request_mem_region(phys_addr, remap_size, DRIVER_NAME)) { in xps2_of_probe()
272 (unsigned long long)phys_addr); in xps2_of_probe()
278 drvdata->base_address = ioremap(phys_addr, remap_size); in xps2_of_probe()
281 (unsigned long long)phys_addr); in xps2_of_probe()
296 (unsigned long long)phys_addr, drvdata->base_address, in xps2_of_probe()
306 "Xilinx XPS PS/2 at %08llX", (unsigned long long)phys_addr); in xps2_of_probe()
308 "xilinxps2/serio at %08llX", (unsigned long long)phys_addr); in xps2_of_probe()
316 release_mem_region(phys_addr, remap_size); in xps2_of_probe()
/drivers/pci/endpoint/
Dpci-epc-mem.c169 phys_addr_t *phys_addr, size_t size) in pci_epc_mem_alloc_addr() argument
189 *phys_addr = mem->window.phys_base + in pci_epc_mem_alloc_addr()
191 virt_addr = ioremap(*phys_addr, align_size); in pci_epc_mem_alloc_addr()
209 phys_addr_t phys_addr) in pci_epc_get_matching_window() argument
217 if (phys_addr >= mem->window.phys_base && in pci_epc_get_matching_window()
218 phys_addr < (mem->window.phys_base + mem->window.size)) in pci_epc_get_matching_window()
234 void pci_epc_mem_free_addr(struct pci_epc *epc, phys_addr_t phys_addr, in pci_epc_mem_free_addr() argument
243 mem = pci_epc_get_matching_window(epc, phys_addr); in pci_epc_mem_free_addr()
252 pageno = (phys_addr - mem->window.phys_base) >> page_shift; in pci_epc_mem_free_addr()
Dpci-epf-core.c88 epf->bar[bar].phys_addr); in pci_epf_free_space()
90 epf->bar[bar].phys_addr = 0; in pci_epf_free_space()
112 dma_addr_t phys_addr; in pci_epf_alloc_space() local
122 space = dma_alloc_coherent(dev, size, &phys_addr, GFP_KERNEL); in pci_epf_alloc_space()
128 epf->bar[bar].phys_addr = phys_addr; in pci_epf_alloc_space()
/drivers/misc/sgi-xp/
Dxp_uv.c91 xp_expand_memprotect_uv(unsigned long phys_addr, unsigned long size) in xp_expand_memprotect_uv() argument
96 ret = uv_bios_change_memprotect(phys_addr, size, UV_MEMPROT_ALLOW_RW); in xp_expand_memprotect_uv()
106 ret = sn_change_memprotect(phys_addr, size, SN_MEMPROT_ACCESS_CLASS_1, in xp_expand_memprotect_uv()
120 xp_restrict_memprotect_uv(unsigned long phys_addr, unsigned long size) in xp_restrict_memprotect_uv() argument
125 ret = uv_bios_change_memprotect(phys_addr, size, in xp_restrict_memprotect_uv()
136 ret = sn_change_memprotect(phys_addr, size, SN_MEMPROT_ACCESS_CLASS_0, in xp_restrict_memprotect_uv()
/drivers/media/cec/core/
Dcec-api.c94 u16 phys_addr; in cec_adap_g_phys_addr() local
97 phys_addr = adap->phys_addr; in cec_adap_g_phys_addr()
99 if (copy_to_user(parg, &phys_addr, sizeof(phys_addr))) in cec_adap_g_phys_addr()
104 static int cec_validate_phys_addr(u16 phys_addr) in cec_validate_phys_addr() argument
108 if (phys_addr == CEC_PHYS_ADDR_INVALID) in cec_validate_phys_addr()
111 if (phys_addr & (0xf << i)) in cec_validate_phys_addr()
116 if ((phys_addr & (0xf << i)) == 0) in cec_validate_phys_addr()
124 u16 phys_addr; in cec_adap_s_phys_addr() local
129 if (copy_from_user(&phys_addr, parg, sizeof(phys_addr))) in cec_adap_s_phys_addr()
132 err = cec_validate_phys_addr(phys_addr); in cec_adap_s_phys_addr()
[all …]
Dcec-notifier.c29 u16 phys_addr; member
76 n->phys_addr = CEC_PHYS_ADDR_INVALID; in cec_notifier_get_conn()
113 n->phys_addr = CEC_PHYS_ADDR_INVALID; in cec_notifier_conn_register()
135 n->phys_addr = CEC_PHYS_ADDR_INVALID; in cec_notifier_conn_unregister()
164 cec_s_phys_addr(adap, n->phys_addr, false); in cec_notifier_cec_adap_register()
190 n->phys_addr = pa; in cec_notifier_set_phys_addr()
192 cec_s_phys_addr(n->cec_adap, n->phys_addr, false); in cec_notifier_set_phys_addr()
Dcec-adap.c320 ev.state_change.phys_addr = adap->phys_addr; in cec_post_state_event()
809 msg->msg[2] = adap->phys_addr >> 8; in cec_transmit_msg_fh()
810 msg->msg[3] = adap->phys_addr & 0xff; in cec_transmit_msg_fh()
1275 if (adap->phys_addr == CEC_PHYS_ADDR_INVALID) in cec_config_log_addr()
1329 adap->phys_addr != CEC_PHYS_ADDR_INVALID) in cec_adap_unconfigure()
1398 cec_phys_addr_exp(adap->phys_addr), las->num_log_addrs); in cec_config_thread_func()
1414 if (adap->phys_addr && type == CEC_LOG_ADDR_TYPE_TV) in cec_config_thread_func()
1500 cec_msg_report_physical_addr(&msg, adap->phys_addr, in cec_config_thread_func()
1504 cec_phys_addr_exp(adap->phys_addr)); in cec_config_thread_func()
1560 void __cec_s_phys_addr(struct cec_adapter *adap, u16 phys_addr, bool block) in __cec_s_phys_addr() argument
[all …]
/drivers/acpi/
Dprocessor_core.c266 u64 *phys_addr, int *ioapic_id) in get_ioapic_id() argument
273 *phys_addr = ioapic->address; in get_ioapic_id()
278 static int parse_madt_ioapic_entry(u32 gsi_base, u64 *phys_addr) in parse_madt_ioapic_entry() argument
297 get_ioapic_id(hdr, gsi_base, phys_addr, &apic_id)) in parse_madt_ioapic_entry()
307 u64 *phys_addr) in parse_mat_ioapic_entry() argument
327 get_ioapic_id(header, gsi_base, phys_addr, &apic_id); in parse_mat_ioapic_entry()
345 int acpi_get_ioapic_id(acpi_handle handle, u32 gsi_base, u64 *phys_addr) in acpi_get_ioapic_id() argument
349 apic_id = parse_mat_ioapic_entry(handle, gsi_base, phys_addr); in acpi_get_ioapic_id()
351 apic_id = parse_madt_ioapic_entry(gsi_base, phys_addr); in acpi_get_ioapic_id()
/drivers/net/ethernet/3com/
D3c509.c215 static int el3_isa_id_sequence(__be16 *phys_addr) in el3_isa_id_sequence() argument
243 phys_addr[i] = htons(id_read_eeprom(i)); in el3_isa_id_sequence()
251 ether_addr_equal((u8 *)phys_addr, el3_devs[i]->dev_addr)) { in el3_isa_id_sequence()
254 phys_addr[0] & 0xff, phys_addr[0] >> 8, in el3_isa_id_sequence()
255 phys_addr[1] & 0xff, phys_addr[1] >> 8, in el3_isa_id_sequence()
256 phys_addr[2] & 0xff, phys_addr[2] >> 8); in el3_isa_id_sequence()
268 static void el3_dev_fill(struct net_device *dev, __be16 *phys_addr, int ioaddr, in el3_dev_fill() argument
273 memcpy(dev->dev_addr, phys_addr, ETH_ALEN); in el3_dev_fill()
285 __be16 phys_addr[3]; in el3_isa_match() local
287 while ((err = el3_isa_id_sequence(phys_addr)) == 2) in el3_isa_match()
[all …]
/drivers/media/v4l2-core/
Dv4l2-dv-timings.c1044 void v4l2_set_edid_phys_addr(u8 *edid, unsigned int size, u16 phys_addr) in v4l2_set_edid_phys_addr() argument
1052 edid[loc] = phys_addr >> 8; in v4l2_set_edid_phys_addr()
1053 edid[loc + 1] = phys_addr & 0xff; in v4l2_set_edid_phys_addr()
1082 u16 v4l2_phys_addr_for_input(u16 phys_addr, u8 input) in v4l2_phys_addr_for_input() argument
1088 if (phys_addr == 0) in v4l2_phys_addr_for_input()
1091 if ((phys_addr & 0x0fff) == 0) in v4l2_phys_addr_for_input()
1092 return phys_addr | (input << 8); in v4l2_phys_addr_for_input()
1094 if ((phys_addr & 0x00ff) == 0) in v4l2_phys_addr_for_input()
1095 return phys_addr | (input << 4); in v4l2_phys_addr_for_input()
1097 if ((phys_addr & 0x000f) == 0) in v4l2_phys_addr_for_input()
[all …]
/drivers/net/ethernet/marvell/
Dmvneta_bm.c98 dma_addr_t phys_addr; in mvneta_bm_construct() local
105 phys_addr = dma_map_single(&priv->pdev->dev, buf, bm_pool->buf_size, in mvneta_bm_construct()
107 if (unlikely(dma_mapping_error(&priv->pdev->dev, phys_addr))) in mvneta_bm_construct()
110 mvneta_bm_pool_put_bp(priv, bm_pool, phys_addr); in mvneta_bm_construct()
124 &bm_pool->phys_addr, in mvneta_bm_pool_create()
131 bm_pool->phys_addr); in mvneta_bm_pool_create()
137 err = mvebu_mbus_get_dram_win_info(bm_pool->phys_addr, &target_id, in mvneta_bm_pool_create()
141 bm_pool->phys_addr); in mvneta_bm_pool_create()
147 bm_pool->phys_addr); in mvneta_bm_pool_create()
275 bm_pool->virt_addr, bm_pool->phys_addr); in mvneta_bm_pool_destroy()
/drivers/net/wireless/intersil/orinoco/
Dairport.c152 unsigned long phys_addr; in airport_attach() local
182 phys_addr = macio_resource_start(mdev, 0); /* Physical address */ in airport_attach()
183 printk(KERN_DEBUG PFX "Physical address %lx\n", phys_addr); in airport_attach()
184 card->vaddr = ioremap(phys_addr, AIRPORT_IO_LEN); in airport_attach()
213 if (orinoco_if_add(priv, phys_addr, card->irq, NULL) != 0) { in airport_attach()
/drivers/clocksource/
Dhyperv_timer.c363 phys_addr_t phys_addr = virt_to_phys(&tsc_pg); in resume_hv_clock_tsc() local
369 tsc_msr |= BIT_ULL(0) | (u64)phys_addr; in resume_hv_clock_tsc()
424 phys_addr_t phys_addr; in hv_init_tsc_clocksource() local
430 phys_addr = virt_to_phys(hv_get_tsc_page()); in hv_init_tsc_clocksource()
441 tsc_msr = tsc_msr | 0x1 | (u64)phys_addr; in hv_init_tsc_clocksource()
/drivers/gpu/host1x/
Djob.c118 dma_addr_t phys_addr, *phys; in pin_job() local
140 phys = &phys_addr; in pin_job()
179 phys_addr = sg_dma_address(sgt->sgl); in pin_job()
182 job->addr_phys[job->num_unpins] = phys_addr; in pin_job()
199 dma_addr_t phys_addr; in pin_job() local
218 phys = &phys_addr; in pin_job()
251 phys_addr = iova_dma_addr(&host->iova, alloc); in pin_job()
259 phys_addr = sg_dma_address(sgt->sgl); in pin_job()
262 job->addr_phys[job->num_unpins] = phys_addr; in pin_job()
263 job->gather_addr_phys[i] = phys_addr; in pin_job()
/drivers/w1/masters/
Dmatrox_w1.c49 unsigned long phys_addr; member
140 dev->phys_addr = pci_resource_start(pdev, 1); in matrox_w1_probe()
142 dev->virt_addr = ioremap(dev->phys_addr, 16384); in matrox_w1_probe()
145 __func__, dev->phys_addr, 16384); in matrox_w1_probe()
/drivers/net/wireless/intel/iwlwifi/pcie/
Dtx-gen2.c82 dma_addr_t phys_addr; in iwl_pcie_gen2_enqueue_hcmd() local
248 phys_addr = dma_map_single(trans->dev, in iwl_pcie_gen2_enqueue_hcmd()
252 if (dma_mapping_error(trans->dev, phys_addr)) { in iwl_pcie_gen2_enqueue_hcmd()
257 iwl_txq_gen2_set_tb(trans, tfd, phys_addr, in iwl_pcie_gen2_enqueue_hcmd()
272 phys_addr = dma_map_single(trans->dev, (void *)data, in iwl_pcie_gen2_enqueue_hcmd()
274 if (dma_mapping_error(trans->dev, phys_addr)) { in iwl_pcie_gen2_enqueue_hcmd()
279 iwl_txq_gen2_set_tb(trans, tfd, phys_addr, cmdlen[i]); in iwl_pcie_gen2_enqueue_hcmd()
/drivers/firmware/efi/libstub/
Defi-stub.c343 paddr = in->phys_addr; in efi_get_virtmap()
346 in->virt_addr = in->phys_addr; in efi_get_virtmap()
358 paddr = round_down(in->phys_addr, SZ_64K); in efi_get_virtmap()
359 size += in->phys_addr - paddr; in efi_get_virtmap()
367 if (IS_ALIGNED(in->phys_addr, SZ_2M) && size >= SZ_2M) in efi_get_virtmap()
Drandomalloc.c31 region_end = min(md->phys_addr + md->num_pages * EFI_PAGE_SIZE - 1, in get_entry_num_slots()
36 first_slot = round_up(md->phys_addr, align); in get_entry_num_slots()
115 target = round_up(md->phys_addr, align) + target_slot * align; in efi_random_alloc()
/drivers/misc/habanalabs/common/
Dmmu_v1.c32 gen_pool_free(hdev->mmu_priv.mmu_pgt_pool, pgt_info->phys_addr, in _free_hop()
51 u64 phys_addr, shadow_addr; in alloc_hop() local
57 phys_addr = (u64) gen_pool_alloc(hdev->mmu_priv.mmu_pgt_pool, in alloc_hop()
59 if (!phys_addr) { in alloc_hop()
69 pgt_info->phys_addr = phys_addr; in alloc_hop()
78 gen_pool_free(hdev->mmu_priv.mmu_pgt_pool, phys_addr, in alloc_hop()
251 phys_hop_addr = get_pgt_info(ctx, shadow_hop_addr)->phys_addr; in get_phys_addr()
517 pgt_info->phys_addr, ctx->asid, pgt_info->num_of_ptes); in hl_mmu_v1_ctx_fini()
658 static int _hl_mmu_v1_map(struct hl_ctx *ctx, u64 virt_addr, u64 phys_addr, in _hl_mmu_v1_map() argument
769 curr_pte = (phys_addr & HOP_PHYS_ADDR_MASK) | LAST_MASK in _hl_mmu_v1_map()

12345678