Lines Matching refs:driver_data
25 struct ipm_console_receiver_runtime_data *driver_data; in ipm_console_thread() local
28 driver_data = (struct ipm_console_receiver_runtime_data *)arg1; in ipm_console_thread()
35 k_sem_take(&driver_data->sem, K_FOREVER); in ipm_console_thread()
37 ret = ring_buf_item_get(&driver_data->rb, &type, in ipm_console_thread()
75 if (driver_data->channel_disabled && in ipm_console_thread()
76 ring_buf_item_space_get(&driver_data->rb)) { in ipm_console_thread()
78 ipm_set_enabled(driver_data->ipm_device, 1); in ipm_console_thread()
79 driver_data->channel_disabled = 0; in ipm_console_thread()
89 struct ipm_console_receiver_runtime_data *driver_data = user_data; in ipm_console_receive_callback() local
95 ret = ring_buf_item_put(&driver_data->rb, 0, id, NULL, 0); in ipm_console_receive_callback()
97 k_sem_give(&driver_data->sem); in ipm_console_receive_callback()
107 if (ring_buf_item_space_get(&driver_data->rb) == 0) { in ipm_console_receive_callback()
109 driver_data->channel_disabled = 1; in ipm_console_receive_callback()
118 struct ipm_console_receiver_runtime_data *driver_data = d->data; in ipm_console_receiver_init() local
135 driver_data->ipm_device = ipm; in ipm_console_receiver_init()
136 driver_data->channel_disabled = 0; in ipm_console_receiver_init()
137 k_sem_init(&driver_data->sem, 0, K_SEM_MAX_LIMIT); in ipm_console_receiver_init()
138 ring_buf_item_init(&driver_data->rb, config_info->rb_size32, in ipm_console_receiver_init()
141 ipm_register_callback(ipm, ipm_console_receive_callback, driver_data); in ipm_console_receiver_init()
143 k_thread_create(&driver_data->rx_thread, config_info->thread_stack, in ipm_console_receiver_init()
145 driver_data, (void *)config_info, NULL, in ipm_console_receiver_init()