Home
last modified time | relevance | path

Searched refs:where (Results 1 – 25 of 1343) sorted by relevance

12345678910>>...54

/freebsd/usr.bin/rpcgen/
H A Drpc_scan.c45 #define startcomment(where) (where[0] == '/' && where[1] == '*') argument
46 #define endcomment(where) (where[-1] == '*' && where[0] == '/') argument
154 if (*where == 0) { in get_token()
164 *where = 0; in get_token()
179 where = curline; in get_token()
180 } else if (isspace(*where)) { in get_token()
181 while (isspace(*where)) { in get_token()
182 where++; /* eat */ in get_token()
185 for (where++; *where; where++) { in get_token()
186 if (endcomment(where)) { in get_token()
[all …]
/freebsd/libexec/rtld-elf/arm/
H A Dreloc.c91 Elf_Addr *where; in _rtld_relocate_nonplt_self() local
105 where = (Elf_Addr *)(relocbase + rel->r_offset); in _rtld_relocate_nonplt_self()
107 *where += (Elf_Addr)relocbase; in _rtld_relocate_nonplt_self()
118 load_ptr(void *where) in load_ptr() argument
122 memcpy(&res, where, sizeof(res)); in load_ptr()
128 store_ptr(void *where, Elf_Addr val) in store_ptr() argument
131 memcpy(where, &val, sizeof(val)); in store_ptr()
138 Elf_Addr *where; in reloc_nonplt_object() local
144 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_nonplt_object()
158 addend = *where; in reloc_nonplt_object()
[all …]
/freebsd/sys/riscv/riscv/
H A Delf_machdep.c296 Elf64_Addr *where; in elf_reloc_internal() local
308 where = (Elf_Addr *)(relocbase + rela->r_offset); in elf_reloc_internal()
309 insn32p = (uint32_t *)where; in elf_reloc_internal()
329 before64 = *where; in elf_reloc_internal()
330 *where = addr + addend; in elf_reloc_internal()
332 printf("%p %c %-24s %016lx -> %016lx\n", where, in elf_reloc_internal()
334 before64, *where); in elf_reloc_internal()
342 before64 = *where; in elf_reloc_internal()
343 *where = addr; in elf_reloc_internal()
345 printf("%p %c %-24s %016lx -> %016lx\n", where, in elf_reloc_internal()
[all …]
/freebsd/lib/libkldelf/
H A Def_mips.c50 char *where; in ef_mips_reloc() local
59 where = (char *)dest + (relbase + rel->r_offset - dataoff); in ef_mips_reloc()
66 where = (char *)dest + (relbase + rela->r_offset - dataoff); in ef_mips_reloc()
75 if (where < (char *)dest || where >= (char *)dest + len) in ef_mips_reloc()
81 addend = le64dec(where); in ef_mips_reloc()
83 addend = be64dec(where); in ef_mips_reloc()
86 addend = le32dec(where); in ef_mips_reloc()
88 addend = be32dec(where); in ef_mips_reloc()
96 le64enc(where, addr); in ef_mips_reloc()
98 be64enc(where, addr); in ef_mips_reloc()
[all …]
H A Def_amd64.c47 char *where; in ef_amd64_reloc() local
56 where = (char *)dest + (relbase + rel->r_offset - dataoff); in ef_amd64_reloc()
63 where = (char *)dest + (relbase + rela->r_offset - dataoff); in ef_amd64_reloc()
72 if (where < (char *)dest || where >= (char *)dest + len) in ef_amd64_reloc()
80 addend = le32dec(where); in ef_amd64_reloc()
83 addend = le64dec(where); in ef_amd64_reloc()
93 le64enc(where, addr); in ef_amd64_reloc()
97 le32enc(where, addr); in ef_amd64_reloc()
101 le64enc(where, addr); in ef_amd64_reloc()
105 le64enc(where, addr); in ef_amd64_reloc()
H A Def_powerpc.c47 char *where; in ef_ppc_reloc() local
55 where = (char *)dest + (relbase + rela->r_offset - dataoff); in ef_ppc_reloc()
64 if (where < (char *)dest || where >= (char *)dest + len) in ef_ppc_reloc()
72 le64enc(where, addr); in ef_ppc_reloc()
74 be64enc(where, addr); in ef_ppc_reloc()
76 be32enc(where, addr); in ef_ppc_reloc()
80 be32enc(where, addr); in ef_ppc_reloc()
85 le64enc(where, addr); in ef_ppc_reloc()
87 be64enc(where, addr); in ef_ppc_reloc()
H A Def_i386.c47 char *where; in ef_i386_reloc() local
56 where = (char *)dest + (relbase + rel->r_offset - dataoff); in ef_i386_reloc()
63 where = (char *)dest + (relbase + rela->r_offset - dataoff); in ef_i386_reloc()
72 if (where < (char *)dest || where >= (char *)dest + len) in ef_i386_reloc()
76 addend = le32dec(where); in ef_i386_reloc()
81 le32enc(where, addr); in ef_i386_reloc()
85 le32enc(where, addr); in ef_i386_reloc()
89 le32enc(where, addr); in ef_i386_reloc()
H A Def_arm.c48 char *where; in ef_arm_reloc() local
57 where = (char *)dest + (relbase + rel->r_offset - dataoff); in ef_arm_reloc()
64 where = (char *)dest + (relbase + rela->r_offset - dataoff); in ef_arm_reloc()
73 if (where < (char *)dest || where >= (char *)dest + len) in ef_arm_reloc()
77 addend = le32dec(where); in ef_arm_reloc()
82 le32enc(where, addr); in ef_arm_reloc()
86 le32enc(where, addr); in ef_arm_reloc()
H A Def_riscv.c50 char *where; in ef_riscv_reloc() local
58 where = (char *)dest + (relbase + rela->r_offset - dataoff); in ef_riscv_reloc()
67 if (where < (char *)dest || where >= (char *)dest + len) in ef_riscv_reloc()
73 le64enc(where, addr); in ef_riscv_reloc()
77 le64enc(where, addr); in ef_riscv_reloc()
H A Def_aarch64.c45 char *where; in ef_aarch64_reloc() local
53 where = (char *)dest + (relbase + rela->r_offset - dataoff); in ef_aarch64_reloc()
62 if (where < (char *)dest || where >= (char *)dest + len) in ef_aarch64_reloc()
68 le64enc(where, addr); in ef_aarch64_reloc()
72 le64enc(where, addr); in ef_aarch64_reloc()
/freebsd/contrib/less/
H A Dprompt.c175 static POSITION curr_byte(int where) in cond()
179 pos = position(where); in cond()
180 while (pos == NULL_POSITION && where >= 0 && where < sc_height-1) in cond()
181 pos = position(++where); in cond()
193 static lbool cond(char c, int where) in cond()
202 return (curr_byte(where) != NULL_POSITION); in cond()
214 return (currline(where) != 0); in cond()
231 return (curr_byte(where) != NULL_POSITION && ch_length() > 0);
233 return (currline(where) ! in protochar()
150 curr_byte(int where) curr_byte() argument
168 cond(char c,int where) cond() argument
232 protochar(int c,int where,int iseditproto) protochar() argument
466 int where; pr_expand() local
[all...]
/freebsd/stand/common/
H A Dreloc_elf.c53 Elf64_Addr *where, val; in __elfN() local
65 where = (Elf_Addr *)((char *)data + relbase + rel->r_offset - in __elfN()
76 where = (Elf_Addr *)((char *)data + relbase + rela->r_offset - in __elfN()
88 if ((char *)where < (char *)data || (char *)where >= (char *)data + len) in __elfN()
92 addend = *where; in __elfN()
111 memcpy(where, &val, sizeof(val)); in __elfN()
122 *where = val; in __elfN()
132 Elf_Addr addend, addr, *where, val; in __elfN()
140 where = (Elf_Addr *)((char *)data + relbase + rel->r_offset - in __elfN()
149 where = (Elf_Addr *)((char *)data + relbase + rela->r_offset - in __elfN()
[all …]
/freebsd/libexec/rtld-elf/aarch64/
H A Dreloc.c209 struct tlsdesc_entry *where, int flags, RtldLockState *lockstate) in reloc_tlsdesc() argument
225 where->func = _rtld_tlsdesc_undef; in reloc_tlsdesc()
226 where->addend = rela->r_addend; in reloc_tlsdesc()
234 where->func = _rtld_tlsdesc_static; in reloc_tlsdesc()
235 where->offset = obj->tlsoffset + offs; in reloc_tlsdesc()
238 where->func = _rtld_tlsdesc_dynamic; in reloc_tlsdesc()
239 where->data = reloc_tlsdesc_alloc(obj->tlsindex, offs); in reloc_tlsdesc()
258 Elf_Addr *where, target; in reloc_plt() local
260 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_plt()
278 *where += (Elf_Addr)obj->relocbase; in reloc_plt()
[all …]
/freebsd/libexec/rtld-elf/i386/
H A Dreloc.c138 Elf_Addr *where, symval, add; in reloc_non_plt() local
203 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_non_plt()
209 *where += symval; in reloc_non_plt()
217 *where += symval - (Elf_Addr)where; in reloc_non_plt()
235 *where = symval; in reloc_non_plt()
238 *where += (Elf_Addr)obj->relocbase; in reloc_non_plt()
261 *where += add; in reloc_non_plt()
263 *where -= add; in reloc_non_plt()
266 *where += (Elf_Addr)defobj->tlsindex; in reloc_non_plt()
269 *where += (Elf_Addr)def->st_value; in reloc_non_plt()
[all …]
/freebsd/libexec/rtld-elf/powerpc/
H A Dreloc.c144 Elf_Addr *where; in reloc_non_plt_self() local
165 where = (Elf_Addr *)(relocbase + rela->r_offset); in reloc_non_plt_self()
166 *where = (Elf_Addr)(relocbase + rela->r_addend); in reloc_non_plt_self()
180 Elf_Addr *where, symval = 0; in reloc_nonplt_object() local
239 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_nonplt_object()
248 if (*where != symval + rela->r_addend) { in reloc_nonplt_object()
249 *where = symval + rela->r_addend; in reloc_nonplt_object()
253 *where = (Elf_Addr) defobj->tlsindex; in reloc_nonplt_object()
273 *(Elf_Addr **)where = *where * sizeof(Elf_Addr) in reloc_nonplt_object()
278 *where += (Elf_Addr)(def->st_value + rela->r_addend in reloc_nonplt_object()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A Dilist.h165 iterator insert(iterator where, pointer New) {
167 return base_list_type::insert(where, *New);
170 iterator insert(iterator where, const_reference New) {
171 return this->insert(where, new value_type(New));
174 iterator insertAfter(iterator where, pointer New) {
178 return insert(++where, New);
204 iterator erase(iterator where) {
205 this->deleteNode(remove(where));
206 return where;
261 template<class InIt> void insert(iterator where, InIt first, InIt last) {
[all …]
/freebsd/sys/arm/arm/
H A Delf_machdep.c162 load_ptr(Elf_Addr *where) in load_ptr() argument
166 if (RELOC_ALIGNED_P(where)) in load_ptr()
167 return *where; in load_ptr()
168 memcpy(&res, where, sizeof(res)); in load_ptr()
173 store_ptr(Elf_Addr *where, Elf_Addr val) in store_ptr() argument
175 if (RELOC_ALIGNED_P(where)) in store_ptr()
176 *where = val; in store_ptr()
178 memcpy(where, &val, sizeof(val)); in store_ptr()
187 Elf_Addr *where; in elf_reloc_internal() local
198 where = (Elf_Addr *) (relocbase + rel->r_offset); in elf_reloc_internal()
[all …]
/freebsd/libexec/rtld-elf/powerpc64/
H A Dreloc.c139 Elf_Addr *where; in reloc_non_plt_self() local
160 where = (Elf_Addr *)(relocbase + rela->r_offset); in reloc_non_plt_self()
161 *where = (Elf_Addr)(relocbase + rela->r_addend); in reloc_non_plt_self()
175 Elf_Addr *where, symval = 0; in reloc_nonplt_object() local
234 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_nonplt_object()
243 if (*where != symval + rela->r_addend) { in reloc_nonplt_object()
244 *where = symval + rela->r_addend; in reloc_nonplt_object()
248 *where = (Elf_Addr) defobj->tlsindex; in reloc_nonplt_object()
268 *(Elf_Addr **)where = *where * sizeof(Elf_Addr) in reloc_nonplt_object()
273 *where += (Elf_Addr)(def->st_value + rela->r_addend in reloc_nonplt_object()
[all …]
/freebsd/libexec/rtld-elf/amd64/
H A Dreloc.c140 Elf_Addr *where, symval; in reloc_non_plt() local
221 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_non_plt()
222 where32 = (Elf32_Addr *)where; in reloc_non_plt()
228 *where = symval + rela->r_addend; in reloc_non_plt()
237 rela->r_addend - (Elf_Addr)where); in reloc_non_plt()
256 *where = symval; in reloc_non_plt()
276 *where = (Elf_Addr)(def->st_value - defobj->tlsoffset + in reloc_non_plt()
301 *where += (Elf_Addr)defobj->tlsindex; in reloc_non_plt()
304 *where += (Elf_Addr)(def->st_value + rela->r_addend); in reloc_non_plt()
311 *where = (Elf_Addr)(obj->relocbase + rela->r_addend); in reloc_non_plt()
[all …]
/freebsd/libexec/rtld-elf/riscv/
H A Dreloc.c153 Elf_Addr *where; in reloc_plt() local
155 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_plt()
159 *where += (Elf_Addr)obj->relocbase; in reloc_plt()
188 Elf_Addr *where; in reloc_jmpslots() local
190 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_jmpslots()
205 *where = (Elf_Addr)(defobj->relocbase + def->st_value); in reloc_jmpslots()
221 Elf_Addr *where, target, *ptr; in reloc_iresolve_one() local
224 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_iresolve_one()
228 *where = target; in reloc_iresolve_one()
274 Elf_Addr *where, target; in reloc_gnu_ifunc() local
[all …]
/freebsd/sys/i386/i386/
H A Delf_machdep.c176 Elf_Addr *where; in elf_reloc_internal() local
187 where = (Elf_Addr *) (relocbase + rel->r_offset); in elf_reloc_internal()
188 addend = *where; in elf_reloc_internal()
194 where = (Elf_Addr *) (relocbase + rela->r_offset); in elf_reloc_internal()
206 if (*where != addr) in elf_reloc_internal()
207 *where = addr; in elf_reloc_internal()
221 if (*where != addr) in elf_reloc_internal()
222 *where = addr; in elf_reloc_internal()
229 addr += addend - (Elf_Addr)where; in elf_reloc_internal()
230 if (*where != addr) in elf_reloc_internal()
[all …]
/freebsd/sys/arm64/arm64/
H A Delf_machdep.c161 reloc_instr_imm(Elf32_Addr *where, Elf_Addr val, u_int msb, u_int lsb) in reloc_instr_imm() argument
169 *where |= (Elf32_Addr)val; in reloc_instr_imm()
183 Elf_Addr *where, addr, addend, val; in elf_reloc_internal() local
192 where = (Elf_Addr *) (relocbase + rel->r_offset); in elf_reloc_internal()
193 addend = *where; in elf_reloc_internal()
199 where = (Elf_Addr *) (relocbase + rela->r_offset); in elf_reloc_internal()
217 *where = elf_relocaddr(lf, relocbase + addend); in elf_reloc_internal()
230 error = reloc_instr_imm((Elf32_Addr *)where, in elf_reloc_internal()
231 addr + addend - (Elf_Addr)where, 15, 2); in elf_reloc_internal()
237 error = reloc_instr_imm((Elf32_Addr *)where, in elf_reloc_internal()
[all …]
/freebsd/sys/amd64/amd64/
H A Delf_machdep.c279 Elf64_Addr *where, val; in elf_reloc_internal() local
291 where = (Elf_Addr *) (relocbase + rel->r_offset); in elf_reloc_internal()
299 addend = *(Elf32_Addr *)where; in elf_reloc_internal()
302 addend = *where; in elf_reloc_internal()
308 where = (Elf_Addr *) (relocbase + rela->r_offset); in elf_reloc_internal()
333 if (*where != val) in elf_reloc_internal()
334 *where = val; in elf_reloc_internal()
341 where32 = (Elf32_Addr *)where; in elf_reloc_internal()
342 val32 = (Elf32_Addr)(addr + addend - (Elf_Addr)where); in elf_reloc_internal()
352 where32 = (Elf32_Addr *)where; in elf_reloc_internal()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Drange_tree.c103 zfs_btree_index_t where; in zfs_range_tree_stat_verify() local
107 for (rs = zfs_btree_first(&rt->rt_root, &where); rs != NULL; in zfs_range_tree_stat_verify()
108 rs = zfs_btree_next(&rt->rt_root, &where, &where)) { in zfs_range_tree_stat_verify()
297 zfs_btree_index_t where; in zfs_range_tree_add_impl() local
310 rs = zfs_btree_find(&rt->rt_root, &rsearch, &where); in zfs_range_tree_add_impl()
358 rs_before = zfs_btree_prev(&rt->rt_root, &where, &where_before); in zfs_range_tree_add_impl()
359 rs_after = zfs_btree_next(&rt->rt_root, &where, &where_after); in zfs_range_tree_add_impl()
421 zfs_btree_add_idx(&rt->rt_root, rs, &where); in zfs_range_tree_add_impl()
449 zfs_btree_index_t where; in zfs_range_tree_remove_impl() local
462 rs = zfs_btree_find(&rt->rt_root, &rsearch, &where); in zfs_range_tree_remove_impl()
[all …]
H A Dbtree.c204 const void *value, zfs_btree_index_t *where);
231 const void *value, zfs_btree_index_t *where) in zfs_btree_find_in_buf() argument
244 where->bti_offset = idx; in zfs_btree_find_in_buf()
245 where->bti_before = B_FALSE; in zfs_btree_find_in_buf()
250 where->bti_offset = max; in zfs_btree_find_in_buf()
251 where->bti_before = B_TRUE; in zfs_btree_find_in_buf()
260 zfs_btree_find(zfs_btree_t *tree, const void *value, zfs_btree_index_t *where) in zfs_btree_find() argument
263 if (where != NULL) { in zfs_btree_find()
264 where->bti_node = NULL; in zfs_btree_find()
265 where->bti_offset = 0; in zfs_btree_find()
[all …]

12345678910>>...54