Home
last modified time | relevance | path

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

/linux/drivers/net/wireless/ath/ath10k/
H A Dce.c435 unsigned int sw_index = src_ring->sw_index; in _ath10k_ce_send_nolock() local
446 write_index, sw_index - 1) <= 0)) { in _ath10k_ce_send_nolock()
492 unsigned int sw_index; in _ath10k_ce_send_nolock_64() local
507 sw_index = ath10k_ce_src_ring_read_index_from_ddr(ar, ce_state->id); in _ath10k_ce_send_nolock_64()
509 sw_index = src_ring->sw_index; in _ath10k_ce_send_nolock_64()
512 write_index, sw_index - 1) <= 0)) { in _ath10k_ce_send_nolock_64()
588 if (WARN_ON_ONCE(src_ring->write_index == src_ring->sw_index)) in __ath10k_ce_send_revert()
631 pipe->src_ring->sw_index - 1); in ath10k_ce_num_free_src_entries()
645 unsigned int sw_index = dest_ring->sw_index; in __ath10k_ce_rx_num_free_bufs() local
649 return CE_RING_DELTA(nentries_mask, write_index, sw_index - 1); in __ath10k_ce_rx_num_free_bufs()
[all …]
H A Dce.h76 unsigned int sw_index; member
322 u32 sw_index, dma_addr_t *bufferp,
H A Dpci.c1361 unsigned int sw_index; in ath10k_pci_hif_tx_sg() local
1368 sw_index = src_ring->sw_index; in ath10k_pci_hif_tx_sg()
1372 write_index, sw_index - 1) < n_items)) { in ath10k_pci_hif_tx_sg()
/linux/drivers/net/wireless/ath/ath12k/
H A Dce.c115 unsigned int sw_index; in ath12k_ce_completed_recv_next() local
121 sw_index = pipe->dest_ring->sw_index; in ath12k_ce_completed_recv_next()
138 *skb = pipe->dest_ring->skb[sw_index]; in ath12k_ce_completed_recv_next()
139 pipe->dest_ring->skb[sw_index] = NULL; in ath12k_ce_completed_recv_next()
141 sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); in ath12k_ce_completed_recv_next()
142 pipe->dest_ring->sw_index = sw_index; in ath12k_ce_completed_recv_next()
200 unsigned int sw_index; in ath12k_ce_completed_send_next() local
206 sw_index = pipe->src_ring->sw_index; in ath12k_ce_completed_send_next()
221 skb = pipe->src_ring->skb[sw_index]; in ath12k_ce_completed_send_next()
223 pipe->src_ring->skb[sw_index] = NULL; in ath12k_ce_completed_send_next()
[all …]
/linux/drivers/net/wireless/ath/ath11k/
H A Dce.c377 unsigned int sw_index; in ath11k_ce_completed_recv_next() local
384 sw_index = pipe->dest_ring->sw_index; in ath11k_ce_completed_recv_next()
401 *skb = pipe->dest_ring->skb[sw_index]; in ath11k_ce_completed_recv_next()
402 pipe->dest_ring->skb[sw_index] = NULL; in ath11k_ce_completed_recv_next()
404 sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); in ath11k_ce_completed_recv_next()
405 pipe->dest_ring->sw_index = sw_index; in ath11k_ce_completed_recv_next()
462 unsigned int sw_index; in ath11k_ce_completed_send_next() local
469 sw_index = pipe->src_ring->sw_index; in ath11k_ce_completed_send_next()
484 skb = pipe->src_ring->skb[sw_index]; in ath11k_ce_completed_send_next()
486 pipe->src_ring->skb[sw_index] = NULL; in ath11k_ce_completed_send_next()
[all …]
H A Dce.h141 unsigned int sw_index; member
/linux/drivers/infiniband/hw/hfi1/
H A Dpio.c452 static int sc_hw_alloc(struct hfi1_devdata *dd, int type, u32 *sw_index, in sc_hw_alloc() argument
466 *sw_index = index; in sc_hw_alloc()
480 static void sc_hw_free(struct hfi1_devdata *dd, u32 sw_index, u32 hw_context) in sc_hw_free() argument
484 sci = &dd->send_contexts[sw_index]; in sc_hw_free()
487 __func__, sw_index, hw_context); in sc_hw_free()
662 u32 sw_index; in sc_alloc() local
685 ret = sc_hw_alloc(dd, type, &sw_index, &hw_context); in sc_alloc()
693 sci = &dd->send_contexts[sw_index]; in sc_alloc()
710 sc->sw_index = sw_index; in sc_alloc()
823 sw_index, in sc_alloc()
[all …]
H A Dpio.h68 u8 sw_index; /* software index number */ member
H A Dqp.c652 send_context ? send_context->sw_index : 0, in qp_iter_print()
H A Dchip.c5783 static int sc_to_vl(struct hfi1_devdata *dd, int sw_index) in sc_to_vl() argument
5789 sci = &dd->send_contexts[sw_index]; in sc_to_vl()
5953 u32 sw_index; in is_sendctxt_err_int() local
5957 sw_index = dd->hw_to_sw[hw_context]; in is_sendctxt_err_int()
5958 if (sw_index >= dd->num_send_contexts) { in is_sendctxt_err_int()
5961 sw_index, hw_context); in is_sendctxt_err_int()
5964 sci = &dd->send_contexts[sw_index]; in is_sendctxt_err_int()
5969 sw_index, hw_context); in is_sendctxt_err_int()
5979 dd_dev_info(dd, "Send Context %u(%u) Error: %s\n", sw_index, hw_context, in is_sendctxt_err_int()
5984 handle_send_egress_err_info(dd, sc_to_vl(dd, sw_index)); in is_sendctxt_err_int()
H A Dfile_ops.c978 hfi1_cdbg(PROC, "allocated send context %u(%u)", uctxt->sc->sw_index, in allocate_ctxt()
/linux/include/net/
H A Ddsa.h1118 int sw_index, int port,
1122 int sw_index, int port,
1124 int (*crosschip_lag_change)(struct dsa_switch *ds, int sw_index,
1126 int (*crosschip_lag_join)(struct dsa_switch *ds, int sw_index,
1130 int (*crosschip_lag_leave)(struct dsa_switch *ds, int sw_index,
1369 struct dsa_switch *dsa_switch_find(int tree_index, int sw_index);
/linux/drivers/net/dsa/mv88e6xxx/
H A Dchip.c3109 int tree_index, int sw_index, in mv88e6xxx_crosschip_bridge_join() argument
3120 err = mv88e6xxx_pvt_map(chip, sw_index, port); in mv88e6xxx_crosschip_bridge_join()
3128 int tree_index, int sw_index, in mv88e6xxx_crosschip_bridge_leave() argument
3137 if (mv88e6xxx_pvt_map(chip, sw_index, port) || in mv88e6xxx_crosschip_bridge_leave()
7079 static int mv88e6xxx_crosschip_lag_change(struct dsa_switch *ds, int sw_index, in mv88e6xxx_crosschip_lag_change() argument
7091 static int mv88e6xxx_crosschip_lag_join(struct dsa_switch *ds, int sw_index, in mv88e6xxx_crosschip_lag_join() argument
7108 err = mv88e6xxx_pvt_map(chip, sw_index, port); in mv88e6xxx_crosschip_lag_join()
7115 static int mv88e6xxx_crosschip_lag_leave(struct dsa_switch *ds, int sw_index, in mv88e6xxx_crosschip_lag_leave() argument
7123 err_pvt = mv88e6xxx_pvt_map(chip, sw_index, port); in mv88e6xxx_crosschip_lag_leave()
/linux/net/dsa/
H A Ddsa.c180 struct dsa_switch *dsa_switch_find(int tree_index, int sw_index) in dsa_switch_find() argument
190 if (dp->ds->index != sw_index) in dsa_switch_find()