/openbmc/linux/fs/btrfs/ |
H A D | tree-checker.c | 107 #define CHECK_FE_ALIGNED(leaf, slot, fi, name, alignment) \ argument 109 if (unlikely(!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), \ 111 file_extent_err((leaf), (slot), \ 113 (#name), btrfs_file_extent_##name((leaf), (fi)), \ 115 (!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), (alignment))); \ 118 static u64 file_extent_end(struct extent_buffer *leaf, in file_extent_end() argument 125 if (btrfs_file_extent_type(leaf, extent) == BTRFS_FILE_EXTENT_INLINE) { in file_extent_end() 126 len = btrfs_file_extent_ram_bytes(leaf, extent); in file_extent_end() 127 end = ALIGN(key->offset + len, leaf->fs_info->sectorsize); in file_extent_end() 129 len = btrfs_file_extent_num_bytes(leaf, extent); in file_extent_end() [all …]
|
H A D | dir-item.c | 33 struct extent_buffer *leaf; in insert_with_overflow() local 45 leaf = path->nodes[0]; in insert_with_overflow() 46 ptr = btrfs_item_ptr(leaf, path->slots[0], char); in insert_with_overflow() 47 ASSERT(data_size <= btrfs_item_size(leaf, path->slots[0])); in insert_with_overflow() 48 ptr += btrfs_item_size(leaf, path->slots[0]) - data_size; 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() 86 btrfs_set_dir_item_key(leaf, dir_item, &disk_key); in btrfs_insert_xattr_item() 87 btrfs_set_dir_flags(leaf, dir_item, BTRFS_FT_XATTR); in btrfs_insert_xattr_item() 88 btrfs_set_dir_name_len(leaf, dir_item, name_len); in btrfs_insert_xattr_item() [all …]
|
H A D | inode-item.c | 18 struct btrfs_inode_ref *btrfs_find_name_in_backref(struct extent_buffer *leaf, in btrfs_find_name_in_backref() argument 29 item_size = btrfs_item_size(leaf, slot); in btrfs_find_name_in_backref() 30 ptr = btrfs_item_ptr_offset(leaf, slot); in btrfs_find_name_in_backref() 33 len = btrfs_inode_ref_name_len(leaf, ref); in btrfs_find_name_in_backref() 38 if (memcmp_extent_buffer(leaf, name->name, name_ptr, in btrfs_find_name_in_backref() 46 struct extent_buffer *leaf, int slot, u64 ref_objectid, in btrfs_find_name_in_ext_backref() argument 56 item_size = btrfs_item_size(leaf, slot); in btrfs_find_name_in_ext_backref() 57 ptr = btrfs_item_ptr_offset(leaf, slot); in btrfs_find_name_in_ext_backref() 68 ref_name_len = btrfs_inode_extref_name_len(leaf, extref); in btrfs_find_name_in_ext_backref() 71 btrfs_inode_extref_parent(leaf, extref) == ref_objectid && in btrfs_find_name_in_ext_backref() [all …]
|
H A D | file-item.c | 169 struct extent_buffer *leaf; in btrfs_insert_hole_extent() local 183 leaf = path->nodes[0]; in btrfs_insert_hole_extent() 184 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_hole_extent() 186 btrfs_set_file_extent_disk_bytenr(leaf, item, 0); in btrfs_insert_hole_extent() 187 btrfs_set_file_extent_disk_num_bytes(leaf, item, 0); in btrfs_insert_hole_extent() 188 btrfs_set_file_extent_offset(leaf, item, 0); in btrfs_insert_hole_extent() 189 btrfs_set_file_extent_num_bytes(leaf, item, num_bytes); in btrfs_insert_hole_extent() 190 btrfs_set_file_extent_ram_bytes(leaf, item, num_bytes); in btrfs_insert_hole_extent() 191 btrfs_set_file_extent_generation(leaf, item, trans->transid); in btrfs_insert_hole_extent() 192 btrfs_set_file_extent_type(leaf, item, BTRFS_FILE_EXTENT_REG); in btrfs_insert_hole_extent() [all …]
|
H 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() 74 read_extent_buffer(leaf, buffer, data_ptr, in btrfs_getxattr() 75 btrfs_dir_data_len(leaf, di)); in btrfs_getxattr() 76 ret = btrfs_dir_data_len(leaf, di); in btrfs_getxattr() 173 struct extent_buffer *leaf = path->nodes[0]; in btrfs_setxattr() local 174 const u16 old_data_len = btrfs_dir_data_len(leaf, di); in btrfs_setxattr() [all …]
|
H A D | ctree.c | 57 static unsigned int leaf_data_end(const struct extent_buffer *leaf) in leaf_data_end() argument 59 u32 nr = btrfs_header_nritems(leaf); in leaf_data_end() 62 return BTRFS_LEAF_DATA_SIZE(leaf->fs_info); in leaf_data_end() 63 return btrfs_item_offset(leaf, nr - 1); in leaf_data_end() 79 static inline void memmove_leaf_data(const struct extent_buffer *leaf, in memmove_leaf_data() argument 84 memmove_extent_buffer(leaf, btrfs_item_nr_offset(leaf, 0) + dst_offset, in memmove_leaf_data() 85 btrfs_item_nr_offset(leaf, 0) + src_offset, len); in memmove_leaf_data() 122 static inline void memmove_leaf_items(const struct extent_buffer *leaf, in memmove_leaf_items() argument 125 memmove_extent_buffer(leaf, btrfs_item_nr_offset(leaf, dst_item), in memmove_leaf_items() 126 btrfs_item_nr_offset(leaf, src_item), in memmove_leaf_items() [all …]
|
H A D | file.c | 205 struct extent_buffer *leaf; in btrfs_drop_extents() local 255 leaf = path->nodes[0]; in btrfs_drop_extents() 256 btrfs_item_key_to_cpu(leaf, &key, path->slots[0] - 1); in btrfs_drop_extents() 263 leaf = path->nodes[0]; in btrfs_drop_extents() 264 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in btrfs_drop_extents() 273 leaf = path->nodes[0]; in btrfs_drop_extents() 277 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_drop_extents() 290 fi = btrfs_item_ptr(leaf, path->slots[0], in btrfs_drop_extents() 292 extent_type = btrfs_file_extent_type(leaf, fi); in btrfs_drop_extents() 296 disk_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); in btrfs_drop_extents() [all …]
|
H A D | root-tree.c | 213 struct extent_buffer *leaf; in btrfs_find_orphan_roots() local 237 leaf = path->nodes[0]; in btrfs_find_orphan_roots() 238 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in btrfs_find_orphan_roots() 244 leaf = path->nodes[0]; in btrfs_find_orphan_roots() 247 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_find_orphan_roots() 341 struct extent_buffer *leaf; in btrfs_del_root_ref() local 358 leaf = path->nodes[0]; in btrfs_del_root_ref() 359 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_del_root_ref() 362 if ((btrfs_root_ref_dirid(leaf, ref) != dirid) || in btrfs_del_root_ref() 363 (btrfs_root_ref_name_len(leaf, ref) != name->len) || in btrfs_del_root_ref() [all …]
|
/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_iext_tree.c | 142 return &cur->leaf->recs[cur->pos]; in cur_rec() 148 if (!cur->leaf) in xfs_iext_valid() 202 cur->leaf = xfs_iext_find_first_leaf(ifp); in xfs_iext_first() 212 cur->leaf = xfs_iext_find_last_leaf(ifp); in xfs_iext_last() 213 if (!cur->leaf) { in xfs_iext_last() 219 if (xfs_iext_rec_is_empty(&cur->leaf->recs[i])) in xfs_iext_last() 230 if (!cur->leaf) { in xfs_iext_next() 241 cur->leaf->next) { in xfs_iext_next() 242 cur->leaf = cur->leaf->next; in xfs_iext_next() 252 if (!cur->leaf) { in xfs_iext_prev() [all …]
|
H A D | xfs_dir2_leaf.c | 104 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf1_check() local 107 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir3_leaf1_check() 116 return xfs_dir3_leaf_check_int(dp->i_mount, &leafhdr, leaf, false); in xfs_dir3_leaf1_check() 142 struct xfs_dir2_leaf *leaf, in xfs_dir3_leaf_check_int() argument 152 ltp = xfs_dir2_leaf_tail_p(geo, leaf); in xfs_dir3_leaf_check_int() 312 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf_init() local 328 memset(leaf, 0, sizeof(*leaf)); in xfs_dir3_leaf_init() 329 leaf->hdr.info.magic = cpu_to_be16(type); in xfs_dir3_leaf_init() 339 ltp = xfs_dir2_leaf_tail_p(mp->m_dir_geo, leaf); in xfs_dir3_leaf_init() 396 xfs_dir2_leaf_t *leaf; /* leaf structure */ in xfs_dir2_block_to_leaf() local [all …]
|
/openbmc/linux/arch/x86/kernel/ |
H A D | sev-shared.c | 260 static int __sev_cpuid_hv_msr(struct cpuid_leaf *leaf) in __sev_cpuid_hv_msr() argument 272 if (cpuid_function_is_indexed(leaf->fn) && leaf->subfn) in __sev_cpuid_hv_msr() 275 ret = __sev_cpuid_hv(leaf->fn, GHCB_CPUID_REQ_EAX, &leaf->eax); in __sev_cpuid_hv_msr() 276 ret = ret ? : __sev_cpuid_hv(leaf->fn, GHCB_CPUID_REQ_EBX, &leaf->ebx); in __sev_cpuid_hv_msr() 277 ret = ret ? : __sev_cpuid_hv(leaf->fn, GHCB_CPUID_REQ_ECX, &leaf->ecx); in __sev_cpuid_hv_msr() 278 ret = ret ? : __sev_cpuid_hv(leaf->fn, GHCB_CPUID_REQ_EDX, &leaf->edx); in __sev_cpuid_hv_msr() 283 static int __sev_cpuid_hv_ghcb(struct ghcb *ghcb, struct es_em_ctxt *ctxt, struct cpuid_leaf *leaf) in __sev_cpuid_hv_ghcb() argument 288 ghcb_set_rax(ghcb, leaf->fn); in __sev_cpuid_hv_ghcb() 289 ghcb_set_rcx(ghcb, leaf->subfn); in __sev_cpuid_hv_ghcb() 308 leaf->eax = ghcb->save.rax; in __sev_cpuid_hv_ghcb() [all …]
|
/openbmc/libbej/src/ |
H A D | bej_encoder_metadata.c | 192 dictionaries, parentDictionary, &node->leaf.nodeAttr, nodeIndex, in bejUpdateIntMetaData() 194 node->leaf.metaData.sequenceNumber = sequenceNumber; in bejUpdateIntMetaData() 198 node->leaf.metaData.sflSize = bejNnintEncodingSizeOfUInt(sequenceNumber); in bejUpdateIntMetaData() 200 node->leaf.metaData.sflSize += BEJ_TUPLE_F_SIZE; in bejUpdateIntMetaData() 202 node->leaf.metaData.sflSize += BEJ_TUPLE_L_SIZE_FOR_BEJ_INTEGER; in bejUpdateIntMetaData() 204 node->leaf.metaData.vSize = bejIntLengthOfValue(node->value); in bejUpdateIntMetaData() 215 dictionaries, parentDictionary, &(node->leaf.nodeAttr), nodeIndex, in bejUpdateStringMetaData() 217 node->leaf.metaData.sequenceNumber = sequenceNumber; in bejUpdateStringMetaData() 221 node->leaf.metaData.sflSize = bejNnintEncodingSizeOfUInt(sequenceNumber); in bejUpdateStringMetaData() 223 node->leaf.metaData.sflSize += BEJ_TUPLE_F_SIZE; in bejUpdateStringMetaData() [all …]
|
H A D | bej_encoder_core.c | 67 bejEncodeNnint(node->leaf.metaData.sequenceNumber, output)); in bejEncodeBejInteger() 69 RETURN_IF_IERROR(bejEncodeFormat(&node->leaf.nodeAttr.format, output)); in bejEncodeBejInteger() 71 RETURN_IF_IERROR(bejEncodeNnint(node->leaf.metaData.vSize, output)); in bejEncodeBejInteger() 84 bejEncodeNnint(node->leaf.metaData.sequenceNumber, output)); in bejEncodeBejEnum() 86 RETURN_IF_IERROR(bejEncodeFormat(&node->leaf.nodeAttr.format, output)); in bejEncodeBejEnum() 88 RETURN_IF_IERROR(bejEncodeNnint(node->leaf.metaData.vSize, output)); in bejEncodeBejEnum() 98 bejEncodeNnint(node->leaf.metaData.sequenceNumber, output)); in bejEncodeBejString() 100 RETURN_IF_IERROR(bejEncodeFormat(&node->leaf.nodeAttr.format, output)); in bejEncodeBejString() 102 RETURN_IF_IERROR(bejEncodeNnint(node->leaf.metaData.vSize, output)); in bejEncodeBejString() 104 return output->recvOutput((void*)node->value, node->leaf.metaData.vSize, in bejEncodeBejString() [all …]
|
/openbmc/libbej/test/ |
H A D | bej_tree_test.cpp | 83 EXPECT_THAT(child1.leaf.nodeAttr.sibling, &child2); in TEST() 95 EXPECT_THAT(child.leaf.nodeAttr.name, name); in TEST() 96 EXPECT_THAT(child.leaf.nodeAttr.format.principalDataType, bejInteger); in TEST() 97 EXPECT_THAT(child.leaf.nodeAttr.format.deferredBinding, 0); in TEST() 98 EXPECT_THAT(child.leaf.nodeAttr.format.readOnlyProperty, 0); in TEST() 99 EXPECT_THAT(child.leaf.nodeAttr.format.nullableProperty, 0); in TEST() 100 EXPECT_THAT(child.leaf.nodeAttr.sibling, nullptr); in TEST() 128 EXPECT_THAT(child.leaf.nodeAttr.name, name); in TEST() 129 EXPECT_THAT(child.leaf.nodeAttr.format.principalDataType, bejEnum); in TEST() 130 EXPECT_THAT(child.leaf.nodeAttr.format.deferredBinding, 0); in TEST() [all …]
|
/openbmc/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()
|
/openbmc/linux/arch/loongarch/mm/ |
H A D | cache.c | 44 static void flush_cache_leaf(unsigned int leaf) in flush_cache_leaf() argument 48 struct cache_desc *cdesc = current_cpu_data.cache_leaves + leaf; in flush_cache_leaf() 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() 94 #define populate_cache_properties(cfg0, cdesc, level, leaf) \ argument [all …]
|
/openbmc/linux/tools/arch/x86/kcpuid/ |
H A D | kcpuid.c | 125 static void leaf_print_raw(struct subleaf *leaf) in leaf_print_raw() argument 127 if (has_subleafs(leaf->index)) { in leaf_print_raw() 128 if (leaf->sub == 0) in leaf_print_raw() 129 printf("0x%08x: subleafs:\n", leaf->index); in leaf_print_raw() 132 leaf->sub, leaf->eax, leaf->ebx, leaf->ecx, leaf->edx); in leaf_print_raw() 135 leaf->index, leaf->eax, leaf->ebx, leaf->ecx, leaf->edx); in leaf_print_raw() 144 struct subleaf *leaf; in cpuid_store() local 164 func->leafs = realloc(func->leafs, (s + 1) * sizeof(*leaf)); in cpuid_store() 171 leaf = &func->leafs[s]; in cpuid_store() 173 leaf->index = f; in cpuid_store() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/vfn/ |
H A D | tu102.c | 27 tu102_vfn_intr_reset(struct nvkm_intr *intr, int leaf, u32 mask) in tu102_vfn_intr_reset() argument 31 nvkm_wr32(vfn->subdev.device, vfn->addr.priv + 0x1000 + (leaf * 4), mask); in tu102_vfn_intr_reset() 35 tu102_vfn_intr_allow(struct nvkm_intr *intr, int leaf, u32 mask) in tu102_vfn_intr_allow() argument 39 nvkm_wr32(vfn->subdev.device, vfn->addr.priv + 0x1200 + (leaf * 4), mask); in tu102_vfn_intr_allow() 43 tu102_vfn_intr_block(struct nvkm_intr *intr, int leaf, u32 mask) in tu102_vfn_intr_block() argument 47 nvkm_wr32(vfn->subdev.device, vfn->addr.priv + 0x1400 + (leaf * 4), mask); in tu102_vfn_intr_block() 72 int pending = 0, leaf; in tu102_vfn_intr_pending() local 74 for (leaf = 0; leaf < 8; leaf++) { in tu102_vfn_intr_pending() 75 if (intr_top & BIT(leaf / 2)) { in tu102_vfn_intr_pending() 76 intr->stat[leaf] = nvkm_rd32(device, vfn->addr.priv + 0x1000 + (leaf * 4)); in tu102_vfn_intr_pending() [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/linux/arch/x86/kernel/cpu/ |
H A D | topology.c | 35 static int check_extended_topology_leaf(int leaf) in check_extended_topology_leaf() argument 39 cpuid_count(leaf, SMT_LEVEL, &eax, &ebx, &ecx, &edx); in check_extended_topology_leaf() 69 int leaf; in detect_extended_topology_early() local 71 leaf = detect_extended_topology_leaf(c); in detect_extended_topology_early() 72 if (leaf < 0) in detect_extended_topology_early() 77 cpuid_count(leaf, SMT_LEVEL, &eax, &ebx, &ecx, &edx); in detect_extended_topology_early() 101 int leaf; in detect_extended_topology() local 103 leaf = detect_extended_topology_leaf(c); in detect_extended_topology() 104 if (leaf < 0) in detect_extended_topology() 110 cpuid_count(leaf, SMT_LEVEL, &eax, &ebx, &ecx, &edx); in detect_extended_topology() [all …]
|
/openbmc/linux/drivers/net/can/usb/kvaser_usb/ |
H A D | kvaser_usb_leaf.c | 180 } __packed leaf; member 350 } __packed leaf; member 374 [CMD_GET_SOFTWARE_INFO_REPLY] = kvaser_fsize(u.leaf.softinfo), 375 [CMD_RX_STD_MESSAGE] = kvaser_fsize(u.leaf.rx_can), 376 [CMD_RX_EXT_MESSAGE] = kvaser_fsize(u.leaf.rx_can), 377 [CMD_LEAF_LOG_MESSAGE] = kvaser_fsize(u.leaf.log_message), 378 [CMD_CHIP_STATE_EVENT] = kvaser_fsize(u.leaf.chip_state_event), 379 [CMD_CAN_ERROR_EVENT] = kvaser_fsize(u.leaf.can_error_event), 380 [CMD_GET_CAPABILITIES_RESP] = kvaser_fsize(u.leaf.cap_res), 382 [CMD_ERROR_EVENT] = kvaser_fsize(u.leaf.error_event), [all …]
|
/openbmc/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 …]
|
H 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() 397 if (um->tables->utf8agetab[LEAF_GEN(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 500 leaf = utf8lookup(u8c->um, u8c->n, u8c->hangul, u8c->s); in utf8byte() 502 leaf = utf8nlookup(u8c->um, u8c->n, u8c->hangul, in utf8byte() 507 if (!leaf) in utf8byte() [all …]
|
/openbmc/linux/tools/testing/selftests/cgroup/ |
H A D | test_cpu.c | 411 struct cpu_hogger leaf[3] = {NULL}; in run_cpucg_nested_weight_test() local 442 for (i = 0; i < ARRAY_SIZE(leaf); i++) { in run_cpucg_nested_weight_test() 453 leaf[i].cgroup = cg_name_indexed(ancestor, "cpucg_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() 460 if (cg_write_numeric(leaf[i].cgroup, "cpu.weight", weight)) in run_cpucg_nested_weight_test() 464 for (i = 0; i < ARRAY_SIZE(leaf); i++) { in run_cpucg_nested_weight_test() 475 pid = cg_run_nowait(leaf[i].cgroup, hog_cpus_timed, in run_cpucg_nested_weight_test() 479 leaf[i].pid = pid; in run_cpucg_nested_weight_test() 482 for (i = 0; i < ARRAY_SIZE(leaf); i++) { in run_cpucg_nested_weight_test() [all …]
|