/linux/fs/btrfs/ |
A D | tree-checker.c | 201 dir_item_err(leaf, slot, in check_prev_ino() 372 generic_err(leaf, slot, in check_csum_item() 378 generic_err(leaf, slot, in check_csum_item() 384 generic_err(leaf, slot, in check_csum_item() 479 generic_err(leaf, slot, in check_root_key() 708 read_extent_buffer(leaf, &bgi, btrfs_item_ptr_offset(leaf, slot), in check_block_group_item() 1202 read_extent_buffer(leaf, &ri, btrfs_item_ptr_offset(leaf, slot), in check_root_item() 1910 generic_err(leaf, 0, in __btrfs_check_leaf() 1938 generic_err(leaf, 0, in __btrfs_check_leaf() 1946 generic_err(leaf, 0, in __btrfs_check_leaf() [all …]
|
A D | dir-item.c | 33 struct extent_buffer *leaf; in insert_with_overflow() local 45 leaf = path->nodes[0]; in insert_with_overflow() 67 struct extent_buffer *leaf; in btrfs_insert_xattr_item() local 84 leaf = path->nodes[0]; in btrfs_insert_xattr_item() 118 struct extent_buffer *leaf; in btrfs_insert_dir_item() local 147 leaf = path->nodes[0]; in btrfs_insert_dir_item() 240 struct extent_buffer *leaf; in btrfs_check_dir_item_collision() local 275 leaf = path->nodes[0]; in btrfs_check_dir_item_collision() 390 struct extent_buffer *leaf; in btrfs_match_dir_item_name() local 392 leaf = path->nodes[0]; in btrfs_match_dir_item_name() [all …]
|
A D | inode-item.c | 28 item_size = btrfs_item_size(leaf, slot); in btrfs_find_name_in_backref() 115 struct extent_buffer *leaf; in btrfs_del_inode_extref() local 149 leaf = path->nodes[0]; in btrfs_del_inode_extref() 184 struct extent_buffer *leaf; in btrfs_del_inode_ref() local 216 leaf = path->nodes[0]; in btrfs_del_inode_ref() 265 struct extent_buffer *leaf; in btrfs_insert_inode_extref() local 290 leaf = path->nodes[0]; in btrfs_insert_inode_extref() 408 struct extent_buffer *leaf; in btrfs_lookup_inode() local 415 leaf = path->nodes[0]; in btrfs_lookup_inode() 464 struct extent_buffer *leaf; in btrfs_truncate_inode_items() local [all …]
|
A D | file-item.c | 180 leaf = path->nodes[0]; in btrfs_insert_hole_extent() 222 leaf = path->nodes[0]; in btrfs_lookup_csum() 496 leaf = path->nodes[0]; in btrfs_lookup_csums_list() 525 leaf = path->nodes[0]; in btrfs_lookup_csums_list() 652 leaf = path->nodes[0]; in btrfs_lookup_csums_bitmap() 682 leaf = path->nodes[0]; in btrfs_lookup_csums_bitmap() 837 leaf = path->nodes[0]; in truncate_one_csum() 910 leaf = path->nodes[0]; in btrfs_del_csums() 1085 leaf = path->nodes[0]; in btrfs_csum_file_blocks() 1146 leaf = path->nodes[0]; in btrfs_csum_file_blocks() [all …]
|
A D | file.c | 207 struct extent_buffer *leaf; in btrfs_drop_extents() local 256 leaf = path->nodes[0]; in btrfs_drop_extents() 264 leaf = path->nodes[0]; in btrfs_drop_extents() 274 leaf = path->nodes[0]; in btrfs_drop_extents() 359 leaf = path->nodes[0]; in btrfs_drop_extents() 525 leaf = path->nodes[0]; in btrfs_drop_extents() 640 leaf = path->nodes[0]; in btrfs_mark_extent_written() 738 leaf = path->nodes[0]; in btrfs_mark_extent_written() 2127 leaf = path->nodes[0]; in fill_holes() 2294 leaf = path->nodes[0]; in btrfs_insert_replace_extent() [all …]
|
A D | ctree.c | 84 memmove_extent_buffer(leaf, btrfs_item_nr_offset(leaf, 0) + dst_offset, in memmove_leaf_data() 125 memmove_extent_buffer(leaf, btrfs_item_nr_offset(leaf, dst_item), in memmove_leaf_items() 2465 leaf = p->nodes[0]; in btrfs_search_slot_for_read() 2489 leaf = p->nodes[0]; in btrfs_search_slot_for_read() 3862 leaf = path->nodes[0]; in setup_leaf_for_split() 3889 leaf = path->nodes[0]; in setup_leaf_for_split() 3930 leaf = path->nodes[0]; in split_item() 3946 read_extent_buffer(leaf, buf, btrfs_item_ptr_offset(leaf, in split_item() 4034 leaf = path->nodes[0]; in btrfs_truncate_item() 4125 leaf = path->nodes[0]; in btrfs_extend_item() [all …]
|
A D | xattr.c | 33 struct extent_buffer *leaf; in btrfs_getxattr() local 52 leaf = path->nodes[0]; in btrfs_getxattr() 55 ret = btrfs_dir_data_len(leaf, di); in btrfs_getxattr() 60 if (btrfs_dir_data_len(leaf, di) > size) { in btrfs_getxattr() 73 btrfs_dir_name_len(leaf, di)); in btrfs_getxattr() 75 btrfs_dir_data_len(leaf, di)); in btrfs_getxattr() 76 ret = btrfs_dir_data_len(leaf, di); in btrfs_getxattr() 181 if (btrfs_leaf_free_space(leaf) < in btrfs_setxattr() 208 btrfs_mark_buffer_dirty(trans, leaf); in btrfs_setxattr() 304 struct extent_buffer *leaf; in btrfs_listxattr() local [all …]
|
A D | raid-stripe-tree.c | 22 struct extent_buffer *leaf; in btrfs_delete_raid_extent() local 51 leaf = path->nodes[0]; in btrfs_delete_raid_extent() 53 btrfs_item_key_to_cpu(leaf, &key, slot); in btrfs_delete_raid_extent() 87 struct extent_buffer *leaf; in update_raid_extent_item() local 100 leaf = path->nodes[0]; in update_raid_extent_item() 103 write_extent_buffer(leaf, stripe_extent, btrfs_item_ptr_offset(leaf, slot), in update_raid_extent_item() 105 btrfs_mark_buffer_dirty(trans, leaf); in update_raid_extent_item() 195 struct extent_buffer *leaf; in btrfs_get_raid_extent_offset() local 227 leaf = path->nodes[0]; in btrfs_get_raid_extent_offset() 230 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_get_raid_extent_offset() [all …]
|
A D | root-tree.c | 219 struct extent_buffer *leaf; in btrfs_find_orphan_roots() local 243 leaf = path->nodes[0]; in btrfs_find_orphan_roots() 250 leaf = path->nodes[0]; in btrfs_find_orphan_roots() 350 struct extent_buffer *leaf; in btrfs_del_root_ref() local 367 leaf = path->nodes[0]; in btrfs_del_root_ref() 368 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_del_root_ref() 377 *sequence = btrfs_root_ref_sequence(leaf, ref); in btrfs_del_root_ref() 424 struct extent_buffer *leaf; in btrfs_add_root_ref() local 443 leaf = path->nodes[0]; in btrfs_add_root_ref() 445 btrfs_set_root_ref_dirid(leaf, ref, dirid); in btrfs_add_root_ref() [all …]
|
/linux/fs/xfs/libxfs/ |
A D | xfs_iext_tree.c | 242 cur->leaf = cur->leaf->next; in xfs_iext_next() 269 cur->leaf = cur->leaf->prev; in xfs_iext_prev() 827 if (cur->leaf == leaf) { in xfs_iext_rebalance_leaf() 828 cur->leaf = leaf->prev; in xfs_iext_rebalance_leaf() 849 if (cur->leaf == leaf->next) { in xfs_iext_rebalance_leaf() 850 cur->leaf = leaf; in xfs_iext_rebalance_leaf() 855 leaf = leaf->next; in xfs_iext_rebalance_leaf() 863 leaf->prev->next = leaf->next; in xfs_iext_rebalance_leaf() 865 leaf->next->prev = leaf->prev; in xfs_iext_rebalance_leaf() 909 cur->leaf = leaf->next; in xfs_iext_remove() [all …]
|
A D | xfs_dir2_leaf.c | 143 struct xfs_dir2_leaf *leaf, in xfs_dir3_leaf_check_int() argument 153 ltp = xfs_dir2_leaf_tail_p(geo, leaf); in xfs_dir3_leaf_check_int() 380 memset(leaf, 0, sizeof(*leaf)); in xfs_dir3_leaf_init() 476 leaf = lbp->b_addr; in xfs_dir2_block_to_leaf() 712 leaf = lbp->b_addr; in xfs_dir2_leaf_addname() 983 leaf = bp->b_addr; in xfs_dir3_leaf_compact() 1180 (uint)((char *)&leaf->hdr - (char *)leaf), in xfs_dir3_leaf_log_header() 1298 leaf = lbp->b_addr; in xfs_dir2_leaf_lookup_int() 1431 leaf = lbp->b_addr; in xfs_dir2_leaf_removename() 1674 leaf = lbp->b_addr; in xfs_dir2_leaf_trim_data() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mc/ |
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()
|
/linux/arch/loongarch/mm/ |
A D | cache.c | 44 static void flush_cache_leaf(unsigned int leaf) in flush_cache_leaf() argument 55 flush_cache_line(leaf, addr); in flush_cache_leaf() 68 int leaf; in __flush_cache_all() local 72 leaf = cache_present - 1; in __flush_cache_all() 73 if (cache_inclusive(cdesc + leaf)) { in __flush_cache_all() 74 flush_cache_leaf(leaf); in __flush_cache_all() 78 for (leaf = 0; leaf < cache_present; leaf++) in __flush_cache_all() 79 flush_cache_leaf(leaf); in __flush_cache_all() 112 cdesc++; leaf++; \ 117 unsigned int leaf = 0, level = 1; in cpu_cache_init() local [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/vfn/ |
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 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() 79 if (intr->stat[leaf]) in tu102_vfn_intr_pending() [all …]
|
/linux/tools/arch/x86/kcpuid/ |
A D | kcpuid.c | 121 leaf->sub, leaf->eax, leaf->ebx, leaf->ecx, leaf->edx); in leaf_print_raw() 124 leaf->index, leaf->eax, leaf->ebx, leaf->ecx, leaf->edx); in leaf_print_raw() 164 leaf->eax = a; in cpuid_store() 165 leaf->ebx = b; in cpuid_store() 166 leaf->ecx = c; in cpuid_store() 485 if (!leaf) in show_leaf() 493 leaf->index, leaf->sub); in show_leaf() 496 decode_bits(leaf->eax, &leaf->info[R_EAX], R_EAX); in show_leaf() 497 decode_bits(leaf->ebx, &leaf->info[R_EBX], R_EBX); in show_leaf() 498 decode_bits(leaf->ecx, &leaf->info[R_ECX], R_ECX); in show_leaf() [all …]
|
/linux/arch/x86/coco/sev/ |
A D | shared.c | 420 if (cpuid_function_is_indexed(leaf->fn) && leaf->subfn) in __sev_cpuid_hv_msr() 423 ret = __sev_cpuid_hv(leaf->fn, GHCB_CPUID_REQ_EAX, &leaf->eax); in __sev_cpuid_hv_msr() 424 ret = ret ? : __sev_cpuid_hv(leaf->fn, GHCB_CPUID_REQ_EBX, &leaf->ebx); in __sev_cpuid_hv_msr() 425 ret = ret ? : __sev_cpuid_hv(leaf->fn, GHCB_CPUID_REQ_ECX, &leaf->ecx); in __sev_cpuid_hv_msr() 549 if (cpuid_function_is_indexed(leaf->fn) && e->ecx_in != leaf->subfn) in snp_cpuid_get_validated_func() 584 switch (leaf->fn) { in snp_cpuid_postprocess() 591 leaf->edx = (leaf_hv.edx & BIT(9)) | (leaf->edx & ~BIT(9)); in snp_cpuid_postprocess() 615 if (leaf->subfn != 0 && leaf->subfn != 1) in snp_cpuid_postprocess() 700 leaf->eax = leaf->ebx = leaf->ecx = leaf->edx = 0; in snp_cpuid() 733 leaf.fn = fn; in do_vc_no_ghcb() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/core/ |
A D | intr.c | 46 *leaf = data->leaf; in nvkm_intr_xlat() 54 *leaf = data->leaf; in nvkm_intr_xlat() 66 *leaf = type / 32; in nvkm_intr_xlat() 93 intr->mask[leaf] |= mask; in nvkm_intr_allow_locked() 107 int leaf; in nvkm_intr_allow() local 122 intr->mask[leaf] &= ~mask; in nvkm_intr_block_locked() 133 int leaf; in nvkm_intr_block() local 171 int prio, leaf; in nvkm_intr() local 213 for (leaf = 0; leaf < intr->leaves; leaf++) { in nvkm_intr() 216 leaf, intr->stat[leaf]); in nvkm_intr() [all …]
|
/linux/drivers/net/ethernet/dec/tulip/ |
A D | eeprom.c | 246 leaf->type = 0; in tulip_parse_eeprom() 248 leaf->leafdata = p; in tulip_parse_eeprom() 253 leaf->type = p[1]; in tulip_parse_eeprom() 262 leaf->leafdata = p + 2; in tulip_parse_eeprom() 269 leaf->media = 11; in tulip_parse_eeprom() 278 leaf->media = 3; in tulip_parse_eeprom() 279 switch (leaf->media) { in tulip_parse_eeprom() 299 leaf->leafdata = p + 2; in tulip_parse_eeprom() 312 i, medianame[leaf->media & 15], leaf->media, in tulip_parse_eeprom() 313 leaf->type < ARRAY_SIZE(block_name) ? block_name[leaf->type] : "<unknown>", in tulip_parse_eeprom() [all …]
|
/linux/arch/x86/include/asm/ |
A D | cpuid.h | 132 regs[CPUID_EAX] = leaf; in __cpuid_read() 137 #define cpuid_subleaf(leaf, subleaf, regs) { \ argument 139 __cpuid_read(leaf, subleaf, (u32 *)(regs)); \ 142 #define cpuid_leaf(leaf, regs) { \ argument 144 __cpuid_read(leaf, 0, (u32 *)(regs)); \ 147 static inline void __cpuid_read_reg(unsigned int leaf, unsigned int subleaf, in __cpuid_read_reg() argument 152 __cpuid_read(leaf, subleaf, regs); in __cpuid_read_reg() 156 #define cpuid_subleaf_reg(leaf, subleaf, regidx, reg) { \ argument 158 __cpuid_read_reg(leaf, subleaf, regidx, (u32 *)(reg)); \ 161 #define cpuid_leaf_reg(leaf, regidx, reg) { \ argument [all …]
|
/linux/drivers/net/can/usb/kvaser_usb/ |
A D | kvaser_usb_leaf.c | 184 } __packed leaf; member 375 } __packed leaf; member 443 } leaf; member 1139 leaf = priv->sub_priv; in kvaser_usb_leaf_rx_error() 1326 es.leaf.error_factor = cmd->u.leaf.can_error_event.error_factor; in kvaser_usb_leaf_leaf_rx_error() 1333 es.leaf.error_factor = cmd->u.leaf.log_message.data[1]; in kvaser_usb_leaf_leaf_rx_error() 1795 leaf = devm_kzalloc(&priv->dev->intf->dev, sizeof(*leaf), GFP_KERNEL); in kvaser_usb_leaf_init_channel() 1796 if (!leaf) in kvaser_usb_leaf_init_channel() 1799 leaf->net = priv; in kvaser_usb_leaf_init_channel() 1803 priv->sub_priv = leaf; in kvaser_usb_leaf_init_channel() [all …]
|
/linux/fs/unicode/ |
A D | mkutf8data.c | 410 return leaf; in lookup() 1420 leaf->code, leaf->ccc, leaf->gen); in nfdi_print() 1422 if (leaf->utf8nfdi && leaf->utf8nfdi[0] == HANGUL) in nfdi_print() 1435 leaf->code, leaf->ccc, leaf->gen); in nfdicf_print() 2746 if (!leaf) in utf8agemax() 2773 if (!leaf) in utf8agemin() 2799 if (!leaf) in utf8nagemax() 2826 if (!leaf) in utf8nagemin() 2853 if (!leaf) in utf8len() 2880 if (!leaf) in utf8nlen() [all …]
|
A D | utf8-norm.c | 389 utf8leaf_t *leaf; in utf8nlen() local 394 leaf = utf8nlookup(um, n, hangul, s, len); in utf8nlen() 395 if (!leaf) in utf8nlen() 400 else if (LEAF_CCC(leaf) == DECOMPOSE) in utf8nlen() 401 ret += strlen(LEAF_STR(leaf)); in utf8nlen() 473 utf8leaf_t *leaf; in utf8byte() local 507 if (!leaf) in utf8byte() 510 ccc = LEAF_CCC(leaf); in utf8byte() 518 u8c->s = LEAF_STR(leaf); in utf8byte() 528 if (!leaf) in utf8byte() [all …]
|
/linux/tools/testing/selftests/cgroup/ |
A D | test_cpu.c | 411 struct cpu_hogger leaf[3] = {}; in run_cpucg_nested_weight_test() local 442 for (i = 0; i < ARRAY_SIZE(leaf); i++) { in run_cpucg_nested_weight_test() 454 if (!leaf[i].cgroup) in run_cpucg_nested_weight_test() 457 if (cg_create(leaf[i].cgroup)) in run_cpucg_nested_weight_test() 479 leaf[i].pid = pid; in run_cpucg_nested_weight_test() 485 waitpid(leaf[i].pid, &retcode, 0); in run_cpucg_nested_weight_test() 493 leaf[i].usage = cg_read_key_long(leaf[i].cgroup, in run_cpucg_nested_weight_test() 495 if (leaf[i].usage <= 0) in run_cpucg_nested_weight_test() 499 nested_leaf_usage = leaf[1].usage + leaf[2].usage; in run_cpucg_nested_weight_test() 516 cg_destroy(leaf[i].cgroup); in run_cpucg_nested_weight_test() [all …]
|
/linux/arch/x86/kernel/cpu/ |
A D | topology_ext.c | 45 static inline bool topo_subleaf(struct topo_scan *tscan, u32 leaf, u32 subleaf, in topo_subleaf() argument 66 switch (leaf) { in topo_subleaf() 73 cpuid_subleaf(leaf, subleaf, &sl); in topo_subleaf() 80 leaf, subleaf, sl.type); in topo_subleaf() 97 leaf, subleaf, tscan->c->topo.initial_apicid, sl.x2apic_id); in topo_subleaf() 104 static bool parse_topology_leaf(struct topo_scan *tscan, u32 leaf) in parse_topology_leaf() argument 110 for (subleaf = 0, last_dom = 0; topo_subleaf(tscan, leaf, subleaf, &last_dom); subleaf++); in parse_topology_leaf() 125 leaf, tscan->dom_ncpus[TOPO_SMT_DOMAIN]); in parse_topology_leaf()
|
/linux/arch/mips/kernel/ |
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++; \
|