Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/media/pci/cx25821/
Dcx25821-sram.h245 #define BYTES_TO_DWORDS(bcount) ((bcount) >> 2) argument
246 #define BYTES_TO_QWORDS(bcount) ((bcount) >> 3) argument
247 #define BYTES_TO_OWORDS(bcount) ((bcount) >> 4) argument
/linux-4.4.14/drivers/ide/
Dide-atapi.c323 void ide_read_bcount_and_ireason(ide_drive_t *drive, u16 *bcount, u8 *ireason) in ide_read_bcount_and_ireason() argument
330 *bcount = (tf.lbah << 8) | tf.lbam; in ide_read_bcount_and_ireason()
397 u16 bcount; in ide_pc_intr() local
506 ide_read_bcount_and_ireason(drive, &bcount, &ireason); in ide_pc_intr()
508 if (ide_check_ireason(drive, rq, bcount, ireason, write)) in ide_pc_intr()
511 done = min_t(unsigned int, bcount, cmd->nleft); in ide_pc_intr()
517 bcount -= done; in ide_pc_intr()
519 if (bcount) in ide_pc_intr()
520 ide_pad_transfer(drive, write, bcount); in ide_pc_intr()
523 rq->cmd[0], done, bcount, 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.c989 static void idetape_pad_zeros(ide_drive_t *drive, int bcount) in idetape_pad_zeros() argument
995 while (bcount) { in idetape_pad_zeros()
996 unsigned int count = min(tape->buffer_size, bcount); in idetape_pad_zeros()
999 bcount -= count; in idetape_pad_zeros()
/linux-4.4.14/drivers/char/
Dnwbutton.c33 static int bcount; /* The number of bytes in the buffer */ variable
137 bcount = sprintf (button_output_buffer, "%d\n", button_press_count); in button_sequence_finished()
175 return (copy_to_user (buffer, &button_output_buffer, bcount)) in button_read()
176 ? -EFAULT : bcount; in button_read()
/linux-4.4.14/crypto/
Dtcrypt.c98 int bcount; in test_cipher_jiffies() local
101 for (start = jiffies, end = start + secs * HZ, bcount = 0; in test_cipher_jiffies()
102 time_before(jiffies, end); bcount++) { in test_cipher_jiffies()
113 bcount, secs, (long)bcount * blen); in test_cipher_jiffies()
182 int bcount; in test_aead_jiffies() local
185 for (start = jiffies, end = start + secs * HZ, bcount = 0; in test_aead_jiffies()
186 time_before(jiffies, end); bcount++) { in test_aead_jiffies()
197 bcount, secs, (long)bcount * blen); in test_aead_jiffies()
562 int bcount; in test_hash_jiffies_digest() local
565 for (start = jiffies, end = start + secs * HZ, bcount = 0; in test_hash_jiffies_digest()
[all …]
/linux-4.4.14/drivers/rapidio/devices/
Dtsi721_dma.c348 bd_ptr->bcount = cpu_to_le32(((desc->rio_addr & 0x3) << 30) | in tsi721_desc_fill_init()
364 tsi721_desc_fill_end(struct tsi721_dma_desc *bd_ptr, u32 bcount, bool interrupt) in tsi721_desc_fill_end() argument
372 bd_ptr->bcount |= cpu_to_le32(bcount & TSI721_DMAD_BCOUNT1); in tsi721_desc_fill_end()
421 u32 bcount; in tsi721_submit_sg() local
441 bcount = 0; in tsi721_submit_sg()
475 bcount + sg_dma_len(sg) <= TSI721_BDMA_MAX_BCOUNT) { in tsi721_submit_sg()
477 bcount += sg_dma_len(sg); in tsi721_submit_sg()
481 tsi721_desc_fill_end(bd_ptr, bcount, 0); in tsi721_submit_sg()
484 __func__, bcount); in tsi721_submit_sg()
510 bcount = sg_dma_len(sg); in tsi721_submit_sg()
[all …]
Dtsi721.h492 __le32 bcount; member
Dtsi721.c126 bd_ptr[0].bcount = cpu_to_le32((sys_size << 26) | 0x04); in tsi721_maint_dma()
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-crypto.c204 int bcount, err = 0; in cfs_crypto_performance_test() local
209 for (start = jiffies, end = start + sec * HZ, bcount = 0; in cfs_crypto_performance_test()
210 time_before(jiffies, end); bcount++) { in cfs_crypto_performance_test()
226 tmp = ((bcount * buf_len / jiffies_to_msecs(end - start)) * in cfs_crypto_performance_test()
/linux-4.4.14/include/media/
Dvideobuf-core.h227 unsigned int bcount, unsigned int bsize,
230 unsigned int bcount, unsigned int bsize,
/linux-4.4.14/fs/xfs/
Dxfs_itable.c567 int bcount; in xfs_inumbers() local
577 bcount = MIN(left, (int)(PAGE_SIZE / sizeof(*buffer))); in xfs_inumbers()
578 buffer = kmem_alloc(bcount * sizeof(*buffer), KM_SLEEP); in xfs_inumbers()
609 if (++bufidx == bcount) { in xfs_inumbers()
Dxfs_log_recover.c465 int bcount; in xlog_find_verify_cycle() local
467 bcount = min(bufblks, (start_blk + nbblks - i)); in xlog_find_verify_cycle()
469 error = xlog_bread(log, i, bcount, bp, &buf); in xlog_find_verify_cycle()
473 for (j = 0; j < bcount; j++) { in xlog_find_verify_cycle()
1268 int bcount, endcount; in xlog_write_log_records() local
1270 bcount = min(bufblks, end_block - start_block); in xlog_write_log_records()
1271 endcount = bcount - j; in xlog_write_log_records()
Dxfs_trace.h875 __field(unsigned long long, bcount)
888 __entry->bcount = be64_to_cpu(dqp->q_core.d_bcount);
907 __entry->bcount,
/linux-4.4.14/sound/oss/
Dpas2_pcm.c347 static int pas_audio_prepare_for_input(int dev, int bsize, int bcount) in pas_audio_prepare_for_input() argument
353 static int pas_audio_prepare_for_output(int dev, int bsize, int bcount) in pas_audio_prepare_for_output() argument
Dsb_audio.c252 static int sb1_audio_prepare_for_input(int dev, int bsize, int bcount) in sb1_audio_prepare_for_input() argument
267 static int sb1_audio_prepare_for_output(int dev, int bsize, int bcount) in sb1_audio_prepare_for_output() argument
465 static int sbpro_audio_prepare_for_input(int dev, int bsize, int bcount) in sbpro_audio_prepare_for_input() argument
493 static int sbpro_audio_prepare_for_output(int dev, int bsize, int bcount) in sbpro_audio_prepare_for_output() argument
631 static int sb16_audio_prepare_for_input(int dev, int bsize, int bcount) in sb16_audio_prepare_for_input() argument
657 static int sb16_audio_prepare_for_output(int dev, int bsize, int bcount) in sb16_audio_prepare_for_output() argument
Dsb_ess.c438 static int ess_audio_prepare_for_input(int dev, int bsize, int bcount) in ess_audio_prepare_for_input() argument
459 static int ess_audio_prepare_for_output_audio1 (int dev, int bsize, int bcount) in ess_audio_prepare_for_output_audio1() argument
480 static int ess_audio_prepare_for_output_audio2 (int dev, int bsize, int bcount) in ess_audio_prepare_for_output_audio2() argument
518 static int ess_audio_prepare_for_output(int dev, int bsize, int bcount) in ess_audio_prepare_for_output() argument
528 return ess_audio_prepare_for_output_audio2 (dev, bsize, bcount); in ess_audio_prepare_for_output()
530 return ess_audio_prepare_for_output_audio1 (dev, bsize, bcount); in ess_audio_prepare_for_output()
Dvidc.c321 static int vidc_audio_prepare_for_input(int dev, int bsize, int bcount) in vidc_audio_prepare_for_input() argument
338 static int vidc_audio_prepare_for_output(int dev, int bsize, int bcount) in vidc_audio_prepare_for_output() argument
Dad1848.c191 static int ad1848_prepare_for_output(int dev, int bsize, int bcount);
192 static int ad1848_prepare_for_input(int dev, int bsize, int bcount);
1123 static int ad1848_prepare_for_output(int dev, int bsize, int bcount) in ad1848_prepare_for_output() argument
1191 static int ad1848_prepare_for_input(int dev, int bsize, int bcount) in ad1848_prepare_for_input() argument
Dwaveartist.c567 waveartist_prepare_for_input(int dev, int bsize, int bcount) in waveartist_prepare_for_input() argument
624 waveartist_prepare_for_output(int dev, int bsize, int bcount) in waveartist_prepare_for_output() argument
/linux-4.4.14/arch/blackfin/include/asm/
Dbfin_dma.h159 __BFP(bcount);
/linux-4.4.14/include/linux/mlx5/
Dqp.h381 __be32 bcount; member
388 __be16 bcount; member
/linux-4.4.14/drivers/media/pci/sta2x11/
Dsta2x11_vip.c152 int tcount, bcount; member
259 vip->bcount = 0; in vip_active_buf_next()
284 vip->bcount = 0; in queue_setup()
812 vip->bcount++; in vip_irq()
/linux-4.4.14/drivers/media/v4l2-core/
Dvideobuf-core.c385 unsigned int bcount, unsigned int bsize, in __videobuf_mmap_setup() argument
398 for (i = 0; i < bcount; i++) { in __videobuf_mmap_setup()
429 unsigned int bcount, unsigned int bsize, in videobuf_mmap_setup() argument
434 ret = __videobuf_mmap_setup(q, bcount, bsize, memory); in videobuf_mmap_setup()
/linux-4.4.14/fs/udf/
Dinode.c90 static int udf_read_extent_cache(struct inode *inode, loff_t bcount, in udf_read_extent_cache() argument
97 if ((iinfo->cached_extent.lstart <= bcount) && in udf_read_extent_cache()
2250 loff_t lbcount = 0, bcount = in inode_bmap() local
2256 if (!udf_read_extent_cache(inode, bcount, &lbcount, pos)) { in inode_bmap()
2265 *offset = (bcount - lbcount) >> blocksize_bits; in inode_bmap()
2270 } while (lbcount <= bcount); in inode_bmap()
2273 *offset = (bcount + *elen - lbcount) >> blocksize_bits; in inode_bmap()
/linux-4.4.14/fs/ext4/
Dnamei.c593 unsigned bcount; member
690 unsigned bcount = 0; in dx_show_entries() local
709 bcount += stats.bcount; in dx_show_entries()
712 if (bcount) in dx_show_entries()
714 levels ? "" : " ", names, space/bcount, in dx_show_entries()
715 (space/bcount)*100/blocksize); in dx_show_entries()
716 return (struct stats) { names, space, bcount}; in dx_show_entries()
/linux-4.4.14/drivers/atm/
Dnicstar.c354 int bcount; in ns_init_card() local
687 if ((bcount = in ns_init_card()
691 i, j, bcount); in ns_init_card()
717 if ((bcount = in ns_init_card()
721 i, j, bcount); in ns_init_card()
/linux-4.4.14/drivers/infiniband/hw/mlx5/
Dqp.c2039 int bcount = mr->desc_size * mr->ndescs; in set_reg_data_seg() local
2042 dseg->byte_count = cpu_to_be32(ALIGN(bcount, 64)); in set_reg_data_seg()
2252 data_klm->bcount = cpu_to_be32(data_len); in set_sig_data_segment()
2293 data_sentry->bcount = cpu_to_be16(block_size); in set_sig_data_segment()
2298 prot_sentry->bcount = cpu_to_be16(prot_size); in set_sig_data_segment()
/linux-4.4.14/fs/reiserfs/
Djournal.c2991 unsigned long bcount = journal->j_bcount; in let_transaction_grow() local
3007 if (bcount == journal->j_bcount) in let_transaction_grow()
3009 bcount = journal->j_bcount; in let_transaction_grow()
/linux-4.4.14/fs/ocfs2/
Dalloc.c7275 u64 discard, bcount; in ocfs2_trim_extent() local
7277 bcount = ocfs2_clusters_to_blocks(sb, count); in ocfs2_trim_extent()
7281 trace_ocfs2_trim_extent(sb, (unsigned long long)discard, bcount); in ocfs2_trim_extent()
7283 return sb_issue_discard(sb, discard, bcount, GFP_NOFS, 0); in ocfs2_trim_extent()
/linux-4.4.14/drivers/isdn/hardware/mISDN/
Dhfcmulti.c4820 int bcount = 0; in init_e1_port() local
4867 bcount++; in init_e1_port()
4869 dch->dev.nrbchan = bcount; in init_e1_port()
/linux-4.4.14/arch/blackfin/kernel/
Ddebug-mmrs.c325 __HMDMA(BCOUNT, bcount); in bfin_debug_mmrs_hmdma()