Home
last modified time | relevance | path

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

/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()
/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
/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()
/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()
/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()
/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()
/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()
/drivers/atm/
Dnicstar.c354 int bcount; in ns_init_card() local
696 if ((bcount = in ns_init_card()
700 i, j, bcount); in ns_init_card()
726 if ((bcount = in ns_init_card()
730 i, j, bcount); in ns_init_card()
/drivers/infiniband/hw/mlx5/
Dqp.c2068 int bcount = mr->desc_size * mr->ndescs; in set_reg_data_seg() local
2071 dseg->byte_count = cpu_to_be32(ALIGN(bcount, 64)); in set_reg_data_seg()
2281 data_klm->bcount = cpu_to_be32(data_len); in set_sig_data_segment()
2322 data_sentry->bcount = cpu_to_be16(block_size); in set_sig_data_segment()
2327 prot_sentry->bcount = cpu_to_be16(prot_size); in set_sig_data_segment()
/drivers/isdn/hardware/mISDN/
Dhfcmulti.c4821 int bcount = 0; in init_e1_port() local
4868 bcount++; in init_e1_port()
4870 dch->dev.nrbchan = bcount; in init_e1_port()