| /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 …]
|
| /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,
|
| H A D | wavefront.h | 364 #define WF_SET_CHANNEL(samp,chn) \ argument 365 (samp)->Unused1 = chn & 0x1; \ 366 (samp)->Unused2 = chn & 0x2; \ 367 (samp)->Unused3 = chn & 0x4
|
| /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/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/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, \
|
| /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/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/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/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()
|
| /linux/drivers/dma/ |
| H A D | dma-jz4780.c | 184 unsigned int chn, unsigned int reg) in jz4780_dma_chn_readl() argument 186 return readl(jzdma->chn_base + reg + JZ_DMA_REG_CHAN(chn)); in jz4780_dma_chn_readl() 190 unsigned int chn, unsigned int reg, u32 val) in jz4780_dma_chn_writel() argument 192 writel(val, jzdma->chn_base + reg + JZ_DMA_REG_CHAN(chn)); in jz4780_dma_chn_writel() 208 unsigned int chn) in jz4780_dma_chan_enable() argument 218 jz4780_dma_ctrl_writel(jzdma, reg, BIT(chn)); in jz4780_dma_chan_enable() 223 unsigned int chn) in jz4780_dma_chan_disable() argument 227 jz4780_dma_ctrl_writel(jzdma, JZ_DMA_REG_DCKEC, BIT(chn)); in jz4780_dma_chan_disable()
|
| /linux/drivers/clk/imx/ |
| H A D | clk.c | 33 unsigned int chn) in imx_mmdc_mask_handshake() argument 38 reg |= chn == 0 ? CCDR_MMDC_CH0_MASK : CCDR_MMDC_CH1_MASK; in imx_mmdc_mask_handshake()
|
| /linux/drivers/s390/cio/ |
| H A D | trace.h | 367 __field(u8, chn) 378 __entry->chn = crw->chn; 387 __entry->chn, __entry->rsc, __entry->anc,
|
| /linux/drivers/scsi/aacraid/ |
| H A D | linit.c | 393 int chn, tid; in aac_sdev_configure() local 400 chn = aac_logical_to_phys(sdev_channel(sdev)); in aac_sdev_configure() 402 if (chn < AAC_MAX_BUSES && tid < AAC_MAX_TARGETS && aac->sa_firmware) { in aac_sdev_configure() 403 devtype = aac->hba_map[chn][tid].devtype; in aac_sdev_configure() 406 depth = aac->hba_map[chn][tid].qd_limit; in aac_sdev_configure() 521 int chn, tid, is_native_device = 0; in aac_change_queue_depth() local 523 chn = aac_logical_to_phys(sdev_channel(sdev)); in aac_change_queue_depth() 525 if (chn < AAC_MAX_BUSES && tid < AAC_MAX_TARGETS && in aac_change_queue_depth() 526 aac->hba_map[chn][tid].devtype == AAC_DEVTYPE_NATIVE_RAW) in aac_change_queue_depth() 551 scsi_change_queue_depth(sdev, aac->hba_map[chn][tid].qd_limit); in aac_change_queue_depth()
|
| /linux/arch/s390/include/asm/ |
| H A D | crw.h | 22 __u32 chn : 1; /* chained */ member
|
| /linux/sound/pci/ca0106/ |
| H A D | ca0106.h | 708 unsigned int chn); 712 unsigned int chn,
|
| /linux/drivers/xen/ |
| H A D | xen-scsiback.c | 72 unsigned int chn; /* channel */ member 657 if ((entry->v.chn == v->chn) && in scsiback_do_translation() 720 vir.chn = ring_req->channel; in prepare_pending_reqs() 727 vir.chn, vir.tgt, vir.lun); in prepare_pending_reqs() 910 if ((entry->v.chn == v->chn) && in scsiback_chk_translation_entry() 1113 &vir.hst, &vir.chn, &vir.tgt, &vir.lun); in scsiback_do_1lun_hotplug()
|