/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 | 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 165 uart_hal_get_baudrate(&data->hal, &cfg->baudrate); in uart_esp32_config_get() [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 …]
|
D | uart_intel_lw.c | 140 struct uart_intel_lw_device_data *data = dev->data; in uart_intel_lw_poll_in() local 152 k_spinlock_key_t key = k_spin_lock(&data->lock); in uart_intel_lw_poll_in() 162 k_spin_unlock(&data->lock, key); in uart_intel_lw_poll_in() 193 struct uart_intel_lw_device_data *data = dev->data; in uart_intel_lw_poll_out() local 201 key = k_spin_lock(&data->lock); in uart_intel_lw_poll_out() 209 data->control_val |= INTEL_LW_UART_CONTROL_RTS_MSK; in uart_intel_lw_poll_out() 210 sys_write32(data->control_val, config->base in uart_intel_lw_poll_out() 222 data->control_val &= ~INTEL_LW_UART_CONTROL_RTS_MSK; in uart_intel_lw_poll_out() 223 sys_write32(data->control_val, config->base in uart_intel_lw_poll_out() 230 k_spin_unlock(&data->lock, key); in uart_intel_lw_poll_out() [all …]
|
D | uart_altera.c | 145 struct uart_altera_device_data *data = dev->data; in uart_altera_poll_in() local 157 k_spinlock_key_t key = k_spin_lock(&data->lock); in uart_altera_poll_in() 167 k_spin_unlock(&data->lock, key); in uart_altera_poll_in() 184 struct uart_altera_device_data *data = dev->data; in uart_altera_poll_out() local 187 k_spinlock_key_t key = k_spin_lock(&data->lock); in uart_altera_poll_out() 196 k_spin_unlock(&data->lock, key); in uart_altera_poll_out() 211 struct uart_altera_device_data *data = dev->data; in uart_altera_init() local 226 data->control_val = ALTERA_AVALON_UART_CONTROL_DCTS_MSK; in uart_altera_init() 229 sys_write32(data->control_val, config->base + ALTERA_AVALON_UART_CONTROL_REG_OFFSET); in uart_altera_init() 250 struct uart_altera_device_data *data = dev->data; in uart_altera_err_check() local [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() 122 zassert_equal(data.val2, chan_elements[0].data.val2, in ZTEST() 131 &data), RETURN_SUCCESS, "fail to get channel"); in ZTEST() 132 zassert_equal(data.val1, chan_elements[i].data.val1, in ZTEST() 134 zassert_equal(data.val2, chan_elements[i].data.val2, in ZTEST() 140 &data), RETURN_SUCCESS, "should fail for invalid channel"); in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/drivers/gnss/ |
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 …]
|
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 …]
|
/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/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/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/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 …]
|
D | modem_cellular.c | 221 static void modem_cellular_enter_state(struct modem_cellular_data *data, 224 static void modem_cellular_delegate_event(struct modem_cellular_data *data, 227 static void modem_cellular_event_handler(struct modem_cellular_data *data, 234 struct modem_cellular_data *data = (struct modem_cellular_data *)user_data; in modem_cellular_bus_pipe_handler() local 238 modem_cellular_delegate_event(data, MODEM_CELLULAR_EVENT_BUS_OPENED); in modem_cellular_bus_pipe_handler() 242 modem_cellular_delegate_event(data, MODEM_CELLULAR_EVENT_BUS_CLOSED); in modem_cellular_bus_pipe_handler() 254 struct modem_cellular_data *data = (struct modem_cellular_data *)user_data; in modem_cellular_dlci1_pipe_handler() local 258 modem_cellular_delegate_event(data, MODEM_CELLULAR_EVENT_DLCI1_OPENED); in modem_cellular_dlci1_pipe_handler() 270 struct modem_cellular_data *data = (struct modem_cellular_data *)user_data; in modem_cellular_dlci2_pipe_handler() local 274 modem_cellular_delegate_event(data, MODEM_CELLULAR_EVENT_DLCI2_OPENED); in modem_cellular_dlci2_pipe_handler() [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/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/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/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_ifx_cat1.c | 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() 123 data->obj.context.slaveTxBufferIdx = 0; in ifx_master_event_handler() [all …]
|
/Zephyr-Core-3.6.0/subsys/usb/device_next/class/ |
D | usbd_cdc_acm.c | 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() 184 done = ring_buf_put(data->rx_fifo.rb, buf->data, buf->len); in usbd_cdc_acm_request() [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() 126 data->cb(&uart_mock, &evt, data->user_data); in test_hello() [all …]
|
/Zephyr-Core-3.6.0/drivers/sensor/ms5837/ |
D | ms5837.c | 52 struct ms5837_data *data = dev->data; in ms5837_compensate_30() local 66 dT = adc_temperature - ((int32_t)(data->t_ref) << 8); in ms5837_compensate_30() 67 data->temperature = 2000 + (dT * data->tempsens) / (1ll << 23); in ms5837_compensate_30() 68 OFF = ((int64_t)(data->off_t1) << 16) + (dT * data->tco) / (1ll << 7); in ms5837_compensate_30() 69 SENS = ((int64_t)(data->sens_t1) << 15) + (dT * data->tcs) / (1ll << 8); in ms5837_compensate_30() 76 temp_sq = (int64_t)(data->temperature - 2000) * (data->temperature - 2000); in ms5837_compensate_30() 77 if (data->temperature < 2000) { in ms5837_compensate_30() 81 if (data->temperature < -1500) { in ms5837_compensate_30() 82 temp_sq = (data->temperature + 1500) * in ms5837_compensate_30() 83 (data->temperature + 1500); in ms5837_compensate_30() [all …]
|
/Zephyr-Core-3.6.0/tests/bluetooth/host/data/bt_data_parse/src/ |
D | main.c | 54 uint8_t data[] = { in ZTEST() local 65 net_buf_simple_init_with_data(&buf, data, ARRAY_SIZE(data)); in ZTEST() 86 uint8_t data[] = { in ZTEST() local 97 net_buf_simple_init_with_data(&buf, data, ARRAY_SIZE(data)); in ZTEST() 118 uint8_t data[] = { in ZTEST() local 126 net_buf_simple_init_with_data(&buf, data, ARRAY_SIZE(data)); in ZTEST() 135 const uint8_t *data; member 139 static bool bt_data_parse_func_custom_fake(struct bt_data *data, in bt_data_parse_func_custom_fake() argument 146 zassert_equal(data->data_len, *ud->data - 1); in bt_data_parse_func_custom_fake() 147 ud->data++; in bt_data_parse_func_custom_fake() [all …]
|
/Zephyr-Core-3.6.0/drivers/sensor/veml7700/ |
D | veml7700.c | 114 static void veml7700_sleep_by_integration_time(const struct veml7700_data *data) in veml7700_sleep_by_integration_time() argument 116 switch (data->it) { in veml7700_sleep_by_integration_time() 138 static uint32_t veml7700_counts_to_lux(const struct veml7700_data *data, in veml7700_counts_to_lux() argument 141 return counts * veml7700_resolution[data->gain][data->it]; in veml7700_counts_to_lux() 144 static uint16_t veml7700_lux_to_counts(const struct veml7700_data *data, in veml7700_lux_to_counts() argument 147 return lux / veml7700_resolution[data->gain][data->it]; in veml7700_lux_to_counts() 169 static uint16_t veml7700_build_als_conf_param(const struct veml7700_data *data) in veml7700_build_als_conf_param() argument 174 param |= data->gain << 11; in veml7700_build_als_conf_param() 177 param |= veml7700_it_values[data->it] << 6; in veml7700_build_als_conf_param() 179 if (data->int_mode != VEML7700_INT_DISABLED) { in veml7700_build_als_conf_param() [all …]
|
/Zephyr-Core-3.6.0/subsys/mgmt/mcumgr/transport/src/ |
D | smp_shell.c | 65 struct smp_shell_data *const data = shell_uart_smp_shell_data_get_ptr(); in smp_shell_input_timeout_handler() local 67 atomic_clear_bit(&data->esc_state, ESC_MCUMGR_PKT_1); in smp_shell_input_timeout_handler() 68 atomic_clear_bit(&data->esc_state, ESC_MCUMGR_PKT_2); in smp_shell_input_timeout_handler() 69 atomic_clear_bit(&data->esc_state, ESC_MCUMGR_FRAG_1); in smp_shell_input_timeout_handler() 70 atomic_clear_bit(&data->esc_state, ESC_MCUMGR_FRAG_2); in smp_shell_input_timeout_handler() 72 if (data->buf) { in smp_shell_input_timeout_handler() 73 net_buf_reset(data->buf); in smp_shell_input_timeout_handler() 74 net_buf_unref(data->buf); in smp_shell_input_timeout_handler() 75 data->buf = NULL; in smp_shell_input_timeout_handler() 82 static int read_mcumgr_byte(struct smp_shell_data *data, uint8_t byte) in read_mcumgr_byte() argument [all …]
|
/Zephyr-Core-3.6.0/drivers/counter/ |
D | rtc_mcp7940n.c | 75 struct mcp7940n_data *data = dev->data; in decode_rtc() local 79 time.tm_sec = RTC_BCD_DECODE(data->registers.rtc_sec.sec); in decode_rtc() 80 time.tm_min = RTC_BCD_DECODE(data->registers.rtc_min.min); in decode_rtc() 81 time.tm_hour = RTC_BCD_DECODE(data->registers.rtc_hours.hr); in decode_rtc() 82 time.tm_mday = RTC_BCD_DECODE(data->registers.rtc_date.date); in decode_rtc() 83 time.tm_wday = data->registers.rtc_weekday.weekday; in decode_rtc() 85 time.tm_mon = RTC_BCD_DECODE(data->registers.rtc_month.month) - 1; in decode_rtc() 87 time.tm_year = RTC_BCD_DECODE(data->registers.rtc_year.year) + in decode_rtc() 108 struct mcp7940n_data *data = dev->data; in encode_rtc() local 121 data->registers.rtc_sec.start_osc = 1; in encode_rtc() [all …]
|