Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/net/ethernet/freescale/enetc/
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()
Denetc.h99 int bd_count; /* # of BDs */ member
128 if (unlikely(++*i == bdr->bd_count)) in enetc_bdr_idx_inc()
137 return bdr->bd_count + bdr->next_to_clean - bdr->next_to_use - 1; in enetc_bd_unused()
145 return bdr->bd_count + bdr->next_to_clean - bdr->next_to_alloc - 1; in enetc_swbd_unused()
156 int bd_count; /* # of BDs */ member
190 if (unlikely(++new_index == rx_ring->bd_count)) { in enetc_rxbd_next()
408 int enetc_setup_cbdr(struct device *dev, struct enetc_hw *hw, int bd_count,
Denetc.c202 if (unlikely(i == tx_ring->bd_count)) { in enetc_map_tx_buffs()
272 if (unlikely(i == tx_ring->bd_count)) { in enetc_map_tx_buffs()
313 i = tx_ring->bd_count; in enetc_map_tx_buffs()
562 i = tx_ring->bd_count; in enetc_map_tx_tso_buffs()
708 return pi >= ci ? pi - ci : tx_ring->bd_count - ci + pi; in enetc_bd_ready_count()
861 if (unlikely(i == tx_ring->bd_count)) { in enetc_clean_tx_ring()
1741 r->bd_base = dma_alloc_coherent(r->dev, r->bd_count * bd_size, in enetc_dma_alloc_bdr()
1748 dma_free_coherent(r->dev, r->bd_count * bd_size, r->bd_base, in enetc_dma_alloc_bdr()
1760 txr->tx_swbd = vzalloc(txr->bd_count * sizeof(struct enetc_tx_swbd)); in enetc_alloc_txbdr()
1769 txr->bd_count * TSO_HEADER_SIZE, in enetc_alloc_txbdr()
[all …]
/Linux-v6.1/drivers/dma/bestcomm/
Dbestcomm.c48 bcom_task_alloc(int bd_count, int bd_size, int priv_size) in bcom_task_alloc() argument
87 if (bd_count) { in bcom_task_alloc()
88 tsk->cookie = kmalloc_array(bd_count, sizeof(void *), in bcom_task_alloc()
93 tsk->bd = bcom_sram_alloc(bd_count * bd_size, 4, &tsk->bd_pa); in bcom_task_alloc()
96 memset_io(tsk->bd, 0x00, bd_count * bd_size); in bcom_task_alloc()
98 tsk->num_bd = bd_count; in bcom_task_alloc()
/Linux-v6.1/drivers/scsi/bnx2fc/
Dbnx2fc_io.c1654 int bd_count = 0; in bnx2fc_map_sg() local
1672 bd_count); in bnx2fc_map_sg()
1676 bd[bd_count].buf_addr_lo = addr & 0xffffffff; in bnx2fc_map_sg()
1677 bd[bd_count].buf_addr_hi = addr >> 32; in bnx2fc_map_sg()
1678 bd[bd_count].buf_len = (u16)sg_len; in bnx2fc_map_sg()
1679 bd[bd_count].flags = 0; in bnx2fc_map_sg()
1681 bd_count += sg_frags; in bnx2fc_map_sg()
1688 return bd_count; in bnx2fc_map_sg()
1695 int bd_count; in bnx2fc_build_bd_list_from_sg() local
1698 bd_count = bnx2fc_map_sg(io_req); in bnx2fc_build_bd_list_from_sg()
[all …]
Dbnx2fc_hwi.c1503 int bd_count; in bnx2fc_init_seq_cleanup_task() local
1532 bd_count = orig_io_req->bd_tbl->bd_valid; in bnx2fc_init_seq_cleanup_task()
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()
1732 if ((dev_type == TYPE_DISK) && (bd_count == 1)) { in bnx2fc_init_task()
1812 bd_count = bd_tbl->bd_valid; in bnx2fc_init_task()
1815 if (bd_count == 1) { in bnx2fc_init_task()
[all …]
/Linux-v6.1/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 …]
/Linux-v6.1/drivers/scsi/qedi/
Dqedi_fw.c1784 int bd_count = 0; in qedi_map_scsi_sg() local
1805 bd[bd_count].sge_addr.lo = (addr & 0xffffffff); in qedi_map_scsi_sg()
1806 bd[bd_count].sge_addr.hi = (addr >> 32); in qedi_map_scsi_sg()
1807 bd[bd_count].sge_len = (u16)sg_len; in qedi_map_scsi_sg()
1813 return ++bd_count; in qedi_map_scsi_sg()
1849 sg_frags = qedi_split_bd(cmd, addr, sg_len, bd_count); in qedi_map_scsi_sg()
1852 bd[bd_count].sge_addr.lo = addr & 0xffffffff; in qedi_map_scsi_sg()
1853 bd[bd_count].sge_addr.hi = addr >> 32; in qedi_map_scsi_sg()
1854 bd[bd_count].sge_len = sg_len; in qedi_map_scsi_sg()
1857 bd_count += sg_frags; in qedi_map_scsi_sg()
[all …]
/Linux-v6.1/drivers/scsi/qedf/
Dqedf_io.c481 int bd_count = 0; in qedf_map_sg() local
508 bd[bd_count].sge_addr.lo = cpu_to_le32(U64_LO(addr)); in qedf_map_sg()
509 bd[bd_count].sge_addr.hi = cpu_to_le32(U64_HI(addr)); in qedf_map_sg()
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()
[all …]
/Linux-v6.1/drivers/net/ethernet/toshiba/
Dtc35815.c1076 int i, bd_count = (le32_to_cpu(fd->fd.FDCtl) & FD_BDCnt_MASK) >> FD_BDCnt_SHIFT; in dump_rxfd() local
1077 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()
[all …]
/Linux-v6.1/drivers/block/zram/
Dzram_drv.h86 atomic64_t bd_count; /* no. of pages in backing device */ member
Dzram_drv.c580 atomic64_inc(&zram->stats.bd_count); in alloc_block_bdev()
590 atomic64_dec(&zram->stats.bd_count); in free_block_bdev()
1126 FOUR_K((u64)atomic64_read(&zram->stats.bd_count)), in bd_stat_show()
/Linux-v6.1/include/linux/fsl/bestcomm/
Dbestcomm_priv.h236 extern struct bcom_task *bcom_task_alloc(int bd_count, int bd_size, int priv_size);
/Linux-v6.1/Documentation/ABI/testing/
Dsysfs-block-zram122 statistics (bd_count, bd_reads, bd_writes) in a format
/Linux-v6.1/Documentation/admin-guide/blockdev/
Dzram.rst278 bd_count size of data written in backing device.