Lines Matching refs:off

462 	size_t off;  in rte_flow_conv_item_spec()  local
503 off = sizeof(*dst.raw); in rte_flow_conv_item_spec()
512 off = RTE_ALIGN_CEIL(off, sizeof(*dst.raw->pattern)); in rte_flow_conv_item_spec()
513 if (size >= off + tmp) in rte_flow_conv_item_spec()
515 ((void *)((uintptr_t)dst.raw + off), in rte_flow_conv_item_spec()
517 off += tmp; in rte_flow_conv_item_spec()
524 off = (int)item->type >= 0 ? in rte_flow_conv_item_spec()
526 rte_memcpy(buf, data, (size > off ? off : size)); in rte_flow_conv_item_spec()
529 return off; in rte_flow_conv_item_spec()
551 size_t off; in rte_flow_conv_action_conf() local
579 off = sizeof(*dst.rss); in rte_flow_conv_action_conf()
581 off = RTE_ALIGN_CEIL(off, sizeof(*dst.rss->key)); in rte_flow_conv_action_conf()
583 if (size >= off + tmp) in rte_flow_conv_action_conf()
585 ((void *)((uintptr_t)dst.rss + off), in rte_flow_conv_action_conf()
587 off += tmp; in rte_flow_conv_action_conf()
590 off = RTE_ALIGN_CEIL(off, sizeof(*dst.rss->queue)); in rte_flow_conv_action_conf()
592 if (size >= off + tmp) in rte_flow_conv_action_conf()
594 ((void *)((uintptr_t)dst.rss + off), in rte_flow_conv_action_conf()
596 off += tmp; in rte_flow_conv_action_conf()
609 off = sizeof(*dst.vxlan_encap); in rte_flow_conv_action_conf()
611 off = RTE_ALIGN_CEIL in rte_flow_conv_action_conf()
612 (off, sizeof(*dst.vxlan_encap->definition)); in rte_flow_conv_action_conf()
615 (void *)((uintptr_t)dst.vxlan_encap + off), in rte_flow_conv_action_conf()
616 size > off ? size - off : 0, in rte_flow_conv_action_conf()
620 if (size >= off + ret) in rte_flow_conv_action_conf()
623 off); in rte_flow_conv_action_conf()
624 off += ret; in rte_flow_conv_action_conf()
631 off = (int)action->type >= 0 ? in rte_flow_conv_action_conf()
633 rte_memcpy(buf, action->conf, (size > off ? off : size)); in rte_flow_conv_action_conf()
636 return off; in rte_flow_conv_action_conf()
669 size_t off; in rte_flow_conv_pattern() local
673 for (i = 0, off = 0; !num || i != num; ++i, ++src, ++dst) { in rte_flow_conv_pattern()
683 if (size >= off + sizeof(*dst)) in rte_flow_conv_pattern()
687 off += sizeof(*dst); in rte_flow_conv_pattern()
696 off = RTE_ALIGN_CEIL(off, sizeof(double)); in rte_flow_conv_pattern()
698 ((void *)(data + off), in rte_flow_conv_pattern()
699 size > off ? size - off : 0, src, in rte_flow_conv_pattern()
701 if (size && size >= off + ret) in rte_flow_conv_pattern()
702 dst->spec = (void *)(data + off); in rte_flow_conv_pattern()
703 off += ret; in rte_flow_conv_pattern()
707 off = RTE_ALIGN_CEIL(off, sizeof(double)); in rte_flow_conv_pattern()
709 ((void *)(data + off), in rte_flow_conv_pattern()
710 size > off ? size - off : 0, src, in rte_flow_conv_pattern()
712 if (size && size >= off + ret) in rte_flow_conv_pattern()
713 dst->last = (void *)(data + off); in rte_flow_conv_pattern()
714 off += ret; in rte_flow_conv_pattern()
717 off = RTE_ALIGN_CEIL(off, sizeof(double)); in rte_flow_conv_pattern()
719 ((void *)(data + off), in rte_flow_conv_pattern()
720 size > off ? size - off : 0, src, in rte_flow_conv_pattern()
722 if (size && size >= off + ret) in rte_flow_conv_pattern()
723 dst->mask = (void *)(data + off); in rte_flow_conv_pattern()
724 off += ret; in rte_flow_conv_pattern()
729 return off; in rte_flow_conv_pattern()
762 size_t off; in rte_flow_conv_actions() local
766 for (i = 0, off = 0; !num || i != num; ++i, ++src, ++dst) { in rte_flow_conv_actions()
776 if (size >= off + sizeof(*dst)) in rte_flow_conv_actions()
780 off += sizeof(*dst); in rte_flow_conv_actions()
789 off = RTE_ALIGN_CEIL(off, sizeof(double)); in rte_flow_conv_actions()
791 ((void *)(data + off), in rte_flow_conv_actions()
792 size > off ? size - off : 0, src); in rte_flow_conv_actions()
793 if (size && size >= off + ret) in rte_flow_conv_actions()
794 dst->conf = (void *)(data + off); in rte_flow_conv_actions()
795 off += ret; in rte_flow_conv_actions()
800 return off; in rte_flow_conv_actions()
830 size_t off; in rte_flow_conv_rule() local
840 off = sizeof(*dst); in rte_flow_conv_rule()
842 off = RTE_ALIGN_CEIL(off, sizeof(double)); in rte_flow_conv_rule()
843 if (size && size >= off + sizeof(*dst->attr)) in rte_flow_conv_rule()
845 ((void *)((uintptr_t)dst + off), in rte_flow_conv_rule()
847 off += sizeof(*dst->attr); in rte_flow_conv_rule()
850 off = RTE_ALIGN_CEIL(off, sizeof(double)); in rte_flow_conv_rule()
851 ret = rte_flow_conv_pattern((void *)((uintptr_t)dst + off), in rte_flow_conv_rule()
852 size > off ? size - off : 0, in rte_flow_conv_rule()
856 if (size && size >= off + (size_t)ret) in rte_flow_conv_rule()
857 dst->pattern = (void *)((uintptr_t)dst + off); in rte_flow_conv_rule()
858 off += ret; in rte_flow_conv_rule()
861 off = RTE_ALIGN_CEIL(off, sizeof(double)); in rte_flow_conv_rule()
862 ret = rte_flow_conv_actions((void *)((uintptr_t)dst + off), in rte_flow_conv_rule()
863 size > off ? size - off : 0, in rte_flow_conv_rule()
867 if (size >= off + (size_t)ret) in rte_flow_conv_rule()
868 dst->actions = (void *)((uintptr_t)dst + off); in rte_flow_conv_rule()
869 off += ret; in rte_flow_conv_rule()
871 return off; in rte_flow_conv_rule()