Lines Matching refs:idx
578 struct clusterip_seq_position *idx;
586 idx = kmalloc(sizeof(struct clusterip_seq_position), GFP_KERNEL);
587 if (!idx)
590 idx->pos = *pos;
591 idx->weight = weight;
592 idx->bit = ffs(local_nodes);
593 idx->val = local_nodes;
594 clear_bit(idx->bit - 1, &idx->val);
596 return idx;
601 struct clusterip_seq_position *idx = v;
603 *pos = ++idx->pos;
604 if (*pos >= idx->weight) {
608 idx->bit = ffs(idx->val);
609 clear_bit(idx->bit - 1, &idx->val);
610 return idx;
621 struct clusterip_seq_position *idx = v;
623 if (idx->pos != 0)
626 seq_printf(s, "%u", idx->bit);
628 if (idx->pos == idx->weight - 1)