Home
last modified time | relevance | path

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

/linux/drivers/crypto/intel/qat/qat_4xxx/
H A Dadf_4xxx_hw_data.c279 static u32 get_ena_thd_mask(struct adf_accel_dev *accel_dev, u32 obj_num) in get_ena_thd_mask() argument
283 if (obj_num >= uof_get_num_objs(accel_dev)) in get_ena_thd_mask()
290 switch (fw_config[obj_num].obj) { in get_ena_thd_mask()
302 static u32 get_ena_thd_mask_401xx(struct adf_accel_dev *accel_dev, u32 obj_num) in get_ena_thd_mask_401xx() argument
306 if (obj_num >= uof_get_num_objs(accel_dev)) in get_ena_thd_mask_401xx()
313 switch (fw_config[obj_num].obj) { in get_ena_thd_mask_401xx()
325 static const char *uof_get_name(struct adf_accel_dev *accel_dev, u32 obj_num, in uof_get_name() argument
333 id = fw_config[obj_num].obj; in uof_get_name()
343 static const char *uof_get_name_4xxx(struct adf_accel_dev *accel_dev, u32 obj_num) in uof_get_name_4xxx() argument
347 return uof_get_name(accel_dev, obj_num, adf_4xxx_fw_objs, num_fw_objs); in uof_get_name_4xxx()
[all …]
/linux/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-ring.c82 *base = mcp251xfd_get_tef_obj_addr(priv->tx->obj_num); in mcp251xfd_ring_init_tef()
185 *base = mcp251xfd_get_tx_obj_addr(tx_ring, tx_ring->obj_num); in mcp251xfd_ring_init_tx()
216 *base = mcp251xfd_get_rx_obj_addr(rx_ring, rx_ring->obj_num); in mcp251xfd_ring_init_rx()
274 if (priv->rx_obj_num_coalesce_irq == rx_ring->obj_num) in mcp251xfd_ring_init_rx()
331 priv->tx->obj_num - priv->tx_obj_num_coalesce_irq, in mcp251xfd_ring_init()
333 (priv->tx->obj_num - priv->tx_obj_num_coalesce_irq) * in mcp251xfd_ring_init()
339 priv->tx->obj_num, sizeof(struct mcp251xfd_hw_tef_obj), in mcp251xfd_ring_init()
340 priv->tx->obj_num * sizeof(struct mcp251xfd_hw_tef_obj)); in mcp251xfd_ring_init()
359 rx_ring->obj_num - priv->rx_obj_num_coalesce_irq, in mcp251xfd_ring_init()
361 (rx_ring->obj_num - priv->rx_obj_num_coalesce_irq) * in mcp251xfd_ring_init()
[all …]
H A Dmcp251xfd-tef.c130 *len_p = tx_ring->obj_num; in mcp251xfd_get_tef_len()
145 BUILD_BUG_ON(sizeof(tx_ring->obj_num) != sizeof(chip_tx_tail)); in mcp251xfd_get_tef_len()
146 BUILD_BUG_ON(sizeof(tx_ring->obj_num) != sizeof(tail)); in mcp251xfd_get_tef_len()
147 BUILD_BUG_ON(sizeof(tx_ring->obj_num) != sizeof(len)); in mcp251xfd_get_tef_len()
164 (offset > tx_ring->obj_num || in mcp251xfd_tef_obj_read()
165 len > tx_ring->obj_num || in mcp251xfd_tef_obj_read()
166 offset + len > tx_ring->obj_num)) { in mcp251xfd_tef_obj_read()
169 tx_ring->obj_num, offset, len); in mcp251xfd_tef_obj_read()
H 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()
H 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()
H 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()
H A Dmcp251xfd.h545 u8 obj_num; member
563 u8 obj_num; member
879 return priv->tef->head & (priv->tx->obj_num - 1); in mcp251xfd_get_tef_head()
884 return priv->tef->tail & (priv->tx->obj_num - 1); in mcp251xfd_get_tef_tail()
889 return min_t(u8, len, priv->tx->obj_num - mcp251xfd_get_tef_tail(priv)); in mcp251xfd_get_tef_linear_len()
894 return ring->head & (ring->obj_num - 1); in mcp251xfd_get_tx_head()
899 return ring->tail & (ring->obj_num - 1); in mcp251xfd_get_tx_tail()
904 return ring->obj_num - (ring->head - ring->tail); in mcp251xfd_get_tx_free()
912 addr >= mcp251xfd_get_tx_obj_addr(tx_ring, tx_ring->obj_num)) in mcp251xfd_get_tx_nr_by_addr()
923 return ring->head & (ring->obj_num - 1); in mcp251xfd_get_rx_head()
[all …]
H A Dmcp251xfd-rx.c94 *len_p = ring->obj_num; in mcp251xfd_get_rx_len()
109 BUILD_BUG_ON(sizeof(ring->obj_num) != sizeof(chip_head)); in mcp251xfd_get_rx_len()
110 BUILD_BUG_ON(sizeof(ring->obj_num) != sizeof(tail)); in mcp251xfd_get_rx_len()
111 BUILD_BUG_ON(sizeof(ring->obj_num) != sizeof(len)); in mcp251xfd_get_rx_len()
H A Dmcp251xfd-core.c1273 offset = (nr - chip_tx_tail) & (tx_ring->obj_num - 1); in mcp251xfd_handle_eccif_recover()
/linux/drivers/crypto/intel/qat/qat_420xx/
H A Dadf_420xx_hw_data.c343 static u32 get_ena_thd_mask(struct adf_accel_dev *accel_dev, u32 obj_num) in get_ena_thd_mask() argument
347 if (obj_num >= uof_get_num_objs(accel_dev)) in get_ena_thd_mask()
354 switch (fw_config[obj_num].obj) { in get_ena_thd_mask()
366 static const char *uof_get_name(struct adf_accel_dev *accel_dev, u32 obj_num, in uof_get_name() argument
374 id = fw_config[obj_num].obj; in uof_get_name()
384 static const char *uof_get_name_420xx(struct adf_accel_dev *accel_dev, u32 obj_num) in uof_get_name_420xx() argument
388 return uof_get_name(accel_dev, obj_num, adf_420xx_fw_objs, num_fw_objs); in uof_get_name_420xx()
391 static int uof_get_obj_type(struct adf_accel_dev *accel_dev, u32 obj_num) in uof_get_obj_type() argument
395 if (obj_num >= uof_get_num_objs(accel_dev)) in uof_get_obj_type()
402 return fw_config[obj_num].obj; in uof_get_obj_type()
[all …]
/linux/drivers/net/can/c_can/
H 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()
H A Dc_can_main.c1241 priv->tx.obj_num = msg_obj_tx_num; in alloc_c_can_dev()
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_accel_devices.h329 const char *(*uof_get_name)(struct adf_accel_dev *accel_dev, u32 obj_num);
331 int (*uof_get_obj_type)(struct adf_accel_dev *accel_dev, u32 obj_num);
332 u32 (*uof_get_ae_mask)(struct adf_accel_dev *accel_dev, u32 obj_num);
334 u32 (*get_ena_thd_mask)(struct adf_accel_dev *accel_dev, u32 obj_num);
/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_hw_v2.c1965 static void calc_pg_sz(u32 obj_num, u32 obj_size, u32 hop_num, u32 ctx_bt_num, in calc_pg_sz() argument
2002 *bt_page_size = ilog2(DIV_ROUND_UP(obj_num, obj_per_chunk)); in calc_pg_sz()
2004 *buf_page_size = ilog2(DIV_ROUND_UP(obj_num, obj_per_chunk)); in calc_pg_sz()