/drivers/s390/char/ |
D | tape_char.c | 98 tapechar_check_idalbuffer(struct tape_device *device, size_t block_size) in tapechar_check_idalbuffer() argument 103 device->char_data.idal_buf->size == block_size) in tapechar_check_idalbuffer() 106 if (block_size > MAX_BLOCKSIZE) { in tapechar_check_idalbuffer() 108 block_size, MAX_BLOCKSIZE); in tapechar_check_idalbuffer() 113 new = idal_buffer_alloc(block_size, 0); in tapechar_check_idalbuffer() 133 size_t block_size; in tapechar_read() local 149 if (device->char_data.block_size != 0) { in tapechar_read() 150 if (count < device->char_data.block_size) { in tapechar_read() 155 block_size = device->char_data.block_size; in tapechar_read() 157 block_size = count; in tapechar_read() [all …]
|
/drivers/staging/comedi/ |
D | comedi_buf.c | 379 int block_size = num_bytes - count; in comedi_buf_munge() local 383 if (block_size > buf_end) in comedi_buf_munge() 384 block_size = buf_end; in comedi_buf_munge() 388 block_size, async->munge_chan); in comedi_buf_munge() 396 async->munge_chan += block_size / num_sample_bytes; in comedi_buf_munge() 398 async->munge_count += block_size; in comedi_buf_munge() 399 async->munge_ptr += block_size; in comedi_buf_munge() 401 count += block_size; in comedi_buf_munge() 565 unsigned int block_size; in comedi_buf_memcpy_to() local 568 block_size = async->prealloc_bufsz - write_ptr; in comedi_buf_memcpy_to() [all …]
|
/drivers/net/wireless/microchip/wilc1000/ |
D | sdio.c | 29 u32 block_size; member 49 u32 block_size; member 98 func->cur_blksize = cmd->block_size; in wilc_sdio_cmd53() 100 size = cmd->count * cmd->block_size; in wilc_sdio_cmd53() 296 u32 block_size) in wilc_sdio_set_block_size() argument 306 cmd.data = (u8)block_size; in wilc_sdio_set_block_size() 315 cmd.data = (u8)(block_size >> 8); in wilc_sdio_set_block_size() 368 cmd.block_size = sdio_priv->block_size; in wilc_sdio_write_reg() 382 u32 block_size = sdio_priv->block_size; in wilc_sdio_write() local 402 nblk = size / block_size; in wilc_sdio_write() [all …]
|
/drivers/gpu/drm/i915/gem/ |
D | i915_gem_region.c | 61 u64 block_size, offset; in i915_gem_object_get_pages_buddy() local 63 block_size = min_t(u64, size, in i915_gem_object_get_pages_buddy() 67 GEM_BUG_ON(overflows_type(block_size, sg->length)); in i915_gem_object_get_pages_buddy() 70 add_overflows_t(typeof(sg->length), sg->length, block_size)) { in i915_gem_object_get_pages_buddy() 77 sg_dma_len(sg) = block_size; in i915_gem_object_get_pages_buddy() 79 sg->length = block_size; in i915_gem_object_get_pages_buddy() 83 sg->length += block_size; in i915_gem_object_get_pages_buddy() 84 sg_dma_len(sg) += block_size; in i915_gem_object_get_pages_buddy() 87 prev_end = offset + block_size; in i915_gem_object_get_pages_buddy()
|
/drivers/crypto/ccp/ |
D | ccp-crypto-sha.c | 64 unsigned int block_size = in ccp_do_sha_update() local 73 if (!final && (len <= block_size)) { in ccp_do_sha_update() 85 rctx->hash_rem = final ? 0 : len & (block_size - 1); in ccp_do_sha_update() 89 rctx->hash_cnt -= block_size; in ccp_do_sha_update() 90 rctx->hash_rem = block_size; in ccp_do_sha_update() 188 unsigned int block_size = in ccp_sha_init() local 198 memcpy(rctx->buf, ctx->u.sha.ipad, block_size); in ccp_sha_init() 199 rctx->buf_count = block_size; in ccp_sha_init() 276 unsigned int block_size = crypto_shash_blocksize(shash); in ccp_sha_setkey() local 288 if (key_len > block_size) { in ccp_sha_setkey() [all …]
|
/drivers/md/ |
D | dm-bow.c | 27 u32 block_size; member 83 u32 block_size; member 301 *checksum = crc32(*checksum, read, bc->block_size); in copy_data() 312 memcpy(write, read, bc->block_size); in copy_data() 342 if (range_size(first_br) != bc->block_size) { in backup_log_sector() 352 bi_iter.bi_size = bc->block_size; in backup_log_sector() 356 if (bi_iter.bi_size != bc->block_size) { in backup_log_sector() 384 > bc->block_size) { in add_log_entry() 404 memcpy(sector, bc->log_sector, bc->block_size); in add_log_entry() 425 if (range_size(first_br) < bc->block_size) { in prepare_log() [all …]
|
D | dm-writecache.c | 69 __le32 block_size; member 154 unsigned block_size; member 535 region.count = max(4096U, wc->block_size) >> SECTOR_SHIFT; in ssd_commit_superblock() 763 writecache_flush_region(wc, memory_data(wc, e), wc->block_size); in writecache_flush_entry() 1211 unsigned remaining_size = wc->block_size; in bio_copy_block() 1318 (wc->block_size / 512 - 1)) != 0)) { in writecache_map() 1321 bio->bi_iter.bi_size, wc->block_size); in writecache_map() 1347 dm_accept_partial_bio(bio, wc->block_size >> SECTOR_SHIFT); in writecache_map() 1410 unsigned bio_size = wc->block_size; in writecache_map() 1432 read_original_sector(wc, e) + (wc->block_size >> SECTOR_SHIFT)) in writecache_map() [all …]
|
D | dm-bufio.c | 91 unsigned block_size; member 334 diff = (long)b->c->block_size; in adjust_total_allocated() 411 if (c->block_size <= KMALLOC_MAX_SIZE && in alloc_buffer_data() 431 void *ptr = __vmalloc(c->block_size, gfp_mask); in alloc_buffer_data() 437 return __vmalloc(c->block_size, gfp_mask); in alloc_buffer_data() 627 vec_size = b->c->block_size >> PAGE_SHIFT; in use_bio() 669 sector = block * (c->block_size >> SECTOR_SHIFT); in block_to_sector() 686 n_sectors = b->c->block_size >> SECTOR_SHIFT; in submit_io() 696 if (unlikely(end > b->c->block_size)) in submit_io() 697 end = b->c->block_size; in submit_io() [all …]
|
/drivers/gpu/drm/vmwgfx/device_include/ |
D | svga3d_surfacedefs.h | 387 surf_size_struct block_size; member 1201 surf_size_struct *block_size) in svga3dsurface_get_size_in_blocks() argument 1203 block_size->width = __KERNEL_DIV_ROUND_UP(pixel_size->width, in svga3dsurface_get_size_in_blocks() 1204 desc->block_size.width); in svga3dsurface_get_size_in_blocks() 1205 block_size->height = __KERNEL_DIV_ROUND_UP(pixel_size->height, in svga3dsurface_get_size_in_blocks() 1206 desc->block_size.height); in svga3dsurface_get_size_in_blocks() 1207 block_size->depth = __KERNEL_DIV_ROUND_UP(pixel_size->depth, in svga3dsurface_get_size_in_blocks() 1208 desc->block_size.depth); in svga3dsurface_get_size_in_blocks() 1326 const u32 bw = desc->block_size.width, bh = desc->block_size.height; in svga3dsurface_get_pixel_offset() 1327 const u32 bd = desc->block_size.depth; in svga3dsurface_get_pixel_offset() [all …]
|
/drivers/mtd/spi-nor/controllers/ |
D | intel-spi.c | 640 size_t block_size, retlen = 0; in intel_spi_read() local 662 block_size = min_t(size_t, len, INTEL_SPI_FIFO_SZ); in intel_spi_read() 665 block_size = min_t(loff_t, from + block_size, in intel_spi_read() 673 val |= (block_size - 1) << HSFSTS_CTL_FDBC_SHIFT; in intel_spi_read() 694 ret = intel_spi_read_block(ispi, read_buf, block_size); in intel_spi_read() 698 len -= block_size; in intel_spi_read() 699 from += block_size; in intel_spi_read() 700 retlen += block_size; in intel_spi_read() 701 read_buf += block_size; in intel_spi_read() 711 size_t block_size, retlen = 0; in intel_spi_write() local [all …]
|
/drivers/target/ |
D | target_core_sbc.c | 62 put_unaligned_be32(dev->dev_attrib.block_size, &buf[4]); in sbc_emulate_readcapacity() 87 put_unaligned_be32(dev->dev_attrib.block_size, &buf[8]); in sbc_emulate_readcapacity_16() 218 return cmd->se_dev->dev_attrib.block_size * sectors; in sbc_get_size() 447 unsigned int block_size = dev->dev_attrib.block_size; in compare_and_write_callback() local 448 unsigned int compare_len = (nlbas * block_size); in compare_and_write_callback() 526 len = cmd->t_task_nolb * block_size; in compare_and_write_callback() 534 if (block_size < PAGE_SIZE) { in compare_and_write_callback() 535 sg_set_page(&write_sg[i], m.page, block_size, in compare_and_write_callback() 536 m.piter.sg->offset + block_size); in compare_and_write_callback() 539 sg_set_page(&write_sg[i], m.page, block_size, in compare_and_write_callback() [all …]
|
D | target_core_file.c | 297 aio_cmd->iocb.ki_pos = cmd->t_task_lba * dev->dev_attrib.block_size; in fd_execute_rw_aio() 319 u32 block_size, struct scatterlist *sgl, in fd_do_rw() argument 326 loff_t pos = (cmd->t_task_lba * block_size); in fd_do_rw() 414 start = cmd->t_task_lba * dev->dev_attrib.block_size; in fd_execute_sync_cache() 441 loff_t pos = cmd->t_task_lba * se_dev->dev_attrib.block_size; in fd_execute_write_same() 459 cmd->t_data_sg[0].length != cmd->se_dev->dev_attrib.block_size) { in fd_execute_write_same() 464 cmd->se_dev->dev_attrib.block_size); in fd_execute_write_same() 477 len += se_dev->dev_attrib.block_size; in fd_execute_write_same() 577 loff_t pos = lba * se_dev->dev_attrib.block_size; in fd_execute_unmap() 578 unsigned int len = nolb * se_dev->dev_attrib.block_size; in fd_execute_unmap() [all …]
|
/drivers/mtd/ |
D | sm_ftl.c | 197 WARN_ON(boffset >= ftl->block_size); in sm_mkoffset() 202 return (zone * SM_MAX_ZONE_SIZE + block) * ftl->block_size + boffset; in sm_mkoffset() 210 *boffset = do_div(offset, ftl->block_size); in sm_break_offset() 383 for (boffset = 0; boffset < ftl->block_size; in sm_write_block() 452 for (boffset = 0; boffset < ftl->block_size; boffset += SM_SECTOR_SIZE) in sm_mark_block_bad() 468 erase.len = ftl->block_size; in sm_erase_block() 509 for (boffset = 0; boffset < ftl->block_size; in sm_check_block() 574 ftl->block_size = 8 * SM_SECTOR_SIZE; in sm_get_media_info() 583 ftl->block_size = 8 * SM_SECTOR_SIZE; in sm_get_media_info() 593 ftl->block_size = 16 * SM_SECTOR_SIZE; in sm_get_media_info() [all …]
|
D | rfd_ftl.c | 26 static int block_size = 0; variable 27 module_param(block_size, int, 0); 28 MODULE_PARM_DESC(block_size, "Block size to use by RFD, defaults to erase unit size"); 74 u_int block_size; /* size of erase unit */ member 98 block->offset = part->block_size * block_no; in build_block_map() 158 sectors_per_block = part->block_size / SECTOR_SIZE; in scan_header() 159 part->total_blocks = (u32)part->mbd.mtd->size / part->block_size; in scan_header() 205 rc = mtd_read(part->mbd.mtd, i * part->block_size, in scan_header() 281 erase->len = part->block_size; in erase_block() 421 old_sector_block = *old_sector / part->block_size; in reclaim_block() [all …]
|
/drivers/net/ethernet/intel/ice/ |
D | ice_fw_update.c | 273 u16 block_size, u8 *block, bool last_cmd, in ice_write_one_nvm_block() argument 287 block_size, module, offset); in ice_write_one_nvm_block() 289 status = ice_aq_update_nvm(hw, module, offset, block_size, block, in ice_write_one_nvm_block() 293 module, block_size, offset, ice_stat_str(status), in ice_write_one_nvm_block() 308 module, block_size, offset, err); in ice_write_one_nvm_block() 335 module, block_size, offset, in ice_write_one_nvm_block() 385 u32 block_size; in ice_write_nvm_module() local 387 block_size = min_t(u32, ICE_AQ_MAX_BUF_LEN, length - offset); in ice_write_nvm_module() 388 last_cmd = !(offset + block_size < length); in ice_write_nvm_module() 394 memcpy(block, image + offset, block_size); in ice_write_nvm_module() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/core/ |
D | mm.c | 131 s = roundup(s, mm->block_size); in nvkm_mm_head() 135 e = rounddown(e, mm->block_size); in nvkm_mm_head() 205 s = roundup(s, mm->block_size); in nvkm_mm_tail() 209 e = rounddown(e, mm->block_size); in nvkm_mm_tail() 257 BUG_ON(block != mm->block_size); in nvkm_mm_init() 261 mm->block_size = block; in nvkm_mm_init() 270 node->offset = roundup(offset, mm->block_size); in nvkm_mm_init() 271 node->length = rounddown(offset + length, mm->block_size); in nvkm_mm_init()
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | i2c.c | 79 u16 block_size; member 328 tran_buf = kmalloc(mlxsw_i2c->block_size + MLXSW_I2C_ADDR_BUF_SIZE, in mlxsw_i2c_write() 335 chunk_size = (in_mbox_size > mlxsw_i2c->block_size) ? in mlxsw_i2c_write() 336 mlxsw_i2c->block_size : in_mbox_size; in mlxsw_i2c_write() 340 mlxsw_i2c->block_size * i, chunk_size); in mlxsw_i2c_write() 411 num = reg_size / mlxsw_i2c->block_size; in mlxsw_i2c_cmd() 412 if (reg_size % mlxsw_i2c->block_size) in mlxsw_i2c_cmd() 432 num = DIV_ROUND_UP(reg_size, mlxsw_i2c->block_size); in mlxsw_i2c_cmd() 448 chunk_size = (reg_size > mlxsw_i2c->block_size) ? in mlxsw_i2c_cmd() 449 mlxsw_i2c->block_size : reg_size; in mlxsw_i2c_cmd() [all …]
|
/drivers/crypto/hisilicon/ |
D | sgl.c | 59 u32 sgl_size, block_size, sgl_num_per_block, block_num, remain_sgl = 0; in hisi_acc_create_sgl_pool() local 69 block_size = 1 << (PAGE_SHIFT + MAX_ORDER <= 32 ? in hisi_acc_create_sgl_pool() 71 sgl_num_per_block = block_size / sgl_size; in hisi_acc_create_sgl_pool() 85 block[i].sgl = dma_alloc_coherent(dev, block_size, in hisi_acc_create_sgl_pool() 91 block[i].size = block_size; in hisi_acc_create_sgl_pool() 114 dma_free_coherent(dev, block_size, block[j].sgl, in hisi_acc_create_sgl_pool()
|
/drivers/input/rmi4/ |
D | rmi_f34v7.c | 499 f34->v7.block_size = le16_to_cpu(query_1_7.block_size); in rmi_f34v7_read_queries() 505 __func__, f34->v7.block_size); in rmi_f34v7_read_queries() 578 block_count = f34->v7.img.ui_firmware.size / f34->v7.block_size; in rmi_f34v7_check_ui_firmware_size() 595 block_count = f34->v7.img.ui_config.size / f34->v7.block_size; in rmi_f34v7_check_ui_config_size() 610 block_count = f34->v7.img.dp_config.size / f34->v7.block_size; in rmi_f34v7_check_dp_config_size() 625 block_count = f34->v7.img.guest_code.size / f34->v7.block_size; in rmi_f34v7_check_guest_code_size() 640 block_count = f34->v7.img.bl_config.size / f34->v7.block_size; in rmi_f34v7_check_bl_config_size() 768 (u16)(PAGE_SIZE / f34->v7.block_size)); in rmi_f34v7_read_blocks() 797 transfer * f34->v7.block_size); in rmi_f34v7_read_blocks() 805 index += (transfer * f34->v7.block_size); in rmi_f34v7_read_blocks() [all …]
|
/drivers/gpu/drm/gma500/ |
D | intel_bios.c | 139 u16 *block_ptr, block_size; in get_blocksize() local 142 block_size = *block_ptr; in get_blocksize() 143 return block_size; in get_blocksize() 330 u16 block_size; in parse_sdvo_device_mapping() local 348 block_size = get_blocksize(p_defs); in parse_sdvo_device_mapping() 350 child_device_num = (block_size - sizeof(*p_defs)) / in parse_sdvo_device_mapping() 443 u16 block_size; in parse_device_mapping() local 461 block_size = get_blocksize(p_defs); in parse_device_mapping() 463 child_device_num = (block_size - sizeof(*p_defs)) / in parse_device_mapping()
|
/drivers/staging/media/atomisp/pci/isp/kernels/bnlm/ |
D | ia_css_bnlm.host.c | 49 const u32 block_size = 16; in bnlm_lut_encode() local 50 const u32 total_blocks = ISP_VEC_NELEMS / block_size; in bnlm_lut_encode() 62 assert((lut_size >= 2) && (lut_size <= block_size)); in bnlm_lut_encode() 70 for (i = 0; i < total_blocks * block_size; i++) { in bnlm_lut_encode() 84 u32 blk_offset = blk * block_size; in bnlm_lut_encode()
|
/drivers/md/persistent-data/ |
D | dm-btree-spine.c | 20 size_t block_size); 24 size_t block_size) in node_prepare_for_write() argument 31 block_size - sizeof(__le32), in node_prepare_for_write() 39 size_t block_size) in node_check() argument 54 block_size - sizeof(__le32), in node_check() 65 (sizeof(__le64) + value_size) * le32_to_cpu(h->max_entries) > block_size) { in node_check()
|
/drivers/gpu/drm/tiny/ |
D | gm12u320.c | 161 int i, block_size; in gm12u320_usb_alloc() local 170 block_size = DATA_LAST_BLOCK_SIZE; in gm12u320_usb_alloc() 173 block_size = DATA_BLOCK_SIZE; in gm12u320_usb_alloc() 178 block_size, GFP_KERNEL); in gm12u320_usb_alloc() 184 (block_size - DATA_BLOCK_FOOTER_SIZE), in gm12u320_usb_alloc() 335 int block, block_size, len; in gm12u320_fb_update_work() local 342 block_size = DATA_LAST_BLOCK_SIZE; in gm12u320_fb_update_work() 344 block_size = DATA_BLOCK_SIZE; in gm12u320_fb_update_work() 348 gm12u320->cmd_buf[8] = block_size & 0xff; in gm12u320_fb_update_work() 349 gm12u320->cmd_buf[9] = block_size >> 8; in gm12u320_fb_update_work() [all …]
|
/drivers/scsi/ |
D | st.c | 695 if (STp->block_size == 0) in write_behind_check() 698 STps->drv_block += STbuffer->writing / STp->block_size; in write_behind_check() 786 blks = transfer / STp->block_size; in st_flush_write_buffer() 850 if (STp->block_size == 0) in flush_buffer() 854 (STp->buffer)->read_pointer) / STp->block_size - in flush_buffer() 855 ((STp->buffer)->read_pointer + STp->block_size - 1) / in flush_buffer() 856 STp->block_size; in flush_buffer() 899 STm->default_blksize != STp->block_size) { in set_mode_densblk() 903 arg |= STp->block_size; in set_mode_densblk() 1099 STp->block_size = 0; in check_tape() [all …]
|
/drivers/net/wireless/st/cw1200/ |
D | fwio.c | 182 size_t block_size; in cw1200_load_firmware_cw1200() local 208 tx_size = block_size = min_t(size_t, firmware->size - put, in cw1200_load_firmware_cw1200() 211 memcpy(buf, &firmware->data[put], block_size); in cw1200_load_firmware_cw1200() 212 if (block_size < DOWNLOAD_BLOCK_SIZE) { in cw1200_load_firmware_cw1200() 213 memset(&buf[block_size], 0, in cw1200_load_firmware_cw1200() 214 DOWNLOAD_BLOCK_SIZE - block_size); in cw1200_load_firmware_cw1200() 230 put += block_size; in cw1200_load_firmware_cw1200()
|