Searched refs:lba_t (Results 1 - 19 of 19) sorted by relevance
/freebsd-13-stable/usr.bin/mkimg/ |
H A D | image.h | 34 typedef int64_t lba_t; typedef 36 int image_copyin(lba_t blk, int fd, uint64_t *sizep); 39 int image_copyout_region(int fd, lba_t blk, lba_t size); 41 int image_data(lba_t blk, lba_t size); 42 lba_t image_get_size(void); 44 int image_set_size(lba_t blk); 45 int image_write(lba_t blk, void *buf, ssize_t len);
|
H A D | mkimg.h | 46 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 D | format.h | 36 int (*resize)(lba_t); 49 int format_resize(lba_t);
|
H A D | scheme.h | 67 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 D | raw.c | 37 raw_resize(lba_t imgsz __unused)
|
H A D | ebr.c | 49 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 D | mbr.c | 53 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 D | vtoc8.c | 51 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 D | image.c | 63 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 D | apm.c | 53 static lba_t 54 apm_metadata(u_int where, lba_t blk) 62 apm_write(lba_t imgsz, void *bootcode __unused)
|
H A D | scheme.c | 188 lba_t 189 scheme_metadata(u_int where, lba_t start) 196 scheme_write(lba_t end)
|
H A D | format.c | 56 format_resize(lba_t end)
|
H A D | bsd.c | 51 static lba_t 52 bsd_metadata(u_int where, lba_t blk) 65 bsd_write(lba_t imgsz, void *bootcode)
|
H A D | qcow.c | 91 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 D | vhd.c | 117 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 D | gpt.c | 138 static lba_t 139 gpt_metadata(u_int where, lba_t blk) 150 gpt_write_pmbr(lba_t blks, void *bootcode) 224 gpt_write(lba_t imgsz, void *bootcode)
|
H A D | vmdk.c | 91 vmdk_resize(lba_t imgsz) 115 lba_t blkofs, blkcnt;
|
H A D | mkimg.c | 367 mkimg_chs(lba_t lba, u_int maxcyl, u_int *cylp, u_int *hdp, u_int *secp) 388 capacity_resize(lba_t end) 390 lba_t min_capsz, max_capsz; 407 lba_t start, end, start2, end2; 442 lba_t block, blkoffset;
|
H A D | vhdx.c | 211 vhdx_resize(lba_t imgsz)
|
Completed in 297 milliseconds