| /linux/kernel/bpf/ |
| H A 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, voi argument 75 bpf_selem_alloc(struct bpf_local_storage_map * smap,void * owner,void * value,bool charge_mem,bool swap_uptrs,gfp_t gfp_flags) bpf_selem_alloc() argument 158 bpf_local_storage_free(struct bpf_local_storage * local_storage,struct bpf_local_storage_map * smap,bool bpf_ma,bool reuse_now) bpf_local_storage_free() argument 210 struct bpf_local_storage_map *smap; bpf_selem_free_rcu() local 231 bpf_selem_free(struct bpf_local_storage_elem * selem,struct bpf_local_storage_map * smap,bool reuse_now) bpf_selem_free() argument 267 struct bpf_local_storage_map *smap; bpf_selem_free_list() local 289 struct bpf_local_storage_map *smap; bpf_selem_unlink_storage_nolock() local 414 struct bpf_local_storage_map *smap; bpf_selem_unlink_map() local 430 bpf_selem_link_map(struct bpf_local_storage_map * smap,struct bpf_local_storage_elem * selem) bpf_selem_link_map() argument 453 __bpf_local_storage_insert_cache(struct bpf_local_storage * local_storage,struct bpf_local_storage_map * smap,struct bpf_local_storage_elem * selem) __bpf_local_storage_insert_cache() argument 484 bpf_local_storage_alloc(void * owner,struct bpf_local_storage_map * smap,struct bpf_local_storage_elem * first_selem,gfp_t gfp_flags) bpf_local_storage_alloc() argument 557 bpf_local_storage_update(void * owner,struct bpf_local_storage_map * smap,void * value,u64 map_flags,bool swap_uptrs,gfp_t gfp_flags) bpf_local_storage_update() argument 777 struct bpf_local_storage_map *smap = (struct bpf_local_storage_map *)map; bpf_local_storage_map_mem_usage() local 800 struct bpf_local_storage_map *smap; bpf_local_storage_map_alloc() local 862 struct bpf_local_storage_map *smap; bpf_local_storage_map_free() local [all...] |
| /linux/tools/testing/selftests/mm/ |
| H A D | map_populate.c | 35 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/net/core/ |
| H A 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() 134 struct bpf_local_storage_map *smap, 139 copy_selem = bpf_selem_alloc(smap, newsk, NULL, false, GFP_ATOMIC); in bpf_sk_storage_clone_elem() 143 if (btf_record_has_field(smap->map.record, BPF_SPIN_LOCK)) in bpf_sk_storage_clone_elem() 144 copy_map_value_locked(&smap->map, SDATA(copy_selem)->data, in bpf_sk_storage_clone_elem() 147 copy_map_value(&smap->map, SDATA(copy_selem)->data, in bpf_sk_storage_clone_elem() 170 struct bpf_local_storage_map *smap; in bpf_sk_storage_clone() 173 smap in bpf_sk_storage_clone() local 136 bpf_sk_storage_clone_elem(struct sock * newsk,struct bpf_local_storage_map * smap,struct bpf_local_storage_elem * selem) bpf_sk_storage_clone_elem() argument 278 bpf_sk_storage_charge(struct bpf_local_storage_map * smap,void * owner,u32 size) bpf_sk_storage_charge() argument 295 bpf_sk_storage_uncharge(struct bpf_local_storage_map * smap,void * owner,u32 size) bpf_sk_storage_uncharge() argument 535 struct bpf_local_storage_map *smap; diag_get() local 576 struct bpf_local_storage_map *smap; bpf_sk_storage_diag_put_all() local 703 struct bpf_local_storage_map *smap; bpf_sk_storage_map_seq_find_next() local [all...] |
| /linux/fs/nilfs2/ |
| H A D | page.c | 244 struct address_space *smap) in nilfs_copy_dirty_pages() argument 253 if (!filemap_get_folios_tag(smap, &index, (pgoff_t)-1, in nilfs_copy_dirty_pages() 299 struct address_space *smap) in nilfs_copy_back_pages() argument 307 n = filemap_get_folios(smap, &start, ~0UL, &fbatch); in nilfs_copy_back_pages() 328 xa_lock_irq(&smap->i_pages); in nilfs_copy_back_pages() 329 f = __xa_erase(&smap->i_pages, index); in nilfs_copy_back_pages() 331 smap->nrpages--; in nilfs_copy_back_pages() 332 xa_unlock_irq(&smap->i_pages); in nilfs_copy_back_pages()
|
| /linux/fs/xfs/ |
| H A D | xfs_reflink.c | 1318 struct xfs_bmbt_irec smap; in xfs_reflink_remap_extent() local 1378 &smap, &nimaps, 0); in xfs_reflink_remap_extent() 1381 ASSERT(nimaps == 1 && smap.br_startoff == dmap->br_startoff); in xfs_reflink_remap_extent() 1382 smap_real = xfs_bmap_is_real_extent(&smap); in xfs_reflink_remap_extent() 1388 dmap->br_blockcount = min(dmap->br_blockcount, smap.br_blockcount); in xfs_reflink_remap_extent() 1389 ASSERT(dmap->br_blockcount == smap.br_blockcount); in xfs_reflink_remap_extent() 1391 trace_xfs_reflink_remap_extent_dest(ip, &smap); in xfs_reflink_remap_extent() 1398 if (dmap->br_startblock == smap.br_startblock) { in xfs_reflink_remap_extent() 1399 if (dmap->br_state != smap.br_state) { in xfs_reflink_remap_extent() 1408 smap.br_state == XFS_EXT_UNWRITTEN) in xfs_reflink_remap_extent() [all …]
|
| H A D | xfs_iomap.c | 1647 struct xfs_bmbt_irec smap; in xfs_zoned_buffered_write_iomap_begin() local 1651 &smap)) in xfs_zoned_buffered_write_iomap_begin() 1652 smap.br_startoff = end_fsb; /* fake hole until EOF */ in xfs_zoned_buffered_write_iomap_begin() 1653 if (smap.br_startoff > offset_fsb) { in xfs_zoned_buffered_write_iomap_begin() 1659 smap.br_startoff); in xfs_zoned_buffered_write_iomap_begin() 1662 end_fsb = min(end_fsb, smap.br_startoff); in xfs_zoned_buffered_write_iomap_begin() 1665 smap.br_startoff + smap.br_blockcount); in xfs_zoned_buffered_write_iomap_begin() 1666 xfs_trim_extent(&smap, offset_fsb, in xfs_zoned_buffered_write_iomap_begin() 1668 error = xfs_bmbt_to_iomap(ip, srcmap, &smap, flags, 0, in xfs_zoned_buffered_write_iomap_begin()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | local_storage.c | 99 if (!local_storage || local_storage->smap) in BPF_PROG() 176 if (!sk->sk_bpf_storage || sk->sk_bpf_storage->smap) in BPF_PROG()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A 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/lib/zstd/common/ |
| H A D | cpu.h | 176 B(smap, 20)
|
| /linux/fs/ |
| H A D | dax.c | 2159 const struct iomap *smap = &it_src->iomap; in dax_range_compare_iter() local 2165 len = min(len, min(smap->length, dmap->length)); in dax_range_compare_iter() 2167 if (smap->type == IOMAP_HOLE && dmap->type == IOMAP_HOLE) { in dax_range_compare_iter() 2172 if (smap->type == IOMAP_HOLE || dmap->type == IOMAP_HOLE) { in dax_range_compare_iter() 2178 ret = dax_iomap_direct_access(smap, pos1, ALIGN(pos1 + len, PAGE_SIZE), in dax_range_compare_iter()
|
| /linux/fs/ocfs2/dlm/ |
| H A 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/Documentation/virt/kvm/x86/ |
| H A D | mmu.rst | 192 Contains the value of cr4.smap && !cr0.wp for which the page is valid
|
| /linux/arch/x86/kvm/mmu/ |
| H A D | mmu.c | 211 BUILD_MMU_ROLE_REGS_ACCESSOR(cr4, smap, X86_CR4_SMAP); 231 BUILD_MMU_ROLE_ACCESSOR(ext, cr4, smap);
|
| /linux/tools/arch/x86/kcpuid/ |
| H A D | cpuid.csv | 209 0x7, 0, ebx, 20, smap , Supervisor mode access prevention
|