Lines Matching refs:off
543 size_t off; in rte_flow_conv_item_spec() local
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()
594 if (size >= off + tmp) in rte_flow_conv_item_spec()
596 ((void *)((uintptr_t)dst.raw + off), in rte_flow_conv_item_spec()
598 off += tmp; in rte_flow_conv_item_spec()
602 off = rte_flow_conv_copy(buf, data, size, in rte_flow_conv_item_spec()
606 return off; in rte_flow_conv_item_spec()
628 size_t off; in rte_flow_conv_action_conf() local
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()
660 if (size >= off + tmp) in rte_flow_conv_action_conf()
662 ((void *)((uintptr_t)dst.rss + off), in rte_flow_conv_action_conf()
664 off += tmp; in rte_flow_conv_action_conf()
667 off = RTE_ALIGN_CEIL(off, sizeof(*dst.rss->queue)); in rte_flow_conv_action_conf()
669 if (size >= off + tmp) in rte_flow_conv_action_conf()
671 ((void *)((uintptr_t)dst.rss + off), in rte_flow_conv_action_conf()
673 off += tmp; in rte_flow_conv_action_conf()
686 off = sizeof(*dst.vxlan_encap); in rte_flow_conv_action_conf()
688 off = RTE_ALIGN_CEIL 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()
693 size > off ? size - off : 0, in rte_flow_conv_action_conf()
697 if (size >= off + ret) in rte_flow_conv_action_conf()
700 off); in rte_flow_conv_action_conf()
701 off += ret; in rte_flow_conv_action_conf()
705 off = rte_flow_conv_copy(buf, action->conf, size, in rte_flow_conv_action_conf()
709 return off; in rte_flow_conv_action_conf()
742 size_t off; in rte_flow_conv_pattern() local
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()
760 off += sizeof(*dst); in rte_flow_conv_pattern()
769 off = RTE_ALIGN_CEIL(off, sizeof(double)); in rte_flow_conv_pattern()
771 ((void *)(data + off), in rte_flow_conv_pattern()
772 size > off ? size - off : 0, src, in rte_flow_conv_pattern()
774 if (size && size >= off + ret) in rte_flow_conv_pattern()
775 dst->spec = (void *)(data + off); in rte_flow_conv_pattern()
776 off += ret; in rte_flow_conv_pattern()
780 off = RTE_ALIGN_CEIL(off, sizeof(double)); in rte_flow_conv_pattern()
782 ((void *)(data + off), in rte_flow_conv_pattern()
783 size > off ? size - off : 0, src, in rte_flow_conv_pattern()
785 if (size && size >= off + ret) in rte_flow_conv_pattern()
786 dst->last = (void *)(data + off); in rte_flow_conv_pattern()
787 off += ret; in rte_flow_conv_pattern()
790 off = RTE_ALIGN_CEIL(off, sizeof(double)); in rte_flow_conv_pattern()
792 ((void *)(data + off), in rte_flow_conv_pattern()
793 size > off ? size - off : 0, src, in rte_flow_conv_pattern()
795 if (size && size >= off + ret) in rte_flow_conv_pattern()
796 dst->mask = (void *)(data + off); in rte_flow_conv_pattern()
797 off += ret; in rte_flow_conv_pattern()
802 return off; in rte_flow_conv_pattern()
835 size_t off; in rte_flow_conv_actions() local
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()
853 off += sizeof(*dst); in rte_flow_conv_actions()
862 off = RTE_ALIGN_CEIL(off, sizeof(double)); in rte_flow_conv_actions()
864 ((void *)(data + off), in rte_flow_conv_actions()
865 size > off ? size - off : 0, src); in rte_flow_conv_actions()
866 if (size && size >= off + ret) in rte_flow_conv_actions()
867 dst->conf = (void *)(data + off); in rte_flow_conv_actions()
868 off += ret; in rte_flow_conv_actions()
873 return off; in rte_flow_conv_actions()
903 size_t off; in rte_flow_conv_rule() local
913 off = sizeof(*dst); in rte_flow_conv_rule()
915 off = RTE_ALIGN_CEIL(off, sizeof(double)); in rte_flow_conv_rule()
916 if (size && size >= off + sizeof(*dst->attr)) in rte_flow_conv_rule()
918 ((void *)((uintptr_t)dst + off), in rte_flow_conv_rule()
920 off += sizeof(*dst->attr); in rte_flow_conv_rule()
923 off = RTE_ALIGN_CEIL(off, sizeof(double)); in rte_flow_conv_rule()
924 ret = rte_flow_conv_pattern((void *)((uintptr_t)dst + off), in rte_flow_conv_rule()
925 size > off ? size - off : 0, in rte_flow_conv_rule()
929 if (size && size >= off + (size_t)ret) in rte_flow_conv_rule()
930 dst->pattern = (void *)((uintptr_t)dst + off); in rte_flow_conv_rule()
931 off += ret; in rte_flow_conv_rule()
934 off = RTE_ALIGN_CEIL(off, sizeof(double)); in rte_flow_conv_rule()
935 ret = rte_flow_conv_actions((void *)((uintptr_t)dst + off), in rte_flow_conv_rule()
936 size > off ? size - off : 0, in rte_flow_conv_rule()
940 if (size >= off + (size_t)ret) in rte_flow_conv_rule()
941 dst->actions = (void *)((uintptr_t)dst + off); in rte_flow_conv_rule()
942 off += ret; in rte_flow_conv_rule()
944 return off; in rte_flow_conv_rule()