Lines Matching refs:chan_id
43 int chan_id; member
49 int chan_id; member
62 int chan_id = -1; in gpio_etm_event_register_to_group() local
67 chan_id = j; in gpio_etm_event_register_to_group()
74 ESP_RETURN_ON_FALSE(chan_id != -1, ESP_ERR_NOT_FOUND, TAG, "no free event channel"); in gpio_etm_event_register_to_group()
76 event->chan_id = chan_id; in gpio_etm_event_register_to_group()
83 int chan_id = -1; in gpio_etm_task_register_to_group() local
88 chan_id = j; in gpio_etm_task_register_to_group()
95 ESP_RETURN_ON_FALSE(chan_id != -1, ESP_ERR_NOT_FOUND, TAG, "no free task channel"); in gpio_etm_task_register_to_group()
97 task->chan_id = chan_id; in gpio_etm_task_register_to_group()
104 int chan_id = event->chan_id; in gpio_etm_event_unregister_from_group() local
106 group->events[chan_id] = NULL; in gpio_etm_event_unregister_from_group()
113 int chan_id = task->chan_id; in gpio_etm_task_unregister_from_group() local
115 group->tasks[chan_id] = NULL; in gpio_etm_task_unregister_from_group()
142 gpio_ll_etm_enable_event_channel(group->dev, gpio_event->chan_id, false); in gpio_del_etm_event()
169 int chan_id = event->chan_id; in gpio_new_etm_event() local
174 event_id = GPIO_LL_ETM_EVENT_ID_ANY_EDGE(chan_id); in gpio_new_etm_event()
177 event_id = GPIO_LL_ETM_EVENT_ID_POS_EDGE(chan_id); in gpio_new_etm_event()
180 event_id = GPIO_LL_ETM_EVENT_ID_NEG_EDGE(chan_id); in gpio_new_etm_event()
189 ESP_LOGD(TAG, "new event @%p, event_id=%"PRIu32", chan_id=%d", event, event_id, chan_id); in gpio_new_etm_event()
213 int chan_id = task->chan_id; in gpio_new_etm_task() local
218 task_id = GPIO_LL_ETM_TASK_ID_SET(chan_id); in gpio_new_etm_task()
221 task_id = GPIO_LL_ETM_TASK_ID_CLR(chan_id); in gpio_new_etm_task()
224 task_id = GPIO_LL_ETM_TASK_ID_TOG(chan_id); in gpio_new_etm_task()
233 ESP_LOGD(TAG, "new task @%p, task_id=%"PRIu32", chan_id=%d", task, task_id, chan_id); in gpio_new_etm_task()
252 gpio_ll_etm_enable_event_channel(group->dev, gpio_event->chan_id, false); in gpio_etm_event_bind_gpio()
254 gpio_ll_etm_event_channel_set_gpio(group->dev, gpio_event->chan_id, gpio_num); in gpio_etm_event_bind_gpio()
256 gpio_ll_etm_enable_event_channel(group->dev, gpio_event->chan_id, true); in gpio_etm_event_bind_gpio()
273 gpio_ll_etm_gpio_set_task_channel(group->dev, gpio_num, gpio_task->chan_id); in gpio_etm_task_add_gpio()
296 (gpio_ll_etm_gpio_get_task_channel(group->dev, gpio_num) == gpio_task->chan_id)) { in gpio_etm_task_rm_gpio()