Lines Matching refs:can_id
87 filter->can_id = (uint32_t)acr[0] << 21; in can_sja_single_filter()
88 filter->can_id |= (uint32_t)acr[1] << 13; in can_sja_single_filter()
89 filter->can_id |= (uint32_t)acr[2] << 5; in can_sja_single_filter()
90 filter->can_id |= (uint32_t)acr[3] >> 3; in can_sja_single_filter()
92 filter->can_id |= QEMU_CAN_RTR_FLAG; in can_sja_single_filter()
104 filter->can_id = (uint32_t)acr[0] << 3; in can_sja_single_filter()
105 filter->can_id |= (uint32_t)acr[1] >> 5; in can_sja_single_filter()
107 filter->can_id |= QEMU_CAN_RTR_FLAG; in can_sja_single_filter()
124 filter->can_id = (uint32_t)acr[0] << 21; in can_sja_dual_filter()
125 filter->can_id |= (uint32_t)acr[1] << 13; in can_sja_dual_filter()
131 filter->can_id = (uint32_t)acr[0] << 3; in can_sja_dual_filter()
132 filter->can_id |= (uint32_t)acr[1] >> 5; in can_sja_dual_filter()
134 filter->can_id |= QEMU_CAN_RTR_FLAG; in can_sja_dual_filter()
156 if (frame->can_id & QEMU_CAN_EFF_FLAG) { /* EFF */ in can_sja_accept_filter()
160 if (!can_bus_filter_match(&filter, frame->can_id)) { in can_sja_accept_filter()
167 if (!can_bus_filter_match(&filter, frame->can_id)) { in can_sja_accept_filter()
171 if (frame->can_id & QEMU_CAN_RTR_FLAG) { /* RTR */ in can_sja_accept_filter()
196 if (frame->can_id & QEMU_CAN_EFF_FLAG) { /* EFF */ in can_sja_accept_filter()
200 if (can_bus_filter_match(&filter, frame->can_id)) { in can_sja_accept_filter()
207 if (can_bus_filter_match(&filter, frame->can_id)) { in can_sja_accept_filter()
216 if (can_bus_filter_match(&filter, frame->can_id)) { in can_sja_accept_filter()
235 if (can_bus_filter_match(&filter, frame->can_id)) { in can_sja_accept_filter()
255 msg->can_id & QEMU_CAN_EFF_MASK, in can_display_msg()
257 msg->can_id & QEMU_CAN_EFF_FLAG ? "EFF" : "SFF", in can_display_msg()
258 msg->can_id & QEMU_CAN_RTR_FLAG ? "RTR" : "DAT"); in can_display_msg()
273 frame->can_id = 0; in buff2frame_pel()
275 frame->can_id = QEMU_CAN_RTR_FLAG; in buff2frame_pel()
284 frame->can_id |= QEMU_CAN_EFF_FLAG; in buff2frame_pel()
285 frame->can_id |= buff[1] << 21; /* ID.28~ID.21 */ in buff2frame_pel()
286 frame->can_id |= buff[2] << 13; /* ID.20~ID.13 */ in buff2frame_pel()
287 frame->can_id |= buff[3] << 5; in buff2frame_pel()
288 frame->can_id |= buff[4] >> 3; in buff2frame_pel()
296 frame->can_id |= buff[1] << 3; in buff2frame_pel()
297 frame->can_id |= buff[2] >> 5; in buff2frame_pel()
313 frame->can_id = ((buff[0] << 3) & (0xff << 3)) + ((buff[1] >> 5) & 0x07); in buff2frame_bas()
315 frame->can_id = QEMU_CAN_RTR_FLAG; in buff2frame_bas()
337 if (frame->can_id & QEMU_CAN_ERR_FLAG) { /* error frame, NOT support now. */ in frame2buff_pel()
346 if (frame->can_id & QEMU_CAN_RTR_FLAG) { /* RTR */ in frame2buff_pel()
349 if (frame->can_id & QEMU_CAN_EFF_FLAG) { /* EFF */ in frame2buff_pel()
351 buff[1] = extract32(frame->can_id, 21, 8); /* ID.28~ID.21 */ in frame2buff_pel()
352 buff[2] = extract32(frame->can_id, 13, 8); /* ID.20~ID.13 */ in frame2buff_pel()
353 buff[3] = extract32(frame->can_id, 5, 8); /* ID.12~ID.05 */ in frame2buff_pel()
354 buff[4] = extract32(frame->can_id, 0, 5) << 3; /* ID.04~ID.00,xxx */ in frame2buff_pel()
360 buff[1] = extract32(frame->can_id, 3, 8); /* ID.10~ID.03 */ in frame2buff_pel()
361 buff[2] = extract32(frame->can_id, 0, 3) << 5; /* ID.02~ID.00,xxxxx */ in frame2buff_pel()
382 if ((frame->can_id & QEMU_CAN_EFF_FLAG) || in frame2buff_bas()
383 (frame->can_id & QEMU_CAN_ERR_FLAG)) { in frame2buff_bas()
391 buff[0] = extract32(frame->can_id, 3, 8); /* ID.10~ID.03 */ in frame2buff_bas()
392 buff[1] = extract32(frame->can_id, 0, 3) << 5; /* ID.02~ID.00,xxxxx */ in frame2buff_bas()
393 if (frame->can_id & QEMU_CAN_RTR_FLAG) { /* RTR */ in frame2buff_bas()
566 s->filter[0].can_id = (s->code << 3) & (0xff << 3); in can_sja_mem_write()
933 VMSTATE_UINT32(can_id, qemu_can_filter),