Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/freescale/enetc/
A Denetc_cbdr.c6 int enetc_setup_cbdr(struct device *dev, struct enetc_hw *hw, int bd_count, in enetc_setup_cbdr() argument
9 int size = bd_count * sizeof(struct enetc_cbd); in enetc_setup_cbdr()
26 cbdr->bd_count = bd_count; in enetc_setup_cbdr()
38 enetc_wr(hw, ENETC_SICBDRLENR, ENETC_RTBLENR_LEN(cbdr->bd_count)); in enetc_setup_cbdr()
50 int size = cbdr->bd_count * sizeof(struct enetc_cbd); in enetc_teardown_cbdr()
77 i = (i + 1) % ring->bd_count; in enetc_clean_cbdr()
85 return (r->next_to_clean - r->next_to_use - 1 + r->bd_count) % in enetc_cbd_unused()
86 r->bd_count; in enetc_cbd_unused()
107 i = (i + 1) % ring->bd_count; in enetc_send_cmd()
A Denetc.h94 int bd_count; /* # of BDs */ member
123 if (unlikely(++*i == bdr->bd_count)) in enetc_bdr_idx_inc()
132 return bdr->bd_count + bdr->next_to_clean - bdr->next_to_use - 1; in enetc_bd_unused()
140 return bdr->bd_count + bdr->next_to_clean - bdr->next_to_alloc - 1; in enetc_swbd_unused()
151 int bd_count; /* # of BDs */ member
185 if (unlikely(++new_index == rx_ring->bd_count)) { in enetc_rxbd_next()
405 int enetc_setup_cbdr(struct device *dev, struct enetc_hw *hw, int bd_count,
A Denetc.c201 if (unlikely(i == tx_ring->bd_count)) { in enetc_map_tx_buffs()
271 if (unlikely(i == tx_ring->bd_count)) { in enetc_map_tx_buffs()
312 i = tx_ring->bd_count; in enetc_map_tx_buffs()
561 i = tx_ring->bd_count; in enetc_map_tx_tso_buffs()
856 if (unlikely(i == tx_ring->bd_count)) { in enetc_clean_tx_ring()
1763 txr->bd_count * TSO_HEADER_SIZE, in enetc_alloc_txbdr()
1791 for (i = 0; i < txr->bd_count; i++) in enetc_free_txbdr()
1910 for (i = 0; i < tx_ring->bd_count; i++) { in enetc_free_tx_ring()
1927 for (i = 0; i < rx_ring->bd_count; i++) { in enetc_free_rx_ring()
2778 bdr->bd_count = priv->rx_bd_count; in enetc_alloc_msix()
[all …]
/linux/drivers/dma/bestcomm/
A 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()
/linux/drivers/scsi/bnx2fc/
A Dbnx2fc_io.c1656 int bd_count = 0; in bnx2fc_map_sg() local
1674 bd_count); 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()
1701 if (bd_count == 0) in bnx2fc_build_bd_list_from_sg()
1704 bd_count = 0; in bnx2fc_build_bd_list_from_sg()
1708 io_req->bd_tbl->bd_valid = bd_count; in bnx2fc_build_bd_list_from_sg()
[all …]
A Dbnx2fc_hwi.c1503 int bd_count; in bnx2fc_init_seq_cleanup_task() local
1535 for (i = 0; i < bd_count; i++) { in bnx2fc_init_seq_cleanup_task()
1548 bd_count; in bnx2fc_init_seq_cleanup_task()
1558 sgl->mul_sgl.sgl_size = bd_count; in bnx2fc_init_seq_cleanup_task()
1716 int bd_count; in bnx2fc_init_task() local
1729 bd_count = bd_tbl->bd_valid; in bnx2fc_init_task()
1812 bd_count = bd_tbl->bd_valid; in bnx2fc_init_task()
1815 if (bd_count == 1) { in bnx2fc_init_task()
1824 } else if (bd_count == 2) { in bnx2fc_init_task()
1844 sgl->mul_sgl.sgl_size = bd_count; in bnx2fc_init_task()
[all …]
/linux/drivers/scsi/bnx2i/
A Dbnx2i_iscsi.c149 int bd_count = 0; in bnx2i_map_scsi_sg() local
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()
170 bd_count++; in bnx2i_map_scsi_sg()
173 if (bd_count) in bnx2i_map_scsi_sg()
177 return bd_count; in bnx2i_map_scsi_sg()
188 int bd_count; in bnx2i_iscsi_map_sg_list() local
191 if (!bd_count) { in bnx2i_iscsi_map_sg_list()
[all …]
/linux/drivers/scsi/qedi/
A Dqedi_fw.c1786 int bd_count = 0; in qedi_map_scsi_sg() local
1809 bd[bd_count].sge_len = (u16)sg_len; in qedi_map_scsi_sg()
1815 return ++bd_count; in qedi_map_scsi_sg()
1855 bd[bd_count].sge_addr.hi = addr >> 32; in qedi_map_scsi_sg()
1856 bd[bd_count].sge_len = sg_len; in qedi_map_scsi_sg()
1859 bd_count += sg_frags; in qedi_map_scsi_sg()
1872 return bd_count; in qedi_map_scsi_sg()
1877 int bd_count; in qedi_iscsi_map_sg_list() local
1882 if (bd_count == 0) in qedi_iscsi_map_sg_list()
1890 bd_count = 0; in qedi_iscsi_map_sg_list()
[all …]
/linux/drivers/scsi/qedf/
A Dqedf_io.c481 int bd_count = 0; in qedf_map_sg() local
510 bd[bd_count].sge_len = cpu_to_le32(sg_len); in qedf_map_sg()
512 bd_count++; in qedf_map_sg()
525 return bd_count; in qedf_map_sg()
532 int bd_count; in qedf_build_bd_list_from_sg() local
535 bd_count = qedf_map_sg(io_req); in qedf_build_bd_list_from_sg()
536 if (bd_count == 0) in qedf_build_bd_list_from_sg()
539 bd_count = 0; in qedf_build_bd_list_from_sg()
543 io_req->bd_tbl->bd_valid = bd_count; in qedf_build_bd_list_from_sg()
595 int bd_count = 0; in qedf_init_task() local
[all …]
/linux/drivers/net/ethernet/toshiba/
A Dtc35815.c1077 if (bd_count > 8) in dump_rxfd()
1078 bd_count = 8; in dump_rxfd()
1087 for (i = 0; i < bd_count; i++) in dump_rxfd()
1092 return bd_count; in dump_rxfd()
1127 int bd_count = dump_rxfd(&lp->rfd_base[i]); in panic_queues() local
1128 i += (bd_count + 1) / 2; /* skip BDs */ in panic_queues()
1474 int bd_count = (fdctl & FD_BDCnt_MASK) >> FD_BDCnt_SHIFT; in tc35815_rx() local
1491 BUG_ON(bd_count > 1); in tc35815_rx()
1545 if (bd_count > 0) { in tc35815_rx()
1547 int bdctl = le32_to_cpu(lp->rfd_cur->bd[bd_count - 1].BDCtl); in tc35815_rx()
[all …]
/linux/drivers/block/zram/
A Dzram_drv.h87 atomic64_t bd_count; /* no. of pages in backing device */ member
A Dzram_drv.c590 atomic64_inc(&zram->stats.bd_count); in alloc_block_bdev()
600 atomic64_dec(&zram->stats.bd_count); in free_block_bdev()
1138 FOUR_K((u64)atomic64_read(&zram->stats.bd_count)), in bd_stat_show()
/linux/include/linux/fsl/bestcomm/
A Dbestcomm_priv.h236 extern struct bcom_task *bcom_task_alloc(int bd_count, int bd_size, int priv_size);
/linux/Documentation/ABI/testing/
A Dsysfs-block-zram122 statistics (bd_count, bd_reads, bd_writes) in a format
/linux/Documentation/admin-guide/blockdev/
A Dzram.rst278 bd_count size of data written in backing device.

Completed in 45 milliseconds