/openbsd/usr.sbin/smtpd/ |
H A D | enqueue.c | 123 } pstate; variable 566 memset(&pstate, 0, sizeof(pstate)); in parse_message() 667 if (!pstate.esc && !pstate.quote && s[pos] == '(') in parse_addr() 669 if (!pstate.comment && !pstate.esc && s[pos] == '"') in parse_addr() 670 pstate.quote = !pstate.quote; in parse_addr() 672 if (!pstate.comment && !pstate.quote && !pstate.esc) { in parse_addr() 694 if (pstate.wpos >= sizeof(pstate.buf)) in parse_addr() 696 pstate.buf[pstate.wpos++] = s[pos]; in parse_addr() 721 if (pstate.comment || pstate.quote || pstate.esc) in parse_addr_terminal() 724 if (pstate.wpos >= sizeof(pstate.buf)) in parse_addr_terminal() [all …]
|
/openbsd/usr.bin/vi/vi/ |
H A D | v_paragraph.c | 32 pstate = P_INBLANK; \ 44 if (pstate == P_INTEXT && !--cnt) \ 72 enum { P_INTEXT, P_INBLANK } pstate; in v_paragraphf() local 117 pstate = P_INBLANK; in v_paragraphf() 120 pstate = P_INTEXT; in v_paragraphf() 128 switch (pstate) { in v_paragraphf() 136 pstate = P_INTEXT; in v_paragraphf() 261 pstate = P_INBLANK; in v_paragraphb() 264 pstate = P_INTEXT; in v_paragraphb() 278 switch (pstate) { in v_paragraphb() [all …]
|
/openbsd/usr.sbin/unbound/testcode/ |
H A D | replay.c | 155 pstate->lineno++; in replay_range_read() 170 pstate->lineno, parse); in replay_range_read() 181 pstate->lineno--; in replay_range_read() 365 pstate->lineno, remain); in replay_moment_read() 429 memset(&pstate, 0, sizeof(pstate)); in replay_scenario_read() 430 pstate.default_ttl = 3600; in replay_scenario_read() 431 pstate.lineno = *lineno; in replay_scenario_read() 435 pstate.lineno++; in replay_scenario_read() 458 *lineno = pstate.lineno; in replay_scenario_read() 463 in, name, &pstate); in replay_scenario_read() [all …]
|
H A D | testpkts.c | 473 pstate->origin_len = sizeof(pstate->origin); in get_origin() 475 &pstate->origin_len); in get_origin() 491 uint8_t* origin = pstate->origin_len?pstate->origin:0; in add_rr() 492 uint8_t* prev = pstate->prev_rr_len?pstate->prev_rr:0; in add_rr() 500 prev, pstate->prev_rr_len); in add_rr() 503 pstate->origin_len, prev, pstate->prev_rr_len); in add_rr() 569 pstate->lineno++; in read_entry() 579 name, pstate->lineno); in read_entry() 586 get_origin(name, pstate, parse); in read_entry() 596 name, pstate->lineno, line); in read_entry() [all …]
|
/openbsd/sys/arch/sparc64/include/ |
H A D | psl.h | 256 return (sparc_rdpr(pstate)); in getpstate() 262 sparc_wrpr(pstate, newpstate, 0); in setpstate() 292 s = sparc_rdpr(pstate); in intr_disable() 293 sparc_wrpr(pstate, s & ~PSTATE_IE, 0); in intr_disable() 301 sparc_wrpr(pstate, s, 0); in intr_restore()
|
/openbsd/usr.bin/sndiod/ |
H A D | dev.c | 689 d->pstate = DEV_INIT; in dev_cycle() 946 d->pstate = DEV_CFG; in dev_new() 1078 d->pstate = DEV_INIT; in dev_open() 1153 d->pstate = DEV_CFG; in dev_close() 1300 d->pstate = DEV_RUN; in dev_wakeup() 1440 s->pstate = SLOT_RUN; in mtc_trigger() 1789 s->pstate = SLOT_INIT; in slot_new() 1823 switch (s->pstate) { in slot_del() 1887 if (s->pstate == SLOT_RUN || s->pstate == SLOT_STOP) in slot_setopt() 1902 if (s->pstate == SLOT_RUN || s->pstate == SLOT_STOP) in slot_setopt() [all …]
|
H A D | sock.c | 195 if (f->pstate > SOCK_AUTH) in sock_close() 289 if (s->pstate != SOCK_START) in sock_slot_onmove() 308 if (s->pstate != SOCK_START) in sock_slot_onvol() 351 f->pstate = SOCK_AUTH; in sock_new() 840 f->pstate = SOCK_HELLO; in sock_auth() 854 f->pstate = SOCK_HELLO; in sock_auth() 912 f->pstate = SOCK_INIT; in sock_hello() 1119 f->pstate = SOCK_START; in sock_execmsg() 1167 f->pstate = SOCK_STOP; in sock_execmsg() 1592 f->pstate = SOCK_INIT; in sock_buildmsg() [all …]
|
H A D | opt.c | 427 if (s->pstate == SLOT_RUN || s->pstate == SLOT_STOP) in opt_setdev() 458 if (s->pstate == SLOT_RUN || s->pstate == SLOT_STOP) { in opt_setdev()
|
H A D | sock.h | 51 unsigned int pstate; /* one of the above */ member
|
/openbsd/sys/arch/powerpc64/dev/ |
H A D | opal.c | 453 int i, pstate; in opalpm_find_index() local 459 pstate = (mfpmsr() >> 48) & 0xff; in opalpm_find_index() 461 if (sc->sc_pstate[i] == pstate) in opalpm_find_index() 483 uint64_t pstate; in opalpm_setperf() local 491 pstate = sc->sc_pstate[i]; in opalpm_setperf() 499 mtpmcr((pstate << 56) | (pstate << 48) | 0); in opalpm_setperf()
|
/openbsd/sys/dev/pci/drm/amd/amdgpu/ |
H A D | amdgpu_xgmi.c | 577 hive->pstate = AMDGPU_XGMI_PSTATE_UNKNOWN; in amdgpu_get_xgmi_hive() 601 int amdgpu_xgmi_set_pstate(struct amdgpu_device *adev, int pstate) in amdgpu_xgmi_set_pstate() argument 606 bool is_hi_req = pstate == AMDGPU_XGMI_PSTATE_MAX_VEGA20; in amdgpu_xgmi_set_pstate() 614 init_low = hive->pstate == AMDGPU_XGMI_PSTATE_UNKNOWN; in amdgpu_xgmi_set_pstate() 633 if (hive->pstate == pstate || in amdgpu_xgmi_set_pstate() 637 dev_dbg(request_adev->dev, "Set xgmi pstate %d.\n", pstate); in amdgpu_xgmi_set_pstate() 639 ret = amdgpu_dpm_set_xgmi_pstate(request_adev, pstate); in amdgpu_xgmi_set_pstate() 649 hive->pstate = hive->hi_req_count ? in amdgpu_xgmi_set_pstate() 650 hive->pstate : AMDGPU_XGMI_PSTATE_MIN; in amdgpu_xgmi_set_pstate() 652 hive->pstate = pstate; in amdgpu_xgmi_set_pstate() [all …]
|
H A D | amdgpu_xgmi.h | 43 } pstate; member 61 int amdgpu_xgmi_set_pstate(struct amdgpu_device *adev, int pstate);
|
/openbsd/sys/arch/sparc64/sparc64/ |
H A D | cpu.c | 746 sparc_wrpr(pstate, sparc_rdpr(pstate) & ~PSTATE_IE, 0); in cpu_idle_enter() 756 sparc_wrpr(pstate, sparc_rdpr(pstate) | PSTATE_IE, 0); in cpu_idle_cycle() 757 sparc_wrpr(pstate, sparc_rdpr(pstate) & ~PSTATE_IE, 0); in cpu_idle_cycle() 780 sparc_wrpr(pstate, sparc_rdpr(pstate) | PSTATE_IE, 0); in cpu_idle_leave()
|
H A D | locore.s | 3087 rdpr %pstate, %g1 3113 wrpr %g1, %pstate 3119 rdpr %pstate, %g1 3144 wrpr %g1, %pstate 3228 rdpr %pstate, %g1 3949 rdpr %pstate, %l0 3994 rdpr %pstate, %o5 4051 rdpr %pstate, %o5 6179 rdpr %pstate, %g1 6237 rdpr %pstate, %o0 [all …]
|
/openbsd/usr.sbin/unbound/iterator/ |
H A D | iter_hints.c | 309 struct sldns_file_parse_state pstate; in read_root_hints() local 328 memset(&pstate, 0, sizeof(pstate)); in read_root_hints() 329 pstate.lineno = 1; in read_root_hints() 335 &pstate); in read_root_hints() 338 pstate.lineno, LDNS_WIREPARSE_OFFSET(status), in read_root_hints() 397 fname, pstate.lineno, buf); in read_root_hints()
|
/openbsd/sbin/unwind/libunbound/iterator/ |
H A D | iter_hints.c | 309 struct sldns_file_parse_state pstate; in read_root_hints() local 328 memset(&pstate, 0, sizeof(pstate)); in read_root_hints() 329 pstate.lineno = 1; in read_root_hints() 335 &pstate); in read_root_hints() 338 pstate.lineno, LDNS_WIREPARSE_OFFSET(status), in read_root_hints() 397 fname, pstate.lineno, buf); in read_root_hints()
|
/openbsd/usr.bin/aucat/ |
H A D | aucat.c | 190 s->pstate = SLOT_INIT; in slot_flush() 215 s->pstate = SLOT_STOP; in slot_fill() 243 s->pstate = SLOT_CFG; in slot_new() 301 if (s->pstate != SLOT_CFG) { in slot_init() 388 s->pstate = SLOT_INIT; in slot_init() 423 s->pstate = SLOT_INIT; in slot_start() 426 s->pstate = SLOT_RUN; in slot_start() 440 if (s->pstate == SLOT_INIT) in slot_stop() 446 s->pstate = SLOT_INIT; in slot_stop() 460 if (s->pstate != SLOT_CFG) { in slot_del() [all …]
|
/openbsd/sys/arch/arm64/dev/ |
H A D | aplcpu.c | 277 uint64_t pstate; in aplcpu_opp_level() local 280 pstate = bus_space_read_8(sc->sc_iot, sc->sc_ioh[cluster], in aplcpu_opp_level() 282 opp_level = (pstate & sc->sc_cur_ps_mask); in aplcpu_opp_level() 285 pstate = bus_space_read_8(sc->sc_iot, sc->sc_ioh[cluster], in aplcpu_opp_level() 287 opp_level = (pstate & DVFS_CMD_PS1_MASK); in aplcpu_opp_level()
|
H A D | aplpmgr.c | 159 uint32_t pstate = on ? PMGR_PS_ACTIVE : PMGR_PS_PWRGATE; in aplpmgr_enable() local 185 val |= (pstate << PMGR_PS_TARGET_SHIFT); in aplpmgr_enable() 191 if ((val >> PMGR_PS_ACTUAL_SHIFT) == pstate) in aplpmgr_enable()
|
/openbsd/gnu/usr.bin/binutils/gdb/ |
H A D | sparc64obsd-tdep.c | 284 ULONGEST pstate; in sparc64obsd_trapframe_sniffer() local 288 pstate = frame_unwind_register_unsigned (next_frame, SPARC64_PSTATE_REGNUM); in sparc64obsd_trapframe_sniffer() 289 if ((pstate & SPARC64_PSTATE_PRIV) == 0) in sparc64obsd_trapframe_sniffer()
|
/openbsd/gnu/llvm/llvm/lib/Target/AArch64/ |
H A D | AArch64SMEInstrInfo.td | 144 // It's tricky to using the existing pstate operand defined in 203 // %pstate.before.call = 1 204 // if (%pstate.before.call != 0) 207 // if (%pstate.before.call != 0) 211 (MSRpstatesvcrImm1 svcr_op:$pstate, 0b0)>; 213 (MSRpstatesvcrImm1 svcr_op:$pstate, 0b1)>; 217 // %pstate.before.call = 0 218 // if (%pstate.before.call != 1) 221 // if (%pstate.before.call != 1) 225 (MSRpstatesvcrImm1 svcr_op:$pstate, 0b1)>; [all …]
|
/openbsd/distrib/special/more/ |
H A D | more.c | 150 int pstate = 0; /* current UL state */ variable 560 if (pstate) { in screen() 562 pstate = 0; in screen() 807 if (*s == ' ' && pstate == 0 && ulglitch && in prbuf() 818 if (state != pstate) { in prbuf() 825 if (c != ' ' || pstate == 0 || state != 0 || in prbuf() 832 pstate = state; in prbuf() 1709 if (pstate) { in reset_tty() 1712 pstate = 0; in reset_tty()
|
/openbsd/sys/arch/sparc64/dev/ |
H A D | creator.c | 782 uint64_t pstate, fprs; in creator_load_sram() local 796 pstate = sparc_rdpr(pstate); in creator_load_sram() 797 sparc_wrpr(pstate, pstate | PSTATE_PEF, 0); in creator_load_sram() 832 sparc_wrpr(pstate, pstate, 0); in creator_load_sram()
|
/openbsd/lib/libsndio/ |
H A D | sio_aucat.c | 44 int pstate; member 126 hdl->pstate = PSTATE_INIT; in sio_aucat_runmsg() 168 hdl->pstate = PSTATE_INIT; in _sio_aucat_open() 207 hdl->pstate = PSTATE_RUN; in sio_aucat_start() 253 while (hdl->pstate != PSTATE_INIT) { in sio_aucat_drain()
|
/openbsd/usr.sbin/unbound/services/ |
H A D | authzone.c | 4501 pstate->origin_len = sizeof(pstate->origin); in http_parse_origin() 4503 pstate->origin, &pstate->origin_len); in http_parse_origin() 4571 memset(&pstate, 0, sizeof(pstate)); in http_zonefile_syntax_check() 4585 pstate.origin_len?pstate.origin:NULL, pstate.origin_len, in http_zonefile_syntax_check() 4586 pstate.prev_rr_len?pstate.prev_rr:NULL, pstate.prev_rr_len); in http_zonefile_syntax_check() 4643 pstate->origin_len?pstate->origin:NULL, pstate->origin_len, in http_parse_add_rr() 4644 pstate->prev_rr_len?pstate->prev_rr:NULL, pstate->prev_rr_len); in http_parse_add_rr() 5057 memset(&pstate, 0, sizeof(pstate)); in apply_http() 5104 pstate.lineno = 0; in apply_http() 5107 pstate.lineno++; in apply_http() [all …]
|