Searched refs:MODFUNC (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/net/can/
H A Dgw.c155 #define MODFUNC(func, op) static void func(struct can_frame *cf, \ macro
158 MODFUNC(mod_and_id, cf->can_id &= mod->modframe.and.can_id)
159 MODFUNC(mod_and_dlc, cf->can_dlc &= mod->modframe.and.can_dlc)
160 MODFUNC(mod_and_data, *(u64 *)cf->data &= *(u64 *)mod->modframe.and.data)
161 MODFUNC(mod_or_id, cf->can_id |= mod->modframe.or.can_id)
162 MODFUNC(mod_or_dlc, cf->can_dlc |= mod->modframe.or.can_dlc)
163 MODFUNC(mod_or_data, *(u64 *)cf->data |= *(u64 *)mod->modframe.or.data)
164 MODFUNC(mod_xor_id, cf->can_id ^= mod->modframe.xor.can_id)
165 MODFUNC(mod_xor_dlc, cf->can_dlc ^= mod->modframe.xor.can_dlc)
166 MODFUNC(mod_xor_data, *(u64 *)cf->data ^= *(u64 *)mod->modframe.xor.data)
167 MODFUNC(mod_set_id, cf->can_id = mod->modframe.set.can_id)
168 MODFUNC(mod_set_dlc, cf->can_dlc = mod->modframe.set.can_dlc)
169 MODFUNC(mod_set_data, *(u64 *)cf->data = *(u64 *)mod->modframe.set.data)

Completed in 55 milliseconds