Lines Matching refs:ops
17 if (ds->ops->devlink_info_get) in dsa_devlink_info_get()
18 return ds->ops->devlink_info_get(ds, req, extack); in dsa_devlink_info_get()
29 if (!ds->ops->devlink_sb_pool_get) in dsa_devlink_sb_pool_get()
32 return ds->ops->devlink_sb_pool_get(ds, sb_index, pool_index, in dsa_devlink_sb_pool_get()
43 if (!ds->ops->devlink_sb_pool_set) in dsa_devlink_sb_pool_set()
46 return ds->ops->devlink_sb_pool_set(ds, sb_index, pool_index, size, in dsa_devlink_sb_pool_set()
57 if (!ds->ops->devlink_sb_port_pool_get) in dsa_devlink_sb_port_pool_get()
60 return ds->ops->devlink_sb_port_pool_get(ds, port, sb_index, in dsa_devlink_sb_port_pool_get()
72 if (!ds->ops->devlink_sb_port_pool_set) in dsa_devlink_sb_port_pool_set()
75 return ds->ops->devlink_sb_port_pool_set(ds, port, sb_index, in dsa_devlink_sb_port_pool_set()
88 if (!ds->ops->devlink_sb_tc_pool_bind_get) in dsa_devlink_sb_tc_pool_bind_get()
91 return ds->ops->devlink_sb_tc_pool_bind_get(ds, port, sb_index, in dsa_devlink_sb_tc_pool_bind_get()
106 if (!ds->ops->devlink_sb_tc_pool_bind_set) in dsa_devlink_sb_tc_pool_bind_set()
109 return ds->ops->devlink_sb_tc_pool_bind_set(ds, port, sb_index, in dsa_devlink_sb_tc_pool_bind_set()
120 if (!ds->ops->devlink_sb_occ_snapshot) in dsa_devlink_sb_occ_snapshot()
123 return ds->ops->devlink_sb_occ_snapshot(ds, sb_index); in dsa_devlink_sb_occ_snapshot()
131 if (!ds->ops->devlink_sb_occ_max_clear) in dsa_devlink_sb_occ_max_clear()
134 return ds->ops->devlink_sb_occ_max_clear(ds, sb_index); in dsa_devlink_sb_occ_max_clear()
145 if (!ds->ops->devlink_sb_occ_port_pool_get) in dsa_devlink_sb_occ_port_pool_get()
148 return ds->ops->devlink_sb_occ_port_pool_get(ds, port, sb_index, in dsa_devlink_sb_occ_port_pool_get()
161 if (!ds->ops->devlink_sb_occ_tc_port_bind_get) in dsa_devlink_sb_occ_tc_port_bind_get()
164 return ds->ops->devlink_sb_occ_tc_port_bind_get(ds, port, in dsa_devlink_sb_occ_tc_port_bind_get()
189 if (!ds->ops->devlink_param_get) in dsa_devlink_param_get()
192 return ds->ops->devlink_param_get(ds, id, ctx); in dsa_devlink_param_get()
201 if (!ds->ops->devlink_param_set) in dsa_devlink_param_set()
204 return ds->ops->devlink_param_set(ds, id, ctx); in dsa_devlink_param_set()
263 const struct devlink_region_ops *ops, in dsa_devlink_region_create() argument
266 return devlink_region_create(ds->devlink, ops, region_max_snapshots, in dsa_devlink_region_create()
274 const struct devlink_port_region_ops *ops, in dsa_devlink_port_region_create() argument
279 return devlink_port_region_create(&dp->devlink_port, ops, in dsa_devlink_port_region_create()
305 if (ds->ops->port_setup) { in dsa_port_devlink_setup()
306 err = ds->ops->port_setup(ds, dp->index); in dsa_port_devlink_setup()
336 if (ds->ops->port_teardown) in dsa_port_devlink_setup()
337 ds->ops->port_teardown(ds, dp->index); in dsa_port_devlink_setup()
351 if (ds->ops->port_teardown) in dsa_port_devlink_teardown()
352 ds->ops->port_teardown(ds, dp->index); in dsa_port_devlink_teardown()