Home
last modified time | relevance | path

Searched refs:smap (Results 1 – 13 of 13) sorted by relevance

/linux/kernel/bpf/
H A Dbpf_local_storage.c21 select_bucket(struct bpf_local_storage_map *smap, in select_bucket() argument
24 return &smap->buckets[hash_ptr(local_storage, 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 …]
/linux/tools/testing/selftests/mm/
H A Dmap_populate.c35 static void parent_f(int sock, unsigned long *smap, int child) in parent_f() argument
42 *smap = 0x22222BAD; in parent_f()
43 ret = msync(smap, MMAP_SZ, MS_SYNC); in parent_f()
56 static int child_f(int sock, unsigned long *smap, int fd) in child_f() argument
60 smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, in child_f()
62 BUG_ON(smap == MAP_FAILED, "mmap()"); in child_f()
64 BUG_ON(*smap != 0xdeadbabe, "MAP_PRIVATE | MAP_POPULATE changed file"); in child_f()
72 ksft_test_result(*smap != 0x22222BAD, "MAP_POPULATE COW private page\n"); in child_f()
73 ksft_test_result(*smap == 0xdeadbabe, "The mapping state\n"); in child_f()
83 unsigned long *smap; in main() local
[all …]
/linux/include/linux/
H A Dbpf_local_storage.h66 struct bpf_local_storage_map __rcu *smap; member
140 struct bpf_local_storage_map *smap,
145 struct bpf_local_storage_map *smap, in bpf_local_storage_lookup() argument
152 sdata = rcu_dereference_check(local_storage->cache[smap->cache_idx], in bpf_local_storage_lookup()
154 if (sdata && rcu_access_pointer(sdata->smap) == smap) in bpf_local_storage_lookup()
160 if (rcu_access_pointer(SDATA(selem)->smap) == smap) in bpf_local_storage_lookup()
166 __bpf_local_storage_insert_cache(local_storage, smap, selem); in bpf_local_storage_lookup()
185 int bpf_selem_link_map(struct bpf_local_storage_map *smap,
190 bpf_selem_alloc(struct bpf_local_storage_map *smap, void *owner, void *value,
198 struct bpf_local_storage_map *smap,
[all …]
H A Dbpf.h151 int (*map_local_storage_charge)(struct bpf_local_storage_map *smap,
153 void (*map_local_storage_uncharge)(struct bpf_local_storage_map *smap,
/linux/net/core/
H A Dbpf_sk_storage.c24 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, false); 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/tools/testing/selftests/bpf/progs/
H A Dlocal_storage.c
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dhwmon.c209 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/lib/zstd/common/
H A Dcpu.h176 B(smap, 20)
/linux/fs/btrfs/
H A Dvolumes.c6875 const struct btrfs_io_stripe *smap, in is_single_device_io() argument
6880 if (!smap) in is_single_device_io()
7063 struct btrfs_io_stripe *smap, int *mirror_num_ret) in btrfs_map_block() argument
7184 if (is_single_device_io(fs_info, smap, map, num_alloc_stripes, &io_geom)) { in btrfs_map_block()
7185 ret = set_io_stripe(fs_info, logical, length, smap, map, &io_geom); in btrfs_map_block()
8797 struct btrfs_io_stripe *smap, in map_raid56_repair_block() argument
8812 smap->dev = bioc->stripes[i].dev; in map_raid56_repair_block()
8813 smap->physical = bioc->stripes[i].physical + in map_raid56_repair_block()
8832 struct btrfs_io_stripe *smap, u64 logical, in btrfs_map_repair_block() argument
8843 &bioc, smap, &mirror_ret); in btrfs_map_repair_block()
[all …]
/linux/arch/x86/kvm/svm/
H A Dsvm.c5071 bool smep, smap, is_user; in svm_check_emulate_instruction() local
5180 smap = kvm_is_cr4_bit_set(vcpu, X86_CR4_SMAP); in svm_check_emulate_instruction()
5182 if (smap && (!smep || is_user)) { in svm_check_emulate_instruction()
/linux/Documentation/virt/kvm/x86/
H A Dmmu.rst192 Contains the value of cr4.smap && !cr0.wp for which the page is valid
/linux/arch/x86/kvm/mmu/
H A Dmmu.c213 BUILD_MMU_ROLE_REGS_ACCESSOR(cr4, smap, X86_CR4_SMAP);
233 BUILD_MMU_ROLE_ACCESSOR(ext, cr4, smap);
/linux/tools/arch/x86/kcpuid/
H A Dcpuid.csv210 0x7, 0, ebx, 20, smap , Supervisor mode access prevention