Lines Matching defs:data

24  * The provided data structures and external interfaces from this code
117 * The internal can_can_gw structure contains data and attributes for
135 /* CAN frame data source */
139 /* CAN frame data destination */
159 MODFUNC(mod_and_data, *(u64 *)cf->data &= *(u64 *)mod->modframe.and.data)
163 MODFUNC(mod_or_data, *(u64 *)cf->data |= *(u64 *)mod->modframe.or.data)
167 MODFUNC(mod_xor_data, *(u64 *)cf->data ^= *(u64 *)mod->modframe.xor.data)
171 MODFUNC(mod_set_data, *(u64 *)cf->data = *(u64 *)mod->modframe.set.data)
178 *(u64 *)(cf->data + i) &= *(u64 *)(mod->modframe.and.data + i);
186 *(u64 *)(cf->data + i) |= *(u64 *)(mod->modframe.or.data + i);
194 *(u64 *)(cf->data + i) ^= *(u64 *)(mod->modframe.xor.data + i);
199 memcpy(cf->data, mod->modframe.set.data, CANFD_MAX_DLEN);
205 * data are copied in the 3 bytes hole of the struct. This is needed
206 * to make easy compares of the data in the struct cf_mod.
211 *(u64 *)dst->data = *(u64 *)src->data;
217 * data are copied in the 2 bytes hole of the struct. This is needed
218 * to make easy compares of the data in the struct cf_mod.
224 memcpy(dst->data, src->data, CANFD_MAX_DLEN);
234 /* absolute dlc values 0 .. 7 => 0 .. 7, e.g. data [0]
237 * -1 => index = 7 (data[7])
238 * -3 => index = 5 (data[5])
239 * -8 => index = 0 (data[0])
271 val ^= cf->data[i];
274 val ^= cf->data[i];
277 cf->data[res] = val;
286 val ^= cf->data[i];
288 cf->data[xor->result_idx] = val;
297 val ^= cf->data[i];
299 cf->data[xor->result_idx] = val;
316 crc = crc8->crctab[crc ^ cf->data[i]];
319 crc = crc8->crctab[crc ^ cf->data[i]];
328 crc = crc8->crctab[crc ^ crc8->profile_data[cf->data[1] & 0xF]];
337 cf->data[crc8->result_idx] = crc ^ crc8->final_xor_val;
347 crc = crc8->crctab[crc ^ cf->data[i]];
355 crc = crc8->crctab[crc ^ crc8->profile_data[cf->data[1] & 0xF]];
364 cf->data[crc8->result_idx] = crc ^ crc8->final_xor_val;
374 crc = crc8->crctab[crc ^ cf->data[i]];
382 crc = crc8->crctab[crc ^ crc8->profile_data[cf->data[1] & 0xF]];
391 cf->data[crc8->result_idx] = crc ^ crc8->final_xor_val;
395 static void can_can_gw_rcv(struct sk_buff *skb, void *data)
397 struct cgw_job *gwj = (struct cgw_job *)data;
445 * we need to copy the skb as we want to modify skb->data.
467 cf = (struct canfd_frame *)nskb->data;
476 int max_len = nskb->len - offsetof(struct canfd_frame, data);
740 /* initialize modification & checksum data space */