Lines Matching defs:ksz_device
141 struct ksz_device { struct
142 struct dsa_switch *ds;
143 struct ksz_platform_data *pdata;
144 const struct ksz_chip_data *info;
146 struct mutex dev_mutex; /* device access */
147 struct mutex regmap_mutex; /* regmap access */
148 struct mutex alu_mutex; /* ALU access */
149 struct mutex vlan_mutex; /* vlan access */
150 const struct ksz_dev_ops *dev_ops;
152 struct device *dev;
153 struct regmap *regmap[__KSZ_NUM_REGMAPS];
155 void *priv;
156 int irq;
158 struct gpio_desc *reset_gpio; /* Optional reset GPIO */
161 u32 chip_id;
162 u8 chip_rev;
163 int cpu_port; /* port connected to CPU */
164 int phy_port_cnt;
165 phy_interface_t compat_interface;
166 bool synclko_125;
167 bool synclko_disable;
168 bool wakeup_source;
170 struct vlan_table *vlan_cache;
172 struct ksz_port *ports;
173 struct delayed_work mib_read;
174 unsigned long mib_read_interval;
175 u16 mirror_rx;
176 u16 mirror_tx;
177 u16 port_mask;
178 struct mutex lock_irq; /* IRQ Access */
179 struct ksz_irq girq;
180 struct ksz_ptp_data ptp_data;
182 struct ksz_switch_macaddr *switch_macaddr;
183 struct net_device *hsr_dev; /* HSR */
184 u8 hsr_ports;