Lines Matching refs:mb

648 		struct cgw_fdframe_mod mb;  in cgw_put_job()  local
651 memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf)); in cgw_put_job()
652 mb.modtype = gwj->mod.modtype.and; in cgw_put_job()
653 if (nla_put(skb, CGW_FDMOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job()
658 memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf)); in cgw_put_job()
659 mb.modtype = gwj->mod.modtype.or; in cgw_put_job()
660 if (nla_put(skb, CGW_FDMOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job()
665 memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf)); in cgw_put_job()
666 mb.modtype = gwj->mod.modtype.xor; in cgw_put_job()
667 if (nla_put(skb, CGW_FDMOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job()
672 memcpy(&mb.cf, &gwj->mod.modframe.set, sizeof(mb.cf)); in cgw_put_job()
673 mb.modtype = gwj->mod.modtype.set; in cgw_put_job()
674 if (nla_put(skb, CGW_FDMOD_SET, sizeof(mb), &mb) < 0) in cgw_put_job()
678 struct cgw_frame_mod mb; in cgw_put_job() local
681 memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf)); in cgw_put_job()
682 mb.modtype = gwj->mod.modtype.and; in cgw_put_job()
683 if (nla_put(skb, CGW_MOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job()
688 memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf)); in cgw_put_job()
689 mb.modtype = gwj->mod.modtype.or; in cgw_put_job()
690 if (nla_put(skb, CGW_MOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job()
695 memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf)); in cgw_put_job()
696 mb.modtype = gwj->mod.modtype.xor; in cgw_put_job()
697 if (nla_put(skb, CGW_MOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job()
702 memcpy(&mb.cf, &gwj->mod.modframe.set, sizeof(mb.cf)); in cgw_put_job()
703 mb.modtype = gwj->mod.modtype.set; in cgw_put_job()
704 if (nla_put(skb, CGW_MOD_SET, sizeof(mb), &mb) < 0) in cgw_put_job()
819 struct cgw_fdframe_mod mb; in cgw_parse_attr() local
822 nla_memcpy(&mb, tb[CGW_FDMOD_AND], CGW_FDMODATTR_LEN); in cgw_parse_attr()
824 canfdframecpy(&mod->modframe.and, &mb.cf); in cgw_parse_attr()
825 mod->modtype.and = mb.modtype; in cgw_parse_attr()
827 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
830 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
833 if (mb.modtype & CGW_MOD_FLAGS) in cgw_parse_attr()
836 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
841 nla_memcpy(&mb, tb[CGW_FDMOD_OR], CGW_FDMODATTR_LEN); in cgw_parse_attr()
843 canfdframecpy(&mod->modframe.or, &mb.cf); in cgw_parse_attr()
844 mod->modtype.or = mb.modtype; in cgw_parse_attr()
846 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
849 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
852 if (mb.modtype & CGW_MOD_FLAGS) in cgw_parse_attr()
855 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
860 nla_memcpy(&mb, tb[CGW_FDMOD_XOR], CGW_FDMODATTR_LEN); in cgw_parse_attr()
862 canfdframecpy(&mod->modframe.xor, &mb.cf); in cgw_parse_attr()
863 mod->modtype.xor = mb.modtype; in cgw_parse_attr()
865 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
868 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
871 if (mb.modtype & CGW_MOD_FLAGS) in cgw_parse_attr()
874 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
879 nla_memcpy(&mb, tb[CGW_FDMOD_SET], CGW_FDMODATTR_LEN); in cgw_parse_attr()
881 canfdframecpy(&mod->modframe.set, &mb.cf); in cgw_parse_attr()
882 mod->modtype.set = mb.modtype; in cgw_parse_attr()
884 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
887 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
890 if (mb.modtype & CGW_MOD_FLAGS) in cgw_parse_attr()
893 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
897 struct cgw_frame_mod mb; in cgw_parse_attr() local
900 nla_memcpy(&mb, tb[CGW_MOD_AND], CGW_MODATTR_LEN); in cgw_parse_attr()
902 canframecpy(&mod->modframe.and, &mb.cf); in cgw_parse_attr()
903 mod->modtype.and = mb.modtype; in cgw_parse_attr()
905 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
908 if (mb.modtype & CGW_MOD_DLC) in cgw_parse_attr()
911 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
916 nla_memcpy(&mb, tb[CGW_MOD_OR], CGW_MODATTR_LEN); in cgw_parse_attr()
918 canframecpy(&mod->modframe.or, &mb.cf); in cgw_parse_attr()
919 mod->modtype.or = mb.modtype; in cgw_parse_attr()
921 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
924 if (mb.modtype & CGW_MOD_DLC) in cgw_parse_attr()
927 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
932 nla_memcpy(&mb, tb[CGW_MOD_XOR], CGW_MODATTR_LEN); in cgw_parse_attr()
934 canframecpy(&mod->modframe.xor, &mb.cf); in cgw_parse_attr()
935 mod->modtype.xor = mb.modtype; in cgw_parse_attr()
937 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
940 if (mb.modtype & CGW_MOD_DLC) in cgw_parse_attr()
943 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
948 nla_memcpy(&mb, tb[CGW_MOD_SET], CGW_MODATTR_LEN); in cgw_parse_attr()
950 canframecpy(&mod->modframe.set, &mb.cf); in cgw_parse_attr()
951 mod->modtype.set = mb.modtype; in cgw_parse_attr()
953 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
956 if (mb.modtype & CGW_MOD_DLC) in cgw_parse_attr()
959 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()