Lines Matching refs:ops

13     struct netif_ops *ops = device_get_driver_ops(dev, struct netif_ops, std);  in class_netif_set_state()  local
14 if (!ops) in class_netif_set_state()
17 if (ops->set_state) in class_netif_set_state()
18 return ops->set_state(dev, state); in class_netif_set_state()
24 struct netif_ops *ops = device_get_driver_ops(dev, struct netif_ops, std); in class_netif_get_hwaddr() local
25 if (!ops) in class_netif_get_hwaddr()
28 if (ops->get_hwaddr) in class_netif_get_hwaddr()
29 return ops->get_hwaddr(dev, buf, max_len); in class_netif_get_hwaddr()
35 struct netif_ops *ops = device_get_driver_ops(dev, struct netif_ops, std); in class_netif_get_mtu() local
36 if (!ops) in class_netif_get_mtu()
39 if (ops->get_mtu) in class_netif_get_mtu()
40 return ops->get_mtu(dev); in class_netif_get_mtu()
46 struct netif_ops *ops = device_get_driver_ops(dev, struct netif_ops, std); in class_netif_set_status() local
47 if (!ops) in class_netif_set_status()
50 if (ops->set_status) in class_netif_set_status()
51 return ops->set_status(dev, up); in class_netif_set_status()
57 struct netif_ops *ops = device_get_driver_ops(dev, struct netif_ops, std); in class_netif_output() local
58 if (!ops) in class_netif_output()
61 if (ops->output) in class_netif_output()
62 return ops->output(dev, p); in class_netif_output()
68 struct netif_ops *ops = device_get_driver_ops(dev, struct netif_ops, std); in class_netif_mcast_filter() local
69 if (!ops) in class_netif_mcast_filter()
72 if (ops->mcast_filter) in class_netif_mcast_filter()
73 return ops->mcast_filter(dev, mac, action); in class_netif_mcast_filter()