• Home
  • Raw
  • Download

Lines Matching refs:mb

586 		struct cgw_fdframe_mod mb;  in cgw_put_job()  local
589 memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf)); in cgw_put_job()
590 mb.modtype = gwj->mod.modtype.and; in cgw_put_job()
591 if (nla_put(skb, CGW_FDMOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job()
596 memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf)); in cgw_put_job()
597 mb.modtype = gwj->mod.modtype.or; in cgw_put_job()
598 if (nla_put(skb, CGW_FDMOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job()
603 memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf)); in cgw_put_job()
604 mb.modtype = gwj->mod.modtype.xor; in cgw_put_job()
605 if (nla_put(skb, CGW_FDMOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job()
610 memcpy(&mb.cf, &gwj->mod.modframe.set, sizeof(mb.cf)); in cgw_put_job()
611 mb.modtype = gwj->mod.modtype.set; in cgw_put_job()
612 if (nla_put(skb, CGW_FDMOD_SET, sizeof(mb), &mb) < 0) in cgw_put_job()
616 struct cgw_frame_mod mb; in cgw_put_job() local
619 memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf)); in cgw_put_job()
620 mb.modtype = gwj->mod.modtype.and; in cgw_put_job()
621 if (nla_put(skb, CGW_MOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job()
626 memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf)); in cgw_put_job()
627 mb.modtype = gwj->mod.modtype.or; in cgw_put_job()
628 if (nla_put(skb, CGW_MOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job()
633 memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf)); in cgw_put_job()
634 mb.modtype = gwj->mod.modtype.xor; in cgw_put_job()
635 if (nla_put(skb, CGW_MOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job()
640 memcpy(&mb.cf, &gwj->mod.modframe.set, sizeof(mb.cf)); in cgw_put_job()
641 mb.modtype = gwj->mod.modtype.set; in cgw_put_job()
642 if (nla_put(skb, CGW_MOD_SET, sizeof(mb), &mb) < 0) in cgw_put_job()
757 struct cgw_fdframe_mod mb; in cgw_parse_attr() local
760 nla_memcpy(&mb, tb[CGW_FDMOD_AND], CGW_FDMODATTR_LEN); in cgw_parse_attr()
762 canfdframecpy(&mod->modframe.and, &mb.cf); in cgw_parse_attr()
763 mod->modtype.and = mb.modtype; in cgw_parse_attr()
765 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
768 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
771 if (mb.modtype & CGW_MOD_FLAGS) in cgw_parse_attr()
774 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
779 nla_memcpy(&mb, tb[CGW_FDMOD_OR], CGW_FDMODATTR_LEN); in cgw_parse_attr()
781 canfdframecpy(&mod->modframe.or, &mb.cf); in cgw_parse_attr()
782 mod->modtype.or = mb.modtype; in cgw_parse_attr()
784 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
787 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
790 if (mb.modtype & CGW_MOD_FLAGS) in cgw_parse_attr()
793 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
798 nla_memcpy(&mb, tb[CGW_FDMOD_XOR], CGW_FDMODATTR_LEN); in cgw_parse_attr()
800 canfdframecpy(&mod->modframe.xor, &mb.cf); in cgw_parse_attr()
801 mod->modtype.xor = mb.modtype; in cgw_parse_attr()
803 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
806 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
809 if (mb.modtype & CGW_MOD_FLAGS) in cgw_parse_attr()
812 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
817 nla_memcpy(&mb, tb[CGW_FDMOD_SET], CGW_FDMODATTR_LEN); in cgw_parse_attr()
819 canfdframecpy(&mod->modframe.set, &mb.cf); in cgw_parse_attr()
820 mod->modtype.set = mb.modtype; in cgw_parse_attr()
822 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
825 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
828 if (mb.modtype & CGW_MOD_FLAGS) in cgw_parse_attr()
831 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
835 struct cgw_frame_mod mb; in cgw_parse_attr() local
838 nla_memcpy(&mb, tb[CGW_MOD_AND], CGW_MODATTR_LEN); in cgw_parse_attr()
840 canframecpy(&mod->modframe.and, &mb.cf); in cgw_parse_attr()
841 mod->modtype.and = mb.modtype; in cgw_parse_attr()
843 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
846 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
849 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
854 nla_memcpy(&mb, tb[CGW_MOD_OR], CGW_MODATTR_LEN); in cgw_parse_attr()
856 canframecpy(&mod->modframe.or, &mb.cf); in cgw_parse_attr()
857 mod->modtype.or = mb.modtype; in cgw_parse_attr()
859 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
862 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
865 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
870 nla_memcpy(&mb, tb[CGW_MOD_XOR], CGW_MODATTR_LEN); in cgw_parse_attr()
872 canframecpy(&mod->modframe.xor, &mb.cf); in cgw_parse_attr()
873 mod->modtype.xor = mb.modtype; in cgw_parse_attr()
875 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
878 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
881 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
886 nla_memcpy(&mb, tb[CGW_MOD_SET], CGW_MODATTR_LEN); in cgw_parse_attr()
888 canframecpy(&mod->modframe.set, &mb.cf); in cgw_parse_attr()
889 mod->modtype.set = mb.modtype; in cgw_parse_attr()
891 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
894 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
897 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()