Home
last modified time | relevance | path

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

12

/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) /* 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 …]
H A 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 …]
/linux/drivers/pwm/
H A Dpwm-sprd.c36 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
83 ret = clk_bulk_prepare_enable(SPRD_PWM_CHN_CLKS_NUM, chn->clks); in sprd_pwm_get_state()
107 state->period = DIV_ROUND_CLOSEST_ULL(tmp, chn->clk_rate); in sprd_pwm_get_state()
112 state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, chn->clk_rate); in sprd_pwm_get_state()
117 clk_bulk_disable_unprepare(SPRD_PWM_CHN_CLKS_NUM, chn->clks); in sprd_pwm_get_state()
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()
166 struct sprd_pwm_chn *chn = &spc->chn[pwm->hwpwm]; in sprd_pwm_apply() local
180 chn->clks); in sprd_pwm_apply()
[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()
37 TAS_REG_ERR_LOG(tas_priv->dev, chn, reg, ret); 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()
65 TAS_REG_ERR_LOG(tas_priv->dev, chn, reg, ret); in tasdevice_dev_bulk_read()
68 chn); in tasdevice_dev_bulk_read()
76 tasdevice_dev_write(struct tasdevice_priv * tas_priv,unsigned short chn,unsigned int reg,unsigned int value) tasdevice_dev_write() argument
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-fmwlib.c900 int subblk_offset, chn, chnend, rc; in tasdevice_process_block()
907 chn = idx - 1; in tasdevice_process_block()
911 chn = tas_priv->index; in tasdevice_process_block()
912 chnend = chn + 1; in tasdevice_process_block()
914 chn = 0; in tasdevice_process_block()
919 for (; chn < chnend; chn++) { in tasdevice_process_block()
920 if (tas_priv->tasdevice[chn].is_loading == false) in tasdevice_process_block()
939 rc = tasdevice_dev_write(tas_priv, chn, in tasdevice_process_block()
972 rc = tasdevice_dev_bulk_write(tas_priv, chn, in tasdevice_process_block()
881 int subblk_offset, chn, chnend, rc; tasdevice_process_block() local
1026 int j, k, chn, chnend; tasdevice_select_cfg_blk() local
1562 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
1678 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
1710 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
1746 tasdev_block_chksum(struct tasdevice_priv * tas_priv,struct tasdev_blk * block,int chn) tasdev_block_chksum() argument
1779 tasdev_load_blk(struct tasdevice_priv * tas_priv,struct tasdev_blk * block,int chn) tasdev_load_blk() argument
1899 int chn = 0; tasdevice_load_block() local
2106 int chn, k; calbin_conversion() local
[all...]
/linux/drivers/thermal/
H A Drockchip_thermal.c112 int chn, void __iomem *reg, int *temp);
114 int chn, void __iomem *reg, int temp);
116 int chn, void __iomem *reg, int temp);
117 void (*set_tshut_mode)(int chn, void __iomem *reg, enum tshut_mode m);
199 #define TSADCV2_DATA(chn) (0x20 + (chn) * 0x04) argument
200 #define TSADCV2_COMP_INT(chn) (0x30 + (chn) * 0x04) argument
201 #define TSADCV2_COMP_SHUT(chn) (0x40 + (chn) * argument
202 TSADCV3_DATA(chn) global() argument
203 TSADCV3_COMP_INT(chn) global() argument
204 TSADCV3_COMP_SHUT(chn) global() argument
216 TSADCV2_AUTO_SRC_EN(chn) global() argument
217 TSADCV3_AUTO_SRC_EN(chn) global() argument
218 TSADCV3_AUTO_SRC_EN_MASK(chn) global() argument
224 TSADCV2_INT_SRC_EN(chn) global() argument
225 TSADCV2_INT_SRC_EN_MASK(chn) global() argument
226 TSADCV2_SHUT_2GPIO_SRC_EN(chn) global() argument
227 TSADCV2_SHUT_2CRU_SRC_EN(chn) global() argument
941 rk_tsadcv2_get_temp(const struct chip_tsadc_table * table,int chn,void __iomem * regs,int * temp) rk_tsadcv2_get_temp() argument
951 rk_tsadcv4_get_temp(const struct chip_tsadc_table * table,int chn,void __iomem * regs,int * temp) rk_tsadcv4_get_temp() argument
961 rk_tsadcv2_alarm_temp(const struct chip_tsadc_table * table,int chn,void __iomem * regs,int temp) rk_tsadcv2_alarm_temp() argument
995 rk_tsadcv3_alarm_temp(const struct chip_tsadc_table * table,int chn,void __iomem * regs,int temp) rk_tsadcv3_alarm_temp() argument
1022 rk_tsadcv2_tshut_temp(const struct chip_tsadc_table * table,int chn,void __iomem * regs,int temp) rk_tsadcv2_tshut_temp() argument
1041 rk_tsadcv3_tshut_temp(const struct chip_tsadc_table * table,int chn,void __iomem * regs,int temp) rk_tsadcv3_tshut_temp() argument
1059 rk_tsadcv2_tshut_mode(int chn,void __iomem * regs,enum tshut_mode mode) rk_tsadcv2_tshut_mode() argument
1076 rk_tsadcv4_tshut_mode(int chn,void __iomem * regs,enum tshut_mode mode) rk_tsadcv4_tshut_mode() argument
1699 u32 chn; rockchip_thermal_probe() local
[all...]
/linux/sound/core/oss/
H A Dmixer_oss.c127 int result = 0, chn; in snd_mixer_oss_devmask() local
132 for (chn = 0; chn < 31; chn++) { in snd_mixer_oss_devmask()
133 pslot = &mixer->slots[chn]; in snd_mixer_oss_devmask()
135 result |= 1 << chn; in snd_mixer_oss_devmask()
144 int result = 0, chn; in snd_mixer_oss_stereodevs() local
149 for (chn = 0; chn < 31; chn in snd_mixer_oss_stereodevs()
169 int chn; snd_mixer_oss_recmask() local
195 int chn; snd_mixer_oss_get_recsrc() local
214 int chn, active; snd_mixer_oss_set_recsrc() local
913 snd_mixer_oss_slot_free(struct snd_mixer_oss_slot * chn) snd_mixer_oss_slot_free() argument
1300 struct snd_mixer_oss_slot *chn = &mixer->slots[idx]; snd_mixer_oss_free1() local
[all...]
/linux/include/sound/
H A Dtas2781.h52 #define TAS_REG_ERR_LOG(dev, chn, reg, ret) \
54 __func__, chn, TASDEVICE_BOOK_ID(reg), \
287 unsigned short chn, int book);
289 unsigned short chn, unsigned int reg, unsigned int mask,
292 unsigned short chn, unsigned int reg, unsigned int *value);
294 unsigned short chn, unsigned int reg, unsigned char *p_data,
299 unsigned short chn, unsigned int reg, unsigned int *value);
301 unsigned short chn, unsigned int reg, unsigned char *p_data,
304 unsigned short chn, unsigned int reg, unsigned int value);
306 struct tasdevice_priv *tas_priv, unsigned short chn,
[all...]
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/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()
154 int box, chn; in hoontech_init() local
233 for (chn = 0; chn < 4; chn++) in hoontech_init()
234 snd_ice1712_stdsp24_box_channel(ice, box, chn, in hoontech_init()
235 (spec->boxconfig[box] & (1 << chn)) ? 1 : 0); in hoontech_init()
/linux/sound/core/seq/oss/
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/drivers/iio/adc/
H A Dtwl6030-gpadc.c623 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()
801 TWL6030_GPADC_CHAN(chn,_type,chan_info) global() argument
[all...]
/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()
213 unsigned int row, chn; in edac_mc_alloc_csrows() local
237 for (chn = 0; chn < tot_channels; chn++) { in edac_mc_alloc_csrows()
244 csr->channels[chn] = chan; in edac_mc_alloc_csrows()
245 chan->chan_idx = chn; in edac_mc_alloc_csrows()
256 unsigned int row, chn, idx; in edac_mc_alloc_dimms() local
269 chn = 0; in edac_mc_alloc_dimms()
275 chan = mci->csrows[row]->channels[chn]; in edac_mc_alloc_dimms()
[all …]
/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/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/hda/codecs/side-codecs/
H A Dtas2781_hda_spi.c77 unsigned short chn, unsigned int reg, unsigned int *val) in tasdevice_spi_dev_read() argument
89 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, in tasdevice_spi_dev_read()
93 ret = tasdevice_dev_read(tas_priv, chn, reg, val); in tasdevice_spi_dev_read()
102 unsigned short chn, unsigned int reg, unsigned char *data, in tasdevice_spi_dev_bulk_read() argument
115 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, in tasdevice_spi_dev_bulk_read()
119 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, data, len); in tasdevice_spi_dev_bulk_read()
128 unsigned short chn, unsigned int reg, unsigned int mask, in tasdevice_spi_dev_update_bits() argument
141 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, buf, 2); in tasdevice_spi_dev_update_bits()
144 ret = tasdevice_dev_read(tas_priv, chn, reg, &val); in tasdevice_spi_dev_update_bits()
151 ret = tasdevice_dev_write(tas_priv, chn, TASDEVICE_PAGE_RE in tasdevice_spi_dev_update_bits()
160 tasdevice_spi_change_chn_book(struct tasdevice_priv * p,unsigned short chn,int book) 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()
/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_common.c219 int emac_tx_complete_packets(struct prueth_emac *emac, int chn, in emac_tx_complete_packets() argument
235 tx_chn = &emac->tx_chns[chn]; in emac_tx_complete_packets()
282 netif_txq = netdev_get_tx_queue(ndev, chn); in emac_tx_complete_packets()
307 emac_xsk_xmit_zc(emac, chn); in emac_tx_complete_packets()
1492 struct prueth_rx_chn *chn, in prueth_prepare_rx_chan() argument
1499 desc_avail = k3_cppi_desc_pool_avail(chn->desc_pool); in prueth_prepare_rx_chan()
1500 if (desc_avail < chn->descs_num) in prueth_prepare_rx_chan()
1503 desc_avail, chn->descs_num); in prueth_prepare_rx_chan()
1505 if (chn->xsk_pool) { in prueth_prepare_rx_chan()
1518 page = page_pool_dev_alloc_pages(chn->pg_pool); in prueth_prepare_rx_chan()
[all …]
/linux/drivers/dma/
H A Ddma-jz4780.c184 unsigned int chn, unsigned int reg) in jz4780_dma_chn_readl() argument
186 return readl(jzdma->chn_base + reg + JZ_DMA_REG_CHAN(chn)); in jz4780_dma_chn_readl()
190 unsigned int chn, unsigned int reg, u32 val) in jz4780_dma_chn_writel() argument
192 writel(val, jzdma->chn_base + reg + JZ_DMA_REG_CHAN(chn)); in jz4780_dma_chn_writel()
208 unsigned int chn) in jz4780_dma_chan_enable() argument
218 jz4780_dma_ctrl_writel(jzdma, reg, BIT(chn)); in jz4780_dma_chan_enable()
223 unsigned int chn) in jz4780_dma_chan_disable() argument
227 jz4780_dma_ctrl_writel(jzdma, JZ_DMA_REG_DCKEC, BIT(chn)); in jz4780_dma_chan_disable()
/linux/drivers/clk/imx/
H A Dclk.c33 unsigned int chn) in imx_mmdc_mask_handshake() argument
38 reg |= chn == 0 ? CCDR_MMDC_CH0_MASK : CCDR_MMDC_CH1_MASK; in imx_mmdc_mask_handshake()
/linux/drivers/s390/cio/
H A Dtrace.h367 __field(u8, chn)
378 __entry->chn = crw->chn;
387 __entry->chn, __entry->rsc, __entry->anc,
/linux/arch/s390/include/asm/
H A Dcrw.h22 __u32 chn : 1; /* chained */ member
/linux/drivers/scsi/aacraid/
H A Dlinit.c393 int chn, tid; in aac_sdev_configure() local
400 chn = aac_logical_to_phys(sdev_channel(sdev)); in aac_sdev_configure()
402 if (chn < AAC_MAX_BUSES && tid < AAC_MAX_TARGETS && aac->sa_firmware) { in aac_sdev_configure()
403 devtype = aac->hba_map[chn][tid].devtype; in aac_sdev_configure()
406 depth = aac->hba_map[chn][tid].qd_limit; in aac_sdev_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()

12