Home
last modified time | relevance | path

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

123

/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dultrasound.h38 #define _GUS_CMD(chn,voice,cmd,p1,p2) { _SEQ_NEEDBUF(8); _seqbuf[_seqbufptr] = SEQ_PRIVATE; _seqbuf… argument
39 #define GUS_NUMVOICES(chn,p1) _GUS_CMD(chn, 0, _GUS_NUMVOICES, (p1), 0) argument
40 #define GUS_VOICESAMPLE(chn,voice,p1) _GUS_CMD(chn, voice, _GUS_VOICESAMPLE, (p1), 0) argument
41 #define GUS_VOICEON(chn,voice,p1) _GUS_CMD(chn, voice, _GUS_VOICEON, (p1), 0) argument
42 #define GUS_VOICEOFF(chn,voice) _GUS_CMD(chn, voice, _GUS_VOICEOFF, 0, 0) argument
43 #define GUS_VOICEFADE(chn,voice) _GUS_CMD(chn, voice, _GUS_VOICEFADE, 0, 0) argument
44 #define GUS_VOICEMODE(chn,voice,p1) _GUS_CMD(chn, voice, _GUS_VOICEMODE, (p1), 0) argument
45 #define GUS_VOICEBALA(chn,voice,p1) _GUS_CMD(chn, voice, _GUS_VOICEBALA, (p1), 0) argument
46 #define GUS_VOICEFREQ(chn,voice,p) _GUS_CMD(chn, voice, _GUS_VOICEFREQ, (p) & 0xffff, ((p) >> 16) &… argument
47 #define GUS_VOICEVOL(chn,voice,p1) _GUS_CMD(chn, voice, _GUS_VOICEVOL, (p1), 0) argument
[all …]
Dsoundcard.h645chn,note,parm) { _SEQ_NEEDBUF(8); _seqbuf[_seqbufptr] = EV_CHN_VOICE; _seqbuf[_seqbufptr + 1] = (d… argument
646 #define SEQ_START_NOTE(dev,chn,note,vol) _CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol) argument
647 #define SEQ_STOP_NOTE(dev,chn,note,vol) _CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol) argument
648 #define SEQ_KEY_PRESSURE(dev,chn,note,pressure) _CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, press… argument
649chn,p1,p2,w14) { _SEQ_NEEDBUF(8); _seqbuf[_seqbufptr] = EV_CHN_COMMON; _seqbuf[_seqbufptr + 1] = (… argument
651 #define SEQ_CHN_PRESSURE(dev,chn,pressure) _CHN_COMMON(dev, MIDI_CHN_PRESSURE, chn, pressure, 0, 0) argument
653 #define SEQ_PGM_CHANGE(dev,chn,patch) _CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0) argument
654 #define SEQ_CONTROL(dev,chn,controller,value) _CHN_COMMON(dev, MIDI_CTL_CHANGE, chn, controller, 0,… argument
655 #define SEQ_BENDER(dev,chn,value) _CHN_COMMON(dev, MIDI_PITCH_BEND, chn, 0, 0, value) argument
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dultrasound.h25 #define _GUS_CMD(chn, voice, cmd, p1, p2) \ argument
27 _seqbuf[_seqbufptr+1] = (chn); _seqbuf[_seqbufptr+2] = cmd;\
32 #define GUS_NUMVOICES(chn, p1) _GUS_CMD(chn, 0, _GUS_NUMVOICES, (p1), 0) argument
33 #define GUS_VOICESAMPLE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICESAMPLE, (p1), 0) argument
34 #define GUS_VOICEON(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEON, (p1), 0) argument
35 #define GUS_VOICEOFF(chn, voice) _GUS_CMD(chn, voice, _GUS_VOICEOFF, 0, 0) argument
36 #define GUS_VOICEFADE(chn, voice) _GUS_CMD(chn, voice, _GUS_VOICEFADE, 0, 0) argument
37 #define GUS_VOICEMODE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEMODE, (p1), 0) argument
38 #define GUS_VOICEBALA(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEBALA, (p1), 0) argument
39 #define GUS_VOICEFREQ(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICEFREQ, \ argument
[all …]
Dsoundcard.h671 #define _CHN_VOICE(dev, event, chn, note, parm) \ argument
676 _seqbuf[_seqbufptr+3] = (chn);\
682 #define SEQ_START_NOTE(dev, chn, note, vol) \ argument
683 _CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol)
684 #define SEQ_STOP_NOTE(dev, chn, note, vol) \ argument
685 _CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol)
686 #define SEQ_KEY_PRESSURE(dev, chn, note, pressure) \ argument
687 _CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure)
688 #define _CHN_COMMON(dev, event, chn, p1, p2, w14) \ argument
693 _seqbuf[_seqbufptr+3] = (chn);\
[all …]
/kernel/linux/linux-5.10/include/uapi/linux/
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) /* 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 …]
Dsoundcard.h1128 #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 …]
/kernel/linux/linux-5.10/drivers/pwm/
Dpwm-sprd.c39 struct sprd_pwm_chn chn[SPRD_PWM_CHN_NUM]; member
73 struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; in sprd_pwm_get_state() local
82 ret = clk_bulk_prepare_enable(SPRD_PWM_CHN_CLKS_NUM, chn->clks); in sprd_pwm_get_state()
106 state->period = DIV_ROUND_CLOSEST_ULL(tmp, chn->clk_rate); in sprd_pwm_get_state()
111 state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, chn->clk_rate); in sprd_pwm_get_state()
115 clk_bulk_disable_unprepare(SPRD_PWM_CHN_CLKS_NUM, chn->clks); in sprd_pwm_get_state()
121 struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; in sprd_pwm_config() local
137 tmp = (u64)chn->clk_rate * period_ns; in sprd_pwm_config()
163 struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; in sprd_pwm_apply() local
174 chn->clks); in sprd_pwm_apply()
[all …]
/kernel/linux/linux-5.10/sound/core/seq/oss/
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, 0, val*128/100, ev); in extended_event()
[all …]
Dseq_oss_event.h29 unsigned char chn; member
47 unsigned char chn; member
56 unsigned char chn; member
66 unsigned char chn; member
/kernel/linux/linux-5.10/drivers/thermal/
Drockchip_thermal.c117 int chn, void __iomem *reg, int *temp);
119 int chn, void __iomem *reg, int temp);
121 int chn, void __iomem *reg, int temp);
122 void (*set_tshut_mode)(int chn, void __iomem *reg, enum tshut_mode m);
183 #define TSADCV2_DATA(chn) (0x20 + (chn) * 0x04) argument
184 #define TSADCV2_COMP_INT(chn) (0x30 + (chn) * 0x04) argument
185 #define TSADCV2_COMP_SHUT(chn) (0x40 + (chn) * 0x04) argument
192 #define TSADCV2_AUTO_SRC_EN(chn) BIT(4 + (chn)) argument
197 #define TSADCV2_INT_SRC_EN(chn) BIT(chn) argument
198 #define TSADCV2_SHUT_2GPIO_SRC_EN(chn) BIT(4 + (chn)) argument
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/
Dqib_sd7220.c88 #define EPB_LOC(chn, elt, reg) \ argument
89 (((elt & 0xf) | ((chn & 7) << 4) | ((reg & 0x3f) << 9)) << \
140 #define IB_CTRL2(chn) (EPB_LOC(chn, 7, 3) | EPB_IB_QUAD0_CS) argument
172 #define IB_PGUDP(chn) (EPB_LOC((chn), 2, 1) | EPB_IB_QUAD0_CS) argument
173 #define IB_CMUDONE(chn) (EPB_LOC((chn), 7, 0xF) | EPB_IB_QUAD0_CS) argument
177 int ret, pat, tries, chn; in qib_resync_ibepb() local
181 chn = 0; in qib_resync_ibepb()
183 loc = IB_PGUDP(chn); in qib_resync_ibepb()
206 loc = IB_CMUDONE(chn); in qib_resync_ibepb()
212 if ((ret & 0x70) != ((chn << 4) | 0x40)) { in qib_resync_ibepb()
[all …]
/kernel/linux/linux-5.10/include/sound/
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,
Dwavefront.h415 #define WF_SET_CHANNEL(samp,chn) \ argument
416 (samp)->Unused1 = chn & 0x1; \
417 (samp)->Unused2 = chn & 0x2; \
418 (samp)->Unused3 = chn & 0x4
/kernel/linux/linux-5.10/sound/core/oss/
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()
147 int result = 0, chn; in snd_mixer_oss_stereodevs() local
152 for (chn = 0; chn < 31; chn++) { in snd_mixer_oss_stereodevs()
153 pslot = &mixer->slots[chn]; in snd_mixer_oss_stereodevs()
155 result |= 1 << chn; in snd_mixer_oss_stereodevs()
173 int chn; in snd_mixer_oss_recmask() local
174 for (chn = 0; chn < 31; chn++) { in snd_mixer_oss_recmask()
[all …]
/kernel/linux/linux-5.10/sound/pci/ice1712/
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)) ? 1 : 0); in hoontech_init()
/kernel/linux/linux-5.10/drivers/s390/cio/
Dcrw.c88 tmp_crw.chn, tmp_crw.rsc, tmp_crw.anc, in crw_collect_info()
94 chain = tmp_crw.chn ? chain + 1 : 0; in crw_collect_info()
102 crw[chain].slct, crw[chain].oflw, crw[chain].chn, in crw_collect_info()
119 if (crw[0].chn && !chain) { in crw_collect_info()
129 chain = crw[chain].chn ? chain + 1 : 0; in crw_collect_info()
/kernel/linux/linux-5.10/drivers/dma/ti/
Dk3-udma-glue.c183 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
186 struct device *dev = chn->common.dev; in k3_udma_glue_dump_tx_rt_chn()
190 xudma_tchanrt_read(chn->udma_tchanx, UDMA_CHAN_RT_CTL_REG)); in k3_udma_glue_dump_tx_rt_chn()
192 xudma_tchanrt_read(chn->udma_tchanx, in k3_udma_glue_dump_tx_rt_chn()
195 xudma_tchanrt_read(chn->udma_tchanx, UDMA_CHAN_RT_PCNT_REG)); in k3_udma_glue_dump_tx_rt_chn()
197 xudma_tchanrt_read(chn->udma_tchanx, UDMA_CHAN_RT_BCNT_REG)); in k3_udma_glue_dump_tx_rt_chn()
199 xudma_tchanrt_read(chn->udma_tchanx, UDMA_CHAN_RT_SBCNT_REG)); in k3_udma_glue_dump_tx_rt_chn()
664 static void k3_udma_glue_dump_rx_chn(struct k3_udma_glue_rx_channel *chn) in k3_udma_glue_dump_rx_chn() argument
666 struct device *dev = chn->common.dev; in k3_udma_glue_dump_rx_chn()
678 chn->udma_rchan_id, in k3_udma_glue_dump_rx_chn()
[all …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Dtwl6030-gpadc.c611 int chn; in twl6030_calibration() local
629 for (chn = 0; chn < TWL6030_GPADC_MAX_CHANNELS; chn++) { in twl6030_calibration()
631 switch (chn) { in twl6030_calibration()
675 twl6030_calibrate_channel(gpadc, chn, d1, d2); in twl6030_calibration()
697 int chn, d1 = 0, d2 = 0, temp; in twl6032_calibration() local
714 for (chn = 0; chn < TWL6032_GPADC_MAX_CHANNELS; chn++) { in twl6032_calibration()
716 switch (chn) { in twl6032_calibration()
783 twl6030_calibrate_channel(gpadc, chn, d1, d2); in twl6032_calibration()
789 #define TWL6030_GPADC_CHAN(chn, _type, chan_info) { \ argument
791 .channel = chn, \
/kernel/linux/linux-5.10/drivers/edac/
Dedac_mc.c232 int i, chn, row; in mci_release() local
247 for (chn = 0; chn < mci->num_cschannel; chn++) in mci_release()
248 kfree(csr->channels[chn]); in mci_release()
262 unsigned int row, chn; in edac_mc_alloc_csrows() local
287 for (chn = 0; chn < tot_channels; chn++) { in edac_mc_alloc_csrows()
294 csr->channels[chn] = chan; in edac_mc_alloc_csrows()
295 chan->chan_idx = chn; in edac_mc_alloc_csrows()
306 unsigned int row, chn, idx; in edac_mc_alloc_dimms() local
319 chn = 0; in edac_mc_alloc_dimms()
325 chan = mci->csrows[row]->channels[chn]; in edac_mc_alloc_dimms()
[all …]
/kernel/linux/linux-5.10/drivers/tty/serial/
Dsprd_serial.c113 struct dma_chan *chn; member
181 dmaengine_terminate_all(sp->rx_dma.chn); in sprd_stop_rx()
213 dmaengine_pause(sp->tx_dma.chn); in sprd_stop_tx_dma()
215 dmaengine_tx_status(sp->tx_dma.chn, sp->tx_dma.cookie, &state); in sprd_stop_tx_dma()
224 dmaengine_terminate_all(sp->tx_dma.chn); in sprd_stop_tx_dma()
282 dma_des = dmaengine_prep_slave_single(ud->chn, ud->phys_addr, trans_len, in sprd_uart_dma_submit()
294 dma_async_issue_pending(ud->chn); in sprd_uart_dma_submit()
313 ret = dmaengine_slave_config(sp->tx_dma.chn, &cfg); in sprd_tx_dma_config()
384 return dmaengine_slave_config(sp->rx_dma.chn, &cfg); in sprd_rx_dma_config()
405 status = dmaengine_tx_status(sp->rx_dma.chn, in sprd_uart_dma_irq()
[all …]
/kernel/linux/linux-5.10/sound/pci/emu10k1/
Dio.c21 unsigned int snd_emu10k1_ptr_read(struct snd_emu10k1 * emu, unsigned int reg, unsigned int chn) in snd_emu10k1_ptr_read() argument
28 regptr = ((reg << 16) & mask) | (chn & PTR_CHANNELNUM_MASK); in snd_emu10k1_ptr_read()
54 void snd_emu10k1_ptr_write(struct snd_emu10k1 *emu, unsigned int reg, unsigned int chn, unsigned in… in snd_emu10k1_ptr_write() argument
63 regptr = ((reg << 16) & mask) | (chn & PTR_CHANNELNUM_MASK); in snd_emu10k1_ptr_write()
90 unsigned int chn) in snd_emu10k1_ptr20_read() argument
95 regptr = (reg << 16) | chn; in snd_emu10k1_ptr20_read()
106 unsigned int chn, in snd_emu10k1_ptr20_write() argument
112 regptr = (reg << 16) | chn; in snd_emu10k1_ptr20_write()
/kernel/linux/linux-5.10/sound/usb/line6/
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()
/kernel/linux/linux-5.10/drivers/iio/pressure/
Ddlhl60d.c253 unsigned int chn, i = 0; in dlh_trigger_handler() local
260 for_each_set_bit(chn, indio_dev->active_scan_mask, in dlh_trigger_handler()
263 &st->rx_buf[1] + chn * DLH_NUM_DATA_BYTES, in dlh_trigger_handler()
/kernel/linux/linux-5.10/drivers/dma/
Ddma-jz4780.c183 unsigned int chn, unsigned int reg) in jz4780_dma_chn_readl() argument
185 return readl(jzdma->chn_base + reg + JZ_DMA_REG_CHAN(chn)); in jz4780_dma_chn_readl()
189 unsigned int chn, unsigned int reg, uint32_t val) in jz4780_dma_chn_writel() argument
191 writel(val, jzdma->chn_base + reg + JZ_DMA_REG_CHAN(chn)); in jz4780_dma_chn_writel()
207 unsigned int chn) in jz4780_dma_chan_enable() argument
217 jz4780_dma_ctrl_writel(jzdma, reg, BIT(chn)); in jz4780_dma_chan_enable()
222 unsigned int chn) in jz4780_dma_chan_disable() argument
226 jz4780_dma_ctrl_writel(jzdma, JZ_DMA_REG_DCKEC, BIT(chn)); in jz4780_dma_chan_disable()
/kernel/linux/linux-5.10/drivers/clk/imx/
Dclk.c38 unsigned int chn) in imx_mmdc_mask_handshake() argument
43 reg |= chn == 0 ? CCDR_MMDC_CH0_MASK : CCDR_MMDC_CH1_MASK; in imx_mmdc_mask_handshake()

123