/linux-6.1.9/include/uapi/linux/ |
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 …]
|
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-6.1.9/drivers/pwm/ |
D | pwm-sprd.c | 39 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 177 chn->clks); in sprd_pwm_apply() [all …]
|
/linux-6.1.9/sound/core/seq/oss/ |
D | seq_oss_event.c | 99 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 …]
|
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-6.1.9/drivers/thermal/ |
D | rockchip_thermal.c | 117 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 …]
|
/linux-6.1.9/drivers/infiniband/hw/qib/ |
D | qib_sd7220.c | 88 #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 …]
|
/linux-6.1.9/sound/core/oss/ |
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() 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 …]
|
/linux-6.1.9/include/sound/ |
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,
|
D | wavefront.h | 415 #define WF_SET_CHANNEL(samp,chn) \ argument 416 (samp)->Unused1 = chn & 0x1; \ 417 (samp)->Unused2 = chn & 0x2; \ 418 (samp)->Unused3 = chn & 0x4
|
/linux-6.1.9/sound/pci/ice1712/ |
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() 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()
|
/linux-6.1.9/drivers/s390/cio/ |
D | crw.c | 87 tmp_crw.chn, tmp_crw.rsc, tmp_crw.anc, in crw_collect_info() 93 chain = tmp_crw.chn ? chain + 1 : 0; in crw_collect_info() 101 crw[chain].slct, crw[chain].oflw, crw[chain].chn, in crw_collect_info() 118 if (crw[0].chn && !chain) { in crw_collect_info() 128 chain = crw[chain].chn ? chain + 1 : 0; in crw_collect_info()
|
D | cio_inject.c | 88 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()
|
D | trace.h | 367 __field(u8, chn) 378 __entry->chn = crw->chn; 387 __entry->chn, __entry->rsc, __entry->anc,
|
/linux-6.1.9/drivers/iio/adc/ |
D | twl6030-gpadc.c | 611 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, \
|
/linux-6.1.9/drivers/edac/ |
D | edac_mc.c | 181 int i, chn, row; in mci_release() local 196 for (chn = 0; chn < mci->num_cschannel; chn++) in mci_release() 197 kfree(csr->channels[chn]); in mci_release() 213 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-6.1.9/drivers/dma/ti/ |
D | k3-udma-glue.c | 201 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 204 struct device *dev = chn->common.dev; in k3_udma_glue_dump_tx_rt_chn() 208 xudma_tchanrt_read(chn->udma_tchanx, UDMA_CHAN_RT_CTL_REG)); in k3_udma_glue_dump_tx_rt_chn() 210 xudma_tchanrt_read(chn->udma_tchanx, in k3_udma_glue_dump_tx_rt_chn() 213 xudma_tchanrt_read(chn->udma_tchanx, UDMA_CHAN_RT_PCNT_REG)); in k3_udma_glue_dump_tx_rt_chn() 215 xudma_tchanrt_read(chn->udma_tchanx, UDMA_CHAN_RT_BCNT_REG)); in k3_udma_glue_dump_tx_rt_chn() 217 xudma_tchanrt_read(chn->udma_tchanx, UDMA_CHAN_RT_SBCNT_REG)); in k3_udma_glue_dump_tx_rt_chn() 790 static void k3_udma_glue_dump_rx_chn(struct k3_udma_glue_rx_channel *chn) in k3_udma_glue_dump_rx_chn() argument 792 struct device *dev = chn->common.dev; in k3_udma_glue_dump_rx_chn() 804 chn->udma_rchan_id, in k3_udma_glue_dump_rx_chn() [all …]
|
/linux-6.1.9/drivers/tty/serial/ |
D | sprd_serial.c | 113 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 …]
|
/linux-6.1.9/sound/pci/emu10k1/ |
D | io.c | 21 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()
|
/linux-6.1.9/sound/usb/line6/ |
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-6.1.9/drivers/iio/pressure/ |
D | dlhl60d.c | 252 unsigned int chn, i = 0; in dlh_trigger_handler() local 259 for_each_set_bit(chn, indio_dev->active_scan_mask, in dlh_trigger_handler() 262 &st->rx_buf[1] + chn * DLH_NUM_DATA_BYTES, in dlh_trigger_handler()
|
/linux-6.1.9/drivers/clk/imx/ |
D | clk.c | 41 unsigned int chn) in imx_mmdc_mask_handshake() argument 46 reg |= chn == 0 ? CCDR_MMDC_CH0_MASK : CCDR_MMDC_CH1_MASK; in imx_mmdc_mask_handshake()
|
/linux-6.1.9/drivers/dma/ |
D | dma-jz4780.c | 185 unsigned int chn, unsigned int reg) in jz4780_dma_chn_readl() argument 187 return readl(jzdma->chn_base + reg + JZ_DMA_REG_CHAN(chn)); in jz4780_dma_chn_readl() 191 unsigned int chn, unsigned int reg, u32 val) in jz4780_dma_chn_writel() argument 193 writel(val, jzdma->chn_base + reg + JZ_DMA_REG_CHAN(chn)); in jz4780_dma_chn_writel() 209 unsigned int chn) in jz4780_dma_chan_enable() argument 219 jz4780_dma_ctrl_writel(jzdma, reg, BIT(chn)); in jz4780_dma_chan_enable() 224 unsigned int chn) in jz4780_dma_chan_disable() argument 228 jz4780_dma_ctrl_writel(jzdma, JZ_DMA_REG_DCKEC, BIT(chn)); in jz4780_dma_chan_disable()
|
/linux-6.1.9/sound/pci/rme9652/ |
D | rme9652.c | 1245 unsigned int chn; in snd_rme9652_put_thru() local 1251 for (chn = 0; chn < rme9652->ss_channels; ++chn) { in snd_rme9652_put_thru() 1252 if (ucontrol->value.integer.value[chn]) in snd_rme9652_put_thru() 1253 thru_bits |= 1 << chn; in snd_rme9652_put_thru() 1259 for (chn = 0; chn < rme9652->ss_channels; ++chn) { in snd_rme9652_put_thru() 1260 if (!(change & (1 << chn))) in snd_rme9652_put_thru() 1262 rme9652_set_thru(rme9652,chn,thru_bits&(1<<chn)); in snd_rme9652_put_thru() 2030 int chn; in snd_rme9652_channel_info() local 2035 chn = rme9652->channel_map[array_index_nospec(info->channel, in snd_rme9652_channel_info() 2037 if (chn < 0) in snd_rme9652_channel_info() [all …]
|
/linux-6.1.9/arch/s390/include/asm/ |
D | crw.h | 22 __u32 chn : 1; /* chained */ member
|