Lines Matching defs:index
198 switch (dev->hw->index) {
581 regmap_write(dev->hw->mirror, dev->hw->index * 4, 0);
663 BIT(hw->index), BIT(hw->index));
666 if ((!hw_list[!hw->index] || !hw_list[!hw->index]->wed_dev) &&
766 u32 offset = dev->hw->index ? 0x04000400 : 0;
776 MTK_PCIE_BASE(dev->hw->index));
816 int index;
818 index = of_property_match_string(dev->hw->node, "memory-region-names",
820 if (index < 0)
821 return index;
823 np = of_parse_phandle(dev->hw->node, "memory-region", index);
913 FIELD_PREP(MTK_WED_RTQM_TXDMAD_FPORT, 0x3 + dev->hw->index));
1332 mtk_ppe_check_skb(eth->ppe[dev->hw->index], skb, hash);
1472 dev->hw->index);
1474 val |= BIT(0) | (BIT(1) * !!dev->hw->index);
1475 regmap_write(dev->hw->mirror, dev->hw->index * 4, val);
1531 hw->index, hw->version);
1536 dev->wdma_idx = hw->index;
1556 BIT(hw->index), 0);
1622 int i, index = dev->hw->version == 1;
1626 * and WLAN. The WLAN driver accesses the ring index registers through
1629 ring->reg_base = MTK_WED_RING_RX(index);
1635 wed_w32(dev, MTK_WED_RING_RX(index) + i, val);
1636 wed_w32(dev, MTK_WED_WPDMA_RING_RX(index) + i, val);
1694 pr_err("mtk_wed%d: error status=%08x\n", dev->hw->index, val);
1713 int mtk_wed_flow_add(int index)
1715 struct mtk_wed_hw *hw = hw_list[index];
1743 void mtk_wed_flow_remove(int index)
1745 struct mtk_wed_hw *hw = hw_list[index];
1777 return mtk_flow_offload_cmd(hw->eth, cls, hw->index);
1859 int index)
1904 if (WARN_ON(hw_list[index]))
1917 hw->index = index;
1931 if (!index) {
1939 hw_list[index] = hw;