Lines Matching defs:counter
474 /* reduce the sink counter */
521 /* Reduce the sink counter */
925 struct res_counter *counter;
936 counter = container_of(r, struct res_counter, com);
937 if (!counter->port)
938 counter->port = port;
952 struct res_counter *counter;
960 counter = container_of(tmp, struct res_counter, com);
961 if (port == counter->port) {
962 qpc->pri_path.counter_index = counter->com.res_id;
969 /* No existing counter, need to allocate a new counter */
975 mlx4_err(dev, "%s: failed to create new counter for slave %d err %d\n",
979 mlx4_dbg(dev, "%s: alloc new counter for slave %d index %d\n",
1184 struct res_counter *counter;
1199 counter = container_of(tmp, struct res_counter, com);
1200 if (counter->port == port) {
5144 struct res_counter *counter;
5164 list_for_each_entry_safe(counter, tmp, counter_list, com.list) {
5165 if (counter->com.owner == slave) {
5166 counters_arr[i++] = counter->com.res_id;
5167 rb_erase(&counter->com.node,
5169 list_del(&counter->com.list);
5170 kfree(counter);