Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/wireless/ath/ath10k/
Dce.c499 unsigned int sw_index = src_ring->sw_index; in _ath10k_ce_send_nolock() local
510 write_index, sw_index - 1) <= 0)) { in _ath10k_ce_send_nolock()
556 unsigned int sw_index; in _ath10k_ce_send_nolock_64() local
571 sw_index = ath10k_ce_src_ring_read_index_from_ddr(ar, ce_state->id); in _ath10k_ce_send_nolock_64()
573 sw_index = src_ring->sw_index; in _ath10k_ce_send_nolock_64()
576 write_index, sw_index - 1) <= 0)) { in _ath10k_ce_send_nolock_64()
652 if (WARN_ON_ONCE(src_ring->write_index == src_ring->sw_index)) in __ath10k_ce_send_revert()
695 pipe->src_ring->sw_index - 1); in ath10k_ce_num_free_src_entries()
709 unsigned int sw_index = dest_ring->sw_index; in __ath10k_ce_rx_num_free_bufs() local
713 return CE_RING_DELTA(nentries_mask, write_index, sw_index - 1); in __ath10k_ce_rx_num_free_bufs()
[all …]
Dce.h76 unsigned int sw_index; member
322 u32 sw_index, dma_addr_t *bufferp,
Dpci.c1358 unsigned int sw_index; in ath10k_pci_hif_tx_sg() local
1365 sw_index = src_ring->sw_index; in ath10k_pci_hif_tx_sg()
1369 write_index, sw_index - 1) < n_items)) { in ath10k_pci_hif_tx_sg()
/Linux-v5.10/drivers/net/wireless/ath/ath11k/
Dce.c313 unsigned int sw_index; in ath11k_ce_completed_recv_next() local
320 sw_index = pipe->dest_ring->sw_index; in ath11k_ce_completed_recv_next()
341 *skb = pipe->dest_ring->skb[sw_index]; in ath11k_ce_completed_recv_next()
342 pipe->dest_ring->skb[sw_index] = NULL; in ath11k_ce_completed_recv_next()
344 sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); in ath11k_ce_completed_recv_next()
345 pipe->dest_ring->sw_index = sw_index; in ath11k_ce_completed_recv_next()
402 unsigned int sw_index; in ath11k_ce_completed_send_next() local
409 sw_index = pipe->src_ring->sw_index; in ath11k_ce_completed_send_next()
424 skb = pipe->src_ring->skb[sw_index]; in ath11k_ce_completed_send_next()
426 pipe->src_ring->skb[sw_index] = NULL; in ath11k_ce_completed_send_next()
[all …]
Dce.h123 unsigned int sw_index; member
/Linux-v5.10/net/dsa/
Dswitch.c58 if (ds->index == info->sw_index) in dsa_switch_mtu_match()
94 if (dst->index == info->tree_index && ds->index == info->sw_index && in dsa_switch_bridge_join()
98 if ((dst->index != info->tree_index || ds->index != info->sw_index) && in dsa_switch_bridge_join()
101 info->sw_index, in dsa_switch_bridge_join()
114 if (dst->index == info->tree_index && ds->index == info->sw_index && in dsa_switch_bridge_leave()
118 if ((dst->index != info->tree_index || ds->index != info->sw_index) && in dsa_switch_bridge_leave()
121 info->sw_index, info->port, in dsa_switch_bridge_leave()
162 int port = dsa_towards_port(ds, info->sw_index, info->port); in dsa_switch_fdb_add()
173 int port = dsa_towards_port(ds, info->sw_index, info->port); in dsa_switch_fdb_del()
184 if (ds->index == info->sw_index && port == info->port) in dsa_switch_mdb_match()
[all …]
Ddsa_priv.h40 int sw_index; member
46 int sw_index; member
56 int sw_index; member
64 int sw_index; member
71 int sw_index; member
Dport.c141 .sw_index = dp->ds->index, in dsa_port_bridge_join()
172 .sw_index = dp->ds->index, in dsa_port_bridge_leave()
380 .sw_index = dp->ds->index, in dsa_port_mtu_change()
393 .sw_index = dp->ds->index, in dsa_port_fdb_add()
406 .sw_index = dp->ds->index, in dsa_port_fdb_del()
432 .sw_index = dp->ds->index, in dsa_port_mdb_add()
445 .sw_index = dp->ds->index, in dsa_port_mdb_del()
458 .sw_index = dp->ds->index, in dsa_port_vlan_add()
471 .sw_index = dp->ds->index, in dsa_port_vlan_del()
Ddsa2.c24 struct dsa_switch *dsa_switch_find(int tree_index, int sw_index) in dsa_switch_find() argument
34 if (dp->ds->index != sw_index) in dsa_switch_find()
/Linux-v5.10/drivers/infiniband/hw/hfi1/
Dpio.c495 static int sc_hw_alloc(struct hfi1_devdata *dd, int type, u32 *sw_index, in sc_hw_alloc() argument
509 *sw_index = index; in sc_hw_alloc()
523 static void sc_hw_free(struct hfi1_devdata *dd, u32 sw_index, u32 hw_context) in sc_hw_free() argument
527 sci = &dd->send_contexts[sw_index]; in sc_hw_free()
530 __func__, sw_index, hw_context); in sc_hw_free()
705 u32 sw_index; in sc_alloc() local
728 ret = sc_hw_alloc(dd, type, &sw_index, &hw_context); in sc_alloc()
736 sci = &dd->send_contexts[sw_index]; in sc_alloc()
753 sc->sw_index = sw_index; in sc_alloc()
866 sw_index, in sc_alloc()
[all …]
Dtrace_tx.h68 __field(u32, sw_index)
73 __entry->sw_index = sc->sw_index;
79 __entry->sw_index,
89 __field(u32, sw_index)
95 __entry->sw_index = sc->sw_index;
102 __entry->sw_index,
Dcommon.h225 __u16 sw_index; /* send sw index to use */ member
Dpio.h110 u8 sw_index; /* software index number */ member
Dqp.c693 send_context ? send_context->sw_index : 0, in qp_iter_print()
Dchip.c5823 static int sc_to_vl(struct hfi1_devdata *dd, int sw_index) in sc_to_vl() argument
5829 sci = &dd->send_contexts[sw_index]; in sc_to_vl()
5993 u32 sw_index; in is_sendctxt_err_int() local
5997 sw_index = dd->hw_to_sw[hw_context]; in is_sendctxt_err_int()
5998 if (sw_index >= dd->num_send_contexts) { in is_sendctxt_err_int()
6001 sw_index, hw_context); in is_sendctxt_err_int()
6004 sci = &dd->send_contexts[sw_index]; in is_sendctxt_err_int()
6009 sw_index, hw_context); in is_sendctxt_err_int()
6019 dd_dev_info(dd, "Send Context %u(%u) Error: %s\n", sw_index, hw_context, in is_sendctxt_err_int()
6024 handle_send_egress_err_info(dd, sc_to_vl(dd, sw_index)); in is_sendctxt_err_int()
Dfile_ops.c986 hfi1_cdbg(PROC, "allocated send context %u(%u)\n", uctxt->sc->sw_index, in allocate_ctxt()
/Linux-v5.10/include/net/
Ddsa.h614 int sw_index, int port,
617 int sw_index, int port,
808 struct dsa_switch *dsa_switch_find(int tree_index, int sw_index);
/Linux-v5.10/drivers/net/dsa/sja1105/
Dsja1105_main.c1866 int tree_index, int sw_index, in sja1105_crosschip_bridge_join() argument
1869 struct dsa_switch *other_ds = dsa_switch_find(tree_index, sw_index); in sja1105_crosschip_bridge_join()
1902 int tree_index, int sw_index, in sja1105_crosschip_bridge_leave() argument
1906 struct dsa_switch *other_ds = dsa_switch_find(tree_index, sw_index); in sja1105_crosschip_bridge_leave()
/Linux-v5.10/drivers/net/dsa/mv88e6xxx/
Dchip.c2251 int tree_index, int sw_index, in mv88e6xxx_crosschip_bridge_join() argument
2261 err = mv88e6xxx_pvt_map(chip, sw_index, port); in mv88e6xxx_crosschip_bridge_join()
2268 int tree_index, int sw_index, in mv88e6xxx_crosschip_bridge_leave() argument
2277 if (mv88e6xxx_pvt_map(chip, sw_index, port)) in mv88e6xxx_crosschip_bridge_leave()