/openbmc/linux/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_cbdr.c | 6 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() 51 int size = cbdr->bd_count * sizeof(struct enetc_cbd); in enetc_teardown_cbdr() 79 i = (i + 1) % ring->bd_count; in enetc_clean_cbdr() 87 return (r->next_to_clean - r->next_to_use - 1 + r->bd_count) % in enetc_cbd_unused() 88 r->bd_count; in enetc_cbd_unused() 109 i = (i + 1) % ring->bd_count; in enetc_send_cmd()
|
H A D | enetc.h | 92 size_t bd_count; member 116 int bd_count; /* # of BDs */ member 145 if (unlikely(++*i == bdr->bd_count)) in enetc_bdr_idx_inc() 154 return bdr->bd_count + bdr->next_to_clean - bdr->next_to_use - 1; in enetc_bd_unused() 162 return bdr->bd_count + bdr->next_to_clean - bdr->next_to_alloc - 1; in enetc_swbd_unused() 173 int bd_count; /* # of BDs */ member 207 if (unlikely(++new_index == rx_ring->bd_count)) { in enetc_rxbd_next() 444 int enetc_setup_cbdr(struct device *dev, struct enetc_hw *hw, int bd_count,
|
H A D | enetc.c | 221 if (unlikely(i == tx_ring->bd_count)) { in enetc_map_tx_buffs() 291 if (unlikely(i == tx_ring->bd_count)) { in enetc_map_tx_buffs() 332 i = tx_ring->bd_count; in enetc_map_tx_buffs() 581 i = tx_ring->bd_count; in enetc_map_tx_tso_buffs() 881 if (unlikely(i == tx_ring->bd_count)) { in enetc_clean_tx_ring() 1789 res->bd_count = bd_count; in enetc_alloc_tx_resource() 1841 tx_ring->bd_count); in enetc_alloc_tx_resources() 1875 res->bd_count = bd_count; in enetc_alloc_rx_resource() 1913 rx_ring->bd_count, extended); in enetc_alloc_rx_resources() 3011 bdr->bd_count = priv->rx_bd_count; in enetc_alloc_msix() [all …]
|
/openbmc/linux/drivers/dma/bestcomm/ |
H A D | bestcomm.c | 47 bcom_task_alloc(int bd_count, int bd_size, int priv_size) in bcom_task_alloc() argument 86 if (bd_count) { in bcom_task_alloc() 87 tsk->cookie = kmalloc_array(bd_count, sizeof(void *), in bcom_task_alloc() 92 tsk->bd = bcom_sram_alloc(bd_count * bd_size, 4, &tsk->bd_pa); in bcom_task_alloc() 95 memset_io(tsk->bd, 0x00, bd_count * bd_size); in bcom_task_alloc() 97 tsk->num_bd = bd_count; in bcom_task_alloc()
|
/openbmc/linux/drivers/scsi/bnx2fc/ |
H A D | bnx2fc_io.c | 1654 int bd_count = 0; in bnx2fc_map_sg() local 1672 bd_count); 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() 1699 if (bd_count == 0) in bnx2fc_build_bd_list_from_sg() 1702 bd_count = 0; in bnx2fc_build_bd_list_from_sg() 1706 io_req->bd_tbl->bd_valid = bd_count; in bnx2fc_build_bd_list_from_sg() [all …]
|
H A D | bnx2fc_hwi.c | 1503 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 …]
|
/openbmc/linux/drivers/scsi/bnx2i/ |
H A D | bnx2i_iscsi.c | 149 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 …]
|
/openbmc/linux/drivers/scsi/qedi/ |
H A D | qedi_fw.c | 1784 int bd_count = 0; in qedi_map_scsi_sg() local 1807 bd[bd_count].sge_len = (u16)sg_len; in qedi_map_scsi_sg() 1813 return ++bd_count; 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() 1870 return bd_count; in qedi_map_scsi_sg() 1875 int bd_count; in qedi_iscsi_map_sg_list() local 1880 if (bd_count == 0) in qedi_iscsi_map_sg_list() 1888 bd_count = 0; in qedi_iscsi_map_sg_list() [all …]
|
/openbmc/linux/drivers/block/zram/ |
H A D | zram_drv.h | 90 atomic64_t bd_count; /* no. of pages in backing device */ member
|
H A D | zram_drv.c | 566 atomic64_inc(&zram->stats.bd_count); in alloc_block_bdev() 576 atomic64_dec(&zram->stats.bd_count); in free_block_bdev() 1184 FOUR_K((u64)atomic64_read(&zram->stats.bd_count)), in bd_stat_show()
|
/openbmc/linux/drivers/scsi/qedf/ |
H A D | qedf_io.c | 481 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 …]
|
/openbmc/linux/drivers/net/ethernet/toshiba/ |
H A D | tc35815.c | 1076 if (bd_count > 8) in dump_rxfd() 1077 bd_count = 8; in dump_rxfd() 1086 for (i = 0; i < bd_count; i++) in dump_rxfd() 1091 return bd_count; in dump_rxfd() 1126 int bd_count = dump_rxfd(&lp->rfd_base[i]); in panic_queues() local 1127 i += (bd_count + 1) / 2; /* skip BDs */ in panic_queues() 1473 int bd_count = (fdctl & FD_BDCnt_MASK) >> FD_BDCnt_SHIFT; in tc35815_rx() local 1490 BUG_ON(bd_count > 1); in tc35815_rx() 1544 if (bd_count > 0) { in tc35815_rx() 1546 int bdctl = le32_to_cpu(lp->rfd_cur->bd[bd_count - 1].BDCtl); in tc35815_rx() [all …]
|
/openbmc/linux/include/linux/fsl/bestcomm/ |
H A D | bestcomm_priv.h | 236 extern struct bcom_task *bcom_task_alloc(int bd_count, int bd_size, int priv_size);
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-block-zram | 122 statistics (bd_count, bd_reads, bd_writes) in a format
|
/openbmc/linux/Documentation/admin-guide/blockdev/ |
H A D | zram.rst | 278 bd_count size of data written in backing device.
|