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()
897 struct fwdb_collection *coll = (void *)((u8 *)db + ptr); in __regdb_query_wmm() local
900 for (i = 0; i < coll->n_rules; i++) { in __regdb_query_wmm()
901 __be16 *rules_ptr = (void *)((u8 *)coll + ALIGN(coll->len, 2)); in __regdb_query_wmm()
945 struct fwdb_collection *coll = (void *)((u8 *)db + ptr); in regdb_query_country() local
949 regdom = kzalloc(struct_size(regdom, reg_rules, coll->n_rules), in regdb_query_country()
954 regdom->n_reg_rules = coll->n_rules; in regdb_query_country()
957 regdom->dfs_region = coll->dfs_region; in regdb_query_country()
960 __be16 *rules_ptr = (void *)((u8 *)coll + ALIGN(coll->len, 2)); in regdb_query_country()