Lines Matching refs:tlv
183 static void fill_tlv(struct filter_tlv *tlv, struct filter *filter, in fill_tlv() argument
186 tlv->type = CLSF_TLV_FILTER; in fill_tlv()
187 tlv->length = sizeof(struct filter); in fill_tlv()
188 *((struct filter *)&tlv->val) = *filter; in fill_tlv()
190 tlv = (struct filter_tlv *)((char *)tlv + sizeof(struct filter_tlv) + in fill_tlv()
192 tlv->type = CLSF_TLV_ACTION; in fill_tlv()
193 tlv->length = sizeof(struct filter_action); in fill_tlv()
194 *((struct filter_action *)&tlv->val) = *action; in fill_tlv()
201 struct filter_tlv *tlv; in usnic_fwd_alloc_flow() local
217 tlv = dma_alloc_coherent(&pdev->dev, tlv_size, &tlv_pa, GFP_ATOMIC); in usnic_fwd_alloc_flow()
218 if (!tlv) { in usnic_fwd_alloc_flow()
224 fill_tlv(tlv, filter, &uaction->action); in usnic_fwd_alloc_flow()
261 dma_free_coherent(&pdev->dev, tlv_size, tlv, tlv_pa); in usnic_fwd_alloc_flow()