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