/linux-master/include/uapi/linux/ |
H A D | ultrasound.h | 76 #define _GUS_CMD(chn, voice, cmd, p1, p2) \ 78 _seqbuf[_seqbufptr+1] = (chn); _seqbuf[_seqbufptr+2] = cmd;\ 84 #define GUS_NUMVOICES(chn, p1) _GUS_CMD(chn, 0, _GUS_NUMVOICES, (p1), 0) 85 #define GUS_VOICESAMPLE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICESAMPLE, (p1), 0) /* OBSOLETE */ 86 #define GUS_VOICEON(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEON, (p1), 0) 87 #define GUS_VOICEOFF(chn, voice) _GUS_CMD(chn, voic [all...] |
H A D | soundcard.h | 985 * 0x02 = Channel event (event[3] = chn). 1128 #define _CHN_VOICE(dev, event, chn, note, parm) \ 1133 _seqbuf[_seqbufptr+3] = (chn);\ 1140 #define SEQ_START_NOTE(dev, chn, note, vol) \ 1141 _CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol) 1143 #define SEQ_STOP_NOTE(dev, chn, note, vol) \ 1144 _CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol) 1146 #define SEQ_KEY_PRESSURE(dev, chn, note, pressure) \ 1147 _CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure) 1153 #define _CHN_COMMON(dev, event, chn, p [all...] |
/linux-master/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 | 152 unsigned short chn, unsigned int reg, unsigned int *value); 154 unsigned short chn, unsigned int reg, unsigned int value); 156 struct tasdevice_priv *tas_priv, unsigned short chn, 159 unsigned short chn, unsigned int reg, unsigned char *p_data, 162 struct tasdevice_priv *tasdevice, unsigned short chn,
|
H A D | wavefront.h | 364 #define WF_SET_CHANNEL(samp,chn) \ 365 (samp)->Unused1 = chn & 0x1; \ 366 (samp)->Unused2 = chn & 0x2; \ 367 (samp)->Unused3 = chn & 0x4
|
/linux-master/drivers/pwm/ |
H A D | pwm-sprd.c | 37 struct sprd_pwm_chn chn[SPRD_PWM_CHN_NUM]; member in struct:sprd_pwm_chip 75 struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; local 84 ret = clk_bulk_prepare_enable(SPRD_PWM_CHN_CLKS_NUM, chn->clks); 108 state->period = DIV_ROUND_CLOSEST_ULL(tmp, chn->clk_rate); 113 state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, chn->clk_rate); 118 clk_bulk_disable_unprepare(SPRD_PWM_CHN_CLKS_NUM, chn->clks); 126 struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; local 142 tmp = (u64)chn 167 struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; local 215 sprd_pwm_clk_init(struct device *dev, struct sprd_pwm_chn chn[SPRD_PWM_CHN_NUM]) argument 252 struct sprd_pwm_chn chn[SPRD_PWM_CHN_NUM]; local [all...] |
/linux-master/sound/core/seq/oss/ |
H A D | seq_oss_event.h | 29 unsigned char chn; member in struct:evrec_note 47 unsigned char chn; member in struct:evrec_extended 56 unsigned char chn; member in struct:evrec_long 66 unsigned char chn; member in struct:evrec_voice
|
H A D | seq_oss_event.c | 99 return note_off_event(dp, 0, q->n.chn, q->n.note, q->n.vel, ev); 102 return note_on_event(dp, 0, q->n.chn, q->n.note, q->n.vel, ev); 110 q->n.chn, 0, q->n.note, ev); 127 return note_off_event(dp, q->e.dev, q->e.chn, q->e.p1, q->e.p2, ev); 130 return note_on_event(dp, q->e.dev, q->e.chn, q->e.p1, q->e.p2, ev); 134 q->e.chn, 0, q->e.p1, ev); 138 q->e.chn, 0, q->e.p1, ev); 145 q->e.chn, CTL_PAN, val, ev); 154 q->e.chn, 0, val, ev); 159 q->e.chn, [all...] |
/linux-master/sound/soc/codecs/ |
H A D | tas2781-comlib.c | 49 unsigned short chn, int book) 54 if (chn < tas_priv->ndev) { 55 struct tasdevice *tasdev = &tas_priv->tasdevice[chn]; 85 chn); 93 unsigned short chn, unsigned int reg, unsigned int *val) 97 if (chn < tas_priv->ndev) { 100 ret = tasdevice_change_chn_book(tas_priv, chn, 111 chn); 120 unsigned short chn, unsigned int reg, unsigned int value) 124 if (chn < tas_pri 48 tasdevice_change_chn_book(struct tasdevice_priv *tas_priv, unsigned short chn, int book) argument 92 tasdevice_dev_read(struct tasdevice_priv *tas_priv, unsigned short chn, unsigned int reg, unsigned int *val) argument 119 tasdevice_dev_write(struct tasdevice_priv *tas_priv, unsigned short chn, unsigned int reg, unsigned int value) argument 147 tasdevice_dev_bulk_write( struct tasdevice_priv *tas_priv, unsigned short chn, unsigned int reg, unsigned char *data, unsigned int len) argument 177 tasdevice_dev_bulk_read(struct tasdevice_priv *tas_priv, unsigned short chn, unsigned int reg, unsigned char *data, unsigned int len) argument 203 tasdevice_dev_update_bits( struct tasdevice_priv *tas_priv, unsigned short chn, unsigned int reg, unsigned int mask, unsigned int value) argument [all...] |
H A D | tas2781-fmwlib.c | 679 int subblk_offset, chn, chnend, rc; local 686 chn = idx - 1; 689 chn = 0; 693 for (; chn < chnend; chn++) { 694 if (tas_priv->tasdevice[chn].is_loading == false) 713 rc = tasdevice_dev_write(tas_priv, chn, 745 rc = tasdevice_dev_bulk_write(tas_priv, chn, 782 rc = tasdevice_dev_update_bits(tas_priv, chn, 801 tas_priv->tasdevice[chn] 818 int j, k, chn, chnend; local 1311 tasdev_multibytes_chksum(struct tasdevice_priv *tasdevice, unsigned short chn, unsigned char book, unsigned char page, unsigned char reg, unsigned int len) argument 1427 tasdev_bytes_chksum(struct tasdevice_priv *tas_priv, struct tasdev_blk *block, int chn, unsigned char book, unsigned char page, unsigned char reg, unsigned int len, unsigned char val, unsigned char *crc_chksum) argument 1459 tasdev_multibytes_wr(struct tasdevice_priv *tas_priv, struct tasdev_blk *block, int chn, unsigned char book, unsigned char page, unsigned char reg, unsigned char *data, unsigned int len, unsigned int *nr_cmds, unsigned char *crc_chksum) argument 1495 tasdev_block_chksum(struct tasdevice_priv *tas_priv, struct tasdev_blk *block, int chn) argument 1528 tasdev_load_blk(struct tasdevice_priv *tas_priv, struct tasdev_blk *block, int chn) argument 1639 int chn = 0; local [all...] |
/linux-master/drivers/thermal/ |
H A D | rockchip_thermal.c | 102 int chn, void __iomem *reg, int *temp); 104 int chn, void __iomem *reg, int temp); 106 int chn, void __iomem *reg, int temp); 107 void (*set_tshut_mode)(int chn, void __iomem *reg, enum tshut_mode m); 174 #define TSADCV2_DATA(chn) (0x20 + (chn) * 0x04) 175 #define TSADCV2_COMP_INT(chn) (0x30 + (chn) * 0x04) 176 #define TSADCV2_COMP_SHUT(chn) (0x40 + (chn) * 911 rk_tsadcv2_get_temp(const struct chip_tsadc_table *table, int chn, void __iomem *regs, int *temp) argument 921 rk_tsadcv4_get_temp(const struct chip_tsadc_table *table, int chn, void __iomem *regs, int *temp) argument 931 rk_tsadcv2_alarm_temp(const struct chip_tsadc_table *table, int chn, void __iomem *regs, int temp) argument 965 rk_tsadcv3_alarm_temp(const struct chip_tsadc_table *table, int chn, void __iomem *regs, int temp) argument 992 rk_tsadcv2_tshut_temp(const struct chip_tsadc_table *table, int chn, void __iomem *regs, int temp) argument 1011 rk_tsadcv3_tshut_temp(const struct chip_tsadc_table *table, int chn, void __iomem *regs, int temp) argument 1030 rk_tsadcv2_tshut_mode(int chn, void __iomem *regs, enum tshut_mode mode) argument 1047 rk_tsadcv3_tshut_mode(int chn, void __iomem *regs, enum tshut_mode mode) argument [all...] |
/linux-master/drivers/s390/cio/ |
H A D | crw.c | 85 "chn=%d, rsc=%X, anc=%d, erc=%X, rsid=%X\n", 87 tmp_crw.chn, tmp_crw.rsc, tmp_crw.anc, 93 chain = tmp_crw.chn ? chain + 1 : 0; 100 "chn=%d, rsc=%X, anc=%d, erc=%X, rsid=%X\n", 101 crw[chain].slct, crw[chain].oflw, crw[chain].chn, 118 if (crw[0].chn && !chain) { 128 chain = crw[chain].chn ? chain + 1 : 0;
|
H A D | cio_inject.c | 88 u32 slct, oflw, chn, rsc, anc, erc, rsid; local 102 rc = sscanf(buffer, "%x %x %x %x %x %x %x", &slct, &oflw, &chn, &rsc, &anc, 114 crw.chn = chn;
|
/linux-master/drivers/infiniband/hw/qib/ |
H A D | qib_sd7220.c | 88 #define EPB_LOC(chn, elt, reg) \ 89 (((elt & 0xf) | ((chn & 7) << 4) | ((reg & 0x3f) << 9)) << \ 140 #define IB_CTRL2(chn) (EPB_LOC(chn, 7, 3) | EPB_IB_QUAD0_CS) 172 #define IB_PGUDP(chn) (EPB_LOC((chn), 2, 1) | EPB_IB_QUAD0_CS) 173 #define IB_CMUDONE(chn) (EPB_LOC((chn), 7, 0xF) | EPB_IB_QUAD0_CS) 177 int ret, pat, tries, chn; local 181 chn 306 int ret, chn, baduns; local [all...] |
/linux-master/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) argument 79 if (chn == 3) 92 if (chn == 3) { 96 switch (chn) { 158 int box, chn; local 237 for (chn = 0; chn < 4; chn++) 238 snd_ice1712_stdsp24_box_channel(ice, box, chn, 239 (spec->boxconfig[box] & (1 << chn)) [all...] |
/linux-master/arch/s390/include/asm/ |
H A D | crw.h | 22 __u32 chn : 1; /* chained */ member in struct:crw
|
/linux-master/sound/core/oss/ |
H A D | mixer_oss.c | 129 int result = 0, chn; local 134 for (chn = 0; chn < 31; chn++) { 135 pslot = &mixer->slots[chn]; 137 result |= 1 << chn; 146 int result = 0, chn; local 151 for (chn = 0; chn < 31; chn 171 int chn; local 197 int chn; local 216 int chn, active; local 899 snd_mixer_oss_slot_free(struct snd_mixer_oss_slot *chn) argument 1284 struct snd_mixer_oss_slot *chn = &mixer->slots[idx]; local [all...] |
/linux-master/drivers/iio/adc/ |
H A D | twl6030-gpadc.c | 624 int chn; local 642 for (chn = 0; chn < TWL6030_GPADC_MAX_CHANNELS; chn++) { 644 switch (chn) { 688 twl6030_calibrate_channel(gpadc, chn, d1, d2); 710 int chn, d1 = 0, d2 = 0, temp; local 727 for (chn = 0; chn < TWL6032_GPADC_MAX_CHANNELS; chn [all...] |
/linux-master/drivers/edac/ |
H A D | edac_mc.c | 182 int i, chn, row; local 197 for (chn = 0; chn < mci->num_cschannel; chn++) 198 kfree(csr->channels[chn]); 214 unsigned int row, chn; local 239 for (chn = 0; chn < tot_channels; chn++) { 246 csr->channels[chn] 258 unsigned int row, chn, idx; local [all...] |
/linux-master/drivers/tty/serial/ |
H A D | sprd_serial.c | 113 struct dma_chan *chn; member in struct:sprd_uart_dma 181 dmaengine_terminate_all(sp->rx_dma.chn); 212 dmaengine_pause(sp->tx_dma.chn); 214 dmaengine_tx_status(sp->tx_dma.chn, sp->tx_dma.cookie, &state); 222 dmaengine_terminate_all(sp->tx_dma.chn); 279 dma_des = dmaengine_prep_slave_single(ud->chn, ud->phys_addr, trans_len, 291 dma_async_issue_pending(ud->chn); 310 ret = dmaengine_slave_config(sp->tx_dma.chn, &cfg); 381 return dmaengine_slave_config(sp->rx_dma.chn, &cfg); 402 status = dmaengine_tx_status(sp->rx_dma.chn, [all...] |
/linux-master/drivers/dma/ti/ |
H A D | k3-udma-glue.c | 225 static void k3_udma_glue_dump_tx_rt_chn(struct k3_udma_glue_tx_channel *chn, argument 228 struct device *dev = chn->common.dev; 232 xudma_tchanrt_read(chn->udma_tchanx, UDMA_CHAN_RT_CTL_REG)); 234 xudma_tchanrt_read(chn->udma_tchanx, 237 xudma_tchanrt_read(chn->udma_tchanx, UDMA_CHAN_RT_PCNT_REG)); 239 xudma_tchanrt_read(chn->udma_tchanx, UDMA_CHAN_RT_BCNT_REG)); 241 xudma_tchanrt_read(chn->udma_tchanx, UDMA_CHAN_RT_SBCNT_REG)); 867 static void k3_udma_glue_dump_rx_chn(struct k3_udma_glue_rx_channel *chn) argument 869 struct device *dev = chn->common.dev; 881 chn 892 k3_udma_glue_dump_rx_rt_chn(struct k3_udma_glue_rx_channel *chn, char *mark) argument [all...] |
/linux-master/drivers/clk/imx/ |
H A D | clk.c | 33 unsigned int chn) 38 reg |= chn == 0 ? CCDR_MMDC_CH0_MASK : CCDR_MMDC_CH1_MASK; 32 imx_mmdc_mask_handshake(void __iomem *ccm_base, unsigned int chn) argument
|
/linux-master/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) argument 37 regptr = (reg << 16) | chn; 61 void snd_emu10k1_ptr_write(struct snd_emu10k1 *emu, unsigned int reg, unsigned int chn, unsigned int data) argument 67 regptr = (reg << 16) | chn; 95 void snd_emu10k1_ptr_write_multiple(struct snd_emu10k1 *emu, unsigned int chn, ...) argument 103 if (snd_BUG_ON(chn & ~PTR_CHANNELNUM_MASK)) 107 va_start(va, chn); 117 outl((reg << 16) | chn, emu->port + PTR); 128 unsigned int chn) 133 regptr = (reg << 16) | chn; 126 snd_emu10k1_ptr20_read(struct snd_emu10k1 * emu, unsigned int reg, unsigned int chn) argument 142 snd_emu10k1_ptr20_write(struct snd_emu10k1 *emu, unsigned int reg, unsigned int chn, unsigned int data) argument [all...] |
/linux-master/drivers/iio/pressure/ |
H A D | dlhl60d.c | 252 unsigned int chn, i = 0; local 259 for_each_set_bit(chn, indio_dev->active_scan_mask, 262 &st->rx_buf[1] + chn * DLH_NUM_DATA_BYTES,
|
/linux-master/sound/usb/line6/ |
H A D | playback.c | 24 int chn = 0; local 37 int val = (pv * volume[chn & 1]) >> 8; 40 ++chn; 52 val = (val * volume[chn & 1]) >> 8; 57 ++chn;
|