sw_index         5805 drivers/infiniband/hw/hfi1/chip.c static int sc_to_vl(struct hfi1_devdata *dd, int sw_index)
sw_index         5811 drivers/infiniband/hw/hfi1/chip.c 	sci = &dd->send_contexts[sw_index];
sw_index         5975 drivers/infiniband/hw/hfi1/chip.c 	u32 sw_index;
sw_index         5979 drivers/infiniband/hw/hfi1/chip.c 	sw_index = dd->hw_to_sw[hw_context];
sw_index         5980 drivers/infiniband/hw/hfi1/chip.c 	if (sw_index >= dd->num_send_contexts) {
sw_index         5983 drivers/infiniband/hw/hfi1/chip.c 			   sw_index, hw_context);
sw_index         5986 drivers/infiniband/hw/hfi1/chip.c 	sci = &dd->send_contexts[sw_index];
sw_index         5991 drivers/infiniband/hw/hfi1/chip.c 			   sw_index, hw_context);
sw_index         6001 drivers/infiniband/hw/hfi1/chip.c 	dd_dev_info(dd, "Send Context %u(%u) Error: %s\n", sw_index, hw_context,
sw_index         6006 drivers/infiniband/hw/hfi1/chip.c 		handle_send_egress_err_info(dd, sc_to_vl(dd, sw_index));
sw_index          230 drivers/infiniband/hw/hfi1/common.h 	__u16 sw_index;		/* send sw index to use */
sw_index          990 drivers/infiniband/hw/hfi1/file_ops.c 	hfi1_cdbg(PROC, "allocated send context %u(%u)\n", uctxt->sc->sw_index,
sw_index          495 drivers/infiniband/hw/hfi1/pio.c static int sc_hw_alloc(struct hfi1_devdata *dd, int type, u32 *sw_index,
sw_index          509 drivers/infiniband/hw/hfi1/pio.c 			*sw_index = index;
sw_index          523 drivers/infiniband/hw/hfi1/pio.c static void sc_hw_free(struct hfi1_devdata *dd, u32 sw_index, u32 hw_context)
sw_index          527 drivers/infiniband/hw/hfi1/pio.c 	sci = &dd->send_contexts[sw_index];
sw_index          530 drivers/infiniband/hw/hfi1/pio.c 			   __func__, sw_index, hw_context);
sw_index          705 drivers/infiniband/hw/hfi1/pio.c 	u32 sw_index;
sw_index          728 drivers/infiniband/hw/hfi1/pio.c 	ret = sc_hw_alloc(dd, type, &sw_index, &hw_context);
sw_index          736 drivers/infiniband/hw/hfi1/pio.c 	sci = &dd->send_contexts[sw_index];
sw_index          753 drivers/infiniband/hw/hfi1/pio.c 	sc->sw_index = sw_index;
sw_index          866 drivers/infiniband/hw/hfi1/pio.c 		  sw_index,
sw_index          882 drivers/infiniband/hw/hfi1/pio.c 	u32 sw_index;
sw_index          892 drivers/infiniband/hw/hfi1/pio.c 	sw_index = sc->sw_index;
sw_index          898 drivers/infiniband/hw/hfi1/pio.c 	dd->send_contexts[sw_index].sc = NULL;
sw_index          910 drivers/infiniband/hw/hfi1/pio.c 	sc_hw_free(dd, sw_index, hw_context);
sw_index         1034 drivers/infiniband/hw/hfi1/pio.c 				   __func__, sc->sw_index,
sw_index         1082 drivers/infiniband/hw/hfi1/pio.c 	dd_dev_info(dd, "restarting send context %u(%u)\n", sc->sw_index,
sw_index         1098 drivers/infiniband/hw/hfi1/pio.c 				   __func__, sc->sw_index, sc->hw_context);
sw_index         1125 drivers/infiniband/hw/hfi1/pio.c 					   __func__, sc->sw_index,
sw_index         1355 drivers/infiniband/hw/hfi1/pio.c 			   sc->sw_index, sc->hw_context, ret);
sw_index         1411 drivers/infiniband/hw/hfi1/pio.c 		    __func__, sc->sw_index, sc->hw_context);
sw_index         1619 drivers/infiniband/hw/hfi1/pio.c 	if (dd->send_contexts[sc->sw_index].type != SC_KERNEL &&
sw_index         1620 drivers/infiniband/hw/hfi1/pio.c 	    dd->send_contexts[sc->sw_index].type != SC_VL15)
sw_index         1761 drivers/infiniband/hw/hfi1/pio.c 	u32 sw_index;
sw_index         1765 drivers/infiniband/hw/hfi1/pio.c 	sw_index = dd->hw_to_sw[hw_context];
sw_index         1766 drivers/infiniband/hw/hfi1/pio.c 	if (unlikely(sw_index >= dd->num_send_contexts)) {
sw_index         1768 drivers/infiniband/hw/hfi1/pio.c 			   __func__, hw_context, sw_index);
sw_index         1771 drivers/infiniband/hw/hfi1/pio.c 	sc = dd->send_contexts[sw_index].sc;
sw_index         1778 drivers/infiniband/hw/hfi1/pio.c 		sw_index = dd->hw_to_sw[gc];
sw_index         1779 drivers/infiniband/hw/hfi1/pio.c 		if (unlikely(sw_index >= dd->num_send_contexts)) {
sw_index         1782 drivers/infiniband/hw/hfi1/pio.c 				   __func__, hw_context, sw_index);
sw_index         1785 drivers/infiniband/hw/hfi1/pio.c 		sc_release_update(dd->send_contexts[sw_index].sc);
sw_index         2069 drivers/infiniband/hw/hfi1/pio.c 		    dd->vld[15].sc->sw_index, ctxt);
sw_index         2170 drivers/infiniband/hw/hfi1/pio.c 		   sc->flags,  sc->sw_index, sc->hw_context, sc->group);
sw_index          110 drivers/infiniband/hw/hfi1/pio.h 	u8  sw_index;			/* software index number */
sw_index          704 drivers/infiniband/hw/hfi1/qp.c 		   send_context ? send_context->sw_index : 0,
sw_index           68 drivers/infiniband/hw/hfi1/trace_tx.h 	    __field(u32, sw_index)
sw_index           73 drivers/infiniband/hw/hfi1/trace_tx.h 	    __entry->sw_index = sc->sw_index;
sw_index           79 drivers/infiniband/hw/hfi1/trace_tx.h 		      __entry->sw_index,
sw_index           89 drivers/infiniband/hw/hfi1/trace_tx.h 			__field(u32, sw_index)
sw_index           95 drivers/infiniband/hw/hfi1/trace_tx.h 			__entry->sw_index = sc->sw_index;
sw_index          102 drivers/infiniband/hw/hfi1/trace_tx.h 		      __entry->sw_index,
sw_index          499 drivers/net/wireless/ath/ath10k/ce.c 	unsigned int sw_index = src_ring->sw_index;
sw_index          510 drivers/net/wireless/ath/ath10k/ce.c 				   write_index, sw_index - 1) <= 0)) {
sw_index          556 drivers/net/wireless/ath/ath10k/ce.c 	unsigned int sw_index;
sw_index          571 drivers/net/wireless/ath/ath10k/ce.c 		sw_index = ath10k_ce_src_ring_read_index_from_ddr(ar, ce_state->id);
sw_index          573 drivers/net/wireless/ath/ath10k/ce.c 		sw_index = src_ring->sw_index;
sw_index          576 drivers/net/wireless/ath/ath10k/ce.c 				   write_index, sw_index - 1) <= 0)) {
sw_index          652 drivers/net/wireless/ath/ath10k/ce.c 	if (WARN_ON_ONCE(src_ring->write_index == src_ring->sw_index))
sw_index          695 drivers/net/wireless/ath/ath10k/ce.c 			      pipe->src_ring->sw_index - 1);
sw_index          709 drivers/net/wireless/ath/ath10k/ce.c 	unsigned int sw_index = dest_ring->sw_index;
sw_index          713 drivers/net/wireless/ath/ath10k/ce.c 	return CE_RING_DELTA(nentries_mask, write_index, sw_index - 1);
sw_index          725 drivers/net/wireless/ath/ath10k/ce.c 	unsigned int sw_index = dest_ring->sw_index;
sw_index          733 drivers/net/wireless/ath/ath10k/ce.c 	    CE_RING_DELTA(nentries_mask, write_index, sw_index - 1) == 0)
sw_index          756 drivers/net/wireless/ath/ath10k/ce.c 	unsigned int sw_index = dest_ring->sw_index;
sw_index          764 drivers/net/wireless/ath/ath10k/ce.c 	if (CE_RING_DELTA(nentries_mask, write_index, sw_index - 1) == 0)
sw_index          792 drivers/net/wireless/ath/ath10k/ce.c 	if (((cur_write_idx + nentries) & nentries_mask) == dest_ring->sw_index)
sw_index          827 drivers/net/wireless/ath/ath10k/ce.c 	unsigned int sw_index = dest_ring->sw_index;
sw_index          830 drivers/net/wireless/ath/ath10k/ce.c 	struct ce_desc *desc = CE_DEST_RING_TO_DESC(base, sw_index);
sw_index          855 drivers/net/wireless/ath/ath10k/ce.c 			dest_ring->per_transfer_context[sw_index];
sw_index          861 drivers/net/wireless/ath/ath10k/ce.c 		dest_ring->per_transfer_context[sw_index] = NULL;
sw_index          864 drivers/net/wireless/ath/ath10k/ce.c 	sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index);
sw_index          865 drivers/net/wireless/ath/ath10k/ce.c 	dest_ring->sw_index = sw_index;
sw_index          877 drivers/net/wireless/ath/ath10k/ce.c 	unsigned int sw_index = dest_ring->sw_index;
sw_index          880 drivers/net/wireless/ath/ath10k/ce.c 		CE_DEST_RING_TO_DESC_64(base, sw_index);
sw_index          904 drivers/net/wireless/ath/ath10k/ce.c 			dest_ring->per_transfer_context[sw_index];
sw_index          910 drivers/net/wireless/ath/ath10k/ce.c 		dest_ring->per_transfer_context[sw_index] = NULL;
sw_index          913 drivers/net/wireless/ath/ath10k/ce.c 	sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index);
sw_index          914 drivers/net/wireless/ath/ath10k/ce.c 	dest_ring->sw_index = sw_index;
sw_index          954 drivers/net/wireless/ath/ath10k/ce.c 	unsigned int sw_index;
sw_index          971 drivers/net/wireless/ath/ath10k/ce.c 	sw_index = dest_ring->sw_index;
sw_index          973 drivers/net/wireless/ath/ath10k/ce.c 	if (write_index != sw_index) {
sw_index          975 drivers/net/wireless/ath/ath10k/ce.c 		struct ce_desc *desc = CE_DEST_RING_TO_DESC(base, sw_index);
sw_index          982 drivers/net/wireless/ath/ath10k/ce.c 				dest_ring->per_transfer_context[sw_index];
sw_index          985 drivers/net/wireless/ath/ath10k/ce.c 		dest_ring->per_transfer_context[sw_index] = NULL;
sw_index          989 drivers/net/wireless/ath/ath10k/ce.c 		sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index);
sw_index          990 drivers/net/wireless/ath/ath10k/ce.c 		dest_ring->sw_index = sw_index;
sw_index         1007 drivers/net/wireless/ath/ath10k/ce.c 	unsigned int sw_index;
sw_index         1024 drivers/net/wireless/ath/ath10k/ce.c 	sw_index = dest_ring->sw_index;
sw_index         1026 drivers/net/wireless/ath/ath10k/ce.c 	if (write_index != sw_index) {
sw_index         1029 drivers/net/wireless/ath/ath10k/ce.c 			CE_DEST_RING_TO_DESC_64(base, sw_index);
sw_index         1036 drivers/net/wireless/ath/ath10k/ce.c 				dest_ring->per_transfer_context[sw_index];
sw_index         1039 drivers/net/wireless/ath/ath10k/ce.c 		dest_ring->per_transfer_context[sw_index] = NULL;
sw_index         1043 drivers/net/wireless/ath/ath10k/ce.c 		sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index);
sw_index         1044 drivers/net/wireless/ath/ath10k/ce.c 		dest_ring->sw_index = sw_index;
sw_index         1076 drivers/net/wireless/ath/ath10k/ce.c 	unsigned int sw_index = src_ring->sw_index;
sw_index         1080 drivers/net/wireless/ath/ath10k/ce.c 	if (src_ring->hw_index == sw_index) {
sw_index         1102 drivers/net/wireless/ath/ath10k/ce.c 	if (read_index == sw_index)
sw_index         1107 drivers/net/wireless/ath/ath10k/ce.c 			src_ring->per_transfer_context[sw_index];
sw_index         1110 drivers/net/wireless/ath/ath10k/ce.c 	src_ring->per_transfer_context[sw_index] = NULL;
sw_index         1112 drivers/net/wireless/ath/ath10k/ce.c 				   sw_index);
sw_index         1116 drivers/net/wireless/ath/ath10k/ce.c 	sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index);
sw_index         1117 drivers/net/wireless/ath/ath10k/ce.c 	src_ring->sw_index = sw_index;
sw_index         1129 drivers/net/wireless/ath/ath10k/ce.c 	unsigned int sw_index = src_ring->sw_index;
sw_index         1133 drivers/net/wireless/ath/ath10k/ce.c 	if (src_ring->hw_index == sw_index) {
sw_index         1155 drivers/net/wireless/ath/ath10k/ce.c 	if (read_index == sw_index)
sw_index         1160 drivers/net/wireless/ath/ath10k/ce.c 			src_ring->per_transfer_context[sw_index];
sw_index         1163 drivers/net/wireless/ath/ath10k/ce.c 	src_ring->per_transfer_context[sw_index] = NULL;
sw_index         1165 drivers/net/wireless/ath/ath10k/ce.c 				      sw_index);
sw_index         1169 drivers/net/wireless/ath/ath10k/ce.c 	sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index);
sw_index         1170 drivers/net/wireless/ath/ath10k/ce.c 	src_ring->sw_index = sw_index;
sw_index         1185 drivers/net/wireless/ath/ath10k/ce.c 					u32 sw_index,
sw_index         1191 drivers/net/wireless/ath/ath10k/ce.c 		struct ce_desc *desc = CE_SRC_RING_TO_DESC(base, sw_index);
sw_index         1202 drivers/net/wireless/ath/ath10k/ce.c 					   u32 sw_index,
sw_index         1209 drivers/net/wireless/ath/ath10k/ce.c 			CE_SRC_RING_TO_DESC_64(base, sw_index);
sw_index         1227 drivers/net/wireless/ath/ath10k/ce.c 	unsigned int sw_index;
sw_index         1244 drivers/net/wireless/ath/ath10k/ce.c 	sw_index = src_ring->sw_index;
sw_index         1247 drivers/net/wireless/ath/ath10k/ce.c 	if (write_index != sw_index) {
sw_index         1248 drivers/net/wireless/ath/ath10k/ce.c 		ce_state->ops->ce_extract_desc_data(ar, src_ring, sw_index,
sw_index         1254 drivers/net/wireless/ath/ath10k/ce.c 				src_ring->per_transfer_context[sw_index];
sw_index         1257 drivers/net/wireless/ath/ath10k/ce.c 		src_ring->per_transfer_context[sw_index] = NULL;
sw_index         1260 drivers/net/wireless/ath/ath10k/ce.c 		sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index);
sw_index         1261 drivers/net/wireless/ath/ath10k/ce.c 		src_ring->sw_index = sw_index;
sw_index         1435 drivers/net/wireless/ath/ath10k/ce.c 	src_ring->sw_index = ath10k_ce_src_ring_read_index_get(ar, ctrl_addr);
sw_index         1436 drivers/net/wireless/ath/ath10k/ce.c 	src_ring->sw_index &= src_ring->nentries_mask;
sw_index         1437 drivers/net/wireless/ath/ath10k/ce.c 	src_ring->hw_index = src_ring->sw_index;
sw_index         1476 drivers/net/wireless/ath/ath10k/ce.c 	dest_ring->sw_index = ath10k_ce_dest_ring_read_index_get(ar, ctrl_addr);
sw_index         1477 drivers/net/wireless/ath/ath10k/ce.c 	dest_ring->sw_index &= dest_ring->nentries_mask;
sw_index           76 drivers/net/wireless/ath/ath10k/ce.h 	unsigned int sw_index;
sw_index          319 drivers/net/wireless/ath/ath10k/ce.h 				     u32 sw_index, dma_addr_t *bufferp,
sw_index         1358 drivers/net/wireless/ath/ath10k/pci.c 	unsigned int sw_index;
sw_index         1365 drivers/net/wireless/ath/ath10k/pci.c 	sw_index = src_ring->sw_index;
sw_index         1369 drivers/net/wireless/ath/ath10k/pci.c 				   write_index, sw_index - 1) < n_items)) {
sw_index          524 include/net/dsa.h 	int	(*crosschip_bridge_join)(struct dsa_switch *ds, int sw_index,
sw_index          526 include/net/dsa.h 	void	(*crosschip_bridge_leave)(struct dsa_switch *ds, int sw_index,
sw_index           36 net/dsa/dsa_priv.h 	int sw_index;
sw_index           42 net/dsa/dsa_priv.h 	int sw_index;
sw_index           52 net/dsa/dsa_priv.h 	int sw_index;
sw_index           60 net/dsa/dsa_priv.h 	int sw_index;
sw_index          123 net/dsa/port.c 		.sw_index = dp->ds->index,
sw_index          153 net/dsa/port.c 		.sw_index = dp->ds->index,
sw_index          304 net/dsa/port.c 		.sw_index = dp->ds->index,
sw_index          317 net/dsa/port.c 		.sw_index = dp->ds->index,
sw_index          343 net/dsa/port.c 		.sw_index = dp->ds->index,
sw_index          356 net/dsa/port.c 		.sw_index = dp->ds->index,
sw_index          369 net/dsa/port.c 		.sw_index = dp->ds->index,
sw_index          382 net/dsa/port.c 		.sw_index = dp->ds->index,
sw_index           58 net/dsa/switch.c 	if (ds->index == info->sw_index && ds->ops->port_bridge_join)
sw_index           61 net/dsa/switch.c 	if (ds->index != info->sw_index && ds->ops->crosschip_bridge_join)
sw_index           62 net/dsa/switch.c 		return ds->ops->crosschip_bridge_join(ds, info->sw_index,
sw_index           74 net/dsa/switch.c 	if (ds->index == info->sw_index && ds->ops->port_bridge_leave)
sw_index           77 net/dsa/switch.c 	if (ds->index != info->sw_index && ds->ops->crosschip_bridge_leave)
sw_index           78 net/dsa/switch.c 		ds->ops->crosschip_bridge_leave(ds, info->sw_index, info->port,
sw_index          112 net/dsa/switch.c 	int port = dsa_towards_port(ds, info->sw_index, info->port);
sw_index          123 net/dsa/switch.c 	int port = dsa_towards_port(ds, info->sw_index, info->port);
sw_index          134 net/dsa/switch.c 	if (ds->index == info->sw_index && port == info->port)
sw_index          186 net/dsa/switch.c 	if (ds->index == info->sw_index)
sw_index          232 net/dsa/switch.c 	if (ds->index == info->sw_index && port == info->port)
sw_index          288 net/dsa/switch.c 	if (ds->index == info->sw_index)