Lines Matching refs:mask_id
20 u8 mask_id; member
137 static int nfp_release_mask_id(struct nfp_app *app, u8 mask_id) in nfp_release_mask_id() argument
152 memcpy(&ring->buf[ring->head * NFP_FLOWER_MASK_ELEMENT_RS], &mask_id, in nfp_release_mask_id()
156 priv->mask_ids.last_used[mask_id] = ktime_get(); in nfp_release_mask_id()
161 static int nfp_mask_alloc(struct nfp_app *app, u8 *mask_id) in nfp_mask_alloc() argument
172 *mask_id = priv->mask_ids.init_unallocated; in nfp_mask_alloc()
186 *mask_id = temp_id; in nfp_mask_alloc()
188 reuse_timeout = ktime_add_ns(priv->mask_ids.last_used[*mask_id], in nfp_mask_alloc()
202 *mask_id = freed_id; in nfp_mask_alloc()
212 u8 mask_id; in nfp_add_mask_table() local
214 if (nfp_mask_alloc(app, &mask_id)) in nfp_add_mask_table()
219 nfp_release_mask_id(app, mask_id); in nfp_add_mask_table()
224 mask_entry->mask_id = mask_id; in nfp_add_mask_table()
230 return mask_id; in nfp_add_mask_table()
261 return mask_entry->mask_id; in nfp_find_in_mask_table()
266 u8 *meta_flags, u8 *mask_id) in nfp_check_mask_add() argument
277 *mask_id = id; in nfp_check_mask_add()
284 u8 *meta_flags, u8 *mask_id) in nfp_check_mask_remove() argument
292 *mask_id = mask_entry->mask_id; in nfp_check_mask_remove()
296 nfp_release_mask_id(app, *mask_id); in nfp_check_mask_remove()