Home
last modified time | relevance | path

Searched refs:self (Results 1 – 12 of 12) sorted by relevance

/external/platform/pico/rp2_common/pico_async_context/
A Dasync_context_threadsafe_background.c155 lock_acquire(self); in async_context_threadsafe_background_execute_sync()
157 lock_release(self); in async_context_threadsafe_background_execute_sync()
196 memset(self, 0, sizeof(*self)); in async_context_threadsafe_background_init()
209 if (self->core.core_num != alarm_pool_core_num(self->alarm_pool)) { in async_context_threadsafe_background_init()
216 assert(self->core.core_num == alarm_pool_core_num(self->alarm_pool)); in async_context_threadsafe_background_init()
233 if (self->alarm_id > 0) alarm_pool_cancel_alarm(self->alarm_pool, self->alarm_id); in async_context_threadsafe_background_deinit()
242 memset(self, 0, sizeof(*self)); in async_context_threadsafe_background_deinit()
259 alarm_pool_cancel_alarm(self->alarm_pool, self->alarm_id); in process_under_lock()
273 if (self->alarm_id > 0) alarm_pool_cancel_alarm(self->alarm_pool, self->alarm_id); in process_under_lock()
276self->alarm_id = alarm_pool_add_alarm_at(self->alarm_pool, next_time, alarm_handler, self, false); in process_under_lock()
[all …]
A Dasync_context_freertos.c81 if (self->task_handle) { in async_context_freertos_wake_up()
108 memset(self, 0, sizeof(*self)); in async_context_freertos_init()
120 if (!self->lock_mutex || in async_context_freertos_init()
122 !self->timer_handle || in async_context_freertos_init()
148 if (self->task_handle) { in async_context_freertos_deinit()
151 if (self->timer_handle) { in async_context_freertos_deinit()
154 if (self->lock_mutex) { in async_context_freertos_deinit()
160 memset(self, 0, sizeof(*self)); in async_context_freertos_deinit()
168 self->nesting++; in async_context_freertos_acquire_lock_blocking()
212 if (self->nesting == 1) { in async_context_freertos_release_lock()
[all …]
A Dasync_context_base.c10 async_at_time_worker_t **prev = &self->at_time_list; in async_context_base_add_at_time_worker()
23 async_at_time_worker_t **prev = &self->at_time_list; in async_context_base_remove_at_time_worker()
35 async_when_pending_worker_t **prev = &self->when_pending_list; in async_context_base_add_when_pending_worker()
48 async_when_pending_worker_t **prev = &self->when_pending_list; in async_context_base_remove_when_pending_worker()
61 if (self->at_time_list) { in async_context_base_remove_ready_at_time_worker()
90 self->next_time = earliest; in async_context_base_refresh_next_timeout()
96 at_time_worker->do_work(self, at_time_worker); in async_context_base_execute_once()
104 async_context_base_refresh_next_timeout(self); in async_context_base_execute_once()
105 return self->next_time; in async_context_base_execute_once()
108 bool async_context_base_needs_servicing(async_context_t *self) { in async_context_base_needs_servicing() argument
[all …]
A Dasync_context_poll.c16 bool async_context_poll_init_with_defaults(async_context_poll_t *self) { in async_context_poll_init_with_defaults() argument
17 memset(self, 0, sizeof(*self)); in async_context_poll_init_with_defaults()
18 self->core.core_num = get_core_num(); in async_context_poll_init_with_defaults()
19 self->core.type = &template; in async_context_poll_init_with_defaults()
20 self->core.flags = ASYNC_CONTEXT_FLAG_POLLED | ASYNC_CONTEXT_FLAG_CALLBACK_FROM_NON_IRQ; in async_context_poll_init_with_defaults()
21 sem_init(&self->sem, 1, 1); in async_context_poll_init_with_defaults()
44 async_context_poll_t *self = (async_context_poll_t *)self_base; in async_context_poll_wait_for_work_until() local
45 sem_acquire_block_until(&self->sem, absolute_time_min(next_time, until)); in async_context_poll_wait_for_work_until()
/external/platform/pico/rp2_common/pico_cyw43_driver/
A Dcyw43_bus_pio_spi.c87 int cyw43_spi_init(cyw43_int_t *self) { in cyw43_spi_init() argument
102 assert(!self->bus_data); in cyw43_spi_init()
113 cyw43_spi_deinit(self); in cyw43_spi_init()
151 cyw43_spi_deinit(self); in cyw43_spi_init()
158 if (self->bus_data) { in cyw43_spi_deinit()
175 self->bus_data = NULL; in cyw43_spi_deinit()
231 start_spi_comms(self); in cyw43_spi_transfer()
450 self->last_size = 8; in _cyw43_write_reg()
453 self->last_backplane_window = self->cur_backplane_window; in _cyw43_write_reg()
491 …assert(buf == self->spid_buf || buf < self->spid_buf || buf >= (self->spid_buf + sizeof(self->spid… in cyw43_read_bytes()
[all …]
A Dcyw43_driver.c182 void __attribute__((weak)) cyw43_cb_tcpip_init(cyw43_t *self, int itf) { in cyw43_cb_tcpip_init() argument
184 void __attribute__((weak)) cyw43_cb_tcpip_deinit(cyw43_t *self, int itf) { in cyw43_cb_tcpip_deinit() argument
186 void __attribute__((weak)) cyw43_cb_tcpip_set_link_up(cyw43_t *self, int itf) { in cyw43_cb_tcpip_set_link_up() argument
189 void __attribute__((weak)) cyw43_cb_tcpip_set_link_down(cyw43_t *self, int itf) { in cyw43_cb_tcpip_set_link_down() argument
/external/platform/pico/rp2_common/pico_async_context/include/pico/
A Dasync_context_base.h17 bool async_context_base_add_at_time_worker(async_context_t *self, async_at_time_worker_t *worker);
18 bool async_context_base_remove_at_time_worker(async_context_t *self, async_at_time_worker_t *worker…
20 bool async_context_base_add_when_pending_worker(async_context_t *self, async_when_pending_worker_t …
21 bool async_context_base_remove_when_pending_worker(async_context_t *self, async_when_pending_worker…
23 async_at_time_worker_t *async_context_base_remove_ready_at_time_worker(async_context_t *self);
24 void async_context_base_refresh_next_timeout(async_context_t *self);
26 absolute_time_t async_context_base_execute_once(async_context_t *self);
27 bool async_context_base_needs_servicing(async_context_t *self);
A Dasync_context.h158 void (*acquire_lock_blocking)(async_context_t *self);
159 void (*release_lock)(async_context_t *self);
160 void (*lock_check)(async_context_t *self);
162 bool (*add_at_time_worker)(async_context_t *self, async_at_time_worker_t *worker);
163 bool (*remove_at_time_worker)(async_context_t *self, async_at_time_worker_t *worker);
164 bool (*add_when_pending_worker)(async_context_t *self, async_when_pending_worker_t *worker);
166 void (*set_work_pending)(async_context_t *self, async_when_pending_worker_t *worker);
167 void (*poll)(async_context_t *self); // may be NULL
168 void (*wait_until)(async_context_t *self, absolute_time_t until);
169 void (*wait_for_work_until)(async_context_t *self, absolute_time_t until);
[all …]
A Dasync_context_threadsafe_background.h82 bool async_context_threadsafe_background_init(async_context_threadsafe_background_t *self, async_co…
103 …ync_context_threadsafe_background_init_with_defaults(async_context_threadsafe_background_t *self) { in async_context_threadsafe_background_init_with_defaults() argument
105 return async_context_threadsafe_background_init(self, &config); in async_context_threadsafe_background_init_with_defaults()
A Dasync_context_freertos.h80 bool async_context_freertos_init(async_context_freertos_t *self, async_context_freertos_config_t *c…
111 static inline bool async_context_freertos_init_with_defaults(async_context_freertos_t *self) { in async_context_freertos_init_with_defaults() argument
113 return async_context_freertos_init(self, &config); in async_context_freertos_init_with_defaults()
A Dasync_context_poll.h43 bool async_context_poll_init_with_defaults(async_context_poll_t *self);
/external/platform/pico/rp2_common/pico_cyw43_driver/cybt_shared_bus/
A Dcybt_shared_bus.c112 int cyw43_btbus_init(cyw43_ll_t *self) { in cyw43_btbus_init() argument
118 cybt_sharedbus_driver_init(self); in cyw43_btbus_init()

Completed in 22 milliseconds