Searched refs:ch (Results 376 - 400 of 1048) sorted by relevance

<<11121314151617181920>>

/linux-master/drivers/net/ethernet/netronome/nfp/flower/
H A Dcmsg.c25 struct nfp_flower_cmsg_hdr *ch; local
34 ch = nfp_flower_cmsg_get_hdr(skb);
35 ch->pad = 0;
36 ch->version = NFP_FLOWER_CMSG_VER1;
37 ch->type = type;
/linux-master/drivers/thermal/tegra/
H A Dtegra-bpmp-thermal.c110 static void bpmp_mrq_thermal(unsigned int mrq, struct tegra_bpmp_channel *ch, argument
119 iosys_map_memcpy_from(&req, &ch->ib, offset, sizeof(req));
123 tegra_bpmp_mrq_return(ch, -EINVAL, NULL, 0);
132 tegra_bpmp_mrq_return(ch, 0, NULL, 0);
138 tegra_bpmp_mrq_return(ch, -EINVAL, NULL, 0);
/linux-master/drivers/iio/dac/
H A Dstm32-dac.c26 #define STM32_DAC_IS_CHAN_1(ch) ((ch) & STM32_DAC_CHANNEL_1)
58 static int stm32_dac_set_enable_state(struct iio_dev *indio_dev, int ch, argument
63 u32 msk = STM32_DAC_IS_CHAN_1(ch) ? STM32_DAC_CR_EN1 : STM32_DAC_CR_EN2;
69 ret = stm32_dac_is_enabled(indio_dev, ch);
/linux-master/drivers/auxdisplay/
H A Dline-display.c42 unsigned int i, ch = linedisp->scroll_pos; local
48 for (; i < num_chars && ch < linedisp->message_len; i++, ch++)
49 linedisp->buf[i] = linedisp->message[ch];
52 ch = 0;
/linux-master/drivers/pwm/
H A Dpwm-sifive.c319 int ch; local
324 for (ch = 0; ch < chip->npwm; ch++) {
325 pwm = &chip->pwms[ch];
H A Dpwm-img.c29 #define PWM_CTRL_CFG_DIV_SHIFT(ch) ((ch) * 2 + 4)
32 #define PWM_CH_CFG(ch) (0x4 + (ch) * 4)
38 #define PERIP_PWM_PDM_CONTROL_CH_SHIFT(ch) ((ch) * 4)
/linux-master/sound/soc/codecs/
H A Dframer-codec.c75 struct snd_interval ch = {0}; local
80 ch.max = nb_ts * 8 / width;
86 ch.min = ch.max ? 1 : 0;
88 return snd_interval_refine(c, &ch);
/linux-master/sound/soc/meson/
H A Daxg-tdm-formatter.c33 unsigned int ch = ts->channels; local
48 for (i = 0; (i < 32) && ch; i += 2) {
53 if ((BIT(i + k) & ts->mask[j]) && ch) {
55 ch -= 1;
66 if (WARN_ON(ch != 0)) {
/linux-master/drivers/tty/serial/
H A Dsunzilog.c103 static void sunzilog_putchar(struct uart_port *port, unsigned char ch);
295 unsigned char ch, int is_break)
301 serio_interrupt(&up->serio, ch, 0);
304 int ret = suncore_mouse_baud_detection(ch, is_break);
316 serio_interrupt(&up->serio, ch, 0);
328 unsigned char ch, r1, flag; local
342 ch = readb(&channel->control);
348 if (ch & BRK_ABRT)
351 if (!(ch & Rx_CH_AV))
354 ch
294 sunzilog_kbdms_receive_chars(struct uart_sunzilog_port *up, unsigned char ch, int is_break) argument
1001 unsigned char ch, r1; local
1034 sunzilog_put_poll_char(struct uart_port *port, unsigned char ch) argument
1126 sunzilog_putchar(struct uart_port *port, unsigned char ch) argument
1152 sunzilog_serio_write(struct serio *serio, unsigned char ch) argument
[all...]
H A Damba-pl010.c116 u8 ch, flag; local
120 ch = readb(port->membase + UART01x_DR);
155 if (uart_handle_sysrq_char(port, ch))
158 uart_insert_char(port, rsr, UART01x_RSR_OE, ch, flag);
168 u8 ch; local
170 uart_port_tx_limited(port, ch, port->fifosize >> 1,
172 writel(ch, port->membase + UART01x_DR),
533 static void pl010_console_putchar(struct uart_port *port, unsigned char ch) argument
541 writel(ch, port->membase + UART01x_DR);
/linux-master/drivers/staging/most/dim2/
H A Ddim2.c52 * @ch: HAL specific channel data
62 struct dim_channel ch; member in struct:hdm_channel
178 if (!dim_get_channel_state(&hdm_ch->ch, &st)->ready) {
186 if (dim_dbr_space(&hdm_ch->ch) < buf_size) {
192 if (!dim_enqueue_buffer(&hdm_ch->ch, mbo->bus_address, buf_size)) {
277 done_buffers = dim_get_channel_state(&hdm_ch->ch, &st)->done_buffers;
283 if (!dim_detach_buffers(&hdm_ch->ch, done_buffers)) {
341 buffer[idx++] = &dev->hch[ch_idx].ch;
375 dim_service_channel(&dev->hch[ch_idx].ch);
467 hdm_ch->ch
[all...]
/linux-master/tools/perf/util/
H A Dsrcline.c458 int ch; local
465 ch = io__get_char(&io);
466 if (ch == ',') {
471 } else if (ch == '0') {
484 pr_warning("\t%c%s", ch, output);
490 ch = io__get_char(&io);
491 if (ch <= 0)
493 if (ch == '\n')
562 int ch; local
574 ch
[all...]
/linux-master/drivers/dma/
H A Dfsl-edma-main.c36 unsigned int intr, ch; local
43 for (ch = 0; ch < fsl_edma->n_chans; ch++) {
44 if (intr & (0x1 << ch)) {
45 edma_writeb(fsl_edma, EDMA_CINT_CINT(ch), regs->cint);
46 fsl_edma_tx_chan_handler(&fsl_edma->chans[ch]);
71 unsigned int err, ch; local
78 for (ch = 0; ch < fsl_edm
[all...]
/linux-master/drivers/net/ethernet/ti/
H A Ddavinci_emac.c148 # define EMAC_MBP_PROMISCCH(ch) (((ch) & 0x7) << 16)
150 # define EMAC_MBP_BCASTCHAN(ch) (((ch) & 0x7) << 8)
152 # define EMAC_MBP_MCASTCHAN(ch) ((ch) & 0x7)
1023 * @ch: RX channel number
1030 static void emac_set_type0addr(struct emac_priv *priv, u32 ch, char *mac_addr) argument
1040 val |= BIT(ch);
1043 val &= ~BIT(ch);
1057 emac_set_type1addr(struct emac_priv *priv, u32 ch, char *mac_addr) argument
1081 emac_set_type2addr(struct emac_priv *priv, u32 ch, char *mac_addr, int index, int match) argument
1105 emac_setmac(struct emac_priv *priv, u32 ch, char *mac_addr) argument
1276 u32 ch, cause; local
[all...]
/linux-master/sound/core/seq/oss/
H A Dseq_oss_synth.c237 info->ch = kcalloc(info->nr_voices, sizeof(struct seq_oss_chinfo), GFP_KERNEL);
238 if (!info->ch) {
323 kfree(info->ch);
324 info->ch = NULL;
375 if (info->ch == NULL || ! info->nr_voices)
378 info->ch[i].note = -1;
379 info->ch[i].vel = 0;
413 kfree(info->ch);
414 info->ch = NULL;
/linux-master/drivers/net/wireless/marvell/mwifiex/
H A Dcfp.c304 struct ieee80211_channel *ch = NULL; local
323 ch = &sband->channels[i];
325 if (ch->flags & IEEE80211_CHAN_DISABLED)
329 if (ch->center_freq == freq)
333 if (ch->hw_value == channel ||
344 if (!ch)
347 priv->cfp.channel = ch->hw_value;
348 priv->cfp.freq = ch->center_freq;
349 priv->cfp.max_tx_power = ch->max_power;
/linux-master/drivers/hsi/controllers/
H A Domap_ssi_port.c54 unsigned int ch; local
86 for (ch = 0; ch < omap_port->channels; ch++) {
87 seq_printf(m, "BUFFER_CH%d\t: 0x%08x\n", ch,
88 readl(base + SSI_SST_BUFFER_CH_REG(ch)));
113 for (ch = 0; ch < omap_port->channels; ch++) {
114 seq_printf(m, "BUFFER_CH%d\t: 0x%08x\n", ch,
958 unsigned int ch; local
1077 unsigned int ch; local
[all...]
/linux-master/drivers/soundwire/
H A Dintel_ace2x.c251 int ch, dir; local
258 ch = params_channels(params);
264 pdi = sdw_cdns_alloc_pdi(cdns, &cdns->pcm, ch, dir, dai->id);
273 sdw_cdns_config_stream(cdns, ch, dir, pdi);
288 sconfig.ch_count = ch;
302 pconfig->ch_mask = (1 << ch) - 1;
320 int ch, dir; local
347 ch = params_channels(hw_params);
355 sdw_cdns_config_stream(cdns, ch, dir, dai_runtime->pdi);
/linux-master/sound/soc/sof/amd/
H A Dacp.c91 static int config_dma_channel(struct acp_dev_data *adata, unsigned int ch, argument
98 snd_sof_dsp_write(sdev, ACP_DSP_BAR, ACP_DMA_CNTL_0 + ch * sizeof(u32),
102 val & (1 << ch), ACP_REG_POLL_INTERVAL,
106 val = snd_sof_dsp_read(sdev, ACP_DSP_BAR, ACP_DMA_ERR_STS_0 + ch * sizeof(u32));
112 snd_sof_dsp_write(sdev, ACP_DSP_BAR, (ACP_DMA_CNTL_0 + ch * sizeof(u32)), 0);
113 snd_sof_dsp_write(sdev, ACP_DSP_BAR, ACP_DMA_DSCR_CNT_0 + ch * sizeof(u32), dscr_count);
114 snd_sof_dsp_write(sdev, ACP_DSP_BAR, ACP_DMA_DSCR_STRT_IDX_0 + ch * sizeof(u32), idx);
115 snd_sof_dsp_write(sdev, ACP_DSP_BAR, ACP_DMA_PRIO_0 + ch * sizeof(u32), 0);
116 snd_sof_dsp_write(sdev, ACP_DSP_BAR, ACP_DMA_CNTL_0 + ch * sizeof(u32), ACP_DMA_CH_RUN);
121 static int acpbus_dma_start(struct acp_dev_data *adata, unsigned int ch, argument
305 acp_dma_status(struct acp_dev_data *adata, unsigned char ch) argument
[all...]
/linux-master/drivers/isdn/hardware/mISDN/
H A Dhfcsusb.c196 hfcusb_l2l1B(struct mISDNchannel *ch, struct sk_buff *skb) argument
198 struct bchannel *bch = container_of(ch, struct bchannel, ch);
221 ret = hfcsusb_setup_bch(bch, ch->protocol);
225 _queue_data(ch, PH_ACTIVATE_IND, MISDN_ID_ANY,
230 _queue_data(ch, PH_DEACTIVATE_IND, MISDN_ID_ANY,
255 phi->dch.ch.protocol = hw->protocol;
256 phi->dch.ch.Flags = dch->Flags;
260 phi->bch[i].protocol = hw->bch[i].ch.protocol;
274 hfcusb_l2l1D(struct mISDNchannel *ch, struc argument
415 open_dchannel(struct hfcsusb *hw, struct mISDNchannel *ch, struct channel_req *rq) argument
521 hfc_dctrl(struct mISDNchannel *ch, u_int cmd, void *arg) argument
1803 hfc_bctrl(struct mISDNchannel *ch, u_int cmd, void *arg) argument
[all...]
/linux-master/arch/mips/txx9/generic/
H A Dsetup_tx4938.c320 void __init tx4938_mtd_init(int ch) argument
323 .width = TX4938_EBUSC_WIDTH(ch) / 8,
325 unsigned long start = txx9_ce_res[ch].start;
326 unsigned long size = txx9_ce_res[ch].end - start + 1;
328 if (!(TX4938_EBUSC_CR(ch) & 0x8))
330 txx9_physmap_flash_init(ch, start, size, &pdata);
/linux-master/tools/thermal/tmon/
H A Dsysfs.c150 char *ch; local
153 ch = strtok(name, "_");
154 while (ch != NULL) {
156 syslog(LOG_INFO, "%s:%s:%s:%d", __func__, name, ch, i);
157 ch = strtok(NULL, "_");
159 return atol(ch + skip);
/linux-master/drivers/video/console/
H A Dmdacon.c380 static inline u16 mda_convert_attr(u16 ch) argument
389 if (ch & 0x0800) attr = 0x7000; /* reverse */
390 else if (ch & 0x0400) attr = 0x0100; /* underline */
392 return ((ch & 0x0200) << 2) | /* intensity */
393 (ch & 0x8000) | /* blink */
394 (ch & 0x00ff) | attr;
/linux-master/sound/synth/emux/
H A Demux_synth.c90 if (vp == NULL || vp->ch < 0)
147 int ch; local
162 for (ch = 0; ch < emu->max_voices; ch++) {
163 vp = &emu->voices[ch];
196 int ch, do_again = 0; local
199 for (ch = 0; ch < emu->max_voices; ch
224 int ch; local
[all...]
/linux-master/drivers/edac/
H A Di7300_edac.c67 #define to_channel(ch, branch) ((((branch)) << 1) | (ch))
69 #define to_csrow(slot, ch, branch) \
70 (to_channel(ch, branch) | ((slot) << 2))
580 * @ch: Channel number within the branch (0 or 1)
586 int slot, int ch, int branch,
592 channel = to_channel(ch, branch);
751 int ch, branch, slot, channel, max_channel, max_branch; local
794 for (ch = 0; ch < max_channe
585 decode_mtr(struct i7300_pvt *pvt, int slot, int ch, int branch, struct i7300_dimm_info *dinfo, struct dimm_info *dimm) argument
[all...]

Completed in 497 milliseconds

<<11121314151617181920>>