| /netbsd-src/sys/netbt/ |
| H A D | sco_upper.c | 64 struct sco_pcb *pcb; in sco_attach_pcb() local 70 pcb = malloc(sizeof(struct sco_pcb), M_BLUETOOTH, in sco_attach_pcb() 72 if (pcb == NULL) in sco_attach_pcb() 75 pcb->sp_proto = proto; in sco_attach_pcb() 76 pcb->sp_upper = upper; in sco_attach_pcb() 78 LIST_INSERT_HEAD(&sco_pcb, pcb, sp_next); in sco_attach_pcb() 80 *handle = pcb; in sco_attach_pcb() 90 sco_bind_pcb(struct sco_pcb *pcb, struct sockaddr_bt *addr) in sco_bind_pcb() argument 93 if (pcb->sp_link != NULL || pcb->sp_flags & SP_LISTENING) in sco_bind_pcb() 96 bdaddr_copy(&pcb->sp_laddr, &addr->bt_bdaddr); in sco_bind_pcb() [all …]
|
| H A D | hci_socket.c | 356 struct hci_pcb *pcb; in hci_attach() local 373 pcb = kmem_zalloc(sizeof(struct hci_pcb), KM_SLEEP); in hci_attach() 374 pcb->hp_cred = kauth_cred_dup(curlwp->l_cred); in hci_attach() 375 pcb->hp_socket = so; in hci_attach() 381 hci_filter_set(HCI_EVENT_COMMAND_COMPL, &pcb->hp_efilter); in hci_attach() 382 hci_filter_set(HCI_EVENT_COMMAND_STATUS, &pcb->hp_efilter); in hci_attach() 383 hci_filter_set(HCI_EVENT_PKT, &pcb->hp_pfilter); in hci_attach() 385 LIST_INSERT_HEAD(&hci_pcb, pcb, hp_next); in hci_attach() 386 so->so_pcb = pcb; in hci_attach() 394 struct hci_pcb *pcb; in hci_detach() local [all …]
|
| H A D | sco_socket.c | 113 struct sco_pcb *pcb = so->so_pcb; in sco_accept() local 118 if (pcb == NULL) in sco_accept() 121 return sco_peeraddr_pcb(pcb, (struct sockaddr_bt *)nam); in sco_accept() 127 struct sco_pcb *pcb = so->so_pcb; in sco_bind() local 133 if (pcb == NULL) in sco_bind() 142 return sco_bind_pcb(pcb, sa); in sco_bind() 148 struct sco_pcb *pcb = so->so_pcb; in sco_listen() local 152 if (pcb == NULL) in sco_listen() 155 return sco_listen_pcb(pcb); in sco_listen() 161 struct sco_pcb *pcb = so->so_pcb; in sco_connect() local [all …]
|
| H A D | rfcomm_socket.c | 130 struct rfcomm_dlc *pcb = so->so_pcb; in rfcomm_accept() local 135 if (pcb == NULL) in rfcomm_accept() 138 return rfcomm_peeraddr_pcb(pcb, (struct sockaddr_bt *)nam); in rfcomm_accept() 144 struct rfcomm_dlc *pcb = so->so_pcb; in rfcomm_bind() local 150 if (pcb == NULL) in rfcomm_bind() 159 return rfcomm_bind_pcb(pcb, sa); in rfcomm_bind() 165 struct rfcomm_dlc *pcb = so->so_pcb; in rfcomm_listen() local 169 if (pcb == NULL) in rfcomm_listen() 172 return rfcomm_listen_pcb(pcb); in rfcomm_listen() 178 struct rfcomm_dlc *pcb = so->so_pcb; in rfcomm_connect() local [all …]
|
| H A D | l2cap_socket.c | 122 struct l2cap_channel *pcb = so->so_pcb; in l2cap_accept() local 127 if (pcb == NULL) in l2cap_accept() 130 return l2cap_peeraddr_pcb(pcb, (struct sockaddr_bt *)nam); in l2cap_accept() 136 struct l2cap_channel *pcb = so->so_pcb; in l2cap_bind() local 142 if (pcb == NULL) in l2cap_bind() 151 return l2cap_bind_pcb(pcb, sa); in l2cap_bind() 157 struct l2cap_channel *pcb = so->so_pcb; in l2cap_listen() local 161 if (pcb == NULL) in l2cap_listen() 164 return l2cap_listen_pcb(pcb); in l2cap_listen() 170 struct l2cap_channel *pcb = so->so_pcb; in l2cap_connect() local [all …]
|
| /netbsd-src/external/cddl/osnet/dist/lib/libdtrace/common/ |
| H A D | dt_pcb.c | 62 dt_pcb_push(dtrace_hdl_t *dtp, dt_pcb_t *pcb) in dt_pcb_push() argument 77 bzero(pcb, sizeof (dt_pcb_t)); in dt_pcb_push() 79 dt_scope_create(&pcb->pcb_dstack); in dt_pcb_push() 80 dt_idstack_push(&pcb->pcb_globals, dtp->dt_globals); in dt_pcb_push() 81 dt_irlist_create(&pcb->pcb_ir); in dt_pcb_push() 83 pcb->pcb_hdl = dtp; in dt_pcb_push() 84 pcb->pcb_prev = dtp->dt_pcb; in dt_pcb_push() 86 dtp->dt_pcb = pcb; in dt_pcb_push() 89 yyinit(pcb); in dt_pcb_push() 111 dt_pcb_t *pcb = yypcb; in dt_pcb_pop() local [all …]
|
| H A D | dt_as.c | 94 dt_pcb_t *pcb = data; in dt_copyvar() local 102 dvp = &pcb->pcb_difo->dtdo_vartab[pcb->pcb_asvidx++]; in dt_copyvar() 103 stroff = dt_strtab_insert(pcb->pcb_strtab, idp->di_name); in dt_copyvar() 106 longjmp(pcb->pcb_jmpbuf, EDT_NOMEM); in dt_copyvar() 108 longjmp(pcb->pcb_jmpbuf, EDT_STR2BIG); in dt_copyvar() 131 dt_node_diftype(pcb->pcb_hdl, &dn, &dvp->dtdv_type); in dt_copyvar() 138 dt_copystr(const char *s, size_t n, size_t off, dt_pcb_t *pcb) in dt_copystr() argument 140 bcopy(s, pcb->pcb_difo->dtdo_strtab + off, n); in dt_copystr() 152 dt_as_xlate(dt_pcb_t *pcb, dtrace_difo_t *dp, in dt_as_xlate() argument 155 dtrace_hdl_t *dtp = pcb->pcb_hdl; in dt_as_xlate() [all …]
|
| /netbsd-src/sys/arch/x86/x86/ |
| H A D | dbregs.c | 102 struct pcb *pcb = lwp_getpcb(l); in x86_dbregs_clear() local 107 if (__predict_true(pcb->pcb_dbregs == NULL)) { in x86_dbregs_clear() 108 KASSERT((pcb->pcb_flags & PCB_DBREGS) == 0); in x86_dbregs_clear() 112 dbregs = pcb->pcb_dbregs; in x86_dbregs_clear() 115 pcb->pcb_dbregs = NULL; in x86_dbregs_clear() 116 pcb->pcb_flags &= ~PCB_DBREGS; in x86_dbregs_clear() 126 struct pcb *pcb = lwp_getpcb(l); in x86_dbregs_abandon() local 129 pcb->pcb_flags &= ~PCB_DBREGS; in x86_dbregs_abandon() 137 struct pcb *pcb = lwp_getpcb(l); in x86_dbregs_read() local 139 if (pcb->pcb_dbregs == NULL) { in x86_dbregs_read() [all …]
|
| /netbsd-src/sys/arch/powerpc/powerpc/ |
| H A D | fpu.c | 75 struct pcb * const pcb = lwp_getpcb(l); in fpu_state_load() local 78 memset(&pcb->pcb_fpu, 0, sizeof(pcb->pcb_fpu)); in fpu_state_load() 86 fpu_load_from_fpreg(&pcb->pcb_fpu); in fpu_state_load() 94 l->l_md.md_utf->tf_srr1 |= PSL_FP|(pcb->pcb_flags & (PCB_FE0|PCB_FE1)); in fpu_state_load() 105 struct pcb * const pcb = lwp_getpcb(l); in fpu_state_save() local 111 fpu_unload_to_fpreg(&pcb->pcb_fpu); in fpu_state_save() 136 struct pcb * const pcb = lwp_getpcb(l); in fpu_get_fault_code() local 170 [fpscr] "b"(&pcb->pcb_fpu.fpscr), in fpu_get_fault_code() 180 fpscr64 = *(uint64_t *)&pcb->pcb_fpu.fpscr; in fpu_get_fault_code() 181 ((uint32_t *)&pcb->pcb_fpu.fpscr)[_QUAD_LOWWORD] &= ~MASKBITS; in fpu_get_fault_code() [all …]
|
| /netbsd-src/sys/arch/powerpc/booke/ |
| H A D | spe.c | 80 struct pcb * const pcb = lwp_getpcb(l); in vec_state_load() local 83 memset(&pcb->pcb_vr, 0, sizeof(pcb->pcb_vr)); in vec_state_load() 97 vec_load_from_vreg(&pcb->pcb_vr); in vec_state_load() 116 struct pcb * const pcb = lwp_getpcb(l); in vec_state_save() local 128 vec_unload_to_vreg(&pcb->pcb_vr); in vec_state_save() 151 struct pcb * const pcb = lwp_getpcb(l); in vec_restore_from_mcontext() local 157 pcb->pcb_vr.vreg[8][0] = vr->__vr32[2]; in vec_restore_from_mcontext() 158 pcb->pcb_vr.vreg[8][1] = vr->__vr32[3]; in vec_restore_from_mcontext() 164 pcb->pcb_vr.vreg[i][0] = vr[0].__vr32[0]; in vec_restore_from_mcontext() 165 pcb->pcb_vr.vreg[i][1] = vr[1].__vr32[0]; in vec_restore_from_mcontext() [all …]
|
| H A D | copyin.c | 206 struct pcb * const pcb = lwp_getpcb(curlwp); in _ufetch_8() local 210 pcb->pcb_onfault = NULL; in _ufetch_8() 216 pcb->pcb_onfault = NULL; in _ufetch_8() 224 struct pcb * const pcb = lwp_getpcb(curlwp); in _ufetch_16() local 228 pcb->pcb_onfault = NULL; in _ufetch_16() 234 pcb->pcb_onfault = NULL; in _ufetch_16() 242 struct pcb * const pcb = lwp_getpcb(curlwp); in _ufetch_32() local 246 pcb->pcb_onfault = NULL; in _ufetch_32() 252 pcb->pcb_onfault = NULL; in _ufetch_32() 260 struct pcb * const pcb = lwp_getpcb(curlwp); in copyin() local [all …]
|
| H A D | copyout.c | 304 struct pcb * const pcb = lwp_getpcb(curlwp); in _ustore_8() local 308 pcb->pcb_onfault = NULL; in _ustore_8() 314 pcb->pcb_onfault = NULL; in _ustore_8() 322 struct pcb * const pcb = lwp_getpcb(curlwp); in _ustore_16() local 326 pcb->pcb_onfault = NULL; in _ustore_16() 332 pcb->pcb_onfault = NULL; in _ustore_16() 340 struct pcb * const pcb = lwp_getpcb(curlwp); in _ustore_32() local 344 pcb->pcb_onfault = NULL; in _ustore_32() 350 pcb->pcb_onfault = NULL; in _ustore_32() 358 struct pcb * const pcb = lwp_getpcb(curlwp); in copyout() local [all …]
|
| /netbsd-src/sys/arch/powerpc/oea/ |
| H A D | altivec.c | 76 struct pcb * const pcb = lwp_getpcb(l); in vec_state_load() local 79 memset(&pcb->pcb_vr, 0, sizeof(pcb->pcb_vr)); in vec_state_load() 95 vec_load_from_vreg(&pcb->pcb_vr); in vec_state_load() 107 l->l_md.md_utf->tf_vrsave = pcb->pcb_vr.vrsave; in vec_state_load() 119 struct pcb * const pcb = lwp_getpcb(l); in vec_state_save() local 131 vec_unload_to_vreg(&pcb->pcb_vr); in vec_state_save() 136 pcb->pcb_vr.vrsave = l->l_md.md_utf->tf_vrsave; in vec_state_save() 162 struct pcb * const pcb = lwp_getpcb(l); in vec_restore_from_mcontext() local 174 memcpy(pcb->pcb_vr.vreg, &mcp->__vrf.__vrs, in vec_restore_from_mcontext() 175 sizeof (pcb->pcb_vr.vreg)); in vec_restore_from_mcontext() [all …]
|
| /netbsd-src/external/bsd/file/dist/magic/magdir/ |
| H A D | ringdove | 11 # pcb-rnd 12 0 regex/128l ha:pcb-rnd-board-v[0-9]+[\ \t\r\n]*[{] pcb-rnd board file (lihata) 13 0 regex/128l li:pcb-rnd-subcircuit-v[0-9]+[\ \t\r\n]*[{] pcb-rnd subcircuit/footprint file (lihata) 14 0 regex/128l ha:pcb-rnd-buffer-v[0-9]+[\ \t\r\n]*[{] pcb-rnd paste buffer content (lihata) 15 0 regex/128l li:pcb-rnd-conf-v[0-9]+[\ \t\r\n]*[{] pcb-rnd configuration (lihata) 16 0 regex/128l ha:pcb-rnd-drc-query-v[0-9]+[\ \t\r\n]*[{] pcb-rnd drc query string (lihata) 17 0 regex/128l li:pcb-rnd-font-v[0-9]+[\ \t\r\n]*[{] pcb-rnd vector font (lihata) 18 0 regex/128l ha:pcb-rnd-log-v[0-9]+[\ \t\r\n]*[{] pcb-rnd message log dump (lihata) 19 0 regex/128l ha:pcb-rnd-padstack-v[0-9]+[\ \t\r\n]*[{] pcb-rnd padstack (lihata) 20 0 regex/128l li:pcb-rnd-view-list-v[0-9]+[\ \t\r\n]*[{] pcb-rnd view list (lihata) [all …]
|
| /netbsd-src/sys/netinet/ |
| H A D | dccp_tcplike.c | 142 dccp_remove_feature(cb->pcb, DCCP_OPT_CHANGE_R, DCCP_FEATURE_ACKRATIO); in tcplike_rto_timeout() 143 dccp_add_feature(cb->pcb, DCCP_OPT_CHANGE_R, DCCP_FEATURE_ACKRATIO, in tcplike_rto_timeout() 147 cb->oldcwnd_ts = cb->pcb->seq_snd; in tcplike_rto_timeout() 160 dccp_output(cb->pcb, 1); in tcplike_rto_timeout() 209 tcplike_send_init(struct dccpcb* pcb) in tcplike_send_init() argument 224 cb->pcb = pcb; in tcplike_send_init() 352 if (cb->pcb->remote_ackvector == 0) { in tcplike_send_packet() 354 dccp_remove_feature(cb->pcb, DCCP_OPT_CHANGE_R, DCCP_FEATURE_ACKVECTOR); in tcplike_send_packet() 355 dccp_add_feature(cb->pcb, DCCP_OPT_CHANGE_R, DCCP_FEATURE_ACKVECTOR, feature, 1); in tcplike_send_packet() 369 dccp_add_option(cb->pcb, DCCP_OPT_TIMESTAMP, (char*) &(cb->timestamp), 4); in tcplike_send_packet() [all …]
|
| /netbsd-src/sys/arch/usermode/usermode/ |
| H A D | trap.c | 189 struct pcb *pcb; in ast() local 207 pcb = lwp_getpcb(l); KASSERT(pcb); in ast() 309 struct pcb *pcb; in handle_signal() local 354 pcb = lwp_getpcb(l); KASSERT(pcb); in handle_signal() 360 if ((sp < (vaddr_t) pcb->sys_stack) || in handle_signal() 361 (sp > (vaddr_t) pcb->sys_stack_top)) { in handle_signal() 362 sp = (vaddr_t) pcb->sys_stack_top - sizeof(register_t); in handle_signal() 363 fp = (vaddr_t) &pcb->pcb_userret_ucp; in handle_signal() 372 if (fp - 4*PAGE_SIZE < (vaddr_t) pcb->sys_stack) in handle_signal() 380 jump_ucp.uc_stack.ss_sp = (void *) pcb->sys_stack; in handle_signal() [all …]
|
| /netbsd-src/sys/arch/sparc/sparc/ |
| H A D | db_interface.c | 335 struct pcb *pcb; in db_dump_pcb() local 340 pcb = (struct pcb *) addr; in db_dump_pcb() 342 pcb = curcpu()->curpcb; in db_dump_pcb() 344 snprintb(bits, sizeof(bits), PSR_BITS, pcb->pcb_psr); in db_dump_pcb() 346 pcb, (void *)(long)pcb->pcb_sp, (void *)(long)pcb->pcb_pc, in db_dump_pcb() 347 bits, (void *)pcb->pcb_onfault); in db_dump_pcb() 349 for (i=0; i<pcb->pcb_nsaved; i++) { in db_dump_pcb() 351 (unsigned long long)pcb->pcb_rw[i+1].rw_in[6]); in db_dump_pcb() 353 (unsigned long long)pcb->pcb_rw[i].rw_local[0], in db_dump_pcb() 354 (unsigned long long)pcb->pcb_rw[i].rw_local[1], in db_dump_pcb() [all …]
|
| H A D | trap.c | 226 struct pcb *pcb; in trap() local 311 pcb = lwp_getpcb(l); in trap() 502 if (pcb->pcb_uw || pcb->pcb_nsaved) in trap() 510 if (read_rw(tf->tf_out[6], &pcb->pcb_rw[0])) { in trap() 514 if (pcb->pcb_nsaved) in trap() 516 pcb->pcb_nsaved = -1; /* mark success */ in trap() 536 if (rwindow_save(l) || read_rw(tf->tf_out[6], &pcb->pcb_rw[0])) { in trap() 544 pcb->pcb_rw[0].rw_in[6]); in trap() 546 if (read_rw(pcb->pcb_rw[0].rw_in[6], &pcb->pcb_rw[1])) { in trap() 550 if (pcb->pcb_nsaved) in trap() [all …]
|
| /netbsd-src/sys/arch/alpha/alpha/ |
| H A D | process_machdep.c | 76 struct pcb *pcb = lwp_getpcb(l); in process_read_regs() local 80 regs->r_regs[R_SP] = pcb->pcb_hw.apcb_usp; in process_read_regs() 87 struct pcb *pcb = lwp_getpcb(l); in process_write_regs() local 91 pcb->pcb_hw.apcb_usp = regs->r_regs[R_SP]; in process_write_regs() 117 struct pcb *pcb = lwp_getpcb(l); in process_read_fpregs() local 121 memcpy(regs, &pcb->pcb_fp, sizeof(struct fpreg)); in process_read_fpregs() 128 struct pcb *pcb = lwp_getpcb(l); in process_write_fpregs() local 132 memcpy(&pcb->pcb_fp, regs, sizeof(struct fpreg)); in process_write_fpregs()
|
| /netbsd-src/sys/arch/vax/vax/ |
| H A D | db_machdep.c | 411 struct pcb *pcb; local 484 pcb = lwp_getpcb(l); 488 (*pr)(" KSP = 0x%x\n", (unsigned int)(pcb->KSP)); 489 (*pr)(" ESP = 0x%x\n", (unsigned int)(pcb->ESP)); 490 (*pr)(" SSP = 0x%x\n", (unsigned int)(pcb->SSP)); 491 (*pr)(" USP = 0x%x\n", (unsigned int)(pcb->USP)); 493 (unsigned int)(pcb->R[0]), (unsigned int)(pcb->R[6])); 495 (unsigned int)(pcb->R[1]), (unsigned int)(pcb->R[7])); 497 (unsigned int)(pcb->R[2]), (unsigned int)(pcb->R[8])); 499 (unsigned int)(pcb->R[3]), (unsigned int)(pcb->R[9])); [all …]
|
| /netbsd-src/sys/arch/sh3/sh3/ |
| H A D | vm_machdep.c | 139 struct pcb *pcb; in cpu_lwp_fork() local 157 pcb = lwp_getpcb(l2); in cpu_lwp_fork() 158 sf = &pcb->pcb_sf; in cpu_lwp_fork() 168 struct pcb *pcb; in sh3_setup_uarea() local 174 pcb = lwp_getpcb(l); in sh3_setup_uarea() 175 pcb->pcb_onfault = NULL; in sh3_setup_uarea() 184 pcb = (struct pcb *)P1ADDR((vaddr_t)pcb); in sh3_setup_uarea() 186 l->l_md.md_pcb = pcb; in sh3_setup_uarea() 189 fptop = (vaddr_t)pcb + PAGE_SIZE; in sh3_setup_uarea() 214 memset((char *)fptop - PAGE_SIZE + sizeof(struct pcb), 0x5a, in sh3_setup_uarea() [all …]
|
| /netbsd-src/sys/arch/usermode/dev/ |
| H A D | cpu.c | 91 static struct pcb lwp0pcb; 198 struct pcb *pcb = lwp_getpcb(l); in cpu_lwp_setprivate() local 201 pcb->pcb_ucp.uc_mcontext._mc_tlsbase = in cpu_lwp_setprivate() 203 pcb->pcb_ucp.uc_flags |= _UC_TLSBASE; in cpu_lwp_setprivate() 205 pcb->pcb_userret_ucp.uc_mcontext._mc_tlsbase = in cpu_lwp_setprivate() 207 pcb->pcb_userret_ucp.uc_flags |= _UC_TLSBASE; in cpu_lwp_setprivate() 216 struct pcb *oldpcb; in cpu_switchto_atomic() 217 struct pcb *newpcb; in cpu_switchto_atomic() 246 struct pcb *oldpcb = oldlwp ? lwp_getpcb(oldlwp) : NULL; in cpu_switchto() 247 struct pcb *newpcb = lwp_getpcb(newlwp); in cpu_switchto() [all …]
|
| /netbsd-src/usr.sbin/crash/arch/ |
| H A D | alpha.c | 50 struct pcb pcb; variable 63 &pcb, sizeof(pcb)) != sizeof(pcb)) { in db_mach_init() 68 &pcb.pcb_context[0], 7 * sizeof(unsigned long)); in db_mach_init() 69 ddb_regs.tf_regs[FRAME_RA] = pcb.pcb_context[7]; in db_mach_init() 70 ddb_regs.tf_regs[FRAME_SP] = pcb.pcb_hw.apcb_ksp; in db_mach_init()
|
| /netbsd-src/sys/arch/vax/include/ |
| H A D | cpu.h | 161 struct pcb *pcb = lwp_getpcb(curlwp); \ 163 pcb->P0LR = (pcb->P0LR & ~AST_MASK) | AST_ON; \ 205 struct pcb *pcb = lwp_getpcb(l); \ 206 pcb->P0LR = (pcb->P0LR & ~AST_MASK) | AST_ON; \ 218 struct pcb *pcb = lwp_getpcb(l); \ 220 pcb->P0LR = (pcb->P0LR & ~AST_MASK) | AST_ON; \
|
| /netbsd-src/sys/arch/aarch64/aarch64/ |
| H A D | netbsd32_machdep.c | 160 struct pcb * const pcb = lwp_getpcb(l); in netbsd32_process_read_fpregs() local 177 (pcb->pcb_fpregs.fpsr & FPSR_BITS) | in netbsd32_process_read_fpregs() 178 (pcb->pcb_fpregs.fpcr & FPCR_BITS); in netbsd32_process_read_fpregs() 186 pcb->pcb_fpregs.fp_reg[i].u64[1]; in netbsd32_process_read_fpregs() 188 pcb->pcb_fpregs.fp_reg[i].u64[0]; in netbsd32_process_read_fpregs() 191 pcb->pcb_fpregs.fp_reg[i].u64[0]; in netbsd32_process_read_fpregs() 193 pcb->pcb_fpregs.fp_reg[i].u64[1]; in netbsd32_process_read_fpregs() 234 struct pcb * const pcb = lwp_getpcb(l); in netbsd32_process_write_fpregs() local 243 pcb->pcb_fpregs.fpsr = fpregs->fpr_vfp.vfp_fpscr & FPSR_BITS; in netbsd32_process_write_fpregs() 244 pcb->pcb_fpregs.fpcr = fpregs->fpr_vfp.vfp_fpscr & FPCR_BITS; in netbsd32_process_write_fpregs() [all …]
|