/freebsd/sys/dev/isci/scil/ |
H A D | sati_read_capacity.c | 206 U32 sector_size = 0; in sati_read_capacity_10_translate_data() local 214 §or_size in sati_read_capacity_10_translate_data() 242 sati_set_data_byte(sequence, scsi_io, 4, (U8)((sector_size >> 24) & 0xFF)); in sati_read_capacity_10_translate_data() 243 sati_set_data_byte(sequence, scsi_io, 5, (U8)((sector_size >> 16) & 0xFF)); in sati_read_capacity_10_translate_data() 244 sati_set_data_byte(sequence, scsi_io, 6, (U8)((sector_size >> 8) & 0xFF)); in sati_read_capacity_10_translate_data() 245 sati_set_data_byte(sequence, scsi_io, 7, (U8)(sector_size & 0xFF)); in sati_read_capacity_10_translate_data() 264 U32 sector_size = 0; in sati_read_capacity_16_translate_data() local 282 §or_size in sati_read_capacity_16_translate_data() 306 sati_set_data_byte(sequence, scsi_io, 8, (U8)((sector_size >> 24) & 0xFF)); in sati_read_capacity_16_translate_data() 307 sati_set_data_byte(sequence, scsi_io, 9, (U8)((sector_size >> 16) & 0xFF)); in sati_read_capacity_16_translate_data() [all …]
|
H A D | sati_mode_sense_10.c | 162 U32 sector_size = 0; in sati_mode_sense_10_build_llba_block_descriptor() local 167 identify, &lba_low, &lba_high, §or_size in sati_mode_sense_10_build_llba_block_descriptor() 187 sati_set_data_byte(sequence,scsi_io, offset+12, (U8)((sector_size>>24) & 0xFF)); in sati_mode_sense_10_build_llba_block_descriptor() 188 sati_set_data_byte(sequence,scsi_io, offset+13, (U8)((sector_size>>16) & 0xFF)); in sati_mode_sense_10_build_llba_block_descriptor() 189 sati_set_data_byte(sequence,scsi_io, offset+14, (U8)((sector_size>>8) & 0xFF)); in sati_mode_sense_10_build_llba_block_descriptor() 190 sati_set_data_byte(sequence,scsi_io, offset+15, (U8)(sector_size & 0xFF)); in sati_mode_sense_10_build_llba_block_descriptor()
|
H A D | sati_mode_sense.c | 359 U32 sector_size = 0; in sati_mode_sense_build_std_block_descriptor() local 364 identify, &lba_high, &lba_low, §or_size in sati_mode_sense_build_std_block_descriptor() 377 sati_set_data_byte(sequence,scsi_io, offset+5, (U8)((sector_size>>16) & 0xFF)); in sati_mode_sense_build_std_block_descriptor() 378 sati_set_data_byte(sequence,scsi_io, offset+6, (U8)((sector_size>>8) & 0xFF)); in sati_mode_sense_build_std_block_descriptor() 379 sati_set_data_byte(sequence,scsi_io, offset+7, (U8)(sector_size & 0xFF)); in sati_mode_sense_build_std_block_descriptor()
|
H A D | sati_util.c | 309 U32 * sector_size in sati_ata_identify_device_get_sector_info() argument 346 *sector_size = identify->words_per_logical_sector[3] << 24; in sati_ata_identify_device_get_sector_info() 347 *sector_size |= identify->words_per_logical_sector[2] << 16; in sati_ata_identify_device_get_sector_info() 348 *sector_size |= identify->words_per_logical_sector[1] << 8; in sati_ata_identify_device_get_sector_info() 349 *sector_size |= identify->words_per_logical_sector[0]; in sati_ata_identify_device_get_sector_info() 354 *sector_size = 512; in sati_ata_identify_device_get_sector_info()
|
/freebsd/sbin/gbde/ |
H A D | gbde.c |
|
H A D | template.txt |
|
/freebsd/share/examples/scsi_target/ |
H A D | scsi_target.c | 67 u_int sector_size; variable 116 sector_size = SECTOR_SIZE; in main() 143 sector_size = atoi(optarg); in main() 144 if (sector_size < 512 || sector_size > MAX_SECTOR) in main() 247 volume_size = mediasize / sector_size; in main() 250 volume_size = st.st_size / sector_size; in main() 252 volume_size = user_size / sector_size; in main() 256 sector_size, volume_size); in main() 259 errx(1, "volume must be larger than %d", sector_size); in main() 267 aio_buf = malloc(sector_size); in main() [all …]
|
H A D | scsi_cmds.c | 424 atio->init_id, vsize, sector_size); in tcmd_rd_cap() 429 scsi_ulto4b(sector_size, srp->length); in tcmd_rd_cap() 456 atio->init_id, volume_size - 1, sector_size); in tcmd_rd_cap16() 461 scsi_ulto4b(sector_size, srp->length); in tcmd_rd_cap16() 560 a_descr->base_off = ((off_t)blkno) * sector_size; in tcmd_rdwr_decode() 561 a_descr->total_len = count * sector_size; in tcmd_rdwr_decode() 610 (ctio->dxfer_len / sector_size), in start_io() 611 c_descr->offset / sector_size); in start_io() 626 (ctio->dxfer_len / sector_size), in start_io() 627 c_descr->offset / sector_size); in start_io() [all …]
|
H A D | scsi_target.h | 121 extern u_int sector_size;
|
/freebsd/usr.sbin/camdd/ |
H A D | camdd.c | 313 uint32_t sector_size; member 448 uint32_t sector_size, uint32_t *num_sectors_used, 794 camdd_buf_sg_create(struct camdd_buf *buf, int iovec, uint32_t sector_size, in camdd_buf_sg_create() argument 813 if ((data->fill_len % sector_size) != 0) { in camdd_buf_sg_create() 814 extra_buf_len = sector_size - (data->fill_len % sector_size); in camdd_buf_sg_create() 864 sector_size) != 0) in camdd_buf_sg_create() 878 if ((tmp_ind->len % sector_size) != 0) in camdd_buf_sg_create() 904 sector_size; in camdd_buf_sg_create() 1057 dev->sector_size = 1; in camdd_probe_file() 1164 dev->sector_size = dev->blocksize; in camdd_probe_file() [all …]
|
/freebsd/sys/contrib/openzfs/cmd/zpool/os/freebsd/ |
H A D | zpool_vdev_os.c | 101 check_sector_size_database(char *path, int *sector_size) in check_sector_size_database() argument 103 (void) path, (void) sector_size; in check_sector_size_database()
|
/freebsd/sys/contrib/openzfs/cmd/zpool/os/linux/ |
H A D | zpool_vdev_os.c | 91 int sector_size; member 217 check_sector_size_database(char *path, int *sector_size) in check_sector_size_database() argument 257 *sector_size = vdev_disk_database[i].sector_size; in check_sector_size_database()
|
/freebsd/sys/dev/xen/blkfront/ |
H A D | blkfront.c | 162 unsigned int sector_size) in xbd_mksegarray() argument 170 KASSERT((segs->ds_addr & (sector_size - 1)) == 0, in xbd_mksegarray() 172 KASSERT((segs->ds_len & (sector_size - 1)) == 0, in xbd_mksegarray() 1001 int vdevice, uint16_t vdisk_info, unsigned long sector_size, in xbd_instance_create() argument 1029 sc->xbd_disk->d_sectorsize = sector_size; in xbd_instance_create() 1235 unsigned long sector_size, phys_sector_size; in xbd_connect() local 1278 "sector-size", "%lu", §or_size, in xbd_connect() 1286 if ((sectors == 0) || (sector_size == 0)) { in xbd_connect() 1291 sectors, sector_size); in xbd_connect() 1297 if (err || phys_sector_size <= sector_size) in xbd_connect() [all …]
|
H A D | block.h | 203 uint16_t vdisk_info, unsigned long sector_size,
|
/freebsd/sys/dev/xen/blkback/ |
H A D | blkback.c | 657 u_int sector_size; member 1630 ((xbb->sector_size >> 9) - 1)) != 0) { in xbb_dispatch_io() 1635 xbb->sector_size); in xbb_dispatch_io() 2030 if ((bio->bio_length & (xbb->sector_size - 1)) != 0) { in xbb_dispatch_dev() 2046 if ((bio_offset & (xbb->sector_size - 1)) != 0){ in xbb_dispatch_dev() 2075 if ((bio->bio_length & (xbb->sector_size - 1)) != 0) { in xbb_dispatch_dev() 2401 (caddr_t)&xbb->sector_size, FREAD, in xbb_open_dev() 2478 xbb->sector_size = vattr.va_blocksize; in xbb_open_file() 2480 xbb->sector_size = 512; in xbb_open_file() 2486 if ((xbb->media_size % xbb->sector_size) != 0) { in xbb_open_file() [all …]
|
/freebsd/sys/dev/hpt27xx/ |
H A D | hpt27xx_osm_bsd.c | 604 HPT_U32 sector_size = 0; in hpt_scsi_io() local 610 sector_size = vd->u.raw.logical_sector_size; in hpt_scsi_io() 613 switch (sector_size) { in hpt_scsi_io() 654 HPT_U32 sector_size = 0; in hpt_scsi_io() local 660 sector_size = vd->u.raw.logical_sector_size; in hpt_scsi_io() 663 switch (sector_size) { in hpt_scsi_io() 702 HPT_U32 sector_size = 0; in hpt_scsi_io() local 746 sector_size = vd->u.raw.logical_sector_size; in hpt_scsi_io() 749 switch (sector_size) { in hpt_scsi_io()
|
/freebsd/stand/i386/common/ |
H A D | edd.h | 60 uint16_t sector_size; member
|
/freebsd/sys/dev/mmc/ |
H A D | mmcvar.h | 87 MMC_ACCESSOR(sector_size, SECTOR_SIZE, int)
|
/freebsd/sys/dev/hptnr/ |
H A D | hptnr_osm_bsd.c | 885 HPT_U32 sector_size = 0; in hpt_scsi_io() local 891 sector_size = vd->u.raw.logical_sector_size; in hpt_scsi_io() 894 switch (sector_size) { in hpt_scsi_io() 936 HPT_U32 sector_size = 0; in hpt_scsi_io() local 942 sector_size = vd->u.raw.logical_sector_size; in hpt_scsi_io() 945 switch (sector_size) { in hpt_scsi_io() 991 HPT_U32 sector_size = 0; in hpt_scsi_io() local 1035 sector_size = vd->u.raw.logical_sector_size; in hpt_scsi_io() 1038 switch (sector_size) { in hpt_scsi_io()
|
/freebsd/sys/contrib/openzfs/cmd/zpool/ |
H A D | zpool_util.h | 135 boolean_t check_sector_size_database(char *path, int *sector_size);
|
/freebsd/stand/i386/libi386/ |
H A D | biosdisk.c | 580 if (params->sector_size >= 512 && in bd_get_diskinfo_ext() 581 params->sector_size <= 16384 && in bd_get_diskinfo_ext() 582 (params->sector_size % BIOSDISK_SECSIZE) == 0) in bd_get_diskinfo_ext() 583 bd->bd_sectorsize = params->sector_size; in bd_get_diskinfo_ext()
|
/freebsd/sys/geom/raid/ |
H A D | md_promise.c | 127 uint8_t sector_size; member 230 printf("sector_size %u\n", meta->sector_size); in g_raid_md_promise_print() 414 if (meta->sector_size < 1 || meta->sector_size > 8) in promise_meta_read() 415 meta->sector_size = 1; in promise_meta_read() 934 vol->v_sectorsize = 512 * meta->sector_size; in g_raid_md_promise_start() 1772 meta->sector_size = vol->v_sectorsize / 512; in g_raid_md_write_promise()
|
H A D | md_nvidia.c | 58 uint32_t sector_size; member 167 printf("sector_size %u\n", meta->sector_size); in g_raid_md_nvidia_print() 553 meta->array_width * pd->pd_meta->sector_size; in g_raid_md_nvidia_start_disk() 559 meta->array_width * pd->pd_meta->sector_size; in g_raid_md_nvidia_start_disk() 1418 meta->sector_size = vol->v_sectorsize; in g_raid_md_write_nvidia()
|
/freebsd/sys/contrib/openzfs/lib/libefi/ |
H A D | rdwr_efi.c | 162 int sector_size; in read_disk_info() local 165 if (ioctl(fd, BLKSSZGET, §or_size) < 0) in read_disk_info() 171 *lbsize = (uint_t)sector_size; in read_disk_info() 172 *capacity = (diskaddr_t)(capacity_size / sector_size); in read_disk_info()
|
/freebsd/usr.sbin/makefs/cd9660/ |
H A D | cd9660_eltorito.c | 585 off_t sector_start, off_t nsectors, off_t sector_size, in cd9660_write_apm_partition_entry() argument 594 if (fseeko(fd, (off_t)(idx + 1) * sector_size, SEEK_SET) == -1) in cd9660_write_apm_partition_entry()
|