Lines Matching refs:wops
1437 struct rocker_world_ops *wops; in rocker_world_init() local
1440 wops = rocker_world_ops_find(mode); in rocker_world_init()
1441 if (!wops) { in rocker_world_init()
1446 rocker->wops = wops; in rocker_world_init()
1447 rocker->wpriv = kzalloc(wops->priv_size, GFP_KERNEL); in rocker_world_init()
1450 if (!wops->init) in rocker_world_init()
1452 err = wops->init(rocker); in rocker_world_init()
1460 struct rocker_world_ops *wops = rocker->wops; in rocker_world_fini() local
1462 if (!wops || !wops->fini) in rocker_world_fini()
1464 wops->fini(rocker); in rocker_world_fini()
1479 if (rocker->wops) { in rocker_world_check_init()
1480 if (rocker->wops->mode != mode) { in rocker_world_check_init()
1491 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_pre_init() local
1494 rocker_port->wpriv = kzalloc(wops->port_priv_size, GFP_KERNEL); in rocker_world_port_pre_init()
1497 if (!wops->port_pre_init) in rocker_world_port_pre_init()
1499 err = wops->port_pre_init(rocker_port); in rocker_world_port_pre_init()
1507 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_init() local
1509 if (!wops->port_init) in rocker_world_port_init()
1511 return wops->port_init(rocker_port); in rocker_world_port_init()
1516 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_fini() local
1518 if (!wops->port_fini) in rocker_world_port_fini()
1520 wops->port_fini(rocker_port); in rocker_world_port_fini()
1525 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_post_fini() local
1527 if (!wops->port_post_fini) in rocker_world_port_post_fini()
1529 wops->port_post_fini(rocker_port); in rocker_world_port_post_fini()
1535 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_open() local
1537 if (!wops->port_open) in rocker_world_port_open()
1539 return wops->port_open(rocker_port); in rocker_world_port_open()
1544 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_stop() local
1546 if (!wops->port_stop) in rocker_world_port_stop()
1548 wops->port_stop(rocker_port); in rocker_world_port_stop()
1554 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_attr_stp_state_set() local
1556 if (!wops->port_attr_stp_state_set) in rocker_world_port_attr_stp_state_set()
1559 return wops->port_attr_stp_state_set(rocker_port, state); in rocker_world_port_attr_stp_state_set()
1568 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_attr_bridge_flags_support_get() local
1570 if (!wops->port_attr_bridge_flags_support_get) in rocker_world_port_attr_bridge_flags_support_get()
1572 return wops->port_attr_bridge_flags_support_get(rocker_port, in rocker_world_port_attr_bridge_flags_support_get()
1580 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_attr_pre_bridge_flags_set() local
1584 if (!wops->port_attr_bridge_flags_set) in rocker_world_port_attr_pre_bridge_flags_set()
1602 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_attr_bridge_flags_set() local
1604 if (!wops->port_attr_bridge_flags_set) in rocker_world_port_attr_bridge_flags_set()
1607 return wops->port_attr_bridge_flags_set(rocker_port, flags.val); in rocker_world_port_attr_bridge_flags_set()
1614 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_attr_bridge_ageing_time_set() local
1616 if (!wops->port_attr_bridge_ageing_time_set) in rocker_world_port_attr_bridge_ageing_time_set()
1619 return wops->port_attr_bridge_ageing_time_set(rocker_port, ageing_time); in rocker_world_port_attr_bridge_ageing_time_set()
1626 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_obj_vlan_add() local
1628 if (!wops->port_obj_vlan_add) in rocker_world_port_obj_vlan_add()
1631 return wops->port_obj_vlan_add(rocker_port, vlan); in rocker_world_port_obj_vlan_add()
1638 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_obj_vlan_del() local
1643 if (!wops->port_obj_vlan_del) in rocker_world_port_obj_vlan_del()
1645 return wops->port_obj_vlan_del(rocker_port, vlan); in rocker_world_port_obj_vlan_del()
1652 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_fdb_add() local
1654 if (!wops->port_obj_fdb_add) in rocker_world_port_fdb_add()
1657 return wops->port_obj_fdb_add(rocker_port, info->vid, info->addr); in rocker_world_port_fdb_add()
1664 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_fdb_del() local
1666 if (!wops->port_obj_fdb_del) in rocker_world_port_fdb_del()
1668 return wops->port_obj_fdb_del(rocker_port, info->vid, info->addr); in rocker_world_port_fdb_del()
1675 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_master_linked() local
1677 if (!wops->port_master_linked) in rocker_world_port_master_linked()
1679 return wops->port_master_linked(rocker_port, master, extack); in rocker_world_port_master_linked()
1685 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_master_unlinked() local
1687 if (!wops->port_master_unlinked) in rocker_world_port_master_unlinked()
1689 return wops->port_master_unlinked(rocker_port, master); in rocker_world_port_master_unlinked()
1695 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_neigh_update() local
1697 if (!wops->port_neigh_update) in rocker_world_port_neigh_update()
1699 return wops->port_neigh_update(rocker_port, n); in rocker_world_port_neigh_update()
1705 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_neigh_destroy() local
1707 if (!wops->port_neigh_destroy) in rocker_world_port_neigh_destroy()
1709 return wops->port_neigh_destroy(rocker_port, n); in rocker_world_port_neigh_destroy()
1716 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_ev_mac_vlan_seen() local
1718 if (!wops->port_ev_mac_vlan_seen) in rocker_world_port_ev_mac_vlan_seen()
1720 return wops->port_ev_mac_vlan_seen(rocker_port, addr, vlan_id); in rocker_world_port_ev_mac_vlan_seen()
1726 struct rocker_world_ops *wops = rocker->wops; in rocker_world_fib4_add() local
1728 if (!wops->fib4_add) in rocker_world_fib4_add()
1730 return wops->fib4_add(rocker, fen_info); in rocker_world_fib4_add()
1736 struct rocker_world_ops *wops = rocker->wops; in rocker_world_fib4_del() local
1738 if (!wops->fib4_del) in rocker_world_fib4_del()
1740 return wops->fib4_del(rocker, fen_info); in rocker_world_fib4_del()
1745 struct rocker_world_ops *wops = rocker->wops; in rocker_world_fib4_abort() local
1747 if (wops->fib4_abort) in rocker_world_fib4_abort()
1748 wops->fib4_abort(rocker); in rocker_world_fib4_abort()