state 594 arch/i386/i386/apm.c apm_set_powstate(u_int dev, u_int state) state 598 arch/i386/i386/apm.c if (!apm_cd.cd_ndevs || (apm_minver == 0 && state > APM_SYS_OFF)) state 601 arch/i386/i386/apm.c regs.cx = state; state 283 arch/i386/i386/esm.c struct esm_wdog_state state; state 304 arch/i386/i386/esm.c memset(&state, 0, sizeof(state)); state 333 arch/i386/i386/esm.c state.cmd = ESM2_CMD_HWDC; state 334 arch/i386/i386/esm.c state.subcmd = ESM2_HWDC_WRITE_STATE; state 335 arch/i386/i386/esm.c state.state = (period == 0) ? 0 : 1; state 338 arch/i386/i386/esm.c esm_cmd(sc, &state, sizeof(state), NULL, 0, 1, 0); state 110 arch/i386/i386/esmreg.h u_int8_t state; state 217 arch/i386/i386/powernow-k7.c struct k7pnow_state state; state 220 arch/i386/i386/powernow-k7.c state.fid = *p++; state 221 arch/i386/i386/powernow-k7.c state.vid = *p++; state 222 arch/i386/i386/powernow-k7.c state.freq = k7pnow_fid_to_mult[state.fid]/10 * cstate->fsb; state 224 arch/i386/i386/powernow-k7.c (k7pnow_fid_to_mult[state.fid] % 10) == 5) state 228 arch/i386/i386/powernow-k7.c while (j > 0 && cstate->state_table[j - 1].freq > state.freq) { state 234 arch/i386/i386/powernow-k7.c memcpy(&cstate->state_table[j], &state, state 302 arch/i386/i386/powernow-k7.c struct k7pnow_state state; state 311 arch/i386/i386/powernow-k7.c state.fid = PN7_ACPI_CTRL_TO_FID(ctrl); state 312 arch/i386/i386/powernow-k7.c state.vid = PN7_ACPI_CTRL_TO_VID(ctrl); state 314 arch/i386/i386/powernow-k7.c state.freq = pss[n].pss_core_freq; state 316 arch/i386/i386/powernow-k7.c while (j > 0 && cstate->state_table[j - 1].freq > state.freq) { state 322 arch/i386/i386/powernow-k7.c memcpy(&cstate->state_table[j], &state, state 384 arch/i386/i386/powernow-k7.c struct k7pnow_state *state; state 438 arch/i386/i386/powernow-k7.c state = &cstate->state_table[i-1]; state 439 arch/i386/i386/powernow-k7.c printf(" %d", state->freq); state 278 arch/i386/i386/powernow-k8.c struct k8pnow_state state; state 281 arch/i386/i386/powernow-k8.c state.fid = *p++; state 282 arch/i386/i386/powernow-k8.c state.vid = *p++; state 288 arch/i386/i386/powernow-k8.c state.freq = 800 + state.fid * 100; state 290 arch/i386/i386/powernow-k8.c while (j > 0 && cstate->state_table[j - 1].freq > state.freq) { state 296 arch/i386/i386/powernow-k8.c memcpy(&cstate->state_table[j], &state, state 353 arch/i386/i386/powernow-k8.c struct k8pnow_state state; state 363 arch/i386/i386/powernow-k8.c state.fid = PN8_ACPI_CTRL_TO_FID(ctrl); state 364 arch/i386/i386/powernow-k8.c state.vid = PN8_ACPI_CTRL_TO_VID(ctrl); state 366 arch/i386/i386/powernow-k8.c state.freq = pss[n].pss_core_freq; state 368 arch/i386/i386/powernow-k8.c while (j > 0 && cstate->state_table[j - 1].freq > state.freq) { state 374 arch/i386/i386/powernow-k8.c memcpy(&cstate->state_table[j], &state, state 434 arch/i386/i386/powernow-k8.c struct k8pnow_state *state; state 489 arch/i386/i386/powernow-k8.c state = &cstate->state_table[i-1]; state 490 arch/i386/i386/powernow-k8.c printf(" %d", state->freq); state 99 arch/i386/isa/joy.c int state = 0, x = 0, y = 0; state 107 arch/i386/isa/joy.c state = inb(port); state 109 arch/i386/isa/joy.c state >>= 2; state 113 arch/i386/isa/joy.c if (!x && !(state & 0x01)) state 115 arch/i386/isa/joy.c if (!y && !(state & 0x02)) state 123 arch/i386/isa/joy.c state >>= 4; state 124 arch/i386/isa/joy.c c.b1 = ~state & 1; state 125 arch/i386/isa/joy.c c.b2 = ~(state >> 1) & 1; state 237 arch/i386/pci/ichpcib.c u_int8_t state, ostate, cntl; state 248 arch/i386/pci/ichpcib.c state = bus_space_read_1(sc->sc_pm_iot, sc->sc_pm_ioh, ICH_PM_SS_CNTL); state 249 arch/i386/pci/ichpcib.c ostate = state; state 253 arch/i386/pci/ichpcib.c state |= ICH_PM_SS_STATE_LOW; state 255 arch/i386/pci/ichpcib.c state &= ~ICH_PM_SS_STATE_LOW; state 263 arch/i386/pci/ichpcib.c if (state != ostate) { state 272 arch/i386/pci/ichpcib.c state); state 101 arch/i386/pci/piixpcib.c int state; state 215 arch/i386/pci/piixpcib.c rv = piixpcib_getset_state(sc, &sc->state, PIIXPCIB_GETSTATE); state 258 arch/i386/pci/piixpcib.c piixpcib_getset_state(struct piixpcib_softc *sc, int *state, int function) state 281 arch/i386/pci/piixpcib.c "c" (*state), state 286 arch/i386/pci/piixpcib.c *state = new_state & 1; state 324 arch/i386/pci/piixpcib.c if (sc->state == new_state) state 345 arch/i386/pci/piixpcib.c sc->state = new_state; state 24 crypto/arc4.c u_int8_t t = ctx->state[x]; \ state 25 crypto/arc4.c ctx->state[x] = ctx->state[y]; \ state 26 crypto/arc4.c ctx->state[y] = t; \ state 37 crypto/arc4.c ctx->state[i] = i; state 39 crypto/arc4.c y = (key[x] + ctx->state[i] + y) % RC4STATE; state 54 crypto/arc4.c ctx->y = (ctx->state[ctx->x] + ctx->y) % RC4STATE; state 56 crypto/arc4.c dst[i] = src[i] ^ ctx->state[ state 57 crypto/arc4.c (ctx->state[ctx->x] + ctx->state[ctx->y]) % RC4STATE]; state 66 crypto/arc4.c ctx->y = (ctx->state[ctx->x] + ctx->y) % RC4STATE; state 23 crypto/arc4.h u_int8_t state[RC4STATE]; state 54 crypto/md5.c ctx->state[0] = 0x67452301; state 55 crypto/md5.c ctx->state[1] = 0xefcdab89; state 56 crypto/md5.c ctx->state[2] = 0x98badcfe; state 57 crypto/md5.c ctx->state[3] = 0x10325476; state 79 crypto/md5.c MD5Transform(ctx->state, ctx->buffer); state 87 crypto/md5.c MD5Transform(ctx->state, input); state 122 crypto/md5.c PUT_32BIT_LE(digest + i * 4, ctx->state[i]); state 146 crypto/md5.c MD5Transform(u_int32_t state[4], const u_int8_t block[MD5_BLOCK_LENGTH]) state 162 crypto/md5.c a = state[0]; state 163 crypto/md5.c b = state[1]; state 164 crypto/md5.c c = state[2]; state 165 crypto/md5.c d = state[3]; state 235 crypto/md5.c state[0] += a; state 236 crypto/md5.c state[1] += b; state 237 crypto/md5.c state[2] += c; state 238 crypto/md5.c state[3] += d; state 22 crypto/md5.h u_int32_t state[4]; /* state */ state 96 crypto/rmd160.c ctx->state[0] = H0; state 97 crypto/rmd160.c ctx->state[1] = H1; state 98 crypto/rmd160.c ctx->state[2] = H2; state 99 crypto/rmd160.c ctx->state[3] = H3; state 100 crypto/rmd160.c ctx->state[4] = H4; state 116 crypto/rmd160.c RMD160Transform(ctx->state, ctx->buffer); state 122 crypto/rmd160.c RMD160Transform(ctx->state, input+off); state 151 crypto/rmd160.c PUT_32BIT_LE(digest + i*4, ctx->state[i]); state 157 crypto/rmd160.c RMD160Transform(u_int32_t state[5], const u_char block[64]) state 174 crypto/rmd160.c a = state[0]; state 175 crypto/rmd160.c b = state[1]; state 176 crypto/rmd160.c c = state[2]; state 177 crypto/rmd160.c d = state[3]; state 178 crypto/rmd160.c e = state[4]; state 268 crypto/rmd160.c a = state[0]; state 269 crypto/rmd160.c b = state[1]; state 270 crypto/rmd160.c c = state[2]; state 271 crypto/rmd160.c d = state[3]; state 272 crypto/rmd160.c e = state[4]; state 360 crypto/rmd160.c t = state[1] + cc + d; state 361 crypto/rmd160.c state[1] = state[2] + dd + e; state 362 crypto/rmd160.c state[2] = state[3] + ee + a; state 363 crypto/rmd160.c state[3] = state[4] + aa + b; state 364 crypto/rmd160.c state[4] = state[0] + bb + c; state 365 crypto/rmd160.c state[0] = t; state 30 crypto/rmd160.h u_int32_t state[5]; /* state */ state 50 crypto/sha1.c SHA1Transform(u_int32_t state[5], unsigned char buffer[SHA1_BLOCK_LENGTH]) state 67 crypto/sha1.c a = state[0]; state 68 crypto/sha1.c b = state[1]; state 69 crypto/sha1.c c = state[2]; state 70 crypto/sha1.c d = state[3]; state 71 crypto/sha1.c e = state[4]; state 96 crypto/sha1.c state[0] += a; state 97 crypto/sha1.c state[1] += b; state 98 crypto/sha1.c state[2] += c; state 99 crypto/sha1.c state[3] += d; state 100 crypto/sha1.c state[4] += e; state 113 crypto/sha1.c context->state[0] = 0x67452301; state 114 crypto/sha1.c context->state[1] = 0xEFCDAB89; state 115 crypto/sha1.c context->state[2] = 0x98BADCFE; state 116 crypto/sha1.c context->state[3] = 0x10325476; state 117 crypto/sha1.c context->state[4] = 0xC3D2E1F0; state 133 crypto/sha1.c SHA1Transform(context->state, context->buffer); state 135 crypto/sha1.c SHA1Transform(context->state, &data[i]); state 164 crypto/sha1.c digest[i] = (unsigned char)((context->state[i >> 2] >> state 171 crypto/sha1.c bzero(context->state, 20); state 175 crypto/sha1.c SHA1Transform(context->state, context->buffer); state 16 crypto/sha1.h u_int32_t state[5]; state 22 crypto/sha1.h void SHA1Transform(u_int32_t state[5], unsigned char buffer[SHA1_BLOCK_LENGTH]); state 276 crypto/sha2.c bcopy(sha256_initial_hash_value, context->state, SHA256_DIGEST_LENGTH); state 317 crypto/sha2.c a = context->state[0]; state 318 crypto/sha2.c b = context->state[1]; state 319 crypto/sha2.c c = context->state[2]; state 320 crypto/sha2.c d = context->state[3]; state 321 crypto/sha2.c e = context->state[4]; state 322 crypto/sha2.c f = context->state[5]; state 323 crypto/sha2.c g = context->state[6]; state 324 crypto/sha2.c h = context->state[7]; state 352 crypto/sha2.c context->state[0] += a; state 353 crypto/sha2.c context->state[1] += b; state 354 crypto/sha2.c context->state[2] += c; state 355 crypto/sha2.c context->state[3] += d; state 356 crypto/sha2.c context->state[4] += e; state 357 crypto/sha2.c context->state[5] += f; state 358 crypto/sha2.c context->state[6] += g; state 359 crypto/sha2.c context->state[7] += h; state 377 crypto/sha2.c a = context->state[0]; state 378 crypto/sha2.c b = context->state[1]; state 379 crypto/sha2.c c = context->state[2]; state 380 crypto/sha2.c d = context->state[3]; state 381 crypto/sha2.c e = context->state[4]; state 382 crypto/sha2.c f = context->state[5]; state 383 crypto/sha2.c g = context->state[6]; state 384 crypto/sha2.c h = context->state[7]; state 430 crypto/sha2.c context->state[0] += a; state 431 crypto/sha2.c context->state[1] += b; state 432 crypto/sha2.c context->state[2] += c; state 433 crypto/sha2.c context->state[3] += d; state 434 crypto/sha2.c context->state[4] += e; state 435 crypto/sha2.c context->state[5] += f; state 436 crypto/sha2.c context->state[6] += g; state 437 crypto/sha2.c context->state[7] += h; state 539 crypto/sha2.c REVERSE32(context->state[j],context->state[j]); state 540 crypto/sha2.c *d++ = context->state[j]; state 544 crypto/sha2.c bcopy(context->state, d, SHA256_DIGEST_LENGTH); state 560 crypto/sha2.c bcopy(sha512_initial_hash_value, context->state, SHA512_DIGEST_LENGTH); state 602 crypto/sha2.c a = context->state[0]; state 603 crypto/sha2.c b = context->state[1]; state 604 crypto/sha2.c c = context->state[2]; state 605 crypto/sha2.c d = context->state[3]; state 606 crypto/sha2.c e = context->state[4]; state 607 crypto/sha2.c f = context->state[5]; state 608 crypto/sha2.c g = context->state[6]; state 609 crypto/sha2.c h = context->state[7]; state 636 crypto/sha2.c context->state[0] += a; state 637 crypto/sha2.c context->state[1] += b; state 638 crypto/sha2.c context->state[2] += c; state 639 crypto/sha2.c context->state[3] += d; state 640 crypto/sha2.c context->state[4] += e; state 641 crypto/sha2.c context->state[5] += f; state 642 crypto/sha2.c context->state[6] += g; state 643 crypto/sha2.c context->state[7] += h; state 659 crypto/sha2.c a = context->state[0]; state 660 crypto/sha2.c b = context->state[1]; state 661 crypto/sha2.c c = context->state[2]; state 662 crypto/sha2.c d = context->state[3]; state 663 crypto/sha2.c e = context->state[4]; state 664 crypto/sha2.c f = context->state[5]; state 665 crypto/sha2.c g = context->state[6]; state 666 crypto/sha2.c h = context->state[7]; state 714 crypto/sha2.c context->state[0] += a; state 715 crypto/sha2.c context->state[1] += b; state 716 crypto/sha2.c context->state[2] += c; state 717 crypto/sha2.c context->state[3] += d; state 718 crypto/sha2.c context->state[4] += e; state 719 crypto/sha2.c context->state[5] += f; state 720 crypto/sha2.c context->state[6] += g; state 721 crypto/sha2.c context->state[7] += h; state 833 crypto/sha2.c REVERSE64(context->state[j],context->state[j]); state 834 crypto/sha2.c *d++ = context->state[j]; state 838 crypto/sha2.c bcopy(context->state, d, SHA512_DIGEST_LENGTH); state 853 crypto/sha2.c bcopy(sha384_initial_hash_value, context->state, SHA512_DIGEST_LENGTH); state 879 crypto/sha2.c REVERSE64(context->state[j],context->state[j]); state 880 crypto/sha2.c *d++ = context->state[j]; state 884 crypto/sha2.c bcopy(context->state, d, SHA384_DIGEST_LENGTH); state 55 crypto/sha2.h u_int32_t state[8]; state 60 crypto/sha2.h u_int64_t state[8]; state 1121 dev/acpi/acpi.c acpi_enter_sleep_state(struct acpi_softc *sc, int state) state 1128 dev/acpi/acpi.c if (state == ACPI_STATE_S0) state 1130 dev/acpi/acpi.c if (sc->sc_sleeptype[state].slp_typa == -1 || state 1131 dev/acpi/acpi.c sc->sc_sleeptype[state].slp_typb == -1) { state 1133 dev/acpi/acpi.c sc->sc_dev.dv_xname, state); state 1138 dev/acpi/acpi.c env.v_integer = state; state 1147 dev/acpi/acpi.c switch (state) { state 1166 dev/acpi/acpi.c sc->sc_state = state; state 1185 dev/acpi/acpi.c rega |= ACPI_PM1_SLP_TYPX(sc->sc_sleeptype[state].slp_typa); state 1186 dev/acpi/acpi.c regb |= ACPI_PM1_SLP_TYPX(sc->sc_sleeptype[state].slp_typb); state 189 dev/ata/ata_wdc.c if (drvp->state < READY) { state 196 dev/ata/ata_wdc.c if (drvp->state != RECAL) { state 199 dev/ata/ata_wdc.c xfer->drive, drvp->state); state 207 dev/ata/ata_wdc.c drvp->state = RECAL_WAIT; state 389 dev/ata/ata_wdc.c if (drvp->state < READY) { state 392 dev/ata/ata_wdc.c drvp->state); state 545 dev/ata/ata_wdc.c WDCDEBUG_PRINT(("wdc_ata_ctrl_intr: state %d\n", drvp->state), state 549 dev/ata/ata_wdc.c switch (drvp->state) { state 576 dev/ata/ata_wdc.c drvp->state = PIOMODE_WAIT; state 599 dev/ata/ata_wdc.c drvp->state = DMAMODE_WAIT; state 620 dev/ata/ata_wdc.c drvp->state = GEOMETRY_WAIT; state 639 dev/ata/ata_wdc.c drvp->state = MULTIMODE_WAIT; state 654 dev/ata/ata_wdc.c drvp->state = READY; state 677 dev/ata/ata_wdc.c drvp->state = 0; state 692 dev/ata/ata_wdc.c drvp->state = 0; state 217 dev/ata/atascsi.c xa->state = ATA_S_ERROR; state 404 dev/ata/atascsi.c switch (xa->state) { state 417 dev/ata/atascsi.c xa->state); state 459 dev/ata/atascsi.c switch (xa->state) { state 481 dev/ata/atascsi.c xs->error = (xa->state == ATA_S_TIMEOUT ? XS_TIMEOUT : state 487 dev/ata/atascsi.c xa->state); state 524 dev/ata/atascsi.c xa->state = ATA_S_COMPLETE; state 567 dev/ata/atascsi.c switch (xa->state) { state 575 dev/ata/atascsi.c xa->state == ATA_S_TIMEOUT ? "timeout" : "error"); state 576 dev/ata/atascsi.c xs->error = (xa->state == ATA_S_TIMEOUT ? XS_TIMEOUT : state 582 dev/ata/atascsi.c xa->state); state 621 dev/ata/atascsi.c switch (xa->state) { state 652 dev/ata/atascsi.c xs->error = (xa->state == ATA_S_TIMEOUT ? XS_TIMEOUT : state 658 dev/ata/atascsi.c "unexpected ata_xfer state (%d)", xa->state); state 742 dev/ata/atascsi.c switch (xa->state) { state 764 dev/ata/atascsi.c xa->state); state 270 dev/ata/atascsi.h volatile int state; state 76 dev/ata/atavar.h u_int8_t state; state 809 dev/ata/wd.c if (wd->drvp->state > RECAL) state 813 dev/ata/wd.c if (wd->drvp->state > RECAL) state 874 dev/ata/wd.c if (wd->drvp->state > RECAL) state 1011 dev/ata/wd.c if (wd->drvp->state < READY) state 1032 dev/ata/wd.c wd->drvp->state = RECAL; state 799 dev/atapiscsi/atapiscsi.c if (drvp->state < ATAPI_READY_STATE) { state 1336 dev/atapiscsi/atapiscsi.c switch (drvp->state) { state 1357 dev/atapiscsi/atapiscsi.c switch (drvp->state) { state 1402 dev/atapiscsi/atapiscsi.c chp->wdc->sc_dev.dv_xname, chp->channel, drvp->drive, drvp->state), state 1405 dev/atapiscsi/atapiscsi.c switch (drvp->state) { state 1421 dev/atapiscsi/atapiscsi.c drvp->state = ATAPI_IDENTIFY_STATE; state 1426 dev/atapiscsi/atapiscsi.c drvp->state = ATAPI_DEVICE_RESET_WAIT_STATE; state 1436 dev/atapiscsi/atapiscsi.c drvp->state = ATAPI_IDENTIFY_WAIT_STATE; state 1452 dev/atapiscsi/atapiscsi.c drvp->state = ATAPI_PIOMODE_STATE; state 1473 dev/atapiscsi/atapiscsi.c drvp->state = ATAPI_PIOMODE_WAIT_STATE; state 1497 dev/atapiscsi/atapiscsi.c drvp->state = ATAPI_DMAMODE_WAIT_STATE; state 1512 dev/atapiscsi/atapiscsi.c drvp->state = ATAPI_READY_STATE; state 1591 dev/atapiscsi/atapiscsi.c if (drvp->state == 0) { state 1598 dev/atapiscsi/atapiscsi.c drvp->state = ATAPI_IDENTIFY_STATE; state 294 dev/eisa/cac_eisa.c cac_eisa_l0_intr_enable(struct cac_softc *sc, int state) state 297 dev/eisa/cac_eisa.c if (state) { state 833 dev/i2o/i2o.h u_int32_t state; state 273 dev/i2o/iop.c int state = 0; state 295 dev/i2o/iop.c state++; state 303 dev/i2o/iop.c state++; state 310 dev/i2o/iop.c state++; state 317 dev/i2o/iop.c state++; state 361 dev/i2o/iop.c state++; state 414 dev/i2o/iop.c if (state > 4) state 416 dev/i2o/iop.c if (state > 3) state 418 dev/i2o/iop.c if (state > 2) state 420 dev/i2o/iop.c if (state > 1) state 422 dev/i2o/iop.c if (state > 0) state 183 dev/i2o/ioprbs.c int rv, state = 0; state 229 dev/i2o/ioprbs.c state++; state 369 dev/i2o/ioprbs.c ioprbs_unconfig(sc, state > 0); state 1481 dev/ic/aac.c int state = 0; state 1524 dev/ic/aac.c state++; state 1533 dev/ic/aac.c state++; state 1541 dev/ic/aac.c state++; state 1549 dev/ic/aac.c state++; state 1706 dev/ic/aac.c if (state > 3) state 1708 dev/ic/aac.c if (state > 2) state 1710 dev/ic/aac.c if (state > 1) state 1713 dev/ic/aac.c if (state > 0) state 10081 dev/ic/aic79xx.c ahd_extract_mode_state(struct ahd_softc *ahd, ahd_mode_state state, state 10084 dev/ic/aic79xx.c *src = (state & SRC_MODE) >> SRC_MODE_SHIFT; state 10085 dev/ic/aic79xx.c *dst = (state & DST_MODE) >> DST_MODE_SHIFT; state 10146 dev/ic/aic79xx.c ahd_restore_modes(struct ahd_softc *ahd, ahd_mode_state state) state 10151 dev/ic/aic79xx.c ahd_extract_mode_state(ahd, state, &src, &dst); state 1528 dev/ic/ar5210.c ar5k_ar5210_set_ledstate(struct ath_hal *hal, HAL_LED_STATE state) state 1537 dev/ic/ar5210.c switch (state) { state 2068 dev/ic/ar5210.c const HAL_BEACON_STATE *state, u_int32_t tsf, u_int32_t dtim_count, state 2074 dev/ic/ar5210.c if (state->bs_interval < 1) state 2080 dev/ic/ar5210.c if (state->bs_cfp_period > 0) { state 2082 dev/ic/ar5210.c cfp_period = state->bs_cfp_period * state->bs_dtim_period * state 2083 dev/ic/ar5210.c state->bs_interval; state 2084 dev/ic/ar5210.c next_cfp = (cfp_count * state->bs_dtim_period + dtim_count) * state 2085 dev/ic/ar5210.c state->bs_interval; state 2091 dev/ic/ar5210.c AR5K_REG_WRITE(AR5K_AR5210_CFP_DUR, state->bs_cfp_max_duration); state 2104 dev/ic/ar5210.c AR5K_REG_WRITE(AR5K_AR5210_TIMER0, state->bs_next_beacon); state 2112 dev/ic/ar5210.c AR5K_REG_SM(state->bs_tim_offset ? state->bs_tim_offset + 4 : 0, state 2114 dev/ic/ar5210.c AR5K_REG_SM(state->bs_interval, AR5K_AR5210_BEACON_PERIOD)); state 2119 dev/ic/ar5210.c if (state->bs_bmiss_threshold <= state 2122 dev/ic/ar5210.c AR5K_AR5210_RSSI_THR_BM_THR, state->bs_bmiss_threshold); state 1623 dev/ic/ar5211.c ar5k_ar5211_set_ledstate(struct ath_hal *hal, HAL_LED_STATE state) state 1633 dev/ic/ar5211.c switch (state) { state 2167 dev/ic/ar5211.c const HAL_BEACON_STATE *state, u_int32_t tsf, u_int32_t dtim_count, state 2173 dev/ic/ar5211.c if (state->bs_interval < 1) state 2179 dev/ic/ar5211.c if (state->bs_cfp_period > 0) { state 2181 dev/ic/ar5211.c cfp_period = state->bs_cfp_period * state->bs_dtim_period * state 2182 dev/ic/ar5211.c state->bs_interval; state 2183 dev/ic/ar5211.c next_cfp = (cfp_count * state->bs_dtim_period + dtim_count) * state 2184 dev/ic/ar5211.c state->bs_interval; state 2190 dev/ic/ar5211.c AR5K_REG_WRITE(AR5K_AR5211_CFP_DUR, state->bs_cfp_max_duration); state 2203 dev/ic/ar5211.c AR5K_REG_WRITE(AR5K_AR5211_TIMER0, state->bs_next_beacon); state 2211 dev/ic/ar5211.c AR5K_REG_SM(state->bs_tim_offset ? state->bs_tim_offset + 4 : 0, state 2212 dev/ic/ar5211.c AR5K_AR5211_BEACON_TIM) | AR5K_REG_SM(state->bs_interval, state 2219 dev/ic/ar5211.c state->bs_bmiss_threshold) state 2223 dev/ic/ar5211.c AR5K_AR5211_RSSI_THR_BMISS, state->bs_bmiss_threshold); state 2225 dev/ic/ar5211.c (state->bs_sleepduration - 3) << 3); state 1905 dev/ic/ar5212.c ar5k_ar5212_set_ledstate(struct ath_hal *hal, HAL_LED_STATE state) state 1915 dev/ic/ar5212.c switch (state) { state 2506 dev/ic/ar5212.c const HAL_BEACON_STATE *state, u_int32_t tsf, u_int32_t dtim_count, state 2512 dev/ic/ar5212.c if (state->bs_interval < 1) state 2515 dev/ic/ar5212.c interval = state->bs_intval; state 2516 dev/ic/ar5212.c dtim = state->bs_dtimperiod; state 2521 dev/ic/ar5212.c if (state->bs_cfp_period > 0) { state 2523 dev/ic/ar5212.c cfp_period = state->bs_cfp_period * state->bs_dtim_period * state 2524 dev/ic/ar5212.c state->bs_interval; state 2525 dev/ic/ar5212.c next_cfp = (cfp_count * state->bs_dtim_period + dtim_count) * state 2526 dev/ic/ar5212.c state->bs_interval; state 2531 dev/ic/ar5212.c AR5K_REG_WRITE(AR5K_AR5212_CFP_DUR, state->bs_cfp_max_duration); state 2543 dev/ic/ar5212.c AR5K_REG_WRITE(AR5K_AR5212_TIMER0, state->bs_next_beacon); state 2551 dev/ic/ar5212.c AR5K_REG_SM(state->bs_tim_offset ? state->bs_tim_offset + 4 : 0, state 2552 dev/ic/ar5212.c AR5K_AR5212_BEACON_TIM) | AR5K_REG_SM(state->bs_interval, state 2559 dev/ic/ar5212.c state->bs_bmiss_threshold) state 2563 dev/ic/ar5212.c AR5K_AR5212_RSSI_THR_BMISS, state->bs_bmiss_threshold); state 2568 dev/ic/ar5212.c if ((state->bs_sleepduration > state->bs_interval) && state 2569 dev/ic/ar5212.c (roundup(state->bs_sleepduration, interval) == state 2570 dev/ic/ar5212.c state->bs_sleepduration)) state 2571 dev/ic/ar5212.c interval = state->bs_sleepduration; state 2573 dev/ic/ar5212.c if (state->bs_sleepduration > dtim && state 2574 dev/ic/ar5212.c (dtim == 0 || roundup(state->bs_sleepduration, dtim) == state 2575 dev/ic/ar5212.c state->bs_sleepduration)) state 2576 dev/ic/ar5212.c dtim = state->bs_sleepduration; state 2582 dev/ic/ar5212.c state->bs_nextdtim: state->bs_nexttbtt; state 2585 dev/ic/ar5212.c AR5K_REG_SM((state->bs_nextdtim - 3) << 3, state 2851 dev/ic/ath.c ath_ledstate(struct ath_softc *sc, enum ieee80211_state state) state 2856 dev/ic/ath.c switch (state) { state 1322 dev/ic/awi.c u_int8_t state, rate, rssi; state 1329 dev/ic/awi.c state = awi_read_1(sc, rxoff + AWI_RXD_HOST_DESC_STATE); state 1330 dev/ic/awi.c if (state & AWI_RXD_ST_OWN) state 1332 dev/ic/awi.c if (!(state & AWI_RXD_ST_CONSUMED)) { state 1333 dev/ic/awi.c if (state & AWI_RXD_ST_RXERROR) state 1342 dev/ic/awi.c if (state & AWI_RXD_ST_LF) state 1347 dev/ic/awi.c state |= AWI_RXD_ST_CONSUMED; state 1348 dev/ic/awi.c awi_write_1(sc, rxoff + AWI_RXD_HOST_DESC_STATE, state); state 1356 dev/ic/awi.c state |= AWI_RXD_ST_OWN; state 1357 dev/ic/awi.c awi_write_1(sc, rxoff + AWI_RXD_HOST_DESC_STATE, state); state 185 dev/ic/awivar.h #define awi_drvstate(sc, state) \ state 187 dev/ic/awivar.h ((state) | AWI_DRV_AUTORXLED|AWI_DRV_AUTOTXLED)) state 776 dev/ic/cac.c cac_l0_intr_enable(struct cac_softc *sc, int state) state 780 dev/ic/cac.c state ? CAC_INTR_ENABLE : CAC_INTR_DISABLE); state 498 dev/ic/dpt.c dpt_wait(sc, mask, state, ms) state 500 dev/ic/dpt.c u_int8_t mask, state; state 505 dev/ic/dpt.c if ((dpt_inb(sc, HA_STATUS) & mask) == state) state 1766 dev/ic/isp.c isp2100_fw_statename(int state) state 1768 dev/ic/isp.c switch(state) { state 307 dev/ic/ne2000.c int state, i, rv = 0; state 309 dev/ic/ne2000.c state = dsc->sc_enabled; state 457 dev/ic/ne2000.c dsc->sc_enabled = state; state 897 dev/ic/osiop.c sc->sc_tinfo[i].state = NEG_INIT; state 1015 dev/ic/osiop.c if (ti->state == NEG_INIT) { state 1017 dev/ic/osiop.c ti->state = NEG_DONE; state 1034 dev/ic/osiop.c ti->state = NEG_WAITS; state 1181 dev/ic/osiop.c if (ti->state == NEG_WAITS) { state 1191 dev/ic/osiop.c ti->state = NEG_DONE; state 1242 dev/ic/osiop.c if (ti->state == NEG_WAITS) { state 1243 dev/ic/osiop.c ti->state = NEG_DONE; state 1250 dev/ic/osiop.c ti->state = NEG_DONE; state 189 dev/ic/osiopvar.h int state; /* negotiation state */ state 948 dev/ic/pdq.c pdq_state_t state; state 951 dev/ic/pdq.c state = PDQ_PSTS_ADAPTER_STATE(PDQ_CSR_READ(csrs, csr_port_status)); state 952 dev/ic/pdq.c if (state == PDQS_DMA_UNAVAILABLE) state 955 dev/ic/pdq.c (state == PDQS_HALTED) ? 0 : PDQ_PRESET_SKIP_SELFTEST); state 961 dev/ic/pdq.c state = PDQ_PSTS_ADAPTER_STATE(PDQ_CSR_READ(csrs, csr_port_status)); state 962 dev/ic/pdq.c if (state == PDQS_DMA_UNAVAILABLE || cnt == 0) state 967 dev/ic/pdq.c state = PDQ_PSTS_ADAPTER_STATE(PDQ_CSR_READ(csrs, csr_port_status)); state 968 dev/ic/pdq.c PDQ_ASSERT(state == PDQS_DMA_UNAVAILABLE); state 980 dev/ic/pdq.c pdq_state_t state; state 986 dev/ic/pdq.c state = PDQ_PSTS_ADAPTER_STATE(PDQ_CSR_READ(csrs, csr_port_status)); state 987 dev/ic/pdq.c if (state != PDQS_DMA_UNAVAILABLE) { state 989 dev/ic/pdq.c state = PDQ_PSTS_ADAPTER_STATE(PDQ_CSR_READ(csrs, csr_port_status)); state 990 dev/ic/pdq.c PDQ_ASSERT(state == PDQS_DMA_UNAVAILABLE); state 993 dev/ic/pdq.c switch (state) { state 1000 dev/ic/pdq.c state = PDQ_PSTS_ADAPTER_STATE(PDQ_CSR_READ(csrs, csr_port_status)); state 1001 dev/ic/pdq.c PDQ_ASSERT(state == PDQS_DMA_AVAILABLE); state 1008 dev/ic/pdq.c state = PDQ_PSTS_ADAPTER_STATE(PDQ_CSR_READ(csrs, csr_port_status)); state 1009 dev/ic/pdq.c PDQ_ASSERT(state == PDQS_DMA_UNAVAILABLE); state 1127 dev/ic/pdq.c state = PDQ_PSTS_ADAPTER_STATE(PDQ_CSR_READ(csrs, csr_port_status)); state 1128 dev/ic/pdq.c if (state == PDQS_HALTED) { state 1134 dev/ic/pdq.c if (state == PDQS_DMA_AVAILABLE) { state 1140 dev/ic/pdq.c PDQ_ASSERT(state == PDQS_DMA_AVAILABLE); state 1165 dev/ic/pdq.c state = PDQ_PSTS_ADAPTER_STATE(PDQ_CSR_READ(csrs, csr_port_status)); state 1168 dev/ic/pdq.c return state; state 1176 dev/ic/pdq.c pdq_state_t state; state 1178 dev/ic/pdq.c state = PDQ_PSTS_ADAPTER_STATE(PDQ_CSR_READ(csrs, csr_port_status)); state 1179 dev/ic/pdq.c PDQ_ASSERT(state != PDQS_DMA_UNAVAILABLE); state 1180 dev/ic/pdq.c PDQ_ASSERT(state != PDQS_RESET); state 1181 dev/ic/pdq.c PDQ_ASSERT(state != PDQS_HALTED); state 1182 dev/ic/pdq.c PDQ_ASSERT(state != PDQS_UPGRADE); state 1183 dev/ic/pdq.c PDQ_ASSERT(state != PDQS_RING_MEMBER); state 1184 dev/ic/pdq.c switch (state) { state 1283 dev/ic/pdq.c pdq_state_t state = PDQ_PSTS_ADAPTER_STATE(PDQ_CSR_READ(csrs, csr_port_status)); state 1284 dev/ic/pdq.c printf(PDQ_OS_PREFIX "%s", PDQ_OS_PREFIX_ARGS, pdq_adapter_states[state]); state 1285 dev/ic/pdq.c if (state == PDQS_LINK_UNAVAILABLE) { state 1287 dev/ic/pdq.c } else if (state == PDQS_LINK_AVAILABLE) { state 1290 dev/ic/pdq.c } else if (state == PDQS_HALTED) { state 1339 dev/ic/pdq.c pdq_state_t state; state 1533 dev/ic/pdq.c state = PDQ_PSTS_ADAPTER_STATE(PDQ_CSR_READ(&pdq->pdq_csrs, csr_port_status)); state 1534 dev/ic/pdq.c PDQ_PRINTF(("PDQ Adapter State = %s\n", pdq_adapter_states[state])); state 1539 dev/ic/pdq.c state = pdq_stop(pdq); state 1541 dev/ic/pdq.c PDQ_PRINTF(("PDQ Adapter State = %s\n", pdq_adapter_states[state])); state 1542 dev/ic/pdq.c PDQ_ASSERT(state == PDQS_DMA_AVAILABLE); state 1548 dev/ic/pdq.c if (state == PDQS_HALTED) { state 1557 dev/ic/pdq.c if (state == PDQS_RESET || state == PDQS_HALTED || state == PDQS_UPGRADE) state 309 dev/ic/rln.c struct rln_msg_tx_state state; state 335 dev/ic/rln.c if (rln_msg_tx_start(sc, &cmd, sizeof cmd + tlen, &state)) state 347 dev/ic/rln.c rln_msg_tx_data(sc, &cmd, sizeof cmd, &state); state 358 dev/ic/rln.c rln_msg_tx_data(sc, mtod(m, void *), m->m_len, &state); state 375 dev/ic/rln.c rln_msg_tx_data(sc, zeroes, pad, &state); state 381 dev/ic/rln.c if (rln_msg_tx_end(sc, &state)) state 193 dev/ic/rlnreg.h #define rln_status_rx_write(sc, state) \ state 194 dev/ic/rlnreg.h _rln_status_setmask((sc), ~RLN_STATUS_RX_MASK, state) state 195 dev/ic/rlnreg.h #define rln_status_tx_write(sc, state) \ state 196 dev/ic/rlnreg.h _rln_status_setmask((sc), ~RLN_STATUS_TX_MASK, state) state 555 dev/ic/rlnsubr.c rln_msg_tx_start(sc, buf, pktlen, state) state 559 dev/ic/rlnsubr.c struct rln_msg_tx_state * state; state 564 dev/ic/rlnsubr.c state->ien = rln_enable(sc, 0); state 565 dev/ic/rlnsubr.c state->pd.p_nremain = 0; state 568 dev/ic/rlnsubr.c state->w = rln_wakeup(sc, RLN_WAKEUP_SET); state 570 dev/ic/rlnsubr.c state->w = RLN_WAKEUP_NOCHANGE; state 588 dev/ic/rlnsubr.c rln_msg_tx_data(sc, buf, len, state) state 592 dev/ic/rlnsubr.c struct rln_msg_tx_state * state; state 596 dev/ic/rlnsubr.c if (sc->sc_width == 16 && state->pd.p_nremain) { state 603 dev/ic/rlnsubr.c u.b[0] = state->pd.p_data; state 613 dev/ic/rlnsubr.c state->pd.p_nremain = 0; state 621 dev/ic/rlnsubr.c state->pd.p_nremain = 1; state 622 dev/ic/rlnsubr.c state->pd.p_data = data[len - 1]; state 639 dev/ic/rlnsubr.c rln_msg_tx_end(sc, state) state 641 dev/ic/rlnsubr.c struct rln_msg_tx_state * state; state 646 dev/ic/rlnsubr.c if (state->pd.p_nremain) state 647 dev/ic/rlnsubr.c rln_msg_tx_data(sc, NULL, 0, state); state 650 dev/ic/rlnsubr.c if (state->pd.p_nremain) state 651 dev/ic/rlnsubr.c panic("rln_msg_tx_end remain %d", state->pd.p_nremain); state 655 dev/ic/rlnsubr.c state->w = RLN_WAKEUP_NOCHANGE; state 656 dev/ic/rlnsubr.c rln_wakeup(sc, state->w); state 657 dev/ic/rlnsubr.c rln_enable(sc, state->ien); state 696 dev/ic/rlnsubr.c struct rln_msg_tx_state state; state 722 dev/ic/rlnsubr.c if ((ret = rln_msg_tx_start(sc, tx, txlen, &state))) { state 729 dev/ic/rlnsubr.c rln_msg_tx_data(sc, tx, (txlen + 1) & ~1, &state); state 732 dev/ic/rlnsubr.c if ((ret = rln_msg_tx_end(sc, &state))) { state 276 dev/ic/sili.c KASSERT(ccb->ccb_xa.state == ATA_S_ONCHIP); state 277 dev/ic/sili.c ccb->ccb_xa.state = ATA_S_ERROR; state 290 dev/ic/sili.c KASSERT(ccb->ccb_xa.state == ATA_S_ONCHIP); state 291 dev/ic/sili.c ccb->ccb_xa.state = ATA_S_ERROR; state 306 dev/ic/sili.c KASSERT(ccb->ccb_xa.state == ATA_S_ONCHIP); state 307 dev/ic/sili.c ccb->ccb_xa.state = ATA_S_TIMEOUT; state 321 dev/ic/sili.c PORTNAME(sp), slot, ccb->ccb_xa.state == ATA_S_ERROR ? state 322 dev/ic/sili.c " (error)" : (ccb->ccb_xa.state == ATA_S_TIMEOUT ? state 344 dev/ic/sili.c ccb->ccb_xa.tag, ccb->ccb_xa.state); state 349 dev/ic/sili.c ccb->ccb_xa.state); state 353 dev/ic/sili.c KASSERT(ccb->ccb_xa.state == ATA_S_ONCHIP); state 366 dev/ic/sili.c KASSERT(ccb->ccb_xa.state == ATA_S_COMPLETE || state 367 dev/ic/sili.c ccb->ccb_xa.state == ATA_S_ERROR || state 368 dev/ic/sili.c ccb->ccb_xa.state == ATA_S_TIMEOUT); state 490 dev/ic/sili.c ccb->ccb_xa.state = ATA_S_COMPLETE; state 526 dev/ic/sili.c KASSERT(ccb->ccb_xa.state == ATA_S_PUT); state 528 dev/ic/sili.c ccb->ccb_xa.state = ATA_S_SETUP; state 540 dev/ic/sili.c if (ccb->ccb_xa.state != ATA_S_COMPLETE && state 541 dev/ic/sili.c ccb->ccb_xa.state != ATA_S_TIMEOUT && state 542 dev/ic/sili.c ccb->ccb_xa.state != ATA_S_ERROR) { state 544 dev/ic/sili.c "slot %d\n", PORTNAME(sp), ccb->ccb_xa.state, state 549 dev/ic/sili.c ccb->ccb_xa.state = ATA_S_PUT; state 799 dev/ic/sili.c KASSERT(xa->state == ATA_S_SETUP); state 828 dev/ic/sili.c xa->state = ATA_S_PENDING; state 844 dev/ic/sili.c xa->state = ATA_S_ERROR; state 869 dev/ic/sili.c if (xa->state == ATA_S_ONCHIP) state 870 dev/ic/sili.c xa->state = ATA_S_COMPLETE; state 872 dev/ic/sili.c else if (xa->state != ATA_S_ERROR && xa->state != ATA_S_TIMEOUT) state 874 dev/ic/sili.c "slot %d\n", PORTNAME(sp), xa->state, xa->tag); state 878 dev/ic/sili.c else if (xa->state == ATA_S_COMPLETE) state 883 dev/ic/sili.c PORTNAME(sp), xa->state); state 1015 dev/ic/sili.c KASSERT(ccb->ccb_xa.state == ATA_S_PENDING); state 1019 dev/ic/sili.c ccb->ccb_xa.state = ATA_S_ONCHIP; state 951 dev/ic/wdc.c chp->ch_drive[xfer->drive].state = 0; state 1029 dev/ic/wdc.c chp->ch_drive[drive].state = 0; state 190 dev/isa/ad1848.c ad_set_MCE(sc, state) state 192 dev/isa/ad1848.c int state; state 194 dev/isa/ad1848.c if (state) state 618 dev/isa/aha.c int error, wait, state = 0; state 629 dev/isa/aha.c state++; state 640 dev/isa/aha.c if (state > 0) state 64 dev/isa/aps.c u_int8_t state; state 316 dev/isa/aps.c sc->aps_data.state = bus_space_read_1(iot, ioh, APS_STATE); state 1751 dev/isa/if_ie.c ee16_eeprom_clock(sc, state) state 1753 dev/isa/if_ie.c int state; state 1759 dev/isa/if_ie.c if (state) { state 101 dev/isa/mcd.c int state; state 584 dev/isa/mcd.c sc->mbx.state = MCD_S_BEGIN; state 1149 dev/isa/mcd.c switch (mbx->state) { state 1163 dev/isa/mcd.c mbx->state = MCD_S_WAITMODE; state 1201 dev/isa/mcd.c mbx->state = MCD_S_WAITREAD; state 1241 dev/isa/mcd.c mbx->state = MCD_S_IDLE; state 1254 dev/isa/mcd.c sc->sc_dev.dv_xname, mbx->state); state 1260 dev/isa/mcd.c mbx->state); state 311 dev/isa/sf16fmr2.c u_int8_t i, state = 0; state 320 dev/isa/sf16fmr2.c state = i & SF16FMR2_AMPLIFIER? (1 << 2) : (0 << 2); state 322 dev/isa/sf16fmr2.c state |= i & SF16FMR2_SIGNAL? (0 << 1) : (1 << 1); state 327 dev/isa/sf16fmr2.c state |= i & SF16FMR2_STEREO? (0 << 0) : (1 << 0); state 340 dev/isa/sf16fmr2.c return res | (state << 24); state 223 dev/pci/aac_pci.c int state = 0; state 251 dev/pci/aac_pci.c state++; state 267 dev/pci/aac_pci.c state++; state 314 dev/pci/aac_pci.c if (state > 1) state 316 dev/pci/aac_pci.c if (state > 0) state 957 dev/pci/ahci.c ccb->ccb_xa.state = ATA_S_COMPLETE; state 1223 dev/pci/ahci.c ccb->ccb_xa.state = ATA_S_PENDING; state 1235 dev/pci/ahci.c ccb->ccb_xa.state = ATA_S_PENDING; state 1257 dev/pci/ahci.c ccb->ccb_xa.state = ATA_S_ERROR; state 1434 dev/pci/ahci.c KASSERT(ccb->ccb_xa.state == ATA_S_PENDING); state 1459 dev/pci/ahci.c ccb->ccb_xa.state = ATA_S_ONCHIP; state 1470 dev/pci/ahci.c ccb->ccb_xa.state = ATA_S_ONCHIP; state 1493 dev/pci/ahci.c nextccb->ccb_xa.state = ATA_S_ONCHIP; state 1534 dev/pci/ahci.c nextccb->ccb_xa.state = ATA_S_ONCHIP; state 1714 dev/pci/ahci.c KASSERT(ccb->ccb_xa.state == ATA_S_ONCHIP); state 1715 dev/pci/ahci.c ccb->ccb_xa.state = ATA_S_ERROR; state 1755 dev/pci/ahci.c ccb->ccb_xa.state = ATA_S_ERROR; state 1778 dev/pci/ahci.c PORTNAME(ap), slot, ccb->ccb_xa.state == ATA_S_ERROR ? state 1813 dev/pci/ahci.c KASSERT(ccb->ccb_xa.state == ATA_S_ONCHIP); state 1838 dev/pci/ahci.c KASSERT(ccb->ccb_xa.state == ATA_S_PUT); state 1840 dev/pci/ahci.c ccb->ccb_xa.state = ATA_S_SETUP; state 1852 dev/pci/ahci.c if (ccb->ccb_xa.state != ATA_S_COMPLETE && state 1853 dev/pci/ahci.c ccb->ccb_xa.state != ATA_S_TIMEOUT && state 1854 dev/pci/ahci.c ccb->ccb_xa.state != ATA_S_ERROR) { state 1856 dev/pci/ahci.c "slot %d\n", PORTNAME(ccb->ccb_port), ccb->ccb_xa.state, state 1861 dev/pci/ahci.c ccb->ccb_xa.state = ATA_S_PUT; state 1980 dev/pci/ahci.c ccb->ccb_xa.state = ATA_S_PENDING; state 2202 dev/pci/ahci.c KASSERT(xa->state == ATA_S_SETUP); state 2223 dev/pci/ahci.c xa->state = ATA_S_PENDING; state 2239 dev/pci/ahci.c xa->state = ATA_S_ERROR; state 2252 dev/pci/ahci.c if (xa->state == ATA_S_ONCHIP || xa->state == ATA_S_ERROR) state 2258 dev/pci/ahci.c if (xa->state == ATA_S_ONCHIP) state 2259 dev/pci/ahci.c xa->state = ATA_S_COMPLETE; state 2261 dev/pci/ahci.c else if (xa->state != ATA_S_ERROR && xa->state != ATA_S_TIMEOUT) state 2263 dev/pci/ahci.c "slot %d\n", PORTNAME(ccb->ccb_port), xa->state, state 2266 dev/pci/ahci.c if (xa->state != ATA_S_TIMEOUT) state 2284 dev/pci/ahci.c if (ccb->ccb_xa.state == ATA_S_PENDING) { state 2289 dev/pci/ahci.c } else if (ccb->ccb_xa.state == ATA_S_ONCHIP && ahci_port_intr(ap, state 2294 dev/pci/ahci.c } else if (ccb->ccb_xa.state != ATA_S_ONCHIP) { state 2314 dev/pci/ahci.c ccb->ccb_xa.state = ATA_S_TIMEOUT; state 2362 dev/pci/ahci.c ccb->ccb_xa.state = ATA_S_COMPLETE; state 1808 dev/pci/auixp.c auixp_power(struct auixp_softc *sc, int state) state 1819 dev/pci/auixp.c if ((data & PCI_PMCSR_STATE_MASK) != state) state 1820 dev/pci/auixp.c pci_conf_write(pc, tag, pmcapreg + PCI_PMCSR, state); state 281 dev/pci/cac_pci.c cac_pci_l0_intr_enable(struct cac_softc *sc, int state) state 284 dev/pci/cac_pci.c cac_outl(sc, CAC_42REG_INTR_MASK, (state ? 0 : 8)); /* XXX */ state 1114 dev/pci/emuxki.c chan->vibrato_LFO.state = 0x8000; state 1271 dev/pci/emuxki.c chan->vibrato_LFO.state); state 1489 dev/pci/emuxki.c voice->state = !EMU_VOICE_STATE_STARTED; state 1520 dev/pci/emuxki.c if (voice->state & EMU_VOICE_STATE_STARTED) state 1772 dev/pci/emuxki.c if ((voice->state & EMU_VOICE_STATE_STARTED) == 0) state 1899 dev/pci/emuxki.c voice->state |= EMU_VOICE_STATE_STARTED; state 1935 dev/pci/emuxki.c voice->state &= ~EMU_VOICE_STATE_STARTED; state 1952 dev/pci/emuxki.c if ((voice->state & state 155 dev/pci/emuxkivar.h u_int16_t state; /* 0x8000-n == 666*n usec delay */ state 193 dev/pci/emuxkivar.h u_int8_t state; state 1596 dev/pci/esa.c esa_power(struct esa_softc *sc, int state) state 1605 dev/pci/esa.c if ((data & PCI_PMCSR_STATE_MASK) != state) state 1606 dev/pci/esa.c pci_conf_write(pc, tag, pmcapreg + PCI_PMCSR, state); state 623 dev/pci/if_bge.c int i, rseg, state, error; state 626 dev/pci/if_bge.c state = error = 0; state 635 dev/pci/if_bge.c state = 1; state 644 dev/pci/if_bge.c state = 2; state 652 dev/pci/if_bge.c state = 3; state 660 dev/pci/if_bge.c state = 4; state 689 dev/pci/if_bge.c switch (state) { state 2536 dev/pci/if_bnx.c REG_WR_IND(sc, cpu_reg->state, cpu_reg->state_value_clear); state 2591 dev/pci/if_bnx.c REG_WR_IND(sc, cpu_reg->state, cpu_reg->state_value_clear); state 2619 dev/pci/if_bnx.c cpu_reg.state = BNX_RXP_CPU_STATE; state 2666 dev/pci/if_bnx.c cpu_reg.state = BNX_TXP_CPU_STATE; state 2713 dev/pci/if_bnx.c cpu_reg.state = BNX_TPAT_CPU_STATE; state 2760 dev/pci/if_bnx.c cpu_reg.state = BNX_COM_CPU_STATE; state 4495 dev/pci/if_bnxreg.h u_int32_t state; state 778 dev/pci/if_ipw.c uint32_t state; state 780 dev/pci/if_ipw.c bus_dmamap_sync(sc->sc_dmat, sbuf->map, 0, sizeof state, state 783 dev/pci/if_ipw.c state = letoh32(*mtod(sbuf->m, uint32_t *)); state 785 dev/pci/if_ipw.c DPRINTFN(2, ("RX!NEWSTATE!%u\n", state)); state 787 dev/pci/if_ipw.c switch (state) { state 1023 dev/pci/if_iwi.c DPRINTFN(2, ("Authentication (%u)\n", auth->state)); state 1025 dev/pci/if_iwi.c switch (auth->state) { state 1035 dev/pci/if_iwi.c sc->sc_dev.dv_xname, auth->state); state 1044 dev/pci/if_iwi.c DPRINTFN(2, ("Association (%u, %u)\n", assoc->state, state 1047 dev/pci/if_iwi.c switch (assoc->state) { state 1062 dev/pci/if_iwi.c sc->sc_dev.dv_xname, assoc->state); state 156 dev/pci/if_iwireg.h uint8_t state; state 163 dev/pci/if_iwireg.h uint8_t state; state 752 dev/pci/if_lge.c int i, rseg, state, error; state 755 dev/pci/if_lge.c state = error = 0; state 764 dev/pci/if_lge.c state = 1; state 773 dev/pci/if_lge.c state = 2; state 781 dev/pci/if_lge.c state = 3; state 789 dev/pci/if_lge.c state = 4; state 820 dev/pci/if_lge.c switch (state) { state 329 dev/pci/if_lmc.c int state; state 334 dev/pci/if_lmc.c state = 0; state 298 dev/pci/if_lmc_media.c lmc_hssi_set_link_status(lmc_softc_t * const sc, int state) state 300 dev/pci/if_lmc_media.c if (state == LMC_LINK_UP) state 312 dev/pci/if_lmc_media.c lmc_hssi_set_crc_length(lmc_softc_t * const sc, int state) state 314 dev/pci/if_lmc_media.c if (state == LMC_CTL_CRC_LENGTH_32) { state 477 dev/pci/if_lmc_media.c lmc_ds3_set_crc_length(lmc_softc_t * const sc, int state) state 479 dev/pci/if_lmc_media.c if (state == LMC_CTL_CRC_LENGTH_32) { state 660 dev/pci/if_lmc_media.c lmc_ssi_set_link_status(lmc_softc_t * const sc, int state) state 662 dev/pci/if_lmc_media.c if (state == LMC_LINK_UP) { state 680 dev/pci/if_lmc_media.c lmc_ssi_set_crc_length(lmc_softc_t * const sc, int state) state 682 dev/pci/if_lmc_media.c if (state == LMC_CTL_CRC_LENGTH_32) { state 1011 dev/pci/if_lmc_media.c lmc_t1_set_crc_length(lmc_softc_t * const sc, int state) state 1013 dev/pci/if_lmc_media.c if (state == LMC_CTL_CRC_LENGTH_32) { state 569 dev/pci/if_msk.c int i, rseg, state, error; state 572 dev/pci/if_msk.c state = error = 0; state 581 dev/pci/if_msk.c state = 1; state 589 dev/pci/if_msk.c state = 2; state 597 dev/pci/if_msk.c state = 3; state 605 dev/pci/if_msk.c state = 4; state 634 dev/pci/if_msk.c switch (state) { state 1111 dev/pci/if_nge.c int i, rseg, state, error; state 1114 dev/pci/if_nge.c state = error = 0; state 1122 dev/pci/if_nge.c state = 1; state 1131 dev/pci/if_nge.c state = 2; state 1139 dev/pci/if_nge.c state = 3; state 1147 dev/pci/if_nge.c state = 4; state 1184 dev/pci/if_nge.c switch (state) { state 196 dev/pci/if_san_common.c card->state = WAN_DISCONNECTED; state 214 dev/pci/if_san_common.c if (card->state == WAN_UNCONFIGURED) { state 217 dev/pci/if_san_common.c card->state = WAN_UNCONFIGURED; state 225 dev/pci/if_san_common.c card->state = WAN_UNCONFIGURED; state 383 dev/pci/if_san_common.h char state; /* device state */ state 234 dev/pci/if_san_obsd.c if (card->state != WAN_DISCONNECTED) { state 249 dev/pci/if_san_obsd.c if (card->state != WAN_DISCONNECTED) { state 481 dev/pci/if_san_xilinx.c if (card->state != WAN_DISCONNECTED) state 544 dev/pci/if_san_xilinx.c if (card->state == WAN_DISCONNECTED) state 625 dev/pci/if_san_xilinx.c if (card->state != WAN_CONNECTED) { state 2575 dev/pci/if_san_xilinx.c if (card->state != WAN_CONNECTED) { state 2605 dev/pci/if_san_xilinx.c sc->common.state, state 2611 dev/pci/if_san_xilinx.c if (card->state != WAN_CONNECTED) { state 2648 dev/pci/if_san_xilinx.c sc->common.state, state 2654 dev/pci/if_san_xilinx.c if (card->state != WAN_CONNECTED) { state 2856 dev/pci/if_san_xilinx.c port_set_state(sdla_t *card, int state) state 2860 dev/pci/if_san_xilinx.c if (card->state != state) { state 2861 dev/pci/if_san_xilinx.c switch (state) { state 2882 dev/pci/if_san_xilinx.c card->state = state; state 2886 dev/pci/if_san_xilinx.c set_chan_state(card, ifp, state); state 3282 dev/pci/if_san_xilinx.c set_chan_state(sdla_t *card, struct ifnet *ifp, int state) state 3289 dev/pci/if_san_xilinx.c if (state == WAN_CONNECTED) { state 3295 dev/pci/if_san_xilinx.c } else if (state == WAN_DISCONNECTED) state 3505 dev/pci/if_san_xilinx.c if (card->state == WAN_CONNECTED) { state 697 dev/pci/if_sk.c int i, rseg, state, error; state 700 dev/pci/if_sk.c state = error = 0; state 709 dev/pci/if_sk.c state = 1; state 717 dev/pci/if_sk.c state = 2; state 725 dev/pci/if_sk.c state = 3; state 733 dev/pci/if_sk.c state = 4; state 762 dev/pci/if_sk.c switch (state) { state 589 dev/pci/if_ti.c int i, rseg, state, error; state 592 dev/pci/if_ti.c state = error = 0; state 601 dev/pci/if_ti.c state = 1; state 610 dev/pci/if_ti.c state = 2; state 618 dev/pci/if_ti.c state = 3; state 626 dev/pci/if_ti.c state = 4; state 655 dev/pci/if_ti.c switch (state) { state 1200 dev/pci/if_xge.c int i, rseg, state; state 1203 dev/pci/if_xge.c state = 0; state 1207 dev/pci/if_xge.c state++; state 1212 dev/pci/if_xge.c state++; state 1216 dev/pci/if_xge.c state++; state 1234 dev/pci/if_xge.c if (state > 2) state 1236 dev/pci/if_xge.c if (state > 1) state 1238 dev/pci/if_xge.c if (state > 0) state 1254 dev/pci/if_xge.c int i, rseg, state; state 1263 dev/pci/if_xge.c state = 0; state 1267 dev/pci/if_xge.c state++; state 1272 dev/pci/if_xge.c state++; state 1276 dev/pci/if_xge.c state++; state 1293 dev/pci/if_xge.c if (state > 2) state 1295 dev/pci/if_xge.c if (state > 1) state 1297 dev/pci/if_xge.c if (state > 0) state 167 dev/pci/ips.c u_int8_t state; state 165 dev/pci/ises.c int nsegs, error, state; state 170 dev/pci/ises.c state = 0; state 179 dev/pci/ises.c state++; state 186 dev/pci/ises.c state++; state 207 dev/pci/ises.c state++; state 215 dev/pci/ises.c state++; state 222 dev/pci/ises.c state++; state 248 dev/pci/ises.c switch (state) { /* Always fallthrough here. */ state 1075 dev/pci/ises.c sizeof(md5ctx.state)); state 1084 dev/pci/ises.c sizeof(sha1ctx.state)); state 1095 dev/pci/ises.c sizeof(rmd160ctx.state)); state 669 dev/pci/musycc.c enum musycc_state state; state 674 dev/pci/musycc.c state = mg->mg_channels[chan]->cc_state; state 677 dev/pci/musycc.c mg->mg_channels[chan]->cc_ifp->if_xname, state, ev)); state 684 dev/pci/musycc.c state = CHAN_RUNNING; state 692 dev/pci/musycc.c state = CHAN_IDLE; state 699 dev/pci/musycc.c mg->mg_channels[chan]->cc_state = state; state 1381 dev/pci/safe.c bcopy(md5ctx.state, ses->ses_hminner, state 1382 dev/pci/safe.c sizeof(md5ctx.state)); state 1389 dev/pci/safe.c bcopy(sha1ctx.state, ses->ses_hminner, state 1390 dev/pci/safe.c sizeof(sha1ctx.state)); state 1402 dev/pci/safe.c bcopy(md5ctx.state, ses->ses_hmouter, state 1403 dev/pci/safe.c sizeof(md5ctx.state)); state 1410 dev/pci/safe.c bcopy(sha1ctx.state, ses->ses_hmouter, state 1411 dev/pci/safe.c sizeof(sha1ctx.state)); state 651 dev/pci/ubsec.c bcopy(md5ctx.state, ses->ses_hminner, state 652 dev/pci/ubsec.c sizeof(md5ctx.state)); state 659 dev/pci/ubsec.c bcopy(sha1ctx.state, ses->ses_hminner, state 660 dev/pci/ubsec.c sizeof(sha1ctx.state)); state 672 dev/pci/ubsec.c bcopy(md5ctx.state, ses->ses_hmouter, state 673 dev/pci/ubsec.c sizeof(md5ctx.state)); state 680 dev/pci/ubsec.c bcopy(sha1ctx.state, ses->ses_hmouter, state 681 dev/pci/ubsec.c sizeof(sha1ctx.state)); state 382 dev/pcmcia/if_wi_pcmcia.c int state = 0; state 392 dev/pcmcia/if_wi_pcmcia.c state++; state 398 dev/pcmcia/if_wi_pcmcia.c state++; state 405 dev/pcmcia/if_wi_pcmcia.c state++; state 438 dev/pcmcia/if_wi_pcmcia.c if (state > 2) state 440 dev/pcmcia/if_wi_pcmcia.c if (state > 1) state 442 dev/pcmcia/if_wi_pcmcia.c if (state > 0) state 229 dev/pcmcia/if_xe.c int state = 0; state 278 dev/pcmcia/if_xe.c state++; state 285 dev/pcmcia/if_xe.c state++; state 303 dev/pcmcia/if_xe.c state++; state 433 dev/pcmcia/if_xe.c if (state > 2) state 435 dev/pcmcia/if_xe.c if (state > 1) state 437 dev/pcmcia/if_xe.c if (state > 0) state 66 dev/pcmcia/pcmcia_cis.c struct cis_state state; state 68 dev/pcmcia/pcmcia_cis.c memset(&state, 0, sizeof state); state 70 dev/pcmcia/pcmcia_cis.c state.card = &sc->card; state 72 dev/pcmcia/pcmcia_cis.c state.card->error = 0; state 73 dev/pcmcia/pcmcia_cis.c state.card->cis1_major = -1; state 74 dev/pcmcia/pcmcia_cis.c state.card->cis1_minor = -1; state 75 dev/pcmcia/pcmcia_cis.c state.card->cis1_info[0] = NULL; state 76 dev/pcmcia/pcmcia_cis.c state.card->cis1_info[1] = NULL; state 77 dev/pcmcia/pcmcia_cis.c state.card->cis1_info[2] = NULL; state 78 dev/pcmcia/pcmcia_cis.c state.card->cis1_info[3] = NULL; state 79 dev/pcmcia/pcmcia_cis.c state.card->manufacturer = PCMCIA_VENDOR_INVALID; state 80 dev/pcmcia/pcmcia_cis.c state.card->product = PCMCIA_PRODUCT_INVALID; state 81 dev/pcmcia/pcmcia_cis.c SIMPLEQ_INIT(&state.card->pf_head); state 83 dev/pcmcia/pcmcia_cis.c state.pf = NULL; state 86 dev/pcmcia/pcmcia_cis.c &state) == -1) state 87 dev/pcmcia/pcmcia_cis.c state.card->error++; state 659 dev/pcmcia/pcmcia_cis.c struct cis_state *state = arg; state 674 dev/pcmcia/pcmcia_cis.c if (state->gotmfc == 1) { state 677 dev/pcmcia/pcmcia_cis.c for (pf = SIMPLEQ_FIRST(&state->card->pf_head); state 683 dev/pcmcia/pcmcia_cis.c SIMPLEQ_INIT(&state->card->pf_head); state 685 dev/pcmcia/pcmcia_cis.c state->count = 0; state 686 dev/pcmcia/pcmcia_cis.c state->gotmfc = 2; state 687 dev/pcmcia/pcmcia_cis.c state->pf = NULL; state 698 dev/pcmcia/pcmcia_cis.c state->gotmfc = 1; state 785 dev/pcmcia/pcmcia_cis.c state->card->cis1_major = pcmcia_tuple_read_1(tuple, 0); state 786 dev/pcmcia/pcmcia_cis.c state->card->cis1_minor = pcmcia_tuple_read_1(tuple, 1); state 793 dev/pcmcia/pcmcia_cis.c state->card->cis1_info_buf[i] = ch; state 795 dev/pcmcia/pcmcia_cis.c state->card->cis1_info[count] = state 796 dev/pcmcia/pcmcia_cis.c state->card->cis1_info_buf + start; state 811 dev/pcmcia/pcmcia_cis.c state->card->manufacturer = pcmcia_tuple_read_2(tuple, 0); state 812 dev/pcmcia/pcmcia_cis.c state->card->product = pcmcia_tuple_read_2(tuple, 2); state 833 dev/pcmcia/pcmcia_cis.c if (state->pf) { state 834 dev/pcmcia/pcmcia_cis.c if (state->pf->function == PCMCIA_FUNCTION_UNSPEC) { state 843 dev/pcmcia/pcmcia_cis.c state->pf = NULL; state 846 dev/pcmcia/pcmcia_cis.c if (state->pf == NULL) { state 847 dev/pcmcia/pcmcia_cis.c state->pf = malloc(sizeof(*state->pf), M_DEVBUF, state 849 dev/pcmcia/pcmcia_cis.c if (state->pf == NULL) state 851 dev/pcmcia/pcmcia_cis.c bzero(state->pf, sizeof(*state->pf)); state 852 dev/pcmcia/pcmcia_cis.c state->pf->number = state->count++; state 853 dev/pcmcia/pcmcia_cis.c state->pf->last_config_index = -1; state 854 dev/pcmcia/pcmcia_cis.c SIMPLEQ_INIT(&state->pf->cfe_head); state 856 dev/pcmcia/pcmcia_cis.c SIMPLEQ_INSERT_TAIL(&state->card->pf_head, state->pf, state 859 dev/pcmcia/pcmcia_cis.c state->pf->function = pcmcia_tuple_read_1(tuple, 0); state 887 dev/pcmcia/pcmcia_cis.c if (state->pf == NULL) { state 888 dev/pcmcia/pcmcia_cis.c state->pf = malloc(sizeof(*state->pf), state 890 dev/pcmcia/pcmcia_cis.c if (state->pf == NULL) state 892 dev/pcmcia/pcmcia_cis.c bzero(state->pf, sizeof(*state->pf)); state 893 dev/pcmcia/pcmcia_cis.c state->pf->number = state->count++; state 894 dev/pcmcia/pcmcia_cis.c state->pf->last_config_index = -1; state 895 dev/pcmcia/pcmcia_cis.c SIMPLEQ_INIT(&state->pf->cfe_head); state 897 dev/pcmcia/pcmcia_cis.c SIMPLEQ_INSERT_TAIL(&state->card->pf_head, state 898 dev/pcmcia/pcmcia_cis.c state->pf, pf_list); state 900 dev/pcmcia/pcmcia_cis.c state->pf->function = PCMCIA_FUNCTION_UNSPEC; state 902 dev/pcmcia/pcmcia_cis.c state->pf->last_config_index = state 905 dev/pcmcia/pcmcia_cis.c state->pf->ccr_base = 0; state 907 dev/pcmcia/pcmcia_cis.c state->pf->ccr_base |= state 911 dev/pcmcia/pcmcia_cis.c state->pf->ccr_mask = 0; state 913 dev/pcmcia/pcmcia_cis.c state->pf->ccr_mask |= state 920 dev/pcmcia/pcmcia_cis.c state->temp_cfe = init_cfe; state 921 dev/pcmcia/pcmcia_cis.c state->default_cfe = &state->temp_cfe; state 966 dev/pcmcia/pcmcia_cis.c if (state->default_cfe == NULL) { state 971 dev/pcmcia/pcmcia_cis.c if (num != state->default_cfe->number) { state 977 dev/pcmcia/pcmcia_cis.c *cfe = *state->default_cfe; state 979 dev/pcmcia/pcmcia_cis.c SIMPLEQ_INSERT_TAIL(&state->pf->cfe_head, state 990 dev/pcmcia/pcmcia_cis.c state->default_cfe = cfe; state 1007 dev/pcmcia/pcmcia_cis.c cfe = state->default_cfe; state 1015 dev/pcmcia/pcmcia_cis.c state->temp_cfe = *state->default_cfe; state 1016 dev/pcmcia/pcmcia_cis.c state->default_cfe = &state->temp_cfe; state 1119 dev/pcmcia/pcmcia_cis.c state->card->error++; state 1244 dev/pcmcia/pcmcia_cis.c state->card->error++; state 1259 dev/pcmcia/pcmcia_cis.c state->card->error++; state 1273 dev/pcmcia/pcmcia_cis.c state->card->error++; state 707 dev/raidframe/rf_dagdegrd.c int state; state 739 dev/raidframe/rf_dagdegrd.c state = 1; state 755 dev/raidframe/rf_dagdegrd.c state = 2; state 766 dev/raidframe/rf_dagdegrd.c state = 3; state 800 dev/raidframe/rf_dagdegrd.c switch (state) { state 856 dev/raidframe/rf_dagdegrd.c switch (state) { state 904 dev/raidframe/rf_dagdegrd.c switch (state) { state 1074 dev/raidframe/rf_dagdegrd.c switch (state) { state 570 dev/raidframe/rf_dagdegwr.c int state; state 589 dev/raidframe/rf_dagdegwr.c state = 1; state 605 dev/raidframe/rf_dagdegwr.c state = 2; state 616 dev/raidframe/rf_dagdegwr.c state = 3; state 664 dev/raidframe/rf_dagdegwr.c switch (state) { state 43 dev/raidframe/rf_desc.h int state; /* state 96 dev/raidframe/rf_desc.h int state; /* state 643 dev/raidframe/rf_driver.c desc->state = 0; state 301 dev/raidframe/rf_reconstruct.c reconDesc->state = 0; state 723 dev/raidframe/rf_reconstruct.c switch (reconDesc->state) { state 736 dev/raidframe/rf_reconstruct.c reconDesc->state = 1; state 785 dev/raidframe/rf_reconstruct.c reconDesc->state = 2; state 791 dev/raidframe/rf_reconstruct.c reconDesc->state = 3; state 826 dev/raidframe/rf_reconstruct.c reconDesc->state = 4; state 857 dev/raidframe/rf_reconstruct.c reconDesc->state = 5; state 867 dev/raidframe/rf_reconstruct.c reconDesc->state = 6; state 64 dev/raidframe/rf_states.c StateName(RF_AccessState_t state) state 66 dev/raidframe/rf_states.c switch (state) { state 95 dev/raidframe/rf_states.c int current_state_index = desc->state; state 100 dev/raidframe/rf_states.c current_state_index = desc->state; state 256 dev/raidframe/rf_states.c desc->state++; state 276 dev/raidframe/rf_states.c desc->state++; state 318 dev/raidframe/rf_states.c desc->state++; state 339 dev/raidframe/rf_states.c desc->state++; state 434 dev/raidframe/rf_states.c desc->state++; state 504 dev/raidframe/rf_states.c desc->state++; /* Next state should be rf_State_ExecuteDAG. */ state 529 dev/raidframe/rf_states.c desc->state++; state 590 dev/raidframe/rf_states.c desc->state = desc->state - 2; state 594 dev/raidframe/rf_states.c desc->state++; state 642 dev/raidframe/rf_states.c desc->state++; state 708 dev/rnd.c enqueue_randomness(int state, int val) state 721 dev/rnd.c if (state < 0 || state >= RND_SRC_NUM) state 725 dev/rnd.c p = &rnd_states[state]; state 726 dev/rnd.c val += state << 13; state 805 dev/rnd.c rndstats.rnd_sc[state]++; state 806 dev/rnd.c rndstats.rnd_sb[state] += nbits; state 544 dev/sdmmc/sdhc.c u_int32_t state; state 548 dev/sdmmc/sdhc.c if (((state = HREAD4(hp, SDHC_PRESENT_STATE)) & mask) state 554 dev/sdmmc/sdhc.c value, state, SDHC_PRESENT_STATE_BITS)); state 702 dev/softraid.c int i, vol, state; state 718 dev/softraid.c state = BIOC_SDONLINE; state 721 dev/softraid.c state = BIOC_SDOFFLINE; state 724 dev/softraid.c state = BIOC_SDHOTSPARE; state 727 dev/softraid.c state = BIOC_SDREBUILD; state 735 dev/softraid.c bs->bs_channel, bs->bs_target, bs->bs_status, state); state 278 dev/usb/if_atu.c int atu_switch_radio(struct atu_softc *sc, int state); state 603 dev/usb/if_atu.c atu_switch_radio(struct atu_softc *sc, int state) state 619 dev/usb/if_atu.c if (sc->atu_radio_on != state) { state 620 dev/usb/if_atu.c if (state == 0) state 633 dev/usb/if_atu.c sc->atu_dev.dv_xname, state ? "on" : "off")); state 634 dev/usb/if_atu.c sc->atu_radio_on = state; state 846 dev/usb/if_atu.c u_int8_t state; state 848 dev/usb/if_atu.c if (atu_usb_request(sc, DFU_GETSTATE, 0, 0, 1, &state)) state 850 dev/usb/if_atu.c return state; state 871 dev/usb/if_atu.c u_char state, *ptr = NULL, *firm = NULL, status[6]; state 910 dev/usb/if_atu.c state = atu_get_dfu_state(sc); state 912 dev/usb/if_atu.c while (block >= 0 && state > 0) { state 913 dev/usb/if_atu.c switch (state) { state 925 dev/usb/if_atu.c state = DFUState_DnLoadIdle; state 960 dev/usb/if_atu.c state = atu_get_dfu_state(sc); state 964 dev/usb/if_atu.c if (state != DFUState_ManifestSync) { state 1829 dev/usb/if_uath.c led.state = htobe32(on ? UATH_LED_ON : UATH_LED_OFF); state 151 dev/usb/if_uathreg.h uint32_t state; state 83 dev/usb/ugen.c int state; state 327 dev/usb/ugen.c sce->state = 0; state 526 dev/usb/ugen.c sce->state |= UGEN_ASLP; state 538 dev/usb/ugen.c sce->state &= ~UGEN_ASLP; state 569 dev/usb/ugen.c sce->state & UGEN_SHORT_OK ? state 595 dev/usb/ugen.c sce->state |= UGEN_ASLP; state 602 dev/usb/ugen.c sce->state &= ~UGEN_ASLP; state 838 dev/usb/ugen.c if (sce->state & UGEN_ASLP) { state 839 dev/usb/ugen.c sce->state &= ~UGEN_ASLP; state 897 dev/usb/ugen.c if (sce->state & UGEN_ASLP) { state 898 dev/usb/ugen.c sce->state &= ~UGEN_ASLP; state 1040 dev/usb/ugen.c sce->state |= UGEN_SHORT_OK; state 1042 dev/usb/ugen.c sce->state &= ~UGEN_SHORT_OK; state 126 dev/usb/umodem.c int feature, int state); state 128 dev/usb/umodem.c usb_cdc_line_state_t *state); state 672 dev/usb/umodem.c umodem_set_line_coding(struct umodem_softc *sc, usb_cdc_line_state_t *state) state 678 dev/usb/umodem.c UGETDW(state->dwDTERate), state->bCharFormat, state 679 dev/usb/umodem.c state->bParityType, state->bDataBits)); state 681 dev/usb/umodem.c if (memcmp(state, &sc->sc_line_state, UCDC_LINE_STATE_LENGTH) == 0) { state 692 dev/usb/umodem.c err = usbd_do_request(sc->sc_udev, &req, state); state 699 dev/usb/umodem.c sc->sc_line_state = *state; state 705 dev/usb/umodem.c umodem_set_comm_feature(struct umodem_softc *sc, int feature, int state) state 712 dev/usb/umodem.c state)); state 719 dev/usb/umodem.c USETW(ast.wState, state); state 125 dev/usb/uplcom.c usb_cdc_line_state_t *state); state 599 dev/usb/uplcom.c uplcom_set_line_coding(struct uplcom_softc *sc, usb_cdc_line_state_t *state) state 605 dev/usb/uplcom.c UGETDW(state->dwDTERate), state->bCharFormat, state 606 dev/usb/uplcom.c state->bParityType, state->bDataBits)); state 608 dev/usb/uplcom.c if (memcmp(state, &sc->sc_line_state, UCDC_LINE_STATE_LENGTH) == 0) { state 619 dev/usb/uplcom.c err = usbd_do_request(sc->sc_udev, &req, state); state 626 dev/usb/uplcom.c sc->sc_line_state = *state; state 550 dev/usb/usbdi.c pipe->state = USBD_PIPE_ACTIVE; state 90 dev/wscons/wsemul_sun.c u_int state; /* processing state */ state 147 dev/wscons/wsemul_sun.c edp->state = SUN_EMUL_STATE_NORMAL; state 290 dev/wscons/wsemul_sun.c edp->state = SUN_EMUL_STATE_HAVEESC; state 593 dev/wscons/wsemul_sun.c if ((edp->state == SUN_EMUL_STATE_NORMAL || kernel) && state 646 dev/wscons/wsemul_sun.c switch (newstate = edp->state) { state 658 dev/wscons/wsemul_sun.c panic("wsemul_sun: invalid state %d", edp->state); state 666 dev/wscons/wsemul_sun.c edp->state = newstate; state 284 dev/wscons/wsemul_vt100.c edp->state = VT100_EMUL_STATE_NORMAL; state 422 dev/wscons/wsemul_vt100.c if (edp->state == VT100_EMUL_STATE_STRING) { state 424 dev/wscons/wsemul_vt100.c edp->state = VT100_EMUL_STATE_STRING_ESC; state 427 dev/wscons/wsemul_vt100.c edp->state = VT100_EMUL_STATE_ESC; state 436 dev/wscons/wsemul_vt100.c edp->state = VT100_EMUL_STATE_CSI; state 442 dev/wscons/wsemul_vt100.c edp->state = VT100_EMUL_STATE_DCS; state 986 dev/wscons/wsemul_vt100.c if ((edp->state == VT100_EMUL_STATE_NORMAL || kernel) && state 1052 dev/wscons/wsemul_vt100.c if (edp->state == VT100_EMUL_STATE_NORMAL || kernel) { state 1057 dev/wscons/wsemul_vt100.c if (edp->state > sizeof(vt100_output) / sizeof(vt100_output[0])) state 1058 dev/wscons/wsemul_vt100.c panic("wsemul_vt100: invalid state %d", edp->state); state 1060 dev/wscons/wsemul_vt100.c edp->state = vt100_output[edp->state - 1](edp, *data); state 45 dev/wscons/wsemul_vt100var.h u_int state; /* processing state */ state 519 kern/kern_clock.c if (g->state == GMON_PROF_ON) { state 177 kern/kern_sensors.c } state; state 207 kern/kern_sensors.c switch (st->state) { state 213 kern/kern_sensors.c st->state = ST_DYING; state 217 kern/kern_sensors.c st->state = ST_DYING; state 218 kern/kern_sensors.c while (st->state != ST_DEAD) state 224 kern/kern_sensors.c st->state); state 237 kern/kern_sensors.c st->state = ST_WORKQ; state 245 kern/kern_sensors.c if (st->state == ST_DYING) { state 250 kern/kern_sensors.c st->state = ST_RUNNING; state 253 kern/kern_sensors.c if (st->state == ST_DYING) { state 254 kern/kern_sensors.c st->state = ST_DEAD; state 257 kern/kern_sensors.c st->state = ST_TICKING; state 112 kern/subr_prof.c error = sysctl_int(oldp, oldlenp, newp, newlen, &gp->state); state 115 kern/subr_prof.c if (gp->state == GMON_PROF_OFF) state 352 kern/subr_userconf.c userconf_device(char *cmd, int *len, short *unit, short *state) state 379 kern/subr_userconf.c *state = s; state 854 kern/subr_userconf.c userconf_common_dev(char *dev, int len, short unit, short state, char routine) state 877 kern/subr_userconf.c (state == FSTATE_FOUND || state 878 kern/subr_userconf.c (state == FSTATE_STAR && state 881 kern/subr_userconf.c (state == FSTATE_NOTFOUND && state 912 kern/subr_userconf.c state == FSTATE_FOUND) { state 1016 kern/subr_userconf.c userconf_add(char *dev, int len, short unit, short state) state 1029 kern/subr_userconf.c if (state == FSTATE_FOUND) { state 1051 kern/subr_userconf.c new.cf_fstate = state; state 1061 kern/subr_userconf.c userconf_hist_int(state); state 1163 kern/subr_userconf.c short unit, state; state 1202 kern/subr_userconf.c else if (userconf_device(c, &a, &unit, &state) == 0) state 1203 kern/subr_userconf.c userconf_add(c, a, unit, state); state 1224 kern/subr_userconf.c else if (userconf_device(c, &a, &unit, &state) == 0) state 1225 kern/subr_userconf.c userconf_common_dev(c, a, unit, state, UC_CHANGE); state 1241 kern/subr_userconf.c else if (userconf_device(c, &a, &unit, &state) == 0) state 1242 kern/subr_userconf.c userconf_common_dev(c, a, unit, state, UC_DISABLE); state 1253 kern/subr_userconf.c else if (userconf_device(c, &a, &unit, &state) == 0) state 1254 kern/subr_userconf.c userconf_common_dev(c, a, unit, state, UC_ENABLE); state 1263 kern/subr_userconf.c else if (userconf_device(c, &a, &unit, &state) == 0) state 1264 kern/subr_userconf.c userconf_common_dev(c, a, unit, state, UC_FIND); state 107 kern/sysv_shm.c struct shmmap_state state[1]; state 200 kern/sysv_shm.c for (i = 0, shmmap_s = shmmap_h->state; i < shmmap_h->shmseg; state 234 kern/sysv_shm.c for (i = 0, shmmap_s = shmmap_h->state; i < shmmap_h->shmseg; state 246 kern/sysv_shm.c for (i = 0, shmmap_s = shmmap_h->state; i < shmmap_h->shmseg; i++) { state 504 kern/sysv_shm.c for (i = 0, shmmap_s = shmmap_h->state; i < shmmap_h->shmseg; state 522 kern/sysv_shm.c for (i = 0, shmmap_s = shmmap_h->state; i < shmmap_h->shmseg; state 79 lib/libkern/mcount.c if (p->state != GMON_PROF_ON) state 84 lib/libkern/mcount.c p->state = GMON_PROF_BUSY; state 177 lib/libkern/mcount.c p->state = GMON_PROF_ON; state 181 lib/libkern/mcount.c p->state = GMON_PROF_ERROR; state 19 lib/libz/infback.c local void fixedtables OF((struct inflate_state FAR *state)); state 35 lib/libz/infback.c struct inflate_state FAR *state; state 49 lib/libz/infback.c state = (struct inflate_state FAR *)ZALLOC(strm, 1, state 51 lib/libz/infback.c if (state == Z_NULL) return Z_MEM_ERROR; state 53 lib/libz/infback.c strm->state = (struct internal_state FAR *)state; state 54 lib/libz/infback.c state->dmax = 32768U; state 55 lib/libz/infback.c state->wbits = windowBits; state 56 lib/libz/infback.c state->wsize = 1U << windowBits; state 57 lib/libz/infback.c state->window = window; state 58 lib/libz/infback.c state->write = 0; state 59 lib/libz/infback.c state->whave = 0; state 73 lib/libz/infback.c local void fixedtables(state) state 74 lib/libz/infback.c struct inflate_state FAR *state; state 88 lib/libz/infback.c while (sym < 144) state->lens[sym++] = 8; state 89 lib/libz/infback.c while (sym < 256) state->lens[sym++] = 9; state 90 lib/libz/infback.c while (sym < 280) state->lens[sym++] = 7; state 91 lib/libz/infback.c while (sym < 288) state->lens[sym++] = 8; state 95 lib/libz/infback.c inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work); state 99 lib/libz/infback.c while (sym < 32) state->lens[sym++] = 5; state 102 lib/libz/infback.c inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work); state 110 lib/libz/infback.c state->lencode = lenfix; state 111 lib/libz/infback.c state->lenbits = 9; state 112 lib/libz/infback.c state->distcode = distfix; state 113 lib/libz/infback.c state->distbits = 5; state 125 lib/libz/infback.c hold = state->hold; \ state 126 lib/libz/infback.c bits = state->bits; \ state 136 lib/libz/infback.c state->hold = hold; \ state 137 lib/libz/infback.c state->bits = bits; \ state 204 lib/libz/infback.c put = state->window; \ state 205 lib/libz/infback.c left = state->wsize; \ state 206 lib/libz/infback.c state->whave = left; \ state 248 lib/libz/infback.c struct inflate_state FAR *state; state 264 lib/libz/infback.c if (strm == Z_NULL || strm->state == Z_NULL) state 266 lib/libz/infback.c state = (struct inflate_state FAR *)strm->state; state 270 lib/libz/infback.c state->mode = TYPE; state 271 lib/libz/infback.c state->last = 0; state 272 lib/libz/infback.c state->whave = 0; state 277 lib/libz/infback.c put = state->window; state 278 lib/libz/infback.c left = state->wsize; state 282 lib/libz/infback.c switch (state->mode) { state 285 lib/libz/infback.c if (state->last) { state 287 lib/libz/infback.c state->mode = DONE; state 291 lib/libz/infback.c state->last = BITS(1); state 296 lib/libz/infback.c state->last ? " (last)" : "")); state 297 lib/libz/infback.c state->mode = STORED; state 300 lib/libz/infback.c fixedtables(state); state 302 lib/libz/infback.c state->last ? " (last)" : "")); state 303 lib/libz/infback.c state->mode = LEN; /* decode codes */ state 307 lib/libz/infback.c state->last ? " (last)" : "")); state 308 lib/libz/infback.c state->mode = TABLE; state 316 lib/libz/infback.c state->mode = BAD; state 331 lib/libz/infback.c state->mode = BAD; state 334 lib/libz/infback.c state->length = (unsigned)hold & 0xffff; state 336 lib/libz/infback.c state->length)); state 340 lib/libz/infback.c while (state->length != 0) { state 341 lib/libz/infback.c copy = state->length; state 351 lib/libz/infback.c state->length -= copy; state 354 lib/libz/infback.c state->mode = TYPE; state 360 lib/libz/infback.c state->nlen = BITS(5) + 257; state 362 lib/libz/infback.c state->ndist = BITS(5) + 1; state 364 lib/libz/infback.c state->ncode = BITS(4) + 4; state 367 lib/libz/infback.c if (state->nlen > 286 || state->ndist > 30) { state 373 lib/libz/infback.c state->mode = BAD; state 380 lib/libz/infback.c state->have = 0; state 381 lib/libz/infback.c while (state->have < state->ncode) { state 383 lib/libz/infback.c state->lens[order[state->have++]] = (unsigned short)BITS(3); state 386 lib/libz/infback.c while (state->have < 19) state 387 lib/libz/infback.c state->lens[order[state->have++]] = 0; state 388 lib/libz/infback.c state->next = state->codes; state 389 lib/libz/infback.c state->lencode = (code const FAR *)(state->next); state 390 lib/libz/infback.c state->lenbits = 7; state 391 lib/libz/infback.c ret = inflate_table(CODES, state->lens, 19, &(state->next), state 392 lib/libz/infback.c &(state->lenbits), state->work); state 395 lib/libz/infback.c state->mode = BAD; state 401 lib/libz/infback.c state->have = 0; state 402 lib/libz/infback.c while (state->have < state->nlen + state->ndist) { state 404 lib/libz/infback.c this = state->lencode[BITS(state->lenbits)]; state 411 lib/libz/infback.c state->lens[state->have++] = this.val; state 417 lib/libz/infback.c if (state->have == 0) { state 419 lib/libz/infback.c state->mode = BAD; state 422 lib/libz/infback.c len = (unsigned)(state->lens[state->have - 1]); state 440 lib/libz/infback.c if (state->have + copy > state->nlen + state->ndist) { state 442 lib/libz/infback.c state->mode = BAD; state 446 lib/libz/infback.c state->lens[state->have++] = (unsigned short)len; state 451 lib/libz/infback.c if (state->mode == BAD) break; state 454 lib/libz/infback.c state->next = state->codes; state 455 lib/libz/infback.c state->lencode = (code const FAR *)(state->next); state 456 lib/libz/infback.c state->lenbits = 9; state 457 lib/libz/infback.c ret = inflate_table(LENS, state->lens, state->nlen, &(state->next), state 458 lib/libz/infback.c &(state->lenbits), state->work); state 461 lib/libz/infback.c state->mode = BAD; state 464 lib/libz/infback.c state->distcode = (code const FAR *)(state->next); state 465 lib/libz/infback.c state->distbits = 6; state 466 lib/libz/infback.c ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist, state 467 lib/libz/infback.c &(state->next), &(state->distbits), state->work); state 470 lib/libz/infback.c state->mode = BAD; state 474 lib/libz/infback.c state->mode = LEN; state 481 lib/libz/infback.c if (state->whave < state->wsize) state 482 lib/libz/infback.c state->whave = state->wsize - left; state 483 lib/libz/infback.c inflate_fast(strm, state->wsize); state 491 lib/libz/infback.c this = state->lencode[BITS(state->lenbits)]; state 498 lib/libz/infback.c this = state->lencode[last.val + state 506 lib/libz/infback.c state->length = (unsigned)this.val; state 514 lib/libz/infback.c *put++ = (unsigned char)(state->length); state 516 lib/libz/infback.c state->mode = LEN; state 523 lib/libz/infback.c state->mode = TYPE; state 530 lib/libz/infback.c state->mode = BAD; state 535 lib/libz/infback.c state->extra = (unsigned)(this.op) & 15; state 536 lib/libz/infback.c if (state->extra != 0) { state 537 lib/libz/infback.c NEEDBITS(state->extra); state 538 lib/libz/infback.c state->length += BITS(state->extra); state 539 lib/libz/infback.c DROPBITS(state->extra); state 541 lib/libz/infback.c Tracevv((stderr, "inflate: length %u\n", state->length)); state 545 lib/libz/infback.c this = state->distcode[BITS(state->distbits)]; state 552 lib/libz/infback.c this = state->distcode[last.val + state 562 lib/libz/infback.c state->mode = BAD; state 565 lib/libz/infback.c state->offset = (unsigned)this.val; state 568 lib/libz/infback.c state->extra = (unsigned)(this.op) & 15; state 569 lib/libz/infback.c if (state->extra != 0) { state 570 lib/libz/infback.c NEEDBITS(state->extra); state 571 lib/libz/infback.c state->offset += BITS(state->extra); state 572 lib/libz/infback.c DROPBITS(state->extra); state 574 lib/libz/infback.c if (state->offset > state->wsize - (state->whave < state->wsize ? state 577 lib/libz/infback.c state->mode = BAD; state 580 lib/libz/infback.c Tracevv((stderr, "inflate: distance %u\n", state->offset)); state 585 lib/libz/infback.c copy = state->wsize - state->offset; state 591 lib/libz/infback.c from = put - state->offset; state 594 lib/libz/infback.c if (copy > state->length) copy = state->length; state 595 lib/libz/infback.c state->length -= copy; state 600 lib/libz/infback.c } while (state->length != 0); state 606 lib/libz/infback.c if (left < state->wsize) { state 607 lib/libz/infback.c if (out(out_desc, state->window, state->wsize - left)) state 631 lib/libz/infback.c if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0) state 633 lib/libz/infback.c ZFREE(strm, strm->state); state 634 lib/libz/infback.c strm->state = Z_NULL; state 72 lib/libz/inffast.c struct inflate_state FAR *state; state 99 lib/libz/inffast.c state = (struct inflate_state FAR *)strm->state; state 106 lib/libz/inffast.c dmax = state->dmax; state 108 lib/libz/inffast.c wsize = state->wsize; state 109 lib/libz/inffast.c whave = state->whave; state 110 lib/libz/inffast.c write = state->write; state 111 lib/libz/inffast.c window = state->window; state 112 lib/libz/inffast.c hold = state->hold; state 113 lib/libz/inffast.c bits = state->bits; state 114 lib/libz/inffast.c lcode = state->lencode; state 115 lib/libz/inffast.c dcode = state->distcode; state 116 lib/libz/inffast.c lmask = (1U << state->lenbits) - 1; state 117 lib/libz/inffast.c dmask = (1U << state->distbits) - 1; state 180 lib/libz/inffast.c state->mode = BAD; state 196 lib/libz/inffast.c state->mode = BAD; state 276 lib/libz/inffast.c state->mode = BAD; state 286 lib/libz/inffast.c state->mode = TYPE; state 295 lib/libz/inffast.c state->mode = BAD; state 312 lib/libz/inffast.c state->hold = hold; state 313 lib/libz/inffast.c state->bits = bits; state 96 lib/libz/inflate.c local void fixedtables OF((struct inflate_state FAR *state)); state 107 lib/libz/inflate.c struct inflate_state FAR *state; state 109 lib/libz/inflate.c if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; state 110 lib/libz/inflate.c state = (struct inflate_state FAR *)strm->state; state 111 lib/libz/inflate.c strm->total_in = strm->total_out = state->total = 0; state 114 lib/libz/inflate.c state->mode = HEAD; state 115 lib/libz/inflate.c state->last = 0; state 116 lib/libz/inflate.c state->havedict = 0; state 117 lib/libz/inflate.c state->dmax = 32768U; state 118 lib/libz/inflate.c state->head = Z_NULL; state 119 lib/libz/inflate.c state->wsize = 0; state 120 lib/libz/inflate.c state->whave = 0; state 121 lib/libz/inflate.c state->write = 0; state 122 lib/libz/inflate.c state->hold = 0; state 123 lib/libz/inflate.c state->bits = 0; state 124 lib/libz/inflate.c state->lencode = state->distcode = state->next = state->codes; state 134 lib/libz/inflate.c struct inflate_state FAR *state; state 136 lib/libz/inflate.c if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; state 137 lib/libz/inflate.c state = (struct inflate_state FAR *)strm->state; state 138 lib/libz/inflate.c if (bits > 16 || state->bits + bits > 32) return Z_STREAM_ERROR; state 140 lib/libz/inflate.c state->hold += value << state->bits; state 141 lib/libz/inflate.c state->bits += bits; state 151 lib/libz/inflate.c struct inflate_state FAR *state; state 163 lib/libz/inflate.c state = (struct inflate_state FAR *) state 165 lib/libz/inflate.c if (state == Z_NULL) return Z_MEM_ERROR; state 167 lib/libz/inflate.c strm->state = (struct internal_state FAR *)state; state 169 lib/libz/inflate.c state->wrap = 0; state 173 lib/libz/inflate.c state->wrap = (windowBits >> 4) + 1; state 179 lib/libz/inflate.c ZFREE(strm, state); state 180 lib/libz/inflate.c strm->state = Z_NULL; state 183 lib/libz/inflate.c state->wbits = (unsigned)windowBits; state 184 lib/libz/inflate.c state->window = Z_NULL; state 206 lib/libz/inflate.c local void fixedtables(state) state 207 lib/libz/inflate.c struct inflate_state FAR *state; state 221 lib/libz/inflate.c while (sym < 144) state->lens[sym++] = 8; state 222 lib/libz/inflate.c while (sym < 256) state->lens[sym++] = 9; state 223 lib/libz/inflate.c while (sym < 280) state->lens[sym++] = 7; state 224 lib/libz/inflate.c while (sym < 288) state->lens[sym++] = 8; state 228 lib/libz/inflate.c inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work); state 232 lib/libz/inflate.c while (sym < 32) state->lens[sym++] = 5; state 235 lib/libz/inflate.c inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work); state 243 lib/libz/inflate.c state->lencode = lenfix; state 244 lib/libz/inflate.c state->lenbits = 9; state 245 lib/libz/inflate.c state->distcode = distfix; state 246 lib/libz/inflate.c state->distbits = 5; state 273 lib/libz/inflate.c struct inflate_state state; state 275 lib/libz/inflate.c fixedtables(&state); state 290 lib/libz/inflate.c printf("{%u,%u,%d}", state.lencode[low].op, state.lencode[low].bits, state 291 lib/libz/inflate.c state.lencode[low].val); state 301 lib/libz/inflate.c printf("{%u,%u,%d}", state.distcode[low].op, state.distcode[low].bits, state 302 lib/libz/inflate.c state.distcode[low].val); state 328 lib/libz/inflate.c struct inflate_state FAR *state; state 331 lib/libz/inflate.c state = (struct inflate_state FAR *)strm->state; state 334 lib/libz/inflate.c if (state->window == Z_NULL) { state 335 lib/libz/inflate.c state->window = (unsigned char FAR *) state 336 lib/libz/inflate.c ZALLOC(strm, 1U << state->wbits, state 338 lib/libz/inflate.c if (state->window == Z_NULL) return 1; state 342 lib/libz/inflate.c if (state->wsize == 0) { state 343 lib/libz/inflate.c state->wsize = 1U << state->wbits; state 344 lib/libz/inflate.c state->write = 0; state 345 lib/libz/inflate.c state->whave = 0; state 350 lib/libz/inflate.c if (copy >= state->wsize) { state 351 lib/libz/inflate.c zmemcpy(state->window, strm->next_out - state->wsize, state->wsize); state 352 lib/libz/inflate.c state->write = 0; state 353 lib/libz/inflate.c state->whave = state->wsize; state 356 lib/libz/inflate.c dist = state->wsize - state->write; state 358 lib/libz/inflate.c zmemcpy(state->window + state->write, strm->next_out - copy, dist); state 361 lib/libz/inflate.c zmemcpy(state->window, strm->next_out - copy, copy); state 362 lib/libz/inflate.c state->write = copy; state 363 lib/libz/inflate.c state->whave = state->wsize; state 366 lib/libz/inflate.c state->write += dist; state 367 lib/libz/inflate.c if (state->write == state->wsize) state->write = 0; state 368 lib/libz/inflate.c if (state->whave < state->wsize) state->whave += dist; state 379 lib/libz/inflate.c (state->flags ? crc32(check, buf, len) : adler32(check, buf, len)) state 410 lib/libz/inflate.c hold = state->hold; \ state 411 lib/libz/inflate.c bits = state->bits; \ state 421 lib/libz/inflate.c state->hold = hold; \ state 422 lib/libz/inflate.c state->bits = bits; \ state 559 lib/libz/inflate.c struct inflate_state FAR *state; state 578 lib/libz/inflate.c if (strm == Z_NULL || strm->state == Z_NULL || state 585 lib/libz/inflate.c state = (struct inflate_state FAR *)strm->state; state 586 lib/libz/inflate.c if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */ state 592 lib/libz/inflate.c switch (state->mode) { state 594 lib/libz/inflate.c if (state->wrap == 0) { state 595 lib/libz/inflate.c state->mode = TYPEDO; state 600 lib/libz/inflate.c if ((state->wrap & 2) && hold == 0x8b1f) { /* gzip header */ state 601 lib/libz/inflate.c state->check = crc32(0L, Z_NULL, 0); state 602 lib/libz/inflate.c CRC2(state->check, hold); state 604 lib/libz/inflate.c state->mode = FLAGS; state 607 lib/libz/inflate.c state->flags = 0; /* expect zlib header */ state 608 lib/libz/inflate.c if (state->head != Z_NULL) state 609 lib/libz/inflate.c state->head->done = -1; state 610 lib/libz/inflate.c if (!(state->wrap & 1) || /* check if zlib header allowed */ state 620 lib/libz/inflate.c state->mode = BAD; state 629 lib/libz/inflate.c state->mode = BAD; state 634 lib/libz/inflate.c if (len > state->wbits) { state 640 lib/libz/inflate.c state->mode = BAD; state 643 lib/libz/inflate.c state->dmax = 1U << len; state 645 lib/libz/inflate.c strm->adler = state->check = adler32(0L, Z_NULL, 0); state 646 lib/libz/inflate.c state->mode = hold & 0x200 ? DICTID : TYPE; state 652 lib/libz/inflate.c state->flags = (int)(hold); state 653 lib/libz/inflate.c if ((state->flags & 0xff) != Z_DEFLATED) { state 659 lib/libz/inflate.c state->mode = BAD; state 662 lib/libz/inflate.c if (state->flags & 0xe000) { state 668 lib/libz/inflate.c state->mode = BAD; state 671 lib/libz/inflate.c if (state->head != Z_NULL) state 672 lib/libz/inflate.c state->head->text = (int)((hold >> 8) & 1); state 673 lib/libz/inflate.c if (state->flags & 0x0200) CRC2(state->check, hold); state 675 lib/libz/inflate.c state->mode = TIME; state 678 lib/libz/inflate.c if (state->head != Z_NULL) state 679 lib/libz/inflate.c state->head->time = hold; state 680 lib/libz/inflate.c if (state->flags & 0x0200) CRC4(state->check, hold); state 682 lib/libz/inflate.c state->mode = OS; state 685 lib/libz/inflate.c if (state->head != Z_NULL) { state 686 lib/libz/inflate.c state->head->xflags = (int)(hold & 0xff); state 687 lib/libz/inflate.c state->head->os = (int)(hold >> 8); state 689 lib/libz/inflate.c if (state->flags & 0x0200) CRC2(state->check, hold); state 691 lib/libz/inflate.c state->mode = EXLEN; state 693 lib/libz/inflate.c if (state->flags & 0x0400) { state 695 lib/libz/inflate.c state->length = (unsigned)(hold); state 696 lib/libz/inflate.c if (state->head != Z_NULL) state 697 lib/libz/inflate.c state->head->extra_len = (unsigned)hold; state 698 lib/libz/inflate.c if (state->flags & 0x0200) CRC2(state->check, hold); state 701 lib/libz/inflate.c else if (state->head != Z_NULL) state 702 lib/libz/inflate.c state->head->extra = Z_NULL; state 703 lib/libz/inflate.c state->mode = EXTRA; state 705 lib/libz/inflate.c if (state->flags & 0x0400) { state 706 lib/libz/inflate.c copy = state->length; state 709 lib/libz/inflate.c if (state->head != Z_NULL && state 710 lib/libz/inflate.c state->head->extra != Z_NULL) { state 711 lib/libz/inflate.c len = state->head->extra_len - state->length; state 712 lib/libz/inflate.c zmemcpy(state->head->extra + len, next, state 713 lib/libz/inflate.c len + copy > state->head->extra_max ? state 714 lib/libz/inflate.c state->head->extra_max - len : copy); state 716 lib/libz/inflate.c if (state->flags & 0x0200) state 717 lib/libz/inflate.c state->check = crc32(state->check, next, copy); state 720 lib/libz/inflate.c state->length -= copy; state 722 lib/libz/inflate.c if (state->length) goto inf_leave; state 724 lib/libz/inflate.c state->length = 0; state 725 lib/libz/inflate.c state->mode = NAME; state 727 lib/libz/inflate.c if (state->flags & 0x0800) { state 732 lib/libz/inflate.c if (state->head != Z_NULL && state 733 lib/libz/inflate.c state->head->name != Z_NULL && state 734 lib/libz/inflate.c state->length < state->head->name_max) state 735 lib/libz/inflate.c state->head->name[state->length++] = len; state 737 lib/libz/inflate.c if (state->flags & 0x0200) state 738 lib/libz/inflate.c state->check = crc32(state->check, next, copy); state 743 lib/libz/inflate.c else if (state->head != Z_NULL) state 744 lib/libz/inflate.c state->head->name = Z_NULL; state 745 lib/libz/inflate.c state->length = 0; state 746 lib/libz/inflate.c state->mode = COMMENT; state 748 lib/libz/inflate.c if (state->flags & 0x1000) { state 753 lib/libz/inflate.c if (state->head != Z_NULL && state 754 lib/libz/inflate.c state->head->comment != Z_NULL && state 755 lib/libz/inflate.c state->length < state->head->comm_max) state 756 lib/libz/inflate.c state->head->comment[state->length++] = len; state 758 lib/libz/inflate.c if (state->flags & 0x0200) state 759 lib/libz/inflate.c state->check = crc32(state->check, next, copy); state 764 lib/libz/inflate.c else if (state->head != Z_NULL) state 765 lib/libz/inflate.c state->head->comment = Z_NULL; state 766 lib/libz/inflate.c state->mode = HCRC; state 768 lib/libz/inflate.c if (state->flags & 0x0200) { state 770 lib/libz/inflate.c if (hold != (state->check & 0xffff)) { state 776 lib/libz/inflate.c state->mode = BAD; state 781 lib/libz/inflate.c if (state->head != Z_NULL) { state 782 lib/libz/inflate.c state->head->hcrc = (int)((state->flags >> 9) & 1); state 783 lib/libz/inflate.c state->head->done = 1; state 785 lib/libz/inflate.c strm->adler = state->check = crc32(0L, Z_NULL, 0); state 786 lib/libz/inflate.c state->mode = TYPE; state 791 lib/libz/inflate.c strm->adler = state->check = REVERSE(hold); state 793 lib/libz/inflate.c state->mode = DICT; state 795 lib/libz/inflate.c if (state->havedict == 0) { state 799 lib/libz/inflate.c strm->adler = state->check = adler32(0L, Z_NULL, 0); state 800 lib/libz/inflate.c state->mode = TYPE; state 804 lib/libz/inflate.c if (state->last) { state 806 lib/libz/inflate.c state->mode = CHECK; state 810 lib/libz/inflate.c state->last = BITS(1); state 815 lib/libz/inflate.c state->last ? " (last)" : "")); state 816 lib/libz/inflate.c state->mode = STORED; state 819 lib/libz/inflate.c fixedtables(state); state 821 lib/libz/inflate.c state->last ? " (last)" : "")); state 822 lib/libz/inflate.c state->mode = LEN; /* decode codes */ state 826 lib/libz/inflate.c state->last ? " (last)" : "")); state 827 lib/libz/inflate.c state->mode = TABLE; state 835 lib/libz/inflate.c state->mode = BAD; state 848 lib/libz/inflate.c state->mode = BAD; state 851 lib/libz/inflate.c state->length = (unsigned)hold & 0xffff; state 853 lib/libz/inflate.c state->length)); state 855 lib/libz/inflate.c state->mode = COPY; state 857 lib/libz/inflate.c copy = state->length; state 867 lib/libz/inflate.c state->length -= copy; state 871 lib/libz/inflate.c state->mode = TYPE; state 875 lib/libz/inflate.c state->nlen = BITS(5) + 257; state 877 lib/libz/inflate.c state->ndist = BITS(5) + 1; state 879 lib/libz/inflate.c state->ncode = BITS(4) + 4; state 882 lib/libz/inflate.c if (state->nlen > 286 || state->ndist > 30) { state 888 lib/libz/inflate.c state->mode = BAD; state 893 lib/libz/inflate.c state->have = 0; state 894 lib/libz/inflate.c state->mode = LENLENS; state 896 lib/libz/inflate.c while (state->have < state->ncode) { state 898 lib/libz/inflate.c state->lens[order[state->have++]] = (unsigned short)BITS(3); state 901 lib/libz/inflate.c while (state->have < 19) state 902 lib/libz/inflate.c state->lens[order[state->have++]] = 0; state 903 lib/libz/inflate.c state->next = state->codes; state 904 lib/libz/inflate.c state->lencode = (code const FAR *)(state->next); state 905 lib/libz/inflate.c state->lenbits = 7; state 906 lib/libz/inflate.c ret = inflate_table(CODES, state->lens, 19, &(state->next), state 907 lib/libz/inflate.c &(state->lenbits), state->work); state 914 lib/libz/inflate.c state->mode = BAD; state 918 lib/libz/inflate.c state->have = 0; state 919 lib/libz/inflate.c state->mode = CODELENS; state 921 lib/libz/inflate.c while (state->have < state->nlen + state->ndist) { state 923 lib/libz/inflate.c this = state->lencode[BITS(state->lenbits)]; state 930 lib/libz/inflate.c state->lens[state->have++] = this.val; state 936 lib/libz/inflate.c if (state->have == 0) { state 942 lib/libz/inflate.c state->mode = BAD; state 945 lib/libz/inflate.c len = state->lens[state->have - 1]; state 963 lib/libz/inflate.c if (state->have + copy > state->nlen + state->ndist) { state 969 lib/libz/inflate.c state->mode = BAD; state 973 lib/libz/inflate.c state->lens[state->have++] = (unsigned short)len; state 978 lib/libz/inflate.c if (state->mode == BAD) break; state 981 lib/libz/inflate.c state->next = state->codes; state 982 lib/libz/inflate.c state->lencode = (code const FAR *)(state->next); state 983 lib/libz/inflate.c state->lenbits = 9; state 984 lib/libz/inflate.c ret = inflate_table(LENS, state->lens, state->nlen, &(state->next), state 985 lib/libz/inflate.c &(state->lenbits), state->work); state 992 lib/libz/inflate.c state->mode = BAD; state 995 lib/libz/inflate.c state->distcode = (code const FAR *)(state->next); state 996 lib/libz/inflate.c state->distbits = 6; state 997 lib/libz/inflate.c ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist, state 998 lib/libz/inflate.c &(state->next), &(state->distbits), state->work); state 1005 lib/libz/inflate.c state->mode = BAD; state 1009 lib/libz/inflate.c state->mode = LEN; state 1020 lib/libz/inflate.c this = state->lencode[BITS(state->lenbits)]; state 1027 lib/libz/inflate.c this = state->lencode[last.val + state 1035 lib/libz/inflate.c state->length = (unsigned)this.val; state 1040 lib/libz/inflate.c state->mode = LIT; state 1045 lib/libz/inflate.c state->mode = TYPE; state 1054 lib/libz/inflate.c state->mode = BAD; state 1057 lib/libz/inflate.c state->extra = (unsigned)(this.op) & 15; state 1058 lib/libz/inflate.c state->mode = LENEXT; state 1060 lib/libz/inflate.c if (state->extra) { state 1061 lib/libz/inflate.c NEEDBITS(state->extra); state 1062 lib/libz/inflate.c state->length += BITS(state->extra); state 1063 lib/libz/inflate.c DROPBITS(state->extra); state 1065 lib/libz/inflate.c Tracevv((stderr, "inflate: length %u\n", state->length)); state 1066 lib/libz/inflate.c state->mode = DIST; state 1069 lib/libz/inflate.c this = state->distcode[BITS(state->distbits)]; state 1076 lib/libz/inflate.c this = state->distcode[last.val + state 1090 lib/libz/inflate.c state->mode = BAD; state 1093 lib/libz/inflate.c state->offset = (unsigned)this.val; state 1094 lib/libz/inflate.c state->extra = (unsigned)(this.op) & 15; state 1095 lib/libz/inflate.c state->mode = DISTEXT; state 1097 lib/libz/inflate.c if (state->extra) { state 1098 lib/libz/inflate.c NEEDBITS(state->extra); state 1099 lib/libz/inflate.c state->offset += BITS(state->extra); state 1100 lib/libz/inflate.c DROPBITS(state->extra); state 1103 lib/libz/inflate.c if (state->offset > state->dmax) { state 1105 lib/libz/inflate.c state->mode = BAD; state 1109 lib/libz/inflate.c if (state->offset > state->whave + out - left) { state 1115 lib/libz/inflate.c state->mode = BAD; state 1118 lib/libz/inflate.c Tracevv((stderr, "inflate: distance %u\n", state->offset)); state 1119 lib/libz/inflate.c state->mode = MATCH; state 1123 lib/libz/inflate.c if (state->offset > copy) { /* copy from window */ state 1124 lib/libz/inflate.c copy = state->offset - copy; state 1125 lib/libz/inflate.c if (copy > state->write) { state 1126 lib/libz/inflate.c copy -= state->write; state 1127 lib/libz/inflate.c from = state->window + (state->wsize - copy); state 1130 lib/libz/inflate.c from = state->window + (state->write - copy); state 1131 lib/libz/inflate.c if (copy > state->length) copy = state->length; state 1134 lib/libz/inflate.c from = put - state->offset; state 1135 lib/libz/inflate.c copy = state->length; state 1139 lib/libz/inflate.c state->length -= copy; state 1143 lib/libz/inflate.c if (state->length == 0) state->mode = LEN; state 1147 lib/libz/inflate.c *put++ = (unsigned char)(state->length); state 1149 lib/libz/inflate.c state->mode = LEN; state 1152 lib/libz/inflate.c if (state->wrap) { state 1156 lib/libz/inflate.c state->total += out; state 1158 lib/libz/inflate.c strm->adler = state->check = state 1159 lib/libz/inflate.c UPDATE(state->check, put - out, out); state 1163 lib/libz/inflate.c state->flags ? hold : state 1165 lib/libz/inflate.c REVERSE(hold)) != state->check) { state 1171 lib/libz/inflate.c state->mode = BAD; state 1178 lib/libz/inflate.c state->mode = LENGTH; state 1180 lib/libz/inflate.c if (state->wrap && state->flags) { state 1182 lib/libz/inflate.c if (hold != (state->total & 0xffffffffUL)) { state 1188 lib/libz/inflate.c state->mode = BAD; state 1195 lib/libz/inflate.c state->mode = DONE; state 1217 lib/libz/inflate.c if (state->wsize || (state->mode < CHECK && out != strm->avail_out)) state 1219 lib/libz/inflate.c state->mode = MEM; state 1226 lib/libz/inflate.c state->total += out; state 1227 lib/libz/inflate.c if (state->wrap && out) state 1228 lib/libz/inflate.c strm->adler = state->check = state 1229 lib/libz/inflate.c UPDATE(state->check, strm->next_out - out, out); state 1230 lib/libz/inflate.c strm->data_type = state->bits + (state->last ? 64 : 0) + state 1231 lib/libz/inflate.c (state->mode == TYPE ? 128 : 0); state 1240 lib/libz/inflate.c struct inflate_state FAR *state; state 1241 lib/libz/inflate.c if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0) state 1243 lib/libz/inflate.c state = (struct inflate_state FAR *)strm->state; state 1244 lib/libz/inflate.c if (state->window != Z_NULL) ZFREE(strm, state->window); state 1245 lib/libz/inflate.c ZFREE(strm, strm->state); state 1246 lib/libz/inflate.c strm->state = Z_NULL; state 1256 lib/libz/inflate.c struct inflate_state FAR *state; state 1260 lib/libz/inflate.c if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; state 1261 lib/libz/inflate.c state = (struct inflate_state FAR *)strm->state; state 1262 lib/libz/inflate.c if (state->wrap != 0 && state->mode != DICT) state 1266 lib/libz/inflate.c if (state->mode == DICT) { state 1269 lib/libz/inflate.c if (id != state->check) state 1275 lib/libz/inflate.c state->mode = MEM; state 1278 lib/libz/inflate.c if (dictLength > state->wsize) { state 1279 lib/libz/inflate.c zmemcpy(state->window, dictionary + dictLength - state->wsize, state 1280 lib/libz/inflate.c state->wsize); state 1281 lib/libz/inflate.c state->whave = state->wsize; state 1284 lib/libz/inflate.c zmemcpy(state->window + state->wsize - dictLength, dictionary, state 1286 lib/libz/inflate.c state->whave = dictLength; state 1288 lib/libz/inflate.c state->havedict = 1; state 1297 lib/libz/inflate.c struct inflate_state FAR *state; state 1300 lib/libz/inflate.c if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; state 1301 lib/libz/inflate.c state = (struct inflate_state FAR *)strm->state; state 1302 lib/libz/inflate.c if ((state->wrap & 2) == 0) return Z_STREAM_ERROR; state 1305 lib/libz/inflate.c state->head = head; state 1350 lib/libz/inflate.c struct inflate_state FAR *state; state 1353 lib/libz/inflate.c if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; state 1354 lib/libz/inflate.c state = (struct inflate_state FAR *)strm->state; state 1355 lib/libz/inflate.c if (strm->avail_in == 0 && state->bits < 8) return Z_BUF_ERROR; state 1358 lib/libz/inflate.c if (state->mode != SYNC) { state 1359 lib/libz/inflate.c state->mode = SYNC; state 1360 lib/libz/inflate.c state->hold <<= state->bits & 7; state 1361 lib/libz/inflate.c state->bits -= state->bits & 7; state 1363 lib/libz/inflate.c while (state->bits >= 8) { state 1364 lib/libz/inflate.c buf[len++] = (unsigned char)(state->hold); state 1365 lib/libz/inflate.c state->hold >>= 8; state 1366 lib/libz/inflate.c state->bits -= 8; state 1368 lib/libz/inflate.c state->have = 0; state 1369 lib/libz/inflate.c syncsearch(&(state->have), buf, len); state 1373 lib/libz/inflate.c len = syncsearch(&(state->have), strm->next_in, strm->avail_in); state 1379 lib/libz/inflate.c if (state->have != 4) return Z_DATA_ERROR; state 1383 lib/libz/inflate.c state->mode = TYPE; state 1398 lib/libz/inflate.c struct inflate_state FAR *state; state 1400 lib/libz/inflate.c if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; state 1401 lib/libz/inflate.c state = (struct inflate_state FAR *)strm->state; state 1402 lib/libz/inflate.c return state->mode == STORED && state->bits == 0; state 1409 lib/libz/inflate.c struct inflate_state FAR *state; state 1415 lib/libz/inflate.c if (dest == Z_NULL || source == Z_NULL || source->state == Z_NULL || state 1418 lib/libz/inflate.c state = (struct inflate_state FAR *)source->state; state 1425 lib/libz/inflate.c if (state->window != Z_NULL) { state 1427 lib/libz/inflate.c ZALLOC(source, 1U << state->wbits, sizeof(unsigned char)); state 1436 lib/libz/inflate.c zmemcpy(copy, state, sizeof(struct inflate_state)); state 1437 lib/libz/inflate.c if (state->lencode >= state->codes && state 1438 lib/libz/inflate.c state->lencode <= state->codes + ENOUGH - 1) { state 1439 lib/libz/inflate.c copy->lencode = copy->codes + (state->lencode - state->codes); state 1440 lib/libz/inflate.c copy->distcode = copy->codes + (state->distcode - state->codes); state 1442 lib/libz/inflate.c copy->next = copy->codes + (state->next - state->codes); state 1444 lib/libz/inflate.c wsize = 1U << state->wbits; state 1445 lib/libz/inflate.c zmemcpy(window, state->window, wsize); state 1448 lib/libz/inflate.c dest->state = (struct internal_state FAR *)copy; state 93 lib/libz/zlib.h struct internal_state FAR *state; /* not visible by applications */ state 1323 net/bridgestp.c bstp_set_port_state(struct bstp_port *bp, int state) state 1325 net/bridgestp.c if (bp->bp_state == state) state 1328 net/bridgestp.c bp->bp_state = state; state 1459 net/bridgestp.c bstp_set_port_tc(struct bstp_port *bp, int state) state 1463 net/bridgestp.c bp->bp_tcstate = state; state 2064 net/bridgestp.c u_int8_t state = bp->bp_state; state 2067 net/bridgestp.c return (state); state 2074 net/bridgestp.c state = BSTP_IFSTATE_DISABLED; state 2077 net/bridgestp.c state = BSTP_IFSTATE_BLOCKING; state 2078 net/bridgestp.c else if (state == BSTP_IFSTATE_DISCARDING) state 2079 net/bridgestp.c state = BSTP_IFSTATE_LISTENING; state 2081 net/bridgestp.c return (state); state 132 net/bsd-comp.c static void bsd_free(void *state); state 133 net/bsd-comp.c static int bsd_comp_init(void *state, u_char *options, int opt_len, state 135 net/bsd-comp.c static int bsd_decomp_init(void *state, u_char *options, int opt_len, state 137 net/bsd-comp.c static int bsd_compress(void *state, struct mbuf **mret, state 139 net/bsd-comp.c static void bsd_incomp(void *state, struct mbuf *dmsg); state 140 net/bsd-comp.c static int bsd_decompress(void *state, struct mbuf *cmp, state 142 net/bsd-comp.c static void bsd_reset(void *state); state 143 net/bsd-comp.c static void bsd_comp_stats(void *state, struct compstat *stats); state 265 net/bsd-comp.c bsd_comp_stats(state, stats) state 266 net/bsd-comp.c void *state; state 269 net/bsd-comp.c struct bsd_db *db = (struct bsd_db *) state; state 292 net/bsd-comp.c bsd_reset(state) state 293 net/bsd-comp.c void *state; state 295 net/bsd-comp.c struct bsd_db *db = (struct bsd_db *) state; state 375 net/bsd-comp.c bsd_free(state) state 376 net/bsd-comp.c void *state; state 378 net/bsd-comp.c struct bsd_db *db = (struct bsd_db *) state; state 444 net/bsd-comp.c bsd_comp_init(state, options, opt_len, unit, hdrlen, debug) state 445 net/bsd-comp.c void *state; state 449 net/bsd-comp.c return bsd_init((struct bsd_db *) state, options, opt_len, state 454 net/bsd-comp.c bsd_decomp_init(state, options, opt_len, unit, hdrlen, mru, debug) state 455 net/bsd-comp.c void *state; state 459 net/bsd-comp.c return bsd_init((struct bsd_db *) state, options, opt_len, state 470 net/bsd-comp.c bsd_compress(state, mret, mp, slen, maxolen) state 471 net/bsd-comp.c void *state; state 477 net/bsd-comp.c struct bsd_db *db = (struct bsd_db *) state; state 687 net/bsd-comp.c bsd_incomp(state, dmsg) state 688 net/bsd-comp.c void *state; state 691 net/bsd-comp.c struct bsd_db *db = (struct bsd_db *) state; state 818 net/bsd-comp.c bsd_decompress(state, cmp, dmpp) state 819 net/bsd-comp.c void *state; state 822 net/bsd-comp.c struct bsd_db *db = (struct bsd_db *) state; state 459 net/if_pfsync.c sp->src.state > PF_TCPS_PROXY_DST || state 460 net/if_pfsync.c sp->dst.state > PF_TCPS_PROXY_DST || state 495 net/if_pfsync.c sp->src.state > PF_TCPS_PROXY_DST || state 496 net/if_pfsync.c sp->dst.state > PF_TCPS_PROXY_DST) { state 522 net/if_pfsync.c if (st->src.state > sp->src.state && state 523 net/if_pfsync.c (st->src.state < PF_TCPS_PROXY_SRC || state 524 net/if_pfsync.c sp->src.state >= PF_TCPS_PROXY_SRC)) state 529 net/if_pfsync.c else if (st->dst.state > sp->dst.state) { state 540 net/if_pfsync.c } else if (st->dst.state >= TCPS_SYN_SENT && state 548 net/if_pfsync.c if (st->src.state > sp->src.state) state 550 net/if_pfsync.c else if (st->dst.state > sp->dst.state) state 626 net/if_pfsync.c up->src.state > PF_TCPS_PROXY_DST || state 627 net/if_pfsync.c up->dst.state > PF_TCPS_PROXY_DST) { state 659 net/if_pfsync.c if (st->src.state > up->src.state && state 660 net/if_pfsync.c (st->src.state < PF_TCPS_PROXY_SRC || state 661 net/if_pfsync.c up->src.state >= PF_TCPS_PROXY_SRC)) state 663 net/if_pfsync.c else if (st->dst.state > up->dst.state) state 668 net/if_pfsync.c else if (st->dst.state >= TCPS_SYN_SENT && state 676 net/if_pfsync.c if (st->src.state > up->src.state) state 678 net/if_pfsync.c else if (st->dst.state > up->dst.state) state 1420 net/if_pfsync.c struct pf_state *state; state 1430 net/if_pfsync.c state = sc->sc_bulk_send_next; state 1431 net/if_pfsync.c if (state) state 1434 net/if_pfsync.c if (!state->sync_flags state 1435 net/if_pfsync.c && state->timeout < PFTM_MAX state 1436 net/if_pfsync.c && state->pfsync_time <= sc->sc_ureq_received) { state 1437 net/if_pfsync.c pfsync_pack_state(PFSYNC_ACT_UPD, state, 0); state 1442 net/if_pfsync.c state = TAILQ_NEXT(state, entry_list); state 1445 net/if_pfsync.c if (!state) state 1446 net/if_pfsync.c state = TAILQ_FIRST(&state_list); state 1448 net/if_pfsync.c state != sc->sc_bulk_terminator); state 1450 net/if_pfsync.c if (!state || state == sc->sc_bulk_terminator) { state 1462 net/if_pfsync.c sc->sc_bulk_send_next = state; state 60 net/if_pfsync.h u_int8_t state; state 63 net/if_pfsync.h u_int8_t state; state 205 net/if_pfsync.h (d)->state = (s)->state; \ state 222 net/if_pfsync.h (d)->state = (s)->state; \ state 928 net/if_pppoe.c struct pppoeconnectionstate *state = state 930 net/if_pppoe.c state->state = sc->sc_state; state 931 net/if_pppoe.c state->session_id = sc->sc_session; state 932 net/if_pppoe.c state->padi_retry_no = sc->sc_padi_retried; state 933 net/if_pppoe.c state->padr_retry_no = sc->sc_padr_retried; state 934 net/if_pppoe.c state->session_time.tv_sec = sc->sc_session_time.tv_sec; state 935 net/if_pppoe.c state->session_time.tv_usec = sc->sc_session_time.tv_usec; state 64 net/if_pppoe.h u_int state; /* one of the PPPOE_STATE_ states above */ state 120 net/if_sppp.h int state[IDX_COUNT]; /* state machine */ state 369 net/if_spppsubr.c HIDE const char *sppp_state_name(int state); state 511 net/if_spppsubr.c if (sp->state[IDX_LCP] == STATE_OPENED) state 543 net/if_spppsubr.c if (sp->state[IDX_IPCP] == STATE_OPENED) { state 740 net/if_spppsubr.c if (sp->state[IDX_IPCP] != STATE_OPENED) state 1263 net/if_spppsubr.c sppp_state_name(sp->state[cp->protoidx]), state 1283 net/if_spppsubr.c switch (sp->state[cp->protoidx]) { state 1296 net/if_spppsubr.c switch (sp->state[cp->protoidx]) { state 1342 net/if_spppsubr.c switch (sp->state[cp->protoidx]) { state 1394 net/if_spppsubr.c switch (sp->state[cp->protoidx]) { state 1426 net/if_spppsubr.c switch (sp->state[cp->protoidx]) { state 1458 net/if_spppsubr.c switch (sp->state[cp->protoidx]) { state 1496 net/if_spppsubr.c switch (sp->state[cp->protoidx]) { state 1524 net/if_spppsubr.c if (sp->state[cp->protoidx] != STATE_OPENED) { state 1609 net/if_spppsubr.c sppp_state_name(sp->state[cp->protoidx])); state 1611 net/if_spppsubr.c switch (sp->state[cp->protoidx]) { state 1636 net/if_spppsubr.c sppp_state_name(sp->state[cp->protoidx])); state 1638 net/if_spppsubr.c switch (sp->state[cp->protoidx]) { state 1674 net/if_spppsubr.c sppp_state_name(sp->state[cp->protoidx])); state 1676 net/if_spppsubr.c switch (sp->state[cp->protoidx]) { state 1710 net/if_spppsubr.c sppp_state_name(sp->state[cp->protoidx])); state 1712 net/if_spppsubr.c switch (sp->state[cp->protoidx]) { state 1770 net/if_spppsubr.c sppp_state_name(sp->state[cp->protoidx]), state 1775 net/if_spppsubr.c switch (sp->state[cp->protoidx]) { state 1793 net/if_spppsubr.c switch (sp->state[cp->protoidx]) { state 1824 net/if_spppsubr.c if (debug && sp->state[cp->protoidx] != newstate) state 1827 net/if_spppsubr.c sppp_state_name(sp->state[cp->protoidx]), state 1829 net/if_spppsubr.c sp->state[cp->protoidx] = newstate; state 1861 net/if_spppsubr.c sp->state[IDX_LCP] = STATE_INITIAL; state 1915 net/if_spppsubr.c if (sp->state[IDX_LCP] == STATE_INITIAL) { state 1923 net/if_spppsubr.c (sp->state[IDX_LCP] == STATE_INITIAL)) { state 1964 net/if_spppsubr.c if (sp->state[IDX_LCP] != STATE_INITIAL) state 2537 net/if_spppsubr.c sp->state[IDX_IPCP] = STATE_INITIAL; state 3221 net/if_spppsubr.c sppp_state_name(sp->state[IDX_CHAP]), state 3259 net/if_spppsubr.c if (sp->state[IDX_CHAP] == STATE_REQ_SENT || state 3260 net/if_spppsubr.c sp->state[IDX_CHAP] == STATE_OPENED) state 3264 net/if_spppsubr.c if (sp->state[IDX_CHAP] == STATE_REQ_SENT) { state 3276 net/if_spppsubr.c sppp_state_name(sp->state[IDX_CHAP]), state 3291 net/if_spppsubr.c sp->state[IDX_CHAP] = STATE_CLOSED; state 3314 net/if_spppsubr.c if (sp->state[IDX_CHAP] != STATE_CLOSED) state 3329 net/if_spppsubr.c sppp_state_name(sp->state[IDX_CHAP]), state 3334 net/if_spppsubr.c switch (sp->state[IDX_CHAP]) { state 3342 net/if_spppsubr.c switch (sp->state[IDX_CHAP]) { state 3517 net/if_spppsubr.c sppp_state_name(sp->state[IDX_PAP]), state 3539 net/if_spppsubr.c if (sp->state[IDX_PAP] == STATE_REQ_SENT || state 3540 net/if_spppsubr.c sp->state[IDX_PAP] == STATE_OPENED) { state 3547 net/if_spppsubr.c if (sp->state[IDX_PAP] == STATE_REQ_SENT) { state 3620 net/if_spppsubr.c sp->state[IDX_PAP] = STATE_CLOSED; state 3653 net/if_spppsubr.c if (sp->state[IDX_PAP] != STATE_CLOSED) state 3672 net/if_spppsubr.c sppp_state_name(sp->state[IDX_PAP]), state 3677 net/if_spppsubr.c switch (sp->state[IDX_PAP]) { state 3685 net/if_spppsubr.c switch (sp->state[IDX_PAP]) { state 4311 net/if_spppsubr.c sppp_state_name(int state) state 4313 net/if_spppsubr.c switch (state) { state 237 net/pf.c *state = pf_find_state(kif, &key, PF_EXT_GWY); \ state 239 net/pf.c *state = pf_find_state(kif, &key, PF_LAN_EXT); \ state 240 net/pf.c if (*state == NULL || (*state)->timeout == PFTM_PURGE) \ state 243 net/pf.c (((*state)->rule.ptr->rt == PF_ROUTETO && \ state 244 net/pf.c (*state)->rule.ptr->direction == PF_OUT) || \ state 245 net/pf.c ((*state)->rule.ptr->rt == PF_REPLYTO && \ state 246 net/pf.c (*state)->rule.ptr->direction == PF_IN)) && \ state 247 net/pf.c (*state)->rt_kif != NULL && \ state 248 net/pf.c (*state)->rt_kif != kif) \ state 622 net/pf.c pf_src_connlimit(struct pf_state **state) state 626 net/pf.c (*state)->src_node->conn++; state 627 net/pf.c (*state)->src.tcp_est = 1; state 628 net/pf.c pf_add_threshold(&(*state)->src_node->conn_rate); state 630 net/pf.c if ((*state)->rule.ptr->max_src_conn && state 631 net/pf.c (*state)->rule.ptr->max_src_conn < state 632 net/pf.c (*state)->src_node->conn) { state 637 net/pf.c if ((*state)->rule.ptr->max_src_conn_rate.limit && state 638 net/pf.c pf_check_threshold(&(*state)->src_node->conn_rate)) { state 646 net/pf.c if ((*state)->rule.ptr->overload_tbl) { state 653 net/pf.c pf_print_host(&(*state)->src_node->addr, 0, state 654 net/pf.c (*state)->state_key->af); state 658 net/pf.c p.pfra_af = (*state)->state_key->af; state 659 net/pf.c switch ((*state)->state_key->af) { state 663 net/pf.c p.pfra_ip4addr = (*state)->src_node->addr.v4; state 669 net/pf.c p.pfra_ip6addr = (*state)->src_node->addr.v6; state 674 net/pf.c pfr_insert_kentry((*state)->rule.ptr->overload_tbl, state 678 net/pf.c if ((*state)->rule.ptr->flush) { state 691 net/pf.c (*state)->state_key->af && state 692 net/pf.c (((*state)->state_key->direction == state 694 net/pf.c PF_AEQ(&(*state)->src_node->addr, state 696 net/pf.c ((*state)->state_key->direction == PF_IN && state 697 net/pf.c PF_AEQ(&(*state)->src_node->addr, state 699 net/pf.c ((*state)->rule.ptr->flush & state 701 net/pf.c (*state)->rule.ptr == st->rule.ptr)) { state 703 net/pf.c st->src.state = st->dst.state = state 716 net/pf.c (*state)->timeout = PFTM_PURGE; state 717 net/pf.c (*state)->src.state = (*state)->dst.state = TCPS_CLOSED; state 889 net/pf.c pf_state_expires(const struct pf_state *state) state 897 net/pf.c if (state->timeout == PFTM_PURGE) state 899 net/pf.c if (state->timeout == PFTM_UNTIL_PACKET) state 901 net/pf.c KASSERT(state->timeout != PFTM_UNLINKED); state 902 net/pf.c KASSERT(state->timeout < PFTM_MAX); state 903 net/pf.c timeout = state->rule.ptr->timeout[state->timeout]; state 905 net/pf.c timeout = pf_default_rule.timeout[state->timeout]; state 906 net/pf.c start = state->rule.ptr->timeout[PFTM_ADAPTIVE_START]; state 908 net/pf.c end = state->rule.ptr->timeout[PFTM_ADAPTIVE_END]; state 909 net/pf.c states = state->rule.ptr->states; state 917 net/pf.c return (state->expire + timeout * (end - states) / state 922 net/pf.c return (state->expire + timeout); state 992 net/pf.c if (cur->src.state == PF_TCPS_PROXY_DST) { state 1215 net/pf.c printf(" %u:%u", s->src.state, s->dst.state); state 3330 net/pf.c s->src.state = TCPS_SYN_SENT; state 3331 net/pf.c s->dst.state = TCPS_CLOSED; state 3335 net/pf.c s->src.state = PFUDPS_SINGLE; state 3336 net/pf.c s->dst.state = PFUDPS_NO_TRAFFIC; state 3346 net/pf.c s->src.state = PFOTHERS_SINGLE; state 3347 net/pf.c s->dst.state = PFOTHERS_NO_TRAFFIC; state 3461 net/pf.c s->src.state = PF_TCPS_PROXY_SRC; state 3575 net/pf.c pf_test_state_tcp(struct pf_state **state, int direction, struct pfi_kif *kif, state 3604 net/pf.c if (direction == (*state)->state_key->direction) { state 3605 net/pf.c src = &(*state)->src; state 3606 net/pf.c dst = &(*state)->dst; state 3608 net/pf.c src = &(*state)->dst; state 3609 net/pf.c dst = &(*state)->src; state 3612 net/pf.c if ((*state)->src.state == PF_TCPS_PROXY_SRC) { state 3613 net/pf.c if (direction != (*state)->state_key->direction) { state 3618 net/pf.c if (ntohl(th->th_seq) != (*state)->src.seqlo) { state 3622 net/pf.c pf_send_tcp((*state)->rule.ptr, pd->af, pd->dst, state 3624 net/pf.c (*state)->src.seqhi, ntohl(th->th_seq) + 1, state 3625 net/pf.c TH_SYN|TH_ACK, 0, (*state)->src.mss, 0, 1, state 3630 net/pf.c (ntohl(th->th_ack) != (*state)->src.seqhi + 1) || state 3631 net/pf.c (ntohl(th->th_seq) != (*state)->src.seqlo + 1)) { state 3634 net/pf.c } else if ((*state)->src_node != NULL && state 3635 net/pf.c pf_src_connlimit(state)) { state 3639 net/pf.c (*state)->src.state = PF_TCPS_PROXY_DST; state 3641 net/pf.c if ((*state)->src.state == PF_TCPS_PROXY_DST) { state 3645 net/pf.c src = &(*state)->state_key->gwy; state 3646 net/pf.c dst = &(*state)->state_key->ext; state 3648 net/pf.c src = &(*state)->state_key->ext; state 3649 net/pf.c dst = &(*state)->state_key->lan; state 3651 net/pf.c if (direction == (*state)->state_key->direction) { state 3653 net/pf.c (ntohl(th->th_ack) != (*state)->src.seqhi + 1) || state 3654 net/pf.c (ntohl(th->th_seq) != (*state)->src.seqlo + 1)) { state 3658 net/pf.c (*state)->src.max_win = MAX(ntohs(th->th_win), 1); state 3659 net/pf.c if ((*state)->dst.seqhi == 1) state 3660 net/pf.c (*state)->dst.seqhi = htonl(arc4random()); state 3661 net/pf.c pf_send_tcp((*state)->rule.ptr, pd->af, &src->addr, state 3663 net/pf.c (*state)->dst.seqhi, 0, TH_SYN, 0, state 3664 net/pf.c (*state)->src.mss, 0, 0, (*state)->tag, NULL, NULL); state 3669 net/pf.c (ntohl(th->th_ack) != (*state)->dst.seqhi + 1)) { state 3673 net/pf.c (*state)->dst.max_win = MAX(ntohs(th->th_win), 1); state 3674 net/pf.c (*state)->dst.seqlo = ntohl(th->th_seq); state 3675 net/pf.c pf_send_tcp((*state)->rule.ptr, pd->af, pd->dst, state 3678 net/pf.c TH_ACK, (*state)->src.max_win, 0, 0, 0, state 3679 net/pf.c (*state)->tag, NULL, NULL); state 3680 net/pf.c pf_send_tcp((*state)->rule.ptr, pd->af, &src->addr, state 3682 net/pf.c (*state)->src.seqhi + 1, (*state)->src.seqlo + 1, state 3683 net/pf.c TH_ACK, (*state)->dst.max_win, 0, 0, 1, state 3685 net/pf.c (*state)->src.seqdiff = (*state)->dst.seqhi - state 3686 net/pf.c (*state)->src.seqlo; state 3687 net/pf.c (*state)->dst.seqdiff = (*state)->src.seqhi - state 3688 net/pf.c (*state)->dst.seqlo; state 3689 net/pf.c (*state)->src.seqhi = (*state)->src.seqlo + state 3690 net/pf.c (*state)->dst.max_win; state 3691 net/pf.c (*state)->dst.seqhi = (*state)->dst.seqlo + state 3692 net/pf.c (*state)->src.max_win; state 3693 net/pf.c (*state)->src.wscale = (*state)->dst.wscale = 0; state 3694 net/pf.c (*state)->src.state = (*state)->dst.state = state 3764 net/pf.c if (src->state < TCPS_SYN_SENT) state 3765 net/pf.c src->state = TCPS_SYN_SENT; state 3800 net/pf.c (dst->state < TCPS_SYN_SENT)) { state 3850 net/pf.c *state, src, dst, ©back)) state 3867 net/pf.c if (src->state < TCPS_SYN_SENT) state 3868 net/pf.c src->state = TCPS_SYN_SENT; state 3870 net/pf.c if (src->state < TCPS_CLOSING) state 3871 net/pf.c src->state = TCPS_CLOSING; state 3873 net/pf.c if (dst->state == TCPS_SYN_SENT) { state 3874 net/pf.c dst->state = TCPS_ESTABLISHED; state 3875 net/pf.c if (src->state == TCPS_ESTABLISHED && state 3876 net/pf.c (*state)->src_node != NULL && state 3877 net/pf.c pf_src_connlimit(state)) { state 3881 net/pf.c } else if (dst->state == TCPS_CLOSING) state 3882 net/pf.c dst->state = TCPS_FIN_WAIT_2; state 3885 net/pf.c src->state = dst->state = TCPS_TIME_WAIT; state 3888 net/pf.c (*state)->expire = time_second; state 3889 net/pf.c if (src->state >= TCPS_FIN_WAIT_2 && state 3890 net/pf.c dst->state >= TCPS_FIN_WAIT_2) state 3891 net/pf.c (*state)->timeout = PFTM_TCP_CLOSED; state 3892 net/pf.c else if (src->state >= TCPS_CLOSING && state 3893 net/pf.c dst->state >= TCPS_CLOSING) state 3894 net/pf.c (*state)->timeout = PFTM_TCP_FIN_WAIT; state 3895 net/pf.c else if (src->state < TCPS_ESTABLISHED || state 3896 net/pf.c dst->state < TCPS_ESTABLISHED) state 3897 net/pf.c (*state)->timeout = PFTM_TCP_OPENING; state 3898 net/pf.c else if (src->state >= TCPS_CLOSING || state 3899 net/pf.c dst->state >= TCPS_CLOSING) state 3900 net/pf.c (*state)->timeout = PFTM_TCP_CLOSING; state 3902 net/pf.c (*state)->timeout = PFTM_TCP_ESTABLISHED; state 3906 net/pf.c } else if ((dst->state < TCPS_SYN_SENT || state 3907 net/pf.c dst->state >= TCPS_FIN_WAIT_2 || state 3908 net/pf.c src->state >= TCPS_FIN_WAIT_2) && state 3937 net/pf.c pf_print_state(*state); state 3941 net/pf.c ackskew, (*state)->packets[0], state 3942 net/pf.c (*state)->packets[1]); state 3947 net/pf.c *state, src, dst, ©back)) state 3967 net/pf.c if (src->state < TCPS_CLOSING) state 3968 net/pf.c src->state = TCPS_CLOSING; state 3970 net/pf.c src->state = dst->state = TCPS_TIME_WAIT; state 3975 net/pf.c if ((*state)->dst.state == TCPS_SYN_SENT && state 3976 net/pf.c (*state)->src.state == TCPS_SYN_SENT) { state 3979 net/pf.c pf_send_tcp((*state)->rule.ptr, pd->af, state 3983 net/pf.c (*state)->rule.ptr->return_ttl, 1, 0, state 3990 net/pf.c pf_print_state(*state); state 3995 net/pf.c (*state)->packets[0], (*state)->packets[1], state 3997 net/pf.c direction == (*state)->state_key->direction ? state 4015 net/pf.c if (STATE_TRANSLATE((*state)->state_key)) { state 4018 net/pf.c &th->th_sum, &(*state)->state_key->gwy.addr, state 4019 net/pf.c (*state)->state_key->gwy.port, 0, pd->af); state 4022 net/pf.c &th->th_sum, &(*state)->state_key->lan.addr, state 4023 net/pf.c (*state)->state_key->lan.port, 0, pd->af); state 4034 net/pf.c pf_test_state_udp(struct pf_state **state, int direction, struct pfi_kif *kif, state 4057 net/pf.c if (direction == (*state)->state_key->direction) { state 4058 net/pf.c src = &(*state)->src; state 4059 net/pf.c dst = &(*state)->dst; state 4061 net/pf.c src = &(*state)->dst; state 4062 net/pf.c dst = &(*state)->src; state 4066 net/pf.c if (src->state < PFUDPS_SINGLE) state 4067 net/pf.c src->state = PFUDPS_SINGLE; state 4068 net/pf.c if (dst->state == PFUDPS_SINGLE) state 4069 net/pf.c dst->state = PFUDPS_MULTIPLE; state 4072 net/pf.c (*state)->expire = time_second; state 4073 net/pf.c if (src->state == PFUDPS_MULTIPLE && dst->state == PFUDPS_MULTIPLE) state 4074 net/pf.c (*state)->timeout = PFTM_UDP_MULTIPLE; state 4076 net/pf.c (*state)->timeout = PFTM_UDP_SINGLE; state 4079 net/pf.c if (STATE_TRANSLATE((*state)->state_key)) { state 4082 net/pf.c &uh->uh_sum, &(*state)->state_key->gwy.addr, state 4083 net/pf.c (*state)->state_key->gwy.port, 1, pd->af); state 4086 net/pf.c &uh->uh_sum, &(*state)->state_key->lan.addr, state 4087 net/pf.c (*state)->state_key->lan.port, 1, pd->af); state 4095 net/pf.c pf_test_state_icmp(struct pf_state **state, int direction, struct pfi_kif *kif, state 4156 net/pf.c (*state)->expire = time_second; state 4157 net/pf.c (*state)->timeout = PFTM_ICMP_ERROR_REPLY; state 4160 net/pf.c if (STATE_TRANSLATE((*state)->state_key)) { state 4167 net/pf.c (*state)->state_key->gwy.addr.v4.s_addr, 0); state 4171 net/pf.c (*state)->state_key->gwy.port, 0); state 4173 net/pf.c (*state)->state_key->gwy.port; state 4182 net/pf.c &(*state)->state_key->gwy.addr, 0); state 4195 net/pf.c (*state)->state_key->lan.addr.v4.s_addr, 0); state 4199 net/pf.c (*state)->state_key->lan.port, 0); state 4201 net/pf.c (*state)->state_key->lan.port; state 4210 net/pf.c &(*state)->state_key->lan.addr, 0); state 4364 net/pf.c if (direction == (*state)->state_key->direction) { state 4365 net/pf.c src = &(*state)->dst; state 4366 net/pf.c dst = &(*state)->src; state 4368 net/pf.c src = &(*state)->src; state 4369 net/pf.c dst = &(*state)->dst; state 4394 net/pf.c pf_print_state(*state); state 4401 net/pf.c if (STATE_TRANSLATE((*state)->state_key)) { state 4404 net/pf.c daddr, &(*state)->state_key->lan.addr, state 4405 net/pf.c (*state)->state_key->lan.port, NULL, state 4410 net/pf.c saddr, &(*state)->state_key->gwy.addr, state 4411 net/pf.c (*state)->state_key->gwy.port, NULL, state 4471 net/pf.c if (STATE_TRANSLATE((*state)->state_key)) { state 4475 net/pf.c &(*state)->state_key->lan.addr, state 4476 net/pf.c (*state)->state_key->lan.port, state 4483 net/pf.c &(*state)->state_key->gwy.addr, state 4484 net/pf.c (*state)->state_key->gwy.port, &uh.uh_sum, state 4540 net/pf.c if (STATE_TRANSLATE((*state)->state_key)) { state 4544 net/pf.c &(*state)->state_key->lan.addr, state 4545 net/pf.c (*state)->state_key->lan.port, NULL, state 4551 net/pf.c &(*state)->state_key->gwy.addr, state 4552 net/pf.c (*state)->state_key->gwy.port, NULL, state 4593 net/pf.c if (STATE_TRANSLATE((*state)->state_key)) { state 4597 net/pf.c &(*state)->state_key->lan.addr, state 4598 net/pf.c (*state)->state_key->lan.port, NULL, state 4603 net/pf.c saddr, &(*state)->state_key->gwy.addr, state 4604 net/pf.c (*state)->state_key->gwy.port, NULL, state 4636 net/pf.c if (STATE_TRANSLATE((*state)->state_key)) { state 4640 net/pf.c &(*state)->state_key->lan.addr, state 4647 net/pf.c &(*state)->state_key->gwy.addr, state 4680 net/pf.c pf_test_state_other(struct pf_state **state, int direction, struct pfi_kif *kif, state 4702 net/pf.c if (direction == (*state)->state_key->direction) { state 4703 net/pf.c src = &(*state)->src; state 4704 net/pf.c dst = &(*state)->dst; state 4706 net/pf.c src = &(*state)->dst; state 4707 net/pf.c dst = &(*state)->src; state 4711 net/pf.c if (src->state < PFOTHERS_SINGLE) state 4712 net/pf.c src->state = PFOTHERS_SINGLE; state 4713 net/pf.c if (dst->state == PFOTHERS_SINGLE) state 4714 net/pf.c dst->state = PFOTHERS_MULTIPLE; state 4717 net/pf.c (*state)->expire = time_second; state 4718 net/pf.c if (src->state == PFOTHERS_MULTIPLE && dst->state == PFOTHERS_MULTIPLE) state 4719 net/pf.c (*state)->timeout = PFTM_OTHER_MULTIPLE; state 4721 net/pf.c (*state)->timeout = PFTM_OTHER_SINGLE; state 4724 net/pf.c if (STATE_TRANSLATE((*state)->state_key)) { state 4731 net/pf.c (*state)->state_key->gwy.addr.v4.s_addr, state 4738 net/pf.c &(*state)->state_key->gwy.addr, pd->af); state 4748 net/pf.c (*state)->state_key->lan.addr.v4.s_addr, state 4755 net/pf.c &(*state)->state_key->lan.addr, pd->af); state 1636 net/pf_ioctl.c struct pfsync_state *sp = (struct pfsync_state *)ps->state; state 1689 net/pf_ioctl.c pf_state_export((struct pfsync_state *)&ps->state, state 1696 net/pf_ioctl.c struct pf_state *state; state 1710 net/pf_ioctl.c state = TAILQ_FIRST(&state_list); state 1711 net/pf_ioctl.c while (state) { state 1712 net/pf_ioctl.c if (state->timeout != PFTM_UNLINKED) { state 1717 net/pf_ioctl.c state->state_key, state); state 1726 net/pf_ioctl.c state = TAILQ_NEXT(state, entry_list); state 1770 net/pf_ioctl.c struct pf_state *state; state 1796 net/pf_ioctl.c state = pf_find_state_all(&key, PF_EXT_GWY, &m); state 1802 net/pf_ioctl.c state = pf_find_state_all(&key, PF_LAN_EXT, &m); state 1806 net/pf_ioctl.c else if (state != NULL) { state 1807 net/pf_ioctl.c sk = state->state_key; state 2844 net/pf_ioctl.c struct pf_state *state; state 2846 net/pf_ioctl.c RB_FOREACH(state, pf_state_tree_id, &tree_id) { state 2847 net/pf_ioctl.c state->src_node = NULL; state 2848 net/pf_ioctl.c state->nat_src_node = NULL; state 1419 net/pf_norm.c pf_normalize_tcp_cleanup(struct pf_state *state) state 1421 net/pf_norm.c if (state->src.scrub) state 1422 net/pf_norm.c pool_put(&pf_state_scrub_pl, state->src.scrub); state 1423 net/pf_norm.c if (state->dst.scrub) state 1424 net/pf_norm.c pool_put(&pf_state_scrub_pl, state->dst.scrub); state 1431 net/pf_norm.c u_short *reason, struct tcphdr *th, struct pf_state *state, state 1499 net/pf_norm.c pf_print_state(state); state 1565 net/pf_norm.c time_second - state->creation > TS_MAX_CONN)) { state 1568 net/pf_norm.c pf_print_state(state); state 1578 net/pf_norm.c pf_print_state(state); state 1659 net/pf_norm.c if ((ts_fudge = state->rule.ptr->timeout[PFTM_TS_DIFF]) == 0) state 1671 net/pf_norm.c if ((src->state >= TCPS_ESTABLISHED && state 1672 net/pf_norm.c dst->state >= TCPS_ESTABLISHED) && state 1700 net/pf_norm.c pf_print_state(state); state 1711 net/pf_norm.c ((src->state == TCPS_ESTABLISHED && dst->state == TCPS_ESTABLISHED) state 1750 net/pf_norm.c pf_print_state(state); state 1780 net/pf_norm.c pf_print_state(state); state 720 net/pfkeyv2.c pfkeyv2_dump_walker(struct tdb *sa, void *state, int last) state 722 net/pfkeyv2.c struct dump_state *dump_state = (struct dump_state *) state; state 678 net/pfvar.h u_int8_t state; /* active state level */ state 783 net/pfvar.h u_int8_t state; /* active state level */ state 827 net/pfvar.h (d)->state = (s)->state; \ state 844 net/pfvar.h (d)->state = (s)->state; \ state 1337 net/pfvar.h void *state; state 64 net/ppp-comp.h void (*comp_free)(void *state); state 66 net/ppp-comp.h int (*comp_init)(void *state, u_char *options, int opt_len, state 69 net/ppp-comp.h void (*comp_reset)(void *state); state 71 net/ppp-comp.h int (*compress)(void *state, PACKETPTR *mret, state 74 net/ppp-comp.h void (*comp_stat)(void *state, struct compstat *stats); state 79 net/ppp-comp.h void (*decomp_free)(void *state); state 81 net/ppp-comp.h int (*decomp_init)(void *state, u_char *options, int opt_len, state 84 net/ppp-comp.h void (*decomp_reset)(void *state); state 86 net/ppp-comp.h int (*decompress)(void *state, PACKETPTR mp, state 89 net/ppp-comp.h void (*incomp)(void *state, PACKETPTR mp); state 91 net/ppp-comp.h void (*decomp_stat)(void *state, struct compstat *stats); state 73 net/ppp-deflate.c static void z_comp_free(void *state); state 74 net/ppp-deflate.c static void z_decomp_free(void *state); state 75 net/ppp-deflate.c static int z_comp_init(void *state, u_char *options, int opt_len, state 77 net/ppp-deflate.c static int z_decomp_init(void *state, u_char *options, int opt_len, state 79 net/ppp-deflate.c static int z_compress(void *state, struct mbuf **mret, state 81 net/ppp-deflate.c static void z_incomp(void *state, struct mbuf *dmsg); state 82 net/ppp-deflate.c static int z_decompress(void *state, struct mbuf *cmp, state 84 net/ppp-deflate.c static void z_comp_reset(void *state); state 85 net/ppp-deflate.c static void z_decomp_reset(void *state); state 86 net/ppp-deflate.c static void z_comp_stats(void *state, struct compstat *stats); state 155 net/ppp-deflate.c struct deflate_state *state; state 168 net/ppp-deflate.c MALLOC(state, struct deflate_state *, sizeof(struct deflate_state), state 170 net/ppp-deflate.c if (state == NULL) state 173 net/ppp-deflate.c state->strm.next_in = NULL; state 174 net/ppp-deflate.c state->strm.zalloc = zalloc; state 175 net/ppp-deflate.c state->strm.zfree = zfree; state 176 net/ppp-deflate.c if (deflateInit2(&state->strm, Z_DEFAULT_COMPRESSION, DEFLATE_METHOD_VAL, state 178 net/ppp-deflate.c FREE(state, M_DEVBUF); state 182 net/ppp-deflate.c state->w_size = w_size; state 183 net/ppp-deflate.c bzero(&state->stats, sizeof(state->stats)); state 184 net/ppp-deflate.c return (void *) state; state 191 net/ppp-deflate.c struct deflate_state *state = (struct deflate_state *) arg; state 193 net/ppp-deflate.c deflateEnd(&state->strm); state 194 net/ppp-deflate.c FREE(state, M_DEVBUF); state 203 net/ppp-deflate.c struct deflate_state *state = (struct deflate_state *) arg; state 209 net/ppp-deflate.c || DEFLATE_SIZE(options[2]) != state->w_size state 213 net/ppp-deflate.c state->seqno = 0; state 214 net/ppp-deflate.c state->unit = unit; state 215 net/ppp-deflate.c state->hdrlen = hdrlen; state 216 net/ppp-deflate.c state->debug = debug; state 218 net/ppp-deflate.c deflateReset(&state->strm); state 227 net/ppp-deflate.c struct deflate_state *state = (struct deflate_state *) arg; state 229 net/ppp-deflate.c state->seqno = 0; state 230 net/ppp-deflate.c deflateReset(&state->strm); state 240 net/ppp-deflate.c struct deflate_state *state = (struct deflate_state *) arg; state 262 net/ppp-deflate.c if (maxolen + state->hdrlen > MLEN) state 265 net/ppp-deflate.c if (state->hdrlen + PPP_HDRLEN + 2 < wspace) { state 266 net/ppp-deflate.c m->m_data += state->hdrlen; state 267 net/ppp-deflate.c wspace -= state->hdrlen; state 279 net/ppp-deflate.c wptr[0] = state->seqno >> 8; state 280 net/ppp-deflate.c wptr[1] = state->seqno; state 282 net/ppp-deflate.c state->strm.next_out = wptr; state 283 net/ppp-deflate.c state->strm.avail_out = wspace - (PPP_HDRLEN + 2); state 285 net/ppp-deflate.c state->strm.next_out = NULL; state 286 net/ppp-deflate.c state->strm.avail_out = 1000000; state 290 net/ppp-deflate.c ++state->seqno; state 293 net/ppp-deflate.c state->strm.next_in = rptr; state 294 net/ppp-deflate.c state->strm.avail_in = mtod(mp, u_char *) + mp->m_len - rptr; state 299 net/ppp-deflate.c r = deflate(&state->strm, flush); state 302 net/ppp-deflate.c r, (state->strm.msg? state->strm.msg: "")); state 305 net/ppp-deflate.c if (flush != Z_NO_FLUSH && state->strm.avail_out != 0) state 307 net/ppp-deflate.c if (state->strm.avail_in == 0 && mp != NULL) { state 308 net/ppp-deflate.c state->strm.next_in = mtod(mp, u_char *); state 309 net/ppp-deflate.c state->strm.avail_in = mp->m_len; state 314 net/ppp-deflate.c if (state->strm.avail_out == 0) { state 324 net/ppp-deflate.c state->strm.next_out = mtod(m, u_char *); state 325 net/ppp-deflate.c state->strm.avail_out = wspace = M_TRAILINGSPACE(m); state 329 net/ppp-deflate.c state->strm.next_out = NULL; state 330 net/ppp-deflate.c state->strm.avail_out = 1000000; state 335 net/ppp-deflate.c olen += (m->m_len = wspace - state->strm.avail_out); state 344 net/ppp-deflate.c state->stats.comp_bytes += olen; state 345 net/ppp-deflate.c state->stats.comp_packets++; state 351 net/ppp-deflate.c state->stats.inc_bytes += orig_len; state 352 net/ppp-deflate.c state->stats.inc_packets++; state 355 net/ppp-deflate.c state->stats.unc_bytes += orig_len; state 356 net/ppp-deflate.c state->stats.unc_packets++; state 366 net/ppp-deflate.c struct deflate_state *state = (struct deflate_state *) arg; state 369 net/ppp-deflate.c *stats = state->stats; state 388 net/ppp-deflate.c struct deflate_state *state; state 401 net/ppp-deflate.c MALLOC(state, struct deflate_state *, sizeof(struct deflate_state), state 403 net/ppp-deflate.c if (state == NULL) state 406 net/ppp-deflate.c state->strm.next_out = NULL; state 407 net/ppp-deflate.c state->strm.zalloc = zalloc; state 408 net/ppp-deflate.c state->strm.zfree = zfree; state 409 net/ppp-deflate.c if (inflateInit2(&state->strm, -w_size) != Z_OK) { state 410 net/ppp-deflate.c FREE(state, M_DEVBUF); state 414 net/ppp-deflate.c state->w_size = w_size; state 415 net/ppp-deflate.c bzero(&state->stats, sizeof(state->stats)); state 416 net/ppp-deflate.c return (void *) state; state 423 net/ppp-deflate.c struct deflate_state *state = (struct deflate_state *) arg; state 425 net/ppp-deflate.c inflateEnd(&state->strm); state 426 net/ppp-deflate.c FREE(state, M_DEVBUF); state 435 net/ppp-deflate.c struct deflate_state *state = (struct deflate_state *) arg; state 441 net/ppp-deflate.c || DEFLATE_SIZE(options[2]) != state->w_size state 445 net/ppp-deflate.c state->seqno = 0; state 446 net/ppp-deflate.c state->unit = unit; state 447 net/ppp-deflate.c state->hdrlen = hdrlen; state 448 net/ppp-deflate.c state->debug = debug; state 449 net/ppp-deflate.c state->mru = mru; state 451 net/ppp-deflate.c inflateReset(&state->strm); state 460 net/ppp-deflate.c struct deflate_state *state = (struct deflate_state *) arg; state 462 net/ppp-deflate.c state->seqno = 0; state 463 net/ppp-deflate.c inflateReset(&state->strm); state 487 net/ppp-deflate.c struct deflate_state *state = (struct deflate_state *) arg; state 511 net/ppp-deflate.c if (seq != state->seqno) { state 512 net/ppp-deflate.c if (state->debug) state 514 net/ppp-deflate.c state->unit, seq, state->seqno); state 517 net/ppp-deflate.c ++state->seqno; state 528 net/ppp-deflate.c if (state->hdrlen + PPP_HDRLEN < ospace) { state 529 net/ppp-deflate.c mo->m_data += state->hdrlen; state 530 net/ppp-deflate.c ospace -= state->hdrlen; state 547 net/ppp-deflate.c state->strm.next_in = rptr; state 548 net/ppp-deflate.c state->strm.avail_in = rlen; state 552 net/ppp-deflate.c state->strm.next_out = wptr + 3; state 553 net/ppp-deflate.c state->strm.avail_out = 1; state 561 net/ppp-deflate.c r = inflate(&state->strm, flush); state 564 net/ppp-deflate.c if (state->debug) state 567 net/ppp-deflate.c state->unit, r, (state->strm.msg? state->strm.msg: "")); state 571 net/ppp-deflate.c if (flush != Z_NO_FLUSH && state->strm.avail_out != 0) state 573 net/ppp-deflate.c if (state->strm.avail_in == 0 && mi != NULL) { state 574 net/ppp-deflate.c state->strm.next_in = mtod(mi, u_char *); state 575 net/ppp-deflate.c state->strm.avail_in = mi->m_len; state 581 net/ppp-deflate.c if (state->strm.avail_out == 0) { state 583 net/ppp-deflate.c state->strm.avail_out = ospace - PPP_HDRLEN; state 587 net/ppp-deflate.c --state->strm.next_out; state 588 net/ppp-deflate.c ++state->strm.avail_out; state 602 net/ppp-deflate.c state->strm.next_out = mtod(mo, u_char *); state 603 net/ppp-deflate.c state->strm.avail_out = ospace = M_TRAILINGSPACE(mo); state 611 net/ppp-deflate.c olen += (mo->m_len = ospace - state->strm.avail_out); state 613 net/ppp-deflate.c if (olen > state->mru + PPP_HDRLEN) state 615 net/ppp-deflate.c state->unit, olen, state->mru + PPP_HDRLEN); state 618 net/ppp-deflate.c state->stats.unc_bytes += olen; state 619 net/ppp-deflate.c state->stats.unc_packets++; state 620 net/ppp-deflate.c state->stats.comp_bytes += rlen; state 621 net/ppp-deflate.c state->stats.comp_packets++; state 635 net/ppp-deflate.c struct deflate_state *state = (struct deflate_state *) arg; state 647 net/ppp-deflate.c ++state->seqno; state 656 net/ppp-deflate.c state->strm.next_in = rptr + 3; state 657 net/ppp-deflate.c state->strm.avail_in = rlen - 3; state 659 net/ppp-deflate.c --state->strm.next_in; state 660 net/ppp-deflate.c ++state->strm.avail_in; state 663 net/ppp-deflate.c r = inflateIncomp(&state->strm); state 667 net/ppp-deflate.c if (state->debug) state 670 net/ppp-deflate.c state->unit, r, (state->strm.msg? state->strm.msg: "")); state 676 net/ppp-deflate.c state->strm.next_in = mtod(mi, u_char *); state 677 net/ppp-deflate.c state->strm.avail_in = mi->m_len; state 684 net/ppp-deflate.c state->stats.inc_bytes += rlen; state 685 net/ppp-deflate.c state->stats.inc_packets++; state 686 net/ppp-deflate.c state->stats.unc_bytes += rlen; state 687 net/ppp-deflate.c state->stats.unc_packets++; state 633 net/zlib.c strm->state = (struct internal_state FAR *)s; state 682 net/zlib.c if (strm == Z_NULL || strm->state == Z_NULL || state 689 net/zlib.c s = (deflate_state *)strm->state; state 724 net/zlib.c deflate_state *state = (deflate_state *) strm->state; state 725 net/zlib.c unsigned len = state->pending; state 731 net/zlib.c zmemcpy(strm->next_out, state->pending_out, len); state 734 net/zlib.c state->pending_out += len; state 737 net/zlib.c state->pending -= len; state 738 net/zlib.c if (state->pending == 0) { state 739 net/zlib.c state->pending_out = state->pending_buf; state 748 net/zlib.c deflate_state *state = (deflate_state *) strm->state; state 750 net/zlib.c if (strm == Z_NULL || state == Z_NULL) return Z_STREAM_ERROR; state 757 net/zlib.c state->strm = strm; /* just in case */ state 760 net/zlib.c if (state->status == INIT_STATE) { state 762 net/zlib.c uInt header = (DEFLATED + ((state->w_bits-8)<<4)) << 8; state 763 net/zlib.c uInt level_flags = (state->level-1) >> 1; state 769 net/zlib.c state->status = BUSY_STATE; state 770 net/zlib.c putShortMSB(state, header); state 774 net/zlib.c if (state->pending != 0) { state 782 net/zlib.c if (state->status == FLUSH_STATE) { state 783 net/zlib.c state->status = BUSY_STATE; state 789 net/zlib.c if (state->status == FINISH_STATE && strm->avail_in != 0) { state 795 net/zlib.c if (strm->avail_in != 0 || state->lookahead != 0 || state 796 net/zlib.c (flush == Z_FINISH && state->status != FINISH_STATE)) { state 800 net/zlib.c state->status = FINISH_STATE; state 802 net/zlib.c if (state->level <= 3) { state 803 net/zlib.c quit = deflate_fast(state, flush); state 805 net/zlib.c quit = deflate_slow(state, flush); state 820 net/zlib.c && state->status != FINISH_STATE) { state 823 net/zlib.c ct_align(state); state 828 net/zlib.c ct_stored_type_only(state); state 831 net/zlib.c ct_stored_block(state, (char*)0, 0L, 0); state 836 net/zlib.c CLEAR_HASH(state); /* forget history */ state 845 net/zlib.c state->status = FLUSH_STATE; state 853 net/zlib.c if (state->noheader) return Z_STREAM_END; state 856 net/zlib.c putShortMSB(state, (uInt)(state->adler >> 16)); state 857 net/zlib.c putShortMSB(state, (uInt)(state->adler & 0xffff)); state 862 net/zlib.c state->noheader = -1; /* write the trailer only once! */ state 863 net/zlib.c return state->pending != 0 ? Z_OK : Z_STREAM_END; state 870 net/zlib.c deflate_state *state = (deflate_state *) strm->state; state 872 net/zlib.c if (strm == Z_NULL || state == Z_NULL) return Z_STREAM_ERROR; state 874 net/zlib.c TRY_FREE(strm, state->window, state->w_size * 2 * sizeof(Byte)); state 875 net/zlib.c TRY_FREE(strm, state->prev, state->w_size * sizeof(Pos)); state 876 net/zlib.c TRY_FREE(strm, state->head, state->hash_size * sizeof(Pos)); state 877 net/zlib.c TRY_FREE(strm, state->pending_buf, state->lit_bufsize * 2 * sizeof(ush)); state 879 net/zlib.c ZFREE(strm, state, sizeof(deflate_state)); state 880 net/zlib.c strm->state = Z_NULL; state 895 net/zlib.c deflate_state *state = (deflate_state *) strm->state; state 902 net/zlib.c if (!state->noheader) { state 903 net/zlib.c state->adler = adler32(state->adler, strm->next_in, len); state 2787 net/zlib.c if (z == Z_NULL || z->state == Z_NULL) state 2791 net/zlib.c z->state->mode = z->state->nowrap ? BLOCKS : METHOD; state 2792 net/zlib.c inflate_blocks_reset(z->state->blocks, z, &c); state 2803 net/zlib.c if (z == Z_NULL || z->state == Z_NULL || z->zfree == Z_NULL) state 2805 net/zlib.c if (z->state->blocks != Z_NULL) state 2806 net/zlib.c inflate_blocks_free(z->state->blocks, z, &c); state 2807 net/zlib.c ZFREE(z, z->state, sizeof(struct internal_state)); state 2808 net/zlib.c z->state = Z_NULL; state 2823 net/zlib.c if ((z->state = (struct internal_state FAR *) state 2826 net/zlib.c z->state->blocks = Z_NULL; state 2829 net/zlib.c z->state->nowrap = 0; state 2833 net/zlib.c z->state->nowrap = 1; state 2842 net/zlib.c z->state->wbits = (uInt)w; state 2845 net/zlib.c if ((z->state->blocks = state 2846 net/zlib.c inflate_blocks_new(z, z->state->nowrap ? Z_NULL : adler32, 1 << w)) state 2880 net/zlib.c while (1) switch (z->state->mode) state 2884 net/zlib.c if (((z->state->sub.method = NEXTBYTE) & 0xf) != DEFLATED) state 2886 net/zlib.c z->state->mode = BAD; state 2888 net/zlib.c z->state->sub.marker = 5; /* can't try inflateSync */ state 2891 net/zlib.c if ((z->state->sub.method >> 4) + 8 > z->state->wbits) state 2893 net/zlib.c z->state->mode = BAD; state 2895 net/zlib.c z->state->sub.marker = 5; /* can't try inflateSync */ state 2898 net/zlib.c z->state->mode = FLAG; state 2903 net/zlib.c z->state->mode = BAD; state 2905 net/zlib.c z->state->sub.marker = 5; /* can't try inflateSync */ state 2908 net/zlib.c if (((z->state->sub.method << 8) + b) % 31) state 2910 net/zlib.c z->state->mode = BAD; state 2912 net/zlib.c z->state->sub.marker = 5; /* can't try inflateSync */ state 2916 net/zlib.c z->state->mode = BLOCKS; state 2918 net/zlib.c r = inflate_blocks(z->state->blocks, z, r); state 2920 net/zlib.c r = inflate_packet_flush(z->state->blocks); state 2923 net/zlib.c z->state->mode = BAD; state 2924 net/zlib.c z->state->sub.marker = 0; /* can try inflateSync */ state 2930 net/zlib.c inflate_blocks_reset(z->state->blocks, z, &z->state->sub.check.was); state 2931 net/zlib.c if (z->state->nowrap) state 2933 net/zlib.c z->state->mode = DONE; state 2936 net/zlib.c z->state->mode = CHECK4; state 2939 net/zlib.c z->state->sub.check.need = (uLong)NEXTBYTE << 24; state 2940 net/zlib.c z->state->mode = CHECK3; state 2943 net/zlib.c z->state->sub.check.need += (uLong)NEXTBYTE << 16; state 2944 net/zlib.c z->state->mode = CHECK2; state 2947 net/zlib.c z->state->sub.check.need += (uLong)NEXTBYTE << 8; state 2948 net/zlib.c z->state->mode = CHECK1; state 2951 net/zlib.c z->state->sub.check.need += (uLong)NEXTBYTE; state 2953 net/zlib.c if (z->state->sub.check.was != z->state->sub.check.need) state 2955 net/zlib.c z->state->mode = BAD; state 2957 net/zlib.c z->state->sub.marker = 5; /* can't try inflateSync */ state 2961 net/zlib.c z->state->mode = DONE; state 2973 net/zlib.c z->state->mode = BAD; state 2974 net/zlib.c z->state->sub.marker = 0; /* can try inflateSync */ state 2990 net/zlib.c if (z->state->mode != BLOCKS) state 2992 net/zlib.c return inflate_addhistory(z->state->blocks, z); state 3005 net/zlib.c if (z == Z_NULL || z->state == Z_NULL) state 3007 net/zlib.c if (z->state->mode != BAD) state 3009 net/zlib.c z->state->mode = BAD; state 3010 net/zlib.c z->state->sub.marker = 0; state 3015 net/zlib.c m = z->state->sub.marker; state 3033 net/zlib.c z->state->sub.marker = m; state 3041 net/zlib.c z->state->mode = BLOCKS; state 170 net/zlib.h struct internal_state FAR *state; /* not visible by applications */ state 998 netbt/hci_link.c hci_link_lookup_state(struct hci_unit *unit, uint16_t type, uint16_t state) state 1003 netbt/hci_link.c if (link->hl_type == type && link->hl_state == state) state 2311 netinet/ip_carp.c carp_set_state(struct carp_softc *sc, int state) state 2313 netinet/ip_carp.c if (sc->sc_state == state) state 2316 netinet/ip_carp.c sc->sc_state = state; state 2319 netinet/ip_carp.c switch (state) { state 1431 netinet6/nd6.c nbi->state = ln->ln_state; state 111 netinet6/nd6.h int state; /* reachability state */ state 127 sys/gmon.h int state; state 65 sys/simplelock.h #define simple_lock_assert(lkp, state) _simple_lock_assert(lkp, state, __FILE__, __LINE__)