Lines Matching defs:group

60 		struct tb_bandwidth_group *group = &tcm->groups[i];
62 group->tb = tcm_to_tb(tcm);
63 group->index = i + 1;
64 INIT_LIST_HEAD(&group->ports);
68 static void tb_bandwidth_group_attach_port(struct tb_bandwidth_group *group,
71 if (!group || WARN_ON(in->group))
74 in->group = group;
75 list_add_tail(&in->group_list, &group->ports);
77 tb_port_dbg(in, "attached to bandwidth group %d\n", group->index);
85 struct tb_bandwidth_group *group = &tcm->groups[i];
87 if (list_empty(&group->ports))
88 return group;
98 struct tb_bandwidth_group *group;
113 group = tunnel->src_port->group;
114 if (group) {
115 tb_bandwidth_group_attach_port(group, in);
116 return group;
121 /* Pick up next available group then */
122 group = tb_find_free_bandwidth_group(tcm);
123 if (group)
124 tb_bandwidth_group_attach_port(group, in);
128 return group;
151 struct tb_bandwidth_group *group = in->group;
153 if (group) {
154 in->group = NULL;
157 tb_port_dbg(in, "detached from bandwidth group %d\n", group->index);
1156 tb_recalc_estimated_bandwidth_for_group(struct tb_bandwidth_group *group)
1159 struct tb *tb = group->tb;
1163 tb_dbg(tb, "re-calculating bandwidth estimation for group %u\n",
1164 group->index);
1167 list_for_each_entry(in, &group->ports, group_list) {
1228 tb_dbg(tb, "bandwidth estimation for group %u done\n", group->index);
1239 struct tb_bandwidth_group *group = &tcm->groups[i];
1241 if (!list_empty(&group->ports))
1242 tb_recalc_estimated_bandwidth_for_group(group);
1844 * group the released bandwidth will be taken into
1861 * are also in the same group but we use the same function here