Lines Matching refs:sb_index
25 unsigned int sb_index) in devlink_sb_get_by_index() argument
30 if (devlink_sb->index == sb_index) in devlink_sb_get_by_index()
37 unsigned int sb_index) in devlink_sb_index_exists() argument
39 return devlink_sb_get_by_index(devlink, sb_index); in devlink_sb_index_exists()
46 u32 sb_index = nla_get_u32(attrs[DEVLINK_ATTR_SB_INDEX]); in devlink_sb_get_from_attrs() local
49 devlink_sb = devlink_sb_get_by_index(devlink, sb_index); in devlink_sb_get_from_attrs()
402 static int devlink_sb_pool_set(struct devlink *devlink, unsigned int sb_index, in devlink_sb_pool_set() argument
411 return ops->sb_pool_set(devlink, sb_index, pool_index, in devlink_sb_pool_set()
611 unsigned int sb_index, u16 pool_index, in devlink_sb_port_pool_set() argument
619 return ops->sb_port_pool_set(devlink_port, sb_index, in devlink_sb_port_pool_set()
849 unsigned int sb_index, u16 tc_index, in devlink_sb_tc_pool_bind_set() argument
858 return ops->sb_tc_pool_bind_set(devlink_port, sb_index, in devlink_sb_tc_pool_bind_set()
934 int devl_sb_register(struct devlink *devlink, unsigned int sb_index, in devl_sb_register() argument
943 if (devlink_sb_index_exists(devlink, sb_index)) in devl_sb_register()
949 devlink_sb->index = sb_index; in devl_sb_register()
960 int devlink_sb_register(struct devlink *devlink, unsigned int sb_index, in devlink_sb_register() argument
968 err = devl_sb_register(devlink, sb_index, size, ingress_pools_count, in devlink_sb_register()
976 void devl_sb_unregister(struct devlink *devlink, unsigned int sb_index) in devl_sb_unregister() argument
982 devlink_sb = devlink_sb_get_by_index(devlink, sb_index); in devl_sb_unregister()
989 void devlink_sb_unregister(struct devlink *devlink, unsigned int sb_index) in devlink_sb_unregister() argument
992 devl_sb_unregister(devlink, sb_index); in devlink_sb_unregister()