/freebsd/contrib/lua/src/ |
H A D | ltests.c | 713 int pc; 714 for (pc=0; pc<size; pc++) { 730 int pc; in listcode() local 738 for (pc=0; pc<p->sizecode; pc++) { in listcode() 749 int pc; in printcode() local 756 for (pc=0; pc<p->sizecode; pc++) { in printcode() 1298 if (**pc != '\0' && strchr(delimits, **pc)) (*pc)++; in skip() 1300 while (**pc != '\n' && **pc != '\0') (*pc)++; /* until end-of-line */ in skip() 1309 skip(pc); in getnum_aux() 1343 while (**pc != '\0' && !strchr(delimits, **pc)) in getstring_aux() [all …]
|
H A D | lcode.c | 234 return fs->pc; in luaK_getlabel() 331 int pc = fs->pc - 1; /* last instruction coded */ in savelineinfo() local 335 f->abslineinfo[fs->nabslineinfo].pc = pc; in savelineinfo() 355 int pc = fs->pc - 1; /* last instruction coded */ in removelastlineinfo() local 361 lua_assert(f->abslineinfo[fs->nabslineinfo - 1].pc == pc); in removelastlineinfo() 374 fs->pc--; in removelastinstruction() 387 f->code[fs->pc++] = i; in luaK_code() 1110 lua_assert(testTMode(GET_OPCODE(*pc)) && GET_OPCODE(*pc) != OP_TESTSET && in negatecondition() 1112 SETARG_k(*pc, (GETARG_k(*pc) ^ 1)); in negatecondition() 1416 e1->u.info = pc; in finishbinexpval() [all …]
|
/freebsd/usr.bin/banner/ |
H A D | banner.c | 1011 static int debug, i, j, linen, max, nchars, pc, term, trace, x, y; variable 1117 pc = asc_ptr[(u_char) message[i]]; in main() 1122 if (pc < 0 || pc > NBYTES) { in main() 1123 printf("bad pc: %d\n",pc); in main() 1126 x = data_table[pc] & 0377; in main() 1128 printf("pc=%d, term=%d, max=%d, linen=%d, x=%d\n",pc,term,max,linen,x); in main() 1141 pc++; in main() 1144 y = data_table[pc+1]; in main() 1152 pc += 2; in main()
|
/freebsd/contrib/netbsd-tests/lib/libppath/ |
H A D | t_ppath.c | 99 ppath_component_t *pc; in ATF_TC_BODY() local 112 rp = ppath_push(p, pc); in ATF_TC_BODY() 116 rp = ppath_push(p, pc); in ATF_TC_BODY() 119 rp = ppath_push(p, pc); in ATF_TC_BODY() 152 rp = ppath_push(p, pc); in ATF_TC_BODY() 159 ATF_CHECK_EQ(rpc, pc); in ATF_TC_BODY() 186 ppath_component_t *pc; in ATF_TC_BODY() local 201 rp = ppath_push(p, pc); in ATF_TC_BODY() 229 ppath_component_t *pc; in ATF_TC_BODY() local 323 ATF_CHECK_EQ(pc, cpc); in ATF_TC_BODY() [all …]
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | qsort.c | 119 char *pa, *pb, *pc, *pd, *pl, *pm, *pn; in rk_qsort_r() local 149 pc = pd = (char *)a + (n - 1) * es; in rk_qsort_r() 151 while (pb <= pc && (cmp_result = CMP(thunk, pb, a)) <= 0) { in rk_qsort_r() 159 while (pb <= pc && (cmp_result = CMP(thunk, pc, a)) >= 0) { in rk_qsort_r() 162 swap(pc, pd); in rk_qsort_r() 165 pc -= es; in rk_qsort_r() 167 if (pb > pc) in rk_qsort_r() 169 swap(pb, pc); in rk_qsort_r() 172 pc -= es; in rk_qsort_r() 186 r = min(pd - pc, pn - pd - es); in rk_qsort_r() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_interface_atomic.cpp | 229 MemoryAccess(thr, pc, (uptr)a, AccessSize<T>(), in AtomicLoad() 350 return AtomicRMW<T, func_add>(thr, pc, a, v, mo); in AtomicFetchAdd() 356 return AtomicRMW<T, func_sub>(thr, pc, a, v, mo); in AtomicFetchSub() 362 return AtomicRMW<T, func_and>(thr, pc, a, v, mo); in AtomicFetchAnd() 368 return AtomicRMW<T, func_or>(thr, pc, a, v, mo); in AtomicFetchOr() 374 return AtomicRMW<T, func_xor>(thr, pc, a, v, mo); in AtomicFetchXor() 449 static T AtomicCAS(ThreadState *thr, uptr pc, in AtomicCAS() argument 451 AtomicCAS(thr, pc, a, &c, v, mo, fmo); in AtomicCAS() 853 Atomic##func(thr, pc, __VA_ARGS__); \ 933 ThreadState *thr, uptr cpc, uptr pc, u8 *a) { in __tsan_go_atomic32_compare_exchange() argument [all …]
|
/freebsd/sys/contrib/openzfs/module/lua/ |
H A D | lcode.c | 83 int offset = dest-(pc+1); in fixjump() 96 fs->lasttarget = fs->pc; in luaK_getlabel() 97 return fs->pc; in luaK_getlabel() 165 patchlistaux(fs, fs->jpc, fs->pc, NO_REG, fs->pc); in dischargejpc() 171 if (target == fs->pc) in luaK_patchlist() 219 f->code[fs->pc] = i; in luaK_code() 224 return fs->pc++; in luaK_code() 601 lua_assert(testTMode(GET_OPCODE(*pc)) && GET_OPCODE(*pc) != OP_TESTSET && in invertjump() 603 SETARG_A(*pc, !(GETARG_A(*pc))); in invertjump() 628 pc = e->u.info; in luaK_goiftrue() [all …]
|
/freebsd/sys/cddl/dev/dtrace/amd64/ |
H A D | dtrace_isa.c | 113 while (pc != 0) { in dtrace_getustack_common() 125 *pcstack++ = (uint64_t)pc; in dtrace_getustack_common() 165 uintptr_t pc, sp, fp; in dtrace_getupcstack() local 188 pc = tf->tf_rip; in dtrace_getupcstack() 202 *pcstack++ = (uint64_t)pc; in dtrace_getupcstack() 227 uintptr_t pc, fp, sp; in dtrace_getustackdepth() local 236 pc = tf->tf_rip; in dtrace_getustackdepth() 264 uintptr_t pc, sp, fp; in dtrace_getufpstack() local 290 pc = tf->tf_rip; in dtrace_getufpstack() 301 *pcstack++ = (uint64_t)pc; in dtrace_getufpstack() [all …]
|
/freebsd/sys/kern/ |
H A D | kern_rmlock.c | 140 struct pcpu *pc; in unlock_rm() local 160 pc = get_pcpu(); in unlock_rm() 231 for (queue = pc->pc_rm_queue.rmq_next; queue != &pc->pc_rm_queue; in rm_trackers_present() 258 struct pcpu *pc; in rm_cleanIPI() local 262 pc = get_pcpu(); in rm_cleanIPI() 264 for (queue = pc->pc_rm_queue.rmq_next; queue != &pc->pc_rm_queue; in rm_cleanIPI() 351 struct pcpu *pc; in _rm_rlock_hard() local 354 pc = get_pcpu(); in _rm_rlock_hard() 419 pc = get_pcpu(); in _rm_rlock_hard() 437 struct pcpu *pc; in _rm_rlock() local [all …]
|
/freebsd/sys/powerpc/include/ |
H A D | profile.h | 213 #define MCOUNT_FROMPC_USER(pc) \ argument 214 ((pc < (uintfptr_t)VM_MAXUSER_ADDRESS) ? \ 215 (uintfptr_t)powerpc_profile_userspace : pc) 217 #define MCOUNT_FROMPC_INTR(pc) \ argument 218 ((pc >= __PROFILE_VECTOR_BASE && \ 219 pc < __PROFILE_VECTOR_TOP) ? \
|
/freebsd/sys/libkern/ |
H A D | qsort.c | 114 char *pa, *pb, *pc, *pd, *pl, *pm, *pn; variable 146 pc = pd = (char *)a + (n - 1) * es; 148 while (pb <= pc && (cmp_result = CMP(thunk, pb, a)) <= 0) { 156 while (pb <= pc && (cmp_result = CMP(thunk, pc, a)) >= 0) { 159 swap(pc, pd); 162 pc -= es; 164 if (pb > pc) 166 swap(pb, pc); 169 pc -= es; 183 d1 = MIN(pd - pc, pn - pd - es); [all …]
|
/freebsd/contrib/llvm-project/libunwind/src/ |
H A D | UnwindCursor.hpp | 159 if ((p->ip_start <= pc) && (pc < p->ip_end)) { in findFDE() 528 void setLastPC(pint_t pc) { _dispContext.ControlPc = pc; } in setLastPC() argument 532 pc &= ~1U; in lookUpSEHUnwindInfo() 537 pc -= 1; in lookUpSEHUnwindInfo() 1490 pint_t pc, in getInfoFromEHABISection() argument 2014 setLastPC(pc); in getInfoFromSEH() 2569 pc &= (pint_t)~0x1; in setInfoBasedOnIPRegister() 2573 if (pc == 0) { in setInfoBasedOnIPRegister() 2588 pc -= 4; in setInfoBasedOnIPRegister() 2590 --pc; in setInfoBasedOnIPRegister() [all …]
|
/freebsd/sys/amd64/amd64/ |
H A D | db_trace.c | 242 db_addr_t pc, register_t sp, int count) in db_backtrace() argument 278 db_print_stack_entry(name, pc, 0); in db_backtrace() 279 pc = db_get_value(sp, 8, false); in db_backtrace() 280 if (db_search_symbol(pc, DB_STGY_PROC, in db_backtrace() 287 instr = db_get_value(pc, 4, false); in db_backtrace() 316 db_print_stack_entry(name, pc, actframe); in db_backtrace() 320 pc = db_get_value(actframe + in db_backtrace() 325 db_nextframe(&frame, &pc, td); in db_backtrace() 331 if (INKERNEL(pc)) { in db_backtrace() 332 sym = db_search_symbol(pc, DB_STGY_ANY, in db_backtrace() [all …]
|
/freebsd/sys/dev/etherswitch/arswitch/ |
H A D | arswitch_8327.c | 428 pc->mode = val; in ar8327_fetch_pdata_pad() 434 pc->rxclk_sel = val; in ar8327_fetch_pdata_pad() 440 pc->txclk_sel = val; in ar8327_fetch_pdata_pad() 485 pc->mode, in ar8327_fetch_pdata_pad() 486 pc->rxclk_sel, in ar8327_fetch_pdata_pad() 487 pc->txclk_sel, in ar8327_fetch_pdata_pad() 490 pc->txclk_delay_en, in ar8327_fetch_pdata_pad() 491 pc->rxclk_delay_en, in ar8327_fetch_pdata_pad() 600 bzero(&pc, sizeof(pc)); in ar8327_init_pdata() 611 bzero(&pc, sizeof(pc)); in ar8327_init_pdata() [all …]
|
/freebsd/lib/libc/stdlib/ |
H A D | qsort.c | 106 char *pa, *pb, *pc, *pd, *pl, *pm, *pn; in local_qsort() local 140 pc = pd = (char *)a + (n - 1) * es; in local_qsort() 142 while (pb <= pc && (cmp_result = CMP(thunk, pb, a)) <= 0) { in local_qsort() 150 while (pb <= pc && (cmp_result = CMP(thunk, pc, a)) >= 0) { in local_qsort() 153 swapfunc(pc, pd, es); in local_qsort() 156 pc -= es; in local_qsort() 158 if (pb > pc) in local_qsort() 160 swapfunc(pb, pc, es); in local_qsort() 163 pc -= es; in local_qsort() 182 d1 = MIN(pd - pc, pn - pd - (ssize_t)es); in local_qsort() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_unwind_linux_libcdep.cpp | 81 uptr pc = Unwind_GetIP(ctx); in Unwind_Trace() local 86 if (pc < kPageSize) return UNWIND_STOP; in Unwind_Trace() 87 arg->stack->trace_buffer[arg->stack->size++] = pc; in Unwind_Trace() 126 void BufferedStackTrace::UnwindSlow(uptr pc, u32 max_depth) { in UnwindSlow() argument 132 uptr to_pop = LocatePcInTrace(pc); in UnwindSlow() 142 trace_buffer[0] = pc; in UnwindSlow() 145 void BufferedStackTrace::UnwindSlow(uptr pc, void *context, u32 max_depth) { in UnwindSlow() argument 149 UnwindSlow(pc, max_depth); in UnwindSlow()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/ |
H A D | hwasan_linux.cpp | 365 uptr pc = (uptr)info->si_addr; in GetAccessInfo() local 383 uint8_t *nop = (uint8_t *)pc; in GetAccessInfo() 403 uint8_t byte1 = *((u8 *)(pc + 0)); in GetAccessInfo() 404 uint8_t byte2 = *((u8 *)(pc + 1)); in GetAccessInfo() 405 uint8_t byte3 = *((u8 *)(pc + 2)); in GetAccessInfo() 419 pc += isFaultShort ? 2 : 4; in GetAccessInfo() 420 byte1 = *((u8 *)(pc + 0)); in GetAccessInfo() 421 byte2 = *((u8 *)(pc + 1)); in GetAccessInfo() 422 byte3 = *((u8 *)(pc + 2)); in GetAccessInfo() 423 byte4 = *((u8 *)(pc + 3)); in GetAccessInfo() [all …]
|
/freebsd/sys/arm/arm/ |
H A D | mp_machdep.c | 141 struct pcpu *pc; in init_secondary() local 152 pc = &__pcpu[cpu]; in init_secondary() 161 pcpu_init(pc, cpu, sizeof(struct pcpu)); in init_secondary() 162 pc->pc_mpidr = cp15_mpidr_get() & 0xFFFFFF; in init_secondary() 179 pc->pc_curthread = pc->pc_idlethread; in init_secondary() 180 pc->pc_curpcb = pc->pc_idlethread->td_pcb; in init_secondary() 181 set_curthread(pc->pc_idlethread); in init_secondary()
|
/freebsd/usr.sbin/pmcstat/ |
H A D | pmcpl_callgraph.c | 101 cg->pcg_func = pc; in pmcstat_cgnode_allocate() 130 uintfptr_t pc, int usermode) in pmcstat_cgnode_hash_lookup_pc() argument 155 pc = sym->ps_start; in pmcstat_cgnode_hash_lookup_pc() 161 hash += (pc >> i) & 0xFF; in pmcstat_cgnode_hash_lookup_pc() 183 cg = pmcstat_cgnode_allocate(image, pc); in pmcstat_cgnode_hash_lookup_pc() 330 uintfptr_t pc, loadaddress; in pmcpl_cg_process() local 346 pc = cc[0]; in pmcpl_cg_process() 375 pc = cc[n]; in pmcpl_cg_process() 381 ppm = pmcstat_process_find_map(pp, pc); in pmcpl_cg_process() 392 pc -= loadaddress; in pmcpl_cg_process() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/ |
H A D | msan.cpp | 238 GET_FATAL_STACK_TRACE_PC_BP(pc, bp); in PrintWarningWithOrigin() 287 if (pc) *pc = StackOriginPC[id]; in GetStackOriginDescr() 308 uptr pc) { in SetAllocaOrigin() argument 317 StackOriginPC[idx] = pc; in SetAllocaOrigin() 382 PrintWarningWithOrigin(pc, bp, 0); in __msan_warning() 393 PrintWarningWithOrigin(pc, bp, 0); in __msan_warning_noreturn() 402 PrintWarningWithOrigin(pc, bp, origin); in __msan_warning_with_origin() 413 PrintWarningWithOrigin(pc, bp, origin); in __msan_warning_with_origin_noreturn() 512 GET_FATAL_STACK_TRACE_PC_BP(pc, bp); in __msan_set_expect_umr() 561 __msan::PrintWarningWithOrigin(pc, bp, in __msan_check_mem_is_initialized() [all …]
|
/freebsd/sys/fs/procfs/ |
H A D | procfs_status.c | 69 char *pc; in procfs_doprocstatus() local 87 pc = p->p_comm; in procfs_doprocstatus() 89 if (*pc < 33 || *pc > 126 || *pc == '\\') in procfs_doprocstatus() 90 sbuf_printf(sb, "\\%03o", *pc); in procfs_doprocstatus() 92 sbuf_putc(sb, *pc); in procfs_doprocstatus() 93 } while (*++pc); in procfs_doprocstatus()
|
/freebsd/tools/tools/dmardump/ |
H A D | dmardump.c | 62 struct pci_conf_io pc; in pci_find_conf() local 71 bzero(&pc, sizeof(pc)); in pci_find_conf() 72 pc.match_buf_len = sizeof(conf); in pci_find_conf() 73 pc.matches = &conf; in pci_find_conf() 82 pc.num_patterns = 1; in pci_find_conf() 83 pc.pat_buf_len = sizeof(patterns); in pci_find_conf() 84 pc.patterns = patterns; in pci_find_conf() 85 if (ioctl(pcifd, PCIOCGETCONF, &pc) == -1) in pci_find_conf() 88 if (pc.status != PCI_GETCONF_LAST_DEVICE || in pci_find_conf() 89 pc.num_matches == 0) in pci_find_conf()
|
/freebsd/sys/dev/usb/net/ |
H A D | if_cdceem.c | 321 struct usb_page_cache *pc; in cdceem_handle_cmd() local 327 pc = usbd_xfer_get_frame(xfer, 0); in cdceem_handle_cmd() 422 struct usb_page_cache *pc; in cdceem_handle_data() local 433 pc = usbd_xfer_get_frame(xfer, 0); in cdceem_handle_data() 506 struct usb_page_cache *pc; in cdceem_bulk_read_callback() local 569 struct usb_page_cache *pc; in cdceem_send_echo() local 575 pc = usbd_xfer_get_frame(xfer, 0); in cdceem_send_echo() 608 struct usb_page_cache *pc; in cdceem_send_echo_response() local 614 pc = usbd_xfer_get_frame(xfer, 0); in cdceem_send_echo_response() 646 struct usb_page_cache *pc; in cdceem_send_data() local [all …]
|
/freebsd/lib/libkvm/ |
H A D | kvm_cptime.c | 86 struct pcpu *pc; in kvm_getcptime() local 129 pc = kvm_getpcpu(kd, i); in kvm_getcptime() 130 if (pc == NULL) in kvm_getcptime() 132 if (pc == (void *)-1) in kvm_getcptime() 135 cp_time[j] += pc->pc_cp_time[j]; in kvm_getcptime() 136 free(pc); in kvm_getcptime()
|
/freebsd/sys/i386/i386/ |
H A D | db_trace.c | 399 db_addr_t pc, register_t sp, int count) in db_backtrace() argument 447 pc = db_get_value(instr, 4, false); in db_backtrace() 478 db_print_stack_entry(name, 0, 0, 0, pc, in db_backtrace() 480 pc = db_get_value(sp, 4, false); in db_backtrace() 481 if (db_search_symbol(pc, DB_STGY_PROC, in db_backtrace() 486 instr = db_get_value(pc, 4, false); in db_backtrace() 509 db_print_stack_entry(name, 0, 0, 0, pc, in db_backtrace() 527 pc = (db_addr_t) in db_backtrace() 532 db_nextframe(&frame, &pc, td); in db_backtrace() 543 if (pc != 0) { in db_backtrace() [all …]
|