| /freebsd/contrib/netbsd-tests/lib/libc/ttyio/ |
| H A D | t_ptm.c | 62 struct stat stm, sts; in ATF_TC_BODY() local 87 REQUIRE_ERRNO(stat(ptm.cn, &sts), -1); in ATF_TC_BODY() 88 ATF_REQUIRE_EQ(stm.st_rdev, sts.st_rdev); in ATF_TC_BODY() 92 REQUIRE_ERRNO(stat(ptm.sn, &sts), -1); in ATF_TC_BODY() 93 ATF_REQUIRE_EQ(stm.st_rdev, sts.st_rdev); in ATF_TC_BODY() 95 ATF_REQUIRE_EQ_MSG(sts.st_uid, getuid(), "bad slave uid"); in ATF_TC_BODY() 99 ATF_REQUIRE_EQ_MSG(sts.st_gid, gp->gr_gid, "bad slave grid"); in ATF_TC_BODY() 127 struct stat stm, sts; in ATF_TC_BODY() local 142 REQUIRE_ERRNO(stat("/dev/ptyp0", &sts), -1); in ATF_TC_BODY() 144 ATF_REQUIRE_EQ_MSG(major(stm.st_rdev), major(sts.st_rdev), in ATF_TC_BODY() [all …]
|
| /freebsd/sys/dev/alpm/ |
| H A D | alpm.c | 288 u_char sts; in alpm_idle() local 290 sts = ALPM_SMBINB(sc, SMBSTS); in alpm_idle() 292 ALPM_DEBUG(printf("alpm: idle? STS=0x%x\n", sts)); in alpm_idle() 294 return (sts & IDL_STS); in alpm_idle() 304 u_char sts = 0; in alpm_wait() local 310 sts = ALPM_SMBINB(sc, SMBSTS); in alpm_wait() 311 if (sts & SMI_I_STS) in alpm_wait() 315 ALPM_DEBUG(printf("alpm: STS=0x%x\n", sts)); in alpm_wait() 322 if (sts & TERMINATE) in alpm_wait() 325 if (sts & BUS_COLLI) in alpm_wait() [all …]
|
| /freebsd/sys/dev/amdpm/ |
| H A D | amdpm.c | 289 u_short sts; in amdpm_idle() local 292 sts = AMDPM_SMBINW(sc, AMDSMB_GLOBAL_STATUS); in amdpm_idle() 294 AMDPM_DEBUG(printf("amdpm: busy? STS=0x%x\n", sts)); in amdpm_idle() 296 return (~(sts & AMDSMB_GS_HST_STS)); in amdpm_idle() 306 u_short sts = 0; in amdpm_wait() local 313 sts = AMDPM_SMBINW(sc, AMDSMB_GLOBAL_STATUS); in amdpm_wait() 314 if (!(sts & AMDSMB_GS_HST_STS)) in amdpm_wait() 318 AMDPM_DEBUG(printf("amdpm: STS=0x%x (count=%d)\n", sts, count)); in amdpm_wait() 325 if (sts & AMDSMB_GS_ABRT_STS) in amdpm_wait() 328 if (sts & AMDSMB_GS_COL_STS) in amdpm_wait() [all …]
|
| /freebsd/crypto/openssl/apps/ |
| H A D | vms_decc_init.c | 73 int sts; in decc_init() local 102 sts = decc$feature_set_value(feat_index, in decc_init() 108 decc_feat_array[i].value, sts); in decc_init()
|
| /freebsd/sys/dev/viapm/ |
| H A D | viapm.c | 575 u_char sts; in viapm_busy() local 577 sts = VIAPM_INB(SMBHST); in viapm_busy() 579 VIAPM_DEBUG(printf("viapm: idle? STS=0x%x\n", sts)); in viapm_busy() 581 return (sts & SMBHST_BUSY); in viapm_busy() 591 u_char sts = 0; in viapm_wait() local 599 sts = VIAPM_INB(SMBHST); in viapm_wait() 602 if (!(sts & SMBHST_BUSY) && (sts & SMBHST_INTR)) in viapm_wait() 606 VIAPM_DEBUG(printf("viapm: SMBHST=0x%x\n", sts)); in viapm_wait() 613 if (sts & SMBHST_FAILED) in viapm_wait() 616 if (sts & SMBHST_COLLID) in viapm_wait() [all …]
|
| /freebsd/usr.sbin/bhyve/ |
| H A D | pci_virtio_block.c | 457 int i, sectsz, sts, sto; in pci_vtblk_init() local 476 blockif_psectsz(bctxt, &sts, &sto); in pci_vtblk_init() 537 (sts > sectsz) ? (ffsll(sts / sectsz) - 1) : 0; in pci_vtblk_init() 539 (sto != 0) ? ((sts - sto) / sectsz) : 0; in pci_vtblk_init() 545 sc->vbsc_cfg.discard_sector_alignment = MAX(sectsz, sts) / VTBLK_BSIZE; in pci_vtblk_init()
|
| H A D | pci_emul.c | 1091 uint16_t sts; in pci_emul_add_capability() local 1097 sts = pci_get_cfgdata16(pi, PCIR_STATUS); in pci_emul_add_capability() 1098 if ((sts & PCIM_STATUS_CAPPRESENT) == 0) in pci_emul_add_capability() 1108 if ((sts & PCIM_STATUS_CAPPRESENT) == 0) { in pci_emul_add_capability() 1110 pci_set_cfgdata16(pi, PCIR_STATUS, sts|PCIM_STATUS_CAPPRESENT); in pci_emul_add_capability() 1443 uint16_t sts; in pci_emul_iscap() local 1445 sts = pci_get_cfgdata16(pi, PCIR_STATUS); in pci_emul_iscap() 1446 if ((sts & PCIM_STATUS_CAPPRESENT) != 0) { in pci_emul_iscap()
|
| H A D | pci_passthru.c | 268 int i, ptr, capptr, cap, sts, caplen, table_size; in cfginitmsi() local 282 sts = passthru_read_config(&sel, PCIR_STATUS, 2); in cfginitmsi() 283 if (sts & PCIM_STATUS_CAPPRESENT) { in cfginitmsi() 357 if ((sts & PCIM_STATUS_CAPPRESENT) != 0 && sc->psc_msi.capoff == 0) { in cfginitmsi()
|
| /freebsd/libexec/pppoed/ |
| H A D | pppoed.c | 259 struct ngpppoe_sts *sts = (struct ngpppoe_sts *)(msgbuf + sizeof *rep); in Spawn() local 410 if (setenv("ACNAME", sts->hook, 1) != 0) in Spawn() 412 sts->hook); in Spawn() 416 snprintf(sessionid, sizeof sessionid, "%04x", *(u_int16_t *)sts); in Spawn() 431 msg, sts->hook); in Spawn() 435 syslog(LOG_INFO, "Received NGM_PPPOE_%s (hook \"%s\")", msg, sts->hook); in Spawn()
|
| /freebsd/sys/dev/amdsmb/ |
| H A D | amdsmb.c | 278 u_char sts, temp; in amdsmb_wait() local 294 amdsmb_ec_read(sc, SMB_STS, &sts); in amdsmb_wait() 295 sts &= SMB_STS_STATUS; in amdsmb_wait() 296 AMDSMB_DEBUG(printf("amdsmb: STS=0x%x\n", sts)); in amdsmb_wait() 298 switch (sts) { in amdsmb_wait()
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7915/ |
| H A D | init.c | 901 int sts; in mt7915_set_stream_vht_txbf_caps() local 907 sts = hweight8(phy->mt76->chainmask); in mt7915_set_stream_vht_txbf_caps() 913 sts - 1); in mt7915_set_stream_vht_txbf_caps() 919 if (sts < 2) in mt7915_set_stream_vht_txbf_caps() 925 sts - 1); in mt7915_set_stream_vht_txbf_caps() 934 int sts = hweight8(phy->mt76->chainmask); in mt7915_set_stream_he_txbf_caps() local 935 u8 c, sts_160 = sts; in mt7915_set_stream_he_txbf_caps() 984 if (sts < 2) in mt7915_set_stream_he_txbf_caps() 988 elem->phy_cap_info[7] |= min_t(int, sts - 1, 2) << 3; in mt7915_set_stream_he_txbf_caps() 996 sts - 1); in mt7915_set_stream_he_txbf_caps()
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
| H A D | init.c | 1270 int sts; in mt7996_set_stream_vht_txbf_caps() local 1276 sts = hweight16(phy->mt76->chainmask); in mt7996_set_stream_vht_txbf_caps() 1291 if (sts < 2) in mt7996_set_stream_vht_txbf_caps() 1296 FIELD_PREP(IEEE80211_VHT_CAP_SOUNDING_DIMENSIONS_MASK, sts - 1); in mt7996_set_stream_vht_txbf_caps() 1305 int sts = hweight16(phy->mt76->chainmask); in mt7996_set_stream_he_txbf_caps() local 1351 if (sts < 2) in mt7996_set_stream_he_txbf_caps() 1355 elem->phy_cap_info[7] |= min_t(int, sts - 1, 2) << 3; in mt7996_set_stream_he_txbf_caps() 1363 sts - 1) | in mt7996_set_stream_he_txbf_caps() 1365 sts - 1) * non_2g); in mt7996_set_stream_he_txbf_caps() 1524 int sts = hweight16(phy->mt76->chainmask); in mt7996_init_eht_caps() local [all …]
|
| H A D | mcu.c | 1545 int sts = hweight16(phy->mt76->chainmask); in mt7996_is_ebf_supported() local 1551 if (!bfee && sts < 2) in mt7996_is_ebf_supported() 1645 u8 sts, snd_dim; in mt7996_mcu_sta_bfer_vht() local 1649 sts = FIELD_GET(IEEE80211_VHT_CAP_BEAMFORMEE_STS_MASK, in mt7996_mcu_sta_bfer_vht() 1653 bf->nrow = min_t(u8, min_t(u8, snd_dim, sts), tx_ant); in mt7996_mcu_sta_bfer_vht() 1681 u8 snd_dim, sts; in mt7996_mcu_sta_bfer_he() local 1696 sts = HE_PHY(CAP4_BEAMFORMEE_MAX_STS_UNDER_80MHZ_MASK, in mt7996_mcu_sta_bfer_he() 1698 bf->nrow = min_t(u8, snd_dim, sts); in mt7996_mcu_sta_bfer_he() 1728 sts = HE_PHY(CAP4_BEAMFORMEE_MAX_STS_ABOVE_80MHZ_MASK, in mt7996_mcu_sta_bfer_he() 1731 bf->nrow_gt_bw80 = min_t(int, snd_dim, sts); in mt7996_mcu_sta_bfer_he() [all …]
|
| /freebsd/sys/dev/bnxt/bnxt_en/ |
| H A D | bnxt.h | 987 #define BNXT_FW_IS_HEALTHY(sts) (((sts) & BNXT_FW_STATUS_HEALTH_MSK) ==\ argument 990 #define BNXT_FW_IS_BOOTING(sts) (((sts) & BNXT_FW_STATUS_HEALTH_MSK) < \ argument 993 #define BNXT_FW_IS_ERR(sts) (((sts) & BNXT_FW_STATUS_HEALTH_MSK) > \ argument 996 #define BNXT_FW_IS_RECOVERING(sts) (BNXT_FW_IS_ERR(sts) && \ argument 997 ((sts) & BNXT_FW_STATUS_RECOVERING))
|
| /freebsd/usr.sbin/ppp/ |
| H A D | ether.c | 219 struct ngpppoe_sts *sts = (struct ngpppoe_sts *)(msgbuf + sizeof *rep); in ether_MessageIn() local 271 if (setenv("ACNAME", sts->hook, 1) != 0) in ether_MessageIn() 272 log_Printf(LogWARN, "setenv: cannot set ACNAME=%s: %m", sts->hook); in ether_MessageIn() 277 snprintf(sessionid, sizeof sessionid, "%04x", *(u_int16_t *)sts); in ether_MessageIn() 294 msg, asciilen, sts->hook); in ether_MessageIn()
|
| /freebsd/sys/dev/ppbus/ |
| H A D | lpt.c | 864 int sts = 0; in lptintr() local 874 ((sts=ppb_rstr(ppbus)) & RDY_MASK) != LP_READY; i++) ; in lptintr() 876 if ((sts & RDY_MASK) == LP_READY) { in lptintr() 904 if (((sts & (LPS_NERR | LPS_OUT) ) != LPS_NERR) && in lptintr() 909 lprintf(("sts %x ", sts)); in lptintr()
|
| /freebsd/sys/dev/nfsmb/ |
| H A D | nfsmb.c | 333 u_char sts; in nfsmb_wait() local 347 sts = NFSMB_SMBINB(sc, SMB_STS) & SMB_STS_STATUS; in nfsmb_wait() 348 NFSMB_DEBUG(printf("nfsmb: STS=0x%x\n", sts)); in nfsmb_wait() 350 switch (sts) { in nfsmb_wait()
|
| /freebsd/contrib/ntp/sntp/libopts/ |
| H A D | makeshell.c | 859 int sts; in genshelloptUsage() 860 wait(&sts); in genshelloptUsage() 898 int sts; in genshelloptUsage() 899 wait(&sts); in genshelloptUsage()
|
| /freebsd/sys/contrib/device-tree/Bindings/scsi/ |
| H A D | hisilicon-sas.txt | 17 - ctrl-reset-sts-reg : offset to controller reset status register in ctrl reg 71 ctrl-reset-sts-reg = <0x5a30>;
|
| /freebsd/sys/contrib/dev/rtw89/ |
| H A D | pci_be.c | 504 u32 sts; in rtw89_pci_poll_io_idle_be() local 507 ret = read_poll_timeout_atomic(rtw89_read32, sts, in rtw89_pci_poll_io_idle_be() 508 !(sts & B_BE_HAXI_MST_BUSY), in rtw89_pci_poll_io_idle_be() 512 rtw89_err(rtwdev, "pci dmach busy1 0x%X\n", sts); in rtw89_pci_poll_io_idle_be()
|
| /freebsd/sys/contrib/device-tree/src/arm64/hisilicon/ |
| H A D | hip06.dtsi | 615 ctrl-reset-sts-reg = <0x5a30>; 658 ctrl-reset-sts-reg = <0x5a0c>; 700 ctrl-reset-sts-reg = <0x5a70>;
|
| /freebsd/sys/netgraph/ |
| H A D | ng_pppoe.c | 1317 struct ngpppoe_sts *sts; in send_acname() local 1326 sts = (struct ngpppoe_sts *)msg->data; in send_acname() 1328 strncpy(sts->hook, (const char *)(tag + 1), tlen); in send_acname() 1329 sts->hook[tlen] = '\0'; in send_acname() 2217 struct ngpppoe_sts *sts; in pppoe_send_event() local 2225 sts = (struct ngpppoe_sts *)msg->data; in pppoe_send_event() 2226 strncpy(sts->hook, NG_HOOK_NAME(sp->hook), NG_HOOKSIZ); in pppoe_send_event()
|
| /freebsd/sys/dev/isp/ |
| H A D | isp_target.c | 242 uint8_t sts; in isp_endcmd() local 260 sts = code & 0xff; in isp_endcmd() 269 cto->ct_scsi_status = sts; in isp_endcmd()
|
| /freebsd/contrib/ofed/opensm/opensm/ |
| H A D | osm_congestion_control.c | 530 cl_status_t sts; in cc_poller_send() local 539 sts = cl_event_wait_on(&p_cc->sig_mads_on_wire_continue, in cc_poller_send() 541 if (sts != CL_SUCCESS) in cc_poller_send()
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7925/ |
| H A D | main.c | 169 int sts = hweight16(phy->mt76->chainmask); in mt7925_init_eht_caps() local 187 u8_encode_bits(u8_get_bits(sts - 1, BIT(0)), in mt7925_init_eht_caps() 191 u8_encode_bits(u8_get_bits(sts - 1, GENMASK(2, 1)), in mt7925_init_eht_caps() 193 u8_encode_bits(sts - 1, in mt7925_init_eht_caps() 197 u8_encode_bits(sts - 1, IEEE80211_EHT_PHY_CAP2_SOUNDING_DIM_80MHZ_MASK) | in mt7925_init_eht_caps() 198 u8_encode_bits(sts - 1, IEEE80211_EHT_PHY_CAP2_SOUNDING_DIM_160MHZ_MASK); in mt7925_init_eht_caps() 210 u8_encode_bits(min_t(int, sts - 1, 2), in mt7925_init_eht_caps()
|