Home
last modified time | relevance | path

Searched refs:obj_num (Results 1 – 14 of 14) sorted by relevance

/Linux-v6.1/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-ring.c72 *base = mcp251xfd_get_tef_obj_addr(priv->tx->obj_num); in mcp251xfd_ring_init_tef()
175 *base = mcp251xfd_get_tx_obj_addr(tx_ring, tx_ring->obj_num); in mcp251xfd_ring_init_tx()
205 *base = mcp251xfd_get_rx_obj_addr(rx_ring, rx_ring->obj_num); in mcp251xfd_ring_init_rx()
263 if (priv->rx_obj_num_coalesce_irq == rx_ring->obj_num) in mcp251xfd_ring_init_rx()
320 priv->tx->obj_num - priv->tx_obj_num_coalesce_irq, in mcp251xfd_ring_init()
322 (priv->tx->obj_num - priv->tx_obj_num_coalesce_irq) * in mcp251xfd_ring_init()
328 priv->tx->obj_num, sizeof(struct mcp251xfd_hw_tef_obj), in mcp251xfd_ring_init()
329 priv->tx->obj_num * sizeof(struct mcp251xfd_hw_tef_obj)); in mcp251xfd_ring_init()
348 rx_ring->obj_num - priv->rx_obj_num_coalesce_irq, in mcp251xfd_ring_init()
350 (rx_ring->obj_num - priv->rx_obj_num_coalesce_irq) * in mcp251xfd_ring_init()
[all …]
Dmcp251xfd-ethtool.c29 ring->tx_pending = priv->tx->obj_num; in mcp251xfd_ring_get_ringparam()
44 layout.cur_tx != priv->tx->obj_num) && in mcp251xfd_ring_set_ringparam()
50 priv->tx->obj_num = layout.cur_tx; in mcp251xfd_ring_set_ringparam()
94 .tx_pending = priv->tx->obj_num, in mcp251xfd_ring_set_coalesce()
111 priv->tx->obj_num = layout.cur_tx; in mcp251xfd_ring_set_coalesce()
138 priv->tx->obj_num = layout.default_tx; in mcp251xfd_ethtool_init()
Dmcp251xfd-dump.c140 .val = tx->obj_num, in mcp251xfd_dump_tef_ring()
173 .val = rx->obj_num, in mcp251xfd_dump_rx_ring_one()
216 .val = tx->obj_num, in mcp251xfd_dump_tx_ring()
244 unsigned int rings_num, obj_num; in mcp251xfd_dump() local
249 obj_num = 2; in mcp251xfd_dump()
258 obj_num += rings_num; in mcp251xfd_dump()
263 file_size += sizeof(*iter.hdr) * obj_num; in mcp251xfd_dump()
275 iter.data = &iter.hdr[obj_num]; in mcp251xfd_dump()
Dmcp251xfd-tef.c137 new_head = round_down(priv->tef->head, tx_ring->obj_num) + chip_tx_tail; in mcp251xfd_tef_ring_update()
139 new_head += tx_ring->obj_num; in mcp251xfd_tef_ring_update()
156 (offset > tx_ring->obj_num || in mcp251xfd_tef_obj_read()
157 len > tx_ring->obj_num || in mcp251xfd_tef_obj_read()
158 offset + len > tx_ring->obj_num)) { in mcp251xfd_tef_obj_read()
161 tx_ring->obj_num, offset, len); in mcp251xfd_tef_obj_read()
Dmcp251xfd.h538 u8 obj_num; member
552 u8 obj_num; member
833 return priv->tef->head & (priv->tx->obj_num - 1); in mcp251xfd_get_tef_head()
838 return priv->tef->tail & (priv->tx->obj_num - 1); in mcp251xfd_get_tef_tail()
852 return min_t(u8, len, priv->tx->obj_num - mcp251xfd_get_tef_tail(priv)); in mcp251xfd_get_tef_linear_len()
857 return ring->head & (ring->obj_num - 1); in mcp251xfd_get_tx_head()
862 return ring->tail & (ring->obj_num - 1); in mcp251xfd_get_tx_tail()
867 return ring->obj_num - (ring->head - ring->tail); in mcp251xfd_get_tx_free()
875 addr >= mcp251xfd_get_tx_obj_addr(tx_ring, tx_ring->obj_num)) in mcp251xfd_get_tx_nr_by_addr()
886 return ring->head & (ring->obj_num - 1); in mcp251xfd_get_rx_head()
[all …]
Dmcp251xfd-chip-fifo.c32 ring->obj_num - 1) | in mcp251xfd_chip_rx_fifo_init_one()
72 tx_ring->obj_num - 1) | in mcp251xfd_chip_fifo_init()
83 tx_ring->obj_num - 1) | in mcp251xfd_chip_fifo_init()
Dmcp251xfd-rx.c99 new_head = round_down(ring->head, ring->obj_num) + chip_rx_head; in mcp251xfd_rx_ring_update()
101 new_head += ring->obj_num; in mcp251xfd_rx_ring_update()
Dmcp251xfd-core.c1264 offset = (nr - chip_tx_tail) & (tx_ring->obj_num - 1); in mcp251xfd_handle_eccif_recover()
/Linux-v6.1/drivers/net/can/c_can/
Dc_can.h183 unsigned int obj_num; member
230 return ring->head & (ring->obj_num - 1); in c_can_get_tx_head()
235 return ring->tail & (ring->obj_num - 1); in c_can_get_tx_tail()
245 return ring->obj_num - (ring->head - ring->tail); in c_can_get_tx_free()
253 return ring->obj_num - head; in c_can_get_tx_free()
Dc_can_main.c1236 priv->tx.obj_num = msg_obj_tx_num; in alloc_c_can_dev()
/Linux-v6.1/drivers/crypto/qat/qat_4xxx/
Dadf_4xxx_hw_data.c288 static char *uof_get_name(struct adf_accel_dev *accel_dev, u32 obj_num) in uof_get_name() argument
292 return adf_4xxx_fw_cy_config[obj_num].obj_name; in uof_get_name()
294 return adf_4xxx_fw_dc_config[obj_num].obj_name; in uof_get_name()
300 static u32 uof_get_ae_mask(struct adf_accel_dev *accel_dev, u32 obj_num) in uof_get_ae_mask() argument
304 return adf_4xxx_fw_cy_config[obj_num].ae_mask; in uof_get_ae_mask()
306 return adf_4xxx_fw_dc_config[obj_num].ae_mask; in uof_get_ae_mask()
/Linux-v6.1/drivers/net/can/
Dpch_can.c629 static int pch_can_rx_normal(struct net_device *ndev, u32 obj_num, int quota) in pch_can_rx_normal() argument
645 pch_can_rw_msg_obj(&priv->regs->ifregs[0].creq, obj_num); in pch_can_rx_normal()
655 pch_can_rx_msg_lost(ndev, obj_num); in pch_can_rx_normal()
658 obj_num++; in pch_can_rx_normal()
661 obj_num++; in pch_can_rx_normal()
701 pch_fifo_thresh(priv, obj_num); in pch_can_rx_normal()
702 obj_num++; in pch_can_rx_normal()
/Linux-v6.1/drivers/crypto/qat/qat_common/
Dadf_accel_devices.h199 char *(*uof_get_name)(struct adf_accel_dev *accel_dev, u32 obj_num);
201 u32 (*uof_get_ae_mask)(struct adf_accel_dev *accel_dev, u32 obj_num);
/Linux-v6.1/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c2045 static void calc_pg_sz(u32 obj_num, u32 obj_size, u32 hop_num, u32 ctx_bt_num, in calc_pg_sz() argument
2082 *bt_page_size = ilog2(DIV_ROUND_UP(obj_num, obj_per_chunk)); in calc_pg_sz()
2084 *buf_page_size = ilog2(DIV_ROUND_UP(obj_num, obj_per_chunk)); in calc_pg_sz()