Lines Matching refs:sb_index
562 unsigned int sb_index) in devlink_sb_get_by_index() argument
567 if (devlink_sb->index == sb_index) in devlink_sb_get_by_index()
574 unsigned int sb_index) in devlink_sb_index_exists() argument
576 return devlink_sb_get_by_index(devlink, sb_index); in devlink_sb_index_exists()
583 u32 sb_index = nla_get_u32(attrs[DEVLINK_ATTR_SB_INDEX]); in devlink_sb_get_from_attrs() local
586 devlink_sb = devlink_sb_get_by_index(devlink, sb_index); in devlink_sb_get_from_attrs()
2666 static int devlink_sb_pool_set(struct devlink *devlink, unsigned int sb_index, in devlink_sb_pool_set() argument
2675 return ops->sb_pool_set(devlink, sb_index, pool_index, in devlink_sb_pool_set()
2881 unsigned int sb_index, u16 pool_index, in devlink_sb_port_pool_set() argument
2889 return ops->sb_port_pool_set(devlink_port, sb_index, in devlink_sb_port_pool_set()
3124 unsigned int sb_index, u16 tc_index, in devlink_sb_tc_pool_bind_set() argument
3133 return ops->sb_tc_pool_bind_set(devlink_port, sb_index, in devlink_sb_tc_pool_bind_set()
10616 int devl_sb_register(struct devlink *devlink, unsigned int sb_index, in devl_sb_register() argument
10625 if (devlink_sb_index_exists(devlink, sb_index)) in devl_sb_register()
10631 devlink_sb->index = sb_index; in devl_sb_register()
10642 int devlink_sb_register(struct devlink *devlink, unsigned int sb_index, in devlink_sb_register() argument
10650 err = devl_sb_register(devlink, sb_index, size, ingress_pools_count, in devlink_sb_register()
10658 void devl_sb_unregister(struct devlink *devlink, unsigned int sb_index) in devl_sb_unregister() argument
10664 devlink_sb = devlink_sb_get_by_index(devlink, sb_index); in devl_sb_unregister()
10671 void devlink_sb_unregister(struct devlink *devlink, unsigned int sb_index) in devlink_sb_unregister() argument
10674 devl_sb_unregister(devlink, sb_index); in devlink_sb_unregister()