Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/
Denetc.c180 if (unlikely(i == tx_ring->bd_count)) { in enetc_map_tx_buffs()
217 if (unlikely(i == tx_ring->bd_count)) { in enetc_map_tx_buffs()
257 i = tx_ring->bd_count; in enetc_map_tx_buffs()
365 return pi >= ci ? pi - ci : tx_ring->bd_count - ci + pi; in enetc_bd_ready_count()
443 if (unlikely(i == tx_ring->bd_count)) { in enetc_clean_tx_ring()
525 if (unlikely(i == rx_ring->bd_count)) { in enetc_refill_rx_ring()
744 if (unlikely(++i == rx_ring->bd_count)) in enetc_clean_rx_ring()
755 if (unlikely(++i == rx_ring->bd_count)) in enetc_clean_rx_ring()
780 if (unlikely(++i == rx_ring->bd_count)) in enetc_clean_rx_ring()
835 r->bd_base = dma_alloc_coherent(r->dev, r->bd_count * bd_size, in enetc_dma_alloc_bdr()
[all …]
Denetc_cbdr.c23 i = (i + 1) % ring->bd_count; in enetc_clean_cbdr()
31 return (r->next_to_clean - r->next_to_use - 1 + r->bd_count) % in enetc_cbd_unused()
32 r->bd_count; in enetc_cbd_unused()
53 i = (i + 1) % ring->bd_count; in enetc_send_cmd()
Denetc.h62 int bd_count; /* # of BDs */ member
84 if (unlikely(++*i == bdr->bd_count)) in enetc_bdr_idx_inc()
93 return bdr->bd_count + bdr->next_to_clean - bdr->next_to_use - 1; in enetc_bd_unused()
103 int bd_count; /* # of BDs */ member
132 if (unlikely(++i == rx_ring->bd_count)) in enetc_rxbd_next()
Denetc_pf.c1102 si->cbd_ring.bd_count = ENETC_CBDR_DEFAULT_SIZE; in enetc_init_unused_port()
/kernel/linux/linux-5.10/drivers/dma/bestcomm/
Dbestcomm.c50 bcom_task_alloc(int bd_count, int bd_size, int priv_size) in bcom_task_alloc() argument
89 if (bd_count) { in bcom_task_alloc()
90 tsk->cookie = kmalloc_array(bd_count, sizeof(void *), in bcom_task_alloc()
95 tsk->bd = bcom_sram_alloc(bd_count * bd_size, 4, &tsk->bd_pa); in bcom_task_alloc()
98 memset_io(tsk->bd, 0x00, bd_count * bd_size); in bcom_task_alloc()
100 tsk->num_bd = bd_count; in bcom_task_alloc()
/kernel/linux/linux-5.10/drivers/scsi/bnx2fc/
Dbnx2fc_io.c1656 int bd_count = 0; in bnx2fc_map_sg() local
1674 bd_count); in bnx2fc_map_sg()
1678 bd[bd_count].buf_addr_lo = addr & 0xffffffff; in bnx2fc_map_sg()
1679 bd[bd_count].buf_addr_hi = addr >> 32; in bnx2fc_map_sg()
1680 bd[bd_count].buf_len = (u16)sg_len; in bnx2fc_map_sg()
1681 bd[bd_count].flags = 0; in bnx2fc_map_sg()
1683 bd_count += sg_frags; in bnx2fc_map_sg()
1690 return bd_count; in bnx2fc_map_sg()
1697 int bd_count; in bnx2fc_build_bd_list_from_sg() local
1700 bd_count = bnx2fc_map_sg(io_req); in bnx2fc_build_bd_list_from_sg()
[all …]
Dbnx2fc_hwi.c1504 int bd_count; in bnx2fc_init_seq_cleanup_task() local
1533 bd_count = orig_io_req->bd_tbl->bd_valid; in bnx2fc_init_seq_cleanup_task()
1536 for (i = 0; i < bd_count; i++) { in bnx2fc_init_seq_cleanup_task()
1549 bd_count; in bnx2fc_init_seq_cleanup_task()
1559 sgl->mul_sgl.sgl_size = bd_count; in bnx2fc_init_seq_cleanup_task()
1717 int bd_count; in bnx2fc_init_task() local
1730 bd_count = bd_tbl->bd_valid; in bnx2fc_init_task()
1733 if ((dev_type == TYPE_DISK) && (bd_count == 1)) { in bnx2fc_init_task()
1813 bd_count = bd_tbl->bd_valid; in bnx2fc_init_task()
1816 if (bd_count == 1) { in bnx2fc_init_task()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/bnx2i/
Dbnx2i_iscsi.c149 int bd_count = 0; in bnx2i_map_scsi_sg() local
162 bd[bd_count].buffer_addr_lo = addr & 0xffffffff; in bnx2i_map_scsi_sg()
163 bd[bd_count].buffer_addr_hi = addr >> 32; in bnx2i_map_scsi_sg()
164 bd[bd_count].buffer_length = sg_len; in bnx2i_map_scsi_sg()
165 bd[bd_count].flags = 0; in bnx2i_map_scsi_sg()
166 if (bd_count == 0) in bnx2i_map_scsi_sg()
167 bd[bd_count].flags = ISCSI_BD_FIRST_IN_BD_CHAIN; in bnx2i_map_scsi_sg()
170 bd_count++; in bnx2i_map_scsi_sg()
173 if (bd_count) in bnx2i_map_scsi_sg()
174 bd[bd_count - 1].flags |= ISCSI_BD_LAST_IN_BD_CHAIN; in bnx2i_map_scsi_sg()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/qedi/
Dqedi_fw.c1841 int bd_count = 0; in qedi_map_scsi_sg() local
1862 bd[bd_count].sge_addr.lo = (addr & 0xffffffff); in qedi_map_scsi_sg()
1863 bd[bd_count].sge_addr.hi = (addr >> 32); in qedi_map_scsi_sg()
1864 bd[bd_count].sge_len = (u16)sg_len; in qedi_map_scsi_sg()
1870 return ++bd_count; in qedi_map_scsi_sg()
1906 sg_frags = qedi_split_bd(cmd, addr, sg_len, bd_count); in qedi_map_scsi_sg()
1909 bd[bd_count].sge_addr.lo = addr & 0xffffffff; in qedi_map_scsi_sg()
1910 bd[bd_count].sge_addr.hi = addr >> 32; in qedi_map_scsi_sg()
1911 bd[bd_count].sge_len = sg_len; in qedi_map_scsi_sg()
1914 bd_count += sg_frags; in qedi_map_scsi_sg()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/qedf/
Dqedf_io.c486 int bd_count = 0; in qedf_map_sg() local
513 bd[bd_count].sge_addr.lo = cpu_to_le32(U64_LO(addr)); in qedf_map_sg()
514 bd[bd_count].sge_addr.hi = cpu_to_le32(U64_HI(addr)); in qedf_map_sg()
515 bd[bd_count].sge_len = cpu_to_le32(sg_len); in qedf_map_sg()
517 bd_count++; in qedf_map_sg()
530 return bd_count; in qedf_map_sg()
537 int bd_count; in qedf_build_bd_list_from_sg() local
540 bd_count = qedf_map_sg(io_req); in qedf_build_bd_list_from_sg()
541 if (bd_count == 0) in qedf_build_bd_list_from_sg()
544 bd_count = 0; in qedf_build_bd_list_from_sg()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/toshiba/
Dtc35815.c1074 int i, bd_count = (le32_to_cpu(fd->fd.FDCtl) & FD_BDCnt_MASK) >> FD_BDCnt_SHIFT; in dump_rxfd() local
1075 if (bd_count > 8) in dump_rxfd()
1076 bd_count = 8; in dump_rxfd()
1085 for (i = 0; i < bd_count; i++) in dump_rxfd()
1090 return bd_count; in dump_rxfd()
1125 int bd_count = dump_rxfd(&lp->rfd_base[i]); in panic_queues() local
1126 i += (bd_count + 1) / 2; /* skip BDs */ in panic_queues()
1472 int bd_count = (fdctl & FD_BDCnt_MASK) >> FD_BDCnt_SHIFT; in tc35815_rx() local
1489 BUG_ON(bd_count > 1); in tc35815_rx()
1543 if (bd_count > 0) { in tc35815_rx()
[all …]
/kernel/linux/linux-5.10/drivers/block/zram/
Dzram_drv.h102 atomic64_t bd_count; /* no. of pages in backing device */ member
Dzram_drv.c516 atomic64_inc(&zram->stats.bd_count); in alloc_block_bdev()
526 atomic64_dec(&zram->stats.bd_count); in free_block_bdev()
1050 FOUR_K((u64)atomic64_read(&zram->stats.bd_count)), in bd_stat_show()
/kernel/linux/linux-5.10/include/linux/fsl/bestcomm/
Dbestcomm_priv.h236 extern struct bcom_task *bcom_task_alloc(int bd_count, int bd_size, int priv_size);
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-block-zram122 statistics (bd_count, bd_reads, bd_writes) in a format
/kernel/linux/linux-5.10/Documentation/admin-guide/blockdev/
Dzram.rst277 bd_count size of data written in backing device.