Home
last modified time | relevance | path

Searched refs:nr_slots (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v6.6/fs/fat/
Ddir.c281 wchar_t **unicode, unsigned char *nr_slots) in fat_parse_long() argument
301 *nr_slots = slots; in fat_parse_long()
335 *nr_slots = 0; in fat_parse_long()
470 unsigned char nr_slots; in fat_search_long() local
481 nr_slots = 0; in fat_search_long()
490 &unicode, &nr_slots); in fat_search_long()
515 if (nr_slots) { in fat_search_long()
527 nr_slots++; /* include the de */ in fat_search_long()
528 sinfo->slot_off = cpos - nr_slots * sizeof(*de); in fat_search_long()
529 sinfo->nr_slots = nr_slots; in fat_search_long()
[all …]
Dnamei_vfat.c582 struct msdos_dir_slot *slots, int *nr_slots) in vfat_build_slots() argument
596 *nr_slots = 0; in vfat_build_slots()
624 *nr_slots = usize / 13; in vfat_build_slots()
625 for (ps = slots, i = *nr_slots; i > 0; i--, ps++) { in vfat_build_slots()
641 (*nr_slots)++; in vfat_build_slots()
662 int err, nr_slots; in vfat_add_entry() local
673 slots, &nr_slots); in vfat_add_entry()
677 err = fat_add_entries(dir, slots, nr_slots, sinfo); in vfat_add_entry()
Dfat.h136 int nr_slots; /* number of slots + 1(de) in filename */ member
337 extern int fat_add_entries(struct inode *dir, void *slots, int nr_slots,
/Linux-v6.6/drivers/net/wireless/broadcom/b43legacy/
Ddma.c57 B43legacy_WARN_ON(!(slot >= 0 && slot < ring->nr_slots)); in op32_fill_descriptor()
65 if (slot == ring->nr_slots - 1) in op32_fill_descriptor()
119 return (ring->nr_slots - ring->used_slots); in free_slots()
124 B43legacy_WARN_ON(!(slot >= -1 && slot <= ring->nr_slots - 1)); in next_slot()
125 if (slot == ring->nr_slots - 1) in next_slot()
476 for (i = 0; i < ring->nr_slots; i++) { in alloc_initial_descbuffers()
487 ring->used_slots = ring->nr_slots; in alloc_initial_descbuffers()
568 for (i = 0; i < ring->nr_slots; i++) { in free_all_descbuffers()
610 int nr_slots; in b43legacy_setup_dmaring() local
619 nr_slots = B43legacy_RXRING_SLOTS; in b43legacy_setup_dmaring()
[all …]
Ddma.h135 int nr_slots; member
/Linux-v6.6/drivers/net/wireless/broadcom/b43/
Ddma.c97 B43_WARN_ON(!(slot >= 0 && slot < ring->nr_slots)); in op32_fill_descriptor()
103 if (slot == ring->nr_slots - 1) in op32_fill_descriptor()
189 B43_WARN_ON(!(slot >= 0 && slot < ring->nr_slots)); in op64_fill_descriptor()
195 if (slot == ring->nr_slots - 1) in op64_fill_descriptor()
259 return (ring->nr_slots - ring->used_slots); in free_slots()
264 B43_WARN_ON(!(slot >= -1 && slot <= ring->nr_slots - 1)); in next_slot()
265 if (slot == ring->nr_slots - 1) in next_slot()
272 B43_WARN_ON(!(slot >= 0 && slot <= ring->nr_slots - 1)); in prev_slot()
274 return ring->nr_slots - 1; in prev_slot()
642 for (i = 0; i < ring->nr_slots; i++) { in alloc_initial_descbuffers()
[all …]
Ddma.h241 int nr_slots; member
/Linux-v6.6/fs/
Dpipe.c1257 int pipe_resize_ring(struct pipe_inode_info *pipe, unsigned int nr_slots) in pipe_resize_ring() argument
1262 bufs = kcalloc(nr_slots, sizeof(*bufs), in pipe_resize_ring()
1273 if (nr_slots < n) { in pipe_resize_ring()
1304 pipe->ring_size = nr_slots; in pipe_resize_ring()
1305 if (pipe->max_usage > nr_slots) in pipe_resize_ring()
1306 pipe->max_usage = nr_slots; in pipe_resize_ring()
1324 unsigned int nr_slots, size; in pipe_set_size() local
1333 nr_slots = size >> PAGE_SHIFT; in pipe_set_size()
1335 if (!nr_slots) in pipe_set_size()
1345 if (nr_slots > pipe->max_usage && in pipe_set_size()
[all …]
/Linux-v6.6/fs/afs/
Ddir_edit.c23 static int afs_find_contig_bits(union afs_xdr_dir_block *block, unsigned int nr_slots) in afs_find_contig_bits() argument
39 mask = (1 << nr_slots) - 1; in afs_find_contig_bits()
52 if (bit > 64 - nr_slots) in afs_find_contig_bits()
69 int bit, unsigned int nr_slots) in afs_set_contig_bits() argument
73 mask = (1 << nr_slots) - 1; in afs_set_contig_bits()
90 int bit, unsigned int nr_slots) in afs_clear_contig_bits() argument
94 mask = (1 << nr_slots) - 1; in afs_clear_contig_bits()
Ddir.c405 unsigned offset, next, curr, nr_slots; in afs_dir_iterate_block() local
447 nr_slots = afs_dir_calc_slots(nlen); in afs_dir_iterate_block()
448 next = offset + nr_slots; in afs_dir_iterate_block()
459 for (tmp = 1; tmp < nr_slots; tmp++) { in afs_dir_iterate_block()
465 offset, tmp, nr_slots); in afs_dir_iterate_block()
/Linux-v6.6/drivers/md/
Ddm-switch.c81 sector_t nr_slots; in alloc_region_table() local
108 nr_slots = nr_regions; in alloc_region_table()
109 if (sector_div(nr_slots, sctx->region_entries_per_slot)) in alloc_region_table()
110 nr_slots++; in alloc_region_table()
112 if (nr_slots > ULONG_MAX / sizeof(region_table_slot_t)) { in alloc_region_table()
117 sctx->region_table = vmalloc(array_size(nr_slots, in alloc_region_table()
/Linux-v6.6/drivers/gpu/host1x/
Ddev.h46 u32 syncpt_incrs, u32 syncval, u32 nr_slots);
311 u32 syncval, u32 nr_slots) in host1x_hw_cdma_timeout_cpu_incr() argument
314 nr_slots); in host1x_hw_cdma_timeout_cpu_incr()
/Linux-v6.6/arch/arm/mach-omap1/
Dboard-sx1-mmc.c40 .nr_slots = 1,
Dboard-palmte.c194 .nr_slots = 1,
Dboard-nokia770.c201 .nr_slots = 1,
/Linux-v6.6/drivers/mmc/host/
Domap.c166 int nr_slots; member
284 for (i = 0; i < host->nr_slots; i++) { in mmc_omap_release_slot()
873 BUG_ON(num >= host->nr_slots); in omap_mmc_notify_cover_event()
876 if (host->nr_slots == 0 || !host->slots[num]) in omap_mmc_notify_cover_event()
1369 if (pdata->nr_slots == 0) { in mmc_omap_probe()
1466 host->nr_slots = pdata->nr_slots; in mmc_omap_probe()
1475 for (i = 0; i < pdata->nr_slots; i++) { in mmc_omap_probe()
1516 for (i = 0; i < host->nr_slots; i++) in mmc_omap_remove()
Datmel-mci.c2483 unsigned int nr_slots; in atmci_probe() local
2568 nr_slots = 0; in atmci_probe()
2574 nr_slots++; in atmci_probe()
2582 nr_slots++; in atmci_probe()
2589 if (!nr_slots) { in atmci_probe()
2607 host->mapbase, irq, nr_slots); in atmci_probe()
/Linux-v6.6/include/linux/platform_data/
Dmmc-omap.h17 unsigned nr_slots:2; member
/Linux-v6.6/arch/arm/mach-omap2/
Dboard-n8x0.c386 .nr_slots = 0,
434 mmc1_data.nr_slots = 2; in n8x0_mmc_init()
/Linux-v6.6/drivers/pci/hotplug/
Dacpiphp.h63 int nr_slots; member
Dacpiphp_glue.c308 bridge->nr_slots++; in acpiphp_add_context()
311 sun = bridge->nr_slots; in acpiphp_add_context()
319 bridge->nr_slots--; in acpiphp_add_context()
/Linux-v6.6/kernel/dma/
Dswiotlb.c244 static inline unsigned long nr_slots(u64 val) in nr_slots() function
978 unsigned int nslots = nr_slots(alloc_size), stride; in swiotlb_area_find_slots()
1021 nr_slots(tbl_dma_addr), in swiotlb_area_find_slots()
1136 nslabs = nr_slots(alloc_size); in swiotlb_find_slots()
1300 for (i = 0; i < nr_slots(alloc_size + offset); i++) in swiotlb_tbl_map_single()
1320 int nslots = nr_slots(mem->slots[index].alloc_size + offset); in swiotlb_release_slots()
/Linux-v6.6/drivers/net/xen-netback/
Dnetback.c394 unsigned int nr_slots; in xenvif_get_requests() local
399 nr_slots = shinfo->nr_frags + frag_overflow + 1; in xenvif_get_requests()
454 nr_slots--; in xenvif_get_requests()
465 for (shinfo->nr_frags = 0; nr_slots > 0 && shinfo->nr_frags < MAX_SKB_FRAGS; in xenvif_get_requests()
466 shinfo->nr_frags++, gop++, nr_slots--) { in xenvif_get_requests()
479 if (nr_slots > 0) { in xenvif_get_requests()
484 for (shinfo->nr_frags = 0; shinfo->nr_frags < nr_slots; in xenvif_get_requests()
/Linux-v6.6/include/linux/
Dpipe_fs_i.h271 int pipe_resize_ring(struct pipe_inode_info *pipe, unsigned int nr_slots);
/Linux-v6.6/drivers/gpu/host1x/hw/
Dcdma_hw.c29 u32 syncpt_incrs, u32 syncval, u32 nr_slots) in cdma_timeout_cpu_incr() argument

12