Home
last modified time | relevance | path

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

/linux-6.3-rc2/kernel/bpf/
A Dbpf_local_storage.c24 return &smap->buckets[hash_ptr(selem, smap->bucket_log)]; in select_bucket()
73 selem = bpf_map_kzalloc(&smap->map, smap->elem_size, in bpf_selem_alloc()
82 mem_uncharge(smap, owner, smap->elem_size); in bpf_selem_alloc()
132 mem_uncharge(smap, owner, smap->elem_size); in bpf_selem_unlink_storage_nolock()
230 RCU_INIT_POINTER(SDATA(selem)->smap, smap); in bpf_selem_link_map()
257 if (sdata && rcu_access_pointer(sdata->smap) == smap) in bpf_local_storage_lookup()
263 if (rcu_access_pointer(SDATA(selem)->smap) == smap) in bpf_local_storage_lookup()
406 mem_uncharge(smap, owner, smap->elem_size); in bpf_local_storage_update()
498 mem_uncharge(smap, owner, smap->elem_size); in bpf_local_storage_update()
562 if (!smap) in __bpf_local_storage_map_alloc()
[all …]
A Dstackmap.c48 (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()
60 pcpu_freelist_populate(&smap->freelist, smap->elems, elem_size, in prealloc_elems_and_freelist()
73 struct bpf_stack_map *smap; in stack_map_alloc() local
104 if (!smap) in stack_map_alloc()
118 return &smap->map; in stack_map_alloc()
123 bpf_map_area_free(smap); in stack_map_alloc()
605 if (id >= smap->n_buckets || !smap->buckets[id]) in stack_map_get_next_key()
[all …]
A Dbpf_cgrp_storage.c74 struct bpf_local_storage_map *smap; in cgroup_storage_lookup() local
81 smap = (struct bpf_local_storage_map *)map; in cgroup_storage_lookup()
82 return bpf_local_storage_lookup(cgroup_storage, smap, cacheit_lockit); in cgroup_storage_lookup()
A Dbpf_inode_storage.c41 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()
A Dbpf_task_storage.c61 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.3-rc2/tools/testing/selftests/mm/
A Dmap_populate.c40 *smap = 0x22222BAD; in parent_f()
41 ret = msync(smap, MMAP_SZ, MS_SYNC); in parent_f()
57 smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, in child_f()
59 BUG_ON(smap == MAP_FAILED, "mmap()"); in child_f()
79 unsigned long *smap; in main() local
87 smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, in main()
89 BUG_ON(smap == MAP_FAILED, "mmap()"); in main()
91 *smap = 0xdeadbabe; in main()
93 ret = msync(smap, MMAP_SZ, MS_SYNC); in main()
106 return parent_f(sock[1], smap, child); in main()
[all …]
/linux-6.3-rc2/net/core/
A Dbpf_sk_storage.c24 struct bpf_local_storage_map *smap; in bpf_sk_storage_lookup() local
177 struct bpf_local_storage_map *smap; in bpf_sk_storage_clone() local
180 smap = rcu_dereference(SDATA(selem)->smap); in bpf_sk_storage_clone()
207 atomic_sub(smap->elem_size, in bpf_sk_storage_clone()
549 struct bpf_local_storage_map *smap; in diag_get() local
558 smap = rcu_dereference(sdata->smap); in diag_get()
563 smap->map.value_size, in diag_get()
590 struct bpf_local_storage_map *smap; in bpf_sk_storage_diag_put_all() local
610 smap = rcu_dereference(SDATA(selem)->smap); in bpf_sk_storage_diag_put_all()
735 b = &smap->buckets[bucket_id++]; in bpf_sk_storage_map_seq_find_next()
[all …]
/linux-6.3-rc2/include/linux/
A Dbpf_local_storage.h67 struct bpf_local_storage_map __rcu *smap; member
128 struct bpf_local_storage_map *smap,
147 void bpf_selem_link_map(struct bpf_local_storage_map *smap,
153 bpf_selem_alloc(struct bpf_local_storage_map *smap, void *owner, void *value,
158 struct bpf_local_storage_map *smap,
163 bpf_local_storage_update(void *owner, struct bpf_local_storage_map *smap,
A Dbpf.h135 int (*map_local_storage_charge)(struct bpf_local_storage_map *smap,
137 void (*map_local_storage_uncharge)(struct bpf_local_storage_map *smap,
/linux-6.3-rc2/fs/btrfs/
A Dbio.c447 struct btrfs_io_stripe *smap, int mirror_num) in __btrfs_submit_bio() argument
455 bio->bi_iter.bi_sector = smap->physical >> SECTOR_SHIFT; in __btrfs_submit_bio()
456 bio->bi_private = smap->dev; in __btrfs_submit_bio()
458 btrfs_submit_dev_bio(smap->dev, bio); in __btrfs_submit_bio()
491 struct btrfs_io_stripe smap; member
583 struct btrfs_io_stripe *smap, int mirror_num) in btrfs_wq_submit_bio() argument
594 async->smap = *smap; in btrfs_wq_submit_bio()
617 struct btrfs_io_stripe smap; in btrfs_submit_chunk() local
623 &bioc, &smap, &mirror_num, 1); in btrfs_submit_chunk()
666 btrfs_wq_submit_bio(bbio, bioc, &smap, mirror_num)) in btrfs_submit_chunk()
[all …]
A Dvolumes.h528 struct btrfs_io_stripe *smap, int *mirror_num_ret,
A Dvolumes.c6336 struct btrfs_io_stripe *smap, int *mirror_num_ret, in __btrfs_map_block() argument
6511 if (smap && num_alloc_stripes == 1 && in __btrfs_map_block()
6516 smap->dev = dev_replace->tgtdev; in __btrfs_map_block()
6517 smap->physical = physical_to_patch_in_first_stripe; in __btrfs_map_block()
6520 set_io_stripe(smap, map, stripe_index, stripe_offset, in __btrfs_map_block()
/linux-6.3-rc2/fs/nilfs2/
A Dpage.c241 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.3-rc2/fs/xfs/
A Dxfs_reflink.c1153 struct xfs_bmbt_irec smap; in xfs_reflink_remap_extent() local
1205 &smap, &nimaps, 0); in xfs_reflink_remap_extent()
1209 smap_real = xfs_bmap_is_real_extent(&smap); in xfs_reflink_remap_extent()
1218 trace_xfs_reflink_remap_extent_dest(ip, &smap); in xfs_reflink_remap_extent()
1225 if (dmap->br_startblock == smap.br_startblock) { in xfs_reflink_remap_extent()
1226 if (dmap->br_state != smap.br_state) in xfs_reflink_remap_extent()
1233 smap.br_state == XFS_EXT_UNWRITTEN) in xfs_reflink_remap_extent()
1290 xfs_bmap_unmap_extent(tp, ip, &smap); in xfs_reflink_remap_extent()
1291 xfs_refcount_decrease_extent(tp, &smap); in xfs_reflink_remap_extent()
1292 qdelta -= smap.br_blockcount; in xfs_reflink_remap_extent()
[all …]
/linux-6.3-rc2/lib/zstd/common/
A Dcpu.h175 B(smap, 20)
/linux-6.3-rc2/fs/
A Ddax.c1965 const struct iomap *smap = &it_src->iomap; in dax_range_compare_iter() local
1971 len = min(len, min(smap->length, dmap->length)); in dax_range_compare_iter()
1973 if (smap->type == IOMAP_HOLE && dmap->type == IOMAP_HOLE) { in dax_range_compare_iter()
1978 if (smap->type == IOMAP_HOLE || dmap->type == IOMAP_HOLE) { in dax_range_compare_iter()
1984 ret = dax_iomap_direct_access(smap, pos1, ALIGN(pos1 + len, PAGE_SIZE), in dax_range_compare_iter()
/linux-6.3-rc2/fs/ocfs2/dlm/
A Ddlmdomain.c49 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.3-rc2/tools/arch/x86/kcpuid/
A Dcpuid.csv177 7, 0, EBX, 20, smap, Supervisor Mode Access Prevention
/linux-6.3-rc2/arch/x86/kvm/svm/
A Dsvm.c4530 bool smep, smap, is_user; in svm_can_emulate_instruction() local
4625 smap = cr4 & X86_CR4_SMAP; in svm_can_emulate_instruction()
4627 if (smap && (!smep || is_user)) { in svm_can_emulate_instruction()
/linux-6.3-rc2/Documentation/virt/kvm/x86/
A Dmmu.rst192 Contains the value of cr4.smap && !cr0.wp for which the page is valid
/linux-6.3-rc2/arch/x86/kvm/mmu/
A Dmmu.c198 BUILD_MMU_ROLE_REGS_ACCESSOR(cr4, smap, X86_CR4_SMAP);
218 BUILD_MMU_ROLE_ACCESSOR(ext, cr4, smap);

Completed in 81 milliseconds