Lines Matching refs:group

45 	const struct devlink_trap_group *group;  member
274 group_item->group->name)) in devlink_nl_trap_fill()
441 if (!strcmp(group_item->group->name, name)) in devlink_trap_group_item_lookup()
454 if (group_item->group->id == id) in devlink_trap_group_item_lookup_by_id()
491 group_item->group->name)) in devlink_nl_trap_group_fill()
494 if (group_item->group->generic && in devlink_nl_trap_group_fill()
591 const char *group_name = group_item->group->name; in __devlink_trap_group_action_set()
596 err = devlink->ops->trap_group_action_set(devlink, group_item->group, in __devlink_trap_group_action_set()
602 if (strcmp(trap_item->group_item->group->name, group_name)) in __devlink_trap_group_action_set()
614 if (strcmp(trap_item->group_item->group->name, group_name)) in __devlink_trap_group_action_set()
677 err = devlink->ops->trap_group_set(devlink, group_item->group, policer, in devlink_trap_group_set()
1132 devlink_trap_group_generic_verify(const struct devlink_trap_group *group) in devlink_trap_group_generic_verify() argument
1134 if (group->id > DEVLINK_TRAP_GROUP_GENERIC_ID_MAX) in devlink_trap_group_generic_verify()
1137 if (strcmp(group->name, devlink_trap_group_generic[group->id].name)) in devlink_trap_group_generic_verify()
1144 devlink_trap_group_driver_verify(const struct devlink_trap_group *group) in devlink_trap_group_driver_verify() argument
1148 if (group->id <= DEVLINK_TRAP_GROUP_GENERIC_ID_MAX) in devlink_trap_group_driver_verify()
1152 if (!strcmp(group->name, devlink_trap_group_generic[i].name)) in devlink_trap_group_driver_verify()
1159 static int devlink_trap_group_verify(const struct devlink_trap_group *group) in devlink_trap_group_verify() argument
1161 if (group->generic) in devlink_trap_group_verify()
1162 return devlink_trap_group_generic_verify(group); in devlink_trap_group_verify()
1164 return devlink_trap_group_driver_verify(group); in devlink_trap_group_verify()
1474 metadata->trap_group_name = trap_item->group_item->group->name; in devlink_trap_report_metadata_set()
1530 u32 policer_id = group_item->group->init_policer_id; in devlink_trap_group_item_policer_link()
1547 const struct devlink_trap_group *group) in devlink_trap_group_register() argument
1552 if (devlink_trap_group_item_lookup(devlink, group->name)) in devlink_trap_group_register()
1565 group_item->group = group; in devlink_trap_group_register()
1572 err = devlink->ops->trap_group_init(devlink, group); in devlink_trap_group_register()
1593 const struct devlink_trap_group *group) in devlink_trap_group_unregister() argument
1597 group_item = devlink_trap_group_item_lookup(devlink, group->name); in devlink_trap_group_unregister()
1624 const struct devlink_trap_group *group = &groups[i]; in devl_trap_groups_register() local
1626 err = devlink_trap_group_verify(group); in devl_trap_groups_register()
1630 err = devlink_trap_group_register(devlink, group); in devl_trap_groups_register()