Home
last modified time | relevance | path

Searched refs:num_channels (Results 1 – 25 of 668) sorted by relevance

12345678910>>...27

/openbmc/linux/drivers/iio/dac/
H A Dad5686.c278 .num_channels = 1,
284 .num_channels = 1,
290 .num_channels = 2,
296 .num_channels = 2,
302 .num_channels = 8,
308 .num_channels = 8,
326 .num_channels = 8,
331 .num_channels = 8,
337 .num_channels = 8,
355 .num_channels = 1,
[all …]
H A Dad5064.c464 .num_channels = 4,
470 .num_channels = 2,
476 .num_channels = 4,
482 .num_channels = 2,
488 .num_channels = 4,
494 .num_channels = 4,
500 .num_channels = 2,
506 .num_channels = 4,
513 .num_channels = 4,
520 .num_channels = 4,
[all …]
H A Dltc2632.c218 .num_channels = 2,
223 .num_channels = 2,
228 .num_channels = 2,
233 .num_channels = 2,
238 .num_channels = 2,
243 .num_channels = 2,
248 .num_channels = 4,
253 .num_channels = 4,
258 .num_channels = 4,
263 .num_channels = 4,
[all …]
H A Dad5449.c47 unsigned int num_channels; member
228 .num_channels = 1,
233 .num_channels = 2,
238 .num_channels = 1,
243 .num_channels = 2,
248 .num_channels = 1,
253 .num_channels = 2,
260 if (st->chip_info->num_channels == 1) in ad5449_vref_name()
288 for (i = 0; i < st->chip_info->num_channels; ++i) in ad5449_spi_probe()
304 indio_dev->num_channels = st->chip_info->num_channels; in ad5449_spi_probe()
[all …]
H A Dad5380.c274 .num_channels = 40,
279 .num_channels = 40,
284 .num_channels = 16,
289 .num_channels = 16,
294 .num_channels = 32,
299 .num_channels = 32,
304 .num_channels = 32,
309 .num_channels = 32,
334 .num_channels = 8,
339 .num_channels = 8,
[all …]
H A Dad5360.c59 unsigned int num_channels; member
122 .num_channels = 16,
128 .num_channels = 16,
134 .num_channels = 8,
140 .num_channels = 8,
146 .num_channels = 40,
152 .num_channels = 40,
158 .num_channels = 32,
164 .num_channels = 32,
442 channels = kcalloc(st->chip_info->num_channels, in ad5360_alloc_channels()
[all …]
H A Dti-dac082s085.c24 u8 num_channels; member
29 [dual_8bit] = { .num_channels = 2, .resolution = 8 },
30 [dual_10bit] = { .num_channels = 2, .resolution = 10 },
31 [dual_12bit] = { .num_channels = 2, .resolution = 12 },
32 [quad_8bit] = { .num_channels = 4, .resolution = 8 },
33 [quad_10bit] = { .num_channels = 4, .resolution = 10 },
34 [quad_12bit] = { .num_channels = 4, .resolution = 12 },
285 indio_dev->num_channels = spec->num_channels; in ti_dac_probe()
H A Dti-dac5571.c32 u8 num_channels; member
37 [single_8bit] = {.num_channels = 1, .resolution = 8},
38 [single_10bit] = {.num_channels = 1, .resolution = 10},
39 [single_12bit] = {.num_channels = 1, .resolution = 12},
40 [quad_8bit] = {.num_channels = 4, .resolution = 8},
41 [quad_10bit] = {.num_channels = 4, .resolution = 10},
42 [quad_12bit] = {.num_channels = 4, .resolution = 12},
339 indio_dev->num_channels = spec->num_channels; in dac5571_probe()
352 switch (spec->num_channels) { in dac5571_probe()
366 for (i = 0; i < spec->num_channels; i++) { in dac5571_probe()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dselq.h30 static inline u16 mlx5e_txq_to_ch_ix(u16 txq, u16 num_channels) in mlx5e_txq_to_ch_ix() argument
32 while (unlikely(txq >= num_channels)) in mlx5e_txq_to_ch_ix()
33 txq -= num_channels; in mlx5e_txq_to_ch_ix()
37 static inline u16 mlx5e_txq_to_ch_ix_htb(u16 txq, u16 num_channels) in mlx5e_txq_to_ch_ix_htb() argument
39 if (unlikely(txq >= num_channels)) { in mlx5e_txq_to_ch_ix_htb()
40 if (unlikely(txq >= num_channels << 3)) in mlx5e_txq_to_ch_ix_htb()
41 txq %= num_channels; in mlx5e_txq_to_ch_ix_htb()
44 txq -= num_channels; in mlx5e_txq_to_ch_ix_htb()
45 while (txq >= num_channels); in mlx5e_txq_to_ch_ix_htb()
H A Dselq.c14 unsigned int num_channels; member
46 .num_channels = 1, in mlx5e_selq_init()
86 selq->standby->num_channels = params->num_channels; in mlx5e_selq_prepare_params()
89 selq->standby->num_channels * selq->standby->num_tcs; in mlx5e_selq_prepare_params()
223 return mlx5e_txq_to_ch_ix(txq_ix, selq->num_channels) + in mlx5e_select_queue()
224 up * selq->num_channels; in mlx5e_select_queue()
235 return selq->num_channels; in mlx5e_select_queue()
244 return mlx5e_txq_to_ch_ix_htb(txq_ix, selq->num_channels); in mlx5e_select_queue()
260 txq_ix = mlx5e_txq_to_ch_ix(txq_ix, selq->num_channels); in mlx5e_select_queue()
267 return txq_ix + up * selq->num_channels; in mlx5e_select_queue()
/openbmc/linux/drivers/iio/adc/
H A Dmcp320x.c66 unsigned int num_channels; member
135 if (adc->chip_info->num_channels > 1) in mcp320x_adc_conversion()
304 .num_channels = ARRAY_SIZE(mcp3201_channels),
309 .num_channels = ARRAY_SIZE(mcp3202_channels),
314 .num_channels = ARRAY_SIZE(mcp3204_channels),
319 .num_channels = ARRAY_SIZE(mcp3208_channels),
324 .num_channels = ARRAY_SIZE(mcp3201_channels),
329 .num_channels = ARRAY_SIZE(mcp3202_channels),
334 .num_channels = ARRAY_SIZE(mcp3204_channels),
396 indio_dev->num_channels = chip_info->num_channels; in mcp320x_probe()
[all …]
H A Dmax1363.c135 int num_channels; member
1061 .num_channels = ARRAY_SIZE(max1361_channels),
1071 .num_channels = ARRAY_SIZE(max1361_channels),
1081 .num_channels = ARRAY_SIZE(max1363_channels),
1091 .num_channels = ARRAY_SIZE(max1363_channels),
1102 .num_channels = ARRAY_SIZE(max1036_channels),
1112 .num_channels = ARRAY_SIZE(max1036_channels),
1122 .num_channels = ARRAY_SIZE(max1038_channels),
1132 .num_channels = ARRAY_SIZE(max1038_channels),
1142 .num_channels = ARRAY_SIZE(max1136_channels),
[all …]
H A Drcar-gyroadc.c69 unsigned int num_channels; member
326 unsigned int num_channels; in rcar_gyroadc_parse_subdevs() local
342 num_channels = ARRAY_SIZE(rcar_gyroadc_iio_channels_1); in rcar_gyroadc_parse_subdevs()
347 num_channels = ARRAY_SIZE(rcar_gyroadc_iio_channels_2); in rcar_gyroadc_parse_subdevs()
352 num_channels = ARRAY_SIZE(rcar_gyroadc_iio_channels_3); in rcar_gyroadc_parse_subdevs()
376 if (reg >= num_channels) { in rcar_gyroadc_parse_subdevs()
379 num_channels, child, reg); in rcar_gyroadc_parse_subdevs()
412 priv->num_channels = num_channels; in rcar_gyroadc_parse_subdevs()
417 indio_dev->num_channels = num_channels; in rcar_gyroadc_parse_subdevs()
449 for (i = 0; i < priv->num_channels; i++) { in rcar_gyroadc_deinit_supplies()
[all …]
H A Dad7923.c72 unsigned int num_channels; member
134 .num_channels = ARRAY_SIZE(ad7904_channels),
138 .num_channels = ARRAY_SIZE(ad7914_channels),
142 .num_channels = ARRAY_SIZE(ad7924_channels),
146 .num_channels = ARRAY_SIZE(ad7908_channels),
150 .num_channels = ARRAY_SIZE(ad7918_channels),
154 .num_channels = ARRAY_SIZE(ad7928_channels),
172 for_each_set_bit(i, active_scan_mask, indio_dev->num_channels - 1) { in ad7923_update_scan_mode()
328 indio_dev->num_channels = info->num_channels; in ad7923_probe()
H A Dad7266.c309 unsigned int num_channels; member
319 .num_channels = ARRAY_SIZE(ad7266_channels_u),
324 .num_channels = ARRAY_SIZE(ad7266_channels_u_fixed),
329 .num_channels = ARRAY_SIZE(ad7266_channels_s),
334 .num_channels = ARRAY_SIZE(ad7266_channels_s_fixed),
339 .num_channels = ARRAY_SIZE(ad7266_channels_diff_u),
344 .num_channels = ARRAY_SIZE(ad7266_channels_diff_fixed_u),
349 .num_channels = ARRAY_SIZE(ad7266_channels_diff_s),
354 .num_channels = ARRAY_SIZE(ad7266_channels_diff_fixed_s),
374 indio_dev->num_channels = chan_info->num_channels; in ad7266_init_channels()
[all …]
H A Dti-ads7950.c118 unsigned int num_channels; member
231 .num_channels = ARRAY_SIZE(ti_ads7950_channels),
235 .num_channels = ARRAY_SIZE(ti_ads7951_channels),
239 .num_channels = ARRAY_SIZE(ti_ads7952_channels),
243 .num_channels = ARRAY_SIZE(ti_ads7953_channels),
247 .num_channels = ARRAY_SIZE(ti_ads7954_channels),
251 .num_channels = ARRAY_SIZE(ti_ads7955_channels),
255 .num_channels = ARRAY_SIZE(ti_ads7956_channels),
259 .num_channels = ARRAY_SIZE(ti_ads7957_channels),
263 .num_channels = ARRAY_SIZE(ti_ads7958_channels),
[all …]
/openbmc/u-boot/drivers/adc/
H A Dstm32-adc.c166 int i, num_channels, ret; in stm32_adc_chan_of_init() local
169 num_channels = dev_read_size(dev, "st,adc-channels"); in stm32_adc_chan_of_init()
170 if (num_channels < 0) { in stm32_adc_chan_of_init()
171 dev_err(dev, "can't get st,adc-channels: %d\n", num_channels); in stm32_adc_chan_of_init()
172 return num_channels; in stm32_adc_chan_of_init()
174 num_channels /= sizeof(u32); in stm32_adc_chan_of_init()
176 if (num_channels > adc->cfg->max_channels) { in stm32_adc_chan_of_init()
177 dev_err(dev, "too many st,adc-channels: %d\n", num_channels); in stm32_adc_chan_of_init()
181 ret = dev_read_u32_array(dev, "st,adc-channels", chans, num_channels); in stm32_adc_chan_of_init()
187 for (i = 0; i < num_channels; i++) { in stm32_adc_chan_of_init()
H A Drockchip-saradc.c31 int num_channels; member
70 if (channel < 0 || channel >= priv->data->num_channels) { in rockchip_saradc_start_channel()
135 uc_pdata->channel_mask = (1 << priv->data->num_channels) - 1; in rockchip_saradc_ofdata_to_platdata()
148 .num_channels = 3,
154 .num_channels = 2,
160 .num_channels = 6,
/openbmc/linux/drivers/input/keyboard/
H A Dcap11xx.c92 unsigned int num_channels; member
108 [CAP1106] = { .product_id = 0x55, .num_channels = 6, .num_leds = 0, .no_gain = false },
109 [CAP1126] = { .product_id = 0x53, .num_channels = 6, .num_leds = 2, .no_gain = false },
111 [CAP1203] = { .product_id = 0x6d, .num_channels = 3, .num_leds = 0, .no_gain = true },
112 [CAP1206] = { .product_id = 0x67, .num_channels = 6, .num_leds = 0, .no_gain = true },
347 if (!cap || !cap->num_channels) { in cap11xx_i2c_probe()
353 struct_size(priv, keycodes, cap->num_channels), in cap11xx_i2c_probe()
414 for (i = 0; i < cap->num_channels; i++) in cap11xx_i2c_probe()
418 priv->keycodes, cap->num_channels); in cap11xx_i2c_probe()
445 for (i = 0; i < cap->num_channels; i++) in cap11xx_i2c_probe()
[all …]
/openbmc/linux/sound/soc/qcom/qdsp6/
H A Daudioreach.c626 hw_cfg->mf.num_channels = cfg->num_channels; in audioreach_display_port_set_media_format()
695 hw_cfg->mf.num_channels = cfg->num_channels; in audioreach_codec_dma_set_media_format()
804 uint32_t num_channels = cfg->num_channels; in audioreach_mfc_set_media_format() local
865 mp3_cfg->num_channels = mcfg->num_channels; in audioreach_set_compr_media_format()
882 aac_cfg->num_channels = mcfg->num_channels; in audioreach_set_compr_media_format()
893 flac_cfg->num_channels = mcfg->num_channels; in audioreach_set_compr_media_format()
995 hw_cfg->mf.num_channels = cfg->num_channels; in audioreach_i2s_set_media_format()
1054 uint32_t num_channels = mcfg->num_channels; in audioreach_pcm_set_media_format() local
1088 media_cfg->num_channels = mcfg->num_channels; in audioreach_pcm_set_media_format()
1111 uint32_t num_channels = mcfg->num_channels; in audioreach_shmem_set_media_format() local
[all …]
/openbmc/linux/drivers/iio/potentiometer/
H A Dds1803.c39 u8 num_channels; member
77 ret = i2c_master_recv(data->client, result, indio_dev->num_channels); in ds1803_read()
106 .num_channels = ARRAY_SIZE(ds1803_channels),
114 .num_channels = ARRAY_SIZE(ds1803_channels),
122 .num_channels = ARRAY_SIZE(ds1803_channels),
130 .num_channels = ARRAY_SIZE(ds3502_channels),
226 indio_dev->num_channels = data->cfg->num_channels; in ds1803_probe()
/openbmc/linux/drivers/leds/rgb/
H A Dleds-qcom-lpg.c205 int num_channels; member
1144 int num_channels; in lpg_add_led() local
1158 num_channels = 1; in lpg_add_led()
1165 led->num_channels = num_channels; in lpg_add_led()
1241 lpg->num_channels = data->num_channels; in lpg_init_channels()
1377 .num_channels = 1,
1391 .num_channels = 8,
1408 .num_channels = 6,
1423 .num_channels = 5,
1441 .num_channels = 4,
[all …]
/openbmc/linux/drivers/staging/vc04_services/bcm2835-audio/
H A Dbcm2835.c14 static int num_channels = MAX_SUBSTREAMS; variable
20 module_param(num_channels, int, 0644);
21 MODULE_PARM_DESC(num_channels, "Number of audio channels (default: 8)");
276 if (num_channels <= 0 || num_channels > MAX_SUBSTREAMS) { in snd_bcm2835_alsa_probe()
277 num_channels = MAX_SUBSTREAMS; in snd_bcm2835_alsa_probe()
279 num_channels); in snd_bcm2835_alsa_probe()
286 err = snd_add_child_devices(dev, num_channels); in snd_bcm2835_alsa_probe()
/openbmc/linux/sound/usb/
H A Dmixer_us16x08.c1097 .num_channels = 16,
1104 .num_channels = 16,
1111 .num_channels = 16,
1118 .num_channels = 16,
1125 .num_channels = 16,
1132 .num_channels = 16,
1139 .num_channels = 16,
1146 .num_channels = 16,
1153 .num_channels = 16,
1160 .num_channels = 16,
[all …]
/openbmc/linux/drivers/iio/chemical/
H A Datlas-ezo-sensor.c32 int num_channels; member
88 .num_channels = 1,
93 .num_channels = 1,
98 .num_channels = 1,
225 indio_dev->num_channels = chip->num_channels; in atlas_ezo_probe()

12345678910>>...27