Home
last modified time | relevance | path

Searched refs:phys (Results 1 – 25 of 749) sorted by relevance

12345678910>>...30

/drivers/virt/coco/pkvm-guest/
Darm-pkvm-guest.c24 static int __arm_smccc_do(u32 func_id, phys_addr_t phys, int numgranules) in __arm_smccc_do() argument
29 arm_smccc_1_1_invoke(func_id, phys, 0, 0, &res); in __arm_smccc_do()
33 phys += pkvm_granule; in __arm_smccc_do()
39 static int __arm_smccc_do_range(u32 func_id, phys_addr_t phys, int numgranules) in __arm_smccc_do_range() argument
44 arm_smccc_1_1_invoke(func_id, phys, numgranules, 0, &res); in __arm_smccc_do_range()
48 phys += pkvm_granule * res.a1; in __arm_smccc_do_range()
58 static int arm_smccc_do_range(u32 func_id, phys_addr_t phys, int numpages, in arm_smccc_do_range() argument
64 if (!IS_ALIGNED(phys, PAGE_SIZE)) in arm_smccc_do_range()
67 if (!IS_ALIGNED(phys | size, pkvm_granule)) in arm_smccc_do_range()
73 return __arm_smccc_do_range(func_id, phys, numgranules); in arm_smccc_do_range()
[all …]
/drivers/mtd/maps/
Dichxrom.c38 unsigned long phys; member
83 window->phys = 0; in ichxrom_cleanup()
113 window->phys = 0; in ichxrom_init_one()
116 window->phys = 0xffc00000; in ichxrom_init_one()
119 window->phys = 0xff400000; in ichxrom_init_one()
122 window->phys = 0xff500000; in ichxrom_init_one()
125 window->phys = 0xff600000; in ichxrom_init_one()
128 window->phys = 0xff700000; in ichxrom_init_one()
132 window->phys = 0xffc80000; in ichxrom_init_one()
135 window->phys = 0xffd00000; in ichxrom_init_one()
[all …]
Desb2rom.c99 unsigned long phys; member
142 window->phys = 0; in esb2rom_cleanup()
187 window->phys = 0; in esb2rom_init_one()
192 window->phys = 0xff400000; in esb2rom_init_one()
194 window->phys = 0xff500000; in esb2rom_init_one()
196 window->phys = 0xff600000; in esb2rom_init_one()
198 window->phys = 0xFF700000; in esb2rom_init_one()
200 window->phys = 0xffc00000; in esb2rom_init_one()
202 window->phys = 0xffc80000; in esb2rom_init_one()
204 window->phys = 0xffd00000; in esb2rom_init_one()
[all …]
Damd76xrom.c33 unsigned long phys; member
97 window->phys = 0; in amd76xrom_cleanup()
129 window->phys = 0xffb00000; /* 5MiB */ in amd76xrom_init_one()
132 window->phys = 0xffc00000; /* 4MiB */ in amd76xrom_init_one()
135 window->phys = 0xffff0000; /* 64KiB */ in amd76xrom_init_one()
137 window->size = 0xffffffffUL - window->phys + 1UL; in amd76xrom_init_one()
147 window->rsrc.start = window->phys; in amd76xrom_init_one()
148 window->rsrc.end = window->phys + window->size - 1; in amd76xrom_init_one()
166 window->virt = ioremap(window->phys, window->size); in amd76xrom_init_one()
169 window->phys, window->size); in amd76xrom_init_one()
[all …]
Dck804xrom.c37 unsigned long phys; member
109 window->phys = 0; in ck804xrom_cleanup()
145 window->phys = 0xffb00000; /* 5MiB */ in ck804xrom_init_one()
147 window->phys = 0xffc00000; /* 4MiB */ in ck804xrom_init_one()
149 window->phys = 0xffff0000; /* 64KiB */ in ck804xrom_init_one()
162 window->phys = 0xff000000; /* 16MiB, hardcoded for now */ in ck804xrom_init_one()
166 window->size = 0xffffffffUL - window->phys + 1UL; in ck804xrom_init_one()
176 window->rsrc.start = window->phys; in ck804xrom_init_one()
177 window->rsrc.end = window->phys + window->size - 1; in ck804xrom_init_one()
194 window->virt = ioremap(window->phys, window->size); in ck804xrom_init_one()
[all …]
Duclinux.c55 size_t *retlen, void **virt, resource_size_t *phys) in uclinux_point() argument
59 if (phys) in uclinux_point()
60 *phys = map->phys + from; in uclinux_point()
75 mapp->phys = (resource_size_t)__bss_stop; in uclinux_mtd_init()
77 mapp->phys = physaddr; in uclinux_mtd_init()
80 mapp->size = PAGE_ALIGN(ntohl(*((unsigned long *)(mapp->phys + 8)))); in uclinux_mtd_init()
84 (int) mapp->phys, (int) mapp->size); in uclinux_mtd_init()
92 mapp->virt = phys_to_virt(mapp->phys); in uclinux_mtd_init()
Dsa1100-flash.c64 release_mem_region(subdev->map.phys, subdev->map.size); in sa1100_destroy_subdev()
69 unsigned long phys; in sa1100_probe_subdev() local
73 phys = res->start; in sa1100_probe_subdev()
74 size = res->end - phys + 1; in sa1100_probe_subdev()
80 switch (phys) { in sa1100_probe_subdev()
83 "0x%08lx, assuming CS0\n", phys); in sa1100_probe_subdev()
94 if (!request_mem_region(phys, size, subdev->name)) { in sa1100_probe_subdev()
102 subdev->map.phys = phys; in sa1100_probe_subdev()
104 subdev->map.virt = ioremap(phys, size); in sa1100_probe_subdev()
123 phys, (unsigned)(subdev->mtd->size >> 20), in sa1100_probe_subdev()
Dsolutionengine.c39 soleng_flash_map.phys = 0; in init_soleng_maps()
41 soleng_eprom_map.phys = 0x01000000; in init_soleng_maps()
51 soleng_flash_map.phys = 0x01000000; in init_soleng_maps()
53 soleng_eprom_map.phys = 0; in init_soleng_maps()
63 &soleng_flash_map.phys, in init_soleng_maps()
64 &soleng_eprom_map.phys); in init_soleng_maps()
/drivers/firmware/tegra/
Divc.c77 static inline void tegra_ivc_invalidate(struct tegra_ivc *ivc, dma_addr_t phys) in tegra_ivc_invalidate() argument
82 dma_sync_single_for_cpu(ivc->peer, phys, TEGRA_IVC_ALIGN, in tegra_ivc_invalidate()
86 static inline void tegra_ivc_flush(struct tegra_ivc *ivc, dma_addr_t phys) in tegra_ivc_flush() argument
91 dma_sync_single_for_device(ivc->peer, phys, TEGRA_IVC_ALIGN, in tegra_ivc_flush()
198 tegra_ivc_invalidate(ivc, ivc->rx.phys + offset); in tegra_ivc_check_read()
218 tegra_ivc_invalidate(ivc, ivc->tx.phys + offset); in tegra_ivc_check_write()
240 dma_addr_t phys, in tegra_ivc_frame_phys() argument
247 return phys + offset; in tegra_ivc_frame_phys()
251 dma_addr_t phys, in tegra_ivc_invalidate_frame() argument
259 phys = tegra_ivc_frame_phys(ivc, phys, frame) + offset; in tegra_ivc_invalidate_frame()
[all …]
/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_encoder.c290 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_get_crc_values_cnt() local
292 if (phys->hw_intf && phys->hw_intf->ops.setup_misr in dpu_encoder_get_crc_values_cnt()
293 && phys->hw_intf->ops.collect_misr) in dpu_encoder_get_crc_values_cnt()
309 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_setup_misr() local
311 if (!phys->hw_intf || !phys->hw_intf->ops.setup_misr) in dpu_encoder_setup_misr()
314 phys->hw_intf->ops.setup_misr(phys->hw_intf); in dpu_encoder_setup_misr()
332 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_get_crc() local
334 if (!phys->hw_intf || !phys->hw_intf->ops.collect_misr) in dpu_encoder_get_crc()
337 rc = phys->hw_intf->ops.collect_misr(phys->hw_intf, &crcs[pos + entries_added]); in dpu_encoder_get_crc()
479 struct dpu_encoder_phys *phys = dpu_enc ? dpu_enc->cur_master : NULL; in dpu_encoder_get_vsync_count() local
[all …]
Ddpu_encoder_phys.h110 void (*irq_enable)(struct dpu_encoder_phys *phys);
111 void (*irq_disable)(struct dpu_encoder_phys *phys);
113 void (*restore)(struct dpu_encoder_phys *phys);
114 int (*get_line_count)(struct dpu_encoder_phys *phys);
115 int (*get_frame_count)(struct dpu_encoder_phys *phys);
203 static inline int dpu_encoder_phys_inc_pending(struct dpu_encoder_phys *phys) in dpu_encoder_phys_inc_pending() argument
205 atomic_inc_return(&phys->pending_ctlstart_cnt); in dpu_encoder_phys_inc_pending()
206 return atomic_inc_return(&phys->pending_kickoff_cnt); in dpu_encoder_phys_inc_pending()
438 void dpu_encoder_phys_init(struct dpu_encoder_phys *phys,
/drivers/virt/coco/gunyah-guest/
Dgunyah-guest.c21 static int gunyah_mmio_guard_ioremap_hook(phys_addr_t phys, size_t size, pgprot_t *prot) in gunyah_mmio_guard_ioremap_hook() argument
34 phys, size, GUNYAH_ADDRSPACE_VMMIO_CONFIGURE_OP_ADD_RANGE); in gunyah_mmio_guard_ioremap_hook()
50 phys_addr_t phys, end; in gunyah_page_relinquish() local
53 phys = page_to_phys(page); in gunyah_page_relinquish()
54 end = phys + PAGE_SIZE * nr; in gunyah_page_relinquish()
56 while (phys < end) { in gunyah_page_relinquish()
58 phys, PAGE_SIZE, flags); in gunyah_page_relinquish()
60 pr_err_ratelimited("Failed to relinquish page: %016llx %d\n", phys, ret); in gunyah_page_relinquish()
62 phys += PAGE_SIZE; in gunyah_page_relinquish()
/drivers/net/thunderbolt/
Dtrace.h26 TP_PROTO(unsigned int index, const void *page, dma_addr_t phys,
28 TP_ARGS(index, page, phys, dir),
32 __field(dma_addr_t, phys)
38 __entry->phys = phys;
42 __entry->index, __entry->page, &__entry->phys,
47 TP_PROTO(unsigned int index, const void *page, dma_addr_t phys,
49 TP_ARGS(index, page, phys, dir)
53 TP_PROTO(unsigned int index, const void *page, dma_addr_t phys,
55 TP_ARGS(index, page, phys, dir)
59 TP_PROTO(unsigned int index, const void *page, dma_addr_t phys,
[all …]
/drivers/staging/media/atomisp/pci/mmu/
Disp_mmu.c74 static void *isp_pt_phys_to_virt(phys_addr_t phys) in isp_pt_phys_to_virt() argument
76 return phys_to_virt(phys); in isp_pt_phys_to_virt()
86 phys_addr_t phys) in isp_pgaddr_to_pte_valid() argument
88 unsigned int pte = mmu->driver->phys_to_pte(mmu, phys); in isp_pgaddr_to_pte_valid()
201 unsigned int start, unsigned int end, phys_addr_t phys) in mmu_l2_map() argument
211 phys &= ISP_PAGE_MASK; in mmu_l2_map()
221 l2_pt, idx, ptr, pte, phys); in mmu_l2_map()
229 pte = isp_pgaddr_to_pte_valid(mmu, phys); in mmu_l2_map()
234 phys += (1U << ISP_L2PT_OFFSET); in mmu_l2_map()
246 phys_addr_t phys) in mmu_l1_map() argument
[all …]
/drivers/net/ethernet/qlogic/qed/
Dqed_chain.c72 dma_addr_t phys, phys_next; in qed_chain_free_next_ptr() local
78 phys = chain->p_phys_addr; in qed_chain_free_next_ptr()
88 dma_free_coherent(dev, chain->page_size, virt, phys); in qed_chain_free_next_ptr()
91 phys = phys_next; in qed_chain_free_next_ptr()
203 dma_addr_t phys; in qed_chain_alloc_next_ptr() local
207 virt = dma_alloc_coherent(dev, chain->page_size, &phys, in qed_chain_alloc_next_ptr()
213 qed_chain_init_mem(chain, virt, phys); in qed_chain_alloc_next_ptr()
217 phys); in qed_chain_alloc_next_ptr()
235 dma_addr_t phys; in qed_chain_alloc_single() local
239 &phys, GFP_KERNEL); in qed_chain_alloc_single()
[all …]
/drivers/scsi/lpfc/
Dlpfc_mem.c131 GFP_KERNEL, &pool->elements[i].phys); in lpfc_mem_alloc()
204 pool->elements[i].phys); in lpfc_mem_alloc()
276 pool->elements[i].phys); in lpfc_mem_free()
349 phba->cgn_i->virt, phba->cgn_i->phys); in lpfc_mem_free_all()
399 *handle = pool->elements[pool->current_count].phys; in lpfc_mbuf_alloc()
426 pool->elements[pool->current_count].phys = dma; in __lpfc_mbuf_free()
519 &hbqbp->dbuf.phys); in lpfc_els_hbq_alloc()
543 dma_pool_free(phba->lpfc_hbq_pool, hbqbp->dbuf.virt, hbqbp->dbuf.phys); in lpfc_els_hbq_free()
571 &dma_buf->hbuf.phys); in lpfc_sli4_rb_alloc()
577 &dma_buf->dbuf.phys); in lpfc_sli4_rb_alloc()
[all …]
/drivers/infiniband/hw/qib/
Dqib_user_pages.c61 dma_addr_t phys; in qib_map_page() local
63 phys = dma_map_page(&hwdev->dev, page, 0, PAGE_SIZE, DMA_FROM_DEVICE); in qib_map_page()
64 if (dma_mapping_error(&hwdev->dev, phys)) in qib_map_page()
67 if (!phys) { in qib_map_page()
68 dma_unmap_page(&hwdev->dev, phys, PAGE_SIZE, DMA_FROM_DEVICE); in qib_map_page()
69 phys = dma_map_page(&hwdev->dev, page, 0, PAGE_SIZE, in qib_map_page()
71 if (dma_mapping_error(&hwdev->dev, phys)) in qib_map_page()
78 *daddr = phys; in qib_map_page()
/drivers/scsi/sym53c8xx_2/
Dsym_fw2.h305 offsetof (struct sym_ccb, phys.head.status),
455 offsetof (struct sym_ccb, phys.head.lastp),
514 offsetof (struct sym_ccb, phys.head.lastp),
546 offsetof (struct sym_ccb, phys.head.lastp),
562 offsetof (struct sym_ccb, phys.head.lastp),
654 offsetof (struct sym_ccb, phys.head.status),
664 offsetof (struct sym_ccb, phys.head.status),
740 offsetof (struct sym_ccb, phys.head.lastp),
742 offsetof (struct sym_ccb, phys.head.savep),
762 offsetof (struct sym_ccb, phys.head.savep),
[all …]
/drivers/xen/
Dswiotlb-xen.c148 phys_addr_t phys; in xen_swiotlb_alloc_coherent() local
157 phys = virt_to_phys(ret); in xen_swiotlb_alloc_coherent()
159 *dma_handle = xen_phys_to_dma(dev, phys); in xen_swiotlb_alloc_coherent()
161 range_straddles_page_boundary(phys, size) || in xen_swiotlb_alloc_coherent()
162 range_requires_alignment(phys, size)) { in xen_swiotlb_alloc_coherent()
163 if (xen_create_contiguous_region(phys, order, fls64(dma_mask), in xen_swiotlb_alloc_coherent()
181 phys_addr_t phys = virt_to_phys(vaddr); in xen_swiotlb_free_coherent() local
188 WARN_ON_ONCE(range_straddles_page_boundary(phys, size) || in xen_swiotlb_free_coherent()
189 range_requires_alignment(phys, size))) in xen_swiotlb_free_coherent()
193 xen_destroy_contiguous_region(phys, order); in xen_swiotlb_free_coherent()
[all …]
/drivers/bus/
Dmips_cdmm.c265 phys_addr_t phys; member
384 if (bus->phys == mips_cdmm_cur_base()) in mips_cdmm_setup()
391 } else if (bus->phys > 1) { in mips_cdmm_setup()
396 if (!bus->phys) in mips_cdmm_setup()
397 bus->phys = mips_cdmm_cur_base(); in mips_cdmm_setup()
399 if (!bus->phys) in mips_cdmm_setup()
400 bus->phys = mips_cdmm_phys_base(); in mips_cdmm_setup()
402 if (!bus->phys) in mips_cdmm_setup()
403 bus->phys = mips_cdmm_default_base; in mips_cdmm_setup()
405 if (!bus->phys) { in mips_cdmm_setup()
[all …]
/drivers/iommu/
Dof_iommu.c171 struct resource *phys, in iommu_resv_region_get_type() argument
180 if (phys->start >= phys->end) in iommu_resv_region_get_type()
184 if (start == phys->start && end == phys->end) in iommu_resv_region_get_type()
187 dev_warn(dev, "treating non-direct mapping [%pr] -> [%pap-%pap] as reservation\n", phys, in iommu_resv_region_get_type()
211 struct resource phys; in of_iommu_get_resv_regions() local
214 memset(&phys, 0, sizeof(phys)); in of_iommu_get_resv_regions()
222 err = of_address_to_resource(it.node, 0, &phys); in of_iommu_get_resv_regions()
258 type = iommu_resv_region_get_type(dev, &phys, iova, length); in of_iommu_get_resv_regions()
Ddma-iommu.c43 phys_addr_t phys; member
500 msi_page->phys = start; in cookie_init_hw_msi_region()
858 static dma_addr_t __iommu_dma_map(struct device *dev, phys_addr_t phys, in __iommu_dma_map() argument
864 size_t iova_off = iova_offset(iovad, phys); in __iommu_dma_map()
882 if (iommu_map(domain, iova, phys - iova_off, size, prot, GFP_ATOMIC)) { in __iommu_dma_map()
1116 phys_addr_t phys; in iommu_dma_sync_single_for_cpu() local
1121 phys = iommu_iova_to_phys(iommu_get_dma_domain(dev), dma_handle); in iommu_dma_sync_single_for_cpu()
1123 arch_sync_dma_for_cpu(phys, size, dir); in iommu_dma_sync_single_for_cpu()
1125 swiotlb_sync_single_for_cpu(dev, phys, size, dir); in iommu_dma_sync_single_for_cpu()
1131 phys_addr_t phys; in iommu_dma_sync_single_for_device() local
[all …]
/drivers/phy/samsung/
Dphy-exynos-mipi-video.c51 } phys[EXYNOS_MIPI_PHYS_NUM]; member
58 .phys = {
103 .phys = {
166 .phys = {
223 } phys[EXYNOS_MIPI_PHYS_NUM]; member
237 state->phys[data->coupled_phy_id].phy->power_count == 0) in __set_phy_state()
258 container_of((desc), struct exynos_mipi_video_phy, phys[(desc)->index])
284 return state->phys[args->args[0]].phy; in exynos_mipi_video_phy_xlate()
332 state->phys[i].phy = phy; in exynos_mipi_video_phy_probe()
333 state->phys[i].index = i; in exynos_mipi_video_phy_probe()
[all …]
/drivers/phy/broadcom/
Dphy-brcm-usb.c72 struct brcm_usb_phy phys[BRCM_USB_PHY_ID_MAX]; member
115 container_of(phy, struct brcm_usb_phy_data, phys[phy->id]); in brcm_usb_phy_init()
147 container_of(phy, struct brcm_usb_phy_data, phys[phy->id]); in brcm_usb_phy_exit()
189 if (data->phys[BRCM_USB_PHY_2_0].phy) in brcm_usb_phy_xlate()
190 return data->phys[BRCM_USB_PHY_2_0].phy; in brcm_usb_phy_xlate()
195 if (data->phys[BRCM_USB_PHY_3_0].phy) in brcm_usb_phy_xlate()
196 return data->phys[BRCM_USB_PHY_3_0].phy; in brcm_usb_phy_xlate()
412 priv->phys[BRCM_USB_PHY_2_0].phy = gphy; in brcm_usb_phy_dvr_init()
413 priv->phys[BRCM_USB_PHY_2_0].id = BRCM_USB_PHY_2_0; in brcm_usb_phy_dvr_init()
414 phy_set_drvdata(gphy, &priv->phys[BRCM_USB_PHY_2_0]); in brcm_usb_phy_dvr_init()
[all …]
/drivers/input/mouse/
Dvsxxxaa.c108 char phys[32]; member
125 mouse->name, mouse->phys); in vsxxxaa_queue_byte()
156 mouse->name, mouse->version, mouse->country, mouse->phys); in vsxxxaa_detection_done()
234 mouse->name, mouse->phys, dx, dy, in vsxxxaa_handle_REL_packet()
285 mouse->name, mouse->phys, x, y, in vsxxxaa_handle_ABS_packet()
353 mouse->name, mouse->phys, error); in vsxxxaa_handle_POR_packet()
364 mouse->name, mouse->phys); in vsxxxaa_handle_POR_packet()
391 mouse->name, mouse->phys); in vsxxxaa_parse_buffer()
468 snprintf(mouse->phys, sizeof(mouse->phys), "%s/input0", serio->phys); in vsxxxaa_connect()
471 input_dev->phys = mouse->phys; in vsxxxaa_connect()

12345678910>>...30