Lines Matching refs:wops
1438 struct rocker_world_ops *wops; in rocker_world_init() local
1441 wops = rocker_world_ops_find(mode); in rocker_world_init()
1442 if (!wops) { in rocker_world_init()
1447 rocker->wops = wops; in rocker_world_init()
1448 rocker->wpriv = kzalloc(wops->priv_size, GFP_KERNEL); in rocker_world_init()
1451 if (!wops->init) in rocker_world_init()
1453 err = wops->init(rocker); in rocker_world_init()
1461 struct rocker_world_ops *wops = rocker->wops; in rocker_world_fini() local
1463 if (!wops || !wops->fini) in rocker_world_fini()
1465 wops->fini(rocker); in rocker_world_fini()
1480 if (rocker->wops) { in rocker_world_check_init()
1481 if (rocker->wops->mode != mode) { in rocker_world_check_init()
1492 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_pre_init() local
1495 rocker_port->wpriv = kzalloc(wops->port_priv_size, GFP_KERNEL); in rocker_world_port_pre_init()
1498 if (!wops->port_pre_init) in rocker_world_port_pre_init()
1500 err = wops->port_pre_init(rocker_port); in rocker_world_port_pre_init()
1508 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_init() local
1510 if (!wops->port_init) in rocker_world_port_init()
1512 return wops->port_init(rocker_port); in rocker_world_port_init()
1517 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_fini() local
1519 if (!wops->port_fini) in rocker_world_port_fini()
1521 wops->port_fini(rocker_port); in rocker_world_port_fini()
1526 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_post_fini() local
1528 if (!wops->port_post_fini) in rocker_world_port_post_fini()
1530 wops->port_post_fini(rocker_port); in rocker_world_port_post_fini()
1536 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_open() local
1538 if (!wops->port_open) in rocker_world_port_open()
1540 return wops->port_open(rocker_port); in rocker_world_port_open()
1545 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_stop() local
1547 if (!wops->port_stop) in rocker_world_port_stop()
1549 wops->port_stop(rocker_port); in rocker_world_port_stop()
1555 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_attr_stp_state_set() local
1557 if (!wops->port_attr_stp_state_set) in rocker_world_port_attr_stp_state_set()
1560 return wops->port_attr_stp_state_set(rocker_port, state); in rocker_world_port_attr_stp_state_set()
1569 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_attr_bridge_flags_support_get() local
1571 if (!wops->port_attr_bridge_flags_support_get) in rocker_world_port_attr_bridge_flags_support_get()
1573 return wops->port_attr_bridge_flags_support_get(rocker_port, in rocker_world_port_attr_bridge_flags_support_get()
1581 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_attr_pre_bridge_flags_set() local
1585 if (!wops->port_attr_bridge_flags_set) in rocker_world_port_attr_pre_bridge_flags_set()
1603 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_attr_bridge_flags_set() local
1605 if (!wops->port_attr_bridge_flags_set) in rocker_world_port_attr_bridge_flags_set()
1608 return wops->port_attr_bridge_flags_set(rocker_port, flags.val); in rocker_world_port_attr_bridge_flags_set()
1615 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_attr_bridge_ageing_time_set() local
1617 if (!wops->port_attr_bridge_ageing_time_set) in rocker_world_port_attr_bridge_ageing_time_set()
1620 return wops->port_attr_bridge_ageing_time_set(rocker_port, ageing_time); in rocker_world_port_attr_bridge_ageing_time_set()
1627 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_obj_vlan_add() local
1629 if (!wops->port_obj_vlan_add) in rocker_world_port_obj_vlan_add()
1632 return wops->port_obj_vlan_add(rocker_port, vlan); in rocker_world_port_obj_vlan_add()
1639 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_obj_vlan_del() local
1644 if (!wops->port_obj_vlan_del) in rocker_world_port_obj_vlan_del()
1646 return wops->port_obj_vlan_del(rocker_port, vlan); in rocker_world_port_obj_vlan_del()
1653 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_fdb_add() local
1655 if (!wops->port_obj_fdb_add) in rocker_world_port_fdb_add()
1658 return wops->port_obj_fdb_add(rocker_port, info->vid, info->addr); in rocker_world_port_fdb_add()
1665 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_fdb_del() local
1667 if (!wops->port_obj_fdb_del) in rocker_world_port_fdb_del()
1669 return wops->port_obj_fdb_del(rocker_port, info->vid, info->addr); in rocker_world_port_fdb_del()
1676 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_master_linked() local
1678 if (!wops->port_master_linked) in rocker_world_port_master_linked()
1680 return wops->port_master_linked(rocker_port, master, extack); in rocker_world_port_master_linked()
1686 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_master_unlinked() local
1688 if (!wops->port_master_unlinked) in rocker_world_port_master_unlinked()
1690 return wops->port_master_unlinked(rocker_port, master); in rocker_world_port_master_unlinked()
1696 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_neigh_update() local
1698 if (!wops->port_neigh_update) in rocker_world_port_neigh_update()
1700 return wops->port_neigh_update(rocker_port, n); in rocker_world_port_neigh_update()
1706 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_neigh_destroy() local
1708 if (!wops->port_neigh_destroy) in rocker_world_port_neigh_destroy()
1710 return wops->port_neigh_destroy(rocker_port, n); in rocker_world_port_neigh_destroy()
1717 struct rocker_world_ops *wops = rocker_port->rocker->wops; in rocker_world_port_ev_mac_vlan_seen() local
1719 if (!wops->port_ev_mac_vlan_seen) in rocker_world_port_ev_mac_vlan_seen()
1721 return wops->port_ev_mac_vlan_seen(rocker_port, addr, vlan_id); in rocker_world_port_ev_mac_vlan_seen()
1727 struct rocker_world_ops *wops = rocker->wops; in rocker_world_fib4_add() local
1729 if (!wops->fib4_add) in rocker_world_fib4_add()
1731 return wops->fib4_add(rocker, fen_info); in rocker_world_fib4_add()
1737 struct rocker_world_ops *wops = rocker->wops; in rocker_world_fib4_del() local
1739 if (!wops->fib4_del) in rocker_world_fib4_del()
1741 return wops->fib4_del(rocker, fen_info); in rocker_world_fib4_del()
1746 struct rocker_world_ops *wops = rocker->wops; in rocker_world_fib4_abort() local
1748 if (wops->fib4_abort) in rocker_world_fib4_abort()
1749 wops->fib4_abort(rocker); in rocker_world_fib4_abort()