Home
last modified time | relevance | path

Searched refs:PAGE_SIZE (Results 1 – 25 of 2141) sorted by relevance

12345678910>>...86

/linux-3.4.99/lib/raid6/test/
Dtest.c24 const char raid6_empty_zero_page[PAGE_SIZE] __attribute__((aligned(256)));
28 char data[NDISKS][PAGE_SIZE];
29 char recovi[PAGE_SIZE], recovj[PAGE_SIZE];
36 for (j = 0; j < PAGE_SIZE; j++) in makedata()
59 memset(recovi, 0xf0, PAGE_SIZE); in test_disks()
60 memset(recovj, 0xba, PAGE_SIZE); in test_disks()
65 raid6_dual_recov(NDISKS, PAGE_SIZE, i, j, (void **)&dataptrs); in test_disks()
67 erra = memcmp(data[i], recovi, PAGE_SIZE); in test_disks()
68 errb = memcmp(data[j], recovj, PAGE_SIZE); in test_disks()
103 memset(data[NDISKS-2], 0xee, 2*PAGE_SIZE); in main()
[all …]
/linux-3.4.99/arch/openrisc/kernel/
Dvmlinux.lds.S42 . = ALIGN(PAGE_SIZE);
64 RO_DATA_SECTION(PAGE_SIZE)
70 RW_DATA_SECTION(32, PAGE_SIZE, PAGE_SIZE)
78 . = ALIGN(PAGE_SIZE);
84 INIT_TEXT_SECTION(PAGE_SIZE)
93 . = ALIGN(PAGE_SIZE);
100 . = ALIGN (PAGE_SIZE);
/linux-3.4.99/arch/x86/kernel/
Dvmlinux.lds.S98 . = ALIGN(PAGE_SIZE);
121 . = ALIGN(PAGE_SIZE);
124 RO_DATA(PAGE_SIZE)
140 PAGE_ALIGNED_DATA(PAGE_SIZE)
156 . = ALIGN(PAGE_SIZE);
174 . = ALIGN(__vvar_page + PAGE_SIZE, PAGE_SIZE);
179 . = ALIGN(PAGE_SIZE);
193 INIT_TEXT_SECTION(PAGE_SIZE)
288 . = ALIGN(PAGE_SIZE);
299 . = ALIGN(PAGE_SIZE);
[all …]
/linux-3.4.99/arch/mn10300/kernel/
Dvmlinux.lds.S44 RO_DATA(PAGE_SIZE)
48 RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
52 . = ALIGN(PAGE_SIZE);
60 . = ALIGN(PAGE_SIZE); /* Init code and data */
62 INIT_TEXT_SECTION(PAGE_SIZE)
75 . = ALIGN(PAGE_SIZE);
79 BSS_SECTION(0, PAGE_SIZE, 4)
84 . = ALIGN(PAGE_SIZE);
/linux-3.4.99/drivers/gpu/drm/
Ddrm_buffer.c46 int nr_pages = size / PAGE_SIZE + 1; in drm_buffer_alloc()
66 kmalloc(min(PAGE_SIZE, size - idx * PAGE_SIZE), in drm_buffer_alloc()
105 int nr_pages = size / PAGE_SIZE + 1; in drm_buffer_copy_from_user()
118 user_data + idx * PAGE_SIZE, in drm_buffer_copy_from_user()
119 min(PAGE_SIZE, size - idx * PAGE_SIZE))) { in drm_buffer_copy_from_user()
140 int nr_pages = buf->size / PAGE_SIZE + 1; in drm_buffer_free()
169 if (idx + objsize <= PAGE_SIZE) { in drm_buffer_read_object()
173 int beginsz = PAGE_SIZE - idx; in drm_buffer_read_object()
/linux-3.4.99/arch/m68k/kernel/
Dsys_m68k.c106 unsigned long tmp = PAGE_SIZE - (addr & ~PAGE_MASK); in cache_flush_040()
112 tmp = PAGE_SIZE; in cache_flush_040()
124 i = (PAGE_SIZE - (paddr & ~PAGE_MASK)) >> 4; in cache_flush_040()
158 addr += PAGE_SIZE; in cache_flush_040()
159 i = PAGE_SIZE / 16; in cache_flush_040()
169 addr += PAGE_SIZE; in cache_flush_040()
179 len += (addr & ~PAGE_MASK) + (PAGE_SIZE - 1); in cache_flush_040()
180 for (len >>= PAGE_SHIFT; len--; addr += PAGE_SIZE) in cache_flush_040()
267 unsigned long tmp = PAGE_SIZE - (addr & ~PAGE_MASK); in cache_flush_060()
273 tmp = PAGE_SIZE; in cache_flush_060()
[all …]
/linux-3.4.99/drivers/target/iscsi/
Discsi_target_stat.c75 return snprintf(page, PAGE_SIZE, "%u\n", tiqn->tiqn_index); in iscsi_stat_instance_show_attr_inst()
82 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_DRAFT20_VERSION); in iscsi_stat_instance_show_attr_min_ver()
89 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_DRAFT20_VERSION); in iscsi_stat_instance_show_attr_max_ver()
99 return snprintf(page, PAGE_SIZE, "%u\n", tiqn->tiqn_num_tpg_nps); in iscsi_stat_instance_show_attr_portals()
106 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_INST_NUM_NODES); in iscsi_stat_instance_show_attr_nodes()
116 return snprintf(page, PAGE_SIZE, "%u\n", tiqn->tiqn_nsessions); in iscsi_stat_instance_show_attr_sessions()
134 return snprintf(page, PAGE_SIZE, "%u\n", sess_err_count); in iscsi_stat_instance_show_attr_fail_sess()
145 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_show_attr_fail_type()
157 return snprintf(page, PAGE_SIZE, "%s\n", in iscsi_stat_instance_show_attr_fail_rem_name()
166 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_DISCONTINUITY_TIME); in iscsi_stat_instance_show_attr_disc_time()
[all …]
/linux-3.4.99/arch/score/include/asm/
Dpage.h9 #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT) macro
10 #define PAGE_MASK (~(PAGE_SIZE-1))
16 #define PAGE_UP(addr) (((addr)+((PAGE_SIZE)-1))&(~((PAGE_SIZE)-1)))
17 #define PAGE_DOWN(addr) ((addr)&(~((PAGE_SIZE)-1)))
33 #define clear_page(pgaddr) memset((pgaddr), 0, PAGE_SIZE)
34 #define copy_page(to, from) memcpy((to), (from), PAGE_SIZE)
36 #define clear_user_page(pgaddr, vaddr, page) memset((pgaddr), 0, PAGE_SIZE)
38 memcpy((vto), (vfrom), PAGE_SIZE)
/linux-3.4.99/arch/tile/kernel/
Dvmlinux.lds.S53 INIT_TEXT_SECTION(PAGE_SIZE)
60 . = ALIGN(PAGE_SIZE);
64 . = ALIGN(PAGE_SIZE);
69 RO_DATA_SECTION(PAGE_SIZE)
72 . = ALIGN(PAGE_SIZE);
80 RW_DATA_SECTION(L2_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
88 BSS_SECTION(8, PAGE_SIZE, 1)
/linux-3.4.99/arch/x86/xen/
Dp2m.c173 #define P2M_PER_PAGE (PAGE_SIZE / sizeof(unsigned long))
174 #define P2M_MID_PER_PAGE (PAGE_SIZE / sizeof(unsigned long *))
175 #define P2M_TOP_PER_PAGE (PAGE_SIZE / sizeof(unsigned long **))
190 RESERVE_BRK(p2m_mid, PAGE_SIZE * (MAX_DOMAIN_PAGES / (P2M_PER_PAGE * P2M_MID_PER_PAGE)));
191 RESERVE_BRK(p2m_mid_mfn, PAGE_SIZE * (MAX_DOMAIN_PAGES / (P2M_PER_PAGE * P2M_MID_PER_PAGE)));
195 RESERVE_BRK(p2m_mid_identity, PAGE_SIZE * 2 * 3);
277 p2m_mid_missing_mfn = extend_brk(PAGE_SIZE, PAGE_SIZE); in xen_build_mfn_list_list()
280 p2m_top_mfn_p = extend_brk(PAGE_SIZE, PAGE_SIZE); in xen_build_mfn_list_list()
283 p2m_top_mfn = extend_brk(PAGE_SIZE, PAGE_SIZE); in xen_build_mfn_list_list()
318 mid_mfn_p = extend_brk(PAGE_SIZE, PAGE_SIZE); in xen_build_mfn_list_list()
[all …]
/linux-3.4.99/sound/soc/imx/
Dimx-audmux.c69 char *buf = kmalloc(PAGE_SIZE, GFP_KERNEL); in audmux_read_file()
88 ret = snprintf(buf, PAGE_SIZE, "PDCR: %08x\nPTCR: %08x\n", in audmux_read_file()
92 ret += snprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
96 ret += snprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
100 ret += snprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
104 ret += snprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
107 ret += snprintf(buf + ret, PAGE_SIZE - ret, "\n"); in audmux_read_file()
110 ret += snprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
114 ret += snprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
118 ret += snprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
[all …]
/linux-3.4.99/drivers/scsi/qla4xxx/
Dql4_attr.c20 return snprintf(buf, PAGE_SIZE, "%d.%02d.%02d (%x)\n", in qla4xxx_fw_version_show()
25 return snprintf(buf, PAGE_SIZE, "%d.%02d.%02d.%02d\n", in qla4xxx_fw_version_show()
36 return snprintf(buf, PAGE_SIZE, "%s\n", ha->serial_number); in qla4xxx_serial_num_show()
44 return snprintf(buf, PAGE_SIZE, "%d.%02d\n", ha->iscsi_major, in qla4xxx_iscsi_version_show()
53 return snprintf(buf, PAGE_SIZE, "%d.%02d.%02d.%02d\n", in qla4xxx_optrom_version_show()
63 return snprintf(buf, PAGE_SIZE, "0x%08X\n", ha->board_id); in qla4xxx_board_id_show()
73 return snprintf(buf, PAGE_SIZE, "0x%08X%8X\n", ha->firmware_state, in qla4xxx_fw_state_show()
86 return snprintf(buf, PAGE_SIZE, "0x%04X\n", ha->phy_port_cnt); in qla4xxx_phy_port_cnt_show()
98 return snprintf(buf, PAGE_SIZE, "0x%04X\n", ha->phy_port_num); in qla4xxx_phy_port_num_show()
110 return snprintf(buf, PAGE_SIZE, "0x%04X\n", ha->iscsi_pci_func_cnt); in qla4xxx_iscsi_func_cnt_show()
[all …]
/linux-3.4.99/arch/hexagon/kernel/
Dvmlinux.lds.S37 #define PAGE_SIZE _PAGE_SIZE macro
49 INIT_TEXT_SECTION(PAGE_SIZE)
65 INIT_DATA_SECTION(PAGE_SIZE)
68 RW_DATA_SECTION(32,PAGE_SIZE,PAGE_SIZE)
69 RO_DATA_SECTION(PAGE_SIZE)
/linux-3.4.99/arch/m68k/mm/
Dsun3kmap.c57 phys += PAGE_SIZE; in do_pmeg_mapin()
58 virt += PAGE_SIZE; in do_pmeg_mapin()
74 offset = phys & (PAGE_SIZE-1); in sun3_ioremap()
75 phys &= ~(PAGE_SIZE-1); in sun3_ioremap()
87 pages = size / PAGE_SIZE; in sun3_ioremap()
94 seg_pages = (SUN3_PMEG_SIZE - (virt & SUN3_PMEG_MASK)) / PAGE_SIZE; in sun3_ioremap()
101 phys += seg_pages * PAGE_SIZE; in sun3_ioremap()
102 virt += seg_pages * PAGE_SIZE; in sun3_ioremap()
Dinit_no.c62 empty_zero_page = alloc_bootmem_pages(PAGE_SIZE); in paging_init()
63 memset(empty_zero_page, 0, PAGE_SIZE); in paging_init()
111 for (; start < end; start += PAGE_SIZE) { in free_initrd_mem()
119 pages * (PAGE_SIZE / 1024)); in free_initrd_mem()
133 for (; addr + PAGE_SIZE < ((unsigned long) __init_end); addr += PAGE_SIZE) { in free_initmem()
142 (int)(addr - PAGE_SIZE)); in free_initmem()
/linux-3.4.99/arch/alpha/mm/
Dinit.c78 memset((void *) EMPTY_PGT, 0, PAGE_SIZE); in __bad_pagetable()
85 memset((void *) EMPTY_PGE, 0, PAGE_SIZE); in __bad_page()
107 memset(swapper_pg_dir, 0, PAGE_SIZE); in switch_to_system_map()
181 kernel_end = two_pages + 2*PAGE_SIZE; in callback_init()
182 memset(two_pages, 0, 2*PAGE_SIZE); in callback_init()
187 pmd_set(pmd, (pte_t *)(two_pages + PAGE_SIZE)); in callback_init()
202 vm_area_register_early(&console_remap_vm, PAGE_SIZE); in callback_init()
216 memset(kernel_end, 0, PAGE_SIZE); in callback_init()
219 kernel_end += PAGE_SIZE; in callback_init()
224 vaddr += PAGE_SIZE; in callback_init()
[all …]
/linux-3.4.99/arch/x86/mm/kmemcheck/
Dshadow.c33 return page->shadow + (address & (PAGE_SIZE - 1)); in kmemcheck_shadow_lookup()
50 first_n = page + PAGE_SIZE - addr; in mark_shadow()
60 while (n >= PAGE_SIZE) { in mark_shadow()
63 memset(shadow, status, PAGE_SIZE); in mark_shadow()
65 addr += PAGE_SIZE; in mark_shadow()
66 n -= PAGE_SIZE; in mark_shadow()
107 kmemcheck_mark_unallocated(page_address(&p[i]), PAGE_SIZE); in kmemcheck_mark_unallocated_pages()
115 kmemcheck_mark_uninitialized(page_address(&p[i]), PAGE_SIZE); in kmemcheck_mark_uninitialized_pages()
123 kmemcheck_mark_initialized(page_address(&p[i]), PAGE_SIZE); in kmemcheck_mark_initialized_pages()
/linux-3.4.99/block/partitions/
Dacorn.c49 strlcat(state->pp_buf, " [", PAGE_SIZE); in adfs_partition()
50 strlcat(state->pp_buf, name, PAGE_SIZE); in adfs_partition()
51 strlcat(state->pp_buf, "]", PAGE_SIZE); in adfs_partition()
87 strlcat(state->pp_buf, " [RISCiX]", PAGE_SIZE); in riscix_partition()
94 strlcat(state->pp_buf, " <", PAGE_SIZE); in riscix_partition()
103 strlcat(state->pp_buf, "(", PAGE_SIZE); in riscix_partition()
104 strlcat(state->pp_buf, rr->part[part].name, PAGE_SIZE); in riscix_partition()
105 strlcat(state->pp_buf, ")", PAGE_SIZE); in riscix_partition()
109 strlcat(state->pp_buf, " >\n", PAGE_SIZE); in riscix_partition()
139 strlcat(state->pp_buf, " [Linux]", PAGE_SIZE); in linux_partition()
[all …]
/linux-3.4.99/include/drm/
Ddrm_buffer.h52 return buf->iterator / PAGE_SIZE; in drm_buffer_page()
59 return buf->iterator & (PAGE_SIZE - 1); in drm_buffer_index()
131 return &buffer->data[iter / PAGE_SIZE][iter & (PAGE_SIZE - 1)]; in drm_buffer_pointer_to_dword()
145 return &buffer->data[iter / PAGE_SIZE][iter & (PAGE_SIZE - 1)]; in drm_buffer_pointer_to_byte()
/linux-3.4.99/arch/mn10300/mm/
Dinit.c61 for (loop = VMALLOC_START / (PAGE_SIZE * PTRS_PER_PTE); in paging_init()
62 loop < VMALLOC_END / (PAGE_SIZE * PTRS_PER_PTE); in paging_init()
66 ppte += PAGE_SIZE / sizeof(pte_t); in paging_init()
88 vm_area_register_early(&user_iomap_vm, PAGE_SIZE); in paging_init()
111 high_memory = (void *) __va(MAX_LOW_PFN * PAGE_SIZE); in mem_init()
114 memset(empty_zero_page, 0, PAGE_SIZE); in mem_init()
148 for (addr = begin; addr < end; addr += PAGE_SIZE) { in free_init_pages()
151 memset((void *) addr, 0xcc, PAGE_SIZE); in free_init_pages()
/linux-3.4.99/arch/h8300/mm/
Dinit.c92 empty_bad_page_table = (unsigned long)alloc_bootmem_pages(PAGE_SIZE); in paging_init()
93 empty_bad_page = (unsigned long)alloc_bootmem_pages(PAGE_SIZE); in paging_init()
94 empty_zero_page = (unsigned long)alloc_bootmem_pages(PAGE_SIZE); in paging_init()
95 memset((void *)empty_zero_page, 0, PAGE_SIZE); in paging_init()
165 for (; start < end; start += PAGE_SIZE) { in free_initrd_mem()
188 for (; addr + PAGE_SIZE < (unsigned long)(&__init_end); addr +=PAGE_SIZE) { in free_initmem()
197 (int)(addr - PAGE_SIZE)); in free_initmem()
/linux-3.4.99/arch/s390/kernel/
Dvmlinux.lds.S54 . = ALIGN(PAGE_SIZE);
60 RW_DATA_SECTION(0x100, PAGE_SIZE, THREAD_SIZE)
65 . = ALIGN(PAGE_SIZE); /* Init code and data */
68 INIT_TEXT_SECTION(PAGE_SIZE)
79 . = ALIGN(PAGE_SIZE);
83 . = ALIGN(PAGE_SIZE);
/linux-3.4.99/arch/hexagon/mm/
Duaccess.c39 while (count > PAGE_SIZE) { in __clear_user_hexagon()
41 PAGE_SIZE); in __clear_user_hexagon()
43 return count - (PAGE_SIZE - uncleared); in __clear_user_hexagon()
44 count -= PAGE_SIZE; in __clear_user_hexagon()
45 dest += PAGE_SIZE; in __clear_user_hexagon()
/linux-3.4.99/arch/frv/mm/
Dinit.c74 empty_bad_page_table = (unsigned long) alloc_bootmem_pages(PAGE_SIZE); in paging_init()
75 empty_bad_page = (unsigned long) alloc_bootmem_pages(PAGE_SIZE); in paging_init()
76 empty_zero_page = (unsigned long) alloc_bootmem_pages(PAGE_SIZE); in paging_init()
78 memset((void *) empty_zero_page, 0, PAGE_SIZE); in paging_init()
86 pkmap_page_table = alloc_bootmem_pages(PAGE_SIZE); in paging_init()
177 for (addr = start; addr < end; addr += PAGE_SIZE) { in free_initmem()
197 for (; start < end; start += PAGE_SIZE) { in free_initrd_mem()
204 printk("Freeing initrd memory: %dKiB freed\n", (pages * PAGE_SIZE) >> 10); in free_initrd_mem()
/linux-3.4.99/arch/sh/kernel/
Dvmlinux.lds.S51 RO_DATA(PAGE_SIZE)
52 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
57 . = ALIGN(PAGE_SIZE); /* Init code and data */
59 INIT_TEXT_SECTION(PAGE_SIZE)
78 . = ALIGN(PAGE_SIZE);
80 BSS_SECTION(0, PAGE_SIZE, 4)

12345678910>>...86