Home
last modified time | relevance | path

Searched refs:ri (Results 1 – 3 of 3) sorted by relevance

/tools/net/ynl/
Dynl-gen-c.py95 def _complex_member_type(self, ri): argument
101 def free(self, ri, var, ref): argument
103 ri.cw.p(f'free({var}->{ref}{self.c_name});')
105 def arg_member(self, ri): argument
106 member = self._complex_member_type(ri)
114 def struct_member(self, ri): argument
116 ri.cw.p(f"unsigned int n_{self.c_name};")
117 member = self._complex_member_type(ri)
120 ri.cw.p(f"{member} {ptr}{self.c_name};")
122 members = self.arg_member(ri)
[all …]
/tools/testing/selftests/kvm/lib/s390x/
Dprocessor.c37 static uint64_t virt_alloc_region(struct kvm_vm *vm, int ri) in virt_alloc_region() argument
41 taddr = vm_phy_pages_alloc(vm, ri < 4 ? PAGES_PER_REGION : 1, in virt_alloc_region()
46 | (((4 - ri) << 2) & REGION_ENTRY_TYPE) in virt_alloc_region()
47 | ((ri < 4 ? (PAGES_PER_REGION - 1) : 0) & REGION_ENTRY_LENGTH); in virt_alloc_region()
52 int ri, idx; in virt_arch_pg_map() local
74 for (ri = 1; ri <= 4; ri++) { in virt_arch_pg_map()
75 idx = (gva >> (64 - 11 * ri)) & 0x7ffu; in virt_arch_pg_map()
77 entry[idx] = virt_alloc_region(vm, ri); in virt_arch_pg_map()
91 int ri, idx; in addr_arch_gva2gpa() local
98 for (ri = 1; ri <= 4; ri++) { in addr_arch_gva2gpa()
[all …]
/tools/perf/util/
Dsymbol-elf.c343 static u32 get_rel_symidx(struct rel_info *ri, u32 idx) in get_rel_symidx() argument
345 idx = ri->sorted ? ri->sorted[idx] : idx; in get_rel_symidx()
346 if (ri->is_rela) { in get_rel_symidx()
347 gelf_getrela(ri->reldata, idx, &ri->rela); in get_rel_symidx()
348 return GELF_R_SYM(ri->rela.r_info); in get_rel_symidx()
350 gelf_getrel(ri->reldata, idx, &ri->rel); in get_rel_symidx()
351 return GELF_R_SYM(ri->rel.r_info); in get_rel_symidx()
354 static u64 get_rel_offset(struct rel_info *ri, u32 x) in get_rel_offset() argument
356 if (ri->is_rela) { in get_rel_offset()
359 gelf_getrela(ri->reldata, x, &rela); in get_rel_offset()
[all …]