Lines Matching refs:coll
709 struct fwdb_collection *coll = (void *)(data + ptr); in valid_country() local
714 if ((u8 *)coll + offsetofend(typeof(*coll), n_rules) > data + size) in valid_country()
718 if ((u8 *)coll + ALIGN(coll->len, 2) + in valid_country()
719 (coll->n_rules * 2) > data + size) in valid_country()
723 if (coll->len < offsetofend(struct fwdb_collection, dfs_region)) in valid_country()
726 rules_ptr = (void *)((u8 *)coll + ALIGN(coll->len, 2)); in valid_country()
728 for (i = 0; i < coll->n_rules; i++) { in valid_country()
916 struct fwdb_collection *coll = (void *)((u8 *)db + ptr); in __regdb_query_wmm() local
919 for (i = 0; i < coll->n_rules; i++) { in __regdb_query_wmm()
920 __be16 *rules_ptr = (void *)((u8 *)coll + ALIGN(coll->len, 2)); in __regdb_query_wmm()
964 struct fwdb_collection *coll = (void *)((u8 *)db + ptr); in regdb_query_country() local
968 regdom = kzalloc(struct_size(regdom, reg_rules, coll->n_rules), in regdb_query_country()
973 regdom->n_reg_rules = coll->n_rules; in regdb_query_country()
976 regdom->dfs_region = coll->dfs_region; in regdb_query_country()
979 __be16 *rules_ptr = (void *)((u8 *)coll + ALIGN(coll->len, 2)); in regdb_query_country()