Home
last modified time | relevance | path

Searched refs:pg_start (Results 1 – 31 of 31) sorted by relevance

/linux-4.4.14/drivers/char/agp/
Di460-agp.c294 off_t pg_start, int type) in i460_insert_memory_small_io_page() argument
301 mem, pg_start, type, page_to_phys(mem->pages[0])); in i460_insert_memory_small_io_page()
306 io_pg_start = I460_IOPAGES_PER_KPAGE * pg_start; in i460_insert_memory_small_io_page()
337 off_t pg_start, int type) in i460_remove_memory_small_io_page() argument
342 mem, pg_start, type); in i460_remove_memory_small_io_page()
344 pg_start = I460_IOPAGES_PER_KPAGE * pg_start; in i460_remove_memory_small_io_page()
346 for (i = pg_start; i < (pg_start + I460_IOPAGES_PER_KPAGE * mem->page_count); i++) in i460_remove_memory_small_io_page()
401 off_t pg_start, int type) in i460_insert_memory_large_io_page() argument
414 start = &i460.lp_desc[pg_start / I460_KPAGES_PER_IOPAGE]; in i460_insert_memory_large_io_page()
415 end = &i460.lp_desc[(pg_start + mem->page_count - 1) / I460_KPAGES_PER_IOPAGE]; in i460_insert_memory_large_io_page()
[all …]
Dsgi-agp.c127 static int sgi_tioca_insert_memory(struct agp_memory *mem, off_t pg_start, in sgi_tioca_insert_memory() argument
173 if ((pg_start + mem->page_count) > num_entries) in sgi_tioca_insert_memory()
176 j = pg_start; in sgi_tioca_insert_memory()
178 while (j < (pg_start + mem->page_count)) { in sgi_tioca_insert_memory()
189 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { in sgi_tioca_insert_memory()
200 static int sgi_tioca_remove_memory(struct agp_memory *mem, off_t pg_start, in sgi_tioca_remove_memory() argument
217 for (i = pg_start; i < (mem->page_count + pg_start); i++) { in sgi_tioca_remove_memory()
Defficeon-agp.c238 static int efficeon_insert_memory(struct agp_memory * mem, off_t pg_start, int type) in efficeon_insert_memory() argument
245 printk(KERN_DEBUG PFX "efficeon_insert_memory(%lx, %d)\n", pg_start, count); in efficeon_insert_memory()
248 if ((pg_start + mem->page_count) > num_entries) in efficeon_insert_memory()
260 int index = pg_start + i; in efficeon_insert_memory()
287 static int efficeon_remove_memory(struct agp_memory * mem, off_t pg_start, int type) in efficeon_remove_memory() argument
291 printk(KERN_DEBUG PFX "efficeon_remove_memory(%lx, %d)\n", pg_start, count); in efficeon_remove_memory()
295 if ((pg_start + mem->page_count) > num_entries) in efficeon_remove_memory()
301 int index = pg_start + i; in efficeon_remove_memory()
Dalpha-agp.c86 static int alpha_core_agp_insert_memory(struct agp_memory *mem, off_t pg_start, in alpha_core_agp_insert_memory() argument
98 if ((pg_start + mem->page_count) > num_entries) in alpha_core_agp_insert_memory()
101 status = agp->ops->bind(agp, pg_start, mem); in alpha_core_agp_insert_memory()
108 static int alpha_core_agp_remove_memory(struct agp_memory *mem, off_t pg_start, in alpha_core_agp_remove_memory() argument
114 status = agp->ops->unbind(agp, pg_start, mem); in alpha_core_agp_remove_memory()
Dgeneric.c411 int agp_bind_memory(struct agp_memory *curr, off_t pg_start) in agp_bind_memory() argument
427 ret_val = curr->bridge->driver->insert_memory(curr, pg_start, curr->type); in agp_bind_memory()
433 curr->pg_start = pg_start; in agp_bind_memory()
463 ret_val = curr->bridge->driver->remove_memory(curr, curr->pg_start, curr->type); in agp_unbind_memory()
469 curr->pg_start = 0; in agp_unbind_memory()
1033 int agp_generic_insert_memory(struct agp_memory * mem, off_t pg_start, int type) in agp_generic_insert_memory() argument
1084 if (((pg_start + mem->page_count) > num_entries) || in agp_generic_insert_memory()
1085 ((pg_start + mem->page_count) < pg_start)) in agp_generic_insert_memory()
1088 j = pg_start; in agp_generic_insert_memory()
1090 while (j < (pg_start + mem->page_count)) { in agp_generic_insert_memory()
[all …]
Dnvidia-agp.c201 static int nvidia_insert_memory(struct agp_memory *mem, off_t pg_start, int type) in nvidia_insert_memory() argument
213 if ((pg_start + mem->page_count) > in nvidia_insert_memory()
217 for (j = pg_start; j < (pg_start + mem->page_count); j++) { in nvidia_insert_memory()
226 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { in nvidia_insert_memory()
240 static int nvidia_remove_memory(struct agp_memory *mem, off_t pg_start, int type) in nvidia_remove_memory() argument
253 for (i = pg_start; i < (mem->page_count + pg_start); i++) in nvidia_remove_memory()
Damd-k7-agp.c283 static int amd_insert_memory(struct agp_memory *mem, off_t pg_start, int type) in amd_insert_memory() argument
295 if ((pg_start + mem->page_count) > num_entries) in amd_insert_memory()
298 j = pg_start; in amd_insert_memory()
299 while (j < (pg_start + mem->page_count)) { in amd_insert_memory()
312 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { in amd_insert_memory()
325 static int amd_remove_memory(struct agp_memory *mem, off_t pg_start, int type) in amd_remove_memory() argument
335 for (i = pg_start; i < (mem->page_count + pg_start); i++) { in amd_remove_memory()
Dsworks-agp.c320 off_t pg_start, int type) in serverworks_insert_memory() argument
331 if ((pg_start + mem->page_count) > num_entries) { in serverworks_insert_memory()
335 j = pg_start; in serverworks_insert_memory()
336 while (j < (pg_start + mem->page_count)) { in serverworks_insert_memory()
349 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { in serverworks_insert_memory()
360 static int serverworks_remove_memory(struct agp_memory *mem, off_t pg_start, in serverworks_remove_memory() argument
374 for (i = pg_start; i < (mem->page_count + pg_start); i++) { in serverworks_remove_memory()
Dati-agp.c267 off_t pg_start, int type) in ati_insert_memory() argument
283 if ((pg_start + mem->page_count) > num_entries) in ati_insert_memory()
286 j = pg_start; in ati_insert_memory()
287 while (j < (pg_start + mem->page_count)) { in ati_insert_memory()
301 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { in ati_insert_memory()
314 static int ati_remove_memory(struct agp_memory * mem, off_t pg_start, in ati_remove_memory() argument
329 for (i = pg_start; i < (mem->page_count + pg_start); i++) { in ati_remove_memory()
Dintel-gtt.c211 static int i810_insert_dcache_entries(struct agp_memory *mem, off_t pg_start, in i810_insert_dcache_entries() argument
216 if ((pg_start + mem->page_count) in i810_insert_dcache_entries()
223 for (i = pg_start; i < (pg_start + mem->page_count); i++) { in i810_insert_dcache_entries()
842 unsigned int pg_start, in intel_gtt_insert_sg_entries() argument
849 j = pg_start; in intel_gtt_insert_sg_entries()
882 off_t pg_start, int type) in intel_fake_agp_insert_entries() argument
894 return i810_insert_dcache_entries(mem, pg_start, type); in intel_fake_agp_insert_entries()
899 if (pg_start + mem->page_count > intel_private.gtt_total_entries) in intel_fake_agp_insert_entries()
918 intel_gtt_insert_sg_entries(&st, pg_start, type); in intel_fake_agp_insert_entries()
922 intel_gtt_insert_pages(pg_start, mem->page_count, mem->pages, in intel_fake_agp_insert_entries()
[all …]
Dcompat_ioctl.h59 compat_off_t pg_start; /* starting page to populate */ member
82 compat_off_t pg_start; /* starting page to populate */ member
Dparisc-agp.c125 parisc_agp_insert_memory(struct agp_memory *mem, off_t pg_start, int type) in parisc_agp_insert_memory() argument
137 io_pg_start = info->io_pages_per_kpage * pg_start; in parisc_agp_insert_memory()
174 parisc_agp_remove_memory(struct agp_memory *mem, off_t pg_start, int type) in parisc_agp_remove_memory() argument
184 io_pg_start = info->io_pages_per_kpage * pg_start; in parisc_agp_remove_memory()
Dcompat_ioctl.c119 ksegment[seg].pg_start = usegment[seg].pg_start; in compat_agpioc_reserve_wrap()
186 return agp_bind_memory(memory, bind_info.pg_start); in compat_agpioc_bind_wrap()
Duninorth-agp.c149 static int uninorth_insert_memory(struct agp_memory *mem, off_t pg_start, int type) in uninorth_insert_memory() argument
171 if ((pg_start + mem->page_count) > num_entries) in uninorth_insert_memory()
174 gp = (u32 *) &agp_bridge->gatt_table[pg_start]; in uninorth_insert_memory()
199 int uninorth_remove_memory(struct agp_memory *mem, off_t pg_start, int type) in uninorth_remove_memory() argument
217 gp = (u32 *) &agp_bridge->gatt_table[pg_start]; in uninorth_remove_memory()
Dfrontend.c106 off_t pg_start; in agp_find_seg_in_client() local
109 pg_start = offset / 4096; in agp_find_seg_in_client()
115 if ((seg[i].pg_start == pg_start) && in agp_find_seg_in_client()
179 seg[i].pg_start = user_seg[i].pg_start; in agp_create_segment()
929 return agp_bind_memory(memory, bind_info.pg_start); in agpioc_bind_wrap()
Damd64-agp.c44 static int amd64_insert_memory(struct agp_memory *mem, off_t pg_start, int type) in amd64_insert_memory() argument
63 if (((unsigned long)pg_start + mem->page_count) > num_entries) in amd64_insert_memory()
66 j = pg_start; in amd64_insert_memory()
69 while (j < (pg_start + mem->page_count)) { in amd64_insert_memory()
80 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { in amd64_insert_memory()
Dhp-agp.c332 hp_zx1_insert_memory (struct agp_memory *mem, off_t pg_start, int type) in hp_zx1_insert_memory() argument
344 io_pg_start = hp->io_pages_per_kpage * pg_start; in hp_zx1_insert_memory()
379 hp_zx1_remove_memory (struct agp_memory *mem, off_t pg_start, int type) in hp_zx1_remove_memory() argument
389 io_pg_start = hp->io_pages_per_kpage * pg_start; in hp_zx1_remove_memory()
Dagp.h197 int agp_generic_insert_memory(struct agp_memory *mem, off_t pg_start, int type);
198 int agp_generic_remove_memory(struct agp_memory *mem, off_t pg_start, int type);
/linux-4.4.14/fs/f2fs/
Dfile.c746 int truncate_hole(struct inode *inode, pgoff_t pg_start, pgoff_t pg_end) in truncate_hole() argument
750 while (pg_start < pg_end) { in truncate_hole()
755 err = get_dnode_of_data(&dn, pg_start, LOOKUP_NODE); in truncate_hole()
758 pg_start++; in truncate_hole()
765 count = min(end_offset - dn.ofs_in_node, pg_end - pg_start); in truncate_hole()
772 pg_start += count; in truncate_hole()
779 pgoff_t pg_start, pg_end; in punch_hole() local
789 pg_start = ((unsigned long long) offset) >> PAGE_CACHE_SHIFT; in punch_hole()
795 if (pg_start == pg_end) { in punch_hole()
796 ret = fill_zero(inode, pg_start, off_start, in punch_hole()
[all …]
/linux-4.4.14/include/linux/
Dagpgart.h54 off_t pg_start; /* starting page to populate */ member
60 off_t pg_start; member
83 off_t pg_start; /* starting page to populate */ member
Dagp_backend.h77 off_t pg_start; member
/linux-4.4.14/arch/alpha/kernel/
Dcore_titan.c581 long pg_start; member
599 aper->pg_start = iommu_reserve(aper->arena, aper->pg_count, in titan_agp_setup()
601 if (aper->pg_start < 0) { in titan_agp_setup()
608 aper->arena->dma_base + aper->pg_start * PAGE_SIZE; in titan_agp_setup()
621 status = iommu_release(aper->arena, aper->pg_start, aper->pg_count); in titan_agp_cleanup()
625 iommu_unbind(aper->arena, aper->pg_start, aper->pg_count); in titan_agp_cleanup()
626 status = iommu_release(aper->arena, aper->pg_start, in titan_agp_cleanup()
679 titan_agp_bind_memory(alpha_agp_info *agp, off_t pg_start, struct agp_memory *mem) in titan_agp_bind_memory() argument
682 return iommu_bind(aper->arena, aper->pg_start + pg_start, in titan_agp_bind_memory()
687 titan_agp_unbind_memory(alpha_agp_info *agp, off_t pg_start, struct agp_memory *mem) in titan_agp_unbind_memory() argument
[all …]
Dcore_marvel.c895 long pg_start; member
912 aper->pg_start = iommu_reserve(aper->arena, aper->pg_count, in marvel_agp_setup()
915 if (aper->pg_start < 0) { in marvel_agp_setup()
922 aper->arena->dma_base + aper->pg_start * PAGE_SIZE; in marvel_agp_setup()
935 status = iommu_release(aper->arena, aper->pg_start, aper->pg_count); in marvel_agp_cleanup()
939 iommu_unbind(aper->arena, aper->pg_start, aper->pg_count); in marvel_agp_cleanup()
940 status = iommu_release(aper->arena, aper->pg_start, in marvel_agp_cleanup()
1015 marvel_agp_bind_memory(alpha_agp_info *agp, off_t pg_start, struct agp_memory *mem) in marvel_agp_bind_memory() argument
1018 return iommu_bind(aper->arena, aper->pg_start + pg_start, in marvel_agp_bind_memory()
1023 marvel_agp_unbind_memory(alpha_agp_info *agp, off_t pg_start, struct agp_memory *mem) in marvel_agp_unbind_memory() argument
[all …]
Dpci_iommu.c875 iommu_release(struct pci_iommu_arena *arena, long pg_start, long pg_count) in iommu_release() argument
885 for(i = pg_start; i < pg_start + pg_count; i++) in iommu_release()
889 iommu_arena_free(arena, pg_start, pg_count); in iommu_release()
894 iommu_bind(struct pci_iommu_arena *arena, long pg_start, long pg_count, in iommu_bind() argument
907 for(j = pg_start; j < pg_start + pg_count; j++) { in iommu_bind()
914 for(i = 0, j = pg_start; i < pg_count; i++, j++) in iommu_bind()
923 iommu_unbind(struct pci_iommu_arena *arena, long pg_start, long pg_count) in iommu_unbind() argument
930 p = arena->ptes + pg_start; in iommu_unbind()
/linux-4.4.14/include/uapi/linux/
Dagpgart.h80 __kernel_off_t pg_start; /* starting page to populate */ member
103 __kernel_off_t pg_start;/* starting page to populate */ member
/linux-4.4.14/drivers/hv/
Dhv_balloon.c750 static unsigned long handle_pg_range(unsigned long pg_start, in handle_pg_range() argument
753 unsigned long start_pfn = pg_start; in handle_pg_range()
829 static unsigned long process_hot_add(unsigned long pg_start, in process_hot_add() argument
840 if (pfn_covered(pg_start, pfn_cnt)) in process_hot_add()
857 ha_region->covered_end_pfn = pg_start; in process_hot_add()
866 return handle_pg_range(pg_start, pfn_cnt); in process_hot_add()
875 unsigned long pg_start, pfn_cnt; in hot_add_req() local
886 pg_start = dm->ha_wrk.ha_page_range.finfo.start_page; in hot_add_req()
903 region_start = pg_start; in hot_add_req()
908 region_start = (pg_start / HA_CHUNK) * HA_CHUNK; in hot_add_req()
[all …]
/linux-4.4.14/arch/arc/include/asm/
Dptrace.h139 unsigned long pg_start = (sp & ~(THREAD_SIZE - 1)); \
140 (struct pt_regs *)(pg_start + THREAD_SIZE) - 1; \
/linux-4.4.14/include/drm/
Dintel-gtt.h17 unsigned int pg_start,
/linux-4.4.14/fs/9p/
Dvfs_file.c423 unsigned long pg_start, pg_end; in v9fs_file_write_iter() local
424 pg_start = origin >> PAGE_CACHE_SHIFT; in v9fs_file_write_iter()
428 pg_start, pg_end); in v9fs_file_write_iter()
/linux-4.4.14/tools/vm/
Dpage-types.c176 static unsigned long pg_start[MAX_VMAS]; variable
653 if (pg_start[i] >= end) in walk_task()
656 start = max_t(unsigned long, pg_start[i], index); in walk_task()
805 pg_start[nr_vmas] = vm_start / page_size; in parse_pid()
/linux-4.4.14/fs/fuse/
Dinode.c333 pgoff_t pg_start; in fuse_reverse_inval_inode() local
342 pg_start = offset >> PAGE_CACHE_SHIFT; in fuse_reverse_inval_inode()
348 pg_start, pg_end); in fuse_reverse_inval_inode()