Lines Matching refs:ops
36 if (!ds->ops->port_rxtstamp) in dsa_skb_defer_rx_timestamp()
51 return ds->ops->port_rxtstamp(ds, p->dp->index, skb, type); in dsa_skb_defer_rx_timestamp()
169 const char *dsa_tag_protocol_to_str(const struct dsa_device_ops *ops) in dsa_tag_protocol_to_str() argument
171 return ops->name; in dsa_tag_protocol_to_str()
179 const struct dsa_device_ops *ops = ERR_PTR(-ENOPROTOOPT); in dsa_tag_driver_get_by_name() local
186 const struct dsa_device_ops *tmp = dsa_tag_driver->ops; in dsa_tag_driver_get_by_name()
194 ops = tmp; in dsa_tag_driver_get_by_name()
199 return ops; in dsa_tag_driver_get_by_name()
205 const struct dsa_device_ops *ops; in dsa_tag_driver_get_by_id() local
212 ops = dsa_tag_driver->ops; in dsa_tag_driver_get_by_id()
213 if (ops->proto == tag_protocol) { in dsa_tag_driver_get_by_id()
221 ops = ERR_PTR(-ENOPROTOOPT); in dsa_tag_driver_get_by_id()
223 ops = ERR_PTR(-ENOPROTOOPT); in dsa_tag_driver_get_by_id()
228 return ops; in dsa_tag_driver_get_by_id()
231 void dsa_tag_driver_put(const struct dsa_device_ops *ops) in dsa_tag_driver_put() argument
237 if (dsa_tag_driver->ops == ops) { in dsa_tag_driver_put()