Searched refs:udma_q (Results 1 – 7 of 7) sorted by relevance
/freebsd/sys/contrib/alpine-hal/ |
H A D | al_hal_udma_main.c | 107 static int al_udma_q_config(struct al_udma_q *udma_q) in al_udma_q_config() argument 112 if (udma_q->udma->type == UDMA_TX) { in al_udma_q_config() 113 reg_addr = &udma_q->q_regs->m2s_q.rlimit.mask; in al_udma_q_config() 130 static int al_udma_q_config_compl(struct al_udma_q *udma_q) in al_udma_q_config_compl() argument 135 if (udma_q->udma->type == UDMA_TX) in al_udma_q_config_compl() 136 reg_addr = &udma_q->q_regs->m2s_q.comp_cfg; in al_udma_q_config_compl() 138 reg_addr = &udma_q->q_regs->s2m_q.comp_cfg; in al_udma_q_config_compl() 142 if (udma_q->flags & AL_UDMA_Q_FLAGS_NO_COMP_UPDATE) in al_udma_q_config_compl() 147 if (udma_q->flags & AL_UDMA_Q_FLAGS_EN_COMP_COAL) in al_udma_q_config_compl() 155 if (udma_q->udma->type == UDMA_RX) { in al_udma_q_config_compl() [all …]
|
H A D | al_hal_udma.h | 308 struct al_udma_q udma_q[DMA_MAX_Q]; /* Array of UDMA Qs pointers */ member 358 int al_udma_q_reset(struct al_udma_q *udma_q); 405 static INLINE uint32_t al_udma_available_get(struct al_udma_q *udma_q) in al_udma_available_get() argument 407 uint16_t tmp = udma_q->next_cdesc_idx - (udma_q->next_desc_idx + 1); in al_udma_available_get() 408 tmp &= udma_q->size_mask; in al_udma_available_get() 421 static INLINE al_bool al_udma_is_empty(struct al_udma_q *udma_q) in al_udma_is_empty() argument 423 if (((udma_q->next_cdesc_idx - udma_q->next_desc_idx) & in al_udma_is_empty() 424 udma_q->size_mask) == 0) in al_udma_is_empty() 436 static INLINE union al_udma_desc *al_udma_desc_get(struct al_udma_q *udma_q) in al_udma_desc_get() argument 441 al_assert(udma_q); in al_udma_desc_get() [all …]
|
H A D | al_hal_udma_config.c | 816 int al_udma_m2s_q_rlimit_set(struct al_udma_q *udma_q, in al_udma_m2s_q_rlimit_set() argument 819 struct udma_rlimit_common *rlimit_regs = &udma_q->q_regs->m2s_q.rlimit; in al_udma_m2s_q_rlimit_set() 824 int al_udma_m2s_q_rlimit_act(struct al_udma_q *udma_q, in al_udma_m2s_q_rlimit_act() argument 827 struct udma_rlimit_common *rlimit_regs = &udma_q->q_regs->m2s_q.rlimit; in al_udma_m2s_q_rlimit_act() 832 udma_q->udma->name, udma_q->qid, act); in al_udma_m2s_q_rlimit_act() 839 int al_udma_m2s_q_sc_set(struct al_udma_q *udma_q, in al_udma_m2s_q_sc_set() argument 842 uint32_t reg = al_reg_read32(&udma_q->q_regs->m2s_q.dwrr_cfg_1); in al_udma_m2s_q_sc_set() 851 al_reg_write32(&udma_q->q_regs->m2s_q.dwrr_cfg_1, reg); in al_udma_m2s_q_sc_set() 853 reg = al_reg_read32(&udma_q->q_regs->m2s_q.dwrr_cfg_2); in al_udma_m2s_q_sc_set() 859 al_reg_write32(&udma_q->q_regs->m2s_q.dwrr_cfg_2, reg); in al_udma_m2s_q_sc_set() [all …]
|
H A D | al_hal_udma_config.h | 420 int al_udma_m2s_q_rlimit_set(struct al_udma_q *udma_q, 422 int al_udma_m2s_q_rlimit_act(struct al_udma_q *udma_q, 426 int al_udma_m2s_q_sc_set(struct al_udma_q *udma_q, 428 int al_udma_m2s_q_sc_pause(struct al_udma_q *udma_q, al_bool set); 429 int al_udma_m2s_q_sc_reset(struct al_udma_q *udma_q); 484 int al_udma_s2m_q_compl_updade_config(struct al_udma_q *udma_q, al_bool enable); 495 int al_udma_s2m_q_compl_coal_config(struct al_udma_q *udma_q, al_bool enable, uint32_t coal_timeout… 517 int al_udma_s2m_q_compl_hdr_split_config(struct al_udma_q *udma_q, 523 int al_udma_s2m_q_comp_set(struct al_udma_q *udma_q,
|
H A D | al_hal_udma_debug.c | 412 queue = &udma->udma_q[qid]; in al_udma_q_struct_print() 452 queue = &udma->udma_q[qid]; in al_udma_ring_print()
|
/freebsd/sys/contrib/alpine-hal/eth/ |
H A D | al_hal_eth.h | 728 struct al_udma_q *udma_q; in al_eth_tx_available_get() local 730 al_udma_q_handle_get(&adapter->tx_udma, qid, &udma_q); in al_eth_tx_available_get() 732 return al_udma_available_get(udma_q); in al_eth_tx_available_get()
|
H A D | al_hal_eth_main.c | 867 rc = al_udma_s2m_q_compl_coal_config(&udma->udma_q[qid], in al_eth_queue_config() 2693 al_udma_s2m_q_compl_hdr_split_config(&(adapter->rx_udma.udma_q[qid]), enable, in al_eth_rx_header_split_force_len_config()
|