Lines Matching refs:group

47 struct group {  struct
48 struct group *next; argument
54 static struct group *first_group, **last_group = &first_group; argument
59 matches_single_device(struct group *group) in matches_single_device() argument
61 struct pci_filter *f = &group->filter; in matches_single_device()
66 select_devices(struct group *group) in select_devices() argument
68 struct pci_filter *f = &group->filter; in select_devices()
70 if (!need_bus_scan && matches_single_device(group)) in select_devices()
226 struct group *group; in execute() local
229 for (group = first_group; group; group = group->next) in execute()
231 struct pci_dev **vec = select_devices(group); in execute()
242 for (op = group->first_op; op; op = op->next) in execute()
253 struct group *group; in scan_ops() local
256 for (group = first_group; group; group = group->next) in scan_ops()
257 for (op = group->first_op; op; op = op->next) in scan_ops()
261 if (!matches_single_device(group) || !allow_raw_access) in scan_ops()
544 static int parse_filter(int argc, char **argv, int i, struct group *group) in parse_filter() argument
560 if (d = pci_filter_parse_slot(&group->filter, d)) in parse_filter()
564 if (d = pci_filter_parse_id(&group->filter, d)) in parse_filter()
662 static void parse_op(char *c, struct group *group) in parse_op() argument
695 *group->last_op = op; in parse_op()
696 group->last_op = &op->next; in parse_op()
779 static struct group *new_group(void) in new_group()
781 struct group *g = xmalloc(sizeof(*g)); in new_group()
794 struct group *group = NULL; in parse_ops() local
802 if (!group || group->first_op) in parse_ops()
803 group = new_group(); in parse_ops()
804 i = parse_filter(argc, argv, i-1, group); in parse_ops()
808 if (!group) in parse_ops()
810 parse_op(c, group); in parse_ops()
813 if (!group) in parse_ops()