Lines Matching defs:coll
712 struct fwdb_collection *coll = (void *)(data + ptr);
717 if ((u8 *)coll + offsetofend(typeof(*coll), n_rules) > data + size)
721 if ((u8 *)coll + ALIGN(coll->len, 2) +
722 (coll->n_rules * 2) > data + size)
726 if (coll->len < offsetofend(struct fwdb_collection, dfs_region))
729 rules_ptr = (void *)((u8 *)coll + ALIGN(coll->len, 2));
731 for (i = 0; i < coll->n_rules; i++) {
883 struct fwdb_collection *coll = (void *)((u8 *)db + ptr);
886 for (i = 0; i < coll->n_rules; i++) {
887 __be16 *rules_ptr = (void *)((u8 *)coll + ALIGN(coll->len, 2));
931 struct fwdb_collection *coll = (void *)((u8 *)db + ptr);
935 regdom = kzalloc(struct_size(regdom, reg_rules, coll->n_rules),
940 regdom->n_reg_rules = coll->n_rules;
943 regdom->dfs_region = coll->dfs_region;
946 __be16 *rules_ptr = (void *)((u8 *)coll + ALIGN(coll->len, 2));