bs 197 compat/linux/linux_ipc.c bsd_to_linux_semid_ds(bs, ls) bs 198 compat/linux/linux_ipc.c struct semid_ds *bs; bs 202 compat/linux/linux_ipc.c bsd_to_linux_ipc_perm(&bs->sem_perm, &ls->l_sem_perm); bs 203 compat/linux/linux_ipc.c ls->l_sem_otime = bs->sem_otime; bs 204 compat/linux/linux_ipc.c ls->l_sem_ctime = bs->sem_ctime; bs 205 compat/linux/linux_ipc.c ls->l_sem_nsems = bs->sem_nsems; bs 206 compat/linux/linux_ipc.c ls->l_sem_base = bs->sem_base; bs 210 compat/linux/linux_ipc.c linux_to_bsd_semid_ds(ls, bs) bs 212 compat/linux/linux_ipc.c struct semid_ds *bs; bs 215 compat/linux/linux_ipc.c linux_to_bsd_ipc_perm(&ls->l_sem_perm, &bs->sem_perm); bs 216 compat/linux/linux_ipc.c bs->sem_otime = ls->l_sem_otime; bs 217 compat/linux/linux_ipc.c bs->sem_ctime = ls->l_sem_ctime; bs 218 compat/linux/linux_ipc.c bs->sem_nsems = ls->l_sem_nsems; bs 219 compat/linux/linux_ipc.c bs->sem_base = ls->l_sem_base; bs 668 compat/linux/linux_ipc.c struct shmid_ds *bsp, bs; bs 680 compat/linux/linux_ipc.c if ((error = copyin((caddr_t) bsp, (caddr_t) &bs, sizeof bs))) bs 682 compat/linux/linux_ipc.c bsd_to_linux_shmid_ds(&bs, &lseg); bs 688 compat/linux/linux_ipc.c linux_to_bsd_shmid_ds(&lseg, &bs); bs 691 compat/linux/linux_ipc.c if ((error = copyout((caddr_t) &bs, (caddr_t) bsp, sizeof bs))) bs 584 compat/linux/linux_signal.c sigset_t bs; bs 603 compat/linux/linux_signal.c linux_old_to_bsd_sigset(&ss, &bs); bs 609 compat/linux/linux_signal.c p->p_sigmask |= bs & ~sigcantmask; bs 613 compat/linux/linux_signal.c p->p_sigmask &= ~bs; bs 617 compat/linux/linux_signal.c p->p_sigmask = bs & ~sigcantmask; bs 643 compat/linux/linux_signal.c sigset_t bs; bs 665 compat/linux/linux_signal.c linux_to_bsd_sigset(&ls, &bs); bs 671 compat/linux/linux_signal.c p->p_sigmask |= bs & ~sigcantmask; bs 675 compat/linux/linux_signal.c p->p_sigmask &= ~bs; bs 679 compat/linux/linux_signal.c p->p_sigmask = bs & ~sigcantmask; bs 749 compat/linux/linux_signal.c sigset_t bs; bs 752 compat/linux/linux_signal.c bs = p->p_siglist & p->p_sigmask; bs 753 compat/linux/linux_signal.c bsd_to_linux_old_sigset(&bs, &ls); bs 768 compat/linux/linux_signal.c sigset_t bs; bs 774 compat/linux/linux_signal.c bs = p->p_siglist & p->p_sigmask; bs 775 compat/linux/linux_signal.c bsd_to_linux_sigset(&bs, &ls); bs 1081 compat/sunos/sunos_misc.c char bs[128]; bs 1083 compat/sunos/sunos_misc.c error = copyinstr(SCARG(uap, bootstr), bs, sizeof(bs), 0); bs 1087 compat/sunos/sunos_misc.c return (reboot2(bsd_howto, bs)); bs 175 compat/svr4/svr4_ipc.c struct semid_ds bs; bs 219 compat/svr4/svr4_ipc.c SCARG(&ap, arg)->buf = stackgap_alloc(&sg, sizeof(bs)); bs 222 compat/svr4/svr4_ipc.c error = copyin(SCARG(&ap, arg)->buf, &bs, sizeof bs); bs 225 compat/svr4/svr4_ipc.c bsd_to_svr4_semid_ds(&bs, &ss); bs 230 compat/svr4/svr4_ipc.c SCARG(&ap, arg)->buf = stackgap_alloc(&sg, sizeof(bs)); bs 234 compat/svr4/svr4_ipc.c svr4_to_bsd_semid_ds(&ss, &bs); bs 235 compat/svr4/svr4_ipc.c error = copyout(&bs, SCARG(&ap, arg)->buf, sizeof bs); bs 242 compat/svr4/svr4_ipc.c SCARG(&ap, arg)->buf = stackgap_alloc(&sg, sizeof(bs)); bs 246 compat/svr4/svr4_ipc.c svr4_to_bsd_semid_ds(&ss, &bs); bs 247 compat/svr4/svr4_ipc.c error = copyout(&bs, SCARG(&ap, arg)->buf, sizeof bs); bs 474 compat/svr4/svr4_ipc.c struct msqid_ds bs; bs 479 compat/svr4/svr4_ipc.c SCARG(&ap, buf) = stackgap_alloc(&sg, sizeof(bs)); bs 486 compat/svr4/svr4_ipc.c error = copyin(SCARG(&ap, buf), &bs, sizeof bs); bs 489 compat/svr4/svr4_ipc.c bsd_to_svr4_msqid_ds(&bs, &ss); bs 497 compat/svr4/svr4_ipc.c svr4_to_bsd_msqid_ds(&ss, &bs); bs 498 compat/svr4/svr4_ipc.c error = copyout(&bs, SCARG(&ap, buf), sizeof bs); bs 508 compat/svr4/svr4_ipc.c svr4_to_bsd_msqid_ds(&ss, &bs); bs 509 compat/svr4/svr4_ipc.c error = copyout(&bs, SCARG(&ap, buf), sizeof bs); bs 665 compat/svr4/svr4_ipc.c struct shmid_ds bs; bs 681 compat/svr4/svr4_ipc.c svr4_to_bsd_shmid_ds(&ss, &bs); bs 682 compat/svr4/svr4_ipc.c error = copyout(&bs, SCARG(&ap, buf), sizeof bs); bs 701 compat/svr4/svr4_ipc.c error = copyin(SCARG(&ap, buf), &bs, sizeof bs); bs 704 compat/svr4/svr4_ipc.c bsd_to_svr4_shmid_ds(&bs, &ss); bs 59 compat/svr4/svr4_ttold.c struct sgttyb *bs); bs 60 compat/svr4/svr4_ttold.c static void bsd_sgttyb_to_svr4_sgttyb(const struct sgttyb *bs, bs 132 compat/svr4/svr4_ttold.c svr4_sgttyb_to_bsd_sgttyb(ss, bs) bs 134 compat/svr4/svr4_ttold.c struct sgttyb *bs; bs 136 compat/svr4/svr4_ttold.c bs->sg_ispeed = ss->sg_ispeed; bs 137 compat/svr4/svr4_ttold.c bs->sg_ospeed = ss->sg_ospeed; bs 138 compat/svr4/svr4_ttold.c bs->sg_erase = ss->sg_erase; bs 139 compat/svr4/svr4_ttold.c bs->sg_kill = ss->sg_kill; bs 140 compat/svr4/svr4_ttold.c bs->sg_flags = ss->sg_flags; bs 145 compat/svr4/svr4_ttold.c bsd_sgttyb_to_svr4_sgttyb(bs, ss) bs 146 compat/svr4/svr4_ttold.c const struct sgttyb *bs; bs 149 compat/svr4/svr4_ttold.c ss->sg_ispeed = bs->sg_ispeed; bs 150 compat/svr4/svr4_ttold.c ss->sg_ospeed = bs->sg_ospeed; bs 151 compat/svr4/svr4_ttold.c ss->sg_erase = bs->sg_erase; bs 152 compat/svr4/svr4_ttold.c ss->sg_kill = bs->sg_kill; bs 153 compat/svr4/svr4_ttold.c ss->sg_flags = bs->sg_flags; bs 243 compat/svr4/svr4_ttold.c struct sgttyb bs; bs 246 compat/svr4/svr4_ttold.c error = (*ctl)(fp, TIOCGETP, (caddr_t) &bs, p); bs 250 compat/svr4/svr4_ttold.c bsd_sgttyb_to_svr4_sgttyb(&bs, &ss); bs 260 compat/svr4/svr4_ttold.c struct sgttyb bs; bs 266 compat/svr4/svr4_ttold.c svr4_sgttyb_to_bsd_sgttyb(&ss, &bs); bs 271 compat/svr4/svr4_ttold.c return (*ctl)(fp, cmd, (caddr_t) &bs, p); bs 1299 dev/audio.c int bs; bs 1312 dev/audio.c bs = parm->sample_rate * audio_blk_ms / 1000 * bs 1315 dev/audio.c ROUNDSIZE(bs); bs 1317 dev/audio.c bs = hw->round_blocksize(sc->hw_hdl, bs); bs 1318 dev/audio.c rb->blksize = bs; bs 1321 dev/audio.c mode == AUMODE_PLAY ? "play" : "record", bs)); bs 2391 dev/ic/ami.c ami_ioctl_setstate(struct ami_softc *sc, struct bioc_setstate *bs) bs 2396 dev/ic/ami.c switch (bs->bs_status) { bs 2406 dev/ic/ami.c off = bs->bs_channel * AMI_MAX_TARGET + bs->bs_target; bs 2408 dev/ic/ami.c if (ami_drv_inq(sc, bs->bs_channel, bs->bs_target, 0, bs 2417 dev/ic/ami.c , DEVNAME(sc), bs->bs_status)); bs 2421 dev/ic/ami.c if ((error = ami_mgmt(sc, AMI_CHSTATE, bs->bs_channel, bs->bs_target, bs 1479 dev/ic/ath.c HAL_BEACON_STATE bs; bs 1483 dev/ic/ath.c bzero(&bs, sizeof(bs)); bs 1484 dev/ic/ath.c bs.bs_intval = intval; bs 1485 dev/ic/ath.c bs.bs_nexttbtt = nexttbtt; bs 1486 dev/ic/ath.c bs.bs_dtimperiod = bs.bs_intval; bs 1487 dev/ic/ath.c bs.bs_nextdtim = nexttbtt; bs 1496 dev/ic/ath.c bs.bs_bmissthreshold = howmany(bmisstime, intval); bs 1497 dev/ic/ath.c if (bs.bs_bmissthreshold > 7) { bs 1498 dev/ic/ath.c bs.bs_bmissthreshold = 7; bs 1499 dev/ic/ath.c } else if (bs.bs_bmissthreshold <= 0) { bs 1500 dev/ic/ath.c bs.bs_bmissthreshold = 1; bs 1512 dev/ic/ath.c bs.bs_sleepduration = bs 1513 dev/ic/ath.c roundup(MS_TO_TU(100), bs.bs_intval); bs 1514 dev/ic/ath.c if (bs.bs_sleepduration > bs.bs_dtimperiod) { bs 1515 dev/ic/ath.c bs.bs_sleepduration = bs 1516 dev/ic/ath.c roundup(bs.bs_sleepduration, bs.bs_dtimperiod); bs 1523 dev/ic/ath.c , bs.bs_intval bs 1524 dev/ic/ath.c , bs.bs_nexttbtt bs 1525 dev/ic/ath.c , bs.bs_dtimperiod bs 1526 dev/ic/ath.c , bs.bs_nextdtim bs 1527 dev/ic/ath.c , bs.bs_bmissthreshold bs 1528 dev/ic/ath.c , bs.bs_sleepduration bs 1531 dev/ic/ath.c ath_hal_set_beacon_timers(ah, &bs, 0/*XXX*/, 0, 0); bs 1550 dev/ic/gdt_common.c gdt_ioctl_setstate(struct gdt_softc *sc, struct bioc_setstate *bs) bs 1611 dev/ic/mfi.c mfi_ioctl_setstate(struct mfi_softc *sc, struct bioc_setstate *bs) bs 1619 dev/ic/mfi.c bs->bs_status); bs 1628 dev/ic/mfi.c if (bs->bs_channel == pd->mpl_address[i].mpa_enc_index && bs 1629 dev/ic/mfi.c bs->bs_target == pd->mpl_address[i].mpa_enc_slot) { bs 1641 dev/ic/mfi.c switch (bs->bs_status) { bs 1663 dev/ic/mfi.c "opcode %x\n", DEVNAME(sc), bs->bs_status); bs 399 dev/pci/esa.c esa_round_blocksize(void *hdl, int bs) bs 124 dev/raidframe/rf_disks.c int bs, ret; bs 178 dev/raidframe/rf_disks.c bs = 0; bs 182 dev/raidframe/rf_disks.c bs = disks[r][c].blockSize; bs 194 dev/raidframe/rf_disks.c if (bs & i) bs 198 dev/raidframe/rf_disks.c " power of 2.\n", bs); bs 217 dev/raidframe/rf_disks.c if (disks[r][c].blockSize != bs) { bs 235 dev/raidframe/rf_disks.c raidPtr->logBytesPerSector = ffs(bs) - 1; bs 236 dev/raidframe/rf_disks.c raidPtr->bytesPerSector = bs; bs 237 dev/raidframe/rf_disks.c raidPtr->sectorMask = bs - 1; bs 257 dev/raidframe/rf_disks.c unsigned int bs; bs 290 dev/raidframe/rf_disks.c bs = 1 << raidPtr->logBytesPerSector; bs 292 dev/raidframe/rf_disks.c if (disks[i].blockSize != bs) { bs 295 dev/raidframe/rf_disks.c disks[i].blockSize, disks[i].devname, bs); bs 398 dev/raidframe/rf_disks.c int bs, ret; bs 550 dev/raidframe/rf_disks.c bs = diskPtr->blockSize; bs 623 dev/raidframe/rf_disks.c raidPtr->logBytesPerSector = ffs(bs) - 1; bs 624 dev/raidframe/rf_disks.c raidPtr->bytesPerSector = bs; bs 625 dev/raidframe/rf_disks.c raidPtr->sectorMask = bs - 1; bs 1062 dev/raidframe/rf_disks.c unsigned int bs; bs 1103 dev/raidframe/rf_disks.c bs = 1 << raidPtr->logBytesPerSector; bs 1104 dev/raidframe/rf_disks.c if (disks[spare_number].blockSize != bs) { bs 1108 dev/raidframe/rf_disks.c disks[spare_number].devname, bs); bs 198 dev/sdmmc/sdmmcreg.h int shift, bs, bc; bs 209 dev/sdmmc/sdmmcreg.h bs = start % 8; bs 210 dev/sdmmc/sdmmcreg.h bc = 8 - bs; bs 213 dev/sdmmc/sdmmcreg.h dst |= (*sp++ >> bs) << shift; bs 697 dev/softraid.c sr_ioctl_setstate(struct sr_softc *sc, struct bioc_setstate *bs) bs 709 dev/softraid.c if (vol != bs->bs_channel) bs 713 dev/softraid.c if (bs->bs_target >= sd->sd_vol.sv_meta.svm_no_chunk) bs 716 dev/softraid.c switch (bs->bs_status) { bs 730 dev/softraid.c printf("invalid state %d\n", bs->bs_status); bs 735 dev/softraid.c bs->bs_channel, bs->bs_target, bs->bs_status, state); bs 737 dev/softraid.c sd->sd_set_chunk_state(sd, bs->bs_target, bs->bs_status); bs 786 net/bpf.c struct bpf_stat *bs = (struct bpf_stat *)addr; bs 788 net/bpf.c bs->bs_recv = d->bd_rcount; bs 789 net/bpf.c bs->bs_drop = d->bd_dcount; bs 301 net/bridgestp.c bstp_transmit(struct bstp_state *bs, struct bstp_port *bp) bs 303 net/bridgestp.c if ((bs->bs_ifflags & IFF_RUNNING) == 0 || bp == NULL) bs 312 net/bridgestp.c bstp_hello_timer_expiry(bs, bp); bs 315 net/bridgestp.c if (bp->bp_txcount > bs->bs_txholdcount) bs 320 net/bridgestp.c bstp_transmit_bpdu(bs, bp); bs 325 net/bridgestp.c bstp_transmit_bpdu(bs, bp); bs 330 net/bridgestp.c bstp_transmit_tcn(bs, bp); bs 339 net/bridgestp.c bstp_transmit_bpdu(struct bstp_state *bs, struct bstp_port *bp) bs 368 net/bridgestp.c bstp_send_bpdu(bs, bp, &bpdu); bs 372 net/bridgestp.c bstp_transmit_tcn(struct bstp_state *bs, struct bstp_port *bp) bs 483 net/bridgestp.c bstp_send_bpdu(struct bstp_state *bs, struct bstp_port *bp, bs 596 net/bridgestp.c bstp_input(struct bstp_state *bs, struct bstp_port *bp, bs 602 net/bridgestp.c if (bs == NULL || bp == NULL || bp->bp_active == 0) bs 646 net/bridgestp.c bstp_received_stp(bs, bp, &m, &tpdu); bs 649 net/bridgestp.c bstp_received_rstp(bs, bp, &m, &tpdu); bs 659 net/bridgestp.c bstp_received_stp(struct bstp_state *bs, struct bstp_port *bp, bs 669 net/bridgestp.c bstp_received_tcn(bs, bp, &tu); bs 678 net/bridgestp.c bstp_received_bpdu(bs, bp, cu); bs 684 net/bridgestp.c bstp_received_rstp(struct bstp_state *bs, struct bstp_port *bp, bs 699 net/bridgestp.c bstp_received_bpdu(bs, bp, cu); bs 703 net/bridgestp.c bstp_received_tcn(struct bstp_state *bs, struct bstp_port *bp, bs 711 net/bridgestp.c bstp_received_bpdu(struct bstp_state *bs, struct bstp_port *bp, bs 727 net/bridgestp.c bs->bs_allsynced = 0; bs 755 net/bridgestp.c bstp_assign_roles(bs); bs 799 net/bridgestp.c bstp_update_state(bs, bp); bs 908 net/bridgestp.c bstp_assign_roles(struct bstp_state *bs) bs 914 net/bridgestp.c bs->bs_root_pv = bs->bs_bridge_pv; bs 915 net/bridgestp.c bs->bs_root_msg_age = 0; bs 916 net/bridgestp.c bs->bs_root_max_age = bs->bs_bridge_max_age; bs 917 net/bridgestp.c bs->bs_root_fdelay = bs->bs_bridge_fdelay; bs 918 net/bridgestp.c bs->bs_root_htime = bs->bs_bridge_htime; bs 919 net/bridgestp.c bs->bs_root_port = NULL; bs 922 net/bridgestp.c LIST_FOREACH(bp, &bs->bs_bplist, bp_next) { bs 935 net/bridgestp.c bs->bs_bridge_pv.pv_dbridge_id) == 0 && bs 936 net/bridgestp.c bstp_info_cmp(&bs->bs_root_pv, &pv) == INFO_BETTER) { bs 938 net/bridgestp.c bs->bs_root_pv = pv; bs 939 net/bridgestp.c bs->bs_root_msg_age = bp->bp_port_msg_age + bs 941 net/bridgestp.c bs->bs_root_max_age = bp->bp_port_max_age; bs 942 net/bridgestp.c bs->bs_root_fdelay = bp->bp_port_fdelay; bs 943 net/bridgestp.c bs->bs_root_htime = bp->bp_port_htime; bs 948 net/bridgestp.c LIST_FOREACH(bp, &bs->bs_bplist, bp_next) { bs 950 net/bridgestp.c bp->bp_desg_pv.pv_root_id = bs->bs_root_pv.pv_root_id; bs 951 net/bridgestp.c bp->bp_desg_pv.pv_cost = bs->bs_root_pv.pv_cost; bs 952 net/bridgestp.c bp->bp_desg_pv.pv_dbridge_id = bs->bs_bridge_pv.pv_dbridge_id; bs 957 net/bridgestp.c bp->bp_desg_msg_age = bs->bs_root_msg_age; bs 958 net/bridgestp.c bp->bp_desg_max_age = bs->bs_root_max_age; bs 959 net/bridgestp.c bp->bp_desg_fdelay = bs->bs_root_fdelay; bs 960 net/bridgestp.c bp->bp_desg_htime = bs->bs_bridge_htime; bs 993 net/bridgestp.c bs->bs_root_port = bp; bs 1005 net/bridgestp.c bs->bs_bridge_pv.pv_dbridge_id)) { bs 1027 net/bridgestp.c bstp_update_state(struct bstp_state *bs, struct bstp_port *bp) bs 1033 net/bridgestp.c if (!bs->bs_allsynced) { bs 1035 net/bridgestp.c LIST_FOREACH(bp2, &bs->bs_bplist, bp_next) { bs 1042 net/bridgestp.c bs->bs_allsynced = synced; bs 1045 net/bridgestp.c bstp_update_roles(bs, bp); bs 1050 net/bridgestp.c bstp_update_roles(struct bstp_state *bs, struct bstp_port *bp) bs 1064 net/bridgestp.c if ((bs->bs_allsynced && !bp->bp_agree) || bs 1074 net/bridgestp.c bstp_set_all_sync(bs); bs 1091 net/bridgestp.c bstp_set_all_reroot(bs); bs 1095 net/bridgestp.c if ((bs->bs_allsynced && !bp->bp_agree) || bs 1105 net/bridgestp.c bstp_set_all_sync(bs); bs 1112 net/bridgestp.c (bstp_rerooted(bs, bp) && bs 1198 net/bridgestp.c bstp_transmit(bs, bp); bs 1261 net/bridgestp.c struct bstp_state *bs = bp->bp_bs; bs 1271 net/bridgestp.c bs->bs_allsynced = 0; bs 1290 net/bridgestp.c struct bstp_state *bs = bp->bp_bs; bs 1293 net/bridgestp.c LIST_FOREACH(bp2, &bs->bs_bplist, bp_next) { bs 1301 net/bridgestp.c bstp_set_all_reroot(struct bstp_state *bs) bs 1305 net/bridgestp.c LIST_FOREACH(bp, &bs->bs_bplist, bp_next) bs 1310 net/bridgestp.c bstp_set_all_sync(struct bstp_state *bs) bs 1314 net/bridgestp.c LIST_FOREACH(bp, &bs->bs_bplist, bp_next) { bs 1319 net/bridgestp.c bs->bs_allsynced = 0; bs 1359 net/bridgestp.c struct bstp_state *bs = bp->bp_bs; bs 1392 net/bridgestp.c bs->bs_allsynced = 0; bs 1433 net/bridgestp.c struct bstp_state *bs = bp->bp_bs; bs 1446 net/bridgestp.c bs->bs_migration_delay); bs 1461 net/bridgestp.c struct bstp_state *bs = bp->bp_bs; bs 1494 net/bridgestp.c bstp_transmit(bs, bp); bs 1495 net/bridgestp.c getmicrotime(&bs->bs_last_tc_time); bs 1537 net/bridgestp.c struct bstp_state *bs = bp->bp_bs; bs 1550 net/bridgestp.c bs->bs_root_max_age + bs->bs_root_fdelay); bs 1568 net/bridgestp.c bstp_rerooted(struct bstp_state *bs, struct bstp_port *bp) bs 1573 net/bridgestp.c LIST_FOREACH(bp2, &bs->bs_bplist, bp_next) { bs 1645 net/bridgestp.c struct bstp_state *bs; bs 1663 net/bridgestp.c if ((bs = bp->bp_bs) == NULL) bs 1667 net/bridgestp.c bstp_ifupdstatus(bs, bp); bs 1668 net/bridgestp.c bstp_update_state(bs, bp); bs 1674 net/bridgestp.c bstp_ifupdstatus(struct bstp_state *bs, struct bstp_port *bp) bs 1692 net/bridgestp.c bstp_enable_port(bs, bp); bs 1695 net/bridgestp.c bstp_disable_port(bs, bp); bs 1700 net/bridgestp.c bstp_enable_port(struct bstp_state *bs, struct bstp_port *bp) bs 1703 net/bridgestp.c bstp_assign_roles(bs); bs 1707 net/bridgestp.c bstp_disable_port(struct bstp_state *bs, struct bstp_port *bp) bs 1711 net/bridgestp.c bstp_assign_roles(bs); bs 1717 net/bridgestp.c struct bstp_state *bs = (struct bstp_state *)arg; bs 1722 net/bridgestp.c if ((bs->bs_ifflags & IFF_RUNNING) == 0) { bs 1728 net/bridgestp.c if (bstp_timer_expired(&bs->bs_link_timer)) { bs 1729 net/bridgestp.c LIST_FOREACH(bp, &bs->bs_bplist, bp_next) bs 1730 net/bridgestp.c bstp_ifupdstatus(bs, bp); bs 1731 net/bridgestp.c bstp_timer_start(&bs->bs_link_timer, BSTP_LINK_TIMER); bs 1734 net/bridgestp.c LIST_FOREACH(bp, &bs->bs_bplist, bp_next) { bs 1742 net/bridgestp.c bstp_hello_timer_expiry(bs, bp); bs 1745 net/bridgestp.c bstp_message_age_expiry(bs, bp); bs 1748 net/bridgestp.c bstp_migrate_delay_expiry(bs, bp); bs 1751 net/bridgestp.c bstp_edge_delay_expiry(bs, bp); bs 1754 net/bridgestp.c bstp_update_state(bs, bp); bs 1760 net/bridgestp.c if (bs->bs_ifp->if_flags & IFF_RUNNING) bs 1761 net/bridgestp.c timeout_add(&bs->bs_bstptimeout, hz); bs 1803 net/bridgestp.c bstp_hello_timer_expiry(struct bstp_state *bs, struct bstp_port *bp) bs 1811 net/bridgestp.c bstp_transmit(bs, bp); bs 1816 net/bridgestp.c bstp_message_age_expiry(struct bstp_state *bs, struct bstp_port *bp) bs 1820 net/bridgestp.c bstp_assign_roles(bs); bs 1826 net/bridgestp.c bstp_migrate_delay_expiry(struct bstp_state *bs, struct bstp_port *bp) bs 1832 net/bridgestp.c bstp_edge_delay_expiry(struct bstp_state *bs, struct bstp_port *bp) bs 1871 net/bridgestp.c bstp_initialization(struct bstp_state *bs) bs 1877 net/bridgestp.c if (LIST_EMPTY(&bs->bs_bplist)) { bs 1878 net/bridgestp.c bstp_stop(bs); bs 1906 net/bridgestp.c bs->bs_bridge_pv.pv_dbridge_id = bs 1907 net/bridgestp.c (((u_int64_t)bs->bs_bridge_priority) << 48) | bs 1915 net/bridgestp.c bs->bs_bridge_pv.pv_root_id = bs->bs_bridge_pv.pv_dbridge_id; bs 1916 net/bridgestp.c bs->bs_bridge_pv.pv_cost = 0; bs 1917 net/bridgestp.c bs->bs_bridge_pv.pv_dport_id = 0; bs 1918 net/bridgestp.c bs->bs_bridge_pv.pv_port_id = 0; bs 1920 net/bridgestp.c if (!timeout_initialized(&bs->bs_bstptimeout)) bs 1921 net/bridgestp.c timeout_set(&bs->bs_bstptimeout, bstp_tick, bs); bs 1922 net/bridgestp.c if (bs->bs_ifflags & IFF_RUNNING && bs 1923 net/bridgestp.c !timeout_pending(&bs->bs_bstptimeout)) bs 1924 net/bridgestp.c timeout_add(&bs->bs_bstptimeout, hz); bs 1926 net/bridgestp.c LIST_FOREACH(bp, &bs->bs_bplist, bp_next) { bs 1929 net/bridgestp.c bstp_ifupdstatus(bs, bp); bs 1932 net/bridgestp.c bstp_assign_roles(bs); bs 1933 net/bridgestp.c bstp_timer_start(&bs->bs_link_timer, BSTP_LINK_TIMER); bs 1939 net/bridgestp.c struct bstp_state *bs; bs 1943 net/bridgestp.c bs = (struct bstp_state *)malloc(sizeof(*bs), M_DEVBUF, M_WAITOK); bs 1944 net/bridgestp.c bzero(bs, sizeof(*bs)); bs 1945 net/bridgestp.c LIST_INIT(&bs->bs_bplist); bs 1947 net/bridgestp.c bs->bs_ifp = ifp; bs 1948 net/bridgestp.c bs->bs_bridge_max_age = BSTP_DEFAULT_MAX_AGE; bs 1949 net/bridgestp.c bs->bs_bridge_htime = BSTP_DEFAULT_HELLO_TIME; bs 1950 net/bridgestp.c bs->bs_bridge_fdelay = BSTP_DEFAULT_FORWARD_DELAY; bs 1951 net/bridgestp.c bs->bs_bridge_priority = BSTP_DEFAULT_BRIDGE_PRIORITY; bs 1952 net/bridgestp.c bs->bs_hold_time = BSTP_DEFAULT_HOLD_TIME; bs 1953 net/bridgestp.c bs->bs_migration_delay = BSTP_DEFAULT_MIGRATE_DELAY; bs 1954 net/bridgestp.c bs->bs_txholdcount = BSTP_DEFAULT_HOLD_COUNT; bs 1955 net/bridgestp.c bs->bs_protover = BSTP_PROTO_RSTP; /* STP instead of RSTP? */ bs 1957 net/bridgestp.c getmicrotime(&bs->bs_last_tc_time); bs 1959 net/bridgestp.c LIST_INSERT_HEAD(&bstp_list, bs, bs_list); bs 1962 net/bridgestp.c return (bs); bs 1966 net/bridgestp.c bstp_destroy(struct bstp_state *bs) bs 1970 net/bridgestp.c if (bs == NULL) bs 1973 net/bridgestp.c if (!LIST_EMPTY(&bs->bs_bplist)) bs 1977 net/bridgestp.c LIST_REMOVE(bs, bs_list); bs 1978 net/bridgestp.c free(bs, M_DEVBUF); bs 1983 net/bridgestp.c bstp_stop(struct bstp_state *bs) bs 1987 net/bridgestp.c LIST_FOREACH(bp, &bs->bs_bplist, bp_next) bs 1990 net/bridgestp.c if (timeout_initialized(&bs->bs_bstptimeout) && bs 1991 net/bridgestp.c timeout_pending(&bs->bs_bstptimeout)) bs 1992 net/bridgestp.c timeout_del(&bs->bs_bstptimeout); bs 1996 net/bridgestp.c bstp_add(struct bstp_state *bs, struct ifnet *ifp) bs 2014 net/bridgestp.c bp->bp_bs = bs; bs 2022 net/bridgestp.c bstp_set_port_proto(bp, bs->bs_protover); bs 2027 net/bridgestp.c LIST_INSERT_HEAD(&bs->bs_bplist, bp, bp_next); bs 2031 net/bridgestp.c bstp_initialization(bs); bs 2032 net/bridgestp.c bstp_update_roles(bs, bp); bs 2045 net/bridgestp.c struct bstp_state *bs = bp->bp_bs; bs 2058 net/bridgestp.c bstp_initialization(bs); bs 2062 net/bridgestp.c bstp_getstate(struct bstp_state *bs, struct bstp_port *bp) bs 2066 net/bridgestp.c if (bs->bs_protover != BSTP_PROTO_STP) bs 2087 net/bridgestp.c struct bstp_state *bs; bs 2091 net/bridgestp.c bs = bp->bp_bs; bs 2102 net/bridgestp.c bstp_edge_delay_expiry(bs, bp); bs 2119 net/bridgestp.c bstp_ifupdstatus(bs, bp); bs 2134 net/bridgestp.c struct bstp_state *bs = sc->sc_stp; bs 2176 net/bridgestp.c ifbp->ifbrp_prio = bs->bs_bridge_priority; bs 2187 net/bridgestp.c bs->bs_bridge_priority = val; bs 2191 net/bridgestp.c ifbp->ifbrp_maxage = bs->bs_bridge_max_age >> 8; bs 2203 net/bridgestp.c bs->bs_bridge_max_age = val; bs 2207 net/bridgestp.c ifbp->ifbrp_hellotime = bs->bs_bridge_htime >> 8; bs 2216 net/bridgestp.c if (bs->bs_protover != BSTP_PROTO_STP) { bs 2224 net/bridgestp.c bs->bs_bridge_htime = val; bs 2228 net/bridgestp.c ifbp->ifbrp_fwddelay = bs->bs_bridge_fdelay >> 8; bs 2241 net/bridgestp.c bs->bs_bridge_fdelay = val; bs 2251 net/bridgestp.c bs->bs_txholdcount = val; bs 2252 net/bridgestp.c LIST_FOREACH(bp, &bs->bs_bplist, bp_next) bs 2287 net/bridgestp.c bs->bs_protover = val; bs 2288 net/bridgestp.c bs->bs_bridge_htime = BSTP_DEFAULT_HELLO_TIME; bs 2289 net/bridgestp.c LIST_FOREACH(bp, &bs->bs_bplist, bp_next) { bs 2293 net/bridgestp.c bstp_set_port_proto(bp, bs->bs_protover); bs 2309 net/bridgestp.c bstp_initialization(bs); bs 297 net/if_bridge.c struct bstp_state *bs = sc->sc_stp; bs 489 net/if_bridge.c req->ifbr_state = bstp_getstate(bs, bp); bs 688 net/if_bridge.c if ((bp = bs->bs_root_port) == NULL) bs 692 net/if_bridge.c brop->ifbop_maxage = bs->bs_bridge_max_age >> 8; bs 693 net/if_bridge.c brop->ifbop_hellotime = bs->bs_bridge_htime >> 8; bs 694 net/if_bridge.c brop->ifbop_fwddelay = bs->bs_bridge_fdelay >> 8; bs 695 net/if_bridge.c brop->ifbop_holdcount = bs->bs_txholdcount; bs 696 net/if_bridge.c brop->ifbop_priority = bs->bs_bridge_priority; bs 697 net/if_bridge.c brop->ifbop_protocol = bs->bs_protover; bs 698 net/if_bridge.c brop->ifbop_root_bridge = bs->bs_root_pv.pv_root_id; bs 699 net/if_bridge.c brop->ifbop_root_path_cost = bs->bs_root_pv.pv_cost; bs 700 net/if_bridge.c brop->ifbop_root_port = bs->bs_root_pv.pv_port_id; bs 701 net/if_bridge.c brop->ifbop_desg_bridge = bs->bs_root_pv.pv_dbridge_id; bs 702 net/if_bridge.c brop->ifbop_last_tc_time.tv_sec = bs->bs_last_tc_time.tv_sec; bs 703 net/if_bridge.c brop->ifbop_last_tc_time.tv_usec = bs->bs_last_tc_time.tv_usec; bs 792 net/if_bridge.c struct bstp_state *bs = sc->sc_stp; bs 829 net/if_bridge.c breq->ifbr_root_bridge = bs->bs_root_pv.pv_root_id; bs 830 net/if_bridge.c breq->ifbr_root_cost = bs->bs_root_pv.pv_cost; bs 831 net/if_bridge.c breq->ifbr_root_port = bs->bs_root_pv.pv_port_id; bs 832 net/if_bridge.c breq->ifbr_desg_bridge = bs->bs_root_pv.pv_dbridge_id; bs 833 net/if_bridge.c breq->ifbr_desg_port = bs->bs_root_pv.pv_dport_id;