Lines Matching full:mb

585 		struct cgw_fdframe_mod mb;  in cgw_put_job()  local
588 memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf)); in cgw_put_job()
589 mb.modtype = gwj->mod.modtype.and; in cgw_put_job()
590 if (nla_put(skb, CGW_FDMOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job()
595 memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf)); in cgw_put_job()
596 mb.modtype = gwj->mod.modtype.or; in cgw_put_job()
597 if (nla_put(skb, CGW_FDMOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job()
602 memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf)); in cgw_put_job()
603 mb.modtype = gwj->mod.modtype.xor; in cgw_put_job()
604 if (nla_put(skb, CGW_FDMOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job()
609 memcpy(&mb.cf, &gwj->mod.modframe.set, sizeof(mb.cf)); in cgw_put_job()
610 mb.modtype = gwj->mod.modtype.set; in cgw_put_job()
611 if (nla_put(skb, CGW_FDMOD_SET, sizeof(mb), &mb) < 0) in cgw_put_job()
615 struct cgw_frame_mod mb; in cgw_put_job() local
618 memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf)); in cgw_put_job()
619 mb.modtype = gwj->mod.modtype.and; in cgw_put_job()
620 if (nla_put(skb, CGW_MOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job()
625 memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf)); in cgw_put_job()
626 mb.modtype = gwj->mod.modtype.or; in cgw_put_job()
627 if (nla_put(skb, CGW_MOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job()
632 memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf)); in cgw_put_job()
633 mb.modtype = gwj->mod.modtype.xor; in cgw_put_job()
634 if (nla_put(skb, CGW_MOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job()
639 memcpy(&mb.cf, &gwj->mod.modframe.set, sizeof(mb.cf)); in cgw_put_job()
640 mb.modtype = gwj->mod.modtype.set; in cgw_put_job()
641 if (nla_put(skb, CGW_MOD_SET, sizeof(mb), &mb) < 0) in cgw_put_job()
756 struct cgw_fdframe_mod mb; in cgw_parse_attr() local
759 nla_memcpy(&mb, tb[CGW_FDMOD_AND], CGW_FDMODATTR_LEN); in cgw_parse_attr()
761 canfdframecpy(&mod->modframe.and, &mb.cf); in cgw_parse_attr()
762 mod->modtype.and = mb.modtype; in cgw_parse_attr()
764 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
767 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
770 if (mb.modtype & CGW_MOD_FLAGS) in cgw_parse_attr()
773 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
778 nla_memcpy(&mb, tb[CGW_FDMOD_OR], CGW_FDMODATTR_LEN); in cgw_parse_attr()
780 canfdframecpy(&mod->modframe.or, &mb.cf); in cgw_parse_attr()
781 mod->modtype.or = mb.modtype; in cgw_parse_attr()
783 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
786 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
789 if (mb.modtype & CGW_MOD_FLAGS) in cgw_parse_attr()
792 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
797 nla_memcpy(&mb, tb[CGW_FDMOD_XOR], CGW_FDMODATTR_LEN); in cgw_parse_attr()
799 canfdframecpy(&mod->modframe.xor, &mb.cf); in cgw_parse_attr()
800 mod->modtype.xor = mb.modtype; in cgw_parse_attr()
802 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
805 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
808 if (mb.modtype & CGW_MOD_FLAGS) in cgw_parse_attr()
811 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
816 nla_memcpy(&mb, tb[CGW_FDMOD_SET], CGW_FDMODATTR_LEN); in cgw_parse_attr()
818 canfdframecpy(&mod->modframe.set, &mb.cf); in cgw_parse_attr()
819 mod->modtype.set = mb.modtype; in cgw_parse_attr()
821 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
824 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
827 if (mb.modtype & CGW_MOD_FLAGS) in cgw_parse_attr()
830 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
834 struct cgw_frame_mod mb; in cgw_parse_attr() local
837 nla_memcpy(&mb, tb[CGW_MOD_AND], CGW_MODATTR_LEN); in cgw_parse_attr()
839 canframecpy(&mod->modframe.and, &mb.cf); in cgw_parse_attr()
840 mod->modtype.and = mb.modtype; in cgw_parse_attr()
842 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
845 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
848 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
853 nla_memcpy(&mb, tb[CGW_MOD_OR], CGW_MODATTR_LEN); in cgw_parse_attr()
855 canframecpy(&mod->modframe.or, &mb.cf); in cgw_parse_attr()
856 mod->modtype.or = mb.modtype; in cgw_parse_attr()
858 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
861 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
864 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
869 nla_memcpy(&mb, tb[CGW_MOD_XOR], CGW_MODATTR_LEN); in cgw_parse_attr()
871 canframecpy(&mod->modframe.xor, &mb.cf); in cgw_parse_attr()
872 mod->modtype.xor = mb.modtype; in cgw_parse_attr()
874 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
877 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
880 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
885 nla_memcpy(&mb, tb[CGW_MOD_SET], CGW_MODATTR_LEN); in cgw_parse_attr()
887 canframecpy(&mod->modframe.set, &mb.cf); in cgw_parse_attr()
888 mod->modtype.set = mb.modtype; in cgw_parse_attr()
890 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
893 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
896 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()