/illumos-gate/usr/src/cmd/diskscan/ |
H A D | diskscan.c | 180 uint_t sector_size; local 183 sector_size = mediainfo.dki_lbsize; 185 sector_size = NBPSCTR; 187 trksiz = sector_size * dkg.dkg_nsect; 199 if (mallopt(M_GRAIN, sector_size)) { 203 if ((verbuf = malloc(sector_size * dkg.dkg_nsect)) == 211 if ((verbuf = malloc(sector_size + sector_size * dkg.dkg_nsect)) 216 verbuf = (char *)((((unsigned long)verbuf + sector_size)) & 217 (-sector_size)); [all...] |
/illumos-gate/usr/src/lib/libsmedia/plugins/floppy/common/ |
H A D | f_generic.c | 222 int32_t sector_size; local 254 sector_size = fdchar.fdc_sec_size; 256 if ((!r_p->size) || (r_p->size % sector_size)) { 276 fdraw.fdr_cmd[5] = (sector_size == 512) ? 2 : 3; 296 int32_t sector_size; local 327 sector_size = fdchar.fdc_sec_size; 329 if ((!r_p->size) || (r_p->size % sector_size)) { 349 fdraw.fdr_cmd[5] = (sector_size == 512) ? 2 : 3;
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | bios.c | 169 geometry->sector_size = 2048; 181 geometry->sector_size = SECTOR_SIZE; 203 geometry->sector_size = 2048; 348 geometry->sector_size = SECTOR_SIZE; 375 geometry->sector_size = SECTOR_SIZE;
|
H A D | disk_io.c | 162 int sector_size_bits = log2 (buf_geom.sector_size); 186 sector_size_bits = log2 (buf_geom.sector_size); 189 slen = ((byte_offset + byte_len + buf_geom.sector_size - 1) 258 (char *) BUFFERADDR + buf_geom.sector_size, 259 buf_geom.sector_size); 279 int length = buf_geom.sector_size - byte_offset; 286 while (length > buf_geom.sector_size) 288 (*disk_read_func) (sector_num++, 0, buf_geom.sector_size); 289 length -= buf_geom.sector_size;
|
H A D | fsys_iso9660.c | 73 unsigned short sector_size_lg2 = log2(buf_geom.sector_size); 87 byte_offset &= (buf_geom.sector_size - 1);
|
H A D | shared.h | 706 unsigned long sector_size; member in struct:geometry
|
/illumos-gate/usr/src/boot/sys/boot/i386/common/ |
H A D | edd.h | 62 uint16_t sector_size; member in struct:edd_params
|
/illumos-gate/usr/src/cmd/smserverd/ |
H A D | smediad.c | 335 uint32_t sector_size; local 356 sector_size = 512; 358 sector_size = ntohl(rc_data[1]); 361 sector_size, sector_size); 362 return (sector_size); 1579 int32_t num_sectors, sector_size; local 1588 sector_size = get_sector_size(door_dp->dd_fd); 1589 door_dp->dd_sector_size = sector_size; 1590 } else sector_size 1640 int32_t num_sectors, sector_size; local 1828 int32_t sector_size; local [all...] |
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlge/ |
H A D | qlge_flash.c | 225 uint32_t sector_size, addr_src, addr_desc; local 232 sector_size = qlge->fdesc.block_size; 243 temp = kmem_zalloc(sector_size, KM_SLEEP); 261 ("%s(%d) sector_size 0x%x, sector read addr %x\n", 262 __func__, qlge->instance, sector_size, num * sector_size)); 264 rval = qlge_dump_fcode(qlge, (uint8_t *)temp, sector_size, 265 num * sector_size); 267 start_byte = num * sector_size; 268 end_byte = start_byte + sector_size [all...] |
/illumos-gate/usr/src/grub/grub-0.97/lib/ |
H A D | device.c | 153 geom->sector_size = SECTOR_SIZE; 181 unsigned int sector_size; local 185 if(ioctl (fd, DIOCGSECTORSIZE, §or_size) != 0) 186 sector_size = 512; 191 geom->total_sectors = media_size / sector_size;
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | vdsk_common.h | 264 uint16_t sector_size; /* sector size in bytes */ member in struct:vd_vtoc 394 (vtoc)->v_sectorsz = (vd_vtoc)->sector_size; \ 435 (vd_vtoc)->sector_size = (vtoc)->v_sectorsz; \
|
/illumos-gate/usr/src/cmd/fwflash/plugins/transport/common/ |
H A D | hermon.c | 661 int sector_size; local 679 sector_size = handle->sector_sz; 688 for (i = 0; i < size; i += sector_size) { 690 cnx_cont2phys(log2_chunk_sz, i, type) / sector_size;
|
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/ |
H A D | biosdisk.c | 272 bd->bd_sectorsize = params.sector_size;
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | fdc.c | 121 static xlate_tbl_t sector_size[] = { variable 1154 encode(sector_size, fjp->fj_chars->fdc_sec_size, 1268 encode(sector_size, fjp->fj_chars->fdc_sec_size,
|
/illumos-gate/usr/src/uts/common/io/e1000api/ |
H A D | e1000_ich8lan.c | 4710 s32 j, iteration, sector_size; local 4731 sector_size = ICH_FLASH_SEG_SIZE_256; 4735 sector_size = ICH_FLASH_SEG_SIZE_4K; 4739 sector_size = ICH_FLASH_SEG_SIZE_8K; 4743 sector_size = ICH_FLASH_SEG_SIZE_64K; 4787 flash_linear_addr += (j * sector_size);
|
/illumos-gate/usr/src/uts/common/io/scsi/targets/ |
H A D | sd.c | 4954 int sector_size; local 5046 sector_size = BE_16(page3p->data_bytes_sect); 5051 if (sector_size == 0) { 5052 sector_size = un->un_sys_blocksize; 5054 sector_size &= ~(un->un_sys_blocksize - 1); 5064 page3p->mode_page.code, nsect, sector_size); 5149 if (sector_size != 0) { 5151 pgeom_p->g_secsize = (unsigned short)sector_size; 5169 nsect, sector_size, intrlv);
|