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