Lines Matching refs:ops
32 const struct swdev_ops *ops = dev->swdev_ops; in netdev_switch_parent_id_get() local
34 if (!ops || !ops->swdev_parent_id_get) in netdev_switch_parent_id_get()
36 return ops->swdev_parent_id_get(dev, psid); in netdev_switch_parent_id_get()
50 const struct swdev_ops *ops = dev->swdev_ops; in netdev_switch_port_stp_update() local
55 if (ops && ops->swdev_port_stp_update) in netdev_switch_port_stp_update()
56 return ops->swdev_port_stp_update(dev, state); in netdev_switch_port_stp_update()
144 const struct net_device_ops *ops = dev->netdev_ops; in netdev_switch_port_bridge_setlink() local
149 if (!ops->ndo_bridge_setlink) in netdev_switch_port_bridge_setlink()
152 return ops->ndo_bridge_setlink(dev, nlh, flags); in netdev_switch_port_bridge_setlink()
169 const struct net_device_ops *ops = dev->netdev_ops; in netdev_switch_port_bridge_dellink() local
174 if (!ops->ndo_bridge_dellink) in netdev_switch_port_bridge_dellink()
177 return ops->ndo_bridge_dellink(dev, nlh, flags); in netdev_switch_port_bridge_dellink()
243 const struct swdev_ops *ops = dev->swdev_ops; in netdev_switch_get_lowest_dev() local
253 ops && ops->swdev_parent_id_get) in netdev_switch_get_lowest_dev()
317 const struct swdev_ops *ops; in netdev_switch_fib_ipv4_add() local
335 ops = dev->swdev_ops; in netdev_switch_fib_ipv4_add()
337 if (ops->swdev_fib_ipv4_add) { in netdev_switch_fib_ipv4_add()
338 err = ops->swdev_fib_ipv4_add(dev, htonl(dst), dst_len, in netdev_switch_fib_ipv4_add()
365 const struct swdev_ops *ops; in netdev_switch_fib_ipv4_del() local
374 ops = dev->swdev_ops; in netdev_switch_fib_ipv4_del()
376 if (ops->swdev_fib_ipv4_del) { in netdev_switch_fib_ipv4_del()
377 err = ops->swdev_fib_ipv4_del(dev, htonl(dst), dst_len, in netdev_switch_fib_ipv4_del()