Lines Matching refs:mask_ids
139 ring = &priv->mask_ids.mask_id_free_list; in nfp_release_mask_id()
148 priv->mask_ids.last_used[mask_id] = ktime_get(); in nfp_release_mask_id()
160 ring = &priv->mask_ids.mask_id_free_list; in nfp_mask_alloc()
163 if (priv->mask_ids.init_unallocated > 0) { in nfp_mask_alloc()
164 *mask_id = priv->mask_ids.init_unallocated; in nfp_mask_alloc()
165 priv->mask_ids.init_unallocated--; in nfp_mask_alloc()
176 reuse_timeout = ktime_add_ns(priv->mask_ids.last_used[*mask_id], in nfp_mask_alloc()
502 priv->mask_ids.mask_id_free_list.buf = in nfp_flower_metadata_init()
505 if (!priv->mask_ids.mask_id_free_list.buf) in nfp_flower_metadata_init()
508 priv->mask_ids.init_unallocated = NFP_FLOWER_MASK_ENTRY_RS - 1; in nfp_flower_metadata_init()
511 priv->mask_ids.last_used = in nfp_flower_metadata_init()
513 sizeof(*priv->mask_ids.last_used), GFP_KERNEL); in nfp_flower_metadata_init()
514 if (!priv->mask_ids.last_used) in nfp_flower_metadata_init()
540 kfree(priv->mask_ids.last_used); in nfp_flower_metadata_init()
542 kfree(priv->mask_ids.mask_id_free_list.buf); in nfp_flower_metadata_init()
562 kfree(priv->mask_ids.mask_id_free_list.buf); in nfp_flower_metadata_cleanup()
563 kfree(priv->mask_ids.last_used); in nfp_flower_metadata_cleanup()