Home
last modified time | relevance | path

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

12

/openbmc/linux/kernel/bpf/
H A Dbpf_local_storage.c24 return &smap->buckets[hash_ptr(selem, smap->bucket_log)]; in select_bucket()
97 selem = bpf_map_kzalloc(&smap->map, smap->elem_size, in bpf_selem_alloc()
109 mem_uncharge(smap, owner, smap->elem_size); in bpf_selem_alloc()
174 if (smap) { in bpf_local_storage_free()
269 mem_uncharge(smap, owner, smap->elem_size); in bpf_selem_unlink_storage_nolock()
301 if (rcu_access_pointer(local_storage->smap) == smap) in bpf_selem_unlink_storage_nolock()
402 RCU_INIT_POINTER(SDATA(selem)->smap, smap); in bpf_selem_link_map()
435 if (rcu_access_pointer(SDATA(selem)->smap) == smap) in bpf_local_storage_lookup()
501 RCU_INIT_POINTER(storage->smap, smap); in bpf_local_storage_alloc()
586 mem_uncharge(smap, owner, smap->elem_size); in bpf_local_storage_update()
[all …]
H 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()
614 if (id >= smap->n_buckets || !smap->buckets[id]) in stack_map_get_next_key()
[all …]
H 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()
H A Dbpf_cgrp_storage.c67 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()
H 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()
/openbmc/linux/tools/testing/selftests/mm/
H A Dmap_populate.c38 *smap = 0x22222BAD; in parent_f()
39 ret = msync(smap, MMAP_SZ, MS_SYNC); in parent_f()
55 smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, in child_f()
57 BUG_ON(smap == MAP_FAILED, "mmap()"); in child_f()
77 unsigned long *smap; in main() local
85 smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, in main()
87 BUG_ON(smap == MAP_FAILED, "mmap()"); in main()
89 *smap = 0xdeadbabe; in main()
91 ret = msync(smap, MMAP_SZ, MS_SYNC); in main()
104 return parent_f(sock[1], smap, child); in main()
[all …]
/openbmc/linux/net/core/
H A Dbpf_sk_storage.c24 struct bpf_local_storage_map *smap; in bpf_sk_storage_lookup() local
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()
201 atomic_sub(smap->elem_size, in bpf_sk_storage_clone()
547 struct bpf_local_storage_map *smap; in diag_get() local
556 smap = rcu_dereference(sdata->smap); in diag_get()
561 smap->map.value_size, in diag_get()
588 struct bpf_local_storage_map *smap; in bpf_sk_storage_diag_put_all() local
608 smap = rcu_dereference(SDATA(selem)->smap); in bpf_sk_storage_diag_put_all()
733 b = &smap->buckets[bucket_id++]; in bpf_sk_storage_map_seq_find_next()
[all …]
/openbmc/linux/include/linux/
H A Dbpf_local_storage.h71 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,
H A Dbpf.h139 int (*map_local_storage_charge)(struct bpf_local_storage_map *smap,
141 void (*map_local_storage_uncharge)(struct bpf_local_storage_map *smap,
/openbmc/linux/fs/btrfs/
H A Dbio.c505 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
636 async->smap = *smap; in btrfs_wq_submit_bio()
655 struct btrfs_io_stripe smap; in btrfs_submit_chunk() local
661 &bioc, &smap, &mirror_num, 1); in btrfs_submit_chunk()
764 struct btrfs_io_stripe smap = { 0 }; in btrfs_repair_io_failure() local
785 if (!smap.dev->bdev || in btrfs_repair_io_failure()
806 smap.physical >> SECTOR_SHIFT); in btrfs_repair_io_failure()
826 struct btrfs_io_stripe smap = { 0 }; in btrfs_submit_repair_write() local
[all …]
H A Dvolumes.h605 struct btrfs_io_stripe *smap, int *mirror_num_ret,
608 struct btrfs_io_stripe *smap, u64 logical,
H A Dvolumes.c6275 struct btrfs_io_stripe *smap, int *mirror_num_ret, in btrfs_map_block() argument
6445 if (smap && num_alloc_stripes == 1 && in btrfs_map_block()
8052 struct btrfs_io_stripe *smap, in map_raid56_repair_block() argument
8067 smap->dev = bioc->stripes[i].dev; in map_raid56_repair_block()
8068 smap->physical = bioc->stripes[i].physical + in map_raid56_repair_block()
8087 struct btrfs_io_stripe *smap, u64 logical, in btrfs_map_repair_block() argument
8098 &bioc, smap, &mirror_ret, true); in btrfs_map_repair_block()
8111 map_raid56_repair_block(bioc, smap, logical); in btrfs_map_repair_block()
8116 smap->dev = bioc->stripes[mirror_num - 1].dev; in btrfs_map_repair_block()
8117 smap->physical = bioc->stripes[mirror_num - 1].physical; in btrfs_map_repair_block()
[all …]
H A Dcheck-integrity.c1463 struct btrfs_io_stripe smap, *map; in btrfsic_map_block() local
1484 map = &smap; in btrfsic_map_block()
/openbmc/qemu/hw/pci-host/
H A Dversatile.c100 uint32_t smap[3]; member
152 VMSTATE_UINT32_ARRAY(smap, PCIVPBState, 3),
205 s->smap[win] = val; in pci_vpb_reg_write()
237 return s->smap[win]; in pci_vpb_reg_read()
377 s->smap[0] = 0; in pci_vpb_reset()
378 s->smap[1] = 0; in pci_vpb_reset()
379 s->smap[2] = 0; in pci_vpb_reset()
/openbmc/linux/fs/nilfs2/
H A Dpage.c242 struct address_space *smap) in nilfs_copy_dirty_pages() argument
251 if (!filemap_get_folios_tag(smap, &index, (pgoff_t)-1, in nilfs_copy_dirty_pages()
297 struct address_space *smap) in nilfs_copy_back_pages() argument
305 n = filemap_get_folios(smap, &start, ~0UL, &fbatch); in nilfs_copy_back_pages()
326 xa_lock_irq(&smap->i_pages); in nilfs_copy_back_pages()
327 f = __xa_erase(&smap->i_pages, index); in nilfs_copy_back_pages()
329 smap->nrpages--; in nilfs_copy_back_pages()
330 xa_unlock_irq(&smap->i_pages); in nilfs_copy_back_pages()
/openbmc/linux/fs/xfs/
H A Dxfs_reflink.c1137 struct xfs_bmbt_irec smap; in xfs_reflink_remap_extent() local
1189 &smap, &nimaps, 0); in xfs_reflink_remap_extent()
1193 smap_real = xfs_bmap_is_real_extent(&smap); in xfs_reflink_remap_extent()
1202 trace_xfs_reflink_remap_extent_dest(ip, &smap); in xfs_reflink_remap_extent()
1209 if (dmap->br_startblock == smap.br_startblock) { in xfs_reflink_remap_extent()
1210 if (dmap->br_state != smap.br_state) in xfs_reflink_remap_extent()
1217 smap.br_state == XFS_EXT_UNWRITTEN) in xfs_reflink_remap_extent()
1274 xfs_bmap_unmap_extent(tp, ip, &smap); in xfs_reflink_remap_extent()
1275 xfs_refcount_decrease_extent(tp, &smap); in xfs_reflink_remap_extent()
1276 qdelta -= smap.br_blockcount; in xfs_reflink_remap_extent()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dlocal_storage.c99 if (!local_storage || local_storage->smap) in BPF_PROG()
176 if (!sk->sk_bpf_storage || sk->sk_bpf_storage->smap) in BPF_PROG()
/openbmc/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()
/openbmc/linux/lib/zstd/common/
H A Dcpu.h175 B(smap, 20)
/openbmc/linux/fs/
H A Ddax.c2005 const struct iomap *smap = &it_src->iomap; in dax_range_compare_iter() local
2011 len = min(len, min(smap->length, dmap->length)); in dax_range_compare_iter()
2013 if (smap->type == IOMAP_HOLE && dmap->type == IOMAP_HOLE) { in dax_range_compare_iter()
2018 if (smap->type == IOMAP_HOLE || dmap->type == IOMAP_HOLE) { in dax_range_compare_iter()
2024 ret = dax_iomap_direct_access(smap, pos1, ALIGN(pos1 + len, PAGE_SIZE), in dax_range_compare_iter()
/openbmc/u-boot/
H A DMakefile1505 smap=`$(call SYSTEM_MAP,u-boot) | \
1507 $(CC) $(c_flags) -DSYSTEM_MAP="\"$${smap}\"" \
1513 $(call cmd,smap)
/openbmc/linux/fs/ocfs2/dlm/
H 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()
/openbmc/linux/tools/arch/x86/kcpuid/
H A Dcpuid.csv177 7, 0, EBX, 20, smap, Supervisor Mode Access Prevention
/openbmc/linux/arch/x86/kvm/svm/
H A Dsvm.c4765 bool smep, smap, is_user; in svm_can_emulate_instruction() local
4867 smap = kvm_is_cr4_bit_set(vcpu, X86_CR4_SMAP); in svm_can_emulate_instruction()
4869 if (smap && (!smep || is_user)) { in svm_can_emulate_instruction()
/openbmc/linux/Documentation/virt/kvm/x86/
H A Dmmu.rst192 Contains the value of cr4.smap && !cr0.wp for which the page is valid

12