Home
last modified time | relevance | path

Searched refs:phys (Results 1 – 200 of 902) sorted by relevance

12345

/linux-4.4.14/sound/core/
Dpcm_misc.c33 unsigned char phys; /* physical bit width */ member
44 .width = 8, .phys = 8, .le = -1, .signd = 1,
48 .width = 8, .phys = 8, .le = -1, .signd = 0,
52 .width = 16, .phys = 16, .le = 1, .signd = 1,
56 .width = 16, .phys = 16, .le = 0, .signd = 1,
60 .width = 16, .phys = 16, .le = 1, .signd = 0,
64 .width = 16, .phys = 16, .le = 0, .signd = 0,
68 .width = 24, .phys = 32, .le = 1, .signd = 1,
72 .width = 24, .phys = 32, .le = 0, .signd = 1,
76 .width = 24, .phys = 32, .le = 1, .signd = 0,
[all …]
/linux-4.4.14/include/asm-generic/
Dfixmap.h63 #define set_fixmap(idx, phys) \ argument
64 __set_fixmap(idx, phys, FIXMAP_PAGE_NORMAL)
73 #define __set_fixmap_offset(idx, phys, flags) \ argument
76 __set_fixmap(idx, phys, flags); \
77 addr = fix_to_virt(idx) + ((phys) & (PAGE_SIZE - 1)); \
81 #define set_fixmap_offset(idx, phys) \ argument
82 __set_fixmap_offset(idx, phys, FIXMAP_PAGE_NORMAL)
87 #define set_fixmap_nocache(idx, phys) \ argument
88 __set_fixmap(idx, phys, FIXMAP_PAGE_NOCACHE)
90 #define set_fixmap_offset_nocache(idx, phys) \ argument
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Dnv50.c34 u64 phys = 0xdeadcafe00000000ULL; in nv50_vm_map_pgt() local
39 phys = 0x00000003 | nvkm_memory_addr(pgt[0]); in nv50_vm_map_pgt()
44 phys = 0x00000001 | nvkm_memory_addr(pgt[1]); in nv50_vm_map_pgt()
48 if (phys & 1) { in nv50_vm_map_pgt()
50 phys |= 0x60; in nv50_vm_map_pgt()
52 phys |= 0x40; in nv50_vm_map_pgt()
54 phys |= 0x20; in nv50_vm_map_pgt()
58 nvkm_wo32(pgd, (pde * 8) + 0, lower_32_bits(phys)); in nv50_vm_map_pgt()
59 nvkm_wo32(pgd, (pde * 8) + 4, upper_32_bits(phys)); in nv50_vm_map_pgt()
64 vm_addr(struct nvkm_vma *vma, u64 phys, u32 memtype, u32 target) in vm_addr() argument
[all …]
Dgf100.c89 gf100_vm_addr(struct nvkm_vma *vma, u64 phys, u32 memtype, u32 target) in gf100_vm_addr() argument
91 phys >>= 8; in gf100_vm_addr()
93 phys |= 0x00000001; /* present */ in gf100_vm_addr()
95 phys |= 0x00000002; in gf100_vm_addr()
97 phys |= ((u64)target << 32); in gf100_vm_addr()
98 phys |= ((u64)memtype << 36); in gf100_vm_addr()
99 return phys; in gf100_vm_addr()
104 struct nvkm_mem *mem, u32 pte, u32 cnt, u64 phys, u64 delta) in gf100_vm_map() argument
108 phys = gf100_vm_addr(vma, phys, mem->memtype, 0); in gf100_vm_map()
114 phys |= (u64)tag << (32 + 12); in gf100_vm_map()
[all …]
Dnv41.c45 u64 phys = (u64)*list++; in nv41_vm_map_sg() local
47 nvkm_wo32(pgt, pte, (phys >> 7) | 1); in nv41_vm_map_sg()
48 phys += NV41_GART_PAGE; in nv41_vm_map_sg()
Dnv04.c43 u32 phys = (u32)*list++; in nv04_vm_map_sg() local
45 nvkm_wo32(pgt, pte, phys | 3); in nv04_vm_map_sg()
46 phys += NV04_PDMA_PAGE; in nv04_vm_map_sg()
/linux-4.4.14/fs/bfs/
Dfile.c66 unsigned long phys; in bfs_get_block() local
72 phys = bi->i_sblock + block; in bfs_get_block()
74 if (phys <= bi->i_eblock) { in bfs_get_block()
76 create, (unsigned long)block, phys); in bfs_get_block()
77 map_bh(bh_result, sb, phys); in bfs_get_block()
86 if (bi->i_sblock && (phys <= bi->i_eblock)) { in bfs_get_block()
88 create, (unsigned long)block, phys); in bfs_get_block()
89 map_bh(bh_result, sb, phys); in bfs_get_block()
94 if (phys >= info->si_blocks) in bfs_get_block()
107 create, (unsigned long)block, phys); in bfs_get_block()
[all …]
/linux-4.4.14/drivers/mtd/maps/
Dichxrom.c37 unsigned long phys; member
80 window->phys = 0; in ichxrom_cleanup()
110 window->phys = 0; in ichxrom_init_one()
113 window->phys = 0xffc00000; in ichxrom_init_one()
116 window->phys = 0xff400000; in ichxrom_init_one()
119 window->phys = 0xff500000; in ichxrom_init_one()
122 window->phys = 0xff600000; in ichxrom_init_one()
125 window->phys = 0xff700000; in ichxrom_init_one()
129 window->phys = 0xffc80000; in ichxrom_init_one()
132 window->phys = 0xffd00000; in ichxrom_init_one()
[all …]
Desb2rom.c98 unsigned long phys; member
141 window->phys = 0; in esb2rom_cleanup()
186 window->phys = 0; in esb2rom_init_one()
191 window->phys = 0xff400000; in esb2rom_init_one()
193 window->phys = 0xff500000; in esb2rom_init_one()
195 window->phys = 0xff600000; in esb2rom_init_one()
197 window->phys = 0xFF700000; in esb2rom_init_one()
199 window->phys = 0xffc00000; in esb2rom_init_one()
201 window->phys = 0xffc80000; in esb2rom_init_one()
203 window->phys = 0xffd00000; in esb2rom_init_one()
[all …]
Duclinux.c59 size_t *retlen, void **virt, resource_size_t *phys) in uclinux_point() argument
63 if (phys) in uclinux_point()
64 *phys = map->phys + from; in uclinux_point()
79 mapp->phys = (resource_size_t)__bss_stop; in uclinux_mtd_init()
81 mapp->phys = physaddr; in uclinux_mtd_init()
84 mapp->size = PAGE_ALIGN(ntohl(*((unsigned long *)(mapp->phys + 8)))); in uclinux_mtd_init()
88 (int) mapp->phys, (int) mapp->size); in uclinux_mtd_init()
96 mapp->virt = phys_to_virt(mapp->phys); in uclinux_mtd_init()
Damd76xrom.c32 unsigned long phys; member
96 window->phys = 0; in amd76xrom_cleanup()
128 window->phys = 0xffb00000; /* 5MiB */ in amd76xrom_init_one()
131 window->phys = 0xffc00000; /* 4MiB */ in amd76xrom_init_one()
134 window->phys = 0xffff0000; /* 64KiB */ in amd76xrom_init_one()
136 window->size = 0xffffffffUL - window->phys + 1UL; in amd76xrom_init_one()
146 window->rsrc.start = window->phys; in amd76xrom_init_one()
147 window->rsrc.end = window->phys + window->size - 1; in amd76xrom_init_one()
165 window->virt = ioremap_nocache(window->phys, window->size); in amd76xrom_init_one()
168 window->phys, window->size); in amd76xrom_init_one()
[all …]
Dck804xrom.c36 unsigned long phys; member
108 window->phys = 0; in ck804xrom_cleanup()
144 window->phys = 0xffb00000; /* 5MiB */ in ck804xrom_init_one()
146 window->phys = 0xffc00000; /* 4MiB */ in ck804xrom_init_one()
148 window->phys = 0xffff0000; /* 64KiB */ in ck804xrom_init_one()
161 window->phys = 0xff000000; /* 16MiB, hardcoded for now */ in ck804xrom_init_one()
165 window->size = 0xffffffffUL - window->phys + 1UL; in ck804xrom_init_one()
175 window->rsrc.start = window->phys; in ck804xrom_init_one()
176 window->rsrc.end = window->phys + window->size - 1; in ck804xrom_init_one()
193 window->virt = ioremap_nocache(window->phys, window->size); in ck804xrom_init_one()
[all …]
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 & 0x1fffffff, in init_soleng_maps()
64 soleng_eprom_map.phys & 0x1fffffff); in init_soleng_maps()
Dsa1100-flash.c63 release_mem_region(subdev->map.phys, subdev->map.size); in sa1100_destroy_subdev()
68 unsigned long phys; in sa1100_probe_subdev() local
72 phys = res->start; in sa1100_probe_subdev()
73 size = res->end - phys + 1; in sa1100_probe_subdev()
79 switch (phys) { in sa1100_probe_subdev()
82 "0x%08lx, assuming CS0\n", phys); in sa1100_probe_subdev()
93 if (!request_mem_region(phys, size, subdev->name)) { in sa1100_probe_subdev()
101 subdev->map.phys = phys; in sa1100_probe_subdev()
103 subdev->map.virt = ioremap(phys, size); in sa1100_probe_subdev()
122 phys, (unsigned)(subdev->mtd->size >> 20), in sa1100_probe_subdev()
Dsc520cdp.c91 .phys = WINDOW_ADDR_0
97 .phys = WINDOW_ADDR_1
103 .phys = WINDOW_ADDR_2
195 sc520cdp_map[i].phys = par_table[i].default_address; in sc520cdp_setup_par()
220 sc520cdp_map[i].phys = par_table[i].default_address; in sc520cdp_setup_par()
240 (unsigned long long)sc520cdp_map[i].phys); in init_sc520cdp()
242 sc520cdp_map[i].virt = ioremap_nocache(sc520cdp_map[i].phys, sc520cdp_map[i].size); in init_sc520cdp()
Dnetsc520.c86 .phys = WINDOW_ADDR,
97 (unsigned long long)netsc520_map.phys); in init_netsc520()
98 netsc520_map.virt = ioremap_nocache(netsc520_map.phys, netsc520_map.size); in init_netsc520()
Dpxa2xx-flash.c65 info->map.phys = res->start; in pxa2xx_flash_probe()
68 info->map.virt = ioremap(info->map.phys, info->map.size); in pxa2xx_flash_probe()
74 info->map.cached = memremap(info->map.phys, info->map.size, in pxa2xx_flash_probe()
85 info->map.name, (unsigned long)info->map.phys, in pxa2xx_flash_probe()
Dts5500_flash.c43 .phys = WINDOW_ADDR
72 ts5500_map.virt = ioremap_nocache(ts5500_map.phys, ts5500_map.size); in init_ts5500_map()
/linux-4.4.14/arch/xtensa/mm/
Dcache.c150 unsigned long phys = page_to_phys(page); in flush_dcache_page() local
152 unsigned long alias = !(DCACHE_ALIAS_EQ(temp, phys)); in flush_dcache_page()
165 virt = TLBTEMP_BASE_1 + (phys & DCACHE_ALIAS_MASK); in flush_dcache_page()
166 __flush_invalidate_dcache_page_alias(virt, phys); in flush_dcache_page()
171 __flush_invalidate_dcache_page_alias(virt, phys); in flush_dcache_page()
174 __invalidate_icache_page_alias(virt, phys); in flush_dcache_page()
204 unsigned long phys = page_to_phys(pfn_to_page(pfn)); in local_flush_cache_page() local
207 __flush_invalidate_dcache_page_alias(virt, phys); in local_flush_cache_page()
208 __invalidate_icache_page_alias(virt, phys); in local_flush_cache_page()
231 unsigned long phys = page_to_phys(page); in update_mmu_cache() local
[all …]
/linux-4.4.14/arch/m68k/mm/
Dsun3kmap.c30 static inline void do_page_mapin(unsigned long phys, unsigned long virt, in do_page_mapin() argument
36 ptep = pfn_pte(phys >> PAGE_SHIFT, PAGE_KERNEL); in do_page_mapin()
48 static inline void do_pmeg_mapin(unsigned long phys, unsigned long virt, in do_pmeg_mapin() argument
56 do_page_mapin(phys, virt, type); in do_pmeg_mapin()
57 phys += PAGE_SIZE; in do_pmeg_mapin()
63 void __iomem *sun3_ioremap(unsigned long phys, unsigned long size, in sun3_ioremap() argument
74 offset = phys & (PAGE_SIZE-1); in sun3_ioremap()
75 phys &= ~(PAGE_SIZE-1); in sun3_ioremap()
98 do_pmeg_mapin(phys, virt, type, seg_pages); in sun3_ioremap()
101 phys += seg_pages * PAGE_SIZE; in sun3_ioremap()
[all …]
/linux-4.4.14/arch/um/kernel/
Dphysmem.c41 void map_memory(unsigned long virt, unsigned long phys, unsigned long len, in map_memory() argument
47 fd = phys_mapping(phys, &offset); in map_memory()
121 int phys_mapping(unsigned long phys, unsigned long long *offset_out) in phys_mapping() argument
125 if (phys < physmem_size) { in phys_mapping()
127 *offset_out = phys; in phys_mapping()
129 else if (phys < __pa(end_iomem)) { in phys_mapping()
133 if ((phys >= region->phys) && in phys_mapping()
134 (phys < region->phys + region->size)) { in phys_mapping()
136 *offset_out = phys - region->phys; in phys_mapping()
142 else if (phys < __pa(end_iomem) + highmem) { in phys_mapping()
[all …]
/linux-4.4.14/arch/s390/numa/
Dmode_emu.c208 static void toptree_to_numa_single(struct toptree *numa, struct toptree *phys, in toptree_to_numa_single() argument
213 toptree_for_each_safe(core, tmp, phys, CORE) { in toptree_to_numa_single()
225 static void move_level_to_numa_node(struct toptree *node, struct toptree *phys, in move_level_to_numa_node() argument
231 toptree_for_each_safe(cur, tmp, phys, level) { in move_level_to_numa_node()
248 static void move_level_to_numa(struct toptree *numa, struct toptree *phys, in move_level_to_numa() argument
254 move_level_to_numa_node(node, phys, level, perfect); in move_level_to_numa()
260 static void toptree_to_numa_first(struct toptree *numa, struct toptree *phys) in toptree_to_numa_first() argument
265 move_level_to_numa(numa, phys, BOOK, true); in toptree_to_numa_first()
266 move_level_to_numa(numa, phys, BOOK, false); in toptree_to_numa_first()
267 move_level_to_numa(numa, phys, MC, true); in toptree_to_numa_first()
[all …]
/linux-4.4.14/arch/powerpc/mm/
Dfsl_booke_mmu.c67 phys_addr_t phys; member
83 return tlbcam_addrs[b].phys + (va - tlbcam_addrs[b].start); in v_mapped_by_tlbcam()
94 if (pa >= tlbcam_addrs[b].phys in p_mapped_by_tlbcam()
96 +tlbcam_addrs[b].phys) in p_mapped_by_tlbcam()
97 return tlbcam_addrs[b].start+(pa-tlbcam_addrs[b].phys); in p_mapped_by_tlbcam()
108 static void settlbcam(int index, unsigned long virt, phys_addr_t phys, in settlbcam() argument
130 TLBCAM[index].MAS3 = (phys & MAS3_RPN) | MAS3_SX | MAS3_SR; in settlbcam()
133 TLBCAM[index].MAS7 = (u64)phys >> 32; in settlbcam()
143 tlbcam_addrs[index].phys = phys; in settlbcam()
147 phys_addr_t phys) in calc_cam_sz() argument
[all …]
Dppc_mmu_32.c46 phys_addr_t phys; member
57 return bat_addrs[b].phys + (va - bat_addrs[b].start); in v_mapped_by_bats()
68 if (pa >= bat_addrs[b].phys in p_mapped_by_bats()
70 +bat_addrs[b].phys) in p_mapped_by_bats()
71 return bat_addrs[b].start+(pa-bat_addrs[b].phys); in p_mapped_by_bats()
115 void __init setbat(int index, unsigned long virt, phys_addr_t phys, in setbat() argument
135 bat[1].batl = BAT_PHYS_ADDR(phys) | wimgxpp; in setbat()
154 bat->batl = phys | bl | 0x40; /* V=1 */ in setbat()
159 bat_addrs[index].phys = phys; in setbat()
Dinit_64.c197 unsigned long phys) in vmemmap_create_mapping() argument
214 BUG_ON(map_kernel_page(start + i, phys, flags)); in vmemmap_create_mapping()
226 unsigned long phys) in vmemmap_create_mapping() argument
228 int mapped = htab_bolt_mapping(start, start + page_size, phys, in vmemmap_create_mapping()
280 static __meminit void vmemmap_list_populate(unsigned long phys, in vmemmap_list_populate() argument
292 vmem_back->phys = phys; in vmemmap_list_populate()
359 return vmem_back->phys; in vmemmap_list_free()
442 page = (struct page *) (vmem_back->phys + pg_va - in realmode_pfn_to_page()
D44x_mmu.c67 static void __init ppc44x_pin_tlb(unsigned int virt, unsigned int phys) in ppc44x_pin_tlb() argument
81 "r" (phys), in ppc44x_pin_tlb()
137 static void ppc47x_pin_tlb(unsigned int virt, unsigned int phys) in ppc47x_pin_tlb() argument
153 virt, phys, bolted); in ppc47x_pin_tlb()
168 "r" (phys), in ppc47x_pin_tlb()
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_user_pages.c108 dma_addr_t phys; in ipath_map_page() local
110 phys = pci_map_page(hwdev, page, offset, size, direction); in ipath_map_page()
112 if (phys == 0) { in ipath_map_page()
113 pci_unmap_page(hwdev, phys, size, direction); in ipath_map_page()
114 phys = pci_map_page(hwdev, page, offset, size, direction); in ipath_map_page()
121 return phys; in ipath_map_page()
132 dma_addr_t phys; in ipath_map_single() local
134 phys = pci_map_single(hwdev, ptr, size, direction); in ipath_map_single()
136 if (phys == 0) { in ipath_map_single()
137 pci_unmap_single(hwdev, phys, size, direction); in ipath_map_single()
[all …]
/linux-4.4.14/arch/arm/mach-realview/include/mach/
Dmemory.h52 #define __phys_to_virt(phys) \ argument
53 ((phys) >= 0x80000000 ? (phys) - 0x80000000 + PAGE_OFFSET2 : \
54 (phys) >= 0x20000000 ? (phys) - 0x20000000 + PAGE_OFFSET1 : \
55 (phys) + PAGE_OFFSET)
/linux-4.4.14/arch/arm64/mm/
Dmmu.c67 phys_addr_t phys; in early_alloc() local
70 phys = memblock_alloc(sz, sz); in early_alloc()
71 BUG_ON(!phys); in early_alloc()
72 ptr = __va(phys); in early_alloc()
132 phys_addr_t phys, pgprot_t prot, in alloc_init_pmd() argument
159 if (((addr | next | phys) & ~SECTION_MASK) == 0) { in alloc_init_pmd()
161 set_pmd(pmd, __pmd(phys | in alloc_init_pmd()
176 alloc_init_pte(pmd, addr, next, __phys_to_pfn(phys), in alloc_init_pmd()
179 phys += next - addr; in alloc_init_pmd()
184 unsigned long phys) in use_1G_block() argument
[all …]
/linux-4.4.14/arch/x86/kernel/cpu/
Dperf_event_intel_bts.c139 struct bts_phys *phys = &buf->buf[buf->cur_buf]; in bts_config_buffer() local
140 unsigned long index, thresh = 0, end = phys->size; in bts_config_buffer()
141 struct page *page = phys->page; in bts_config_buffer()
146 if (buf->end < phys->offset + buf_size(page)) in bts_config_buffer()
147 end = buf->end - phys->offset - phys->displacement; in bts_config_buffer()
149 index -= phys->offset + phys->displacement; in bts_config_buffer()
159 ds->bts_buffer_base = (u64)(long)page_address(page) + phys->displacement; in bts_config_buffer()
167 static void bts_buffer_pad_out(struct bts_phys *phys, unsigned long head) in bts_buffer_pad_out() argument
169 unsigned long index = head - phys->offset; in bts_buffer_pad_out()
171 memset(page_address(phys->page) + index, 0, phys->size - index); in bts_buffer_pad_out()
[all …]
/linux-4.4.14/arch/powerpc/sysdev/
Dppc4xx_ocm.c47 phys_addr_t phys; member
62 phys_addr_t phys; member
140 ocm->phys = rsrc.start; in ocm_init_node()
152 if (!request_mem_region(ocm->phys, ocm->memtotal, "ppc4xx_ocm")) { in ocm_init_node()
160 ocm->nc.phys = ocm->phys; in ocm_init_node()
164 ocm->c.phys = ocm->phys + ocm->nc.memtotal; in ocm_init_node()
169 ocm->nc.phys = 0; in ocm_init_node()
172 ocm->c.phys = 0; in ocm_init_node()
183 ocm->nc.virt = __ioremap(ocm->nc.phys, ocm->nc.memtotal, in ocm_init_node()
199 ocm->c.virt = __ioremap(ocm->c.phys, ocm->c.memtotal, in ocm_init_node()
[all …]
Dfsl_rmu.c166 dma_addr_t phys; member
176 dma_addr_t phys; member
229 int slot = (dqp - rmu->msg_tx_ring.phys) >> 5; in fsl_rio_tx_handler()
552 &pw->port_write_msg.phys, GFP_KERNEL); in fsl_rio_port_write_init()
563 out_be32(&pw->pw_regs->pwqbar, (u32) pw->port_write_msg.phys); in fsl_rio_port_write_init()
608 pw->port_write_msg.phys); in fsl_rio_port_write_init()
749 &rmu->msg_tx_ring.phys, GFP_KERNEL); in fsl_open_outb_mbox()
759 out_be32(&rmu->msg_regs->odqdpar, rmu->msg_tx_ring.phys); in fsl_open_outb_mbox()
760 out_be32(&rmu->msg_regs->odqepar, rmu->msg_tx_ring.phys); in fsl_open_outb_mbox()
797 rmu->msg_tx_ring.virt, rmu->msg_tx_ring.phys); in fsl_open_outb_mbox()
[all …]
/linux-4.4.14/arch/sh/include/asm/
Dmmu.h61 int pmb_bolt_mapping(unsigned long virt, phys_addr_t phys,
63 void __iomem *pmb_remap_caller(phys_addr_t phys, unsigned long size,
70 pmb_bolt_mapping(unsigned long virt, phys_addr_t phys, in pmb_bolt_mapping() argument
77 pmb_remap_caller(phys_addr_t phys, unsigned long size, in pmb_remap_caller() argument
99 pmb_remap(phys_addr_t phys, unsigned long size, pgprot_t prot) in pmb_remap() argument
101 return pmb_remap_caller(phys, size, prot, __builtin_return_address(0)); in pmb_remap()
/linux-4.4.14/drivers/bus/
Dmips_cdmm.c263 phys_addr_t phys; member
368 if (bus->phys == mips_cdmm_cur_base()) in mips_cdmm_setup()
375 } else if (bus->phys > 1) { in mips_cdmm_setup()
380 if (!bus->phys) in mips_cdmm_setup()
381 bus->phys = mips_cdmm_cur_base(); in mips_cdmm_setup()
383 if (!bus->phys) in mips_cdmm_setup()
384 bus->phys = mips_cdmm_phys_base(); in mips_cdmm_setup()
386 if (!bus->phys) in mips_cdmm_setup()
387 bus->phys = mips_cdmm_default_base; in mips_cdmm_setup()
389 if (!bus->phys) { in mips_cdmm_setup()
[all …]
/linux-4.4.14/arch/sh/boards/mach-sdk7786/
Dsram.c23 unsigned long phys; in fpga_sram_init() local
47 phys = (area << 26) + SZ_64M - SZ_4K; in fpga_sram_init()
53 vaddr = ioremap(phys, SZ_2K); in fpga_sram_init()
61 SZ_2K >> 10, phys, phys + SZ_2K - 1, area); in fpga_sram_init()
/linux-4.4.14/drivers/scsi/sym53c8xx_2/
Dsym_fw2.h318 offsetof (struct sym_ccb, phys.head.status),
468 offsetof (struct sym_ccb, phys.head.lastp),
527 offsetof (struct sym_ccb, phys.head.lastp),
559 offsetof (struct sym_ccb, phys.head.lastp),
575 offsetof (struct sym_ccb, phys.head.lastp),
667 offsetof (struct sym_ccb, phys.head.status),
677 offsetof (struct sym_ccb, phys.head.status),
753 offsetof (struct sym_ccb, phys.head.lastp),
755 offsetof (struct sym_ccb, phys.head.savep),
775 offsetof (struct sym_ccb, phys.head.savep),
[all …]
Dsym_hipd.c1709 u32 phys; local
1724 phys = np->squeue_ba;
1727 np->squeue[i+1] = cpu_to_scr(phys + (i+2)*4);
1729 np->squeue[MAX_QUEUE*2-1] = cpu_to_scr(phys);
1739 phys = np->dqueue_ba;
1742 np->dqueue[i+1] = cpu_to_scr(phys + (i+2)*4);
1744 np->dqueue[MAX_QUEUE*2-1] = cpu_to_scr(phys);
1914 phys = SCRIPTA_BA(np, init);
1921 phys = scr_to_cpu(np->scr_ram_seg);
1922 OUTL(np, nc_mmws, phys);
[all …]
Dsym_hipd.h611 #define host_xflags phys.head.status[0]
612 #define host_status phys.head.status[1]
613 #define ssss_status phys.head.status[2]
614 #define host_flags phys.head.status[3]
680 cp->phys.head.lastp = cpu_to_scr(dp); \
686 cp->phys.head.lastp : np->ccb_head.lastp)
690 cp->phys.head.lastp = cpu_to_scr(dp); \
693 #define sym_get_script_dp(np, cp) (cp->phys.head.lastp)
740 struct sym_dsb phys; member
/linux-4.4.14/arch/x86/include/asm/
Dfixmap.h151 phys_addr_t phys, pgprot_t flags);
155 phys_addr_t phys, pgprot_t flags) in __set_fixmap() argument
157 native_set_fixmap(idx, phys, flags); in __set_fixmap()
163 #define __late_set_fixmap(idx, phys, flags) __set_fixmap(idx, phys, flags) argument
167 phys_addr_t phys, pgprot_t flags);
/linux-4.4.14/drivers/scsi/
Dsd_dif.c120 u32 phys, virt; in sd_dif_prepare() local
127 phys = scsi_prot_ref_tag(scmd); in sd_dif_prepare()
147 pi->ref_tag = cpu_to_be32(phys); in sd_dif_prepare()
150 phys++; in sd_dif_prepare()
171 u32 phys, virt; in sd_dif_complete() local
179 phys = scsi_prot_ref_tag(scmd); in sd_dif_complete()
198 if (be32_to_cpu(pi->ref_tag) == phys) in sd_dif_complete()
202 phys++; in sd_dif_complete()
Dwd719x.c168 scb->phys); in wd719x_destroy()
171 scb->phys); in wd719x_destroy()
207 dma_addr_t phys; in wd719x_queuecommand() local
216 phys = scb->phys; in wd719x_queuecommand()
220 &phys); in wd719x_queuecommand()
232 scb->phys = phys; in wd719x_queuecommand()
273 scb->data_p = cpu_to_le32(scb->phys + in wd719x_queuecommand()
293 wd719x_writel(wd, WD719X_AMR_SCB_IN, scb->phys); in wd719x_queuecommand()
476 cmd->device->lun, cmd->tag, scb->phys, 0); in wd719x_abort()
682 if (SCB_out == scb->phys) in wd719x_interrupt()
[all …]
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_user_pages.c104 dma_addr_t phys; in qib_map_page() local
106 phys = pci_map_page(hwdev, page, offset, size, direction); in qib_map_page()
108 if (phys == 0) { in qib_map_page()
109 pci_unmap_page(hwdev, phys, size, direction); in qib_map_page()
110 phys = pci_map_page(hwdev, page, offset, size, direction); in qib_map_page()
117 return phys; in qib_map_page()
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_mem.c124 GFP_KERNEL, &pool->elements[i].phys); in lpfc_mem_alloc()
194 pool->elements[i].phys); in lpfc_mem_alloc()
254 pool->elements[i].phys); in lpfc_mem_free()
302 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mem_free_all()
312 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mem_free_all()
326 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mem_free_all()
374 *handle = pool->elements[pool->current_count].phys; in lpfc_mbuf_alloc()
401 pool->elements[pool->current_count].phys = dma; in __lpfc_mbuf_free()
456 &hbqbp->dbuf.phys); in lpfc_els_hbq_alloc()
480 pci_pool_free(phba->lpfc_hbq_pool, hbqbp->dbuf.virt, hbqbp->dbuf.phys); in lpfc_els_hbq_free()
[all …]
Dlpfc_mbox.c83 mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys); in lpfc_dump_static_vport()
96 mb->un.varWords[3] = putPaddrLow(mp->phys); in lpfc_dump_static_vport()
97 mb->un.varWords[4] = putPaddrHigh(mp->phys); in lpfc_dump_static_vport()
299 mb->un.varReadTop.lilpBde64.addrHigh = putPaddrHigh(mp->phys); in lpfc_read_topology()
300 mb->un.varReadTop.lilpBde64.addrLow = putPaddrLow(mp->phys); in lpfc_read_topology()
605 mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys); in lpfc_read_sparam()
617 mb->un.varRdSparm.un.sp64.addrHigh = putPaddrHigh(mp->phys); in lpfc_read_sparam()
618 mb->un.varRdSparm.un.sp64.addrLow = putPaddrLow(mp->phys); in lpfc_read_sparam()
758 mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys); in lpfc_reg_rpi()
779 mb->un.varRegLogin.un.sp64.addrHigh = putPaddrHigh(mp->phys); in lpfc_reg_rpi()
[all …]
Dlpfc_bsg.c142 lpfc_mbuf_free(phba, mlast->virt, mlast->phys); in lpfc_free_bsg_buffers()
146 lpfc_mbuf_free(phba, mlist->virt, mlist->phys); in lpfc_free_bsg_buffers()
180 mp->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &(mp->phys)); in lpfc_alloc_bsg_buffers()
200 bpl->addrLow = le32_to_cpu(putPaddrLow(mp->phys)); in lpfc_alloc_bsg_buffers()
201 bpl->addrHigh = le32_to_cpu(putPaddrHigh(mp->phys)); in lpfc_alloc_bsg_buffers()
361 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_cmd_cmp()
435 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_bsg_send_mgmt_cmd()
464 cmd->un.genreq64.bdl.addrHigh = putPaddrHigh(bmp->phys); in lpfc_bsg_send_mgmt_cmd()
465 cmd->un.genreq64.bdl.addrLow = putPaddrLow(bmp->phys); in lpfc_bsg_send_mgmt_cmd()
535 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_cmd()
[all …]
/linux-4.4.14/include/acpi/
Dacpi_io.h9 static inline void __iomem *acpi_os_ioremap(acpi_physical_address phys, in acpi_os_ioremap() argument
12 return ioremap_cache(phys, size); in acpi_os_ioremap()
17 acpi_os_map_iomem(acpi_physical_address phys, acpi_size size);
19 void __iomem *acpi_os_get_iomem(acpi_physical_address phys, unsigned int size);
/linux-4.4.14/arch/um/include/asm/
Dpage.h48 #define pte_set_val(pte, phys, prot) \ argument
49 ({ (pte).pte_high = (phys) >> 32; \
50 (pte).pte_low = (phys) | pgprot_val(prot); })
77 #define pte_set_val(p, phys, prot) (p).pte = (phys | pgprot_val(prot)) argument
110 #define __va(phys) to_virt((unsigned long) (phys)) argument
/linux-4.4.14/arch/powerpc/include/asm/
Dsmp.h87 static inline void set_hard_smp_processor_id(int cpu, int phys) in set_hard_smp_processor_id() argument
89 smp_hw_index[cpu] = phys; in set_hard_smp_processor_id()
152 static inline void set_hard_smp_processor_id(int cpu, int phys) in set_hard_smp_processor_id() argument
154 paca[cpu].hw_cpu_id = phys; in set_hard_smp_processor_id()
168 static inline void set_hard_smp_processor_id(int cpu, int phys) in set_hard_smp_processor_id() argument
170 boot_cpuid_phys = phys; in set_hard_smp_processor_id()
Ddma.h271 static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int phys) in set_dma_addr() argument
274 dma_outb(phys & 0xff, in set_dma_addr()
276 dma_outb((phys >> 8) & 0xff, in set_dma_addr()
279 dma_outb((phys >> 1) & 0xff, in set_dma_addr()
281 dma_outb((phys >> 9) & 0xff, in set_dma_addr()
284 set_dma_page(dmanr, phys >> 16); in set_dma_addr()
Dppc4xx_ocm.h34 void *ppc4xx_ocm_alloc(phys_addr_t *phys, int size, int align,
40 #define ppc4xx_ocm_alloc(phys, size, align, flags, owner) NULL argument
/linux-4.4.14/drivers/input/mouse/
Dvsxxxaa.c123 char phys[32]; member
140 mouse->name, mouse->phys); in vsxxxaa_queue_byte()
171 mouse->name, mouse->version, mouse->country, mouse->phys); in vsxxxaa_detection_done()
249 mouse->name, mouse->phys, dx, dy, in vsxxxaa_handle_REL_packet()
300 mouse->name, mouse->phys, x, y, in vsxxxaa_handle_ABS_packet()
368 mouse->name, mouse->phys, error); in vsxxxaa_handle_POR_packet()
379 mouse->name, mouse->phys); in vsxxxaa_handle_POR_packet()
406 mouse->name, mouse->phys); in vsxxxaa_parse_buffer()
483 snprintf(mouse->phys, sizeof(mouse->phys), "%s/input0", serio->phys); in vsxxxaa_connect()
486 input_dev->phys = mouse->phys; in vsxxxaa_connect()
Dlifebook.c26 char phys[32]; member
263 strcmp(psmouse->ps2dev.serio->phys, desired_serio_phys)) in lifebook_detect()
286 snprintf(priv->phys, sizeof(priv->phys), in lifebook_create_relative_device()
287 "%s/input1", psmouse->ps2dev.serio->phys); in lifebook_create_relative_device()
289 dev2->phys = priv->phys; in lifebook_create_relative_device()
Dsermouse.c52 char phys[32]; member
257 snprintf(sermouse->phys, sizeof(sermouse->phys), "%s/input0", serio->phys); in sermouse_connect()
261 input_dev->phys = sermouse->phys; in sermouse_connect()
Dvmmouse.c78 char phys[32]; member
462 snprintf(priv->phys, sizeof(priv->phys), "%s/input1", in vmmouse_init()
463 psmouse->ps2dev.serio->phys); in vmmouse_init()
468 abs_dev->phys = priv->phys; in vmmouse_init()
Dsynaptics_usb.c88 char phys[64]; member
368 usb_make_path(udev, synusb->phys, sizeof(synusb->phys)); in synusb_probe()
369 strlcat(synusb->phys, "/input0", sizeof(synusb->phys)); in synusb_probe()
372 input_dev->phys = synusb->phys; in synusb_probe()
/linux-4.4.14/drivers/usb/host/
Dohci-platform.c41 struct phy **phys; member
60 ret = phy_init(priv->phys[phy_num]); in ohci_platform_power_on()
63 ret = phy_power_on(priv->phys[phy_num]); in ohci_platform_power_on()
65 phy_exit(priv->phys[phy_num]); in ohci_platform_power_on()
74 phy_power_off(priv->phys[phy_num]); in ohci_platform_power_on()
75 phy_exit(priv->phys[phy_num]); in ohci_platform_power_on()
91 phy_power_off(priv->phys[phy_num]); in ohci_platform_power_off()
92 phy_exit(priv->phys[phy_num]); in ohci_platform_power_off()
172 priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, in ohci_platform_probe()
174 if (!priv->phys) in ohci_platform_probe()
[all …]
Dehci-platform.c47 struct phy **phys; member
92 ret = phy_init(priv->phys[phy_num]); in ehci_platform_power_on()
95 ret = phy_power_on(priv->phys[phy_num]); in ehci_platform_power_on()
97 phy_exit(priv->phys[phy_num]); in ehci_platform_power_on()
106 phy_power_off(priv->phys[phy_num]); in ehci_platform_power_on()
107 phy_exit(priv->phys[phy_num]); in ehci_platform_power_on()
123 phy_power_off(priv->phys[phy_num]); in ehci_platform_power_off()
124 phy_exit(priv->phys[phy_num]); in ehci_platform_power_off()
209 priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, in ehci_platform_probe()
211 if (!priv->phys) in ehci_platform_probe()
[all …]
/linux-4.4.14/fs/efs/
Dfile.c16 long phys; in efs_get_block() local
30 phys = efs_map_block(inode, iblock); in efs_get_block()
31 if (phys) in efs_get_block()
32 map_bh(bh_result, inode->i_sb, phys); in efs_get_block()
/linux-4.4.14/drivers/xen/
Dswiotlb-xen.c302 phys_addr_t phys; in xen_swiotlb_alloc_coherent() local
330 phys = *dma_handle; in xen_swiotlb_alloc_coherent()
331 dev_addr = xen_phys_to_bus(phys); in xen_swiotlb_alloc_coherent()
333 !range_straddles_page_boundary(phys, size)) in xen_swiotlb_alloc_coherent()
336 if (xen_create_contiguous_region(phys, order, in xen_swiotlb_alloc_coherent()
338 xen_free_coherent_pages(hwdev, size, ret, (dma_addr_t)phys, attrs); in xen_swiotlb_alloc_coherent()
352 phys_addr_t phys; in xen_swiotlb_free_coherent() local
360 phys = xen_bus_to_phys(dev_addr); in xen_swiotlb_free_coherent()
363 range_straddles_page_boundary(phys, size)) in xen_swiotlb_free_coherent()
364 xen_destroy_contiguous_region(phys, order); in xen_swiotlb_free_coherent()
[all …]
/linux-4.4.14/drivers/input/keyboard/
Dnewtonkbd.c63 char phys[32]; member
78 printk(KERN_INFO "input: %s on %s\n", nkbd->dev->name, serio->phys); in nkbd_interrupt()
97 snprintf(nkbd->phys, sizeof(nkbd->phys), "%s/input0", serio->phys); in nkbd_connect()
101 input_dev->phys = nkbd->phys; in nkbd_connect()
Dxtkbd.c60 char phys[32]; member
99 snprintf(xtkbd->phys, sizeof(xtkbd->phys), "%s/input0", serio->phys); in xtkbd_connect()
103 input_dev->phys = xtkbd->phys; in xtkbd_connect()
Dstowaway.c69 char phys[32]; member
101 snprintf(skbd->phys, sizeof(skbd->phys), "%s/input0", serio->phys); in skbd_connect()
105 input_dev->phys = skbd->phys; in skbd_connect()
Dlkkbd.c284 char phys[32]; member
388 "Jan-Benedict Glaw <jbglaw@lug-owl.de>\n", lk->phys); in lkkbd_detection_done()
397 lk->phys, lk->name); in lkkbd_detection_done()
409 lk->phys); in lkkbd_detection_done()
415 "keyboard may not work properly\n", lk->phys); in lkkbd_detection_done()
421 lk->id[2], lk->phys); in lkkbd_detection_done()
642 snprintf(lk->phys, sizeof(lk->phys), "%s/input0", serio->phys); in lkkbd_connect()
645 input_dev->phys = lk->phys; in lkkbd_connect()
Dsunkbd.c82 char phys[32]; member
269 snprintf(sunkbd->phys, sizeof(sunkbd->phys), "%s/input0", serio->phys); in sunkbd_connect()
287 input_dev->phys = sunkbd->phys; in sunkbd_connect()
/linux-4.4.14/arch/arm64/include/asm/
Dacpi.h32 static inline void __iomem *acpi_os_ioremap(acpi_physical_address phys, in acpi_os_ioremap() argument
35 if (!page_is_ram(phys >> PAGE_SHIFT)) in acpi_os_ioremap()
36 return ioremap(phys, size); in acpi_os_ioremap()
38 return ioremap_cache(phys, size); in acpi_os_ioremap()
Dmmu.h32 extern void __iomem *early_io_map(phys_addr_t phys, unsigned long virt);
34 extern void create_pgd_mapping(struct mm_struct *mm, phys_addr_t phys,
/linux-4.4.14/arch/arm/mach-davinci/include/mach/
Duncompress.h52 static inline void set_uart_info(u32 phys) in set_uart_info() argument
54 uart = (u32 *)phys; in set_uart_info()
57 #define _DEBUG_LL_ENTRY(machine, phys) \ argument
60 set_uart_info(phys); \
/linux-4.4.14/drivers/input/joystick/
Dzhenhua.c73 char phys[32]; member
156 snprintf(zhenhua->phys, sizeof(zhenhua->phys), "%s/input0", serio->phys); in zhenhua_connect()
159 input_dev->phys = zhenhua->phys; in zhenhua_connect()
Dspaceorb.c61 char phys[32]; member
92 dev->name, spaceorb->data + i, spaceorb->phys); in spaceorb_process_packet()
175 snprintf(spaceorb->phys, sizeof(spaceorb->phys), "%s/input0", serio->phys); in spaceorb_connect()
178 input_dev->phys = spaceorb->phys; in spaceorb_connect()
Dguillemot.c73 char phys[32]; member
214 gameport->phys, data[12], data[13], data[11], data[14], data[15]); in guillemot_connect()
222 snprintf(guillemot->phys, sizeof(guillemot->phys), "%s/input0", gameport->phys); in guillemot_connect()
226 input_dev->phys = guillemot->phys; in guillemot_connect()
268 …illemot.c: Failed %d reads out of %d on %s\n", guillemot->reads, guillemot->bads, guillemot->phys); in guillemot_disconnect()
Dstinger.c56 char phys[32]; member
146 snprintf(stinger->phys, sizeof(stinger->phys), "%s/serio0", serio->phys); in stinger_connect()
149 input_dev->phys = stinger->phys; in stinger_connect()
Dmagellan.c58 char phys[32]; member
160 snprintf(magellan->phys, sizeof(magellan->phys), "%s/input0", serio->phys); in magellan_connect()
163 input_dev->phys = magellan->phys; in magellan_connect()
Dtwidjoy.c94 char phys[32]; member
195 snprintf(twidjoy->phys, sizeof(twidjoy->phys), "%s/input0", serio->phys); in twidjoy_connect()
198 input_dev->phys = twidjoy->phys; in twidjoy_connect()
Dwarrior.c56 char phys[32]; member
152 snprintf(warrior->phys, sizeof(warrior->phys), "%s/input0", serio->phys); in warrior_connect()
155 input_dev->phys = warrior->phys; in warrior_connect()
Dcobra.c53 char phys[2][32]; member
180 " Contact vojtech@ucw.cz\n", i, gameport->phys, (data[i] >> 2) & 7); in cobra_connect()
202 snprintf(cobra->phys[i], sizeof(cobra->phys[i]), in cobra_connect()
203 "%s/input%d", gameport->phys, i); in cobra_connect()
206 input_dev->phys = cobra->phys[i]; in cobra_connect()
Dinteract.c60 char phys[32]; member
243 gameport->phys, i, data[0], data[1], data[2]); in interact_connect()
251 snprintf(interact->phys, sizeof(interact->phys), "%s/input0", gameport->phys); in interact_connect()
257 input_dev->phys = interact->phys; in interact_connect()
Dspaceball.c74 char phys[32]; member
218 snprintf(spaceball->phys, sizeof(spaceball->phys), "%s/input0", serio->phys); in spaceball_connect()
221 input_dev->phys = spaceball->phys; in spaceball_connect()
Dgf2k.c87 char phys[32]; member
290 gameport->phys, gf2k->id, gf2k->id > GF2K_ID_MAX ? "Unknown" : gf2k_names[gf2k->id]); in gf2k_connect()
298 snprintf(gf2k->phys, sizeof(gf2k->phys), "%s/input0", gameport->phys); in gf2k_connect()
303 input_dev->phys = gf2k->phys; in gf2k_connect()
Da3d.c64 char phys[32]; member
298 "(%s, id=%d), contact <vojtech@ucw.cz>\n", gameport->phys, a3d->mode); in a3d_connect()
306 snprintf(a3d->phys, sizeof(a3d->phys), "%s/input0", gameport->phys); in a3d_connect()
309 input_dev->phys = a3d->phys; in a3d_connect()
371 gameport_set_phys(adc, "%s/gameport0", gameport->phys); in a3d_connect()
Dsidewinder.c118 char phys[4][32]; member
436 " - going to reinitialize.\n", sw->gameport->phys); in sw_read()
462 " - enabling optimization again.\n", sw->gameport->phys); in sw_read()
475 " - disabling optimization.\n", sw->gameport->phys); in sw_read()
483 " - reinitializing joystick.\n", sw->gameport->phys); in sw_read()
616 gameport->phys, gameport->io, gameport->speed); in sw_connect()
715 "on %s, contact <vojtech@ucw.cz>\n", gameport->phys); in sw_connect()
738 snprintf(sw->phys[i], sizeof(sw->phys[i]), in sw_connect()
739 "%s/input%d", gameport->phys, i); in sw_connect()
748 input_dev->phys = sw->phys[i]; in sw_connect()
Dtmdc.c114 char phys[32]; member
129 char phys[2][32];
316 snprintf(port->phys, sizeof(port->phys), "%s/input%d", tmdc->gameport->phys, i); in tmdc_setup_port()
321 input_dev->phys = port->phys; in tmdc_setup_port()
Dturbografx.c81 char phys[TGFX_MAX_DEVICES][32]; member
225 snprintf(tgfx->phys[i], sizeof(tgfx->phys[i]), in tgfx_attach()
229 input_dev->phys = tgfx->phys[i]; in tgfx_attach()
Dgrip.c60 char phys[2][32]; member
354 snprintf(grip->phys[i], sizeof(grip->phys[i]), in grip_connect()
355 "%s/input%d", gameport->phys, i); in grip_connect()
358 input_dev->phys = grip->phys[i]; in grip_connect()
/linux-4.4.14/drivers/input/touchscreen/
Dfujitsu_ts.c36 char phys[32]; member
115 snprintf(fujitsu->phys, sizeof(fujitsu->phys), in fujitsu_connect()
116 "%s/input0", serio->phys); in fujitsu_connect()
119 input_dev->phys = fujitsu->phys; in fujitsu_connect()
Dtouchit213.c83 char phys[32]; member
155 snprintf(touchit213->phys, sizeof(touchit213->phys), in touchit213_connect()
156 "%s/input0", serio->phys); in touchit213_connect()
159 input_dev->phys = touchit213->phys; in touchit213_connect()
Dtouchwin.c58 char phys[32]; member
125 snprintf(tw->phys, sizeof(tw->phys), "%s/input0", serio->phys); in tw_connect()
128 input_dev->phys = tw->phys; in tw_connect()
Dgunze.c57 char phys[32]; member
128 snprintf(gunze->phys, sizeof(serio->phys), "%s/input0", serio->phys); in gunze_connect()
131 input_dev->phys = gunze->phys; in gunze_connect()
Dtouchright.c54 char phys[32]; member
118 snprintf(tr->phys, sizeof(tr->phys), "%s/input0", serio->phys); in tr_connect()
121 input_dev->phys = tr->phys; in tr_connect()
Dtsc40.c21 char phys[32]; member
95 snprintf(ptsc->phys, sizeof(ptsc->phys), "%s/input0", serio->phys); in tsc_connect()
98 input_dev->phys = ptsc->phys; in tsc_connect()
Ddynapro.c60 char phys[32]; member
127 snprintf(pdynapro->phys, sizeof(pdynapro->phys), in dynapro_connect()
128 "%s/input0", serio->phys); in dynapro_connect()
131 input_dev->phys = pdynapro->phys; in dynapro_connect()
Dinexio.c62 char phys[32]; member
131 snprintf(pinexio->phys, sizeof(pinexio->phys), "%s/input0", serio->phys); in inexio_connect()
134 input_dev->phys = pinexio->phys; in inexio_connect()
Dhampshire.c59 char phys[32]; member
126 snprintf(phampshire->phys, sizeof(phampshire->phys), in hampshire_connect()
127 "%s/input0", serio->phys); in hampshire_connect()
130 input_dev->phys = phampshire->phys; in hampshire_connect()
Dmtouch.c62 char phys[32]; member
144 snprintf(mtouch->phys, sizeof(mtouch->phys), "%s/input0", serio->phys); in mtouch_connect()
147 input_dev->phys = mtouch->phys; in mtouch_connect()
Dpenmount.c59 char phys[32]; member
215 snprintf(pm->phys, sizeof(pm->phys), "%s/input0", serio->phys); in pm_connect()
219 input_dev->phys = pm->phys; in pm_connect()
Delo.c66 char phys[32]; member
327 snprintf(elo->phys, sizeof(elo->phys), "%s/input0", serio->phys); in elo_connect()
330 input_dev->phys = elo->phys; in elo_connect()
Dcy8ctmg110_ts.c58 char phys[32]; member
208 snprintf(ts->phys, sizeof(ts->phys), in cy8ctmg110_probe()
212 input_dev->phys = ts->phys; in cy8ctmg110_probe()
Dtps6507x-ts.c45 char phys[32]; member
240 snprintf(tsc->phys, sizeof(tsc->phys), in tps6507x_ts_probe()
266 input_dev->phys = tsc->phys; in tps6507x_ts_probe()
/linux-4.4.14/drivers/media/common/siano/
Dsmsir.c73 strlcpy(coredev->ir.phys, coredev->devpath, sizeof(coredev->ir.phys)); in sms_ir_init()
74 strlcat(coredev->ir.phys, "/ir0", sizeof(coredev->ir.phys)); in sms_ir_init()
77 dev->input_phys = coredev->ir.phys; in sms_ir_init()
/linux-4.4.14/drivers/ata/
Dlibahci_platform.c54 rc = phy_init(hpriv->phys[i]); in ahci_platform_enable_phys()
58 rc = phy_power_on(hpriv->phys[i]); in ahci_platform_enable_phys()
60 phy_exit(hpriv->phys[i]); in ahci_platform_enable_phys()
69 phy_power_off(hpriv->phys[i]); in ahci_platform_enable_phys()
70 phy_exit(hpriv->phys[i]); in ahci_platform_enable_phys()
86 phy_power_off(hpriv->phys[i]); in ahci_platform_disable_phys()
87 phy_exit(hpriv->phys[i]); in ahci_platform_disable_phys()
283 hpriv->phys[port] = devm_of_phy_get(dev, node, NULL); in ahci_platform_get_phy()
285 if (!IS_ERR(hpriv->phys[port])) in ahci_platform_get_phy()
288 rc = PTR_ERR(hpriv->phys[port]); in ahci_platform_get_phy()
[all …]
/linux-4.4.14/arch/um/include/shared/
Dmem.h9 extern int phys_mapping(unsigned long phys, unsigned long long *offset_out);
17 static inline void *to_virt(unsigned long phys) in to_virt() argument
19 return((void *) uml_physmem + phys); in to_virt()
Dmem_user.h40 unsigned long phys; member
58 extern unsigned long phys_offset(unsigned long phys);
59 extern void map_memory(unsigned long virt, unsigned long phys,
/linux-4.4.14/drivers/scsi/isci/
Dport_config.c197 sci_phy_get_sas_address(&ihost->phys[0], &first_address); in sci_port_configuration_agent_validate_ports()
198 sci_phy_get_sas_address(&ihost->phys[3], &second_address); in sci_port_configuration_agent_validate_ports()
210 sci_phy_get_sas_address(&ihost->phys[0], &first_address); in sci_port_configuration_agent_validate_ports()
211 sci_phy_get_sas_address(&ihost->phys[2], &second_address); in sci_port_configuration_agent_validate_ports()
224 sci_phy_get_sas_address(&ihost->phys[1], &first_address); in sci_port_configuration_agent_validate_ports()
225 sci_phy_get_sas_address(&ihost->phys[3], &second_address); in sci_port_configuration_agent_validate_ports()
272 sci_phy_get_sas_address(&ihost->phys[phy_index], in sci_mpc_agent_validate_phy_configuration()
297 sci_phy_get_sas_address(&ihost->phys[phy_index], in sci_mpc_agent_validate_phy_configuration()
311 &ihost->phys[phy_index]); in sci_mpc_agent_validate_phy_configuration()
345 struct isci_phy *iphy = &ihost->phys[index]; in mpc_agent_timeout()
[all …]
Dprobe_roms.c145 for (j = 0; j < ARRAY_SIZE(orom->ctrl[i].phys); j++) { in isci_request_firmware()
146 orom->ctrl[i].phys[j].afe_tx_amp_control0 = 0xe7c03; in isci_request_firmware()
147 orom->ctrl[i].phys[j].afe_tx_amp_control1 = 0xe7c03; in isci_request_firmware()
148 orom->ctrl[i].phys[j].afe_tx_amp_control2 = 0xe7c03; in isci_request_firmware()
149 orom->ctrl[i].phys[j].afe_tx_amp_control3 = 0xe7c03; in isci_request_firmware()
Dinit.c249 sas_ha->sas_addr = &isci_host->phys[0].sas_addr[0]; in isci_register_sas_ha()
252 sas_phys[i] = &isci_host->phys[i].sas_phy; in isci_register_sas_ha()
404 struct sci_phy_user_params *u_phy = &u->phys[i]; in isci_user_parameters_get()
434 u = &sci_parms->phys[index]; in sci_user_parameters_set()
487 user->phys[i].max_speed_generation = SCIC_SDS_PARM_GEN2_SPEED; in sci_oem_defaults()
490 user->phys[i].align_insertion_frequency = 0x7f; in sci_oem_defaults()
491 user->phys[i].in_connection_align_insertion_frequency = 0xff; in sci_oem_defaults()
492 user->phys[i].notify_enable_spin_up_insertion_frequency = 0x33; in sci_oem_defaults()
499 oem->phys[i].sas_address.low = 0x1 + ihost->id; in sci_oem_defaults()
500 oem->phys[i].sas_address.high = 0x5FCFFFFF; in sci_oem_defaults()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/phy/
Dphy-bindings.txt19 phys: phy {
37 phys : the phandle for the PHY device (used by the PHY subsystem)
39 *phys* phandle
47 phys = <&usb2_phy>, <&usb3_phy>;
62 phys = <&phys 1>;
Dbrcm,cygnus-pcie-phy.txt38 phys = <&pcie0_phy>;
45 phys = <pcie1_phy>;
/linux-4.4.14/arch/sh/mm/
Dcache-sh4.c31 static void __flush_cache_one(unsigned long addr, unsigned long phys,
89 static inline void flush_cache_one(unsigned long start, unsigned long phys) in flush_cache_one() argument
102 __flush_cache_one(start, phys, exec_offset); in flush_cache_one()
209 unsigned long address, pfn, phys; in sh4_flush_cache_page() local
220 phys = pfn << PAGE_SHIFT; in sh4_flush_cache_page()
254 (address & shm_align_mask), phys); in sh4_flush_cache_page()
316 static void __flush_cache_one(unsigned long addr, unsigned long phys, in __flush_cache_one() argument
355 p = phys; in __flush_cache_one()
Dinit.c72 static void set_pte_phys(unsigned long addr, unsigned long phys, pgprot_t prot) in set_pte_phys() argument
82 set_pte(pte, pfn_pte(phys >> PAGE_SHIFT, prot)); in set_pte_phys()
102 void __set_fixmap(enum fixed_addresses idx, unsigned long phys, pgprot_t prot) in __set_fixmap() argument
111 set_pte_phys(address, phys, prot); in __set_fixmap()
197 unsigned long phys; in allocate_pgdat() local
203 phys = __memblock_alloc_base(sizeof(struct pglist_data), in allocate_pgdat()
206 if (!phys) in allocate_pgdat()
207 phys = __memblock_alloc_base(sizeof(struct pglist_data), in allocate_pgdat()
209 if (!phys) in allocate_pgdat()
212 NODE_DATA(nid) = __va(phys); in allocate_pgdat()
Dpmb.c137 static bool pmb_mapping_exists(unsigned long vaddr, phys_addr_t phys, in pmb_mapping_exists() argument
158 if ((phys < pmbe->ppn) || (phys >= (pmbe->ppn + pmbe->size))) in pmb_mapping_exists()
335 int pmb_bolt_mapping(unsigned long vaddr, phys_addr_t phys, in pmb_bolt_mapping() argument
347 if (pmb_mapping_exists(vaddr, phys, size)) in pmb_bolt_mapping()
363 pmbe = pmb_alloc(vaddr, phys, pmb_flags | in pmb_bolt_mapping()
376 phys += pmbe->size; in pmb_bolt_mapping()
410 void __iomem *pmb_remap_caller(phys_addr_t phys, unsigned long size, in pmb_remap_caller() argument
435 last_addr = phys + size; in pmb_remap_caller()
437 offset = phys & ~align_mask; in pmb_remap_caller()
438 phys &= align_mask; in pmb_remap_caller()
[all …]
Dcache-sh7705.c81 static void __flush_dcache_page(unsigned long phys) in __flush_dcache_page() argument
86 phys |= SH_CACHE_VALID; in __flush_dcache_page()
119 if (data == phys) { in __flush_dcache_page()
/linux-4.4.14/drivers/input/tablet/
Dkbtab.c37 char phys[32]; member
142 usb_make_path(dev, kbtab->phys, sizeof(kbtab->phys)); in kbtab_probe()
143 strlcat(kbtab->phys, "/input0", sizeof(kbtab->phys)); in kbtab_probe()
146 input_dev->phys = kbtab->phys; in kbtab_probe()
Dacecad.c51 char phys[64]; member
188 usb_make_path(dev, acecad->phys, sizeof(acecad->phys)); in usb_acecad_probe()
189 strlcat(acecad->phys, "/input0", sizeof(acecad->phys)); in usb_acecad_probe()
192 input_dev->phys = acecad->phys; in usb_acecad_probe()
Dhanwang.c78 char phys[32]; member
371 usb_make_path(dev, hanwang->phys, sizeof(hanwang->phys)); in hanwang_probe()
372 strlcat(hanwang->phys, "/input0", sizeof(hanwang->phys)); in hanwang_probe()
376 input_dev->phys = hanwang->phys; in hanwang_probe()
/linux-4.4.14/arch/metag/mm/
Dmmu-meta1.c26 static unsigned long map_addr(unsigned long phys) in map_addr() argument
31 offset = phys - dm_base; in map_addr()
36 dm_base = phys & ~(MMCU_DIRECTMAPn_ADDR_SCALE - 1); in map_addr()
42 offset = phys - dm_base; in map_addr()
Dinit.c113 unsigned long phys; in allocate_pgdat() local
119 phys = __memblock_alloc_base(sizeof(struct pglist_data), in allocate_pgdat()
122 if (!phys) in allocate_pgdat()
123 phys = __memblock_alloc_base(sizeof(struct pglist_data), in allocate_pgdat()
126 if (!phys) in allocate_pgdat()
129 NODE_DATA(nid) = __va(phys); in allocate_pgdat()
/linux-4.4.14/drivers/acpi/
Dosl.c91 acpi_physical_address phys; member
281 acpi_map_lookup(acpi_physical_address phys, acpi_size size) in acpi_map_lookup() argument
286 if (map->phys <= phys && in acpi_map_lookup()
287 phys + size <= map->phys + map->size) in acpi_map_lookup()
295 acpi_map_vaddr_lookup(acpi_physical_address phys, unsigned int size) in acpi_map_vaddr_lookup() argument
299 map = acpi_map_lookup(phys, size); in acpi_map_vaddr_lookup()
301 return map->virt + (phys - map->phys); in acpi_map_vaddr_lookup()
306 void __iomem *acpi_os_get_iomem(acpi_physical_address phys, unsigned int size) in acpi_os_get_iomem() argument
312 map = acpi_map_lookup(phys, size); in acpi_os_get_iomem()
314 virt = map->virt + (phys - map->phys); in acpi_os_get_iomem()
[all …]
Dnvs.c178 unsigned long phys = entry->phys_start; in suspend_nvs_save() local
181 entry->kaddr = acpi_os_get_iomem(phys, size); in suspend_nvs_save()
183 entry->kaddr = acpi_os_ioremap(phys, size); in suspend_nvs_save()
Dbutton.c101 char phys[32]; /* for input device */ member
393 snprintf(button->phys, sizeof(button->phys), "%s/button/input0", hid); in acpi_button_add()
396 input->phys = button->phys; in acpi_button_add()
/linux-4.4.14/drivers/phy/
Dphy-exynos-mipi-video.c43 } phys[EXYNOS_MIPI_PHYS_NUM]; member
98 container_of((desc), struct exynos_mipi_video_phy, phys[(desc)->index]);
124 return state->phys[args->args[0]].phy; in exynos_mipi_video_phy_xlate()
168 state->phys[i].phy = phy; in exynos_mipi_video_phy_probe()
169 state->phys[i].index = i; in exynos_mipi_video_phy_probe()
170 phy_set_drvdata(phy, &state->phys[i]); in exynos_mipi_video_phy_probe()
Dphy-berlin-sata.c63 struct phy_berlin_desc **phys; member
169 if (priv->phys[i]->index == args->args[0]) in phy_berlin_sata_phy_xlate()
176 return priv->phys[i]->phy; in phy_berlin_sata_phy_xlate()
221 priv->phys = devm_kcalloc(dev, priv->nphys, sizeof(*priv->phys), in phy_berlin_sata_probe()
223 if (!priv->phys) in phy_berlin_sata_probe()
268 priv->phys[i++] = phy_desc; in phy_berlin_sata_probe()
Dphy-miphy365x.c152 struct miphy365x_phy **phys; member
485 if (phynode == miphy_dev->phys[index]->phy->dev.of_node) { in miphy365x_xlate()
486 miphy_phy = miphy_dev->phys[index]; in miphy365x_xlate()
547 miphy_dev->phys = devm_kcalloc(&pdev->dev, miphy_dev->nphys, in miphy365x_probe()
548 sizeof(*miphy_dev->phys), GFP_KERNEL); in miphy365x_probe()
549 if (!miphy_dev->phys) in miphy365x_probe()
574 miphy_dev->phys[port] = miphy_phy; in miphy365x_probe()
583 miphy_dev->phys[port]->phy = phy; in miphy365x_probe()
589 phy_set_drvdata(phy, miphy_dev->phys[port]); in miphy365x_probe()
Dphy-exynos5-usbdrd.c179 } phys[EXYNOS5_DRDPHYS_NUM]; member
190 phys[(inst)->index]); in to_usbdrd_phy()
537 return phy_drd->phys[args->args[0]].phy; in exynos5_usbdrd_phy_xlate()
752 phy_drd->phys[i].phy = phy; in exynos5_usbdrd_phy_probe()
753 phy_drd->phys[i].index = i; in exynos5_usbdrd_phy_probe()
754 phy_drd->phys[i].reg_pmu = reg_pmu; in exynos5_usbdrd_phy_probe()
755 phy_drd->phys[i].pmu_offset = pmu_offset; in exynos5_usbdrd_phy_probe()
756 phy_drd->phys[i].phy_cfg = &drv_data->phy_cfg[i]; in exynos5_usbdrd_phy_probe()
757 phy_set_drvdata(phy, &phy_drd->phys[i]); in exynos5_usbdrd_phy_probe()
Dphy-mt65xx-usb3.c125 struct mt65xx_phy_instance **phys; member
380 if (phy_np == u3phy->phys[index]->phy->dev.of_node) { in mt65xx_phy_xlate()
381 instance = u3phy->phys[index]; in mt65xx_phy_xlate()
425 u3phy->phys = devm_kcalloc(dev, u3phy->nphys, in mt65xx_u3phy_probe()
426 sizeof(*u3phy->phys), GFP_KERNEL); in mt65xx_u3phy_probe()
427 if (!u3phy->phys) in mt65xx_u3phy_probe()
457 u3phy->phys[port] = instance; in mt65xx_u3phy_probe()
Dphy-bcm-cygnus-pcie.c56 struct cygnus_pcie_phy phys[MAX_NUM_PHYS]; member
168 if (core->phys[id].phy) { in cygnus_pcie_phy_probe()
174 p = &core->phys[id]; in cygnus_pcie_phy_probe()
Dphy-brcmstb-sata.c48 struct brcm_sata_port phys[MAX_PORTS]; member
175 if (priv->phys[id].phy) { in brcm_sata_phy_probe()
181 port = &priv->phys[id]; in brcm_sata_phy_probe()
/linux-4.4.14/arch/unicore32/mm/
Dmmu.c175 unsigned long end, unsigned long phys, in alloc_init_section() argument
184 if (((addr | end | phys) & ~SECTION_MASK) == 0) { in alloc_init_section()
188 set_pmd(pmd, __pmd(phys | type->prot_sect)); in alloc_init_section()
189 phys += SECTION_SIZE; in alloc_init_section()
198 alloc_init_pte(pmd, addr, end, __phys_to_pfn(phys), type); in alloc_init_section()
210 unsigned long phys, addr, length, end; in create_mapping() local
231 phys = (unsigned long)__pfn_to_phys(md->pfn); in create_mapping()
234 if (type->prot_l1 == 0 && ((addr | phys | length) & ~SECTION_MASK)) { in create_mapping()
246 alloc_init_section(pgd, addr, next, phys, type); in create_mapping()
248 phys += next - addr; in create_mapping()
/linux-4.4.14/drivers/net/fddi/skfp/
Dhwmtm.c147 void hwm_tx_frag(struct s_smc *smc, char far *virt, u_long phys, int len,
149 void hwm_rx_frag(struct s_smc *smc, char far *virt, u_long phys, int len,
331 u_long phys ; in init_descr_ring() local
339 phys = mac_drv_virt2phys(smc,(void *)d1) ; in init_descr_ring()
340 d2->r.rxd_nrdadr = cpu_to_le32(phys) ; in init_descr_ring()
345 phys = mac_drv_virt2phys(smc,(void *)start) ; in init_descr_ring()
346 d1->r.rxd_nrdadr = cpu_to_le32(phys) ; in init_descr_ring()
352 return phys; in init_descr_ring()
359 u_long phys ; in init_txd_ring() local
370 phys = le32_to_cpu(ds->txd_ntdadr) ; in init_txd_ring()
[all …]
/linux-4.4.14/drivers/net/phy/
Dfixed_phy.c32 struct list_head phys; member
47 .phys = LIST_HEAD_INIT(platform_fmb.phys),
168 list_for_each_entry(fp, &fmb->phys, node) { in fixed_mdio_read()
204 list_for_each_entry(fp, &fmb->phys, node) { in fixed_phy_set_link_update()
226 list_for_each_entry(fp, &fmb->phys, node) { in fixed_phy_update_state()
276 list_add_tail(&fp->node, &fmb->phys); in fixed_phy_add()
294 list_for_each_entry_safe(fp, tmp, &fmb->phys, node) { in fixed_phy_del()
424 list_for_each_entry_safe(fp, tmp, &fmb->phys, node) { in fixed_mdio_bus_exit()
Dmdio-mux-mmioreg.c23 phys_addr_t phys; member
50 void __iomem *p = ioremap(s->phys, 1); in mdio_mux_mmioreg_switch_fn()
89 s->phys = res.start; in mdio_mux_mmioreg_probe()
/linux-4.4.14/drivers/platform/x86/
Dxo15-ebook.c46 char phys[32]; /* for input device */ member
120 snprintf(button->phys, sizeof(button->phys), "%s/button/input0", hid); in ebook_switch_add()
123 input->phys = button->phys; in ebook_switch_add()
Dsurfacepro3_button.c65 char phys[32]; /* for input device */ member
167 snprintf(button->phys, sizeof(button->phys), "%s/buttons", hid); in surface_button_add()
170 input->phys = button->phys; in surface_button_add()
Dfujitsu-tablet.c174 char phys[21]; member
234 const char *phys) in input_fujitsu_setup() argument
245 idev->phys = phys; in input_fujitsu_setup()
473 snprintf(fujitsu.phys, sizeof(fujitsu.phys), in acpi_fujitsu_add()
477 acpi_device_name(adev), fujitsu.phys); in acpi_fujitsu_add()
/linux-4.4.14/drivers/scsi/aacraid/
Dcomminit.c73 dma_addr_t phys; in aac_alloc_comm() local
83 base = pci_alloc_consistent(dev->pdev, size, &phys); in aac_alloc_comm()
91 dev->comm_phys = phys; in aac_alloc_comm()
97 dev->host_rrq_pa = phys + fibsize; in aac_alloc_comm()
102 dev->init_pa = phys + fibsize + host_rrq_size; in aac_alloc_comm()
119 init->AdapterFibsPhysicalAddress = cpu_to_le32((u32)phys); in aac_alloc_comm()
167 phys = (dma_addr_t)((ulong)phys + fibsize + host_rrq_size + in aac_alloc_comm()
175 phys = phys + align; in aac_alloc_comm()
180 init->CommHeaderAddress = cpu_to_le32((u32)phys); in aac_alloc_comm()
185 phys = phys + commsize; in aac_alloc_comm()
[all …]
/linux-4.4.14/drivers/net/ethernet/hisilicon/
Dhip04_eth.c334 static void hip04_set_xmit_desc(struct hip04_priv *priv, dma_addr_t phys) in hip04_set_xmit_desc() argument
336 writel(phys, priv->base + PPE_CFG_CPU_ADD_ADDR); in hip04_set_xmit_desc()
339 static void hip04_set_recv_desc(struct hip04_priv *priv, dma_addr_t phys) in hip04_set_recv_desc() argument
341 regmap_write(priv->map, priv->port * 4 + PPE_CFG_RX_ADDR, phys); in hip04_set_recv_desc()
431 dma_addr_t phys; in hip04_mac_start_xmit() local
440 phys = dma_map_single(&ndev->dev, skb->data, skb->len, DMA_TO_DEVICE); in hip04_mac_start_xmit()
441 if (dma_mapping_error(&ndev->dev, phys)) { in hip04_mac_start_xmit()
447 priv->tx_phys[tx_head] = phys; in hip04_mac_start_xmit()
448 desc->send_addr = cpu_to_be32(phys); in hip04_mac_start_xmit()
451 phys = priv->tx_desc_dma + tx_head * sizeof(struct tx_desc); in hip04_mac_start_xmit()
[all …]
/linux-4.4.14/drivers/hid/usbhid/
Dusbmouse.c53 char phys[64]; member
172 usb_make_path(dev, mouse->phys, sizeof(mouse->phys)); in usb_mouse_probe()
173 strlcat(mouse->phys, "/input0", sizeof(mouse->phys)); in usb_mouse_probe()
176 input_dev->phys = mouse->phys; in usb_mouse_probe()
Dusbkbd.c100 char phys[64]; member
324 usb_make_path(dev, kbd->phys, sizeof(kbd->phys)); in usb_kbd_probe()
325 strlcat(kbd->phys, "/input0", sizeof(kbd->phys)); in usb_kbd_probe()
328 input_dev->phys = kbd->phys; in usb_kbd_probe()
/linux-4.4.14/Documentation/devicetree/bindings/ata/
Dmarvell.txt10 - phys : List of phandles to sata phys
19 phys = <&sata_phy0>, <&sata_phy1>;
Dahci-platform.txt31 - phys : reference to the SATA PHY node
46 - phys : reference to the SATA PHY node
75 phys = <&sata_phy 0>;
81 phys = <&sata_phy 1>;
Dahci-st.txt12 - phys : The phandle for the PHY port
27 phys = <&phy_port0 PHY_TYPE_SATA>;
42 phys = <&phy_port0 PHY_TYPE_SATA>;
Dbrcm,sata-brcmstb.txt27 phys = <&sata_phy 0>;
32 phys = <&sata_phy 1>;
Dexynos-sata.txt11 - phys : Must contain exactly one entry as specified
28 phys = <&sata_phy>;
Dapm-xgene.txt21 - phys : A list of phandles + phy-specifiers, one for each
62 phys = <&phy2 0>;
77 phys = <&phy3 0>;
/linux-4.4.14/arch/mips/cavium-octeon/
Dflash_setup.c97 flash_map.phys = region_cfg.s.base << 16; in octeon_flash_probe()
98 flash_map.size = 0x1fc00000 - flash_map.phys; in octeon_flash_probe()
101 flash_map.virt = ioremap(flash_map.phys, flash_map.size); in octeon_flash_probe()
103 "0x%08llx\n", flash_map.size >> 20, flash_map.phys); in octeon_flash_probe()
/linux-4.4.14/arch/x86/mm/
Dioremap.c396 void *xlate_dev_mem_ptr(phys_addr_t phys) in xlate_dev_mem_ptr() argument
398 unsigned long start = phys & PAGE_MASK; in xlate_dev_mem_ptr()
399 unsigned long offset = phys & ~PAGE_MASK; in xlate_dev_mem_ptr()
404 return __va(phys); in xlate_dev_mem_ptr()
414 void unxlate_dev_mem_ptr(phys_addr_t phys, void *addr) in unxlate_dev_mem_ptr() argument
416 if (page_is_ram(phys >> PAGE_SHIFT)) in unxlate_dev_mem_ptr()
485 phys_addr_t phys, pgprot_t flags) in __early_set_fixmap() argument
497 set_pte(pte, pfn_pte(phys >> PAGE_SHIFT, flags)); in __early_set_fixmap()
Dmmio-mod.c52 resource_size_t phys; member
162 my_trace->phys = addr - trace->probe.addr + trace->phys; in pre()
241 .phys = offset, in ioremap_trace_core()
260 .phys = offset, in ioremap_trace_core()
296 .phys = 0, in iounmap_trace_core()
/linux-4.4.14/arch/arm/mach-davinci/
Dsram.c55 phys_addr_t phys = davinci_soc_info.sram_dma; in sram_init() local
68 addr = ioremap(phys, len); in sram_init()
72 phys, len, -1); in sram_init()
/linux-4.4.14/drivers/usb/storage/
Donetouch.c54 char phys[64]; member
234 usb_make_path(udev, onetouch->phys, sizeof(onetouch->phys)); in onetouch_connect_input()
235 strlcat(onetouch->phys, "/input0", sizeof(onetouch->phys)); in onetouch_connect_input()
238 input_dev->phys = onetouch->phys; in onetouch_connect_input()
/linux-4.4.14/drivers/net/ethernet/xscale/
Dixp4xx_eth.c612 static inline void debug_desc(u32 phys, struct desc *desc) in debug_desc() argument
617 phys, desc->next, desc->buf_len, desc->pkt_len, in debug_desc()
630 u32 phys, tab_phys, n_desc; in queue_get_desc() local
633 if (!(phys = qmgr_get_entry(queue))) in queue_get_desc()
636 phys &= ~0x1F; /* mask out non-address bits */ in queue_get_desc()
639 n_desc = (phys - tab_phys) / sizeof(struct desc); in queue_get_desc()
641 debug_desc(phys, &tab[n_desc]); in queue_get_desc()
646 static inline void queue_put_desc(unsigned int queue, u32 phys, in queue_put_desc() argument
649 debug_desc(phys, desc); in queue_put_desc()
650 BUG_ON(phys & 0x1F); in queue_put_desc()
[all …]
/linux-4.4.14/arch/arm/mm/
Dmmu.c407 void __set_fixmap(enum fixed_addresses idx, phys_addr_t phys, pgprot_t prot) in __set_fixmap() argument
419 pfn_pte(phys >> PAGE_SHIFT, prot)); in __set_fixmap()
749 unsigned long end, phys_addr_t phys, in __map_init_section() argument
768 *pmd = __pmd(phys | type->prot_sect); in __map_init_section()
769 phys += SECTION_SIZE; in __map_init_section()
776 unsigned long end, phys_addr_t phys, in alloc_init_pmd() argument
794 ((addr | next | phys) & ~SECTION_MASK) == 0) { in alloc_init_pmd()
795 __map_init_section(pmd, addr, next, phys, type); in alloc_init_pmd()
798 __phys_to_pfn(phys), type); in alloc_init_pmd()
801 phys += next - addr; in alloc_init_pmd()
[all …]
/linux-4.4.14/arch/avr32/mm/
Ddma-coherent.c128 dma_addr_t phys; in dma_alloc_writecombine() local
134 phys = page_to_phys(page); in dma_alloc_writecombine()
135 *handle = phys; in dma_alloc_writecombine()
138 return __ioremap(phys, size, _PAGE_BUFFER); in dma_alloc_writecombine()
/linux-4.4.14/arch/sh/kernel/cpu/sh4/
Dsq.c145 unsigned long sq_remap(unsigned long phys, unsigned int size, in sq_remap() argument
154 end = phys + size - 1; in sq_remap()
155 if (unlikely(!size || end < phys)) in sq_remap()
158 if (unlikely(phys < virt_to_phys(high_memory))) in sq_remap()
161 phys &= PAGE_MASK; in sq_remap()
162 size = PAGE_ALIGN(end + 1) - phys; in sq_remap()
168 map->addr = phys; in sq_remap()
/linux-4.4.14/Documentation/devicetree/bindings/usb/
Dexynos-usb.txt15 - port: if in the SoC there are EHCI phys, they should be listed here.
21 - phys: from the *Generic PHY* bindings; specifying phy used by port.
42 phys = <&usb2phy 1>;
56 - port: if in the SoC there are OHCI phys, they should be listed here.
62 - phys: from the *Generic PHY* bindings, specifying phy used by port.
77 phys = <&usb2phy 1>;
Dehci-omap.txt14 - phys: list of phandles to PHY nodes.
30 phys = <&hsusb1_phy 0 &hsusb3_phy>;
Dusb-ohci.txt15 - phys : phandle + phy specifier pair
26 phys = <&usbphy 1>;
Dallwinner,sun4i-a10-musb.txt12 - phys : phy specifier for the otg phy
25 phys = <&usbphy 0>;
/linux-4.4.14/arch/alpha/include/asm/
Dio.h75 unsigned long phys = (unsigned long)address; in virt_to_phys() local
78 phys <<= (64 - 41); in virt_to_phys()
79 phys = (long)phys >> (64 - 41); in virt_to_phys()
82 phys &= (1ul << hwrpb->pa_bits) - 1; in virt_to_phys()
84 return phys; in virt_to_phys()
116 unsigned long phys = virt_to_phys(address); in virt_to_bus() local
117 unsigned long bus = phys + __direct_map_base; in virt_to_bus()
118 return phys <= __direct_map_size ? bus : 0; in virt_to_bus()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Duser_pages.c112 dma_addr_t phys; in hfi1_map_page() local
114 phys = pci_map_page(hwdev, page, offset, size, direction); in hfi1_map_page()
116 return phys; in hfi1_map_page()
/linux-4.4.14/Documentation/DocBook/
Ddeviceiobook.xml.db1 API-virt-to-phys
2 API-phys-to-virt
/linux-4.4.14/drivers/input/misc/
Dxen-kbdfront.c41 char phys[32]; member
124 snprintf(info->phys, sizeof(info->phys), "xenbus/%s", dev->nodename); in xenkbd_probe()
146 kbd->phys = info->phys; in xenkbd_probe()
170 ptr->phys = info->phys; in xenkbd_probe()
Dda9063_onkey.c51 char phys[32]; member
245 snprintf(onkey->phys, sizeof(onkey->phys), "%s/input0", in da9063_onkey_probe()
247 onkey->input->phys = onkey->phys; in da9063_onkey_probe()
Dpowermate.c76 char phys[64]; member
342 usb_make_path(udev, pm->phys, sizeof(pm->phys)); in powermate_probe()
343 strlcat(pm->phys, "/input0", sizeof(pm->phys)); in powermate_probe()
360 input_dev->phys = pm->phys; in powermate_probe()
Dpcf8574_keypad.c43 char phys[32]; member
123 sprintf(lp->phys, "kp_data/input0"); in pcf8574_kp_probe()
126 idev->phys = lp->phys; in pcf8574_kp_probe()
Duinput.c235 const char *name, *phys; in uinput_destroy_device() local
243 phys = dev->phys; in uinput_destroy_device()
251 kfree(phys); in uinput_destroy_device()
709 char *phys; in uinput_ioctl_handler() local
784 phys = strndup_user(p, 1024); in uinput_ioctl_handler()
785 if (IS_ERR(phys)) { in uinput_ioctl_handler()
786 retval = PTR_ERR(phys); in uinput_ioctl_handler()
790 kfree(udev->dev->phys); in uinput_ioctl_handler()
791 udev->dev->phys = phys; in uinput_ioctl_handler()
/linux-4.4.14/drivers/dma/ioat/
Ddma.c189 ioat_set_chainaddr(ioat_chan, desc->txd.phys); in __ioat_start_null_desc()
221 ioat_set_chainaddr(ioat_chan, desc->txd.phys); in __ioat_restart_chan()
298 dma_addr_t phys; in ioat_alloc_ring_ent() local
301 hw = pci_pool_alloc(ioat_dma->dma_pool, flags, &phys); in ioat_alloc_ring_ent()
308 pci_pool_free(ioat_dma->dma_pool, hw, phys); in ioat_alloc_ring_ent()
315 desc->txd.phys = phys; in ioat_alloc_ring_ent()
324 pci_pool_free(ioat_dma->dma_pool, desc->hw, desc->txd.phys); in ioat_free_ring_ent()
358 hw->next = next->txd.phys; in ioat_alloc_ring()
360 ring[i]->hw->next = ring[0]->txd.phys; in ioat_alloc_ring()
432 hw->next = next->txd.phys; in reshape_ring()
[all …]
/linux-4.4.14/drivers/net/wan/
Dixp4xx_hss.c573 static inline void debug_desc(u32 phys, struct desc *desc) in debug_desc() argument
577 phys, desc->next, desc->buf_len, desc->pkt_len, in debug_desc()
585 u32 phys, tab_phys, n_desc; in queue_get_desc() local
588 if (!(phys = qmgr_get_entry(queue))) in queue_get_desc()
591 BUG_ON(phys & 0x1F); in queue_get_desc()
594 n_desc = (phys - tab_phys) / sizeof(struct desc); in queue_get_desc()
596 debug_desc(phys, &tab[n_desc]); in queue_get_desc()
601 static inline void queue_put_desc(unsigned int queue, u32 phys, in queue_put_desc() argument
604 debug_desc(phys, desc); in queue_put_desc()
605 BUG_ON(phys & 0x1F); in queue_put_desc()
[all …]
/linux-4.4.14/arch/arm/boot/dts/
Dstih418.dtsi59 phys = <&usb2_picophy1>;
73 phys = <&usb2_picophy1>;
85 phys = <&usb2_picophy2>;
99 phys = <&usb2_picophy2>;
Dstih416.dtsi331 phys = <&phy_port0 PHY_TYPE_SATA>;
359 phys = <&usb2_phy>;
373 phys = <&usb2_phy>;
390 phys = <&usb2_phy>;
404 phys = <&usb2_phy>;
420 phys = <&usb2_phy>;
434 phys = <&usb2_phy>;
450 phys = <&usb2_phy>;
464 phys = <&usb2_phy>;
Dspear1310.dtsi63 phys = <&miphy0 0>;
72 phys = <&miphy1 0>;
81 phys = <&miphy2 0>;
94 phys = <&miphy0 1>;
112 phys = <&miphy1 1>;
130 phys = <&miphy2 1>;
/linux-4.4.14/arch/xtensa/include/asm/
Dcacheflush.h74 unsigned long phys) { } in __flush_invalidate_dcache_page_alias() argument
76 unsigned long phys) { } in __invalidate_dcache_page_alias() argument
82 unsigned long phys) { } in __invalidate_icache_page_alias() argument
/linux-4.4.14/drivers/media/usb/au0828/
Dau0828-input.c38 char phys[32]; member
335 usb_make_path(dev->usbdev, ir->phys, sizeof(ir->phys)); in au0828_rc_register()
336 strlcat(ir->phys, "/input0", sizeof(ir->phys)); in au0828_rc_register()
339 rc->input_phys = ir->phys; in au0828_rc_register()
/linux-4.4.14/fs/
Dioctl.c86 u64 phys, u64 len, u32 flags) in fiemap_fill_next_extent() argument
109 extent.fe_physical = phys; in fiemap_fill_next_extent()
257 u64 logical = 0, phys = 0, size = 0; in __generic_block_fiemap() local
320 phys, size, in __generic_block_fiemap()
324 phys, size, flags); in __generic_block_fiemap()
349 phys, size, in __generic_block_fiemap()
360 phys, size, in __generic_block_fiemap()
367 phys = blk_to_logical(inode, map_bh.b_blocknr); in __generic_block_fiemap()
/linux-4.4.14/arch/arm64/kernel/
Dhead.S290 .macro create_block_map, tbl, flags, phys, start, end
291 lsr \phys, \phys, #SWAPPER_BLOCK_SHIFT
294 orr \phys, \flags, \phys, lsl #SWAPPER_BLOCK_SHIFT // table entry
297 9999: str \phys, [\tbl, \start, lsl #3] // store the entry
299 add \phys, \phys, #SWAPPER_BLOCK_SIZE // next block
/linux-4.4.14/drivers/net/ethernet/dec/tulip/
Dmedia.c316 tp->phys[phy_num]); in tulip_select_media()
317 tulip_mdio_write(dev, tp->phys[phy_num], 4, tp->mii_advertise); in tulip_select_media()
407 bmsr = tulip_mdio_read(dev, tp->phys[0], MII_BMSR); in tulip_check_duplex()
408 lpa = tulip_mdio_read(dev, tp->phys[0], MII_LPA); in tulip_check_duplex()
415 int new_bmsr = tulip_mdio_read(dev, tp->phys[0], MII_BMSR); in tulip_check_duplex()
442 tp->phys[0], lpa); in tulip_check_duplex()
460 for (phyn = 1; phyn <= 32 && phy_idx < ARRAY_SIZE(tp->phys); phyn++) { in tulip_find_mii()
495 tp->phys[phy_idx++] = phy; in tulip_find_mii()
550 tp->phys[0] = 1; in tulip_find_mii()
/linux-4.4.14/arch/powerpc/kernel/
Dprom_parse.c11 unsigned long *busno, unsigned long *phys, in of_parse_dma_window() argument
26 *phys = of_read_number(dma_window, cells); in of_parse_dma_window()
/linux-4.4.14/arch/m68k/emu/
Dnfcon.c29 unsigned long phys = virt_to_phys(buf); in nfputs() local
34 nf_call(stderr_id, phys); in nfputs()
40 nf_call(stderr_id, phys); in nfputs()
/linux-4.4.14/arch/arm/mach-mv78xx0/
Dcommon.c147 unsigned long phys; in mv78xx0_map_io() local
154 phys = MV78XX0_CORE0_REGS_PHYS_BASE; in mv78xx0_map_io()
156 phys = MV78XX0_CORE1_REGS_PHYS_BASE; in mv78xx0_map_io()
158 mv78xx0_io_desc[0].pfn = __phys_to_pfn(phys); in mv78xx0_map_io()
/linux-4.4.14/arch/arm/kernel/
Dsleep.S69 add r4, r4, #12 @ Space for pgd, virt sp, phys resume fn
90 ldmia sp!, {r1 - r3} @ pop phys pgd, virt SP, phys resume fn
142 add r2, r2, r3 @ r2 = struct mpidr_hash phys address
156 @ load phys pgd, stack, resume fn
/linux-4.4.14/drivers/dma/
Dtxx9dmac.c206 desc->txd.phys = dma_map_single(chan2parent(&dc->chan), &desc->hwdesc, in txx9dmac_desc_alloc()
252 child->txd.phys, ddev->descsize, in txx9dmac_sync_desc_for_cpu()
255 desc->txd.phys, ddev->descsize, in txx9dmac_sync_desc_for_cpu()
371 channel64_write_CHAR(dc, first->txd.phys); in txx9dmac_dostart()
392 channel32_writel(dc, CHAR, first->txd.phys); in txx9dmac_dostart()
394 channel32_writel(dc, CHAR, first->txd.phys); in txx9dmac_dostart()
441 desc_write_CHAR(dc, prev, desc->txd.phys); in txx9dmac_dequeue()
443 prev->txd.phys, ddev->descsize, in txx9dmac_dequeue()
785 desc_write_CHAR(dc, prev, desc->txd.phys); in txx9dmac_prep_dma_memcpy()
787 prev->txd.phys, ddev->descsize, in txx9dmac_prep_dma_memcpy()
[all …]
/linux-4.4.14/drivers/gpu/host1x/hw/
Dcdma_hw.c58 &pb->phys, getptr); in cdma_timeout_cpu_incr()
80 host1x_ch_writel(ch, cdma->push_buffer.phys, HOST1X_CHANNEL_DMASTART); in cdma_start()
82 host1x_ch_writel(ch, cdma->push_buffer.phys + in cdma_start()
117 host1x_ch_writel(ch, cdma->push_buffer.phys, HOST1X_CHANNEL_DMASTART); in cdma_timeout_restart()
118 host1x_ch_writel(ch, cdma->push_buffer.phys + in cdma_timeout_restart()
/linux-4.4.14/arch/x86/include/asm/xen/
Dpage.h179 static inline xmaddr_t phys_to_machine(xpaddr_t phys) in phys_to_machine() argument
181 unsigned offset = phys.paddr & ~PAGE_MASK; in phys_to_machine()
182 return XMADDR(PFN_PHYS(pfn_to_mfn(PFN_DOWN(phys.paddr))) | offset); in phys_to_machine()
301 phys_addr_t phys, in xen_arch_need_swiotlb() argument
/linux-4.4.14/kernel/trace/
Dtrace_entries.h268 __field_desc( resource_size_t, rw, phys )
277 (unsigned long)__entry->phys, __entry->value, __entry->pc,
289 __field_desc( resource_size_t, map, phys )
297 (unsigned long)__entry->phys, __entry->virt, __entry->len,
/linux-4.4.14/drivers/hid/
Duhid.c371 __u8 phys[64]; member
418 memcpy(event->u.create.phys, compat->phys, in uhid_event_from_user()
419 sizeof(compat->phys)); in uhid_event_from_user()
484 len = min(sizeof(hid->phys), sizeof(ev->u.create2.phys)) - 1; in uhid_dev_create2()
485 strncpy(hid->phys, ev->u.create2.phys, len); in uhid_dev_create2()
533 memcpy(ev->u.create2.phys, orig.phys, sizeof(orig.phys)); in uhid_dev_create()
/linux-4.4.14/drivers/misc/mic/scif/
Dscif_map.h91 scif_ioremap(dma_addr_t phys, size_t size, struct scif_dev *scifdev) in scif_ioremap() argument
97 out_virt = phys_to_virt(phys); in scif_ioremap()
100 sdev->hw_ops->ioremap(sdev, phys, size); in scif_ioremap()
/linux-4.4.14/arch/unicore32/include/asm/
Dmemory.h67 #define phys_to_page(phys) (pfn_to_page(__phys_to_pfn(phys))) argument
/linux-4.4.14/drivers/isdn/hardware/eicon/
Ddiva_dma.c59 int nr, void *virt, dword phys, in diva_init_dma_map_entry() argument
61 pmap[nr].phys_bus_addr = phys; in diva_init_dma_map_entry()
/linux-4.4.14/arch/s390/include/asm/
Dio.h17 void *xlate_dev_mem_ptr(phys_addr_t phys);
19 void unxlate_dev_mem_ptr(phys_addr_t phys, void *addr);
/linux-4.4.14/drivers/soc/tegra/fuse/
Dfuse-tegra20.c62 fuse->apbdma.config.src_addr = fuse->apbdma.phys + FUSE_BEGIN + offset; in tegra20_fuse_read()
69 fuse->apbdma.phys, in tegra20_fuse_read()
111 &fuse->apbdma.phys, in tegra20_fuse_probe()
Dfuse.h44 phys_addr_t phys; member
57 dma_addr_t phys; member
/linux-4.4.14/drivers/input/serio/
Dolpc_apsp.c212 strlcpy(kb_serio->phys, "sp/serio0", sizeof(kb_serio->phys)); in olpc_apsp_probe()
229 strlcpy(pad_serio->phys, "sp/serio1", sizeof(pad_serio->phys)); in olpc_apsp_probe()
/linux-4.4.14/arch/arm/include/debug/
Domap2plus.S142 97: add \rp, \rp, #0x44000000 @ phys base
144 sub \rp, \rp, #0x44000000 @ phys base
153 98: add \rp, \rp, #0x48000000 @ phys base
155 sub \rp, \rp, #0x48000000 @ phys base
/linux-4.4.14/drivers/media/rc/
Digorplugusb.c52 char phys[64]; member
191 usb_make_path(udev, ir->phys, sizeof(ir->phys)); in igorplugusb_probe()
195 rc->input_phys = ir->phys; in igorplugusb_probe()
Dstreamzap.c104 char phys[64]; member
305 usb_make_path(sz->usbdev, sz->phys, sizeof(sz->phys)); in streamzap_init_rc_dev()
306 strlcat(sz->phys, "/input0", sizeof(sz->phys)); in streamzap_init_rc_dev()
309 rdev->input_phys = sz->phys; in streamzap_init_rc_dev()
/linux-4.4.14/include/linux/
Dmmiotrace.h88 resource_size_t phys; /* PCI address of register */ member
97 resource_size_t phys; /* base address in PCI space */ member
/linux-4.4.14/Documentation/devicetree/bindings/pci/
Dti-pci.txt10 - phys : list of PHY specifiers (used by generic PHY framework)
12 number of PHYs as specified in *phys* property.
49 phys = <&pcie1_phy>;
Dpci-keystone.txt55 phys: phandle to Generic Keystone SerDes phy for PCI
57 - If boot loader already does PCI link establishment, then phys and
62 1. pcie_bus clock-names not used. Instead, a phandle to phys is used.
/linux-4.4.14/sound/pci/hda/
Dhda_beep.c164 input_dev->phys = beep->phys; in snd_hda_do_attach()
229 snprintf(beep->phys, sizeof(beep->phys), in snd_hda_attach_beep_device()
/linux-4.4.14/drivers/media/usb/tm6000/
Dtm6000-input.c62 char phys[32]; member
464 usb_make_path(dev->udev, ir->phys, sizeof(ir->phys)); in tm6000_ir_init()
465 strlcat(ir->phys, "/input0", sizeof(ir->phys)); in tm6000_ir_init()
471 rc->input_phys = ir->phys; in tm6000_ir_init()
/linux-4.4.14/drivers/media/platform/soc_camera/
Dmx2_camera.c383 unsigned long phys, int bufnum) in mx27_update_emma_buf() argument
388 writel(phys, pcdev->base_emma + in mx27_update_emma_buf()
391 writel(phys, pcdev->base_emma + in mx27_update_emma_buf()
397 writel(phys + imgsize, pcdev->base_emma + in mx27_update_emma_buf()
399 writel(phys + ((5 * imgsize) / 4), pcdev->base_emma + in mx27_update_emma_buf()
657 unsigned long phys; in mx2_start_streaming() local
671 phys = vb2_dma_contig_plane_dma_addr(vb, 0); in mx2_start_streaming()
672 mx27_update_emma_buf(pcdev, phys, buf->internal.bufnum); in mx2_start_streaming()
680 phys = vb2_dma_contig_plane_dma_addr(vb, 0); in mx2_start_streaming()
681 mx27_update_emma_buf(pcdev, phys, buf->internal.bufnum); in mx2_start_streaming()
[all …]
/linux-4.4.14/net/caif/
Dcfcnfg.c59 struct list_head phys; member
100 INIT_LIST_HEAD(&this->phys); in cfcnfg_create()
138 list_for_each_entry_rcu(phy, &cnfg->phys, node) in cfcnfg_get_phyinfo_rcu()
154 list_for_each_entry_rcu(phy, &cnfg->phys, node) { in cfcnfg_get_phyid()
162 list_for_each_entry_rcu(phy, &cnfg->phys, node) in cfcnfg_get_phyid()
173 list_for_each_entry_rcu(phy, &cnfg->phys, node) in cfcnfg_get_id_from_ifi()
516 list_add_rcu(&phyinfo->node, &cnfg->phys); in cfcnfg_add_phy_layer()
587 list_add_rcu(&phyinfo->node, &cnfg->phys); in cfcnfg_del_phy_layer()
/linux-4.4.14/drivers/net/ethernet/3com/
D3c574_cs.c200 unsigned char phys; /* MII device address */ member
401 lp->phys = phy & 0x1f; in tc574_config()
414 i = mdio_read(ioaddr, lp->phys, 16) | 0x40; in tc574_config()
415 mdio_write(ioaddr, lp->phys, 16, i); in tc574_config()
416 lp->advertising = mdio_read(ioaddr, lp->phys, 4); in tc574_config()
420 mdio_write(ioaddr, lp->phys, 4, lp->advertising); in tc574_config()
650 mdio_write(ioaddr, lp->phys, 4, lp->advertising); in tc574_reset()
653 i = mdio_read(ioaddr, lp->phys, 16) | 0x20; in tc574_reset()
654 mdio_write(ioaddr, lp->phys, 16, i); in tc574_reset()
895 media = mdio_read(ioaddr, lp->phys, 1); in media_check()
[all …]

12345