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()
1404 static void __vxge_hw_non_offload_db_post(struct __vxge_hw_fifo *fifo, in __vxge_hw_non_offload_db_post() argument
1409 channel = &fifo->channel; in __vxge_hw_non_offload_db_post()
1414 &fifo->nofl_db->control_0); in __vxge_hw_non_offload_db_post()
1418 writeq(txdl_ptr, &fifo->nofl_db->txdl_ptr); in __vxge_hw_non_offload_db_post()
1454 struct __vxge_hw_fifo *fifo, in vxge_hw_fifo_txdl_reserve() argument
1461 channel = &fifo->channel; in vxge_hw_fifo_txdl_reserve()
1470 priv = __vxge_hw_fifo_txdl_priv(fifo, txdp); in vxge_hw_fifo_txdl_reserve()
1477 priv->alloc_frags = fifo->config->max_frags; in vxge_hw_fifo_txdl_reserve()
1482 for (i = 0; i < fifo->config->max_frags; i++) { in vxge_hw_fifo_txdl_reserve()
1508 void vxge_hw_fifo_txdl_buffer_set(struct __vxge_hw_fifo *fifo, in vxge_hw_fifo_txdl_buffer_set() argument
1516 channel = &fifo->channel; in vxge_hw_fifo_txdl_buffer_set()
1518 txdl_priv = __vxge_hw_fifo_txdl_priv(fifo, txdlh); in vxge_hw_fifo_txdl_buffer_set()
1526 txdp->control_1 |= fifo->interrupt_type; in vxge_hw_fifo_txdl_buffer_set()
1528 fifo->tx_intr_num); in vxge_hw_fifo_txdl_buffer_set()
1541 fifo->stats->total_buffers++; in vxge_hw_fifo_txdl_buffer_set()
1557 void vxge_hw_fifo_txdl_post(struct __vxge_hw_fifo *fifo, void *txdlh) in vxge_hw_fifo_txdl_post() argument
1564 channel = &fifo->channel; in vxge_hw_fifo_txdl_post()
1566 txdl_priv = __vxge_hw_fifo_txdl_priv(fifo, txdlh); in vxge_hw_fifo_txdl_post()
1574 vxge_hw_channel_dtr_post(&fifo->channel, txdlh); in vxge_hw_fifo_txdl_post()
1576 __vxge_hw_non_offload_db_post(fifo, in vxge_hw_fifo_txdl_post()
1579 fifo->no_snoop_bits); in vxge_hw_fifo_txdl_post()
1581 fifo->stats->total_posts++; in vxge_hw_fifo_txdl_post()
1582 fifo->stats->common_stats.usage_cnt++; in vxge_hw_fifo_txdl_post()
1583 if (fifo->stats->common_stats.usage_max < in vxge_hw_fifo_txdl_post()
1584 fifo->stats->common_stats.usage_cnt) in vxge_hw_fifo_txdl_post()
1585 fifo->stats->common_stats.usage_max = in vxge_hw_fifo_txdl_post()
1586 fifo->stats->common_stats.usage_cnt; in vxge_hw_fifo_txdl_post()
1622 struct __vxge_hw_fifo *fifo, void **txdlh, in vxge_hw_fifo_txdl_next_completed() argument
1629 channel = &fifo->channel; in vxge_hw_fifo_txdl_next_completed()
1648 if (fifo->stats->common_stats.usage_cnt > 0) in vxge_hw_fifo_txdl_next_completed()
1649 fifo->stats->common_stats.usage_cnt--; in vxge_hw_fifo_txdl_next_completed()
1676 enum vxge_hw_status vxge_hw_fifo_handle_tcode(struct __vxge_hw_fifo *fifo, in vxge_hw_fifo_handle_tcode() argument
1683 channel = &fifo->channel; in vxge_hw_fifo_handle_tcode()
1690 fifo->stats->txd_t_code_err_cnt[t_code]++; in vxge_hw_fifo_handle_tcode()
1719 void vxge_hw_fifo_txdl_free(struct __vxge_hw_fifo *fifo, void *txdlh) in vxge_hw_fifo_txdl_free() argument
1725 channel = &fifo->channel; in vxge_hw_fifo_txdl_free()
1727 txdl_priv = __vxge_hw_fifo_txdl_priv(fifo, in vxge_hw_fifo_txdl_free()
1730 max_frags = fifo->config->max_frags; in vxge_hw_fifo_txdl_free()
2461 enum vxge_hw_status vxge_hw_vpath_poll_tx(struct __vxge_hw_fifo *fifo, in vxge_hw_vpath_poll_tx() argument
2470 channel = &fifo->channel; in vxge_hw_vpath_poll_tx()
2472 status = vxge_hw_fifo_txdl_next_completed(fifo, in vxge_hw_vpath_poll_tx()
2475 if (fifo->callback(fifo, first_txdlh, t_code, in vxge_hw_vpath_poll_tx()