Home
last modified time | relevance | path

Searched refs:alloced (Results 1 – 25 of 29) sorted by relevance

12

/linux/sound/hda/core/
H A Darray.c23 if (array->used >= array->alloced) { in snd_array_new()
24 int num = array->alloced + array->alloc_align; in snd_array_new()
25 int oldsize = array->alloced * array->elem_size; in snd_array_new()
35 array->alloced = num; in snd_array_new()
49 array->alloced = 0; in snd_array_free()
/linux/lib/crypto/mpi/
H A Dmpiutil.c50 a->alloced = nlimbs; in mpi_alloc()
81 a->alloced = nlimbs; in mpi_assign_limb_space()
92 if (nlimbs <= a->alloced) in mpi_resize()
99 memcpy(p, a->d, a->alloced * sizeof(mpi_limb_t)); in mpi_resize()
107 a->alloced = nlimbs; in mpi_resize()
H A Dmpi-mul.c49 if (w->alloced < wsize) { in mpi_mul()
H A Dmpi-bit.c90 for (i = a->nlimbs; i < a->alloced; i++) in mpi_set_bit()
H A Dmpi-internal.h57 if (a->alloced < b) in RESIZE_IF_NEEDED()
H A Dmpi-pow.c106 if (res->alloced < size) { in mpi_powm()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dcommonring.c144 u16 n_items, u16 *alloced) in brcmf_commonring_reserve_for_write_multiple() argument
160 *alloced = min_t(u16, n_items, available - 1); in brcmf_commonring_reserve_for_write_multiple()
161 if (*alloced + commonring->w_ptr > commonring->depth) in brcmf_commonring_reserve_for_write_multiple()
162 *alloced = commonring->depth - commonring->w_ptr; in brcmf_commonring_reserve_for_write_multiple()
163 commonring->w_ptr += *alloced; in brcmf_commonring_reserve_for_write_multiple()
H A Dmsgbuf.c938 u16 alloced; in brcmf_msgbuf_rxbuf_data_post() local
949 &alloced); in brcmf_msgbuf_rxbuf_data_post()
955 for (i = 0; i < alloced; i++) { in brcmf_msgbuf_rxbuf_data_post()
963 brcmf_commonring_write_cancel(commonring, alloced - i); in brcmf_msgbuf_rxbuf_data_post()
973 brcmf_commonring_write_cancel(commonring, alloced - i); in brcmf_msgbuf_rxbuf_data_post()
1046 u16 alloced; in brcmf_msgbuf_rxbuf_ctrl_post() local
1058 &alloced); in brcmf_msgbuf_rxbuf_ctrl_post()
1065 for (i = 0; i < alloced; i++) { in brcmf_msgbuf_rxbuf_ctrl_post()
1073 brcmf_commonring_write_cancel(commonring, alloced - i); in brcmf_msgbuf_rxbuf_ctrl_post()
1083 brcmf_commonring_write_cancel(commonring, alloced in brcmf_msgbuf_rxbuf_ctrl_post()
[all...]
H A Dcommonring.h49 u16 n_items, u16 *alloced);
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Ddma.c442 u16 align_bits, uint *alloced, in dma_alloc_consistent() argument
449 *alloced = size; in dma_alloc_consistent()
470 u16 *alignbits, uint *alloced, in dma_ringalloc() argument
477 va = dma_alloc_consistent(di, size, *alignbits, alloced, descpa); in dma_ringalloc()
486 dma_free_coherent(di->dmadev, *alloced, va, *descpa); in dma_ringalloc()
488 alloced, descpa); in dma_ringalloc()
498 uint alloced = 0; in dma64_alloc() local
510 &alloced, &di->txdpaorig); in dma64_alloc()
522 di->txdalloc = alloced; in dma64_alloc()
525 &alloced, &di->rxdpaorig); in dma64_alloc()
[all …]
/linux/tools/perf/util/
H A Dbpf-filter.c215 int num = 0, alloced = 32; in convert_to_tgid()
216 u64 *ids = calloc(alloced, sizeof(*ids)); in convert_to_tgid()
233 if (num == alloced) {
236 alloced *= 2; in destroy_event_hash()
237 tmp = realloc(ids, alloced * sizeof(*ids)); in destroy_event_hash()
239 int num = 0, alloced = 32; destroy_event_hash() local
/linux/include/linux/
H A Dmpi.h30 int alloced; /* array size (# of allocated limbs) */ member
H A Dshmem_fs.h39 unsigned long alloced; /* data pages alloced to file */
38 unsigned long alloced; /* data pages alloced to file */ global() member
/linux/drivers/infiniband/hw/hfi1/
H A Dtrace_ctxts.h44 __entry->eager_cnt = uctxt->egrbufs.alloced;
H A Dfile_ops.c1126 cinfo.rcvtids = roundup(uctxt->egrbufs.alloced, in user_init()
1134 cinfo.egrtids = uctxt->egrbufs.alloced; in user_init()
/linux/mm/
H A Dshmem.c433 * @alloced: the change in number of pages allocated to inode
439 * But normally info->alloced == inode->i_mapping->nrpages + info->swapped in shmem_recalc_inode()
440 * So mm freed is info->alloced - (inode->i_mapping->nrpages + info->swapped) in shmem_recalc_inode()
444 bool shmem_recalc_inode(struct inode *inode, long alloced, long swapped) in shmem_recalc_inode()
451 info->alloced += alloced; in shmem_recalc_inode()
453 freed = info->alloced - info->swapped - in shmem_recalc_inode()
468 info->alloced -= freed; in shmem_recalc_inode()
1550 if (data_race(info->alloced - info->swapped != inode->i_mapping->nrpages))
1622 /* Swapin-error markers are not counted in alloced in shmem_writeout()
438 shmem_recalc_inode(struct inode * inode,long alloced,long swapped) shmem_recalc_inode() argument
2439 bool alloced; shmem_get_folio_gfp() local
[all...]
/linux/drivers/xen/
H A Dgntdev.c326 size_t alloced = 0; in gntdev_map_grant_pages() local
377 alloced++; in gntdev_map_grant_pages()
386 alloced++; in gntdev_map_grant_pages()
392 atomic_add(alloced, &map->live_grants); in gntdev_map_grant_pages()
/linux/drivers/net/ethernet/brocade/bna/
H A Dbnad.c342 u32 alloced, prod, q_depth; in bnad_rxq_refill_page() local
354 alloced = 0; in bnad_rxq_refill_page()
399 alloced++; in bnad_rxq_refill_page()
403 if (likely(alloced)) { in bnad_rxq_refill_page()
410 return alloced; in bnad_rxq_refill_page()
416 u32 alloced, prod, q_depth, buff_sz; in bnad_rxq_refill_skb() local
427 alloced = 0; in bnad_rxq_refill_skb()
455 alloced++; in bnad_rxq_refill_skb()
459 if (likely(alloced)) { in bnad_rxq_refill_skb()
466 return alloced; in bnad_rxq_refill_skb()
/linux/kernel/sched/ext/
H A Dcid.c516 bool alloced; in scx_bpf_cid_override()
529 alloced = zalloc_cpumask_var(&seen, GFP_KERNEL); in scx_bpf_cid_override()
560 if (!alloced || !node_counts || !cpu_to_cid || !shard_start) { in scx_bpf_cid_override()
479 bool alloced; scx_bpf_cid_override() local
/linux/drivers/dma/ti/
H A Dedma.c222 bool alloced; member
1695 echan->alloced = true; in edma_alloc_chan_resources()
1732 if (echan->alloced) { in edma_free_chan_resources()
1734 echan->alloced = false; in edma_free_chan_resources()
2592 if (echan[i].alloced) in edma_pm_suspend()
2617 if (echan[i].alloced) { in edma_pm_resume()
/linux/drivers/net/ethernet/atheros/atlx/
H A Datl1.c1765 rfd_ring->buffer_info[rfd_ring->next_to_clean].alloced = 0; in atl1_clean_alloc_flag()
1849 while (!buffer_info->alloced && !next_info->alloced) { in atl1_alloc_rx_buffers()
1851 buffer_info->alloced = 1; in atl1_alloc_rx_buffers()
1876 buffer_info->alloced = 1; in atl1_alloc_rx_buffers()
1996 buffer_info->alloced = 0; in atl1_intr_rx()
2026 buffer_info->alloced = 0; in atl1_intr_rx()
H A Datl1.h596 u16 alloced; /* 1 if skb allocated */ member
/linux/drivers/acpi/apei/
H A Dghes.c1129 int alloced; in ghes_estatus_cache_add()
1134 alloced = atomic_add_return(1, &ghes_estatus_cache_alloced); in ghes_estatus_cache_add()
1135 if (alloced > GHES_ESTATUS_CACHE_ALLOCED_MAX) { in ghes_estatus_cache_add()
1076 int alloced; ghes_estatus_cache_alloc() local
/linux/fs/gfs2/
H A Dbmap.c673 unsigned n, i, blks, alloced = 0, iblks = 0, branch_start = 0; in __gfs2_iomap_alloc()
712 n = blks - alloced; in __gfs2_iomap_alloc()
716 alloced += n; in __gfs2_iomap_alloc()
781 gfs2_add_inode_blocks(&ip->i_inode, alloced); in __gfs2_iomap_alloc()
669 unsigned n, i, blks, alloced = 0, iblks = 0, branch_start = 0; __gfs2_iomap_alloc() local
/linux/include/sound/
H A Dhdaudio.h44 unsigned int alloced; member

12