st 687 arch/i386/i386/bios.c smbios_find_table(u_int8_t type, struct smbtable *st) st 703 arch/i386/i386/bios.c if ((st->cookie & 0xfff) == type && st->cookie >> 16) { st 704 arch/i386/i386/bios.c if ((u_int8_t *)st->hdr >= va && (u_int8_t *)st->hdr < end) { st 705 arch/i386/i386/bios.c hdr = st->hdr; st 712 arch/i386/i386/bios.c tcount = st->cookie >> 16; st 721 arch/i386/i386/bios.c st->hdr = hdr; st 722 arch/i386/i386/bios.c st->tblhdr = va + sizeof(struct smbtblhdr); st 723 arch/i386/i386/bios.c st->cookie = (tcount + 1) << 16 | type; st 739 arch/i386/i386/bios.c smbios_get_string(struct smbtable *st, u_int8_t indx, char *dest, size_t len) st 745 arch/i386/i386/bios.c va = (u_int8_t *)st->hdr + st->hdr->size; st 69 arch/i386/i386/conf.c bdev_tape_init(NST,st), /* 5: SCSI tape */ st 220 arch/i386/i386/conf.c cdev_tape_init(NST,st), /* 14: SCSI tape */ st 39 arch/i386/i386/pctr.c static __inline void p5ctrrd(struct pctrst *st); st 41 arch/i386/i386/pctr.c static __inline void p6ctrrd(struct pctrst *st); st 117 arch/i386/i386/pctr.c p5ctrrd(struct pctrst *st) st 122 arch/i386/i386/pctr.c st->pctr_fn[0] = msr11 & 0xffff; st 123 arch/i386/i386/pctr.c st->pctr_fn[1] = msr11 >> 16; st 125 arch/i386/i386/pctr.c st->pctr_tsc = rdtsc(); st 126 arch/i386/i386/pctr.c st->pctr_hwc[0] = rdmsr(P5MSR_CTR0); st 127 arch/i386/i386/pctr.c st->pctr_hwc[1] = rdmsr(P5MSR_CTR1); st 155 arch/i386/i386/pctr.c p6ctrrd(struct pctrst *st) st 157 arch/i386/i386/pctr.c st->pctr_fn[0] = rdmsr(P6MSR_CTRSEL0); st 158 arch/i386/i386/pctr.c st->pctr_fn[1] = rdmsr(P6MSR_CTRSEL1); st 160 arch/i386/i386/pctr.c st->pctr_tsc = rdtsc(); st 161 arch/i386/i386/pctr.c st->pctr_hwc[0] = rdpmc(0); st 162 arch/i386/i386/pctr.c st->pctr_hwc[1] = rdpmc(1); st 173 arch/i386/i386/pctr.c struct pctrst *st = (void *)data; st 176 arch/i386/i386/pctr.c p6ctrrd(st); st 178 arch/i386/i386/pctr.c p5ctrrd(st); st 180 arch/i386/i386/pctr.c bzero(st, sizeof(*st)); st 182 arch/i386/i386/pctr.c st->pctr_tsc = rdtsc(); st 184 arch/i386/i386/pctr.c st->pctr_idl = pctr_idlcnt; st 491 arch/i386/stand/libsa/biosdev.c const char *st = bios_getdisklabel(&dip->bios_info, st 494 arch/i386/stand/libsa/biosdev.c if (debug && st) st 495 arch/i386/stand/libsa/biosdev.c printf("%s\n", st); st 497 arch/i386/stand/libsa/biosdev.c if (!st) { st 84 arch/i386/stand/libsa/cmd_i386.c int dev, part, st; st 119 arch/i386/stand/libsa/cmd_i386.c st = biosd_io(F_READ, bd, 0, 1, buf); st 120 arch/i386/stand/libsa/cmd_i386.c if (st) st 352 arch/i386/stand/libsa/diskprobe.c int st, reprobe = 0; st 364 arch/i386/stand/libsa/diskprobe.c st = biosd_io(F_READ, bdi, blk, 1, buf); st 365 arch/i386/stand/libsa/diskprobe.c if (st) { st 49 arch/i386/stand/libsa/memprobe.c int st; st 57 arch/i386/stand/libsa/memprobe.c st = (*p != *q); st 60 arch/i386/stand/libsa/memprobe.c return st; st 61 compat/common/vfs_syscalls_35.c cvtstat(struct stat *st, struct stat35 *ost) st 64 compat/common/vfs_syscalls_35.c ost->st_dev = st->st_dev; st 65 compat/common/vfs_syscalls_35.c ost->st_ino = st->st_ino; st 66 compat/common/vfs_syscalls_35.c ost->st_mode = st->st_mode & 0xffff; st 67 compat/common/vfs_syscalls_35.c ost->st_nlink = st->st_nlink & 0xffff; st 68 compat/common/vfs_syscalls_35.c ost->st_uid = st->st_uid; st 69 compat/common/vfs_syscalls_35.c ost->st_gid = st->st_gid; st 70 compat/common/vfs_syscalls_35.c ost->st_rdev = st->st_rdev; st 71 compat/common/vfs_syscalls_35.c ost->st_atimespec = st->st_atimespec; st 72 compat/common/vfs_syscalls_35.c ost->st_mtimespec = st->st_mtimespec; st 73 compat/common/vfs_syscalls_35.c ost->st_ctimespec = st->st_ctimespec; st 74 compat/common/vfs_syscalls_35.c ost->st_size = st->st_size; st 75 compat/common/vfs_syscalls_35.c ost->st_blocks = st->st_blocks; st 76 compat/common/vfs_syscalls_35.c ost->st_blksize = st->st_blksize; st 77 compat/common/vfs_syscalls_35.c ost->st_flags = st->st_flags; st 78 compat/common/vfs_syscalls_35.c ost->st_gen = st->st_gen; st 72 compat/common/vfs_syscalls_43.c cvtstat(st, ost) st 73 compat/common/vfs_syscalls_43.c struct stat *st; st 77 compat/common/vfs_syscalls_43.c ost->st_dev = st->st_dev; st 78 compat/common/vfs_syscalls_43.c ost->st_ino = st->st_ino; st 79 compat/common/vfs_syscalls_43.c ost->st_mode = st->st_mode; st 80 compat/common/vfs_syscalls_43.c ost->st_nlink = st->st_nlink; st 81 compat/common/vfs_syscalls_43.c ost->st_uid = st->st_uid; st 82 compat/common/vfs_syscalls_43.c ost->st_gid = st->st_gid; st 83 compat/common/vfs_syscalls_43.c ost->st_rdev = st->st_rdev; st 84 compat/common/vfs_syscalls_43.c if (st->st_size < (quad_t)1 << 32) st 85 compat/common/vfs_syscalls_43.c ost->st_size = st->st_size; st 88 compat/common/vfs_syscalls_43.c ost->st_atime = st->st_atime; st 89 compat/common/vfs_syscalls_43.c ost->st_mtime = st->st_mtime; st 90 compat/common/vfs_syscalls_43.c ost->st_ctime = st->st_ctime; st 91 compat/common/vfs_syscalls_43.c ost->st_blksize = st->st_blksize; st 92 compat/common/vfs_syscalls_43.c ost->st_blocks = st->st_blocks; st 93 compat/common/vfs_syscalls_43.c ost->st_flags = st->st_flags; st 94 compat/common/vfs_syscalls_43.c ost->st_gen = st->st_gen; st 397 compat/hpux/hpux_file.c struct stat *st, tmpst; st 403 compat/hpux/hpux_file.c st = stackgap_alloc(&sg, sizeof (struct stat)); st 406 compat/hpux/hpux_file.c SCARG(&fsa, sb) = st; st 411 compat/hpux/hpux_file.c if ((error = copyin(st, &tmpst, sizeof(tmpst)))) st 461 compat/hpux/hpux_file.c struct stat *st, tmpst; st 467 compat/hpux/hpux_file.c st = stackgap_alloc(&sg, sizeof (struct stat)); st 470 compat/hpux/hpux_file.c SCARG(&sa, ub) = st; st 481 compat/hpux/hpux_file.c if ((error = copyin(st, &tmpst, sizeof(tmpst)))) st 505 compat/hpux/hpux_file.c struct stat *st, tmpst; st 511 compat/hpux/hpux_file.c st = stackgap_alloc(&sg, sizeof (struct stat)); st 514 compat/hpux/hpux_file.c SCARG(&fsa, sb) = st; st 519 compat/hpux/hpux_file.c if ((error = copyin(st, &tmpst, sizeof(tmpst)))) st 542 compat/hpux/hpux_file.c struct stat *st, tmpst; st 550 compat/hpux/hpux_file.c st = stackgap_alloc(&sg, sizeof (struct stat)); st 551 compat/hpux/hpux_file.c SCARG(&sa, ub) = st; st 557 compat/hpux/hpux_file.c if ((error = copyin(st, &tmpst, sizeof(tmpst)))) st 121 compat/ibcs2/ibcs2_ioctl.c stios2btios(st, bt) st 122 compat/ibcs2/ibcs2_ioctl.c struct ibcs2_termios *st; st 127 compat/ibcs2/ibcs2_ioctl.c l = st->c_iflag; r = 0; st 143 compat/ibcs2/ibcs2_ioctl.c l = st->c_oflag; r = 0; st 149 compat/ibcs2/ibcs2_ioctl.c l = st->c_cflag; r = 0; st 164 compat/ibcs2/ibcs2_ioctl.c l = st->c_lflag; r = 0; st 178 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VINTR] ? st->c_cc[IBCS2_VINTR] : _POSIX_VDISABLE; st 180 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VQUIT] ? st->c_cc[IBCS2_VQUIT] : _POSIX_VDISABLE; st 182 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VERASE] ? st->c_cc[IBCS2_VERASE] : _POSIX_VDISABLE; st 184 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VKILL] ? st->c_cc[IBCS2_VKILL] : _POSIX_VDISABLE; st 187 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VEOF] ? st->c_cc[IBCS2_VEOF] : _POSIX_VDISABLE; st 189 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VEOL] ? st->c_cc[IBCS2_VEOL] : _POSIX_VDISABLE; st 191 compat/ibcs2/ibcs2_ioctl.c bt->c_cc[VMIN] = st->c_cc[IBCS2_VMIN]; st 192 compat/ibcs2/ibcs2_ioctl.c bt->c_cc[VTIME] = st->c_cc[IBCS2_VTIME]; st 195 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VEOL2] ? st->c_cc[IBCS2_VEOL2] : _POSIX_VDISABLE; st 198 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VSWTCH] ? st->c_cc[IBCS2_VSWTCH] : _POSIX_VDISABLE; st 201 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VSTART] ? st->c_cc[IBCS2_VSTART] : _POSIX_VDISABLE; st 203 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VSTOP] ? st->c_cc[IBCS2_VSTOP] : _POSIX_VDISABLE; st 205 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VSUSP] ? st->c_cc[IBCS2_VSUSP] : _POSIX_VDISABLE; st 215 compat/ibcs2/ibcs2_ioctl.c btios2stios(bt, st) st 217 compat/ibcs2/ibcs2_ioctl.c struct ibcs2_termios *st; st 235 compat/ibcs2/ibcs2_ioctl.c st->c_iflag = r; st 241 compat/ibcs2/ibcs2_ioctl.c st->c_oflag = r; st 256 compat/ibcs2/ibcs2_ioctl.c st->c_cflag = r; st 267 compat/ibcs2/ibcs2_ioctl.c st->c_lflag = r; st 271 compat/ibcs2/ibcs2_ioctl.c st->c_cflag |= l; st 273 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VINTR] = st 275 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VQUIT] = st 277 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VERASE] = st 279 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VKILL] = st 282 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VEOF] = st 284 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VEOL] = st 287 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VMIN] = bt->c_cc[VMIN]; st 288 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VTIME] = bt->c_cc[VTIME]; st 290 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VEOL2] = st 292 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VSWTCH] = st 294 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VSUSP] = st 296 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VSTART] = st 298 compat/ibcs2/ibcs2_ioctl.c st->c_cc[IBCS2_VSTOP] = st 301 compat/ibcs2/ibcs2_ioctl.c st->c_line = 0; st 367 compat/ibcs2/ibcs2_ioctl.c struct ibcs2_termio st; st 374 compat/ibcs2/ibcs2_ioctl.c stios2stio (&sts, &st); st 375 compat/ibcs2/ibcs2_ioctl.c error = copyout((caddr_t)&st, SCARG(uap, data), st 376 compat/ibcs2/ibcs2_ioctl.c sizeof (st)); st 395 compat/ibcs2/ibcs2_ioctl.c struct ibcs2_termio st; st 397 compat/ibcs2/ibcs2_ioctl.c if ((error = copyin(SCARG(uap, data), (caddr_t)&st, st 398 compat/ibcs2/ibcs2_ioctl.c sizeof(st))) != 0) { st 416 compat/ibcs2/ibcs2_ioctl.c stio2stios(&st, &sts); st 61 compat/ibcs2/ibcs2_stat.c bsd_stat2ibcs_stat(st, st4) st 62 compat/ibcs2/ibcs2_stat.c struct stat43 *st; st 66 compat/ibcs2/ibcs2_stat.c st4->st_dev = (ibcs2_dev_t)st->st_dev; st 67 compat/ibcs2/ibcs2_stat.c st4->st_ino = (ibcs2_ino_t)st->st_ino; st 68 compat/ibcs2/ibcs2_stat.c st4->st_mode = (ibcs2_mode_t)st->st_mode; st 69 compat/ibcs2/ibcs2_stat.c st4->st_nlink = (ibcs2_nlink_t)st->st_nlink; st 70 compat/ibcs2/ibcs2_stat.c st4->st_uid = (ibcs2_uid_t)st->st_uid; st 71 compat/ibcs2/ibcs2_stat.c st4->st_gid = (ibcs2_gid_t)st->st_gid; st 72 compat/ibcs2/ibcs2_stat.c st4->st_rdev = (ibcs2_dev_t)st->st_rdev; st 73 compat/ibcs2/ibcs2_stat.c st4->st_size = (ibcs2_off_t)st->st_size; st 74 compat/ibcs2/ibcs2_stat.c st4->st_atim = (ibcs2_time_t)st->st_atime; st 75 compat/ibcs2/ibcs2_stat.c st4->st_mtim = (ibcs2_time_t)st->st_mtime; st 76 compat/ibcs2/ibcs2_stat.c st4->st_ctim = (ibcs2_time_t)st->st_ctime; st 175 compat/ibcs2/ibcs2_stat.c struct stat43 st; st 181 compat/ibcs2/ibcs2_stat.c SCARG(&cup, ub) = stackgap_alloc(&sg, sizeof(st)); st 187 compat/ibcs2/ibcs2_stat.c if ((error = copyin(SCARG(&cup, ub), &st, sizeof(st))) != 0) st 189 compat/ibcs2/ibcs2_stat.c bsd_stat2ibcs_stat(&st, &ibcs2_st); st 190 compat/ibcs2/ibcs2_stat.c return copyout((caddr_t)&ibcs2_st, (caddr_t)SCARG(uap, st), st 204 compat/ibcs2/ibcs2_stat.c struct stat43 st; st 210 compat/ibcs2/ibcs2_stat.c SCARG(&cup, ub) = stackgap_alloc(&sg, sizeof(st)); st 216 compat/ibcs2/ibcs2_stat.c if ((error = copyin(SCARG(&cup, ub), &st, sizeof(st))) != 0) st 218 compat/ibcs2/ibcs2_stat.c bsd_stat2ibcs_stat(&st, &ibcs2_st); st 219 compat/ibcs2/ibcs2_stat.c return copyout((caddr_t)&ibcs2_st, (caddr_t)SCARG(uap, st), st 233 compat/ibcs2/ibcs2_stat.c struct stat43 st; st 240 compat/ibcs2/ibcs2_stat.c SCARG(&cup, sb) = stackgap_alloc(&sg, sizeof(st)); st 243 compat/ibcs2/ibcs2_stat.c if ((error = copyin(SCARG(&cup, sb), &st, sizeof(st))) != 0) st 245 compat/ibcs2/ibcs2_stat.c bsd_stat2ibcs_stat(&st, &ibcs2_st); st 246 compat/ibcs2/ibcs2_stat.c return copyout((caddr_t)&ibcs2_st, (caddr_t)SCARG(uap, st), st 85 compat/ibcs2/ibcs2_syscallargs.h syscallarg(struct ibcs2_stat *) st; st 115 compat/ibcs2/ibcs2_syscallargs.h syscallarg(struct ibcs2_stat *) st; st 281 compat/ibcs2/ibcs2_syscallargs.h syscallarg(struct ibcs2_stat *) st; st 486 compat/linux/linux_file.c struct stat *st,tmpst; st 492 compat/linux/linux_file.c st = stackgap_alloc(&sg, sizeof (struct stat)); st 495 compat/linux/linux_file.c SCARG(&fsa, sb) = st; st 500 compat/linux/linux_file.c if ((error = copyin(st, &tmpst, sizeof tmpst))) st 520 compat/linux/linux_file.c struct stat *st, tmpst; st 527 compat/linux/linux_file.c st = stackgap_alloc(&sg, sizeof (struct stat)); st 530 compat/linux/linux_file.c SCARG(&sa, ub) = st; st 537 compat/linux/linux_file.c if ((error = copyin(st, &tmpst, sizeof tmpst))) st 125 compat/linux/linux_file64.c struct stat *st,tmpst; st 131 compat/linux/linux_file64.c st = stackgap_alloc(&sg, sizeof (struct stat)); st 134 compat/linux/linux_file64.c SCARG(&fsa, sb) = st; st 139 compat/linux/linux_file64.c if ((error = copyin(st, &tmpst, sizeof tmpst))) st 159 compat/linux/linux_file64.c struct stat *st, tmpst; st 165 compat/linux/linux_file64.c st = stackgap_alloc(&sg, sizeof (struct stat)); st 168 compat/linux/linux_file64.c SCARG(&sa, ub) = st; st 175 compat/linux/linux_file64.c if ((error = copyin(st, &tmpst, sizeof tmpst))) st 648 compat/osf1/osf1_cvt.c osf1_cvt_stat_from_native(st, ost) st 649 compat/osf1/osf1_cvt.c const struct stat *st; st 653 compat/osf1/osf1_cvt.c ost->st_dev = osf1_cvt_dev_from_native(st->st_dev); st 654 compat/osf1/osf1_cvt.c ost->st_ino = st->st_ino; st 655 compat/osf1/osf1_cvt.c ost->st_mode = st->st_mode; st 656 compat/osf1/osf1_cvt.c ost->st_nlink = st->st_nlink; st 657 compat/osf1/osf1_cvt.c ost->st_uid = st->st_uid == -2 ? (u_int16_t) -2 : st->st_uid; st 658 compat/osf1/osf1_cvt.c ost->st_gid = st->st_gid == -2 ? (u_int16_t) -2 : st->st_gid; st 659 compat/osf1/osf1_cvt.c ost->st_rdev = osf1_cvt_dev_from_native(st->st_rdev); st 660 compat/osf1/osf1_cvt.c ost->st_size = st->st_size; st 661 compat/osf1/osf1_cvt.c ost->st_atime_sec = st->st_atime; st 663 compat/osf1/osf1_cvt.c ost->st_mtime_sec = st->st_mtime; st 665 compat/osf1/osf1_cvt.c ost->st_ctime_sec = st->st_ctime; st 667 compat/osf1/osf1_cvt.c ost->st_blksize = st->st_blksize; st 668 compat/osf1/osf1_cvt.c ost->st_blocks = st->st_blocks; st 669 compat/osf1/osf1_cvt.c ost->st_flags = st->st_flags; st 670 compat/osf1/osf1_cvt.c ost->st_gen = st->st_gen; st 119 compat/sunos/sunos_ioctl.c stios2btios(st, bt) st 120 compat/sunos/sunos_ioctl.c struct sunos_termios *st; st 125 compat/sunos/sunos_ioctl.c l = st->c_iflag; st 142 compat/sunos/sunos_ioctl.c l = st->c_oflag; st 171 compat/sunos/sunos_ioctl.c l = st->c_cflag; st 198 compat/sunos/sunos_ioctl.c l = st->c_lflag; st 216 compat/sunos/sunos_ioctl.c bt->c_cc[VINTR] = st->c_cc[0] ? st->c_cc[0] : _POSIX_VDISABLE; st 217 compat/sunos/sunos_ioctl.c bt->c_cc[VQUIT] = st->c_cc[1] ? st->c_cc[1] : _POSIX_VDISABLE; st 218 compat/sunos/sunos_ioctl.c bt->c_cc[VERASE] = st->c_cc[2] ? st->c_cc[2] : _POSIX_VDISABLE; st 219 compat/sunos/sunos_ioctl.c bt->c_cc[VKILL] = st->c_cc[3] ? st->c_cc[3] : _POSIX_VDISABLE; st 220 compat/sunos/sunos_ioctl.c bt->c_cc[VEOF] = st->c_cc[4] ? st->c_cc[4] : _POSIX_VDISABLE; st 221 compat/sunos/sunos_ioctl.c bt->c_cc[VEOL] = st->c_cc[5] ? st->c_cc[5] : _POSIX_VDISABLE; st 222 compat/sunos/sunos_ioctl.c bt->c_cc[VEOL2] = st->c_cc[6] ? st->c_cc[6] : _POSIX_VDISABLE; st 224 compat/sunos/sunos_ioctl.c bt->c_cc[VSTART] = st->c_cc[8] ? st->c_cc[8] : _POSIX_VDISABLE; st 225 compat/sunos/sunos_ioctl.c bt->c_cc[VSTOP] = st->c_cc[9] ? st->c_cc[9] : _POSIX_VDISABLE; st 226 compat/sunos/sunos_ioctl.c bt->c_cc[VSUSP] = st->c_cc[10] ? st->c_cc[10] : _POSIX_VDISABLE; st 227 compat/sunos/sunos_ioctl.c bt->c_cc[VDSUSP] = st->c_cc[11] ? st->c_cc[11] : _POSIX_VDISABLE; st 228 compat/sunos/sunos_ioctl.c bt->c_cc[VREPRINT] = st->c_cc[12] ? st->c_cc[12] : _POSIX_VDISABLE; st 229 compat/sunos/sunos_ioctl.c bt->c_cc[VDISCARD] = st->c_cc[13] ? st->c_cc[13] : _POSIX_VDISABLE; st 230 compat/sunos/sunos_ioctl.c bt->c_cc[VWERASE] = st->c_cc[14] ? st->c_cc[14] : _POSIX_VDISABLE; st 231 compat/sunos/sunos_ioctl.c bt->c_cc[VLNEXT] = st->c_cc[15] ? st->c_cc[15] : _POSIX_VDISABLE; st 232 compat/sunos/sunos_ioctl.c bt->c_cc[VSTATUS] = st->c_cc[16] ? st->c_cc[16] : _POSIX_VDISABLE; st 241 compat/sunos/sunos_ioctl.c btios2stios(bt, st) st 243 compat/sunos/sunos_ioctl.c struct sunos_termios *st; st 263 compat/sunos/sunos_ioctl.c st->c_iflag = r; st 292 compat/sunos/sunos_ioctl.c st->c_oflag = r; st 317 compat/sunos/sunos_ioctl.c st->c_cflag = r; st 335 compat/sunos/sunos_ioctl.c st->c_lflag = r; st 339 compat/sunos/sunos_ioctl.c st->c_cflag |= s; st 341 compat/sunos/sunos_ioctl.c st->c_cc[0] = bt->c_cc[VINTR] != _POSIX_VDISABLE? bt->c_cc[VINTR]:0; st 342 compat/sunos/sunos_ioctl.c st->c_cc[1] = bt->c_cc[VQUIT] != _POSIX_VDISABLE? bt->c_cc[VQUIT]:0; st 343 compat/sunos/sunos_ioctl.c st->c_cc[2] = bt->c_cc[VERASE] != _POSIX_VDISABLE? bt->c_cc[VERASE]:0; st 344 compat/sunos/sunos_ioctl.c st->c_cc[3] = bt->c_cc[VKILL] != _POSIX_VDISABLE? bt->c_cc[VKILL]:0; st 345 compat/sunos/sunos_ioctl.c st->c_cc[4] = bt->c_cc[VEOF] != _POSIX_VDISABLE? bt->c_cc[VEOF]:0; st 346 compat/sunos/sunos_ioctl.c st->c_cc[5] = bt->c_cc[VEOL] != _POSIX_VDISABLE? bt->c_cc[VEOL]:0; st 347 compat/sunos/sunos_ioctl.c st->c_cc[6] = bt->c_cc[VEOL2] != _POSIX_VDISABLE? bt->c_cc[VEOL2]:0; st 348 compat/sunos/sunos_ioctl.c st->c_cc[7] = 0; st 350 compat/sunos/sunos_ioctl.c st->c_cc[8] = bt->c_cc[VSTART] != _POSIX_VDISABLE? bt->c_cc[VSTART]:0; st 351 compat/sunos/sunos_ioctl.c st->c_cc[9] = bt->c_cc[VSTOP] != _POSIX_VDISABLE? bt->c_cc[VSTOP]:0; st 352 compat/sunos/sunos_ioctl.c st->c_cc[10]= bt->c_cc[VSUSP] != _POSIX_VDISABLE? bt->c_cc[VSUSP]:0; st 353 compat/sunos/sunos_ioctl.c st->c_cc[11]= bt->c_cc[VDSUSP] != _POSIX_VDISABLE? bt->c_cc[VDSUSP]:0; st 354 compat/sunos/sunos_ioctl.c st->c_cc[12]= bt->c_cc[VREPRINT]!= _POSIX_VDISABLE? bt->c_cc[VREPRINT]:0; st 355 compat/sunos/sunos_ioctl.c st->c_cc[13]= bt->c_cc[VDISCARD]!= _POSIX_VDISABLE? bt->c_cc[VDISCARD]:0; st 356 compat/sunos/sunos_ioctl.c st->c_cc[14]= bt->c_cc[VWERASE] != _POSIX_VDISABLE? bt->c_cc[VWERASE]:0; st 357 compat/sunos/sunos_ioctl.c st->c_cc[15]= bt->c_cc[VLNEXT] != _POSIX_VDISABLE? bt->c_cc[VLNEXT]:0; st 358 compat/sunos/sunos_ioctl.c st->c_cc[16]= bt->c_cc[VSTATUS] != _POSIX_VDISABLE? bt->c_cc[VSTATUS]:0; st 362 compat/sunos/sunos_ioctl.c st->c_cc[4] = bt->c_cc[VMIN]; st 363 compat/sunos/sunos_ioctl.c st->c_cc[5] = bt->c_cc[VTIME]; st 366 compat/sunos/sunos_ioctl.c st->c_line = 0; st 527 compat/sunos/sunos_ioctl.c struct sunos_termio st; st 534 compat/sunos/sunos_ioctl.c stios2stio (&sts, &st); st 535 compat/sunos/sunos_ioctl.c error = copyout((caddr_t)&st, SCARG(uap, data), st 536 compat/sunos/sunos_ioctl.c sizeof (st)); st 551 compat/sunos/sunos_ioctl.c struct sunos_termio st; st 553 compat/sunos/sunos_ioctl.c if ((error = copyin(SCARG(uap, data), (caddr_t)&st, st 554 compat/sunos/sunos_ioctl.c sizeof (st))) != 0) st 566 compat/sunos/sunos_ioctl.c stio2stios(&st, &sts); st 985 compat/svr4/svr4_misc.c svr4_setinfo(p, st, s) st 987 compat/svr4/svr4_misc.c int st; st 1008 compat/svr4/svr4_misc.c if (WIFEXITED(st)) { st 1009 compat/svr4/svr4_misc.c i.svr4_si_status = WEXITSTATUS(st); st 1012 compat/svr4/svr4_misc.c else if (WIFSTOPPED(st)) { st 1013 compat/svr4/svr4_misc.c i.svr4_si_status = bsd_to_svr4_sig[WSTOPSIG(st)]; st 1020 compat/svr4/svr4_misc.c i.svr4_si_status = bsd_to_svr4_sig[WTERMSIG(st)]; st 1022 compat/svr4/svr4_misc.c if (WCOREDUMP(st)) st 210 compat/svr4/svr4_net.c struct svr4_strm *st; st 222 compat/svr4/svr4_net.c st = malloc(sizeof(struct svr4_strm), M_NETADDR, M_WAITOK); st 223 compat/svr4/svr4_net.c st->s_family = so->so_proto->pr_domain->dom_family; st 224 compat/svr4/svr4_net.c st->s_cmd = ~0; st 225 compat/svr4/svr4_net.c st->s_afd = -1; st 226 compat/svr4/svr4_net.c so->so_internal = st; st 228 compat/svr4/svr4_net.c return st; st 138 compat/svr4/svr4_socket.c svr4_add_socket(p, path, st) st 141 compat/svr4/svr4_socket.c struct stat *st; st 154 compat/svr4/svr4_socket.c e->dev = st->st_dev; st 155 compat/svr4/svr4_socket.c e->ino = st->st_ino; st 87 compat/svr4/svr4_stat.c bsd_to_svr4_stat(st, st4) st 88 compat/svr4/svr4_stat.c struct stat *st; st 92 compat/svr4/svr4_stat.c st4->st_dev = bsd_to_svr4_odev_t(st->st_dev); st 93 compat/svr4/svr4_stat.c st4->st_ino = st->st_ino; st 94 compat/svr4/svr4_stat.c st4->st_mode = BSD_TO_SVR4_MODE(st->st_mode); st 95 compat/svr4/svr4_stat.c st4->st_nlink = st->st_nlink; st 96 compat/svr4/svr4_stat.c st4->st_uid = st->st_uid; st 97 compat/svr4/svr4_stat.c st4->st_gid = st->st_gid; st 98 compat/svr4/svr4_stat.c st4->st_rdev = bsd_to_svr4_odev_t(st->st_rdev); st 99 compat/svr4/svr4_stat.c st4->st_size = st->st_size; st 100 compat/svr4/svr4_stat.c st4->st_atim = st->st_atimespec.tv_sec; st 101 compat/svr4/svr4_stat.c st4->st_mtim = st->st_mtimespec.tv_sec; st 102 compat/svr4/svr4_stat.c st4->st_ctim = st->st_ctimespec.tv_sec; st 108 compat/svr4/svr4_stat.c bsd_to_svr4_xstat(st, st4) st 109 compat/svr4/svr4_stat.c struct stat *st; st 113 compat/svr4/svr4_stat.c st4->st_dev = bsd_to_svr4_dev_t(st->st_dev); st 114 compat/svr4/svr4_stat.c st4->st_ino = st->st_ino; st 115 compat/svr4/svr4_stat.c st4->st_mode = BSD_TO_SVR4_MODE(st->st_mode); st 116 compat/svr4/svr4_stat.c st4->st_nlink = st->st_nlink; st 117 compat/svr4/svr4_stat.c st4->st_uid = st->st_uid; st 118 compat/svr4/svr4_stat.c st4->st_gid = st->st_gid; st 119 compat/svr4/svr4_stat.c st4->st_rdev = bsd_to_svr4_dev_t(st->st_rdev); st 120 compat/svr4/svr4_stat.c st4->st_size = st->st_size; st 121 compat/svr4/svr4_stat.c st4->st_atim = st->st_atimespec; st 122 compat/svr4/svr4_stat.c st4->st_mtim = st->st_mtimespec; st 123 compat/svr4/svr4_stat.c st4->st_ctim = st->st_ctimespec; st 124 compat/svr4/svr4_stat.c st4->st_blksize = st->st_blksize; st 125 compat/svr4/svr4_stat.c st4->st_blocks = st->st_blocks; st 130 compat/svr4/svr4_stat.c bsd_to_svr4_stat64(st, st4) st 131 compat/svr4/svr4_stat.c struct stat *st; st 135 compat/svr4/svr4_stat.c st4->st_dev = bsd_to_svr4_dev_t(st->st_dev); st 136 compat/svr4/svr4_stat.c st4->st_ino = st->st_ino; st 137 compat/svr4/svr4_stat.c st4->st_mode = BSD_TO_SVR4_MODE(st->st_mode); st 138 compat/svr4/svr4_stat.c st4->st_nlink = st->st_nlink; st 139 compat/svr4/svr4_stat.c st4->st_uid = st->st_uid; st 140 compat/svr4/svr4_stat.c st4->st_gid = st->st_gid; st 141 compat/svr4/svr4_stat.c st4->st_rdev = bsd_to_svr4_dev_t(st->st_rdev); st 142 compat/svr4/svr4_stat.c st4->st_size = st->st_size; st 143 compat/svr4/svr4_stat.c st4->st_atim = st->st_atimespec; st 144 compat/svr4/svr4_stat.c st4->st_mtim = st->st_mtimespec; st 145 compat/svr4/svr4_stat.c st4->st_ctim = st->st_ctimespec; st 146 compat/svr4/svr4_stat.c st4->st_blksize = st->st_blksize; st 147 compat/svr4/svr4_stat.c st4->st_blocks = st->st_blocks; st 167 compat/svr4/svr4_stat.c struct stat st; st 182 compat/svr4/svr4_stat.c if ((error = copyin(SCARG(&cup, ub), &st, sizeof st)) != 0) st 185 compat/svr4/svr4_stat.c bsd_to_svr4_stat(&st, &svr4_st); st 187 compat/svr4/svr4_stat.c if (S_ISSOCK(st.st_mode)) st 188 compat/svr4/svr4_stat.c (void) svr4_add_socket(p, SCARG(uap, path), &st); st 212 compat/svr4/svr4_stat.c struct stat st; st 226 compat/svr4/svr4_stat.c if ((error = copyin(SCARG(&cup, ub), &st, sizeof st)) != 0) st 229 compat/svr4/svr4_stat.c bsd_to_svr4_stat(&st, &svr4_st); st 231 compat/svr4/svr4_stat.c if (S_ISSOCK(st.st_mode)) st 232 compat/svr4/svr4_stat.c (void) svr4_add_socket(p, SCARG(uap, path), &st); st 256 compat/svr4/svr4_stat.c struct stat st; st 269 compat/svr4/svr4_stat.c if ((error = copyin(SCARG(&cup, sb), &st, sizeof st)) != 0) st 272 compat/svr4/svr4_stat.c bsd_to_svr4_stat(&st, &svr4_st); st 289 compat/svr4/svr4_stat.c struct stat st; st 303 compat/svr4/svr4_stat.c if ((error = copyin(SCARG(&cup, ub), &st, sizeof st)) != 0) st 306 compat/svr4/svr4_stat.c bsd_to_svr4_xstat(&st, &svr4_st); st 308 compat/svr4/svr4_stat.c if (S_ISSOCK(st.st_mode)) st 309 compat/svr4/svr4_stat.c (void) svr4_add_socket(p, SCARG(uap, path), &st); st 324 compat/svr4/svr4_stat.c struct stat st; st 338 compat/svr4/svr4_stat.c if ((error = copyin(SCARG(&cup, ub), &st, sizeof st)) != 0) st 341 compat/svr4/svr4_stat.c bsd_to_svr4_xstat(&st, &svr4_st); st 343 compat/svr4/svr4_stat.c if (S_ISSOCK(st.st_mode)) st 344 compat/svr4/svr4_stat.c (void) svr4_add_socket(p, SCARG(uap, path), &st); st 359 compat/svr4/svr4_stat.c struct stat st; st 372 compat/svr4/svr4_stat.c if ((error = copyin(SCARG(&cup, sb), &st, sizeof st)) != 0) st 375 compat/svr4/svr4_stat.c bsd_to_svr4_xstat(&st, &svr4_st); st 391 compat/svr4/svr4_stat.c struct stat st; st 404 compat/svr4/svr4_stat.c if ((error = copyin(SCARG(&cup, ub), &st, sizeof st)) != 0) st 407 compat/svr4/svr4_stat.c bsd_to_svr4_stat64(&st, &svr4_st); st 409 compat/svr4/svr4_stat.c if (S_ISSOCK(st.st_mode)) st 410 compat/svr4/svr4_stat.c (void) svr4_add_socket(p, SCARG(uap, path), &st); st 426 compat/svr4/svr4_stat.c struct stat st; st 439 compat/svr4/svr4_stat.c if ((error = copyin(SCARG(&cup, ub), &st, sizeof st)) != 0) st 442 compat/svr4/svr4_stat.c bsd_to_svr4_stat64(&st, &svr4_st); st 444 compat/svr4/svr4_stat.c if (S_ISSOCK(st.st_mode)) st 445 compat/svr4/svr4_stat.c (void) svr4_add_socket(p, SCARG(uap, path), &st); st 461 compat/svr4/svr4_stat.c struct stat st; st 474 compat/svr4/svr4_stat.c if ((error = copyin(SCARG(&cup, sb), &st, sizeof st)) != 0) st 477 compat/svr4/svr4_stat.c bsd_to_svr4_stat64(&st, &svr4_st); st 269 compat/svr4/svr4_stream.c struct stat st; st 283 compat/svr4/svr4_stream.c if ((error = copyin(SCARG(&la, ub), &st, sizeof(st))) != 0) st 289 compat/svr4/svr4_stream.c if ((st.st_mode & S_IFMT) != S_IFIFO) st 292 compat/svr4/svr4_stream.c if ((st.st_mode & ALLPERMS) != 0) st 386 compat/svr4/svr4_stream.c struct svr4_strm *st = svr4_stream_get(fp); st 389 compat/svr4/svr4_stream.c if (st == NULL) st 392 compat/svr4/svr4_stream.c pa->family = st->s_family; st 496 compat/svr4/svr4_stream.c struct svr4_strm *st = svr4_stream_get(fp); st 501 compat/svr4/svr4_stream.c if (st == NULL) st 527 compat/svr4/svr4_stream.c st->s_cmd = SVR4_TI__ACCEPT_WAIT; st 530 compat/svr4/svr4_stream.c switch (st->s_family) { st 544 compat/svr4/svr4_stream.c st->s_family)); st 742 compat/svr4/svr4_stream.c struct svr4_strm *st = svr4_stream_get(fp); st 752 compat/svr4/svr4_stream.c if (st == NULL) { st 768 compat/svr4/svr4_stream.c switch (st->s_family) { st 805 compat/svr4/svr4_stream.c st->s_family)); st 882 compat/svr4/svr4_stream.c struct svr4_strm *st = svr4_stream_get(fp); st 892 compat/svr4/svr4_stream.c if (st == NULL) st 897 compat/svr4/svr4_stream.c switch (st->s_family) { st 910 compat/svr4/svr4_stream.c st->s_family)); st 985 compat/svr4/svr4_stream.c switch (st->s_family) { st 1062 compat/svr4/svr4_stream.c struct svr4_strm *st = svr4_stream_get(fp); st 1067 compat/svr4/svr4_stream.c if (st == NULL) { st 1072 compat/svr4/svr4_stream.c if (st->s_afd == -1) { st 1082 compat/svr4/svr4_stream.c SCARG(&d2p, from) = st->s_afd; st 1087 compat/svr4/svr4_stream.c st->s_afd, fdi.fd, error)); st 1091 compat/svr4/svr4_stream.c SCARG(&clp, fd) = st->s_afd; st 1095 compat/svr4/svr4_stream.c st->s_afd, error)); st 1099 compat/svr4/svr4_stream.c st->s_afd = -1; st 1423 compat/svr4/svr4_stream.c struct svr4_strm *st; st 1453 compat/svr4/svr4_stream.c if ((st = svr4_stream_get(fp)) == NULL) { st 1469 compat/svr4/svr4_stream.c switch (st->s_family) { st 1479 compat/svr4/svr4_stream.c error = sain.sin_family != st->s_family; st 1505 compat/svr4/svr4_stream.c st->s_family)); st 1516 compat/svr4/svr4_stream.c switch (st->s_cmd = sc.cmd) { st 1580 compat/svr4/svr4_stream.c struct svr4_strm *st; st 1617 compat/svr4/svr4_stream.c if ((st = svr4_stream_get(fp)) == NULL) { st 1629 compat/svr4/svr4_stream.c switch (st->s_family) { st 1642 compat/svr4/svr4_stream.c st->s_family)); st 1655 compat/svr4/svr4_stream.c switch (st->s_cmd) { st 1668 compat/svr4/svr4_stream.c st->s_cmd = sc.cmd; st 1696 compat/svr4/svr4_stream.c switch (st->s_family) { st 1715 compat/svr4/svr4_stream.c st->s_cmd = sc.cmd; st 1730 compat/svr4/svr4_stream.c st->s_cmd = SVR4_TI__ACCEPT_WAIT; st 1747 compat/svr4/svr4_stream.c st->s_afd = *retval; st 1749 compat/svr4/svr4_stream.c DPRINTF(("getmsg: Accept fd = %d\n", st->s_afd)); st 1761 compat/svr4/svr4_stream.c switch (st->s_family) { st 1785 compat/svr4/svr4_stream.c st->s_cmd = SVR4_TI__ACCEPT_OK; st 1799 compat/svr4/svr4_stream.c switch (st->s_family) { st 1834 compat/svr4/svr4_stream.c switch (st->s_family) { st 1852 compat/svr4/svr4_stream.c st->s_cmd = sc.cmd; st 1856 compat/svr4/svr4_stream.c st->s_cmd = sc.cmd; st 1857 compat/svr4/svr4_stream.c DPRINTF(("getmsg: Unknown state %x\n", st->s_cmd)); st 85 compat/svr4/svr4_termios.c if (st->c_cc[__CONCAT3(SVR4_,a,b)] == SVR4_POSIX_VDISABLE) \ st 89 compat/svr4/svr4_termios.c st->c_cc[__CONCAT3(SVR4_,a,b)]; \ st 94 compat/svr4/svr4_termios.c if (st->f & __CONCAT3(SVR4_,a,b)) \ st 103 compat/svr4/svr4_termios.c switch (st->f & __CONCAT3(SVR4_,a,b)) { \ st 112 compat/svr4/svr4_termios.c switch (st->f & __CONCAT3(SVR4_,a,b)) { \ st 123 compat/svr4/svr4_termios.c st->c_cc[__CONCAT3(SVR4_,a,b)] = SVR4_POSIX_VDISABLE; \ st 125 compat/svr4/svr4_termios.c st->c_cc[__CONCAT3(SVR4_,a,b)] = bt->c_cc[__CONCAT(a,b)] st 129 compat/svr4/svr4_termios.c st->f |= __CONCAT3(SVR4_,a,b); \ st 131 compat/svr4/svr4_termios.c st->f &= ~__CONCAT3(SVR4_,a,b) st 134 compat/svr4/svr4_termios.c st->f &= ~__CONCAT3(SVR4_,a,b); \ st 136 compat/svr4/svr4_termios.c case __CONCAT(c1,t1): st->f |= __CONCAT3(SVR4_,c1,t1); break; \ st 137 compat/svr4/svr4_termios.c case __CONCAT(c2,t2): st->f |= __CONCAT3(SVR4_,c2,t2); break; \ st 141 compat/svr4/svr4_termios.c st->f &= ~__CONCAT3(SVR4_,a,b); \ st 143 compat/svr4/svr4_termios.c case __CONCAT(c1,t1): st->f |= __CONCAT3(SVR4_,c1,t1); break; \ st 144 compat/svr4/svr4_termios.c case __CONCAT(c2,t2): st->f |= __CONCAT3(SVR4_,c2,t2); break; \ st 145 compat/svr4/svr4_termios.c case __CONCAT(c3,t3): st->f |= __CONCAT3(SVR4_,c3,t3); break; \ st 146 compat/svr4/svr4_termios.c case __CONCAT(c4,t4): st->f |= __CONCAT3(SVR4_,c4,t4); break; \ st 151 compat/svr4/svr4_termios.c print_svr4_termios(st) st 152 compat/svr4/svr4_termios.c const struct svr4_termios *st; st 156 compat/svr4/svr4_termios.c st->c_iflag, st->c_oflag, st->c_cflag, st->c_lflag); st 159 compat/svr4/svr4_termios.c uprintf("%o ", st->c_cc[i]); st 258 compat/svr4/svr4_termios.c svr4_to_bsd_termios(st, bt, new) st 259 compat/svr4/svr4_termios.c const struct svr4_termios *st; st 268 compat/svr4/svr4_termios.c if (st->c_lflag & ICANON) { st 276 compat/svr4/svr4_termios.c bt->c_cc[VMIN] = st->c_cc[SVR4_VMIN]; st 277 compat/svr4/svr4_termios.c bt->c_cc[VTIME] = st->c_cc[SVR4_VTIME]; st 327 compat/svr4/svr4_termios.c if ((st->c_oflag & SVR4_XTABS) == SVR4_XTABS) st 338 compat/svr4/svr4_termios.c bt->c_ospeed = svr4_to_bsd_speed(st->c_cflag, SVR4_CBAUD); st 350 compat/svr4/svr4_termios.c bt->c_ispeed = svr4_to_bsd_speed(st->c_cflag, SVR4_CIBAUD); st 373 compat/svr4/svr4_termios.c bsd_to_svr4_termios(bt, st) st 375 compat/svr4/svr4_termios.c struct svr4_termios *st; st 390 compat/svr4/svr4_termios.c st->c_cc[SVR4_VMIN] = bt->c_cc[VMIN]; st 391 compat/svr4/svr4_termios.c st->c_cc[SVR4_VTIME] = bt->c_cc[VTIME]; st 446 compat/svr4/svr4_termios.c st->c_cflag &= ~SVR4_CBAUD; st 447 compat/svr4/svr4_termios.c st->c_cflag |= bsd_to_svr4_speed(bt->c_ospeed, SVR4_CBAUD); st 459 compat/svr4/svr4_termios.c st->c_cflag &= ~SVR4_CIBAUD; st 460 compat/svr4/svr4_termios.c st->c_cflag |= bsd_to_svr4_speed(bt->c_ispeed, SVR4_CIBAUD); st 528 compat/svr4/svr4_termios.c struct svr4_termios st; st 542 compat/svr4/svr4_termios.c bzero(&st,sizeof(st)); st 543 compat/svr4/svr4_termios.c bsd_to_svr4_termios(&bt, &st); st 548 compat/svr4/svr4_termios.c print_svr4_termios(&st); st 552 compat/svr4/svr4_termios.c svr4_termios_to_termio(&st, &t); st 556 compat/svr4/svr4_termios.c return (copyout(&st, data, sizeof(st))); st 573 compat/svr4/svr4_termios.c if ((error = copyin(data, &st, sizeof(st))) != 0) st 584 compat/svr4/svr4_termios.c bsd_to_svr4_termios(&bt, &st); st 585 compat/svr4/svr4_termios.c svr4_termio_to_termios(&t, &st); st 593 compat/svr4/svr4_termios.c svr4_to_bsd_termios(&st, &bt, new); st 615 compat/svr4/svr4_termios.c print_svr4_termios(&st); st 54 compat/svr4/svr4_ttold.c static void svr4_tchars_to_bsd_tchars(const struct svr4_tchars *st, st 57 compat/svr4/svr4_ttold.c struct svr4_tchars *st); st 83 compat/svr4/svr4_ttold.c print_svr4_tchars(str, st) st 85 compat/svr4/svr4_ttold.c struct svr4_tchars *st; st 87 compat/svr4/svr4_ttold.c uprintf("%s\nintrc=%o quitc=%o ", str, st->t_intrc, st->t_quitc); st 88 compat/svr4/svr4_ttold.c uprintf("startc=%o stopc=%o eofc=%o brkc=%o\n", st->t_startc, st 89 compat/svr4/svr4_ttold.c st->t_stopc, st->t_eofc, st->t_brkc); st 104 compat/svr4/svr4_ttold.c svr4_tchars_to_bsd_tchars(st, bt) st 105 compat/svr4/svr4_ttold.c const struct svr4_tchars *st; st 108 compat/svr4/svr4_ttold.c bt->t_intrc = st->t_intrc; st 109 compat/svr4/svr4_ttold.c bt->t_quitc = st->t_quitc; st 110 compat/svr4/svr4_ttold.c bt->t_startc = st->t_startc; st 111 compat/svr4/svr4_ttold.c bt->t_stopc = st->t_stopc; st 112 compat/svr4/svr4_ttold.c bt->t_eofc = st->t_eofc; st 113 compat/svr4/svr4_ttold.c bt->t_brkc = st->t_brkc; st 118 compat/svr4/svr4_ttold.c bsd_tchars_to_svr4_tchars(bt, st) st 120 compat/svr4/svr4_ttold.c struct svr4_tchars *st; st 122 compat/svr4/svr4_ttold.c st->t_intrc = bt->t_intrc; st 123 compat/svr4/svr4_ttold.c st->t_quitc = bt->t_quitc; st 124 compat/svr4/svr4_ttold.c st->t_startc = bt->t_startc; st 125 compat/svr4/svr4_ttold.c st->t_stopc = bt->t_stopc; st 126 compat/svr4/svr4_ttold.c st->t_eofc = bt->t_eofc; st 127 compat/svr4/svr4_ttold.c st->t_brkc = bt->t_brkc; st 277 compat/svr4/svr4_ttold.c struct svr4_tchars st; st 283 compat/svr4/svr4_ttold.c bsd_tchars_to_svr4_tchars(&bt, &st); st 285 compat/svr4/svr4_ttold.c print_svr4_tchars("SVR4_TIOCGETC", &st); st 287 compat/svr4/svr4_ttold.c return copyout(&st, data, sizeof(st)); st 293 compat/svr4/svr4_ttold.c struct svr4_tchars st; st 295 compat/svr4/svr4_ttold.c if ((error = copyin(data, &st, sizeof(st))) != 0) st 298 compat/svr4/svr4_ttold.c svr4_tchars_to_bsd_tchars(&st, &bt); st 300 compat/svr4/svr4_ttold.c print_svr4_tchars("SVR4_TIOCSETC", &st); st 132 compat/ultrix/ultrix_ioctl.c stios2btios(st, bt) st 133 compat/ultrix/ultrix_ioctl.c struct emul_termios *st; st 138 compat/ultrix/ultrix_ioctl.c l = st->c_iflag; st 155 compat/ultrix/ultrix_ioctl.c l = st->c_oflag; st 184 compat/ultrix/ultrix_ioctl.c l = st->c_cflag; st 211 compat/ultrix/ultrix_ioctl.c l = st->c_lflag; st 229 compat/ultrix/ultrix_ioctl.c bt->c_cc[VINTR] = EMUL_TO_NATIVE_CC(st->c_cc[0]); st 230 compat/ultrix/ultrix_ioctl.c bt->c_cc[VQUIT] = EMUL_TO_NATIVE_CC(st->c_cc[1]); st 231 compat/ultrix/ultrix_ioctl.c bt->c_cc[VERASE] = EMUL_TO_NATIVE_CC(st->c_cc[2]); st 232 compat/ultrix/ultrix_ioctl.c bt->c_cc[VKILL] = EMUL_TO_NATIVE_CC(st->c_cc[3]); st 233 compat/ultrix/ultrix_ioctl.c bt->c_cc[VEOF] = EMUL_TO_NATIVE_CC(st->c_cc[4]); st 234 compat/ultrix/ultrix_ioctl.c bt->c_cc[VEOL] = EMUL_TO_NATIVE_CC(st->c_cc[5]); st 235 compat/ultrix/ultrix_ioctl.c bt->c_cc[VEOL2] = EMUL_TO_NATIVE_CC(st->c_cc[6]); st 238 compat/ultrix/ultrix_ioctl.c bt->c_cc[VSTART] = EMUL_TO_NATIVE_CC(st->c_cc[10]); st 239 compat/ultrix/ultrix_ioctl.c bt->c_cc[VSTOP] = EMUL_TO_NATIVE_CC(st->c_cc[11]); st 240 compat/ultrix/ultrix_ioctl.c bt->c_cc[VSUSP] = EMUL_TO_NATIVE_CC(st->c_cc[12]); st 241 compat/ultrix/ultrix_ioctl.c bt->c_cc[VDSUSP] = EMUL_TO_NATIVE_CC(st->c_cc[13]); st 242 compat/ultrix/ultrix_ioctl.c bt->c_cc[VREPRINT] = EMUL_TO_NATIVE_CC(st->c_cc[14]); st 243 compat/ultrix/ultrix_ioctl.c bt->c_cc[VDISCARD] = EMUL_TO_NATIVE_CC(st->c_cc[15]); st 244 compat/ultrix/ultrix_ioctl.c bt->c_cc[VWERASE] = EMUL_TO_NATIVE_CC(st->c_cc[16]); st 245 compat/ultrix/ultrix_ioctl.c bt->c_cc[VLNEXT] = EMUL_TO_NATIVE_CC(st->c_cc[17]); st 246 compat/ultrix/ultrix_ioctl.c bt->c_cc[VSTATUS] = EMUL_TO_NATIVE_CC(st->c_cc[18]); st 250 compat/ultrix/ultrix_ioctl.c bt->c_cc[VMIN] = EMUL_TO_NATIVE_CC(st->c_cc[8]); st 251 compat/ultrix/ultrix_ioctl.c bt->c_cc[VTIME] = EMUL_TO_NATIVE_CC(st->c_cc[9]); st 264 compat/ultrix/ultrix_ioctl.c btios2stios(bt, st) st 266 compat/ultrix/ultrix_ioctl.c struct emul_termios *st; st 285 compat/ultrix/ultrix_ioctl.c st->c_iflag = r; st 314 compat/ultrix/ultrix_ioctl.c st->c_oflag = r; st 339 compat/ultrix/ultrix_ioctl.c st->c_cflag = r; st 357 compat/ultrix/ultrix_ioctl.c st->c_lflag = r; st 361 compat/ultrix/ultrix_ioctl.c st->c_cflag |= l; st 363 compat/ultrix/ultrix_ioctl.c st->c_cc[0] = NATIVE_TO_EMUL_CC(bt->c_cc[VINTR]); st 364 compat/ultrix/ultrix_ioctl.c st->c_cc[1] = NATIVE_TO_EMUL_CC(bt->c_cc[VQUIT]); st 365 compat/ultrix/ultrix_ioctl.c st->c_cc[2] = NATIVE_TO_EMUL_CC(bt->c_cc[VERASE]); st 366 compat/ultrix/ultrix_ioctl.c st->c_cc[3] = NATIVE_TO_EMUL_CC(bt->c_cc[VKILL]); st 367 compat/ultrix/ultrix_ioctl.c st->c_cc[4] = NATIVE_TO_EMUL_CC(bt->c_cc[VEOF]); st 368 compat/ultrix/ultrix_ioctl.c st->c_cc[5] = NATIVE_TO_EMUL_CC(bt->c_cc[VEOL]); st 369 compat/ultrix/ultrix_ioctl.c st->c_cc[6] = NATIVE_TO_EMUL_CC(bt->c_cc[VEOL2]); st 374 compat/ultrix/ultrix_ioctl.c st->c_cc[7] = NATIVE_TO_EMUL_CC(bt->c_cc[VSWTCH]); st 376 compat/ultrix/ultrix_ioctl.c st->c_cc[7] = 0; st 378 compat/ultrix/ultrix_ioctl.c st->c_cc[10] = NATIVE_TO_EMUL_CC(bt->c_cc[VSTART]); st 379 compat/ultrix/ultrix_ioctl.c st->c_cc[11] = NATIVE_TO_EMUL_CC(bt->c_cc[VSTOP]); st 380 compat/ultrix/ultrix_ioctl.c st->c_cc[12]= NATIVE_TO_EMUL_CC(bt->c_cc[VSUSP]); st 381 compat/ultrix/ultrix_ioctl.c st->c_cc[13]= NATIVE_TO_EMUL_CC(bt->c_cc[VDSUSP]); st 382 compat/ultrix/ultrix_ioctl.c st->c_cc[14]= NATIVE_TO_EMUL_CC(bt->c_cc[VREPRINT]); st 383 compat/ultrix/ultrix_ioctl.c st->c_cc[15]= NATIVE_TO_EMUL_CC(bt->c_cc[VDISCARD]); st 384 compat/ultrix/ultrix_ioctl.c st->c_cc[16]= NATIVE_TO_EMUL_CC(bt->c_cc[VWERASE]); st 385 compat/ultrix/ultrix_ioctl.c st->c_cc[17]= NATIVE_TO_EMUL_CC(bt->c_cc[VLNEXT]); st 386 compat/ultrix/ultrix_ioctl.c st->c_cc[18]= NATIVE_TO_EMUL_CC(bt->c_cc[VSTATUS]); st 389 compat/ultrix/ultrix_ioctl.c st->c_cc[8]= NATIVE_TO_EMUL_CC(bt->c_cc[VMIN]); st 390 compat/ultrix/ultrix_ioctl.c st->c_cc[9]= NATIVE_TO_EMUL_CC(bt->c_cc[VTIME]); st 394 compat/ultrix/ultrix_ioctl.c st->c_cc[4] = bt->c_cc[VMIN]; st 395 compat/ultrix/ultrix_ioctl.c st->c_cc[5] = bt->c_cc[VTIME]; st 400 compat/ultrix/ultrix_ioctl.c st->c_line = 0; /* 4.3bsd "old" line discipline */ st 402 compat/ultrix/ultrix_ioctl.c st->c_line = 2; /* 4.3bsd "new" line discipline */ st 553 compat/ultrix/ultrix_ioctl.c struct ultrix_termio st; st 560 compat/ultrix/ultrix_ioctl.c stios2stio (&sts, &st); st 561 compat/ultrix/ultrix_ioctl.c error = copyout((caddr_t)&st, SCARG(uap, data), st 562 compat/ultrix/ultrix_ioctl.c sizeof (st)); st 578 compat/ultrix/ultrix_ioctl.c struct ultrix_termio st; st 580 compat/ultrix/ultrix_ioctl.c if ((error = copyin(SCARG(uap, data), (caddr_t)&st, st 581 compat/ultrix/ultrix_ioctl.c sizeof (st))) != 0) st 593 compat/ultrix/ultrix_ioctl.c stio2stios(&st, &sts); st 717 crypto/rijndael.c #define PUTU32(ct, st) { (ct)[0] = (u8)((st) >> 24); (ct)[1] = (u8)((st) >> 16); (ct)[2] = (u8)((st) >> 8); (ct)[3] = (u8)(st); } st 879 dev/audio.c int st; st 887 dev/audio.c st = tsleep(chan, PWAIT | PCATCH, label, timo); st 890 dev/audio.c if (st != 0) st 891 dev/audio.c printf("audio_sleep: woke up st=%d\n", st); st 893 dev/audio.c return (st); st 324 dev/cardbus/cardbus_map.c int st = 1; st 347 dev/cardbus/cardbus_map.c return (st); st 915 dev/i2o/iop.c struct i2o_status *st = (struct i2o_status *)sc->sc_scr; st 926 dev/i2o/iop.c mf.length = sizeof(*st); st 928 dev/i2o/iop.c bzero(st, sizeof(*st)); st 929 dev/i2o/iop.c bus_dmamap_sync(sc->sc_dmat, sc->sc_scr_dmamap, 0, sizeof(*st), st 938 dev/i2o/iop.c sizeof(*st), BUS_DMASYNC_POSTREAD), st->syncbyte == 0xff)); st 940 dev/i2o/iop.c if (st->syncbyte != 0xff) st 943 dev/i2o/iop.c bcopy(st, &sc->sc_status, sizeof(sc->sc_status)); st 193 dev/ic/ar5210.c ar5k_ar5210_attach(u_int16_t device, void *sc, bus_space_tag_t st, st 197 dev/ic/ar5211.c ar5k_ar5211_attach(u_int16_t device, void *sc, bus_space_tag_t st, st 194 dev/ic/ar5212.c ar5k_ar5212_attach(u_int16_t device, void *sc, bus_space_tag_t st, st 150 dev/ic/ar5xxx.c ath_hal_attach(u_int16_t device, void *arg, bus_space_tag_t st, st 186 dev/ic/ar5xxx.c hal->ah_st = st; st 240 dev/ic/ar5xxx.c if ((attach)(device, hal, st, sh, status) == NULL) st 130 dev/ic/smc83c170.c bus_space_tag_t st = sc->sc_st; st 231 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_GENCTL, 0); st 963 dev/ic/smc83c170.c bus_space_tag_t st = sc->sc_st; st 983 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_TXTEST, 0); st 995 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_GENCTL, genctl); st 1000 dev/ic/smc83c170.c reg0 = bus_space_read_4(st, sh, EPIC_NVCTL); st 1001 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_NVCTL, reg0 | NVCTL_GPIO1 | NVCTL_GPOE1); st 1002 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_MIICFG, MIICFG_ENASER); st 1003 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_GENCTL, genctl | GENCTL_RESET_PHY); st 1005 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_GENCTL, genctl); st 1007 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_NVCTL, reg0); st 1013 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_LAN0, reg0); st 1015 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_LAN1, reg0); st 1017 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_LAN2, reg0); st 1023 dev/ic/smc83c170.c reg0 = bus_space_read_4(st, sh, EPIC_RXCON) & st 1028 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_RXCON, reg0); st 1077 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_INTMASK, INTMASK); st 1078 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_GENCTL, genctl | GENCTL_INTENA); st 1083 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_PTCDAR, st 1085 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_PRCDAR, st 1091 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_COMMAND, st 1142 dev/ic/smc83c170.c bus_space_tag_t st = sc->sc_st; st 1168 dev/ic/smc83c170.c reg = bus_space_read_4(st, sh, EPIC_GENCTL); st 1169 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_GENCTL, reg & ~GENCTL_INTENA); st 1170 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_INTMASK, 0); st 1175 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_COMMAND, COMMAND_STOP_RDMA | st 1200 dev/ic/smc83c170.c bus_space_tag_t st = sc->sc_st; st 1205 dev/ic/smc83c170.c #define EEPROM_WAIT_READY(st, sh) \ st 1206 dev/ic/smc83c170.c while ((bus_space_read_4((st), (sh), EPIC_EECTL) & EECTL_EERDY) == 0) \ st 1212 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_EECTL, EECTL_ENABLE); st 1213 dev/ic/smc83c170.c EEPROM_WAIT_READY(st, sh); st 1217 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_EECTL, EECTL_ENABLE|EECTL_EECS); st 1218 dev/ic/smc83c170.c EEPROM_WAIT_READY(st, sh); st 1225 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_EECTL, reg); st 1226 dev/ic/smc83c170.c EEPROM_WAIT_READY(st, sh); st 1227 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_EECTL, reg|EECTL_EESK); st 1228 dev/ic/smc83c170.c EEPROM_WAIT_READY(st, sh); st 1229 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_EECTL, reg); st 1230 dev/ic/smc83c170.c EEPROM_WAIT_READY(st, sh); st 1238 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_EECTL, reg); st 1239 dev/ic/smc83c170.c EEPROM_WAIT_READY(st, sh); st 1240 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_EECTL, reg|EECTL_EESK); st 1241 dev/ic/smc83c170.c EEPROM_WAIT_READY(st, sh); st 1242 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_EECTL, reg); st 1243 dev/ic/smc83c170.c EEPROM_WAIT_READY(st, sh); st 1250 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_EECTL, reg|EECTL_EESK); st 1251 dev/ic/smc83c170.c EEPROM_WAIT_READY(st, sh); st 1252 dev/ic/smc83c170.c if (bus_space_read_4(st, sh, EPIC_EECTL) & EECTL_EEDO) st 1254 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_EECTL, reg); st 1255 dev/ic/smc83c170.c EEPROM_WAIT_READY(st, sh); st 1259 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_EECTL, EECTL_ENABLE); st 1260 dev/ic/smc83c170.c EEPROM_WAIT_READY(st, sh); st 1266 dev/ic/smc83c170.c bus_space_write_4(st, sh, EPIC_EECTL, 0); st 58 dev/ic/twereg.h #define TWE_MAJV(st) (((st) >> 28) & 0xf) st 60 dev/ic/twereg.h #define TWE_MINV(st) (((st) >> 24) & 0xf) st 932 dev/ic/vga.c int ul, we, p, st; st 945 dev/ic/vga.c st = (scr->pcs.dispoffset - ul + we) % we; st 948 dev/ic/vga.c if (p > st - margin) st 949 dev/ic/vga.c p = st; st 261 dev/isa/gscsio.c u_int8_t st; st 265 dev/isa/gscsio.c st = ACB_READ(GSCSIO_ACB_ST); st 266 dev/isa/gscsio.c if (st & GSCSIO_ACB_ST_BER) { st 272 dev/isa/gscsio.c if (st & GSCSIO_ACB_ST_NEGACK) { st 280 dev/isa/gscsio.c if ((st & bits) == bits) st 284 dev/isa/gscsio.c if ((st & bits) != bits) { st 298 dev/isa/gscsio.c u_int8_t st, ctl; st 301 dev/isa/gscsio.c st = ACB_READ(GSCSIO_ACB_ST); st 302 dev/isa/gscsio.c st |= GSCSIO_ACB_ST_MASTER | GSCSIO_ACB_ST_NEGACK | GSCSIO_ACB_ST_BER; st 303 dev/isa/gscsio.c ACB_WRITE(GSCSIO_ACB_ST, st); st 718 dev/pci/ahc_pci.c bus_space_tag_t st, iot; st 801 dev/pci/ahc_pci.c st = iot; st 805 dev/pci/ahc_pci.c st = memt; st 812 dev/pci/ahc_pci.c ahc->tag = st; st 263 dev/pci/alipm.c u_int8_t ctl, st; st 282 dev/pci/alipm.c st = bus_space_read_1(sc->sc_iot, sc->sc_ioh, ALIPM_SMB_HS); st 285 dev/pci/alipm.c if (st & (ALIPM_SMB_HS_IDLE | ALIPM_SMB_HS_FAILED | st 292 dev/pci/alipm.c st, ALIPM_SMB_HS_BITS); st 295 dev/pci/alipm.c if (st & (ALIPM_SMB_HS_FAILED | st 298 dev/pci/alipm.c st, ALIPM_SMB_HS_BITS); st 343 dev/pci/alipm.c st = bus_space_read_1(sc->sc_iot, sc->sc_ioh, ALIPM_SMB_HS); st 346 dev/pci/alipm.c if (st & (ALIPM_SMB_HS_IDLE | ALIPM_SMB_HS_FAILED | st 353 dev/pci/alipm.c sc->sc_dev.dv_xname, st, ALIPM_SMB_HS_BITS); st 358 dev/pci/alipm.c st = bus_space_read_1(sc->sc_iot, sc->sc_ioh, ALIPM_SMB_HS); st 365 dev/pci/alipm.c if ((st & ALIPM_SMB_HS_DONE) == 0) { st 370 dev/pci/alipm.c st = bus_space_read_1(sc->sc_iot, sc->sc_ioh, ALIPM_SMB_HS); st 373 dev/pci/alipm.c if ((st & ALIPM_SMB_HS_FAILED) == 0) st 375 dev/pci/alipm.c st, ALIPM_SMB_HS_BITS); st 379 dev/pci/alipm.c if (st & (ALIPM_SMB_HS_FAILED | st 404 dev/pci/alipm.c bus_space_write_1(sc->sc_iot, sc->sc_ioh, ALIPM_SMB_HS, st); st 230 dev/pci/amdiic.c u_int8_t st; st 233 dev/pci/amdiic.c st = bus_space_read_1(sc->sc_iot, sc->sc_ioh, st 235 dev/pci/amdiic.c if (output && (st & AMD8111_SMB_SC_ST_OBF)) st 237 dev/pci/amdiic.c if (!output && (st & AMD8111_SMB_SC_ST_IBF) == 0) st 242 dev/pci/amdiic.c (output ? "output" : "input"), st)); st 275 dev/pci/amdiic.c u_int8_t proto, st; st 336 dev/pci/amdiic.c st = amdiic_read(sc, AMD8111_SMB_STAT); st 337 dev/pci/amdiic.c if (st != 0) st 341 dev/pci/amdiic.c if (st == 0) { st 364 dev/pci/amdiic.c int st; st 369 dev/pci/amdiic.c if ((st = amdiic_read(sc, AMD8111_SMB_STAT)) == -1) st 371 dev/pci/amdiic.c if (st == 0) st 375 dev/pci/amdiic.c DPRINTF(("%s: intr: st 0x%02x\n", sc->sc_dev.dv_xname, st)); st 378 dev/pci/amdiic.c if ((st & AMD8111_SMB_STAT_MASK) != 0) { st 383 dev/pci/amdiic.c if (st & AMD8111_SMB_STAT_DONE) { st 387 dev/pci/amdpm.c u_int16_t st, ctl, data; st 396 dev/pci/amdpm.c st = bus_space_read_2(sc->sc_iot, sc->sc_i2c_ioh, AMDPM_SMBSTAT); st 397 dev/pci/amdpm.c if (!(st & AMDPM_SMBSTAT_BSY)) st 401 dev/pci/amdpm.c DPRINTF("%s: exec: st 0x%b\n", sc->sc_dev.dv_xname, st, st 403 dev/pci/amdpm.c if (st & AMDPM_SMBSTAT_BSY) st 461 dev/pci/amdpm.c st = bus_space_read_2(sc->sc_iot, sc->sc_i2c_ioh, st 463 dev/pci/amdpm.c if ((st & AMDPM_SMBSTAT_HBSY) == 0) st 467 dev/pci/amdpm.c if (st & AMDPM_SMBSTAT_HBSY) st 488 dev/pci/amdpm.c st, AMDPM_SMBSTAT_BITS); st 492 dev/pci/amdpm.c st = bus_space_read_2(sc->sc_iot, sc->sc_i2c_ioh, AMDPM_SMBSTAT); st 493 dev/pci/amdpm.c if ((st & AMDPM_SMBSTAT_ABRT) == 0) st 495 dev/pci/amdpm.c sc->sc_dev.dv_xname, st, AMDPM_SMBSTAT_BITS); st 496 dev/pci/amdpm.c bus_space_write_2(sc->sc_iot, sc->sc_i2c_ioh, AMDPM_SMBSTAT, st); st 504 dev/pci/amdpm.c u_int16_t st, data; st 509 dev/pci/amdpm.c st = bus_space_read_2(sc->sc_iot, sc->sc_i2c_ioh, AMDPM_SMBSTAT); st 510 dev/pci/amdpm.c if ((st & AMDPM_SMBSTAT_HBSY) != 0 || (st & (AMDPM_SMBSTAT_ABRT | st 517 dev/pci/amdpm.c DPRINTF("%s: intr: st 0x%b\n", sc->sc_dev.dv_xname, st, st 521 dev/pci/amdpm.c bus_space_write_2(sc->sc_iot, sc->sc_i2c_ioh, AMDPM_SMBSTAT, st); st 524 dev/pci/amdpm.c if (st & (AMDPM_SMBSTAT_COL | AMDPM_SMBSTAT_PRERR | st 530 dev/pci/amdpm.c if (st & AMDPM_SMBSTAT_CYC) { st 201 dev/pci/ichiic.c u_int8_t ctl, st; st 210 dev/pci/ichiic.c st = bus_space_read_1(sc->sc_iot, sc->sc_ioh, ICH_SMB_HS); st 211 dev/pci/ichiic.c if (!(st & ICH_SMB_HS_BUSY)) st 215 dev/pci/ichiic.c DPRINTF(("%s: exec: st 0x%b\n", sc->sc_dev.dv_xname, st, st 217 dev/pci/ichiic.c if (st & ICH_SMB_HS_BUSY) st 273 dev/pci/ichiic.c st = bus_space_read_1(sc->sc_iot, sc->sc_ioh, st 275 dev/pci/ichiic.c if ((st & ICH_SMB_HS_BUSY) == 0) st 279 dev/pci/ichiic.c if (st & ICH_SMB_HS_BUSY) st 300 dev/pci/ichiic.c st, ICH_SMB_HS_BITS); st 304 dev/pci/ichiic.c st = bus_space_read_1(sc->sc_iot, sc->sc_ioh, ICH_SMB_HS); st 305 dev/pci/ichiic.c if ((st & ICH_SMB_HS_FAILED) == 0) st 307 dev/pci/ichiic.c sc->sc_dev.dv_xname, st, ICH_SMB_HS_BITS); st 308 dev/pci/ichiic.c bus_space_write_1(sc->sc_iot, sc->sc_ioh, ICH_SMB_HS, st); st 316 dev/pci/ichiic.c u_int8_t st; st 321 dev/pci/ichiic.c st = bus_space_read_1(sc->sc_iot, sc->sc_ioh, ICH_SMB_HS); st 322 dev/pci/ichiic.c if ((st & ICH_SMB_HS_BUSY) != 0 || (st & (ICH_SMB_HS_INTR | st 328 dev/pci/ichiic.c DPRINTF(("%s: intr st 0x%b\n", sc->sc_dev.dv_xname, st, st 332 dev/pci/ichiic.c bus_space_write_1(sc->sc_iot, sc->sc_ioh, ICH_SMB_HS, st); st 335 dev/pci/ichiic.c if (st & (ICH_SMB_HS_DEVERR | ICH_SMB_HS_BUSERR | ICH_SMB_HS_FAILED)) { st 340 dev/pci/ichiic.c if (st & ICH_SMB_HS_INTR) { st 400 dev/pci/isp_pci.c bus_space_tag_t st, iot, memt; st 415 dev/pci/isp_pci.c st = memt; st 423 dev/pci/isp_pci.c st = iot; st 433 dev/pci/isp_pci.c st = iot; st 442 dev/pci/isp_pci.c st = memt; st 456 dev/pci/isp_pci.c pcs->pci_st = st; st 1564 dev/pci/musycc.c e->st = ec->mc_st; st 1574 dev/pci/musycc.c value = bus_space_read_1(e->st, e->sh, offset << 2); st 1575 dev/pci/musycc.c bus_space_barrier(e->st, e->sh, 0, e->size, st 1583 dev/pci/musycc.c bus_space_write_1(e->st, e->sh, offset << 2, value); st 1584 dev/pci/musycc.c bus_space_barrier(e->st, e->sh, 0, e->size, st 136 dev/pci/musyccvar.h bus_space_tag_t st; st 292 dev/pci/neo.c bus_space_tag_t st = sc->regiot; st 297 dev/pci/neo.c return bus_space_read_1(st, sh, regno); st 299 dev/pci/neo.c return bus_space_read_2(st, sh, regno); st 301 dev/pci/neo.c return bus_space_read_4(st, sh, regno); st 310 dev/pci/neo.c bus_space_tag_t st = sc->regiot; st 315 dev/pci/neo.c bus_space_write_1(st, sh, regno, data); st 318 dev/pci/neo.c bus_space_write_2(st, sh, regno, data); st 321 dev/pci/neo.c bus_space_write_4(st, sh, regno, data); st 329 dev/pci/neo.c bus_space_tag_t st = sc->bufiot; st 334 dev/pci/neo.c return bus_space_read_1(st, sh, regno); st 336 dev/pci/neo.c return bus_space_read_2(st, sh, regno); st 338 dev/pci/neo.c return bus_space_read_4(st, sh, regno); st 347 dev/pci/neo.c bus_space_tag_t st = sc->bufiot; st 352 dev/pci/neo.c bus_space_write_1(st, sh, regno, data); st 355 dev/pci/neo.c bus_space_write_2(st, sh, regno, data); st 358 dev/pci/neo.c bus_space_write_4(st, sh, regno, data); st 5877 dev/pci/pciide.c pcireg_t interface, st, mode; st 5881 dev/pci/pciide.c st = pci_conf_read(sc->sc_pc, sc->sc_tag, PDC2xx_STATE); st 5883 dev/pci/pciide.c st), DEBUG_PROBE); st 5888 dev/pci/pciide.c st &= ~PDC2xx_STATE_IDERAID; st 5895 dev/pci/pciide.c if (PDC_IS_268(sc) || (st & PDC2xx_STATE_NATIVE)) st 5993 dev/pci/pciide.c if (!PDC_IS_268(sc) && (st & (PDC_IS_262(sc) ? st 6013 dev/pci/pciide.c st &= ~(PDC_IS_262(sc) ? st 6024 dev/pci/pciide.c "0x%x\n", st), DEBUG_PROBE); st 6025 dev/pci/pciide.c pci_conf_write(sc->sc_pc, sc->sc_tag, PDC2xx_STATE, st); st 6035 dev/pci/pciide.c pcireg_t mode, st; st 6054 dev/pci/pciide.c st = pci_conf_read(sc->sc_pc, sc->sc_tag, PDC2xx_STATE); st 6056 dev/pci/pciide.c if ((st & PDC262_STATE_80P(channel)) != 0 && st 205 dev/pci/piixpm.c u_int8_t ctl, st; st 214 dev/pci/piixpm.c st = bus_space_read_1(sc->sc_iot, sc->sc_ioh, PIIX_SMB_HS); st 215 dev/pci/piixpm.c if (!(st & PIIX_SMB_HS_BUSY)) st 219 dev/pci/piixpm.c DPRINTF(("%s: exec: st 0x%b\n", sc->sc_dev.dv_xname, st, st 221 dev/pci/piixpm.c if (st & PIIX_SMB_HS_BUSY) st 277 dev/pci/piixpm.c st = bus_space_read_1(sc->sc_iot, sc->sc_ioh, st 279 dev/pci/piixpm.c if ((st & PIIX_SMB_HS_BUSY) == 0) st 283 dev/pci/piixpm.c if (st & PIIX_SMB_HS_BUSY) st 304 dev/pci/piixpm.c st, PIIX_SMB_HS_BITS); st 308 dev/pci/piixpm.c st = bus_space_read_1(sc->sc_iot, sc->sc_ioh, PIIX_SMB_HS); st 309 dev/pci/piixpm.c if ((st & PIIX_SMB_HS_FAILED) == 0) st 311 dev/pci/piixpm.c sc->sc_dev.dv_xname, st, PIIX_SMB_HS_BITS); st 312 dev/pci/piixpm.c bus_space_write_1(sc->sc_iot, sc->sc_ioh, PIIX_SMB_HS, st); st 320 dev/pci/piixpm.c u_int8_t st; st 325 dev/pci/piixpm.c st = bus_space_read_1(sc->sc_iot, sc->sc_ioh, PIIX_SMB_HS); st 326 dev/pci/piixpm.c if ((st & PIIX_SMB_HS_BUSY) != 0 || (st & (PIIX_SMB_HS_INTR | st 332 dev/pci/piixpm.c DPRINTF(("%s: intr st 0x%b\n", sc->sc_dev.dv_xname, st, st 336 dev/pci/piixpm.c bus_space_write_1(sc->sc_iot, sc->sc_ioh, PIIX_SMB_HS, st); st 339 dev/pci/piixpm.c if (st & (PIIX_SMB_HS_DEVERR | PIIX_SMB_HS_BUSERR | st 345 dev/pci/piixpm.c if (st & PIIX_SMB_HS_INTR) { st 251 dev/pci/viapm.c u_int8_t ctl, st; st 260 dev/pci/viapm.c st = bus_space_read_1(sc->sc_iot, sc->sc_ioh, VIAPM_SMB_HS); st 261 dev/pci/viapm.c DPRINTF(("%s: exec: st 0x%b\n", sc->sc_dev.dv_xname, st, st 263 dev/pci/viapm.c if (st & VIAPM_SMB_HS_BUSY) st 320 dev/pci/viapm.c st = bus_space_read_1(sc->sc_iot, sc->sc_ioh, st 322 dev/pci/viapm.c if ((st & VIAPM_SMB_HS_BUSY) == 0) st 326 dev/pci/viapm.c if (st & VIAPM_SMB_HS_BUSY) st 344 dev/pci/viapm.c printf("%s: timeout, status 0x%b\n", sc->sc_dev.dv_xname, st, st 349 dev/pci/viapm.c st = bus_space_read_1(sc->sc_iot, sc->sc_ioh, VIAPM_SMB_HS); st 350 dev/pci/viapm.c if ((st & VIAPM_SMB_HS_FAILED) == 0) st 352 dev/pci/viapm.c sc->sc_dev.dv_xname, st, VIAPM_SMB_HS_BITS); st 353 dev/pci/viapm.c bus_space_write_1(sc->sc_iot, sc->sc_ioh, VIAPM_SMB_HS, st); st 361 dev/pci/viapm.c u_int8_t st; st 366 dev/pci/viapm.c st = bus_space_read_1(sc->sc_iot, sc->sc_ioh, VIAPM_SMB_HS); st 367 dev/pci/viapm.c if ((st & VIAPM_SMB_HS_BUSY) != 0 || (st & (VIAPM_SMB_HS_INTR | st 373 dev/pci/viapm.c DPRINTF(("%s: intr st 0x%b\n", sc->sc_dev.dv_xname, st, st 377 dev/pci/viapm.c bus_space_write_1(sc->sc_iot, sc->sc_ioh, VIAPM_SMB_HS, st); st 380 dev/pci/viapm.c if (st & (VIAPM_SMB_HS_DEVERR | VIAPM_SMB_HS_BUSERR | st 386 dev/pci/viapm.c if (st & VIAPM_SMB_HS_INTR) { st 41 dev/raidframe/rf_etimer.h struct timeval st; st 52 dev/raidframe/rf_etimer.h getmicrouptime(&(_t_).st); \ st 62 dev/raidframe/rf_etimer.h RF_TIMEVAL_DIFF(&(_t_).st, &(_t_).et, &(_t_).diff); \ st 583 dev/sbus/spif.c struct stty_softc *st = stty_cd.cd_devs[SPIF_CARD(tp->t_dev)]; st 584 dev/sbus/spif.c struct stty_port *sp = &st->sc_port[SPIF_PORT(tp->t_dev)]; st 221 dev/sequencer.c int st; st 228 dev/sequencer.c st = tsleep(chan, PWAIT | PCATCH, label, timo); st 231 dev/sequencer.c if (st != 0) st 232 dev/sequencer.c printf("seq_sleep: %d\n", st); st 234 dev/sequencer.c return (st); st 1759 dev/systrace.c int st, pri; st 1787 dev/systrace.c st = tsleep(strp, pri, "systrmsg", 0); st 1788 dev/systrace.c if (st != 0) st 493 dev/usb/ucycom.c int n, st, s; st 503 dev/usb/ucycom.c st = cp[0] & ~UCYCOM_LMASK; st 508 dev/usb/ucycom.c st = cp[0]; st 531 dev/usb/ucycom.c if (n > 0 || st != sc->sc_msr) { st 533 dev/usb/ucycom.c sc->sc_newmsr = st; st 116 dev/usb/usbdi_util.c usbd_get_device_status(usbd_device_handle dev, usb_status_t *st) st 125 dev/usb/usbdi_util.c return (usbd_do_request(dev, &req, st)); st 129 dev/usb/usbdi_util.c usbd_get_hub_status(usbd_device_handle dev, usb_hub_status_t *st) st 138 dev/usb/usbdi_util.c return (usbd_do_request(dev, &req, st)); st 163 kern/kern_acct.c struct timeval ut, st, tmp; st 192 kern/kern_acct.c calcru(p, &ut, &st, NULL); st 194 kern/kern_acct.c acct.ac_stime = encode_comp_t(st.tv_sec, st.tv_usec); st 204 kern/kern_acct.c timeradd(&ut, &st, &tmp); st 67 kern/kern_event.c int kqueue_stat(struct file *fp, struct stat *st, struct proc *p); st 796 kern/kern_event.c kqueue_stat(struct file *fp, struct stat *st, struct proc *p) st 800 kern/kern_event.c bzero((void *)st, sizeof(*st)); st 801 kern/kern_event.c st->st_size = kq->kq_count; st 802 kern/kern_event.c st->st_blksize = sizeof(struct kevent); st 803 kern/kern_event.c st->st_mode = S_IFIFO; st 324 kern/kern_resource.c u_quad_t st, ut, it; st 329 kern/kern_resource.c st = p->p_sticks; st 334 kern/kern_resource.c if (st + ut + it == 0) { st 344 kern/kern_resource.c st = st * 1000000 / freq; st 345 kern/kern_resource.c sp->tv_sec = st / 1000000; st 346 kern/kern_resource.c sp->tv_usec = st % 1000000; st 186 kern/kern_sensors.c struct sensor_task *st; st 188 kern/kern_sensors.c st = malloc(sizeof(struct sensor_task), M_DEVBUF, M_NOWAIT); st 189 kern/kern_sensors.c if (st == NULL) st 192 kern/kern_sensors.c st->func = func; st 193 kern/kern_sensors.c st->arg = arg; st 194 kern/kern_sensors.c st->period = period; st 195 kern/kern_sensors.c timeout_set(&st->timeout, sensor_task_tick, st); st 197 kern/kern_sensors.c sensor_task_tick(st); st 199 kern/kern_sensors.c return (st); st 203 kern/kern_sensors.c sensor_task_unregister(struct sensor_task *st) st 205 kern/kern_sensors.c timeout_del(&st->timeout); st 207 kern/kern_sensors.c switch (st->state) { st 209 kern/kern_sensors.c free(st, M_DEVBUF); st 213 kern/kern_sensors.c st->state = ST_DYING; st 217 kern/kern_sensors.c st->state = ST_DYING; st 218 kern/kern_sensors.c while (st->state != ST_DEAD) st 219 kern/kern_sensors.c tsleep(st, 0, "stunr", 0); st 220 kern/kern_sensors.c free(st, M_DEVBUF); st 224 kern/kern_sensors.c st->state); st 231 kern/kern_sensors.c struct sensor_task *st = arg; st 234 kern/kern_sensors.c if (workq_add_task(NULL, 0, sensor_task_work, st, NULL) != 0) st 235 kern/kern_sensors.c timeout_add(&st->timeout, hz/2); st 237 kern/kern_sensors.c st->state = ST_WORKQ; st 243 kern/kern_sensors.c struct sensor_task *st = xst; st 245 kern/kern_sensors.c if (st->state == ST_DYING) { st 246 kern/kern_sensors.c free(st, M_DEVBUF); st 250 kern/kern_sensors.c st->state = ST_RUNNING; st 251 kern/kern_sensors.c st->func(st->arg); st 253 kern/kern_sensors.c if (st->state == ST_DYING) { st 254 kern/kern_sensors.c st->state = ST_DEAD; st 255 kern/kern_sensors.c wakeup(st); st 257 kern/kern_sensors.c st->state = ST_TICKING; st 258 kern/kern_sensors.c timeout_add(&st->timeout, hz * st->period); st 1191 kern/kern_sysctl.c struct timeval ut, st; st 1316 kern/kern_sysctl.c calcru(p, &ut, &st, 0); st 1319 kern/kern_sysctl.c ki->p_ustime_sec = st.tv_sec; st 1320 kern/kern_sysctl.c ki->p_ustime_usec = st.tv_usec; st 71 miscfs/procfs/procfs_status.c struct timeval ut, st; st 123 miscfs/procfs/procfs_status.c calcru(p, &ut, &st, (void *) 0); st 125 miscfs/procfs/procfs_status.c ut.tv_sec, ut.tv_usec, st.tv_sec, st.tv_usec); st 222 net/if_pfsync.c struct pf_state *st = NULL; st 255 net/if_pfsync.c st = pool_get(&pf_state_pl, PR_NOWAIT); st 256 net/if_pfsync.c if (st == NULL) { st 260 net/if_pfsync.c bzero(st, sizeof(*st)); st 262 net/if_pfsync.c if ((sk = pf_alloc_state_key(st)) == NULL) { st 263 net/if_pfsync.c pool_put(&pf_state_pl, st); st 269 net/if_pfsync.c if (pfsync_alloc_scrub_memory(&sp->src, &st->src) || st 270 net/if_pfsync.c pfsync_alloc_scrub_memory(&sp->dst, &st->dst)) { st 272 net/if_pfsync.c if (st->src.scrub) st 273 net/if_pfsync.c pool_put(&pf_state_scrub_pl, st->src.scrub); st 274 net/if_pfsync.c pool_put(&pf_state_pl, st); st 279 net/if_pfsync.c st->rule.ptr = r; st 290 net/if_pfsync.c pf_state_peer_ntoh(&sp->src, &st->src); st 291 net/if_pfsync.c pf_state_peer_ntoh(&sp->dst, &st->dst); st 293 net/if_pfsync.c bcopy(&sp->rt_addr, &st->rt_addr, sizeof(st->rt_addr)); st 294 net/if_pfsync.c st->creation = time_second - ntohl(sp->creation); st 295 net/if_pfsync.c st->expire = ntohl(sp->expire) + time_second; st 300 net/if_pfsync.c st->log = sp->log; st 301 net/if_pfsync.c st->timeout = sp->timeout; st 302 net/if_pfsync.c st->allow_opts = sp->allow_opts; st 304 net/if_pfsync.c bcopy(sp->id, &st->id, sizeof(st->id)); st 305 net/if_pfsync.c st->creatorid = sp->creatorid; st 306 net/if_pfsync.c st->sync_flags = PFSTATE_FROMSYNC; st 308 net/if_pfsync.c if (pf_insert_state(kif, st)) { st 312 net/if_pfsync.c if (st->dst.scrub) st 313 net/if_pfsync.c pool_put(&pf_state_scrub_pl, st->dst.scrub); st 314 net/if_pfsync.c if (st->src.scrub) st 315 net/if_pfsync.c pool_put(&pf_state_scrub_pl, st->src.scrub); st 316 net/if_pfsync.c pool_put(&pf_state_pl, st); st 329 net/if_pfsync.c struct pf_state *st; st 417 net/if_pfsync.c for (st = RB_MIN(pf_state_tree_id, &tree_id); st 418 net/if_pfsync.c st; st = nexts) { st 419 net/if_pfsync.c nexts = RB_NEXT(pf_state_tree_id, &tree_id, st); st 420 net/if_pfsync.c if (st->creatorid == creatorid) { st 421 net/if_pfsync.c st->sync_flags |= PFSTATE_FROMSYNC; st 422 net/if_pfsync.c pf_unlink_state(st); st 434 net/if_pfsync.c TAILQ_FOREACH(st, &sk->states, next) { st 435 net/if_pfsync.c if (st->creatorid == creatorid) { st 436 net/if_pfsync.c st->sync_flags |= st 438 net/if_pfsync.c pf_unlink_state(st); st 507 net/if_pfsync.c st = pf_find_state_byid(&id_key); st 508 net/if_pfsync.c if (st == NULL) { st 514 net/if_pfsync.c sk = st->state_key; st 522 net/if_pfsync.c if (st->src.state > sp->src.state && st 523 net/if_pfsync.c (st->src.state < PF_TCPS_PROXY_SRC || st 526 net/if_pfsync.c else if (SEQ_GT(st->src.seqlo, st 529 net/if_pfsync.c else if (st->dst.state > sp->dst.state) { st 536 net/if_pfsync.c pf_state_peer_ntoh(&sp->src, &st->src); st 540 net/if_pfsync.c } else if (st->dst.state >= TCPS_SYN_SENT && st 541 net/if_pfsync.c SEQ_GT(st->dst.seqlo, ntohl(sp->dst.seqlo))) st 548 net/if_pfsync.c if (st->src.state > sp->src.state) st 550 net/if_pfsync.c else if (st->dst.state > sp->dst.state) st 560 net/if_pfsync.c betoh64(st->id), st 561 net/if_pfsync.c ntohl(st->creatorid)); st 569 net/if_pfsync.c if (!st->sync_flags) st 571 net/if_pfsync.c PFSYNC_ACT_UPD, st, flags); st 575 net/if_pfsync.c pfsync_alloc_scrub_memory(&sp->dst, &st->dst); st 576 net/if_pfsync.c pf_state_peer_ntoh(&sp->src, &st->src); st 577 net/if_pfsync.c pf_state_peer_ntoh(&sp->dst, &st->dst); st 578 net/if_pfsync.c st->expire = ntohl(sp->expire) + time_second; st 579 net/if_pfsync.c st->timeout = sp->timeout; st 602 net/if_pfsync.c st = pf_find_state_byid(&id_key); st 603 net/if_pfsync.c if (st == NULL) { st 607 net/if_pfsync.c st->sync_flags |= PFSTATE_FROMSYNC; st 608 net/if_pfsync.c pf_unlink_state(st); st 639 net/if_pfsync.c st = pf_find_state_byid(&id_key); st 640 net/if_pfsync.c if (st == NULL) { st 651 net/if_pfsync.c sk = st->state_key; st 659 net/if_pfsync.c if (st->src.state > up->src.state && st 660 net/if_pfsync.c (st->src.state < PF_TCPS_PROXY_SRC || st 663 net/if_pfsync.c else if (st->dst.state > up->dst.state) st 665 net/if_pfsync.c else if (SEQ_GT(st->src.seqlo, st 668 net/if_pfsync.c else if (st->dst.state >= TCPS_SYN_SENT && st 669 net/if_pfsync.c SEQ_GT(st->dst.seqlo, ntohl(up->dst.seqlo))) st 676 net/if_pfsync.c if (st->src.state > up->src.state) st 678 net/if_pfsync.c else if (st->dst.state > up->dst.state) st 686 net/if_pfsync.c betoh64(st->id), st 687 net/if_pfsync.c ntohl(st->creatorid)); st 697 net/if_pfsync.c if (!st->sync_flags) st 698 net/if_pfsync.c pfsync_pack_state(PFSYNC_ACT_UPD, st, st 702 net/if_pfsync.c pfsync_alloc_scrub_memory(&up->dst, &st->dst); st 703 net/if_pfsync.c pf_state_peer_ntoh(&up->src, &st->src); st 704 net/if_pfsync.c pf_state_peer_ntoh(&up->dst, &st->dst); st 705 net/if_pfsync.c st->expire = ntohl(up->expire) + time_second; st 706 net/if_pfsync.c st->timeout = up->timeout; st 726 net/if_pfsync.c st = pf_find_state_byid(&id_key); st 727 net/if_pfsync.c if (st == NULL) { st 731 net/if_pfsync.c st->sync_flags |= PFSTATE_FROMSYNC; st 732 net/if_pfsync.c pf_unlink_state(st); st 768 net/if_pfsync.c st = pf_find_state_byid(&id_key); st 769 net/if_pfsync.c if (st == NULL) { st 773 net/if_pfsync.c if (!st->sync_flags) st 775 net/if_pfsync.c st, 0); st 1095 net/if_pfsync.c pfsync_pack_state(u_int8_t action, struct pf_state *st, int flags) st 1103 net/if_pfsync.c struct pf_state_key *sk = st->state_key; st 1159 net/if_pfsync.c if (!memcmp(usp->id, &st->id, st 1161 net/if_pfsync.c usp->creatorid == st->creatorid) { st 1174 net/if_pfsync.c st->pfsync_time = time_uptime; st 1185 net/if_pfsync.c bcopy(&st->id, sp->id, sizeof(sp->id)); st 1186 net/if_pfsync.c sp->creatorid = st->creatorid; st 1188 net/if_pfsync.c strlcpy(sp->ifname, st->kif->pfik_name, sizeof(sp->ifname)); st 1193 net/if_pfsync.c bcopy(&st->rt_addr, &sp->rt_addr, sizeof(sp->rt_addr)); st 1195 net/if_pfsync.c sp->creation = htonl(secs - st->creation); st 1196 net/if_pfsync.c pf_state_counter_hton(st->packets[0], sp->packets[0]); st 1197 net/if_pfsync.c pf_state_counter_hton(st->packets[1], sp->packets[1]); st 1198 net/if_pfsync.c pf_state_counter_hton(st->bytes[0], sp->bytes[0]); st 1199 net/if_pfsync.c pf_state_counter_hton(st->bytes[1], sp->bytes[1]); st 1200 net/if_pfsync.c if ((r = st->rule.ptr) == NULL) st 1204 net/if_pfsync.c if ((r = st->anchor.ptr) == NULL) st 1211 net/if_pfsync.c sp->log = st->log; st 1212 net/if_pfsync.c sp->allow_opts = st->allow_opts; st 1213 net/if_pfsync.c sp->timeout = st->timeout; st 1219 net/if_pfsync.c pf_state_peer_hton(&st->src, &sp->src); st 1220 net/if_pfsync.c pf_state_peer_hton(&st->dst, &sp->dst); st 1222 net/if_pfsync.c if (st->expire <= secs) st 1225 net/if_pfsync.c sp->expire = htonl(st->expire - secs); st 1265 net/if_pfsync.c bcopy(&st->id, up->id, sizeof(up->id)); st 1266 net/if_pfsync.c up->creatorid = st->creatorid; st 1268 net/if_pfsync.c up->timeout = st->timeout; st 1280 net/if_pfsync.c bcopy(&st->id, dp->id, sizeof(dp->id)); st 1281 net/if_pfsync.c dp->creatorid = st->creatorid; st 258 net/if_pfsync.h #define pfsync_insert_state(st) do { \ st 259 net/if_pfsync.h if ((st->rule.ptr->rule_flag & PFRULE_NOSYNC) || \ st 260 net/if_pfsync.h (st->state_key->proto == IPPROTO_PFSYNC)) \ st 261 net/if_pfsync.h st->sync_flags |= PFSTATE_NOSYNC; \ st 262 net/if_pfsync.h else if (!st->sync_flags) \ st 263 net/if_pfsync.h pfsync_pack_state(PFSYNC_ACT_INS, (st), \ st 265 net/if_pfsync.h st->sync_flags &= ~PFSTATE_FROMSYNC; \ st 267 net/if_pfsync.h #define pfsync_update_state(st) do { \ st 268 net/if_pfsync.h if (!st->sync_flags) \ st 269 net/if_pfsync.h pfsync_pack_state(PFSYNC_ACT_UPD, (st), \ st 271 net/if_pfsync.h st->sync_flags &= ~PFSTATE_FROMSYNC; \ st 273 net/if_pfsync.h #define pfsync_delete_state(st) do { \ st 274 net/if_pfsync.h if (!st->sync_flags) \ st 275 net/if_pfsync.h pfsync_pack_state(PFSYNC_ACT_DEL, (st), \ st 680 net/pf.c struct pf_state *st; st 683 net/pf.c RB_FOREACH(st, pf_state_tree_id, &tree_id) { st 684 net/pf.c sk = st->state_key; st 701 net/pf.c (*state)->rule.ptr == st->rule.ptr)) { st 702 net/pf.c st->timeout = PFTM_PURGE; st 703 net/pf.c st->src.state = st->dst.state = st 706 net/pf_ioctl.c #define PF_MD5_UPD(st, elm) \ st 707 net/pf_ioctl.c MD5Update(ctx, (u_int8_t *) &(st)->elm, sizeof((st)->elm)) st 709 net/pf_ioctl.c #define PF_MD5_UPD_STR(st, elm) \ st 710 net/pf_ioctl.c MD5Update(ctx, (u_int8_t *) (st)->elm, strlen((st)->elm)) st 712 net/pf_ioctl.c #define PF_MD5_UPD_HTONL(st, elm, stor) do { \ st 713 net/pf_ioctl.c (stor) = htonl((st)->elm); \ st 717 net/pf_ioctl.c #define PF_MD5_UPD_HTONS(st, elm, stor) do { \ st 718 net/pf_ioctl.c (stor) = htons((st)->elm); \ st 1024 scsi/ss.c int st[301]; st 1029 scsi/ss.c st[i] = 1; st 1032 scsi/ss.c st[i * 300 / (300 - dpi)] = 0; st 1035 scsi/ss.c if (st[i]) st 311 scsi/st.c struct st_softc *st = (void *)self; st 320 scsi/st.c st->sc_link = sc_link; st 322 scsi/st.c sc_link->device_softc = st; st 328 scsi/st.c st_identify_drive(st, sa->sa_inqbuf); st 331 scsi/st.c timeout_set(&st->sc_timeout, strestart, st); st 336 scsi/st.c st->buf_queue.b_active = 0; st 337 scsi/st.c st->buf_queue.b_actf = 0; st 338 scsi/st.c st->buf_queue.b_actb = &st->buf_queue.b_actf; st 341 scsi/st.c st->media_fileno = -1; st 342 scsi/st.c st->media_blkno = -1; st 357 scsi/st.c st_identify_drive(st, inqbuf) st 358 scsi/st.c struct st_softc *st; st 369 scsi/st.c st->quirkdata = &finger->quirkdata; st 370 scsi/st.c st->drive_quirks = finger->quirkdata.quirks; st 371 scsi/st.c st->quirks = finger->quirkdata.quirks; /* start value */ st 372 scsi/st.c st_loadquirks(st); st 382 scsi/st.c st_loadquirks(st) st 383 scsi/st.c struct st_softc *st; st 388 scsi/st.c mode = &st->quirkdata->modes; st 389 scsi/st.c mode2 = &st->modes; st 391 scsi/st.c st->modeflags &= ~(BLKSIZE_SET_BY_QUIRK | st 394 scsi/st.c if ((mode->quirks | st->drive_quirks) & ST_Q_FORCE_BLKSIZE) { st 396 scsi/st.c st->modeflags |= BLKSIZE_SET_BY_QUIRK; st 400 scsi/st.c st->modeflags |= DENSITY_SET_BY_QUIRK; st 415 scsi/st.c struct st_softc *st; st 421 scsi/st.c st = st_cd.cd_devs[unit]; st 422 scsi/st.c if (!st) st 425 scsi/st.c sc_link = st->sc_link; st 453 scsi/st.c st_unmount(st, NOEJECT, DOREWIND); st 460 scsi/st.c if ((st->flags & ST_MOUNTED) == 0) { st 474 scsi/st.c st->flags |= ST_WRITTEN; st 491 scsi/st.c struct st_softc *st = st_cd.cd_devs[STUNIT(dev)]; st 493 scsi/st.c SC_DEBUG(st->sc_link, SDEV_DB1, ("closing\n")); st 494 scsi/st.c if ((st->flags & (ST_WRITTEN | ST_FM_WRITTEN)) == ST_WRITTEN) st 495 scsi/st.c st_write_filemarks(st, 1, 0); st 498 scsi/st.c st_unmount(st, NOEJECT, DOREWIND); st 501 scsi/st.c st_unmount(st, EJECT, NOREWIND); st 505 scsi/st.c if (!(st->sc_link->flags & SDEV_MEDIA_LOADED)) st 506 scsi/st.c st_unmount(st, NOEJECT, NOREWIND); st 509 scsi/st.c st_unmount(st, EJECT, DOREWIND); st 512 scsi/st.c st->sc_link->flags &= ~SDEV_OPEN; st 513 scsi/st.c timeout_del(&st->sc_timeout); st 530 scsi/st.c struct st_softc *st; st 536 scsi/st.c st = st_cd.cd_devs[unit]; st 537 scsi/st.c sc_link = st->sc_link; st 539 scsi/st.c if (st->flags & ST_MOUNTED) st 543 scsi/st.c st->quirks = st->drive_quirks | st->modes.quirks; st 548 scsi/st.c if ((error = st_load(st, LD_LOAD, 0)) != 0) st 563 scsi/st.c if (st->quirks & ST_Q_SENSE_HELP) st 564 scsi/st.c if ((error = st_touch_tape(st)) != 0) st 571 scsi/st.c (error = st_read_block_limits(st, 0)) != 0) { st 581 scsi/st.c if ((error = st_mode_sense(st, 0)) != 0) st 589 scsi/st.c if (st->modeflags & (DENSITY_SET_BY_QUIRK | DENSITY_SET_BY_USER)) st 590 scsi/st.c st->density = st->modes.density; st 592 scsi/st.c st->density = st->media_density; st 598 scsi/st.c st->flags &= ~ST_FIXEDBLOCKS; st 599 scsi/st.c if (st->modeflags & (BLKSIZE_SET_BY_QUIRK | BLKSIZE_SET_BY_USER)) { st 600 scsi/st.c st->blksize = st->modes.blksize; st 601 scsi/st.c if (st->blksize) st 602 scsi/st.c st->flags |= ST_FIXEDBLOCKS; st 604 scsi/st.c if ((error = st_decide_mode(st, FALSE)) != 0) st 607 scsi/st.c if ((error = st_mode_select(st, 0)) != 0) { st 608 scsi/st.c printf("%s: cannot set selected mode\n", st->sc_dev.dv_xname); st 613 scsi/st.c st->flags |= ST_MOUNTED; st 626 scsi/st.c st_unmount(st, eject, rewind) st 627 scsi/st.c struct st_softc *st; st 630 scsi/st.c struct scsi_link *sc_link = st->sc_link; st 633 scsi/st.c st->media_fileno = -1; st 634 scsi/st.c st->media_blkno = -1; st 636 scsi/st.c if (!(st->flags & ST_MOUNTED)) st 639 scsi/st.c st_check_eod(st, FALSE, &nmarks, SCSI_IGNORE_NOT_READY); st 641 scsi/st.c st_rewind(st, 0, SCSI_IGNORE_NOT_READY); st 645 scsi/st.c st_load(st, LD_UNLOAD, SCSI_IGNORE_NOT_READY); st 646 scsi/st.c st->flags &= ~ST_MOUNTED; st 656 scsi/st.c st_decide_mode(st, first_read) st 657 scsi/st.c struct st_softc *st; st 660 scsi/st.c struct scsi_link *sc_link = st->sc_link; st 666 scsi/st.c st->flags |= ST_FIXEDBLOCKS; st 667 scsi/st.c if (st->media_blksize > 0) st 668 scsi/st.c st->blksize = st->media_blksize; st 670 scsi/st.c st->blksize = DEF_FIXED_BSIZE; st 678 scsi/st.c if (st->blkmin && (st->blkmin == st->blkmax)) { st 679 scsi/st.c st->flags |= ST_FIXEDBLOCKS; st 680 scsi/st.c st->blksize = st->blkmin; st 682 scsi/st.c ("blkmin == blkmax of %d\n", st->blkmin)); st 689 scsi/st.c switch (st->density) { st 694 scsi/st.c st->flags &= ~ST_FIXEDBLOCKS; st 695 scsi/st.c st->blksize = 0; st 704 scsi/st.c st->flags |= ST_FIXEDBLOCKS; st 705 scsi/st.c if (st->media_blksize > 0) st 706 scsi/st.c st->blksize = st->media_blksize; st 708 scsi/st.c st->blksize = DEF_FIXED_BSIZE; st 718 scsi/st.c (!(st->quirks & ST_Q_BLKSIZE) || (st->media_blksize == 0) || st 719 scsi/st.c (st->media_blksize == DEF_FIXED_BSIZE) || st 720 scsi/st.c (st->media_blksize == 1024))) { st 721 scsi/st.c if (st->media_blksize > 0) st 722 scsi/st.c st->flags |= ST_FIXEDBLOCKS; st 724 scsi/st.c st->flags &= ~ST_FIXEDBLOCKS; st 725 scsi/st.c st->blksize = st->media_blksize; st 727 scsi/st.c ("Used media_blksize of %d\n", st->media_blksize)); st 734 scsi/st.c st->flags &= ~ST_FIXEDBLOCKS; st 735 scsi/st.c st->blksize = 0; st 748 scsi/st.c switch (st->density) { st 756 scsi/st.c st->flags &= ~ST_2FM_AT_EOD; st 759 scsi/st.c st->flags |= ST_2FM_AT_EOD; st 774 scsi/st.c struct st_softc *st = st_cd.cd_devs[STUNIT(bp->b_dev)]; st 778 scsi/st.c SC_DEBUG(st->sc_link, SDEV_DB2, ("ststrategy: %ld bytes @ blk %d\n", st 788 scsi/st.c if (st->flags & ST_FIXEDBLOCKS) { st 789 scsi/st.c if (bp->b_bcount % st->blksize) { st 791 scsi/st.c st->sc_dev.dv_xname, st->blksize); st 799 scsi/st.c else if (bp->b_bcount < st->blkmin || st 800 scsi/st.c (st->blkmax && bp->b_bcount > st->blkmax)) { st 802 scsi/st.c st->sc_dev.dv_xname, st->blkmin, st->blkmax); st 813 scsi/st.c dp = &st->buf_queue; st 824 scsi/st.c ststart(st); st 858 scsi/st.c struct st_softc *st = v; st 859 scsi/st.c struct scsi_link *sc_link = st->sc_link; st 880 scsi/st.c dp = &st->buf_queue; st 886 scsi/st.c st->buf_queue.b_actb = bp->b_actb; st 893 scsi/st.c if (!(st->flags & ST_MOUNTED) || st 906 scsi/st.c if (st->flags & ST_FIXEDBLOCKS) { st 911 scsi/st.c if (st->flags & ST_AT_FILEMARK) { st 919 scsi/st.c if (st_space(st, 0, SP_FILEMARKS, 0)) { st 930 scsi/st.c st->flags &= ~ST_AT_FILEMARK; st 939 scsi/st.c if (st->flags & ST_EIO_PENDING) { st 943 scsi/st.c st->flags &= ~ST_EIO_PENDING; st 955 scsi/st.c st->flags &= ~ST_FM_WRITTEN; st 956 scsi/st.c st->flags |= ST_WRITTEN; st 967 scsi/st.c if (st->flags & ST_FIXEDBLOCKS) { st 969 scsi/st.c _lto3b(bp->b_bcount / st->blksize, cmd.len); st 973 scsi/st.c if (st->media_blkno != -1) { st 975 scsi/st.c if (st->flags & ST_FIXEDBLOCKS) st 976 scsi/st.c st->media_blkno += _3btol(cmd.len); st 978 scsi/st.c st->media_blkno++; st 989 scsi/st.c timeout_del(&st->sc_timeout); st 996 scsi/st.c timeout_add(&st->sc_timeout, 1); st 999 scsi/st.c printf("%s: not queued\n", st->sc_dev.dv_xname); st 1022 scsi/st.c struct st_softc *st = st_cd.cd_devs[STUNIT(dev)]; st 1025 scsi/st.c st->sc_link->adapter->scsi_minphys, uio)); st 1034 scsi/st.c struct st_softc *st = st_cd.cd_devs[STUNIT(dev)]; st 1037 scsi/st.c st->sc_link->adapter->scsi_minphys, uio)); st 1056 scsi/st.c struct st_softc *st; st 1067 scsi/st.c st = st_cd.cd_devs[unit]; st 1068 scsi/st.c hold_blksize = st->blksize; st 1069 scsi/st.c hold_density = st->density; st 1079 scsi/st.c error = st_mode_sense(st, SCSI_SILENT); st 1083 scsi/st.c SC_DEBUG(st->sc_link, SDEV_DB1, ("[ioctl: get status]\n")); st 1086 scsi/st.c g->mt_blksiz = st->blksize; st 1087 scsi/st.c g->mt_density = st->density; st 1088 scsi/st.c g->mt_mblksiz = st->modes.blksize; st 1089 scsi/st.c g->mt_mdensity = st->modes.density; st 1090 scsi/st.c if (st->flags & ST_READONLY) st 1092 scsi/st.c if (st->flags & ST_MOUNTED) st 1094 scsi/st.c g->mt_resid = st->mt_resid; st 1095 scsi/st.c g->mt_erreg = st->mt_erreg; st 1096 scsi/st.c g->mt_fileno = st->media_fileno; st 1097 scsi/st.c g->mt_blkno = st->media_blkno; st 1101 scsi/st.c st->mt_resid = 0; st 1102 scsi/st.c st->mt_erreg = 0; st 1107 scsi/st.c SC_DEBUG(st->sc_link, SDEV_DB1, st 1113 scsi/st.c error = st_write_filemarks(st, number, flags); st 1118 scsi/st.c error = st_check_eod(st, FALSE, &nmarks, flags); st 1120 scsi/st.c error = st_space(st, number - nmarks, st 1126 scsi/st.c error = st_check_eod(st, TRUE, &nmarks, flags); st 1128 scsi/st.c error = st_space(st, number, SP_BLKS, flags); st 1131 scsi/st.c error = st_rewind(st, 0, flags); st 1134 scsi/st.c st_unmount(st, EJECT, DOREWIND); st 1139 scsi/st.c error = st_load(st, LD_RETENSION, flags); st 1141 scsi/st.c error = st_load(st, LD_LOAD, flags); st 1144 scsi/st.c error = st_check_eod(st, FALSE, &nmarks, flags); st 1146 scsi/st.c error = st_space(st, 1, SP_EOM, flags); st 1149 scsi/st.c st->flags &= ~ST_DONTBUFFER; st 1152 scsi/st.c st->flags |= ST_DONTBUFFER; st 1155 scsi/st.c error = st_erase(st, number, flags); st 1159 scsi/st.c st->flags &= ~ST_FIXEDBLOCKS; st 1161 scsi/st.c if ((st->blkmin || st->blkmax) && st 1162 scsi/st.c (number < st->blkmin || st 1163 scsi/st.c number > st->blkmax)) { st 1167 scsi/st.c st->flags |= ST_FIXEDBLOCKS; st 1169 scsi/st.c st->blksize = number; st 1170 scsi/st.c st->flags |= ST_BLOCK_SET; /*XXX */ st 1178 scsi/st.c st->density = number; st 1192 scsi/st.c error = st_rdpos(st, 0, (u_int32_t *) arg); st 1196 scsi/st.c error = st_rdpos(st, 1, (u_int32_t *) arg); st 1200 scsi/st.c error = st_setpos(st, 0, (u_int32_t *) arg); st 1204 scsi/st.c error = st_setpos(st, 1, (u_int32_t *) arg); st 1209 scsi/st.c error = scsi_do_ioctl(st->sc_link, dev, cmd, arg, flag, p); st 1219 scsi/st.c if ((error = st_mode_select(st, 0)) != 0) {/* put it back as it was */ st 1220 scsi/st.c printf("%s: cannot set selected mode\n", st->sc_dev.dv_xname); st 1221 scsi/st.c st->density = hold_density; st 1222 scsi/st.c st->blksize = hold_blksize; st 1223 scsi/st.c if (st->blksize) st 1224 scsi/st.c st->flags |= ST_FIXEDBLOCKS; st 1226 scsi/st.c st->flags &= ~ST_FIXEDBLOCKS; st 1235 scsi/st.c st->modes.blksize = st->blksize; st 1236 scsi/st.c st->modeflags |= BLKSIZE_SET_BY_USER; st 1239 scsi/st.c st->modes.density = st->density; st 1240 scsi/st.c st->modeflags |= DENSITY_SET_BY_USER; st 1251 scsi/st.c st_read(st, buf, size, flags) st 1252 scsi/st.c struct st_softc *st; st 1266 scsi/st.c if (st->flags & ST_FIXEDBLOCKS) { st 1268 scsi/st.c _lto3b(size / (st->blksize ? st->blksize : DEF_FIXED_BSIZE), st 1272 scsi/st.c return scsi_scsi_cmd(st->sc_link, (struct scsi_generic *) &cmd, st 1281 scsi/st.c st_read_block_limits(st, flags) st 1282 scsi/st.c struct st_softc *st; st 1287 scsi/st.c struct scsi_link *sc_link = st->sc_link; st 1311 scsi/st.c st->blkmin = _2btol(block_limits.min_length); st 1312 scsi/st.c st->blkmax = _3btol(block_limits.max_length); st 1315 scsi/st.c ("(%d <= blksize <= %d)\n", st->blkmin, st->blkmax)); st 1330 scsi/st.c st_mode_sense(st, flags) st 1331 scsi/st.c struct st_softc *st; st 1335 scsi/st.c struct scsi_link *sc_link = st->sc_link; st 1364 scsi/st.c st->flags |= ST_READONLY; st 1366 scsi/st.c st->flags &= ~ST_READONLY; st 1368 scsi/st.c st->numblks = block_count; st 1369 scsi/st.c st->media_blksize = block_size; st 1370 scsi/st.c st->media_density = density; st 1374 scsi/st.c st->media_density, st->media_blksize, st 1375 scsi/st.c st->flags & ST_READONLY ? "protected" : "enabled")); st 1390 scsi/st.c st_mode_select(st, flags) st 1391 scsi/st.c struct st_softc *st; st 1396 scsi/st.c struct scsi_link *sc_link = st->sc_link; st 1414 scsi/st.c if (st->quirks & ST_Q_UNIMODAL) { st 1417 scsi/st.c st->density, st->blksize)); st 1432 scsi/st.c general.density = st->density; st 1433 scsi/st.c if (st->flags & ST_FIXEDBLOCKS) st 1434 scsi/st.c _lto3b(st->blksize, general.blklen); st 1471 scsi/st.c if ((st->flags & ST_DONTBUFFER) == 0) st 1476 scsi/st.c error = scsi_mode_select(st->sc_link, 0, &outbuf->hdr, st 1486 scsi/st.c if ((st->flags & ST_DONTBUFFER) == 0) st 1492 scsi/st.c error = scsi_mode_select_big(st->sc_link, 0, &outbuf->hdr_big, st 1503 scsi/st.c st_erase(st, full, flags) st 1504 scsi/st.c struct st_softc *st; st 1529 scsi/st.c return (scsi_scsi_cmd(st->sc_link, (struct scsi_generic *)&cmd, st 1537 scsi/st.c st_space(st, number, what, flags) st 1538 scsi/st.c struct st_softc *st; st 1548 scsi/st.c if (st->flags & ST_PER_ACTION) { st 1550 scsi/st.c st->flags &= ~ST_PER_ACTION; st 1553 scsi/st.c if (st->flags & ST_AT_FILEMARK) { st 1559 scsi/st.c error = st_space(st, 0, SP_FILEMARKS, st 1564 scsi/st.c if (st->flags & ST_BLANK_READ) { st 1565 scsi/st.c st->flags &= ~ST_BLANK_READ; st 1568 scsi/st.c st->flags &= ~ST_EIO_PENDING; st 1573 scsi/st.c if (st->flags & ST_EIO_PENDING) { st 1576 scsi/st.c st->flags &= ~ST_EIO_PENDING; st 1580 scsi/st.c st->flags &= ~ST_EIO_PENDING; st 1583 scsi/st.c if (st->flags & ST_AT_FILEMARK) { st 1584 scsi/st.c st->flags &= ~ST_AT_FILEMARK; st 1587 scsi/st.c if ((st->flags & ST_BLANK_READ) && (number < 0)) { st 1589 scsi/st.c st->flags &= ~ST_BLANK_READ; st 1594 scsi/st.c if (st->flags & ST_EIO_PENDING) { st 1596 scsi/st.c st->flags &= ~ST_EIO_PENDING; st 1599 scsi/st.c if (st->flags & ST_AT_FILEMARK) st 1600 scsi/st.c st->flags &= ~ST_AT_FILEMARK; st 1611 scsi/st.c error = scsi_scsi_cmd(st->sc_link, (struct scsi_generic *) &cmd, st 1615 scsi/st.c st->media_fileno = -1; st 1616 scsi/st.c st->media_blkno = -1; st 1620 scsi/st.c if (st->media_blkno != -1) { st 1621 scsi/st.c st->media_blkno += number; st 1622 scsi/st.c if (st->media_blkno < 0) st 1623 scsi/st.c st->media_blkno = -1; st 1627 scsi/st.c if (st->media_fileno != -1) { st 1628 scsi/st.c st->media_fileno += number; st 1629 scsi/st.c st->media_blkno = 0; st 1633 scsi/st.c st->media_fileno = -1; st 1634 scsi/st.c st->media_blkno = -1; st 1646 scsi/st.c st_write_filemarks(st, number, flags) st 1647 scsi/st.c struct st_softc *st; st 1664 scsi/st.c if (st->flags & ST_FM_WRITTEN) /* already have one down */ st 1665 scsi/st.c st->flags &= ~ST_WRITTEN; st 1667 scsi/st.c st->flags |= ST_FM_WRITTEN; st 1668 scsi/st.c st->flags &= ~ST_PER_ACTION; st 1671 scsi/st.c st->flags &= ~(ST_PER_ACTION | ST_WRITTEN); st 1678 scsi/st.c error = scsi_scsi_cmd(st->sc_link, (struct scsi_generic *) &cmd, st 1682 scsi/st.c st->media_fileno = -1; st 1683 scsi/st.c st->media_blkno = -1; st 1684 scsi/st.c } else if (st->media_fileno != -1) { st 1685 scsi/st.c st->media_fileno += number; st 1686 scsi/st.c st->media_blkno = 0; st 1701 scsi/st.c st_check_eod(st, position, nmarks, flags) st 1702 scsi/st.c struct st_softc *st; st 1709 scsi/st.c switch (st->flags & (ST_WRITTEN | ST_FM_WRITTEN | ST_2FM_AT_EOD)) { st 1720 scsi/st.c error = st_write_filemarks(st, *nmarks, flags); st 1722 scsi/st.c error = st_space(st, -*nmarks, SP_FILEMARKS, flags); st 1730 scsi/st.c st_load(st, type, flags) st 1731 scsi/st.c struct st_softc *st; st 1737 scsi/st.c st->media_fileno = -1; st 1738 scsi/st.c st->media_blkno = -1; st 1744 scsi/st.c error = st_check_eod(st, FALSE, &nmarks, flags); st 1748 scsi/st.c if (st->quirks & ST_Q_IGNORE_LOADS) { st 1753 scsi/st.c return st_rewind(st, 0, flags); st 1763 scsi/st.c return scsi_scsi_cmd(st->sc_link, (struct scsi_generic *) &cmd, st 1771 scsi/st.c st_rewind(st, immediate, flags) st 1772 scsi/st.c struct st_softc *st; st 1780 scsi/st.c error = st_check_eod(st, FALSE, &nmarks, flags); st 1783 scsi/st.c st->flags &= ~ST_PER_ACTION; st 1789 scsi/st.c error = scsi_scsi_cmd(st->sc_link, (struct scsi_generic *) &cmd, st 1794 scsi/st.c st->media_fileno = 0; st 1795 scsi/st.c st->media_blkno = 0; st 1812 scsi/st.c struct st_softc *st = sc_link->device_softc; st 1866 scsi/st.c if (st->flags & ST_FIXEDBLOCKS) { st 1867 scsi/st.c xs->resid = info * st->blksize; st 1869 scsi/st.c st->flags |= ST_EIO_PENDING; st 1874 scsi/st.c st->flags |= ST_AT_FILEMARK; st 1875 scsi/st.c if (st->media_fileno != -1) { st 1876 scsi/st.c st->media_fileno++; st 1877 scsi/st.c st->media_blkno = 0; st 1883 scsi/st.c st->flags |= ST_EIO_PENDING; st 1889 scsi/st.c st->sc_dev.dv_xname, info); st 1898 scsi/st.c if ((st->quirks & ST_Q_SENSE_HELP) && st 1900 scsi/st.c st->blksize -= 512; st 1906 scsi/st.c if (st->flags & ST_EIO_PENDING) st 1908 scsi/st.c if (st->flags & ST_AT_FILEMARK) { st 1919 scsi/st.c if (st->media_fileno != -1) { st 1920 scsi/st.c st->media_fileno++; st 1921 scsi/st.c st->media_blkno = 0; st 1934 scsi/st.c st->sc_dev.dv_xname, st 1944 scsi/st.c st->sc_dev.dv_xname, info, st 1962 scsi/st.c if ((st->quirks & ST_Q_SENSE_HELP) && st 1965 scsi/st.c st->blksize -= 512; st 1966 scsi/st.c } else if (!(st->flags & (ST_2FM_AT_EOD | ST_BLANK_READ))) { st 1967 scsi/st.c st->flags |= ST_BLANK_READ; st 1997 scsi/st.c st_touch_tape(st) st 1998 scsi/st.c struct st_softc *st; st 2008 scsi/st.c if ((error = st_mode_sense(st, 0)) != 0) st 2010 scsi/st.c st->blksize = 1024; st 2012 scsi/st.c switch (st->blksize) { st 2015 scsi/st.c readsize = st->blksize; st 2016 scsi/st.c st->flags |= ST_FIXEDBLOCKS; st 2020 scsi/st.c st->flags &= ~ST_FIXEDBLOCKS; st 2022 scsi/st.c if ((error = st_mode_select(st, 0)) != 0) st 2024 scsi/st.c st_read(st, buf, readsize, SCSI_SILENT); /* XXX */ st 2025 scsi/st.c if ((error = st_rewind(st, 0, 0)) != 0) { st 2029 scsi/st.c } while (readsize != 1 && readsize > st->blksize); st 58 stand/boot/boot.c int try = 0, st; st 74 stand/boot/boot.c st = read_conf(); st 81 stand/boot/boot.c if (bootprompt && st <= 0) st 85 stand/boot/boot.c st = 0; st 594 sys/conf.h bdev_decl(st); st 595 sys/conf.h cdev_decl(st);