Lines Matching +full:eee +full:- +full:pcs

4  * Copyright (C) 2011-2013 Jonas Gorski <jogo@openwrt.org>
100 struct phylink_pcs pcs; member
112 struct ethtool_keee eee; member
168 struct b53_pcs pcs[B53_N_PCS]; member
173 if (dev->enabled_ports & BIT(i))
178 return dev->chip_id == BCM5325_DEVICE_ID; in is5325()
184 dev->variant_id == B53_VARIANT_5325E; in is5325e()
190 dev->variant_id == B53_VARIANT_5325M; in is5325m()
196 return dev->chip_id == BCM5365_DEVICE_ID; in is5365()
204 return dev->chip_id == BCM5397_DEVICE_ID || in is5397_98()
205 dev->chip_id == BCM5398_DEVICE_ID; in is5397_98()
210 return dev->chip_id == BCM5395_DEVICE_ID || in is539x()
211 dev->chip_id == BCM5397_DEVICE_ID || in is539x()
212 dev->chip_id == BCM5398_DEVICE_ID; in is539x()
217 return dev->chip_id == BCM53115_DEVICE_ID || in is531x5()
218 dev->chip_id == BCM53125_DEVICE_ID || in is531x5()
219 dev->chip_id == BCM53101_DEVICE_ID || in is531x5()
220 dev->chip_id == BCM53128_DEVICE_ID || in is531x5()
221 dev->chip_id == BCM53134_DEVICE_ID; in is531x5()
226 return dev->chip_id == BCM63XX_DEVICE_ID || in is63xx()
227 dev->chip_id == BCM6318_DEVICE_ID || in is63xx()
228 dev->chip_id == BCM6328_DEVICE_ID || in is63xx()
229 dev->chip_id == BCM6362_DEVICE_ID || in is63xx()
230 dev->chip_id == BCM6368_DEVICE_ID || in is63xx()
231 dev->chip_id == BCM63268_DEVICE_ID; in is63xx()
236 return dev->chip_id == BCM6318_DEVICE_ID || in is6318_268()
237 dev->chip_id == BCM63268_DEVICE_ID; in is6318_268()
242 return dev->chip_id == BCM53010_DEVICE_ID || in is5301x()
243 dev->chip_id == BCM53011_DEVICE_ID || in is5301x()
244 dev->chip_id == BCM53012_DEVICE_ID || in is5301x()
245 dev->chip_id == BCM53018_DEVICE_ID || in is5301x()
246 dev->chip_id == BCM53019_DEVICE_ID; in is5301x()
251 return dev->chip_id == BCM58XX_DEVICE_ID || in is58xx()
252 dev->chip_id == BCM583XX_DEVICE_ID || in is58xx()
253 dev->chip_id == BCM7445_DEVICE_ID || in is58xx()
254 dev->chip_id == BCM7278_DEVICE_ID || in is58xx()
255 dev->chip_id == BCM53134_DEVICE_ID; in is58xx()
264 return dev->num_arl_buckets * dev->num_arl_bins; in b53_max_arl_entries()
277 dsa_unregister_switch(dev->ds); in b53_switch_remove()
282 dsa_switch_shutdown(dev->ds); in b53_switch_shutdown()
291 mutex_lock(&dev->reg_mutex); \
292 ret = dev->ops->type_op_size(dev, page, reg, val); \
293 mutex_unlock(&dev->reg_mutex); \
323 ent->port = fwd_entry & ARLTBL_DATA_PORT_ID_MASK; in b53_arl_to_entry()
324 ent->is_valid = !!(fwd_entry & ARLTBL_VALID); in b53_arl_to_entry()
325 ent->is_age = !!(fwd_entry & ARLTBL_AGE); in b53_arl_to_entry()
326 ent->is_static = !!(fwd_entry & ARLTBL_STATIC); in b53_arl_to_entry()
327 u64_to_ether_addr(mac_vid, ent->mac); in b53_arl_to_entry()
328 ent->vid = mac_vid >> ARLTBL_VID_S; in b53_arl_to_entry()
335 ent->port = (mac_vid >> ARLTBL_DATA_PORT_ID_S_25) & in b53_arl_to_entry_25()
337 ent->is_valid = !!(mac_vid & ARLTBL_VALID_25); in b53_arl_to_entry_25()
338 ent->is_age = !!(mac_vid & ARLTBL_AGE_25); in b53_arl_to_entry_25()
339 ent->is_static = !!(mac_vid & ARLTBL_STATIC_25); in b53_arl_to_entry_25()
340 u64_to_ether_addr(mac_vid, ent->mac); in b53_arl_to_entry_25()
341 ent->vid = mac_vid >> ARLTBL_VID_S_65; in b53_arl_to_entry_25()
347 *mac_vid = ether_addr_to_u64(ent->mac); in b53_arl_from_entry()
348 *mac_vid |= (u64)(ent->vid & ARLTBL_VID_MASK) << ARLTBL_VID_S; in b53_arl_from_entry()
349 *fwd_entry = ent->port & ARLTBL_DATA_PORT_ID_MASK; in b53_arl_from_entry()
350 if (ent->is_valid) in b53_arl_from_entry()
352 if (ent->is_static) in b53_arl_from_entry()
354 if (ent->is_age) in b53_arl_from_entry()
361 *mac_vid = ether_addr_to_u64(ent->mac); in b53_arl_from_entry_25()
362 *mac_vid |= (u64)(ent->port & ARLTBL_DATA_PORT_ID_MASK_25) << in b53_arl_from_entry_25()
364 *mac_vid |= (u64)(ent->vid & ARLTBL_VID_MASK_25) << in b53_arl_from_entry_25()
366 if (ent->is_valid) in b53_arl_from_entry_25()
368 if (ent->is_static) in b53_arl_from_entry_25()
370 if (ent->is_age) in b53_arl_from_entry_25()
393 return -ENOENT; in b53_switch_get_reset_gpio()