/openbmc/linux/include/uapi/linux/ |
H 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 …]
|
H 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 …]
|
/openbmc/linux/drivers/pwm/ |
H A D | pwm-sprd.c | 40 struct sprd_pwm_chn chn[SPRD_PWM_CHN_NUM]; member 74 struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; in sprd_pwm_get_state() local 125 struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; in sprd_pwm_config() local 141 tmp = (u64)chn->clk_rate * period_ns; in sprd_pwm_config() 167 struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; in sprd_pwm_apply() local 181 chn->clks); in sprd_pwm_apply() 222 struct sprd_pwm_chn *chn = &spc->chn[i]; in sprd_pwm_clk_init() local 226 chn->clks[j].id = in sprd_pwm_clk_init() 230 chn->clks); in sprd_pwm_clk_init() 239 clk_pwm = chn->clks[SPRD_PWM_CHN_OUTPUT_CLK].clk; in sprd_pwm_clk_init() [all …]
|
/openbmc/linux/drivers/thermal/ |
H A D | rockchip_thermal.c | 174 #define TSADCV2_DATA(chn) (0x20 + (chn) * 0x04) argument 175 #define TSADCV2_COMP_INT(chn) (0x30 + (chn) * 0x04) argument 177 #define TSADCV3_DATA(chn) (0x2c + (chn) * 0x04) argument 178 #define TSADCV3_COMP_INT(chn) (0x6c + (chn) * 0x04) argument 191 #define TSADCV2_AUTO_SRC_EN(chn) BIT(4 + (chn)) argument 192 #define TSADCV3_AUTO_SRC_EN(chn) BIT(chn) argument 193 #define TSADCV3_AUTO_SRC_EN_MASK(chn) BIT(16 + chn) argument 199 #define TSADCV2_INT_SRC_EN(chn) BIT(chn) argument 200 #define TSADCV2_INT_SRC_EN_MASK(chn) BIT(16 + (chn)) argument 201 #define TSADCV2_SHUT_2GPIO_SRC_EN(chn) BIT(4 + (chn)) argument [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | tas2781-comlib.c | 48 unsigned short chn, int book) in tasdevice_change_chn_book() argument 53 if (chn < tas_priv->ndev) { in tasdevice_change_chn_book() 84 chn); in tasdevice_change_chn_book() 96 if (chn < tas_priv->ndev) { in tasdevice_dev_read() 110 chn); in tasdevice_dev_read() 123 if (chn < tas_priv->ndev) { in tasdevice_dev_write() 138 chn); in tasdevice_dev_write() 153 if (chn < tas_priv->ndev) { in tasdevice_dev_bulk_write() 168 chn); in tasdevice_dev_bulk_write() 195 chn); in tasdevice_dev_bulk_read() [all …]
|
H A D | tas2781-fmwlib.c | 586 chn = 0; in tasdevice_process_block() 590 for (; chn < chnend; chn++) { in tasdevice_process_block() 740 chn = 0; in tasdevice_select_cfg_blk() 743 for (; chn < chnend; chn++) in tasdevice_select_cfg_blk() 1539 chn); in tasdev_block_chksum() 1672 chn = 0; in tasdevice_load_block() 1678 chn = 0; in tasdevice_load_block() 1684 chn = 1; in tasdevice_load_block() 1690 chn = 2; in tasdevice_load_block() 1696 chn = 3; in tasdevice_load_block() [all …]
|
/openbmc/qemu/hw/char/ |
H A D | escc.c | 383 if (s->chn == escc_chn_a) { in set_rxint() 406 if (s->chn == escc_chn_a) { in set_txint() 429 if (s->chn == escc_chn_a) { in clr_rxint() 454 if (s->chn == escc_chn_a) { in clr_txint() 548 s = &serial->chn[channel]; in escc_mem_write() 688 s = &serial->chn[channel]; in escc_mem_read() 1010 s->chn[i].chn = 1 - i; in escc_init1() 1012 s->chn[0].otherchn = &s->chn[1]; in escc_init1() 1013 s->chn[1].otherchn = &s->chn[0]; in escc_init1() 1023 s->chn[0].disabled = s->disabled; in escc_realize() [all …]
|
/openbmc/linux/sound/core/seq/oss/ |
H 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 …]
|
H 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
|
/openbmc/linux/drivers/infiniband/hw/qib/ |
H 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 …]
|
/openbmc/linux/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 | 143 unsigned short chn, unsigned int reg, unsigned int *value); 145 unsigned short chn, unsigned int reg, unsigned int value); 147 struct tasdevice_priv *tas_priv, unsigned short chn, 150 unsigned short chn, unsigned int reg, unsigned char *p_data, 153 struct tasdevice_priv *tasdevice, unsigned short chn,
|
/openbmc/linux/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) 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()
|
/openbmc/linux/sound/core/oss/ |
H 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 …]
|
/openbmc/linux/drivers/s390/cio/ |
H A 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()
|
H 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()
|
/openbmc/linux/drivers/iio/adc/ |
H A D | twl6030-gpadc.c | 623 int chn; in twl6030_calibration() local 641 for (chn = 0; chn < TWL6030_GPADC_MAX_CHANNELS; chn++) { in twl6030_calibration() 643 switch (chn) { in twl6030_calibration() 687 twl6030_calibrate_channel(gpadc, chn, d1, d2); in twl6030_calibration() 709 int chn, d1 = 0, d2 = 0, temp; in twl6032_calibration() local 726 for (chn = 0; chn < TWL6032_GPADC_MAX_CHANNELS; chn++) { in twl6032_calibration() 728 switch (chn) { in twl6032_calibration() 795 twl6030_calibrate_channel(gpadc, chn, d1, d2); in twl6032_calibration() 801 #define TWL6030_GPADC_CHAN(chn, _type, chan_info) { \ argument 803 .channel = chn, \
|
H A D | rockchip_saradc.c | 63 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()
|
/openbmc/linux/drivers/edac/ |
H A 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() 213 unsigned int row, chn; in edac_mc_alloc_csrows() local 238 for (chn = 0; chn < tot_channels; chn++) { 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() 305 dimm->cschannel = chn; in edac_mc_alloc_dimms() 309 chn++; in edac_mc_alloc_dimms() 311 chn = 0; in edac_mc_alloc_dimms() [all …]
|
/openbmc/linux/drivers/dma/ti/ |
H A D | k3-udma-glue.c | 205 struct device *dev = chn->common.dev; in k3_udma_glue_dump_tx_rt_chn() 211 xudma_tchanrt_read(chn->udma_tchanx, in k3_udma_glue_dump_tx_rt_chn() 808 chn->udma_rchan_id, in k3_udma_glue_dump_rx_chn() 809 chn->common.src_thread, in k3_udma_glue_dump_rx_chn() 810 chn->common.dst_thread, in k3_udma_glue_dump_rx_chn() 811 chn->common.epib, in k3_udma_glue_dump_rx_chn() 812 chn->common.hdesc_size, in k3_udma_glue_dump_rx_chn() 813 chn->common.psdata_size, in k3_udma_glue_dump_rx_chn() 814 chn->common.swdata_size, in k3_udma_glue_dump_rx_chn() 815 chn->flow_id_base, in k3_udma_glue_dump_rx_chn() [all …]
|
/openbmc/linux/drivers/tty/serial/ |
H A D | sprd_serial.c | 113 struct dma_chan *chn; member 212 dmaengine_pause(sp->tx_dma.chn); in sprd_stop_tx_dma() 222 dmaengine_terminate_all(sp->tx_dma.chn); in sprd_stop_tx_dma() 291 dma_async_issue_pending(ud->chn); in sprd_uart_dma_submit() 483 dma_release_channel(sp->rx_dma.chn); in sprd_release_dma() 486 dma_release_channel(sp->tx_dma.chn); in sprd_release_dma() 501 if (IS_ERR(sp->tx_dma.chn)) { in sprd_request_dma() 503 PTR_ERR(sp->tx_dma.chn)); in sprd_request_dma() 508 if (IS_ERR(sp->rx_dma.chn)) { in sprd_request_dma() 510 PTR_ERR(sp->rx_dma.chn)); in sprd_request_dma() [all …]
|
/openbmc/linux/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) in snd_emu10k1_ptr_read() argument 37 regptr = (reg << 16) | chn; in snd_emu10k1_ptr_read() 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 unsigned int chn, in snd_emu10k1_ptr20_write() argument [all …]
|
/openbmc/qemu/include/hw/char/ |
H A D | escc.h | 44 ESCCChnID chn; /* this channel, A (base+4) or B (base+0) */ member 54 struct ESCCChannelState chn[2]; member
|
/openbmc/linux/sound/usb/line6/ |
H 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()
|
/openbmc/u-boot/drivers/sound/ |
H A D | rockchip_i2s.c | 54 u32 chn = priv->channels; in rockchip_i2s_init() local 71 mode |= (lrf / (bps * chn) - 1) << I2S_MCLK_DIV_SHIFT; in rockchip_i2s_init()
|