Lines Matching refs:coll
710 struct fwdb_collection *coll = (void *)(data + ptr); in valid_country() local
715 if ((u8 *)coll + offsetofend(typeof(*coll), n_rules) > data + size) in valid_country()
719 if ((u8 *)coll + ALIGN(coll->len, 2) + in valid_country()
720 (coll->n_rules * 2) > data + size) in valid_country()
724 if (coll->len < offsetofend(struct fwdb_collection, dfs_region)) in valid_country()
727 rules_ptr = (void *)((u8 *)coll + ALIGN(coll->len, 2)); in valid_country()
729 for (i = 0; i < coll->n_rules; i++) { in valid_country()
881 struct fwdb_collection *coll = (void *)((u8 *)db + ptr); in __regdb_query_wmm() local
884 for (i = 0; i < coll->n_rules; i++) { in __regdb_query_wmm()
885 __be16 *rules_ptr = (void *)((u8 *)coll + ALIGN(coll->len, 2)); in __regdb_query_wmm()
929 struct fwdb_collection *coll = (void *)((u8 *)db + ptr); in regdb_query_country() local
933 regdom = kzalloc(struct_size(regdom, reg_rules, coll->n_rules), in regdb_query_country()
938 regdom->n_reg_rules = coll->n_rules; in regdb_query_country()
941 regdom->dfs_region = coll->dfs_region; in regdb_query_country()
944 __be16 *rules_ptr = (void *)((u8 *)coll + ALIGN(coll->len, 2)); in regdb_query_country()