Lines Matching +full:8 +full:mb
177 for (i = 0; i < CANFD_MAX_DLEN; i += 8) in mod_and_fddata()
185 for (i = 0; i < CANFD_MAX_DLEN; i += 8) in mod_or_fddata()
193 for (i = 0; i < CANFD_MAX_DLEN; i += 8) in mod_xor_fddata()
224 /* plain data length 0 .. 8 - that was easy */ in mod_store_ccdlc()
297 * relative to received dlc -1 .. -8 : in cgw_chk_csum_parms()
298 * e.g. for received dlc = 8 in cgw_chk_csum_parms()
301 * -8 => index = 0 (data[0]) in cgw_chk_csum_parms()
395 (cf->can_id >> 8 & 0xFF)]; in cgw_csum_crc8_rel()
422 (cf->can_id >> 8 & 0xFF)]; in cgw_csum_crc8_pos()
449 (cf->can_id >> 8 & 0xFF)]; in cgw_csum_crc8_neg()
654 struct cgw_fdframe_mod mb; in cgw_put_job() local
657 memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf)); in cgw_put_job()
658 mb.modtype = gwj->mod.modtype.and; in cgw_put_job()
659 if (nla_put(skb, CGW_FDMOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job()
664 memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf)); in cgw_put_job()
665 mb.modtype = gwj->mod.modtype.or; in cgw_put_job()
666 if (nla_put(skb, CGW_FDMOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job()
671 memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf)); in cgw_put_job()
672 mb.modtype = gwj->mod.modtype.xor; in cgw_put_job()
673 if (nla_put(skb, CGW_FDMOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job()
678 memcpy(&mb.cf, &gwj->mod.modframe.set, sizeof(mb.cf)); in cgw_put_job()
679 mb.modtype = gwj->mod.modtype.set; in cgw_put_job()
680 if (nla_put(skb, CGW_FDMOD_SET, sizeof(mb), &mb) < 0) in cgw_put_job()
684 struct cgw_frame_mod mb; in cgw_put_job() local
687 memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf)); in cgw_put_job()
688 mb.modtype = gwj->mod.modtype.and; in cgw_put_job()
689 if (nla_put(skb, CGW_MOD_AND, sizeof(mb), &mb) < 0) in cgw_put_job()
694 memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf)); in cgw_put_job()
695 mb.modtype = gwj->mod.modtype.or; in cgw_put_job()
696 if (nla_put(skb, CGW_MOD_OR, sizeof(mb), &mb) < 0) in cgw_put_job()
701 memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf)); in cgw_put_job()
702 mb.modtype = gwj->mod.modtype.xor; in cgw_put_job()
703 if (nla_put(skb, CGW_MOD_XOR, sizeof(mb), &mb) < 0) in cgw_put_job()
708 memcpy(&mb.cf, &gwj->mod.modframe.set, sizeof(mb.cf)); in cgw_put_job()
709 mb.modtype = gwj->mod.modtype.set; in cgw_put_job()
710 if (nla_put(skb, CGW_MOD_SET, sizeof(mb), &mb) < 0) in cgw_put_job()
825 struct cgw_fdframe_mod mb; in cgw_parse_attr() local
828 nla_memcpy(&mb, tb[CGW_FDMOD_AND], CGW_FDMODATTR_LEN); in cgw_parse_attr()
830 canfdframecpy(&mod->modframe.and, &mb.cf); in cgw_parse_attr()
831 mod->modtype.and = mb.modtype; in cgw_parse_attr()
833 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
836 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
839 if (mb.modtype & CGW_MOD_FLAGS) in cgw_parse_attr()
842 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
847 nla_memcpy(&mb, tb[CGW_FDMOD_OR], CGW_FDMODATTR_LEN); in cgw_parse_attr()
849 canfdframecpy(&mod->modframe.or, &mb.cf); in cgw_parse_attr()
850 mod->modtype.or = mb.modtype; in cgw_parse_attr()
852 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
855 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
858 if (mb.modtype & CGW_MOD_FLAGS) in cgw_parse_attr()
861 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
866 nla_memcpy(&mb, tb[CGW_FDMOD_XOR], CGW_FDMODATTR_LEN); in cgw_parse_attr()
868 canfdframecpy(&mod->modframe.xor, &mb.cf); in cgw_parse_attr()
869 mod->modtype.xor = mb.modtype; in cgw_parse_attr()
871 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
874 if (mb.modtype & CGW_MOD_LEN) in cgw_parse_attr()
877 if (mb.modtype & CGW_MOD_FLAGS) in cgw_parse_attr()
880 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
885 nla_memcpy(&mb, tb[CGW_FDMOD_SET], CGW_FDMODATTR_LEN); in cgw_parse_attr()
887 canfdframecpy(&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_FLAGS) in cgw_parse_attr()
899 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
903 struct cgw_frame_mod mb; in cgw_parse_attr() local
906 nla_memcpy(&mb, tb[CGW_MOD_AND], CGW_MODATTR_LEN); in cgw_parse_attr()
908 canframecpy(&mod->modframe.and, &mb.cf); in cgw_parse_attr()
909 mod->modtype.and = mb.modtype; in cgw_parse_attr()
911 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
914 if (mb.modtype & CGW_MOD_DLC) in cgw_parse_attr()
917 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
922 nla_memcpy(&mb, tb[CGW_MOD_OR], CGW_MODATTR_LEN); in cgw_parse_attr()
924 canframecpy(&mod->modframe.or, &mb.cf); in cgw_parse_attr()
925 mod->modtype.or = mb.modtype; in cgw_parse_attr()
927 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
930 if (mb.modtype & CGW_MOD_DLC) in cgw_parse_attr()
933 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
938 nla_memcpy(&mb, tb[CGW_MOD_XOR], CGW_MODATTR_LEN); in cgw_parse_attr()
940 canframecpy(&mod->modframe.xor, &mb.cf); in cgw_parse_attr()
941 mod->modtype.xor = mb.modtype; in cgw_parse_attr()
943 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
946 if (mb.modtype & CGW_MOD_DLC) in cgw_parse_attr()
949 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()
954 nla_memcpy(&mb, tb[CGW_MOD_SET], CGW_MODATTR_LEN); in cgw_parse_attr()
956 canframecpy(&mod->modframe.set, &mb.cf); in cgw_parse_attr()
957 mod->modtype.set = mb.modtype; in cgw_parse_attr()
959 if (mb.modtype & CGW_MOD_ID) in cgw_parse_attr()
962 if (mb.modtype & CGW_MOD_DLC) in cgw_parse_attr()
965 if (mb.modtype & CGW_MOD_DATA) in cgw_parse_attr()