Lines Matching refs:coll
690 struct fwdb_collection *coll = (void *)(data + ptr); in valid_country() local
695 if ((u8 *)coll + offsetofend(typeof(*coll), n_rules) > data + size) in valid_country()
699 if ((u8 *)coll + ALIGN(coll->len, 2) + in valid_country()
700 (coll->n_rules * 2) > data + size) in valid_country()
704 if (coll->len < offsetofend(struct fwdb_collection, dfs_region)) in valid_country()
707 rules_ptr = (void *)((u8 *)coll + ALIGN(coll->len, 2)); in valid_country()
709 for (i = 0; i < coll->n_rules; i++) { in valid_country()
899 struct fwdb_collection *coll = (void *)((u8 *)db + ptr); in __regdb_query_wmm() local
902 for (i = 0; i < coll->n_rules; i++) { in __regdb_query_wmm()
903 __be16 *rules_ptr = (void *)((u8 *)coll + ALIGN(coll->len, 2)); in __regdb_query_wmm()
947 struct fwdb_collection *coll = (void *)((u8 *)db + ptr); in regdb_query_country() local
951 regdom = kzalloc(struct_size(regdom, reg_rules, coll->n_rules), in regdb_query_country()
956 regdom->n_reg_rules = coll->n_rules; in regdb_query_country()
959 regdom->dfs_region = coll->dfs_region; in regdb_query_country()
962 __be16 *rules_ptr = (void *)((u8 *)coll + ALIGN(coll->len, 2)); in regdb_query_country()