Searched refs:nelm (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/dma/ti/ |
H A D | dma-crossbar.c | 385 size_t nelm = sz / sizeof(*rsv_events); in ti_dra7_xbar_probe() local 388 if (!nelm) in ti_dra7_xbar_probe() 391 rsv_events = kcalloc(nelm, sizeof(*rsv_events), GFP_KERNEL); in ti_dra7_xbar_probe() 396 nelm * 2); in ti_dra7_xbar_probe() 402 for (i = 0; i < nelm; i++) { in ti_dra7_xbar_probe()
|
H A D | edma.c | 2093 size_t nelm = sz / sizeof(s16); in edma_xbar_event_map() local 2097 xbar_chans = devm_kcalloc(dev, nelm + 2, sizeof(s16), GFP_KERNEL); in edma_xbar_event_map() 2110 nelm); in edma_xbar_event_map() 2115 nelm >>= 1; in edma_xbar_event_map() 2116 xbar_chans[nelm][0] = -1; in edma_xbar_event_map() 2117 xbar_chans[nelm][1] = -1; in edma_xbar_event_map() 2119 for (i = 0; i < nelm; i++) { in edma_xbar_event_map() 2158 size_t nelm = sz / sizeof(s32); in edma_setup_info_from_dt() local 2161 memcpy_ch = devm_kcalloc(dev, nelm + 1, sizeof(s32), in edma_setup_info_from_dt() 2167 (u32 *)memcpy_ch, nelm); in edma_setup_info_from_dt() [all …]
|
/openbmc/u-boot/fs/zfs/ |
H A D | zfs.c | 1527 int nelm; in nvlist_find_value() local 1540 nelm = be32_to_cpu(*(uint32_t *) nvpair); in nvlist_find_value() 1541 if (nelm < 1) { in nvlist_find_value() 1552 *nelm_out = nelm; in nvlist_find_value() 1632 size_t nelm, size; in zfs_nvlist_lookup_nvlist_array_get_nelm() local 1636 &size, &nelm); in zfs_nvlist_lookup_nvlist_array_get_nelm() 1639 return nelm; in zfs_nvlist_lookup_nvlist_array_get_nelm() 1651 size_t nelm; in zfs_nvlist_lookup_nvlist_array() local 1654 &size, &nelm); in zfs_nvlist_lookup_nvlist_array() 1657 if (index >= nelm) { in zfs_nvlist_lookup_nvlist_array()
|