/linux-master/sound/core/seq/oss/ |
H A D | seq_oss_event.c | 28 static int note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev); 29 static int note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev); 30 static int set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel, struct snd_seq_event *ev); 31 static int set_control_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int param, int val, struct snd_seq_event *ev); 274 note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev) argument 284 if (! info->ch || ch < 0 || ch >= info->nr_voices) { 286 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); 289 ch 335 note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev) argument 372 set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel, struct snd_seq_event *ev) argument 390 set_control_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int param, int val, struct snd_seq_event *ev) argument [all...] |
/linux-master/drivers/counter/ |
H A D | rz-mtu3-cnt.c | 70 * @ch: HW channels for the counters 78 struct rz_mtu3_channel *ch; member in struct:rz_mtu3_cnt 102 return &priv->ch[ch_id]; 110 pm_runtime_get_sync(priv->ch->dev); 111 tmdr = rz_mtu3_shared_reg_read(priv->ch, RZ_MTU3_TMDR3); 112 pm_runtime_put(priv->ch->dev); 124 struct rz_mtu3_channel *const ch, 130 if (ch->is_busy && !priv->count_is_enabled[id]) { 143 static int rz_mtu3_lock_if_count_is_enabled(struct rz_mtu3_channel *const ch, argument 149 if (ch 123 rz_mtu3_lock_if_counter_is_valid(struct counter_device *counter, struct rz_mtu3_channel *const ch, struct rz_mtu3_cnt *const priv, int id) argument 160 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, count->id); local 182 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, count->id); local 201 rz_mtu3_count_function_read_helper(struct rz_mtu3_channel *const ch, struct rz_mtu3_cnt *const priv, enum counter_function *function) argument 235 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, count->id); local 253 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, count->id); local 294 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, count->id); local 318 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, count->id); local 349 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, count->id); local 410 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, id); local 422 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, id); local 457 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, id); local 475 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, count->id); local 498 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, count->id); local 632 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, count->id); local 839 struct rz_mtu3_channel *ch; local [all...] |
/linux-master/sound/soc/fsl/ |
H A D | fsl_micfil.h | 53 #define MICFIL_CTRL1_CHEN(ch) BIT(ch) 72 #define MICFIL_STAT_CHXF(ch) BIT(ch) 78 #define MICFIL_FIFO_STAT_FIFOX_OVER(ch) BIT(ch) 79 #define MICFIL_FIFO_STAT_FIFOX_UNDER(ch) BIT((ch) + 8) 83 #define MICFIL_DC_CHX_SHIFT(ch) ((ch) << [all...] |
/linux-master/arch/powerpc/boot/ |
H A D | serial.c | 37 char ch, *cp; local 47 while (((ch = scdp->getc()) != '\n') && (ch != '\r')) { 49 if ((ch == '\b') || (ch == '\177')) { 56 } else if ((ch == '\030') || (ch == '\025')) { 63 *cp++ = ch; 65 scdp->putc(ch);
|
/linux-master/drivers/gpu/ipu-v3/ |
H A D | ipu-prv.h | 53 #define IPU_CHA_DB_MODE_SEL(ch) IPU_CM_REG(0x0150 + 4 * ((ch) / 32)) 54 #define IPU_ALT_CHA_DB_MODE_SEL(ch) IPU_CM_REG(0x0168 + 4 * ((ch) / 32)) 55 #define IPU_CHA_CUR_BUF(ch) IPU_CM_REG(0x023C + 4 * ((ch) / 32)) 61 #define IPU_CHA_BUF0_RDY(ch) IPU_CM_REG(0x0268 + 4 * ((ch) / 32)) 62 #define IPU_CHA_BUF1_RDY(ch) IPU_CM_REG(0x0270 + 4 * ((ch) / 3 [all...] |
/linux-master/drivers/media/platform/ti/davinci/ |
H A D | vpif_capture.c | 46 static void vpif_calculate_offsets(struct channel_obj *ch); 47 static void vpif_config_addr(struct channel_obj *ch, int muxmode); 72 struct channel_obj *ch = vb2_get_drv_priv(q); local 78 common = &ch->common[VPIF_VIDEO_INDEX]; 113 struct channel_obj *ch = vb2_get_drv_priv(vq); local 114 struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX]; 133 vpif_calculate_offsets(ch); 145 struct channel_obj *ch = vb2_get_drv_priv(vb->vb2_queue); local 150 common = &ch->common[VPIF_VIDEO_INDEX]; 169 struct channel_obj *ch local 259 struct channel_obj *ch = vb2_get_drv_priv(vq); local 372 struct channel_obj *ch; local 460 vpif_update_std_info(struct channel_obj *ch) argument 558 vpif_calculate_offsets(struct channel_obj *ch) argument 627 vpif_config_addr(struct channel_obj *ch, int muxmode) argument 689 vpif_set_input( struct vpif_capture_config *vpif_cfg, struct channel_obj *ch, int index) argument 754 struct channel_obj *ch = video_get_drvdata(vdev); local 782 struct channel_obj *ch = video_get_drvdata(vdev); local 810 struct channel_obj *ch = video_get_drvdata(vdev); local 860 struct channel_obj *ch = video_get_drvdata(vdev); local 882 struct channel_obj *ch = video_get_drvdata(vdev); local 898 struct channel_obj *ch = video_get_drvdata(vdev); local 923 struct channel_obj *ch = video_get_drvdata(vdev); local 948 struct channel_obj *ch = video_get_drvdata(vdev); local 985 struct channel_obj *ch = video_get_drvdata(vdev); local 1041 struct channel_obj *ch = video_get_drvdata(vdev); local 1088 struct channel_obj *ch = video_get_drvdata(vdev); local 1122 struct channel_obj *ch = video_get_drvdata(vdev); local 1153 struct channel_obj *ch = video_get_drvdata(vdev); local 1252 struct channel_obj *ch = video_get_drvdata(vdev); local 1401 struct channel_obj *ch; local 1720 struct channel_obj *ch; local 1747 struct channel_obj *ch; local 1781 struct channel_obj *ch; local [all...] |
/linux-master/drivers/gpu/drm/bridge/imx/ |
H A D | imx8qxp-pixel-combiner.c | 71 struct imx8qxp_pc_channel ch[2]; member in struct:imx8qxp_pc 113 struct imx8qxp_pc_channel *ch = bridge->driver_private; local 114 struct imx8qxp_pc *pc = ch->pc; 128 ch->next_bridge, bridge, 137 struct imx8qxp_pc_channel *ch = bridge->driver_private; local 138 struct imx8qxp_pc *pc = ch->pc; 154 PC_DISP_HSYNC_POLARITY(ch->stream_id)); 158 PC_DISP_VSYNC_POLARITY(ch->stream_id)); 162 PC_DISP_DVALID_POLARITY(ch->stream_id)); 169 if (ch 188 struct imx8qxp_pc_channel *ch = bridge->driver_private; local 278 struct imx8qxp_pc_channel *ch; local 363 struct imx8qxp_pc_channel *ch; local [all...] |
/linux-master/drivers/iio/adc/ |
H A D | ad7606_spi.c | 30 #define AD7616_RANGE_CH_ADDR(ch) ((ch) >> 2) 32 #define AD7616_RANGE_CH_MSK(ch) (0b11 << (((ch) & 0b11) * 2)) 33 #define AD7616_RANGE_CH_MODE(ch, mode) ((mode) << ((((ch) & 0b11)) * 2)) 42 #define AD7606_RANGE_CH_MSK(ch) (GENMASK(3, 0) << (4 * ((ch) & 0x1))) 43 #define AD7606_RANGE_CH_MODE(ch, mode) \ 44 ((GENMASK(3, 0) & mode) << (4 * ((ch) 176 ad7616_write_scale_sw(struct iio_dev *indio_dev, int ch, int val) argument 212 ad7606_write_scale_sw(struct iio_dev *indio_dev, int ch, int val) argument [all...] |
H A D | ad7091r-base.h | 17 #define AD7091R_REG_CH_LOW_LIMIT(ch) ((ch) * 3 + 4) 18 #define AD7091R_REG_CH_HIGH_LIMIT(ch) ((ch) * 3 + 5) 19 #define AD7091R_REG_CH_HYSTERESIS(ch) ((ch) * 3 + 6)
|
/linux-master/tools/perf/tests/ |
H A D | api-io.c | 92 int ch, ret = 0; local 99 ch = io__get_char(&io); 101 EXPECT_EQUAL(ch, test_string[i]); 104 ch = io__get_char(&io); 105 EXPECT_EQUAL(ch, -1); 139 int ch, ret = 0; local 145 ch = io__get_hex(&io, &hex); 147 EXPECT_EQUAL(ch, ch1); 149 ch = io__get_hex(&io, &hex); 151 EXPECT_EQUAL(ch, ch 220 int ch, ret = 0; local [all...] |
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | dvo_sil164.c | 73 static bool sil164_readb(struct intel_dvo_device *dvo, int addr, u8 *ch) argument 99 *ch = in_buf[0]; 110 static bool sil164_writeb(struct intel_dvo_device *dvo, int addr, u8 ch) argument 123 out_buf[1] = ch; 142 unsigned char ch; local 152 if (!sil164_readb(dvo, SIL164_VID_LO, &ch)) 155 if (ch != (SIL164_VID & 0xff)) { 157 ch, adapter->name, dvo->slave_addr); 161 if (!sil164_readb(dvo, SIL164_DID_LO, &ch)) 164 if (ch ! 225 unsigned char ch; local 242 unsigned char ch; local [all...] |
/linux-master/arch/sparc/prom/ |
H A D | printf.c | 41 char ch = *buf++; local 42 if (ch == '\n') { 46 *dest++ = ch;
|
/linux-master/net/sctp/ |
H A D | stream_sched_rr.c | 101 struct sctp_chunk *ch; local 104 ch = list_first_entry(&msg->chunks, struct sctp_chunk, frag_list); 105 sid = sctp_chunk_stream_no(ch); 114 struct sctp_chunk *ch = NULL; local 125 ch = list_entry(soute->outq.next, struct sctp_chunk, stream_list); 127 sctp_sched_dequeue_common(q, ch); 130 return ch; 134 struct sctp_chunk *ch) 140 sid = sctp_chunk_stream_no(ch); 153 struct sctp_chunk *ch; local 133 sctp_sched_rr_dequeue_done(struct sctp_outq *q, struct sctp_chunk *ch) argument [all...] |
H A D | stream_sched.c | 61 struct sctp_chunk *ch = NULL; local 68 ch = list_entry(stream->out_curr->ext->outq.next, 72 ch = list_entry(entry, struct sctp_chunk, list); 75 sctp_sched_dequeue_common(q, ch); 78 return ch; 154 struct sctp_chunk *ch; local 179 list_for_each_entry(ch, &asoc->outqueue.out_chunk_list, list) { 180 if (ch->msg == msg) 182 msg = ch->msg; 235 void sctp_sched_dequeue_done(struct sctp_outq *q, struct sctp_chunk *ch) argument 257 sctp_sched_dequeue_common(struct sctp_outq *q, struct sctp_chunk *ch) argument [all...] |
/linux-master/sound/pci/emu10k1/ |
H A D | emu10k1_callback.c | 92 int ch; local 94 ch = vp->ch; 95 if (ch < 0) { 98 "synth_get_voice: ch < 0 (%d) ??", i); 103 vp->ch = -1; 105 return ch; 123 snd_emu10k1_ptr_write_multiple(hw, vp->ch, 141 snd_emu10k1_ptr_write_multiple(hw, vp->ch, 169 if (hw && (vp->ch > 312 int ch; local [all...] |
/linux-master/drivers/staging/rtl8723bs/os_dep/ |
H A D | wifi_regd.c | 64 struct ieee80211_channel *ch; local 75 ch = &sband->channels[j]; 77 if (ch) 78 ch->flags = IEEE80211_CHAN_DISABLED; 90 ch = ieee80211_get_channel(wiphy, freq); 91 if (ch) { 93 ch->flags = IEEE80211_CHAN_NO_IR; 95 ch->flags = 0;
|
/linux-master/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_xdp.c | 12 struct stmmac_channel *ch = &priv->channel[queue]; local 37 napi_disable(&ch->rx_napi); 38 napi_disable(&ch->tx_napi); 48 napi_enable(&ch->rxtx_napi); 60 struct stmmac_channel *ch = &priv->channel[queue]; local 75 napi_disable(&ch->rxtx_napi); 88 napi_enable(&ch->rx_napi); 89 napi_enable(&ch->tx_napi);
|
/linux-master/sound/isa/sb/ |
H A D | emu8000_callback.c | 22 static void reset_voice(struct snd_emux *emu, int ch); 39 static void snd_emu8000_tweak_voice(struct snd_emu8000 *emu, int ch); 90 EMU8000_DCYSUS_WRITE(hw, vp->ch, dcysusv); 92 EMU8000_DCYSUSV_WRITE(hw, vp->ch, dcysusv); 104 EMU8000_DCYSUSV_WRITE(hw, vp->ch, 0x807F); 140 * The channel index (vp->ch) must be initialized in this routine. 183 val = (EMU8000_CVCF_READ(hw, vp->ch) >> 16) & 0xffff; 195 val = EMU8000_CCCA_READ(hw, vp->ch) & 0xffffff; 209 vp->ch = best[i].voice; 224 int ch; local 303 int ch = vp->ch; local 323 reset_voice(struct snd_emux *emu, int ch) argument [all...] |
/linux-master/drivers/gpio/ |
H A D | gpio-ml-ioh.c | 74 * @ch: Indicate GPIO channel 85 int ch; member in struct:ioh_gpio 99 reg_val = ioread32(&chip->reg->regs[chip->ch].po); 105 iowrite32(reg_val, &chip->reg->regs[chip->ch].po); 113 return !!(ioread32(&chip->reg->regs[chip->ch].pi) & BIT(nr)); 125 pm = ioread32(&chip->reg->regs[chip->ch].pm); 126 pm &= BIT(num_ports[chip->ch]) - 1; 128 iowrite32(pm, &chip->reg->regs[chip->ch].pm); 130 reg_val = ioread32(&chip->reg->regs[chip->ch].po); 135 iowrite32(reg_val, &chip->reg->regs[chip->ch] 239 int ch; local [all...] |
/linux-master/drivers/dma/ |
H A D | mcf-edma-main.c | 21 unsigned int ch; local 30 for (ch = 0; ch < mcf_edma->n_chans; ch++) { 31 if (intmap & BIT(ch)) { 32 iowrite8(EDMA_MASK_CH(ch), regs->cint); 33 fsl_edma_tx_chan_handler(&mcf_edma->chans[ch]); 44 unsigned int err, ch; local 50 for (ch = 0; ch < (EDMA_CHANNEL [all...] |
/linux-master/drivers/hwmon/ |
H A D | gsc-hwmon.c | 150 const struct gsc_hwmon_channel *ch; local 157 ch = hwmon->in_ch[channel]; 160 ch = hwmon->temp_ch[channel]; 163 ch = hwmon->fan_ch[channel]; 169 sz = (ch->mode == mode_voltage_24bit) ? 3 : 2; 170 ret = regmap_bulk_read(hwmon->regmap, ch->reg, buf, sz); 178 switch (ch->mode) { 190 if (ch->vdiv[0] && ch->vdiv[1]) { 191 tmp *= (ch 235 gsc_hwmon_is_visible(const void *_data, enum hwmon_sensor_types type, u32 attr, int ch) argument 251 struct gsc_hwmon_channel *ch; local 343 const struct gsc_hwmon_channel *ch = &pdata->channels[i]; local [all...] |
/linux-master/drivers/media/pci/cx25821/ |
H A D | cx25821-core.c | 418 const struct sram_channel *ch, 424 if (ch->cmds_start == 0) { 425 cx_write(ch->ptr1_reg, 0); 426 cx_write(ch->ptr2_reg, 0); 427 cx_write(ch->cnt2_reg, 0); 428 cx_write(ch->cnt1_reg, 0); 433 cdt = ch->cdt; 434 lines = ch->fifo_size / bpl; 447 cx_write(cdt + 16 * i, ch->fifo_start + bpl * i); 455 cx_write(ch 417 cx25821_sram_channel_setup(struct cx25821_dev *dev, const struct sram_channel *ch, unsigned int bpl, u32 risc) argument 485 cx25821_sram_channel_setup_audio(struct cx25821_dev *dev, const struct sram_channel *ch, unsigned int bpl, u32 risc) argument 552 cx25821_sram_channel_dump(struct cx25821_dev *dev, const struct sram_channel *ch) argument 613 cx25821_sram_channel_dump_audio(struct cx25821_dev *dev, const struct sram_channel *ch) argument 761 cx25821_set_vip_mode(struct cx25821_dev *dev, const struct sram_channel *ch) argument [all...] |
/linux-master/drivers/pwm/ |
H A D | pwm-rz-mtu3.c | 135 unsigned int ch; local 137 for (ch = 0; ch < RZ_MTU3_MAX_HW_CHANNELS; ch++, priv++) { 170 u32 ch; local 173 ch = priv - rz_mtu3_pwm->channel_data; 181 if (!rz_mtu3_pwm->user_count[ch]) { 189 rz_mtu3_pwm->user_count[ch]++; 199 u32 ch; local 202 ch 216 u32 ch; local 248 u32 ch; local 328 u32 ch; local [all...] |
/linux-master/sound/core/ |
H A D | vmaster.c | 60 int err, ch; local 69 for (ch = 0; ch < follower->info.count; ch++) 70 follower->vals[ch] = uctl->value.integer.value[ch]; 134 int err, ch; local 139 for (ch = 0; ch < follower->info.count; ch 147 int err, ch, vol; local 196 int err, ch, changed = 0; local [all...] |
/linux-master/drivers/gpu/host1x/hw/ |
H A D | channel_hw.c | 191 static void host1x_enable_gather_filter(struct host1x_channel *ch) argument 194 struct host1x *host = dev_get_drvdata(ch->dev->parent); 201 host, HOST1X_HV_CH_KERNEL_FILTER_GBUFFER(ch->id / 32)); 202 val |= BIT(ch->id % 32); 204 host, val, HOST1X_HV_CH_KERNEL_FILTER_GBUFFER(ch->id / 32)); 206 host1x_ch_writel(ch, 289 struct host1x_channel *ch = job->channel; local 294 struct host1x *host = dev_get_drvdata(ch->dev->parent); 296 trace_host1x_channel_submit(dev_name(ch->dev), 304 err = mutex_lock_interruptible(&ch 349 host1x_channel_init(struct host1x_channel *ch, struct host1x *dev, unsigned int index) argument [all...] |