Home
last modified time | relevance | path

Searched refs:alloced (Results 1 – 25 of 32) 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.c909 u16 alloced; in brcmf_msgbuf_rxbuf_data_post() local
920 &alloced); in brcmf_msgbuf_rxbuf_data_post()
926 for (i = 0; i < alloced; i++) { in brcmf_msgbuf_rxbuf_data_post()
934 brcmf_commonring_write_cancel(commonring, alloced - i); in brcmf_msgbuf_rxbuf_data_post()
944 brcmf_commonring_write_cancel(commonring, alloced - i); in brcmf_msgbuf_rxbuf_data_post()
1017 u16 alloced; in brcmf_msgbuf_rxbuf_ctrl_post() local
1029 &alloced); in brcmf_msgbuf_rxbuf_ctrl_post()
1036 for (i = 0; i < alloced; i++) { in brcmf_msgbuf_rxbuf_ctrl_post()
1044 brcmf_commonring_write_cancel(commonring, alloced - i); in brcmf_msgbuf_rxbuf_ctrl_post()
1054 brcmf_commonring_write_cancel(commonring, alloced in brcmf_msgbuf_rxbuf_ctrl_post()
[all...]
H A Dcommonring.h49 u16 n_items, u16 *alloced);
/linux/drivers/infiniband/hw/hfi1/
H A Dinit.c1107 for (e = 0; e < rcd->egrbufs.alloced; e++) { in hfi1_free_ctxtdata()
1115 rcd->egrbufs.alloced = 0; in hfi1_free_ctxtdata()
1845 rcd->egrbufs.alloced < rcd->egrbufs.count) { in hfi1_setup_eagerbufs()
1854 rcd->egrbufs.rcvtids[rcd->egrbufs.alloced].addr = in hfi1_setup_eagerbufs()
1856 rcd->egrbufs.rcvtids[rcd->egrbufs.alloced].dma = in hfi1_setup_eagerbufs()
1858 rcd->egrbufs.alloced++; in hfi1_setup_eagerbufs()
1895 rcd->egrbufs.alloced = 0; in hfi1_setup_eagerbufs()
1903 rcd->egrbufs.alloced++; in hfi1_setup_eagerbufs()
1922 rcd->ctxt, rcd->egrbufs.alloced, in hfi1_setup_eagerbufs()
1931 rounddown_pow_of_two(rcd->egrbufs.alloced / in hfi1_setup_eagerbufs()
[all...]
H A Dtrace_ctxts.h44 __entry->eager_cnt = uctxt->egrbufs.alloced;
/linux/drivers/gpu/drm/xe/tests/
H A Dxe_bo.c450 u64 ram, ram_and_swap, purgeable = 0, alloced, to_alloc, limit; in shrink_test_run_device() local
483 for (alloced = 0; alloced < to_alloc; alloced += XE_BO_SHRINK_SIZE) { in shrink_test_run_device()
516 if (alloced < purgeable) { in shrink_test_run_device()
/linux/tools/perf/util/
H A Dbpf-filter.c238 int num = 0, alloced = 32; in destroy_event_hash() local
239 u64 *ids = calloc(alloced, sizeof(*ids)); in destroy_event_hash()
256 if (num == alloced) { in destroy_event_hash()
259 alloced *= 2; in destroy_event_hash()
260 tmp = realloc(ids, alloced * sizeof(*ids)); in destroy_event_hash()
/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()
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()
537 di->rxdalloc = alloced; in dma64_alloc()
[all...]
/linux/drivers/net/ethernet/hisilicon/hns3/hns3_common/
H A Dhclge_comm_tqp_stats.h30 bool alloced; member
/linux/include/linux/
H A Dmpi.h30 int alloced; /* array size (# of allocated limbs) */ member
H A Dshmem_fs.h26 unsigned long alloced; /* data pages alloced to file */ member
/linux/mm/
H A Dshmem.c427 * @alloced: the change in number of pages allocated to inode
433 * But normally info->alloced == inode->i_mapping->nrpages + info->swapped
434 * So mm freed is info->alloced - (inode->i_mapping->nrpages + info->swapped)
438 static bool shmem_recalc_inode(struct inode *inode, long alloced, long swapped) in shmem_recalc_inode() argument
445 info->alloced += alloced; in shmem_recalc_inode()
447 freed = info->alloced - info->swapped - in shmem_recalc_inode()
462 info->alloced -= freed; in shmem_recalc_inode()
1282 if (info->alloced - info->swapped != inode->i_mapping->nrpages) in shmem_getattr()
1351 if (info->alloced) in shmem_setattr()
2505 bool alloced; shmem_get_folio_gfp() local
[all...]
/linux/drivers/xen/
H A Dgntdev.c334 size_t alloced = 0; in gntdev_map_grant_pages() local
385 alloced++; in gntdev_map_grant_pages()
394 alloced++; in gntdev_map_grant_pages()
400 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()
[all...]
/linux/drivers/net/ethernet/atheros/atlx/
H A Datl1.c1764 rfd_ring->buffer_info[rfd_ring->next_to_clean].alloced = 0; in atl1_clean_alloc_flag()
1848 while (!buffer_info->alloced && !next_info->alloced) { in atl1_alloc_rx_buffers()
1850 buffer_info->alloced = 1; in atl1_alloc_rx_buffers()
1875 buffer_info->alloced = 1; in atl1_alloc_rx_buffers()
1995 buffer_info->alloced = 0; in atl1_intr_rx()
2025 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.c1021 int alloced; in ghes_estatus_cache_alloc() local
1026 alloced = atomic_add_return(1, &ghes_estatus_cache_alloced); in ghes_estatus_cache_alloc()
1027 if (alloced > GHES_ESTATUS_CACHE_ALLOCED_MAX) { in ghes_estatus_cache_alloc()
/linux/fs/gfs2/
H A Dbmap.c668 unsigned n, i, blks, alloced = 0, iblks = 0, branch_start = 0; in __gfs2_iomap_alloc() local
707 n = blks - alloced; in __gfs2_iomap_alloc()
711 alloced += n; in __gfs2_iomap_alloc()
776 gfs2_add_inode_blocks(&ip->i_inode, alloced); in __gfs2_iomap_alloc()
/linux/include/sound/
H A Dhdaudio.h43 unsigned int alloced; member

12