Lines Matching refs:reply

58 			 struct cmsg_reply_map_simple *reply)  in nfp_bpf_ctrl_rc_to_errno()  argument
72 rc = be32_to_cpu(reply->rc); in nfp_bpf_ctrl_rc_to_errno()
84 struct cmsg_reply_map_alloc_tbl *reply; in nfp_bpf_ctrl_alloc_map() local
102 sizeof(*reply)); in nfp_bpf_ctrl_alloc_map()
106 reply = (void *)skb->data; in nfp_bpf_ctrl_alloc_map()
107 err = nfp_bpf_ctrl_rc_to_errno(bpf, &reply->reply_hdr); in nfp_bpf_ctrl_alloc_map()
111 tid = be32_to_cpu(reply->tid); in nfp_bpf_ctrl_alloc_map()
122 struct cmsg_reply_map_free_tbl *reply; in nfp_bpf_ctrl_free_map() local
137 sizeof(*reply)); in nfp_bpf_ctrl_free_map()
143 reply = (void *)skb->data; in nfp_bpf_ctrl_free_map()
144 err = nfp_bpf_ctrl_rc_to_errno(bpf, &reply->reply_hdr); in nfp_bpf_ctrl_free_map()
166 nfp_bpf_ctrl_reply_key(struct nfp_app_bpf *bpf, struct cmsg_reply_map_op *reply, in nfp_bpf_ctrl_reply_key() argument
169 return &reply->data[bpf->cmsg_key_sz * n + bpf->cmsg_val_sz * n]; in nfp_bpf_ctrl_reply_key()
173 nfp_bpf_ctrl_reply_val(struct nfp_app_bpf *bpf, struct cmsg_reply_map_op *reply, in nfp_bpf_ctrl_reply_val() argument
176 return &reply->data[bpf->cmsg_key_sz * (n + 1) + bpf->cmsg_val_sz * n]; in nfp_bpf_ctrl_reply_val()
205 struct cmsg_reply_map_op *reply; in nfp_bpf_ctrl_op_cache_get() local
224 reply = (void *)nfp_map->cache->data; in nfp_bpf_ctrl_op_cache_get()
225 count = be32_to_cpu(reply->count); in nfp_bpf_ctrl_op_cache_get()
230 cached_key = nfp_bpf_ctrl_reply_key(bpf, reply, i); in nfp_bpf_ctrl_op_cache_get()
235 memcpy(out_value, nfp_bpf_ctrl_reply_val(bpf, reply, i), in nfp_bpf_ctrl_op_cache_get()
242 nfp_bpf_ctrl_reply_key(bpf, reply, i + 1), in nfp_bpf_ctrl_op_cache_get()
299 struct cmsg_reply_map_op *reply; in nfp_bpf_ctrl_entry_op() local
339 if (skb->len < sizeof(*reply)) { in nfp_bpf_ctrl_entry_op()
346 reply = (void *)skb->data; in nfp_bpf_ctrl_entry_op()
347 count = be32_to_cpu(reply->count); in nfp_bpf_ctrl_entry_op()
348 err = nfp_bpf_ctrl_rc_to_errno(bpf, &reply->reply_hdr); in nfp_bpf_ctrl_entry_op()
367 memcpy(out_key, nfp_bpf_ctrl_reply_key(bpf, reply, 0), in nfp_bpf_ctrl_entry_op()
370 memcpy(out_value, nfp_bpf_ctrl_reply_val(bpf, reply, 0), in nfp_bpf_ctrl_entry_op()