Lines Matching refs:bsp
107 static void swap_pack_grabsebpb(bpb_t *wbpb, struct _boot_sector *bsp);
108 static void swap_pack_bpb32cpy(struct _boot_sector32 *bsp, bpb_t *wbpb);
109 static void swap_pack_sebpbcpy(struct _boot_sector *bsp, bpb_t *wbpb);
110 static void swap_pack_grabbpb(bpb_t *wbpb, struct _boot_sector *bsp);
111 static void swap_pack_bpbcpy(struct _boot_sector *bsp, bpb_t *wbpb);
129 static void write_fat32_bootstuff(int fd, boot_sector_t *bsp,
143 static void write_bootsects(int fd, boot_sector_t *bsp, bpb_t *wbpb,
1625 swap_pack_bpbcpy(struct _boot_sector *bsp, bpb_t *wbpb)
1629 fillp = (uchar_t *)&(bsp->bs_filler[ORIG_BPB_START_INDEX]);
1655 swap_pack_bpb32cpy(struct _boot_sector32 *bsp, bpb_t *wbpb)
1660 fillp = (uchar_t *)&(bsp->bs_filler[ORIG_BPB_START_INDEX]);
1696 swap_pack_sebpbcpy(struct _boot_sector *bsp, bpb_t *wbpb)
1700 fillp = bsp->bs_sun_bpb;
1707 swap_pack_grabbpb(bpb_t *wbpb, struct _boot_sector *bsp)
1711 grabp = (uchar_t *)&(bsp->bs_filler[ORIG_BPB_START_INDEX]);
1753 swap_pack_grabsebpb(bpb_t *wbpb, struct _boot_sector *bsp)
1757 grabp = bsp->bs_sun_bpb;
1766 swap_pack_grab32bpb(bpb_t *wbpb, struct _boot_sector *bsp)
1770 grabp = (uchar_t *)&(bsp->bs_filler[BPB_32_START_INDEX]);
2969 write_fat32_bootstuff(int fd, boot_sector_t *bsp,
2992 if (write(fd, bsp->buf, sizeof (bsp->buf)) != BPSEC) {
3020 write_bootsects(int fd, boot_sector_t *bsp, bpb_t *wbpb,
3026 (void) memcpy(&(bsp->bs32.bs_front.bs_bpb), &(wbpb->bpb),
3028 (void) memcpy(&(bsp->bs32.bs_bpb32), &(wbpb->bpb32),
3030 (void) memcpy(&(bsp->bs32.bs_ebpb), &(wbpb->ebpb),
3033 swap_pack_bpb32cpy(&(bsp->bs32), wbpb);
3038 (void) memcpy(&(bsp->bs.bs_front.bs_bpb), &(wbpb->bpb),
3040 (void) memcpy(&(bsp->bs.bs_ebpb), &(wbpb->ebpb),
3043 swap_pack_bpbcpy(&(bsp->bs), wbpb);
3049 (void) memcpy(&(bsp->bs.bs_sebpb), &(wbpb->sunbpb),
3052 swap_pack_sebpbcpy(&(bsp->bs), wbpb);
3058 if (!Notreally && write(fd, bsp->buf, sizeof (bsp->buf)) != BPSEC) {
3066 dump_bytes(bsp->buf, sizeof (bsp->buf));
3070 write_fat32_bootstuff(fd, bsp, fsinfop, seekto);