Lines Matching +full:0 +full:x0f

61 	for (int filter_id = 0; filter_id < ARRAY_SIZE(data->filters); filter_id++) {  in dispatch_frame()
95 while (linux_socketcan_poll_data(data->dev_fd) == 0) { in rx_thread()
99 data->tx_callback(dev, 0, data->tx_user_data); in rx_thread()
102 if ((data->common.mode & CAN_MODE_LOOPBACK) == 0U) { in rx_thread()
106 if ((count <= 0) || !data->common.started) { in rx_thread()
113 if ((frame.flags & CAN_FRAME_RTR) != 0U) { in rx_thread()
118 LOG_DBG("Received %d bytes. Id: 0x%x, ID type: %s %s", in rx_thread()
120 (frame.flags & CAN_FRAME_IDE) != 0 ? "extended" : "standard", in rx_thread()
121 (frame.flags & CAN_FRAME_RTR) != 0 ? ", RTR frame" : ""); in rx_thread()
140 LOG_DBG("Sending %d bytes on %s. Id: 0x%x, ID type: %s %s", in can_native_linux_send()
142 (frame->flags & CAN_FRAME_IDE) != 0 ? "extended" : "standard", in can_native_linux_send()
143 (frame->flags & CAN_FRAME_RTR) != 0 ? ", RTR frame" : ""); in can_native_linux_send()
147 CAN_FRAME_FDF | CAN_FRAME_BRS)) != 0) { in can_native_linux_send()
148 LOG_ERR("unsupported CAN frame flags 0x%02x", frame->flags); in can_native_linux_send()
152 if ((frame->flags & CAN_FRAME_FDF) != 0) { in can_native_linux_send()
153 if ((data->common.mode & CAN_MODE_FD) == 0U) { in can_native_linux_send()
161 if ((frame->flags & ~(CAN_FRAME_IDE | CAN_FRAME_RTR)) != 0) { in can_native_linux_send()
162 LOG_ERR("unsupported CAN frame flags 0x%02x", frame->flags); in can_native_linux_send()
172 if (data->dev_fd <= 0) { in can_native_linux_send()
183 if (k_sem_take(&data->tx_idle, timeout) != 0) { in can_native_linux_send()
191 if (ret < 0) { in can_native_linux_send()
195 return 0; in can_native_linux_send()
205 LOG_DBG("Setting filter ID: 0x%x, mask: 0x%x", filter->id, in can_native_linux_add_rx_filter()
208 if ((filter->flags & ~(CAN_FILTER_IDE)) != 0) { in can_native_linux_add_rx_filter()
209 LOG_ERR("unsupported CAN filter flags 0x%02x", filter->flags); in can_native_linux_add_rx_filter()
215 for (int i = 0; i < ARRAY_SIZE(data->filters); i++) { in can_native_linux_add_rx_filter()
222 if (filter_id < 0) { in can_native_linux_add_rx_filter()
244 if (filter_id < 0 || filter_id >= ARRAY_SIZE(data->filters)) { in can_native_linux_remove_rx_filter()
266 return 0; in can_native_linux_get_capabilities()
279 return 0; in can_native_linux_start()
292 return 0; in can_native_linux_stop()
301 if ((mode & ~(CAN_MODE_LOOPBACK | CAN_MODE_FD)) != 0) { in can_native_linux_set_mode()
302 LOG_ERR("unsupported mode: 0x%08x", mode); in can_native_linux_set_mode()
306 if ((mode & ~(CAN_MODE_LOOPBACK)) != 0) { in can_native_linux_set_mode()
307 LOG_ERR("unsupported mode: 0x%08x", mode); in can_native_linux_set_mode()
316 err = linux_socketcan_set_mode_fd(data->dev_fd, (mode & CAN_MODE_FD) != 0); in can_native_linux_set_mode()
317 if (err != 0) { in can_native_linux_set_mode()
324 return 0; in can_native_linux_set_mode()
337 return 0; in can_native_linux_set_timing()
352 return 0; in can_native_linux_set_timing_data()
371 err_cnt->tx_err_cnt = 0; in can_native_linux_get_state()
372 err_cnt->rx_err_cnt = 0; in can_native_linux_get_state()
375 return 0; in can_native_linux_get_state()
392 return 0; in can_native_linux_get_core_clock()
416 .sjw = 0x1,
417 .prop_seg = 0x01,
418 .phase_seg1 = 0x01,
419 .phase_seg2 = 0x01,
420 .prescaler = 0x01
423 .sjw = 0x0F,
424 .prop_seg = 0x0F,
425 .phase_seg1 = 0x0F,
426 .phase_seg2 = 0x0F,
427 .prescaler = 0xFFFF
432 .sjw = 0x1,
433 .prop_seg = 0x01,
434 .phase_seg1 = 0x01,
435 .phase_seg2 = 0x01,
436 .prescaler = 0x01
439 .sjw = 0x0F,
440 .prop_seg = 0x0F,
441 .phase_seg1 = 0x0F,
442 .phase_seg2 = 0x0F,
443 .prescaler = 0xFFFF
465 if (data->dev_fd < 0) { in can_native_linux_init()
474 0, K_NO_WAIT); in can_native_linux_init()
478 return 0; in can_native_linux_init()
484 .common = CAN_DT_DRIVER_CONFIG_INST_GET(inst, 0, 0), \