| /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 …]
|
| /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/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(nr_slots, in alloc_region_table()
|
| /linux/drivers/gpu/host1x/ |
| H A D | dev.h | 47 u32 syncpt_incrs, u32 syncval, u32 nr_slots); 323 u32 syncval, u32 nr_slots) in host1x_hw_cdma_timeout_cpu_incr() argument 326 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/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 | 391 unsigned int nr_slots; in xenvif_get_requests() local 396 nr_slots = shinfo->nr_frags + frag_overflow + 1; in xenvif_get_requests() 451 nr_slots--; in xenvif_get_requests() 462 for (shinfo->nr_frags = 0; nr_slots > 0 && shinfo->nr_frags < MAX_SKB_FRAGS; in xenvif_get_requests() 463 nr_slots--) { in xenvif_get_requests() 484 if (nr_slots > 0) { in xenvif_get_requests() 489 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 | 246 static inline unsigned long nr_slots(u64 val) in nr_slots() function 1044 unsigned int nslots = nr_slots(alloc_size), stride; in swiotlb_search_pool_area() 1101 nr_slots(tbl_dma_addr), in swiotlb_search_pool_area() 1227 nslabs = nr_slots(alloc_size); in swiotlb_find_slots() 1445 for (i = 0; i < (nr_slots(size) - pad_slots); i++) in swiotlb_tbl_map_single() 1472 nslots = nr_slots(mem->slots[index].alloc_size + offset); in swiotlb_release_slots()
|
| /linux/include/linux/ |
| H A D | pipe_fs_i.h | 332 int pipe_resize_ring(struct pipe_inode_info *pipe, unsigned int nr_slots);
|
| /linux/kernel/bpf/ |
| H A D | verifier.c | 517 static bool is_spi_bounds_valid(struct bpf_func_state *state, int spi, int nr_slots) in is_spi_bounds_valid() argument 528 return spi - nr_slots + 1 >= 0 && spi < allocated_slots; in is_spi_bounds_valid() 532 const char *obj_kind, int nr_slots) in stack_slot_obj_get_spi() argument 548 if (spi + 1 < nr_slots) { in stack_slot_obj_get_spi() 553 if (!is_spi_bounds_valid(bpf_func(env, reg), spi, nr_slots)) in stack_slot_obj_get_spi() 563 static int iter_get_spi(struct bpf_verifier_env *env, struct bpf_reg_state *reg, int nr_slots) in iter_get_spi() argument 565 return stack_slot_obj_get_spi(env, reg, "iter", nr_slots); in iter_get_spi() 940 struct btf *btf, u32 btf_id, int nr_slots) in mark_stack_slots_iter() argument 945 spi = iter_get_spi(env, reg, nr_slots); in mark_stack_slots_iter() 953 for (i = 0; i < nr_slots; i++) { in mark_stack_slots_iter() [all …]
|
| /linux/arch/x86/kvm/ |
| H A D | x86.c | 13696 int nr_slots; in kvm_mmu_update_cpu_dirty_logging() local 13701 nr_slots = atomic_read(&kvm->nr_memslots_dirty_logging); in kvm_mmu_update_cpu_dirty_logging() 13702 if ((enable && nr_slots == 1) || !nr_slots) in kvm_mmu_update_cpu_dirty_logging()
|