Home
last modified time | relevance | path

Searched refs:dev_data (Results 1 – 25 of 125) sorted by relevance

12345

/Zephyr-Core-3.6.0/subsys/usb/device/class/
Dcdc_acm.c152 struct cdc_acm_dev_data_t *dev_data; in cdc_acm_class_handle_req() local
165 dev_data = CONTAINER_OF(common, struct cdc_acm_dev_data_t, common); in cdc_acm_class_handle_req()
170 rate = sys_le32_to_cpu(dev_data->line_coding.dwDTERate); in cdc_acm_class_handle_req()
171 memcpy(&dev_data->line_coding, *data, in cdc_acm_class_handle_req()
172 sizeof(dev_data->line_coding)); in cdc_acm_class_handle_req()
173 new_rate = sys_le32_to_cpu(dev_data->line_coding.dwDTERate); in cdc_acm_class_handle_req()
176 dev_data->line_coding.bCharFormat, in cdc_acm_class_handle_req()
177 dev_data->line_coding.bParityType, in cdc_acm_class_handle_req()
178 dev_data->line_coding.bDataBits); in cdc_acm_class_handle_req()
180 if (rate != new_rate && dev_data->rate_cb != NULL) { in cdc_acm_class_handle_req()
[all …]
/Zephyr-Core-3.6.0/subsys/ipc/ipc_service/lib/
Dicmsg.c31 struct icmsg_data_t *dev_data) in mbox_deinit() argument
45 (void)k_work_cancel(&dev_data->mbox_work); in mbox_deinit()
46 (void)k_work_cancel_delayable(&dev_data->notify_work); in mbox_deinit()
54 struct icmsg_data_t *dev_data = in notify_process() local
57 (void)mbox_send(&dev_data->cfg->mbox_tx, NULL); in notify_process()
59 atomic_t state = atomic_get(&dev_data->state); in notify_process()
70 static bool is_endpoint_ready(struct icmsg_data_t *dev_data) in is_endpoint_ready() argument
72 return atomic_get(&dev_data->state) == ICMSG_STATE_READY; in is_endpoint_ready()
75 static int reserve_tx_buffer_if_unused(struct icmsg_data_t *dev_data) in reserve_tx_buffer_if_unused() argument
78 int ret = k_mutex_lock(&dev_data->tx_lock, SHMEM_ACCESS_TO); in reserve_tx_buffer_if_unused()
[all …]
/Zephyr-Core-3.6.0/drivers/console/
Duart_mux.c145 struct uart_mux_dev_data *dev_data = in uart_mux_cb_work() local
148 dev_data->cb(dev_data->dev, dev_data->cb_user_data); in uart_mux_cb_work()
199 struct uart_mux_dev_data *dev_data = in uart_mux_tx_work() local
204 len = ring_buf_get_claim(dev_data->tx_ringbuf, &data, in uart_mux_tx_work()
207 LOG_DBG("Ringbuf %p empty!", dev_data->tx_ringbuf); in uart_mux_tx_work()
212 dev_data->dev); in uart_mux_tx_work()
219 dev_data->dev->name); in uart_mux_tx_work()
223 (void)gsm_dlci_send(dev_data->dlci, data, len); in uart_mux_tx_work()
225 ring_buf_get_finish(dev_data->tx_ringbuf, len); in uart_mux_tx_work()
230 struct uart_mux_dev_data *dev_data = dev->data; in uart_mux_init() local
[all …]
/Zephyr-Core-3.6.0/drivers/ethernet/
Deth_ivshmem.c58 struct eth_ivshmem_dev_data *dev_data = dev->data; in eth_ivshmem_get_stats() local
60 return &dev_data->stats; in eth_ivshmem_get_stats()
66 struct eth_ivshmem_dev_data *dev_data = dev->data; in eth_ivshmem_start() local
68 dev_data->enabled = true; in eth_ivshmem_start()
71 k_poll_signal_raise(&dev_data->poll_signal, 0); in eth_ivshmem_start()
78 struct eth_ivshmem_dev_data *dev_data = dev->data; in eth_ivshmem_stop() local
80 dev_data->enabled = false; in eth_ivshmem_stop()
83 k_poll_signal_raise(&dev_data->poll_signal, 0); in eth_ivshmem_stop()
96 struct eth_ivshmem_dev_data *dev_data = dev->data; in eth_ivshmem_send() local
101 int res = eth_ivshmem_queue_tx_get_buff(&dev_data->ivshmem_queue, &data, len); in eth_ivshmem_send()
[all …]
Deth_esp32.c62 struct eth_esp32_dev_data *dev_data = dev->data; in eth_esp32_send() local
65 if (net_pkt_read(pkt, dev_data->txb, len)) { in eth_esp32_send()
69 uint32_t sent_len = emac_hal_transmit_frame(&dev_data->hal, dev_data->txb, len); in eth_esp32_send()
77 struct eth_esp32_dev_data *const dev_data, uint32_t *frames_remaining) in eth_esp32_rx() argument
81 &dev_data->hal, dev_data->rxb, sizeof(dev_data->rxb), in eth_esp32_rx()
89 dev_data->iface, receive_len, AF_UNSPEC, 0, K_MSEC(100)); in eth_esp32_rx()
96 if (net_pkt_write(pkt, dev_data->rxb, receive_len) != 0) { in eth_esp32_rx()
109 struct eth_esp32_dev_data *const dev_data = dev->data; in eth_esp32_rx_thread() local
115 k_sem_take(&dev_data->int_sem, K_FOREVER); in eth_esp32_rx_thread()
121 dev_data, &frames_remaining); in eth_esp32_rx_thread()
[all …]
Deth_xlnx_gem.c223 struct eth_xlnx_gem_dev_data *dev_data = dev->data; in eth_xlnx_gem_iface_init() local
226 dev_data->iface = iface; in eth_xlnx_gem_iface_init()
227 net_if_set_link_addr(iface, dev_data->mac_addr, 6, NET_LINK_ETHERNET); in eth_xlnx_gem_iface_init()
235 k_work_init(&dev_data->tx_done_work, eth_xlnx_gem_tx_done_work); in eth_xlnx_gem_iface_init()
236 k_work_init(&dev_data->rx_pend_work, eth_xlnx_gem_rx_pending_work); in eth_xlnx_gem_iface_init()
237 k_work_init_delayable(&dev_data->phy_poll_delayed_work, in eth_xlnx_gem_iface_init()
241 k_sem_init(&dev_data->tx_done_sem, 0, 1); in eth_xlnx_gem_iface_init()
247 k_sem_init(&dev_data->txbd_ring.ring_sem, 1, 1); in eth_xlnx_gem_iface_init()
254 k_work_reschedule(&dev_data->phy_poll_delayed_work, K_NO_WAIT); in eth_xlnx_gem_iface_init()
268 struct eth_xlnx_gem_dev_data *dev_data = dev->data; in eth_xlnx_gem_isr() local
[all …]
Deth_stellaris.c43 struct eth_stellaris_runtime *dev_data = dev->data; in eth_stellaris_flush() local
45 if (dev_data->tx_pos != 0) { in eth_stellaris_flush()
46 sys_write32(dev_data->tx_word, REG_MACDATA); in eth_stellaris_flush()
47 dev_data->tx_pos = 0; in eth_stellaris_flush()
48 dev_data->tx_word = 0U; in eth_stellaris_flush()
54 struct eth_stellaris_runtime *dev_data = dev->data; in eth_stellaris_send_byte() local
56 dev_data->tx_word |= byte << (dev_data->tx_pos * 8); in eth_stellaris_send_byte()
57 dev_data->tx_pos++; in eth_stellaris_send_byte()
58 if (dev_data->tx_pos == 4) { in eth_stellaris_send_byte()
59 sys_write32(dev_data->tx_word, REG_MACDATA); in eth_stellaris_send_byte()
[all …]
Dphy_xlnx_gem.c200 struct eth_xlnx_gem_dev_data *dev_data = dev->data; in phy_xlnx_gem_marvell_alaska_reset() local
209 phy_data = phy_xlnx_gem_mdio_read(dev_conf->base_addr, dev_data->phy_addr, in phy_xlnx_gem_marvell_alaska_reset()
212 phy_xlnx_gem_mdio_write(dev_conf->base_addr, dev_data->phy_addr, in phy_xlnx_gem_marvell_alaska_reset()
217 phy_data = phy_xlnx_gem_mdio_read(dev_conf->base_addr, dev_data->phy_addr, in phy_xlnx_gem_marvell_alaska_reset()
222 dev->name, dev_data->phy_addr); in phy_xlnx_gem_marvell_alaska_reset()
235 struct eth_xlnx_gem_dev_data *dev_data = dev->data; in phy_xlnx_gem_marvell_alaska_cfg() local
247 phy_data = phy_xlnx_gem_mdio_read(dev_conf->base_addr, dev_data->phy_addr, in phy_xlnx_gem_marvell_alaska_cfg()
250 phy_xlnx_gem_mdio_write(dev_conf->base_addr, dev_data->phy_addr, in phy_xlnx_gem_marvell_alaska_cfg()
254 if ((dev_data->phy_id & PHY_MRVL_PHY_ID_MODEL_MASK) == in phy_xlnx_gem_marvell_alaska_cfg()
267 phy_xlnx_gem_mdio_write(dev_conf->base_addr, dev_data->phy_addr, in phy_xlnx_gem_marvell_alaska_cfg()
[all …]
Deth_xmc4xxx.c173 struct eth_xmc4xxx_data *dev_data = dev->data; in eth_xmc4xxx_flush_rx() local
182 dev_data->dma_desc_rx_tail = 0; in eth_xmc4xxx_flush_rx()
188 struct eth_xmc4xxx_data *dev_data = dev->data; in eth_xmc4xxx_flush_tx() local
193 if (dev_data->tx_frames_flushed) { in eth_xmc4xxx_flush_tx()
199 node = sys_slist_get(&dev_data->tx_frame_list); in eth_xmc4xxx_flush_tx()
206 node = sys_slist_get(&dev_data->tx_frame_list); in eth_xmc4xxx_flush_tx()
208 dev_data->stats.errors.tx++; in eth_xmc4xxx_flush_tx()
209 dev_data->stats.error_details.tx_aborted_errors++; in eth_xmc4xxx_flush_tx()
213 k_sem_reset(&dev_data->tx_desc_sem); in eth_xmc4xxx_flush_tx()
217 dev_data->dma_desc_tx_head = 0; in eth_xmc4xxx_flush_tx()
[all …]
/Zephyr-Core-3.6.0/drivers/lora/
Dsx12xx_common.c40 } dev_data; variable
102 struct k_poll_signal *sig = dev_data.operation_done; in sx12xx_ev_rx_done()
105 if (dev_data.async_rx_cb) { in sx12xx_ev_rx_done()
109 dev_data.async_rx_cb(dev_data.dev, payload, size, rssi, snr); in sx12xx_ev_rx_done()
118 if (!atomic_cas(&dev_data.modem_usage, STATE_BUSY, STATE_CLEANUP)) { in sx12xx_ev_rx_done()
132 if (size < *dev_data.rx_params.size) { in sx12xx_ev_rx_done()
133 *dev_data.rx_params.size = size; in sx12xx_ev_rx_done()
136 memcpy(dev_data.rx_params.buf, payload, in sx12xx_ev_rx_done()
137 *dev_data.rx_params.size); in sx12xx_ev_rx_done()
139 if (dev_data.rx_params.rssi) { in sx12xx_ev_rx_done()
[all …]
Dsx126x_standalone.c23 void sx126x_reset(struct sx126x_data *dev_data) in sx126x_reset() argument
31 bool sx126x_is_busy(struct sx126x_data *dev_data) in sx126x_is_busy() argument
36 uint32_t sx126x_get_dio1_pin_state(struct sx126x_data *dev_data) in sx126x_get_dio1_pin_state() argument
41 void sx126x_dio1_irq_enable(struct sx126x_data *dev_data) in sx126x_dio1_irq_enable() argument
47 void sx126x_dio1_irq_disable(struct sx126x_data *dev_data) in sx126x_dio1_irq_disable() argument
56 struct sx126x_data *dev_data = CONTAINER_OF(cb, struct sx126x_data, in sx126x_dio1_irq_callback() local
60 k_work_submit(&dev_data->dio1_irq_work); in sx126x_dio1_irq_callback()
71 struct sx126x_data *dev_data = dev->data; in sx126x_variant_init() local
80 gpio_init_callback(&dev_data->dio1_irq_callback, in sx126x_variant_init()
83 &dev_data->dio1_irq_callback) < 0) { in sx126x_variant_init()
/Zephyr-Core-3.6.0/drivers/serial/
Duart_sam0.c138 struct uart_sam0_dev_data *const dev_data = in uart_sam0_dma_tx_done() local
140 const struct uart_sam0_dev_cfg *const cfg = dev_data->cfg; in uart_sam0_dma_tx_done()
147 static int uart_sam0_tx_halt(struct uart_sam0_dev_data *dev_data) in uart_sam0_tx_halt() argument
149 const struct uart_sam0_dev_cfg *const cfg = dev_data->cfg; in uart_sam0_tx_halt()
151 size_t tx_active = dev_data->tx_len; in uart_sam0_tx_halt()
157 .buf = dev_data->tx_buf, in uart_sam0_tx_halt()
162 dev_data->tx_buf = NULL; in uart_sam0_tx_halt()
163 dev_data->tx_len = 0U; in uart_sam0_tx_halt()
174 if (dev_data->async_cb) { in uart_sam0_tx_halt()
175 dev_data->async_cb(dev_data->dev, in uart_sam0_tx_halt()
[all …]
Duart_mchp_xec.c291 struct uart_xec_dev_data * const dev_data = dev->data; in set_baud_rate() local
314 dev_data->uart_config.baudrate = baud_rate; in set_baud_rate()
327 struct uart_xec_dev_data * const dev_data = dev->data; in uart_xec_configure() local
335 k_spinlock_key_t key = k_spin_lock(&dev_data->lock); in uart_xec_configure()
337 ARG_UNUSED(dev_data); in uart_xec_configure()
339 dev_data->fcr_cache = 0U; in uart_xec_configure()
340 dev_data->iir_cache = 0U; in uart_xec_configure()
395 dev_data->uart_config = *cfg; in uart_xec_configure()
407 dev_data->fcr_cache = FCR_FIFO | FCR_MODE0 | FCR_FIFO_8 | FCR_RCVRCLR | in uart_xec_configure()
409 regs->IIR_FCR = dev_data->fcr_cache; in uart_xec_configure()
[all …]
/Zephyr-Core-3.6.0/subsys/usb/device/class/hid/
Dcore.c153 static int hid_on_get_idle(struct hid_device_info *dev_data, in hid_on_get_idle() argument
173 *data = &dev_data->idle_rate[0]; in hid_on_get_idle()
174 *len = sizeof(dev_data->idle_rate[0]); in hid_on_get_idle()
176 *data = &dev_data->idle_rate[report_id - 1]; in hid_on_get_idle()
177 *len = sizeof(dev_data->idle_rate[report_id - 1]); in hid_on_get_idle()
186 static int hid_on_get_report(struct hid_device_info *dev_data, in hid_on_get_report() argument
197 static int hid_on_get_protocol(struct hid_device_info *dev_data, in hid_on_get_protocol() argument
202 uint32_t size = sizeof(dev_data->protocol); in hid_on_get_protocol()
209 LOG_DBG("Get Protocol: %d", dev_data->protocol); in hid_on_get_protocol()
211 *data = &dev_data->protocol; in hid_on_get_protocol()
[all …]
/Zephyr-Core-3.6.0/drivers/i2c/
Di2c_andes_atciic100.c44 struct i2c_atciic100_dev_data_t *dev_data = dev->data; in i2c_atciic100_default_control() local
47 k_sem_init(&dev_data->bus_lock, 1, 1); in i2c_atciic100_default_control()
48 k_sem_init(&dev_data->device_sync_sem, 0, 1); in i2c_atciic100_default_control()
60 dev_data->fifo_depth = 2; in i2c_atciic100_default_control()
63 dev_data->fifo_depth = 4; in i2c_atciic100_default_control()
66 dev_data->fifo_depth = 8; in i2c_atciic100_default_control()
69 dev_data->fifo_depth = 16; in i2c_atciic100_default_control()
88 dev_data->driver_state = I2C_DRV_INIT; in i2c_atciic100_default_control()
89 dev_data->status.mode = 0; in i2c_atciic100_default_control()
90 dev_data->status.arbitration_lost = 0; in i2c_atciic100_default_control()
[all …]
/Zephyr-Core-3.6.0/drivers/dma/
Ddma_nios2_msgdma.c38 struct nios2_msgdma_dev_data *dev_data = (struct nios2_msgdma_dev_data *)dev->data; in nios2_msgdma_isr() local
41 alt_handle_irq(dev_data->msgdma_dev, DT_INST_IRQN(0)); in nios2_msgdma_isr()
46 struct nios2_msgdma_dev_data *dev_data = in nios2_msgdma_callback() local
51 status = IORD_ALTERA_MSGDMA_CSR_STATUS(dev_data->msgdma_dev->csr_base); in nios2_msgdma_callback()
63 dev_data->dma_callback(dev_data->dev, dev_data->user_data, 0, dma_status); in nios2_msgdma_callback()
69 struct nios2_msgdma_dev_data *dev_data = (struct nios2_msgdma_dev_data *)dev->data; in nios2_msgdma_config() local
103 k_sem_take(&dev_data->sem_lock, K_FOREVER); in nios2_msgdma_config()
104 dev_data->dma_callback = cfg->dma_callback; in nios2_msgdma_config()
105 dev_data->user_data = cfg->user_data; in nios2_msgdma_config()
106 dev_data->direction = cfg->channel_direction; in nios2_msgdma_config()
[all …]
/Zephyr-Core-3.6.0/drivers/spi/
Dspi_nrfx_spi.c89 struct spi_nrfx_data *dev_data = dev->data; in configure() local
91 struct spi_context *ctx = &dev_data->ctx; in configure()
95 if (dev_data->initialized && spi_context_configured(ctx, spi_cfg)) { in configure()
140 if (dev_data->initialized) { in configure()
142 dev_data->initialized = false; in configure()
146 event_handler, dev_data); in configure()
152 dev_data->initialized = true; in configure()
161 struct spi_nrfx_data *dev_data = dev->data; in finish_transaction() local
162 struct spi_context *ctx = &dev_data->ctx; in finish_transaction()
167 dev_data->busy = false; in finish_transaction()
[all …]
Dspi_nrfx_spim.c125 struct spi_nrfx_data *dev_data = dev->data; in configure() local
127 struct spi_context *ctx = &dev_data->ctx; in configure()
132 if (dev_data->initialized && spi_context_configured(ctx, spi_cfg)) { in configure()
190 if (dev_data->initialized) { in configure()
192 dev_data->initialized = false; in configure()
196 event_handler, dev_data); in configure()
202 dev_data->initialized = true; in configure()
226 struct spi_nrfx_data *dev_data = dev->data; in anomaly_58_workaround_setup() local
229 uint32_t ppi_ch = dev_data->ppi_ch; in anomaly_58_workaround_setup()
230 uint32_t gpiote_ch = dev_data->gpiote_ch; in anomaly_58_workaround_setup()
[all …]
/Zephyr-Core-3.6.0/subsys/ipc/ipc_service/backends/
Dipc_icbmsg.c302 static int alloc_tx_buffer(struct backend_data *dev_data, uint32_t *size, in alloc_tx_buffer() argument
305 const struct icbmsg_config *conf = dev_data->conf; in alloc_tx_buffer()
323 r = k_sem_take(&dev_data->block_wait_sem, timeout); in alloc_tx_buffer()
338 k_sem_give(&dev_data->block_wait_sem); in alloc_tx_buffer()
395 static int release_tx_blocks(struct backend_data *dev_data, size_t tx_block_index, in release_tx_blocks() argument
398 const struct icbmsg_config *conf = dev_data->conf; in release_tx_blocks()
440 k_sem_give(&dev_data->block_wait_sem); in release_tx_blocks()
457 static int release_tx_buffer(struct backend_data *dev_data, const uint8_t *buffer, in release_tx_buffer() argument
460 const struct icbmsg_config *conf = dev_data->conf; in release_tx_buffer()
469 return release_tx_blocks(dev_data, tx_block_index, size, new_size); in release_tx_buffer()
[all …]
/Zephyr-Core-3.6.0/drivers/watchdog/
Dwdt_intel_adsp.c66 struct intel_adsp_wdt_dev_data *const dev_data = dev->data; in intel_adsp_wdt_setup() local
76 ret = dw_wdt_configure(dev_data->core_wdt[i], dev_data->period_cfg); in intel_adsp_wdt_setup()
82 dw_wdt_response_mode_set(dev_data->core_wdt[i], !!dev_data->callback); in intel_adsp_wdt_setup()
84 intel_adsp_wdt_reset_set(dev_config->base, i, dev_data->allow_reset); in intel_adsp_wdt_setup()
94 struct intel_adsp_wdt_dev_data *const dev_data = dev->data; in intel_adsp_wdt_install_timeout() local
98 dev_data->callback = config->callback; in intel_adsp_wdt_install_timeout()
106 ret = dw_wdt_calc_period(dev_data->core_wdt[0], dev_config->clk_freq, config, in intel_adsp_wdt_install_timeout()
107 &dev_data->period_cfg); in intel_adsp_wdt_install_timeout()
113 dev_data->allow_reset = true; in intel_adsp_wdt_install_timeout()
121 struct intel_adsp_wdt_dev_data *const dev_data = dev->data; in intel_adsp_wdt_feed() local
[all …]
Dwdt_ifx_cat1.c34 struct ifx_cat1_wdt_data *dev_data = dev->data; in ifx_cat1_wdt_isr_handler() local
36 if (dev_data->callback) { in ifx_cat1_wdt_isr_handler()
37 dev_data->callback(dev, 0); in ifx_cat1_wdt_isr_handler()
46 struct ifx_cat1_wdt_data *dev_data = dev->data; in ifx_cat1_wdt_setup() local
49 result = cyhal_wdt_init(&dev_data->obj, dev_data->timeout); in ifx_cat1_wdt_setup()
56 if (dev_data->callback) { in ifx_cat1_wdt_setup()
67 struct ifx_cat1_wdt_data *dev_data = dev->data; in ifx_cat1_wdt_disable() local
74 cyhal_wdt_free(&dev_data->obj); in ifx_cat1_wdt_disable()
81 struct ifx_cat1_wdt_data *dev_data = dev->data; in ifx_cat1_wdt_install_timeout() local
83 if (dev_data->timeout_installed) { in ifx_cat1_wdt_install_timeout()
[all …]
/Zephyr-Core-3.6.0/drivers/can/
Dcan_mcp2515.c308 struct mcp2515_data *dev_data = dev->data; in mcp2515_tx_done() local
309 can_tx_callback_t callback = dev_data->tx_cb[tx_idx].cb; in mcp2515_tx_done()
312 callback(dev, status, dev_data->tx_cb[tx_idx].cb_arg); in mcp2515_tx_done()
313 dev_data->tx_cb[tx_idx].cb = NULL; in mcp2515_tx_done()
315 k_mutex_lock(&dev_data->mutex, K_FOREVER); in mcp2515_tx_done()
316 dev_data->tx_busy_map &= ~BIT(tx_idx); in mcp2515_tx_done()
317 k_mutex_unlock(&dev_data->mutex); in mcp2515_tx_done()
318 k_sem_give(&dev_data->tx_sem); in mcp2515_tx_done()
340 struct mcp2515_data *dev_data = dev->data; in mcp2515_set_timing() local
347 if (dev_data->common.started) { in mcp2515_set_timing()
[all …]
/Zephyr-Core-3.6.0/drivers/usb/device/
Dusb_dc_kinetis.c122 static struct usb_device_data dev_data; variable
189 dev_data.bd_active = 0U; in usb_dc_reset()
190 dev_data.address = 0U; in usb_dc_reset()
218 if (dev_data.attached) { in usb_dc_attach()
230 dev_data.attached = 1; in usb_dc_attach()
253 if (!dev_data.attached) { in usb_dc_set_address()
263 dev_data.address = 0x80 | (addr & 0x7f); in usb_dc_set_address()
332 ep_ctrl = &dev_data.ep_ctrl[ep_idx]; in usb_dc_ep_configure()
334 if (ep_idx && (dev_data.ep_ctrl[ep_idx].status.in_enabled || in usb_dc_ep_configure()
335 dev_data.ep_ctrl[ep_idx].status.out_enabled)) { in usb_dc_ep_configure()
[all …]
/Zephyr-Core-3.6.0/drivers/counter/
Dcounter_gecko_stimer.c98 struct counter_gecko_data *const dev_data = (struct counter_gecko_data *const)(dev)->data; in counter_gecko_get_value() local
100 *ticks = ((sl_sleeptimer_get_tick_count()) % (dev_data->top_data.ticks)); in counter_gecko_get_value()
115 struct counter_gecko_data *const dev_data = (struct counter_gecko_data *const)(dev)->data; in counter_gecko_start() local
117 error_code = sl_sleeptimer_start_timer(&top_timer, dev_data->top_data.ticks, top_callback, in counter_gecko_start()
118 (void *)&dev_data->top_data, 0, 0); in counter_gecko_start()
138 struct counter_gecko_data *const dev_data = (struct counter_gecko_data *const)(dev)->data; in counter_gecko_set_top_value() local
157 dev_data->top_data.callback = cfg->callback; in counter_gecko_set_top_value()
158 dev_data->top_data.ticks = cfg->ticks; in counter_gecko_set_top_value()
159 dev_data->top_data.dev = (struct device *)dev; in counter_gecko_set_top_value()
160 dev_data->top_data.user_data = (struct counter_top_cfg *)cfg; in counter_gecko_set_top_value()
[all …]
/Zephyr-Core-3.6.0/drivers/rtc/
Drtc_mc146818.c174 struct rtc_mc146818_data * const dev_data = dev->data; in rtc_mc146818_set_time() local
180 k_spinlock_key_t key = k_spin_lock(&dev_data->lock); in rtc_mc146818_set_time()
212 k_spin_unlock(&dev_data->lock, key); in rtc_mc146818_set_time()
218 struct rtc_mc146818_data * const dev_data = dev->data; in rtc_mc146818_get_time() local
224 k_spinlock_key_t key = k_spin_lock(&dev_data->lock); in rtc_mc146818_get_time()
263 k_spin_unlock(&dev_data->lock, key); in rtc_mc146818_get_time()
307 struct rtc_mc146818_data * const dev_data = dev->data; in rtc_mc146818_alarm_set_time() local
310 k_spinlock_key_t key = k_spin_lock(&dev_data->lock); in rtc_mc146818_alarm_set_time()
348 k_spin_unlock(&dev_data->lock, key); in rtc_mc146818_alarm_set_time()
355 struct rtc_mc146818_data * const dev_data = dev->data; in rtc_mc146818_alarm_get_time() local
[all …]

12345