Searched refs:lba_t (Results 1 - 19 of 19) sorted by relevance

/freebsd-12-stable/usr.bin/mkimg/
H A Dimage.h32 typedef int64_t lba_t; typedef
34 int image_copyin(lba_t blk, int fd, uint64_t *sizep);
37 int image_copyout_region(int fd, lba_t blk, lba_t size);
39 int image_data(lba_t blk, lba_t size);
40 lba_t image_get_size(void);
42 int image_set_size(lba_t blk);
43 int image_write(lba_t blk, void *buf, ssize_t len);
H A Dmkimg.h46 lba_t block; /* Block-offset of partition in image. */
47 lba_t size; /* Size in blocks of partition. */
64 static inline lba_t
65 round_block(lba_t n)
67 lba_t b = blksz / secsz;
71 static inline lba_t
72 round_cylinder(lba_t n)
79 static inline lba_t
80 round_track(lba_t n)
92 void mkimg_chs(lba_t, u_in
[all...]
H A Dformat.h36 int (*resize)(lba_t);
49 int format_resize(lba_t);
H A Dscheme.h67 lba_t (*metadata)(u_int, lba_t);
73 int (*write)(lba_t, void *);
93 lba_t scheme_metadata(u_int, lba_t);
94 int scheme_write(lba_t);
H A Draw.c37 raw_resize(lba_t imgsz __unused)
H A Debr.c49 static lba_t
50 ebr_metadata(u_int where, lba_t blk)
58 ebr_chs(u_char *cylp, u_char *hdp, u_char *secp, lba_t lba)
69 ebr_write(lba_t imgsz __unused, void *bootcode __unused)
74 lba_t block, size;
H A Dmbr.c53 static lba_t
54 mbr_metadata(u_int where, lba_t blk)
62 mbr_chs(u_char *cylp, u_char *hdp, u_char *secp, lba_t lba)
73 mbr_write(lba_t imgsz __unused, void *bootcode)
78 lba_t size;
H A Dvtoc8.c51 static lba_t
52 vtoc8_metadata(u_int where, lba_t blk)
60 vtoc8_write(lba_t imgsz, void *bootcode __unused)
68 imgsz = (lba_t)ncyls * nheads * nsecs;
H A Dimage.c63 lba_t ch_block; /* Block address in image. */
87 static lba_t image_size;
134 image_chunk_find(lba_t blk)
143 (lba_t)(ch->ch_block + (ch->ch_size / secsz)) > blk) {
170 image_chunk_memory(struct chunk *ch, lba_t blk)
214 image_chunk_skipto(lba_t to)
217 lba_t from;
251 image_chunk_append(lba_t blk, size_t sz, off_t ofs, int fd)
258 blk == (lba_t)(ch->ch_block + (ch->ch_size / secsz)) &&
282 image_chunk_copyin(lba_t bl
[all...]
H A Dapm.c53 static lba_t
54 apm_metadata(u_int where, lba_t blk)
62 apm_write(lba_t imgsz, void *bootcode __unused)
H A Dscheme.c188 lba_t
189 scheme_metadata(u_int where, lba_t start)
196 scheme_write(lba_t end)
H A Dformat.c56 format_resize(lba_t end)
H A Dbsd.c51 static lba_t
52 bsd_metadata(u_int where, lba_t blk)
65 bsd_write(lba_t imgsz, void *bootcode)
H A Dqcow.c91 qcow_resize(lba_t imgsz, u_int version)
116 qcow1_resize(lba_t imgsz)
123 qcow2_resize(lba_t imgsz)
138 lba_t blk, blkofs, blk_imgsz;
276 blkofs = (lba_t)l1idx * blk_clstrsz * (clstrsz >> 3);
278 blk = blkofs + (lba_t)l2idx * blk_clstrsz;
H A Dvhd.c117 lba_t imgsz;
265 vhd_dyn_resize(lba_t imgsz)
279 lba_t blk, blkcnt, nblks;
378 vhd_fix_resize(lba_t imgsz)
H A Dgpt.c136 static lba_t
137 gpt_metadata(u_int where, lba_t blk)
148 gpt_write_pmbr(lba_t blks, void *bootcode)
222 gpt_write(lba_t imgsz, void *bootcode)
H A Dvmdk.c91 vmdk_resize(lba_t imgsz)
115 lba_t blkofs, blkcnt;
H A Dmkimg.c365 mkimg_chs(lba_t lba, u_int maxcyl, u_int *cylp, u_int *hdp, u_int *secp)
386 capacity_resize(lba_t end)
388 lba_t min_capsz, max_capsz;
405 lba_t start, end, start2, end2;
440 lba_t block, blkoffset;
H A Dvhdx.c211 vhdx_resize(lba_t imgsz)

Completed in 74 milliseconds