Lines Matching refs:mask_ids
142 ring = &priv->mask_ids.mask_id_free_list; in nfp_release_mask_id()
156 priv->mask_ids.last_used[mask_id] = ktime_get(); in nfp_release_mask_id()
168 ring = &priv->mask_ids.mask_id_free_list; in nfp_mask_alloc()
171 if (priv->mask_ids.init_unallocated > 0) { in nfp_mask_alloc()
172 *mask_id = priv->mask_ids.init_unallocated; in nfp_mask_alloc()
173 priv->mask_ids.init_unallocated--; in nfp_mask_alloc()
188 reuse_timeout = ktime_add_ns(priv->mask_ids.last_used[*mask_id], in nfp_mask_alloc()
550 priv->mask_ids.mask_id_free_list.buf = in nfp_flower_metadata_init()
553 if (!priv->mask_ids.mask_id_free_list.buf) in nfp_flower_metadata_init()
556 priv->mask_ids.init_unallocated = NFP_FLOWER_MASK_ENTRY_RS - 1; in nfp_flower_metadata_init()
559 priv->mask_ids.last_used = in nfp_flower_metadata_init()
561 sizeof(*priv->mask_ids.last_used), GFP_KERNEL); in nfp_flower_metadata_init()
562 if (!priv->mask_ids.last_used) in nfp_flower_metadata_init()
589 kfree(priv->mask_ids.last_used); in nfp_flower_metadata_init()
591 kfree(priv->mask_ids.mask_id_free_list.buf); in nfp_flower_metadata_init()
723 kfree(priv->mask_ids.mask_id_free_list.buf); in nfp_flower_metadata_cleanup()
724 kfree(priv->mask_ids.last_used); in nfp_flower_metadata_cleanup()