Home
last modified time | relevance | path

Searched refs:sector_size (Results 1 – 25 of 39) sorted by relevance

12

/freebsd/sys/dev/isci/scil/
H A Dsati_read_capacity.c206 U32 sector_size = 0; in sati_read_capacity_10_translate_data() local
214 &sector_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 &sector_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 Dsati_mode_sense_10.c162 U32 sector_size = 0; in sati_mode_sense_10_build_llba_block_descriptor() local
167 identify, &lba_low, &lba_high, &sector_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 Dsati_mode_sense.c359 U32 sector_size = 0; in sati_mode_sense_build_std_block_descriptor() local
364 identify, &lba_high, &lba_low, &sector_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 Dsati_util.c309 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 Dgbde.c
H A Dtemplate.txt
/freebsd/share/examples/scsi_target/
H A Dscsi_target.c67 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 Dscsi_cmds.c424 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 Dscsi_target.h121 extern u_int sector_size;
/freebsd/usr.sbin/camdd/
H A Dcamdd.c313 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 Dzpool_vdev_os.c101 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 Dzpool_vdev_os.c91 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 Dblkfront.c162 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", &sector_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 Dblock.h203 uint16_t vdisk_info, unsigned long sector_size,
/freebsd/sys/dev/xen/blkback/
H A Dblkback.c657 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 Dhpt27xx_osm_bsd.c604 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 Dedd.h60 uint16_t sector_size; member
/freebsd/sys/dev/mmc/
H A Dmmcvar.h87 MMC_ACCESSOR(sector_size, SECTOR_SIZE, int)
/freebsd/sys/dev/hptnr/
H A Dhptnr_osm_bsd.c885 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 Dzpool_util.h135 boolean_t check_sector_size_database(char *path, int *sector_size);
/freebsd/stand/i386/libi386/
H A Dbiosdisk.c580 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 Dmd_promise.c127 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 Dmd_nvidia.c58 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 Drdwr_efi.c162 int sector_size; in read_disk_info() local
165 if (ioctl(fd, BLKSSZGET, &sector_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 Dcd9660_eltorito.c585 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()

12