Lines Matching refs:dst

33 	size_t (*desc_fn)(void *dst, const void *src);
71 struct rte_flow_item_flex *dst = buf; in rte_flow_item_flex_conv() local
74 dst->pattern = rte_memcpy in rte_flow_item_flex_conv()
75 ((void *)((uintptr_t)(dst + 1)), src->pattern, in rte_flow_item_flex_conv()
565 } dst; in rte_flow_conv_item_spec() local
573 dst.raw = buf; in rte_flow_conv_item_spec()
574 rte_memcpy(dst.raw, in rte_flow_conv_item_spec()
583 size > sizeof(*dst.raw) ? sizeof(*dst.raw) : size); in rte_flow_conv_item_spec()
584 off = sizeof(*dst.raw); in rte_flow_conv_item_spec()
593 off = RTE_ALIGN_CEIL(off, sizeof(*dst.raw->pattern)); in rte_flow_conv_item_spec()
595 dst.raw->pattern = rte_memcpy in rte_flow_conv_item_spec()
596 ((void *)((uintptr_t)dst.raw + off), in rte_flow_conv_item_spec()
640 } dst; in rte_flow_conv_action_conf() local
646 dst.rss = buf; in rte_flow_conv_action_conf()
647 rte_memcpy(dst.rss, in rte_flow_conv_action_conf()
655 size > sizeof(*dst.rss) ? sizeof(*dst.rss) : size); in rte_flow_conv_action_conf()
656 off = sizeof(*dst.rss); in rte_flow_conv_action_conf()
658 off = RTE_ALIGN_CEIL(off, sizeof(*dst.rss->key)); in rte_flow_conv_action_conf()
661 dst.rss->key = rte_memcpy in rte_flow_conv_action_conf()
662 ((void *)((uintptr_t)dst.rss + off), in rte_flow_conv_action_conf()
667 off = RTE_ALIGN_CEIL(off, sizeof(*dst.rss->queue)); in rte_flow_conv_action_conf()
670 dst.rss->queue = rte_memcpy in rte_flow_conv_action_conf()
671 ((void *)((uintptr_t)dst.rss + off), in rte_flow_conv_action_conf()
679 dst.vxlan_encap = buf; in rte_flow_conv_action_conf()
686 off = sizeof(*dst.vxlan_encap); in rte_flow_conv_action_conf()
689 (off, sizeof(*dst.vxlan_encap->definition)); in rte_flow_conv_action_conf()
692 (void *)((uintptr_t)dst.vxlan_encap + off), in rte_flow_conv_action_conf()
698 dst.vxlan_encap->definition = in rte_flow_conv_action_conf()
699 (void *)((uintptr_t)dst.vxlan_encap + in rte_flow_conv_action_conf()
735 rte_flow_conv_pattern(struct rte_flow_item *dst, in rte_flow_conv_pattern() argument
741 uintptr_t data = (uintptr_t)dst; in rte_flow_conv_pattern()
746 for (i = 0, off = 0; !num || i != num; ++i, ++src, ++dst) { in rte_flow_conv_pattern()
756 if (size >= off + sizeof(*dst)) in rte_flow_conv_pattern()
757 *dst = (struct rte_flow_item){ in rte_flow_conv_pattern()
760 off += sizeof(*dst); in rte_flow_conv_pattern()
766 dst -= num; in rte_flow_conv_pattern()
775 dst->spec = (void *)(data + off); in rte_flow_conv_pattern()
786 dst->last = (void *)(data + off); in rte_flow_conv_pattern()
796 dst->mask = (void *)(data + off); in rte_flow_conv_pattern()
800 ++dst; in rte_flow_conv_pattern()
828 rte_flow_conv_actions(struct rte_flow_action *dst, in rte_flow_conv_actions() argument
834 uintptr_t data = (uintptr_t)dst; in rte_flow_conv_actions()
839 for (i = 0, off = 0; !num || i != num; ++i, ++src, ++dst) { in rte_flow_conv_actions()
849 if (size >= off + sizeof(*dst)) in rte_flow_conv_actions()
850 *dst = (struct rte_flow_action){ in rte_flow_conv_actions()
853 off += sizeof(*dst); in rte_flow_conv_actions()
859 dst -= num; in rte_flow_conv_actions()
867 dst->conf = (void *)(data + off); in rte_flow_conv_actions()
871 ++dst; in rte_flow_conv_actions()
898 rte_flow_conv_rule(struct rte_flow_conv_rule *dst, in rte_flow_conv_rule() argument
906 rte_memcpy(dst, in rte_flow_conv_rule()
912 size > sizeof(*dst) ? sizeof(*dst) : size); in rte_flow_conv_rule()
913 off = sizeof(*dst); in rte_flow_conv_rule()
916 if (size && size >= off + sizeof(*dst->attr)) in rte_flow_conv_rule()
917 dst->attr = rte_memcpy in rte_flow_conv_rule()
918 ((void *)((uintptr_t)dst + off), in rte_flow_conv_rule()
919 src->attr_ro, sizeof(*dst->attr)); in rte_flow_conv_rule()
920 off += sizeof(*dst->attr); in rte_flow_conv_rule()
924 ret = rte_flow_conv_pattern((void *)((uintptr_t)dst + off), in rte_flow_conv_rule()
930 dst->pattern = (void *)((uintptr_t)dst + off); in rte_flow_conv_rule()
935 ret = rte_flow_conv_actions((void *)((uintptr_t)dst + off), in rte_flow_conv_rule()
941 dst->actions = (void *)((uintptr_t)dst + off); in rte_flow_conv_rule()
974 char *dst, in rte_flow_conv_name() argument
995 return strlcpy(dst, info->data[type].name, size); in rte_flow_conv_name()
997 *((const char **)dst) = info->data[type].name; in rte_flow_conv_name()
1004 void *dst, in rte_flow_conv() argument
1018 rte_memcpy(dst, attr, size); in rte_flow_conv()
1021 return rte_flow_conv_pattern(dst, size, src, 1, error); in rte_flow_conv()
1023 return rte_flow_conv_actions(dst, size, src, 1, error); in rte_flow_conv()
1025 return rte_flow_conv_pattern(dst, size, src, 0, error); in rte_flow_conv()
1027 return rte_flow_conv_actions(dst, size, src, 0, error); in rte_flow_conv()
1029 return rte_flow_conv_rule(dst, size, src, error); in rte_flow_conv()
1031 return rte_flow_conv_name(0, 0, dst, size, src, error); in rte_flow_conv()
1033 return rte_flow_conv_name(1, 0, dst, size, src, error); in rte_flow_conv()
1035 return rte_flow_conv_name(0, 1, dst, size, src, error); in rte_flow_conv()
1037 return rte_flow_conv_name(1, 1, dst, size, src, error); in rte_flow_conv()
1055 struct rte_flow_conv_rule *dst = in rte_flow_copy() local
1062 len > sizeof(*desc) - sizeof(*dst) ? in rte_flow_copy()
1063 len - (sizeof(*desc) - sizeof(*dst)) : in rte_flow_copy()
1075 (&dst->pattern != &desc->items || in rte_flow_copy()
1076 &dst->actions != &desc->actions || in rte_flow_copy()
1077 (uintptr_t)(dst + 1) != (uintptr_t)(desc + 1))) { in rte_flow_copy()
1081 ret = rte_flow_conv(RTE_FLOW_CONV_OP_RULE, dst, dst_size, &src, NULL); in rte_flow_copy()
1084 ret += sizeof(*desc) - sizeof(*dst); in rte_flow_copy()
1089 .items = dst_size ? dst->pattern : NULL, in rte_flow_copy()
1090 .actions = dst_size ? dst->actions : NULL, in rte_flow_copy()