/src/sys/arch/evbppc/evbppc/ |
disksubr.c | 70 if (lp->d_secsize == 0) 71 lp->d_secsize = DEV_BSIZE; 80 bp = geteblk((int)lp->d_secsize); 86 bp->b_bcount = lp->d_secsize; 97 dlp <= (struct disklabel *)((char *)bp->b_data + lp->d_secsize - 127 if (lp->d_secsize > DEV_BSIZE) 128 bp->b_blkno *= lp->d_secsize / DEV_BSIZE; 130 bp->b_blkno /= DEV_BSIZE / lp->d_secsize; 131 bp->b_bcount = lp->d_secsize; 180 bp = geteblk((int)lp->d_secsize); [all...] |
/src/sys/arch/alpha/alpha/ |
disksubr.c | 65 if (lp->d_secsize == 0) 66 lp->d_secsize = DEV_BSIZE; 75 bp = geteblk((int)lp->d_secsize); 81 bp->b_bcount = lp->d_secsize; 112 if (lp->d_secsize > DEV_BSIZE) 113 bp->b_blkno *= lp->d_secsize / DEV_BSIZE; 115 bp->b_blkno /= DEV_BSIZE / lp->d_secsize; 116 bp->b_bcount = lp->d_secsize; 155 bp = geteblk((int)lp->d_secsize); 159 bp->b_bcount = lp->d_secsize; [all...] |
/src/sys/arch/evbmips/evbmips/ |
disksubr.c | 61 if (lp->d_secsize == 0) 62 lp->d_secsize = DEV_BSIZE; 73 bp = geteblk((int)lp->d_secsize); 85 dlp <= (struct disklabel *)((char *)bp->b_data + lp->d_secsize - 117 if (lp->d_secsize > DEV_BSIZE) 118 bp->b_blkno *= lp->d_secsize / DEV_BSIZE; 120 bp->b_blkno /= DEV_BSIZE / lp->d_secsize; 121 bp->b_bcount = lp->d_secsize; 161 bp = geteblk((int)lp->d_secsize); 165 bp->b_bcount = lp->d_secsize; [all...] |
/src/sys/arch/x68k/x68k/ |
disksubr.c | 77 if (lp->d_secsize == 0) 78 lp->d_secsize = DEF_BSIZE; 94 howmany(LABELOFFSET + sizeof(struct disklabel), lp->d_secsize) 95 * lp->d_secsize; 97 howmany(sizeof(struct cpu_disklabel), lp->d_secsize) 98 * lp->d_secsize; 134 if (lp->d_secsize >= 2048) { 139 bp->b_blkno = DOSPARTOFF * DEF_BSIZE / lp->d_secsize; 221 if (lp->d_secsize > DEF_BSIZE) 222 bp->b_blkno *= lp->d_secsize / DEF_BSIZE [all...] |
/src/sys/arch/sgimips/sgimips/ |
disksubr.c | 82 if (lp->d_secsize == 0) 83 lp->d_secsize = DEV_BSIZE; 88 bp = geteblk((int)lp->d_secsize); 92 bp->b_bcount = lp->d_secsize; 110 bp = geteblk((int)lp->d_secsize); 113 bp->b_bcount = lp->d_secsize; 149 bp = geteblk((int)lp->d_secsize); 153 bp->b_bcount = lp->d_secsize; 173 memset(bp->b_data, 0, lp->d_secsize); 176 bp->b_bcount = lp->d_secsize; [all...] |
/src/sys/arch/arm/arm/ |
disksubr.c | 138 if (lp->d_secsize == 0) 139 lp->d_secsize = DEV_BSIZE; 161 bp = geteblk((int)lp->d_secsize); 193 bp->b_bcount = lp->d_secsize; 204 dlp <= (struct disklabel *)((char *)bp->b_data + lp->d_secsize 234 if (lp->d_secsize > DEV_BSIZE) 235 bp->b_blkno *= lp->d_secsize / DEV_BSIZE; 237 bp->b_blkno /= DEV_BSIZE / lp->d_secsize; 238 bp->b_bcount = lp->d_secsize; 281 bp = geteblk((int)lp->d_secsize); [all...] |
/src/sys/kern/ |
subr_disklabel.c | 61 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0 62 || (nlp->d_secsize % DEV_BSIZE) != 0) { 64 nlp->d_secpercyl, nlp->d_secsize);
|
/src/sys/arch/hp300/hp300/ |
disksubr.c | 64 if (lp->d_secsize == 0) 65 lp->d_secsize = DEV_BSIZE; 81 bp = geteblk((int)lp->d_secsize); 84 bp->b_bcount = lp->d_secsize; 128 bp = geteblk((int)lp->d_secsize); 131 bp->b_bcount = lp->d_secsize; 138 ((char *)bp->b_data + lp->d_secsize - sizeof(*dlp));
|
/src/sys/arch/news68k/news68k/ |
disksubr.c | 63 if (lp->d_secsize == 0) 64 lp->d_secsize = DEV_BSIZE; 80 bp = geteblk((int)lp->d_secsize); 83 bp->b_bcount = lp->d_secsize; 127 bp = geteblk((int)lp->d_secsize); 130 bp->b_bcount = lp->d_secsize; 136 dlp <= (struct disklabel *)((char *)bp->b_data + lp->d_secsize
|
/src/sys/arch/newsmips/newsmips/ |
disksubr.c | 63 if (lp->d_secsize == 0) 64 lp->d_secsize = DEV_BSIZE; 80 bp = geteblk((int)lp->d_secsize); 83 bp->b_bcount = lp->d_secsize; 127 bp = geteblk((int)lp->d_secsize); 130 bp->b_bcount = lp->d_secsize; 137 ((char *)bp->b_data + lp->d_secsize - sizeof(*dlp));
|
/src/sys/arch/virt68k/virt68k/ |
disksubr.c | 64 if (lp->d_secsize == 0) 65 lp->d_secsize = DEV_BSIZE; 81 bp = geteblk((int)lp->d_secsize); 84 bp->b_bcount = lp->d_secsize; 128 bp = geteblk((int)lp->d_secsize); 131 bp->b_bcount = lp->d_secsize; 138 ((char *)bp->b_data + lp->d_secsize - sizeof(*dlp));
|
/src/sys/arch/evbmips/sbmips/ |
disksubr.c | 107 if (lp->d_secsize == 0) 108 lp->d_secsize = DEV_BSIZE; 130 bp = geteblk((int)lp->d_secsize); 142 bp->b_bcount = lp->d_secsize; 191 bp->b_bcount = lp->d_secsize; 203 ((char *)bp->b_data + lp->d_secsize - sizeof(*dlp)); 232 if (lp->d_secsize > DEV_BSIZE) 233 bp->b_blkno *= lp->d_secsize / DEV_BSIZE; 235 bp->b_blkno /= DEV_BSIZE / lp->d_secsize; 236 bp->b_bcount = lp->d_secsize; [all...] |
/src/sys/arch/hpc/hpc/ |
disksubr.c | 137 if (lp->d_secsize == 0) 138 lp->d_secsize = DEV_BSIZE; 160 bp = geteblk((int)lp->d_secsize); 172 bp->b_bcount = lp->d_secsize; 241 bp->b_bcount = lp->d_secsize; 253 lp->d_secsize - sizeof(*dlp)); 282 if (lp->d_secsize > DEV_BSIZE) 283 bp->b_blkno *= lp->d_secsize / DEV_BSIZE; 285 bp->b_blkno /= DEV_BSIZE / lp->d_secsize; 286 bp->b_bcount = lp->d_secsize; [all...] |
/src/sys/arch/playstation2/playstation2/ |
disksubr.c | 107 if (lp->d_secsize == 0) 108 lp->d_secsize = DEV_BSIZE; 130 bp = geteblk((int)lp->d_secsize); 142 bp->b_bcount = lp->d_secsize; 190 bp->b_bcount = lp->d_secsize; 201 dlp <= (struct disklabel *)((char*)bp->b_data + lp->d_secsize - sizeof(*dlp)); 230 if (lp->d_secsize > DEV_BSIZE) 231 bp->b_blkno *= lp->d_secsize / DEV_BSIZE; 233 bp->b_blkno /= DEV_BSIZE / lp->d_secsize; 234 bp->b_bcount = lp->d_secsize; [all...] |
/src/sys/arch/sbmips/sbmips/ |
disksubr.c | 107 if (lp->d_secsize == 0) 108 lp->d_secsize = DEV_BSIZE; 130 bp = geteblk((int)lp->d_secsize); 142 bp->b_bcount = lp->d_secsize; 191 bp->b_bcount = lp->d_secsize; 203 ((char *)bp->b_data + lp->d_secsize - sizeof(*dlp)); 232 if (lp->d_secsize > DEV_BSIZE) 233 bp->b_blkno *= lp->d_secsize / DEV_BSIZE; 235 bp->b_blkno /= DEV_BSIZE / lp->d_secsize; 236 bp->b_bcount = lp->d_secsize; [all...] |
/src/sys/arch/next68k/next68k/ |
disksubr.c | 103 if (lp->d_secsize == 0) 104 lp->d_secsize = ondisk->cd_secsize; 105 KASSERT(ondisk->cd_secsize >= lp->d_secsize); 121 (ondisk->cd_secsize / lp->d_secsize); 125 (ondisk->cd_secsize / lp->d_secsize); 181 ondisk->cd_secsize = lp->d_secsize; 191 KASSERT(ondisk->cd_secsize >= lp->d_secsize); 225 (ondisk->cd_secsize / lp->d_secsize)) && 229 (ondisk->cd_secsize / lp->d_secsize)) && 247 front_porch /= (ondisk->cd_secsize / lp->d_secsize); [all...] |
/src/sys/arch/hppa/hppa/ |
disksubr.c | 103 bp->b_bcount = lp->d_secsize; 140 lp->d_secsize - sizeof(*dlp))); 165 if (lp->d_secsize == 0) 166 lp->d_secsize = DEV_BSIZE; 183 bp = geteblk((int)lp->d_secsize); 212 bp->b_bcount = lp->d_secsize; 231 dbp = geteblk(lp->d_secsize); 236 dbp->b_bcount = lp->d_secsize; 285 bp = geteblk((int)lp->d_secsize); 306 bp->b_bcount = lp->d_secsize; [all...] |
/src/sys/arch/mipsco/mipsco/ |
disksubr.c | 84 bp = geteblk((int)lp->d_secsize); 88 bp->b_bcount = lp->d_secsize; 106 bp = geteblk((int)lp->d_secsize); 109 bp->b_bcount = lp->d_secsize; 125 for (i=0; i <= lp->d_secsize - sizeof(*dlp); i += sizeof(long)) { 163 bp = geteblk((int)lp->d_secsize); 167 bp->b_bcount = lp->d_secsize; 187 memset(bp->b_data, 0, lp->d_secsize); 190 bp->b_bcount = lp->d_secsize; 247 lp->d_secsize = vh->vh_dp.dp_secbytes [all...] |
/src/sys/arch/ofppc/ofppc/ |
disksubr.c | 77 * blkno = bp->b_blkno / (lp->d_secsize / DEV_BSIZE); 81 * we must multiply block numbers with (lp->d_secsize / DEV_BSIZE) 120 bp = geteblk((int)lp->d_secsize); 125 bp->b_bcount = lp->d_secsize; 259 bp = geteblk((int)lp->d_secsize); 277 bp->b_bcount = lp->d_secsize; 281 bp->b_blkno *= (lp->d_secsize / DEV_BSIZE); 321 lp->d_secsize = rbp->nbytes; 383 bp->b_bcount = lp->d_secsize; 387 bp->b_blkno *= (lp->d_secsize / DEV_BSIZE) [all...] |
/src/usr.sbin/bad144/ |
bad144.c | 167 if (dp->d_secsize > MAXSECSIZE || dp->d_secsize == 0) 169 dp->d_secsize); 292 (off_t)(dp->d_secsize * (size - dp->d_nsectors + i)), 337 if (lseek(f, (off_t)(sn * dp->d_secsize), SEEK_SET) < 0) 339 if ((size_t)read(f, (char *) bad, dp->d_secsize) == dp->d_secsize) { 449 buf = malloc((unsigned)dp->d_secsize); 454 if (lseek(f, (off_t)(dp->d_secsize * s1), SEEK_SET) < 0) 456 if ((size_t)(n = read(f, buf, dp->d_secsize)) == dp->d_secsize [all...] |
/src/sys/arch/ofppc/stand/ofwboot/ |
rdb.c | 164 lp->d_secsize = rbp->nbytes; 193 if (strategy(devp, F_READ, blk * (lp->d_secsize / DEV_BSIZE), 194 lp->d_secsize, buf, &read) 195 || read != lp->d_secsize) 234 * ((pbp->e.sizeblock << 2) / lp->d_secsize); 244 * ((pbp->e.sizeblock << 2) / lp->d_secsize); 247 * ((pbp->e.sizeblock << 2) / lp->d_secsize);
|
/src/sys/arch/pmax/pmax/ |
disksubr.c | 75 bp = geteblk((int)lp->d_secsize); 78 bp->b_bcount = lp->d_secsize; 128 bp = geteblk((int)lp->d_secsize); 131 bp->b_bcount = lp->d_secsize; 214 bp = geteblk((int)lp->d_secsize); 217 bp->b_bcount = lp->d_secsize; 224 ((char *)bp->b_data + lp->d_secsize - sizeof(*dlp));
|
/src/sys/arch/amiga/amiga/ |
disksubr.c | 80 * blkno = bp->b_blkno / (lp->d_secsize / DEV_BSIZE); 84 * we must multiply block numbers with (lp->d_secsize / DEV_BSIZE) 168 bp = geteblk((int)lp->d_secsize); 187 bp->b_bcount = lp->d_secsize; 191 bp->b_blkno *= (lp->d_secsize / DEV_BSIZE); 242 if (lp->d_secsize != rbp->nbytes) { 243 lp->d_secsize = rbp->nbytes; 244 allocbuf(bp, (int)lp->d_secsize, 1); 308 bp->b_bcount = lp->d_secsize; 312 bp->b_blkno *= (lp->d_secsize / DEV_BSIZE) [all...] |
/src/sys/arch/macppc/macppc/ |
disksubr.c | 333 bp = geteblk((int)lp->d_secsize * NUM_PARTS); 338 bp->b_bcount = lp->d_secsize * NUM_PARTS; 409 size = roundup((NUM_PARTS + 1) << DEV_BSHIFT, lp->d_secsize); 478 bp = geteblk((int)lp->d_secsize); 483 bp->b_bcount = lp->d_secsize; 576 bp = geteblk((int)lp->d_secsize); 581 bp->b_bcount = lp->d_secsize; 583 bp->b_cylinder = bp->b_blkno / (lp->d_secsize / DEV_BSIZE) / lp->d_secpercyl; 591 dlp <= (struct disklabel *)((char *)bp->b_data + lp->d_secsize - 634 bp = geteblk((int)lp->d_secsize); [all...] |
/src/sys/arch/sh3/sh3/ |
disksubr.c | 85 SW32(d_secsize); 175 SW32(d_secsize); 317 if (lp->d_secsize == 0) 318 lp->d_secsize = DEV_BSIZE; 340 bp = geteblk((int)lp->d_secsize); 352 bp->b_bcount = lp->d_secsize; 421 bp->b_bcount = lp->d_secsize; 432 dlp <= (struct disklabel *)((char *)bp->b_data + lp->d_secsize - 500 if (lp->d_secsize > DEV_BSIZE) 501 bp->b_blkno *= lp->d_secsize / DEV_BSIZE [all...] |