/drivers/media/cec/ |
D | cec-edid.c | 38 void cec_set_edid_phys_addr(u8 *edid, unsigned int size, u16 phys_addr) in cec_set_edid_phys_addr() argument 46 edid[loc] = phys_addr >> 8; in cec_set_edid_phys_addr() 47 edid[loc + 1] = phys_addr & 0xff; in cec_set_edid_phys_addr() 57 u16 cec_phys_addr_for_input(u16 phys_addr, u8 input) in cec_phys_addr_for_input() argument 63 if (phys_addr == 0) in cec_phys_addr_for_input() 66 if ((phys_addr & 0x0fff) == 0) in cec_phys_addr_for_input() 67 return phys_addr | (input << 8); in cec_phys_addr_for_input() 69 if ((phys_addr & 0x00ff) == 0) in cec_phys_addr_for_input() 70 return phys_addr | (input << 4); in cec_phys_addr_for_input() 72 if ((phys_addr & 0x000f) == 0) in cec_phys_addr_for_input() [all …]
|
D | cec-api.c | 106 u16 phys_addr; in cec_adap_g_phys_addr() local 109 phys_addr = adap->phys_addr; in cec_adap_g_phys_addr() 111 if (copy_to_user(parg, &phys_addr, sizeof(phys_addr))) in cec_adap_g_phys_addr() 116 static int cec_validate_phys_addr(u16 phys_addr) in cec_validate_phys_addr() argument 120 if (phys_addr == CEC_PHYS_ADDR_INVALID) in cec_validate_phys_addr() 123 if (phys_addr & (0xf << i)) in cec_validate_phys_addr() 128 if ((phys_addr & (0xf << i)) == 0) in cec_validate_phys_addr() 136 u16 phys_addr; in cec_adap_s_phys_addr() local 141 if (copy_from_user(&phys_addr, parg, sizeof(phys_addr))) in cec_adap_s_phys_addr() 144 err = cec_validate_phys_addr(phys_addr); in cec_adap_s_phys_addr() [all …]
|
D | cec-notifier.c | 39 u16 phys_addr; member 61 n->phys_addr = CEC_PHYS_ADDR_INVALID; in cec_notifier_get() 94 n->phys_addr = pa; in cec_notifier_set_phys_addr() 96 n->callback(n->cec_adap, n->phys_addr); in cec_notifier_set_phys_addr() 124 n->callback(adap, n->phys_addr); in cec_notifier_register()
|
D | cec-adap.c | 272 ev.state_change.phys_addr = adap->phys_addr; in cec_post_state_event() 778 msg->msg[2] = adap->phys_addr >> 8; in cec_transmit_msg_fh() 779 msg->msg[3] = adap->phys_addr & 0xff; in cec_transmit_msg_fh() 1224 adap->phys_addrs[log_addr] = adap->phys_addr; in cec_config_log_addr() 1237 adap->phys_addr != CEC_PHYS_ADDR_INVALID) in cec_adap_unconfigure() 1308 cec_phys_addr_exp(adap->phys_addr), las->num_log_addrs); in cec_config_thread_func() 1324 if (adap->phys_addr && type == CEC_LOG_ADDR_TYPE_TV) in cec_config_thread_func() 1410 cec_msg_report_physical_addr(&msg, adap->phys_addr, in cec_config_thread_func() 1414 cec_phys_addr_exp(adap->phys_addr)); in cec_config_thread_func() 1469 void __cec_s_phys_addr(struct cec_adapter *adap, u16 phys_addr, bool block) in __cec_s_phys_addr() argument [all …]
|
/drivers/firmware/efi/ |
D | memmap.c | 223 start = md->phys_addr; in efi_memmap_split_count() 288 start = md->phys_addr; in efi_memmap_insert() 289 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_insert() 298 md->num_pages = (m_end - md->phys_addr + 1) >> in efi_memmap_insert() 304 md->phys_addr = m_end + 1; in efi_memmap_insert() 305 md->num_pages = (end - md->phys_addr + 1) >> in efi_memmap_insert() 311 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert() 318 md->phys_addr = m_start; in efi_memmap_insert() 325 md->phys_addr = m_end + 1; in efi_memmap_insert() 333 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert() [all …]
|
D | efi.c | 382 int __init efi_mem_desc_lookup(u64 phys_addr, efi_memory_desc_t *out_md) in efi_mem_desc_lookup() argument 407 end = md->phys_addr + size; in efi_mem_desc_lookup() 408 if (phys_addr >= md->phys_addr && phys_addr < end) { in efi_mem_desc_lookup() 422 u64 end = md->phys_addr + size; in efi_mem_desc_end() 828 u64 efi_mem_attributes(unsigned long phys_addr) in efi_mem_attributes() argument 836 if ((md->phys_addr <= phys_addr) && in efi_mem_attributes() 837 (phys_addr < (md->phys_addr + in efi_mem_attributes() 852 int efi_mem_type(unsigned long phys_addr) in efi_mem_type() argument 860 if ((md->phys_addr <= phys_addr) && in efi_mem_type() 861 (phys_addr < (md->phys_addr + in efi_mem_type() [all …]
|
D | memattr.c | 60 u64 in_paddr = in->phys_addr; in entry_is_valid() 78 (!PAGE_ALIGNED(in->phys_addr) || in entry_is_valid() 92 u64 md_paddr = md->phys_addr; in entry_is_valid() 97 if (md->virt_addr == 0 && md->phys_addr != 0) { in entry_is_valid() 174 valid ? "" : "!", md.phys_addr, in efi_memattr_apply_permissions() 175 md.phys_addr + size - 1, in efi_memattr_apply_permissions()
|
/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_ctx.c | 284 u64 phys_addr; in nx_fw_cmd_create_rx_ctx() local 345 prq_rds[i].host_phys_addr = cpu_to_le64(rds_ring->phys_addr); in nx_fw_cmd_create_rx_ctx() 358 prq_sds[i].host_phys_addr = cpu_to_le64(sds_ring->phys_addr); in nx_fw_cmd_create_rx_ctx() 363 phys_addr = hostrq_phys_addr; in nx_fw_cmd_create_rx_ctx() 365 cmd.req.arg1 = (u32)(phys_addr >> 32); in nx_fw_cmd_create_rx_ctx() 366 cmd.req.arg2 = (u32)(phys_addr & 0xffffffff); in nx_fw_cmd_create_rx_ctx() 443 u64 offset, phys_addr; in nx_fw_cmd_create_tx_ctx() local 480 prq->dummy_dma_addr = cpu_to_le64(adapter->dummy_dma.phys_addr); in nx_fw_cmd_create_tx_ctx() 482 offset = recv_ctx->phys_addr + sizeof(struct netxen_ring_ctx); in nx_fw_cmd_create_tx_ctx() 487 prq_cds->host_phys_addr = cpu_to_le64(tx_ring->phys_addr); in nx_fw_cmd_create_tx_ctx() [all …]
|
/drivers/input/serio/ |
D | xilinx_ps2.c | 244 resource_size_t remap_size, phys_addr; in xps2_of_probe() local 276 phys_addr = r_mem.start; in xps2_of_probe() 278 if (!request_mem_region(phys_addr, remap_size, DRIVER_NAME)) { in xps2_of_probe() 280 (unsigned long long)phys_addr); in xps2_of_probe() 286 drvdata->base_address = ioremap(phys_addr, remap_size); in xps2_of_probe() 289 (unsigned long long)phys_addr); in xps2_of_probe() 304 (unsigned long long)phys_addr, drvdata->base_address, in xps2_of_probe() 314 "Xilinx XPS PS/2 at %08llX", (unsigned long long)phys_addr); in xps2_of_probe() 316 "xilinxps2/serio at %08llX", (unsigned long long)phys_addr); in xps2_of_probe() 324 release_mem_region(phys_addr, remap_size); in xps2_of_probe()
|
/drivers/misc/sgi-xp/ |
D | xp_uv.c | 90 xp_expand_memprotect_uv(unsigned long phys_addr, unsigned long size) in xp_expand_memprotect_uv() argument 95 ret = uv_bios_change_memprotect(phys_addr, size, UV_MEMPROT_ALLOW_RW); in xp_expand_memprotect_uv() 105 ret = sn_change_memprotect(phys_addr, size, SN_MEMPROT_ACCESS_CLASS_1, in xp_expand_memprotect_uv() 119 xp_restrict_memprotect_uv(unsigned long phys_addr, unsigned long size) in xp_restrict_memprotect_uv() argument 124 ret = uv_bios_change_memprotect(phys_addr, size, in xp_restrict_memprotect_uv() 135 ret = sn_change_memprotect(phys_addr, size, SN_MEMPROT_ACCESS_CLASS_0, in xp_restrict_memprotect_uv()
|
D | xp_sn2.c | 133 xp_expand_memprotect_sn2(unsigned long phys_addr, unsigned long size) in xp_expand_memprotect_sn2() argument 138 ret = sn_change_memprotect(phys_addr, size, SN_MEMPROT_ACCESS_CLASS_1, in xp_expand_memprotect_sn2() 149 xp_restrict_memprotect_sn2(unsigned long phys_addr, unsigned long size) in xp_restrict_memprotect_sn2() argument 154 ret = sn_change_memprotect(phys_addr, size, SN_MEMPROT_ACCESS_CLASS_0, in xp_restrict_memprotect_sn2()
|
/drivers/firmware/efi/libstub/ |
D | arm-stub.c | 295 return (left->phys_addr > right->phys_addr) ? 1 : -1; in cmp_mem_desc() 310 left_end = left->phys_addr + left->num_pages * EFI_PAGE_SIZE; in regions_are_adjacent() 312 return left_end == right->phys_addr; in regions_are_adjacent() 364 paddr = in->phys_addr; in efi_get_virtmap() 368 in->virt_addr = in->phys_addr; in efi_get_virtmap() 381 paddr = round_down(in->phys_addr, SZ_64K); in efi_get_virtmap() 382 size += in->phys_addr - paddr; in efi_get_virtmap() 390 if (IS_ALIGNED(in->phys_addr, SZ_2M) && size >= SZ_2M) in efi_get_virtmap() 396 in->virt_addr = efi_virt_base + in->phys_addr - paddr; in efi_get_virtmap()
|
/drivers/acpi/ |
D | processor_core.c | 267 u64 *phys_addr, int *ioapic_id) in get_ioapic_id() argument 274 *phys_addr = ioapic->address; in get_ioapic_id() 279 static int parse_madt_ioapic_entry(u32 gsi_base, u64 *phys_addr) in parse_madt_ioapic_entry() argument 298 get_ioapic_id(hdr, gsi_base, phys_addr, &apic_id)) in parse_madt_ioapic_entry() 308 u64 *phys_addr) in parse_mat_ioapic_entry() argument 328 get_ioapic_id(header, gsi_base, phys_addr, &apic_id); in parse_mat_ioapic_entry() 346 int acpi_get_ioapic_id(acpi_handle handle, u32 gsi_base, u64 *phys_addr) in acpi_get_ioapic_id() argument 350 apic_id = parse_mat_ioapic_entry(handle, gsi_base, phys_addr); in acpi_get_ioapic_id() 352 apic_id = parse_madt_ioapic_entry(gsi_base, phys_addr); in acpi_get_ioapic_id()
|
/drivers/pci/endpoint/ |
D | pci-epc-mem.c | 133 phys_addr_t *phys_addr, size_t size) in pci_epc_mem_alloc_addr() argument 148 *phys_addr = mem->phys_base + (pageno << page_shift); in pci_epc_mem_alloc_addr() 149 virt_addr = ioremap(*phys_addr, size); in pci_epc_mem_alloc_addr() 166 void pci_epc_mem_free_addr(struct pci_epc *epc, phys_addr_t phys_addr, in pci_epc_mem_free_addr() argument 175 pageno = (phys_addr - mem->phys_base) >> page_shift; in pci_epc_mem_free_addr()
|
D | pci-epf-core.c | 108 epf->bar[bar].phys_addr); in pci_epf_free_space() 110 epf->bar[bar].phys_addr = 0; in pci_epf_free_space() 126 dma_addr_t phys_addr; in pci_epf_alloc_space() local 132 space = dma_alloc_coherent(dev, size, &phys_addr, GFP_KERNEL); in pci_epf_alloc_space() 138 epf->bar[bar].phys_addr = phys_addr; in pci_epf_alloc_space()
|
/drivers/net/ethernet/3com/ |
D | 3c509.c | 219 static int el3_isa_id_sequence(__be16 *phys_addr) in el3_isa_id_sequence() argument 247 phys_addr[i] = htons(id_read_eeprom(i)); in el3_isa_id_sequence() 255 ether_addr_equal((u8 *)phys_addr, el3_devs[i]->dev_addr)) { in el3_isa_id_sequence() 258 phys_addr[0] & 0xff, phys_addr[0] >> 8, in el3_isa_id_sequence() 259 phys_addr[1] & 0xff, phys_addr[1] >> 8, in el3_isa_id_sequence() 260 phys_addr[2] & 0xff, phys_addr[2] >> 8); in el3_isa_id_sequence() 272 static void el3_dev_fill(struct net_device *dev, __be16 *phys_addr, int ioaddr, in el3_dev_fill() argument 277 memcpy(dev->dev_addr, phys_addr, ETH_ALEN); in el3_dev_fill() 289 __be16 phys_addr[3]; in el3_isa_match() local 291 while ((err = el3_isa_id_sequence(phys_addr)) == 2) in el3_isa_match() [all …]
|
/drivers/pci/endpoint/functions/ |
D | pci-epf-test.c | 152 phys_addr_t phys_addr; in pci_epf_test_read() local 159 src_addr = pci_epc_mem_alloc_addr(epc, &phys_addr, reg->size); in pci_epf_test_read() 167 ret = pci_epc_map_addr(epc, phys_addr, reg->src_addr, reg->size); in pci_epf_test_read() 189 pci_epc_unmap_addr(epc, phys_addr); in pci_epf_test_read() 192 pci_epc_mem_free_addr(epc, phys_addr, src_addr, reg->size); in pci_epf_test_read() 203 phys_addr_t phys_addr; in pci_epf_test_write() local 210 dst_addr = pci_epc_mem_alloc_addr(epc, &phys_addr, reg->size); in pci_epf_test_write() 218 ret = pci_epc_map_addr(epc, phys_addr, reg->dst_addr, reg->size); in pci_epf_test_write() 245 pci_epc_unmap_addr(epc, phys_addr); in pci_epf_test_write() 248 pci_epc_mem_free_addr(epc, phys_addr, dst_addr, reg->size); in pci_epf_test_write() [all …]
|
/drivers/misc/ |
D | pci_endpoint_test.c | 309 dma_addr_t phys_addr; in pci_endpoint_test_write() local 330 phys_addr = PTR_ALIGN(orig_phys_addr, alignment); in pci_endpoint_test_write() 331 offset = phys_addr - orig_phys_addr; in pci_endpoint_test_write() 334 phys_addr = orig_phys_addr; in pci_endpoint_test_write() 345 lower_32_bits(phys_addr)); in pci_endpoint_test_write() 347 upper_32_bits(phys_addr)); in pci_endpoint_test_write() 370 dma_addr_t phys_addr; in pci_endpoint_test_read() local 391 phys_addr = PTR_ALIGN(orig_phys_addr, alignment); in pci_endpoint_test_read() 392 offset = phys_addr - orig_phys_addr; in pci_endpoint_test_read() 395 phys_addr = orig_phys_addr; in pci_endpoint_test_read() [all …]
|
/drivers/net/ethernet/marvell/ |
D | mvneta_bm.c | 97 dma_addr_t phys_addr; in mvneta_bm_construct() local 104 phys_addr = dma_map_single(&priv->pdev->dev, buf, bm_pool->buf_size, in mvneta_bm_construct() 106 if (unlikely(dma_mapping_error(&priv->pdev->dev, phys_addr))) in mvneta_bm_construct() 109 mvneta_bm_pool_put_bp(priv, bm_pool, phys_addr); in mvneta_bm_construct() 123 &bm_pool->phys_addr, in mvneta_bm_pool_create() 130 bm_pool->phys_addr); in mvneta_bm_pool_create() 136 err = mvebu_mbus_get_dram_win_info(bm_pool->phys_addr, &target_id, in mvneta_bm_pool_create() 140 bm_pool->phys_addr); in mvneta_bm_pool_create() 146 bm_pool->phys_addr); in mvneta_bm_pool_create() 274 bm_pool->virt_addr, bm_pool->phys_addr); in mvneta_bm_pool_destroy()
|
/drivers/misc/mic/scif/ |
D | scif_mmap.c | 268 (*pages)->phys_addr = scif_zalloc(nr_pages * sizeof(dma_addr_t)); in scif_get_pages() 269 if (!((*pages)->phys_addr)) { in scif_get_pages() 288 (*pages)->phys_addr[i] = in scif_get_pages() 291 (*pages)->phys_addr[i] = scif_get_phys((*pages)->phys_addr[i], in scif_get_pages() 296 (*pages)->phys_addr[i] - in scif_get_pages() 305 scif_free((*pages)->phys_addr, in scif_get_pages() 365 scif_free(pages->phys_addr, pages->nr_pages * sizeof(dma_addr_t)); in scif_put_pages() 390 dma_addr_t phys_addr; in scif_rma_list_mmap() local 403 phys_addr = scif_off_to_dma_addr(window, loop_offset, in scif_rma_list_mmap() 406 phys_addr = scif_get_phys(phys_addr, ep); in scif_rma_list_mmap() [all …]
|
/drivers/net/wireless/intersil/orinoco/ |
D | airport.c | 152 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/w1/masters/ |
D | matrox_w1.c | 63 unsigned long phys_addr; member 154 dev->phys_addr = pci_resource_start(pdev, 1); in matrox_w1_probe() 156 dev->virt_addr = ioremap_nocache(dev->phys_addr, 16384); in matrox_w1_probe() 159 __func__, dev->phys_addr, 16384); in matrox_w1_probe()
|
/drivers/net/ethernet/hisilicon/ |
D | hix5hd2_gmac.c | 217 dma_addr_t phys_addr; member 224 dma_addr_t phys_addr; member 383 hix5hd2_set_rx_fq(priv, priv->rx_fq.phys_addr); in hix5hd2_set_desc_addr() 384 hix5hd2_set_rx_bq(priv, priv->rx_bq.phys_addr); in hix5hd2_set_desc_addr() 385 hix5hd2_set_tx_rq(priv, priv->tx_rq.phys_addr); in hix5hd2_set_desc_addr() 386 hix5hd2_set_tx_bq(priv, priv->tx_bq.phys_addr); in hix5hd2_set_desc_addr() 769 addr = priv->tx_ring.phys_addr + pos * sizeof(struct sg_desc); in hix5hd2_net_xmit() 989 priv->pool[i].phys_addr); in hix5hd2_destroy_hw_desc_queue() 999 dma_addr_t phys_addr; in hix5hd2_init_hw_desc_queue() local 1009 virt_addr = dma_alloc_coherent(dev, size, &phys_addr, in hix5hd2_init_hw_desc_queue() [all …]
|
/drivers/base/ |
D | dma-coherent.c | 42 phys_addr_t phys_addr, dma_addr_t device_addr, size_t size, int flags, in dma_init_coherent_memory() argument 56 mem_base = memremap(phys_addr, size, MEMREMAP_WC); in dma_init_coherent_memory() 74 dma_mem->pfn_base = PFN_DOWN(phys_addr); in dma_init_coherent_memory() 112 int dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr, in dma_declare_coherent_memory() argument 118 ret = dma_init_coherent_memory(phys_addr, device_addr, size, flags, &mem); in dma_declare_coherent_memory()
|
/drivers/rapidio/devices/ |
D | rio_mport_cdev.c | 131 dma_addr_t phys_addr; /* for mmap */ member 388 map->phys_addr = *paddr; in rio_mport_create_outbound_mapping() 413 *paddr = map->phys_addr; in rio_mport_get_outbound_mapping() 483 if (map->dir == MAP_OUTBOUND && map->phys_addr == handle) { in rio_mport_obw_free() 927 if (baddr >= map->phys_addr && in rio_dma_transfer() 928 baddr < (map->phys_addr + map->size)) { in rio_dma_transfer() 953 map->virt_addr + (baddr - map->phys_addr) + in rio_dma_transfer() 1148 &map->phys_addr, GFP_KERNEL); in rio_mport_create_dma_mapping() 1182 map.dma_handle = mapping->phys_addr; in rio_mport_alloc_dma() 1208 if (map->dir == MAP_DMA && map->phys_addr == handle && in rio_mport_free_dma() [all …]
|