Home
last modified time | relevance | path

Searched refs:chn (Results 1 – 25 of 55) sorted by relevance

123

/linux/include/uapi/linux/
H A Dultrasound.h76 #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) /* OBSOLETE */ 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, voic argument
88 GUS_VOICEFADE(chn,voice) global() argument
89 GUS_VOICEMODE(chn,voice,p1) global() argument
90 GUS_VOICEBALA(chn,voice,p1) global() argument
91 GUS_VOICEFREQ(chn,voice,p) global() argument
93 GUS_VOICEVOL(chn,voice,p1) global() argument
94 GUS_VOICEVOL2(chn,voice,p1) global() argument
95 GUS_RAMPRANGE(chn,voice,low,high) global() argument
96 GUS_RAMPRATE(chn,voice,p1,p2) global() argument
97 GUS_RAMPMODE(chn,voice,p1) global() argument
98 GUS_RAMPON(chn,voice,p1) global() argument
99 GUS_RAMPOFF(chn,voice) global() argument
100 GUS_VOLUME_SCALE(chn,voice,p1,p2) global() argument
101 GUS_VOICE_POS(chn,voice,p) global() argument
[all...]
H A Dsoundcard.h985 * 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, p argument
1191 SEQ_CHN_PRESSURE(dev,chn,pressure) global() argument
1195 SEQ_PGM_CHANGE(dev,chn,patch) global() argument
1198 SEQ_CONTROL(dev,chn,controller,value) global() argument
1201 SEQ_BENDER(dev,chn,value) global() argument
[all...]
/linux/drivers/pwm/
H A Dpwm-sprd.c37 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 in sprd_pwm_config()
167 struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; sprd_pwm_apply() local
252 struct sprd_pwm_chn chn[SPRD_PWM_CHN_NUM]; sprd_pwm_probe() local
[all...]
/linux/sound/soc/codecs/
H A Dtas2781-comlib.c23 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_pri in tasdevice_dev_write()
104 tasdevice_dev_bulk_write(struct tasdevice_priv * tas_priv,unsigned short chn,unsigned int reg,unsigned char * data,unsigned int len) tasdevice_dev_bulk_write() argument
[all...]
H A Dtas2781-comlib-i2c.c47 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...]
H A Dtas2781-fmwlib.c801 int subblk_offset, chn, chnend, rc; in tasdevice_process_block() local
808 chn = idx - 1; in tasdevice_process_block()
812 chn = tas_priv->index; in tasdevice_process_block()
813 chnend = chn + 1; in tasdevice_process_block()
815 chn = 0; in tasdevice_process_block()
820 for (; chn < chnend; chn++) { in tasdevice_process_block()
821 if (tas_priv->tasdevice[chn].is_loading == false) in tasdevice_process_block()
840 rc = tasdevice_dev_write(tas_priv, chn, in tasdevice_process_block()
872 rc = tasdevice_dev_bulk_write(tas_priv, chn, in tasdevice_process_block()
945 int j, k, chn, chnend; tasdevice_select_cfg_blk() local
1439 tasdev_multibytes_chksum(struct tasdevice_priv * tasdevice,unsigned short chn,unsigned char book,unsigned char page,unsigned char reg,unsigned int len) tasdev_multibytes_chksum() argument
1555 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) tasdev_bytes_chksum() argument
1587 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) tasdev_multibytes_wr() argument
1623 tasdev_block_chksum(struct tasdevice_priv * tas_priv,struct tasdev_blk * block,int chn) tasdev_block_chksum() argument
1656 tasdev_load_blk(struct tasdevice_priv * tas_priv,struct tasdev_blk * block,int chn) tasdev_load_blk() argument
1766 int chn = 0; tasdevice_load_block() local
[all...]
/linux/drivers/thermal/
H A Drockchip_thermal.c108 int chn, void __iomem *reg, int *temp);
110 int chn, void __iomem *reg, int temp);
112 int chn, void __iomem *reg, int temp);
113 void (*set_tshut_mode)(int chn, void __iomem *reg, enum tshut_mode m);
195 #define TSADCV2_DATA(chn) (0x20 + (chn) * 0x04) argument
196 #define TSADCV2_COMP_INT(chn) (0x30 + (chn) * 0x04) argument
197 #define TSADCV2_COMP_SHUT(chn) (0x40 + (chn) * argument
198 TSADCV3_DATA(chn) global() argument
199 TSADCV3_COMP_INT(chn) global() argument
200 TSADCV3_COMP_SHUT(chn) global() argument
212 TSADCV2_AUTO_SRC_EN(chn) global() argument
213 TSADCV3_AUTO_SRC_EN(chn) global() argument
214 TSADCV3_AUTO_SRC_EN_MASK(chn) global() argument
220 TSADCV2_INT_SRC_EN(chn) global() argument
221 TSADCV2_INT_SRC_EN_MASK(chn) global() argument
222 TSADCV2_SHUT_2GPIO_SRC_EN(chn) global() argument
223 TSADCV2_SHUT_2CRU_SRC_EN(chn) global() argument
937 rk_tsadcv2_get_temp(const struct chip_tsadc_table * table,int chn,void __iomem * regs,int * temp) rk_tsadcv2_get_temp() argument
947 rk_tsadcv4_get_temp(const struct chip_tsadc_table * table,int chn,void __iomem * regs,int * temp) rk_tsadcv4_get_temp() argument
957 rk_tsadcv2_alarm_temp(const struct chip_tsadc_table * table,int chn,void __iomem * regs,int temp) rk_tsadcv2_alarm_temp() argument
991 rk_tsadcv3_alarm_temp(const struct chip_tsadc_table * table,int chn,void __iomem * regs,int temp) rk_tsadcv3_alarm_temp() argument
1018 rk_tsadcv2_tshut_temp(const struct chip_tsadc_table * table,int chn,void __iomem * regs,int temp) rk_tsadcv2_tshut_temp() argument
1037 rk_tsadcv3_tshut_temp(const struct chip_tsadc_table * table,int chn,void __iomem * regs,int temp) rk_tsadcv3_tshut_temp() argument
1055 rk_tsadcv2_tshut_mode(int chn,void __iomem * regs,enum tshut_mode mode) rk_tsadcv2_tshut_mode() argument
1072 rk_tsadcv4_tshut_mode(int chn,void __iomem * regs,enum tshut_mode mode) rk_tsadcv4_tshut_mode() argument
1713 u32 chn; rockchip_thermal_probe() local
[all...]
/linux/sound/core/seq/oss/
H A Dseq_oss_event.c99 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, in extended_event()
[all...]
H A Dseq_oss_event.h29 unsigned char chn; member
47 unsigned char chn; member
56 unsigned char chn; member
66 unsigned char chn; member
/linux/include/sound/
H A Dtas2781.h233 unsigned short chn, int book);
235 unsigned short chn, unsigned int reg, unsigned int mask,
238 unsigned short chn, unsigned int reg, unsigned int *value);
240 unsigned short chn, unsigned int reg, unsigned char *p_data,
245 unsigned short chn, unsigned int reg, unsigned int *value);
247 unsigned short chn, unsigned int reg, unsigned char *p_data,
250 unsigned short chn, unsigned int reg, unsigned int value);
252 struct tasdevice_priv *tas_priv, unsigned short chn,
H A Dmixer_oss.h20 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 Dtas2781-comlib-i2c.h25 unsigned short chn);
27 struct tasdevice_priv *tasdevice, unsigned short chn,
H A Dwavefront.h364 #define WF_SET_CHANNEL(samp,chn) \ argument
365 (samp)->Unused1 = chn & 0x1; \
366 (samp)->Unused2 = chn & 0x2; \
367 (samp)->Unused3 = chn & 0x4
/linux/sound/core/oss/
H A Dmixer_oss.c129 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()
171 int chn; snd_mixer_oss_recmask() local
197 int chn; snd_mixer_oss_get_recsrc() local
216 int chn, active; snd_mixer_oss_set_recsrc() local
898 snd_mixer_oss_slot_free(struct snd_mixer_oss_slot * chn) snd_mixer_oss_slot_free() argument
1283 struct snd_mixer_oss_slot *chn = &mixer->slots[idx]; snd_mixer_oss_free1() local
[all...]
/linux/sound/pci/ice1712/
H A Dhoontech.c68 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()
158 int box, chn; in hoontech_init() local
237 for (chn = 0; chn < 4; chn++) in hoontech_init()
238 snd_ice1712_stdsp24_box_channel(ice, box, chn, in hoontech_init()
239 (spec->boxconfig[box] & (1 << chn)) in hoontech_init()
[all...]
/linux/drivers/s390/cio/
H A Dcrw.c84 "chn=%d, rsc=%X, anc=%d, erc=%X, rsid=%X\n", in crw_collect_info()
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()
99 "chn=%d, rsc=%X, anc=%d, erc=%X, rsid=%X\n", 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 Dcio_inject.c88 u32 slct, oflw, chn, rsc, anc, erc, rsid; in crw_inject_write() local
102 rc = sscanf(buffer, "%x %x %x %x %x %x %x", &slct, &oflw, &chn, &rsc, &anc, in crw_inject_write()
114 crw.chn = chn; in crw_inject_write()
/linux/drivers/media/pci/intel/ipu6/
H A Dipu6-platform-isys-csi2-reg.h42 #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/iio/adc/
H A Dtwl6030-gpadc.c624 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()
802 TWL6030_GPADC_CHAN(chn,_type,chan_info) global() argument
[all...]
H A Drockchip_saradc.c63 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 Dedac_mc.c182 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
239 for (chn = 0; chn < tot_channels; chn++) { in edac_mc_alloc_csrows()
246 csr->channels[chn] in edac_mc_alloc_csrows()
258 unsigned int row, chn, idx; edac_mc_alloc_dimms() local
[all...]
/linux/drivers/dma/ti/
H A Dk3-udma-glue.c223 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 in k3_udma_glue_dump_rx_chn()
890 k3_udma_glue_dump_rx_rt_chn(struct k3_udma_glue_rx_channel * chn,char * mark) k3_udma_glue_dump_rx_rt_chn() argument
[all...]
/linux/sound/pci/emu10k1/
H A Dio.c31 unsigned int snd_emu10k1_ptr_read(struct snd_emu10k1 * emu, unsigned int reg, unsigned int chn) in snd_emu10k1_ptr_read() argument
37 regptr = (reg << 16) | chn; in snd_emu10k1_ptr_read()
61 void snd_emu10k1_ptr_write(struct snd_emu10k1 *emu, unsigned int reg, unsigned int chn, unsigned int data) in snd_emu10k1_ptr_write() argument
67 regptr = (reg << 16) | chn; in snd_emu10k1_ptr_write()
95 void snd_emu10k1_ptr_write_multiple(struct snd_emu10k1 *emu, unsigned int chn, ...) in snd_emu10k1_ptr_write_multiple() argument
103 if (snd_BUG_ON(chn & ~PTR_CHANNELNUM_MASK)) in snd_emu10k1_ptr_write_multiple()
107 va_start(va, chn); in snd_emu10k1_ptr_write_multiple()
117 outl((reg << 16) | chn, emu->port + PTR); in snd_emu10k1_ptr_write_multiple()
128 unsigned int chn) in snd_emu10k1_ptr20_read() argument
133 regptr = (reg << 16) | chn; in snd_emu10k1_ptr20_read()
144 snd_emu10k1_ptr20_write(struct snd_emu10k1 * emu,unsigned int reg,unsigned int chn,unsigned int data) snd_emu10k1_ptr20_write() argument
[all...]
/linux/sound/hda/codecs/side-codecs/
H A Dtas2781_hda_spi.c81 unsigned short chn, unsigned int reg, unsigned int *val) in tasdevice_spi_dev_read() argument
93 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, in tasdevice_spi_dev_read()
97 ret = tasdevice_dev_read(tas_priv, chn, reg, val); in tasdevice_spi_dev_read()
106 unsigned short chn, unsigned int reg, unsigned char *data, in tasdevice_spi_dev_bulk_read() argument
119 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, in tasdevice_spi_dev_bulk_read()
123 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, data, len); in tasdevice_spi_dev_bulk_read()
132 unsigned short chn, unsigned int reg, unsigned int mask, in tasdevice_spi_dev_update_bits() argument
141 ret = tasdevice_dev_read(tas_priv, chn, reg, &val); in tasdevice_spi_dev_update_bits()
147 ret = tasdevice_dev_write(tas_priv, chn, TASDEVICE_PAGE_REG(reg), in tasdevice_spi_dev_update_bits()
156 unsigned short chn, in in tasdevice_spi_change_chn_book() argument
[all...]
/linux/sound/usb/line6/
H A Dplayback.c24 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()

123