/openbmc/u-boot/drivers/adc/ |
H A D | adc-uclass.c | 39 if ((uc_pdata->channel_mask >= mask) && (uc_pdata->channel_mask & mask)) in check_channel() 81 int adc_channel_mask(struct udevice *dev, unsigned int *channel_mask) in adc_channel_mask() argument 88 *channel_mask = uc_pdata->channel_mask; in adc_channel_mask() 122 int adc_start_channels(struct udevice *dev, unsigned int channel_mask) in adc_start_channels() argument 130 ret = check_channel(dev, channel_mask, CHECK_MASK, __func__); in adc_start_channels() 138 return ops->start_channels(dev, channel_mask); in adc_start_channels() 167 int adc_channels_data(struct udevice *dev, unsigned int channel_mask, in adc_channels_data() argument 178 ret = check_channel(dev, channel_mask, CHECK_MASK, __func__); in adc_channels_data() 183 ret = ops->channels_data(dev, channel_mask, channels); in adc_channels_data() 215 unsigned int channel_mask, in _adc_channels_single_shot() argument [all …]
|
H A D | sandbox.c | 41 int sandbox_adc_start_channels(struct udevice *dev, unsigned int channel_mask) in sandbox_adc_start_channels() argument 48 priv->active_channel_mask = channel_mask; in sandbox_adc_start_channels() 76 int sandbox_adc_channels_data(struct udevice *dev, unsigned int channel_mask, in sandbox_adc_channels_data() argument 88 if (!(priv->active_channel_mask & channel_mask)) { in sandbox_adc_channels_data() 97 if (!((channel_mask >> i) & 0x1)) in sandbox_adc_channels_data() 147 uc_pdata->channel_mask = (1 << SANDBOX_ADC_CHANNELS) - 1; in sandbox_adc_ofdata_to_platdata()
|
H A D | stm32-adc.c | 119 writel(uc_pdata->channel_mask, adc->regs + STM32H7_ADC_PCSEL); in stm32_adc_start_channel() 192 uc_pdata->channel_mask |= 1 << chans[i]; in stm32_adc_chan_of_init()
|
H A D | exynos-adc.c | 120 uc_pdata->channel_mask = (2 << ADC_V2_MAX_CHANNEL) - 1; in exynos_adc_ofdata_to_platdata()
|
H A D | rockchip-saradc.c | 135 uc_pdata->channel_mask = (1 << priv->data->num_channels) - 1; in rockchip_saradc_ofdata_to_platdata()
|
/openbmc/u-boot/include/ |
H A D | adc.h | 79 unsigned int channel_mask; member 113 int (*start_channels)(struct udevice *dev, unsigned int channel_mask); 150 int (*channels_data)(struct udevice *dev, unsigned int channel_mask, 182 int adc_start_channels(struct udevice *dev, unsigned int channel_mask); 207 int adc_channels_data(struct udevice *dev, unsigned int channel_mask, 230 int adc_channel_mask(struct udevice *dev, unsigned int *channel_mask); 263 int adc_channels_single_shot(const char *name, unsigned int channel_mask,
|
/openbmc/u-boot/test/dm/ |
H A D | adc.c | 25 unsigned int channel_mask; in dm_test_adc_bind() local 30 ut_assertok(adc_channel_mask(dev, &channel_mask)); in dm_test_adc_bind() 31 ut_asserteq((1 << SANDBOX_ADC_CHANNELS) - 1, channel_mask); in dm_test_adc_bind() 114 unsigned int i, channel_mask; in dm_test_adc_multi_channel_conversion() local 116 channel_mask = ADC_CHANNEL(0) | ADC_CHANNEL(1) | in dm_test_adc_multi_channel_conversion() 121 ut_assertok(adc_start_channels(dev, channel_mask)); in dm_test_adc_multi_channel_conversion() 122 ut_assertok(adc_channels_data(dev, channel_mask, channels)); in dm_test_adc_multi_channel_conversion() 152 unsigned int i, channel_mask; in dm_test_adc_multi_channel_shot() local 154 channel_mask = ADC_CHANNEL(0) | ADC_CHANNEL(1) | in dm_test_adc_multi_channel_shot() 158 ut_assertok(adc_channels_single_shot("adc", channel_mask, channels)); in dm_test_adc_multi_channel_shot()
|
/openbmc/linux/sound/pci/echoaudio/ |
H A D | echoaudio_dsp.c | 859 static int start_transport(struct echoaudio *chip, u32 channel_mask, in start_transport() argument 866 chip->comm_page->cmd_start |= cpu_to_le32(channel_mask); in start_transport() 874 chip->active_mask |= channel_mask; in start_transport() 885 static int pause_transport(struct echoaudio *chip, u32 channel_mask) in pause_transport() argument 891 chip->comm_page->cmd_stop |= cpu_to_le32(channel_mask); in pause_transport() 899 chip->active_mask &= ~channel_mask; in pause_transport() 911 static int stop_transport(struct echoaudio *chip, u32 channel_mask) in stop_transport() argument 917 chip->comm_page->cmd_stop |= cpu_to_le32(channel_mask); in stop_transport() 918 chip->comm_page->cmd_reset |= cpu_to_le32(channel_mask); in stop_transport() 925 chip->active_mask &= ~channel_mask; in stop_transport() [all …]
|
/openbmc/linux/drivers/input/misc/ |
H A D | ati_remote2.c | 90 static unsigned int channel_mask = ATI_REMOTE2_MAX_CHANNEL_MASK; variable 96 module_param(channel_mask, channel_mask, 0644); 97 MODULE_PARM_DESC(channel_mask, "Bitmask of channels to accept <15:Channel16>...<1:Channel2><0:Chann… 203 unsigned int channel_mask; member 316 if (!((1 << channel) & ar2->channel_mask)) in ati_remote2_input_mouse() 355 if (!((1 << channel) & ar2->channel_mask)) in ati_remote2_input_key() 708 return sprintf(buf, "0x%04x\n", ar2->channel_mask); in ati_remote2_show_channel_mask() 737 if (mask != ar2->channel_mask) { in ati_remote2_store_channel_mask() 740 ar2->channel_mask = mask; in ati_remote2_store_channel_mask() 783 static DEVICE_ATTR(channel_mask, 0644, ati_remote2_show_channel_mask, [all …]
|
/openbmc/linux/sound/pci/oxygen/ |
H A D | oxygen_pcm.c | 516 unsigned int channel_mask = 1 << channel; in oxygen_hw_free() local 519 chip->interrupt_mask &= ~channel_mask; in oxygen_hw_free() 522 oxygen_set_bits8(chip, OXYGEN_DMA_FLUSH, channel_mask); in oxygen_hw_free() 523 oxygen_clear_bits8(chip, OXYGEN_DMA_FLUSH, channel_mask); in oxygen_hw_free() 544 unsigned int channel_mask = 1 << channel; in oxygen_prepare() local 547 oxygen_set_bits8(chip, OXYGEN_DMA_FLUSH, channel_mask); in oxygen_prepare() 548 oxygen_clear_bits8(chip, OXYGEN_DMA_FLUSH, channel_mask); in oxygen_prepare() 551 chip->interrupt_mask &= ~channel_mask; in oxygen_prepare() 553 chip->interrupt_mask |= channel_mask; in oxygen_prepare()
|
/openbmc/linux/include/sound/ |
H A D | hda-mlink.h | 49 int channel_mask, int stream_id, int dir); 157 int channel_mask, int stream_id, int dir) in hdac_bus_eml_sdw_map_stream_ch() argument
|
H A D | intel-nhlt.h | 45 u32 channel_mask; member
|
/openbmc/linux/drivers/media/rc/ |
H A D | ati_remote.c | 116 static unsigned long channel_mask; variable 117 module_param(channel_mask, ulong, 0644); 118 MODULE_PARM_DESC(channel_mask, "Bitmask of remote control channels to ignore"); 512 if (channel_mask & (1 << (remote_num + 1))) { in ati_remote_input_report() 515 remote_num, data[2], channel_mask); in ati_remote_input_report()
|
/openbmc/linux/drivers/net/wireless/intersil/orinoco/ |
H A D | cfg.c | 60 if (priv->channel_mask & (1 << i)) { in orinoco_wiphy_register() 184 !(priv->channel_mask & (1 << (channel - 1)))) in orinoco_set_monitor_channel()
|
H A D | orinoco.h | 97 u16 channel_mask; member
|
/openbmc/linux/sound/soc/sof/intel/ |
H A D | hda-mlink.c | 801 int channel_mask, int stream_id, int dir) in hdac_bus_eml_sdw_map_stream_ch() argument 817 if (channel_mask) { in hdac_bus_eml_sdw_map_stream_ch() 818 hchan = __fls(channel_mask); in hdac_bus_eml_sdw_map_stream_ch() 819 lchan = __ffs(channel_mask); in hdac_bus_eml_sdw_map_stream_ch() 835 sublink, channel_mask, stream_id, dir, val); in hdac_bus_eml_sdw_map_stream_ch()
|
/openbmc/linux/drivers/edac/ |
H A D | sb_edac.c | 2034 long *channel_mask, in get_memory_error_data() argument 2247 *channel_mask = 1 << base_ch; in get_memory_error_data() 2253 *channel_mask |= 1 << ((base_ch + 2) % 4); in get_memory_error_data() 2271 *channel_mask |= 1 << ((base_ch + 1) % 4); in get_memory_error_data() 2284 *channel_mask); in get_memory_error_data() 2370 u8 *ha, long *channel_mask, in get_memory_error_data_from_mce() argument 2407 *channel_mask = 1 << channel; in get_memory_error_data_from_mce() 2410 *channel_mask |= 1 << ((channel + 2) % 4); in get_memory_error_data_from_mce() 2417 *channel_mask |= 1 << ((channel + 1) % 4); in get_memory_error_data_from_mce() 3098 long channel_mask, first_channel; in sbridge_mce_output_error() local [all …]
|
/openbmc/linux/sound/soc/tegra/ |
H A D | tegra210_mbdrc.h | 205 unsigned int channel_mask; member
|
/openbmc/linux/drivers/gpu/drm/vc4/ |
H A D | vc4_hdmi.h | 91 u32 (*channel_map)(struct vc4_hdmi *vc4_hdmi, u32 channel_mask);
|
H A D | vc4_hdmi.c | 2260 static u32 vc4_hdmi_channel_map(struct vc4_hdmi *vc4_hdmi, u32 channel_mask) in vc4_hdmi_channel_map() argument 2266 if (channel_mask & BIT(i)) in vc4_hdmi_channel_map() 2272 static u32 vc5_hdmi_channel_map(struct vc4_hdmi *vc4_hdmi, u32 channel_mask) in vc5_hdmi_channel_map() argument 2278 if (channel_mask & BIT(i)) in vc5_hdmi_channel_map() 2530 u32 audio_packet_config, channel_mask; in vc4_hdmi_audio_prepare() local 2579 channel_mask = GENMASK(channels - 1, 0); in vc4_hdmi_audio_prepare() 2580 audio_packet_config |= VC4_SET_FIELD(channel_mask, in vc4_hdmi_audio_prepare() 2593 VC4_SET_FIELD(channel_mask, VC4_HDMI_MAI_CHANNEL_MASK)); in vc4_hdmi_audio_prepare() 2595 channel_map = vc4_hdmi->variant->channel_map(vc4_hdmi, channel_mask); in vc4_hdmi_audio_prepare()
|
/openbmc/linux/sound/soc/qcom/qdsp6/ |
H A D | q6asm.c | 122 u32 channel_mask; member 135 u32 channel_mask; member 1204 fmt->channel_mask = cfg->channel_mask; in q6asm_stream_media_format_block_wma_v9() 1242 fmt->channel_mask = cfg->channel_mask; in q6asm_stream_media_format_block_wma_v10()
|
H A D | q6asm.h | 58 u32 channel_mask; member
|
/openbmc/linux/sound/soc/sof/ |
H A D | ipc4-topology.h | 232 uint32_t channel_mask; member
|
/openbmc/linux/drivers/net/ipa/ |
H A D | gsi.c | 1138 u32 channel_mask; in gsi_isr_chan_ctrl() local 1141 channel_mask = ioread32(gsi->virt + reg_offset(reg)); in gsi_isr_chan_ctrl() 1144 iowrite32(channel_mask, gsi->virt + reg_offset(reg)); in gsi_isr_chan_ctrl() 1146 while (channel_mask) { in gsi_isr_chan_ctrl() 1147 u32 channel_id = __ffs(channel_mask); in gsi_isr_chan_ctrl() 1149 channel_mask ^= BIT(channel_id); in gsi_isr_chan_ctrl()
|
/openbmc/linux/sound/soc/intel/atom/ |
H A D | sst-mfld-dsp.h | 353 u32 channel_mask; /* Channel Mask */ member
|