HomeSort by: relevance | last modified time | path
    Searched defs:nblk (Results 1 - 25 of 25) sorted by relevancy

  /src/sys/fs/cd9660/
cd9660_bmap.c 92 int nblk; local in function:cd9660_bmap
94 nblk = (ip->i_size >> bshift) - (lblkno + 1);
95 if (nblk <= 0)
97 else if (nblk >= (MAXBSIZE >> bshift))
100 *ap->a_runp = nblk;
  /src/usr.sbin/installboot/
fstypes.c 85 uint32_t nblk, i; local in function:hardcode_stage2
104 nblk = s2sb.st_size / params->fstype->blocksize;
106 nblk++;
109 params->stage2, s2sb.st_size, params->fstype->blocksize, nblk);
111 if (nblk > *maxblk) {
114 params->stage2, nblk, *maxblk);
118 for (i = 0; i < nblk; i++) {
123 *maxblk = nblk;
bbinfo.c 151 uint32_t maxblk, nblk, blk_i; local in function:shared_bbinfo_setboot
247 nblk = maxblk;
248 if (! params->fstype->findstage2(params, &nblk, blocks))
250 if (nblk == 0) {
257 bbinfop->bbi_block_count = HOSTTOTARGET32(nblk);
259 for (blk_i = 0; blk_i < nblk; blk_i++) {
263 blk_i + 1 != nblk) {
278 maxblk, blocks[0].blocksize, nblk);
279 for (blk_i = 0; blk_i < nblk; blk_i++)
ext2fs.c 201 int32_t blk, lblk, nblk; local in function:ext2fs_find_disk_blocks
247 nblk = howmany(inode->e2di_size, fs->e2fs_bsize);
260 while (nblk > 0) {
309 nblk--;
314 if (nblk != 0) {
369 uint32_t nblk; member in struct:findblks_state
384 if (state->nblk == state->maxblk) {
389 state->blocks[state->nblk].block = blk;
390 state->blocks[state->nblk].blocksize = blksize;
391 state->nblk++
    [all...]
ffs.c 129 int32_t blk, lblk, nblk; local in function:ffs_find_disk_blocks_ufs1
172 nblk = howmany(inode->di_size, fs->fs_bsize);
185 while (nblk > 0) {
237 nblk--;
242 if (nblk != 0) {
266 int64_t blk, lblk, nblk; local in function:ffs_find_disk_blocks_ufs2
309 nblk = howmany(inode->di_size, fs->fs_bsize);
322 while (nblk > 0) {
373 nblk--;
378 if (nblk != 0)
436 uint32_t nblk; member in struct:findblks_state
    [all...]
  /src/sys/ufs/ext2fs/
ext2fs_extents.c 187 daddr_t nblk; local in function:ext4_ext_find_extent
207 nblk = (daddr_t)path->ep_index->ei_leaf_hi << 32 |
209 size = blksize(fs, ip, nblk);
214 error = bread(ip->i_devvp, fsbtodb(fs, nblk), size, 0,
  /src/sys/arch/luna68k/stand/boot/
scsi.c 197 scsi_read_raw(u_int target, u_int blk, u_int nblk, uint8_t *buff, u_int len)
208 cdb->cdb[7] = (nblk & 0xff00) >> 8;
209 cdb->cdb[8] = (nblk & 0x00ff);
220 u_int nblk = len >> DEV_BSHIFT; local in function:scsi_read
222 return scsi_read_raw(scsi_device, blk, nblk, buff, len);
sd.c 231 u_int nblk; local in function:sdstrategy
244 nblk = size >> sc->sc_bshift;
256 cdb->cdb[7] = ((nblk >> DEV_BSHIFT) & 0xff00) >> 8;
257 cdb->cdb[8] = ((nblk >> DEV_BSHIFT) & 0x00ff);
261 printf("sdstrategy: blk = %lu (0x%lx), nblk = %u (0x%x)\n",
262 (u_long)blk, (long)blk, nblk, nblk);
  /src/sys/arch/macppc/stand/installboot/
installboot.c 65 uint32_t nblk, maxblk, blk_i; local in function:main
181 nblk = maxblk;
182 if (!params->fstype->findstage2(params, &nblk, blocks)) {
186 bbinfop->bbi_block_count = htobe32(nblk);
188 for (blk_i = 0; blk_i < nblk; blk_i++) {
193 blk_i + 1 != nblk) {
  /src/sys/arch/sgimips/stand/common/
iris_disk.c 107 u_int nblk; local in function:diskstrategy
115 nblk = reqcnt >> sc->sc_blkshift;
120 stat = scsi_read(buf, reqcnt, blk, nblk);
  /src/sys/fs/filecorefs/
filecore_bmap.c 117 int nblk; local in function:filecore_bmap
120 nblk = (ip->i_size >> bshift) - (lbn + 1);
121 if (nblk <= 0)
123 else if (nblk >= (MAXBSIZE >> bshift))
126 *ap->a_runp = nblk;
  /src/usr.sbin/makefs/v7fs/
v7fs_estimate.c 66 v7fs_datablock_size(off_t sz, v7fs_daddr_t *nblk)
72 *nblk = 0;
81 *nblk = map.index[0] + 1;
84 *nblk = V7FS_NADDR_DIRECT + /*direct */
88 *nblk = V7FS_NADDR_DIRECT + /*direct */
98 *nblk = V7FS_NADDR_DIRECT + /*direct */
115 *nblk = 0;
131 v7fs_daddr_t nblk; local in function:estimate_size_walk
147 v7fs_datablock_size(sz, &nblk);
149 geom->ndatablock += nblk;
194 v7fs_daddr_t nblk = geom->ndatablock; local in function:determine_fs_size
257 v7fs_daddr_t nblk; local in function:v7fs_estimate
    [all...]
  /src/usr.sbin/installboot/arch/
hp300.c 95 uint32_t nblk; local in function:hp300_setboot
142 nblk = HP300_MAXBLOCKS;
143 blocks = malloc(sizeof(*blocks) * nblk);
146 (unsigned long)sizeof(*blocks) * nblk);
151 if (!params->fstype->findstage2(params, &nblk, blocks))
154 if (nblk == 0) {
158 } else if (nblk > 1) {
  /src/sys/arch/ia64/stand/common/
bcache.c 133 daddr_t i, nblk; local in function:write_strategy
136 nblk = size / bcache_blksize;
139 for (i = 0; i < nblk; i++) {
148 for (i = 0; i < nblk; i++) {
167 daddr_t p_blk, i, j, nblk; local in function:read_strategy
170 nblk = size / bcache_blksize;
174 for (i = 0; i < nblk; i++) {
188 for (i = 0; i < nblk; i++) {
  /src/sys/arch/hp300/stand/common/
sd.c 252 u_int nblk = size >> ss->sc_blkshift; local in function:sdstrategy
269 printf("sdstrategy(%d,%d): size=%d blk=%d nblk=%d\n",
270 ctlr, unit, size, blk, nblk);
275 stat = scsi_tt_read(ctlr, unit, buf, size, blk, nblk);
277 stat = scsi_tt_write(ctlr, unit, buf, size, blk, nblk);
  /src/sys/dev/pcmcia/
if_wi_pcmcia.c 485 int i, len, elen, nblk, pdrlen; local in function:wi_pcmcia_write_firm
495 nblk = strtoul(p, &endp, 10);
504 for (i = 0; i < nblk; i++) {
  /src/sys/fs/hfs/
hfs_vnops.c 779 int nblk; local in function:hfs_vop_bmap
781 nblk = extents[i].block_count - lblkno - 1;
782 if (nblk <= 0)
784 else if (nblk > MAXBSIZE >> bshift)
787 *ap->a_runp = nblk;
  /src/usr.sbin/quot/
quot.c 149 off_t nblk, sz; local in function:virtualblocks
154 nblk = ffs_blkroundup(super, sz);
155 if (sz == nblk)
156 nblk += super->fs_bsize;
163 nblk = ffs_blkroundup(super, sz);
164 sz = ffs_lblkno(super, nblk);
167 nblk += sz * super->fs_bsize;
172 nblk = ffs_fragroundup(super, sz);
174 return nblk / DEV_BSIZE;
  /src/sys/dev/
dksubr.c 774 int part, towrt, maxblkcnt, nblk; local in function:dk_dump
856 nblk = uimin(maxblkcnt, towrt);
858 if ((rv = (*dkd->d_dumpblocks)(dksc->sc_dev, va, blkno, nblk))
865 towrt -= nblk;
866 blkno += nblk;
867 va += nblk * lp->d_secsize;
  /src/sys/arch/arm/imx/
imx23_ssp.c 811 int nblk; local in function:issp_create_dma_cmd_list_multi
814 nblk = 0;
818 apbdma_cmd_buf(&dma_cmd[nblk], cmd->c_blklen * nblk, cmd->c_dmamap);
819 apbdma_cmd_chain(&dma_cmd[nblk], &dma_cmd[nblk+1], dma_chain,
822 dma_cmd[nblk].control =
828 dma_cmd[nblk].pio_words[PIO_WORD_CTRL0] |=
832 dma_cmd[nblk].pio_words[PIO_WORD_CTRL0] |= HW_SSP_CTRL0_DATA_XFER |
838 dma_cmd[nblk].pio_words[PIO_WORD_CTRL0] |
    [all...]
  /src/sys/arch/dreamcast/dev/maple/
mmemcard.c 695 daddr_t off, nblk, cnt; local in function:mmemstrategy
732 nblk = pt->pt_info.maxblk - pt->pt_info.minblk + 1;
735 nblk = pt->pt_dk.dk_label->d_partitions[labelpart].p_offset;
736 nblk += pt->pt_dk.dk_label->d_partitions[labelpart].p_size;
740 if (off + cnt > nblk) {
741 if (off >= nblk) {
742 if (off == nblk)
746 cnt = nblk - off;
  /src/sys/dev/isa/
mcd.c 111 int nblk; member in struct:mcd_mbx
547 sc->mbx.nblk = bp->b_bcount / sc->blksize;
1230 bus_space_write_1(iot, ioh, MCD_COMMAND, mbx->nblk);
1271 if (--mbx->nblk > 0)
  /src/usr.sbin/sunlabel/
sunlabel.c 85 uint32_t nblk; member in struct:part
365 p->endcyl = p->startcyl + how_many(p->nblk, label.spc);
409 label.partitions[i].nblk = 0;
456 label.partitions[i].nblk = (uint32_t)l_l[i + i + 112];
480 label.partitions[i + 8].nblk = (uint32_t)l_l[j++];
486 label.partitions[i + 8].nblk = 0;
536 l_s[(i * 4) + 224] = label.partitions[i].nblk >> 16;
537 l_s[(i * 4) + 225] = label.partitions[i].nblk & 0xffff;
541 label.partitions[i + 8].nblk)
552 l_s[j++] = label.partitions[i + 8].nblk >> 16
    [all...]
  /src/usr.sbin/makefs/
udf.c 698 uint32_t nblk, ddoff; local in function:udf_estimate_walk
744 nblk = udf_datablocks(sz);
745 stats->nmetadatablocks += nblk;
777 nblk = udf_datablocks(sz);
778 stats->ndatablocks += nblk;
795 nblk = udf_datablocks(softlink_len);
796 stats->ndatablocks += nblk;
819 int nblk; local in function:udf_copy_file
851 nblk = UDF_ROUNDUP(chunk, context.sector_size) / context.sector_size;
853 udf_data_alloc(nblk, &data_icb)
888 uint32_t nblk, ddoff; local in function:udf_populate_walk
1056 uint32_t n, nblk, nmetablk, nbytes; local in function:udf_enumerate_and_estimate
    [all...]
  /src/sys/dev/sdmmc/
sdmmc_mem.c 2343 const int nblk = howmany(datalen, SDMMC_SECTOR_SIZE); local in function:sdmmc_mem_write_block_subr
2344 if (ISSET(sc->sc_flags, SMF_SD_MODE) && nblk > 1) {
2349 cmd.c_arg = nblk;

Completed in 61 milliseconds