db 202 dev/hil/hil.c u_int8_t db; db 210 dev/hil/hil.c db = LPC_RECONF | LPC_KBDCOOK | LPC_NOERROR | LPC_AUTOPOLL; db 211 dev/hil/hil.c send_hil_cmd(sc, HIL_WRITELPCTRL, &db, 1, NULL); db 220 dev/hil/hil.c db = bus_space_read_1(sc->sc_bst, sc->sc_bsh, HILP_DATA); db 231 dev/hil/hil.c if (send_hil_cmd(sc, HIL_READLPSTAT, NULL, 0, &db) == 0) { db 232 dev/hil/hil.c if (db & (LPS_CONFFAIL | LPS_CONFGOOD)) db 244 dev/hil/hil.c if (tries == 0 || (db & LPS_CONFFAIL)) { db 372 dev/hil/hil.c u_int8_t db; db 392 dev/hil/hil.c db = 0; db 393 dev/hil/hil.c send_hil_cmd(sc, HIL_WRITEKBDSADR, &db, db 491 dev/hil/hil.c u_int8_t db; db 499 dev/hil/hil.c db = 0; db 500 dev/hil/hil.c send_hil_cmd(sc, HIL_READLPSTAT, NULL, 0, &db); db 501 dev/hil/hil.c sc->sc_maxdev = db & LPS_DEVMASK; db 509 dev/hil/hil.c db = 0; db 510 dev/hil/hil.c send_hil_cmd(sc, HIL_WRITEKBDSADR, &db, 1, NULL); db 585 dev/hil/hil.c u_int8_t db; db 595 dev/hil/hil.c if (send_hil_cmd(sc, HIL_READLPSTAT, NULL, 0, &db) == 0) { db 596 dev/hil/hil.c if (db & (LPS_CONFFAIL | LPS_CONFGOOD)) db 599 dev/hil/hil.c db = LPS_CONFFAIL; db 604 dev/hil/hil.c if (db & LPS_CONFFAIL) { db 607 dev/hil/hil.c db = 0; db 608 dev/hil/hil.c send_hil_cmd(sc, HIL_READLPSTAT, NULL, 0, &db); db 610 dev/hil/hil.c sc->sc_maxdev = db & LPS_DEVMASK; db 784 dev/hil/hil.c u_int8_t db; db 802 dev/hil/hil.c db = bus_space_read_1(sc->sc_bst, sc->sc_bsh, HILP_DATA); db 803 dev/hil/hil.c db &= ~LPC_AUTOPOLL; db 807 dev/hil/hil.c bus_space_write_1(sc->sc_bst, sc->sc_bsh, HILP_DATA, db); db 816 dev/hil/hil.c db = bus_space_read_1(sc->sc_bst, sc->sc_bsh, HILP_DATA); db 817 dev/hil/hil.c } while (db & BSY_LOOPBUSY); db 826 dev/hil/hil.c u_int8_t db; db 836 dev/hil/hil.c db = bus_space_read_1(sc->sc_bst, sc->sc_bsh, HILP_DATA); db 837 dev/hil/hil.c db |= LPC_AUTOPOLL; db 841 dev/hil/hil.c bus_space_write_1(sc->sc_bst, sc->sc_bsh, HILP_DATA, db); db 2524 dev/ic/ar5211.c u_int32_t ob, db, obdb, xpds, xpdp, x_gain; db 2533 dev/ic/ar5211.c db = ar5k_bitswap(ee->ee_db[ee_mode][0], 3); db 2537 dev/ic/ar5211.c (((ob >> 2) & 0x1) | ((db << 1) & 0xe)) | db 2550 dev/ic/ar5211.c db = ee->ee_db[ee_mode][obdb]; db 2564 dev/ic/ar5211.c ((ar5k_bitswap(db, 3) << 2) & 0x1c); db 1396 dev/ic/mpi.c u_int32_t db; db 1408 dev/ic/mpi.c db = mpi_read_db(sc); db 1409 dev/ic/mpi.c if ((db & MPI_DOORBELL_WHOINIT) == MPI_DOORBELL_WHOINIT_PCIPEER) { db 1416 dev/ic/mpi.c switch (db & MPI_DOORBELL_STATE) { db 1438 dev/ic/mpi.c db = mpi_read_db(sc); db 169 dev/rasops/rasops_bitops.h int tmp, lmask, rmask, height, lnum, rnum, sb, db, cnt, full; db 209 dev/rasops/rasops_bitops.h db = dst & 31; db 211 dev/rasops/rasops_bitops.h if (db + num <= 32) { db 219 dev/rasops/rasops_bitops.h PUTBITS(tmp, db, num, drp); db 227 dev/rasops/rasops_bitops.h lmask = rasops_rmask[db]; db 229 dev/rasops/rasops_bitops.h lnum = (32 - db) & 31; db 247 dev/rasops/rasops_bitops.h db = dst & 31; db 249 dev/rasops/rasops_bitops.h if ((src -= db) < 0) { db 260 dev/rasops/rasops_bitops.h if (db) { db 261 dev/rasops/rasops_bitops.h GETBITS(sp, src, db, tmp); db 262 dev/rasops/rasops_bitops.h PUTBITS(tmp, 0, db, dp); db 286 dev/rasops/rasops_bitops.h db = dst & 31; db 297 dev/rasops/rasops_bitops.h PUTBITS(tmp, db, lnum, dp); db 197 net/bsd-comp.c bsd_clear(db) db 198 net/bsd-comp.c struct bsd_db *db; db 200 net/bsd-comp.c db->clear_count++; db 201 net/bsd-comp.c db->max_ent = FIRST-1; db 202 net/bsd-comp.c db->n_bits = BSD_INIT_BITS; db 203 net/bsd-comp.c db->ratio = 0; db 204 net/bsd-comp.c db->bytes_out = 0; db 205 net/bsd-comp.c db->in_count = 0; db 206 net/bsd-comp.c db->incomp_count = 0; db 207 net/bsd-comp.c db->checkpoint = CHECK_GAP; db 224 net/bsd-comp.c bsd_check(db) db 225 net/bsd-comp.c struct bsd_db *db; db 229 net/bsd-comp.c if (db->in_count >= db->checkpoint) { db 231 net/bsd-comp.c if (db->in_count >= RATIO_MAX db 232 net/bsd-comp.c || db->bytes_out >= RATIO_MAX) { db 233 net/bsd-comp.c db->in_count -= db->in_count/4; db 234 net/bsd-comp.c db->bytes_out -= db->bytes_out/4; db 237 net/bsd-comp.c db->checkpoint = db->in_count + CHECK_GAP; db 239 net/bsd-comp.c if (db->max_ent >= db->maxmaxcode) { db 247 net/bsd-comp.c new_ratio = db->in_count << RATIO_SCALE_LOG; db 248 net/bsd-comp.c if (db->bytes_out != 0) db 249 net/bsd-comp.c new_ratio /= db->bytes_out; db 251 net/bsd-comp.c if (new_ratio < db->ratio || new_ratio < 1 * RATIO_SCALE) { db 252 net/bsd-comp.c bsd_clear(db); db 255 net/bsd-comp.c db->ratio = new_ratio; db 269 net/bsd-comp.c struct bsd_db *db = (struct bsd_db *) state; db 272 net/bsd-comp.c stats->unc_bytes = db->uncomp_bytes; db 273 net/bsd-comp.c stats->unc_packets = db->uncomp_count; db 274 net/bsd-comp.c stats->comp_bytes = db->comp_bytes; db 275 net/bsd-comp.c stats->comp_packets = db->comp_count; db 276 net/bsd-comp.c stats->inc_bytes = db->incomp_bytes; db 277 net/bsd-comp.c stats->inc_packets = db->incomp_count; db 278 net/bsd-comp.c stats->ratio = db->in_count; db 279 net/bsd-comp.c out = db->bytes_out; db 295 net/bsd-comp.c struct bsd_db *db = (struct bsd_db *) state; db 297 net/bsd-comp.c db->seqno = 0; db 298 net/bsd-comp.c bsd_clear(db); db 299 net/bsd-comp.c db->clear_count = 0; db 312 net/bsd-comp.c struct bsd_db *db; db 348 net/bsd-comp.c newlen = sizeof(*db) + (hsize-1) * (sizeof(db->dict[0])); db 349 net/bsd-comp.c MALLOC(db, struct bsd_db *, newlen, M_DEVBUF, M_NOWAIT); db 350 net/bsd-comp.c if (!db) db 352 net/bsd-comp.c bzero(db, sizeof(*db) - sizeof(db->dict)); db 355 net/bsd-comp.c db->lens = NULL; db 357 net/bsd-comp.c MALLOC(db->lens, u_int16_t *, (maxmaxcode+1) * sizeof(db->lens[0]), db 359 net/bsd-comp.c if (!db->lens) { db 360 net/bsd-comp.c FREE(db, M_DEVBUF); db 365 net/bsd-comp.c db->totlen = newlen; db 366 net/bsd-comp.c db->hsize = hsize; db 367 net/bsd-comp.c db->hshift = hshift; db 368 net/bsd-comp.c db->maxmaxcode = maxmaxcode; db 369 net/bsd-comp.c db->maxbits = bits; db 371 net/bsd-comp.c return (void *) db; db 378 net/bsd-comp.c struct bsd_db *db = (struct bsd_db *) state; db 380 net/bsd-comp.c if (db->lens) db 381 net/bsd-comp.c FREE(db->lens, M_DEVBUF); db 382 net/bsd-comp.c FREE(db, M_DEVBUF); db 405 net/bsd-comp.c bsd_init(db, options, opt_len, unit, hdrlen, mru, debug, decomp) db 406 net/bsd-comp.c struct bsd_db *db; db 415 net/bsd-comp.c || BSD_NBITS(options[2]) != db->maxbits db 416 net/bsd-comp.c || (decomp && db->lens == NULL)) db 422 net/bsd-comp.c db->lens[--i] = 1; db 424 net/bsd-comp.c i = db->hsize; db 426 net/bsd-comp.c db->dict[--i].codem1 = BADCODEM1; db 427 net/bsd-comp.c db->dict[i].cptr = 0; db 430 net/bsd-comp.c db->unit = unit; db 431 net/bsd-comp.c db->hdrlen = hdrlen; db 432 net/bsd-comp.c db->mru = mru; db 436 net/bsd-comp.c db->debug = 1; db 438 net/bsd-comp.c bsd_reset(db); db 477 net/bsd-comp.c struct bsd_db *db = (struct bsd_db *) state; db 478 net/bsd-comp.c int hshift = db->hshift; db 479 net/bsd-comp.c u_int max_ent = db->max_ent; db 480 net/bsd-comp.c u_int n_bits = db->n_bits; db 543 net/bsd-comp.c if (maxolen + db->hdrlen > MLEN) db 545 net/bsd-comp.c m->m_data += db->hdrlen; db 560 net/bsd-comp.c *wptr++ = db->seqno >> 8; db 561 net/bsd-comp.c *wptr++ = db->seqno; db 563 net/bsd-comp.c ++db->seqno; db 585 net/bsd-comp.c dictp = &db->dict[hval]; db 599 net/bsd-comp.c if (hval >= db->hsize) db 600 net/bsd-comp.c hval -= db->hsize; db 601 net/bsd-comp.c dictp = &db->dict[hval]; db 612 net/bsd-comp.c if (max_ent < db->maxmaxcode) { db 616 net/bsd-comp.c db->n_bits = ++n_bits; db 621 net/bsd-comp.c dictp2 = &db->dict[max_ent+1]; db 622 net/bsd-comp.c if (db->dict[dictp2->cptr].codem1 == max_ent) db 623 net/bsd-comp.c db->dict[dictp2->cptr].codem1 = BADCODEM1; db 628 net/bsd-comp.c db->max_ent = ++max_ent; db 634 net/bsd-comp.c db->bytes_out += olen; db 635 net/bsd-comp.c db->in_count += ilen; db 637 net/bsd-comp.c ++db->bytes_out; /* count complete bytes */ db 639 net/bsd-comp.c if (bsd_check(db)) db 658 net/bsd-comp.c if (max_ent >= MAXCODE(n_bits) && max_ent < db->maxmaxcode) db 659 net/bsd-comp.c db->n_bits++; db 661 net/bsd-comp.c db->uncomp_bytes += ilen; db 662 net/bsd-comp.c ++db->uncomp_count; db 669 net/bsd-comp.c ++db->incomp_count; db 670 net/bsd-comp.c db->incomp_bytes += ilen; db 672 net/bsd-comp.c ++db->comp_count; db 673 net/bsd-comp.c db->comp_bytes += olen + BSD_OVHD; db 691 net/bsd-comp.c struct bsd_db *db = (struct bsd_db *) state; db 692 net/bsd-comp.c u_int hshift = db->hshift; db 693 net/bsd-comp.c u_int max_ent = db->max_ent; db 694 net/bsd-comp.c u_int n_bits = db->n_bits; db 714 net/bsd-comp.c db->incomp_count++; db 715 net/bsd-comp.c db->seqno++; db 734 net/bsd-comp.c dictp = &db->dict[hval]; db 748 net/bsd-comp.c if (hval >= db->hsize) db 749 net/bsd-comp.c hval -= db->hsize; db 750 net/bsd-comp.c dictp = &db->dict[hval]; db 761 net/bsd-comp.c if (max_ent < db->maxmaxcode) { db 765 net/bsd-comp.c db->n_bits = ++n_bits; db 770 net/bsd-comp.c dictp2 = &db->dict[max_ent+1]; db 771 net/bsd-comp.c if (db->dict[dictp2->cptr].codem1 == max_ent) db 772 net/bsd-comp.c db->dict[dictp2->cptr].codem1 = BADCODEM1; db 777 net/bsd-comp.c db->max_ent = ++max_ent; db 778 net/bsd-comp.c db->lens[max_ent] = db->lens[ent]+1; db 784 net/bsd-comp.c db->bytes_out += bitno/8; db 785 net/bsd-comp.c db->in_count += ilen; db 786 net/bsd-comp.c (void)bsd_check(db); db 788 net/bsd-comp.c ++db->incomp_count; db 789 net/bsd-comp.c db->incomp_bytes += ilen; db 790 net/bsd-comp.c ++db->uncomp_count; db 791 net/bsd-comp.c db->uncomp_bytes += ilen; db 796 net/bsd-comp.c if (max_ent >= MAXCODE(n_bits) && max_ent < db->maxmaxcode) db 797 net/bsd-comp.c db->n_bits++; db 822 net/bsd-comp.c struct bsd_db *db = (struct bsd_db *) state; db 823 net/bsd-comp.c u_int max_ent = db->max_ent; db 826 net/bsd-comp.c u_int n_bits = db->n_bits; db 863 net/bsd-comp.c if (seq != db->seqno) { db 864 net/bsd-comp.c if (db->debug) db 866 net/bsd-comp.c db->unit, seq, db->seqno - 1); db 869 net/bsd-comp.c ++db->seqno; db 881 net/bsd-comp.c dmp->m_data += db->hdrlen; db 933 net/bsd-comp.c if (db->debug) db 934 net/bsd-comp.c printf("bsd_decomp%d: bad CLEAR\n", db->unit); db 938 net/bsd-comp.c bsd_clear(db); db 943 net/bsd-comp.c if (incode > max_ent + 2 || incode > db->maxmaxcode db 946 net/bsd-comp.c if (db->debug) { db 948 net/bsd-comp.c db->unit, incode, oldcode); db 950 net/bsd-comp.c max_ent, explen, db->seqno); db 964 net/bsd-comp.c codelen = db->lens[finchar]; db 966 net/bsd-comp.c if (explen > db->mru + 1) { db 968 net/bsd-comp.c if (db->debug) { db 969 net/bsd-comp.c printf("bsd_decomp%d: ran out of mru\n", db->unit); db 1010 net/bsd-comp.c dictp = &db->dict[db->dict[finchar].cptr]; db 1023 net/bsd-comp.c db->unit, codelen, incode, max_ent); db 1036 net/bsd-comp.c if (oldcode != CLEAR && max_ent < db->maxmaxcode) { db 1042 net/bsd-comp.c hval = BSD_HASH(oldcode,finchar,db->hshift); db 1043 net/bsd-comp.c dictp = &db->dict[hval]; db 1050 net/bsd-comp.c if (hval >= db->hsize) db 1051 net/bsd-comp.c hval -= db->hsize; db 1052 net/bsd-comp.c dictp = &db->dict[hval]; db 1060 net/bsd-comp.c dictp2 = &db->dict[max_ent+1]; db 1061 net/bsd-comp.c if (db->dict[dictp2->cptr].codem1 == max_ent) { db 1062 net/bsd-comp.c db->dict[dictp2->cptr].codem1 = BADCODEM1; db 1068 net/bsd-comp.c db->max_ent = ++max_ent; db 1069 net/bsd-comp.c db->lens[max_ent] = db->lens[oldcode]+1; db 1072 net/bsd-comp.c if (max_ent >= MAXCODE(n_bits) && max_ent < db->maxmaxcode) { db 1073 net/bsd-comp.c db->n_bits = ++n_bits; db 1085 net/bsd-comp.c db->bytes_out += ilen; db 1086 net/bsd-comp.c db->in_count += explen; db 1087 net/bsd-comp.c if (bsd_check(db) && db->debug) { db 1089 net/bsd-comp.c db->unit); db 1092 net/bsd-comp.c ++db->comp_count; db 1093 net/bsd-comp.c db->comp_bytes += ilen + BSD_OVHD; db 1094 net/bsd-comp.c ++db->uncomp_count; db 1095 net/bsd-comp.c db->uncomp_bytes += explen; db 1103 net/bsd-comp.c printf("bsd_decomp%d: fell off end of chain ", db->unit); db 1105 net/bsd-comp.c incode, finchar, db->dict[finchar].cptr, max_ent); db 1108 net/bsd-comp.c db->unit, incode, finchar); db 1110 net/bsd-comp.c db->dict[finchar].cptr, dictp->codem1); db 203 ufs/ffs/ffs_alloc.c bprev = DIP(ip, db[lbprev]); db 332 ufs/ffs/ffs_inode.c oldblks[i] = DIP(oip, db[i]); db 334 ufs/ffs/ffs_inode.c DIP_ASSIGN(oip, db[i], 0); db 348 ufs/ffs/ffs_inode.c newblks[i] = DIP(oip, db[i]); db 349 ufs/ffs/ffs_inode.c DIP_ASSIGN(oip, db[i], oldblks[i]); db 391 ufs/ffs/ffs_inode.c bn = DIP(oip, db[i]); db 395 ufs/ffs/ffs_inode.c DIP_ASSIGN(oip, db[i], 0); db 407 ufs/ffs/ffs_inode.c bn = DIP(oip, db[lastblock]); db 437 ufs/ffs/ffs_inode.c if (newblks[i] != DIP(oip, db[i])) db 1944 ufs/ffs/ffs_softdep.c freeblks->fb_dblks[i] = DIP(ip, db[i]); db 1945 ufs/ffs/ffs_softdep.c DIP_ASSIGN(ip, db[i], 0); db 132 ufs/ufs/ufs_bmap.c *bnp = blkptrtodb(ump, DIP(ip, db[bn])); db 137 ufs/ufs/ufs_bmap.c is_sequential(ump, DIP(ip, db[bn - 1]), db 138 ufs/ufs/ufs_bmap.c DIP(ip, db[bn]));