| /linux/include/uapi/linux/ |
| H A D | ultrasound.h | 76 #define _GUS_CMD(chn, voice, cmd, p1, p2) \ argument 78 _seqbuf[_seqbufptr+1] = (chn); _seqbuf[_seqbufptr+2] = cmd;\ 84 #define GUS_NUMVOICES(chn, p1) _GUS_CMD(chn, 0, _GUS_NUMVOICES, (p1), 0) argument 85 #define GUS_VOICESAMPLE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICESAMPLE, (p1), 0) /* OBSOLET… argument 86 #define GUS_VOICEON(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEON, (p1), 0) argument 87 #define GUS_VOICEOFF(chn, voice) _GUS_CMD(chn, voice, _GUS_VOICEOFF, 0, 0) argument 88 #define GUS_VOICEFADE(chn, voice) _GUS_CMD(chn, voice, _GUS_VOICEFADE, 0, 0) argument 89 #define GUS_VOICEMODE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEMODE, (p1), 0) argument 90 #define GUS_VOICEBALA(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEBALA, (p1), 0) argument 91 #define GUS_VOICEFREQ(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICEFREQ, \ argument [all …]
|
| H A D | soundcard.h | 1128 #define _CHN_VOICE(dev, event, chn, note, parm) \ argument 1133 _seqbuf[_seqbufptr+3] = (chn);\ 1140 #define SEQ_START_NOTE(dev, chn, note, vol) \ argument 1141 _CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol) 1143 #define SEQ_STOP_NOTE(dev, chn, note, vol) \ argument 1144 _CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol) 1146 #define SEQ_KEY_PRESSURE(dev, chn, note, pressure) \ argument 1147 _CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure) 1153 #define _CHN_COMMON(dev, event, chn, p1, p2, w14) \ argument 1158 _seqbuf[_seqbufptr+3] = (chn);\ [all …]
|
| /linux/drivers/pwm/ |
| H A D | pwm-sprd.c | 37 struct sprd_pwm_chn chn[SPRD_PWM_CHN_NUM]; member 75 struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; in sprd_pwm_get_state() local 84 ret = clk_bulk_prepare_enable(SPRD_PWM_CHN_CLKS_NUM, chn->clks); in sprd_pwm_get_state() 108 state->period = DIV_ROUND_CLOSEST_ULL(tmp, chn->clk_rate); in sprd_pwm_get_state() 113 state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, chn->clk_rate); in sprd_pwm_get_state() 118 clk_bulk_disable_unprepare(SPRD_PWM_CHN_CLKS_NUM, chn->clks); in sprd_pwm_get_state() 126 struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; in sprd_pwm_config() local 142 tmp = (u64)chn->clk_rate * period_ns; in sprd_pwm_config() 167 struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; in sprd_pwm_apply() local 181 chn->clks); in sprd_pwm_apply() [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | tas2781-comlib.c | 23 unsigned short chn, unsigned int reg, unsigned int *val) in tasdevice_dev_read() argument 27 if (chn < tas_priv->ndev) { in tasdevice_dev_read() 30 ret = tas_priv->change_chn_book(tas_priv, chn, in tasdevice_dev_read() 41 chn); in tasdevice_dev_read() 50 unsigned short chn, unsigned int reg, unsigned char *data, in tasdevice_dev_bulk_read() argument 55 if (chn < tas_priv->ndev) { in tasdevice_dev_bulk_read() 58 ret = tas_priv->change_chn_book(tas_priv, chn, in tasdevice_dev_bulk_read() 68 chn); in tasdevice_dev_bulk_read() 76 unsigned short chn, unsigned int reg, unsigned int value) in tasdevice_dev_write() argument 80 if (chn < tas_priv->ndev) { in tasdevice_dev_write() [all …]
|
| H A D | tas2781-fmwlib.c | 880 int subblk_offset, chn, chnend, rc; in tasdevice_process_block() local 887 chn = idx - 1; in tasdevice_process_block() 891 chn = tas_priv->index; in tasdevice_process_block() 892 chnend = chn + 1; in tasdevice_process_block() 894 chn = 0; in tasdevice_process_block() 899 for (; chn < chnend; chn++) { in tasdevice_process_block() 900 if (tas_priv->tasdevice[chn].is_loading == false) in tasdevice_process_block() 919 rc = tasdevice_dev_write(tas_priv, chn, in tasdevice_process_block() 951 rc = tasdevice_dev_bulk_write(tas_priv, chn, in tasdevice_process_block() 988 rc = tas_priv->update_bits(tas_priv, chn, in tasdevice_process_block() [all …]
|
| H A D | tas2781-comlib-i2c.c | 47 unsigned short chn, int book) in tasdevice_change_chn_book() argument 52 if (chn < tas_priv->ndev) { in tasdevice_change_chn_book() 53 struct tasdevice *tasdev = &tas_priv->tasdevice[chn]; in tasdevice_change_chn_book() 66 __func__, ret, chn); in tasdevice_change_chn_book() 83 chn); in tasdevice_change_chn_book() 91 unsigned short chn) in tasdev_chn_switch() argument 94 struct tasdevice *tasdev = &tas_priv->tasdevice[chn]; in tasdev_chn_switch() 117 struct tasdevice_priv *tas_priv, unsigned short chn, in tasdevice_dev_update_bits() argument 122 if (chn < tas_priv->ndev) { in tasdevice_dev_update_bits() 125 ret = tas_priv->change_chn_book(tas_priv, chn, in tasdevice_dev_update_bits() [all …]
|
| /linux/drivers/thermal/ |
| H A D | rockchip_thermal.c | 112 int chn, void __iomem *reg, int *temp); 114 int chn, void __iomem *reg, int temp); 116 int chn, void __iomem *reg, int temp); 117 void (*set_tshut_mode)(int chn, void __iomem *reg, enum tshut_mode m); 199 #define TSADCV2_DATA(chn) (0x20 + (chn) * 0x04) argument 200 #define TSADCV2_COMP_INT(chn) (0x30 + (chn) * 0x04) argument 201 #define TSADCV2_COMP_SHUT(chn) (0x40 + (chn) * 0x04) argument 202 #define TSADCV3_DATA(chn) (0x2c + (chn) * 0x04) argument 203 #define TSADCV3_COMP_INT(chn) (0x6c + (chn) * 0x04) argument 204 #define TSADCV3_COMP_SHUT(chn) (0x10c + (chn) * 0x04) argument [all …]
|
| /linux/sound/core/seq/oss/ |
| H A D | seq_oss_event.c | 99 return note_off_event(dp, 0, q->n.chn, q->n.note, q->n.vel, ev); in old_event() 102 return note_on_event(dp, 0, q->n.chn, q->n.note, q->n.vel, ev); in old_event() 110 q->n.chn, 0, q->n.note, ev); in old_event() 127 return note_off_event(dp, q->e.dev, q->e.chn, q->e.p1, q->e.p2, ev); in extended_event() 130 return note_on_event(dp, q->e.dev, q->e.chn, q->e.p1, q->e.p2, ev); in extended_event() 134 q->e.chn, 0, q->e.p1, ev); in extended_event() 138 q->e.chn, 0, q->e.p1, ev); in extended_event() 145 q->e.chn, CTL_PAN, val, ev); in extended_event() 154 q->e.chn, 0, val, ev); in extended_event() 159 q->e.chn, 0, val*128/100, ev); in extended_event() [all …]
|
| H A D | seq_oss_event.h | 29 unsigned char chn; member 47 unsigned char chn; member 56 unsigned char chn; member 66 unsigned char chn; member
|
| /linux/sound/core/oss/ |
| H A D | mixer_oss.c | 129 int result = 0, chn; in snd_mixer_oss_devmask() local 134 for (chn = 0; chn < 31; chn++) { in snd_mixer_oss_devmask() 135 pslot = &mixer->slots[chn]; in snd_mixer_oss_devmask() 137 result |= 1 << chn; in snd_mixer_oss_devmask() 146 int result = 0, chn; in snd_mixer_oss_stereodevs() local 151 for (chn = 0; chn < 31; chn++) { in snd_mixer_oss_stereodevs() 152 pslot = &mixer->slots[chn]; in snd_mixer_oss_stereodevs() 154 result |= 1 << chn; in snd_mixer_oss_stereodevs() 171 int chn; in snd_mixer_oss_recmask() local 172 for (chn = 0; chn < 31; chn++) { in snd_mixer_oss_recmask() [all …]
|
| /linux/include/sound/ |
| H A D | tas2781.h | 254 unsigned short chn, int book); 256 unsigned short chn, unsigned int reg, unsigned int mask, 259 unsigned short chn, unsigned int reg, unsigned int *value); 261 unsigned short chn, unsigned int reg, unsigned char *p_data, 266 unsigned short chn, unsigned int reg, unsigned int *value); 268 unsigned short chn, unsigned int reg, unsigned char *p_data, 271 unsigned short chn, unsigned int reg, unsigned int value); 273 struct tasdevice_priv *tas_priv, unsigned short chn,
|
| H A D | mixer_oss.h | 20 struct snd_mixer_oss_slot *chn, 23 struct snd_mixer_oss_slot *chn, 26 struct snd_mixer_oss_slot *chn, 29 struct snd_mixer_oss_slot *chn,
|
| H A D | tas2781-comlib-i2c.h | 25 unsigned short chn); 27 struct tasdevice_priv *tasdevice, unsigned short chn,
|
| /linux/sound/pci/ice1712/ |
| H A D | hoontech.c | 68 static void snd_ice1712_stdsp24_box_channel(struct snd_ice1712 *ice, int box, int chn, int activate) in snd_ice1712_stdsp24_box_channel() argument 79 if (chn == 3) in snd_ice1712_stdsp24_box_channel() 92 if (chn == 3) { in snd_ice1712_stdsp24_box_channel() 96 switch (chn) { in snd_ice1712_stdsp24_box_channel() 154 int box, chn; in hoontech_init() local 233 for (chn = 0; chn < 4; chn++) in hoontech_init() 234 snd_ice1712_stdsp24_box_channel(ice, box, chn, in hoontech_init() 235 (spec->boxconfig[box] & (1 << chn)) ? 1 : 0); in hoontech_init()
|
| /linux/drivers/iio/adc/ |
| H A D | twl6030-gpadc.c | 624 int chn; in twl6030_calibration() local 642 for (chn = 0; chn < TWL6030_GPADC_MAX_CHANNELS; chn++) { in twl6030_calibration() 644 switch (chn) { in twl6030_calibration() 688 twl6030_calibrate_channel(gpadc, chn, d1, d2); in twl6030_calibration() 710 int chn, d1 = 0, d2 = 0, temp; in twl6032_calibration() local 727 for (chn = 0; chn < TWL6032_GPADC_MAX_CHANNELS; chn++) { in twl6032_calibration() 729 switch (chn) { in twl6032_calibration() 796 twl6030_calibrate_channel(gpadc, chn, d1, d2); in twl6032_calibration() 802 #define TWL6030_GPADC_CHAN(chn, _type, chan_info) { \ argument 804 .channel = chn, \
|
| H A D | rockchip_saradc.c | 63 void (*start)(struct rockchip_saradc *info, int chn); 86 static void rockchip_saradc_start_v1(struct rockchip_saradc *info, int chn) in rockchip_saradc_start_v1() argument 91 writel(SARADC_CTRL_POWER_CTRL | (chn & SARADC_CTRL_CHN_MASK) | in rockchip_saradc_start_v1() 95 static void rockchip_saradc_start_v2(struct rockchip_saradc *info, int chn) in rockchip_saradc_start_v2() argument 109 FIELD_PREP(SARADC2_CONV_CHANNELS, chn); in rockchip_saradc_start_v2() 114 static void rockchip_saradc_start(struct rockchip_saradc *info, int chn) in rockchip_saradc_start() argument 116 info->data->start(info, chn); in rockchip_saradc_start()
|
| /linux/drivers/edac/ |
| H A D | edac_mc.c | 182 int i, chn, row; in mci_release() local 197 for (chn = 0; chn < mci->num_cschannel; chn++) in mci_release() 198 kfree(csr->channels[chn]); in mci_release() 214 unsigned int row, chn; in edac_mc_alloc_csrows() local 238 for (chn = 0; chn < tot_channels; chn++) { in edac_mc_alloc_csrows() 245 csr->channels[chn] = chan; in edac_mc_alloc_csrows() 246 chan->chan_idx = chn; in edac_mc_alloc_csrows() 257 unsigned int row, chn, idx; in edac_mc_alloc_dimms() local 270 chn = 0; in edac_mc_alloc_dimms() 276 chan = mci->csrows[row]->channels[chn]; in edac_mc_alloc_dimms() [all …]
|
| /linux/drivers/s390/cio/ |
| H A D | crw.c | 86 tmp_crw.chn, tmp_crw.rsc, tmp_crw.anc, in crw_collect_info() 92 chain = tmp_crw.chn ? chain + 1 : 0; in crw_collect_info() 100 crw[chain].slct, crw[chain].oflw, crw[chain].chn, in crw_collect_info() 117 if (crw[0].chn && !chain) { in crw_collect_info() 127 chain = crw[chain].chn ? chain + 1 : 0; in crw_collect_info()
|
| H A D | cio_inject.c | 87 u32 slct, oflw, chn, rsc, anc, erc, rsid; in crw_inject_write() local 101 rc = sscanf(buffer, "%x %x %x %x %x %x %x", &slct, &oflw, &chn, &rsc, &anc, in crw_inject_write() 113 crw.chn = chn; in crw_inject_write()
|
| /linux/drivers/media/pci/intel/ipu6/ |
| H A D | ipu6-platform-isys-csi2-reg.h | 42 #define IPU_CSI_RX_IRQ_FS_VC(chn) (1 << ((chn) * 2)) argument 43 #define IPU_CSI_RX_IRQ_FE_VC(chn) (2 << ((chn) * 2)) argument
|
| /linux/drivers/dma/ti/ |
| H A D | k3-udma-glue.c | 223 static void k3_udma_glue_dump_tx_rt_chn(struct k3_udma_glue_tx_channel *chn, in k3_udma_glue_dump_tx_rt_chn() argument 226 struct device *dev = chn->common.dev; in k3_udma_glue_dump_tx_rt_chn() 230 xudma_tchanrt_read(chn->udma_tchanx, UDMA_CHAN_RT_CTL_REG)); in k3_udma_glue_dump_tx_rt_chn() 232 xudma_tchanrt_read(chn->udma_tchanx, in k3_udma_glue_dump_tx_rt_chn() 235 xudma_tchanrt_read(chn->udma_tchanx, UDMA_CHAN_RT_PCNT_REG)); in k3_udma_glue_dump_tx_rt_chn() 237 xudma_tchanrt_read(chn->udma_tchanx, UDMA_CHAN_RT_BCNT_REG)); in k3_udma_glue_dump_tx_rt_chn() 239 xudma_tchanrt_read(chn->udma_tchanx, UDMA_CHAN_RT_SBCNT_REG)); in k3_udma_glue_dump_tx_rt_chn() 865 static void k3_udma_glue_dump_rx_chn(struct k3_udma_glue_rx_channel *chn) in k3_udma_glue_dump_rx_chn() argument 867 struct device *dev = chn->common.dev; in k3_udma_glue_dump_rx_chn() 879 chn->udma_rchan_id, in k3_udma_glue_dump_rx_chn() [all …]
|
| /linux/drivers/tty/serial/ |
| H A D | sprd_serial.c | 116 struct dma_chan *chn; member 203 dmaengine_terminate_all(sp->rx_dma.chn); in sprd_stop_rx() 234 dmaengine_pause(sp->tx_dma.chn); in sprd_stop_tx_dma() 236 dmaengine_tx_status(sp->tx_dma.chn, sp->tx_dma.cookie, &state); in sprd_stop_tx_dma() 244 dmaengine_terminate_all(sp->tx_dma.chn); in sprd_stop_tx_dma() 301 dma_des = dmaengine_prep_slave_single(ud->chn, ud->phys_addr, trans_len, in sprd_uart_dma_submit() 313 dma_async_issue_pending(ud->chn); in sprd_uart_dma_submit() 332 ret = dmaengine_slave_config(sp->tx_dma.chn, &cfg); in sprd_tx_dma_config() 403 return dmaengine_slave_config(sp->rx_dma.chn, &cfg); in sprd_rx_dma_config() 424 status = dmaengine_tx_status(sp->rx_dma.chn, in sprd_uart_dma_irq() [all …]
|
| /linux/sound/pci/emu10k1/ |
| H A D | io.c | 31 unsigned int snd_emu10k1_ptr_read(struct snd_emu10k1 * emu, unsigned int reg, unsigned int chn) in snd_emu10k1_ptr_read() argument 36 regptr = (reg << 16) | chn; in snd_emu10k1_ptr_read() 60 void snd_emu10k1_ptr_write(struct snd_emu10k1 *emu, unsigned int reg, unsigned int chn, unsigned in… in snd_emu10k1_ptr_write() argument 65 regptr = (reg << 16) | chn; in snd_emu10k1_ptr_write() 91 void snd_emu10k1_ptr_write_multiple(struct snd_emu10k1 *emu, unsigned int chn, ...) in snd_emu10k1_ptr_write_multiple() argument 98 if (snd_BUG_ON(chn & ~PTR_CHANNELNUM_MASK)) in snd_emu10k1_ptr_write_multiple() 102 va_start(va, chn); in snd_emu10k1_ptr_write_multiple() 112 outl((reg << 16) | chn, emu->port + PTR); in snd_emu10k1_ptr_write_multiple() 122 unsigned int chn) in snd_emu10k1_ptr20_read() argument 126 regptr = (reg << 16) | chn; in snd_emu10k1_ptr20_read() [all …]
|
| /linux/sound/hda/codecs/side-codecs/ |
| H A D | tas2781_hda_spi.c | 78 unsigned short chn, unsigned int reg, unsigned int *val) in tasdevice_spi_dev_read() argument 90 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, in tasdevice_spi_dev_read() 94 ret = tasdevice_dev_read(tas_priv, chn, reg, val); in tasdevice_spi_dev_read() 103 unsigned short chn, unsigned int reg, unsigned char *data, in tasdevice_spi_dev_bulk_read() argument 116 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, in tasdevice_spi_dev_bulk_read() 120 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, data, len); in tasdevice_spi_dev_bulk_read() 129 unsigned short chn, unsigned int reg, unsigned int mask, in tasdevice_spi_dev_update_bits() argument 138 ret = tasdevice_dev_read(tas_priv, chn, reg, &val); in tasdevice_spi_dev_update_bits() 144 ret = tasdevice_dev_write(tas_priv, chn, TASDEVICE_PAGE_REG(reg), in tasdevice_spi_dev_update_bits() 153 unsigned short chn, int book) in tasdevice_spi_change_chn_book() argument [all …]
|
| /linux/sound/usb/line6/ |
| H A D | playback.c | 24 int chn = 0; in change_volume() local 37 int val = (pv * volume[chn & 1]) >> 8; in change_volume() 40 ++chn; in change_volume() 52 val = (val * volume[chn & 1]) >> 8; in change_volume() 57 ++chn; in change_volume()
|