| /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 | 985 * 0x02 = Channel event (event[3] = chn). 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 [all …]
|
| /linux/sound/pci/ctxfi/ |
| H A D | ct20k2reg.h | 34 #define SRC_CTL 0x1A0000 /* 0x1A0000 + (256 * Chn) */ 35 #define SRC_CCR 0x1A0004 /* 0x1A0004 + (256 * Chn) */ 36 #define SRC_IMAP 0x1A0008 /* 0x1A0008 + (256 * Chn) */ 37 #define SRC_CA 0x1A0010 /* 0x1A0010 + (256 * Chn) */ 38 #define SRC_CF 0x1A0014 /* 0x1A0014 + (256 * Chn) */ 39 #define SRC_SA 0x1A0018 /* 0x1A0018 + (256 * Chn) */ 40 #define SRC_LA 0x1A001C /* 0x1A001C + (256 * Chn) */ 41 #define SRC_CTLSWR 0x1A0020 /* 0x1A0020 + (256 * Chn) */ 42 #define SRC_CD 0x1A0080 /* 0x1A0080 + (256 * Chn) + (4 * Regn) */ 58 #define VMEM_PTPAL 0x1C6300 /* 0x1C6300 + (16 * Chn) */ [all …]
|
| /linux/drivers/pwm/ |
| H A D | pwm-sprd.c | 36 struct sprd_pwm_chn chn[SPRD_PWM_CHN_NUM]; member 74 struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; in sprd_pwm_get_state() local 83 ret = clk_bulk_prepare_enable(SPRD_PWM_CHN_CLKS_NUM, chn->clks); in sprd_pwm_get_state() 107 state->period = DIV_ROUND_CLOSEST_ULL(tmp, chn->clk_rate); in sprd_pwm_get_state() 112 state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, chn->clk_rate); in sprd_pwm_get_state() 117 clk_bulk_disable_unprepare(SPRD_PWM_CHN_CLKS_NUM, chn->clks); in sprd_pwm_get_state() 125 struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; in sprd_pwm_config() local 141 tmp = (u64)chn->clk_rate * period_ns; in sprd_pwm_config() 166 struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; in sprd_pwm_apply() local 180 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 | 881 int subblk_offset, chn, chnend, rc; in tasdevice_process_block() local 888 chn = idx - 1; in tasdevice_process_block() 892 chn = tas_priv->index; in tasdevice_process_block() 893 chnend = chn + 1; in tasdevice_process_block() 895 chn = 0; in tasdevice_process_block() 900 for (; chn < chnend; chn++) { in tasdevice_process_block() 901 if (tas_priv->tasdevice[chn].is_loading == false) in tasdevice_process_block() 920 rc = tasdevice_dev_write(tas_priv, chn, in tasdevice_process_block() 953 rc = tasdevice_dev_bulk_write(tas_priv, chn, in tasdevice_process_block() 990 rc = tas_priv->update_bits(tas_priv, chn, in tasdevice_process_block() [all …]
|
| H A D | tas2781-i2c.c | 292 dev_err(priv->dev, "chn %d device %u not match\n", in tasdev_cali_data_get() 299 dev_err(priv->dev, "chn %d r0_reg bulk_rd err = %d\n", in tasdev_cali_data_get() 307 dev_dbg(priv->dev, "chn %d r0_data is not same\n", j); in tasdev_cali_data_get() 313 dev_err(priv->dev, "chn %d r0_low bulk_rd err = %d\n", in tasdev_cali_data_get() 321 dev_dbg(priv->dev, "chn %d r0_low is not same\n", j); in tasdev_cali_data_get() 327 dev_err(priv->dev, "chn %d invr0 bulk_rd err = %d\n", in tasdev_cali_data_get() 335 dev_dbg(priv->dev, "chn %d invr0 is not same\n", j); in tasdev_cali_data_get() 340 dev_err(priv->dev, "chn %d pow_reg bulk_rd err = %d\n", in tasdev_cali_data_get() 348 dev_dbg(priv->dev, "chn %d pow_reg is not same\n", j); in tasdev_cali_data_get() 354 dev_err(priv->dev, "chn %d tlimit bulk_rd err = %d\n", in tasdev_cali_data_get() [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/oss/ |
| H A D | mixer_oss.c | 127 int result = 0, chn; in snd_mixer_oss_devmask() local 132 for (chn = 0; chn < 31; chn++) { in snd_mixer_oss_devmask() 133 pslot = &mixer->slots[chn]; in snd_mixer_oss_devmask() 135 result |= 1 << chn; in snd_mixer_oss_devmask() 144 int result = 0, chn; in snd_mixer_oss_stereodevs() local 149 for (chn = 0; chn < 31; chn++) { in snd_mixer_oss_stereodevs() 150 pslot = &mixer->slots[chn]; in snd_mixer_oss_stereodevs() 152 result |= 1 << chn; in snd_mixer_oss_stereodevs() 169 int chn; in snd_mixer_oss_recmask() local 170 for (chn = 0; chn < 31; chn++) { in snd_mixer_oss_recmask() [all …]
|
| /linux/drivers/iio/adc/ |
| H A D | twl6030-gpadc.c | 597 dev_dbg(gpadc->dev, "GPADC d1 for Chn: %d = %d\n", channel, d1); in twl6030_calibrate_channel() 598 dev_dbg(gpadc->dev, "GPADC d2 for Chn: %d = %d\n", channel, d2); in twl6030_calibrate_channel() 599 dev_dbg(gpadc->dev, "GPADC x1 for Chn: %d = %d\n", channel, x1); in twl6030_calibrate_channel() 600 dev_dbg(gpadc->dev, "GPADC x2 for Chn: %d = %d\n", channel, x2); in twl6030_calibrate_channel() 601 dev_dbg(gpadc->dev, "GPADC Gain for Chn: %d = %d\n", channel, gain); in twl6030_calibrate_channel() 602 dev_dbg(gpadc->dev, "GPADC k for Chn: %d = %d\n", channel, k); in twl6030_calibrate_channel() 603 dev_dbg(gpadc->dev, "GPADC b for Chn: %d = %d\n", channel, b); in twl6030_calibrate_channel() 623 int chn; in twl6030_calibration() local 641 for (chn = 0; chn < TWL6030_GPADC_MAX_CHANNELS; chn++) { in twl6030_calibration() 643 switch (chn) { in twl6030_calibration() [all …]
|
| /linux/include/sound/ |
| 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.h | 256 unsigned short chn, int book); 258 unsigned short chn, unsigned int reg, unsigned int mask, 261 unsigned short chn, unsigned int reg, unsigned int *value); 263 unsigned short chn, unsigned int reg, unsigned char *p_data, 268 unsigned short chn, unsigned int reg, unsigned int *value); 270 unsigned short chn, unsigned int reg, unsigned char *p_data, 273 unsigned short chn, unsigned int reg, unsigned int value); 275 struct tasdevice_priv *tas_priv, unsigned short 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/net/wireless/ath/ath9k/ |
| H A D | ar9002_calib.c | 137 "%d: Chn %d pmi=0x%08x;pmq=0x%08x;iqcm=0x%08x;\n", in ar9002_hw_iqcal_collect() 159 "%d: Chn %d oddi=0x%08x; eveni=0x%08x; oddq=0x%08x; evenq=0x%08x;\n", in ar9002_hw_adc_gaincal_collect() 183 "%d: Chn %d oddi=0x%08x; eveni=0x%08x; oddq=0x%08x; evenq=0x%08x;\n", in ar9002_hw_adc_dccal_collect() 210 "Original: Chn %d iq_corr_meas = 0x%08x\n", in ar9002_hw_iqcalibrate() 220 ath_dbg(common, CALIBRATE, "Chn %d pwr_meas_i = 0x%08x\n", in ar9002_hw_iqcalibrate() 222 ath_dbg(common, CALIBRATE, "Chn %d pwr_meas_q = 0x%08x\n", in ar9002_hw_iqcalibrate() 233 ath_dbg(common, CALIBRATE, "Chn %d iCoff = 0x%08x\n", in ar9002_hw_iqcalibrate() 235 ath_dbg(common, CALIBRATE, "Chn %d qCoff = 0x%08x\n", in ar9002_hw_iqcalibrate() 240 "New: Chn %d iCoff = 0x%08x\n", i, iCoff); in ar9002_hw_iqcalibrate() 250 "Chn %d : iCoff = 0x%x qCoff = 0x%x\n", in ar9002_hw_iqcalibrate() [all …]
|
| /linux/sound/core/seq/oss/ |
| 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/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() 213 unsigned int row, chn; in edac_mc_alloc_csrows() local 237 for (chn = 0; chn < tot_channels; chn++) { in edac_mc_alloc_csrows() 244 csr->channels[chn] = chan; in edac_mc_alloc_csrows() 245 chan->chan_idx = chn; in edac_mc_alloc_csrows() 256 unsigned int row, chn, idx; in edac_mc_alloc_dimms() local 269 chn = 0; in edac_mc_alloc_dimms() 275 chan = mci->csrows[row]->channels[chn]; in edac_mc_alloc_dimms() [all …]
|
| /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/sound/hda/codecs/side-codecs/ |
| H A D | tas2781_hda_spi.c | 77 unsigned short chn, unsigned int reg, unsigned int *val) in tasdevice_spi_dev_read() argument 89 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, in tasdevice_spi_dev_read() 93 ret = tasdevice_dev_read(tas_priv, chn, reg, val); in tasdevice_spi_dev_read() 102 unsigned short chn, unsigned int reg, unsigned char *data, in tasdevice_spi_dev_bulk_read() argument 115 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, in tasdevice_spi_dev_bulk_read() 119 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, data, len); in tasdevice_spi_dev_bulk_read() 128 unsigned short chn, unsigned int reg, unsigned int mask, in tasdevice_spi_dev_update_bits() argument 141 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, buf, 2); in tasdevice_spi_dev_update_bits() 144 ret = tasdevice_dev_read(tas_priv, chn, reg, &val); in tasdevice_spi_dev_update_bits() 151 ret = tasdevice_dev_write(tas_priv, chn, TASDEVICE_PAGE_REG(reg), in tasdevice_spi_dev_update_bits() [all …]
|
| /linux/drivers/net/ethernet/ti/icssg/ |
| H A D | icssg_common.c | 219 int emac_tx_complete_packets(struct prueth_emac *emac, int chn, in emac_tx_complete_packets() argument 235 tx_chn = &emac->tx_chns[chn]; in emac_tx_complete_packets() 282 netif_txq = netdev_get_tx_queue(ndev, chn); in emac_tx_complete_packets() 307 emac_xsk_xmit_zc(emac, chn); in emac_tx_complete_packets() 1492 struct prueth_rx_chn *chn, in prueth_prepare_rx_chan() argument 1499 desc_avail = k3_cppi_desc_pool_avail(chn->desc_pool); in prueth_prepare_rx_chan() 1500 if (desc_avail < chn->descs_num) in prueth_prepare_rx_chan() 1503 desc_avail, chn->descs_num); in prueth_prepare_rx_chan() 1505 if (chn->xsk_pool) { in prueth_prepare_rx_chan() 1518 page = page_pool_dev_alloc_pages(chn->pg_pool); in prueth_prepare_rx_chan() [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()
|
| /linux/drivers/media/rc/keymaps/ |
| H A D | rc-pixelview-mk12.c | 38 { 0x866b16, KEY_CHANNELUP }, /* chn + */ 39 { 0x866b14, KEY_CHANNELDOWN }, /* chn - */
|
| H A D | rc-pixelview.c | 41 { 0x1f, KEY_CHANNELUP }, /* chn down */ 42 { 0x17, KEY_CHANNELDOWN }, /* chn up */
|
| H A D | rc-apac-viewcomp.c | 34 { 0x1e, KEY_CHANNELDOWN }, /* chn up */ 35 { 0x1a, KEY_CHANNELUP }, /* chn down */
|
| /linux/drivers/s390/cio/ |
| H A D | trace.h | 367 __field(u8, chn) 378 __entry->chn = crw->chn; 384 TP_printk("cc=%d slct=%d oflw=%d chn=%d rsc=%d anc=%d erc=0x%x " 387 __entry->chn, __entry->rsc, __entry->anc,
|