/netbsd-current/usr.sbin/makefs/v7fs/ |
H A D | v7fs_estimate.c | 66 v7fs_datablock_size(off_t sz, v7fs_daddr_t *nblk) argument 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 147 v7fs_datablock_size(sz, &nblk); 149 geom->ndatablock += nblk; 194 v7fs_daddr_t nblk = geom->ndatablock; local 257 v7fs_daddr_t nblk; local [all...] |
/netbsd-current/sys/fs/cd9660/ |
H A D | cd9660_bmap.c | 92 int nblk; local 94 nblk = (ip->i_size >> bshift) - (lblkno + 1); 95 if (nblk <= 0) 97 else if (nblk >= (MAXBSIZE >> bshift)) 100 *ap->a_runp = nblk;
|
/netbsd-current/sys/arch/sgimips/stand/common/ |
H A D | iris_scsictl.c | 61 scsi_read(uint8_t *buf, size_t olen, daddr_t blk, u_int nblk) argument 75 cdb.lenh = nblk >> (8 + DEV_BSHIFT); 76 cdb.lenl = nblk >> DEV_BSHIFT; 86 scsi_write(uint8_t *buf, size_t olen, daddr_t blk, u_int nblk) argument 101 cdb.lenh = nblk >> (8 + DEV_BSHIFT); 102 cdb.lenl = nblk >> DEV_BSHIFT;
|
H A D | iris_disk.c | 107 u_int nblk; local 115 nblk = reqcnt >> sc->sc_blkshift; 120 stat = scsi_read(buf, reqcnt, blk, nblk);
|
/netbsd-current/usr.sbin/installboot/ |
H A D | fstypes.c | 85 uint32_t nblk, i; local 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;
|
H A D | ffs.c | 129 int32_t blk, lblk, nblk; local 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 309 nblk = howmany(inode->di_size, fs->fs_bsize); 322 while (nblk > 0) { 373 nblk--; 378 if (nblk ! 436 uint32_t nblk; member in struct:findblks_state [all...] |
H A D | bbinfo.c | 151 uint32_t maxblk, nblk, blk_i; local 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++)
|
H A D | ext2fs.c | 201 int32_t blk, lblk, nblk; local 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...] |
/netbsd-current/sys/arch/ia64/stand/common/ |
H A D | bcache.c | 133 daddr_t i, nblk; local 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 170 nblk = size / bcache_blksize; 174 for (i = 0; i < nblk; i++) { 188 for (i = 0; i < nblk; i++) {
|
/netbsd-current/sys/arch/arm/imx/ |
H A D | imx23_ssp.c | 811 int nblk; local 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] [all...] |
/netbsd-current/usr.sbin/makefs/ |
H A D | udf.c | 698 uint32_t nblk, ddoff; local 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 851 nblk = UDF_ROUNDUP(chunk, context.sector_size) / context.sector_size; 853 udf_data_alloc(nblk, 888 uint32_t nblk, ddoff; local 1056 uint32_t n, nblk, nmetablk, nbytes; local [all...] |
/netbsd-current/sys/arch/luna68k/stand/boot/ |
H A D | scsi.c | 197 scsi_read_raw(u_int target, u_int blk, u_int nblk, uint8_t *buff, u_int len) argument 208 cdb->cdb[7] = (nblk & 0xff00) >> 8; 209 cdb->cdb[8] = (nblk & 0x00ff); 220 u_int nblk = len >> DEV_BSHIFT; local 222 return scsi_read_raw(scsi_device, blk, nblk, buff, len);
|
H A D | sd.c | 231 u_int nblk; local 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);
|
/netbsd-current/usr.sbin/installboot/arch/ |
H A D | hp300.c | 92 uint32_t nblk; local 136 nblk = HP300_MAXBLOCKS; 137 blocks = malloc(sizeof(*blocks) * nblk); 140 (unsigned long)sizeof(*blocks) * nblk); 145 if (!params->fstype->findstage2(params, &nblk, blocks)) 148 if (nblk == 0) { 152 } else if (nblk > 1) {
|
/netbsd-current/usr.sbin/sunlabel/ |
H A D | 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 >> 1 [all...] |
/netbsd-current/distrib/cdrom/macppc_installboot/ |
H A D | installboot.c | 65 uint32_t nblk, maxblk, blk_i; local 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) {
|
/netbsd-current/sys/fs/filecorefs/ |
H A D | filecore_bmap.c | 117 int nblk; local 120 nblk = (ip->i_size >> bshift) - (lbn + 1); 121 if (nblk <= 0) 123 else if (nblk >= (MAXBSIZE >> bshift)) 126 *ap->a_runp = nblk;
|
/netbsd-current/sys/ufs/ext2fs/ |
H A D | ext2fs_extents.c | 187 daddr_t nblk; local 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,
|
/netbsd-current/sys/arch/hp300/stand/common/ |
H A D | sd.c | 252 u_int nblk = size >> ss->sc_blkshift; local 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);
|
H A D | scsi.c | 418 u_int nblk) 429 cdb.lenh = nblk >> (8 + DEV_BSHIFT); 430 cdb.lenl = nblk >> DEV_BSHIFT; 437 u_int nblk) 448 cdb.lenh = nblk >> (8 + DEV_BSHIFT); 449 cdb.lenl = nblk >> DEV_BSHIFT; 417 scsi_tt_read(int ctlr, int slave, uint8_t *buf, u_int len, daddr_t blk, u_int nblk) argument 436 scsi_tt_write(int ctlr, int slave, uint8_t *buf, u_int len, daddr_t blk, u_int nblk) argument
|
/netbsd-current/usr.sbin/quot/ |
H A D | quot.c | 149 off_t nblk, sz; local 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;
|
/netbsd-current/sys/arch/atari/dev/ |
H A D | dma.c | 257 * Program the DMA-controller to transfer 'nblk' blocks of 512 bytes. 261 st_dmacomm(int mode, int nblk) argument 267 DMA->dma_data = nblk;
|
/netbsd-current/sbin/newfs_udf/ |
H A D | udf_core.h | 400 extern void udf_metadata_alloc(int nblk, struct long_ad *pos); 401 extern void udf_data_alloc(int nblk, struct long_ad *pos); 402 extern void udf_fids_alloc(int nblk, struct long_ad *pos);
|
/netbsd-current/sys/arch/dreamcast/dev/maple/ |
H A D | mmemcard.c | 695 daddr_t off, nblk, cnt; local 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;
|
/netbsd-current/sys/dev/pcmcia/ |
H A D | if_wi_pcmcia.c | 485 int i, len, elen, nblk, pdrlen; local 495 nblk = strtoul(p, &endp, 10); 504 for (i = 0; i < nblk; i++) {
|