/linux/include/uapi/linux/ |
A D | ultrasound.h | 84 #define GUS_NUMVOICES(chn, p1) _GUS_CMD(chn, 0, _GUS_NUMVOICES, (p1), 0) 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 91 #define GUS_VOICEFREQ(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICEFREQ, \ argument 93 #define GUS_VOICEVOL(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEVOL, (p1), 0) argument 97 #define GUS_RAMPMODE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_RAMPMODE, (p1), 0) argument 98 #define GUS_RAMPON(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_RAMPON, (p1), 0) argument 99 #define GUS_RAMPOFF(chn, voice) _GUS_CMD(chn, voice, _GUS_RAMPOFF, 0, 0) argument [all …]
|
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) 1158 _seqbuf[_seqbufptr+3] = (chn);\ 1191 #define SEQ_CHN_PRESSURE(dev, chn, pressure) \ argument 1195 #define SEQ_PGM_CHANGE(dev, chn, patch) \ argument 1198 #define SEQ_CONTROL(dev, chn, controller, value) \ argument [all …]
|
/linux/drivers/pwm/ |
A 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 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() 218 struct sprd_pwm_chn *chn = &spc->chn[i]; in sprd_pwm_clk_init() local 222 chn->clks[j].id = in sprd_pwm_clk_init() 226 chn->clks); in sprd_pwm_clk_init() 235 clk_pwm = chn->clks[SPRD_PWM_CHN_OUTPUT_CLK].clk; in sprd_pwm_clk_init() [all …]
|
/linux/sound/core/seq/oss/ |
A D | seq_oss_event.c | 110 q->n.chn, 0, q->n.note, ev); in old_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() 163 q->e.chn, q->e.p1, val, ev); in extended_event() 177 if (q->v.chn >= 32) in chn_voice_event() 198 if (q->l.chn >= 32) in chn_common_event() 203 q->l.chn, 0, q->l.p1, ev); in chn_common_event() [all …]
|
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/infiniband/hw/qib/ |
A D | qib_sd7220.c | 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 181 chn = 0; in qib_resync_ibepb() 214 ret, chn); in qib_resync_ibepb() 217 if (++chn == 4) in qib_resync_ibepb() 341 for (chn = 3; chn >= 0; --chn) { in qib_sd_trimdone_monitor() 348 chn, where); in qib_sd_trimdone_monitor() 372 for (chn = 3; chn >= 0; --chn) { in qib_sd_trimdone_monitor() 377 chn, where); in qib_sd_trimdone_monitor() [all …]
|
/linux/drivers/thermal/ |
A D | rockchip_thermal.c | 117 int chn, void __iomem *reg, int *temp); 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 199 #define TSADCV2_SHUT_2CRU_SRC_EN(chn) BIT(8 + (chn)) argument 871 int_clr &= ~TSADCV2_INT_SRC_EN(chn); in rk_tsadcv2_alarm_temp() 882 regs + TSADCV2_COMP_INT(chn)); in rk_tsadcv2_alarm_temp() [all …]
|
/linux/sound/core/oss/ |
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() 152 for (chn = 0; chn < 31; 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() 200 int chn; in snd_mixer_oss_get_recsrc() local 201 for (chn = 0; chn < 31; chn++) { in snd_mixer_oss_get_recsrc() 221 int chn, active; in snd_mixer_oss_set_recsrc() local 235 for (chn = 0; chn < 31; chn++) { in snd_mixer_oss_set_recsrc() 243 for (chn = 0; chn < 31; chn++) { in snd_mixer_oss_set_recsrc() [all …]
|
/linux/sound/pci/ice1712/ |
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() 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/include/sound/ |
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,
|
A 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/drivers/iio/adc/ |
A 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/drivers/edac/ |
A D | edac_mc.c | 235 int i, chn, row; in mci_release() local 250 for (chn = 0; chn < mci->num_cschannel; chn++) in mci_release() 265 unsigned int row, chn; in edac_mc_alloc_csrows() local 290 for (chn = 0; chn < tot_channels; chn++) { in edac_mc_alloc_csrows() 298 chan->chan_idx = chn; in edac_mc_alloc_csrows() 309 unsigned int row, chn, idx; in edac_mc_alloc_dimms() local 322 chn = 0; in edac_mc_alloc_dimms() 357 dimm->cschannel = chn; in edac_mc_alloc_dimms() 361 chn++; in edac_mc_alloc_dimms() 363 chn = 0; in edac_mc_alloc_dimms() [all …]
|
/linux/drivers/s390/cio/ |
A D | crw.c | 88 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()
|
A 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()
|
A D | trace.h | 367 __field(u8, chn) 378 __entry->chn = crw->chn; 387 __entry->chn, __entry->rsc, __entry->anc,
|
/linux/drivers/dma/ti/ |
A D | k3-udma-glue.c | 204 struct device *dev = chn->common.dev; in k3_udma_glue_dump_tx_rt_chn() 210 xudma_tchanrt_read(chn->udma_tchanx, in k3_udma_glue_dump_tx_rt_chn() 803 chn->udma_rchan_id, in k3_udma_glue_dump_rx_chn() 804 chn->common.src_thread, in k3_udma_glue_dump_rx_chn() 805 chn->common.dst_thread, in k3_udma_glue_dump_rx_chn() 806 chn->common.epib, in k3_udma_glue_dump_rx_chn() 807 chn->common.hdesc_size, in k3_udma_glue_dump_rx_chn() 808 chn->common.psdata_size, in k3_udma_glue_dump_rx_chn() 809 chn->common.swdata_size, in k3_udma_glue_dump_rx_chn() 810 chn->flow_id_base, in k3_udma_glue_dump_rx_chn() [all …]
|
/linux/drivers/tty/serial/ |
A D | sprd_serial.c | 113 struct dma_chan *chn; member 213 dmaengine_pause(sp->tx_dma.chn); in sprd_stop_tx_dma() 224 dmaengine_terminate_all(sp->tx_dma.chn); in sprd_stop_tx_dma() 294 dma_async_issue_pending(ud->chn); in sprd_uart_dma_submit() 486 dma_release_channel(sp->rx_dma.chn); in sprd_release_dma() 489 dma_release_channel(sp->tx_dma.chn); in sprd_release_dma() 504 if (IS_ERR(sp->tx_dma.chn)) { in sprd_request_dma() 506 PTR_ERR(sp->tx_dma.chn)); in sprd_request_dma() 511 if (IS_ERR(sp->rx_dma.chn)) { in sprd_request_dma() 513 PTR_ERR(sp->rx_dma.chn)); in sprd_request_dma() [all …]
|
/linux/sound/pci/emu10k1/ |
A 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/sound/usb/line6/ |
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/sound/pci/rme9652/ |
A 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/drivers/iio/pressure/ |
A D | dlhl60d.c | 253 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()
|
/linux/drivers/dma/ |
A D | dma-jz4780.c | 183 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()
|
/linux/drivers/clk/imx/ |
A D | clk.c | 38 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()
|
/linux/drivers/scsi/aacraid/ |
A D | linit.c | 393 int chn, tid; in aac_slave_configure() local 400 chn = aac_logical_to_phys(sdev_channel(sdev)); in aac_slave_configure() 402 if (chn < AAC_MAX_BUSES && tid < AAC_MAX_TARGETS && aac->sa_firmware) { in aac_slave_configure() 403 devtype = aac->hba_map[chn][tid].devtype; in aac_slave_configure() 406 depth = aac->hba_map[chn][tid].qd_limit; in aac_slave_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()
|