Home
last modified time | relevance | path

Searched refs:bcnt (Results 1 – 25 of 28) sorted by relevance

12

/drivers/media/usb/pvrusb2/
Dpvrusb2-debugifc.c118 int bcnt = 0; in pvr2_debugifc_print_info() local
122 bcnt += ccnt; acnt -= ccnt; buf += ccnt; in pvr2_debugifc_print_info()
124 bcnt += ccnt; acnt -= ccnt; buf += ccnt; in pvr2_debugifc_print_info()
126 bcnt += ccnt; acnt -= ccnt; buf += ccnt; in pvr2_debugifc_print_info()
128 return bcnt; in pvr2_debugifc_print_info()
135 int bcnt = 0; in pvr2_debugifc_print_status() local
145 bcnt += ccnt; acnt -= ccnt; buf += ccnt; in pvr2_debugifc_print_status()
153 bcnt += ccnt; acnt -= ccnt; buf += ccnt; in pvr2_debugifc_print_status()
157 bcnt += ccnt; acnt -= ccnt; buf += ccnt; in pvr2_debugifc_print_status()
172 bcnt += ccnt; acnt -= ccnt; buf += ccnt; in pvr2_debugifc_print_status()
[all …]
Dpvrusb2-ioread.c391 unsigned int bcnt; in pvr2_ioread_read() local
427 bcnt = cp->sync_key_len - cp->sync_buf_offs; in pvr2_ioread_read()
431 bcnt = cp->c_data_len - cp->c_data_offs; in pvr2_ioread_read()
434 if (!bcnt) break; in pvr2_ioread_read()
437 if (bcnt > cnt) bcnt = cnt; in pvr2_ioread_read()
439 if (copy_to_user(buf,src,bcnt)) { in pvr2_ioread_read()
446 cnt -= bcnt; in pvr2_ioread_read()
447 buf += bcnt; in pvr2_ioread_read()
448 copied_cnt += bcnt; in pvr2_ioread_read()
453 cp->sync_buf_offs += bcnt; in pvr2_ioread_read()
[all …]
Dpvrusb2-i2c-core.c385 u16 tcnt,bcnt,offs; in pvr2_i2c_xfer() local
401 bcnt = tcnt; in pvr2_i2c_xfer()
402 if (bcnt > sizeof(hdw->cmd_buffer)-1) { in pvr2_i2c_xfer()
403 bcnt = sizeof(hdw->cmd_buffer)-1; in pvr2_i2c_xfer()
406 msgs[0].buf+offs,bcnt)) { in pvr2_i2c_xfer()
410 offs += bcnt; in pvr2_i2c_xfer()
411 tcnt -= bcnt; in pvr2_i2c_xfer()
432 u16 tcnt,bcnt,wcnt,offs; in pvr2_i2c_xfer() local
441 bcnt = tcnt; in pvr2_i2c_xfer()
442 if (bcnt > sizeof(hdw->cmd_buffer)-1) { in pvr2_i2c_xfer()
[all …]
Dpvrusb2-std.c282 unsigned int bcnt; in pvr2_std_fill() local
289 bcnt = pvr2_std_id_to_str(std->name,sizeof(std->name)-1,id); in pvr2_std_fill()
290 std->name[bcnt] = 0; in pvr2_std_fill()
309 unsigned int idx,bcnt,idx2; in pvr2_std_create_enum() local
315 bcnt = pvr2_std_id_to_str(buf,sizeof(buf),id); in pvr2_std_create_enum()
318 (int)id,bcnt,buf); in pvr2_std_create_enum()
343 bcnt = pvr2_std_id_to_str(buf,sizeof(buf),fmsk); in pvr2_std_create_enum()
347 bcnt,buf); in pvr2_std_create_enum()
Dpvrusb2-sysfs.c197 unsigned int bcnt, ccnt, ecnt; in show_enum() local
200 bcnt = 0; in show_enum()
202 pvr2_ctrl_get_valname(cip->cptr, val, buf + bcnt, in show_enum()
203 PAGE_SIZE - bcnt, &ccnt); in show_enum()
205 bcnt += ccnt; in show_enum()
206 if (bcnt >= PAGE_SIZE) break; in show_enum()
207 buf[bcnt] = '\n'; in show_enum()
208 bcnt++; in show_enum()
212 return bcnt; in show_enum()
221 unsigned int bcnt, ccnt; in show_bits() local
[all …]
Dpvrusb2-hdw.c1504 unsigned int pipe, fw_len, fw_done, bcnt, icnt; in pvr2_upload_firmware2() local
1589 bcnt = fw_len - fw_done; in pvr2_upload_firmware2()
1590 if (bcnt > FIRMWARE_CHUNK_SIZE) bcnt = FIRMWARE_CHUNK_SIZE; in pvr2_upload_firmware2()
1591 memcpy(fw_ptr, fw_entry->data + fw_done, bcnt); in pvr2_upload_firmware2()
1604 for (icnt = 0; icnt < bcnt/4 ; icnt++) in pvr2_upload_firmware2()
1607 ret |= usb_bulk_msg(hdw->usb_dev, pipe, fw_ptr,bcnt, in pvr2_upload_firmware2()
1609 ret |= (actual_length != bcnt); in pvr2_upload_firmware2()
1611 fw_done += bcnt; in pvr2_upload_firmware2()
1862 unsigned int bcnt; in pvr2_hdw_setup_std() local
1868 bcnt = pvr2_std_id_to_str(buf,sizeof(buf),hdw->std_mask_eeprom); in pvr2_hdw_setup_std()
[all …]
Dpvrusb2-io.c118 unsigned int *bcnt; in pvr2_buffer_remove() local
124 bcnt = &sp->i_bcount; in pvr2_buffer_remove()
129 bcnt = &sp->q_bcount; in pvr2_buffer_remove()
134 bcnt = &sp->r_bcount; in pvr2_buffer_remove()
142 (*bcnt) -= ccnt; in pvr2_buffer_remove()
145 pvr2_buffer_state_decode(bp->state), *bcnt, *cnt); in pvr2_buffer_remove()
/drivers/crypto/caam/
Ddpseci-debugfs.c12 u32 fqid, fcnt, bcnt; in dpseci_dbg_fqs_show() local
23 err = dpaa2_io_query_fq_count(NULL, fqid, &fcnt, &bcnt); in dpseci_dbg_fqs_show()
27 seq_printf(file, "%5d%16u%16u\n", fqid, fcnt, bcnt); in dpseci_dbg_fqs_show()
37 err = dpaa2_io_query_fq_count(NULL, fqid, &fcnt, &bcnt); in dpseci_dbg_fqs_show()
41 seq_printf(file, "%5d%16u%16u\n", fqid, fcnt, bcnt); in dpseci_dbg_fqs_show()
/drivers/infiniband/hw/mlx5/
Dodp.c671 u64 user_va, size_t bcnt, u32 *bytes_mapped, in pagefault_real_mr() argument
691 np = ib_umem_odp_map_dma_and_lock(odp, user_va, bcnt, access_mask, fault); in pagefault_real_mr()
713 *bytes_mapped += min_t(u32, new_mappings, bcnt); in pagefault_real_mr()
724 size_t bcnt, u32 *bytes_mapped, u32 flags) in pagefault_implicit_mr() argument
726 unsigned long end_idx = (user_va + bcnt - 1) >> MLX5_IMR_MTT_SHIFT; in pagefault_implicit_mr()
734 mlx5_imr_ksm_entries * MLX5_IMR_MTT_SIZE - user_va < bcnt)) in pagefault_implicit_mr()
738 while (bcnt) { in pagefault_implicit_mr()
756 len = min_t(u64, user_va + bcnt, ib_umem_end(umem_odp)) - in pagefault_implicit_mr()
764 bcnt -= len; in pagefault_implicit_mr()
809 static int pagefault_mr(struct mlx5_ib_mr *mr, u64 io_virt, size_t bcnt, in pagefault_mr() argument
[all …]
/drivers/block/aoe/
Daoecmd.c1475 int bcnt = 0; in setdbcnt() local
1480 if (bcnt == 0 || bcnt > (*t)->minbcnt) in setdbcnt()
1481 bcnt = (*t)->minbcnt; in setdbcnt()
1482 if (bcnt != d->maxbcnt) { in setdbcnt()
1483 d->maxbcnt = bcnt; in setdbcnt()
1485 d->aoemajor, d->aoeminor, bcnt); in setdbcnt()
1490 setifbcnt(struct aoetgt *t, struct net_device *nd, int bcnt) in setifbcnt() argument
1497 minbcnt = bcnt; in setifbcnt()
1504 p->bcnt = bcnt; /* we're updating */ in setifbcnt()
1506 } else if (minbcnt > p->bcnt) in setifbcnt()
[all …]
Daoe.h135 int bcnt; member
/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth-debugfs.c63 u32 fcnt, bcnt; in dpaa2_dbg_fqs_show() local
72 err = dpaa2_io_query_fq_count(NULL, fq->fqid, &fcnt, &bcnt); in dpaa2_dbg_fqs_show()
Ddpaa2-ethtool.c232 u32 fcnt, bcnt; in dpaa2_eth_get_ethtool_stats() local
289 &fcnt, &bcnt); in dpaa2_eth_get_ethtool_stats()
297 bcnt_tx_total += bcnt; in dpaa2_eth_get_ethtool_stats()
300 bcnt_rx_total += bcnt; in dpaa2_eth_get_ethtool_stats()
/drivers/dma/ti/
Dk3-udma.c238 u32 bcnt; /* number of bytes completed since the start of the channel */ member
691 uc->bcnt = 0; in udma_reset_counters()
937 u32 peer_bcnt, bcnt; in udma_is_desc_really_done() local
945 bcnt = udma_tchanrt_read(uc, UDMA_CHAN_RT_BCNT_REG); in udma_is_desc_really_done()
948 if (peer_bcnt < bcnt) { in udma_is_desc_really_done()
949 uc->tx_drain.residue = bcnt - peer_bcnt; in udma_is_desc_really_done()
1009 uc->bcnt += d->residue; in udma_check_tx_completion()
1063 uc->bcnt += d->residue; in udma_ring_irq_handler()
1100 uc->bcnt += d->residue; in udma_udma_irq_handler()
2716 u32 bcnt = 0; in udma_tx_status() local
[all …]
Dedma.c961 int bcnt, ccnt, cidx; in edma_config_pset() local
988 bcnt = dma_length / acnt - ccnt * (SZ_64K - 1); in edma_config_pset()
993 if (bcnt) in edma_config_pset()
996 bcnt = SZ_64K - 1; in edma_config_pset()
1009 bcnt = burst; in edma_config_pset()
1010 ccnt = dma_length / (acnt * bcnt); in edma_config_pset()
1015 cidx = acnt * bcnt; in edma_config_pset()
1054 param->a_b_cnt = bcnt << 16 | acnt; in edma_config_pset()
/drivers/infiniband/core/
Dumem_odp.c353 u64 bcnt, u64 access_mask, bool fault) in ib_umem_odp_map_dma_and_lock() argument
368 user_virt + bcnt > ib_umem_end(umem_odp)) in ib_umem_odp_map_dma_and_lock()
386 range.end = ALIGN(user_virt + bcnt, 1UL << page_shift); in ib_umem_odp_map_dma_and_lock()
/drivers/net/ethernet/nvidia/
Dforcedeth.c2218 u32 bcnt; in nv_start_xmit() local
2257 bcnt = (size > NV_TX2_TSO_MAX_SIZE) ? NV_TX2_TSO_MAX_SIZE : size; in nv_start_xmit()
2259 skb->data + offset, bcnt, in nv_start_xmit()
2273 np->put_tx_ctx->dma_len = bcnt; in nv_start_xmit()
2276 put_tx->flaglen = cpu_to_le32((bcnt-1) | tx_flags); in nv_start_xmit()
2279 offset += bcnt; in nv_start_xmit()
2280 size -= bcnt; in nv_start_xmit()
2297 bcnt = (frag_size > NV_TX2_TSO_MAX_SIZE) ? NV_TX2_TSO_MAX_SIZE : frag_size; in nv_start_xmit()
2301 bcnt, in nv_start_xmit()
2323 np->put_tx_ctx->dma_len = bcnt; in nv_start_xmit()
[all …]
/drivers/usb/dwc2/
Dhcd_intr.c188 u32 grxsts, chnum, bcnt, dpid, pktsts; in dwc2_rx_fifo_level_intr() local
202 bcnt = (grxsts & GRXSTS_BYTECNT_MASK) >> GRXSTS_BYTECNT_SHIFT; in dwc2_rx_fifo_level_intr()
209 dev_vdbg(hsotg->dev, " Count = %d\n", bcnt); in dwc2_rx_fifo_level_intr()
218 if (bcnt > 0) { in dwc2_rx_fifo_level_intr()
219 dwc2_read_packet(hsotg, chan->xfer_buf, bcnt); in dwc2_rx_fifo_level_intr()
222 chan->xfer_count += bcnt; in dwc2_rx_fifo_level_intr()
223 chan->xfer_buf += bcnt; in dwc2_rx_fifo_level_intr()
/drivers/edac/
Dcpc925_edac.c438 u32 bcnt, rank, col, bank, row; in cpc925_mc_get_pfn() local
443 bcnt = (mear & MEAR_BCNT_MASK) >> MEAR_BCNT_SHIFT; in cpc925_mc_get_pfn()
463 col += bcnt; in cpc925_mc_get_pfn()
/drivers/soc/fsl/dpio/
Ddpio-service.c728 u32 *fcnt, u32 *bcnt) in dpaa2_io_query_fq_count() argument
746 *bcnt = qbman_fq_state_byte_count(&state); in dpaa2_io_query_fq_count()
/drivers/net/wan/
Dfarsync.c138 volatile u16 bcnt; /* 2s complement of packet size in low 15 bits. member
149 volatile u16 bcnt; /* 2s complement of buffer size in low 15 bits. member
1021 FST_WRW(card, rxDescrRing[pi][i].bcnt, cnv_bcnt(LEN_RX_BUFFER)); in fst_rx_config()
1049 FST_WRW(card, txDescrRing[pi][i].bcnt, 0); in fst_tx_config()
1372 FST_WRW(card, txDescrRing[pi][port->txpos].bcnt, in do_bottom_half_tx()
/drivers/net/ethernet/amd/
Dni65.c876 int bcnt = 32; in ni65_interrupt() local
882 while(--bcnt) { in ni65_interrupt()
/drivers/staging/octeon-usb/
Docteon-hcd.h821 __BITFIELD_FIELD(u32 bcnt : 11,
Docteon-hcd.c1165 if (!rx_status.s.bcnt) in cvmx_usb_poll_rx_fifo()
1169 bytes = rx_status.s.bcnt; in cvmx_usb_poll_rx_fifo()
/drivers/scsi/lpfc/
Dlpfc_scsi.c340 int bcnt, bpl_size; in lpfc_new_scsi_buf_s3() local
351 for (bcnt = 0; bcnt < num_to_alloc; bcnt++) { in lpfc_new_scsi_buf_s3()
455 return bcnt; in lpfc_new_scsi_buf_s3()

12