Home
last modified time | relevance | path

Searched refs:order (Results 1 – 25 of 101) sorted by relevance

12345

/drivers/media/video/cx18/
Dcx18-mailbox.c123 static void epu_dma_done(struct cx18 *cx, struct cx18_epu_work_order *order) in epu_dma_done() argument
132 mb = &order->mb; in epu_dma_done()
139 (order->flags & CX18_F_EWO_MB_STALE_UPON_RECEIPT) ? in epu_dma_done()
145 mdl_ack = order->mdl_ack; in epu_dma_done()
169 if ((order->flags & CX18_F_EWO_MB_STALE_UPON_RECEIPT) && in epu_dma_done()
205 static void epu_debug(struct cx18 *cx, struct cx18_epu_work_order *order) in epu_debug() argument
208 char *str = order->str; in epu_debug()
210 CX18_DEBUG_INFO("%x %s\n", order->mb.args[0], str); in epu_debug()
216 static void epu_cmd(struct cx18 *cx, struct cx18_epu_work_order *order) in epu_cmd() argument
218 switch (order->rpu) { in epu_cmd()
[all …]
/drivers/net/mlx4/
Dmr.c77 static u32 mlx4_buddy_alloc(struct mlx4_buddy *buddy, int order) in mlx4_buddy_alloc() argument
85 for (o = order; o <= buddy->max_order; ++o) in mlx4_buddy_alloc()
100 while (o > order) { in mlx4_buddy_alloc()
109 seg <<= order; in mlx4_buddy_alloc()
114 static void mlx4_buddy_free(struct mlx4_buddy *buddy, u32 seg, int order) in mlx4_buddy_free() argument
116 seg >>= order; in mlx4_buddy_free()
120 while (test_bit(seg ^ 1, buddy->bits[order])) { in mlx4_buddy_free()
121 clear_bit(seg ^ 1, buddy->bits[order]); in mlx4_buddy_free()
122 --buddy->num_free[order]; in mlx4_buddy_free()
124 ++order; in mlx4_buddy_free()
[all …]
Dalloc.c303 struct mlx4_db *db, int order) in mlx4_alloc_db_from_pgdir() argument
308 for (o = order; o <= 1; ++o) { in mlx4_alloc_db_from_pgdir()
321 if (o > order) in mlx4_alloc_db_from_pgdir()
322 set_bit(i ^ 1, pgdir->bits[order]); in mlx4_alloc_db_from_pgdir()
328 db->order = order; in mlx4_alloc_db_from_pgdir()
333 int mlx4_db_alloc(struct mlx4_dev *dev, struct mlx4_db *db, int order) in mlx4_db_alloc() argument
342 if (!mlx4_alloc_db_from_pgdir(pgdir, db, order)) in mlx4_db_alloc()
354 WARN_ON(mlx4_alloc_db_from_pgdir(pgdir, db, order)); in mlx4_db_alloc()
371 o = db->order; in mlx4_db_free()
374 if (db->order == 0 && test_bit(i ^ 1, db->u.pgdir->order0)) { in mlx4_db_free()
Dicm.c96 static int mlx4_alloc_icm_pages(struct scatterlist *mem, int order, gfp_t gfp_mask) in mlx4_alloc_icm_pages() argument
100 page = alloc_pages(gfp_mask, order); in mlx4_alloc_icm_pages()
104 sg_set_page(mem, page, PAGE_SIZE << order, 0); in mlx4_alloc_icm_pages()
109 int order, gfp_t gfp_mask) in mlx4_alloc_icm_coherent() argument
111 void *buf = dma_alloc_coherent(dev, PAGE_SIZE << order, in mlx4_alloc_icm_coherent()
116 sg_set_buf(mem, buf, PAGE_SIZE << order); in mlx4_alloc_icm_coherent()
118 sg_dma_len(mem) = PAGE_SIZE << order; in mlx4_alloc_icm_coherent()
/drivers/infiniband/hw/ehca/
Dipz_pt_fn.c127 int order = ilog2(queue->pagesize) - 9; in alloc_small_queue_page() local
133 if (!list_empty(&pd->free[order])) in alloc_small_queue_page()
134 page = list_entry(pd->free[order].next, in alloc_small_queue_page()
147 list_add(&page->list, &pd->free[order]); in alloc_small_queue_page()
150 bit = find_first_zero_bit(page->bitmap, IPZ_SPAGE_PER_KPAGE >> order); in alloc_small_queue_page()
154 if (page->fill == IPZ_SPAGE_PER_KPAGE >> order) in alloc_small_queue_page()
155 list_move(&page->list, &pd->full[order]); in alloc_small_queue_page()
159 queue->queue_pages[0] = (void *)(page->page | (bit << (order + 9))); in alloc_small_queue_page()
161 queue->offset = bit << (order + 9); in alloc_small_queue_page()
172 int order = ilog2(queue->pagesize) - 9; in free_small_queue_page() local
[all …]
/drivers/gpu/drm/
Ddrm_bufs.c568 int order; in drm_addbufs_agp() local
581 order = drm_order(request->size); in drm_addbufs_agp()
582 size = 1 << order; in drm_addbufs_agp()
586 page_order = order - PAGE_SHIFT > 0 ? order - PAGE_SHIFT : 0; in drm_addbufs_agp()
593 DRM_DEBUG("order: %d\n", order); in drm_addbufs_agp()
600 if (order < DRM_MIN_ORDER || order > DRM_MAX_ORDER) in drm_addbufs_agp()
627 entry = &dma->bufs[order]; in drm_addbufs_agp()
658 buf->order = order; in drm_addbufs_agp()
733 int order; in drm_addbufs_pci() local
758 order = drm_order(request->size); in drm_addbufs_pci()
[all …]
Ddrm_hashtab.c39 int drm_ht_create(struct drm_open_hash *ht, unsigned int order) in drm_ht_create() argument
43 ht->size = 1 << order; in drm_ht_create()
44 ht->order = order; in drm_ht_create()
74 hashed_key = hash_long(key, ht->order); in drm_ht_verbose_list()
91 hashed_key = hash_long(key, ht->order); in drm_ht_find_key()
112 hashed_key = hash_long(key, ht->order); in drm_ht_insert_item()
/drivers/atm/
Deni.c176 1 << eni_dev->free_list[i].order); in dump_mem()
208 int len,order; in eni_put_free() local
220 for (order = 0; !(((unsigned long)start | size) & (1 << order)); order++); in eni_put_free()
221 if (MID_MIN_BUF_SIZE > (1 << order)) { in eni_put_free()
223 order); in eni_put_free()
227 list[len].order = order; in eni_put_free()
229 start += 1 << order; in eni_put_free()
230 size -= 1 << order; in eni_put_free()
241 int len,i,order,best_order,index; in eni_alloc_mem() local
247 for (order = 0; (1 << order) < *size; order++); in eni_alloc_mem()
[all …]
/drivers/pci/
Dsetup-bus.c334 int order, max_order; in pbus_size_mem() local
356 order = __ffs(align) - 20; in pbus_size_mem()
357 if (order > 11) { in pbus_size_mem()
364 if (order < 0) in pbus_size_mem()
365 order = 0; in pbus_size_mem()
369 aligns[order] += align; in pbus_size_mem()
370 if (order > max_order) in pbus_size_mem()
371 max_order = order; in pbus_size_mem()
377 for (order = 0; order <= max_order; order++) { in pbus_size_mem()
380 align1 <<= (order + 20); in pbus_size_mem()
[all …]
Diova.c68 unsigned int order = ilog2(size); in iova_get_pad_size() local
70 if (order) in iova_get_pad_size()
71 pad_size = (limit_pfn + 1) % (1 << order); in iova_get_pad_size()
/drivers/infiniband/hw/mthca/
Dmthca_mr.c43 int order; member
84 static u32 mthca_buddy_alloc(struct mthca_buddy *buddy, int order) in mthca_buddy_alloc() argument
92 for (o = order; o <= buddy->max_order; ++o) in mthca_buddy_alloc()
107 while (o > order) { in mthca_buddy_alloc()
116 seg <<= order; in mthca_buddy_alloc()
121 static void mthca_buddy_free(struct mthca_buddy *buddy, u32 seg, int order) in mthca_buddy_free() argument
123 seg >>= order; in mthca_buddy_free()
127 while (test_bit(seg ^ 1, buddy->bits[order])) { in mthca_buddy_free()
128 clear_bit(seg ^ 1, buddy->bits[order]); in mthca_buddy_free()
129 --buddy->num_free[order]; in mthca_buddy_free()
[all …]
Dmthca_memfree.c106 static int mthca_alloc_icm_pages(struct scatterlist *mem, int order, gfp_t gfp_mask) in mthca_alloc_icm_pages() argument
114 page = alloc_pages(gfp_mask | __GFP_ZERO, order); in mthca_alloc_icm_pages()
118 sg_set_page(mem, page, PAGE_SIZE << order, 0); in mthca_alloc_icm_pages()
123 int order, gfp_t gfp_mask) in mthca_alloc_icm_coherent() argument
125 void *buf = dma_alloc_coherent(dev, PAGE_SIZE << order, &sg_dma_address(mem), in mthca_alloc_icm_coherent()
130 sg_set_buf(mem, buf, PAGE_SIZE << order); in mthca_alloc_icm_coherent()
132 sg_dma_len(mem) = PAGE_SIZE << order; in mthca_alloc_icm_coherent()
/drivers/char/agp/
Damd64-agp.c266 int order = 0; in fix_northbridge() local
288 order = 7 - hweight16(apsize); in fix_northbridge()
298 if (order >=0 && aper + (32ULL<<(20 + order)) > 0x100000000ULL) { in fix_northbridge()
300 32 << order); in fix_northbridge()
301 order = nb_order; in fix_northbridge()
304 if (nb_order >= order) { in fix_northbridge()
310 aper, 32 << order); in fix_northbridge()
311 if (order < 0 || !agp_aperture_valid(aper, (32*1024*1024)<<order)) in fix_northbridge()
314 pci_write_config_dword(nb, AMD64_GARTAPERTURECTL, order << 1); in fix_northbridge()
/drivers/xen/
Dxencomm.c87 unsigned long order = get_order(size); in xencomm_alloc() local
89 order); in xencomm_alloc()
94 ((PAGE_SIZE << order) - sizeof(struct xencomm_desc)) / in xencomm_alloc()
113 unsigned long order = get_order(size); in xencomm_free() local
114 free_pages((unsigned long)__va(desc), order); in xencomm_free()
/drivers/s390/char/
Dtape_3590.c200 struct tape3592_kekl_query_order *order; in tape_3592_kekl_query() local
208 request = tape_alloc_request(2, sizeof(*order)); in tape_3592_kekl_query()
213 order = request->cpdata; in tape_3592_kekl_query()
214 memset(order,0,sizeof(*order)); in tape_3592_kekl_query()
215 order->code = 0xe2; in tape_3592_kekl_query()
216 order->max_count = 2; in tape_3592_kekl_query()
218 tape_ccw_cc(request->cpaddr, PERF_SUBSYS_FUNC, sizeof(*order), order); in tape_3592_kekl_query()
273 struct tape3592_kekl_set_order *order; in tape_3592_kekl_set() local
282 request = tape_alloc_request(1, sizeof(*order)); in tape_3592_kekl_set()
285 order = request->cpdata; in tape_3592_kekl_set()
[all …]
/drivers/usb/atm/
DKconfig25 modem. In order to use your modem you will need to install the
37 AccessRunner chipset. In order to use your modem you will need to
49 or eagle chipset. In order to use your modem you will need to
60 another USB DSL drivers. In order to use your modem you will need to
/drivers/s390/net/
Dfsm.c16 int nr_events, const fsm_node *tmpl, int tmpl_len, gfp_t order) in init_fsm() argument
23 this = kzalloc(sizeof(fsm_instance), order); in init_fsm()
31 f = kzalloc(sizeof(fsm), order); in init_fsm()
44 m = kcalloc(nr_states*nr_events, sizeof(fsm_function_t), order); in init_fsm()
/drivers/misc/sgi-gru/
Dgrufile.c299 int order = get_order(sizeof(struct gru_blade_state)); in gru_init_tables() local
312 page = alloc_pages_node(nid, GFP_KERNEL, order); in gru_init_tables()
341 free_pages((unsigned long)gru_base[nid], order); in gru_init_tables()
451 int order = get_order(sizeof(struct gru_state) * in gru_exit() local
461 free_pages((unsigned long)gru_base[bid], order); in gru_exit()
/drivers/staging/comedi/drivers/
Dmite.h263 unsigned order = 0; in MITE_IODWBSR_1_WSIZE_bits() local
265 ++order; in MITE_IODWBSR_1_WSIZE_bits()
266 BUG_ON(order < 1); in MITE_IODWBSR_1_WSIZE_bits()
267 return (order - 1) & 0x1f; in MITE_IODWBSR_1_WSIZE_bits()
/drivers/media/radio/
DKconfig21 In order to control your radio card, you will need to use programs
48 In order to control your radio card, you will need to use programs
73 In order to control your radio card, you will need to use programs
96 In order to control your radio card, you will need to use programs
125 In order to control your radio card, you will need to use programs
160 In order to control your radio card, you will need to use programs
175 In order to control your radio card, you will need to use programs
190 In order to control your radio card, you will need to use programs
207 In order to control your radio card, you will need to use programs
221 In order to control your radio card, you will need to use programs
[all …]
/drivers/media/video/
Domap24xxcam.c283 unsigned int order; in omap24xxcam_vbq_alloc_mmap_buffer() local
301 order = get_order(size); in omap24xxcam_vbq_alloc_mmap_buffer()
306 if ((PAGE_SIZE << order) > size) in omap24xxcam_vbq_alloc_mmap_buffer()
307 order--; in omap24xxcam_vbq_alloc_mmap_buffer()
310 page = alloc_pages(GFP_KERNEL | GFP_DMA, order); in omap24xxcam_vbq_alloc_mmap_buffer()
313 order--; in omap24xxcam_vbq_alloc_mmap_buffer()
314 page = alloc_pages(GFP_KERNEL | GFP_DMA, order); in omap24xxcam_vbq_alloc_mmap_buffer()
315 if (page == NULL && !order) { in omap24xxcam_vbq_alloc_mmap_buffer()
320 size -= (PAGE_SIZE << order); in omap24xxcam_vbq_alloc_mmap_buffer()
323 sg_set_page(&dma->sglist[i], page, PAGE_SIZE << order, 0); in omap24xxcam_vbq_alloc_mmap_buffer()
[all …]
/drivers/staging/poch/
Dpoch.c346 unsigned int order; in poch_channel_free_groups() local
349 order = get_order(channel->group_size); in poch_channel_free_groups()
351 __free_pages(group->pg, order); in poch_channel_free_groups()
366 unsigned int order; in poch_channel_alloc_groups() local
370 order = get_order(channel->group_size); in poch_channel_alloc_groups()
380 group->pg = alloc_pages(gfp_mask, order); in poch_channel_alloc_groups()
537 unsigned int order; in poch_channel_free_header() local
539 order = get_order(channel->header_size); in poch_channel_free_header()
540 __free_pages(channel->header_pg, order); in poch_channel_free_header()
/drivers/video/vermilion/
Dvermilion.c111 va->order = max_order; in vmlfb_alloc_vram_area()
169 free_pages(va->logical, va->order); in vmlfb_free_vram_area()
201 int order; in vmlfb_alloc_vram() local
210 order = 0; in vmlfb_alloc_vram()
212 while (requested > (PAGE_SIZE << order) && order < MAX_ORDER) in vmlfb_alloc_vram()
213 order++; in vmlfb_alloc_vram()
215 err = vmlfb_alloc_vram_area(va, order, 0); in vmlfb_alloc_vram()
/drivers/misc/
Dpmem.c84 unsigned order:7; /* size of the region in pmem space */ member
156 #define PMEM_ORDER(id, index) pmem[id].bitmap[index].order
386 unsigned long order = pmem_order(len); in pmem_allocate() local
396 if (order > PMEM_MAX_ORDER) in pmem_allocate()
398 DLOG("order %lx\n", order); in pmem_allocate()
406 if (PMEM_ORDER(id, curr) == (unsigned char)order) { in pmem_allocate()
411 if (PMEM_ORDER(id, curr) > (unsigned char)order && in pmem_allocate()
431 while (PMEM_ORDER(id, best_fit) > (unsigned char)order) { in pmem_allocate()
/drivers/ide/
Dide-tape.c466 unsigned int order = fls(size >> PAGE_SHIFT)-1; in ide_tape_kfree_buffer() local
469 free_pages((unsigned long)bh->b_data, order); in ide_tape_kfree_buffer()
471 size &= (order-1); in ide_tape_kfree_buffer()
472 bh->b_data += (1 << order) * PAGE_SIZE; in ide_tape_kfree_buffer()
900 unsigned int order, b_allocd; in ide_tape_kmalloc_buffer() local
908 order = fls(pages) - 1; in ide_tape_kmalloc_buffer()
909 bh->b_data = (char *) __get_free_pages(GFP_KERNEL, order); in ide_tape_kmalloc_buffer()
912 b_allocd = (1 << order) * PAGE_SIZE; in ide_tape_kmalloc_buffer()
913 pages &= (order-1); in ide_tape_kmalloc_buffer()
922 order = fls(pages) - 1; in ide_tape_kmalloc_buffer()
[all …]

12345