Home
last modified time | relevance | path

Searched refs:blk_size (Results 1 – 25 of 38) sorted by relevance

12

/drivers/ide/
Dide-tape.c185 unsigned short blk_size; member
286 scsi_req(rq)->resid_len = tape->blk_size * get_unaligned_be32(&sense[3]); in idetape_analyze_error()
352 (blk_rq_bytes(rq) - scsi_req(rq)->resid_len) / tape->blk_size; in ide_tape_callback()
354 tape->avg_size += blocks * tape->blk_size; in ide_tape_callback()
548 unsigned int length = blk_rq_sectors(rq) / (tape->blk_size >> 9); in ide_tape_create_rw_cmd()
856 BUG_ON(size < 0 || size % tape->blk_size); in idetape_queue_rw_tail()
932 size_t aligned = roundup(tape->valid, tape->blk_size); in ide_tape_flush_merge_buffer()
1143 if (count > tape->blk_size && in idetape_chrdev_read()
1144 (count % tape->blk_size) == 0) in idetape_chrdev_read()
1145 tape->user_bs_factor = count / tape->blk_size; in idetape_chrdev_read()
[all …]
/drivers/block/
Dvirtio_blk.c715 u32 v, blk_size, max_size, sg_elems, opt_io_size; in virtblk_probe() local
838 struct virtio_blk_config, blk_size, in virtblk_probe()
839 &blk_size); in virtblk_probe()
841 err = blk_validate_block_size(blk_size); in virtblk_probe()
845 blk_size); in virtblk_probe()
849 blk_queue_logical_block_size(q, blk_size); in virtblk_probe()
851 blk_size = queue_logical_block_size(q); in virtblk_probe()
859 blk_size * (1 << physical_block_exp)); in virtblk_probe()
865 blk_queue_alignment_offset(q, blk_size * alignment_offset); in virtblk_probe()
871 blk_queue_io_min(q, blk_size * min_io_size); in virtblk_probe()
[all …]
Dps3disk.c403 if (dev->blk_size < 512) { in ps3disk_probe()
406 __LINE__, dev->blk_size); in ps3disk_probe()
457 blk_queue_dma_alignment(queue, dev->blk_size-1); in ps3disk_probe()
458 blk_queue_logical_block_size(queue, dev->blk_size); in ps3disk_probe()
481 priv->blocking_factor = dev->blk_size >> 9; in ps3disk_probe()
/drivers/char/
Dps3flash.c90 dev->regions[dev->region_idx].size*dev->blk_size); in ps3flash_llseek()
107 size = dev->regions[dev->region_idx].size*dev->blk_size; in ps3flash_read()
176 size = dev->regions[dev->region_idx].size*dev->blk_size; in ps3flash_write()
337 tmp = dev->regions[dev->region_idx].start*dev->blk_size; in ps3flash_probe()
344 tmp = dev->regions[dev->region_idx].size*dev->blk_size; in ps3flash_probe()
376 priv->chunk_sectors = dev->bounce_size / dev->blk_size; in ps3flash_probe()
/drivers/block/rsxx/
Ddev.c226 unsigned short blk_size; in rsxx_setup_dev() local
255 blk_size = card->config.data.block_size; in rsxx_setup_dev()
256 blk_queue_dma_alignment(card->queue, blk_size - 1); in rsxx_setup_dev()
257 blk_queue_logical_block_size(card->queue, blk_size); in rsxx_setup_dev()
/drivers/s390/block/
Ddasd_fba.h26 __u16 blk_size; /* Blocksize */ member
66 __u16 blk_size; member
Ddasd_fba.c103 data->blk_size = blksize; in define_extent()
190 (private->rdc_data.blk_size >> 9)) >> 11), in dasd_fba_check_characteristics()
191 private->rdc_data.blk_size, in dasd_fba_check_characteristics()
201 rc = dasd_check_blocksize(private->rdc_data.blk_size); in dasd_fba_do_analysis()
204 private->rdc_data.blk_size); in dasd_fba_do_analysis()
208 block->bp_block = private->rdc_data.blk_size; in dasd_fba_do_analysis()
210 for (sb = 512; sb < private->rdc_data.blk_size; sb = sb << 1) in dasd_fba_do_analysis()
/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_smp.c21 int blk_size; member
99 u32 smp_entries_per_blk = smp->blk_size / (128 / BITS_PER_BYTE); in set_fifo_thresholds()
152 n = DIV_ROUND_UP(fetch_stride * nlines, smp->blk_size); in mdp5_smp_calculate()
393 smp->blk_size = cfg->mmb_size; in mdp5_smp_init()
/drivers/net/wireless/marvell/mwifiex/
Dsdio.c684 u32 blk_size = (blk_mode == BLOCK_MODE) ? MWIFIEX_SDIO_BLOCK_SIZE : 1; in mwifiex_write_data_sync() local
699 ret = sdio_writesb(card->func, ioport, buffer, blk_cnt * blk_size); in mwifiex_write_data_sync()
715 u32 blk_size = (blk_mode == BLOCK_MODE) ? MWIFIEX_SDIO_BLOCK_SIZE : 1; in mwifiex_read_data_sync() local
723 ret = sdio_readsb(card->func, buffer, ioport, blk_cnt * blk_size); in mwifiex_read_data_sync()
1553 u16 blk_size; in mwifiex_deaggr_sdio_pkt() local
1564 blk_size = adapter->sdio_rx_block_size * blk_num; in mwifiex_deaggr_sdio_pkt()
1565 if (blk_size > total_pkt_len) { in mwifiex_deaggr_sdio_pkt()
1569 __func__, blk_num, blk_size, total_pkt_len); in mwifiex_deaggr_sdio_pkt()
1574 if ((pkt_len + SDIO_HEADER_OFFSET) > blk_size) { in mwifiex_deaggr_sdio_pkt()
1578 __func__, pkt_len, blk_size); in mwifiex_deaggr_sdio_pkt()
[all …]
/drivers/usb/host/
Disp1362-hcd.c160 if (index * epq->blk_size > epq->buf_size) { in get_ptd_offset()
163 epq->buf_size / epq->blk_size); in get_ptd_offset()
166 offset = epq->buf_start + index * epq->blk_size; in get_ptd_offset()
179 xfer_size = min_t(size_t, xfer_size, epq->buf_avail * epq->blk_size - PTD_HEADER_SIZE); in max_transfer_size()
190 int num_ptds = ((len + PTD_HEADER_SIZE - 1) / epq->blk_size) + 1; in claim_ptd_buffers()
200 epq->name, len, epq->blk_size, num_ptds, epq->buf_map, epq->skip_map); in claim_ptd_buffers()
209 num_ptds, found, len, (int)(epq->blk_size - PTD_HEADER_SIZE)); in claim_ptd_buffers()
844 int num_ptds = (ep->length + PTD_HEADER_SIZE + (epq->blk_size - 1)) / epq->blk_size; in next_ptd()
847 ep->length, num_ptds, epq->blk_size, ptd_offset + num_ptds * epq->blk_size); in next_ptd()
849 ptd_offset += num_ptds * epq->blk_size; in next_ptd()
[all …]
/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_hubp.c342 enum hubp_ind_block_size blk_size) in hubp3_dcc_control() argument
349 PRIMARY_SURFACE_DCC_IND_BLK, blk_size, in hubp3_dcc_control()
351 SECONDARY_SURFACE_DCC_IND_BLK, blk_size); in hubp3_dcc_control()
/drivers/net/wireless/quantenna/qtnfmac/pcie/
Dpearl_pcie.c957 int blk_size = QTN_PCIE_FW_BUFSZ - sizeof(struct qtnf_pearl_fw_hdr); in qtnf_ep_fw_load() local
958 int blk_count = fw_size / blk_size + ((fw_size % blk_size) ? 1 : 0); in qtnf_ep_fw_load()
997 blk_size + len); in qtnf_ep_fw_load()
1000 pblk -= QTN_PCIE_FW_DLMASK * blk_size; in qtnf_ep_fw_load()
/drivers/scsi/
Dps3rom.c351 if (dev->blk_size != CD_FRAMESIZE) { in ps3rom_probe()
354 __LINE__, dev->blk_size); in ps3rom_probe()
DBusLogic.c161 int blk_size, dma_addr_t blkp) in blogic_init_ccbs() argument
165 memset(blk_pointer, 0, blk_size); in blogic_init_ccbs()
167 ccb->allocgrp_size = blk_size; in blogic_init_ccbs()
168 while ((blk_size -= sizeof(struct blogic_ccb)) >= 0) { in blogic_init_ccbs()
193 int blk_size = BLOGIC_CCB_GRP_ALLOCSIZE * sizeof(struct blogic_ccb); in blogic_create_initccbs() local
199 blk_size, &blkp, GFP_KERNEL); in blogic_create_initccbs()
205 blogic_init_ccbs(adapter, blk_pointer, blk_size, blkp); in blogic_create_initccbs()
247 int blk_size = BLOGIC_CCB_GRP_ALLOCSIZE * sizeof(struct blogic_ccb); in blogic_create_addlccbs() local
255 blk_size, &blkp, GFP_KERNEL); in blogic_create_addlccbs()
258 blogic_init_ccbs(adapter, blk_pointer, blk_size, blkp); in blogic_create_addlccbs()
Dsg.c1890 int blk_size = buff_size, order; in sg_build_indirect() local
1894 if (blk_size < 0) in sg_build_indirect()
1896 if (0 == blk_size) in sg_build_indirect()
1897 ++blk_size; /* don't know why */ in sg_build_indirect()
1899 blk_size = ALIGN(blk_size, SG_SECTOR_SZ); in sg_build_indirect()
1902 buff_size, blk_size)); in sg_build_indirect()
1925 for (k = 0, rem_sz = blk_size; rem_sz > 0 && k < mx_sc_elems; in sg_build_indirect()
1953 schp->bufflen = blk_size; in sg_build_indirect()
/drivers/iommu/
Dio-pgtable-arm-v7s.c696 size_t blk_size = ARM_V7S_BLOCK_SIZE(lvl); in __arm_v7s_unmap() local
703 io_pgtable_tlb_flush_walk(iop, iova, blk_size, in __arm_v7s_unmap()
715 io_pgtable_tlb_add_page(iop, gather, iova, blk_size); in __arm_v7s_unmap()
717 iova += blk_size; in __arm_v7s_unmap()
/drivers/gpu/drm/amd/display/dc/inc/hw/
Dhubp.h104 enum hubp_ind_block_size blk_size);
/drivers/net/wireless/ath/ath6kl/
Dinit.c420 u32 blk_size; in ath6kl_set_htc_params() local
422 blk_size = ar->mbox_info.block_size; in ath6kl_set_htc_params()
425 blk_size |= ((u32)htc_ctrl_buf) << 16; in ath6kl_set_htc_params()
428 status = ath6kl_bmi_write_hi32(ar, hi_mbox_io_block_sz, blk_size); in ath6kl_set_htc_params()
435 blk_size, in ath6kl_set_htc_params()
/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c1476 sec_max_key_size, ctx_init, ctx_exit, blk_size, iv_size)\ argument
1483 .cra_blocksize = blk_size,\
1498 max_key_size, blk_size, iv_size) \ argument
1500 sec_skcipher_ctx_init, sec_skcipher_ctx_exit, blk_size, iv_size)
1601 ctx_exit, blk_size, iv_size, max_authsize)\ argument
1608 .cra_blocksize = blk_size,\
/drivers/mmc/host/
Drenesas_sdhi_core.c825 unsigned int direction, int blk_size) in renesas_sdhi_multi_io_quirk() argument
836 blk_size == 2) in renesas_sdhi_multi_io_quirk()
839 return blk_size; in renesas_sdhi_multi_io_quirk()
Dtmio_mmc.h179 unsigned int direction, int blk_size);
Dtmio_mmc_core.c977 unsigned int direction, int blk_size) in tmio_multi_io_quirk() argument
982 return host->multi_io_quirk(card, direction, blk_size); in tmio_multi_io_quirk()
984 return blk_size; in tmio_multi_io_quirk()
Dmmc_spi.c783 struct mmc_data *data, u32 blk_size) in mmc_spi_data_do() argument
824 t->len = min(length, blk_size); in mmc_spi_data_do()
/drivers/net/wireless/ti/wl12xx/
Dmain.c1288 u32 blk_size = WL12XX_TX_HW_BLOCK_SIZE; in wl12xx_calc_tx_blocks() local
1291 return (align_len + blk_size - 1) / blk_size + spare_blks; in wl12xx_calc_tx_blocks()
/drivers/net/wireless/ti/wl18xx/
Dmain.c1068 u32 blk_size = WL18XX_TX_HW_BLOCK_SIZE; in wl18xx_calc_tx_blocks() local
1069 return (len + blk_size - 1) / blk_size + spare_blks; in wl18xx_calc_tx_blocks()

12