/netbsd-src/external/gpl2/mkhybrid/dist/ |
H A D | mac_label.c | 37 char tmp[SECTOR_SIZE]; in gen_mac_label() 58 if (fread(tmp, 1, SECTOR_SIZE, fp) != SECTOR_SIZE) { in gen_mac_label() 100 mac_boot->size = stat_buf.st_size - SECTOR_SIZE - 2*HFS_BLOCKSZ; in gen_mac_label() 101 mac_boot->off = SECTOR_SIZE; in gen_mac_label() 105 mpm[mpc].size = ROUND_UP(mac_boot->size)/SECTOR_SIZE; in gen_mac_label() 136 block_size = have_hfs_boot ? SECTOR_SIZE : HFS_BLOCKSZ; in gen_mac_label() 143 set_732 (mac_label->sbBlkCount,last_extent*(SECTOR_SIZE/block_size)); in gen_mac_label() 166 set_732 (mac_label->sbBlkCount,last_extent*(SECTOR_SIZE/block_size)); in gen_mac_label() 167 set_732 (mac_label->ddBlock,(mpm[i].start)*(SECTOR_SIZE/block_size)); in gen_mac_label() 170 set_732 (mac_part->pmPyPartStart,(mpm[i].start)*(SECTOR_SIZE/block_size)); in gen_mac_label() [all …]
|
H A D | write.c | 212 dir_size = (dpnt->size + (SECTOR_SIZE - 1)) >> 11; in FDECL1() 245 char buffer[SECTOR_SIZE * NSECT]; in FDECL4() 267 use = (remain > SECTOR_SIZE * NSECT - 1 ? NSECT*SECTOR_SIZE : remain); in FDECL4() 276 last_extent_written += use/SECTOR_SIZE; in FDECL4() 278 if((last_extent_written % 1000) < use/SECTOR_SIZE) in FDECL4() 284 (last_extent_written % 5000) < use/SECTOR_SIZE) in FDECL4() 311 last_extent_written += ROUND_UP(dwpnt->size) / SECTOR_SIZE; in FDECL1() 336 char blk[SECTOR_SIZE]; in FDECL1() 340 xfwrite(blk, 1, SECTOR_SIZE, outfile); in FDECL1() 824 total_size = (dpnt->size + (SECTOR_SIZE - 1)) & ~(SECTOR_SIZE - 1); in FDECL2() [all …]
|
H A D | multi.c | 159 if (lseek(f, (off_t)startsecno * SECTOR_SIZE, 0) == (off_t)-1) { 163 return (read(f, buffer, sectorcount * SECTOR_SIZE)); 200 unsigned char sector[SECTOR_SIZE]; in FDECL3() 296 unsigned char sector[SECTOR_SIZE]; in FDECL4() 342 isonum_733((unsigned char *)mrootp->size)/SECTOR_SIZE); in FDECL2() 356 i = (i + SECTOR_SIZE - 1) & ~(SECTOR_SIZE - 1); in FDECL2() 384 i = (i + SECTOR_SIZE - 1) & ~(SECTOR_SIZE - 1); in FDECL2() 506 readsecs(tt_extent, tt_buf, tt_size/SECTOR_SIZE); in FDECL2() 731 char buffer[SECTOR_SIZE]; in FDECL1() 767 if (readsecs(file_addr/SECTOR_SIZE, &buffer, in FDECL1() [all …]
|
H A D | joliet.c | 272 dir_size = (dpnt->jsize + (SECTOR_SIZE - 1)) >> 11; in FDECL1() 520 total_size = (dpnt->jsize + (SECTOR_SIZE - 1)) & ~(SECTOR_SIZE - 1); in FDECL2() 567 if( (dir_index & (SECTOR_SIZE - 1)) + new_reclen >= SECTOR_SIZE ) in FDECL2() 569 dir_index = (dir_index + (SECTOR_SIZE - 1)) & in FDECL2() 570 ~(SECTOR_SIZE - 1); in FDECL2() 811 if ((this_dir->jsize & (SECTOR_SIZE - 1)) + jreclen >= SECTOR_SIZE) in FDECL1() 813 this_dir->jsize = (this_dir->jsize + (SECTOR_SIZE - 1)) & in FDECL1() 814 ~(SECTOR_SIZE - 1); in FDECL1()
|
H A D | volume.c | 40 drAlBlkSiz = V_ROUND_UP(drAlBlkSiz, SECTOR_SIZE); in AlcSiz() 168 lastCsize = SECTOR_SIZE; in FDECL2() 199 vlen += V_ROUND_UP(start_extent * SECTOR_SIZE, Csize); in FDECL2() 223 if (Csize != SECTOR_SIZE) { in FDECL2()
|
H A D | rock.c | 141 reclimit = SECTOR_SIZE - 8; /* Limit to one sector */ in add_CE_entry() 563 if(blocksize != SECTOR_SIZE) OK_flag = 0; 646 if(lipnt > SECTOR_SIZE) { in FDECL4() 650 pnt = (char *) e_malloc(SECTOR_SIZE); in FDECL4() 651 memset(pnt, 0, SECTOR_SIZE); in FDECL4()
|
H A D | mkisofs.h | 476 #define SECTOR_SIZE (2048) macro 477 #define ROUND_UP(X) ((X + (SECTOR_SIZE - 1)) & ~(SECTOR_SIZE - 1)) 482 #define BLK_CONV (SECTOR_SIZE/HFS_BLOCKSZ)
|
H A D | tree.c | 552 if ((this_dir->size & (SECTOR_SIZE - 1)) + new_reclen >= SECTOR_SIZE) in FDECL1() 553 this_dir->size = (this_dir->size + (SECTOR_SIZE - 1)) & in FDECL1() 554 ~(SECTOR_SIZE - 1); in FDECL1() 579 if((this_dir->ce_bytes & (SECTOR_SIZE - 1)) + nbytes >= in FDECL1() 580 SECTOR_SIZE) this_dir->ce_bytes = in FDECL1()
|
H A D | mkisofs.c | 1685 path_blocks = (path_table_size + (SECTOR_SIZE - 1)) >> 11; in FDECL2() 1688 jpath_blocks = (jpath_table_size + (SECTOR_SIZE - 1)) >> 11; in FDECL2()
|
/netbsd-src/external/gpl2/lvm2/dist/lib/device/ |
H A D | device.c | 63 uint16_t buf[SECTOR_SIZE/sizeof(uint16_t)]; in _has_partition_table() 210 if (!(buffer = dm_malloc(SECTOR_SIZE))) { 229 if (llseek(pv_handle, offset * SECTOR_SIZE, SEEK_SET) == -1) { 235 while ((bytes_read < SECTOR_SIZE) && 238 SECTOR_SIZE - bytes_read)) != -1)
|
H A D | dev-io.c | 739 if ((offset % SECTOR_SIZE) || (len % SECTOR_SIZE)) in dev_set()
|
/netbsd-src/sys/arch/atari/dev/ |
H A D | fd.c | 84 #define SECTOR_SIZE 512 /* physical sector size in bytes */ macro 524 sc->bounceb = alloc_stmem(SECTOR_SIZE, &addr); in fdopen() 603 if (bp->b_blkno < 0 || (bp->b_bcount % SECTOR_SIZE) != 0) { in fdstrategy() 610 sz = howmany(bp->b_bcount, SECTOR_SIZE); in fdstrategy() 924 memcpy(sc->bounceb, sc->io_data, SECTOR_SIZE); in fd_xfer() 1025 memcpy(sc->io_data, sc->bounceb, SECTOR_SIZE); in fdcint() 1029 sc->io_data += SECTOR_SIZE; in fdcint() 1030 sc->io_bytes -= SECTOR_SIZE; in fdcint() 1211 toff = sec * SECTOR_SIZE; in fdminphys() 1212 tsz = sc->nsectors * sc->nheads * SECTOR_SIZE; in fdminphys() [all...] |
/netbsd-src/external/gpl2/lvm2/dist/lib/format_text/ |
H A D | format-text.c | 132 if (region_ptr >= region_start + SECTOR_SIZE) in _get_prev_sector_circular() 133 return region_ptr - SECTOR_SIZE; in _get_prev_sector_circular() 135 return (region_start + region_size - SECTOR_SIZE); in _get_prev_sector_circular() 193 size = SECTOR_SIZE; in _pv_analyze_mda_raw() 228 size = SECTOR_SIZE; in _pv_analyze_mda_raw() 239 size2 += SECTOR_SIZE; in _pv_analyze_mda_raw() 242 size += SECTOR_SIZE; in _pv_analyze_mda_raw() 417 (SECTOR_SIZE - rlocn->size % SECTOR_SIZE) - in _next_rlocn_offset() 1126 current_usage = (rlocn->size + SECTOR_SIZE - UINT64_C(1)) - in vgname_from_mda() 1127 (rlocn->size + SECTOR_SIZE - UINT64_C(1)) % SECTOR_SIZE; in vgname_from_mda()
|
/netbsd-src/external/gpl2/lvm2/dist/lib/label/ |
H A D | label.h | 25 #define LABEL_SIZE SECTOR_SIZE /* Think very carefully before changing this */
|
/netbsd-src/external/gpl2/lvm2/dist/include/ |
H A D | label.h | 25 #define LABEL_SIZE SECTOR_SIZE /* Think very carefully before changing this */
|
H A D | metadata.h | 33 #define SECTOR_SIZE ( 1L << SECTOR_SHIFT ) macro
|
/netbsd-src/external/gpl2/lvm2/dist/lib/format1/ |
H A D | layout.c | 151 SECTOR_SIZE - 1) >> SECTOR_SHIFT); in calculate_extent_count()
|
/netbsd-src/external/gpl2/lvm2/dist/lib/metadata/ |
H A D | metadata.h | 33 #define SECTOR_SIZE ( 1L << SECTOR_SHIFT ) macro
|