Lines Matching defs:attrs
43 struct nlattr **attrs)
45 if (attrs[DEVLINK_ATTR_SB_INDEX]) {
46 u32 sb_index = nla_get_u32(attrs[DEVLINK_ATTR_SB_INDEX]);
60 return devlink_sb_get_from_attrs(devlink, info->attrs);
64 struct nlattr **attrs,
69 if (!attrs[DEVLINK_ATTR_SB_POOL_INDEX])
72 val = nla_get_u16(attrs[DEVLINK_ATTR_SB_POOL_INDEX]);
83 return devlink_sb_pool_index_get_from_attrs(devlink_sb, info->attrs,
88 devlink_sb_pool_type_get_from_attrs(struct nlattr **attrs,
93 if (!attrs[DEVLINK_ATTR_SB_POOL_TYPE])
96 val = nla_get_u8(attrs[DEVLINK_ATTR_SB_POOL_TYPE]);
108 return devlink_sb_pool_type_get_from_attrs(info->attrs, p_pool_type);
112 devlink_sb_th_type_get_from_attrs(struct nlattr **attrs,
117 if (!attrs[DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE])
120 val = nla_get_u8(attrs[DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE]);
132 return devlink_sb_th_type_get_from_attrs(info->attrs, p_th_type);
137 struct nlattr **attrs,
143 if (!attrs[DEVLINK_ATTR_SB_TC_INDEX])
146 val = nla_get_u16(attrs[DEVLINK_ATTR_SB_TC_INDEX]);
163 return devlink_sb_tc_index_get_from_attrs(devlink_sb, info->attrs,
441 size = nla_get_u32(info->attrs[DEVLINK_ATTR_SB_POOL_SIZE]);
646 threshold = nla_get_u32(info->attrs[DEVLINK_ATTR_SB_THRESHOLD]);
897 threshold = nla_get_u32(info->attrs[DEVLINK_ATTR_SB_THRESHOLD]);