Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/net/can/spi/mcp251xfd/
A Dmcp251xfd-ring.c82 *base = mcp251xfd_get_tef_obj_addr(priv->tx->obj_num); in mcp251xfd_ring_init_tef()
273 if (priv->rx_obj_num_coalesce_irq == rx_ring->obj_num) in mcp251xfd_ring_init_rx()
330 priv->tx->obj_num - priv->tx_obj_num_coalesce_irq, in mcp251xfd_ring_init()
332 (priv->tx->obj_num - priv->tx_obj_num_coalesce_irq) * in mcp251xfd_ring_init()
358 rx_ring->obj_num - priv->rx_obj_num_coalesce_irq, in mcp251xfd_ring_init()
367 rx_ring->obj_num, rx_ring->obj_size, in mcp251xfd_ring_init()
368 rx_ring->obj_num * rx_ring->obj_size); in mcp251xfd_ring_init()
376 priv->tx->obj_num, priv->tx->obj_size, in mcp251xfd_ring_init()
377 priv->tx->obj_num * priv->tx->obj_size); in mcp251xfd_ring_init()
475 tx_ring->obj_num = layout.default_tx; in mcp251xfd_ring_alloc()
[all …]
A 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()
95 .tx_pending = priv->tx->obj_num, in mcp251xfd_ring_set_coalesce()
112 priv->tx->obj_num = layout.cur_tx; in mcp251xfd_ring_set_coalesce()
139 priv->tx->obj_num = layout.default_tx; in mcp251xfd_ethtool_init()
A 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()
A 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()
A Dmcp251xfd.h543 u8 obj_num; member
557 u8 obj_num; member
851 return priv->tef->head & (priv->tx->obj_num - 1); in mcp251xfd_get_tef_head()
856 return priv->tef->tail & (priv->tx->obj_num - 1); in mcp251xfd_get_tef_tail()
875 return ring->head & (ring->obj_num - 1); in mcp251xfd_get_tx_head()
880 return ring->tail & (ring->obj_num - 1); in mcp251xfd_get_tx_tail()
885 return ring->obj_num - (ring->head - ring->tail); in mcp251xfd_get_tx_free()
893 addr >= mcp251xfd_get_tx_obj_addr(tx_ring, tx_ring->obj_num)) in mcp251xfd_get_tx_nr_by_addr()
904 return ring->head & (ring->obj_num - 1); in mcp251xfd_get_rx_head()
909 return ring->tail & (ring->obj_num - 1); in mcp251xfd_get_rx_tail()
[all …]
A 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()
A 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()
A Dmcp251xfd-core.c1264 offset = (nr - chip_tx_tail) & (tx_ring->obj_num - 1); in mcp251xfd_handle_eccif_recover()
/linux-6.3-rc2/drivers/net/can/c_can/
A 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()
A Dc_can_main.c1236 priv->tx.obj_num = msg_obj_tx_num; in alloc_c_can_dev()
/linux-6.3-rc2/drivers/crypto/qat/qat_4xxx/
A Dadf_4xxx_hw_data.c289 static char *uof_get_name(struct adf_accel_dev *accel_dev, u32 obj_num) in uof_get_name() argument
293 return adf_4xxx_fw_cy_config[obj_num].obj_name; in uof_get_name()
295 return adf_4xxx_fw_dc_config[obj_num].obj_name; in uof_get_name()
301 static u32 uof_get_ae_mask(struct adf_accel_dev *accel_dev, u32 obj_num) in uof_get_ae_mask() argument
305 return adf_4xxx_fw_cy_config[obj_num].ae_mask; in uof_get_ae_mask()
307 return adf_4xxx_fw_dc_config[obj_num].ae_mask; in uof_get_ae_mask()
/linux-6.3-rc2/drivers/crypto/qat/qat_common/
A Dadf_accel_devices.h203 char *(*uof_get_name)(struct adf_accel_dev *accel_dev, u32 obj_num);
205 u32 (*uof_get_ae_mask)(struct adf_accel_dev *accel_dev, u32 obj_num);
/linux-6.3-rc2/drivers/infiniband/hw/hns/
A Dhns_roce_hw_v2.c2057 static void calc_pg_sz(u32 obj_num, u32 obj_size, u32 hop_num, u32 ctx_bt_num, in calc_pg_sz() argument
2094 *bt_page_size = ilog2(DIV_ROUND_UP(obj_num, obj_per_chunk)); in calc_pg_sz()
2096 *buf_page_size = ilog2(DIV_ROUND_UP(obj_num, obj_per_chunk)); in calc_pg_sz()

Completed in 45 milliseconds