Home
last modified time | relevance | path

Searched refs:bcount (Results 1 – 25 of 30) sorted by relevance

12

/Linux-v4.19/drivers/media/pci/cx25821/
Dcx25821-sram.h241 #define BYTES_TO_DWORDS(bcount) ((bcount) >> 2) argument
242 #define BYTES_TO_QWORDS(bcount) ((bcount) >> 3) argument
243 #define BYTES_TO_OWORDS(bcount) ((bcount) >> 4) argument
/Linux-v4.19/drivers/ide/
Dide-atapi.c333 void ide_read_bcount_and_ireason(ide_drive_t *drive, u16 *bcount, u8 *ireason) in ide_read_bcount_and_ireason() argument
340 *bcount = (tf.lbah << 8) | tf.lbam; in ide_read_bcount_and_ireason()
407 u16 bcount; in ide_pc_intr() local
517 ide_read_bcount_and_ireason(drive, &bcount, &ireason); in ide_pc_intr()
519 if (ide_check_ireason(drive, rq, bcount, ireason, write)) in ide_pc_intr()
522 done = min_t(unsigned int, bcount, cmd->nleft); in ide_pc_intr()
528 bcount -= done; in ide_pc_intr()
530 if (bcount) in ide_pc_intr()
531 ide_pad_transfer(drive, write, bcount); in ide_pc_intr()
534 scsi_req(rq)->cmd[0], done, bcount, scsi_req(rq)->resid_len); in ide_pc_intr()
[all …]
Dide-dma-sff.c124 u32 cur_addr, cur_len, xcount, bcount; in ide_build_dmatable() local
139 bcount = 0x10000 - (cur_addr & 0xffff); in ide_build_dmatable()
140 if (bcount > cur_len) in ide_build_dmatable()
141 bcount = cur_len; in ide_build_dmatable()
143 xcount = bcount & 0xffff; in ide_build_dmatable()
154 cur_addr += bcount; in ide_build_dmatable()
155 cur_len -= bcount; in ide_build_dmatable()
Dtx4939ide.c244 u32 cur_addr, cur_len, bcount; in tx4939ide_build_dmatable() local
257 bcount = 0x10000 - (cur_addr & 0xffff); in tx4939ide_build_dmatable()
258 if (bcount > cur_len) in tx4939ide_build_dmatable()
259 bcount = cur_len; in tx4939ide_build_dmatable()
264 if (bcount == 0x10000) in tx4939ide_build_dmatable()
265 bcount = 0x8000; in tx4939ide_build_dmatable()
266 *table++ = bcount & 0xffff; in tx4939ide_build_dmatable()
268 cur_addr += bcount; in tx4939ide_build_dmatable()
269 cur_len -= bcount; in tx4939ide_build_dmatable()
Dsgiioc4.c434 u32 bcount = in sgiioc4_build_dmatable() local
437 if (bcount > cur_len) in sgiioc4_build_dmatable()
438 bcount = cur_len; in sgiioc4_build_dmatable()
451 *table = cpu_to_be32(bcount); in sgiioc4_build_dmatable()
454 cur_addr += bcount; in sgiioc4_build_dmatable()
455 cur_len -= bcount; in sgiioc4_build_dmatable()
Dide-tape.c991 static void idetape_pad_zeros(ide_drive_t *drive, int bcount) in idetape_pad_zeros() argument
997 while (bcount) { in idetape_pad_zeros()
998 unsigned int count = min(tape->buffer_size, bcount); in idetape_pad_zeros()
1001 bcount -= count; in idetape_pad_zeros()
/Linux-v4.19/drivers/char/
Dnwbutton.c33 static int bcount; /* The number of bytes in the buffer */ variable
136 bcount = sprintf (button_output_buffer, "%d\n", button_press_count); in button_sequence_finished()
174 return (copy_to_user (buffer, &button_output_buffer, bcount)) in button_read()
175 ? -EFAULT : bcount; in button_read()
/Linux-v4.19/fs/xfs/scrub/
Dquota.c102 unsigned long long bcount; in xchk_quota_item() local
158 bcount = be64_to_cpu(d->d_bcount); in xchk_quota_item()
169 if (mp->m_sb.sb_dblocks < bcount) in xchk_quota_item()
173 if (mp->m_sb.sb_dblocks < bcount) in xchk_quota_item()
185 if (id != 0 && bhard != 0 && bcount > bhard) in xchk_quota_item()
/Linux-v4.19/crypto/
Dtcrypt.c190 int bcount; in test_mb_aead_jiffies() local
198 for (start = jiffies, end = start + secs * HZ, bcount = 0; in test_mb_aead_jiffies()
199 time_before(jiffies, end); bcount++) { in test_mb_aead_jiffies()
206 bcount * num_mb, secs, (long)bcount * blen * num_mb); in test_mb_aead_jiffies()
461 int bcount; in test_aead_jiffies() local
464 for (start = jiffies, end = start + secs * HZ, bcount = 0; in test_aead_jiffies()
465 time_before(jiffies, end); bcount++) { in test_aead_jiffies()
476 bcount, secs, (long)bcount * blen); in test_aead_jiffies()
751 int bcount; in test_mb_ahash_jiffies() local
759 for (start = jiffies, end = start + secs * HZ, bcount = 0; in test_mb_ahash_jiffies()
[all …]
/Linux-v4.19/drivers/rapidio/devices/
Dtsi721_dma.c355 bd_ptr->bcount = cpu_to_le32(((desc->rio_addr & 0x3) << 30) | in tsi721_desc_fill_init()
371 tsi721_desc_fill_end(struct tsi721_dma_desc *bd_ptr, u32 bcount, bool interrupt) in tsi721_desc_fill_end() argument
379 bd_ptr->bcount |= cpu_to_le32(bcount & TSI721_DMAD_BCOUNT1); in tsi721_desc_fill_end()
428 u32 bcount; in tsi721_submit_sg() local
449 bcount = 0; in tsi721_submit_sg()
483 bcount + sg_dma_len(sg) <= TSI721_BDMA_MAX_BCOUNT) { in tsi721_submit_sg()
485 bcount += sg_dma_len(sg); in tsi721_submit_sg()
489 tsi721_desc_fill_end(bd_ptr, bcount, 0); in tsi721_submit_sg()
491 bdma_chan->id, bcount); in tsi721_submit_sg()
516 bcount = sg_dma_len(sg); in tsi721_submit_sg()
[all …]
Dtsi721.h532 __le32 bcount; member
/Linux-v4.19/include/media/
Dvideobuf-core.h227 unsigned int bcount, unsigned int bsize,
230 unsigned int bcount, unsigned int bsize,
/Linux-v4.19/fs/xfs/
Dxfs_itable.c551 int bcount; in xfs_inumbers() local
561 bcount = min(left, (int)(PAGE_SIZE / sizeof(*buffer))); in xfs_inumbers()
562 buffer = kmem_zalloc(bcount * sizeof(*buffer), KM_SLEEP); in xfs_inumbers()
593 if (++bufidx == bcount) { in xfs_inumbers()
Dxfs_log_recover.c479 int bcount; in xlog_find_verify_cycle() local
481 bcount = min(bufblks, (start_blk + nbblks - i)); in xlog_find_verify_cycle()
483 error = xlog_bread(log, i, bcount, bp, &buf); in xlog_find_verify_cycle()
487 for (j = 0; j < bcount; j++) { in xlog_find_verify_cycle()
1697 int bcount, endcount; in xlog_write_log_records() local
1699 bcount = min(bufblks, end_block - start_block); in xlog_write_log_records()
1700 endcount = bcount - j; in xlog_write_log_records()
/Linux-v4.19/sound/soc/amd/
Dacp.h169 } bcount; member
Dacp-pcm-dma.c1016 byte_count.bcount.high = acp_reg_read(rtd->acp_mmio, in acp_get_byte_count()
1018 byte_count.bcount.low = acp_reg_read(rtd->acp_mmio, in acp_get_byte_count()
/Linux-v4.19/drivers/infiniband/hw/mlx5/
Dodp.c127 pklm->bcount = cpu_to_be32(MLX5_IMR_MTT_SIZE); in mlx5_odp_populate_klm()
138 pklm->bcount = cpu_to_be32(MLX5_IMR_MTT_SIZE); in mlx5_odp_populate_klm()
707 if (offset >= be32_to_cpu(pklm->bcount)) { in pagefault_single_data_segment()
708 offset -= be32_to_cpu(pklm->bcount); in pagefault_single_data_segment()
721 be32_to_cpu(pklm->bcount) - offset); in pagefault_single_data_segment()
Dqp.c3812 int bcount = mr->desc_size * mr->ndescs; in set_reg_data_seg() local
3815 dseg->byte_count = cpu_to_be32(ALIGN(bcount, 64)); in set_reg_data_seg()
4043 data_klm->bcount = cpu_to_be32(data_len); in set_sig_data_segment()
4084 data_sentry->bcount = cpu_to_be16(block_size); in set_sig_data_segment()
4089 prot_sentry->bcount = cpu_to_be16(prot_size); in set_sig_data_segment()
/Linux-v4.19/include/linux/mlx5/
Dqp.h448 __be32 bcount; member
455 __be16 bcount; member
/Linux-v4.19/drivers/media/pci/sta2x11/
Dsta2x11_vip.c152 int tcount, bcount; member
259 vip->bcount = 0; in vip_active_buf_next()
283 vip->bcount = 0; in queue_setup()
816 vip->bcount++; in vip_irq()
/Linux-v4.19/drivers/media/v4l2-core/
Dvideobuf-core.c387 unsigned int bcount, unsigned int bsize, in __videobuf_mmap_setup() argument
400 for (i = 0; i < bcount; i++) { in __videobuf_mmap_setup()
431 unsigned int bcount, unsigned int bsize, in videobuf_mmap_setup() argument
436 ret = __videobuf_mmap_setup(q, bcount, bsize, memory); in videobuf_mmap_setup()
/Linux-v4.19/fs/udf/
Dinode.c85 static int udf_read_extent_cache(struct inode *inode, loff_t bcount, in udf_read_extent_cache() argument
92 if ((iinfo->cached_extent.lstart <= bcount) && in udf_read_extent_cache()
2254 loff_t lbcount = 0, bcount = (loff_t) block << blocksize_bits; in inode_bmap() local
2259 if (!udf_read_extent_cache(inode, bcount, &lbcount, pos)) { in inode_bmap()
2268 *offset = (bcount - lbcount) >> blocksize_bits; in inode_bmap()
2273 } while (lbcount <= bcount); in inode_bmap()
2276 *offset = (bcount + *elen - lbcount) >> blocksize_bits; in inode_bmap()
/Linux-v4.19/fs/ext4/
Dnamei.c595 unsigned bcount; member
694 unsigned bcount = 0; in dx_show_entries() local
713 bcount += stats.bcount; in dx_show_entries()
716 if (bcount) in dx_show_entries()
718 levels ? "" : " ", names, space/bcount, in dx_show_entries()
719 (space/bcount)*100/blocksize); in dx_show_entries()
720 return (struct stats) { names, space, bcount}; in dx_show_entries()
/Linux-v4.19/drivers/atm/
Dnicstar.c352 int bcount; in ns_init_card() local
686 if ((bcount = in ns_init_card()
690 i, j, bcount); in ns_init_card()
716 if ((bcount = in ns_init_card()
720 i, j, bcount); in ns_init_card()
/Linux-v4.19/fs/reiserfs/
Djournal.c2993 unsigned long bcount = journal->j_bcount; in let_transaction_grow() local
3009 if (bcount == journal->j_bcount) in let_transaction_grow()
3011 bcount = journal->j_bcount; in let_transaction_grow()

12