Searched refs:PAGE_SIZE (Results 351 - 375 of 3535) sorted by last modified time

<<11121314151617181920>>

/linux-master/net/ipv4/
H A Desp4.c452 if (ALIGN(tailen, L1_CACHE_BYTES) > PAGE_SIZE ||
453 ALIGN(skb->data_len, L1_CACHE_BYTES) > PAGE_SIZE)
/linux-master/net/core/
H A Dsock.c1006 bytes = round_down(bytes, PAGE_SIZE);
2902 * less or equal than PAGE_SIZE.
2925 pfrag->size = PAGE_SIZE << SKB_FRAG_PAGE_ORDER;
2931 pfrag->size = PAGE_SIZE;
3201 * @amount: number of bytes (rounded down to a PAGE_SIZE multiple)
H A Dskbuff.c222 #if PAGE_SIZE == SZ_4K
254 offset = PAGE_SIZE - SZ_1K;
728 len > SKB_WITH_OVERHEAD(PAGE_SIZE) ||
804 len > SKB_WITH_OVERHEAD(PAGE_SIZE) ||
927 max_head_size = SKB_WITH_OVERHEAD(PAGE_SIZE - headroom);
928 if (skb->len > max_head_size + MAX_SKB_FRAGS * PAGE_SIZE)
963 size = min_t(u32, len, PAGE_SIZE);
1953 while ((PAGE_SIZE << order) * MAX_SKB_FRAGS < __skb_pagelen(skb))
1955 psize = (PAGE_SIZE << order);
3132 (unsigned long) skb->data & (PAGE_SIZE
[all...]
H A Dpage_pool.c409 (PAGE_SIZE << pool->p.order),
426 PAGE_SIZE << pool->p.order, pool->p.dma_dir,
595 PAGE_SIZE << pool->p.order, pool->p.dma_dir,
859 unsigned int max_size = PAGE_SIZE << pool->p.order;
H A Dnet_test.c178 KUNIT_ASSERT_LE(test, pg_off, PAGE_SIZE);
H A Dnet-sysfs.c849 return len < PAGE_SIZE ? len : -EINVAL;
1578 return len < PAGE_SIZE ? len : -EINVAL;
H A Dneighbour.c541 if (size <= PAGE_SIZE) {
568 if (size <= PAGE_SIZE) {
H A Ddev.c1099 const int max_netdevices = 8*PAGE_SIZE;
11832 #define SYSTEM_PERCPU_PAGE_POOL_SIZE ((1 << 20) / PAGE_SIZE)
H A Ddatagram.c658 int size = min_t(int, copied, PAGE_SIZE - start);
/linux-master/net/bpf/
H A Dtest_run.c127 #define TEST_XDP_FRAME_SIZE (PAGE_SIZE - sizeof(struct xdp_page_head))
652 if (size < ETH_HLEN || size > PAGE_SIZE - headroom - tailroom)
1257 PAGE_SIZE);
H A Dbpf_dummy_struct_ops.c185 err = arch_protect_bpf_trampoline(image, PAGE_SIZE);
/linux-master/net/bluetooth/
H A Dhci_core.c846 if (!dev_num || dev_num > (PAGE_SIZE * 2) / sizeof(*dr))
H A Dhci_conn.c2622 if (!req.conn_num || req.conn_num > (PAGE_SIZE * 2) / sizeof(*ci))
/linux-master/mm/
H A Dslub.c588 return ((unsigned int)PAGE_SIZE << order) / size;
1076 min_t(unsigned int, s->object_size, PAGE_SIZE));
2319 PAGE_SIZE << order);
2329 -(PAGE_SIZE << order));
3988 PAGE_SIZE << order);
4003 trace_kmalloc(_RET_IP_, ret, size, PAGE_SIZE << get_order(size),
4013 trace_kmalloc(_RET_IP_, ret, size, PAGE_SIZE << get_order(size),
4029 PAGE_SIZE << get_order(size), flags, node);
4433 -(PAGE_SIZE << order));
4777 unsigned int slab_size = (unsigned int)PAGE_SIZE << orde
[all...]
H A Dslab_common.c561 if (object < (void *)PAGE_SIZE || !virt_addr_valid(object))
711 return PAGE_SIZE << get_order(size);
H A Dslab.h219 return PAGE_SIZE << slab_order(slab);
H A Dshmem.c88 #define BLOCKS_PER_PAGE (PAGE_SIZE/512)
201 pages * VM_ACCT(PAGE_SIZE));
207 vm_unacct_memory(pages * VM_ACCT(PAGE_SIZE));
563 i_size = round_up(i_size_read(inode), PAGE_SIZE);
646 if (round_up(inode->i_size, PAGE_SIZE) ==
969 pgoff_t start = (lstart + PAGE_SIZE - 1) >> PAGE_SHIFT;
1192 loff_t holebegin = round_up(newsize, PAGE_SIZE);
2067 DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE) <
2333 inflated_len = len + HPAGE_PMD_SIZE - PAGE_SIZE;
2661 PAGE_SIZE);
[all...]
H A Dpage-writeback.c381 /* convert ratios to per-PAGE_SIZE for higher precision */
382 unsigned long ratio = (vm_dirty_ratio * PAGE_SIZE) / 100;
383 unsigned long bg_ratio = (dirty_background_ratio * PAGE_SIZE) / 100;
396 * per-PAGE_SIZE, they can be obtained by dividing bytes by
401 PAGE_SIZE);
404 PAGE_SIZE);
409 thresh = DIV_ROUND_UP(bytes, PAGE_SIZE);
411 thresh = (ratio * available_memory) / PAGE_SIZE;
414 bg_thresh = DIV_ROUND_UP(bg_bytes, PAGE_SIZE);
416 bg_thresh = (bg_ratio * available_memory) / PAGE_SIZE;
[all...]
H A Dnommu.c96 * PAGE_SIZE for 0-order pages.
506 for (; from < to; from += PAGE_SIZE) {
1089 pglen = (len + PAGE_SIZE - 1) >> PAGE_SHIFT;
1107 rpglen = (rpglen + PAGE_SIZE - 1) >> PAGE_SHIFT;
1747 high = (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
H A Dmmap.c253 next = vma_find(&vmi, newbrk + PAGE_SIZE + stack_guard_gap);
254 if (next && newbrk + PAGE_SIZE > vm_start_gap(next))
1780 info.low_limit = PAGE_SIZE;
1985 address += PAGE_SIZE;
H A Dfilemap.c2496 last_index = DIV_ROUND_UP(iocb->ki_pos + count, PAGE_SIZE);
2795 page = folio_page(folio, offset / PAGE_SIZE);
2797 offset %= PAGE_SIZE;
2802 size_t part = min_t(size_t, PAGE_SIZE - offset, size - spliced);
2859 len = min_t(size_t, len, npages * PAGE_SIZE);
2968 return PAGE_SIZE << xa_get_order(xas->xa, xas->xa_index);
3020 if (seek_size > PAGE_SIZE)
3261 max_idx = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE);
3363 max_idx = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE);
3464 max_idx = DIV_ROUND_UP(i_size_read(mapping->host), PAGE_SIZE);
[all...]
/linux-master/lib/
H A Dtest_bitmap.c23 static char pbl_buffer[PAGE_SIZE] __initdata;
24 static char print_buf[PAGE_SIZE * 2] __initdata;
560 unsigned long *bmap = kmalloc(PAGE_SIZE, GFP_KERNEL);
561 char *buf = kmalloc(PAGE_SIZE, GFP_KERNEL);
569 memset(bmap, -1, PAGE_SIZE);
570 slen = snprintf(expected, 256, "0-%ld", PAGE_SIZE * 8 - 1);
575 ret = bitmap_print_to_pagebuf(true, buf, bmap, PAGE_SIZE * 8);
1209 0, 2 * PAGE_SIZE);
1214 0, 2 * PAGE_SIZE);
1219 if (strlen(t->list) > PAGE_SIZE) {
[all...]
H A Dkunit_iov_iter.c109 npages = bufsize / PAGE_SIZE;
159 npages = bufsize / PAGE_SIZE;
231 KUNIT_ASSERT_LT(test, pr->page * PAGE_SIZE, bufsize);
234 KUNIT_ASSERT_LE(test, pr->to, PAGE_SIZE);
246 can_merge = page + pr->to / PAGE_SIZE;
268 npages = bufsize / PAGE_SIZE;
292 u8 *p = scratch + pr->page * PAGE_SIZE;
322 npages = bufsize / PAGE_SIZE;
345 size_t patt = pr->page * PAGE_SIZE;
385 size += PAGE_SIZE;
[all...]
H A Dfortify_kunit.c270 checker((expected_pages) * PAGE_SIZE, \
271 vmalloc((alloc_pages) * PAGE_SIZE), vfree(p)); \
272 checker((expected_pages) * PAGE_SIZE, \
273 vzalloc((alloc_pages) * PAGE_SIZE), vfree(p)); \
274 checker((expected_pages) * PAGE_SIZE, \
275 __vmalloc((alloc_pages) * PAGE_SIZE, gfp), vfree(p)); \
285 checker((expected_pages) * PAGE_SIZE, \
286 kvmalloc((alloc_pages) * PAGE_SIZE, gfp), \
288 checker((expected_pages) * PAGE_SIZE, \
289 kvmalloc_node((alloc_pages) * PAGE_SIZE, gf
[all...]
/linux-master/lib/math/
H A Dprime_numbers.c247 buf = kmalloc(PAGE_SIZE, GFP_KERNEL);

Completed in 362 milliseconds

<<11121314151617181920>>