/freebsd/sys/kern/ |
H A D | tty_inq.c | 69 #define GETBIT(tib,boff) \ argument 70 ((tib)->tib_quotes[(boff) / BMSIZE] & (1 << ((boff) % BMSIZE))) 71 #define SETBIT(tib,boff) \ argument 72 ((tib)->tib_quotes[(boff) / BMSIZE] |= (1 << ((boff) % BMSIZE))) 73 #define CLRBIT(tib,boff) \ argument 74 ((tib)->tib_quotes[(boff) / BMSIZE] &= ~(1 << ((boff) % BMSIZE))) 291 unsigned int boff; in ttyinq_write() local 295 boff = ti->ti_end % TTYINQ_DATASIZE; in ttyinq_write() 306 } else if (boff == 0) { in ttyinq_write() 319 l = MIN(nbytes, TTYINQ_DATASIZE - boff); in ttyinq_write() [all …]
|
H A D | tty_outq.c | 281 unsigned int boff; in ttyoutq_write() local 285 boff = to->to_end % TTYOUTQ_DATASIZE; in ttyoutq_write() 296 } else if (boff == 0) { in ttyoutq_write() 309 l = MIN(nbytes, TTYOUTQ_DATASIZE - boff); in ttyoutq_write() 311 memcpy(tob->tob_data + boff, cbuf, l); in ttyoutq_write()
|
/freebsd/sys/dev/le/ |
H A D | lance.c | 338 lance_put(struct lance_softc *sc, int boff, struct mbuf *m) in lance_put() argument 352 (*sc->sc_copytobuf)(sc, mtod(m, caddr_t), boff, len); in lance_put() 353 boff += len; in lance_put() 359 (*sc->sc_zerobuf)(sc, boff, LEMINSIZE - tlen); in lance_put() 372 lance_get(struct lance_softc *sc, int boff, int totlen) in lance_get() argument 409 (*sc->sc_copyfrombuf)(sc, mtod(m, caddr_t), boff, len); in lance_get() 410 boff += len; in lance_get() 636 lance_copytobuf_contig(struct lance_softc *sc, void *from, int boff, int len) in lance_copytobuf_contig() argument 643 memcpy(buf + boff, from, len); in lance_copytobuf_contig() 647 lance_copyfrombuf_contig(struct lance_softc *sc, void *to, int boff, int len) in lance_copyfrombuf_contig() argument [all …]
|
/freebsd/sys/dev/vt/hw/vbefb/ |
H A D | vbefb.c | 99 int format, roff, goff, boff; in vt_vbefb_init() local 127 boff = ffs(vbefb->fb_mask_blue) - 1; in vt_vbefb_init() 131 vbefb->fb_mask_blue >> boff, boff); in vt_vbefb_init()
|
/freebsd/sys/dev/vt/hw/efifb/ |
H A D | efifb.c | 100 int roff, goff, boff; in vt_efifb_init() local 149 boff = ffs(efifb->fb_mask_blue) - 1; in vt_efifb_init() 153 efifb->fb_mask_blue >> boff, boff); in vt_efifb_init()
|
/freebsd/stand/libsa/ |
H A D | cd9660read.c | 227 daddr_t bno, boff; in cd9660_lookup() local 253 boff = 0; in cd9660_lookup() 257 rc = read_iso_block(blkbuf, bno + boff); in cd9660_lookup() 261 boff++; in cd9660_lookup() 266 off = boff * ISO_DEFAULT_BLOCK_SIZE; in cd9660_lookup() 286 off = boff * ISO_DEFAULT_BLOCK_SIZE; in cd9660_lookup()
|
H A D | cd9660.c | 341 daddr_t bno, boff; in cd9660_open() local 382 boff = 0; in cd9660_open() 389 cdb2devb(bno + boff), in cd9660_open() 398 boff++; in cd9660_open() 403 off = boff * ISO_DEFAULT_BLOCK_SIZE; in cd9660_open() 423 off = boff * ISO_DEFAULT_BLOCK_SIZE; in cd9660_open()
|
/freebsd/usr.sbin/fstyp/ |
H A D | hammer2.c | 72 size_t bytes, io_bytes, boff; in read_media() local 86 boff = io_off - io_base; in read_media() 89 while (io_bytes + boff < bytes) in read_media() 106 if (boff) in read_media() 107 memcpy(media, (char *)media + boff, bytes); in read_media()
|
/freebsd/usr.sbin/makefs/msdos/ |
H A D | msdosfs_denode.c | 213 int boff; in detrunc() local 270 if ((boff = length & pmp->pm_crbomask) != 0) { in detrunc() 282 memset(bp->b_data + boff, 0, pmp->pm_bpcluster - boff); in detrunc()
|
/freebsd/usr.sbin/bhyve/ |
H A D | block_if.c | 236 size_t clen, len, off, boff, voff; in blockif_proc() local 265 boff = 0; in blockif_proc() 267 clen = MIN(len - boff, br->br_iov[i].iov_len - in blockif_proc() 270 buf + boff, clen); in blockif_proc() 277 boff += clen; in blockif_proc() 278 } while (boff < len); in blockif_proc() 300 boff = 0; in blockif_proc() 302 clen = MIN(len - boff, br->br_iov[i].iov_len - in blockif_proc() 304 memcpy(buf + boff, in blockif_proc() 313 boff += clen; in blockif_proc() [all …]
|
/freebsd/usr.sbin/makefs/ffs/ |
H A D | ffs_bswap.c | 200 int32_t btotoff, boff, clustersumoff; in ffs_cg_swap() local 236 boff = n->cg_old_boff; in ffs_cg_swap() 240 boff = bswap32(n->cg_old_boff); in ffs_cg_swap() 245 n16 = (u_int16_t *)((u_int8_t *)n + boff); in ffs_cg_swap() 246 o16 = (u_int16_t *)((u_int8_t *)o + boff); in ffs_cg_swap()
|
/freebsd/usr.bin/grep/ |
H A D | queue.c | 98 item->boff = x->boff; in enqueue()
|
H A D | util.c | 332 pc.ln.boff = 0; in procfile() 357 pc.ln.boff = 0; in procfile() 743 printf("%lld", (long long)(line->off + line->boff)); in printline_metadata() 781 pc->ln.boff = match.rm_so; in printline()
|
H A D | grep.h | 81 off_t boff; member
|
/freebsd/stand/i386/libi386/ |
H A D | vidconsole.c | 634 int i, roff, goff, boff, rc; in vidc_load_palette() local 644 boff = ffs(gfx_state.tg_fb.fb_mask_blue) - 1; in vidc_load_palette() 648 gfx_state.tg_fb.fb_mask_blue >> boff, boff); in vidc_load_palette() 884 int format, roff, goff, boff; in cons_update_mode() local 946 boff = ffs(gfx_state.tg_fb.fb_mask_blue) - 1; in cons_update_mode() 950 gfx_state.tg_fb.fb_mask_blue >> boff, boff); in cons_update_mode()
|
/freebsd/sys/fs/msdosfs/ |
H A D | msdosfs_denode.c | 369 int boff; in detrunc() local 428 if ((boff = length & pmp->pm_crbomask) != 0) { in detrunc() 443 memset(bp->b_data + boff, 0, pmp->pm_bpcluster - boff); in detrunc()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | dmu_direct.c | 297 size_t boff = offset > db->db.db_offset ? in dmu_read_abd() local 299 size_t len = MIN(size - aoff, db->db.db_size - boff); in dmu_read_abd() 309 (char *)db->db.db_data + boff, aoff, len); in dmu_read_abd()
|
/freebsd/stand/efi/libefi/ |
H A D | efi_console.c | 924 int roff, goff, boff; in cons_update_mode() local 928 boff = ffs(gfx_state.tg_fb.fb_mask_blue) - 1; in cons_update_mode() 933 gfx_state.tg_fb.fb_mask_blue >> boff, boff); in cons_update_mode()
|
/freebsd/stand/common/ |
H A D | gfx_fb.c | 284 int roff, goff, boff, bpp; in gfx_fb_color_map() local 288 boff = ffs(gfx_state.tg_fb.fb_mask_blue) - 1; in gfx_fb_color_map() 302 bmask = gfx_state.tg_fb.fb_mask_blue >> boff; in gfx_fb_color_map() 416 int roff, goff, boff; in gfxfb_blt_fill() local 436 boff = ffs(gfx_state.tg_fb.fb_mask_blue) - 1; in gfxfb_blt_fill() 446 (gfx_state.tg_fb.fb_mask_blue >> boff)) << boff; in gfxfb_blt_fill()
|
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_lock.cpp | 2666 void __kmp_spin_backoff(kmp_backoff_t *boff) { in __kmp_spin_backoff() argument 2669 for (i = boff->step; i > 0; i--) { in __kmp_spin_backoff() 2670 kmp_uint64 goal = __kmp_tsc() + boff->min_tick; in __kmp_spin_backoff() 2673 __kmp_tpause(0, boff->min_tick); in __kmp_spin_backoff() 2683 boff->step = (boff->step << 1 | 1) & (boff->max_backoff - 1); in __kmp_spin_backoff()
|
/freebsd/stand/libsa/zfs/ |
H A D | zfsimpl.c | 2352 int boff = offset % bsize; in dnode_read() local 2390 i = bsize - boff; in dnode_read() 2392 memcpy(buf, &dnode_cache_buf[boff], i); in dnode_read()
|
/freebsd/contrib/one-true-awk/ |
H A D | run.c | 119 int boff = pbptr ? *pbptr - *pbuf : 0; in adjbuf() local 133 *pbptr = tbuf + boff; in adjbuf()
|