Searched refs:num_rules (Results 1 – 2 of 2) sorted by relevance
1540 unsigned int num_rules = 0; in regdom_intersect() local1562 num_rules++; in regdom_intersect()1566 if (!num_rules) in regdom_intersect()1569 rd = kzalloc(struct_size(rd, reg_rules, num_rules), GFP_KERNEL); in regdom_intersect()
8618 u32 num_rules = 0, rule_idx = 0; in nl80211_set_reg() local8635 num_rules++; in nl80211_set_reg()8636 if (num_rules > NL80211_MAX_SUPP_REG_RULES) in nl80211_set_reg()8646 rd = kzalloc(struct_size(rd, reg_rules, num_rules), GFP_KERNEL); in nl80211_set_reg()8652 rd->n_reg_rules = num_rules; in nl80211_set_reg()