/openbmc/linux/lib/ |
H A D | sbitmap.c | 16 sb->alloc_hint = alloc_percpu_gfp(unsigned int, flags); in init_alloc_hint() 17 if (!sb->alloc_hint) in init_alloc_hint() 24 *per_cpu_ptr(sb->alloc_hint, i) = get_random_u32_below(depth); in init_alloc_hint() 34 hint = this_cpu_read(*sb->alloc_hint); in update_alloc_hint_before_get() 37 this_cpu_write(*sb->alloc_hint, hint); in update_alloc_hint_before_get() 50 this_cpu_write(*sb->alloc_hint, 0); in update_alloc_hint_after_get() 56 this_cpu_write(*sb->alloc_hint, hint); in update_alloc_hint_after_get() 64 unsigned int depth, unsigned int alloc_hint, bool wrap) in sbitmap_deferred_clear() argument 82 if (!wrap && alloc_hint) in sbitmap_deferred_clear() 83 word_mask &= ~((1UL << alloc_hint) - 1); in sbitmap_deferred_clear() [all …]
|
/openbmc/linux/io_uring/ |
H A D | filetable.h | 26 table->alloc_hint = bit; in io_file_bitmap_clear() 33 table->alloc_hint = bit + 1; in io_file_bitmap_set() 71 ctx->file_table.alloc_hint = ctx->file_alloc_start; in io_reset_alloc_hint()
|
H A D | filetable.c | 26 ret = find_next_zero_bit(table->bitmap, nr, table->alloc_hint); in io_file_bitmap_get() 30 if (table->alloc_hint == ctx->file_alloc_start) in io_file_bitmap_get() 32 nr = table->alloc_hint; in io_file_bitmap_get() 33 table->alloc_hint = ctx->file_alloc_start; in io_file_bitmap_get()
|
/openbmc/linux/include/linux/ |
H A D | sbitmap.h | 84 unsigned int __percpu *alloc_hint; member 171 gfp_t flags, int node, bool round_robin, bool alloc_hint); 187 free_percpu(sb->alloc_hint); in sbitmap_free() 349 if (likely(sb->alloc_hint && !sb->round_robin && bitnr < sb->depth)) in sbitmap_put() 350 *raw_cpu_ptr(sb->alloc_hint) = bitnr; in sbitmap_put()
|
H A D | io_uring_types.h | 34 unsigned int alloc_hint; member
|
/openbmc/qemu/system/ |
H A D | dma-helpers.c | 29 void qemu_sglist_init(QEMUSGList *qsg, DeviceState *dev, int alloc_hint, in qemu_sglist_init() argument 32 qsg->sg = g_new(ScatterGatherEntry, alloc_hint); in qemu_sglist_init() 34 qsg->nalloc = alloc_hint; in qemu_sglist_init()
|
H A D | physmem.c | 178 static unsigned alloc_hint = 16; in phys_map_node_reserve() local 180 map->nodes_nb_alloc = MAX(alloc_hint, map->nodes_nb + nodes); in phys_map_node_reserve() 182 alloc_hint = map->nodes_nb_alloc; in phys_map_node_reserve()
|
/openbmc/qemu/include/hw/pci/ |
H A D | pci_device.h | 341 int alloc_hint) in pci_dma_sglist_init() argument 343 qemu_sglist_init(qsg, DEVICE(dev), alloc_hint, pci_get_address_space(dev)); in pci_dma_sglist_init()
|
/openbmc/linux/fs/btrfs/ |
H A D | btrfs_inode.h | 500 loff_t actual_len, u64 *alloc_hint); 504 loff_t actual_len, u64 *alloc_hint);
|
H A D | inode.c | 1099 u64 *alloc_hint) in submit_one_async_extent() argument 1137 0, *alloc_hint, &ins, 1, 1); in submit_one_async_extent() 1188 *alloc_hint = ins.objectid + ins.offset; in submit_one_async_extent() 1220 u64 alloc_hint = 0; in get_extent_allocation_hint() local 1234 alloc_hint = em->block_start; in get_extent_allocation_hint() 1238 alloc_hint = em->block_start; in get_extent_allocation_hint() 1244 return alloc_hint; in get_extent_allocation_hint() 1282 u64 alloc_hint = 0; in cow_file_range() local 1357 alloc_hint = get_extent_allocation_hint(inode, start, num_bytes); in cow_file_range() 1380 min_alloc_size, 0, alloc_hint, in cow_file_range() [all …]
|
H A D | file.c | 2880 u64 alloc_hint = 0; in btrfs_zero_range() local 2925 alloc_hint = em->block_start + em->len; in btrfs_zero_range() 3028 offset + len, &alloc_hint); in btrfs_zero_range() 3060 u64 alloc_hint = 0; in btrfs_fallocate() local 3200 offset + len, &alloc_hint); in btrfs_fallocate()
|
H A D | block-group.c | 3122 u64 alloc_hint = 0; in cache_save_setup() local 3250 &alloc_hint); in cache_save_setup()
|
H A D | relocation.c | 2767 u64 alloc_hint = 0; in prealloc_file_extent_cluster() local 2858 end + 1, &alloc_hint); in prealloc_file_extent_cluster()
|
/openbmc/qemu/util/ |
H A D | iov.c | 286 void qemu_iovec_init(QEMUIOVector *qiov, int alloc_hint) in qemu_iovec_init() argument 288 qiov->iov = g_new(struct iovec, alloc_hint); in qemu_iovec_init() 290 qiov->nalloc = alloc_hint; in qemu_iovec_init()
|
/openbmc/qemu/include/qemu/ |
H A D | iov.h | 250 void qemu_iovec_init(QEMUIOVector *qiov, int alloc_hint);
|
/openbmc/qemu/include/sysemu/ |
H A D | dma.h | 284 void qemu_sglist_init(QEMUSGList *qsg, DeviceState *dev, int alloc_hint,
|
/openbmc/linux/include/linux/ceph/ |
H A D | rados.h | 538 } __attribute__ ((packed)) alloc_hint; member
|
H A D | osd_client.h | 194 } alloc_hint; member
|
/openbmc/linux/net/ceph/ |
H A D | osd_client.c | 950 op->alloc_hint.expected_object_size = expected_object_size; in osd_req_op_alloc_hint_init() 951 op->alloc_hint.expected_write_size = expected_write_size; in osd_req_op_alloc_hint_init() 952 op->alloc_hint.flags = flags; in osd_req_op_alloc_hint_init() 1027 dst->alloc_hint.expected_object_size = in osd_req_encode_op() 1028 cpu_to_le64(src->alloc_hint.expected_object_size); in osd_req_encode_op() 1029 dst->alloc_hint.expected_write_size = in osd_req_encode_op() 1030 cpu_to_le64(src->alloc_hint.expected_write_size); in osd_req_encode_op() 1031 dst->alloc_hint.flags = cpu_to_le32(src->alloc_hint.flags); in osd_req_encode_op()
|