| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/clk/ |
| H A D | nouveau_nvkm_subdev_clk_base.c | 47 u8 pstate, u8 domain, u32 input) in nvkm_clk_adjust() argument 54 data = nvbios_boostEm(bios, pstate, &ver, &hdr, &cnt, &len, &boostE); in nvkm_clk_adjust() 117 nvkm_cstate_find_best(struct nvkm_clk *clk, struct nvkm_pstate *pstate, in nvkm_cstate_find_best() argument 124 if (!pstate || !cstate) in nvkm_cstate_find_best() 141 list_for_each_entry_from_reverse(cstate, &pstate->list, head) { in nvkm_cstate_find_best() 150 nvkm_cstate_get(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_get() argument 154 return list_last_entry(&pstate->list, typeof(*cstate), head); in nvkm_cstate_get() 156 list_for_each_entry(cstate, &pstate->list, head) { in nvkm_cstate_get() 165 nvkm_cstate_prog(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_prog() argument 174 if (!list_empty(&pstate->list)) { in nvkm_cstate_prog() [all …]
|
| /netbsd-src/external/mpl/dhcp/dist/server/tests/ |
| H A D | load_bal_unittest.c | 60 dhcp_failover_state_t pstate, sstate; in ATF_TC_BODY() local 72 memset(&pstate, 0, sizeof(dhcp_failover_state_t)); in ATF_TC_BODY() 73 pstate.i_am = primary; in ATF_TC_BODY() 74 pstate.load_balance_max_secs = 5; in ATF_TC_BODY() 75 pstate.hba = hba; in ATF_TC_BODY() 85 if (load_balance_mine(&packet, &pstate) != 1) { in ATF_TC_BODY() 96 if (load_balance_mine(&packet, &pstate) != 1) { in ATF_TC_BODY() 106 if (load_balance_mine(&packet, &pstate) != 1) { in ATF_TC_BODY() 116 if (load_balance_mine(&packet, &pstate) != 1) { in ATF_TC_BODY() 141 dhcp_failover_state_t pstate, sstate; in ATF_TC_BODY() local [all …]
|
| /netbsd-src/external/gpl3/gdb/dist/gnulib/import/ |
| H A D | mbrtowc-impl.h | 22 char *pstate = (char *)ps; variable 36 if (pstate == NULL) 37 pstate = internal_state; 40 size_t nstate = pstate[0]; 54 buf[2] = pstate[3]; 57 buf[1] = pstate[2]; 60 buf[0] = pstate[1]; 238 pstate[0] = 0; 245 pstate[++k] = s[0]; 248 pstate[++k] = s[1]; [all …]
|
| H A D | mbsinit.c | 47 const char *pstate = (const char *)ps; in mbsinit() local 49 return pstate == NULL || pstate[0] == 0; in mbsinit()
|
| /netbsd-src/external/bsd/nvi/dist/vi/ |
| H A D | v_paragraph.c | 40 pstate = P_INBLANK; \ 75 enum { P_INTEXT, P_INBLANK } pstate; in v_paragraphf() local 129 pstate = P_INBLANK; in v_paragraphf() 132 pstate = P_INTEXT; in v_paragraphf() 142 switch (pstate) { in v_paragraphf() 150 pstate = P_INTEXT; in v_paragraphf() 216 enum { P_INTEXT, P_INBLANK } pstate; in v_paragraphb() local 268 pstate = P_INBLANK; in v_paragraphb() 271 pstate = P_INTEXT; in v_paragraphb() 285 switch (pstate) { in v_paragraphb() [all …]
|
| /netbsd-src/sys/arch/sparc/stand/ofwboot/ |
| H A D | srt0.s | 102 wrpr %g0, PSTATE_PRIV+PSTATE_IE, %pstate 158 rdpr %pstate, %l0 160 wrpr %g0, PSTATE_PROM|PSTATE_IE, %pstate 161 wrpr %l0, %g0, %pstate 176 rdpr %pstate, %l0 188 wrpr %g0, PSTATE_PROM|PSTATE_IE, %pstate ! Enable 64-bit addresses for the prom 189 wrpr %l0, 0, %pstate 278 rdpr %pstate, %o4 279 wrpr %o4, PSTATE_IE, %pstate 285 wrpr %o4, 0, %pstate [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/ |
| H A D | amdgpu_xgmi.c | 281 tmp->pstate = -1; in amdgpu_get_xgmi_hive() 287 int amdgpu_xgmi_set_pstate(struct amdgpu_device *adev, int pstate) in amdgpu_xgmi_set_pstate() argument 293 bool is_high_pstate = pstate && adev->asic_type == CHIP_VEGA20; in amdgpu_xgmi_set_pstate() 300 if (hive->pstate == pstate) { in amdgpu_xgmi_set_pstate() 301 adev->pstate = is_high_pstate ? pstate : adev->pstate; in amdgpu_xgmi_set_pstate() 305 dev_dbg(adev->dev, "Set xgmi pstate %d.\n", pstate); in amdgpu_xgmi_set_pstate() 307 ret = amdgpu_dpm_set_xgmi_pstate(adev, pstate); in amdgpu_xgmi_set_pstate() 317 adev->pstate = pstate; in amdgpu_xgmi_set_pstate() 324 if (tmp_adev->pstate != adev->pstate) { in amdgpu_xgmi_set_pstate() 330 hive->pstate = pstate; in amdgpu_xgmi_set_pstate() [all …]
|
| H A D | amdgpu_xgmi.h | 40 int pstate; /*0 -- low , 1 -- high , -1 unknown*/ member 48 int amdgpu_xgmi_set_pstate(struct amdgpu_device *adev, int pstate);
|
| /netbsd-src/external/bsd/unbound/dist/testcode/ |
| H A D | replay.c | 136 struct sldns_file_parse_state* pstate, char* line) in replay_range_read() argument 155 pstate->lineno++; in replay_range_read() 170 pstate->lineno, parse); in replay_range_read() 181 pstate->lineno--; in replay_range_read() 183 entry = read_entry(in, name, pstate, 1); in replay_range_read() 185 fatal_exit("%d: bad entry", pstate->lineno); in replay_range_read() 254 struct sldns_file_parse_state* pstate) in replay_moment_read() argument 264 log_err("%d: cannot read number: %s", pstate->lineno, remain); in replay_moment_read() 310 read_file_content(in, &pstate->lineno, mom); in replay_moment_read() 318 read_file_content(in, &pstate->lineno, mom); in replay_moment_read() [all …]
|
| H A D | testpkts.c | 460 get_origin(const char* name, struct sldns_file_parse_state* pstate, char* parse) in get_origin() argument 473 status = sldns_str2wire_dname_buf(parse, pstate->origin, in get_origin() 474 &pstate->origin_len); in get_origin() 477 error("%s line %d:\n\t%s: %s", name, pstate->lineno, in get_origin() 483 size_t* pktlen, struct sldns_file_parse_state* pstate, in add_rr() argument 490 uint8_t* origin = pstate->origin_len?pstate->origin:0; in add_rr() 491 uint8_t* prev = pstate->prev_rr_len?pstate->prev_rr:0; in add_rr() 498 &rr_len, &dname_len, origin, pstate->origin_len, in add_rr() 499 prev, pstate->prev_rr_len); in add_rr() 501 &dname_len, pstate->default_ttl, origin, in add_rr() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/ |
| H A D | nouveau_nvkm_engine_device_ctrl.c | 60 args->v0.pstate = clk->pstate; in nvkm_control_mthd_pstate_info() 66 args->v0.pstate = NVIF_CONTROL_PSTATE_INFO_V0_PSTATE_UNKNOWN; in nvkm_control_mthd_pstate_info() 80 struct nvkm_pstate *pstate; in nvkm_control_mthd_pstate_attr() local 111 list_for_each_entry(pstate, &clk->states, head) { in nvkm_control_mthd_pstate_attr() 116 lo = pstate->base.domain[domain->name]; in nvkm_control_mthd_pstate_attr() 118 list_for_each_entry(cstate, &pstate->list, head) { in nvkm_control_mthd_pstate_attr() 123 args->v0.state = pstate->pstate; in nvkm_control_mthd_pstate_attr()
|
| /netbsd-src/sys/arch/sparc64/include/ |
| H A D | psl.h | 378 SPARC64_RDPR_DEF(pstate, %pstate, int) /* getpstate() */ 379 SPARC64_WRPR_DEF(pstate, %pstate, int) /* setpstate() */ 413 int pstate = getpstate(); in SPARC64_RDASR64_DEF() local 415 setpstate(pstate & ~PSTATE_IE); in SPARC64_RDASR64_DEF() 416 return pstate; in SPARC64_RDASR64_DEF() 420 intr_restore(int pstate) in intr_restore() argument 422 setpstate(pstate); in intr_restore()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/ |
| H A D | nouveau_nvkm_subdev_bios_cstep.c | 83 info->pstate = (nvbios_rd16(bios, data + 0x00) & 0x01e0) >> 5; in nvbios_cstepEp() 90 nvbios_cstepEm(struct nvkm_bios *bios, u8 pstate, u8 *ver, u8 *hdr, in nvbios_cstepEm() argument 95 if (info->pstate == pstate) in nvbios_cstepEm()
|
| H A D | nouveau_nvkm_subdev_bios_boost.c | 86 info->pstate = (nvbios_rd16(bios, data + 0x00) & 0x01e0) >> 5; in nvbios_boostEp() 94 nvbios_boostEm(struct nvkm_bios *bios, u8 pstate, in nvbios_boostEm() argument 99 if (info->pstate == pstate) in nvbios_boostEm()
|
| /netbsd-src/sys/arch/arm/apple/ |
| H A D | apple_pmgr.c | 73 const uint32_t pstate = enable ? PMGR_PS_ACTIVE : PMGR_PS_PWRGATE; in apple_pmgr_enable() local 88 val |= __SHIFTIN(pstate, PMGR_PS_TARGET_MASK); in apple_pmgr_enable() 93 if (__SHIFTOUT(val, PMGR_PS_ACTUAL_MASK) == pstate) in apple_pmgr_enable()
|
| /netbsd-src/external/bsd/unbound/dist/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()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvkm/subdev/bios/ |
| H A D | cstep.h | 10 u8 pstate; member 17 u32 nvbios_cstepEm(struct nvkm_bios *, u8 pstate, u8 *ver, u8 *hdr,
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/ |
| H A D | dumpfile.cc | 335 if (dfi->pstate == 0) in get_dump_file_name() 1480 stream = dump_open (name, dfi->pstate < 0); in dump_start() 1483 dfi->pstate = 1; in dump_start() 1563 FILE *stream = dump_open (name, part != -1 || dfi->pstate < 0); in dump_begin() 1565 dfi->pstate = 1; in dump_begin() 1588 if (dump_files[i].pstate || dump_files[i].alt_state) in dump_phase_enabled_p() 1591 if (m_extra_dump_files[i].pstate || m_extra_dump_files[i].alt_state) in dump_phase_enabled_p() 1598 return dfi->pstate || dfi->alt_state; in dump_phase_enabled_p() 1609 return dfi->pstate > 0 || dfi->alt_state > 0; in dump_initialized_p() 1663 if (tdi_dfi->pstate) in register_pass() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/ |
| H A D | dumpfile.c | 333 if (dfi->pstate == 0) in get_dump_file_name() 1462 stream = dump_open (name, dfi->pstate < 0); in dump_start() 1465 dfi->pstate = 1; in dump_start() 1545 FILE *stream = dump_open (name, part != -1 || dfi->pstate < 0); in dump_begin() 1547 dfi->pstate = 1; in dump_begin() 1570 if (dump_files[i].pstate || dump_files[i].alt_state) in dump_phase_enabled_p() 1573 if (m_extra_dump_files[i].pstate || m_extra_dump_files[i].alt_state) in dump_phase_enabled_p() 1580 return dfi->pstate || dfi->alt_state; in dump_phase_enabled_p() 1591 return dfi->pstate > 0 || dfi->alt_state > 0; in dump_initialized_p() 1645 if (tdi_dfi->pstate) in register_pass() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvkm/subdev/ |
| H A D | clk.h | 69 u8 pstate; member 106 int pstate; /* current */ member
|
| /netbsd-src/external/bsd/unbound/dist/services/ |
| H A D | authzone.c | 4495 http_parse_origin(sldns_buffer* buf, struct sldns_file_parse_state* pstate) in http_parse_origin() argument 4501 pstate->origin_len = sizeof(pstate->origin); in http_parse_origin() 4503 pstate->origin, &pstate->origin_len); in http_parse_origin() 4505 pstate->origin_len = 0; in http_parse_origin() 4515 http_parse_ttl(sldns_buffer* buf, struct sldns_file_parse_state* pstate) in http_parse_ttl() argument 4522 pstate->default_ttl = sldns_str2period( in http_parse_ttl() 4535 sldns_buffer* buf, struct sldns_file_parse_state* pstate) in chunkline_non_comment_RR() argument 4543 if((ret=http_parse_origin(buf, pstate))!=0) { in chunkline_non_comment_RR() 4548 if((ret=http_parse_ttl(buf, pstate))!=0) { in chunkline_non_comment_RR() 4567 struct sldns_file_parse_state pstate; in http_zonefile_syntax_check() local [all …]
|
| /netbsd-src/sys/arch/sparc64/sparc64/ |
| H A D | locore.s | 187 wrpr %g0, PSTATE_KERN, %pstate ! Alternate Globals (AG) bit set to zero 196 wrpr %g0, PSTATE_KERN|PSTATE_AG, %pstate ! Alternate Globals (AG) bit set to one 200 rdpr %pstate, \scratch 202 wrpr %g0, \scratch, %pstate 206 rdpr %pstate, \scratch 208 wrpr %g0, \scratch, %pstate 2088 wrpr %g0, PSTATE_KERN|PSTATE_IG, %pstate ! We need to save volatile stuff to interrupt globals 2090 wrpr %g0, PSTATE_KERN|PSTATE_AG, %pstate ! We need to save volatile stuff to alternate globals 2450 wrpr %g0, PSTATE_KERN|PSTATE_IG, %pstate ! DEBUG 2452 wrpr %g0, PSTATE_KERN|PSTATE_AG, %pstate [all …]
|
| H A D | mp_subr.S | 346 rdpr %pstate, %g2 ! enable FP before we begin 350 wrpr %g2, 0, %pstate 423 rdpr %pstate, %g1 426 wrpr %g1, 0, %pstate
|
| /netbsd-src/external/gpl2/rcs/dist/src/ |
| H A D | rlog.c | 964 struct stateattri const *pstate; local 973 if ((pstate = statelist)) /* only certain states wanted */ 974 while (strcmp(pstate->status, pdelta->state) != 0) 975 if (!(pstate = pstate->nextstate))
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/pmu/ |
| H A D | nouveau_nvkm_subdev_pmu_gk20a.c | 68 *state = clk->pstate; in gk20a_pmu_dvfs_get_cur_state() 80 level = cur_level = clk->pstate; in gk20a_pmu_dvfs_get_target_state()
|