Home
last modified time | relevance | path

Searched refs:page_order (Results 1 – 25 of 34) sorted by relevance

12

/openbmc/linux/arch/s390/include/asm/
H A Didals.h122 size_t page_order; member
130 idal_buffer_alloc(size_t size, int page_order) in idal_buffer_alloc() argument
136 nr_chunks = (4096 << page_order) >> IDA_SIZE_LOG; in idal_buffer_alloc()
141 ib->page_order = page_order; in idal_buffer_alloc()
148 __get_free_pages(GFP_KERNEL, page_order); in idal_buffer_alloc()
155 ib->page_order); in idal_buffer_alloc()
172 nr_chunks = (4096 << ib->page_order) >> IDA_SIZE_LOG; in idal_buffer_free()
174 free_pages((unsigned long) ib->data[i], ib->page_order); in idal_buffer_free()
184 return ib->size > (4096ul << ib->page_order) || in __idal_buffer_is_needed()
/openbmc/linux/drivers/char/agp/
H A Dgeneric.c854 int page_order; in agp_generic_create_gatt_table() local
867 page_order = num_entries = 0; in agp_generic_create_gatt_table()
873 page_order = in agp_generic_create_gatt_table()
874 A_SIZE_8(temp)->page_order; in agp_generic_create_gatt_table()
879 page_order = A_SIZE_16(temp)->page_order; in agp_generic_create_gatt_table()
883 page_order = A_SIZE_32(temp)->page_order; in agp_generic_create_gatt_table()
890 page_order = num_entries = 0; in agp_generic_create_gatt_table()
894 table = alloc_gatt_pages(page_order); in agp_generic_create_gatt_table()
920 page_order = ((struct aper_size_info_fixed *) temp)->page_order; in agp_generic_create_gatt_table()
922 table = alloc_gatt_pages(page_order); in agp_generic_create_gatt_table()
[all …]
H A Duninorth-agp.c374 int page_order; in uninorth_create_gatt_table() local
387 size = page_order = num_entries = 0; in uninorth_create_gatt_table()
391 page_order = A_SIZE_32(temp)->page_order; in uninorth_create_gatt_table()
394 table = (char *) __get_free_pages(GFP_KERNEL, page_order); in uninorth_create_gatt_table()
407 uninorth_priv.pages_arr = kmalloc_array(1 << page_order, in uninorth_create_gatt_table()
413 table_end = table + ((PAGE_SIZE * (1 << page_order)) - 1); in uninorth_create_gatt_table()
425 bridge->gatt_table = vmap(uninorth_priv.pages_arr, (1 << page_order), 0, PAGE_KERNEL_NCG); in uninorth_create_gatt_table()
445 free_pages((unsigned long)table, page_order); in uninorth_create_gatt_table()
451 int page_order; in uninorth_free_gatt_table() local
457 page_order = A_SIZE_32(temp)->page_order; in uninorth_free_gatt_table()
[all …]
H A Dagp.h67 int page_order; member
74 int page_order; member
81 int page_order; member
94 int page_order; member
H A Di460-agp.c154 values[i].page_order = ilog2((sizeof(u32)*values[i].num_entries) >> PAGE_SHIFT); in i460_fetch_size()
244 int page_order, num_entries, i; in i460_create_gatt_table() local
251 page_order = A_SIZE_8(temp)->page_order; in i460_create_gatt_table()
254 i460.gatt = ioremap(INTEL_I460_ATTBASE, PAGE_SIZE << page_order); in i460_create_gatt_table()
H A Dalpha-agp.c170 aper_size->page_order = __ffs(aper_size->num_entries / 1024); in alpha_core_agp_setup()
H A Dali-agp.c133 page_count = 1 << A_SIZE_32(agp_bridge->current_size)->page_order; in m1541_cache_flush()
/openbmc/linux/kernel/events/
H A Dinternal.h18 int page_order; /* allocation order */ member
107 static inline int page_order(struct perf_buffer *rb) in page_order() function
109 return rb->page_order; in page_order()
114 static inline int page_order(struct perf_buffer *rb) in page_order() function
122 return rb->nr_pages << page_order(rb); in data_page_nr()
127 return rb->nr_pages << (PAGE_SHIFT + page_order(rb)); in perf_data_size()
155 handle->size = PAGE_SIZE << page_order(rb); \
H A Dring_buffer.c236 page_shift = PAGE_SHIFT + page_order(rb); in __perf_output_begin()
941 rb->page_order = ilog2(nr_pages); in rb_alloc()
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_bufs.c727 int page_order; in drm_legacy_addbufs_agp() local
742 page_order = order - PAGE_SHIFT > 0 ? order - PAGE_SHIFT : 0; in drm_legacy_addbufs_agp()
743 total = PAGE_SIZE << page_order; in drm_legacy_addbufs_agp()
753 DRM_DEBUG("page_order: %d\n", page_order); in drm_legacy_addbufs_agp()
802 entry->page_order = page_order; in drm_legacy_addbufs_agp()
836 byte_count += PAGE_SIZE << page_order; in drm_legacy_addbufs_agp()
886 int page_order; in drm_legacy_addbufs_pci() local
919 page_order = order - PAGE_SHIFT > 0 ? order - PAGE_SHIFT : 0; in drm_legacy_addbufs_pci()
920 total = PAGE_SIZE << page_order; in drm_legacy_addbufs_pci()
962 temp_pagelist = kmalloc_array(dma->page_count + (count << page_order), in drm_legacy_addbufs_pci()
[all …]
/openbmc/linux/drivers/md/bcache/
H A Dbset.c270 return PAGE_SIZE << b->page_order; in btree_keys_bytes()
308 free_pages((unsigned long) t->data, b->page_order); in bch_btree_keys_free()
316 unsigned int page_order, in bch_btree_keys_alloc() argument
323 b->page_order = page_order; in bch_btree_keys_alloc()
325 t->data = (void *) __get_free_pages(__GFP_COMP|gfp, b->page_order); in bch_btree_keys_alloc()
865 PAGE_SIZE << b->page_order); in bch_bset_insert()
1184 unsigned int page_order) in bch_bset_sort_state_init() argument
1188 state->page_order = page_order; in bch_bset_sort_state_init()
1189 state->crit_factor = int_sqrt(1 << page_order); in bch_bset_sort_state_init()
1191 return mempool_init_page_pool(&state->pool, 1, page_order); in bch_bset_sort_state_init()
[all …]
H A Dbset.h219 uint8_t page_order; member
273 BUG_ON((PAGE_SIZE << b->page_order) < in bch_btree_keys_u64s_remaining()
279 return ((PAGE_SIZE << b->page_order) - in bch_btree_keys_u64s_remaining()
293 int bch_btree_keys_alloc(struct btree_keys *b, unsigned int page_order,
374 unsigned int page_order; member
382 unsigned int page_order);
/openbmc/linux/arch/powerpc/mm/
H A Dinit_64.c253 unsigned long page_order = get_order(page_size); in __vmemmap_populate() local
258 free_pages((unsigned long)p, page_order); in __vmemmap_populate()
323 unsigned long page_order = get_order(page_size); in __vmemmap_free() local
353 nr_pages = 1 << page_order; in __vmemmap_free()
371 free_pages((unsigned long)(__va(addr)), page_order); in __vmemmap_free()
/openbmc/linux/include/linux/
H A Dvmalloc.h56 unsigned int page_order; member
228 return find_vm_area(addr)->page_order > 0; in is_vm_area_hugepages()
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_ring.c55 unsigned int order = rx_ring->page_order; in aq_alloc_rxpages()
86 unsigned int order = self->page_order; in aq_get_rxpages()
192 self->page_order = AQ_CFG_XDP_PAGEORDER; in aq_ring_rx_alloc()
196 self->page_order = fls(self->frame_max / PAGE_SIZE + in aq_ring_rx_alloc()
198 if (aq_nic_cfg->rxpageorder > self->page_order) in aq_ring_rx_alloc()
199 self->page_order = aq_nic_cfg->rxpageorder; in aq_ring_rx_alloc()
H A Daq_ring.h146 u16 page_order; member
/openbmc/linux/drivers/scsi/
H A Dsg.c116 int page_order; member
1233 length = 1 << (PAGE_SHIFT + rsv_schp->page_order); in sg_vma_fault()
1280 length = 1 << (PAGE_SHIFT + rsv_schp->page_order); in sg_mmap()
1804 md->page_order = req_schp->page_order; in sg_start_req()
1923 schp->page_order = order; in sg_build_indirect()
1957 __free_pages(schp->pages[k], schp->page_order); in sg_remove_scat()
1978 num = 1 << (PAGE_SHIFT + schp->page_order); in sg_read_oxfer()
2029 num = 1 << (PAGE_SHIFT + rsv_schp->page_order); in sg_link_reserve()
2037 req_schp->page_order = rsv_schp->page_order; in sg_link_reserve()
2059 req_schp->page_order = 0; in sg_unlink_reserve()
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_xdp.c82 xdp_init_buff(&xdp, PAGE_SIZE << lan966x->rx.page_order, in lan966x_xdp_run()
H A Dlan966x_fdma.c63 dcb->info = FDMA_DCB_INFO_DATAL(PAGE_SIZE << rx->page_order); in lan966x_fdma_rx_add_dcb()
73 .order = rx->page_order, in lan966x_fdma_rx_alloc_page_pool()
506 skb = build_skb(page_address(page), PAGE_SIZE << rx->page_order); in lan966x_fdma_rx_get_frame()
927 lan966x->rx.page_order = round_up(new_mtu, PAGE_SIZE) / PAGE_SIZE - 1; in lan966x_fdma_reload()
H A Dlan966x_main.h248 u8 page_order; member
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Dsetup.c950 int page_order = IOMMU_PAGE_SHIFT_4K; in pSeries_cmo_feature_init() local
982 page_order = simple_strtol(value, NULL, 10); in pSeries_cmo_feature_init()
995 CMO_PageSize = 1 << page_order; in pSeries_cmo_feature_init()
/openbmc/linux/arch/riscv/kvm/
H A Dmmu.c87 unsigned long page_order = PAGE_SHIFT; in gstage_level_to_page_size() local
89 rc = gstage_level_to_page_order(level, &page_order); in gstage_level_to_page_size()
93 *out_pgsize = BIT(page_order); in gstage_level_to_page_size()
/openbmc/linux/include/drm/
H A Ddrm_legacy.h111 int page_order; member
/openbmc/linux/kernel/dma/
H A Ddirect.c326 unsigned int page_order = get_order(size); in dma_direct_free() local
346 if (!dma_release_from_global_coherent(page_order, cpu_addr)) in dma_direct_free()
/openbmc/linux/mm/
H A Dvmalloc.c2444 return vm->page_order; in vm_area_page_order()
2453 vm->page_order = order; in set_vm_area_page_order()
2743 unsigned int page_order = vm_area_page_order(area); in vm_reset_perms() local
2751 for (i = 0; i < area->nr_pages; i += 1U << page_order) { in vm_reset_perms()
2757 page_size = PAGE_SIZE << page_order; in vm_reset_perms()
3122 unsigned int page_order; in __vmalloc_area_node() local
3148 page_order = vm_area_page_order(area); in __vmalloc_area_node()
3151 node, page_order, nr_small_pages, area->pages); in __vmalloc_area_node()
3176 if (!fatal_signal_pending(current) && page_order == 0) in __vmalloc_area_node()

12