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

1 2 3 4 5 6

  /src/sbin/fsck_msdos/
boot.c 53 u_int secsize; local in function:readboot
55 secsize = 0;
56 err = ioctl(dosfs, DIOCGSECTORSIZE, &secsize);
57 if (err != 0 || secsize == 0)
58 secsize = DOSBOOTBLOCKSIZE;
60 if (secsize < DOSBOOTBLOCKSIZE)
61 pfatal("Invalid sector size %u\n", secsize);
63 block = calloc(1, secsize);
67 if ((size_t)read(dosfs, block, secsize) != secsize) {
    [all...]
boot.c 53 u_int secsize; local in function:readboot
55 secsize = 0;
56 err = ioctl(dosfs, DIOCGSECTORSIZE, &secsize);
57 if (err != 0 || secsize == 0)
58 secsize = DOSBOOTBLOCKSIZE;
60 if (secsize < DOSBOOTBLOCKSIZE)
61 pfatal("Invalid sector size %u\n", secsize);
63 block = calloc(1, secsize);
67 if ((size_t)read(dosfs, block, secsize) != secsize) {
    [all...]
  /src/sys/dev/dm/
dm_target_linear.c 188 unsigned int secsize; local in function:dm_target_linear_secsize
190 secsize = 0;
194 secsize = tlc->pdev->pdev_secsize;
196 *secsizep = secsize;
dm_target_linear.c 188 unsigned int secsize; local in function:dm_target_linear_secsize
190 secsize = 0;
194 secsize = tlc->pdev->pdev_secsize;
196 *secsizep = secsize;
dm_table.c 241 unsigned int secsize, tsecsize; local in function:dm_table_disksize
255 secsize = 0;
258 if (table_en->target->secsize)
259 table_en->target->secsize(table_en, &tsecsize);
262 if (secsize < tsecsize)
263 secsize = tsecsize;
267 *numsecp = secsize > 0 ? dbtob(length) / secsize : 0;
269 *secsizep = secsize;
dm_table.c 241 unsigned int secsize, tsecsize; local in function:dm_table_disksize
255 secsize = 0;
258 if (table_en->target->secsize)
259 table_en->target->secsize(table_en, &tsecsize);
262 if (secsize < tsecsize)
263 secsize = tsecsize;
267 *numsecp = secsize > 0 ? dbtob(length) / secsize : 0;
269 *secsizep = secsize;
  /src/sys/kern/
subr_disk_open.c 98 unsigned int secsize; local in function:getdisksize
110 secsize = DEV_BSIZE << pdk->dk_blkshift;
119 secsize = pi.pi_secsize;
125 (secsize == 0 || secsize > MAXBSIZE || !powerof2(secsize) ||
129 " (secsize = %u, numsec = %" PRIu64 ")\n",
132 secsize, numsec);
137 *secsizep = secsize;
subr_disk_open.c 98 unsigned int secsize; local in function:getdisksize
110 secsize = DEV_BSIZE << pdk->dk_blkshift;
119 secsize = pi.pi_secsize;
125 (secsize == 0 || secsize > MAXBSIZE || !powerof2(secsize) ||
129 " (secsize = %u, numsec = %" PRIu64 ")\n",
132 secsize, numsec);
137 *secsizep = secsize;
  /src/usr.sbin/installboot/arch/
hppa.c 137 unsigned int secsize, npart; local in function:hppa_setboot
169 secsize = be32toh(label.l.d_secsize);
173 secsize == 0 || secsize & (secsize - 1) ||
184 ((unsigned)2*1024*1024*1024) / secsize) {
hppa.c 137 unsigned int secsize, npart; local in function:hppa_setboot
169 secsize = be32toh(label.l.d_secsize);
173 secsize == 0 || secsize & (secsize - 1) ||
184 ((unsigned)2*1024*1024*1024) / secsize) {
hp300.c 92 unsigned int secsize = HP300_SECTSIZE; local in function:hp300_setboot
196 secsize = be32toh(label->d_secsize);
199 secsize == 0 || !powerof2(secsize) ||
214 boot_size = be32toh(boot->p_size) * (uint64_t)secsize;
215 boot_offset = be32toh(boot->p_offset) * (uint64_t)secsize;
285 size = roundup(params->s1stat.st_size, secsize) - offset;
hp300.c 92 unsigned int secsize = HP300_SECTSIZE; local in function:hp300_setboot
196 secsize = be32toh(label->d_secsize);
199 secsize == 0 || !powerof2(secsize) ||
214 boot_size = be32toh(boot->p_size) * (uint64_t)secsize;
215 boot_offset = be32toh(boot->p_offset) * (uint64_t)secsize;
285 size = roundup(params->s1stat.st_size, secsize) - offset;
  /src/usr.sbin/makefs/msdos/
msdosfs_vfsops.c 97 unsigned secsize = 512; local in function:msdosfs_mount
100 if ((error = bread(devvp, 0, secsize, 0, &bp)) != 0)
msdosfs_vfsops.c 97 unsigned secsize = 512; local in function:msdosfs_mount
100 if ((error = bread(devvp, 0, secsize, 0, &bp)) != 0)
  /src/sbin/resize_lfs/
resize_lfs.c 68 off_t secsize, sboff; local in function:main
115 secsize = geo.dg_secsize;
140 newnsegs = (newsize * secsize) / lfs_sb_getssize(fs);
resize_lfs.c 68 off_t secsize, sboff; local in function:main
115 secsize = geo.dg_secsize;
140 newnsegs = (newsize * secsize) / lfs_sb_getssize(fs);
  /src/sys/dev/dkwedge/
dkwedge_mbr.c 55 uint32_t secsize; member in struct:mbr_args
91 error = dkwedge_read(a->pdk, a->vp, off, a->bp->b_data, a->secsize);
95 "error = %d\n", a->pdk->dk_name, off, a->secsize, a->error);
180 a.secsize = DEV_BSIZE << pdk->dk_blkshift;
182 a.bp = geteblk(a.secsize);
dkwedge_mbr.c 55 uint32_t secsize; member in struct:mbr_args
91 error = dkwedge_read(a->pdk, a->vp, off, a->bp->b_data, a->secsize);
95 "error = %d\n", a->pdk->dk_name, off, a->secsize, a->error);
180 a.secsize = DEV_BSIZE << pdk->dk_blkshift;
182 a.bp = geteblk(a.secsize);
dkwedge_rdb.c 92 #define ADJUST_NR(x) ((x) * (secsize / DEV_BSIZE))
109 uint32_t blk_per_cyl, bufsize, newsecsize, nextb, secsize, tabsize; local in function:dkwedge_discover_rdb
114 secsize = DEV_BSIZE << pdk->dk_blkshift;
116 secsize);
149 if (secsize != newsecsize) {
150 aprint_verbose("secsize changed from %u to %u\n",
151 secsize, newsecsize);
152 secsize = newsecsize;
154 sizeof(struct rdblock)), secsize);
253 * ((be32toh(pbp->e.sizeblock) << 2) / secsize);
    [all...]
dkwedge_rdb.c 92 #define ADJUST_NR(x) ((x) * (secsize / DEV_BSIZE))
109 uint32_t blk_per_cyl, bufsize, newsecsize, nextb, secsize, tabsize; local in function:dkwedge_discover_rdb
114 secsize = DEV_BSIZE << pdk->dk_blkshift;
116 secsize);
149 if (secsize != newsecsize) {
150 aprint_verbose("secsize changed from %u to %u\n",
151 secsize, newsecsize);
152 secsize = newsecsize;
154 sizeof(struct rdblock)), secsize);
253 * ((be32toh(pbp->e.sizeblock) << 2) / secsize);
    [all...]
dkwedge_gpt.c 119 uint32_t secsize; local in function:dkwedge_discover_gpt
130 secsize = DEV_BSIZE << pdk->dk_blkshift;
131 bp = geteblk(secsize);
141 bp->b_data, secsize);
157 if (le32toh(hdr->hdr_size) > secsize) {
207 sz = roundup(entries * entsz, secsize);
  /src/sys/stand/efiboot/
efiblock.h 54 uint32_t secsize; member in struct:efi_block_part_disklabel
efiblock.h 54 uint32_t secsize; member in struct:efi_block_part_disklabel
  /src/tests/dev/cgd/
t_cgd_adiantum.c 56 unsigned secsize; member in struct:__anon565098fe0108
63 .secsize = 512,
135 .secsize = 512,
207 .secsize = 512,
351 RL(nwrit = rump_sys_pwrite(cgdfd, C[i].ptxt, C[i].secsize,
352 C[i].blkno * C[i].secsize));
354 if ((size_t)nwrit != C[i].secsize) {
356 nwrit, C[i].secsize);
361 RL(nread = pread(dkfd, buf, C[i].secsize,
362 C[i].blkno * C[i].secsize));
    [all...]
t_cgd_adiantum.c 56 unsigned secsize; member in struct:__anon565098fe0108
63 .secsize = 512,
135 .secsize = 512,
207 .secsize = 512,
351 RL(nwrit = rump_sys_pwrite(cgdfd, C[i].ptxt, C[i].secsize,
352 C[i].blkno * C[i].secsize));
354 if ((size_t)nwrit != C[i].secsize) {
356 nwrit, C[i].secsize);
361 RL(nread = pread(dkfd, buf, C[i].secsize,
362 C[i].blkno * C[i].secsize));
    [all...]

Completed in 32 milliseconds

1 2 3 4 5 6