/freebsd-12-stable/contrib/netbsd-tests/lib/libc/ttyio/ |
H A D | t_ptm.c | 62 struct stat stm, sts; local 87 REQUIRE_ERRNO(stat(ptm.cn, &sts), -1); 88 ATF_REQUIRE_EQ(stm.st_rdev, sts.st_rdev); 92 REQUIRE_ERRNO(stat(ptm.sn, &sts), -1); 93 ATF_REQUIRE_EQ(stm.st_rdev, sts.st_rdev); 95 ATF_REQUIRE_EQ_MSG(sts.st_uid, getuid(), "bad slave uid"); 99 ATF_REQUIRE_EQ_MSG(sts.st_gid, gp->gr_gid, "bad slave grid"); 127 struct stat stm, sts; local 142 REQUIRE_ERRNO(stat("/dev/ptyp0", &sts), -1); 144 ATF_REQUIRE_EQ_MSG(major(stm.st_rdev), major(sts [all...] |
/freebsd-12-stable/contrib/binutils/bfd/ |
H A D | cache.c | 339 int sts; local 343 sts = fflush (f); 344 if (sts < 0) 346 return sts; 352 int sts; local 356 sts = fstat (fileno (f), sb); 357 if (sts < 0) 359 return sts;
|
/freebsd-12-stable/usr.sbin/ancontrol/ |
H A D | ancontrol.c | 250 struct an_ltv_status *sts; local 273 sts = (struct an_ltv_status *)&areq; 276 an_printhex((char *)&sts->an_macaddr, ETHER_ADDR_LEN); 278 if (sts->an_opmode & AN_STATUS_OPMODE_CONFIGURED) 280 if (sts->an_opmode & AN_STATUS_OPMODE_MAC_ENABLED) 282 if (sts->an_opmode & AN_STATUS_OPMODE_RX_ENABLED) 284 if (sts->an_opmode & AN_STATUS_OPMODE_IN_SYNC) 286 if (sts->an_opmode & AN_STATUS_OPMODE_ASSOCIATED) 288 if (sts->an_opmode & AN_STATUS_OPMODE_LEAP) 290 if (sts 1429 struct an_ltv_status *sts; local [all...] |
/freebsd-12-stable/sys/dev/alpm/ |
H A D | alpm.c | 290 u_char sts; local 292 sts = ALPM_SMBINB(sc, SMBSTS); 294 ALPM_DEBUG(printf("alpm: idle? STS=0x%x\n", sts)); 296 return (sts & IDL_STS); 306 u_char sts = 0; local 312 sts = ALPM_SMBINB(sc, SMBSTS); 313 if (sts & SMI_I_STS) 317 ALPM_DEBUG(printf("alpm: STS=0x%x\n", sts)); 324 if (sts & TERMINATE) 327 if (sts [all...] |
/freebsd-12-stable/sys/dev/amdpm/ |
H A D | amdpm.c | 292 u_short sts; local 295 sts = AMDPM_SMBINW(sc, AMDSMB_GLOBAL_STATUS); 297 AMDPM_DEBUG(printf("amdpm: busy? STS=0x%x\n", sts)); 299 return (~(sts & AMDSMB_GS_HST_STS)); 309 u_short sts = 0; local 316 sts = AMDPM_SMBINW(sc, AMDSMB_GLOBAL_STATUS); 317 if (!(sts & AMDSMB_GS_HST_STS)) 321 AMDPM_DEBUG(printf("amdpm: STS=0x%x (count=%d)\n", sts, count)); 328 if (sts & AMDSMB_GS_ABRT_STS) 331 if (sts [all...] |
/freebsd-12-stable/sys/i386/ibcs2/ |
H A D | ibcs2_ioctl.c | 359 struct ibcs2_termios sts; local 366 btios2stios (&bts, &sts); 368 stios2stio (&sts, &st); 378 error = copyout((caddr_t)&sts, uap->data, 379 sizeof (sts)); 390 struct ibcs2_termios sts; local 412 btios2stios(&bts, &sts); 413 stio2stios(&st, &sts); 414 stios2btios(&sts, &bts); 426 struct ibcs2_termios sts; local 442 struct ibcs2_termios sts; local [all...] |
/freebsd-12-stable/contrib/ntp/sntp/libopts/ |
H A D | makeshell.c | 898 int sts; 899 wait(&sts); 936 int sts; 937 wait(&sts);
|
/freebsd-12-stable/sys/dev/viapm/ |
H A D | viapm.c | 588 u_char sts; local 590 sts = VIAPM_INB(SMBHST); 592 VIAPM_DEBUG(printf("viapm: idle? STS=0x%x\n", sts)); 594 return (sts & SMBHST_BUSY); 604 u_char sts = 0; local 612 sts = VIAPM_INB(SMBHST); 615 if (!(sts & SMBHST_BUSY) && (sts & SMBHST_INTR)) 619 VIAPM_DEBUG(printf("viapm: SMBHST=0x%x\n", sts)); 626 if (sts [all...] |
/freebsd-12-stable/usr.sbin/bhyve/ |
H A D | pci_virtio_block.c | 400 int i, sectsz, sts, sto; local 419 blockif_psectsz(bctxt, &sts, &sto); 472 (sts > sectsz) ? (ffsll(sts / sectsz) - 1) : 0; 474 (sto != 0) ? ((sts - sto) / sectsz) : 0;
|
H A D | pci_emul.c | 680 uint16_t sts; local 686 sts = pci_get_cfgdata16(pi, PCIR_STATUS); 687 if ((sts & PCIM_STATUS_CAPPRESENT) == 0) 697 if ((sts & PCIM_STATUS_CAPPRESENT) == 0) { 699 pci_set_cfgdata16(pi, PCIR_STATUS, sts|PCIM_STATUS_CAPPRESENT); 1031 uint16_t sts; local 1033 sts = pci_get_cfgdata16(pi, PCIR_STATUS); 1034 if ((sts & PCIM_STATUS_CAPPRESENT) != 0) {
|
H A D | pci_passthru.c | 180 int i, ptr, capptr, cap, sts, caplen, table_size; local 194 sts = read_config(&sel, PCIR_STATUS, 2); 195 if (sts & PCIM_STATUS_CAPPRESENT) { 266 if ((sts & PCIM_STATUS_CAPPRESENT) != 0 && sc->psc_msi.capoff == 0) {
|
/freebsd-12-stable/libexec/pppoed/ |
H A D | pppoed.c | 261 struct ngpppoe_sts *sts = (struct ngpppoe_sts *)(msgbuf + sizeof *rep); local 412 if (setenv("ACNAME", sts->hook, 1) != 0) 414 sts->hook); 418 snprintf(sessionid, sizeof sessionid, "%04x", *(u_int16_t *)sts); 433 msg, sts->hook); 437 syslog(LOG_INFO, "Received NGM_PPPOE_%s (hook \"%s\")", msg, sts->hook);
|
/freebsd-12-stable/sys/dev/amdsmb/ |
H A D | amdsmb.c | 281 u_char sts, temp; local 297 amdsmb_ec_read(sc, SMB_STS, &sts); 298 sts &= SMB_STS_STATUS; 299 AMDSMB_DEBUG(printf("amdsmb: STS=0x%x\n", sts)); 301 switch (sts) {
|
/freebsd-12-stable/usr.sbin/ppp/ |
H A D | ether.c | 221 struct ngpppoe_sts *sts = (struct ngpppoe_sts *)(msgbuf + sizeof *rep); local 273 if (setenv("ACNAME", sts->hook, 1) != 0) 274 log_Printf(LogWARN, "setenv: cannot set ACNAME=%s: %m", sts->hook); 279 snprintf(sessionid, sizeof sessionid, "%04x", *(u_int16_t *)sts); 296 msg, asciilen, sts->hook);
|
/freebsd-12-stable/sys/dev/nfsmb/ |
H A D | nfsmb.c | 341 u_char sts; local 355 sts = NFSMB_SMBINB(sc, SMB_STS) & SMB_STS_STATUS; 356 NFSMB_DEBUG(printf("nfsmb: STS=0x%x\n", sts)); 358 switch (sts) {
|
/freebsd-12-stable/lib/libcasper/services/cap_grp/tests/ |
H A D | grp_test.c | 145 struct group sts, stc; local 163 getgrent_r(&sts, bufs, sizeof(bufs), &grps); 167 getgrent_r(&sts, bufs, sizeof(bufs), &grps); 177 getgrent_r(&sts, bufs, sizeof(bufs), &grps); 196 getgrnam_r("wheel", &sts, bufs, sizeof(bufs), &grps); 199 getgrnam_r("operator", &sts, bufs, sizeof(bufs), &grps); 215 getgrgid_r(GID_WHEEL, &sts, bufs, sizeof(bufs), &grps); 218 getgrgid_r(GID_OPERATOR, &sts, bufs, sizeof(bufs), &grps);
|
/freebsd-12-stable/lib/libcasper/services/cap_pwd/tests/ |
H A D | pwd_test.c | 159 struct passwd sts, stc; local 176 getpwent_r(&sts, bufs, sizeof(bufs), &pwds); 180 getpwent_r(&sts, bufs, sizeof(bufs), &pwds); 189 getpwent_r(&sts, bufs, sizeof(bufs), &pwds); 208 getpwnam_r("root", &sts, bufs, sizeof(bufs), &pwds); 211 getpwnam_r("operator", &sts, bufs, sizeof(bufs), &pwds); 227 getpwuid_r(UID_ROOT, &sts, bufs, sizeof(bufs), &pwds); 230 getpwuid_r(UID_OPERATOR, &sts, bufs, sizeof(bufs), &pwds);
|
/freebsd-12-stable/sys/dev/ppbus/ |
H A D | lpt.c | 876 int sts = 0; local 886 ((sts=ppb_rstr(ppbus)) & RDY_MASK) != LP_READY; i++) ; 888 if ((sts & RDY_MASK) == LP_READY) { 916 if (((sts & (LPS_NERR | LPS_OUT) ) != LPS_NERR) && 921 lprintf(("sts %x ", sts));
|
/freebsd-12-stable/sys/netgraph/ |
H A D | ng_pppoe.c | 1297 struct ngpppoe_sts *sts; local 1306 sts = (struct ngpppoe_sts *)msg->data; 1308 strncpy(sts->hook, (const char *)(tag + 1), tlen); 1309 sts->hook[tlen] = '\0'; 2193 struct ngpppoe_sts *sts; local 2201 sts = (struct ngpppoe_sts *)msg->data; 2202 strncpy(sts->hook, NG_HOOK_NAME(sp->hook), NG_HOOKSIZ);
|
/freebsd-12-stable/sys/dev/isp/ |
H A D | isp_target.c | 407 uint8_t sts; local 434 sts = code & 0xff; 442 cto->ct_scsi_status = sts; 489 sts = code & 0xff; 501 cto->rsp.m1.ct_scsi_status = sts; 510 if (sts == SCSI_CHECK && (code & ECMD_SVALID)) {
|
/freebsd-12-stable/contrib/ofed/opensm/opensm/ |
H A D | osm_congestion_control.c | 530 cl_status_t sts; local 539 sts = cl_event_wait_on(&p_cc->sig_mads_on_wire_continue, 541 if (sts != CL_SUCCESS)
|
H A D | osm_perfmgr.c | 454 cl_status_t sts; local 471 sts = cl_event_wait_on(&perfmgr->sig_query, 473 if (sts != CL_SUCCESS)
|
/freebsd-12-stable/sys/dev/qat/ |
H A D | qat_ae.c | 2542 uint32_t fcu, sts; local 2553 sts = __SHIFTOUT(fcu, FCU_STATUS_STS); 2554 if (sts == FCU_STATUS_STS_VERI_FAIL) 2557 sts == FCU_STATUS_STS_VERI_DONE) { 2573 uint32_t fcu, sts, loaded; local 2596 sts = __SHIFTOUT(fcu, FCU_STATUS_STS); 2598 if (sts == FCU_STATUS_STS_LOAD_DONE &&
|
/freebsd-12-stable/sys/dev/hifn/ |
H A D | hifn7751.c | 795 u_int32_t sts, num[2]; local 801 sts = READ_REG_1(sc, HIFN_1_7811_RNGSTS); 802 if (sts & HIFN_7811_RNGSTS_UFL) { 807 if ((sts & HIFN_7811_RNGSTS_RDY) == 0)
|
/freebsd-12-stable/usr.sbin/cdcontrol/ |
H A D | cdcontrol.c | 788 strstatus(int sts) argument 790 switch (sts) {
|