/drivers/media/ |
D | cec-edid.c | 98 void cec_set_edid_phys_addr(u8 *edid, unsigned int size, u16 phys_addr) in cec_set_edid_phys_addr() argument 106 edid[loc] = phys_addr >> 8; in cec_set_edid_phys_addr() 107 edid[loc + 1] = phys_addr & 0xff; in cec_set_edid_phys_addr() 117 u16 cec_phys_addr_for_input(u16 phys_addr, u8 input) in cec_phys_addr_for_input() argument 123 if (phys_addr == 0) in cec_phys_addr_for_input() 126 if ((phys_addr & 0x0fff) == 0) in cec_phys_addr_for_input() 127 return phys_addr | (input << 8); in cec_phys_addr_for_input() 129 if ((phys_addr & 0x00ff) == 0) in cec_phys_addr_for_input() 130 return phys_addr | (input << 4); in cec_phys_addr_for_input() 132 if ((phys_addr & 0x000f) == 0) in cec_phys_addr_for_input() [all …]
|
/drivers/firmware/efi/ |
D | memmap.c | 219 start = md->phys_addr; in efi_memmap_split_count() 284 start = md->phys_addr; in efi_memmap_insert() 285 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_insert() 294 md->num_pages = (m_end - md->phys_addr + 1) >> in efi_memmap_insert() 300 md->phys_addr = m_end + 1; in efi_memmap_insert() 301 md->num_pages = (end - md->phys_addr + 1) >> in efi_memmap_insert() 307 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert() 314 md->phys_addr = m_start; in efi_memmap_insert() 321 md->phys_addr = m_end + 1; in efi_memmap_insert() 329 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert() [all …]
|
D | memattr.c | 59 u64 in_paddr = in->phys_addr; in entry_is_valid() 77 (!PAGE_ALIGNED(in->phys_addr) || in entry_is_valid() 91 u64 md_paddr = md->phys_addr; in entry_is_valid() 173 valid ? "" : "!", md.phys_addr, in efi_memattr_apply_permissions() 174 md.phys_addr + size - 1, in efi_memattr_apply_permissions()
|
D | efi.c | 356 int __init efi_mem_desc_lookup(u64 phys_addr, efi_memory_desc_t *out_md) in efi_mem_desc_lookup() argument 381 end = md->phys_addr + size; in efi_mem_desc_lookup() 382 if (phys_addr >= md->phys_addr && phys_addr < end) { in efi_mem_desc_lookup() 396 u64 end = md->phys_addr + size; in efi_mem_desc_end() 774 u64 __weak efi_mem_attributes(unsigned long phys_addr) in efi_mem_attributes() argument 782 if ((md->phys_addr <= phys_addr) && in efi_mem_attributes() 783 (phys_addr < (md->phys_addr + in efi_mem_attributes()
|
/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_ctx.c | 287 u64 phys_addr; in nx_fw_cmd_create_rx_ctx() local 348 prq_rds[i].host_phys_addr = cpu_to_le64(rds_ring->phys_addr); in nx_fw_cmd_create_rx_ctx() 361 prq_sds[i].host_phys_addr = cpu_to_le64(sds_ring->phys_addr); in nx_fw_cmd_create_rx_ctx() 366 phys_addr = hostrq_phys_addr; in nx_fw_cmd_create_rx_ctx() 368 cmd.req.arg1 = (u32)(phys_addr >> 32); in nx_fw_cmd_create_rx_ctx() 369 cmd.req.arg2 = (u32)(phys_addr & 0xffffffff); in nx_fw_cmd_create_rx_ctx() 446 u64 offset, phys_addr; in nx_fw_cmd_create_tx_ctx() local 483 prq->dummy_dma_addr = cpu_to_le64(adapter->dummy_dma.phys_addr); in nx_fw_cmd_create_tx_ctx() 485 offset = recv_ctx->phys_addr + sizeof(struct netxen_ring_ctx); in nx_fw_cmd_create_tx_ctx() 490 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 | 242 resource_size_t remap_size, phys_addr; in xps2_of_probe() local 275 phys_addr = r_mem.start; in xps2_of_probe() 277 if (!request_mem_region(phys_addr, remap_size, DRIVER_NAME)) { in xps2_of_probe() 279 (unsigned long long)phys_addr); in xps2_of_probe() 285 drvdata->base_address = ioremap(phys_addr, remap_size); in xps2_of_probe() 288 (unsigned long long)phys_addr); in xps2_of_probe() 301 (unsigned long long)phys_addr, drvdata->base_address, in xps2_of_probe() 311 "Xilinx XPS PS/2 at %08llX", (unsigned long long)phys_addr); in xps2_of_probe() 313 "xilinxps2/serio at %08llX", (unsigned long long)phys_addr); in xps2_of_probe() 321 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/acpi/ |
D | processor_core.c | 285 u64 *phys_addr, int *ioapic_id) in get_ioapic_id() argument 292 *phys_addr = ioapic->address; in get_ioapic_id() 297 static int parse_madt_ioapic_entry(u32 gsi_base, u64 *phys_addr) in parse_madt_ioapic_entry() argument 316 get_ioapic_id(hdr, gsi_base, phys_addr, &apic_id)) in parse_madt_ioapic_entry() 326 u64 *phys_addr) in parse_mat_ioapic_entry() argument 346 get_ioapic_id(header, gsi_base, phys_addr, &apic_id); in parse_mat_ioapic_entry() 364 int acpi_get_ioapic_id(acpi_handle handle, u32 gsi_base, u64 *phys_addr) in acpi_get_ioapic_id() argument 368 apic_id = parse_mat_ioapic_entry(handle, gsi_base, phys_addr); in acpi_get_ioapic_id() 370 apic_id = parse_madt_ioapic_entry(gsi_base, phys_addr); in acpi_get_ioapic_id()
|
/drivers/firmware/efi/libstub/ |
D | arm-stub.c | 378 return (left->phys_addr > right->phys_addr) ? 1 : -1; in cmp_mem_desc() 393 left_end = left->phys_addr + left->num_pages * EFI_PAGE_SIZE; in regions_are_adjacent() 395 return left_end == right->phys_addr; in regions_are_adjacent() 445 paddr = in->phys_addr; in efi_get_virtmap() 456 paddr = round_down(in->phys_addr, SZ_64K); in efi_get_virtmap() 457 size += in->phys_addr - paddr; in efi_get_virtmap() 465 if (IS_ALIGNED(in->phys_addr, SZ_2M) && size >= SZ_2M) in efi_get_virtmap() 471 in->virt_addr = efi_virt_base + in->phys_addr - paddr; in efi_get_virtmap()
|
D | random.c | 51 start = round_up(md->phys_addr, align); in get_entry_num_slots() 52 end = round_down(md->phys_addr + md->num_pages * EFI_PAGE_SIZE - size, in get_entry_num_slots() 130 target = round_up(md->phys_addr, align) + target_slot * align; in efi_random_alloc()
|
/drivers/staging/media/cec/ |
D | cec-api.c | 105 u16 phys_addr; in cec_adap_g_phys_addr() local 108 phys_addr = adap->phys_addr; in cec_adap_g_phys_addr() 110 if (copy_to_user(parg, &phys_addr, sizeof(phys_addr))) in cec_adap_g_phys_addr() 118 u16 phys_addr; in cec_adap_s_phys_addr() local 123 if (copy_from_user(&phys_addr, parg, sizeof(phys_addr))) in cec_adap_s_phys_addr() 126 err = cec_phys_addr_validate(phys_addr, NULL, NULL); in cec_adap_s_phys_addr() 133 __cec_s_phys_addr(adap, phys_addr, block); in cec_adap_s_phys_addr() 513 ev_state.state_change.phys_addr = adap->phys_addr; in cec_open()
|
D | cec-adap.c | 225 ev.state_change.phys_addr = adap->phys_addr; in cec_post_state_event() 653 msg->msg[2] = adap->phys_addr >> 8; in cec_transmit_msg_fh() 654 msg->msg[3] = adap->phys_addr & 0xff; in cec_transmit_msg_fh() 911 adap->phys_addrs[log_addr] = adap->phys_addr; in cec_config_log_addr() 995 cec_phys_addr_exp(adap->phys_addr), las->num_log_addrs); in cec_config_thread_func() 1011 if (adap->phys_addr && type == CEC_LOG_ADDR_TYPE_TV) in cec_config_thread_func() 1129 void __cec_s_phys_addr(struct cec_adapter *adap, u16 phys_addr, bool block) in __cec_s_phys_addr() argument 1131 if (phys_addr == adap->phys_addr || adap->devnode.unregistered) in __cec_s_phys_addr() 1134 if (phys_addr == CEC_PHYS_ADDR_INVALID || in __cec_s_phys_addr() 1135 adap->phys_addr != CEC_PHYS_ADDR_INVALID) { in __cec_s_phys_addr() [all …]
|
/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/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/base/ |
D | dma-coherent.c | 22 phys_addr_t phys_addr, dma_addr_t device_addr, size_t size, int flags, in dma_init_coherent_memory() argument 36 mem_base = memremap(phys_addr, size, MEMREMAP_WC); in dma_init_coherent_memory() 38 mem_base = ioremap(phys_addr, size); in dma_init_coherent_memory() 51 dma_mem->pfn_base = PFN_DOWN(phys_addr); in dma_init_coherent_memory() 95 int dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr, in dma_declare_coherent_memory() argument 100 if (!dma_init_coherent_memory(phys_addr, device_addr, size, flags, in dma_declare_coherent_memory()
|
/drivers/w1/masters/ |
D | matrox_w1.c | 85 unsigned long phys_addr; member 182 dev->phys_addr = pci_resource_start(pdev, 1); in matrox_w1_probe() 184 dev->virt_addr = ioremap_nocache(dev->phys_addr, 16384); in matrox_w1_probe() 187 __func__, dev->phys_addr, 16384); in matrox_w1_probe()
|
/drivers/gpu/host1x/ |
D | job.c | 186 dma_addr_t phys_addr; in pin_job() local 192 phys_addr = host1x_bo_pin(reloc->target.bo, &sgt); in pin_job() 193 if (!phys_addr) in pin_job() 196 job->addr_phys[job->num_unpins] = phys_addr; in pin_job() 205 dma_addr_t phys_addr; in pin_job() local 211 phys_addr = host1x_bo_pin(g->bo, &sgt); in pin_job() 212 if (!phys_addr) in pin_job() 215 job->addr_phys[job->num_unpins] = phys_addr; in pin_job()
|
/drivers/scsi/be2iscsi/ |
D | be_cmds.h | 272 struct phys_addr { struct 319 struct phys_addr pages[8]; 619 struct phys_addr pages[4]; 654 struct phys_addr pages[8]; 890 struct phys_addr pages[8]; 908 struct phys_addr scratch_pa; 911 struct phys_addr pages[16]; 925 struct phys_addr pages[26]; 934 struct phys_addr pages[8]; 1101 struct phys_addr dataout_template_pa; [all …]
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_ctx.c | 253 u64 phys_addr; in qlcnic_82xx_fw_cmd_create_rx_ctx() local 315 prq_rds[i].host_phys_addr = cpu_to_le64(rds_ring->phys_addr); in qlcnic_82xx_fw_cmd_create_rx_ctx() 328 prq_sds[i].host_phys_addr = cpu_to_le64(sds_ring->phys_addr); in qlcnic_82xx_fw_cmd_create_rx_ctx() 337 phys_addr = hostrq_phys_addr; in qlcnic_82xx_fw_cmd_create_rx_ctx() 342 cmd.req.arg[1] = MSD(phys_addr); in qlcnic_82xx_fw_cmd_create_rx_ctx() 343 cmd.req.arg[2] = LSD(phys_addr); in qlcnic_82xx_fw_cmd_create_rx_ctx() 428 u64 phys_addr; in qlcnic_82xx_fw_cmd_create_tx_ctx() local 479 prq_cds->host_phys_addr = cpu_to_le64(tx_ring->phys_addr); in qlcnic_82xx_fw_cmd_create_tx_ctx() 482 phys_addr = rq_phys_addr; in qlcnic_82xx_fw_cmd_create_tx_ctx() 488 cmd.req.arg[1] = MSD(phys_addr); in qlcnic_82xx_fw_cmd_create_tx_ctx() [all …]
|
/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() 928 if (baddr >= map->phys_addr && in rio_dma_transfer() 929 baddr < (map->phys_addr + map->size)) { in rio_dma_transfer() 954 map->virt_addr + (baddr - map->phys_addr) + in rio_dma_transfer() 1149 &map->phys_addr, GFP_KERNEL); in rio_mport_create_dma_mapping() 1183 map.dma_handle = mapping->phys_addr; in rio_mport_alloc_dma() 1209 if (map->dir == MAP_DMA && map->phys_addr == handle && in rio_mport_free_dma() [all …]
|
/drivers/sbus/char/ |
D | jsflash.c | 478 reg0.which_io, reg0.phys_addr); in jsflash_init() 486 if ((reg0.phys_addr >> 24) != 0x20) { in jsflash_init() 488 reg0.which_io, reg0.phys_addr); in jsflash_init() 505 reg0.phys_addr = 0x20400000; in jsflash_init() 518 jsf->base = reg0.phys_addr; in jsflash_init()
|
/drivers/net/ethernet/amd/ |
D | 7990.c | 162 ib->phys_addr[0] = dev->dev_addr[1]; in lance_init_ring() 163 ib->phys_addr[1] = dev->dev_addr[0]; in lance_init_ring() 164 ib->phys_addr[2] = dev->dev_addr[3]; in lance_init_ring() 165 ib->phys_addr[3] = dev->dev_addr[2]; in lance_init_ring() 166 ib->phys_addr[4] = dev->dev_addr[5]; in lance_init_ring() 167 ib->phys_addr[5] = dev->dev_addr[4]; in lance_init_ring() 170 ib->phys_addr[i] = dev->dev_addr[i]; in lance_init_ring()
|