Lines Matching refs:dev_ops

1507 	if (dev->dev_ops->get_caps)  in ksz_phylink_get_caps()
1508 dev->dev_ops->get_caps(dev, port, config); in ksz_phylink_get_caps()
1653 dev->dev_ops->cfg_port_member(dev, i, val | cpu_port); in ksz_update_port_member()
1656 dev->dev_ops->cfg_port_member(dev, port, port_member | cpu_port); in ksz_update_port_member()
1668 ret = dev->dev_ops->r_phy(dev, addr, regnum, &val); in ksz_sw_mdio_read()
1683 return dev->dev_ops->w_phy(dev, addr, regnum, val); in ksz_sw_mdio_write()
1917 pirq->reg_mask = dev->dev_ops->get_port_addr(p, REG_PORT_INT_MASK); in ksz_pirq_setup()
1918 pirq->reg_status = dev->dev_ops->get_port_addr(p, REG_PORT_INT_STATUS); in ksz_pirq_setup()
1943 ret = dev->dev_ops->reset(dev); in ksz_setup()
1955 dev->dev_ops->config_cpu_port(ds); in ksz_setup()
1957 dev->dev_ops->enable_stp_addr(dev); in ksz_setup()
1966 if (dev->dev_ops->setup) { in ksz_setup()
1967 ret = dev->dev_ops->setup(ds); in ksz_setup()
2027 if (dev->dev_ops->teardown) in ksz_teardown()
2028 dev->dev_ops->teardown(ds); in ksz_teardown()
2038 dev->dev_ops->r_mib_cnt(dev, port, mib->cnt_ptr, in port_r_cnt()
2048 dev->dev_ops->r_mib_pkt(dev, port, mib->cnt_ptr, in port_r_cnt()
2083 if (dev->dev_ops->r_mib_stat64) in ksz_mib_read_work()
2084 dev->dev_ops->r_mib_stat64(dev, i); in ksz_mib_read_work()
2101 dev->dev_ops->port_init_cnt(dev, i); in ksz_init_mib_timer()
2114 ret = dev->dev_ops->r_phy(dev, addr, reg, &val); in ksz_phy_read16()
2126 ret = dev->dev_ops->w_phy(dev, addr, reg, val); in ksz_phy_write16()
2214 dev->dev_ops->flush_dyn_mac_table(dev, port); in ksz_port_fast_age()
2221 if (!dev->dev_ops->set_ageing_time) in ksz_set_ageing_time()
2224 return dev->dev_ops->set_ageing_time(dev, msecs); in ksz_set_ageing_time()
2233 if (!dev->dev_ops->fdb_add) in ksz_port_fdb_add()
2236 return dev->dev_ops->fdb_add(dev, port, addr, vid, db); in ksz_port_fdb_add()
2245 if (!dev->dev_ops->fdb_del) in ksz_port_fdb_del()
2248 return dev->dev_ops->fdb_del(dev, port, addr, vid, db); in ksz_port_fdb_del()
2256 if (!dev->dev_ops->fdb_dump) in ksz_port_fdb_dump()
2259 return dev->dev_ops->fdb_dump(dev, port, cb, data); in ksz_port_fdb_dump()
2268 if (!dev->dev_ops->mdb_add) in ksz_port_mdb_add()
2271 return dev->dev_ops->mdb_add(dev, port, mdb, db); in ksz_port_mdb_add()
2280 if (!dev->dev_ops->mdb_del) in ksz_port_mdb_del()
2283 return dev->dev_ops->mdb_del(dev, port, mdb, db); in ksz_port_mdb_del()
2295 dev->dev_ops->port_setup(dev, port, false); in ksz_enable_port()
2411 if (!dev->dev_ops->vlan_filtering) in ksz_port_vlan_filtering()
2414 return dev->dev_ops->vlan_filtering(dev, port, flag, extack); in ksz_port_vlan_filtering()
2423 if (!dev->dev_ops->vlan_add) in ksz_port_vlan_add()
2426 return dev->dev_ops->vlan_add(dev, port, vlan, extack); in ksz_port_vlan_add()
2434 if (!dev->dev_ops->vlan_del) in ksz_port_vlan_del()
2437 return dev->dev_ops->vlan_del(dev, port, vlan); in ksz_port_vlan_del()
2446 if (!dev->dev_ops->mirror_add) in ksz_port_mirror_add()
2449 return dev->dev_ops->mirror_add(dev, port, mirror, ingress, extack); in ksz_port_mirror_add()
2457 if (dev->dev_ops->mirror_del) in ksz_port_mirror_del()
2458 dev->dev_ops->mirror_del(dev, port, mirror); in ksz_port_mirror_del()
2465 if (!dev->dev_ops->change_mtu) in ksz_change_mtu()
2468 return dev->dev_ops->change_mtu(dev, port, mtu); in ksz_change_mtu()
2475 if (!dev->dev_ops->max_mtu) in ksz_max_mtu()
2478 return dev->dev_ops->max_mtu(dev, port); in ksz_max_mtu()
2583 if (dev->dev_ops->phylink_mac_config) in ksz_phylink_mac_config()
2584 dev->dev_ops->phylink_mac_config(dev, port, mode, state); in ksz_phylink_mac_config()
2586 if (dev->dev_ops->setup_rgmii_delay) in ksz_phylink_mac_config()
2587 dev->dev_ops->setup_rgmii_delay(dev, port); in ksz_phylink_mac_config()
2713 if (dev->dev_ops->phylink_mac_link_up) in ksz_phylink_mac_link_up()
2714 dev->dev_ops->phylink_mac_link_up(dev, port, mode, interface, in ksz_phylink_mac_link_up()
2946 dev->dev_ops = dev->info->ops; in ksz_switch_register()
2948 ret = dev->dev_ops->init(dev); in ksz_switch_register()
3016 dev->dev_ops->exit(dev); in ksz_switch_register()
3038 dev->dev_ops->exit(dev); in ksz_switch_remove()