Lines Matching defs:coll
701 struct fwdb_collection *coll = (void *)(data + ptr);
706 if ((u8 *)coll + offsetofend(typeof(*coll), n_rules) > data + size)
710 if ((u8 *)coll + ALIGN(coll->len, 2) +
711 (coll->n_rules * 2) > data + size)
715 if (coll->len < offsetofend(struct fwdb_collection, dfs_region))
718 rules_ptr = (void *)((u8 *)coll + ALIGN(coll->len, 2));
720 for (i = 0; i < coll->n_rules; i++) {
872 struct fwdb_collection *coll = (void *)((u8 *)db + ptr);
875 for (i = 0; i < coll->n_rules; i++) {
876 __be16 *rules_ptr = (void *)((u8 *)coll + ALIGN(coll->len, 2));
920 struct fwdb_collection *coll = (void *)((u8 *)db + ptr);
924 regdom = kzalloc_flex(*regdom, reg_rules, coll->n_rules);
928 regdom->n_reg_rules = coll->n_rules;
931 regdom->dfs_region = coll->dfs_region;
934 __be16 *rules_ptr = (void *)((u8 *)coll + ALIGN(coll->len, 2));