/linux-6.6.21/kernel/bpf/ |
D | bpf_local_storage.c | 21 select_bucket(struct bpf_local_storage_map *smap, in select_bucket() argument 24 return &smap->buckets[hash_ptr(selem, smap->bucket_log)]; in select_bucket() 27 static int mem_charge(struct bpf_local_storage_map *smap, void *owner, u32 size) in mem_charge() argument 29 struct bpf_map *map = &smap->map; in mem_charge() 34 return map->ops->map_local_storage_charge(smap, owner, size); in mem_charge() 37 static void mem_uncharge(struct bpf_local_storage_map *smap, void *owner, in mem_uncharge() argument 40 struct bpf_map *map = &smap->map; in mem_uncharge() 43 map->ops->map_local_storage_uncharge(smap, owner, size); in mem_uncharge() 47 owner_storage(struct bpf_local_storage_map *smap, void *owner) in owner_storage() argument 49 struct bpf_map *map = &smap->map; in owner_storage() [all …]
|
D | stackmap.c | 45 static int prealloc_elems_and_freelist(struct bpf_stack_map *smap) in prealloc_elems_and_freelist() argument 48 (u64)smap->map.value_size; in prealloc_elems_and_freelist() 51 smap->elems = bpf_map_area_alloc(elem_size * smap->map.max_entries, in prealloc_elems_and_freelist() 52 smap->map.numa_node); in prealloc_elems_and_freelist() 53 if (!smap->elems) in prealloc_elems_and_freelist() 56 err = pcpu_freelist_init(&smap->freelist); in prealloc_elems_and_freelist() 60 pcpu_freelist_populate(&smap->freelist, smap->elems, elem_size, in prealloc_elems_and_freelist() 61 smap->map.max_entries); in prealloc_elems_and_freelist() 65 bpf_map_area_free(smap->elems); in prealloc_elems_and_freelist() 73 struct bpf_stack_map *smap; in stack_map_alloc() local [all …]
|
D | bpf_inode_storage.c | 41 struct bpf_local_storage_map *smap; in inode_storage_lookup() local 53 smap = (struct bpf_local_storage_map *)map; in inode_storage_lookup() 54 return bpf_local_storage_lookup(inode_storage, smap, cacheit_lockit); in inode_storage_lookup()
|
D | bpf_cgrp_storage.c | 67 struct bpf_local_storage_map *smap; in cgroup_storage_lookup() local 74 smap = (struct bpf_local_storage_map *)map; in cgroup_storage_lookup() 75 return bpf_local_storage_lookup(cgroup_storage, smap, cacheit_lockit); in cgroup_storage_lookup()
|
D | bpf_task_storage.c | 61 struct bpf_local_storage_map *smap; in task_storage_lookup() local 68 smap = (struct bpf_local_storage_map *)map; in task_storage_lookup() 69 return bpf_local_storage_lookup(task_storage, smap, cacheit_lockit); in task_storage_lookup()
|
/linux-6.6.21/tools/testing/selftests/mm/ |
D | map_populate.c | 31 static int parent_f(int sock, unsigned long *smap, int child) in parent_f() argument 38 *smap = 0x22222BAD; in parent_f() 39 ret = msync(smap, MMAP_SZ, MS_SYNC); in parent_f() 51 static int child_f(int sock, unsigned long *smap, int fd) in child_f() argument 55 smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, in child_f() 57 BUG_ON(smap == MAP_FAILED, "mmap()"); in child_f() 59 BUG_ON(*smap != 0xdeadbabe, "MAP_PRIVATE | MAP_POPULATE changed file"); in child_f() 67 BUG_ON(*smap == 0x22222BAD, "MAP_POPULATE didn't COW private page"); in child_f() 68 BUG_ON(*smap != 0xdeadbabe, "mapping was corrupted"); in child_f() 77 unsigned long *smap; in main() local [all …]
|
/linux-6.6.21/net/core/ |
D | bpf_sk_storage.c | 24 struct bpf_local_storage_map *smap; in bpf_sk_storage_lookup() local 31 smap = (struct bpf_local_storage_map *)map; in bpf_sk_storage_lookup() 32 return bpf_local_storage_lookup(sk_storage, smap, cacheit_lockit); in bpf_sk_storage_lookup() 135 struct bpf_local_storage_map *smap, in bpf_sk_storage_clone_elem() argument 140 copy_selem = bpf_selem_alloc(smap, newsk, NULL, true, GFP_ATOMIC); in bpf_sk_storage_clone_elem() 144 if (btf_record_has_field(smap->map.record, BPF_SPIN_LOCK)) in bpf_sk_storage_clone_elem() 145 copy_map_value_locked(&smap->map, SDATA(copy_selem)->data, in bpf_sk_storage_clone_elem() 148 copy_map_value(&smap->map, SDATA(copy_selem)->data, in bpf_sk_storage_clone_elem() 171 struct bpf_local_storage_map *smap; in bpf_sk_storage_clone() local 174 smap = rcu_dereference(SDATA(selem)->smap); in bpf_sk_storage_clone() [all …]
|
/linux-6.6.21/include/linux/ |
D | bpf_local_storage.h | 71 struct bpf_local_storage_map __rcu *smap; member 90 struct bpf_local_storage_map __rcu *smap; member 134 struct bpf_local_storage_map *smap, 153 void bpf_selem_link_map(struct bpf_local_storage_map *smap, 157 bpf_selem_alloc(struct bpf_local_storage_map *smap, void *owner, void *value, 161 struct bpf_local_storage_map *smap, 166 struct bpf_local_storage_map *smap, 171 bpf_local_storage_update(void *owner, struct bpf_local_storage_map *smap,
|
D | bpf.h | 139 int (*map_local_storage_charge)(struct bpf_local_storage_map *smap, 141 void (*map_local_storage_uncharge)(struct bpf_local_storage_map *smap,
|
/linux-6.6.21/fs/btrfs/ |
D | bio.c | 497 struct btrfs_io_stripe *smap, int mirror_num) in __btrfs_submit_bio() argument 502 bio->bi_iter.bi_sector = smap->physical >> SECTOR_SHIFT; in __btrfs_submit_bio() 504 btrfs_bio(bio)->orig_physical = smap->physical; in __btrfs_submit_bio() 505 bio->bi_private = smap->dev; in __btrfs_submit_bio() 507 btrfs_submit_dev_bio(smap->dev, bio); in __btrfs_submit_bio() 540 struct btrfs_io_stripe smap; member 590 __btrfs_submit_bio(bio, async->bioc, &async->smap, async->mirror_num); in run_one_async_done() 625 struct btrfs_io_stripe *smap, int mirror_num) in btrfs_wq_submit_bio() argument 636 async->smap = *smap; in btrfs_wq_submit_bio() 656 struct btrfs_io_stripe smap; in btrfs_submit_chunk() local [all …]
|
D | volumes.h | 599 struct btrfs_io_stripe *smap, int *mirror_num_ret, 602 struct btrfs_io_stripe *smap, u64 logical,
|
D | volumes.c | 6257 struct btrfs_io_stripe *smap, int *mirror_num_ret, in btrfs_map_block() argument 6427 if (smap && num_alloc_stripes == 1 && in btrfs_map_block() 6429 set_io_stripe(smap, map, stripe_index, stripe_offset, stripe_nr); in btrfs_map_block() 8034 struct btrfs_io_stripe *smap, in map_raid56_repair_block() argument 8049 smap->dev = bioc->stripes[i].dev; in map_raid56_repair_block() 8050 smap->physical = bioc->stripes[i].physical + in map_raid56_repair_block() 8069 struct btrfs_io_stripe *smap, u64 logical, in btrfs_map_repair_block() argument 8080 &bioc, smap, &mirror_ret, true); in btrfs_map_repair_block() 8093 map_raid56_repair_block(bioc, smap, logical); in btrfs_map_repair_block() 8098 smap->dev = bioc->stripes[mirror_num - 1].dev; in btrfs_map_repair_block() [all …]
|
D | check-integrity.c | 1463 struct btrfs_io_stripe smap, *map; in btrfsic_map_block() local 1484 map = &smap; in btrfsic_map_block()
|
/linux-6.6.21/fs/nilfs2/ |
D | page.c | 241 struct address_space *smap) in nilfs_copy_dirty_pages() argument 250 if (!filemap_get_folios_tag(smap, &index, (pgoff_t)-1, in nilfs_copy_dirty_pages() 296 struct address_space *smap) in nilfs_copy_back_pages() argument 304 n = filemap_get_folios(smap, &start, ~0UL, &fbatch); in nilfs_copy_back_pages() 325 xa_lock_irq(&smap->i_pages); in nilfs_copy_back_pages() 326 f = __xa_erase(&smap->i_pages, index); in nilfs_copy_back_pages() 328 smap->nrpages--; in nilfs_copy_back_pages() 329 xa_unlock_irq(&smap->i_pages); in nilfs_copy_back_pages()
|
/linux-6.6.21/fs/xfs/ |
D | xfs_reflink.c | 1157 struct xfs_bmbt_irec smap; in xfs_reflink_remap_extent() local 1209 &smap, &nimaps, 0); in xfs_reflink_remap_extent() 1212 ASSERT(nimaps == 1 && smap.br_startoff == dmap->br_startoff); in xfs_reflink_remap_extent() 1213 smap_real = xfs_bmap_is_real_extent(&smap); in xfs_reflink_remap_extent() 1219 dmap->br_blockcount = min(dmap->br_blockcount, smap.br_blockcount); in xfs_reflink_remap_extent() 1220 ASSERT(dmap->br_blockcount == smap.br_blockcount); in xfs_reflink_remap_extent() 1222 trace_xfs_reflink_remap_extent_dest(ip, &smap); in xfs_reflink_remap_extent() 1229 if (dmap->br_startblock == smap.br_startblock) { in xfs_reflink_remap_extent() 1230 if (dmap->br_state != smap.br_state) in xfs_reflink_remap_extent() 1237 smap.br_state == XFS_EXT_UNWRITTEN) in xfs_reflink_remap_extent() [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | local_storage.c | 99 if (!local_storage || local_storage->smap) in BPF_PROG() 175 if (!sock->sk->sk_bpf_storage || sock->sk->sk_bpf_storage->smap) in BPF_PROG()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/ |
D | hwmon.c | 209 DECLARE_BITMAP(smap, BITS_PER_TYPE(sensor_map)); in mlx5_hwmon_init_sensors_indexes() 214 bitmap_from_u64(smap, sensor_map); in mlx5_hwmon_init_sensors_indexes() 216 for_each_set_bit(bit_pos, smap, BITS_PER_TYPE(sensor_map)) { in mlx5_hwmon_init_sensors_indexes()
|
/linux-6.6.21/lib/zstd/common/ |
D | cpu.h | 175 B(smap, 20)
|
/linux-6.6.21/fs/ |
D | dax.c | 1990 const struct iomap *smap = &it_src->iomap; in dax_range_compare_iter() local 1996 len = min(len, min(smap->length, dmap->length)); in dax_range_compare_iter() 1998 if (smap->type == IOMAP_HOLE && dmap->type == IOMAP_HOLE) { in dax_range_compare_iter() 2003 if (smap->type == IOMAP_HOLE || dmap->type == IOMAP_HOLE) { in dax_range_compare_iter() 2009 ret = dax_iomap_direct_access(smap, pos1, ALIGN(pos1 + len, PAGE_SIZE), in dax_range_compare_iter()
|
/linux-6.6.21/fs/ocfs2/dlm/ |
D | dlmdomain.c | 49 static inline void byte_copymap(u8 dmap[], unsigned long smap[], in byte_copymap() argument 59 if (test_bit(nn, smap)) in byte_copymap()
|
/linux-6.6.21/tools/arch/x86/kcpuid/ |
D | cpuid.csv | 177 7, 0, EBX, 20, smap, Supervisor Mode Access Prevention
|
/linux-6.6.21/arch/x86/kvm/svm/ |
D | svm.c | 4735 bool smep, smap, is_user; in svm_can_emulate_instruction() local 4837 smap = kvm_is_cr4_bit_set(vcpu, X86_CR4_SMAP); in svm_can_emulate_instruction() 4839 if (smap && (!smep || is_user)) { in svm_can_emulate_instruction()
|
/linux-6.6.21/Documentation/virt/kvm/x86/ |
D | mmu.rst | 192 Contains the value of cr4.smap && !cr0.wp for which the page is valid
|
/linux-6.6.21/arch/x86/kvm/mmu/ |
D | mmu.c | 211 BUILD_MMU_ROLE_REGS_ACCESSOR(cr4, smap, X86_CR4_SMAP); 231 BUILD_MMU_ROLE_ACCESSOR(ext, cr4, smap);
|