Lines Matching refs:fifo

222 void vxge_hw_vpath_tti_ci_set(struct __vxge_hw_fifo *fifo)  in vxge_hw_vpath_tti_ci_set()  argument
228 if (fifo->config->enable != VXGE_HW_FIFO_ENABLE) in vxge_hw_vpath_tti_ci_set()
231 vp_reg = fifo->vp_reg; in vxge_hw_vpath_tti_ci_set()
232 config = container_of(fifo->config, struct vxge_hw_vp_config, fifo); in vxge_hw_vpath_tti_ci_set()
238 fifo->tim_tti_cfg1_saved = val64; in vxge_hw_vpath_tti_ci_set()
252 void vxge_hw_vpath_dynamic_tti_rtimer_set(struct __vxge_hw_fifo *fifo) in vxge_hw_vpath_dynamic_tti_rtimer_set() argument
254 u64 val64 = fifo->tim_tti_cfg3_saved; in vxge_hw_vpath_dynamic_tti_rtimer_set()
255 u64 timer = (fifo->rtimer * 1000) / 272; in vxge_hw_vpath_dynamic_tti_rtimer_set()
262 writeq(val64, &fifo->vp_reg->tim_cfg3_int_num[VXGE_HW_VPATH_INTR_TX]); in vxge_hw_vpath_dynamic_tti_rtimer_set()
1399 static void __vxge_hw_non_offload_db_post(struct __vxge_hw_fifo *fifo, in __vxge_hw_non_offload_db_post() argument
1404 channel = &fifo->channel; in __vxge_hw_non_offload_db_post()
1409 &fifo->nofl_db->control_0); in __vxge_hw_non_offload_db_post()
1413 writeq(txdl_ptr, &fifo->nofl_db->txdl_ptr); in __vxge_hw_non_offload_db_post()
1449 struct __vxge_hw_fifo *fifo, in vxge_hw_fifo_txdl_reserve() argument
1456 channel = &fifo->channel; in vxge_hw_fifo_txdl_reserve()
1465 priv = __vxge_hw_fifo_txdl_priv(fifo, txdp); in vxge_hw_fifo_txdl_reserve()
1472 priv->alloc_frags = fifo->config->max_frags; in vxge_hw_fifo_txdl_reserve()
1477 for (i = 0; i < fifo->config->max_frags; i++) { in vxge_hw_fifo_txdl_reserve()
1503 void vxge_hw_fifo_txdl_buffer_set(struct __vxge_hw_fifo *fifo, in vxge_hw_fifo_txdl_buffer_set() argument
1511 channel = &fifo->channel; in vxge_hw_fifo_txdl_buffer_set()
1513 txdl_priv = __vxge_hw_fifo_txdl_priv(fifo, txdlh); in vxge_hw_fifo_txdl_buffer_set()
1521 txdp->control_1 |= fifo->interrupt_type; in vxge_hw_fifo_txdl_buffer_set()
1523 fifo->tx_intr_num); in vxge_hw_fifo_txdl_buffer_set()
1536 fifo->stats->total_buffers++; in vxge_hw_fifo_txdl_buffer_set()
1552 void vxge_hw_fifo_txdl_post(struct __vxge_hw_fifo *fifo, void *txdlh) in vxge_hw_fifo_txdl_post() argument
1559 channel = &fifo->channel; in vxge_hw_fifo_txdl_post()
1561 txdl_priv = __vxge_hw_fifo_txdl_priv(fifo, txdlh); in vxge_hw_fifo_txdl_post()
1569 vxge_hw_channel_dtr_post(&fifo->channel, txdlh); in vxge_hw_fifo_txdl_post()
1571 __vxge_hw_non_offload_db_post(fifo, in vxge_hw_fifo_txdl_post()
1574 fifo->no_snoop_bits); in vxge_hw_fifo_txdl_post()
1576 fifo->stats->total_posts++; in vxge_hw_fifo_txdl_post()
1577 fifo->stats->common_stats.usage_cnt++; in vxge_hw_fifo_txdl_post()
1578 if (fifo->stats->common_stats.usage_max < in vxge_hw_fifo_txdl_post()
1579 fifo->stats->common_stats.usage_cnt) in vxge_hw_fifo_txdl_post()
1580 fifo->stats->common_stats.usage_max = in vxge_hw_fifo_txdl_post()
1581 fifo->stats->common_stats.usage_cnt; in vxge_hw_fifo_txdl_post()
1617 struct __vxge_hw_fifo *fifo, void **txdlh, in vxge_hw_fifo_txdl_next_completed() argument
1624 channel = &fifo->channel; in vxge_hw_fifo_txdl_next_completed()
1643 if (fifo->stats->common_stats.usage_cnt > 0) in vxge_hw_fifo_txdl_next_completed()
1644 fifo->stats->common_stats.usage_cnt--; in vxge_hw_fifo_txdl_next_completed()
1671 enum vxge_hw_status vxge_hw_fifo_handle_tcode(struct __vxge_hw_fifo *fifo, in vxge_hw_fifo_handle_tcode() argument
1678 channel = &fifo->channel; in vxge_hw_fifo_handle_tcode()
1685 fifo->stats->txd_t_code_err_cnt[t_code]++; in vxge_hw_fifo_handle_tcode()
1714 void vxge_hw_fifo_txdl_free(struct __vxge_hw_fifo *fifo, void *txdlh) in vxge_hw_fifo_txdl_free() argument
1720 channel = &fifo->channel; in vxge_hw_fifo_txdl_free()
1722 txdl_priv = __vxge_hw_fifo_txdl_priv(fifo, in vxge_hw_fifo_txdl_free()
1725 max_frags = fifo->config->max_frags; in vxge_hw_fifo_txdl_free()
2456 enum vxge_hw_status vxge_hw_vpath_poll_tx(struct __vxge_hw_fifo *fifo, in vxge_hw_vpath_poll_tx() argument
2465 channel = &fifo->channel; in vxge_hw_vpath_poll_tx()
2467 status = vxge_hw_fifo_txdl_next_completed(fifo, in vxge_hw_vpath_poll_tx()
2470 if (fifo->callback(fifo, first_txdlh, t_code, in vxge_hw_vpath_poll_tx()