Home
last modified time | relevance | path

Searched refs:bcount (Results 1 – 14 of 14) 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()
172 return (copy_to_user (buffer, &button_output_buffer, bcount)) in button_read()
173 ? -EFAULT : bcount; in button_read()
/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()
811 vip->bcount++; in vip_irq()
/drivers/media/v4l2-core/
Dvideobuf-core.c383 unsigned int bcount, unsigned int bsize, in __videobuf_mmap_setup() argument
396 for (i = 0; i < bcount; i++) { in __videobuf_mmap_setup()
427 unsigned int bcount, unsigned int bsize, in videobuf_mmap_setup() argument
432 ret = __videobuf_mmap_setup(q, bcount, bsize, memory); in videobuf_mmap_setup()
/drivers/rapidio/devices/
Dtsi721.h494 __le32 bcount; member
Dtsi721_dma.c334 bd_ptr->bcount = cpu_to_le32(((desc->rio_addr & 0x3) << 30) | in tsi721_fill_desc()
Dtsi721.c126 bd_ptr[0].bcount = cpu_to_le32((sys_size << 26) | 0x04); in tsi721_maint_dma()
/drivers/atm/
Dnicstar.c362 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/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()