/drivers/scsi/ |
D | sd.c | 535 unsigned int logical_block_size = sdkp->device->sector_size; in sd_config_discard() 595 if (sdkp->device->sector_size == 4096) { in scsi_setup_discard_cmnd() 631 len = sdkp->device->sector_size; in scsi_setup_discard_cmnd() 643 len = sdkp->device->sector_size; in scsi_setup_discard_cmnd() 765 (sdp->sector_size / 512); in sd_prep_fn() 773 this_count = sdp->sector_size / 512; in sd_prep_fn() 791 if (sdp->sector_size == 1024) { in sd_prep_fn() 801 if (sdp->sector_size == 2048) { in sd_prep_fn() 811 if (sdp->sector_size == 4096) { in sd_prep_fn() 829 sd_dif_prepare(rq, block, sdp->sector_size) == -EIO) in sd_prep_fn() [all …]
|
D | sd_dif.c | 63 for (i = 0 ; i < bix->data_size ; i += bix->sector_size, sdt++) { in sd_dif_type1_generate() 64 sdt->guard_tag = fn(buf, bix->sector_size); in sd_dif_type1_generate() 68 buf += bix->sector_size; in sd_dif_type1_generate() 91 for (i = 0 ; i < bix->data_size ; i += bix->sector_size, sdt++) { in sd_dif_type1_verify() 112 csum = fn(buf, bix->sector_size); in sd_dif_type1_verify() 122 buf += bix->sector_size; in sd_dif_type1_verify() 197 for (i = 0 ; i < bix->data_size ; i += bix->sector_size, sdt++) { in sd_dif_type3_generate() 198 sdt->guard_tag = fn(buf, bix->sector_size); in sd_dif_type3_generate() 202 buf += bix->sector_size; in sd_dif_type3_generate() 224 for (i = 0 ; i < bix->data_size ; i += bix->sector_size, sdt++) { in sd_dif_type3_verify() [all …]
|
D | sr.c | 335 if (cd->device->sector_size == 2048) in sr_done() 414 s_size = cd->device->sector_size; in sr_prep_fn() 496 SCpnt->transfersize = cd->device->sector_size; in sr_prep_fn() 636 if (cd->device->sector_size > 2048) in sr_release() 699 sdev->sector_size = 2048; /* A guess, just in case */ in sr_probe() 737 int sector_size; in get_sectorsize() local 757 sector_size = 2048; /* A guess, just in case */ in get_sectorsize() 773 sector_size = (buffer[4] << 24) | in get_sectorsize() 775 switch (sector_size) { in get_sectorsize() 785 sector_size = 2048; in get_sectorsize() [all …]
|
D | sr_vendor.c | 143 cd->device->sector_size = blocklength; in sr_set_blocklength() 316 if (2048 != cd->device->sector_size) { in sr_cd_check()
|
D | sr_ioctl.c | 546 if (blksize != cd->device->sector_size) { in sr_read_sector()
|
D | scsi_debug.c | 2758 module_param_named(sector_size, scsi_debug_sector_size, int, S_IRUGO); 2800 MODULE_PARM_DESC(sector_size, "logical block size in bytes (def=512)"); 3165 DRIVER_ATTR(sector_size, S_IRUGO, sdebug_sector_size_show, NULL);
|
/drivers/video/ |
D | broadsheetfb.c | 593 int addr, const char *data, int sector_size) in broadsheet_spiflash_write_sector() argument 598 for (i = 0; i < sector_size; i += BS_SPIFLASH_PAGE_SIZE) { in broadsheet_spiflash_write_sector() 612 int sector_size, int data_start_addr, in broadsheet_spiflash_rewrite_sector() argument 620 sector_buffer = kzalloc(sizeof(char)*sector_size, GFP_KERNEL); in broadsheet_spiflash_rewrite_sector() 625 start_sector_addr = (data_start_addr / sector_size) * sector_size; in broadsheet_spiflash_rewrite_sector() 649 tail_start_addr = (data_start_addr + data_len) % sector_size; in broadsheet_spiflash_rewrite_sector() 654 tail_len = sector_size - tail_start_addr; in broadsheet_spiflash_rewrite_sector() 672 sector_buffer, sector_size); in broadsheet_spiflash_rewrite_sector() 679 int sector_size; in broadsheet_write_spiflash() local 688 sector_size = 32*1024; in broadsheet_write_spiflash() [all …]
|
/drivers/char/ |
D | tile-srom.c | 68 u32 sector_size; /* Size of a sector */ member 315 return sprintf(buf, "%u\n", srom->sector_size); in sector_show() 327 __ATTR(sector_size, S_IRUGO, sector_show, NULL), 365 if (_srom_read(devhdl, &srom->sector_size, in srom_setup_minor() 366 SROM_SECTOR_SIZE_OFF, sizeof(srom->sector_size)) < 0) in srom_setup_minor()
|
/drivers/block/ |
D | swim_asm.S | 47 .equ sector_size, 512 define 197 movel #sector_size-1, %d4 /* sector size */ 240 movel #sector_size, %d0
|
D | xen-blkfront.c | 415 static int xlvbd_init_blk_queue(struct gendisk *gd, u16 sector_size) in xlvbd_init_blk_queue() argument 436 blk_queue_logical_block_size(rq, sector_size); in xlvbd_init_blk_queue() 531 u16 vdisk_info, u16 sector_size) in xlvbd_alloc_gendisk() argument 602 if (xlvbd_init_blk_queue(gd, sector_size)) { in xlvbd_alloc_gendisk() 1188 unsigned long sector_size; in blkfront_connect() local 1222 "sector-size", "%lu", §or_size, in blkfront_connect() 1269 err = xlvbd_alloc_gendisk(sectors, info, binfo, sector_size); in blkfront_connect()
|
/drivers/ata/ |
D | libata-scsi.c | 1106 sdev->sector_size = ATA_SECT_SIZE; in ata_scsi_dev_config() 1120 sdev->sector_size = ata_id_logical_sector_size(dev->id); in ata_scsi_dev_config() 1131 if (sdev->sector_size > PAGE_SIZE) in ata_scsi_dev_config() 1134 sdev->sector_size); in ata_scsi_dev_config() 1136 blk_queue_update_dma_alignment(q, sdev->sector_size - 1); in ata_scsi_dev_config() 1700 qc->nbytes = n_block * scmd->device->sector_size; in ata_scsi_rw_xlat() 2417 u32 sector_size; /* physical sector size in bytes */ in ata_scsiop_read_cap() local 2421 sector_size = ata_id_logical_sector_size(dev->id); in ata_scsiop_read_cap() 2438 rbuf[4] = sector_size >> (8 * 3); in ata_scsiop_read_cap() 2439 rbuf[5] = sector_size >> (8 * 2); in ata_scsiop_read_cap() [all …]
|
/drivers/ide/ |
D | ide-floppy.c | 316 u16 transfer_rate, sector_size, cyls, rpm; in ide_floppy_get_flexible_disk_page() local 336 sector_size = be16_to_cpup((__be16 *)&buf[8 + 6]); in ide_floppy_get_flexible_disk_page() 342 capacity = cyls * heads * sectors * sector_size; in ide_floppy_get_flexible_disk_page() 348 sectors, transfer_rate / 8, sector_size, rpm); in ide_floppy_get_flexible_disk_page()
|
/drivers/mtd/devices/ |
D | m25p80.c | 588 unsigned sector_size; member 603 .sector_size = (_sector_size), \ 611 .sector_size = (_sector_size), \ 879 flash->mtd.size = info->sector_size * info->n_sectors; in m25p_probe() 895 flash->mtd.erasesize = info->sector_size; in m25p_probe()
|
/drivers/target/ |
D | target_core_pscsi.c | 168 sdev->sector_size = (buf[9] << 16) | (buf[10] << 8) | (buf[11]); in pscsi_tape_read_blocksize() 169 if (!sdev->sector_size) in pscsi_tape_read_blocksize() 170 sdev->sector_size = 1024; in pscsi_tape_read_blocksize() 329 limits->logical_block_size = sd->sector_size; in pscsi_add_device_to_list() 750 sd->sector_size = blocksize; in pscsi_transport_complete()
|
D | target_core_transport.c | 3791 u32 sector_size; in transport_allocate_data_tasks() local 3797 sector_size = dev->se_sub_dev->se_dev_attrib.block_size; in transport_allocate_data_tasks() 3799 WARN_ON(cmd->data_length % sector_size); in transport_allocate_data_tasks() 3802 sectors = DIV_ROUND_UP(cmd->data_length, sector_size); in transport_allocate_data_tasks() 3822 task->task_size = task->task_sectors * sector_size; in transport_allocate_data_tasks() 3844 task->task_size = task->task_sectors * sector_size; in transport_allocate_data_tasks()
|
/drivers/scsi/isci/ |
D | request.c | 280 switch (sdp->sector_size) { in scu_bg_blk_size() 292 static u32 scu_dif_bytes(u32 len, u32 sector_size) in scu_dif_bytes() argument 294 return (len >> ilog2(sector_size)) * 8; in scu_dif_bytes() 310 scmd->device->sector_size); in scu_ssp_ireq_dif_insert() 321 tc->UD_bytes_immed_val = scmd->device->sector_size; in scu_ssp_ireq_dif_insert() 329 tc->bgc_blk_sz = scmd->device->sector_size; in scu_ssp_ireq_dif_insert() 365 scmd->device->sector_size); in scu_ssp_ireq_dif_strip() 380 tc->UD_bytes_immed_val = scmd->device->sector_size; in scu_ssp_ireq_dif_strip() 388 tc->bgc_blk_sz = scmd->device->sector_size; in scu_ssp_ireq_dif_strip()
|
/drivers/s390/scsi/ |
D | zfcp_fc.h | 246 fcp->fc_dl += fcp->fc_dl / scsi->device->sector_size * 8; in zfcp_fc_scsi_to_fcp()
|
D | zfcp_fsf.c | 2267 io->data_block_length = scsi_cmnd->device->sector_size; in zfcp_fsf_fcp_cmnd()
|
/drivers/net/ethernet/intel/e1000e/ |
D | ich8lan.c | 2841 s32 j, iteration, sector_size; in e1000_erase_flash_bank_ich8lan() local 2861 sector_size = ICH_FLASH_SEG_SIZE_256; in e1000_erase_flash_bank_ich8lan() 2865 sector_size = ICH_FLASH_SEG_SIZE_4K; in e1000_erase_flash_bank_ich8lan() 2869 sector_size = ICH_FLASH_SEG_SIZE_8K; in e1000_erase_flash_bank_ich8lan() 2873 sector_size = ICH_FLASH_SEG_SIZE_64K; in e1000_erase_flash_bank_ich8lan() 2904 flash_linear_addr += (j * sector_size); in e1000_erase_flash_bank_ich8lan()
|
/drivers/scsi/qla2xxx/ |
D | qla_iocb.c | 960 prot_int = cmd->device->sector_size; in qla24xx_walk_and_build_sglist_no_difb() 1347 blk_size = cmd->device->sector_size; in qla24xx_build_scsi_crc_2_iocbs() 1689 cmd->device->sector_size, &sgx, &partial)) in qla24xx_dif_start_scsi() 1709 nseg = scsi_bufflen(cmd) / cmd->device->sector_size; in qla24xx_dif_start_scsi()
|
D | qla_mbx.c | 3493 qla81xx_fac_get_sector_size(scsi_qla_host_t *vha, uint32_t *sector_size) in qla81xx_fac_get_sector_size() argument 3518 *sector_size = mcp->mb[1]; in qla81xx_fac_get_sector_size()
|
D | qla_isr.c | 1443 cmd->device->sector_size); in qla2x00_handle_dif_error()
|
/drivers/scsi/lpfc/ |
D | lpfc_scsi.c | 1285 return sc->device->sector_size; in lpfc_cmd_blksize() 2864 bghm /= cmd->device->sector_size; in lpfc_parse_bg_err() 2870 bghm /= (cmd->device->sector_size + in lpfc_parse_bg_err()
|
/drivers/scsi/mpt2sas/ |
D | mpt2sas_scsih.c | 3724 mpi_request->EEDPBlockSize = cpu_to_le32(scmd->device->sector_size); in _scsih_setup_eedp()
|