/Zephyr-Core-3.6.0/drivers/serial/ |
D | serial_test.c | 49 struct serial_vnd_data *data = dev->data; in is_irq_rx_pending() local 51 return !ring_buf_is_empty(data->read_queue); in is_irq_rx_pending() 56 struct serial_vnd_data *data = dev->data; in is_irq_tx_pending() local 58 return ring_buf_space_get(data->written) != 0; in is_irq_tx_pending() 63 struct serial_vnd_data *data = dev->data; in irq_process() local 68 bool rx_int = rx_rdy && data->irq_rx_enabled; in irq_process() 69 bool tx_int = tx_rdy && data->irq_tx_enabled; in irq_process() 79 if (!data->irq_isr) { in irq_process() 83 data->irq_isr(dev, NULL); in irq_process() 89 struct serial_vnd_data *data = dev->data; in irq_rx_enable() local [all …]
|
D | uart_esp32.c | 96 /* driver data */ 121 struct uart_esp32_data *data = dev->data; in uart_esp32_poll_in() local 124 if (uart_hal_get_rxfifo_len(&data->hal) == 0) { in uart_esp32_poll_in() 128 uart_hal_read_rxfifo(&data->hal, p_char, &inout_rd_len); in uart_esp32_poll_in() 135 struct uart_esp32_data *data = dev->data; in uart_esp32_poll_out() local 139 while (uart_hal_get_txfifo_len(&data->hal) == 0) { in uart_esp32_poll_out() 144 uart_hal_write_txfifo(&data->hal, &c, 1, &written); in uart_esp32_poll_out() 149 struct uart_esp32_data *data = dev->data; in uart_esp32_err_check() local 150 uint32_t mask = uart_hal_get_intsts_mask(&data->hal); in uart_esp32_err_check() 159 struct uart_esp32_data *data = dev->data; in uart_esp32_config_get() local [all …]
|
D | uart_xmc4xxx.c | 151 struct uart_xmc4xxx_data *data = dev->data; in uart_xmc4xxx_isr() local 154 if (data->user_cb) { in uart_xmc4xxx_isr() 155 data->user_cb(dev, data->user_data); in uart_xmc4xxx_isr() 163 if (data->dma_rx.buffer_len) { in uart_xmc4xxx_isr() 171 async_timer_start(&data->dma_rx.timeout_work, data->dma_rx.timeout); in uart_xmc4xxx_isr() 179 struct uart_xmc4xxx_data *data = dev->data; in uart_xmc4xxx_configure_service_requests() local 184 data->service_request_tx = (config->irq_num_tx - USIC_IRQ_MIN) % IRQS_PER_USIC; in uart_xmc4xxx_configure_service_requests() 189 data->service_request_tx); in uart_xmc4xxx_configure_service_requests() 193 data->service_request_tx); in uart_xmc4xxx_configure_service_requests() 198 data->service_request_rx = (config->irq_num_rx - USIC_IRQ_MIN) % IRQS_PER_USIC; in uart_xmc4xxx_configure_service_requests() [all …]
|
/Zephyr-Core-3.6.0/drivers/gnss/ |
D | gnss_quectel_lcx6g.c | 134 struct quectel_lcx6g_data *data = dev->data; in quectel_lcx6g_configure_pps() local 156 ret = gnss_nmea0183_snprintk(data->dynamic_request_buf, sizeof(data->dynamic_request_buf), in quectel_lcx6g_configure_pps() 162 data->dynamic_script_chat.request_size = ret; in quectel_lcx6g_configure_pps() 164 ret = gnss_nmea0183_snprintk(data->dynamic_match_buf, sizeof(data->dynamic_match_buf), in quectel_lcx6g_configure_pps() 170 data->dynamic_match.match_size = ret; in quectel_lcx6g_configure_pps() 172 return modem_chat_run_script(&data->chat, &data->dynamic_script); in quectel_lcx6g_configure_pps() 177 struct quectel_lcx6g_data *data = dev->data; in quectel_lcx6g_pm_changed() local 181 data->pm_timeout = K_TIMEOUT_ABS_MS(pm_ready_at_ms); in quectel_lcx6g_pm_changed() 186 struct quectel_lcx6g_data *data = dev->data; in quectel_lcx6g_await_pm_ready() local 189 k_sleep(data->pm_timeout); in quectel_lcx6g_await_pm_ready() [all …]
|
D | gnss_nmea0183_match.c | 32 static void gnss_nmea0183_match_reset_gsv(struct gnss_nmea0183_match_data *data) in gnss_nmea0183_match_reset_gsv() argument 34 data->satellites_length = 0; in gnss_nmea0183_match_reset_gsv() 35 data->gsv_message_number = 1; in gnss_nmea0183_match_reset_gsv() 39 static void gnss_nmea0183_match_publish(struct gnss_nmea0183_match_data *data) in gnss_nmea0183_match_publish() argument 41 if ((data->gga_utc == 0) || (data->rmc_utc == 0)) { in gnss_nmea0183_match_publish() 45 if (data->gga_utc == data->rmc_utc) { in gnss_nmea0183_match_publish() 46 gnss_publish_data(data->gnss, &data->data); in gnss_nmea0183_match_publish() 53 struct gnss_nmea0183_match_data *data = user_data; in gnss_nmea0183_match_gga_callback() local 55 if (gnss_nmea0183_parse_gga((const char **)argv, argc, &data->data) < 0) { in gnss_nmea0183_match_gga_callback() 59 if (gnss_nmea0183_match_parse_utc(argv, argc, &data->gga_utc) < 0) { in gnss_nmea0183_match_gga_callback() [all …]
|
/Zephyr-Core-3.6.0/samples/drivers/soc_flash_nrf/ |
D | README.rst | 50 Data read: 1122 51 Data read matches data written. Good! 54 Data read: aabb 55 Data read matches data written. Good! 58 Data read: abcd 59 Data read matches data written. Good! 62 Data read: 1234 63 Data read matches data written. Good! 71 Data read: 1234 72 Data read matches data written. Good! [all …]
|
/Zephyr-Core-3.6.0/tests/drivers/sensor/generic/src/ |
D | main.c | 22 struct sensor_value data; member 27 struct sensor_value data; member 109 struct sensor_value data; in ZTEST() local 119 &data), RETURN_SUCCESS, "fail to get channel"); in ZTEST() 120 zassert_equal(data.val1, chan_elements[0].data.val1, in ZTEST() 121 "the data does not match"); in ZTEST() 122 zassert_equal(data.val2, chan_elements[0].data.val2, in ZTEST() 123 "the data does not match"); in ZTEST() 131 &data), RETURN_SUCCESS, "fail to get channel"); in ZTEST() 132 zassert_equal(data.val1, chan_elements[i].data.val1, in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/tests/subsys/pm/device_runtime_api/src/ |
D | test_driver.c | 22 struct test_driver_data *data = dev->data; in test_driver_action() local 25 data->ongoing = true; in test_driver_action() 27 if (data->async) { in test_driver_action() 28 k_sem_take(&data->sync, K_FOREVER); in test_driver_action() 29 data->async = false; in test_driver_action() 32 data->ongoing = false; in test_driver_action() 35 data->count++; in test_driver_action() 42 struct test_driver_data *data = dev->data; in test_driver_pm_async() local 44 data->async = true; in test_driver_pm_async() 49 struct test_driver_data *data = dev->data; in test_driver_pm_done() local [all …]
|
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/adv/encrypted/css_sample_data/src/ |
D | central.c | 11 static bool data_parse_cb(struct bt_data *data, void *user_data) in data_parse_cb() argument 13 if (data->type == BT_DATA_ENCRYPTED_AD_DATA) { in data_parse_cb() 17 size_t decrypted_data_size = BT_EAD_DECRYPTED_PAYLOAD_SIZE(data->data_len); in data_parse_cb() 20 LOG_ERR("Size of decrypted data: %d", decrypted_data_size); in data_parse_cb() 21 LOG_ERR("Size of sample data: %d", sample_data->size_ad_data); in data_parse_cb() 22 FAIL("Computed size of data does not match the size of the data from the " in data_parse_cb() 23 "sample. (data set %d)\n", in data_parse_cb() 27 if (memcmp(sample_data->randomizer_little_endian, data->data, in data_parse_cb() 30 bt_hex(data->data, BT_EAD_RANDOMIZER_SIZE)); in data_parse_cb() 40 err = bt_ead_decrypt(sample_data->session_key, sample_data->iv, data->data, in data_parse_cb() [all …]
|
/Zephyr-Core-3.6.0/tests/subsys/mgmt/ec_host_cmd/uart/src/ |
D | main.c | 37 struct uart_mock_data *data = uart_mock.data; in tx_done() local 41 evt.data.tx.buf = data->tx_buf; in tx_done() 42 evt.data.tx.len = data->tx_len; in tx_done() 44 data->cb(&uart_mock, &evt, data->user_data); in tx_done() 98 struct uart_mock_data *data = uart_mock.data; in test_hello() local 99 struct ec_host_cmd_request_header *cmd = (struct ec_host_cmd_request_header *)data->rx_buf; in test_hello() 109 evt.data.rx.len = CMD_HEADER_SIZE + sizeof(struct hello_cmd_data); in test_hello() 110 evt.data.rx.offset = 0; in test_hello() 111 evt.data.rx.buf = data->rx_buf; in test_hello() 121 /* Set expected data set from the EC */ in test_hello() [all …]
|
/Zephyr-Core-3.6.0/drivers/virtualization/ |
D | virt_ivshmem.c | 40 struct ivshmem *data = dev->data; in ivshmem_configure_msi_x_interrupts() local 48 n_vectors = pcie_msi_vectors_allocate(data->pcie->bdf, in ivshmem_configure_msi_x_interrupts() 50 data->vectors, in ivshmem_configure_msi_x_interrupts() 61 data->params[i].dev = dev; in ivshmem_configure_msi_x_interrupts() 62 data->params[i].vector = i; in ivshmem_configure_msi_x_interrupts() 64 if (!pcie_msi_vector_connect(data->pcie->bdf, in ivshmem_configure_msi_x_interrupts() 65 &data->vectors[i], in ivshmem_configure_msi_x_interrupts() 67 &data->params[i], 0)) { in ivshmem_configure_msi_x_interrupts() 75 if (!pcie_msi_enable(data->pcie->bdf, data->vectors, n_vectors, 0)) { in ivshmem_configure_msi_x_interrupts() 80 data->n_vectors = n_vectors; in ivshmem_configure_msi_x_interrupts() [all …]
|
/Zephyr-Core-3.6.0/drivers/i2c/ |
D | i2c_smartbond.c | 39 struct i2c_smartbond_data *data = dev->data; in i2c_smartbond_configure() local 74 key = k_spin_lock(&data->lock); in i2c_smartbond_configure() 90 k_spin_unlock(&data->lock, key); in i2c_smartbond_configure() 98 struct i2c_smartbond_data *data = data = dev->data; in i2c_smartbond_get_config() local 100 k_spinlock_key_t key = k_spin_lock(&data->lock); in i2c_smartbond_get_config() 105 k_spin_unlock(&data->lock, key); in i2c_smartbond_get_config() 139 struct i2c_smartbond_data *data, in i2c_smartbond_set_target_address() argument 142 k_spinlock_key_t key = k_spin_lock(&data->lock); in i2c_smartbond_set_target_address() 158 k_spin_unlock(&data->lock, key); in i2c_smartbond_set_target_address() 188 struct i2c_smartbond_data *data = dev->data; in i2c_smartbond_prep_transfer() local [all …]
|
D | i2c_numaker.c | 27 #define M_TRAN_DATA_ACK 0x28 /* Master Transmit Data ACK */ 28 #define M_TRAN_DATA_NACK 0x30 /* Master Transmit Data NACK */ 32 #define M_RECE_DATA_ACK 0x50 /* Master Receive Data ACK */ 33 #define M_RECE_DATA_NACK 0x58 /* Master Receive Data NACK */ 39 #define S_TRAN_DATA_ACK 0xB8 /* Slave Transmit Data ACK */ 40 #define S_TRAN_DATA_NACK 0xC0 /* Slave Transmit Data NACK */ 41 #define S_TRAN_LAST_DATA_ACK 0xC8 /* Slave Transmit Last Data ACK */ 44 #define S_RECE_DATA_ACK 0x80 /* Slave Receive Data ACK */ 45 #define S_RECE_DATA_NACK 0x88 /* Slave Receive Data NACK */ 50 #define GC_DATA_ACK 0x90 /* GC mode Data ACK */ [all …]
|
D | i2c_ifx_cat1.c | 44 /* Data structure */ 99 struct ifx_cat1_i2c_data *data = dev->data; in ifx_master_event_handler() local 103 (void)cyhal_i2c_abort_async(&data->obj); in ifx_master_event_handler() 104 data->error_status = 1; in ifx_master_event_handler() 111 if (((data->async_pending == CAT1_I2C_PENDING_TX_RX) && in ifx_master_event_handler() 113 (data->async_pending != CAT1_I2C_PENDING_TX_RX)) { in ifx_master_event_handler() 116 k_sem_give(&data->transfer_sem); in ifx_master_event_handler() 120 if (data->p_target_config->callbacks->read_requested) { in ifx_master_event_handler() 121 data->p_target_config->callbacks->read_requested(data->p_target_config, in ifx_master_event_handler() 122 &data->i2c_target_wr_byte); in ifx_master_event_handler() [all …]
|
/Zephyr-Core-3.6.0/subsys/usb/usb_c/ |
D | usbc_stack.c | 26 struct usbc_port_data *port = dev->data; in usbc_handler() 66 struct usbc_port_data *port = dev->data; \ 102 struct usbc_port_data *data = dev->data; in DT_INST_FOREACH_STATUS_OKAY() local 105 data->request.val = PRIV_PORT_REQUEST_START; in DT_INST_FOREACH_STATUS_OKAY() 106 k_fifo_put(&data->request_fifo, &data->request); in DT_INST_FOREACH_STATUS_OKAY() 109 k_thread_resume(data->port_thread); in DT_INST_FOREACH_STATUS_OKAY() 119 struct usbc_port_data *data = dev->data; in usbc_suspend() local 122 data->request.val = PRIV_PORT_REQUEST_SUSPEND; in usbc_suspend() 123 k_fifo_put(&data->request_fifo, &data->request); in usbc_suspend() 134 struct usbc_port_data *data = dev->data; in usbc_request() local [all …]
|
/Zephyr-Core-3.6.0/samples/subsys/zbus/runtime_obs_registration/ |
D | README.rst | 5 Use zbus' runtime observer registration to filter data generated by a producer. 11 …le of the communication, we have the filter responsible for filtering the data generated by the pr… 32 I: >-- Raw data fetched 33 I: -|- Filtering data 34 I: --> Consuming data: Acc x=0, y=0, z=0 35 I: >-- Raw data fetched 36 I: -|- Filtering data 37 I: --> Consuming data: Acc x=2, y=2, z=2 38 I: >-- Raw data fetched 39 I: -|- Filtering data [all …]
|
/Zephyr-Core-3.6.0/drivers/modem/ |
D | modem_cmd_handler.c | 37 static void skipcrlf(struct modem_cmd_handler_data *data) in skipcrlf() argument 39 while (data->rx_buf && data->rx_buf->len && in skipcrlf() 40 is_crlf(*data->rx_buf->data)) { in skipcrlf() 41 net_buf_pull_u8(data->rx_buf); in skipcrlf() 42 if (!data->rx_buf->len) { in skipcrlf() 43 data->rx_buf = net_buf_frag_del(NULL, data->rx_buf); in skipcrlf() 48 static uint16_t findcrlf(struct modem_cmd_handler_data *data, in findcrlf() argument 51 struct net_buf *buf = data->rx_buf; in findcrlf() 54 while (buf && buf->len && !is_crlf(*(buf->data + pos))) { in findcrlf() 64 if (buf && buf->len && is_crlf(*(buf->data + pos))) { in findcrlf() [all …]
|
/Zephyr-Core-3.6.0/drivers/i2c/target/ |
D | eeprom_target.c | 37 struct i2c_eeprom_target_data *data = dev->data; in eeprom_target_program() local 39 if (length > data->buffer_size) { in eeprom_target_program() 43 memcpy(data->buffer, eeprom_data, length); in eeprom_target_program() 51 struct i2c_eeprom_target_data *data = dev->data; in eeprom_target_read() local 53 if (!data || offset >= data->buffer_size) { in eeprom_target_read() 57 *eeprom_data = data->buffer[offset]; in eeprom_target_read() 66 struct i2c_eeprom_target_data *data = dev->data; in eeprom_target_set_addr() local 69 ret = i2c_target_unregister(cfg->bus.bus, &data->config); in eeprom_target_set_addr() 75 data->config.address = addr; in eeprom_target_set_addr() 77 return i2c_target_register(cfg->bus.bus, &data->config); in eeprom_target_set_addr() [all …]
|
/Zephyr-Core-3.6.0/subsys/usb/device_next/class/ |
D | usbd_cdc_acm.c | 67 /* UART API user callback data */ 128 struct usbd_cdc_acm_desc *desc = c_nd->data->desc; in cdc_acm_get_int_in() 135 struct usbd_cdc_acm_desc *desc = c_nd->data->desc; in cdc_acm_get_bulk_in() 142 struct usbd_cdc_acm_desc *desc = c_nd->data->desc; in cdc_acm_get_bulk_out() 149 struct usbd_cdc_acm_desc *desc = c_nd->data->desc; in cdc_acm_get_bulk_mps() 157 struct usbd_contex *uds_ctx = c_nd->data->uds_ctx; in usbd_cdc_acm_request() 158 const struct device *dev = c_nd->data->priv; in usbd_cdc_acm_request() 159 struct cdc_acm_uart_data *data = dev->data; in usbd_cdc_acm_request() local 173 atomic_clear_bit(&data->state, CDC_ACM_RX_FIFO_BUSY); in usbd_cdc_acm_request() 183 LOG_HEXDUMP_INF(buf->data, buf->len, ""); in usbd_cdc_acm_request() [all …]
|
/Zephyr-Core-3.6.0/drivers/video/ |
D | video_sw_generator.c | 30 struct video_sw_generator_data *data = dev->data; in video_sw_generator_set_fmt() local 36 data->fmt = *fmt; in video_sw_generator_set_fmt() 45 struct video_sw_generator_data *data = dev->data; in video_sw_generator_get_fmt() local 51 *fmt = data->fmt; in video_sw_generator_get_fmt() 58 struct video_sw_generator_data *data = dev->data; in video_sw_generator_stream_start() local 60 return k_work_schedule(&data->buf_work, K_MSEC(33)); in video_sw_generator_stream_start() 65 struct video_sw_generator_data *data = dev->data; in video_sw_generator_stream_stop() local 67 k_work_cancel_delayable_sync(&data->buf_work, &data->work_sync); in video_sw_generator_stream_stop() 76 static void __fill_buffer_colorbar(struct video_sw_generator_data *data, in __fill_buffer_colorbar() argument 79 int bw = data->fmt.width / 8; in __fill_buffer_colorbar() [all …]
|
/Zephyr-Core-3.6.0/drivers/spi/ |
D | spi_mcux_dspi.c | 89 struct spi_mcux_data *data = dev->data; in spi_mcux_transfer_next_packet() local 91 struct spi_context *ctx = &data->ctx; in spi_mcux_transfer_next_packet() 98 spi_context_cs_control(&data->ctx, false); in spi_mcux_transfer_next_packet() 99 spi_context_complete(&data->ctx, dev, 0); in spi_mcux_transfer_next_packet() 111 data->tx_dma_config.dma_channel); in spi_mcux_transfer_next_packet() 112 ret = dma_start(data->tx_dma_config.dma_dev, in spi_mcux_transfer_next_packet() 113 data->tx_dma_config.dma_channel); in spi_mcux_transfer_next_packet() 116 data->tx_dma_config.dma_channel, ret); in spi_mcux_transfer_next_packet() 125 data->rx_dma_config.dma_channel); in spi_mcux_transfer_next_packet() 126 ret = dma_start(data->rx_dma_config.dma_dev, in spi_mcux_transfer_next_packet() [all …]
|
/Zephyr-Core-3.6.0/samples/userspace/prod_consumer/ |
D | README.rst | 11 Consider a "sample driver" which gets incoming data from some unknown source 12 and generates interrupts with pointers to this data. The application needs 13 to perform some processing on this data and then write the processed data 29 driver, buffer incoming data, and write it back once processed by 32 Application B simply processes the data. Let's pretend this data is 34 everything else, with just two queues for sending/receiving data items. 39 function with a fixed-sized data payload. 40 - App A callback function, in supervisor mode, places the data payload 42 - App A monitor thread in user mode waits for data in the message queue. 43 When it wakes up, copy the data payload into a buffer allocated out [all …]
|
/Zephyr-Core-3.6.0/boards/arm/s32z270dc2_r52/support/ |
D | startup.cmm | 114 Data.Set EAXI:0x41850014 %LE %Long 0x0 115 Data.Set EAXI:0x41850018 %LE %Long 0x0 116 Data.Set EAXI:0x4185001C %LE %Long 0x0 119 Data.Set DP:0x1C100c0 %LE %Long 0x3cf3cf00 120 Data.Set DP:0x1C100c8 %LE %Long 0x3cf3cf00 130 Data.Set EZAXI:&cfgCoreAddr %Long 0yXXXXxxxxXXXXxxxxXXXXxxxxXXXXx&(thumbBit)x&(spltLckBit) ; CFG_C… 133 Data.Set EAXI:&rtuStartAddr %Long 0xFFFEF7FF 156 Data.LOAD.Elf &elfFile EAXI: 190 Data.Set EAXI:0x41900300 %LE %Long 0x5 191 Data.Set EAXI:0x41900304 %LE %Long 0x1 [all …]
|
/Zephyr-Core-3.6.0/drivers/pcie/host/ |
D | pcie_ecam.c | 48 struct pcie_ecam_data *data = dev->data; in pcie_ecam_init() local 89 data->regions[PCIE_REGION_IO].bus_start = cfg->ranges[i].pcie_bus_addr; in pcie_ecam_init() 90 data->regions[PCIE_REGION_IO].phys_start = cfg->ranges[i].host_map_addr; in pcie_ecam_init() 91 data->regions[PCIE_REGION_IO].size = cfg->ranges[i].map_length; in pcie_ecam_init() 93 if (data->regions[PCIE_REGION_IO].bus_start < 0x1000) { in pcie_ecam_init() 94 data->regions[PCIE_REGION_IO].allocation_offset = 0x1000; in pcie_ecam_init() 98 data->regions[PCIE_REGION_MEM].bus_start = cfg->ranges[i].pcie_bus_addr; in pcie_ecam_init() 99 data->regions[PCIE_REGION_MEM].phys_start = cfg->ranges[i].host_map_addr; in pcie_ecam_init() 100 data->regions[PCIE_REGION_MEM].size = cfg->ranges[i].map_length; in pcie_ecam_init() 102 if (data->regions[PCIE_REGION_MEM].bus_start < 0x1000) { in pcie_ecam_init() [all …]
|
/Zephyr-Core-3.6.0/drivers/bbram/ |
D | bbram_emul.c | 20 /** Device data */ 23 uint8_t *data; member 37 struct bbram_emul_data *data = dev->data; in bbram_emul_set_invalid() local 39 data->status.is_invalid = is_invalid; in bbram_emul_set_invalid() 45 struct bbram_emul_data *data = dev->data; in bbram_emul_set_standby_power_state() local 47 data->status.standby_failure = failure; in bbram_emul_set_standby_power_state() 53 struct bbram_emul_data *data = dev->data; in bbram_emul_set_power_state() local 55 data->status.power_failure = failure; in bbram_emul_set_power_state() 61 struct bbram_emul_data *data = dev->data; in bbram_emul_check_invalid() local 62 bool is_invalid = data->status.is_invalid; in bbram_emul_check_invalid() [all …]
|