| /linux/arch/x86/boot/startup/ |
| H A D | sev-shared.c | 169 static int __sev_cpuid_hv_msr(struct cpuid_leaf *leaf) in __sev_cpuid_hv_msr() argument 181 if (cpuid_function_is_indexed(leaf->fn) && leaf->subfn) in __sev_cpuid_hv_msr() 184 ret = __sev_cpuid_hv(leaf->fn, GHCB_CPUID_REQ_EAX, &leaf->eax); in __sev_cpuid_hv_msr() 185 ret = ret ? : __sev_cpuid_hv(leaf->fn, GHCB_CPUID_REQ_EBX, &leaf->ebx); in __sev_cpuid_hv_msr() 186 ret = ret ? : __sev_cpuid_hv(leaf->fn, GHCB_CPUID_REQ_ECX, &leaf->ecx); in __sev_cpuid_hv_msr() 187 ret = ret ? : __sev_cpuid_hv(leaf->fn, GHCB_CPUID_REQ_EDX, &leaf->edx); in __sev_cpuid_hv_msr() 262 snp_cpuid_get_validated_func(struct cpuid_leaf *leaf) in snp_cpuid_get_validated_func() argument 270 if (e->eax_in != leaf->fn) in snp_cpuid_get_validated_func() 273 if (cpuid_function_is_indexed(leaf->fn) && e->ecx_in != leaf->subfn) in snp_cpuid_get_validated_func() 286 leaf->eax = e->eax; in snp_cpuid_get_validated_func() [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/mc/ |
| H A D | nv04.c | 75 int leaf; in nv04_mc_intr_rearm() local 77 for (leaf = 0; leaf < intr->leaves; leaf++) in nv04_mc_intr_rearm() 78 nvkm_wr32(mc->subdev.device, 0x000140 + (leaf * 4), 0x00000001); in nv04_mc_intr_rearm() 85 int leaf; in nv04_mc_intr_unarm() local 87 for (leaf = 0; leaf < intr->leaves; leaf++) in nv04_mc_intr_unarm() 88 nvkm_wr32(mc->subdev.device, 0x000140 + (leaf * 4), 0x00000000); in nv04_mc_intr_unarm() 98 int leaf; in nv04_mc_intr_pending() local 100 for (leaf = 0; leaf < intr->leaves; leaf++) { in nv04_mc_intr_pending() 101 intr->stat[leaf] = nvkm_rd32(mc->subdev.device, 0x000100 + (leaf * 4)); in nv04_mc_intr_pending() 102 if (intr->stat[leaf]) in nv04_mc_intr_pending()
|
| H A D | gt215.c | 57 gt215_mc_intr_allow(struct nvkm_intr *intr, int leaf, u32 mask) in gt215_mc_intr_allow() argument 61 nvkm_mask(mc->subdev.device, 0x000640 + (leaf * 4), mask, mask); in gt215_mc_intr_allow() 65 gt215_mc_intr_block(struct nvkm_intr *intr, int leaf, u32 mask) in gt215_mc_intr_block() argument 69 nvkm_mask(mc->subdev.device, 0x000640 + (leaf * 4), mask, 0); in gt215_mc_intr_block()
|
| H A D | gp100.c | 48 gp100_mc_intr_allow(struct nvkm_intr *intr, int leaf, u32 mask) in gp100_mc_intr_allow() argument 52 nvkm_wr32(mc->subdev.device, 0x000160 + (leaf * 4), mask); in gp100_mc_intr_allow() 56 gp100_mc_intr_block(struct nvkm_intr *intr, int leaf, u32 mask) in gp100_mc_intr_block() argument 60 nvkm_wr32(mc->subdev.device, 0x000180 + (leaf * 4), mask); in gp100_mc_intr_block()
|
| /linux/arch/loongarch/mm/ |
| H A D | cache.c | 34 static void flush_cache_leaf(unsigned int leaf) in flush_cache_leaf() argument 38 struct cache_desc *cdesc = current_cpu_data.cache_leaves + leaf; in flush_cache_leaf() 45 flush_cache_line(leaf, addr); in flush_cache_leaf() 58 int leaf; in __flush_cache_all() local 62 leaf = cache_present - 1; in __flush_cache_all() 63 if (cache_inclusive(cdesc + leaf)) { in __flush_cache_all() 64 flush_cache_leaf(leaf); in __flush_cache_all() 68 for (leaf = 0; leaf < cache_present; leaf++) in __flush_cache_all() 69 flush_cache_leaf(leaf); in __flush_cache_all() 84 #define populate_cache_properties(cfg0, cdesc, level, leaf) \ argument [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/vfn/ |
| H A D | tu102.c | 29 tu102_vfn_intr_reset(struct nvkm_intr *intr, int leaf, u32 mask) in tu102_vfn_intr_reset() argument 33 nvkm_wr32(vfn->subdev.device, vfn->addr.priv + 0x1000 + (leaf * 4), mask); in tu102_vfn_intr_reset() 37 tu102_vfn_intr_allow(struct nvkm_intr *intr, int leaf, u32 mask) in tu102_vfn_intr_allow() argument 41 nvkm_wr32(vfn->subdev.device, vfn->addr.priv + 0x1200 + (leaf * 4), mask); in tu102_vfn_intr_allow() 45 tu102_vfn_intr_block(struct nvkm_intr *intr, int leaf, u32 mask) in tu102_vfn_intr_block() argument 49 nvkm_wr32(vfn->subdev.device, vfn->addr.priv + 0x1400 + (leaf * 4), mask); in tu102_vfn_intr_block() 74 int pending = 0, leaf; in tu102_vfn_intr_pending() local 76 for (leaf = 0; leaf < 8; leaf++) { in tu102_vfn_intr_pending() 77 if (intr_top & BIT(leaf / 2)) { in tu102_vfn_intr_pending() 78 intr->stat[leaf] = nvkm_rd32(device, vfn->addr.priv + 0x1000 + (leaf * 4)); in tu102_vfn_intr_pending() [all …]
|
| /linux/tools/arch/x86/kcpuid/ |
| H A D | kcpuid.c | 59 /* Represent one leaf (basic or extended) */ 63 * then the leafs[0] is the main leaf 139 #define cpuid(leaf, a, b, c, d) \ in cpuid_store() 140 __cpuid_count(leaf, 0, a, b, c, d) in cpuid_store() 142 #define cpuid_count(leaf, subleaf, a, b, c, d) \ in cpuid_store() 143 __cpuid_count(leaf, subleaf, a, b, c, d) in cpuid_store() 160 static void leaf_print_raw(struct subleaf *leaf) in cpuid_store() 162 if (has_subleafs(leaf->index)) { in cpuid_store() 163 if (leaf->sub == 0) in cpuid_store() 164 printf("0x%08x: subleafs:\n", leaf in cpuid_store() 114 leaf_print_raw(struct subleaf * leaf) leaf_print_raw() argument 133 struct subleaf *leaf; cpuid_store() local 289 struct subleaf *leaf; parse_line() local 483 show_leaf(struct subleaf * leaf) show_leaf() argument [all...] |
| /linux/drivers/gpu/drm/nouveau/nvkm/core/ |
| H A D | intr.c | 30 enum nvkm_intr_type type, int *leaf, u32 *mask) in nvkm_intr_xlat() argument 46 *leaf = data->leaf; in nvkm_intr_xlat() 54 *leaf = data->leaf; in nvkm_intr_xlat() 66 *leaf = type / 32; in nvkm_intr_xlat() 76 nvkm_intr_find(struct nvkm_subdev *subdev, enum nvkm_intr_type type, int *leaf, u32 *mask) in nvkm_intr_find() argument 82 ret = nvkm_intr_xlat(subdev, intr, type, leaf, mask); in nvkm_intr_find() 91 nvkm_intr_allow_locked(struct nvkm_intr *intr, int leaf, u32 mask) in nvkm_intr_allow_locked() argument 93 intr->mask[leaf] |= mask; in nvkm_intr_allow_locked() 96 intr->func->reset(intr, leaf, mask); in nvkm_intr_allow_locked() 97 intr->func->allow(intr, leaf, mask); in nvkm_intr_allow_locked() [all …]
|
| /linux/drivers/net/ethernet/dec/tulip/ |
| H A D | eeprom.c | 243 struct medialeaf *leaf = &mtable->mleaf[i]; in tulip_parse_eeprom() local 246 leaf->type = 0; in tulip_parse_eeprom() 247 leaf->media = p[0] & 0x3f; in tulip_parse_eeprom() 248 leaf->leafdata = p; in tulip_parse_eeprom() 253 leaf->type = p[1]; in tulip_parse_eeprom() 256 leaf->media = p[2] & 0x0f; in tulip_parse_eeprom() 262 leaf->leafdata = p + 2; in tulip_parse_eeprom() 269 leaf->media = 11; in tulip_parse_eeprom() 275 leaf->media = p[2] & MEDIA_MASK; in tulip_parse_eeprom() 277 if (tp->chip_id == DM910X && leaf->media == 1) in tulip_parse_eeprom() [all …]
|
| /linux/fs/unicode/ |
| H A D | mkutf8data.c | 383 void *leaf = NULL; in lookup() local 386 while (!leaf && node) { in lookup() 394 leaf = node->right; in lookup() 403 leaf = node->left; in lookup() 410 return leaf; in lookup() 533 static int insert(struct tree *tree, char *key, int keylen, void *leaf) in insert() argument 559 *cursor = leaf; in insert() 577 leaf = node->left; in insert() 582 tree->root = leaf; in insert() 585 parent->left = leaf; in insert() [all …]
|
| /linux/arch/mips/kernel/ |
| H A D | cacheinfo.c | 8 #define populate_cache(cache, leaf, c_level, c_type) \ argument 10 leaf->type = c_type; \ 11 leaf->level = c_level; \ 12 leaf->coherency_line_size = c->cache.linesz; \ 13 leaf->number_of_sets = c->cache.sets; \ 14 leaf->ways_of_associativity = c->cache.ways; \ 15 leaf->size = c->cache.linesz * c->cache.sets * \ 17 leaf++; \
|
| /linux/Documentation/arch/x86/ |
| H A D | topology.rst | 156 1) CPUID leaf 0x80000026 [Extended CPU Topology] (Core::X86::Cpuid::ExCpuTopology) 158 The extended CPUID leaf 0x80000026 is the extension of the CPUID leaf 0xB 162 Support for the leaf is discovered by checking if the maximum extended 174 CPUID leaf 0x80000026 also provides more information regarding the power 178 If CPUID leaf 0x80000026 is supported, further parsing is not required. 180 2) CPUID leaf 0x0000000B [Extended Topology Enumeration] (Core::X86::Cpuid::ExtTopEnum) 182 The extended CPUID leaf 0x0000000B is the predecessor on the extended 183 CPUID leaf 0x80000026 and only describes the core, and the socket domains 186 The support for the leaf is discovered by checking if the maximum supported 198 If CPUID leaf 0xB is supported, further parsing is not required. [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | xdpwall.c | 118 __u8 *leaf; in filter_ipv6_addr() local 120 leaf = bpf_map_lookup_elem(&v6_addr_map, ipv6addr); in filter_ipv6_addr() 122 return leaf ? *leaf : 0; in filter_ipv6_addr() 127 __u8 *leaf; in filter_ipv4_addr() local 129 leaf = bpf_map_lookup_elem(&v4_addr_map, &ipaddr); in filter_ipv4_addr() 131 return leaf ? *leaf : 0; in filter_ipv4_addr() 221 __u8 *leaf = bpf_map_lookup_elem(&tcp_port_map, &port); in filter_tcp_port() local 223 return leaf ? *leaf : 0; in filter_tcp_port() 228 __u16 *leaf = bpf_map_lookup_elem(&udp_port_map, &port); in filter_udp_port() local 230 return leaf ? *leaf : 0; in filter_udp_port()
|
| /linux/tools/testing/selftests/cgroup/ |
| H A D | test_cpu.c | 486 struct cpu_hogger leaf[3] = {}; in run_cpucg_nested_weight_test() local 517 for (i = 0; i < ARRAY_SIZE(leaf); i++) { in run_cpucg_nested_weight_test() 528 leaf[i].cgroup = cg_name_indexed(ancestor, "cpucg_leaf", i); in run_cpucg_nested_weight_test() 529 if (!leaf[i].cgroup) in run_cpucg_nested_weight_test() 532 if (cg_create(leaf[i].cgroup)) in run_cpucg_nested_weight_test() 535 if (cg_write_numeric(leaf[i].cgroup, "cpu.weight", weight)) in run_cpucg_nested_weight_test() 539 for (i = 0; i < ARRAY_SIZE(leaf); i++) { in run_cpucg_nested_weight_test() 550 pid = cg_run_nowait(leaf[i].cgroup, hog_cpus_timed, in run_cpucg_nested_weight_test() 554 leaf[i].pid = pid; in run_cpucg_nested_weight_test() 557 for (i = 0; i < ARRAY_SIZE(leaf); in run_cpucg_nested_weight_test() [all...] |
| /linux/drivers/gpu/drm/nouveau/include/nvkm/core/ |
| H A D | intr.h | 24 void (*block)(struct nvkm_intr *, int leaf, u32 mask); 25 void (*allow)(struct nvkm_intr *, int leaf, u32 mask); 26 void (*reset)(struct nvkm_intr *, int leaf, u32 mask); 31 int leaf; member 60 int leaf; member
|
| /linux/net/ipv6/ |
| H A D | ip6_fib.c | 240 rcu_assign_pointer(table->tb6_root.leaf, in fib6_alloc_table() 474 err = fib6_rt_dump(w->leaf, w->args); in fib6_node_dump() 475 w->leaf = NULL; in fib6_node_dump() 537 w->leaf = rt; in fib6_dump_node() 558 w->leaf = NULL; in fib6_dump_node() 782 struct fib6_info *leaf = rcu_dereference_protected(fn->leaf, in fib6_add_1() local 784 key = (struct rt6key *)((u8 *)leaf + offset); in fib6_add_1() 810 RCU_INIT_POINTER(fn->leaf, NULL); in fib6_add_1() 811 fib6_info_release(leaf); in fib6_add_1() 814 rcu_access_pointer(fn->leaf) == in fib6_add_1() [all …]
|
| /linux/fs/btrfs/ |
| H A D | export.c | 159 struct extent_buffer *leaf; in btrfs_get_parent() local 198 leaf = path->nodes[0]; in btrfs_get_parent() 200 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent() 207 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_parent() 209 key.objectid = btrfs_root_ref_dirid(leaf, ref); in btrfs_get_parent() 240 struct extent_buffer *leaf; in btrfs_get_name() local 276 leaf = path->nodes[0]; in btrfs_get_name() 279 rref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_name() 282 name_len = btrfs_root_ref_name_len(leaf, rref); in btrfs_get_name() 284 iref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_name() [all …]
|
| H A D | props.c | 164 struct extent_buffer *leaf; in iterate_object_props() local 170 leaf = path->nodes[0]; in iterate_object_props() 172 if (slot >= btrfs_header_nritems(leaf)) { in iterate_object_props() 181 btrfs_item_key_to_cpu(leaf, &key, slot); in iterate_object_props() 191 di = btrfs_item_ptr(leaf, slot, struct btrfs_dir_item); in iterate_object_props() 193 total_len = btrfs_item_size(leaf, slot); in iterate_object_props() 196 u32 name_len = btrfs_dir_name_len(leaf, di); in iterate_object_props() 197 u32 data_len = btrfs_dir_data_len(leaf, di); in iterate_object_props() 206 memcmp_extent_buffer(leaf, XATTR_BTRFS_PREFIX, in iterate_object_props() 220 read_extent_buffer(leaf, name_buf, name_ptr, name_len); in iterate_object_props() [all …]
|
| H A D | ref-verify.c | 369 struct extent_buffer *leaf, in add_extent_data_ref() argument 376 u64 ref_root = btrfs_extent_data_ref_root(leaf, dref); in add_extent_data_ref() 377 u64 owner = btrfs_extent_data_ref_objectid(leaf, dref); in add_extent_data_ref() 378 u64 offset = btrfs_extent_data_ref_offset(leaf, dref); in add_extent_data_ref() 379 u32 num_refs = btrfs_extent_data_ref_count(leaf, dref); in add_extent_data_ref() 422 struct extent_buffer *leaf = path->nodes[0]; in process_extent_item() local 423 u32 item_size = btrfs_item_size(leaf, slot); in process_extent_item() 429 ei = btrfs_item_ptr(leaf, slot, struct btrfs_extent_item); in process_extent_item() 430 flags = btrfs_extent_flags(leaf, ei); in process_extent_item() 437 *tree_block_level = btrfs_tree_block_level(leaf, info); in process_extent_item() [all …]
|
| /linux/drivers/infiniband/hw/irdma/ |
| H A D | pble.c | 320 struct irdma_pble_info *leaf = lvl2->leaf; in free_lvl2() local 322 for (i = 0; i < lvl2->leaf_cnt; i++, leaf++) { in free_lvl2() 323 if (leaf->addr) in free_lvl2() 325 &leaf->chunkinfo); in free_lvl2() 334 lvl2->leaf = NULL; in free_lvl2() 350 struct irdma_pble_info *leaf; in get_lvl2_pble() local 360 lvl2->leafmem.size = (sizeof(*leaf) * total); in get_lvl2_pble() 365 lvl2->leaf = lvl2->leafmem.va; in get_lvl2_pble() 366 leaf = lvl2->leaf; in get_lvl2_pble() 371 lvl2->leaf = NULL; in get_lvl2_pble() [all …]
|
| /linux/tools/perf/tests/workloads/ |
| H A D | leafloop.c | 9 noinline void leaf(void); 21 * Write leaf() in assembly so it stays as a minimal leaf function with no in leaf() 27 ".global leaf\n" in parent() 28 ".type leaf, %function\n" in parent() 29 "leaf:\n" in parent() 32 " cbz w2, leaf\n" in leafloop() 34 ".size leaf, .-leaf\n" in leafloop() 40 noinline void leaf(voi in leafloop() 20 noinline void leaf(volatile int b) leaf() function [all...] |
| /linux/drivers/gpu/drm/i915/selftests/ |
| H A D | i915_syncmap.c | 146 static int check_seqno(struct i915_syncmap *leaf, unsigned int idx, u32 seqno) in check_seqno() argument 148 if (leaf->height) { in check_seqno() 150 __func__, leaf->height); in check_seqno() 154 if (__sync_seqno(leaf)[idx] != seqno) { in check_seqno() local 156 __func__, idx, __sync_seqno(leaf)[idx], seqno); in check_seqno() 508 struct i915_syncmap *leaf = __sync_child(sync)[idx]; in igt_syncmap_compact() local 510 if (leaf->height) { in igt_syncmap_compact() 516 if (leaf->parent != sync) { in igt_syncmap_compact() 523 if (!is_power_of_2(leaf->bitmap)) { in igt_syncmap_compact() 525 idx, leaf->bitmap, hweight32(leaf->bitmap)); in igt_syncmap_compact() [all …]
|
| /linux/fs/proc/ |
| H A D | bootconfig.c | 28 struct xbc_node *leaf, *vnode; in copy_xbc_key_value_list() local 38 xbc_for_each_key_value(leaf, val) { in copy_xbc_key_value_list() 39 ret = xbc_node_compose_key(leaf, key, XBC_KEYLEN_MAX); in copy_xbc_key_value_list() 46 vnode = xbc_node_get_child(leaf); in copy_xbc_key_value_list()
|
| /linux/net/sched/ |
| H A D | sch_htb.c | 90 /* interior & leaf nodes; props specific to leaves are marked L: 101 int quantum; /* but stored for parent-to-leaf return */ 129 } leaf; 212 * should be passed directly thru. In all other cases leaf class is returned. 217 * have no valid leaf we try to use MAJOR:default leaf. It still unsuccessful 239 /* Start with inner filter chain if a non-leaf class is selected */ in htb_classify() 267 return cl; /* we hit leaf; return it */ in htb_classify() 586 * htb_activate - inserts leaf cl into appropriate active feeds 590 * Routine learns (new) priority of leaf an 128 } leaf; global() member [all...] |
| /linux/fs/btrfs/tests/ |
| H A D | qgroup-tests.c | 24 struct extent_buffer *leaf; in insert_normal_tree_ref() local 47 leaf = path->nodes[0]; in insert_normal_tree_ref() 48 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in insert_normal_tree_ref() 49 btrfs_set_extent_refs(leaf, item, 1); in insert_normal_tree_ref() 50 btrfs_set_extent_generation(leaf, item, 1); in insert_normal_tree_ref() 51 btrfs_set_extent_flags(leaf, item, BTRFS_EXTENT_FLAG_TREE_BLOCK); in insert_normal_tree_ref() 53 btrfs_set_tree_block_level(leaf, block_info, 0); in insert_normal_tree_ref() 56 btrfs_set_extent_inline_ref_type(leaf, iref, in insert_normal_tree_ref() 58 btrfs_set_extent_inline_ref_offset(leaf, iref, parent); in insert_normal_tree_ref() 60 btrfs_set_extent_inline_ref_type(leaf, iref, BTRFS_TREE_BLOCK_REF_KEY); in insert_normal_tree_ref() [all …]
|