Lines Matching refs:tag
38 static void nfp_ccm_free_tag(struct nfp_ccm *ccm, u16 tag)
40 WARN_ON(!__test_and_clear_bit(tag, ccm->tag_allocator));
47 static struct sk_buff *__nfp_ccm_reply(struct nfp_ccm *ccm, u16 tag)
54 if (msg_tag == tag) {
55 nfp_ccm_free_tag(ccm, tag);
65 nfp_ccm_reply(struct nfp_ccm *ccm, struct nfp_app *app, u16 tag)
70 skb = __nfp_ccm_reply(ccm, tag);
77 nfp_ccm_reply_drop_tag(struct nfp_ccm *ccm, struct nfp_app *app, u16 tag)
82 skb = __nfp_ccm_reply(ccm, tag);
84 nfp_ccm_free_tag(ccm, tag);
92 enum nfp_ccm_type type, int tag)
99 skb = nfp_ccm_reply(ccm, app, tag);
106 tag),
109 * the tag even if no response is matched.
112 skb = nfp_ccm_reply_drop_tag(ccm, app, tag);
133 int reply_type, tag;
136 tag = nfp_ccm_alloc_tag(ccm);
137 if (tag < 0) {
140 return ERR_PTR(tag);
146 hdr->tag = cpu_to_be16(tag);
152 skb = nfp_ccm_wait_reply(ccm, app, type, tag);
178 unsigned int tag;
187 tag = nfp_ccm_get_tag(skb);
188 if (unlikely(!test_bit(tag, ccm->tag_allocator))) {
189 ccm_warn(app, "cmsg drop - no one is waiting for tag %u!\n",
190 tag);