/drivers/mtd/ |
D | rfd_ftl.c | 87 struct block *blocks; member 94 struct block *block = &part->blocks[block_no]; in build_block_map() 187 part->blocks = kcalloc(part->total_blocks, sizeof(struct block), in scan_header() 189 if (!part->blocks) in scan_header() 236 kfree(part->blocks); in scan_header() 279 if (i >= part->total_blocks || part->blocks[i].offset != erase->addr || in erase_callback() 291 part->blocks[i].state = BLOCK_FAILED; in erase_callback() 292 part->blocks[i].free_sectors = 0; in erase_callback() 293 part->blocks[i].used_sectors = 0; in erase_callback() 302 part->blocks[i].state = BLOCK_ERASED; in erase_callback() [all …]
|
/drivers/mfd/ |
D | stmpe.c | 39 unsigned int blocks; member 47 static int __stmpe_enable(struct stmpe *stmpe, unsigned int blocks) in __stmpe_enable() argument 49 return stmpe->variant->enable(stmpe, blocks, true); in __stmpe_enable() 52 static int __stmpe_disable(struct stmpe *stmpe, unsigned int blocks) in __stmpe_disable() argument 54 return stmpe->variant->enable(stmpe, blocks, false); in __stmpe_disable() 132 int stmpe_enable(struct stmpe *stmpe, unsigned int blocks) in stmpe_enable() argument 137 ret = __stmpe_enable(stmpe, blocks); in stmpe_enable() 149 int stmpe_disable(struct stmpe *stmpe, unsigned int blocks) in stmpe_disable() argument 154 ret = __stmpe_disable(stmpe, blocks); in stmpe_disable() 412 static int stmpe801_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe801_enable() argument [all …]
|
/drivers/ide/ |
D | ide-floppy.c | 196 int blocks = blk_rq_sectors(rq) / floppy->bs_factor; in idefloppy_create_rw_cmd() local 199 ide_debug_log(IDE_DBG_FUNC, "block: %d, blocks: %d", block, blocks); in idefloppy_create_rw_cmd() 203 put_unaligned(cpu_to_be16(blocks), (unsigned short *)&pc->c[7]); in idefloppy_create_rw_cmd() 354 lba_capacity = floppy->blocks * floppy->block_size; in ide_floppy_get_flexible_disk_page() 360 floppy->blocks = floppy->block_size ? in ide_floppy_get_flexible_disk_page() 362 drive->capacity64 = floppy->blocks * floppy->bs_factor; in ide_floppy_get_flexible_disk_page() 379 int i, rc = 1, blocks, length; in ide_floppy_get_capacity() local 385 floppy->blocks = 0; in ide_floppy_get_capacity() 401 blocks = be32_to_cpup((__be32 *)&pc_buf[desc_start]); in ide_floppy_get_capacity() 406 i, blocks * length / 1024, in ide_floppy_get_capacity() [all …]
|
D | ide-floppy_ioctl.c | 41 int i, blocks, length, u_array_size, u_index; in ide_floppy_get_format_capacities() local 75 blocks = be32_to_cpup((__be32 *)&pc_buf[desc_start]); in ide_floppy_get_format_capacities() 78 if (put_user(blocks, argp)) in ide_floppy_get_format_capacities() 143 int blocks, length, flags, err = 0; in ide_floppy_format_unit() local 168 if (get_user(blocks, arg) || in ide_floppy_format_unit() 176 ide_floppy_create_format_unit_cmd(pc, buf, blocks, length, flags); in ide_floppy_format_unit()
|
/drivers/iio/buffer/ |
D | industrialio-buffer-dma.c | 308 for (i = 0; i < ARRAY_SIZE(queue->fileio.blocks); i++) { in iio_dma_buffer_request_update() 309 block = queue->fileio.blocks[i]; in iio_dma_buffer_request_update() 326 for (i = 0; i < ARRAY_SIZE(queue->fileio.blocks); i++) { in iio_dma_buffer_request_update() 327 if (queue->fileio.blocks[i]) { in iio_dma_buffer_request_update() 328 block = queue->fileio.blocks[i]; in iio_dma_buffer_request_update() 346 queue->fileio.blocks[i] = block; in iio_dma_buffer_request_update() 644 for (i = 0; i < ARRAY_SIZE(queue->fileio.blocks); i++) { in iio_dma_buffer_exit() 645 if (!queue->fileio.blocks[i]) in iio_dma_buffer_exit() 647 queue->fileio.blocks[i]->state = IIO_BLOCK_STATE_DEAD; in iio_dma_buffer_exit() 654 for (i = 0; i < ARRAY_SIZE(queue->fileio.blocks); i++) { in iio_dma_buffer_exit() [all …]
|
/drivers/mmc/core/ |
D | sdio_ops.c | 119 unsigned addr, int incr_addr, u8 *buf, unsigned blocks, unsigned blksz) in mmc_io_rw_extended() argument 143 if (blocks == 0) in mmc_io_rw_extended() 146 cmd.arg |= 0x08000000 | blocks; /* block mode */ in mmc_io_rw_extended() 151 data.blocks = blocks ? blocks : 1; in mmc_io_rw_extended() 154 left_size = data.blksz * data.blocks; in mmc_io_rw_extended()
|
/drivers/usb/storage/ |
D | jumpshot.c | 490 unsigned long block, blocks; in jumpshot_transport() local 545 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in jumpshot_transport() 548 block, blocks); in jumpshot_transport() 549 return jumpshot_read_data(us, info, block, blocks); in jumpshot_transport() 558 blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | in jumpshot_transport() 562 block, blocks); in jumpshot_transport() 563 return jumpshot_read_data(us, info, block, blocks); in jumpshot_transport() 570 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in jumpshot_transport() 573 block, blocks); in jumpshot_transport() 574 return jumpshot_write_data(us, info, block, blocks); in jumpshot_transport() [all …]
|
D | datafab.c | 564 unsigned long block, blocks; in datafab_transport() local 617 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in datafab_transport() 620 block, blocks); in datafab_transport() 621 return datafab_read_data(us, info, block, blocks); in datafab_transport() 630 blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | in datafab_transport() 634 block, blocks); in datafab_transport() 635 return datafab_read_data(us, info, block, blocks); in datafab_transport() 642 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in datafab_transport() 645 block, blocks); in datafab_transport() 646 return datafab_write_data(us, info, block, blocks); in datafab_transport() [all …]
|
/drivers/md/ |
D | bitmap.c | 1192 sector_t offset, sector_t *blocks, 1205 sector_t blocks; in bitmap_daemon_work() local 1273 &blocks, 0); in bitmap_daemon_work() 1322 sector_t offset, sector_t *blocks, in bitmap_get_counter() argument 1345 *blocks = csize - (offset & (csize - 1)); in bitmap_get_counter() 1380 sector_t blocks; in bitmap_startwrite() local 1384 bmc = bitmap_get_counter(&bitmap->counts, offset, &blocks, 1); in bitmap_startwrite() 1417 offset += blocks; in bitmap_startwrite() 1418 if (sectors > blocks) in bitmap_startwrite() 1419 sectors -= blocks; in bitmap_startwrite() [all …]
|
/drivers/scsi/ |
D | g_NCR5380.c | 349 int blocks = len / 128; in generic_NCR5380_pread() local 353 NCR5380_write(hostdata->c400_blk_cnt, blocks); in generic_NCR5380_pread() 358 printk(KERN_ERR "53C400r: Got 53C80_IRQ start=%d, blocks=%d\n", start, blocks); in generic_NCR5380_pread() 377 blocks--; in generic_NCR5380_pread() 380 if (blocks) { in generic_NCR5380_pread() 397 blocks--; in generic_NCR5380_pread() 427 int blocks = len / 128; in generic_NCR5380_pwrite() local 431 NCR5380_write(hostdata->c400_blk_cnt, blocks); in generic_NCR5380_pwrite() 434 printk(KERN_ERR "53C400w: Got 53C80_IRQ start=%d, blocks=%d\n", start, blocks); in generic_NCR5380_pwrite() 455 blocks--; in generic_NCR5380_pwrite() [all …]
|
D | sd.h | 149 static inline sector_t logical_to_sectors(struct scsi_device *sdev, sector_t blocks) in logical_to_sectors() argument 151 return blocks << (ilog2(sdev->sector_size) - 9); in logical_to_sectors() 154 static inline unsigned int logical_to_bytes(struct scsi_device *sdev, sector_t blocks) in logical_to_bytes() argument 156 return blocks * sdev->sector_size; in logical_to_bytes()
|
/drivers/mtd/tests/ |
D | speedtest.c | 55 static int multiblock_erase(int ebnum, int blocks) in multiblock_erase() argument 64 ei.len = mtd->erasesize * blocks; in multiblock_erase() 69 err, ebnum, blocks); in multiblock_erase() 75 "blocks %d\n", ebnum, blocks); in multiblock_erase() 195 int err, i, blocks, j, k; in mtd_speedtest_init() local 391 blocks = 1 << k; in mtd_speedtest_init() 393 blocks); in mtd_speedtest_init() 396 for (j = 0; j < blocks && (i + j) < ebcnt; j++) in mtd_speedtest_init() 416 blocks, speed); in mtd_speedtest_init()
|
/drivers/media/ |
D | cec-edid.c | 34 unsigned int blocks = size / 128; in cec_get_edid_spa_location() local 39 if (blocks < 2 || size % 128) in cec_get_edid_spa_location() 49 if (edid[0x7e] + 1 < blocks) in cec_get_edid_spa_location() 50 blocks = edid[0x7e] + 1; in cec_get_edid_spa_location() 52 for (block = 1; block < blocks; block++) { in cec_get_edid_spa_location()
|
/drivers/mmc/card/ |
D | block.c | 150 packed->blocks = 0; in mmc_blk_clear_packed() 596 idata->buf_bytes = (u64) idata->ic.blksz * idata->ic.blocks; in mmc_blk_ioctl_copy_from_user() 732 data.blocks = idata->ic.blocks; in __mmc_blk_ioctl_cmd() 777 err = mmc_set_blockcount(card, data.blocks, in __mmc_blk_ioctl_cmd() 1034 __be32 *blocks; in mmc_sd_num_wr_blocks() local 1059 data.blocks = 1; in mmc_sd_num_wr_blocks() 1068 blocks = kmalloc(4, GFP_KERNEL); in mmc_sd_num_wr_blocks() 1069 if (!blocks) in mmc_sd_num_wr_blocks() 1072 sg_init_one(&sg, blocks, 4); in mmc_sd_num_wr_blocks() 1076 result = ntohl(*blocks); in mmc_sd_num_wr_blocks() [all …]
|
D | mmc_test.c | 81 unsigned int blocks; member 194 struct mmc_request *mrq, unsigned int blocks) in mmc_test_prepare_sbc() argument 206 mrq->sbc->arg = blocks; in mmc_test_prepare_sbc() 215 unsigned dev_addr, unsigned blocks, unsigned blksz, int write) in mmc_test_prepare_mrq() argument 219 if (blocks > 1) { in mmc_test_prepare_mrq() 233 if (blocks == 1) in mmc_test_prepare_mrq() 242 mrq->data->blocks = blocks; in mmc_test_prepare_mrq() 247 mmc_test_prepare_sbc(test, mrq, blocks); in mmc_test_prepare_mrq() 699 if (mrq->data->blocks > 1) { in mmc_test_prepare_broken_mrq() 730 mrq->data->blocks * mrq->data->blksz) in mmc_test_check_result() [all …]
|
/drivers/md/persistent-data/ |
D | dm-transaction-manager.c | 28 dm_block_t blocks[PREFETCH_SIZE]; member 40 p->blocks[i] = PREFETCH_SENTINEL; in prefetch_wipe() 54 if (p->blocks[h] == PREFETCH_SENTINEL) in prefetch_add() 55 p->blocks[h] = b; in prefetch_add() 67 if (p->blocks[i] != PREFETCH_SENTINEL) { in prefetch_issue() 68 dm_bm_prefetch(bm, p->blocks[i]); in prefetch_issue() 69 p->blocks[i] = PREFETCH_SENTINEL; in prefetch_issue()
|
/drivers/staging/rtl8192e/ |
D | rtllib_crypt_ccmp.c | 224 int blocks, last, len; in rtllib_ccmp_encrypt() local 236 blocks = DIV_ROUND_UP(data_len, AES_BLOCK_LEN); in rtllib_ccmp_encrypt() 239 for (i = 1; i <= blocks; i++) { in rtllib_ccmp_encrypt() 240 len = (i == blocks && last) ? last : AES_BLOCK_LEN; in rtllib_ccmp_encrypt() 316 int i, blocks, last, len; in rtllib_ccmp_decrypt() local 322 blocks = DIV_ROUND_UP(data_len, AES_BLOCK_LEN); in rtllib_ccmp_decrypt() 325 for (i = 1; i <= blocks; i++) { in rtllib_ccmp_decrypt() 326 len = (i == blocks && last) ? last : AES_BLOCK_LEN; in rtllib_ccmp_decrypt()
|
/drivers/block/ |
D | ataflop.c | 92 unsigned blocks; /* total number of blocks */ member 671 if (!UDT || desc->track >= UDT->blocks/UDT->spt/2 || desc->head >= 2) { in do_format() 1073 if (SUDT[-1].blocks > ReqBlock) { in fd_rwsec_done1() 1077 SUDT->blocks); in fd_rwsec_done1() 1092 SUDT->blocks); in fd_rwsec_done1() 1367 if (default_params[drive].blocks == 0) in floppy_revalidate() 1454 set_capacity(floppy->disk, UDT->blocks); in redo_fd_request() 1472 set_capacity(floppy->disk, UDT->blocks); in redo_fd_request() 1476 if (blk_rq_pos(fd_request) + 1 > UDT->blocks) { in redo_fd_request() 1543 getprm.size = dtp->blocks; in fd_locked_ioctl() [all …]
|
/drivers/mmc/host/ |
D | cb710-mmc.c | 263 return !(data->blksz & 15 && (data->blocks != 1 || data->blksz != 8)); in cb710_is_transfer_size_supported() 269 size_t len, blocks = data->blocks; in cb710_mmc_receive() local 274 if (unlikely(data->blksz & 15 && (data->blocks != 1 || data->blksz != 8))) in cb710_mmc_receive() 284 while (blocks-- > 0) { in cb710_mmc_receive() 313 size_t len, blocks = data->blocks; in cb710_mmc_send() local 318 if (unlikely(data->blocks > 1 && data->blksz & 15)) in cb710_mmc_send() 326 while (blocks-- > 0) { in cb710_mmc_send() 440 data->bytes_xfered = data->blksz * data->blocks; in cb710_mmc_transfer_data() 458 cb710_mmc_set_transfer_size(slot, data->blocks, data->blksz); in cb710_mmc_command()
|
/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt_ccmp.c | 233 int blocks, last, len; in ieee80211_ccmp_encrypt() local 245 blocks = DIV_ROUND_UP(data_len, AES_BLOCK_LEN); in ieee80211_ccmp_encrypt() 248 for (i = 1; i <= blocks; i++) { in ieee80211_ccmp_encrypt() 249 len = (i == blocks && last) ? last : AES_BLOCK_LEN; in ieee80211_ccmp_encrypt() 328 int i, blocks, last, len; in ieee80211_ccmp_decrypt() local 334 blocks = DIV_ROUND_UP(data_len, AES_BLOCK_LEN); in ieee80211_ccmp_decrypt() 337 for (i = 1; i <= blocks; i++) { in ieee80211_ccmp_decrypt() 338 len = (i == blocks && last) ? last : AES_BLOCK_LEN; in ieee80211_ccmp_decrypt()
|
/drivers/gpio/ |
D | gpio-sch311x.c | 53 struct sch311x_gpio_block blocks[6]; member 245 for (i = 0; i < ARRAY_SIZE(priv->blocks); i++) { in sch311x_gpio_probe() 246 block = &priv->blocks[i]; in sch311x_gpio_probe() 280 gpiochip_remove(&priv->blocks[i].chip); in sch311x_gpio_probe() 289 for (i = 0; i < ARRAY_SIZE(priv->blocks); i++) { in sch311x_gpio_remove() 290 gpiochip_remove(&priv->blocks[i].chip); in sch311x_gpio_remove()
|
/drivers/target/ |
D | target_core_sbc.c | 51 u32 blocks; in sbc_emulate_readcapacity() local 69 blocks = 0xffffffff; in sbc_emulate_readcapacity() 71 blocks = (u32)blocks_long; in sbc_emulate_readcapacity() 73 buf[0] = (blocks >> 24) & 0xff; in sbc_emulate_readcapacity() 74 buf[1] = (blocks >> 16) & 0xff; in sbc_emulate_readcapacity() 75 buf[2] = (blocks >> 8) & 0xff; in sbc_emulate_readcapacity() 76 buf[3] = blocks & 0xff; in sbc_emulate_readcapacity() 101 unsigned long long blocks = dev->transport->get_blocks(dev); in sbc_emulate_readcapacity_16() local 104 buf[0] = (blocks >> 56) & 0xff; in sbc_emulate_readcapacity_16() 105 buf[1] = (blocks >> 48) & 0xff; in sbc_emulate_readcapacity_16() [all …]
|
/drivers/gpu/drm/msm/ |
D | NOTES | 4 display controller blocks at play: 12 Plus a handful of blocks around them for HDMI/DSI/etc output. 18 But, HDMI/DSI/etc blocks seem like they can be shared across multiple 19 display controller blocks. And I for sure don't want to have to deal 60 Also unlike MDP4, with MDP5 all the IRQs for other blocks (HDMI, DSI, 64 which blocks need to be allocated to the active pipes based on fetch
|
/drivers/media/i2c/ |
D | ad9389b.c | 71 u32 blocks; member 388 edid->segments ? "found" : "no", edid->blocks); in ad9389b_log_status() 682 if (edid->blocks == 0 || edid->blocks > 256) in ad9389b_get_edid() 690 if (edid->blocks + edid->start_block >= state->edid.segments * 2) in ad9389b_get_edid() 691 edid->blocks = state->edid.segments * 2 - edid->start_block; in ad9389b_get_edid() 693 128 * edid->blocks); in ad9389b_get_edid() 991 u32 blocks = state->edid.blocks; in edid_verify_crc() local 995 if ((segment + 1) * 2 <= blocks) in edid_verify_crc() 1044 state->edid.blocks = state->edid.data[0x7e] + 1; in ad9389b_check_edid_status() 1046 __func__, state->edid.blocks); in ad9389b_check_edid_status()
|
/drivers/staging/media/davinci_vpfe/ |
D | davinci-vpfe-mc.txt | 30 The Davinci VPFE is split into V4L2 subdevs, each of the blocks inside the VPFE 52 In general, there is a private ioctl for configuring each of the blocks 66 the isif, ipipe and resizer blocks respectively. These IOCTL's control several 67 functions in the blocks they control. VIDIOC_VPFE_ISIF_S_RAW_PARAMS IOCTL 73 the isif, ipipe and resizer blocks respectively.
|