Lines Matching refs:frame
21 struct can_frame frame; member
49 const struct can_frame *frame, in receive_frame() argument
52 struct can_frame frame_tmp = *frame; in receive_frame()
55 frame->dlc, frame->id, in receive_frame()
56 (frame->flags & CAN_FRAME_IDE) != 0 ? "extended" : "standard", in receive_frame()
57 (frame->flags & CAN_FRAME_RTR) != 0 ? ", RTR frame" : ""); in receive_frame()
66 struct can_loopback_frame frame; in tx_thread() local
74 ret = k_msgq_get(&data->tx_msgq, &frame, K_FOREVER); in tx_thread()
79 frame.cb(dev, 0, frame.cb_arg); in tx_thread()
86 if ((frame.frame.flags & CAN_FRAME_RTR) != 0U) { in tx_thread()
96 can_frame_matches_filter(&frame.frame, &filter->filter)) { in tx_thread()
97 receive_frame(dev, &frame.frame, filter); in tx_thread()
106 const struct can_frame *frame, in can_loopback_send() argument
116 frame->dlc, dev->name, frame->id, in can_loopback_send()
117 (frame->flags & CAN_FRAME_IDE) != 0 ? "extended" : "standard", in can_loopback_send()
118 (frame->flags & CAN_FRAME_RTR) != 0 ? ", RTR frame" : ""); in can_loopback_send()
121 if ((frame->flags & ~(CAN_FRAME_IDE | CAN_FRAME_RTR | in can_loopback_send()
123 LOG_ERR("unsupported CAN frame flags 0x%02x", frame->flags); in can_loopback_send()
127 if ((frame->flags & CAN_FRAME_FDF) != 0) { in can_loopback_send()
135 if ((frame->flags & ~(CAN_FRAME_IDE | CAN_FRAME_RTR)) != 0) { in can_loopback_send()
136 LOG_ERR("unsupported CAN frame flags 0x%02x", frame->flags); in can_loopback_send()
141 if (frame->dlc > max_dlc) { in can_loopback_send()
142 LOG_ERR("DLC of %d exceeds maximum (%d)", frame->dlc, max_dlc); in can_loopback_send()
150 loopback_frame.frame = *frame; in can_loopback_send()