/linux/fs/afs/ |
H A D | dir_edit.c | 24 static int afs_find_contig_bits(union afs_xdr_dir_block *block, unsigned int nr_slots) in afs_find_contig_bits() argument 40 mask = (1 << nr_slots) - 1; in afs_find_contig_bits() 53 if (bit > 64 - nr_slots) in afs_find_contig_bits() 70 int bit, unsigned int nr_slots) in afs_set_contig_bits() argument 74 mask = (1 << nr_slots) - 1; in afs_set_contig_bits() 91 int bit, unsigned int nr_slots) in afs_clear_contig_bits() argument 95 mask = (1 << nr_slots) - 1; in afs_clear_contig_bits() 266 iter.nr_slots = afs_dir_calc_slots(name->len); in afs_edit_dir_add() 284 meta->meta.alloc_ctrs[b] < iter.nr_slots) in afs_edit_dir_add() 311 slot = afs_find_contig_bits(block, iter.nr_slots); in afs_edit_dir_add() [all …]
|
H A D | dir_search.c | 59 iter->nr_slots = afs_dir_calc_slots(name->len); in afs_dir_init_iter() 148 iter->bucket, resv, slot, slot + iter->nr_slots - 1); in afs_dir_search_bucket() 157 if (slot + iter->nr_slots <= AFS_DIR_SLOTS_PER_BLOCK && in afs_dir_search_bucket()
|
H A D | dir.c | 373 unsigned int blknum, base, hdr, pos, next, nr_slots; in afs_dir_iterate_block() local 410 nr_slots = afs_dir_calc_slots(nlen); in afs_dir_iterate_block() 411 next = slot + nr_slots; in afs_dir_iterate_block() 419 for (tmp = 1; tmp < nr_slots; tmp++) { in afs_dir_iterate_block() 424 base + slot, tmp, nr_slots); in afs_dir_iterate_block()
|
H A D | internal.h | 986 u8 nr_slots; member
|
/linux/drivers/net/wireless/broadcom/b43legacy/ |
H A D | dma.c | 57 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 …]
|
H A D | dma.h | 135 int nr_slots; member
|
/linux/drivers/net/wireless/broadcom/b43/ |
H A D | dma.c | 97 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 …]
|
H A D | dma.h | 241 int nr_slots; member
|
/linux/fs/ |
H A D | pipe.c | 1269 int pipe_resize_ring(struct pipe_inode_info *pipe, unsigned int nr_slots) in pipe_resize_ring() argument 1274 bufs = kcalloc(nr_slots, sizeof(*bufs), in pipe_resize_ring() 1285 if (nr_slots < n) { in pipe_resize_ring() 1316 pipe->ring_size = nr_slots; in pipe_resize_ring() 1317 if (pipe->max_usage > nr_slots) in pipe_resize_ring() 1318 pipe->max_usage = nr_slots; in pipe_resize_ring() 1323 pipe->max_usage = nr_slots; in pipe_resize_ring() 1324 pipe->nr_accounted = nr_slots; in pipe_resize_ring() 1341 unsigned int nr_slots, size; in pipe_set_size() local 1348 nr_slots = size >> PAGE_SHIFT; in pipe_set_size() [all …]
|
/linux/drivers/md/ |
H A D | dm-switch.c | 81 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/fs/fat/ |
H A D | namei_vfat.c | 579 struct msdos_dir_slot *slots, int *nr_slots) in vfat_build_slots() argument 593 *nr_slots = 0; in vfat_build_slots() 621 *nr_slots = usize / 13; in vfat_build_slots() 622 for (ps = slots, i = *nr_slots; i > 0; i--, ps++) { in vfat_build_slots() 638 (*nr_slots)++; in vfat_build_slots() 659 int err, nr_slots; in vfat_add_entry() local 670 slots, &nr_slots); in vfat_add_entry() 674 err = fat_add_entries(dir, slots, nr_slots, sinfo); in vfat_add_entry()
|
H A D | fat.h | 139 int nr_slots; /* number of slots + 1(de) in filename */ member 340 extern int fat_add_entries(struct inode *dir, void *slots, int nr_slots,
|
/linux/drivers/gpu/host1x/ |
H A D | dev.h | 47 u32 syncpt_incrs, u32 syncval, u32 nr_slots); 320 u32 syncval, u32 nr_slots) in host1x_hw_cdma_timeout_cpu_incr() argument 323 nr_slots); in host1x_hw_cdma_timeout_cpu_incr()
|
/linux/arch/arm/mach-omap1/ |
H A D | board-sx1-mmc.c | 40 .nr_slots = 1,
|
H A D | board-palmte.c | 189 .nr_slots = 1,
|
/linux/arch/arm/mach-omap2/ |
H A D | board-n8x0.c | 383 .nr_slots = 0, 431 mmc1_data.nr_slots = 2; in n8x0_mmc_init()
|
/linux/include/linux/platform_data/ |
H A D | mmc-omap.h | 17 unsigned nr_slots:2; member
|
/linux/drivers/net/xen-netback/ |
H A D | netback.c | 390 unsigned int nr_slots; in xenvif_get_requests() local 395 nr_slots = shinfo->nr_frags + frag_overflow + 1; in xenvif_get_requests() 450 nr_slots--; in xenvif_get_requests() 461 for (shinfo->nr_frags = 0; nr_slots > 0 && shinfo->nr_frags < MAX_SKB_FRAGS; in xenvif_get_requests() 462 nr_slots--) { in xenvif_get_requests() 483 if (nr_slots > 0) { in xenvif_get_requests() 488 for (shinfo->nr_frags = 0; shinfo->nr_frags < nr_slots; ++txp) { in xenvif_get_requests()
|
/linux/drivers/pci/hotplug/ |
H A D | acpiphp.h | 63 int nr_slots; member
|
H A D | acpiphp_glue.c | 308 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/kernel/dma/ |
H A D | swiotlb.c | 247 static inline unsigned long nr_slots(u64 val) in nr_slots() function 1026 unsigned int nslots = nr_slots(alloc_size), stride; in swiotlb_search_pool_area() 1083 nr_slots(tbl_dma_addr), in swiotlb_search_pool_area() 1209 nslabs = nr_slots(alloc_size); in swiotlb_find_slots() 1427 for (i = 0; i < (nr_slots(size) - pad_slots); i++) in swiotlb_tbl_map_single() 1454 nslots = nr_slots(mem->slots[index].alloc_size + offset); in swiotlb_release_slots()
|
/linux/include/linux/ |
H A D | pipe_fs_i.h | 341 int pipe_resize_ring(struct pipe_inode_info *pipe, unsigned int nr_slots);
|
/linux/net/netfilter/ |
H A D | nf_conntrack_core.c | 2511 unsigned int nr_slots, i; in nf_ct_alloc_hashtable() local 2517 nr_slots = *sizep = roundup(*sizep, PAGE_SIZE / sizeof(struct hlist_nulls_head)); in nf_ct_alloc_hashtable() 2519 if (nr_slots > (INT_MAX / sizeof(struct hlist_nulls_head))) in nf_ct_alloc_hashtable() 2522 hash = kvcalloc(nr_slots, sizeof(struct hlist_nulls_head), GFP_KERNEL); in nf_ct_alloc_hashtable() 2525 for (i = 0; i < nr_slots; i++) in nf_ct_alloc_hashtable()
|
/linux/kernel/bpf/ |
H A D | verifier.c | 595 static bool is_spi_bounds_valid(struct bpf_func_state *state, int spi, int nr_slots) in is_spi_bounds_valid() argument 606 return spi - nr_slots + 1 >= 0 && spi < allocated_slots; in is_spi_bounds_valid() 610 const char *obj_kind, int nr_slots) in stack_slot_obj_get_spi() argument 626 if (spi + 1 < nr_slots) { in stack_slot_obj_get_spi() 631 if (!is_spi_bounds_valid(func(env, reg), spi, nr_slots)) in stack_slot_obj_get_spi() 641 static int iter_get_spi(struct bpf_verifier_env *env, struct bpf_reg_state *reg, int nr_slots) in iter_get_spi() argument 643 return stack_slot_obj_get_spi(env, reg, "iter", nr_slots); in iter_get_spi() 1015 struct btf *btf, u32 btf_id, int nr_slots) in mark_stack_slots_iter() argument 1020 spi = iter_get_spi(env, reg, nr_slots); in mark_stack_slots_iter() 1028 for (i = 0; i < nr_slots; i++) { in mark_stack_slots_iter() [all …]
|
/linux/arch/x86/kvm/ |
H A D | x86.c | 13059 int nr_slots; in kvm_mmu_update_cpu_dirty_logging() local 13064 nr_slots = atomic_read(&kvm->nr_memslots_dirty_logging); in kvm_mmu_update_cpu_dirty_logging() 13065 if ((enable && nr_slots == 1) || !nr_slots) in kvm_mmu_update_cpu_dirty_logging()
|