/Zephyr-latest/drivers/dac/ |
D | dac_gd32.c | 41 uint32_t num_channels; member 55 #if DT_INST_PROP(0, num_channels) == 2 in dac_gd32_enable() 69 #if DT_INST_PROP(0, num_channels) == 2 in dac_gd32_disable() 88 #if DT_INST_PROP(0, num_channels) == 2 in dac_gd32_write() 107 if (dacx >= config->num_channels) { in dac_gd32_channel_setup() 138 if (dacx >= config->num_channels) { in dac_gd32_write_value() 180 .num_channels = DT_INST_PROP(0, num_channels),
|
/Zephyr-latest/drivers/led/ |
D | is31fl3216a.c | 70 uint32_t num_channels, in is31fl3216a_led_write_channels() argument 78 if (num_channels == 0) { in is31fl3216a_led_write_channels() 82 if (start_channel + num_channels > IS31FL3216A_MAX_LEDS) { in is31fl3216a_led_write_channels() 88 (num_channels - 1); in is31fl3216a_led_write_channels() 89 for (i = 0; i < num_channels; i++) { in is31fl3216a_led_write_channels() 90 if (buf[num_channels - i - 1] > 100) { in is31fl3216a_led_write_channels() 94 buf[num_channels - i - 1]); in is31fl3216a_led_write_channels() 98 num_channels + 1); in is31fl3216a_led_write_channels()
|
D | led_handlers.c | 40 uint32_t num_channels, const uint8_t *buf) in z_vrfy_led_write_channels() argument 43 K_OOPS(K_SYSCALL_MEMORY_READ(buf, num_channels)); in z_vrfy_led_write_channels() 44 return z_impl_led_write_channels(dev, start_channel, num_channels, buf); in z_vrfy_led_write_channels()
|
D | lp5569.c | 81 uint32_t num_channels, const uint8_t *buf) in lp5569_write_channels() argument 84 uint32_t i2c_len = num_channels + 1; in lp5569_write_channels() 87 if ((uint64_t)start_channel + num_channels > LP5569_NUM_LEDS) { in lp5569_write_channels() 92 memcpy(&i2c_msg[1], buf, num_channels); in lp5569_write_channels()
|
D | led_shell.c | 282 size_t num_channels; in cmd_write_channels() local 291 num_channels = argc - arg_idx_value; in cmd_write_channels() 292 if (num_channels > MAX_CHANNEL_ARGS) { in cmd_write_channels() 295 num_channels, MAX_CHANNEL_ARGS); in cmd_write_channels() 299 for (i = 0; i < num_channels; i++) { in cmd_write_channels() 320 for (i = 1; i < num_channels; i++) { in cmd_write_channels() 325 err = led_write_channels(dev, start_channel, num_channels, value); in cmd_write_channels()
|
D | is31fl3733.c | 127 uint32_t num_channels, const uint8_t *buf) in is31fl3733_led_write_channels() argument 134 if ((start_channel + num_channels) > IS31FL3733_MAX_LED) { in is31fl3733_led_write_channels() 140 memcpy((pwm_start + 1), buf, num_channels); in is31fl3733_led_write_channels() 147 LOG_HEXDUMP_DBG(pwm_start, (num_channels + 1), "PWM states"); in is31fl3733_led_write_channels() 149 return i2c_write_dt(&config->bus, pwm_start, num_channels + 1); in is31fl3733_led_write_channels()
|
/Zephyr-latest/subsys/net/l2/ieee802154/ |
D | ieee802154_utils.c | 54 uint16_t num_channels = 0; in ieee802154_radio_number_of_channels() local 68 num_channels += channel_range->to_channel - channel_range->from_channel + 1U; in ieee802154_radio_number_of_channels() 71 return num_channels; in ieee802154_radio_number_of_channels()
|
/Zephyr-latest/drivers/sensor/nxp/fxos8700/ |
D | fxos8700.c | 284 num_bytes = config->num_channels * FXOS8700_BYTES_PER_CHANNEL_NORMAL; in fxos8700_sample_fetch() 298 __ASSERT(config->start_channel + config->num_channels in fxos8700_sample_fetch() 385 int num_channels; in fxos8700_channel_get() local 405 num_channels = 1; in fxos8700_channel_get() 409 num_channels = 1; in fxos8700_channel_get() 413 num_channels = 1; in fxos8700_channel_get() 417 num_channels = 3; in fxos8700_channel_get() 421 num_channels = 0; in fxos8700_channel_get() 426 for (i = 0; i < num_channels; i++) { in fxos8700_channel_get() 430 if (num_channels > 0) { in fxos8700_channel_get() [all …]
|
/Zephyr-latest/drivers/input/ |
D | input_esp32_touch_sensor.c | 52 int num_channels; member 82 const int num_channels = dev_cfg->num_channels; local 96 for (int i = 0; i < num_channels; i++) { 116 for (int i = 0; i < num_channels; i++) { 182 const int num_channels = dev_cfg->num_channels; local 197 for (int i = 0; i < num_channels; i++) { 242 for (int i = 0; i < num_channels; i++) { 316 .num_channels = ARRAY_SIZE(esp32_touch_sensor_channel_config_##inst), \
|
D | input_analog_axis.c | 41 const uint8_t num_channels; member 63 return cfg->num_channels; in analog_axis_num_axes() 74 if (channel >= cfg->num_channels) { in analog_axis_calibration_get() 102 if (channel >= cfg->num_channels) { in analog_axis_calibration_set() 159 int16_t bufs[cfg->num_channels]; in analog_axis_loop() 171 for (i = 0; i < cfg->num_channels; i++) { in analog_axis_loop() 185 for (i = 0; i < cfg->num_channels; i++) { in analog_axis_loop() 230 for (i = 0; i < cfg->num_channels; i++) { in analog_axis_thread() 365 .num_channels = ARRAY_SIZE(analog_axis_channel_cfg_##inst), \
|
/Zephyr-latest/include/zephyr/drivers/ |
D | led_strip.h | 74 size_t num_channels); 144 size_t num_channels) in led_strip_update_channels() argument 153 return api->update_channels(dev, channels, num_channels); in led_strip_update_channels()
|
D | led.h | 108 uint32_t num_channels, 228 uint32_t num_channels, const uint8_t *buf); 232 uint32_t num_channels, const uint8_t *buf) in z_impl_led_write_channels() argument 240 return api->write_channels(dev, start_channel, num_channels, buf); in z_impl_led_write_channels()
|
/Zephyr-latest/drivers/sensor/ |
D | sensor_handlers.c | 74 size_t num_channels) in z_vrfy_sensor_reconfigure_read_iodev() argument 78 K_OOPS(K_SYSCALL_MEMORY_READ(channels, sizeof(enum sensor_channel) * num_channels)); in z_vrfy_sensor_reconfigure_read_iodev() 79 return z_impl_sensor_reconfigure_read_iodev(iodev, sensor, channels, num_channels); in z_vrfy_sensor_reconfigure_read_iodev()
|
D | default_rtio_sensor.c | 52 size_t num_channels) in compute_num_samples() argument 56 for (size_t i = 0; i < num_channels; ++i) { in compute_num_samples() 98 struct sensor_chan_spec chan_spec, int num_channels) in check_header_contains_channel() argument 102 for (int i = 0; i < num_channels; ++i) { in check_header_contains_channel() 146 header->num_channels = num_output_samples; in sensor_submit_fallback_sync() 254 LOG_DBG("Total channels in header: %" PRIu32, header->num_channels); in sensor_submit_fallback_sync() 335 for (size_t i = 0; i < header->num_channels; ++i) { in get_frame_count() 393 for (size_t i = 0; i < header->num_channels; ++i) { in get_q31_value() 470 const q31_t *q = (const q31_t *)(buffer + compute_header_size(header->num_channels)); in decode()
|
/Zephyr-latest/drivers/adc/ |
D | adc_emul.c | 65 uint8_t num_channels; member 115 if (chan >= config->num_channels) { in adc_emul_const_value_set() 138 if (chan >= config->num_channels) { in adc_emul_const_raw_value_set() 162 if (chan >= config->num_channels) { in adc_emul_value_func_set() 187 if (chan >= config->num_channels) { in adc_emul_raw_value_func_set() 289 if (channel_cfg->channel_id >= config->num_channels) { in adc_emul_channel_setup() 334 for (mask = BIT(config->num_channels - 1); mask != 0; mask >>= 1) { in adc_emul_check_buffer_size() 378 if (find_msb_set(sequence->channels) > config->num_channels) { in adc_emul_start_read() 591 for (chan = 0; chan < config->num_channels; chan++) { in adc_emul_init() 625 .num_channels = DT_INST_PROP(_num, nchannels), \
|
D | adc_rpi_pico.c | 36 uint8_t num_channels; member 104 if (channel_cfg->channel_id >= config->num_channels) { in adc_rpi_channel_setup() 144 for (mask = BIT(config->num_channels - 1); mask != 0; mask >>= 1) { in adc_rpi_check_buffer_size() 188 if (find_msb_set(sequence->channels) > config->num_channels) { in adc_rpi_start_read() 364 .num_channels = ADC_RPI_CHANNEL_NUM, \
|
D | adc_mcux_gau_adc.c | 195 uint8_t num_channels = 0; in mcux_gau_adc_do_read() local 205 num_channels += ((sequence->channels & (0x1 << i)) ? 1 : 0); in mcux_gau_adc_do_read() 210 ((1 + sequence->options->extra_samplings) * num_channels)) || in mcux_gau_adc_do_read() 211 (sequence->options == NULL && sequence->buffer_size < num_channels)) { in mcux_gau_adc_do_read() 218 data->scan_length = num_channels; in mcux_gau_adc_do_read() 226 data->scan_length - num_channels--, in mcux_gau_adc_do_read()
|
/Zephyr-latest/drivers/led_strip/ |
D | lpd880x.c | 118 size_t num_channels) in lpd880x_strip_update_channels() argument 122 for (i = 0; i < num_channels; i++) { in lpd880x_strip_update_channels() 126 return lpd880x_update(dev, channels, num_channels); in lpd880x_strip_update_channels()
|
/Zephyr-latest/drivers/sensor/nxp/fxas21002/ |
D | fxas21002.c | 210 int num_channels; in fxas21002_channel_get() local 226 num_channels = 1; in fxas21002_channel_get() 230 num_channels = 1; in fxas21002_channel_get() 234 num_channels = 1; in fxas21002_channel_get() 238 num_channels = 3; in fxas21002_channel_get() 242 num_channels = 0; in fxas21002_channel_get() 247 for (i = 0; i < num_channels; i++) { in fxas21002_channel_get() 251 if (num_channels > 0) { in fxas21002_channel_get()
|
/Zephyr-latest/drivers/sensor/ti/fdc2x1x/ |
D | fdc2x1x.c | 564 uint8_t buf_size = cfg->num_channels; in fdc2x1x_get_cap_data() 591 for (i = 0; i < cfg->num_channels; i++) { in fdc2x1x_get_cap_data() 645 if (cfg->num_channels >= 2) { in fdc2x1x_channel_get() 655 if (cfg->num_channels >= 3) { in fdc2x1x_channel_get() 665 if (cfg->num_channels == 4) { in fdc2x1x_channel_get() 681 if (cfg->num_channels >= 2) { in fdc2x1x_channel_get() 692 if (cfg->num_channels >= 3) { in fdc2x1x_channel_get() 703 if (cfg->num_channels >= 4) { in fdc2x1x_channel_get() 738 for (ch = 0; ch < cfg->num_channels; ch++) { in fdc2x1x_init_config() 915 if (cfg->num_channels == 0) { in fdc2x1x_init() [all …]
|
/Zephyr-latest/drivers/sensor/bosch/bme280/ |
D | bme280_async.c | 25 const size_t num_channels = cfg->count; in bme280_submit_sync() local 43 for (size_t i = 0; i < num_channels; i++) { in bme280_submit_sync()
|
/Zephyr-latest/drivers/counter/ |
D | counter_nxp_mrt.c | 215 uint32_t num_channels = (base->MODCFG & MRT_MODCFG_NOC_MASK) >> MRT_MODCFG_NOC_SHIFT; in nxp_mrt_init() local 233 for (int i = 0; i < num_channels; i++) { in nxp_mrt_init() 247 uint32_t num_channels = (base->MODCFG & MRT_MODCFG_NOC_MASK) >> MRT_MODCFG_NOC_SHIFT; in nxp_mrt_isr() local 249 for (int i = 0; i < num_channels; i++) { in nxp_mrt_isr() 316 [DT_INST_PROP(n, num_channels)] = { \ 329 [DT_INST_PROP(n, num_channels)] = { \
|
/Zephyr-latest/drivers/sensor/memsic/mmc56x3/ |
D | mmc56x3_async.c | 23 const size_t num_channels = cfg->count; in mmc56x3_submit_sync() local 42 for (size_t i = 0; i < num_channels; i++) { in mmc56x3_submit_sync()
|
/Zephyr-latest/drivers/sensor/tdk/icm42688/ |
D | icm42688_rtio.c | 52 const size_t num_channels = cfg->count; in icm42688_submit_one_shot() local 69 icm42688_encode(dev, channels, num_channels, buf); in icm42688_submit_one_shot()
|
/Zephyr-latest/drivers/sensor/asahi_kasei/akm09918c/ |
D | akm09918c_async.c | 22 const size_t num_channels = cfg->count; in akm09918c_submit_sync() local 26 for (size_t i = 0; i < num_channels; i++) { in akm09918c_submit_sync()
|