Lines Matching refs:secbyt
109 #define secbyt(s) ((s) << SSHIFT)
117 #define blkoff(fs, b) (secbyt((fs)->lsndta) + blkbyt(fs, (b) - LOCLUS))
172 fat.buf = malloc(secbyt(fs->spf));
175 if (ioget(fd, fs->lsnfat, 0, fat.buf, secbyt(fs->spf)) == 0) {
201 if ((err = !(buf = malloc(secbyt(1))) ? errno : 0) ||
202 (err = ioget(fs->fd, 0, 0, buf, secbyt(1))) ||
336 secbyt(f->fs->lsndir)) + off, buf, n)))
524 fs->bsize = secbyt(fs->spc);
550 sc = (secbyt(fs->spf) << 1) / (fs->fatsz >> 2) - 1;
622 if ((err = ioget(fs->fd, lsec + sec, 0, dir, secbyt(1))))
778 err = ioread(fs, secbyt(fs->lsnfat) + fatoff(fs->fatsz, *c), buf,
793 memcpy(s, fat.buf + secbyt(lsec) + off, n);
799 memcpy(s, fat.buf + secbyt(bytsec(offset)), nbyte);
804 memcpy(s, fat.buf + secbyt(bytsec(offset)), n);