• Home
  • Raw
  • Download

Lines Matching refs:i

114 	int i;  in genl_family_find_byname()  local
116 for (i = 0; i < GENL_FAM_TAB_SIZE; i++) in genl_family_find_byname()
117 list_for_each_entry(f, genl_family_chain(i), family_list) in genl_family_find_byname()
126 int i; in genl_get_cmd() local
128 for (i = 0; i < family->n_ops; i++) in genl_get_cmd()
129 if (family->ops[i].cmd == cmd) in genl_get_cmd()
130 return &family->ops[i]; in genl_get_cmd()
141 int i; in genl_generate_id() local
143 for (i = 0; i <= GENL_MAX_ID - GENL_MIN_ID; i++) { in genl_generate_id()
159 int i; in genl_allocate_reserve_groups() local
174 for (i = id; in genl_allocate_reserve_groups()
175 i < min_t(int, id + n_groups, in genl_allocate_reserve_groups()
177 i++) { in genl_allocate_reserve_groups()
178 if (test_bit(i, mc_groups)) { in genl_allocate_reserve_groups()
179 start = i; in genl_allocate_reserve_groups()
202 for (i = 0; i < BITS_TO_LONGS(n_groups); i++) in genl_allocate_reserve_groups()
203 mc_groups[mc_groups_longs + i] = 0; in genl_allocate_reserve_groups()
209 for (i = id; i < id + n_groups; i++) in genl_allocate_reserve_groups()
210 set_bit(i, mc_groups); in genl_allocate_reserve_groups()
221 int err = 0, i; in genl_validate_assign_mc_groups() local
227 for (i = 0; i < n_groups; i++) { in genl_validate_assign_mc_groups()
228 const struct genl_multicast_group *grp = &family->mcgrps[i]; in genl_validate_assign_mc_groups()
288 for (i = 0; i < family->n_mcgrps; i++) in genl_validate_assign_mc_groups()
289 clear_bit(family->mcgrp_offset + i, mc_groups); in genl_validate_assign_mc_groups()
298 int i; in genl_unregister_mc_groups() local
303 for (i = 0; i < family->n_mcgrps; i++) in genl_unregister_mc_groups()
305 net->genl_sock, family->mcgrp_offset + i); in genl_unregister_mc_groups()
310 for (i = 0; i < family->n_mcgrps; i++) { in genl_unregister_mc_groups()
311 int grp_id = family->mcgrp_offset + i; in genl_unregister_mc_groups()
316 &family->mcgrps[i], grp_id); in genl_unregister_mc_groups()
324 int i, j; in genl_validate_ops() local
332 for (i = 0; i < n_ops; i++) { in genl_validate_ops()
333 if (ops[i].dumpit == NULL && ops[i].doit == NULL) in genl_validate_ops()
335 for (j = i + 1; j < n_ops; j++) in genl_validate_ops()
336 if (ops[i].cmd == ops[j].cmd) in genl_validate_ops()
359 int err = -EINVAL, i; in __genl_register_family() local
411 for (i = 0; i < family->n_mcgrps; i++) in __genl_register_family()
413 &family->mcgrps[i], family->mcgrp_offset + i); in __genl_register_family()
714 int i; in ctrl_fill_info() local
720 for (i = 0; i < family->n_ops; i++) { in ctrl_fill_info()
722 const struct genl_ops *ops = &family->ops[i]; in ctrl_fill_info()
732 nest = nla_nest_start(skb, i + 1); in ctrl_fill_info()
748 int i; in ctrl_fill_info() local
754 for (i = 0; i < family->n_mcgrps; i++) { in ctrl_fill_info()
758 grp = &family->mcgrps[i]; in ctrl_fill_info()
760 nest = nla_nest_start(skb, i + 1); in ctrl_fill_info()
765 family->mcgrp_offset + i) || in ctrl_fill_info()
825 int i, n = 0; in ctrl_dumpfamily() local
831 for (i = chains_to_skip; i < GENL_FAM_TAB_SIZE; i++) { in ctrl_dumpfamily()
833 list_for_each_entry(rt, genl_family_chain(i), family_list) { in ctrl_dumpfamily()
848 cb->args[0] = i; in ctrl_dumpfamily()
1034 int i, err; in genl_init() local
1036 for (i = 0; i < GENL_FAM_TAB_SIZE; i++) in genl_init()
1037 INIT_LIST_HEAD(&family_ht[i]); in genl_init()