ch                127 arch/alpha/boot/misc.c 	uch *in, *out, ch;
ch                132 arch/alpha/boot/misc.c 		ch = *out++ = *in++;
ch                133 arch/alpha/boot/misc.c 		c = crc_32_tab[((int)c ^ ch) & 0xff] ^ (c >> 8);
ch                 35 arch/arm/boot/compressed/misc.c static void icedcc_putc(int ch)
ch                 46 arch/arm/boot/compressed/misc.c 	asm("mcr p14, 0, %0, c0, c5, 0" : : "r" (ch));
ch                 52 arch/arm/boot/compressed/misc.c static void icedcc_putc(int ch)
ch                 63 arch/arm/boot/compressed/misc.c 	asm("mcr p14, 0, %0, c8, c0, 0" : : "r" (ch));
ch                 68 arch/arm/boot/compressed/misc.c static void icedcc_putc(int ch)
ch                 79 arch/arm/boot/compressed/misc.c 	asm("mcr p14, 0, %0, c1, c0, 0" : : "r" (ch));
ch                 84 arch/arm/boot/compressed/misc.c #define putc(ch)	icedcc_putc(ch)
ch                 39 arch/arm/mach-lpc32xx/phy3250.c static void pl08x_put_signal(const struct pl08x_channel_data *cd, int ch)
ch                 24 arch/arm/mach-s3c64xx/pl080.c static void pl08x_put_xfer_signal(const struct pl08x_channel_data *cd, int ch)
ch                607 arch/arm/plat-omap/dma.c 	int ch, free_ch = -1;
ch                614 arch/arm/plat-omap/dma.c 	for (ch = 0; ch < dma_chan_count; ch++) {
ch                615 arch/arm/plat-omap/dma.c 		if (free_ch == -1 && dma_chan[ch].dev_id == -1) {
ch                616 arch/arm/plat-omap/dma.c 			free_ch = ch;
ch               1083 arch/arm/plat-omap/dma.c static int omap1_dma_handle_ch(int ch)
ch               1087 arch/arm/plat-omap/dma.c 	if (enable_1510_mode && ch >= 6) {
ch               1088 arch/arm/plat-omap/dma.c 		csr = dma_chan[ch].saved_csr;
ch               1089 arch/arm/plat-omap/dma.c 		dma_chan[ch].saved_csr = 0;
ch               1091 arch/arm/plat-omap/dma.c 		csr = p->dma_read(CSR, ch);
ch               1092 arch/arm/plat-omap/dma.c 	if (enable_1510_mode && ch <= 2 && (csr >> 7) != 0) {
ch               1093 arch/arm/plat-omap/dma.c 		dma_chan[ch + 6].saved_csr = csr >> 7;
ch               1098 arch/arm/plat-omap/dma.c 	if (unlikely(dma_chan[ch].dev_id == -1)) {
ch               1100 arch/arm/plat-omap/dma.c 			ch, csr);
ch               1104 arch/arm/plat-omap/dma.c 		pr_warn("DMA timeout with device %d\n", dma_chan[ch].dev_id);
ch               1107 arch/arm/plat-omap/dma.c 			dma_chan[ch].dev_id);
ch               1109 arch/arm/plat-omap/dma.c 		dma_chan[ch].flags &= ~OMAP_DMA_ACTIVE;
ch               1110 arch/arm/plat-omap/dma.c 	if (likely(dma_chan[ch].callback != NULL))
ch               1111 arch/arm/plat-omap/dma.c 		dma_chan[ch].callback(ch, csr, dma_chan[ch].data);
ch               1118 arch/arm/plat-omap/dma.c 	int ch = ((int) dev_id) - 1;
ch               1124 arch/arm/plat-omap/dma.c 		handled_now += omap1_dma_handle_ch(ch);
ch               1125 arch/arm/plat-omap/dma.c 		if (enable_1510_mode && dma_chan[ch + 6].saved_csr)
ch               1126 arch/arm/plat-omap/dma.c 			handled_now += omap1_dma_handle_ch(ch + 6);
ch               1141 arch/arm/plat-omap/dma.c static int omap2_dma_handle_ch(int ch)
ch               1143 arch/arm/plat-omap/dma.c 	u32 status = p->dma_read(CSR, ch);
ch               1147 arch/arm/plat-omap/dma.c 			pr_warn("Spurious DMA IRQ for lch %d\n", ch);
ch               1148 arch/arm/plat-omap/dma.c 		p->dma_write(1 << ch, IRQSTATUS_L0, ch);
ch               1151 arch/arm/plat-omap/dma.c 	if (unlikely(dma_chan[ch].dev_id == -1)) {
ch               1154 arch/arm/plat-omap/dma.c 				status, ch);
ch               1159 arch/arm/plat-omap/dma.c 			dma_chan[ch].dev_id);
ch               1162 arch/arm/plat-omap/dma.c 		       dma_chan[ch].dev_id);
ch               1166 arch/arm/plat-omap/dma.c 			ccr = p->dma_read(CCR, ch);
ch               1168 arch/arm/plat-omap/dma.c 			p->dma_write(ccr, CCR, ch);
ch               1169 arch/arm/plat-omap/dma.c 			dma_chan[ch].flags &= ~OMAP_DMA_ACTIVE;
ch               1174 arch/arm/plat-omap/dma.c 		       dma_chan[ch].dev_id);
ch               1177 arch/arm/plat-omap/dma.c 		       dma_chan[ch].dev_id);
ch               1179 arch/arm/plat-omap/dma.c 	p->dma_write(status, CSR, ch);
ch               1180 arch/arm/plat-omap/dma.c 	p->dma_write(1 << ch, IRQSTATUS_L0, ch);
ch               1182 arch/arm/plat-omap/dma.c 	p->dma_read(IRQSTATUS_L0, ch);
ch               1185 arch/arm/plat-omap/dma.c 	if (dma_chan[ch].chain_id != -1) {
ch               1186 arch/arm/plat-omap/dma.c 		int chain_id = dma_chan[ch].chain_id;
ch               1187 arch/arm/plat-omap/dma.c 		dma_chan[ch].state = DMA_CH_NOTSTARTED;
ch               1188 arch/arm/plat-omap/dma.c 		if (p->dma_read(CLNK_CTRL, ch) & (1 << 15))
ch               1189 arch/arm/plat-omap/dma.c 			dma_chan[dma_chan[ch].next_linked_ch].state =
ch               1193 arch/arm/plat-omap/dma.c 			disable_lnk(ch);
ch               1198 arch/arm/plat-omap/dma.c 		status = p->dma_read(CSR, ch);
ch               1199 arch/arm/plat-omap/dma.c 		p->dma_write(status, CSR, ch);
ch               1202 arch/arm/plat-omap/dma.c 	if (likely(dma_chan[ch].callback != NULL))
ch               1203 arch/arm/plat-omap/dma.c 		dma_chan[ch].callback(ch, status, dma_chan[ch].data);
ch               1260 arch/arm/plat-omap/dma.c 	int ch;
ch               1273 arch/arm/plat-omap/dma.c 	for (ch = 0; ch < dma_chan_count; ch++)
ch               1274 arch/arm/plat-omap/dma.c 		if (dma_chan[ch].dev_id != -1)
ch               1275 arch/arm/plat-omap/dma.c 			omap_clear_dma(ch);
ch               1286 arch/arm/plat-omap/dma.c 	int ch, ret = 0;
ch               1326 arch/arm/plat-omap/dma.c 	for (ch = 0; ch < dma_chan_count; ch++) {
ch               1327 arch/arm/plat-omap/dma.c 		omap_clear_dma(ch);
ch               1329 arch/arm/plat-omap/dma.c 			omap2_disable_irq_lch(ch);
ch               1331 arch/arm/plat-omap/dma.c 		dma_chan[ch].dev_id = -1;
ch               1332 arch/arm/plat-omap/dma.c 		dma_chan[ch].next_lch = -1;
ch               1334 arch/arm/plat-omap/dma.c 		if (ch >= 6 && enable_1510_mode)
ch               1342 arch/arm/plat-omap/dma.c 			sprintf(&irq_name[0], "%d", ch);
ch               1356 arch/arm/plat-omap/dma.c 					(void *) (ch + 1));
ch               1394 arch/arm/plat-omap/dma.c 	for (irq_rel = 0; irq_rel < ch;	irq_rel++) {
ch                187 arch/arm/plat-samsung/adc.c int s3c_adc_read(struct s3c_adc_client *client, unsigned int ch)
ch                196 arch/arm/plat-samsung/adc.c 	ret = s3c_adc_start(client, ch, 1);
ch                 19 arch/arm/plat-samsung/include/plat/adc.h extern int s3c_adc_read(struct s3c_adc_client *client, unsigned int ch);
ch                 43 arch/ia64/lib/io.c 	unsigned char ch = (char)(c & 0xff);
ch                 47 arch/ia64/lib/io.c 		writeb(ch, dst);
ch                699 arch/m68k/amiga/config.c 	int ch;
ch                703 arch/m68k/amiga/config.c 	ch = amiga_custom.serdatr & 0xff;
ch                706 arch/m68k/amiga/config.c 	return ch;
ch                711 arch/m68k/amiga/config.c 	int ch, cnt = 0;
ch                714 arch/m68k/amiga/config.c 		ch = amiga_serial_console_wait_key(co);
ch                717 arch/m68k/amiga/config.c 		if (ch == 8 || ch == 127) {
ch                728 arch/m68k/amiga/config.c 		if (ch == 10 || ch == 13)
ch                739 arch/m68k/amiga/config.c 		s[cnt++] = ch;
ch                740 arch/m68k/amiga/config.c 		amiga_serial_putc(ch);
ch                 80 arch/m68k/emu/nfcon.c static int nfcon_tty_put_char(struct tty_struct *tty, unsigned char ch)
ch                 82 arch/m68k/emu/nfcon.c 	char temp[2] = { ch, 0 };
ch                102 arch/m68k/include/asm/openprom.h 	int		(*pv_putchar)(int ch);
ch                104 arch/m68k/include/asm/openprom.h 	int		(*pv_nbputchar)(int ch);
ch                212 arch/m68k/include/asm/openprom.h 	void (*pv_putchar)(int ch);
ch                216 arch/m68k/include/asm/openprom.h 	int (*pv_nbputchar)(int ch);
ch                 27 arch/m68k/sun3/prom/printf.c 	char ch, *bptr;
ch                 47 arch/m68k/sun3/prom/printf.c 	while((ch = *(bptr++)) != 0) {
ch                 48 arch/m68k/sun3/prom/printf.c 		if(ch == '\n')
ch                 51 arch/m68k/sun3/prom/printf.c 		prom_putchar(ch);
ch                 19 arch/mips/ath25/early_printk.c 				unsigned char ch)
ch                 21 arch/mips/ath25/early_printk.c 	__raw_writel(ch, base + 4 * reg);
ch                 29 arch/mips/ath25/early_printk.c void prom_putchar(char ch)
ch                 42 arch/mips/ath25/early_printk.c 	prom_uart_wr(base, UART_TX, (unsigned char)ch);
ch                 34 arch/mips/ath79/early_printk.c static void prom_putchar_ar71xx(char ch)
ch                 39 arch/mips/ath79/early_printk.c 	__raw_writel((unsigned char)ch, base + UART_TX * 4);
ch                 43 arch/mips/ath79/early_printk.c static void prom_putchar_ar933x(char ch)
ch                 49 arch/mips/ath79/early_printk.c 	__raw_writel(AR933X_UART_DATA_TX_CSR | (unsigned char)ch,
ch                 55 arch/mips/ath79/early_printk.c static void prom_putchar_dummy(char ch)
ch                140 arch/mips/ath79/early_printk.c void prom_putchar(char ch)
ch                145 arch/mips/ath79/early_printk.c 	_prom_putchar(ch);
ch                 40 arch/mips/include/asm/mach-lantiq/xway/xway_dma.h extern void ltq_dma_enable_irq(struct ltq_dma_channel *ch);
ch                 41 arch/mips/include/asm/mach-lantiq/xway/xway_dma.h extern void ltq_dma_disable_irq(struct ltq_dma_channel *ch);
ch                 42 arch/mips/include/asm/mach-lantiq/xway/xway_dma.h extern void ltq_dma_ack_irq(struct ltq_dma_channel *ch);
ch                 43 arch/mips/include/asm/mach-lantiq/xway/xway_dma.h extern void ltq_dma_open(struct ltq_dma_channel *ch);
ch                 44 arch/mips/include/asm/mach-lantiq/xway/xway_dma.h extern void ltq_dma_close(struct ltq_dma_channel *ch);
ch                 45 arch/mips/include/asm/mach-lantiq/xway/xway_dma.h extern void ltq_dma_alloc_tx(struct ltq_dma_channel *ch);
ch                 46 arch/mips/include/asm/mach-lantiq/xway/xway_dma.h extern void ltq_dma_alloc_rx(struct ltq_dma_channel *ch);
ch                 47 arch/mips/include/asm/mach-lantiq/xway/xway_dma.h extern void ltq_dma_free(struct ltq_dma_channel *ch);
ch                101 arch/mips/include/asm/mach-rc32434/dma.h 	struct dma_reg ch[DMA_CHAN_COUNT];
ch                 26 arch/mips/include/asm/mach-rc32434/dma_v.h static inline int rc32434_halt_dma(struct dma_reg *ch)
ch                 29 arch/mips/include/asm/mach-rc32434/dma_v.h 	if (__raw_readl(&ch->dmac) & DMA_CHAN_RUN_BIT) {
ch                 30 arch/mips/include/asm/mach-rc32434/dma_v.h 		__raw_writel(0, &ch->dmac);
ch                 32 arch/mips/include/asm/mach-rc32434/dma_v.h 			if (__raw_readl(&ch->dmas) & DMA_STAT_HALT) {
ch                 33 arch/mips/include/asm/mach-rc32434/dma_v.h 				__raw_writel(0, &ch->dmas);
ch                 42 arch/mips/include/asm/mach-rc32434/dma_v.h static inline void rc32434_start_dma(struct dma_reg *ch, u32 dma_addr)
ch                 44 arch/mips/include/asm/mach-rc32434/dma_v.h 	__raw_writel(0, &ch->dmandptr);
ch                 45 arch/mips/include/asm/mach-rc32434/dma_v.h 	__raw_writel(dma_addr, &ch->dmadptr);
ch                 48 arch/mips/include/asm/mach-rc32434/dma_v.h static inline void rc32434_chain_dma(struct dma_reg *ch, u32 dma_addr)
ch                 50 arch/mips/include/asm/mach-rc32434/dma_v.h 	__raw_writel(dma_addr, &ch->dmandptr);
ch                430 arch/mips/include/asm/sibyte/sb1250_mac.h #define S_MAC_STATUS_CH_OFFSET(ch, txrx) _SB_MAKE64(((ch) + 2 * (txrx)) * S_MAC_CHANWIDTH)
ch                432 arch/mips/include/asm/sibyte/sb1250_mac.h #define M_MAC_STATUS_CHANNEL(ch, txrx)	 _SB_MAKEVALUE(_SB_MAKEMASK(8, 0), S_MAC_STATUS_CH_OFFSET(ch, txrx))
ch                433 arch/mips/include/asm/sibyte/sb1250_mac.h #define M_MAC_STATUS_EOP_COUNT(ch, txrx) _SB_MAKEVALUE(M_MAC_INT_EOP_COUNT, S_MAC_STATUS_CH_OFFSET(ch, txrx))
ch                434 arch/mips/include/asm/sibyte/sb1250_mac.h #define M_MAC_STATUS_EOP_TIMER(ch, txrx) _SB_MAKEVALUE(M_MAC_INT_EOP_TIMER, S_MAC_STATUS_CH_OFFSET(ch, txrx))
ch                435 arch/mips/include/asm/sibyte/sb1250_mac.h #define M_MAC_STATUS_EOP_SEEN(ch, txrx)	 _SB_MAKEVALUE(M_MAC_INT_EOP_SEEN, S_MAC_STATUS_CH_OFFSET(ch, txrx))
ch                436 arch/mips/include/asm/sibyte/sb1250_mac.h #define M_MAC_STATUS_HWM(ch, txrx)	 _SB_MAKEVALUE(M_MAC_INT_HWM, S_MAC_STATUS_CH_OFFSET(ch, txrx))
ch                437 arch/mips/include/asm/sibyte/sb1250_mac.h #define M_MAC_STATUS_LWM(ch, txrx)	 _SB_MAKEVALUE(M_MAC_INT_LWM, S_MAC_STATUS_CH_OFFSET(ch, txrx))
ch                438 arch/mips/include/asm/sibyte/sb1250_mac.h #define M_MAC_STATUS_DSCR(ch, txrx)	 _SB_MAKEVALUE(M_MAC_INT_DSCR, S_MAC_STATUS_CH_OFFSET(ch, txrx))
ch                439 arch/mips/include/asm/sibyte/sb1250_mac.h #define M_MAC_STATUS_ERR(ch, txrx)	 _SB_MAKEVALUE(M_MAC_INT_ERR, S_MAC_STATUS_CH_OFFSET(ch, txrx))
ch                440 arch/mips/include/asm/sibyte/sb1250_mac.h #define M_MAC_STATUS_DZERO(ch, txrx)	 _SB_MAKEVALUE(M_MAC_INT_DZERO, S_MAC_STATUS_CH_OFFSET(ch, txrx))
ch                441 arch/mips/include/asm/sibyte/sb1250_mac.h #define M_MAC_STATUS_DROP(ch, txrx)	 _SB_MAKEVALUE(M_MAC_INT_DROP, S_MAC_STATUS_CH_OFFSET(ch, txrx))
ch                130 arch/mips/include/asm/txx9/jmr3927.h #define JMR3927_IRQ_IRC_SIO(ch) (JMR3927_IRQ_IRC + TX3927_IR_SIO(ch))
ch                134 arch/mips/include/asm/txx9/jmr3927.h #define JMR3927_IRQ_IRC_TMR(ch) (JMR3927_IRQ_IRC + TX3927_IR_TMR(ch))
ch                110 arch/mips/include/asm/txx9/rbtx4938.h #define RBTX4938_IRQ_IRC_DMA(ch, n)	(RBTX4938_IRQ_IRC + TX4938_IR_DMA(ch, n))
ch                 47 arch/mips/include/asm/txx9/rbtx4939.h #define RBTX4939_7SEG_ADDR(s, ch)	\
ch                 48 arch/mips/include/asm/txx9/rbtx4939.h 	(IO_BASE + TXX9_CE(1) + 0x00006000 + (s) * 16 + ((ch) & 3) * 2)
ch                 72 arch/mips/include/asm/txx9/rbtx4939.h #define RBTX4939_PE1_ATA(ch)	(0x01 << (ch))
ch                 73 arch/mips/include/asm/txx9/rbtx4939.h #define RBTX4939_PE1_RMII(ch)	(0x04 << (ch))
ch                111 arch/mips/include/asm/txx9/rbtx4939.h #define rbtx4939_7seg_addr(s, ch) \
ch                112 arch/mips/include/asm/txx9/rbtx4939.h 				((u8 __iomem *)RBTX4939_7SEG_ADDR(s, ch))
ch                 20 arch/mips/include/asm/txx9/tx3927.h #define TX3927_TMR_REG(ch)	(TX3927_REG_BASE + 0xf000 + (ch) * 0x100)
ch                 22 arch/mips/include/asm/txx9/tx3927.h #define TX3927_SIO_REG(ch)	(TX3927_REG_BASE + 0xf300 + (ch) * 0x100)
ch                 46 arch/mips/include/asm/txx9/tx3927.h 	} ch[4];
ch                162 arch/mips/include/asm/txx9/tx3927.h #define TX3927_DMA_MCR_EIS(ch)	(0x10000000<<(ch))
ch                163 arch/mips/include/asm/txx9/tx3927.h #define TX3927_DMA_MCR_DIS(ch)	(0x01000000<<(ch))
ch                165 arch/mips/include/asm/txx9/tx3927.h #define TX3927_DMA_MCR_FIFUM(ch)	(0x00000008<<(ch))
ch                221 arch/mips/include/asm/txx9/tx3927.h #define TX3927_IR_SIO(ch)	(6 + (ch))
ch                225 arch/mips/include/asm/txx9/tx3927.h #define TX3927_IR_TMR(ch)	(13 + (ch))
ch                298 arch/mips/include/asm/txx9/tx3927.h #define TX3927_PCFG_SDRCLKEN(ch)	(0x00400000<<(ch))
ch                300 arch/mips/include/asm/txx9/tx3927.h #define TX3927_PCFG_PCICLKEN(ch)	(0x00040000<<(ch))
ch                305 arch/mips/include/asm/txx9/tx3927.h #define TX3927_PCFG_SELSIOC(ch) (0x00004000<<(ch))
ch                307 arch/mips/include/asm/txx9/tx3927.h #define TX3927_PCFG_SELSIO(ch)	(0x00001000<<(ch))
ch                309 arch/mips/include/asm/txx9/tx3927.h #define TX3927_PCFG_SELTMR(ch)	(0x00000200<<(ch))
ch                312 arch/mips/include/asm/txx9/tx3927.h #define TX3927_PCFG_INTDMA(ch)	(0x00000010<<(ch))
ch                314 arch/mips/include/asm/txx9/tx3927.h #define TX3927_PCFG_SELDMA(ch)	(0x00000001<<(ch))
ch                321 arch/mips/include/asm/txx9/tx3927.h #define tx3927_sioptr(ch)	((struct txx927_sio_reg *)TX3927_SIO_REG(ch))
ch                325 arch/mips/include/asm/txx9/tx3927.h #define TX3927_ROMC_BA(ch)	(tx3927_romcptr->cr[(ch)] & 0xfff00000)
ch                326 arch/mips/include/asm/txx9/tx3927.h #define TX3927_ROMC_SIZE(ch)	\
ch                327 arch/mips/include/asm/txx9/tx3927.h 	(0x00100000 << ((tx3927_romcptr->cr[(ch)] >> 8) & 0xf))
ch                328 arch/mips/include/asm/txx9/tx3927.h #define TX3927_ROMC_WIDTH(ch)	(32 >> ((tx3927_romcptr->cr[(ch)] >> 7) & 0x1))
ch                339 arch/mips/include/asm/txx9/tx3927.h void tx3927_mtd_init(int ch);
ch                 49 arch/mips/include/asm/txx9/tx4927.h #define TX4927_TMR_REG(ch)	(TX4927_REG_BASE + 0xf000 + (ch) * 0x100)
ch                 51 arch/mips/include/asm/txx9/tx4927.h #define TX4927_SIO_REG(ch)	(TX4927_REG_BASE + 0xf300 + (ch) * 0x100)
ch                142 arch/mips/include/asm/txx9/tx4927.h #define TX4927_PCFG_SDCLKEN(ch) (0x00800000<<(ch))
ch                144 arch/mips/include/asm/txx9/tx4927.h #define TX4927_PCFG_PCICLKEN(ch)	(0x00010000<<(ch))
ch                203 arch/mips/include/asm/txx9/tx4927.h #define TX4927_SDRAMC_CR(ch)	__raw_readq(&tx4927_sdramcptr->cr[(ch)])
ch                204 arch/mips/include/asm/txx9/tx4927.h #define TX4927_SDRAMC_BA(ch)	((TX4927_SDRAMC_CR(ch) >> 49) << 21)
ch                205 arch/mips/include/asm/txx9/tx4927.h #define TX4927_SDRAMC_SIZE(ch)	\
ch                206 arch/mips/include/asm/txx9/tx4927.h 	((((TX4927_SDRAMC_CR(ch) >> 33) & 0x7fff) + 1) << 21)
ch                208 arch/mips/include/asm/txx9/tx4927.h #define TX4927_EBUSC_CR(ch)	__raw_readq(&tx4927_ebuscptr->cr[(ch)])
ch                209 arch/mips/include/asm/txx9/tx4927.h #define TX4927_EBUSC_BA(ch)	((TX4927_EBUSC_CR(ch) >> 48) << 20)
ch                210 arch/mips/include/asm/txx9/tx4927.h #define TX4927_EBUSC_SIZE(ch)	\
ch                211 arch/mips/include/asm/txx9/tx4927.h 	(0x00100000 << ((unsigned long)(TX4927_EBUSC_CR(ch) >> 8) & 0xf))
ch                212 arch/mips/include/asm/txx9/tx4927.h #define TX4927_EBUSC_WIDTH(ch)	\
ch                213 arch/mips/include/asm/txx9/tx4927.h 	(64 >> ((__u32)(TX4927_EBUSC_CR(ch) >> 20) & 0x3))
ch                269 arch/mips/include/asm/txx9/tx4927.h void tx4927_mtd_init(int ch);
ch                129 arch/mips/include/asm/txx9/tx4927pcic.h #define TX4927_PCIC_PCICCFG_G2PMEN(ch)	(0x00000100>>(ch))
ch                 31 arch/mips/include/asm/txx9/tx4938.h #define TX4938_DMA_REG(ch)	(TX4938_REG_BASE + 0xb000 + (ch) * 0x800)
ch                 35 arch/mips/include/asm/txx9/tx4938.h #define TX4938_TMR_REG(ch)	((TX4938_REG_BASE + 0xf000) + (ch) * 0x100)
ch                 37 arch/mips/include/asm/txx9/tx4938.h #define TX4938_SIO_REG(ch)	((TX4938_REG_BASE + 0xf300) + (ch) * 0x100)
ch                 73 arch/mips/include/asm/txx9/tx4938.h #define TX4938_IR_DMA(ch, n)	((ch ? 27 : 10) + (n)) /* 10-13, 27-30 */
ch                147 arch/mips/include/asm/txx9/tx4938.h #define TX4938_PCFG_SDCLKEN(ch) (0x00800000<<(ch))
ch                149 arch/mips/include/asm/txx9/tx4938.h #define TX4938_PCFG_PCICLKEN(ch)	(0x00010000<<(ch))
ch                200 arch/mips/include/asm/txx9/tx4938.h #define TX4938_DMA_MCR_EIS(ch)	(0x10000000<<(ch))
ch                201 arch/mips/include/asm/txx9/tx4938.h #define TX4938_DMA_MCR_DIS(ch)	(0x01000000<<(ch))
ch                203 arch/mips/include/asm/txx9/tx4938.h #define TX4938_DMA_MCR_FIFUM(ch)	(0x00000008<<(ch))
ch                270 arch/mips/include/asm/txx9/tx4938.h #define TX4938_SDRAMC_CR(ch)	TX4927_SDRAMC_CR(ch)
ch                271 arch/mips/include/asm/txx9/tx4938.h #define TX4938_SDRAMC_BA(ch)	TX4927_SDRAMC_BA(ch)
ch                272 arch/mips/include/asm/txx9/tx4938.h #define TX4938_SDRAMC_SIZE(ch)	TX4927_SDRAMC_SIZE(ch)
ch                274 arch/mips/include/asm/txx9/tx4938.h #define TX4938_EBUSC_CR(ch)	TX4927_EBUSC_CR(ch)
ch                275 arch/mips/include/asm/txx9/tx4938.h #define TX4938_EBUSC_BA(ch)	TX4927_EBUSC_BA(ch)
ch                276 arch/mips/include/asm/txx9/tx4938.h #define TX4938_EBUSC_SIZE(ch)	TX4927_EBUSC_SIZE(ch)
ch                277 arch/mips/include/asm/txx9/tx4938.h #define TX4938_EBUSC_WIDTH(ch)	TX4927_EBUSC_WIDTH(ch)
ch                293 arch/mips/include/asm/txx9/tx4938.h void tx4938_mtd_init(int ch);
ch                 23 arch/mips/include/asm/txx9/tx4939.h #define TX4939_ATA_REG(ch)	(TX4939_REG_BASE + 0x3000 + (ch) * 0x1000)
ch                 31 arch/mips/include/asm/txx9/tx4939.h #define TX4939_DMA_REG(ch)	(TX4939_REG_BASE + 0xb000 + (ch) * 0x800)
ch                 36 arch/mips/include/asm/txx9/tx4939.h #define TX4939_TMR_REG(ch)	\
ch                 37 arch/mips/include/asm/txx9/tx4939.h 	(TX4939_REG_BASE + 0xf000 + ((ch) + ((ch) >= 3) * 10) * 0x100)
ch                 39 arch/mips/include/asm/txx9/tx4939.h #define TX4939_SIO_REG(ch)	\
ch                 40 arch/mips/include/asm/txx9/tx4939.h 	(TX4939_REG_BASE + 0xf300 + (((ch) & 1) << 8) + (((ch) & 2) << 6))
ch                190 arch/mips/include/asm/txx9/tx4939.h #define TX4939_IR_DMA(ch, n)	(((ch) ? 22 : 10) + (n)) /* 10-13,22-25 */
ch                288 arch/mips/include/asm/txx9/tx4939.h #define TX4939_PCFG_PCICLKEN(ch)	(0x00010000<<(ch))
ch                490 arch/mips/include/asm/txx9/tx4939.h #define TX4939_EBUSC_CR(ch)	TX4927_EBUSC_CR(ch)
ch                491 arch/mips/include/asm/txx9/tx4939.h #define TX4939_EBUSC_BA(ch)	TX4927_EBUSC_BA(ch)
ch                492 arch/mips/include/asm/txx9/tx4939.h #define TX4939_EBUSC_SIZE(ch)	TX4927_EBUSC_SIZE(ch)
ch                493 arch/mips/include/asm/txx9/tx4939.h #define TX4939_EBUSC_WIDTH(ch)	\
ch                494 arch/mips/include/asm/txx9/tx4939.h 	(16 >> ((__u32)(TX4939_EBUSC_CR(ch) >> 20) & 0x1))
ch                515 arch/mips/include/asm/txx9/tx4939.h void tx4939_mtd_init(int ch);
ch                 55 arch/mips/lantiq/xway/dma.c ltq_dma_enable_irq(struct ltq_dma_channel *ch)
ch                 60 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32(ch->nr, LTQ_DMA_CS);
ch                 61 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32_mask(0, 1 << ch->nr, LTQ_DMA_IRNEN);
ch                 67 arch/mips/lantiq/xway/dma.c ltq_dma_disable_irq(struct ltq_dma_channel *ch)
ch                 72 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32(ch->nr, LTQ_DMA_CS);
ch                 73 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32_mask(1 << ch->nr, 0, LTQ_DMA_IRNEN);
ch                 79 arch/mips/lantiq/xway/dma.c ltq_dma_ack_irq(struct ltq_dma_channel *ch)
ch                 84 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32(ch->nr, LTQ_DMA_CS);
ch                 91 arch/mips/lantiq/xway/dma.c ltq_dma_open(struct ltq_dma_channel *ch)
ch                 96 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32(ch->nr, LTQ_DMA_CS);
ch                103 arch/mips/lantiq/xway/dma.c ltq_dma_close(struct ltq_dma_channel *ch)
ch                108 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32(ch->nr, LTQ_DMA_CS);
ch                110 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32_mask(1 << ch->nr, 0, LTQ_DMA_IRNEN);
ch                116 arch/mips/lantiq/xway/dma.c ltq_dma_alloc(struct ltq_dma_channel *ch)
ch                120 arch/mips/lantiq/xway/dma.c 	ch->desc = 0;
ch                121 arch/mips/lantiq/xway/dma.c 	ch->desc_base = dma_alloc_coherent(ch->dev,
ch                123 arch/mips/lantiq/xway/dma.c 					   &ch->phys, GFP_ATOMIC);
ch                126 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32(ch->nr, LTQ_DMA_CS);
ch                127 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32(ch->phys, LTQ_DMA_CDBA);
ch                138 arch/mips/lantiq/xway/dma.c ltq_dma_alloc_tx(struct ltq_dma_channel *ch)
ch                142 arch/mips/lantiq/xway/dma.c 	ltq_dma_alloc(ch);
ch                146 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32_mask(0, 1 << ch->nr, LTQ_DMA_IRNEN);
ch                153 arch/mips/lantiq/xway/dma.c ltq_dma_alloc_rx(struct ltq_dma_channel *ch)
ch                157 arch/mips/lantiq/xway/dma.c 	ltq_dma_alloc(ch);
ch                161 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32_mask(0, 1 << ch->nr, LTQ_DMA_IRNEN);
ch                168 arch/mips/lantiq/xway/dma.c ltq_dma_free(struct ltq_dma_channel *ch)
ch                170 arch/mips/lantiq/xway/dma.c 	if (!ch->desc_base)
ch                172 arch/mips/lantiq/xway/dma.c 	ltq_dma_close(ch);
ch                173 arch/mips/lantiq/xway/dma.c 	dma_free_coherent(ch->dev, LTQ_DESC_NUM * LTQ_DESC_SIZE,
ch                174 arch/mips/lantiq/xway/dma.c 		ch->desc_base, ch->phys);
ch                 70 arch/mips/ralink/early_printk.c void prom_putchar(char ch)
ch                 78 arch/mips/ralink/early_printk.c 		uart_w32((unsigned char)ch, UART_TX);
ch                 84 arch/mips/ralink/early_printk.c 		uart_w32((unsigned char)ch, UART_REG_TX);
ch                 44 arch/mips/txx9/generic/7segled.c 	unsigned int ch = dev->id;
ch                 45 arch/mips/txx9/generic/7segled.c 	txx9_7segled_putc(ch, buf[0]);
ch                 53 arch/mips/txx9/generic/7segled.c 	unsigned int ch = dev->id;
ch                 54 arch/mips/txx9/generic/7segled.c 	tx_7segled_putc(ch, buf[0]);
ch                 80 arch/mips/txx9/generic/setup_tx3927.c 	for (i = 0; i < ARRAY_SIZE(tx3927_dmaptr->ch); i++) {
ch                 82 arch/mips/txx9/generic/setup_tx3927.c 		tx3927_dmaptr->ch[i].ccr = TX3927_DMA_CCR_CHRST;
ch                 83 arch/mips/txx9/generic/setup_tx3927.c 		tx3927_dmaptr->ch[i].ccr = 0;
ch                125 arch/mips/txx9/generic/setup_tx3927.c void __init tx3927_mtd_init(int ch)
ch                128 arch/mips/txx9/generic/setup_tx3927.c 		.width = TX3927_ROMC_WIDTH(ch) / 8,
ch                130 arch/mips/txx9/generic/setup_tx3927.c 	unsigned long start = txx9_ce_res[ch].start;
ch                131 arch/mips/txx9/generic/setup_tx3927.c 	unsigned long size = txx9_ce_res[ch].end - start + 1;
ch                133 arch/mips/txx9/generic/setup_tx3927.c 	if (!(tx3927_romcptr->cr[ch] & 0x8))
ch                135 arch/mips/txx9/generic/setup_tx3927.c 	txx9_physmap_flash_init(ch, start, size, &pdata);
ch                241 arch/mips/txx9/generic/setup_tx4927.c void __init tx4927_mtd_init(int ch)
ch                244 arch/mips/txx9/generic/setup_tx4927.c 		.width = TX4927_EBUSC_WIDTH(ch) / 8,
ch                246 arch/mips/txx9/generic/setup_tx4927.c 	unsigned long start = txx9_ce_res[ch].start;
ch                247 arch/mips/txx9/generic/setup_tx4927.c 	unsigned long size = txx9_ce_res[ch].end - start + 1;
ch                249 arch/mips/txx9/generic/setup_tx4927.c 	if (!(TX4927_EBUSC_CR(ch) & 0x8))
ch                251 arch/mips/txx9/generic/setup_tx4927.c 	txx9_physmap_flash_init(ch, start, size, &pdata);
ch                320 arch/mips/txx9/generic/setup_tx4938.c void __init tx4938_mtd_init(int ch)
ch                323 arch/mips/txx9/generic/setup_tx4938.c 		.width = TX4938_EBUSC_WIDTH(ch) / 8,
ch                325 arch/mips/txx9/generic/setup_tx4938.c 	unsigned long start = txx9_ce_res[ch].start;
ch                326 arch/mips/txx9/generic/setup_tx4938.c 	unsigned long size = txx9_ce_res[ch].end - start + 1;
ch                328 arch/mips/txx9/generic/setup_tx4938.c 	if (!(TX4938_EBUSC_CR(ch) & 0x8))
ch                330 arch/mips/txx9/generic/setup_tx4938.c 	txx9_physmap_flash_init(ch, start, size, &pdata);
ch                374 arch/mips/txx9/generic/setup_tx4939.c void __init tx4939_mtd_init(int ch)
ch                377 arch/mips/txx9/generic/setup_tx4939.c 		.width = TX4939_EBUSC_WIDTH(ch) / 8,
ch                379 arch/mips/txx9/generic/setup_tx4939.c 	unsigned long start = txx9_ce_res[ch].start;
ch                380 arch/mips/txx9/generic/setup_tx4939.c 	unsigned long size = txx9_ce_res[ch].end - start + 1;
ch                382 arch/mips/txx9/generic/setup_tx4939.c 	if (!(TX4939_EBUSC_CR(ch) & 0x8))
ch                384 arch/mips/txx9/generic/setup_tx4939.c 	txx9_physmap_flash_init(ch, start, size, &pdata);
ch                387 arch/mips/txx9/generic/setup_tx4939.c #define TX4939_ATA_REG_PHYS(ch) (TX4939_ATA_REG(ch) & 0xfffffffffULL)
ch                 26 arch/nios2/boot/compressed/console.c static void jtag_putc(int ch)
ch                 30 arch/nios2/boot/compressed/console.c 		writeb(ch, uartbase + ALTERA_JTAGUART_DATA_REG);
ch                 33 arch/nios2/boot/compressed/console.c static void jtag_putc(int ch)
ch                 38 arch/nios2/boot/compressed/console.c 	writeb(ch, uartbase + ALTERA_JTAGUART_DATA_REG);
ch                 42 arch/nios2/boot/compressed/console.c static int putchar(int ch)
ch                 44 arch/nios2/boot/compressed/console.c 	jtag_putc(ch);
ch                 45 arch/nios2/boot/compressed/console.c 	return ch;
ch                 64 arch/nios2/boot/compressed/console.c static void uart_putc(int ch)
ch                 73 arch/nios2/boot/compressed/console.c 	writeb(ch, uartbase + ALTERA_UART_TXDATA_REG);
ch                 76 arch/nios2/boot/compressed/console.c static int putchar(int ch)
ch                 78 arch/nios2/boot/compressed/console.c 	uart_putc(ch);
ch                 79 arch/nios2/boot/compressed/console.c 	if (ch == '\n')
ch                 81 arch/nios2/boot/compressed/console.c 	return ch;
ch                 96 arch/nios2/boot/compressed/console.c static int putchar(int ch)
ch                 98 arch/nios2/boot/compressed/console.c 	return ch;
ch                137 arch/nios2/boot/compressed/misc.c 	uch *in, *out, ch;
ch                142 arch/nios2/boot/compressed/misc.c 		ch = *out++ = *in++;
ch                143 arch/nios2/boot/compressed/misc.c 		c = crc_32_tab[((int)c ^ ch) & 0xff] ^ (c >> 8);
ch               1269 arch/parisc/kernel/firmware.c 	int ch;
ch               1284 arch/parisc/kernel/firmware.c 	ch = *iodc_dbuf;
ch               1291 arch/parisc/kernel/firmware.c 	return ch;
ch                 39 arch/powerpc/boot/serial.c 	char ch, *cp;
ch                 49 arch/powerpc/boot/serial.c 			while (((ch = scdp->getc()) != '\n') && (ch != '\r')) {
ch                 51 arch/powerpc/boot/serial.c 				if ((ch == '\b') || (ch == '\177')) {
ch                 58 arch/powerpc/boot/serial.c 				} else if ((ch == '\030') || (ch == '\025')) {
ch                 65 arch/powerpc/boot/serial.c 						*cp++ = ch;
ch                 67 arch/powerpc/boot/serial.c 						scdp->putc(ch);
ch                 70 arch/powerpc/boot/ugecon.c static void ug_raw_putc(char ch)
ch                 72 arch/powerpc/boot/ugecon.c 	ug_io_transaction(0xb0000000 | (ch << 20));
ch                 75 arch/powerpc/boot/ugecon.c static void ug_putc(char ch)
ch                 85 arch/powerpc/boot/ugecon.c 		ug_raw_putc(ch);
ch                 15 arch/powerpc/boot/ugecon.h extern void ug_putc(char ch);
ch                635 arch/powerpc/math-emu/math_efp.c 			int ch, cl;
ch                643 arch/powerpc/math-emu/math_efp.c 			ch = (IR0 == cmp) ? 1 : 0;
ch                645 arch/powerpc/math-emu/math_efp.c 			IR = (ch << 3) | (cl << 2) | ((ch | cl) << 1) |
ch                646 arch/powerpc/math-emu/math_efp.c 				((ch & cl) << 0);
ch                 97 arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c static void ug_raw_putc(char ch)
ch                 99 arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c 	ug_io_transaction(0xb0000000 | (ch << 20));
ch                106 arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c static void ug_putc(char ch)
ch                113 arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c 	if (ch == '\n')
ch                119 arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c 		ug_raw_putc(ch);
ch                167 arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c static void ug_udbg_putc(char ch)
ch                169 arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c 	ug_putc(ch);
ch                177 arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c 	int ch;
ch                179 arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c 	while ((ch = ug_getc()) == -1)
ch                181 arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c 	return ch;
ch                 70 arch/powerpc/platforms/powermac/udbg_scc.c 	struct device_node *ch, *ch_def = NULL, *ch_a = NULL;
ch                 83 arch/powerpc/platforms/powermac/udbg_scc.c 	for (ch = NULL; (ch = of_get_next_child(escc, ch)) != NULL;) {
ch                 84 arch/powerpc/platforms/powermac/udbg_scc.c 		if (ch == stdout)
ch                 85 arch/powerpc/platforms/powermac/udbg_scc.c 			ch_def = of_node_get(ch);
ch                 86 arch/powerpc/platforms/powermac/udbg_scc.c 		if (of_node_name_eq(ch, "ch-a"))
ch                 87 arch/powerpc/platforms/powermac/udbg_scc.c 			ch_a = of_node_get(ch);
ch                 92 arch/powerpc/platforms/powermac/udbg_scc.c 	ch = ch_def ? ch_def : ch_a;
ch                107 arch/powerpc/platforms/powermac/udbg_scc.c 	pmac_call_feature(PMAC_FTR_SCC_ENABLE, ch,
ch                110 arch/powerpc/platforms/powermac/udbg_scc.c 	if (ch == ch_a)
ch                224 arch/powerpc/platforms/ps3/gelic_udbg.c static void ps3gelic_udbg_putc(char ch)
ch                226 arch/powerpc/platforms/ps3/gelic_udbg.c 	*pmsgc++ = ch;
ch                227 arch/powerpc/platforms/ps3/gelic_udbg.c 	if (ch == '\n' || (pmsgc-pmsg) >= GELIC_MAX_MESSAGE_SIZE) {
ch                 85 arch/powerpc/xmon/nonstdio.c 	char ch = c;
ch                 89 arch/powerpc/xmon/nonstdio.c 	return xmon_write(&ch, 1) == 1? c: -1;
ch                 43 arch/riscv/include/asm/sbi.h static inline void sbi_console_putchar(int ch)
ch                 45 arch/riscv/include/asm/sbi.h 	SBI_CALL_1(SBI_CONSOLE_PUTCHAR, ch);
ch                183 arch/s390/include/asm/bitops.h 	unsigned char ch;
ch                185 arch/s390/include/asm/bitops.h 	ch = *addr;
ch                187 arch/s390/include/asm/bitops.h 	return (ch >> (nr & 7)) & 1;
ch                194 arch/s390/include/asm/bitops.h 	unsigned char ch;
ch                196 arch/s390/include/asm/bitops.h 	ch = *addr;
ch                198 arch/s390/include/asm/bitops.h 	return (ch >> (nr & 7)) & 1;
ch                205 arch/s390/include/asm/bitops.h 	unsigned char ch;
ch                207 arch/s390/include/asm/bitops.h 	ch = *addr;
ch                209 arch/s390/include/asm/bitops.h 	return (ch >> (nr & 7)) & 1;
ch                218 arch/sh/boards/mach-ap325rxa/setup.c 	.ch[0] = {
ch                341 arch/sh/boards/mach-ecovec24/setup.c 	.ch[0] = {
ch               1206 arch/sh/boards/mach-ecovec24/setup.c 		lcdc_info.ch[0].clock_divider		= 1;
ch               1207 arch/sh/boards/mach-ecovec24/setup.c 		lcdc_info.ch[0].lcd_modes		= ecovec_dvi_modes;
ch               1208 arch/sh/boards/mach-ecovec24/setup.c 		lcdc_info.ch[0].num_modes		= ARRAY_SIZE(ecovec_dvi_modes);
ch               1218 arch/sh/boards/mach-ecovec24/setup.c 		lcdc_info.ch[0].clock_divider		= 2;
ch               1219 arch/sh/boards/mach-ecovec24/setup.c 		lcdc_info.ch[0].lcd_modes		= ecovec_lcd_modes;
ch               1220 arch/sh/boards/mach-ecovec24/setup.c 		lcdc_info.ch[0].num_modes		= ARRAY_SIZE(ecovec_lcd_modes);
ch                159 arch/sh/boards/mach-kfr2r09/setup.c 	.ch[0] = {
ch                247 arch/sh/boards/mach-migor/setup.c 	.ch[0] = {
ch                261 arch/sh/boards/mach-migor/setup.c 	.ch[0] = {
ch                191 arch/sh/boards/mach-se/7724/setup.c 	.ch[0] = {
ch                906 arch/sh/boards/mach-se/7724/setup.c 		lcdc_info.ch[0].lcd_modes = lcdc_720p_modes;
ch                907 arch/sh/boards/mach-se/7724/setup.c 		lcdc_info.ch[0].num_modes = ARRAY_SIZE(lcdc_720p_modes);
ch                910 arch/sh/boards/mach-se/7724/setup.c 		lcdc_info.ch[0].lcd_modes = lcdc_vga_modes;
ch                911 arch/sh/boards/mach-se/7724/setup.c 		lcdc_info.ch[0].num_modes = ARRAY_SIZE(lcdc_vga_modes);
ch                916 arch/sh/boards/mach-se/7724/setup.c 		lcdc_info.ch[0].interface_type = RGB18;
ch                917 arch/sh/boards/mach-se/7724/setup.c 		lcdc_info.ch[0].flags          = 0;
ch                920 arch/sh/boards/mach-se/7724/setup.c 		lcdc_info.ch[0].interface_type = RGB24;
ch                921 arch/sh/boards/mach-se/7724/setup.c 		lcdc_info.ch[0].flags          = LCDC_FLAGS_DWPOL;
ch                 40 arch/sh/kernel/process_64.c 	unsigned long long ah, al, bh, bl, ch, cl;
ch                 49 arch/sh/kernel/process_64.c 	ch = (regs->regs[15]) >> 32;
ch                 52 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                 60 arch/sh/kernel/process_64.c         asm volatile ("getcon   " __KCR0 ", %0" : "=r" (ch));
ch                 62 arch/sh/kernel/process_64.c 	ch = (ch) >> 32;
ch                 65 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                 71 arch/sh/kernel/process_64.c 	ch = (regs->regs[2]) >> 32;
ch                 74 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                 80 arch/sh/kernel/process_64.c 	ch = (regs->regs[5]) >> 32;
ch                 83 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                 89 arch/sh/kernel/process_64.c 	ch = (regs->regs[8]) >> 32;
ch                 92 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                 98 arch/sh/kernel/process_64.c 	ch = (regs->regs[11]) >> 32;
ch                101 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                107 arch/sh/kernel/process_64.c 	ch = (regs->regs[14]) >> 32;
ch                110 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                116 arch/sh/kernel/process_64.c 	ch = (regs->regs[19]) >> 32;
ch                119 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                125 arch/sh/kernel/process_64.c 	ch = (regs->regs[22]) >> 32;
ch                128 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                134 arch/sh/kernel/process_64.c 	ch = (regs->regs[25]) >> 32;
ch                137 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                143 arch/sh/kernel/process_64.c 	ch = (regs->regs[28]) >> 32;
ch                146 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                152 arch/sh/kernel/process_64.c 	ch = (regs->regs[31]) >> 32;
ch                155 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                161 arch/sh/kernel/process_64.c 	ch = (regs->regs[34]) >> 32;
ch                164 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                170 arch/sh/kernel/process_64.c 	ch = (regs->regs[37]) >> 32;
ch                173 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                179 arch/sh/kernel/process_64.c 	ch = (regs->regs[40]) >> 32;
ch                182 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                188 arch/sh/kernel/process_64.c 	ch = (regs->regs[43]) >> 32;
ch                191 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                197 arch/sh/kernel/process_64.c 	ch = (regs->regs[46]) >> 32;
ch                200 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                206 arch/sh/kernel/process_64.c 	ch = (regs->regs[49]) >> 32;
ch                209 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                215 arch/sh/kernel/process_64.c 	ch = (regs->regs[52]) >> 32;
ch                218 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                224 arch/sh/kernel/process_64.c 	ch = (regs->regs[55]) >> 32;
ch                227 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                233 arch/sh/kernel/process_64.c 	ch = (regs->regs[58]) >> 32;
ch                236 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                242 arch/sh/kernel/process_64.c 	ch = (regs->regs[61]) >> 32;
ch                245 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                251 arch/sh/kernel/process_64.c 	ch = (regs->tregs[1]) >> 32;
ch                254 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                260 arch/sh/kernel/process_64.c 	ch = (regs->tregs[4]) >> 32;
ch                263 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                269 arch/sh/kernel/process_64.c 	ch = (regs->tregs[7]) >> 32;
ch                272 arch/sh/kernel/process_64.c 	       ah, al, bh, bl, ch, cl);
ch                109 arch/sparc/include/asm/openprom.h 	void (*pv_putchar)(int ch);
ch                113 arch/sparc/include/asm/openprom.h 	int (*pv_nbputchar)(int ch);
ch                 41 arch/sparc/prom/printf.c 		char ch = *buf++;
ch                 42 arch/sparc/prom/printf.c 		if (ch == '\n') {
ch                 46 arch/sparc/prom/printf.c 		*dest++ = ch;
ch                187 arch/um/drivers/line.c int line_put_char(struct tty_struct *tty, unsigned char ch)
ch                189 arch/um/drivers/line.c 	return line_write(tty, &ch, sizeof(ch));
ch                 69 arch/um/drivers/line.h extern int line_put_char(struct tty_struct *tty, unsigned char ch);
ch                 35 arch/unicore32/include/mach/dma.h static inline void puv3_stop_dma(int ch)
ch                 37 arch/unicore32/include/mach/dma.h 	writel(readl(DMAC_CONFIG(ch)) & ~DMAC_CONFIG_EN, DMAC_CONFIG(ch));
ch                 40 arch/unicore32/include/mach/dma.h static inline void puv3_resume_dma(int ch)
ch                 42 arch/unicore32/include/mach/dma.h 	writel(readl(DMAC_CONFIG(ch)) | DMAC_CONFIG_EN, DMAC_CONFIG(ch));
ch                 28 arch/unicore32/include/mach/ocd.h #define putc(ch)	ocd_putc(ch)
ch                 30 arch/unicore32/include/mach/ocd.h #define putc(ch)
ch                 39 arch/unicore32/include/mach/regs-dmac.h #define DMAC_SRCADDR(ch)	(PKUNITY_DMAC_BASE + (ch)*DMASp + 0x00)
ch                 43 arch/unicore32/include/mach/regs-dmac.h #define DMAC_DESTADDR(ch)	(PKUNITY_DMAC_BASE + (ch)*DMASp + 0x04)
ch                 47 arch/unicore32/include/mach/regs-dmac.h #define DMAC_CONTROL(ch)	(PKUNITY_DMAC_BASE + (ch)*DMASp + 0x0C)
ch                 51 arch/unicore32/include/mach/regs-dmac.h #define DMAC_CONFIG(ch)		(PKUNITY_DMAC_BASE + (ch)*DMASp + 0x10)
ch                 57 arch/unicore32/include/mach/regs-dmac.h #define DMAC_CHANNEL(ch)	FIELD(1, 1, (ch))
ch                262 arch/x86/boot/boot.h 			u8 cl, ch, ecx2, ecx3;
ch                 98 arch/x86/boot/compressed/misc.c static void serial_putchar(int ch)
ch                105 arch/x86/boot/compressed/misc.c 	outb(ch, early_serial_base + TXR);
ch                  5 arch/x86/boot/ctype.h static inline int isdigit(int ch)
ch                  7 arch/x86/boot/ctype.h 	return (ch >= '0') && (ch <= '9');
ch                 10 arch/x86/boot/ctype.h static inline int isxdigit(int ch)
ch                 12 arch/x86/boot/ctype.h 	if (isdigit(ch))
ch                 15 arch/x86/boot/ctype.h 	if ((ch >= 'a') && (ch <= 'f'))
ch                 18 arch/x86/boot/ctype.h 	return (ch >= 'A') && (ch <= 'F');
ch                112 arch/x86/boot/edd.c 		ei->legacy_max_cylinder = oreg.ch + ((oreg.cl & 0xc0) << 2);
ch                 28 arch/x86/boot/tty.c static void __attribute__((section(".inittext"))) serial_putchar(int ch)
ch                 35 arch/x86/boot/tty.c 	outb(ch, early_serial_base + TXR);
ch                 38 arch/x86/boot/tty.c static void __attribute__((section(".inittext"))) bios_putchar(int ch)
ch                 46 arch/x86/boot/tty.c 	ireg.al = ch;
ch                 50 arch/x86/boot/tty.c void __attribute__((section(".inittext"))) putchar(int ch)
ch                 52 arch/x86/boot/tty.c 	if (ch == '\n')
ch                 55 arch/x86/boot/tty.c 	bios_putchar(ch);
ch                 58 arch/x86/boot/tty.c 		serial_putchar(ch);
ch                 33 arch/x86/boot/video.c 	if (oreg.ch & 0x20)
ch                 36 arch/x86/boot/video.c 	if ((oreg.ch & 0x1f) > (oreg.cl & 0x1f))
ch                141 arch/x86/boot/video.c 	char ch;
ch                160 arch/x86/boot/video.c 	ch = '0';
ch                178 arch/x86/boot/video.c 			       ch, mode_id, mi->x, resbuf, card->card_name);
ch                185 arch/x86/boot/video.c 			if (ch == '9')
ch                186 arch/x86/boot/video.c 				ch = 'a';
ch                187 arch/x86/boot/video.c 			else if (ch == 'z' || ch == ' ')
ch                188 arch/x86/boot/video.c 				ch = ' '; /* Out of keys... */
ch                190 arch/x86/boot/video.c 				ch++;
ch                113 arch/x86/kernel/early_printk.c static int early_serial_putc(unsigned char ch)
ch                119 arch/x86/kernel/early_printk.c 	serial_out(early_serial_base, TXR, ch);
ch                119 arch/xtensa/platforms/iss/console.c static int rs_put_char(struct tty_struct *tty, unsigned char ch)
ch                121 arch/xtensa/platforms/iss/console.c 	return rs_write(tty, &ch, 1);
ch                181 crypto/gf128mul.c 		u8 ch = ((u8 *)b)[15 - i];
ch                183 crypto/gf128mul.c 		if (ch & 0x80)
ch                185 crypto/gf128mul.c 		if (ch & 0x40)
ch                187 crypto/gf128mul.c 		if (ch & 0x20)
ch                189 crypto/gf128mul.c 		if (ch & 0x10)
ch                191 crypto/gf128mul.c 		if (ch & 0x08)
ch                193 crypto/gf128mul.c 		if (ch & 0x04)
ch                195 crypto/gf128mul.c 		if (ch & 0x02)
ch                197 crypto/gf128mul.c 		if (ch & 0x01)
ch                219 crypto/gf128mul.c 		u8 ch = ((u8 *)b)[i];
ch                221 crypto/gf128mul.c 		if (ch & 0x80)
ch                223 crypto/gf128mul.c 		if (ch & 0x40)
ch                225 crypto/gf128mul.c 		if (ch & 0x20)
ch                227 crypto/gf128mul.c 		if (ch & 0x10)
ch                229 crypto/gf128mul.c 		if (ch & 0x08)
ch                231 crypto/gf128mul.c 		if (ch & 0x04)
ch                233 crypto/gf128mul.c 		if (ch & 0x02)
ch                235 crypto/gf128mul.c 		if (ch & 0x01)
ch                405 crypto/vmac.c  	u64 ch = dctx->polytmp[0];
ch                413 crypto/vmac.c  		ADD128(ch, cl, rh, rl);
ch                421 crypto/vmac.c  		poly_step(ch, cl, pkh, pkl, rh, rl);
ch                425 crypto/vmac.c  	dctx->polytmp[0] = ch;
ch                540 crypto/vmac.c  	u64 ch = dctx->polytmp[0];
ch                553 crypto/vmac.c  			poly_step(ch, cl, tctx->polykey[0], tctx->polykey[1],
ch                556 crypto/vmac.c  			ADD128(ch, cl, rh, rl);
ch                560 crypto/vmac.c  	return l3hash(ch, cl, tctx->l3key[0], tctx->l3key[1], partial * 8);
ch                121 drivers/ata/pata_buddha.c 	u8 ch;
ch                123 drivers/ata/pata_buddha.c 	ch = z_readb((unsigned long)ap->private_data);
ch                125 drivers/ata/pata_buddha.c 	return !!(ch & 0x80);
ch                 99 drivers/ata/pata_gayle.c 	u8 ch;
ch                101 drivers/ata/pata_gayle.c 	ch = z_readb((unsigned long)ap->private_data);
ch                103 drivers/ata/pata_gayle.c 	return !!(ch & GAYLE_IRQ_IDE);
ch                334 drivers/atm/firestream.c 	int j, ch;
ch                346 drivers/atm/firestream.c 			ch = ptr[j];
ch                347 drivers/atm/firestream.c 			printk ("%c", (ch < 0x20)?'.':((ch > 0x7f)?'.':ch));
ch                197 drivers/auxdisplay/arm-charlcd.c static void charlcd_4bit_char(struct charlcd *lcd, u8 ch)
ch                199 drivers/auxdisplay/arm-charlcd.c 	u32 chlo = (ch << 4) & 0xf0;
ch                200 drivers/auxdisplay/arm-charlcd.c 	u32 chhi = (ch & 0xf0);
ch                231 drivers/auxdisplay/img-ascii-lcd.c 	unsigned int i, ch = ctx->scroll_pos;
ch                237 drivers/auxdisplay/img-ascii-lcd.c 		for (; i < num_chars && ch < ctx->message_len; i++, ch++)
ch                238 drivers/auxdisplay/img-ascii-lcd.c 			ctx->curr[i] = ctx->message[ch];
ch                241 drivers/auxdisplay/img-ascii-lcd.c 		ch = 0;
ch                416 drivers/block/aoe/aoecmd.c 	struct aoe_cfghdr *ch;
ch                426 drivers/block/aoe/aoecmd.c 		skb = new_skb(sizeof *h + sizeof *ch);
ch                431 drivers/block/aoe/aoecmd.c 		skb_put(skb, sizeof *h + sizeof *ch);
ch                435 drivers/block/aoe/aoecmd.c 		memset(h, 0, sizeof *h + sizeof *ch);
ch               1529 drivers/block/aoe/aoecmd.c 	struct aoe_cfghdr *ch;
ch               1538 drivers/block/aoe/aoecmd.c 	ch = (struct aoe_cfghdr *) (h+1);
ch               1561 drivers/block/aoe/aoecmd.c 	n = be16_to_cpu(ch->bufcnt);
ch               1586 drivers/block/aoe/aoecmd.c 	if (n > ch->scnt)
ch               1587 drivers/block/aoe/aoecmd.c 		n = ch->scnt;
ch               1593 drivers/block/aoe/aoecmd.c 		d->fw_ver = be16_to_cpu(ch->fwver);
ch                130 drivers/char/dtlk.c 	char ch;
ch                141 drivers/char/dtlk.c 			ch = dtlk_read_lpc();
ch                143 drivers/char/dtlk.c 			if (put_user(ch, buf++))
ch                162 drivers/char/dtlk.c 	int i = 0, retries = 0, ch;
ch                168 drivers/char/dtlk.c 		int i, ch;
ch                170 drivers/char/dtlk.c 			if (get_user(ch, buf + i))
ch                172 drivers/char/dtlk.c 			if (' ' <= ch && ch <= '~')
ch                173 drivers/char/dtlk.c 				printk("%c", ch);
ch                175 drivers/char/dtlk.c 				printk("\\%03o", ch);
ch                185 drivers/char/dtlk.c 		while (i < count && !get_user(ch, buf) &&
ch                186 drivers/char/dtlk.c 		       (ch == DTLK_CLEAR || dtlk_writeable())) {
ch                187 drivers/char/dtlk.c 			dtlk_write_tts(ch);
ch                569 drivers/char/dtlk.c 	char ch;
ch                580 drivers/char/dtlk.c 	ch = inb_p(dtlk_port_tts);	/* input from TTS port */
ch                581 drivers/char/dtlk.c 	ch &= 0x7f;
ch                582 drivers/char/dtlk.c 	outb_p(ch, dtlk_port_tts);
ch                593 drivers/char/dtlk.c 	return ch;
ch                599 drivers/char/dtlk.c 	char ch;
ch                604 drivers/char/dtlk.c 	ch = inb_p(dtlk_port_lpc);	/* input from LPC port */
ch                617 drivers/char/dtlk.c 	return ch;
ch                632 drivers/char/dtlk.c static char dtlk_write_tts(char ch)
ch                637 drivers/char/dtlk.c 	if (' ' <= ch && ch <= '~')
ch                638 drivers/char/dtlk.c 		printk("'%c'", ch);
ch                640 drivers/char/dtlk.c 		printk("0x%02x", ch);
ch                642 drivers/char/dtlk.c 	if (ch != DTLK_CLEAR)	/* no flow control for CLEAR command */
ch                649 drivers/char/dtlk.c 	outb_p(ch, dtlk_port_tts);	/* output to TTS port */
ch               3253 drivers/char/ipmi/ipmi_msghandler.c 	int ch;
ch               3287 drivers/char/ipmi/ipmi_msghandler.c 		ch = intf->curr_channel;
ch               3289 drivers/char/ipmi/ipmi_msghandler.c 		chans[ch].medium = msg->msg.data[2] & 0x7f;
ch               3290 drivers/char/ipmi/ipmi_msghandler.c 		chans[ch].protocol = msg->msg.data[3] & 0x1f;
ch               4260 drivers/char/ipmi/ipmi_msghandler.c 			int ch = msg->rsp[3] & 0xf;
ch               4266 drivers/char/ipmi/ipmi_msghandler.c 			if ((chans[ch].medium == IPMI_CHANNEL_MEDIUM_8023LAN)
ch               4267 drivers/char/ipmi/ipmi_msghandler.c 			    || (chans[ch].medium == IPMI_CHANNEL_MEDIUM_ASYNC))
ch                191 drivers/char/pcmcia/cm4000_cs.c static inline unsigned char invert_revert(unsigned char ch)
ch                193 drivers/char/pcmcia/cm4000_cs.c 	return bitrev8(~ch);
ch                322 drivers/char/pcmcia/cm4000_cs.c 	unsigned char ch, ifno;
ch                338 drivers/char/pcmcia/cm4000_cs.c 	ch = dev->atr[1];
ch                343 drivers/char/pcmcia/cm4000_cs.c 		if (ifno == 1 && (ch & 0x10)) {
ch                348 drivers/char/pcmcia/cm4000_cs.c 		} else if ((ifno == 2) && (ch & 0x10)) { /* TA(2) */
ch                353 drivers/char/pcmcia/cm4000_cs.c 		DEBUGP(5, dev, "Yi=%.2x\n", ch & 0xf0);
ch                354 drivers/char/pcmcia/cm4000_cs.c 		ix += ((ch & 0x10) >> 4)	/* no of int.face chars */
ch                355 drivers/char/pcmcia/cm4000_cs.c 		    +((ch & 0x20) >> 5)
ch                356 drivers/char/pcmcia/cm4000_cs.c 		    + ((ch & 0x40) >> 6)
ch                357 drivers/char/pcmcia/cm4000_cs.c 		    + ((ch & 0x80) >> 7);
ch                359 drivers/char/pcmcia/cm4000_cs.c 		if (ch & 0x80) {	/* TDi */
ch                360 drivers/char/pcmcia/cm4000_cs.c 			ch = dev->atr[ix];
ch                361 drivers/char/pcmcia/cm4000_cs.c 			if ((ch & 0x0f)) {
ch               1485 drivers/char/pcmcia/synclink_cs.c static int mgslpc_put_char(struct tty_struct *tty, unsigned char ch)
ch               1492 drivers/char/pcmcia/synclink_cs.c 			__FILE__, __LINE__, ch, info->device_name);
ch               1505 drivers/char/pcmcia/synclink_cs.c 			info->tx_buf[info->tx_put++] = ch;
ch               1691 drivers/char/pcmcia/synclink_cs.c static void mgslpc_send_xchar(struct tty_struct *tty, char ch)
ch               1698 drivers/char/pcmcia/synclink_cs.c 			 __FILE__, __LINE__, info->device_name, ch);
ch               1703 drivers/char/pcmcia/synclink_cs.c 	info->x_char = ch;
ch               1704 drivers/char/pcmcia/synclink_cs.c 	if (ch) {
ch                214 drivers/clk/berlin/berlin2-avpll.c 	struct berlin2_avpll_channel *ch = to_avpll_channel(hw);
ch                217 drivers/clk/berlin/berlin2-avpll.c 	if (ch->index == 7)
ch                220 drivers/clk/berlin/berlin2-avpll.c 	reg = readl_relaxed(ch->base + VCO_CTRL10);
ch                221 drivers/clk/berlin/berlin2-avpll.c 	reg &= VCO_POWERUP_CH1 << ch->index;
ch                228 drivers/clk/berlin/berlin2-avpll.c 	struct berlin2_avpll_channel *ch = to_avpll_channel(hw);
ch                231 drivers/clk/berlin/berlin2-avpll.c 	reg = readl_relaxed(ch->base + VCO_CTRL10);
ch                232 drivers/clk/berlin/berlin2-avpll.c 	reg |= VCO_POWERUP_CH1 << ch->index;
ch                233 drivers/clk/berlin/berlin2-avpll.c 	writel_relaxed(reg, ch->base + VCO_CTRL10);
ch                240 drivers/clk/berlin/berlin2-avpll.c 	struct berlin2_avpll_channel *ch = to_avpll_channel(hw);
ch                243 drivers/clk/berlin/berlin2-avpll.c 	reg = readl_relaxed(ch->base + VCO_CTRL10);
ch                244 drivers/clk/berlin/berlin2-avpll.c 	reg &= ~(VCO_POWERUP_CH1 << ch->index);
ch                245 drivers/clk/berlin/berlin2-avpll.c 	writel_relaxed(reg, ch->base + VCO_CTRL10);
ch                254 drivers/clk/berlin/berlin2-avpll.c 	struct berlin2_avpll_channel *ch = to_avpll_channel(hw);
ch                258 drivers/clk/berlin/berlin2-avpll.c 	reg = readl_relaxed(ch->base + VCO_CTRL30);
ch                259 drivers/clk/berlin/berlin2-avpll.c 	if ((reg & (VCO_DPLL_CH1_ENABLE << ch->index)) == 0)
ch                267 drivers/clk/berlin/berlin2-avpll.c 	reg = readl_relaxed(ch->base + VCO_SYNC1n(ch->index));
ch                269 drivers/clk/berlin/berlin2-avpll.c 	if (ch->flags & BERLIN2_AVPLL_BIT_QUIRK && ch->index == 0)
ch                273 drivers/clk/berlin/berlin2-avpll.c 	reg = readl_relaxed(ch->base + VCO_SYNC2n(ch->index));
ch                277 drivers/clk/berlin/berlin2-avpll.c 	if (ch->index == 7)
ch                284 drivers/clk/berlin/berlin2-avpll.c 	reg = readl_relaxed(ch->base + VCO_CTRL11) >> 7;
ch                285 drivers/clk/berlin/berlin2-avpll.c 	reg = (reg >> (ch->index * 3));
ch                293 drivers/clk/berlin/berlin2-avpll.c 	if (ch->index == 0) {
ch                294 drivers/clk/berlin/berlin2-avpll.c 		reg = readl_relaxed(ch->base + VCO_CTRL11);
ch                297 drivers/clk/berlin/berlin2-avpll.c 		reg = readl_relaxed(ch->base + VCO_CTRL12);
ch                298 drivers/clk/berlin/berlin2-avpll.c 		reg >>= (ch->index-1) * 3;
ch                307 drivers/clk/berlin/berlin2-avpll.c 	if (ch->index < 2) {
ch                308 drivers/clk/berlin/berlin2-avpll.c 		reg = readl_relaxed(ch->base + VCO_CTRL12);
ch                309 drivers/clk/berlin/berlin2-avpll.c 		reg >>= 18 + (ch->index * 7);
ch                310 drivers/clk/berlin/berlin2-avpll.c 	} else if (ch->index < 7) {
ch                311 drivers/clk/berlin/berlin2-avpll.c 		reg = readl_relaxed(ch->base + VCO_CTRL13);
ch                312 drivers/clk/berlin/berlin2-avpll.c 		reg >>= (ch->index - 2) * 7;
ch                314 drivers/clk/berlin/berlin2-avpll.c 		reg = readl_relaxed(ch->base + VCO_CTRL14);
ch                325 drivers/clk/berlin/berlin2-avpll.c 	if (ch->index < 6) {
ch                326 drivers/clk/berlin/berlin2-avpll.c 		reg = readl_relaxed(ch->base + VCO_CTRL14);
ch                327 drivers/clk/berlin/berlin2-avpll.c 		reg >>= 7 + (ch->index * 4);
ch                329 drivers/clk/berlin/berlin2-avpll.c 		reg = readl_relaxed(ch->base + VCO_CTRL15);
ch                360 drivers/clk/berlin/berlin2-avpll.c 	struct berlin2_avpll_channel *ch;
ch                363 drivers/clk/berlin/berlin2-avpll.c 	ch = kzalloc(sizeof(*ch), GFP_KERNEL);
ch                364 drivers/clk/berlin/berlin2-avpll.c 	if (!ch)
ch                367 drivers/clk/berlin/berlin2-avpll.c 	ch->base = base;
ch                369 drivers/clk/berlin/berlin2-avpll.c 		ch->index = quirk_index[index];
ch                371 drivers/clk/berlin/berlin2-avpll.c 		ch->index = index;
ch                373 drivers/clk/berlin/berlin2-avpll.c 	ch->flags = ch_flags;
ch                374 drivers/clk/berlin/berlin2-avpll.c 	ch->hw.init = &init;
ch                381 drivers/clk/berlin/berlin2-avpll.c 	return clk_hw_register(NULL, &ch->hw);
ch                 65 drivers/clk/clk-cs2000-cp.c #define CH_SIZE_ERR(ch)		((ch < 0) || (ch >= CH_MAX))
ch                224 drivers/clk/clk-cs2000-cp.c 			    int ch, u32 rate_in, u32 rate_out)
ch                230 drivers/clk/clk-cs2000-cp.c 	if (CH_SIZE_ERR(ch))
ch                236 drivers/clk/clk-cs2000-cp.c 				   Ratio_Add(ch, i),
ch                245 drivers/clk/clk-cs2000-cp.c static u32 cs2000_ratio_get(struct cs2000_priv *priv, int ch)
ch                253 drivers/clk/clk-cs2000-cp.c 		tmp = cs2000_read(priv, Ratio_Add(ch, i));
ch                263 drivers/clk/clk-cs2000-cp.c static int cs2000_ratio_select(struct cs2000_priv *priv, int ch)
ch                267 drivers/clk/clk-cs2000-cp.c 	if (CH_SIZE_ERR(ch))
ch                275 drivers/clk/clk-cs2000-cp.c 	ret = cs2000_bset(priv, DEVICE_CFG1, RSEL_MASK, RSEL(ch));
ch                281 drivers/clk/clk-cs2000-cp.c 			  (LOCKCLK(ch) | FRACNSRC_STATIC));
ch                292 drivers/clk/clk-cs2000-cp.c 	int ch = 0; /* it uses ch0 only at this point */
ch                295 drivers/clk/clk-cs2000-cp.c 	ratio = cs2000_ratio_get(priv, ch);
ch                310 drivers/clk/clk-cs2000-cp.c static int __cs2000_set_rate(struct cs2000_priv *priv, int ch,
ch                320 drivers/clk/clk-cs2000-cp.c 	ret = cs2000_ratio_set(priv, ch, parent_rate, rate);
ch                324 drivers/clk/clk-cs2000-cp.c 	ret = cs2000_ratio_select(priv, ch);
ch                338 drivers/clk/clk-cs2000-cp.c 	int ch = 0; /* it uses ch0 only at this point */
ch                340 drivers/clk/clk-cs2000-cp.c 	return __cs2000_set_rate(priv, ch, rate, parent_rate);
ch                345 drivers/clk/clk-cs2000-cp.c 	int ch = 0; /* it uses ch0 only at this point */
ch                347 drivers/clk/clk-cs2000-cp.c 	return __cs2000_set_rate(priv, ch,
ch                424 drivers/clk/clk-cs2000-cp.c 	int ch = 0; /* it uses ch0 only at this point */
ch                436 drivers/clk/clk-cs2000-cp.c 	ret = __cs2000_set_rate(priv, ch, rate, rate);
ch                579 drivers/clk/rockchip/clk.h #define COMPOSITE_FRACMUX(_id, cname, pname, f, mo, df, go, gs, gf, ch) \
ch                594 drivers/clk/rockchip/clk.h 		.child		= ch,				\
ch                597 drivers/clk/rockchip/clk.h #define COMPOSITE_FRACMUX_NOGATE(_id, cname, pname, f, mo, df, ch) \
ch                610 drivers/clk/rockchip/clk.h 		.child		= ch,				\
ch                 21 drivers/clk/uniphier/clk-uniphier-mio.c #define UNIPHIER_MIO_CLK_SD(_idx, ch)					\
ch                 23 drivers/clk/uniphier/clk-uniphier-mio.c 		.name = "sd" #ch "-sel",				\
ch                 38 drivers/clk/uniphier/clk-uniphier-mio.c 			.reg = 0x30 + 0x200 * (ch),			\
ch                 61 drivers/clk/uniphier/clk-uniphier-mio.c 	UNIPHIER_CLK_GATE("sd" #ch, (_idx), "sd" #ch "-sel", 0x20 + 0x200 * (ch), 8)
ch                 63 drivers/clk/uniphier/clk-uniphier-mio.c #define UNIPHIER_MIO_CLK_USB2(idx, ch)					\
ch                 64 drivers/clk/uniphier/clk-uniphier-mio.c 	UNIPHIER_CLK_GATE("usb2" #ch, (idx), "usb2", 0x20 + 0x200 * (ch), 28)
ch                 66 drivers/clk/uniphier/clk-uniphier-mio.c #define UNIPHIER_MIO_CLK_USB2_PHY(idx, ch)				\
ch                 67 drivers/clk/uniphier/clk-uniphier-mio.c 	UNIPHIER_CLK_GATE("usb2" #ch "-phy", (idx), "usb2", 0x20 + 0x200 * (ch), 29)
ch                  9 drivers/clk/uniphier/clk-uniphier-peri.c #define UNIPHIER_PERI_CLK_UART(idx, ch)					\
ch                 10 drivers/clk/uniphier/clk-uniphier-peri.c 	UNIPHIER_CLK_GATE("uart" #ch, (idx), "uart", 0x24, 19 + (ch))
ch                 15 drivers/clk/uniphier/clk-uniphier-peri.c #define UNIPHIER_PERI_CLK_I2C(idx, ch)					\
ch                 16 drivers/clk/uniphier/clk-uniphier-peri.c 	UNIPHIER_CLK_GATE("i2c" #ch, (idx), "i2c-common", 0x24, 5 + (ch))
ch                 18 drivers/clk/uniphier/clk-uniphier-peri.c #define UNIPHIER_PERI_CLK_FI2C(idx, ch)					\
ch                 19 drivers/clk/uniphier/clk-uniphier-peri.c 	UNIPHIER_CLK_GATE("i2c" #ch, (idx), "i2c", 0x24, 24 + (ch))
ch                 21 drivers/clk/uniphier/clk-uniphier-peri.c #define UNIPHIER_PERI_CLK_SCSSI(idx, ch)				\
ch                 22 drivers/clk/uniphier/clk-uniphier-peri.c 	UNIPHIER_CLK_GATE("scssi" #ch, (idx), "spi", 0x20, 17 + (ch))
ch                 53 drivers/clk/uniphier/clk-uniphier-sys.c #define UNIPHIER_PRO4_SYS_CLK_USB3(idx, ch)				\
ch                 54 drivers/clk/uniphier/clk-uniphier-sys.c 	UNIPHIER_CLK_GATE("usb3" #ch, (idx), NULL, 0x2104, 16 + (ch))
ch                134 drivers/clocksource/h8300_timer16.c 	unsigned int ch;
ch                163 drivers/clocksource/h8300_timer16.c 	of_property_read_u32(node, "renesas,channel", &ch);
ch                167 drivers/clocksource/h8300_timer16.c 	timer16_priv.enb = ch;
ch                168 drivers/clocksource/h8300_timer16.c 	timer16_priv.ovf = ch;
ch                169 drivers/clocksource/h8300_timer16.c 	timer16_priv.ovie = 4 + ch;
ch                234 drivers/clocksource/sh_cmt.c static inline u32 sh_cmt_read_cmstr(struct sh_cmt_channel *ch)
ch                236 drivers/clocksource/sh_cmt.c 	if (ch->iostart)
ch                237 drivers/clocksource/sh_cmt.c 		return ch->cmt->info->read_control(ch->iostart, 0);
ch                239 drivers/clocksource/sh_cmt.c 		return ch->cmt->info->read_control(ch->cmt->mapbase, 0);
ch                242 drivers/clocksource/sh_cmt.c static inline void sh_cmt_write_cmstr(struct sh_cmt_channel *ch, u32 value)
ch                244 drivers/clocksource/sh_cmt.c 	if (ch->iostart)
ch                245 drivers/clocksource/sh_cmt.c 		ch->cmt->info->write_control(ch->iostart, 0, value);
ch                247 drivers/clocksource/sh_cmt.c 		ch->cmt->info->write_control(ch->cmt->mapbase, 0, value);
ch                250 drivers/clocksource/sh_cmt.c static inline u32 sh_cmt_read_cmcsr(struct sh_cmt_channel *ch)
ch                252 drivers/clocksource/sh_cmt.c 	return ch->cmt->info->read_control(ch->ioctrl, CMCSR);
ch                255 drivers/clocksource/sh_cmt.c static inline void sh_cmt_write_cmcsr(struct sh_cmt_channel *ch, u32 value)
ch                257 drivers/clocksource/sh_cmt.c 	ch->cmt->info->write_control(ch->ioctrl, CMCSR, value);
ch                260 drivers/clocksource/sh_cmt.c static inline u32 sh_cmt_read_cmcnt(struct sh_cmt_channel *ch)
ch                262 drivers/clocksource/sh_cmt.c 	return ch->cmt->info->read_count(ch->ioctrl, CMCNT);
ch                265 drivers/clocksource/sh_cmt.c static inline void sh_cmt_write_cmcnt(struct sh_cmt_channel *ch, u32 value)
ch                267 drivers/clocksource/sh_cmt.c 	ch->cmt->info->write_count(ch->ioctrl, CMCNT, value);
ch                270 drivers/clocksource/sh_cmt.c static inline void sh_cmt_write_cmcor(struct sh_cmt_channel *ch, u32 value)
ch                272 drivers/clocksource/sh_cmt.c 	ch->cmt->info->write_count(ch->ioctrl, CMCOR, value);
ch                275 drivers/clocksource/sh_cmt.c static u32 sh_cmt_get_counter(struct sh_cmt_channel *ch, u32 *has_wrapped)
ch                280 drivers/clocksource/sh_cmt.c 	o1 = sh_cmt_read_cmcsr(ch) & ch->cmt->info->overflow_bit;
ch                285 drivers/clocksource/sh_cmt.c 		v1 = sh_cmt_read_cmcnt(ch);
ch                286 drivers/clocksource/sh_cmt.c 		v2 = sh_cmt_read_cmcnt(ch);
ch                287 drivers/clocksource/sh_cmt.c 		v3 = sh_cmt_read_cmcnt(ch);
ch                288 drivers/clocksource/sh_cmt.c 		o1 = sh_cmt_read_cmcsr(ch) & ch->cmt->info->overflow_bit;
ch                296 drivers/clocksource/sh_cmt.c static void sh_cmt_start_stop_ch(struct sh_cmt_channel *ch, int start)
ch                302 drivers/clocksource/sh_cmt.c 	raw_spin_lock_irqsave(&ch->cmt->lock, flags);
ch                303 drivers/clocksource/sh_cmt.c 	value = sh_cmt_read_cmstr(ch);
ch                306 drivers/clocksource/sh_cmt.c 		value |= 1 << ch->timer_bit;
ch                308 drivers/clocksource/sh_cmt.c 		value &= ~(1 << ch->timer_bit);
ch                310 drivers/clocksource/sh_cmt.c 	sh_cmt_write_cmstr(ch, value);
ch                311 drivers/clocksource/sh_cmt.c 	raw_spin_unlock_irqrestore(&ch->cmt->lock, flags);
ch                314 drivers/clocksource/sh_cmt.c static int sh_cmt_enable(struct sh_cmt_channel *ch)
ch                318 drivers/clocksource/sh_cmt.c 	pm_runtime_get_sync(&ch->cmt->pdev->dev);
ch                319 drivers/clocksource/sh_cmt.c 	dev_pm_syscore_device(&ch->cmt->pdev->dev, true);
ch                322 drivers/clocksource/sh_cmt.c 	ret = clk_enable(ch->cmt->clk);
ch                324 drivers/clocksource/sh_cmt.c 		dev_err(&ch->cmt->pdev->dev, "ch%u: cannot enable clock\n",
ch                325 drivers/clocksource/sh_cmt.c 			ch->index);
ch                330 drivers/clocksource/sh_cmt.c 	sh_cmt_start_stop_ch(ch, 0);
ch                333 drivers/clocksource/sh_cmt.c 	if (ch->cmt->info->width == 16) {
ch                334 drivers/clocksource/sh_cmt.c 		sh_cmt_write_cmcsr(ch, SH_CMT16_CMCSR_CMIE |
ch                337 drivers/clocksource/sh_cmt.c 		sh_cmt_write_cmcsr(ch, SH_CMT32_CMCSR_CMM |
ch                343 drivers/clocksource/sh_cmt.c 	sh_cmt_write_cmcor(ch, 0xffffffff);
ch                344 drivers/clocksource/sh_cmt.c 	sh_cmt_write_cmcnt(ch, 0);
ch                358 drivers/clocksource/sh_cmt.c 		if (!sh_cmt_read_cmcnt(ch))
ch                363 drivers/clocksource/sh_cmt.c 	if (sh_cmt_read_cmcnt(ch)) {
ch                364 drivers/clocksource/sh_cmt.c 		dev_err(&ch->cmt->pdev->dev, "ch%u: cannot clear CMCNT\n",
ch                365 drivers/clocksource/sh_cmt.c 			ch->index);
ch                371 drivers/clocksource/sh_cmt.c 	sh_cmt_start_stop_ch(ch, 1);
ch                375 drivers/clocksource/sh_cmt.c 	clk_disable(ch->cmt->clk);
ch                381 drivers/clocksource/sh_cmt.c static void sh_cmt_disable(struct sh_cmt_channel *ch)
ch                384 drivers/clocksource/sh_cmt.c 	sh_cmt_start_stop_ch(ch, 0);
ch                387 drivers/clocksource/sh_cmt.c 	sh_cmt_write_cmcsr(ch, 0);
ch                390 drivers/clocksource/sh_cmt.c 	clk_disable(ch->cmt->clk);
ch                392 drivers/clocksource/sh_cmt.c 	dev_pm_syscore_device(&ch->cmt->pdev->dev, false);
ch                393 drivers/clocksource/sh_cmt.c 	pm_runtime_put(&ch->cmt->pdev->dev);
ch                403 drivers/clocksource/sh_cmt.c static void sh_cmt_clock_event_program_verify(struct sh_cmt_channel *ch,
ch                406 drivers/clocksource/sh_cmt.c 	u32 value = ch->next_match_value;
ch                412 drivers/clocksource/sh_cmt.c 	now = sh_cmt_get_counter(ch, &has_wrapped);
ch                413 drivers/clocksource/sh_cmt.c 	ch->flags |= FLAG_REPROGRAM; /* force reprogram */
ch                420 drivers/clocksource/sh_cmt.c 		ch->flags |= FLAG_SKIPEVENT;
ch                432 drivers/clocksource/sh_cmt.c 		if (new_match > ch->max_match_value)
ch                433 drivers/clocksource/sh_cmt.c 			new_match = ch->max_match_value;
ch                435 drivers/clocksource/sh_cmt.c 		sh_cmt_write_cmcor(ch, new_match);
ch                437 drivers/clocksource/sh_cmt.c 		now = sh_cmt_get_counter(ch, &has_wrapped);
ch                438 drivers/clocksource/sh_cmt.c 		if (has_wrapped && (new_match > ch->match_value)) {
ch                445 drivers/clocksource/sh_cmt.c 			ch->flags |= FLAG_SKIPEVENT;
ch                456 drivers/clocksource/sh_cmt.c 			ch->match_value = new_match;
ch                467 drivers/clocksource/sh_cmt.c 			ch->match_value = new_match;
ch                483 drivers/clocksource/sh_cmt.c 			dev_warn(&ch->cmt->pdev->dev, "ch%u: too long delay\n",
ch                484 drivers/clocksource/sh_cmt.c 				 ch->index);
ch                489 drivers/clocksource/sh_cmt.c static void __sh_cmt_set_next(struct sh_cmt_channel *ch, unsigned long delta)
ch                491 drivers/clocksource/sh_cmt.c 	if (delta > ch->max_match_value)
ch                492 drivers/clocksource/sh_cmt.c 		dev_warn(&ch->cmt->pdev->dev, "ch%u: delta out of range\n",
ch                493 drivers/clocksource/sh_cmt.c 			 ch->index);
ch                495 drivers/clocksource/sh_cmt.c 	ch->next_match_value = delta;
ch                496 drivers/clocksource/sh_cmt.c 	sh_cmt_clock_event_program_verify(ch, 0);
ch                499 drivers/clocksource/sh_cmt.c static void sh_cmt_set_next(struct sh_cmt_channel *ch, unsigned long delta)
ch                503 drivers/clocksource/sh_cmt.c 	raw_spin_lock_irqsave(&ch->lock, flags);
ch                504 drivers/clocksource/sh_cmt.c 	__sh_cmt_set_next(ch, delta);
ch                505 drivers/clocksource/sh_cmt.c 	raw_spin_unlock_irqrestore(&ch->lock, flags);
ch                510 drivers/clocksource/sh_cmt.c 	struct sh_cmt_channel *ch = dev_id;
ch                513 drivers/clocksource/sh_cmt.c 	sh_cmt_write_cmcsr(ch, sh_cmt_read_cmcsr(ch) &
ch                514 drivers/clocksource/sh_cmt.c 			   ch->cmt->info->clear_bits);
ch                520 drivers/clocksource/sh_cmt.c 	if (ch->flags & FLAG_CLOCKSOURCE)
ch                521 drivers/clocksource/sh_cmt.c 		ch->total_cycles += ch->match_value + 1;
ch                523 drivers/clocksource/sh_cmt.c 	if (!(ch->flags & FLAG_REPROGRAM))
ch                524 drivers/clocksource/sh_cmt.c 		ch->next_match_value = ch->max_match_value;
ch                526 drivers/clocksource/sh_cmt.c 	ch->flags |= FLAG_IRQCONTEXT;
ch                528 drivers/clocksource/sh_cmt.c 	if (ch->flags & FLAG_CLOCKEVENT) {
ch                529 drivers/clocksource/sh_cmt.c 		if (!(ch->flags & FLAG_SKIPEVENT)) {
ch                530 drivers/clocksource/sh_cmt.c 			if (clockevent_state_oneshot(&ch->ced)) {
ch                531 drivers/clocksource/sh_cmt.c 				ch->next_match_value = ch->max_match_value;
ch                532 drivers/clocksource/sh_cmt.c 				ch->flags |= FLAG_REPROGRAM;
ch                535 drivers/clocksource/sh_cmt.c 			ch->ced.event_handler(&ch->ced);
ch                539 drivers/clocksource/sh_cmt.c 	ch->flags &= ~FLAG_SKIPEVENT;
ch                541 drivers/clocksource/sh_cmt.c 	if (ch->flags & FLAG_REPROGRAM) {
ch                542 drivers/clocksource/sh_cmt.c 		ch->flags &= ~FLAG_REPROGRAM;
ch                543 drivers/clocksource/sh_cmt.c 		sh_cmt_clock_event_program_verify(ch, 1);
ch                545 drivers/clocksource/sh_cmt.c 		if (ch->flags & FLAG_CLOCKEVENT)
ch                546 drivers/clocksource/sh_cmt.c 			if ((clockevent_state_shutdown(&ch->ced))
ch                547 drivers/clocksource/sh_cmt.c 			    || (ch->match_value == ch->next_match_value))
ch                548 drivers/clocksource/sh_cmt.c 				ch->flags &= ~FLAG_REPROGRAM;
ch                551 drivers/clocksource/sh_cmt.c 	ch->flags &= ~FLAG_IRQCONTEXT;
ch                556 drivers/clocksource/sh_cmt.c static int sh_cmt_start(struct sh_cmt_channel *ch, unsigned long flag)
ch                561 drivers/clocksource/sh_cmt.c 	raw_spin_lock_irqsave(&ch->lock, flags);
ch                563 drivers/clocksource/sh_cmt.c 	if (!(ch->flags & (FLAG_CLOCKEVENT | FLAG_CLOCKSOURCE)))
ch                564 drivers/clocksource/sh_cmt.c 		ret = sh_cmt_enable(ch);
ch                568 drivers/clocksource/sh_cmt.c 	ch->flags |= flag;
ch                571 drivers/clocksource/sh_cmt.c 	if ((flag == FLAG_CLOCKSOURCE) && (!(ch->flags & FLAG_CLOCKEVENT)))
ch                572 drivers/clocksource/sh_cmt.c 		__sh_cmt_set_next(ch, ch->max_match_value);
ch                574 drivers/clocksource/sh_cmt.c 	raw_spin_unlock_irqrestore(&ch->lock, flags);
ch                579 drivers/clocksource/sh_cmt.c static void sh_cmt_stop(struct sh_cmt_channel *ch, unsigned long flag)
ch                584 drivers/clocksource/sh_cmt.c 	raw_spin_lock_irqsave(&ch->lock, flags);
ch                586 drivers/clocksource/sh_cmt.c 	f = ch->flags & (FLAG_CLOCKEVENT | FLAG_CLOCKSOURCE);
ch                587 drivers/clocksource/sh_cmt.c 	ch->flags &= ~flag;
ch                589 drivers/clocksource/sh_cmt.c 	if (f && !(ch->flags & (FLAG_CLOCKEVENT | FLAG_CLOCKSOURCE)))
ch                590 drivers/clocksource/sh_cmt.c 		sh_cmt_disable(ch);
ch                593 drivers/clocksource/sh_cmt.c 	if ((flag == FLAG_CLOCKEVENT) && (ch->flags & FLAG_CLOCKSOURCE))
ch                594 drivers/clocksource/sh_cmt.c 		__sh_cmt_set_next(ch, ch->max_match_value);
ch                596 drivers/clocksource/sh_cmt.c 	raw_spin_unlock_irqrestore(&ch->lock, flags);
ch                606 drivers/clocksource/sh_cmt.c 	struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
ch                612 drivers/clocksource/sh_cmt.c 	raw_spin_lock_irqsave(&ch->lock, flags);
ch                613 drivers/clocksource/sh_cmt.c 	value = ch->total_cycles;
ch                614 drivers/clocksource/sh_cmt.c 	raw = sh_cmt_get_counter(ch, &has_wrapped);
ch                617 drivers/clocksource/sh_cmt.c 		raw += ch->match_value + 1;
ch                618 drivers/clocksource/sh_cmt.c 	raw_spin_unlock_irqrestore(&ch->lock, flags);
ch                626 drivers/clocksource/sh_cmt.c 	struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
ch                628 drivers/clocksource/sh_cmt.c 	WARN_ON(ch->cs_enabled);
ch                630 drivers/clocksource/sh_cmt.c 	ch->total_cycles = 0;
ch                632 drivers/clocksource/sh_cmt.c 	ret = sh_cmt_start(ch, FLAG_CLOCKSOURCE);
ch                634 drivers/clocksource/sh_cmt.c 		ch->cs_enabled = true;
ch                641 drivers/clocksource/sh_cmt.c 	struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
ch                643 drivers/clocksource/sh_cmt.c 	WARN_ON(!ch->cs_enabled);
ch                645 drivers/clocksource/sh_cmt.c 	sh_cmt_stop(ch, FLAG_CLOCKSOURCE);
ch                646 drivers/clocksource/sh_cmt.c 	ch->cs_enabled = false;
ch                651 drivers/clocksource/sh_cmt.c 	struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
ch                653 drivers/clocksource/sh_cmt.c 	if (!ch->cs_enabled)
ch                656 drivers/clocksource/sh_cmt.c 	sh_cmt_stop(ch, FLAG_CLOCKSOURCE);
ch                657 drivers/clocksource/sh_cmt.c 	pm_genpd_syscore_poweroff(&ch->cmt->pdev->dev);
ch                662 drivers/clocksource/sh_cmt.c 	struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
ch                664 drivers/clocksource/sh_cmt.c 	if (!ch->cs_enabled)
ch                667 drivers/clocksource/sh_cmt.c 	pm_genpd_syscore_poweron(&ch->cmt->pdev->dev);
ch                668 drivers/clocksource/sh_cmt.c 	sh_cmt_start(ch, FLAG_CLOCKSOURCE);
ch                671 drivers/clocksource/sh_cmt.c static int sh_cmt_register_clocksource(struct sh_cmt_channel *ch,
ch                674 drivers/clocksource/sh_cmt.c 	struct clocksource *cs = &ch->cs;
ch                686 drivers/clocksource/sh_cmt.c 	dev_info(&ch->cmt->pdev->dev, "ch%u: used as clock source\n",
ch                687 drivers/clocksource/sh_cmt.c 		 ch->index);
ch                689 drivers/clocksource/sh_cmt.c 	clocksource_register_hz(cs, ch->cmt->rate);
ch                698 drivers/clocksource/sh_cmt.c static void sh_cmt_clock_event_start(struct sh_cmt_channel *ch, int periodic)
ch                700 drivers/clocksource/sh_cmt.c 	sh_cmt_start(ch, FLAG_CLOCKEVENT);
ch                703 drivers/clocksource/sh_cmt.c 		sh_cmt_set_next(ch, ((ch->cmt->rate + HZ/2) / HZ) - 1);
ch                705 drivers/clocksource/sh_cmt.c 		sh_cmt_set_next(ch, ch->max_match_value);
ch                710 drivers/clocksource/sh_cmt.c 	struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
ch                712 drivers/clocksource/sh_cmt.c 	sh_cmt_stop(ch, FLAG_CLOCKEVENT);
ch                719 drivers/clocksource/sh_cmt.c 	struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
ch                723 drivers/clocksource/sh_cmt.c 		sh_cmt_stop(ch, FLAG_CLOCKEVENT);
ch                725 drivers/clocksource/sh_cmt.c 	dev_info(&ch->cmt->pdev->dev, "ch%u: used for %s clock events\n",
ch                726 drivers/clocksource/sh_cmt.c 		 ch->index, periodic ? "periodic" : "oneshot");
ch                727 drivers/clocksource/sh_cmt.c 	sh_cmt_clock_event_start(ch, periodic);
ch                744 drivers/clocksource/sh_cmt.c 	struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
ch                747 drivers/clocksource/sh_cmt.c 	if (likely(ch->flags & FLAG_IRQCONTEXT))
ch                748 drivers/clocksource/sh_cmt.c 		ch->next_match_value = delta - 1;
ch                750 drivers/clocksource/sh_cmt.c 		sh_cmt_set_next(ch, delta - 1);
ch                757 drivers/clocksource/sh_cmt.c 	struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
ch                759 drivers/clocksource/sh_cmt.c 	pm_genpd_syscore_poweroff(&ch->cmt->pdev->dev);
ch                760 drivers/clocksource/sh_cmt.c 	clk_unprepare(ch->cmt->clk);
ch                765 drivers/clocksource/sh_cmt.c 	struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
ch                767 drivers/clocksource/sh_cmt.c 	clk_prepare(ch->cmt->clk);
ch                768 drivers/clocksource/sh_cmt.c 	pm_genpd_syscore_poweron(&ch->cmt->pdev->dev);
ch                771 drivers/clocksource/sh_cmt.c static int sh_cmt_register_clockevent(struct sh_cmt_channel *ch,
ch                774 drivers/clocksource/sh_cmt.c 	struct clock_event_device *ced = &ch->ced;
ch                778 drivers/clocksource/sh_cmt.c 	irq = platform_get_irq(ch->cmt->pdev, ch->index);
ch                784 drivers/clocksource/sh_cmt.c 			  dev_name(&ch->cmt->pdev->dev), ch);
ch                786 drivers/clocksource/sh_cmt.c 		dev_err(&ch->cmt->pdev->dev, "ch%u: failed to request irq %d\n",
ch                787 drivers/clocksource/sh_cmt.c 			ch->index, irq);
ch                805 drivers/clocksource/sh_cmt.c 	ced->mult = div_sc(ch->cmt->rate, NSEC_PER_SEC, ced->shift);
ch                806 drivers/clocksource/sh_cmt.c 	ced->max_delta_ns = clockevent_delta2ns(ch->max_match_value, ced);
ch                807 drivers/clocksource/sh_cmt.c 	ced->max_delta_ticks = ch->max_match_value;
ch                811 drivers/clocksource/sh_cmt.c 	dev_info(&ch->cmt->pdev->dev, "ch%u: used for clock events\n",
ch                812 drivers/clocksource/sh_cmt.c 		 ch->index);
ch                818 drivers/clocksource/sh_cmt.c static int sh_cmt_register(struct sh_cmt_channel *ch, const char *name,
ch                824 drivers/clocksource/sh_cmt.c 		ch->cmt->has_clockevent = true;
ch                825 drivers/clocksource/sh_cmt.c 		ret = sh_cmt_register_clockevent(ch, name);
ch                831 drivers/clocksource/sh_cmt.c 		ch->cmt->has_clocksource = true;
ch                832 drivers/clocksource/sh_cmt.c 		sh_cmt_register_clocksource(ch, name);
ch                838 drivers/clocksource/sh_cmt.c static int sh_cmt_setup_channel(struct sh_cmt_channel *ch, unsigned int index,
ch                848 drivers/clocksource/sh_cmt.c 	ch->cmt = cmt;
ch                849 drivers/clocksource/sh_cmt.c 	ch->index = index;
ch                850 drivers/clocksource/sh_cmt.c 	ch->hwidx = hwidx;
ch                851 drivers/clocksource/sh_cmt.c 	ch->timer_bit = hwidx;
ch                860 drivers/clocksource/sh_cmt.c 		ch->ioctrl = cmt->mapbase + 2 + ch->hwidx * 6;
ch                864 drivers/clocksource/sh_cmt.c 		ch->ioctrl = cmt->mapbase + 0x10 + ch->hwidx * 0x10;
ch                868 drivers/clocksource/sh_cmt.c 		ch->iostart = cmt->mapbase + ch->hwidx * 0x100;
ch                869 drivers/clocksource/sh_cmt.c 		ch->ioctrl = ch->iostart + 0x10;
ch                870 drivers/clocksource/sh_cmt.c 		ch->timer_bit = 0;
ch                874 drivers/clocksource/sh_cmt.c 	if (cmt->info->width == (sizeof(ch->max_match_value) * 8))
ch                875 drivers/clocksource/sh_cmt.c 		ch->max_match_value = ~0;
ch                877 drivers/clocksource/sh_cmt.c 		ch->max_match_value = (1 << cmt->info->width) - 1;
ch                879 drivers/clocksource/sh_cmt.c 	ch->match_value = ch->max_match_value;
ch                880 drivers/clocksource/sh_cmt.c 	raw_spin_lock_init(&ch->lock);
ch                882 drivers/clocksource/sh_cmt.c 	ret = sh_cmt_register(ch, dev_name(&cmt->pdev->dev),
ch                886 drivers/clocksource/sh_cmt.c 			ch->index);
ch                889 drivers/clocksource/sh_cmt.c 	ch->cs_enabled = false;
ch                152 drivers/clocksource/sh_mtu2.c static inline unsigned long sh_mtu2_read(struct sh_mtu2_channel *ch, int reg_nr)
ch                157 drivers/clocksource/sh_mtu2.c 		return ioread8(ch->mtu->mapbase + 0x280);
ch                162 drivers/clocksource/sh_mtu2.c 		return ioread16(ch->base + offs);
ch                164 drivers/clocksource/sh_mtu2.c 		return ioread8(ch->base + offs);
ch                167 drivers/clocksource/sh_mtu2.c static inline void sh_mtu2_write(struct sh_mtu2_channel *ch, int reg_nr,
ch                173 drivers/clocksource/sh_mtu2.c 		return iowrite8(value, ch->mtu->mapbase + 0x280);
ch                178 drivers/clocksource/sh_mtu2.c 		iowrite16(value, ch->base + offs);
ch                180 drivers/clocksource/sh_mtu2.c 		iowrite8(value, ch->base + offs);
ch                183 drivers/clocksource/sh_mtu2.c static void sh_mtu2_start_stop_ch(struct sh_mtu2_channel *ch, int start)
ch                188 drivers/clocksource/sh_mtu2.c 	raw_spin_lock_irqsave(&ch->mtu->lock, flags);
ch                189 drivers/clocksource/sh_mtu2.c 	value = sh_mtu2_read(ch, TSTR);
ch                192 drivers/clocksource/sh_mtu2.c 		value |= 1 << ch->index;
ch                194 drivers/clocksource/sh_mtu2.c 		value &= ~(1 << ch->index);
ch                196 drivers/clocksource/sh_mtu2.c 	sh_mtu2_write(ch, TSTR, value);
ch                197 drivers/clocksource/sh_mtu2.c 	raw_spin_unlock_irqrestore(&ch->mtu->lock, flags);
ch                200 drivers/clocksource/sh_mtu2.c static int sh_mtu2_enable(struct sh_mtu2_channel *ch)
ch                206 drivers/clocksource/sh_mtu2.c 	pm_runtime_get_sync(&ch->mtu->pdev->dev);
ch                207 drivers/clocksource/sh_mtu2.c 	dev_pm_syscore_device(&ch->mtu->pdev->dev, true);
ch                210 drivers/clocksource/sh_mtu2.c 	ret = clk_enable(ch->mtu->clk);
ch                212 drivers/clocksource/sh_mtu2.c 		dev_err(&ch->mtu->pdev->dev, "ch%u: cannot enable clock\n",
ch                213 drivers/clocksource/sh_mtu2.c 			ch->index);
ch                218 drivers/clocksource/sh_mtu2.c 	sh_mtu2_start_stop_ch(ch, 0);
ch                220 drivers/clocksource/sh_mtu2.c 	rate = clk_get_rate(ch->mtu->clk) / 64;
ch                227 drivers/clocksource/sh_mtu2.c 	sh_mtu2_write(ch, TCR, TCR_CCLR_TGRA | TCR_TPSC_P64);
ch                228 drivers/clocksource/sh_mtu2.c 	sh_mtu2_write(ch, TIOR, TIOC_IOCH(TIOR_OC_0_CLEAR) |
ch                230 drivers/clocksource/sh_mtu2.c 	sh_mtu2_write(ch, TGR, periodic);
ch                231 drivers/clocksource/sh_mtu2.c 	sh_mtu2_write(ch, TCNT, 0);
ch                232 drivers/clocksource/sh_mtu2.c 	sh_mtu2_write(ch, TMDR, TMDR_MD_NORMAL);
ch                233 drivers/clocksource/sh_mtu2.c 	sh_mtu2_write(ch, TIER, TIER_TGIEA);
ch                236 drivers/clocksource/sh_mtu2.c 	sh_mtu2_start_stop_ch(ch, 1);
ch                241 drivers/clocksource/sh_mtu2.c static void sh_mtu2_disable(struct sh_mtu2_channel *ch)
ch                244 drivers/clocksource/sh_mtu2.c 	sh_mtu2_start_stop_ch(ch, 0);
ch                247 drivers/clocksource/sh_mtu2.c 	clk_disable(ch->mtu->clk);
ch                249 drivers/clocksource/sh_mtu2.c 	dev_pm_syscore_device(&ch->mtu->pdev->dev, false);
ch                250 drivers/clocksource/sh_mtu2.c 	pm_runtime_put(&ch->mtu->pdev->dev);
ch                255 drivers/clocksource/sh_mtu2.c 	struct sh_mtu2_channel *ch = dev_id;
ch                258 drivers/clocksource/sh_mtu2.c 	sh_mtu2_read(ch, TSR);
ch                259 drivers/clocksource/sh_mtu2.c 	sh_mtu2_write(ch, TSR, ~TSR_TGFA);
ch                262 drivers/clocksource/sh_mtu2.c 	ch->ced.event_handler(&ch->ced);
ch                273 drivers/clocksource/sh_mtu2.c 	struct sh_mtu2_channel *ch = ced_to_sh_mtu2(ced);
ch                276 drivers/clocksource/sh_mtu2.c 		sh_mtu2_disable(ch);
ch                283 drivers/clocksource/sh_mtu2.c 	struct sh_mtu2_channel *ch = ced_to_sh_mtu2(ced);
ch                286 drivers/clocksource/sh_mtu2.c 		sh_mtu2_disable(ch);
ch                288 drivers/clocksource/sh_mtu2.c 	dev_info(&ch->mtu->pdev->dev, "ch%u: used for periodic clock events\n",
ch                289 drivers/clocksource/sh_mtu2.c 		 ch->index);
ch                290 drivers/clocksource/sh_mtu2.c 	sh_mtu2_enable(ch);
ch                304 drivers/clocksource/sh_mtu2.c static void sh_mtu2_register_clockevent(struct sh_mtu2_channel *ch,
ch                307 drivers/clocksource/sh_mtu2.c 	struct clock_event_device *ced = &ch->ced;
ch                318 drivers/clocksource/sh_mtu2.c 	dev_info(&ch->mtu->pdev->dev, "ch%u: used for clock events\n",
ch                319 drivers/clocksource/sh_mtu2.c 		 ch->index);
ch                323 drivers/clocksource/sh_mtu2.c static int sh_mtu2_register(struct sh_mtu2_channel *ch, const char *name)
ch                325 drivers/clocksource/sh_mtu2.c 	ch->mtu->has_clockevent = true;
ch                326 drivers/clocksource/sh_mtu2.c 	sh_mtu2_register_clockevent(ch, name);
ch                335 drivers/clocksource/sh_mtu2.c static int sh_mtu2_setup_channel(struct sh_mtu2_channel *ch, unsigned int index,
ch                342 drivers/clocksource/sh_mtu2.c 	ch->mtu = mtu;
ch                353 drivers/clocksource/sh_mtu2.c 			  dev_name(&ch->mtu->pdev->dev), ch);
ch                355 drivers/clocksource/sh_mtu2.c 		dev_err(&ch->mtu->pdev->dev, "ch%u: failed to request irq %d\n",
ch                360 drivers/clocksource/sh_mtu2.c 	ch->base = mtu->mapbase + sh_mtu2_channel_offsets[index];
ch                361 drivers/clocksource/sh_mtu2.c 	ch->index = index;
ch                363 drivers/clocksource/sh_mtu2.c 	return sh_mtu2_register(ch, dev_name(&mtu->pdev->dev));
ch                 80 drivers/clocksource/sh_tmu.c static inline unsigned long sh_tmu_read(struct sh_tmu_channel *ch, int reg_nr)
ch                 85 drivers/clocksource/sh_tmu.c 		switch (ch->tmu->model) {
ch                 87 drivers/clocksource/sh_tmu.c 			return ioread8(ch->tmu->mapbase + 2);
ch                 89 drivers/clocksource/sh_tmu.c 			return ioread8(ch->tmu->mapbase + 4);
ch                 96 drivers/clocksource/sh_tmu.c 		return ioread16(ch->base + offs);
ch                 98 drivers/clocksource/sh_tmu.c 		return ioread32(ch->base + offs);
ch                101 drivers/clocksource/sh_tmu.c static inline void sh_tmu_write(struct sh_tmu_channel *ch, int reg_nr,
ch                107 drivers/clocksource/sh_tmu.c 		switch (ch->tmu->model) {
ch                109 drivers/clocksource/sh_tmu.c 			return iowrite8(value, ch->tmu->mapbase + 2);
ch                111 drivers/clocksource/sh_tmu.c 			return iowrite8(value, ch->tmu->mapbase + 4);
ch                118 drivers/clocksource/sh_tmu.c 		iowrite16(value, ch->base + offs);
ch                120 drivers/clocksource/sh_tmu.c 		iowrite32(value, ch->base + offs);
ch                123 drivers/clocksource/sh_tmu.c static void sh_tmu_start_stop_ch(struct sh_tmu_channel *ch, int start)
ch                128 drivers/clocksource/sh_tmu.c 	raw_spin_lock_irqsave(&ch->tmu->lock, flags);
ch                129 drivers/clocksource/sh_tmu.c 	value = sh_tmu_read(ch, TSTR);
ch                132 drivers/clocksource/sh_tmu.c 		value |= 1 << ch->index;
ch                134 drivers/clocksource/sh_tmu.c 		value &= ~(1 << ch->index);
ch                136 drivers/clocksource/sh_tmu.c 	sh_tmu_write(ch, TSTR, value);
ch                137 drivers/clocksource/sh_tmu.c 	raw_spin_unlock_irqrestore(&ch->tmu->lock, flags);
ch                140 drivers/clocksource/sh_tmu.c static int __sh_tmu_enable(struct sh_tmu_channel *ch)
ch                145 drivers/clocksource/sh_tmu.c 	ret = clk_enable(ch->tmu->clk);
ch                147 drivers/clocksource/sh_tmu.c 		dev_err(&ch->tmu->pdev->dev, "ch%u: cannot enable clock\n",
ch                148 drivers/clocksource/sh_tmu.c 			ch->index);
ch                153 drivers/clocksource/sh_tmu.c 	sh_tmu_start_stop_ch(ch, 0);
ch                156 drivers/clocksource/sh_tmu.c 	sh_tmu_write(ch, TCOR, 0xffffffff);
ch                157 drivers/clocksource/sh_tmu.c 	sh_tmu_write(ch, TCNT, 0xffffffff);
ch                160 drivers/clocksource/sh_tmu.c 	sh_tmu_write(ch, TCR, TCR_TPSC_CLK4);
ch                163 drivers/clocksource/sh_tmu.c 	sh_tmu_start_stop_ch(ch, 1);
ch                168 drivers/clocksource/sh_tmu.c static int sh_tmu_enable(struct sh_tmu_channel *ch)
ch                170 drivers/clocksource/sh_tmu.c 	if (ch->enable_count++ > 0)
ch                173 drivers/clocksource/sh_tmu.c 	pm_runtime_get_sync(&ch->tmu->pdev->dev);
ch                174 drivers/clocksource/sh_tmu.c 	dev_pm_syscore_device(&ch->tmu->pdev->dev, true);
ch                176 drivers/clocksource/sh_tmu.c 	return __sh_tmu_enable(ch);
ch                179 drivers/clocksource/sh_tmu.c static void __sh_tmu_disable(struct sh_tmu_channel *ch)
ch                182 drivers/clocksource/sh_tmu.c 	sh_tmu_start_stop_ch(ch, 0);
ch                185 drivers/clocksource/sh_tmu.c 	sh_tmu_write(ch, TCR, TCR_TPSC_CLK4);
ch                188 drivers/clocksource/sh_tmu.c 	clk_disable(ch->tmu->clk);
ch                191 drivers/clocksource/sh_tmu.c static void sh_tmu_disable(struct sh_tmu_channel *ch)
ch                193 drivers/clocksource/sh_tmu.c 	if (WARN_ON(ch->enable_count == 0))
ch                196 drivers/clocksource/sh_tmu.c 	if (--ch->enable_count > 0)
ch                199 drivers/clocksource/sh_tmu.c 	__sh_tmu_disable(ch);
ch                201 drivers/clocksource/sh_tmu.c 	dev_pm_syscore_device(&ch->tmu->pdev->dev, false);
ch                202 drivers/clocksource/sh_tmu.c 	pm_runtime_put(&ch->tmu->pdev->dev);
ch                205 drivers/clocksource/sh_tmu.c static void sh_tmu_set_next(struct sh_tmu_channel *ch, unsigned long delta,
ch                209 drivers/clocksource/sh_tmu.c 	sh_tmu_start_stop_ch(ch, 0);
ch                212 drivers/clocksource/sh_tmu.c 	sh_tmu_read(ch, TCR);
ch                215 drivers/clocksource/sh_tmu.c 	sh_tmu_write(ch, TCR, TCR_UNIE | TCR_TPSC_CLK4);
ch                219 drivers/clocksource/sh_tmu.c 		sh_tmu_write(ch, TCOR, delta);
ch                221 drivers/clocksource/sh_tmu.c 		sh_tmu_write(ch, TCOR, 0xffffffff);
ch                223 drivers/clocksource/sh_tmu.c 	sh_tmu_write(ch, TCNT, delta);
ch                226 drivers/clocksource/sh_tmu.c 	sh_tmu_start_stop_ch(ch, 1);
ch                231 drivers/clocksource/sh_tmu.c 	struct sh_tmu_channel *ch = dev_id;
ch                234 drivers/clocksource/sh_tmu.c 	if (clockevent_state_oneshot(&ch->ced))
ch                235 drivers/clocksource/sh_tmu.c 		sh_tmu_write(ch, TCR, TCR_TPSC_CLK4);
ch                237 drivers/clocksource/sh_tmu.c 		sh_tmu_write(ch, TCR, TCR_UNIE | TCR_TPSC_CLK4);
ch                240 drivers/clocksource/sh_tmu.c 	ch->ced.event_handler(&ch->ced);
ch                251 drivers/clocksource/sh_tmu.c 	struct sh_tmu_channel *ch = cs_to_sh_tmu(cs);
ch                253 drivers/clocksource/sh_tmu.c 	return sh_tmu_read(ch, TCNT) ^ 0xffffffff;
ch                258 drivers/clocksource/sh_tmu.c 	struct sh_tmu_channel *ch = cs_to_sh_tmu(cs);
ch                261 drivers/clocksource/sh_tmu.c 	if (WARN_ON(ch->cs_enabled))
ch                264 drivers/clocksource/sh_tmu.c 	ret = sh_tmu_enable(ch);
ch                266 drivers/clocksource/sh_tmu.c 		ch->cs_enabled = true;
ch                273 drivers/clocksource/sh_tmu.c 	struct sh_tmu_channel *ch = cs_to_sh_tmu(cs);
ch                275 drivers/clocksource/sh_tmu.c 	if (WARN_ON(!ch->cs_enabled))
ch                278 drivers/clocksource/sh_tmu.c 	sh_tmu_disable(ch);
ch                279 drivers/clocksource/sh_tmu.c 	ch->cs_enabled = false;
ch                284 drivers/clocksource/sh_tmu.c 	struct sh_tmu_channel *ch = cs_to_sh_tmu(cs);
ch                286 drivers/clocksource/sh_tmu.c 	if (!ch->cs_enabled)
ch                289 drivers/clocksource/sh_tmu.c 	if (--ch->enable_count == 0) {
ch                290 drivers/clocksource/sh_tmu.c 		__sh_tmu_disable(ch);
ch                291 drivers/clocksource/sh_tmu.c 		pm_genpd_syscore_poweroff(&ch->tmu->pdev->dev);
ch                297 drivers/clocksource/sh_tmu.c 	struct sh_tmu_channel *ch = cs_to_sh_tmu(cs);
ch                299 drivers/clocksource/sh_tmu.c 	if (!ch->cs_enabled)
ch                302 drivers/clocksource/sh_tmu.c 	if (ch->enable_count++ == 0) {
ch                303 drivers/clocksource/sh_tmu.c 		pm_genpd_syscore_poweron(&ch->tmu->pdev->dev);
ch                304 drivers/clocksource/sh_tmu.c 		__sh_tmu_enable(ch);
ch                308 drivers/clocksource/sh_tmu.c static int sh_tmu_register_clocksource(struct sh_tmu_channel *ch,
ch                311 drivers/clocksource/sh_tmu.c 	struct clocksource *cs = &ch->cs;
ch                323 drivers/clocksource/sh_tmu.c 	dev_info(&ch->tmu->pdev->dev, "ch%u: used as clock source\n",
ch                324 drivers/clocksource/sh_tmu.c 		 ch->index);
ch                326 drivers/clocksource/sh_tmu.c 	clocksource_register_hz(cs, ch->tmu->rate);
ch                335 drivers/clocksource/sh_tmu.c static void sh_tmu_clock_event_start(struct sh_tmu_channel *ch, int periodic)
ch                337 drivers/clocksource/sh_tmu.c 	sh_tmu_enable(ch);
ch                340 drivers/clocksource/sh_tmu.c 		ch->periodic = (ch->tmu->rate + HZ/2) / HZ;
ch                341 drivers/clocksource/sh_tmu.c 		sh_tmu_set_next(ch, ch->periodic, 1);
ch                347 drivers/clocksource/sh_tmu.c 	struct sh_tmu_channel *ch = ced_to_sh_tmu(ced);
ch                350 drivers/clocksource/sh_tmu.c 		sh_tmu_disable(ch);
ch                357 drivers/clocksource/sh_tmu.c 	struct sh_tmu_channel *ch = ced_to_sh_tmu(ced);
ch                361 drivers/clocksource/sh_tmu.c 		sh_tmu_disable(ch);
ch                363 drivers/clocksource/sh_tmu.c 	dev_info(&ch->tmu->pdev->dev, "ch%u: used for %s clock events\n",
ch                364 drivers/clocksource/sh_tmu.c 		 ch->index, periodic ? "periodic" : "oneshot");
ch                365 drivers/clocksource/sh_tmu.c 	sh_tmu_clock_event_start(ch, periodic);
ch                382 drivers/clocksource/sh_tmu.c 	struct sh_tmu_channel *ch = ced_to_sh_tmu(ced);
ch                387 drivers/clocksource/sh_tmu.c 	sh_tmu_set_next(ch, delta, 0);
ch                401 drivers/clocksource/sh_tmu.c static void sh_tmu_register_clockevent(struct sh_tmu_channel *ch,
ch                404 drivers/clocksource/sh_tmu.c 	struct clock_event_device *ced = &ch->ced;
ch                419 drivers/clocksource/sh_tmu.c 	dev_info(&ch->tmu->pdev->dev, "ch%u: used for clock events\n",
ch                420 drivers/clocksource/sh_tmu.c 		 ch->index);
ch                422 drivers/clocksource/sh_tmu.c 	clockevents_config_and_register(ced, ch->tmu->rate, 0x300, 0xffffffff);
ch                424 drivers/clocksource/sh_tmu.c 	ret = request_irq(ch->irq, sh_tmu_interrupt,
ch                426 drivers/clocksource/sh_tmu.c 			  dev_name(&ch->tmu->pdev->dev), ch);
ch                428 drivers/clocksource/sh_tmu.c 		dev_err(&ch->tmu->pdev->dev, "ch%u: failed to request irq %d\n",
ch                429 drivers/clocksource/sh_tmu.c 			ch->index, ch->irq);
ch                434 drivers/clocksource/sh_tmu.c static int sh_tmu_register(struct sh_tmu_channel *ch, const char *name,
ch                438 drivers/clocksource/sh_tmu.c 		ch->tmu->has_clockevent = true;
ch                439 drivers/clocksource/sh_tmu.c 		sh_tmu_register_clockevent(ch, name);
ch                441 drivers/clocksource/sh_tmu.c 		ch->tmu->has_clocksource = true;
ch                442 drivers/clocksource/sh_tmu.c 		sh_tmu_register_clocksource(ch, name);
ch                448 drivers/clocksource/sh_tmu.c static int sh_tmu_channel_setup(struct sh_tmu_channel *ch, unsigned int index,
ch                456 drivers/clocksource/sh_tmu.c 	ch->tmu = tmu;
ch                457 drivers/clocksource/sh_tmu.c 	ch->index = index;
ch                460 drivers/clocksource/sh_tmu.c 		ch->base = tmu->mapbase + 4 + ch->index * 12;
ch                462 drivers/clocksource/sh_tmu.c 		ch->base = tmu->mapbase + 8 + ch->index * 12;
ch                464 drivers/clocksource/sh_tmu.c 	ch->irq = platform_get_irq(tmu->pdev, index);
ch                465 drivers/clocksource/sh_tmu.c 	if (ch->irq < 0)
ch                466 drivers/clocksource/sh_tmu.c 		return ch->irq;
ch                468 drivers/clocksource/sh_tmu.c 	ch->cs_enabled = false;
ch                469 drivers/clocksource/sh_tmu.c 	ch->enable_count = 0;
ch                471 drivers/clocksource/sh_tmu.c 	return sh_tmu_register(ch, dev_name(&tmu->pdev->dev),
ch                197 drivers/cpufreq/s5pv210-cpufreq.c static void s5pv210_set_refresh(enum s5pv210_dmc_port ch, unsigned long freq)
ch                202 drivers/cpufreq/s5pv210-cpufreq.c 	if (ch == DMC0) {
ch                204 drivers/cpufreq/s5pv210-cpufreq.c 	} else if (ch == DMC1) {
ch                212 drivers/cpufreq/s5pv210-cpufreq.c 	tmp = s5pv210_dram_conf[ch].freq;
ch                216 drivers/cpufreq/s5pv210-cpufreq.c 	tmp1 = s5pv210_dram_conf[ch].refresh;
ch                494 drivers/crypto/qat/qat_common/qat_uclo.c static unsigned int qat_uclo_calc_checksum(unsigned int reg, int ch)
ch                498 drivers/crypto/qat/qat_common/qat_uclo.c 	unsigned int inbyte = (unsigned int)((reg >> 0x18) ^ ch);
ch                138 drivers/crypto/talitos.c static int reset_channel(struct device *dev, int ch)
ch                145 drivers/crypto/talitos.c 		setbits32(priv->chan[ch].reg + TALITOS_CCCR_LO,
ch                148 drivers/crypto/talitos.c 		while ((in_be32(priv->chan[ch].reg + TALITOS_CCCR_LO) &
ch                152 drivers/crypto/talitos.c 		setbits32(priv->chan[ch].reg + TALITOS_CCCR,
ch                155 drivers/crypto/talitos.c 		while ((in_be32(priv->chan[ch].reg + TALITOS_CCCR) &
ch                161 drivers/crypto/talitos.c 		dev_err(dev, "failed to reset channel %d\n", ch);
ch                166 drivers/crypto/talitos.c 	setbits32(priv->chan[ch].reg + TALITOS_CCCR_LO, TALITOS_CCCR_LO_EAE |
ch                170 drivers/crypto/talitos.c 		setbits32(priv->chan[ch].reg + TALITOS_CCCR_LO,
ch                175 drivers/crypto/talitos.c 		setbits32(priv->chan[ch].reg + TALITOS_CCCR_LO,
ch                213 drivers/crypto/talitos.c 	int ch, err;
ch                231 drivers/crypto/talitos.c 	for (ch = 0; ch < priv->num_channels; ch++) {
ch                232 drivers/crypto/talitos.c 		err = reset_channel(dev, ch);
ch                268 drivers/crypto/talitos.c static int talitos_submit(struct device *dev, int ch, struct talitos_desc *desc,
ch                280 drivers/crypto/talitos.c 	spin_lock_irqsave(&priv->chan[ch].head_lock, flags);
ch                282 drivers/crypto/talitos.c 	if (!atomic_inc_not_zero(&priv->chan[ch].submit_count)) {
ch                284 drivers/crypto/talitos.c 		spin_unlock_irqrestore(&priv->chan[ch].head_lock, flags);
ch                288 drivers/crypto/talitos.c 	head = priv->chan[ch].head;
ch                289 drivers/crypto/talitos.c 	request = &priv->chan[ch].fifo[head];
ch                306 drivers/crypto/talitos.c 	priv->chan[ch].head = (priv->chan[ch].head + 1) & (priv->fifo_len - 1);
ch                313 drivers/crypto/talitos.c 	out_be32(priv->chan[ch].reg + TALITOS_FF,
ch                315 drivers/crypto/talitos.c 	out_be32(priv->chan[ch].reg + TALITOS_FF_LO,
ch                318 drivers/crypto/talitos.c 	spin_unlock_irqrestore(&priv->chan[ch].head_lock, flags);
ch                341 drivers/crypto/talitos.c static void flush_channel(struct device *dev, int ch, int error, int reset_ch)
ch                349 drivers/crypto/talitos.c 	spin_lock_irqsave(&priv->chan[ch].tail_lock, flags);
ch                351 drivers/crypto/talitos.c 	tail = priv->chan[ch].tail;
ch                352 drivers/crypto/talitos.c 	while (priv->chan[ch].fifo[tail].desc) {
ch                355 drivers/crypto/talitos.c 		request = &priv->chan[ch].fifo[tail];
ch                383 drivers/crypto/talitos.c 		priv->chan[ch].tail = (tail + 1) & (priv->fifo_len - 1);
ch                385 drivers/crypto/talitos.c 		spin_unlock_irqrestore(&priv->chan[ch].tail_lock, flags);
ch                387 drivers/crypto/talitos.c 		atomic_dec(&priv->chan[ch].submit_count);
ch                394 drivers/crypto/talitos.c 		spin_lock_irqsave(&priv->chan[ch].tail_lock, flags);
ch                395 drivers/crypto/talitos.c 		tail = priv->chan[ch].tail;
ch                398 drivers/crypto/talitos.c 	spin_unlock_irqrestore(&priv->chan[ch].tail_lock, flags);
ch                463 drivers/crypto/talitos.c static u32 current_desc_hdr(struct device *dev, int ch)
ch                469 drivers/crypto/talitos.c 	cur_desc = ((u64)in_be32(priv->chan[ch].reg + TALITOS_CDPR)) << 32;
ch                470 drivers/crypto/talitos.c 	cur_desc |= in_be32(priv->chan[ch].reg + TALITOS_CDPR_LO);
ch                477 drivers/crypto/talitos.c 	tail = priv->chan[ch].tail;
ch                480 drivers/crypto/talitos.c 	while (priv->chan[ch].fifo[iter].dma_desc != cur_desc &&
ch                481 drivers/crypto/talitos.c 	       priv->chan[ch].fifo[iter].desc->next_desc != cur_desc) {
ch                489 drivers/crypto/talitos.c 	if (priv->chan[ch].fifo[iter].desc->next_desc == cur_desc) {
ch                492 drivers/crypto/talitos.c 		edesc = container_of(priv->chan[ch].fifo[iter].desc,
ch                498 drivers/crypto/talitos.c 	return priv->chan[ch].fifo[iter].desc->hdr;
ch                504 drivers/crypto/talitos.c static void report_eu_error(struct device *dev, int ch, u32 desc_hdr)
ch                510 drivers/crypto/talitos.c 		desc_hdr = in_be32(priv->chan[ch].reg + TALITOS_DESCBUF);
ch                572 drivers/crypto/talitos.c 			in_be32(priv->chan[ch].reg + TALITOS_DESCBUF + 8*i),
ch                573 drivers/crypto/talitos.c 			in_be32(priv->chan[ch].reg + TALITOS_DESCBUF_LO + 8*i));
ch                583 drivers/crypto/talitos.c 	int ch, error, reset_dev = 0;
ch                588 drivers/crypto/talitos.c 	for (ch = 0; ch < priv->num_channels; ch++) {
ch                592 drivers/crypto/talitos.c 			if (!(isr & (1 << (29 + (ch & 1) * 2 - (ch & 2) * 6))))
ch                595 drivers/crypto/talitos.c 			if (!(isr & (1 << (ch * 2 + 1))))
ch                601 drivers/crypto/talitos.c 		v_lo = in_be32(priv->chan[ch].reg + TALITOS_CCPSR_LO);
ch                627 drivers/crypto/talitos.c 			report_eu_error(dev, ch, current_desc_hdr(dev, ch));
ch                639 drivers/crypto/talitos.c 		flush_channel(dev, ch, error, reset_ch);
ch                642 drivers/crypto/talitos.c 			reset_channel(dev, ch);
ch                644 drivers/crypto/talitos.c 			setbits32(priv->chan[ch].reg + TALITOS_CCCR,
ch                646 drivers/crypto/talitos.c 			setbits32(priv->chan[ch].reg + TALITOS_CCCR_LO, 0);
ch                647 drivers/crypto/talitos.c 			while ((in_be32(priv->chan[ch].reg + TALITOS_CCCR) &
ch                652 drivers/crypto/talitos.c 					ch);
ch                667 drivers/crypto/talitos.c 		for (ch = 0; ch < priv->num_channels; ch++)
ch                668 drivers/crypto/talitos.c 			flush_channel(dev, ch, -EIO, 1);
ch                851 drivers/crypto/talitos.c 	int ch;
ch               1310 drivers/crypto/talitos.c 	ret = talitos_submit(dev, ctx->ch, desc, callback, areq);
ch               1633 drivers/crypto/talitos.c 	ret = talitos_submit(dev, ctx->ch, desc, callback, areq);
ch               1902 drivers/crypto/talitos.c 	ret = talitos_submit(dev, ctx->ch, desc, callback, areq);
ch               3023 drivers/crypto/talitos.c 	ctx->ch = atomic_inc_return(&priv->last_chan) &
ch                369 drivers/dma/amba-pl08x.c static int pl08x_phy_channel_busy(struct pl08x_phy_chan *ch)
ch                374 drivers/dma/amba-pl08x.c 	if (ch->reg_busy) {
ch                375 drivers/dma/amba-pl08x.c 		val = readl(ch->reg_busy);
ch                376 drivers/dma/amba-pl08x.c 		return !!(val & BIT(ch->id));
ch                378 drivers/dma/amba-pl08x.c 	val = readl(ch->reg_config);
ch                582 drivers/dma/amba-pl08x.c static void pl08x_pause_phy_chan(struct pl08x_phy_chan *ch)
ch                587 drivers/dma/amba-pl08x.c 	if (ch->ftdmac020) {
ch                589 drivers/dma/amba-pl08x.c 		val = readl(ch->reg_control);
ch                591 drivers/dma/amba-pl08x.c 		writel(val, ch->reg_control);
ch                596 drivers/dma/amba-pl08x.c 	val = readl(ch->reg_config);
ch                598 drivers/dma/amba-pl08x.c 	writel(val, ch->reg_config);
ch                602 drivers/dma/amba-pl08x.c 		if (!pl08x_phy_channel_busy(ch))
ch                606 drivers/dma/amba-pl08x.c 	if (pl08x_phy_channel_busy(ch))
ch                607 drivers/dma/amba-pl08x.c 		pr_err("pl08x: channel%u timeout waiting for pause\n", ch->id);
ch                610 drivers/dma/amba-pl08x.c static void pl08x_resume_phy_chan(struct pl08x_phy_chan *ch)
ch                615 drivers/dma/amba-pl08x.c 	if (ch->ftdmac020) {
ch                616 drivers/dma/amba-pl08x.c 		val = readl(ch->reg_control);
ch                618 drivers/dma/amba-pl08x.c 		writel(val, ch->reg_control);
ch                623 drivers/dma/amba-pl08x.c 	val = readl(ch->reg_config);
ch                625 drivers/dma/amba-pl08x.c 	writel(val, ch->reg_config);
ch                635 drivers/dma/amba-pl08x.c 	struct pl08x_phy_chan *ch)
ch                640 drivers/dma/amba-pl08x.c 	if (ch->ftdmac020) {
ch                642 drivers/dma/amba-pl08x.c 		val = readl(ch->reg_config);
ch                646 drivers/dma/amba-pl08x.c 		writel(val, ch->reg_config);
ch                649 drivers/dma/amba-pl08x.c 		val = readl(ch->reg_control);
ch                652 drivers/dma/amba-pl08x.c 		writel(val, ch->reg_control);
ch                655 drivers/dma/amba-pl08x.c 		writel(BIT(ch->id) | BIT(ch->id + 16),
ch                657 drivers/dma/amba-pl08x.c 		writel(BIT(ch->id), pl08x->base + PL080_TC_CLEAR);
ch                662 drivers/dma/amba-pl08x.c 	val = readl(ch->reg_config);
ch                665 drivers/dma/amba-pl08x.c 	writel(val, ch->reg_config);
ch                667 drivers/dma/amba-pl08x.c 	writel(BIT(ch->id), pl08x->base + PL080_ERR_CLEAR);
ch                668 drivers/dma/amba-pl08x.c 	writel(BIT(ch->id), pl08x->base + PL080_TC_CLEAR);
ch                671 drivers/dma/amba-pl08x.c static u32 get_bytes_in_phy_channel(struct pl08x_phy_chan *ch)
ch                676 drivers/dma/amba-pl08x.c 	if (ch->ftdmac020) {
ch                677 drivers/dma/amba-pl08x.c 		bytes = readl(ch->base + FTDMAC020_CH_SIZE);
ch                679 drivers/dma/amba-pl08x.c 		val = readl(ch->reg_control);
ch                682 drivers/dma/amba-pl08x.c 	} else if (ch->pl080s) {
ch                683 drivers/dma/amba-pl08x.c 		val = readl(ch->base + PL080S_CH_CONTROL2);
ch                686 drivers/dma/amba-pl08x.c 		val = readl(ch->reg_control);
ch                691 drivers/dma/amba-pl08x.c 		val = readl(ch->reg_control);
ch                711 drivers/dma/amba-pl08x.c static u32 get_bytes_in_lli(struct pl08x_phy_chan *ch, const u32 *llis_va)
ch                716 drivers/dma/amba-pl08x.c 	if (ch->ftdmac020) {
ch                723 drivers/dma/amba-pl08x.c 	} else if (ch->pl080s) {
ch                757 drivers/dma/amba-pl08x.c 	struct pl08x_phy_chan *ch;
ch                764 drivers/dma/amba-pl08x.c 	ch = plchan->phychan;
ch                767 drivers/dma/amba-pl08x.c 	if (!ch || !txd)
ch                774 drivers/dma/amba-pl08x.c 	clli = readl(ch->reg_lli) & ~PL080_LLI_LM_AHB2;
ch                777 drivers/dma/amba-pl08x.c 	bytes = get_bytes_in_phy_channel(ch);
ch                798 drivers/dma/amba-pl08x.c 		bytes += get_bytes_in_lli(ch, llis_va);
ch                821 drivers/dma/amba-pl08x.c 	struct pl08x_phy_chan *ch = NULL;
ch                826 drivers/dma/amba-pl08x.c 		ch = &pl08x->phy_chans[i];
ch                828 drivers/dma/amba-pl08x.c 		spin_lock_irqsave(&ch->lock, flags);
ch                830 drivers/dma/amba-pl08x.c 		if (!ch->locked && !ch->serving) {
ch                831 drivers/dma/amba-pl08x.c 			ch->serving = virt_chan;
ch                832 drivers/dma/amba-pl08x.c 			spin_unlock_irqrestore(&ch->lock, flags);
ch                836 drivers/dma/amba-pl08x.c 		spin_unlock_irqrestore(&ch->lock, flags);
ch                844 drivers/dma/amba-pl08x.c 	return ch;
ch                849 drivers/dma/amba-pl08x.c 					 struct pl08x_phy_chan *ch)
ch                851 drivers/dma/amba-pl08x.c 	ch->serving = NULL;
ch                862 drivers/dma/amba-pl08x.c 	struct pl08x_phy_chan *ch;
ch                864 drivers/dma/amba-pl08x.c 	ch = pl08x_get_phy_channel(pl08x, plchan);
ch                865 drivers/dma/amba-pl08x.c 	if (!ch) {
ch                873 drivers/dma/amba-pl08x.c 		ch->id, plchan->name);
ch                875 drivers/dma/amba-pl08x.c 	plchan->phychan = ch;
ch                880 drivers/dma/amba-pl08x.c static void pl08x_phy_reassign_start(struct pl08x_phy_chan *ch,
ch                886 drivers/dma/amba-pl08x.c 		ch->id, plchan->name);
ch                893 drivers/dma/amba-pl08x.c 	ch->serving = plchan;
ch                894 drivers/dma/amba-pl08x.c 	plchan->phychan = ch;
ch               2461 drivers/dma/amba-pl08x.c 	struct pl08x_phy_chan *ch;
ch               2471 drivers/dma/amba-pl08x.c 		ch = &pl08x->phy_chans[i];
ch               2473 drivers/dma/amba-pl08x.c 		spin_lock_irqsave(&ch->lock, flags);
ch               2474 drivers/dma/amba-pl08x.c 		virt_chan = ch->serving;
ch               2477 drivers/dma/amba-pl08x.c 			   ch->id,
ch               2479 drivers/dma/amba-pl08x.c 			   ch->locked ? " LOCKED" : "");
ch               2481 drivers/dma/amba-pl08x.c 		spin_unlock_irqrestore(&ch->lock, flags);
ch               2877 drivers/dma/amba-pl08x.c 		struct pl08x_phy_chan *ch = &pl08x->phy_chans[i];
ch               2879 drivers/dma/amba-pl08x.c 		ch->id = i;
ch               2880 drivers/dma/amba-pl08x.c 		ch->base = pl08x->base + PL080_Cx_BASE(i);
ch               2883 drivers/dma/amba-pl08x.c 			ch->reg_busy = ch->base + FTDMAC020_CH_BUSY;
ch               2884 drivers/dma/amba-pl08x.c 			ch->reg_config = ch->base + FTDMAC020_CH_CFG;
ch               2885 drivers/dma/amba-pl08x.c 			ch->reg_control = ch->base + FTDMAC020_CH_CSR;
ch               2886 drivers/dma/amba-pl08x.c 			ch->reg_src = ch->base + FTDMAC020_CH_SRC_ADDR;
ch               2887 drivers/dma/amba-pl08x.c 			ch->reg_dst = ch->base + FTDMAC020_CH_DST_ADDR;
ch               2888 drivers/dma/amba-pl08x.c 			ch->reg_lli = ch->base + FTDMAC020_CH_LLP;
ch               2889 drivers/dma/amba-pl08x.c 			ch->ftdmac020 = true;
ch               2891 drivers/dma/amba-pl08x.c 			ch->reg_config = ch->base + vd->config_offset;
ch               2892 drivers/dma/amba-pl08x.c 			ch->reg_control = ch->base + PL080_CH_CONTROL;
ch               2893 drivers/dma/amba-pl08x.c 			ch->reg_src = ch->base + PL080_CH_SRC_ADDR;
ch               2894 drivers/dma/amba-pl08x.c 			ch->reg_dst = ch->base + PL080_CH_DST_ADDR;
ch               2895 drivers/dma/amba-pl08x.c 			ch->reg_lli = ch->base + PL080_CH_LLI;
ch               2898 drivers/dma/amba-pl08x.c 			ch->pl080s = true;
ch               2900 drivers/dma/amba-pl08x.c 		spin_lock_init(&ch->lock);
ch               2910 drivers/dma/amba-pl08x.c 			val = readl(ch->reg_config);
ch               2913 drivers/dma/amba-pl08x.c 				ch->locked = true;
ch               2918 drivers/dma/amba-pl08x.c 			i, pl08x_phy_channel_busy(ch) ? "BUSY" : "FREE");
ch                 76 drivers/dma/bcm2835-dma.c 	int ch;
ch                507 drivers/dma/bcm2835-dma.c 	dev_dbg(dev, "Allocating DMA channel %d\n", c->ch);
ch                532 drivers/dma/bcm2835-dma.c 	dev_dbg(c->vc.chan.device->dev, "Freeing DMA channel %u\n", c->ch);
ch                835 drivers/dma/bcm2835-dma.c 	c->ch = chan_id;
ch               1986 drivers/dma/coh901318.c 	int ch;
ch               2006 drivers/dma/coh901318.c 		ch = i;
ch               2008 drivers/dma/coh901318.c 		cohc = &base->chans[ch];
ch               2016 drivers/dma/coh901318.c 				 "DMA bus error on channel %d!\n", ch);
ch               2025 drivers/dma/coh901318.c 					 "ignoring interrupt not caused by terminal count on channel %d\n", ch);
ch               2032 drivers/dma/coh901318.c 					    COH901318_CX_STAT_SPACING*ch) &
ch               2053 drivers/dma/coh901318.c 		ch = i + 32;
ch               2054 drivers/dma/coh901318.c 		cohc = &base->chans[ch];
ch               2062 drivers/dma/coh901318.c 				 "DMA bus error on channel %d!\n", ch);
ch               2071 drivers/dma/coh901318.c 					 "ignoring interrupt not caused by terminal count on channel %d\n", ch);
ch               2078 drivers/dma/coh901318.c 					    COH901318_CX_STAT_SPACING*ch) &
ch                745 drivers/dma/dmaengine.c 	struct dma_chan *ch = dma_request_chan(dev, name);
ch                746 drivers/dma/dmaengine.c 	if (IS_ERR(ch))
ch                749 drivers/dma/dmaengine.c 	return ch;
ch                 57 drivers/dma/dw-edma/dw-edma-v0-core.c __dw_ch_regs(struct dw_edma *dw, enum dw_edma_dir dir, u16 ch)
ch                 60 drivers/dma/dw-edma/dw-edma-v0-core.c 		return &(__dw_regs(dw)->type.legacy.ch);
ch                 63 drivers/dma/dw-edma/dw-edma-v0-core.c 		return &__dw_regs(dw)->type.unroll.ch[ch].wr;
ch                 65 drivers/dma/dw-edma/dw-edma-v0-core.c 	return &__dw_regs(dw)->type.unroll.ch[ch].rd;
ch                 68 drivers/dma/dw-edma/dw-edma-v0-core.c static inline void writel_ch(struct dw_edma *dw, enum dw_edma_dir dir, u16 ch,
ch                 77 drivers/dma/dw-edma/dw-edma-v0-core.c 		viewport_sel = FIELD_PREP(EDMA_V0_VIEWPORT_MASK, ch);
ch                 91 drivers/dma/dw-edma/dw-edma-v0-core.c static inline u32 readl_ch(struct dw_edma *dw, enum dw_edma_dir dir, u16 ch,
ch                102 drivers/dma/dw-edma/dw-edma-v0-core.c 		viewport_sel = FIELD_PREP(EDMA_V0_VIEWPORT_MASK, ch);
ch                118 drivers/dma/dw-edma/dw-edma-v0-core.c #define SET_CH(dw, dir, ch, name, value) \
ch                119 drivers/dma/dw-edma/dw-edma-v0-core.c 	writel_ch(dw, dir, ch, value, &(__dw_ch_regs(dw, dir, ch)->name))
ch                121 drivers/dma/dw-edma/dw-edma-v0-core.c #define GET_CH(dw, dir, ch, name) \
ch                122 drivers/dma/dw-edma/dw-edma-v0-core.c 	readl_ch(dw, dir, ch, &(__dw_ch_regs(dw, dir, ch)->name))
ch                 59 drivers/dma/dw-edma/dw-edma-v0-debugfs.c 	    reg >= (void __iomem *)&regs->type.legacy.ch) {
ch                 60 drivers/dma/dw-edma/dw-edma-v0-debugfs.c 		void __iomem *ptr = &regs->type.legacy.ch;
ch                 63 drivers/dma/dw-edma/dw-edma-v0-debugfs.c 		u16 ch;
ch                 65 drivers/dma/dw-edma/dw-edma-v0-debugfs.c 		for (ch = 0; ch < dw->wr_ch_cnt; ch++)
ch                 66 drivers/dma/dw-edma/dw-edma-v0-debugfs.c 			if (lim[0][ch].start >= reg && reg < lim[0][ch].end) {
ch                 67 drivers/dma/dw-edma/dw-edma-v0-debugfs.c 				ptr += (reg - lim[0][ch].start);
ch                 71 drivers/dma/dw-edma/dw-edma-v0-debugfs.c 		for (ch = 0; ch < dw->rd_ch_cnt; ch++)
ch                 72 drivers/dma/dw-edma/dw-edma-v0-debugfs.c 			if (lim[1][ch].start >= reg && reg < lim[1][ch].end) {
ch                 73 drivers/dma/dw-edma/dw-edma-v0-debugfs.c 				ptr += (reg - lim[1][ch].start);
ch                 81 drivers/dma/dw-edma/dw-edma-v0-debugfs.c 		viewport_sel |= FIELD_PREP(EDMA_V0_VIEWPORT_MASK, ch);
ch                190 drivers/dma/dw-edma/dw-edma-v0-debugfs.c 		dw_edma_debugfs_regs_ch(&regs->type.unroll.ch[i].wr, ch_dir);
ch                192 drivers/dma/dw-edma/dw-edma-v0-debugfs.c 		lim[0][i].start = &regs->type.unroll.ch[i].wr;
ch                193 drivers/dma/dw-edma/dw-edma-v0-debugfs.c 		lim[0][i].end = &regs->type.unroll.ch[i].padding_1[0];
ch                259 drivers/dma/dw-edma/dw-edma-v0-debugfs.c 		dw_edma_debugfs_regs_ch(&regs->type.unroll.ch[i].rd, ch_dir);
ch                261 drivers/dma/dw-edma/dw-edma-v0-debugfs.c 		lim[1][i].start = &regs->type.unroll.ch[i].rd;
ch                262 drivers/dma/dw-edma/dw-edma-v0-debugfs.c 		lim[1][i].end = &regs->type.unroll.ch[i].padding_2[0];
ch                 74 drivers/dma/dw-edma/dw-edma-v0-regs.h 	struct dw_edma_v0_ch ch[EDMA_V0_MAX_NR_CH];	/* [0x200..0x1120] */
ch                 79 drivers/dma/dw-edma/dw-edma-v0-regs.h 	struct dw_edma_v0_ch_regs ch;			/* [0x100..0x120] */
ch                 48 drivers/dma/fsl-edma-common.c 	u32 ch = fsl_chan->vchan.chan.chan_id;
ch                 51 drivers/dma/fsl-edma-common.c 		edma_writeb(fsl_chan->edma, EDMA_SEEI_SEEI(ch), regs->seei);
ch                 52 drivers/dma/fsl-edma-common.c 		edma_writeb(fsl_chan->edma, ch, regs->serq);
ch                 57 drivers/dma/fsl-edma-common.c 		iowrite8(EDMA_SEEI_SEEI(ch), regs->seei);
ch                 58 drivers/dma/fsl-edma-common.c 		iowrite8(ch, regs->serq);
ch                 65 drivers/dma/fsl-edma-common.c 	u32 ch = fsl_chan->vchan.chan.chan_id;
ch                 68 drivers/dma/fsl-edma-common.c 		edma_writeb(fsl_chan->edma, ch, regs->cerq);
ch                 69 drivers/dma/fsl-edma-common.c 		edma_writeb(fsl_chan->edma, EDMA_CEEI_CEEI(ch), regs->ceei);
ch                 74 drivers/dma/fsl-edma-common.c 		iowrite8(ch, regs->cerq);
ch                 75 drivers/dma/fsl-edma-common.c 		iowrite8(EDMA_CEEI_CEEI(ch), regs->ceei);
ch                109 drivers/dma/fsl-edma-common.c 	u32 ch = fsl_chan->vchan.chan.chan_id;
ch                116 drivers/dma/fsl-edma-common.c 	muxaddr = fsl_chan->edma->muxbase[ch / chans_per_mux];
ch                270 drivers/dma/fsl-edma-common.c 	u32 ch = fsl_chan->vchan.chan.chan_id;
ch                285 drivers/dma/fsl-edma-common.c 		cur_addr = edma_readl(fsl_chan->edma, &regs->tcd[ch].saddr);
ch                287 drivers/dma/fsl-edma-common.c 		cur_addr = edma_readl(fsl_chan->edma, &regs->tcd[ch].daddr);
ch                345 drivers/dma/fsl-edma-common.c 	u32 ch = fsl_chan->vchan.chan.chan_id;
ch                352 drivers/dma/fsl-edma-common.c 	edma_writew(edma, 0,  &regs->tcd[ch].csr);
ch                353 drivers/dma/fsl-edma-common.c 	edma_writel(edma, le32_to_cpu(tcd->saddr), &regs->tcd[ch].saddr);
ch                354 drivers/dma/fsl-edma-common.c 	edma_writel(edma, le32_to_cpu(tcd->daddr), &regs->tcd[ch].daddr);
ch                356 drivers/dma/fsl-edma-common.c 	edma_writew(edma, le16_to_cpu(tcd->attr), &regs->tcd[ch].attr);
ch                357 drivers/dma/fsl-edma-common.c 	edma_writew(edma, le16_to_cpu(tcd->soff), &regs->tcd[ch].soff);
ch                359 drivers/dma/fsl-edma-common.c 	edma_writel(edma, le32_to_cpu(tcd->nbytes), &regs->tcd[ch].nbytes);
ch                360 drivers/dma/fsl-edma-common.c 	edma_writel(edma, le32_to_cpu(tcd->slast), &regs->tcd[ch].slast);
ch                362 drivers/dma/fsl-edma-common.c 	edma_writew(edma, le16_to_cpu(tcd->citer), &regs->tcd[ch].citer);
ch                363 drivers/dma/fsl-edma-common.c 	edma_writew(edma, le16_to_cpu(tcd->biter), &regs->tcd[ch].biter);
ch                364 drivers/dma/fsl-edma-common.c 	edma_writew(edma, le16_to_cpu(tcd->doff), &regs->tcd[ch].doff);
ch                367 drivers/dma/fsl-edma-common.c 			&regs->tcd[ch].dlast_sga);
ch                369 drivers/dma/fsl-edma-common.c 	edma_writew(edma, le16_to_cpu(tcd->csr), &regs->tcd[ch].csr);
ch                 33 drivers/dma/fsl-edma.c 	unsigned int intr, ch;
ch                 41 drivers/dma/fsl-edma.c 	for (ch = 0; ch < fsl_edma->n_chans; ch++) {
ch                 42 drivers/dma/fsl-edma.c 		if (intr & (0x1 << ch)) {
ch                 43 drivers/dma/fsl-edma.c 			edma_writeb(fsl_edma, EDMA_CINT_CINT(ch), regs->cint);
ch                 45 drivers/dma/fsl-edma.c 			fsl_chan = &fsl_edma->chans[ch];
ch                 70 drivers/dma/fsl-edma.c 	unsigned int err, ch;
ch                 77 drivers/dma/fsl-edma.c 	for (ch = 0; ch < fsl_edma->n_chans; ch++) {
ch                 78 drivers/dma/fsl-edma.c 		if (err & (0x1 << ch)) {
ch                 79 drivers/dma/fsl-edma.c 			fsl_edma_disable_request(&fsl_edma->chans[ch]);
ch                 80 drivers/dma/fsl-edma.c 			edma_writeb(fsl_edma, EDMA_CERR_CERR(ch), regs->cerr);
ch                 81 drivers/dma/fsl-edma.c 			fsl_edma->chans[ch].status = DMA_ERROR;
ch                 82 drivers/dma/fsl-edma.c 			fsl_edma->chans[ch].idle = true;
ch                832 drivers/dma/img-mdc-dma.c #define PISTACHIO_CR_PERIPH_DMA_ROUTE(ch)	(0x120 + 0x4 * ((ch) / 4))
ch                833 drivers/dma/img-mdc-dma.c #define PISTACHIO_CR_PERIPH_DMA_ROUTE_SHIFT(ch) (8 * ((ch) % 4))
ch                 26 drivers/dma/ioat/dma.h #define chan_num(ch) ((int)((ch)->reg_base - (ch)->ioat_dma->reg_base) / 0x80)
ch                 21 drivers/dma/mcf-edma.c 	unsigned int ch;
ch                 31 drivers/dma/mcf-edma.c 	for (ch = 0; ch < mcf_edma->n_chans; ch++) {
ch                 32 drivers/dma/mcf-edma.c 		if (intmap & BIT(ch)) {
ch                 33 drivers/dma/mcf-edma.c 			iowrite8(EDMA_MASK_CH(ch), regs->cint);
ch                 35 drivers/dma/mcf-edma.c 			mcf_chan = &mcf_edma->chans[ch];
ch                 62 drivers/dma/mcf-edma.c 	unsigned int err, ch;
ch                 68 drivers/dma/mcf-edma.c 	for (ch = 0; ch < (EDMA_CHANNELS / 2); ch++) {
ch                 69 drivers/dma/mcf-edma.c 		if (err & BIT(ch)) {
ch                 70 drivers/dma/mcf-edma.c 			fsl_edma_disable_request(&mcf_edma->chans[ch]);
ch                 71 drivers/dma/mcf-edma.c 			iowrite8(EDMA_CERR_CERR(ch), regs->cerr);
ch                 72 drivers/dma/mcf-edma.c 			mcf_edma->chans[ch].status = DMA_ERROR;
ch                 73 drivers/dma/mcf-edma.c 			mcf_edma->chans[ch].idle = true;
ch                 81 drivers/dma/mcf-edma.c 	for (ch = (EDMA_CHANNELS / 2); ch < EDMA_CHANNELS; ch++) {
ch                 82 drivers/dma/mcf-edma.c 		if (err & (BIT(ch - (EDMA_CHANNELS / 2)))) {
ch                 83 drivers/dma/mcf-edma.c 			fsl_edma_disable_request(&mcf_edma->chans[ch]);
ch                 84 drivers/dma/mcf-edma.c 			iowrite8(EDMA_CERR_CERR(ch), regs->cerr);
ch                 85 drivers/dma/mcf-edma.c 			mcf_edma->chans[ch].status = DMA_ERROR;
ch                 86 drivers/dma/mcf-edma.c 			mcf_edma->chans[ch].idle = true;
ch                 85 drivers/dma/mediatek/mtk-cqdma.c 	struct dma_chan *ch;
ch                236 drivers/dma/mediatek/mtk-cqdma.c 		dev_err(cqdma2dev(to_cqdma_dev(cvd->ch)), "cqdma wait transaction timeout\n");
ch                241 drivers/dma/mediatek/mtk-cqdma.c 		dev_err(cqdma2dev(to_cqdma_dev(cvd->ch)), "cqdma warm reset timeout\n");
ch                304 drivers/dma/mediatek/mtk-cqdma.c 		if (cvc == to_cqdma_vchan(cvd->ch))
ch                325 drivers/dma/mediatek/mtk-cqdma.c 	cvc = to_cqdma_vchan(cvd->ch);
ch                520 drivers/dma/mediatek/mtk-cqdma.c 		cvd[i]->ch = c;
ch                 44 drivers/dma/mic_x100_dma.c static inline void mic_dma_hw_ring_inc_head(struct mic_dma_chan *ch)
ch                 46 drivers/dma/mic_x100_dma.c 	ch->head = mic_dma_hw_ring_inc(ch->head);
ch                 78 drivers/dma/mic_x100_dma.c static void mic_dma_cleanup(struct mic_dma_chan *ch)
ch                 84 drivers/dma/mic_x100_dma.c 	spin_lock(&ch->cleanup_lock);
ch                 85 drivers/dma/mic_x100_dma.c 	tail = mic_dma_read_cmp_cnt(ch);
ch                 92 drivers/dma/mic_x100_dma.c 	for (last_tail = ch->last_tail; tail != last_tail;) {
ch                 93 drivers/dma/mic_x100_dma.c 		tx = &ch->tx_array[last_tail];
ch                103 drivers/dma/mic_x100_dma.c 	ch->last_tail = last_tail;
ch                104 drivers/dma/mic_x100_dma.c 	spin_unlock(&ch->cleanup_lock);
ch                119 drivers/dma/mic_x100_dma.c static int mic_dma_avail_desc_ring_space(struct mic_dma_chan *ch, int required)
ch                121 drivers/dma/mic_x100_dma.c 	struct device *dev = mic_dma_ch_to_device(ch);
ch                124 drivers/dma/mic_x100_dma.c 	count = mic_dma_ring_count(ch->head, ch->last_tail);
ch                126 drivers/dma/mic_x100_dma.c 		mic_dma_cleanup(ch);
ch                127 drivers/dma/mic_x100_dma.c 		count = mic_dma_ring_count(ch->head, ch->last_tail);
ch                141 drivers/dma/mic_x100_dma.c static int mic_dma_prog_memcpy_desc(struct mic_dma_chan *ch, dma_addr_t src,
ch                145 drivers/dma/mic_x100_dma.c 	size_t max_xfer_size = to_mic_dma_dev(ch)->max_xfer_size;
ch                153 drivers/dma/mic_x100_dma.c 	ret = mic_dma_avail_desc_ring_space(ch, num_desc);
ch                158 drivers/dma/mic_x100_dma.c 		mic_dma_memcpy_desc(&ch->desc_ring[ch->head],
ch                160 drivers/dma/mic_x100_dma.c 		mic_dma_hw_ring_inc_head(ch);
ch                169 drivers/dma/mic_x100_dma.c static void mic_dma_prog_intr(struct mic_dma_chan *ch)
ch                171 drivers/dma/mic_x100_dma.c 	mic_dma_prep_status_desc(&ch->desc_ring[ch->head], 0,
ch                172 drivers/dma/mic_x100_dma.c 				 ch->status_dest_micpa, false);
ch                173 drivers/dma/mic_x100_dma.c 	mic_dma_hw_ring_inc_head(ch);
ch                174 drivers/dma/mic_x100_dma.c 	mic_dma_prep_status_desc(&ch->desc_ring[ch->head], 0,
ch                175 drivers/dma/mic_x100_dma.c 				 ch->status_dest_micpa, true);
ch                176 drivers/dma/mic_x100_dma.c 	mic_dma_hw_ring_inc_head(ch);
ch                180 drivers/dma/mic_x100_dma.c static int mic_dma_do_dma(struct mic_dma_chan *ch, int flags, dma_addr_t src,
ch                183 drivers/dma/mic_x100_dma.c 	if (len && -ENOMEM == mic_dma_prog_memcpy_desc(ch, src, dst, len)) {
ch                187 drivers/dma/mic_x100_dma.c 		int ret = mic_dma_avail_desc_ring_space(ch, 3);
ch                195 drivers/dma/mic_x100_dma.c 		mic_dma_prep_status_desc(&ch->desc_ring[ch->head], 0,
ch                196 drivers/dma/mic_x100_dma.c 					 ch->status_dest_micpa, false);
ch                197 drivers/dma/mic_x100_dma.c 		mic_dma_hw_ring_inc_head(ch);
ch                201 drivers/dma/mic_x100_dma.c 		mic_dma_prog_intr(ch);
ch                206 drivers/dma/mic_x100_dma.c static inline void mic_dma_issue_pending(struct dma_chan *ch)
ch                208 drivers/dma/mic_x100_dma.c 	struct mic_dma_chan *mic_ch = to_mic_dma_chan(ch);
ch                231 drivers/dma/mic_x100_dma.c static inline void mic_dma_update_pending(struct mic_dma_chan *ch)
ch                233 drivers/dma/mic_x100_dma.c 	if (mic_dma_ring_count(ch->issued, ch->submitted)
ch                235 drivers/dma/mic_x100_dma.c 		mic_dma_issue_pending(&ch->api_ch);
ch                258 drivers/dma/mic_x100_dma.c allocate_tx(struct mic_dma_chan *ch)
ch                260 drivers/dma/mic_x100_dma.c 	u32 idx = mic_dma_hw_ring_dec(ch->head);
ch                261 drivers/dma/mic_x100_dma.c 	struct dma_async_tx_descriptor *tx = &ch->tx_array[idx];
ch                263 drivers/dma/mic_x100_dma.c 	dma_async_tx_descriptor_init(tx, &ch->api_ch);
ch                270 drivers/dma/mic_x100_dma.c mic_dma_prep_status_lock(struct dma_chan *ch, dma_addr_t dst, u64 src_val,
ch                273 drivers/dma/mic_x100_dma.c 	struct mic_dma_chan *mic_ch = to_mic_dma_chan(ch);
ch                301 drivers/dma/mic_x100_dma.c mic_dma_prep_memcpy_lock(struct dma_chan *ch, dma_addr_t dma_dest,
ch                304 drivers/dma/mic_x100_dma.c 	struct mic_dma_chan *mic_ch = to_mic_dma_chan(ch);
ch                321 drivers/dma/mic_x100_dma.c mic_dma_prep_interrupt_lock(struct dma_chan *ch, unsigned long flags)
ch                323 drivers/dma/mic_x100_dma.c 	struct mic_dma_chan *mic_ch = to_mic_dma_chan(ch);
ch                336 drivers/dma/mic_x100_dma.c mic_dma_tx_status(struct dma_chan *ch, dma_cookie_t cookie,
ch                339 drivers/dma/mic_x100_dma.c 	struct mic_dma_chan *mic_ch = to_mic_dma_chan(ch);
ch                341 drivers/dma/mic_x100_dma.c 	if (DMA_COMPLETE != dma_cookie_status(ch, cookie, txstate))
ch                344 drivers/dma/mic_x100_dma.c 	return dma_cookie_status(ch, cookie, txstate);
ch                355 drivers/dma/mic_x100_dma.c 	struct mic_dma_chan *ch = ((struct mic_dma_chan *)data);
ch                357 drivers/dma/mic_x100_dma.c 	mic_dma_ack_interrupt(ch);
ch                361 drivers/dma/mic_x100_dma.c static int mic_dma_alloc_desc_ring(struct mic_dma_chan *ch)
ch                363 drivers/dma/mic_x100_dma.c 	u64 desc_ring_size = MIC_DMA_DESC_RX_SIZE * sizeof(*ch->desc_ring);
ch                364 drivers/dma/mic_x100_dma.c 	struct device *dev = &to_mbus_device(ch)->dev;
ch                367 drivers/dma/mic_x100_dma.c 	ch->desc_ring = kzalloc(desc_ring_size, GFP_KERNEL);
ch                369 drivers/dma/mic_x100_dma.c 	if (!ch->desc_ring)
ch                372 drivers/dma/mic_x100_dma.c 	ch->desc_ring_micpa = dma_map_single(dev, ch->desc_ring,
ch                374 drivers/dma/mic_x100_dma.c 	if (dma_mapping_error(dev, ch->desc_ring_micpa))
ch                377 drivers/dma/mic_x100_dma.c 	ch->tx_array = vzalloc(array_size(MIC_DMA_DESC_RX_SIZE,
ch                378 drivers/dma/mic_x100_dma.c 					  sizeof(*ch->tx_array)));
ch                379 drivers/dma/mic_x100_dma.c 	if (!ch->tx_array)
ch                383 drivers/dma/mic_x100_dma.c 	dma_unmap_single(dev, ch->desc_ring_micpa, desc_ring_size,
ch                386 drivers/dma/mic_x100_dma.c 	kfree(ch->desc_ring);
ch                390 drivers/dma/mic_x100_dma.c static void mic_dma_free_desc_ring(struct mic_dma_chan *ch)
ch                392 drivers/dma/mic_x100_dma.c 	u64 desc_ring_size = MIC_DMA_DESC_RX_SIZE * sizeof(*ch->desc_ring);
ch                394 drivers/dma/mic_x100_dma.c 	vfree(ch->tx_array);
ch                396 drivers/dma/mic_x100_dma.c 	dma_unmap_single(&to_mbus_device(ch)->dev, ch->desc_ring_micpa,
ch                398 drivers/dma/mic_x100_dma.c 	kfree(ch->desc_ring);
ch                399 drivers/dma/mic_x100_dma.c 	ch->desc_ring = NULL;
ch                402 drivers/dma/mic_x100_dma.c static void mic_dma_free_status_dest(struct mic_dma_chan *ch)
ch                404 drivers/dma/mic_x100_dma.c 	dma_unmap_single(&to_mbus_device(ch)->dev, ch->status_dest_micpa,
ch                406 drivers/dma/mic_x100_dma.c 	kfree(ch->status_dest);
ch                409 drivers/dma/mic_x100_dma.c static int mic_dma_alloc_status_dest(struct mic_dma_chan *ch)
ch                411 drivers/dma/mic_x100_dma.c 	struct device *dev = &to_mbus_device(ch)->dev;
ch                413 drivers/dma/mic_x100_dma.c 	ch->status_dest = kzalloc(L1_CACHE_BYTES, GFP_KERNEL);
ch                414 drivers/dma/mic_x100_dma.c 	if (!ch->status_dest)
ch                416 drivers/dma/mic_x100_dma.c 	ch->status_dest_micpa = dma_map_single(dev, ch->status_dest,
ch                418 drivers/dma/mic_x100_dma.c 	if (dma_mapping_error(dev, ch->status_dest_micpa)) {
ch                419 drivers/dma/mic_x100_dma.c 		kfree(ch->status_dest);
ch                420 drivers/dma/mic_x100_dma.c 		ch->status_dest = NULL;
ch                426 drivers/dma/mic_x100_dma.c static int mic_dma_check_chan(struct mic_dma_chan *ch)
ch                428 drivers/dma/mic_x100_dma.c 	if (mic_dma_read_reg(ch, MIC_DMA_REG_DCHERR) ||
ch                429 drivers/dma/mic_x100_dma.c 	    mic_dma_read_reg(ch, MIC_DMA_REG_DSTAT) & MIC_DMA_CHAN_QUIESCE) {
ch                430 drivers/dma/mic_x100_dma.c 		mic_dma_disable_chan(ch);
ch                431 drivers/dma/mic_x100_dma.c 		mic_dma_chan_mask_intr(ch);
ch                432 drivers/dma/mic_x100_dma.c 		dev_err(mic_dma_ch_to_device(ch),
ch                434 drivers/dma/mic_x100_dma.c 			__func__, __LINE__, ch->ch_num);
ch                440 drivers/dma/mic_x100_dma.c static int mic_dma_chan_setup(struct mic_dma_chan *ch)
ch                442 drivers/dma/mic_x100_dma.c 	if (MIC_DMA_CHAN_MIC == ch->owner)
ch                443 drivers/dma/mic_x100_dma.c 		mic_dma_chan_set_owner(ch);
ch                444 drivers/dma/mic_x100_dma.c 	mic_dma_disable_chan(ch);
ch                445 drivers/dma/mic_x100_dma.c 	mic_dma_chan_mask_intr(ch);
ch                446 drivers/dma/mic_x100_dma.c 	mic_dma_write_reg(ch, MIC_DMA_REG_DCHERRMSK, 0);
ch                447 drivers/dma/mic_x100_dma.c 	mic_dma_chan_set_desc_ring(ch);
ch                448 drivers/dma/mic_x100_dma.c 	ch->last_tail = mic_dma_read_reg(ch, MIC_DMA_REG_DTPR);
ch                449 drivers/dma/mic_x100_dma.c 	ch->head = ch->last_tail;
ch                450 drivers/dma/mic_x100_dma.c 	ch->issued = 0;
ch                451 drivers/dma/mic_x100_dma.c 	mic_dma_chan_unmask_intr(ch);
ch                452 drivers/dma/mic_x100_dma.c 	mic_dma_enable_chan(ch);
ch                453 drivers/dma/mic_x100_dma.c 	return mic_dma_check_chan(ch);
ch                456 drivers/dma/mic_x100_dma.c static void mic_dma_chan_destroy(struct mic_dma_chan *ch)
ch                458 drivers/dma/mic_x100_dma.c 	mic_dma_disable_chan(ch);
ch                459 drivers/dma/mic_x100_dma.c 	mic_dma_chan_mask_intr(ch);
ch                462 drivers/dma/mic_x100_dma.c static int mic_dma_setup_irq(struct mic_dma_chan *ch)
ch                464 drivers/dma/mic_x100_dma.c 	ch->cookie =
ch                465 drivers/dma/mic_x100_dma.c 		to_mbus_hw_ops(ch)->request_threaded_irq(to_mbus_device(ch),
ch                467 drivers/dma/mic_x100_dma.c 			"mic dma_channel", ch, ch->ch_num);
ch                468 drivers/dma/mic_x100_dma.c 	return PTR_ERR_OR_ZERO(ch->cookie);
ch                471 drivers/dma/mic_x100_dma.c static inline void mic_dma_free_irq(struct mic_dma_chan *ch)
ch                473 drivers/dma/mic_x100_dma.c 	to_mbus_hw_ops(ch)->free_irq(to_mbus_device(ch), ch->cookie, ch);
ch                476 drivers/dma/mic_x100_dma.c static int mic_dma_chan_init(struct mic_dma_chan *ch)
ch                478 drivers/dma/mic_x100_dma.c 	int ret = mic_dma_alloc_desc_ring(ch);
ch                482 drivers/dma/mic_x100_dma.c 	ret = mic_dma_alloc_status_dest(ch);
ch                485 drivers/dma/mic_x100_dma.c 	ret = mic_dma_chan_setup(ch);
ch                490 drivers/dma/mic_x100_dma.c 	mic_dma_free_status_dest(ch);
ch                492 drivers/dma/mic_x100_dma.c 	mic_dma_free_desc_ring(ch);
ch                497 drivers/dma/mic_x100_dma.c static int mic_dma_drain_chan(struct mic_dma_chan *ch)
ch                503 drivers/dma/mic_x100_dma.c 	tx = mic_dma_prep_memcpy_lock(&ch->api_ch, 0, 0, 0, DMA_PREP_FENCE);
ch                513 drivers/dma/mic_x100_dma.c 		err = dma_sync_wait(&ch->api_ch, cookie);
ch                515 drivers/dma/mic_x100_dma.c 		dev_err(mic_dma_ch_to_device(ch), "%s %d TO chan 0x%x\n",
ch                516 drivers/dma/mic_x100_dma.c 			__func__, __LINE__, ch->ch_num);
ch                520 drivers/dma/mic_x100_dma.c 	mic_dma_cleanup(ch);
ch                524 drivers/dma/mic_x100_dma.c static inline void mic_dma_chan_uninit(struct mic_dma_chan *ch)
ch                526 drivers/dma/mic_x100_dma.c 	mic_dma_chan_destroy(ch);
ch                527 drivers/dma/mic_x100_dma.c 	mic_dma_cleanup(ch);
ch                528 drivers/dma/mic_x100_dma.c 	mic_dma_free_status_dest(ch);
ch                529 drivers/dma/mic_x100_dma.c 	mic_dma_free_desc_ring(ch);
ch                536 drivers/dma/mic_x100_dma.c 	struct mic_dma_chan *ch;
ch                540 drivers/dma/mic_x100_dma.c 		ch = &mic_dma_dev->mic_ch[i];
ch                541 drivers/dma/mic_x100_dma.c 		ch->ch_num = i;
ch                542 drivers/dma/mic_x100_dma.c 		ch->owner = owner;
ch                543 drivers/dma/mic_x100_dma.c 		spin_lock_init(&ch->cleanup_lock);
ch                544 drivers/dma/mic_x100_dma.c 		spin_lock_init(&ch->prep_lock);
ch                545 drivers/dma/mic_x100_dma.c 		spin_lock_init(&ch->issue_lock);
ch                546 drivers/dma/mic_x100_dma.c 		ret = mic_dma_setup_irq(ch);
ch                553 drivers/dma/mic_x100_dma.c 		mic_dma_free_irq(ch);
ch                560 drivers/dma/mic_x100_dma.c 	struct mic_dma_chan *ch;
ch                563 drivers/dma/mic_x100_dma.c 		ch = &mic_dma_dev->mic_ch[i];
ch                564 drivers/dma/mic_x100_dma.c 		mic_dma_free_irq(ch);
ch                568 drivers/dma/mic_x100_dma.c static int mic_dma_alloc_chan_resources(struct dma_chan *ch)
ch                570 drivers/dma/mic_x100_dma.c 	int ret = mic_dma_chan_init(to_mic_dma_chan(ch));
ch                576 drivers/dma/mic_x100_dma.c static void mic_dma_free_chan_resources(struct dma_chan *ch)
ch                578 drivers/dma/mic_x100_dma.c 	struct mic_dma_chan *mic_ch = to_mic_dma_chan(ch);
ch                672 drivers/dma/mic_x100_dma.c 	struct mic_dma_chan *ch;
ch                682 drivers/dma/mic_x100_dma.c 		ch = &mic_dma_dev->mic_ch[i];
ch                683 drivers/dma/mic_x100_dma.c 		chan_num = ch->ch_num;
ch                686 drivers/dma/mic_x100_dma.c 			   mic_dma_read_reg(ch, MIC_DMA_REG_DCAR),
ch                687 drivers/dma/mic_x100_dma.c 			   mic_dma_read_reg(ch, MIC_DMA_REG_DTPR),
ch                688 drivers/dma/mic_x100_dma.c 			   mic_dma_read_reg(ch, MIC_DMA_REG_DHPR),
ch                689 drivers/dma/mic_x100_dma.c 			   mic_dma_read_reg(ch, MIC_DMA_REG_DRAR_HI));
ch                691 drivers/dma/mic_x100_dma.c 			   mic_dma_read_reg(ch, MIC_DMA_REG_DRAR_LO),
ch                692 drivers/dma/mic_x100_dma.c 			   mic_dma_read_reg(ch, MIC_DMA_REG_DCHERR),
ch                693 drivers/dma/mic_x100_dma.c 			   mic_dma_read_reg(ch, MIC_DMA_REG_DCHERRMSK),
ch                694 drivers/dma/mic_x100_dma.c 			   mic_dma_read_reg(ch, MIC_DMA_REG_DSTAT));
ch                140 drivers/dma/mic_x100_dma.h static inline struct mic_dma_chan *to_mic_dma_chan(struct dma_chan *ch)
ch                142 drivers/dma/mic_x100_dma.h 	return container_of(ch, struct mic_dma_chan, api_ch);
ch                145 drivers/dma/mic_x100_dma.h static inline struct mic_dma_device *to_mic_dma_dev(struct mic_dma_chan *ch)
ch                149 drivers/dma/mic_x100_dma.h 		     (ch - ch->ch_num), struct mic_dma_device, mic_ch);
ch                152 drivers/dma/mic_x100_dma.h static inline struct mbus_device *to_mbus_device(struct mic_dma_chan *ch)
ch                154 drivers/dma/mic_x100_dma.h 	return to_mic_dma_dev(ch)->mbdev;
ch                157 drivers/dma/mic_x100_dma.h static inline struct mbus_hw_ops *to_mbus_hw_ops(struct mic_dma_chan *ch)
ch                159 drivers/dma/mic_x100_dma.h 	return to_mbus_device(ch)->hw_ops;
ch                162 drivers/dma/mic_x100_dma.h static inline struct device *mic_dma_ch_to_device(struct mic_dma_chan *ch)
ch                164 drivers/dma/mic_x100_dma.h 	return to_mic_dma_dev(ch)->dma_dev.dev;
ch                167 drivers/dma/mic_x100_dma.h static inline void __iomem *mic_dma_chan_to_mmio(struct mic_dma_chan *ch)
ch                169 drivers/dma/mic_x100_dma.h 	return to_mic_dma_dev(ch)->mmio;
ch                172 drivers/dma/mic_x100_dma.h static inline u32 mic_dma_read_reg(struct mic_dma_chan *ch, u32 reg)
ch                174 drivers/dma/mic_x100_dma.h 	return ioread32(mic_dma_chan_to_mmio(ch) + MIC_DMA_SBOX_CH_BASE +
ch                175 drivers/dma/mic_x100_dma.h 			ch->ch_num * MIC_DMA_SBOX_CHAN_OFF + reg);
ch                178 drivers/dma/mic_x100_dma.h static inline void mic_dma_write_reg(struct mic_dma_chan *ch, u32 reg, u32 val)
ch                180 drivers/dma/mic_x100_dma.h 	iowrite32(val, mic_dma_chan_to_mmio(ch) + MIC_DMA_SBOX_CH_BASE +
ch                181 drivers/dma/mic_x100_dma.h 		  ch->ch_num * MIC_DMA_SBOX_CHAN_OFF + reg);
ch                184 drivers/dma/mic_x100_dma.h static inline u32 mic_dma_mmio_read(struct mic_dma_chan *ch, u32 offset)
ch                186 drivers/dma/mic_x100_dma.h 	return ioread32(mic_dma_chan_to_mmio(ch) + offset);
ch                189 drivers/dma/mic_x100_dma.h static inline void mic_dma_mmio_write(struct mic_dma_chan *ch, u32 val,
ch                192 drivers/dma/mic_x100_dma.h 	iowrite32(val, mic_dma_chan_to_mmio(ch) + offset);
ch                195 drivers/dma/mic_x100_dma.h static inline u32 mic_dma_read_cmp_cnt(struct mic_dma_chan *ch)
ch                197 drivers/dma/mic_x100_dma.h 	return mic_dma_read_reg(ch, MIC_DMA_REG_DSTAT) &
ch                201 drivers/dma/mic_x100_dma.h static inline void mic_dma_chan_set_owner(struct mic_dma_chan *ch)
ch                203 drivers/dma/mic_x100_dma.h 	u32 dcr = mic_dma_mmio_read(ch, MIC_DMA_SBOX_BASE + MIC_DMA_SBOX_DCR);
ch                204 drivers/dma/mic_x100_dma.h 	u32 chan_num = ch->ch_num;
ch                206 drivers/dma/mic_x100_dma.h 	dcr = (dcr & ~(0x1 << (chan_num * 2))) | (ch->owner << (chan_num * 2));
ch                207 drivers/dma/mic_x100_dma.h 	mic_dma_mmio_write(ch, dcr, MIC_DMA_SBOX_BASE + MIC_DMA_SBOX_DCR);
ch                210 drivers/dma/mic_x100_dma.h static inline void mic_dma_enable_chan(struct mic_dma_chan *ch)
ch                212 drivers/dma/mic_x100_dma.h 	u32 dcr = mic_dma_mmio_read(ch, MIC_DMA_SBOX_BASE + MIC_DMA_SBOX_DCR);
ch                214 drivers/dma/mic_x100_dma.h 	dcr |= 2 << (ch->ch_num << 1);
ch                215 drivers/dma/mic_x100_dma.h 	mic_dma_mmio_write(ch, dcr, MIC_DMA_SBOX_BASE + MIC_DMA_SBOX_DCR);
ch                218 drivers/dma/mic_x100_dma.h static inline void mic_dma_disable_chan(struct mic_dma_chan *ch)
ch                220 drivers/dma/mic_x100_dma.h 	u32 dcr = mic_dma_mmio_read(ch, MIC_DMA_SBOX_BASE + MIC_DMA_SBOX_DCR);
ch                222 drivers/dma/mic_x100_dma.h 	dcr &= ~(2 << (ch->ch_num << 1));
ch                223 drivers/dma/mic_x100_dma.h 	mic_dma_mmio_write(ch, dcr, MIC_DMA_SBOX_BASE + MIC_DMA_SBOX_DCR);
ch                226 drivers/dma/mic_x100_dma.h static void mic_dma_chan_set_desc_ring(struct mic_dma_chan *ch)
ch                229 drivers/dma/mic_x100_dma.h 	dma_addr_t desc_ring_micpa = ch->desc_ring_micpa;
ch                232 drivers/dma/mic_x100_dma.h 	if (MIC_DMA_CHAN_MIC == ch->owner) {
ch                240 drivers/dma/mic_x100_dma.h 	mic_dma_write_reg(ch, MIC_DMA_REG_DRAR_LO, (u32) desc_ring_micpa);
ch                241 drivers/dma/mic_x100_dma.h 	mic_dma_write_reg(ch, MIC_DMA_REG_DRAR_HI, drar_hi);
ch                244 drivers/dma/mic_x100_dma.h static inline void mic_dma_chan_mask_intr(struct mic_dma_chan *ch)
ch                246 drivers/dma/mic_x100_dma.h 	u32 dcar = mic_dma_read_reg(ch, MIC_DMA_REG_DCAR);
ch                248 drivers/dma/mic_x100_dma.h 	if (MIC_DMA_CHAN_MIC == ch->owner)
ch                252 drivers/dma/mic_x100_dma.h 	mic_dma_write_reg(ch, MIC_DMA_REG_DCAR, dcar);
ch                255 drivers/dma/mic_x100_dma.h static inline void mic_dma_chan_unmask_intr(struct mic_dma_chan *ch)
ch                257 drivers/dma/mic_x100_dma.h 	u32 dcar = mic_dma_read_reg(ch, MIC_DMA_REG_DCAR);
ch                259 drivers/dma/mic_x100_dma.h 	if (MIC_DMA_CHAN_MIC == ch->owner)
ch                263 drivers/dma/mic_x100_dma.h 	mic_dma_write_reg(ch, MIC_DMA_REG_DCAR, dcar);
ch                266 drivers/dma/mic_x100_dma.h static void mic_dma_ack_interrupt(struct mic_dma_chan *ch)
ch                268 drivers/dma/mic_x100_dma.h 	if (MIC_DMA_CHAN_MIC == ch->owner) {
ch                270 drivers/dma/mic_x100_dma.h 		mic_dma_chan_mask_intr(ch);
ch                271 drivers/dma/mic_x100_dma.h 		mic_dma_chan_unmask_intr(ch);
ch                273 drivers/dma/mic_x100_dma.h 	to_mbus_hw_ops(ch)->ack_interrupt(to_mbus_device(ch), ch->ch_num);
ch                188 drivers/dma/moxart-dma.c 	struct moxart_chan *ch = to_moxart_dma_chan(chan);
ch                193 drivers/dma/moxart-dma.c 	dev_dbg(chan2dev(chan), "%s: ch=%p\n", __func__, ch);
ch                195 drivers/dma/moxart-dma.c 	spin_lock_irqsave(&ch->vc.lock, flags);
ch                197 drivers/dma/moxart-dma.c 	if (ch->desc) {
ch                198 drivers/dma/moxart-dma.c 		moxart_dma_desc_free(&ch->desc->vd);
ch                199 drivers/dma/moxart-dma.c 		ch->desc = NULL;
ch                202 drivers/dma/moxart-dma.c 	ctrl = readl(ch->base + REG_OFF_CTRL);
ch                204 drivers/dma/moxart-dma.c 	writel(ctrl, ch->base + REG_OFF_CTRL);
ch                206 drivers/dma/moxart-dma.c 	vchan_get_all_descriptors(&ch->vc, &head);
ch                207 drivers/dma/moxart-dma.c 	spin_unlock_irqrestore(&ch->vc.lock, flags);
ch                208 drivers/dma/moxart-dma.c 	vchan_dma_desc_free_list(&ch->vc, &head);
ch                216 drivers/dma/moxart-dma.c 	struct moxart_chan *ch = to_moxart_dma_chan(chan);
ch                219 drivers/dma/moxart-dma.c 	ch->cfg = *cfg;
ch                221 drivers/dma/moxart-dma.c 	ctrl = readl(ch->base + REG_OFF_CTRL);
ch                226 drivers/dma/moxart-dma.c 	switch (ch->cfg.src_addr_width) {
ch                229 drivers/dma/moxart-dma.c 		if (ch->cfg.direction != DMA_MEM_TO_DEV)
ch                236 drivers/dma/moxart-dma.c 		if (ch->cfg.direction != DMA_MEM_TO_DEV)
ch                243 drivers/dma/moxart-dma.c 		if (ch->cfg.direction != DMA_MEM_TO_DEV)
ch                252 drivers/dma/moxart-dma.c 	if (ch->cfg.direction == DMA_MEM_TO_DEV) {
ch                255 drivers/dma/moxart-dma.c 		ctrl |= (ch->line_reqno << 16 &
ch                260 drivers/dma/moxart-dma.c 		ctrl |= (ch->line_reqno << 24 &
ch                264 drivers/dma/moxart-dma.c 	writel(ctrl, ch->base + REG_OFF_CTRL);
ch                274 drivers/dma/moxart-dma.c 	struct moxart_chan *ch = to_moxart_dma_chan(chan);
ch                289 drivers/dma/moxart-dma.c 		dev_addr = ch->cfg.src_addr;
ch                290 drivers/dma/moxart-dma.c 		dev_width = ch->cfg.src_addr_width;
ch                292 drivers/dma/moxart-dma.c 		dev_addr = ch->cfg.dst_addr;
ch                293 drivers/dma/moxart-dma.c 		dev_width = ch->cfg.dst_addr_width;
ch                327 drivers/dma/moxart-dma.c 	ch->error = 0;
ch                329 drivers/dma/moxart-dma.c 	return vchan_tx_prep(&ch->vc, &d->vd, tx_flags);
ch                337 drivers/dma/moxart-dma.c 	struct moxart_chan *ch;
ch                343 drivers/dma/moxart-dma.c 	ch = to_moxart_dma_chan(chan);
ch                344 drivers/dma/moxart-dma.c 	ch->line_reqno = dma_spec->args[0];
ch                351 drivers/dma/moxart-dma.c 	struct moxart_chan *ch = to_moxart_dma_chan(chan);
ch                354 drivers/dma/moxart-dma.c 		__func__, ch->ch_num);
ch                355 drivers/dma/moxart-dma.c 	ch->allocated = 1;
ch                362 drivers/dma/moxart-dma.c 	struct moxart_chan *ch = to_moxart_dma_chan(chan);
ch                364 drivers/dma/moxart-dma.c 	vchan_free_chan_resources(&ch->vc);
ch                367 drivers/dma/moxart-dma.c 		__func__, ch->ch_num);
ch                368 drivers/dma/moxart-dma.c 	ch->allocated = 0;
ch                371 drivers/dma/moxart-dma.c static void moxart_dma_set_params(struct moxart_chan *ch, dma_addr_t src_addr,
ch                374 drivers/dma/moxart-dma.c 	writel(src_addr, ch->base + REG_OFF_ADDRESS_SOURCE);
ch                375 drivers/dma/moxart-dma.c 	writel(dst_addr, ch->base + REG_OFF_ADDRESS_DEST);
ch                378 drivers/dma/moxart-dma.c static void moxart_set_transfer_params(struct moxart_chan *ch, unsigned int len)
ch                380 drivers/dma/moxart-dma.c 	struct moxart_desc *d = ch->desc;
ch                389 drivers/dma/moxart-dma.c 	writel(d->dma_cycles, ch->base + REG_OFF_CYCLES);
ch                391 drivers/dma/moxart-dma.c 	dev_dbg(chan2dev(&ch->vc.chan), "%s: set %u DMA cycles (len=%u)\n",
ch                395 drivers/dma/moxart-dma.c static void moxart_start_dma(struct moxart_chan *ch)
ch                399 drivers/dma/moxart-dma.c 	ctrl = readl(ch->base + REG_OFF_CTRL);
ch                401 drivers/dma/moxart-dma.c 	writel(ctrl, ch->base + REG_OFF_CTRL);
ch                404 drivers/dma/moxart-dma.c static void moxart_dma_start_sg(struct moxart_chan *ch, unsigned int idx)
ch                406 drivers/dma/moxart-dma.c 	struct moxart_desc *d = ch->desc;
ch                407 drivers/dma/moxart-dma.c 	struct moxart_sg *sg = ch->desc->sg + idx;
ch                409 drivers/dma/moxart-dma.c 	if (ch->desc->dma_dir == DMA_MEM_TO_DEV)
ch                410 drivers/dma/moxart-dma.c 		moxart_dma_set_params(ch, sg->addr, d->dev_addr);
ch                411 drivers/dma/moxart-dma.c 	else if (ch->desc->dma_dir == DMA_DEV_TO_MEM)
ch                412 drivers/dma/moxart-dma.c 		moxart_dma_set_params(ch, d->dev_addr, sg->addr);
ch                414 drivers/dma/moxart-dma.c 	moxart_set_transfer_params(ch, sg->len);
ch                416 drivers/dma/moxart-dma.c 	moxart_start_dma(ch);
ch                421 drivers/dma/moxart-dma.c 	struct moxart_chan *ch = to_moxart_dma_chan(chan);
ch                424 drivers/dma/moxart-dma.c 	vd = vchan_next_desc(&ch->vc);
ch                427 drivers/dma/moxart-dma.c 		ch->desc = NULL;
ch                433 drivers/dma/moxart-dma.c 	ch->desc = to_moxart_dma_desc(&vd->tx);
ch                434 drivers/dma/moxart-dma.c 	ch->sgidx = 0;
ch                436 drivers/dma/moxart-dma.c 	moxart_dma_start_sg(ch, 0);
ch                441 drivers/dma/moxart-dma.c 	struct moxart_chan *ch = to_moxart_dma_chan(chan);
ch                444 drivers/dma/moxart-dma.c 	spin_lock_irqsave(&ch->vc.lock, flags);
ch                445 drivers/dma/moxart-dma.c 	if (vchan_issue_pending(&ch->vc) && !ch->desc)
ch                447 drivers/dma/moxart-dma.c 	spin_unlock_irqrestore(&ch->vc.lock, flags);
ch                462 drivers/dma/moxart-dma.c static size_t moxart_dma_desc_size_in_flight(struct moxart_chan *ch)
ch                467 drivers/dma/moxart-dma.c 	size = moxart_dma_desc_size(ch->desc, ch->sgidx);
ch                468 drivers/dma/moxart-dma.c 	cycles = readl(ch->base + REG_OFF_CYCLES);
ch                469 drivers/dma/moxart-dma.c 	completed_cycles = (ch->desc->dma_cycles - cycles);
ch                470 drivers/dma/moxart-dma.c 	size -= completed_cycles << es_bytes[ch->desc->es];
ch                472 drivers/dma/moxart-dma.c 	dev_dbg(chan2dev(&ch->vc.chan), "%s: size=%zu\n", __func__, size);
ch                481 drivers/dma/moxart-dma.c 	struct moxart_chan *ch = to_moxart_dma_chan(chan);
ch                492 drivers/dma/moxart-dma.c 	spin_lock_irqsave(&ch->vc.lock, flags);
ch                493 drivers/dma/moxart-dma.c 	vd = vchan_find_desc(&ch->vc, cookie);
ch                497 drivers/dma/moxart-dma.c 	} else if (ch->desc && ch->desc->vd.tx.cookie == cookie) {
ch                498 drivers/dma/moxart-dma.c 		txstate->residue = moxart_dma_desc_size_in_flight(ch);
ch                500 drivers/dma/moxart-dma.c 	spin_unlock_irqrestore(&ch->vc.lock, flags);
ch                502 drivers/dma/moxart-dma.c 	if (ch->error)
ch                525 drivers/dma/moxart-dma.c 	struct moxart_chan *ch = &mc->slave_chans[0];
ch                530 drivers/dma/moxart-dma.c 	dev_dbg(chan2dev(&ch->vc.chan), "%s\n", __func__);
ch                532 drivers/dma/moxart-dma.c 	for (i = 0; i < APB_DMA_MAX_CHANNEL; i++, ch++) {
ch                533 drivers/dma/moxart-dma.c 		if (!ch->allocated)
ch                536 drivers/dma/moxart-dma.c 		ctrl = readl(ch->base + REG_OFF_CTRL);
ch                538 drivers/dma/moxart-dma.c 		dev_dbg(chan2dev(&ch->vc.chan), "%s: ch=%p ch->base=%p ctrl=%x\n",
ch                539 drivers/dma/moxart-dma.c 			__func__, ch, ch->base, ctrl);
ch                543 drivers/dma/moxart-dma.c 			if (ch->desc) {
ch                544 drivers/dma/moxart-dma.c 				spin_lock_irqsave(&ch->vc.lock, flags);
ch                545 drivers/dma/moxart-dma.c 				if (++ch->sgidx < ch->desc->sglen) {
ch                546 drivers/dma/moxart-dma.c 					moxart_dma_start_sg(ch, ch->sgidx);
ch                548 drivers/dma/moxart-dma.c 					vchan_cookie_complete(&ch->desc->vd);
ch                549 drivers/dma/moxart-dma.c 					moxart_dma_start_desc(&ch->vc.chan);
ch                551 drivers/dma/moxart-dma.c 				spin_unlock_irqrestore(&ch->vc.lock, flags);
ch                557 drivers/dma/moxart-dma.c 			ch->error = 1;
ch                560 drivers/dma/moxart-dma.c 		writel(ctrl, ch->base + REG_OFF_CTRL);
ch                574 drivers/dma/moxart-dma.c 	struct moxart_chan *ch;
ch                598 drivers/dma/moxart-dma.c 	ch = &mdc->slave_chans[0];
ch                599 drivers/dma/moxart-dma.c 	for (i = 0; i < APB_DMA_MAX_CHANNEL; i++, ch++) {
ch                600 drivers/dma/moxart-dma.c 		ch->ch_num = i;
ch                601 drivers/dma/moxart-dma.c 		ch->base = dma_base_addr + i * REG_OFF_CHAN_SIZE;
ch                602 drivers/dma/moxart-dma.c 		ch->allocated = 0;
ch                604 drivers/dma/moxart-dma.c 		ch->vc.desc_free = moxart_dma_desc_free;
ch                605 drivers/dma/moxart-dma.c 		vchan_init(&ch->vc, &mdc->dma_slave);
ch                608 drivers/dma/moxart-dma.c 			__func__, i, ch->ch_num, ch->base);
ch                323 drivers/dma/mpc512x_dma.c 	int ch;
ch                325 drivers/dma/mpc512x_dma.c 	while ((ch = fls(status) - 1) >= 0) {
ch                326 drivers/dma/mpc512x_dma.c 		status &= ~(1 << ch);
ch                327 drivers/dma/mpc512x_dma.c 		mchan = &mdma->channels[ch + off];
ch                331 drivers/dma/mpc512x_dma.c 		out_8(&mdma->regs->dmacint, ch + off);
ch                332 drivers/dma/mpc512x_dma.c 		out_8(&mdma->regs->dmacerr, ch + off);
ch                335 drivers/dma/mpc512x_dma.c 		if (es & (1 << ch))
ch                227 drivers/dma/pch_dma.c 		int ch = chan->chan_id - 8; /* ch8-->0 ch9-->1 ... ch11->3 */
ch                231 drivers/dma/pch_dma.c 						(DMA_CTL0_BITS_PER_CH * ch);
ch                233 drivers/dma/pch_dma.c 						 (DMA_CTL0_BITS_PER_CH * ch));
ch                236 drivers/dma/pch_dma.c 			val |= 0x1 << (DMA_CTL0_BITS_PER_CH * ch +
ch                239 drivers/dma/pch_dma.c 			val &= ~(0x1 << (DMA_CTL0_BITS_PER_CH * ch +
ch                267 drivers/dma/pch_dma.c 		int ch = chan->chan_id - 8; /* ch8-->0 ch9-->1 ... ch11->3 */
ch                269 drivers/dma/pch_dma.c 						 (DMA_CTL0_BITS_PER_CH * ch));
ch                270 drivers/dma/pch_dma.c 		mask_dir = 1 << (DMA_CTL0_BITS_PER_CH * ch +\
ch                274 drivers/dma/pch_dma.c 		val |= mode << (DMA_CTL0_BITS_PER_CH * ch);
ch               2016 drivers/dma/pl330.c to_pchan(struct dma_chan *ch)
ch               2018 drivers/dma/pl330.c 	if (!ch)
ch               2021 drivers/dma/pl330.c 	return container_of(ch, struct dma_pl330_chan, chan);
ch               2909 drivers/dma/pl330.c 	int chans, pchs, ch, pr;
ch               2917 drivers/dma/pl330.c 	for (ch = 0; ch < chans; ch++) {
ch               2918 drivers/dma/pl330.c 		struct pl330_thread *thrd = &pl330->channels[ch];
ch                322 drivers/dma/pxa_dma.c 					     int ch, struct dentry *chandir)
ch                328 drivers/dma/pxa_dma.c 	scnprintf(chan_name, sizeof(chan_name), "%d", ch);
ch                330 drivers/dma/pxa_dma.c 	dt = (void *)&pdev->phys[ch];
ch                271 drivers/dma/sirf-dma.c 	int ch;
ch                279 drivers/dma/sirf-dma.c 		while ((ch = fls(is) - 1) >= 0) {
ch                280 drivers/dma/sirf-dma.c 			is &= ~(1 << ch);
ch                281 drivers/dma/sirf-dma.c 			writel_relaxed(1 << ch, reg);
ch                282 drivers/dma/sirf-dma.c 			schan = &sdma->channels[ch];
ch               1014 drivers/dma/sirf-dma.c 	int ch;
ch               1041 drivers/dma/sirf-dma.c 	for (ch = 0; ch < count; ch++) {
ch               1042 drivers/dma/sirf-dma.c 		schan = &sdma->channels[ch];
ch               1045 drivers/dma/sirf-dma.c 		save->ctrl[ch] = readl_relaxed(sdma->base +
ch               1046 drivers/dma/sirf-dma.c 			ch * 0x10 + SIRFSOC_DMA_CH_CTRL);
ch               1062 drivers/dma/sirf-dma.c 	int ch;
ch               1084 drivers/dma/sirf-dma.c 	for (ch = 0; ch < count; ch++) {
ch               1085 drivers/dma/sirf-dma.c 		schan = &sdma->channels[ch];
ch               1092 drivers/dma/sirf-dma.c 			sdma->base + width_offset + ch * 4);
ch               1094 drivers/dma/sirf-dma.c 			sdma->base + ch * 0x10 + SIRFSOC_DMA_CH_XLEN);
ch               1096 drivers/dma/sirf-dma.c 			sdma->base + ch * 0x10 + SIRFSOC_DMA_CH_YLEN);
ch               1097 drivers/dma/sirf-dma.c 		writel_relaxed(save->ctrl[ch],
ch               1098 drivers/dma/sirf-dma.c 			sdma->base + ch * 0x10 + SIRFSOC_DMA_CH_CTRL);
ch               1104 drivers/dma/sirf-dma.c 				sdma->base + ch * 0x10 + SIRFSOC_DMA_CH_ADDR);
ch                154 drivers/dma/st_fdma.h #define FDMA_CMD_START(ch)		(0x1 << (ch << 1))
ch                155 drivers/dma/st_fdma.h #define FDMA_CMD_PAUSE(ch)		(0x2 << (ch << 1))
ch                156 drivers/dma/st_fdma.h #define FDMA_CMD_FLUSH(ch)		(0x3 << (ch << 1))
ch                888 drivers/dma/ti/cppi41.c 	unsigned ch;
ch                894 drivers/dma/ti/cppi41.c 	for (ch = 0; ch < cdd->n_chans; ch += 2) {
ch                896 drivers/dma/ti/cppi41.c 		reg = SCHED_ENTRY0_CHAN(ch);
ch                897 drivers/dma/ti/cppi41.c 		reg |= SCHED_ENTRY1_CHAN(ch) | SCHED_ENTRY1_IS_RX;
ch                899 drivers/dma/ti/cppi41.c 		reg |= SCHED_ENTRY2_CHAN(ch + 1);
ch                900 drivers/dma/ti/cppi41.c 		reg |= SCHED_ENTRY3_CHAN(ch + 1) | SCHED_ENTRY3_IS_RX;
ch                575 drivers/dma/ti/omap-dma.c static void omap_dma_callback(int ch, u16 status, void *data)
ch               1088 drivers/dma/txx9dmac.c 	int ch = pdev->id % TXX9_DMA_MAX_NR_CHANNELS;
ch               1101 drivers/dma/txx9dmac.c 	if (pdata && pdata->memcpy_chan == ch) {
ch               1125 drivers/dma/txx9dmac.c 	dc->ddev->chan[ch] = dc;
ch               1131 drivers/dma/txx9dmac.c 		dc->ch_regs = &__txx9dmac_regs(dc->ddev)->CHAN[ch];
ch               1133 drivers/dma/txx9dmac.c 		dc->ch_regs = &__txx9dmac_regs32(dc->ddev)->CHAN[ch];
ch                106 drivers/dma/txx9dmac.h #define TXX9_DMA_MCR_EIS(ch)	(0x10000000<<(ch))
ch                107 drivers/dma/txx9dmac.h #define TXX9_DMA_MCR_DIS(ch)	(0x01000000<<(ch))
ch                109 drivers/dma/txx9dmac.h #define TXX9_DMA_MCR_FIFUM(ch)	(0x00000008<<(ch))
ch                712 drivers/edac/i5100_edac.c 			       u8 ch, u8 slot, u8 addr, u8 *byte)
ch                723 drivers/edac/i5100_edac.c 			       i5100_spdcmd_create(0xa, 1, ch * 4 + slot, addr,
ch                 67 drivers/edac/i7300_edac.c #define to_channel(ch, branch)	((((branch)) << 1) | (ch))
ch                 69 drivers/edac/i7300_edac.c #define to_csrow(slot, ch, branch)					\
ch                 70 drivers/edac/i7300_edac.c 		(to_channel(ch, branch) | ((slot) << 2))
ch                586 drivers/edac/i7300_edac.c 		      int slot, int ch, int branch,
ch                592 drivers/edac/i7300_edac.c 	channel = to_channel(ch, branch);
ch                751 drivers/edac/i7300_edac.c 	int ch, branch, slot, channel, max_channel, max_branch;
ch                794 drivers/edac/i7300_edac.c 			for (ch = 0; ch < max_channel; ch++) {
ch                795 drivers/edac/i7300_edac.c 				int channel = to_channel(ch, branch);
ch                798 drivers/edac/i7300_edac.c 					       mci->n_layers, branch, ch, slot);
ch                802 drivers/edac/i7300_edac.c 				mtr = decode_mtr(pvt, slot, ch, branch,
ch                132 drivers/edac/i7core_edac.c   #define RDLCH(r, ch)		((((r) >> (3 + (ch * 6))) & 0x07) - 1)
ch                133 drivers/edac/i7core_edac.c   #define WRLCH(r, ch)		((((r) >> (ch * 6)) & 0x07) - 1)
ch                396 drivers/edac/i7core_edac.c #define CH_ACTIVE(pvt, ch)	((pvt)->info.mc_control & (1 << (8 + ch)))
ch                401 drivers/edac/i7core_edac.c #define CH_DISABLED(pvt, ch)	((pvt)->info.mc_status & (1 << ch))
ch               1072 drivers/edac/pnd2_edac.c static int check_channel(int ch)
ch               1074 drivers/edac/pnd2_edac.c 	if (drp0[ch].dramtype != 0) {
ch               1075 drivers/edac/pnd2_edac.c 		pnd2_printk(KERN_INFO, "Unsupported DIMM in channel %d\n", ch);
ch               1077 drivers/edac/pnd2_edac.c 	} else if (drp0[ch].eccen == 0) {
ch               1078 drivers/edac/pnd2_edac.c 		pnd2_printk(KERN_INFO, "ECC disabled on channel %d\n", ch);
ch               1097 drivers/edac/pnd2_edac.c static int check_unit(int ch)
ch               1099 drivers/edac/pnd2_edac.c 	struct d_cr_drp *d = &drp[ch];
ch               1101 drivers/edac/pnd2_edac.c 	if (DIMMS_PRESENT(d) && !ecc_ctrl[ch].eccen) {
ch               1102 drivers/edac/pnd2_edac.c 		pnd2_printk(KERN_INFO, "ECC disabled on channel %d\n", ch);
ch                330 drivers/edac/skx_base.c #define SKX_GET_TADCHNILVOFFSET(d, mc, ch, i, reg)	\
ch                331 drivers/edac/skx_base.c 	pci_read_config_dword((d)->imc[mc].chan[ch].cdev, 0x90 + 4 * (i), &(reg))
ch                401 drivers/edac/skx_base.c #define SKX_GET_RIRWAYNESS(d, mc, ch, i, reg)		\
ch                402 drivers/edac/skx_base.c 	pci_read_config_dword((d)->imc[mc].chan[ch].cdev,	\
ch                404 drivers/edac/skx_base.c #define SKX_GET_RIRILV(d, mc, ch, idx, i, reg)		\
ch                405 drivers/edac/skx_base.c 	pci_read_config_dword((d)->imc[mc].chan[ch].cdev,	\
ch                353 drivers/firmware/arm_scpi.c static void scpi_process_cmd(struct scpi_chan *ch, u32 cmd)
ch                358 drivers/firmware/arm_scpi.c 	spin_lock_irqsave(&ch->rx_lock, flags);
ch                359 drivers/firmware/arm_scpi.c 	if (list_empty(&ch->rx_pending)) {
ch                360 drivers/firmware/arm_scpi.c 		spin_unlock_irqrestore(&ch->rx_lock, flags);
ch                369 drivers/firmware/arm_scpi.c 		match = list_first_entry(&ch->rx_pending, struct scpi_xfer,
ch                373 drivers/firmware/arm_scpi.c 		list_for_each_entry(t, &ch->rx_pending, node)
ch                386 drivers/firmware/arm_scpi.c 							ch->rx_payload;
ch                394 drivers/firmware/arm_scpi.c 			struct scpi_shared_mem __iomem *mem = ch->rx_payload;
ch                406 drivers/firmware/arm_scpi.c 	spin_unlock_irqrestore(&ch->rx_lock, flags);
ch                411 drivers/firmware/arm_scpi.c 	struct scpi_chan *ch = container_of(c, struct scpi_chan, cl);
ch                412 drivers/firmware/arm_scpi.c 	struct scpi_shared_mem __iomem *mem = ch->rx_payload;
ch                418 drivers/firmware/arm_scpi.c 	scpi_process_cmd(ch, cmd);
ch                425 drivers/firmware/arm_scpi.c 	struct scpi_chan *ch = container_of(c, struct scpi_chan, cl);
ch                426 drivers/firmware/arm_scpi.c 	struct scpi_shared_mem __iomem *mem = ch->tx_payload;
ch                430 drivers/firmware/arm_scpi.c 			memcpy_toio(ch->tx_payload, t->tx_buf, t->tx_len);
ch                436 drivers/firmware/arm_scpi.c 		if (!(++ch->token))
ch                437 drivers/firmware/arm_scpi.c 			++ch->token;
ch                438 drivers/firmware/arm_scpi.c 		t->cmd |= FIELD_PREP(CMD_TOKEN_ID_MASK, ch->token);
ch                439 drivers/firmware/arm_scpi.c 		spin_lock_irqsave(&ch->rx_lock, flags);
ch                440 drivers/firmware/arm_scpi.c 		list_add_tail(&t->node, &ch->rx_pending);
ch                441 drivers/firmware/arm_scpi.c 		spin_unlock_irqrestore(&ch->rx_lock, flags);
ch                448 drivers/firmware/arm_scpi.c static struct scpi_xfer *get_scpi_xfer(struct scpi_chan *ch)
ch                452 drivers/firmware/arm_scpi.c 	mutex_lock(&ch->xfers_lock);
ch                453 drivers/firmware/arm_scpi.c 	if (list_empty(&ch->xfers_list)) {
ch                454 drivers/firmware/arm_scpi.c 		mutex_unlock(&ch->xfers_lock);
ch                457 drivers/firmware/arm_scpi.c 	t = list_first_entry(&ch->xfers_list, struct scpi_xfer, node);
ch                459 drivers/firmware/arm_scpi.c 	mutex_unlock(&ch->xfers_lock);
ch                463 drivers/firmware/arm_scpi.c static void put_scpi_xfer(struct scpi_xfer *t, struct scpi_chan *ch)
ch                465 drivers/firmware/arm_scpi.c 	mutex_lock(&ch->xfers_lock);
ch                466 drivers/firmware/arm_scpi.c 	list_add_tail(&t->node, &ch->xfers_list);
ch                467 drivers/firmware/arm_scpi.c 	mutex_unlock(&ch->xfers_lock);
ch                877 drivers/firmware/arm_scpi.c static int scpi_alloc_xfer_list(struct device *dev, struct scpi_chan *ch)
ch                886 drivers/firmware/arm_scpi.c 	ch->xfers = xfers;
ch                889 drivers/firmware/arm_scpi.c 		list_add_tail(&xfers->node, &ch->xfers_list);
ch                 61 drivers/firmware/efi/libstub/efi-stub-helper.c 		efi_char16_t ch[2] = { 0 };
ch                 63 drivers/firmware/efi/libstub/efi-stub-helper.c 		ch[0] = *s8;
ch                 69 drivers/firmware/efi/libstub/efi-stub-helper.c 		efi_char16_printk(sys_table_arg, ch);
ch                 34 drivers/firmware/imx/imx-dsp.c 	ret = mbox_send_message(dsp_chan->ch, NULL);
ch                 97 drivers/firmware/imx/imx-dsp.c 		dsp_chan->ch = mbox_request_channel_byname(cl, chan_name);
ch                 98 drivers/firmware/imx/imx-dsp.c 		if (IS_ERR(dsp_chan->ch)) {
ch                 99 drivers/firmware/imx/imx-dsp.c 			ret = PTR_ERR(dsp_chan->ch);
ch                122 drivers/firmware/imx/imx-dsp.c 		mbox_free_channel(dsp_chan->ch);
ch                138 drivers/firmware/imx/imx-dsp.c 		mbox_free_channel(dsp_chan->ch);
ch                134 drivers/firmware/imx/imx-scu-irq.c 	struct mbox_chan *ch;
ch                149 drivers/firmware/imx/imx-scu-irq.c 	ch = mbox_request_channel_byname(cl, "gip3");
ch                150 drivers/firmware/imx/imx-scu-irq.c 	if (IS_ERR(ch)) {
ch                151 drivers/firmware/imx/imx-scu-irq.c 		ret = PTR_ERR(ch);
ch                 30 drivers/firmware/imx/imx-scu.c 	struct mbox_chan *ch;
ch                193 drivers/firmware/imx/imx-scu.c 		ret = mbox_send_message(sc_chan->ch, &data[i]);
ch                297 drivers/firmware/imx/imx-scu.c 		sc_chan->ch = mbox_request_channel_byname(cl, chan_name);
ch                298 drivers/firmware/imx/imx-scu.c 		if (IS_ERR(sc_chan->ch)) {
ch                299 drivers/firmware/imx/imx-scu.c 			ret = PTR_ERR(sc_chan->ch);
ch                 25 drivers/firmware/tegra/bpmp-tegra210.c #define CH_MASK(ch)	(0x3 << ((ch) * 2))
ch                 26 drivers/firmware/tegra/bpmp-tegra210.c #define SL_SIGL(ch)	(0x0 << ((ch) * 2))
ch                 27 drivers/firmware/tegra/bpmp-tegra210.c #define SL_QUED(ch)	(0x1 << ((ch) * 2))
ch                 28 drivers/firmware/tegra/bpmp-tegra210.c #define MA_FREE(ch)	(0x2 << ((ch) * 2))
ch                 29 drivers/firmware/tegra/bpmp-tegra210.c #define MA_ACKD(ch)	(0x3 << ((ch) * 2))
ch                 85 drivers/gpio/gpio-ml-ioh.c 	int ch;
ch                 99 drivers/gpio/gpio-ml-ioh.c 	reg_val = ioread32(&chip->reg->regs[chip->ch].po);
ch                105 drivers/gpio/gpio-ml-ioh.c 	iowrite32(reg_val, &chip->reg->regs[chip->ch].po);
ch                113 drivers/gpio/gpio-ml-ioh.c 	return !!(ioread32(&chip->reg->regs[chip->ch].pi) & (1 << nr));
ch                125 drivers/gpio/gpio-ml-ioh.c 	pm = ioread32(&chip->reg->regs[chip->ch].pm) &
ch                126 drivers/gpio/gpio-ml-ioh.c 					((1 << num_ports[chip->ch]) - 1);
ch                128 drivers/gpio/gpio-ml-ioh.c 	iowrite32(pm, &chip->reg->regs[chip->ch].pm);
ch                130 drivers/gpio/gpio-ml-ioh.c 	reg_val = ioread32(&chip->reg->regs[chip->ch].po);
ch                135 drivers/gpio/gpio-ml-ioh.c 	iowrite32(reg_val, &chip->reg->regs[chip->ch].po);
ch                149 drivers/gpio/gpio-ml-ioh.c 	pm = ioread32(&chip->reg->regs[chip->ch].pm) &
ch                150 drivers/gpio/gpio-ml-ioh.c 				((1 << num_ports[chip->ch]) - 1);
ch                152 drivers/gpio/gpio-ml-ioh.c 	iowrite32(pm, &chip->reg->regs[chip->ch].pm);
ch                168 drivers/gpio/gpio-ml-ioh.c 					ioread32(&chip->reg->regs[chip->ch].po);
ch                170 drivers/gpio/gpio-ml-ioh.c 					ioread32(&chip->reg->regs[chip->ch].pm);
ch                172 drivers/gpio/gpio-ml-ioh.c 				       ioread32(&chip->reg->regs[chip->ch].ien);
ch                174 drivers/gpio/gpio-ml-ioh.c 				     ioread32(&chip->reg->regs[chip->ch].imask);
ch                176 drivers/gpio/gpio-ml-ioh.c 				      ioread32(&chip->reg->regs[chip->ch].im_0);
ch                178 drivers/gpio/gpio-ml-ioh.c 				      ioread32(&chip->reg->regs[chip->ch].im_1);
ch                194 drivers/gpio/gpio-ml-ioh.c 			  &chip->reg->regs[chip->ch].po);
ch                196 drivers/gpio/gpio-ml-ioh.c 			  &chip->reg->regs[chip->ch].pm);
ch                198 drivers/gpio/gpio-ml-ioh.c 			  &chip->reg->regs[chip->ch].ien);
ch                200 drivers/gpio/gpio-ml-ioh.c 			  &chip->reg->regs[chip->ch].imask);
ch                202 drivers/gpio/gpio-ml-ioh.c 			  &chip->reg->regs[chip->ch].im_0);
ch                204 drivers/gpio/gpio-ml-ioh.c 			  &chip->reg->regs[chip->ch].im_1);
ch                241 drivers/gpio/gpio-ml-ioh.c 	int ch;
ch                248 drivers/gpio/gpio-ml-ioh.c 	ch = irq - chip->irq_base;
ch                250 drivers/gpio/gpio-ml-ioh.c 		im_reg = &chip->reg->regs[chip->ch].im_0;
ch                251 drivers/gpio/gpio-ml-ioh.c 		im_pos = ch;
ch                253 drivers/gpio/gpio-ml-ioh.c 		im_reg = &chip->reg->regs[chip->ch].im_1;
ch                254 drivers/gpio/gpio-ml-ioh.c 		im_pos = ch - 8;
ch                257 drivers/gpio/gpio-ml-ioh.c 		__func__, irq, type, ch, im_pos, type);
ch                290 drivers/gpio/gpio-ml-ioh.c 	iowrite32(BIT(ch), &chip->reg->regs[chip->ch].iclr);
ch                293 drivers/gpio/gpio-ml-ioh.c 	iowrite32(BIT(ch), &chip->reg->regs[chip->ch].imaskclr);
ch                296 drivers/gpio/gpio-ml-ioh.c 	ien = ioread32(&chip->reg->regs[chip->ch].ien);
ch                297 drivers/gpio/gpio-ml-ioh.c 	iowrite32(ien | BIT(ch), &chip->reg->regs[chip->ch].ien);
ch                310 drivers/gpio/gpio-ml-ioh.c 		  &chip->reg->regs[chip->ch].imaskclr);
ch                319 drivers/gpio/gpio-ml-ioh.c 		  &chip->reg->regs[chip->ch].imask);
ch                330 drivers/gpio/gpio-ml-ioh.c 	ien = ioread32(&chip->reg->regs[chip->ch].ien);
ch                332 drivers/gpio/gpio-ml-ioh.c 	iowrite32(ien, &chip->reg->regs[chip->ch].ien);
ch                344 drivers/gpio/gpio-ml-ioh.c 	ien = ioread32(&chip->reg->regs[chip->ch].ien);
ch                346 drivers/gpio/gpio-ml-ioh.c 	iowrite32(ien, &chip->reg->regs[chip->ch].ien);
ch                365 drivers/gpio/gpio-ml-ioh.c 					  &chip->reg->regs[chip->ch].iclr);
ch                443 drivers/gpio/gpio-ml-ioh.c 		chip->ch = i;
ch                226 drivers/gpio/gpio-pch.c 	int ch, irq = d->irq;
ch                228 drivers/gpio/gpio-pch.c 	ch = irq - chip->irq_base;
ch                231 drivers/gpio/gpio-pch.c 		im_pos = ch;
ch                234 drivers/gpio/gpio-pch.c 		im_pos = ch - 8;
ch                236 drivers/gpio/gpio-pch.c 	dev_dbg(chip->dev, "irq=%d type=%d ch=%d pos=%d\n", irq, type, ch, im_pos);
ch                 59 drivers/gpu/drm/ast/ast_post.c 	u8 ch;
ch                 64 drivers/gpu/drm/ast/ast_post.c 		ch = ast_io_read8(ast, AST_IO_VGA_ENABLE_PORT);
ch                 65 drivers/gpu/drm/ast/ast_post.c 		return !!(ch & 0x01);
ch                213 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	unsigned ch, i, j;
ch                219 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	for (ch = 0; ch < 8; ch++) {
ch                221 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 		cs[2] |= (ch + 1) << 4;
ch                227 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 				dw->cs[i * 8 + j][ch] = (c & 1) << 2;
ch                254 drivers/gpu/drm/gma500/psb_intel_sdvo.c static bool psb_intel_sdvo_read_byte(struct psb_intel_sdvo *psb_intel_sdvo, u8 addr, u8 *ch)
ch                267 drivers/gpu/drm/gma500/psb_intel_sdvo.c 			.buf = ch,
ch                348 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c static void ade_rdma_dump_regs(void __iomem *base, u32 ch)
ch                353 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	reg_ctrl = RD_CH_CTRL(ch);
ch                354 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	reg_addr = RD_CH_ADDR(ch);
ch                355 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	reg_size = RD_CH_SIZE(ch);
ch                356 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	reg_stride = RD_CH_STRIDE(ch);
ch                357 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	reg_space = RD_CH_SPACE(ch);
ch                358 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	reg_en = RD_CH_EN(ch);
ch                360 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	val = ade_read_reload_bit(base, RDMA_OFST + ch);
ch                361 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	DRM_DEBUG_DRIVER("[rdma%d]: reload(%d)\n", ch + 1, val);
ch                363 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	DRM_DEBUG_DRIVER("[rdma%d]: reg_ctrl(0x%08x)\n", ch + 1, val);
ch                365 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	DRM_DEBUG_DRIVER("[rdma%d]: reg_addr(0x%08x)\n", ch + 1, val);
ch                367 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	DRM_DEBUG_DRIVER("[rdma%d]: reg_size(0x%08x)\n", ch + 1, val);
ch                369 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	DRM_DEBUG_DRIVER("[rdma%d]: reg_stride(0x%08x)\n", ch + 1, val);
ch                371 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	DRM_DEBUG_DRIVER("[rdma%d]: reg_space(0x%08x)\n", ch + 1, val);
ch                373 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	DRM_DEBUG_DRIVER("[rdma%d]: reg_en(0x%08x)\n", ch + 1, val);
ch                376 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c static void ade_clip_dump_regs(void __iomem *base, u32 ch)
ch                380 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	val = ade_read_reload_bit(base, CLIP_OFST + ch);
ch                381 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	DRM_DEBUG_DRIVER("[clip%d]: reload(%d)\n", ch + 1, val);
ch                382 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	val = readl(base + ADE_CLIP_DISABLE(ch));
ch                383 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	DRM_DEBUG_DRIVER("[clip%d]: reg_clip_disable(0x%08x)\n", ch + 1, val);
ch                384 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	val = readl(base + ADE_CLIP_SIZE0(ch));
ch                385 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	DRM_DEBUG_DRIVER("[clip%d]: reg_clip_size0(0x%08x)\n", ch + 1, val);
ch                386 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	val = readl(base + ADE_CLIP_SIZE1(ch));
ch                387 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	DRM_DEBUG_DRIVER("[clip%d]: reg_clip_size1(0x%08x)\n", ch + 1, val);
ch                390 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c static void ade_compositor_routing_dump_regs(void __iomem *base, u32 ch)
ch                549 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 			 u32 ch, u32 y, u32 in_h, u32 fmt)
ch                558 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 			 ch + 1, y, in_h, stride, (u32)obj->paddr);
ch                564 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	reg_ctrl = RD_CH_CTRL(ch);
ch                565 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	reg_addr = RD_CH_ADDR(ch);
ch                566 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	reg_size = RD_CH_SIZE(ch);
ch                567 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	reg_stride = RD_CH_STRIDE(ch);
ch                568 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	reg_space = RD_CH_SPACE(ch);
ch                569 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	reg_en = RD_CH_EN(ch);
ch                580 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	ade_update_reload_bit(base, RDMA_OFST + ch, 0);
ch                583 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c static void ade_rdma_disable(void __iomem *base, u32 ch)
ch                588 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	reg_en = RD_CH_EN(ch);
ch                590 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	ade_update_reload_bit(base, RDMA_OFST + ch, 1);
ch                593 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c static void ade_clip_set(void __iomem *base, u32 ch, u32 fb_w, u32 x,
ch                614 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 			 ch + 1, clip_left, clip_right);
ch                616 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	writel(disable_val, base + ADE_CLIP_DISABLE(ch));
ch                617 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	writel((fb_w - 1) << 16 | (in_h - 1), base + ADE_CLIP_SIZE0(ch));
ch                618 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	writel(clip_left << 16 | clip_right, base + ADE_CLIP_SIZE1(ch));
ch                619 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	ade_update_reload_bit(base, CLIP_OFST + ch, 0);
ch                622 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c static void ade_clip_disable(void __iomem *base, u32 ch)
ch                624 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	writel(1, base + ADE_CLIP_DISABLE(ch));
ch                625 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	ade_update_reload_bit(base, CLIP_OFST + ch, 1);
ch                663 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c static void ade_compositor_routing_set(void __iomem *base, u8 ch,
ch                683 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	val = (ch + 1) << CH_SEL_OFST | BIT(CH_EN_OFST) |
ch                694 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c static void ade_compositor_routing_disable(void __iomem *base, u32 ch)
ch                718 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	u32 ch = kplane->ch;
ch                723 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 			 ch + 1, src_x, src_y, src_w, src_h,
ch                729 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	ade_rdma_set(base, fb, ch, src_y, in_h, fmt);
ch                732 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	ade_clip_set(base, ch, fb->width, src_x, in_w, in_h);
ch                739 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	ade_compositor_routing_set(base, ch, crtc_x, crtc_y, in_w, in_h, fmt);
ch                746 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	u32 ch = kplane->ch;
ch                748 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	DRM_DEBUG_DRIVER("disable channel%d\n", ch + 1);
ch                751 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	ade_rdma_disable(base, ch);
ch                754 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	ade_clip_disable(base, ch);
ch                757 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c 	ade_compositor_routing_disable(base, ch);
ch                112 drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c 	u32 ch;
ch                132 drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c 	for (ch = 0; ch < driver_data->num_planes; ch++) {
ch                133 drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c 		if (ch == driver_data->prim_plane)
ch                137 drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c 		ret = kirin_drm_plane_init(dev, &kirin_priv->planes[ch].base,
ch                141 drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c 		kirin_priv->planes[ch].ch = ch;
ch                142 drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c 		kirin_priv->planes[ch].hw_ctx = ctx;
ch                 31 drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.h 	u32 ch;
ch                136 drivers/gpu/drm/i915/display/dvo_ch7xxx.c static bool ch7xxx_readb(struct intel_dvo_device *dvo, int addr, u8 *ch)
ch                162 drivers/gpu/drm/i915/display/dvo_ch7xxx.c 		*ch = in_buf[0];
ch                174 drivers/gpu/drm/i915/display/dvo_ch7xxx.c static bool ch7xxx_writeb(struct intel_dvo_device *dvo, int addr, u8 ch)
ch                187 drivers/gpu/drm/i915/display/dvo_ch7xxx.c 	out_buf[1] = ch;
ch                393 drivers/gpu/drm/i915/display/dvo_ns2501.c static bool ns2501_readb(struct intel_dvo_device *dvo, int addr, u8 *ch)
ch                419 drivers/gpu/drm/i915/display/dvo_ns2501.c 		*ch = in_buf[0];
ch                438 drivers/gpu/drm/i915/display/dvo_ns2501.c static bool ns2501_writeb(struct intel_dvo_device *dvo, int addr, u8 ch)
ch                452 drivers/gpu/drm/i915/display/dvo_ns2501.c 	out_buf[1] = ch;
ch                477 drivers/gpu/drm/i915/display/dvo_ns2501.c 	unsigned char ch;
ch                487 drivers/gpu/drm/i915/display/dvo_ns2501.c 	if (!ns2501_readb(dvo, NS2501_VID_LO, &ch))
ch                490 drivers/gpu/drm/i915/display/dvo_ns2501.c 	if (ch != (NS2501_VID & 0xff)) {
ch                492 drivers/gpu/drm/i915/display/dvo_ns2501.c 			      ch, adapter->name, dvo->slave_addr);
ch                496 drivers/gpu/drm/i915/display/dvo_ns2501.c 	if (!ns2501_readb(dvo, NS2501_DID_LO, &ch))
ch                499 drivers/gpu/drm/i915/display/dvo_ns2501.c 	if (ch != (NS2501_DID & 0xff)) {
ch                501 drivers/gpu/drm/i915/display/dvo_ns2501.c 			      ch, adapter->name, dvo->slave_addr);
ch                647 drivers/gpu/drm/i915/display/dvo_ns2501.c 	unsigned char ch;
ch                649 drivers/gpu/drm/i915/display/dvo_ns2501.c 	if (!ns2501_readb(dvo, NS2501_REG8, &ch))
ch                652 drivers/gpu/drm/i915/display/dvo_ns2501.c 	return ch & NS2501_8_PD;
ch                 69 drivers/gpu/drm/i915/display/dvo_sil164.c static bool sil164_readb(struct intel_dvo_device *dvo, int addr, u8 *ch)
ch                 95 drivers/gpu/drm/i915/display/dvo_sil164.c 		*ch = in_buf[0];
ch                106 drivers/gpu/drm/i915/display/dvo_sil164.c static bool sil164_writeb(struct intel_dvo_device *dvo, int addr, u8 ch)
ch                119 drivers/gpu/drm/i915/display/dvo_sil164.c 	out_buf[1] = ch;
ch                138 drivers/gpu/drm/i915/display/dvo_sil164.c 	unsigned char ch;
ch                148 drivers/gpu/drm/i915/display/dvo_sil164.c 	if (!sil164_readb(dvo, SIL164_VID_LO, &ch))
ch                151 drivers/gpu/drm/i915/display/dvo_sil164.c 	if (ch != (SIL164_VID & 0xff)) {
ch                153 drivers/gpu/drm/i915/display/dvo_sil164.c 			  ch, adapter->name, dvo->slave_addr);
ch                157 drivers/gpu/drm/i915/display/dvo_sil164.c 	if (!sil164_readb(dvo, SIL164_DID_LO, &ch))
ch                160 drivers/gpu/drm/i915/display/dvo_sil164.c 	if (ch != (SIL164_DID & 0xff)) {
ch                162 drivers/gpu/drm/i915/display/dvo_sil164.c 			  ch, adapter->name, dvo->slave_addr);
ch                215 drivers/gpu/drm/i915/display/dvo_sil164.c 	unsigned char ch;
ch                217 drivers/gpu/drm/i915/display/dvo_sil164.c 	ret = sil164_readb(dvo, SIL164_REG8, &ch);
ch                222 drivers/gpu/drm/i915/display/dvo_sil164.c 		ch |= SIL164_8_PD;
ch                224 drivers/gpu/drm/i915/display/dvo_sil164.c 		ch &= ~SIL164_8_PD;
ch                226 drivers/gpu/drm/i915/display/dvo_sil164.c 	sil164_writeb(dvo, SIL164_REG8, ch);
ch                233 drivers/gpu/drm/i915/display/dvo_sil164.c 	unsigned char ch;
ch                235 drivers/gpu/drm/i915/display/dvo_sil164.c 	ret = sil164_readb(dvo, SIL164_REG8, &ch);
ch                239 drivers/gpu/drm/i915/display/dvo_sil164.c 	if (ch & SIL164_8_PD)
ch                 94 drivers/gpu/drm/i915/display/dvo_tfp410.c static bool tfp410_readb(struct intel_dvo_device *dvo, int addr, u8 *ch)
ch                120 drivers/gpu/drm/i915/display/dvo_tfp410.c 		*ch = in_buf[0];
ch                131 drivers/gpu/drm/i915/display/dvo_tfp410.c static bool tfp410_writeb(struct intel_dvo_device *dvo, int addr, u8 ch)
ch                144 drivers/gpu/drm/i915/display/dvo_tfp410.c 	out_buf[1] = ch;
ch               1486 drivers/gpu/drm/i915/display/intel_display_power.c 				     enum dpio_channel ch, bool override, unsigned int mask)
ch               1501 drivers/gpu/drm/i915/display/intel_display_power.c 	if (ch == DPIO_CH0)
ch               1526 drivers/gpu/drm/i915/display/intel_display_power.c 		if (ch == DPIO_CH1 && val == 0)
ch               1534 drivers/gpu/drm/i915/display/intel_display_power.c 	if (ch == DPIO_CH0)
ch               1548 drivers/gpu/drm/i915/display/intel_display_power.c 			  enum dpio_channel ch, bool override)
ch               1555 drivers/gpu/drm/i915/display/intel_display_power.c 	was_override = dev_priv->chv_phy_control & PHY_CH_POWER_DOWN_OVRD_EN(phy, ch);
ch               1561 drivers/gpu/drm/i915/display/intel_display_power.c 		dev_priv->chv_phy_control |= PHY_CH_POWER_DOWN_OVRD_EN(phy, ch);
ch               1563 drivers/gpu/drm/i915/display/intel_display_power.c 		dev_priv->chv_phy_control &= ~PHY_CH_POWER_DOWN_OVRD_EN(phy, ch);
ch               1568 drivers/gpu/drm/i915/display/intel_display_power.c 		      phy, ch, dev_priv->chv_phy_control);
ch               1584 drivers/gpu/drm/i915/display/intel_display_power.c 	enum dpio_channel ch = vlv_dport_to_channel(enc_to_dig_port(&encoder->base));
ch               1588 drivers/gpu/drm/i915/display/intel_display_power.c 	dev_priv->chv_phy_control &= ~PHY_CH_POWER_DOWN_OVRD(0xf, phy, ch);
ch               1589 drivers/gpu/drm/i915/display/intel_display_power.c 	dev_priv->chv_phy_control |= PHY_CH_POWER_DOWN_OVRD(mask, phy, ch);
ch               1592 drivers/gpu/drm/i915/display/intel_display_power.c 		dev_priv->chv_phy_control |= PHY_CH_POWER_DOWN_OVRD_EN(phy, ch);
ch               1594 drivers/gpu/drm/i915/display/intel_display_power.c 		dev_priv->chv_phy_control &= ~PHY_CH_POWER_DOWN_OVRD_EN(phy, ch);
ch               1599 drivers/gpu/drm/i915/display/intel_display_power.c 		      phy, ch, mask, dev_priv->chv_phy_control);
ch               1603 drivers/gpu/drm/i915/display/intel_display_power.c 	assert_chv_phy_powergate(dev_priv, phy, ch, override, mask);
ch                329 drivers/gpu/drm/i915/display/intel_display_power.h 			  enum dpio_channel ch, bool override);
ch                731 drivers/gpu/drm/i915/display/intel_dp.c 	enum dpio_channel ch = vlv_pipe_to_channel(pipe);
ch                763 drivers/gpu/drm/i915/display/intel_dp.c 			!chv_phy_powergate_ch(dev_priv, phy, ch, true);
ch                792 drivers/gpu/drm/i915/display/intel_dp.c 			chv_phy_powergate_ch(dev_priv, phy, ch, false);
ch                238 drivers/gpu/drm/i915/display/intel_dpio_phy.c 			     enum dpio_phy *phy, enum dpio_channel *ch)
ch                250 drivers/gpu/drm/i915/display/intel_dpio_phy.c 			*ch = DPIO_CH0;
ch                257 drivers/gpu/drm/i915/display/intel_dpio_phy.c 			*ch = DPIO_CH1;
ch                264 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	*ch = DPIO_CH0;
ch                273 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	enum dpio_channel ch;
ch                275 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	bxt_port_to_phy_channel(dev_priv, port, &phy, &ch);
ch                281 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	val = I915_READ(BXT_PORT_PCS_DW10_LN01(phy, ch));
ch                283 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	I915_WRITE(BXT_PORT_PCS_DW10_GRP(phy, ch), val);
ch                285 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	val = I915_READ(BXT_PORT_TX_DW2_LN0(phy, ch));
ch                288 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	I915_WRITE(BXT_PORT_TX_DW2_GRP(phy, ch), val);
ch                290 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	val = I915_READ(BXT_PORT_TX_DW3_LN0(phy, ch));
ch                298 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	I915_WRITE(BXT_PORT_TX_DW3_GRP(phy, ch), val);
ch                300 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	val = I915_READ(BXT_PORT_TX_DW4_LN0(phy, ch));
ch                303 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	I915_WRITE(BXT_PORT_TX_DW4_GRP(phy, ch), val);
ch                305 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	val = I915_READ(BXT_PORT_PCS_DW10_LN01(phy, ch));
ch                307 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	I915_WRITE(BXT_PORT_PCS_DW10_GRP(phy, ch), val);
ch                596 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	enum dpio_channel ch;
ch                599 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	bxt_port_to_phy_channel(dev_priv, port, &phy, &ch);
ch                602 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		u32 val = I915_READ(BXT_PORT_TX_DW14_LN(phy, ch, lane));
ch                612 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		I915_WRITE(BXT_PORT_TX_DW14_LN(phy, ch, lane), val);
ch                622 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	enum dpio_channel ch;
ch                626 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	bxt_port_to_phy_channel(dev_priv, port, &phy, &ch);
ch                630 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		u32 val = I915_READ(BXT_PORT_TX_DW14_LN(phy, ch, lane));
ch                647 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	enum dpio_channel ch = vlv_dport_to_channel(dport);
ch                655 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	val = vlv_dpio_read(dev_priv, pipe, VLV_PCS01_DW10(ch));
ch                659 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	vlv_dpio_write(dev_priv, pipe, VLV_PCS01_DW10(ch), val);
ch                662 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		val = vlv_dpio_read(dev_priv, pipe, VLV_PCS23_DW10(ch));
ch                666 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		vlv_dpio_write(dev_priv, pipe, VLV_PCS23_DW10(ch), val);
ch                669 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	val = vlv_dpio_read(dev_priv, pipe, VLV_PCS01_DW9(ch));
ch                672 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	vlv_dpio_write(dev_priv, pipe, VLV_PCS01_DW9(ch), val);
ch                675 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		val = vlv_dpio_read(dev_priv, pipe, VLV_PCS23_DW9(ch));
ch                678 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		vlv_dpio_write(dev_priv, pipe, VLV_PCS23_DW9(ch), val);
ch                683 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		val = vlv_dpio_read(dev_priv, pipe, CHV_TX_DW4(ch, i));
ch                686 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		vlv_dpio_write(dev_priv, pipe, CHV_TX_DW4(ch, i), val);
ch                691 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		val = vlv_dpio_read(dev_priv, pipe, CHV_TX_DW2(ch, i));
ch                704 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		vlv_dpio_write(dev_priv, pipe, CHV_TX_DW2(ch, i), val);
ch                714 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		val = vlv_dpio_read(dev_priv, pipe, CHV_TX_DW3(ch, i));
ch                719 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		vlv_dpio_write(dev_priv, pipe, CHV_TX_DW3(ch, i), val);
ch                723 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	val = vlv_dpio_read(dev_priv, pipe, VLV_PCS01_DW10(ch));
ch                725 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	vlv_dpio_write(dev_priv, pipe, VLV_PCS01_DW10(ch), val);
ch                728 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		val = vlv_dpio_read(dev_priv, pipe, VLV_PCS23_DW10(ch));
ch                730 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		vlv_dpio_write(dev_priv, pipe, VLV_PCS23_DW10(ch), val);
ch                741 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	enum dpio_channel ch = vlv_dport_to_channel(enc_to_dig_port(&encoder->base));
ch                746 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	val = vlv_dpio_read(dev_priv, pipe, VLV_PCS01_DW0(ch));
ch                751 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	vlv_dpio_write(dev_priv, pipe, VLV_PCS01_DW0(ch), val);
ch                754 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		val = vlv_dpio_read(dev_priv, pipe, VLV_PCS23_DW0(ch));
ch                759 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		vlv_dpio_write(dev_priv, pipe, VLV_PCS23_DW0(ch), val);
ch                762 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	val = vlv_dpio_read(dev_priv, pipe, VLV_PCS01_DW1(ch));
ch                768 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	vlv_dpio_write(dev_priv, pipe, VLV_PCS01_DW1(ch), val);
ch                771 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		val = vlv_dpio_read(dev_priv, pipe, VLV_PCS23_DW1(ch));
ch                777 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		vlv_dpio_write(dev_priv, pipe, VLV_PCS23_DW1(ch), val);
ch                787 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	enum dpio_channel ch = vlv_dport_to_channel(dport);
ch                797 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	if (ch == DPIO_CH0 && pipe == PIPE_B)
ch                812 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		if (ch == DPIO_CH0)
ch                814 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		if (ch == DPIO_CH1)
ch                820 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		if (ch == DPIO_CH0)
ch                822 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		if (ch == DPIO_CH1)
ch                828 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	val = vlv_dpio_read(dev_priv, pipe, VLV_PCS01_DW8(ch));
ch                834 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	vlv_dpio_write(dev_priv, pipe, VLV_PCS01_DW8(ch), val);
ch                837 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		val = vlv_dpio_read(dev_priv, pipe, VLV_PCS23_DW8(ch));
ch                843 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		vlv_dpio_write(dev_priv, pipe, VLV_PCS23_DW8(ch), val);
ch                851 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	val = vlv_dpio_read(dev_priv, pipe, CHV_CMN_DW19(ch));
ch                856 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	vlv_dpio_write(dev_priv, pipe, CHV_CMN_DW19(ch), val);
ch                868 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	enum dpio_channel ch = vlv_dport_to_channel(dport);
ch                876 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	val = vlv_dpio_read(dev_priv, pipe, VLV_PCS01_DW11(ch));
ch                878 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	vlv_dpio_write(dev_priv, pipe, VLV_PCS01_DW11(ch), val);
ch                881 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		val = vlv_dpio_read(dev_priv, pipe, VLV_PCS23_DW11(ch));
ch                883 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		vlv_dpio_write(dev_priv, pipe, VLV_PCS23_DW11(ch), val);
ch                893 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		vlv_dpio_write(dev_priv, pipe, CHV_TX_DW14(ch, i),
ch                909 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	val = vlv_dpio_read(dev_priv, pipe, VLV_PCS01_DW11(ch));
ch                911 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	vlv_dpio_write(dev_priv, pipe, VLV_PCS01_DW11(ch), val);
ch                914 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		val = vlv_dpio_read(dev_priv, pipe, VLV_PCS23_DW11(ch));
ch                916 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		vlv_dpio_write(dev_priv, pipe, VLV_PCS23_DW11(ch), val);
ch                919 drivers/gpu/drm/i915/display/intel_dpio_phy.c 	vlv_dpio_write(dev_priv, pipe, VLV_PCS01_DW12(ch),
ch                927 drivers/gpu/drm/i915/display/intel_dpio_phy.c 		vlv_dpio_write(dev_priv, pipe, VLV_PCS23_DW12(ch),
ch                 19 drivers/gpu/drm/i915/display/intel_dpio_phy.h 			     enum dpio_phy *phy, enum dpio_channel *ch);
ch               1511 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	enum dpio_channel ch;
ch               1513 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	bxt_port_to_phy_channel(dev_priv, port, &phy, &ch);
ch               1531 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	temp = I915_READ(BXT_PORT_PLL_EBB_4(phy, ch));
ch               1533 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	I915_WRITE(BXT_PORT_PLL_EBB_4(phy, ch), temp);
ch               1536 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	temp = I915_READ(BXT_PORT_PLL_EBB_0(phy, ch));
ch               1539 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	I915_WRITE(BXT_PORT_PLL_EBB_0(phy, ch), temp);
ch               1542 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	temp = I915_READ(BXT_PORT_PLL(phy, ch, 0));
ch               1545 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	I915_WRITE(BXT_PORT_PLL(phy, ch, 0), temp);
ch               1548 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	temp = I915_READ(BXT_PORT_PLL(phy, ch, 1));
ch               1551 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	I915_WRITE(BXT_PORT_PLL(phy, ch, 1), temp);
ch               1554 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	temp = I915_READ(BXT_PORT_PLL(phy, ch, 2));
ch               1557 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	I915_WRITE(BXT_PORT_PLL(phy, ch, 2), temp);
ch               1560 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	temp = I915_READ(BXT_PORT_PLL(phy, ch, 3));
ch               1563 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	I915_WRITE(BXT_PORT_PLL(phy, ch, 3), temp);
ch               1566 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	temp = I915_READ(BXT_PORT_PLL(phy, ch, 6));
ch               1571 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	I915_WRITE(BXT_PORT_PLL(phy, ch, 6), temp);
ch               1574 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	temp = I915_READ(BXT_PORT_PLL(phy, ch, 8));
ch               1577 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	I915_WRITE(BXT_PORT_PLL(phy, ch, 8), temp);
ch               1579 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	temp = I915_READ(BXT_PORT_PLL(phy, ch, 9));
ch               1582 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	I915_WRITE(BXT_PORT_PLL(phy, ch, 9), temp);
ch               1584 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	temp = I915_READ(BXT_PORT_PLL(phy, ch, 10));
ch               1588 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	I915_WRITE(BXT_PORT_PLL(phy, ch, 10), temp);
ch               1591 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	temp = I915_READ(BXT_PORT_PLL_EBB_4(phy, ch));
ch               1593 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	I915_WRITE(BXT_PORT_PLL_EBB_4(phy, ch), temp);
ch               1596 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	I915_WRITE(BXT_PORT_PLL_EBB_4(phy, ch), temp);
ch               1609 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 		temp = I915_READ(BXT_PORT_TX_DW5_LN0(phy, ch));
ch               1611 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 		I915_WRITE(BXT_PORT_TX_DW5_GRP(phy, ch), temp);
ch               1618 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	temp = I915_READ(BXT_PORT_PCS_DW12_LN01(phy, ch));
ch               1622 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	I915_WRITE(BXT_PORT_PCS_DW12_GRP(phy, ch), temp);
ch               1654 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	enum dpio_channel ch;
ch               1658 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	bxt_port_to_phy_channel(dev_priv, port, &phy, &ch);
ch               1671 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	hw_state->ebb0 = I915_READ(BXT_PORT_PLL_EBB_0(phy, ch));
ch               1674 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	hw_state->ebb4 = I915_READ(BXT_PORT_PLL_EBB_4(phy, ch));
ch               1677 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	hw_state->pll0 = I915_READ(BXT_PORT_PLL(phy, ch, 0));
ch               1680 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	hw_state->pll1 = I915_READ(BXT_PORT_PLL(phy, ch, 1));
ch               1683 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	hw_state->pll2 = I915_READ(BXT_PORT_PLL(phy, ch, 2));
ch               1686 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	hw_state->pll3 = I915_READ(BXT_PORT_PLL(phy, ch, 3));
ch               1689 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	hw_state->pll6 = I915_READ(BXT_PORT_PLL(phy, ch, 6));
ch               1694 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	hw_state->pll8 = I915_READ(BXT_PORT_PLL(phy, ch, 8));
ch               1697 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	hw_state->pll9 = I915_READ(BXT_PORT_PLL(phy, ch, 9));
ch               1700 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	hw_state->pll10 = I915_READ(BXT_PORT_PLL(phy, ch, 10));
ch               1709 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	hw_state->pcsdw12 = I915_READ(BXT_PORT_PCS_DW12_LN01(phy, ch));
ch               1710 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 	if (I915_READ(BXT_PORT_PCS_DW12_LN23(phy, ch)) != hw_state->pcsdw12)
ch               1713 drivers/gpu/drm/i915/display/intel_dpll_mgr.c 				 I915_READ(BXT_PORT_PCS_DW12_LN23(phy, ch)));
ch                252 drivers/gpu/drm/i915/display/intel_sdvo.c static bool intel_sdvo_read_byte(struct intel_sdvo *intel_sdvo, u8 addr, u8 *ch)
ch                265 drivers/gpu/drm/i915/display/intel_sdvo.c 			.buf = ch,
ch                837 drivers/gpu/drm/i915/i915_drv.c 			  struct dram_channel_info *ch,
ch                840 drivers/gpu/drm/i915/i915_drv.c 	skl_dram_get_dimm_info(dev_priv, &ch->dimm_l,
ch                842 drivers/gpu/drm/i915/i915_drv.c 	skl_dram_get_dimm_info(dev_priv, &ch->dimm_s,
ch                845 drivers/gpu/drm/i915/i915_drv.c 	if (ch->dimm_l.size == 0 && ch->dimm_s.size == 0) {
ch                850 drivers/gpu/drm/i915/i915_drv.c 	if (ch->dimm_l.ranks == 2 || ch->dimm_s.ranks == 2)
ch                851 drivers/gpu/drm/i915/i915_drv.c 		ch->ranks = 2;
ch                852 drivers/gpu/drm/i915/i915_drv.c 	else if (ch->dimm_l.ranks == 1 && ch->dimm_s.ranks == 1)
ch                853 drivers/gpu/drm/i915/i915_drv.c 		ch->ranks = 2;
ch                855 drivers/gpu/drm/i915/i915_drv.c 		ch->ranks = 1;
ch                857 drivers/gpu/drm/i915/i915_drv.c 	ch->is_16gb_dimm =
ch                858 drivers/gpu/drm/i915/i915_drv.c 		skl_is_16gb_dimm(&ch->dimm_l) ||
ch                859 drivers/gpu/drm/i915/i915_drv.c 		skl_is_16gb_dimm(&ch->dimm_s);
ch                862 drivers/gpu/drm/i915/i915_drv.c 		      channel, ch->ranks, yesno(ch->is_16gb_dimm));
ch               1292 drivers/gpu/drm/i915/i915_reg.h #define VLV_PLL_DW3(ch) _PIPE(ch, _VLV_PLL_DW3_CH0, _VLV_PLL_DW3_CH1)
ch               1303 drivers/gpu/drm/i915/i915_reg.h #define VLV_PLL_DW5(ch) _PIPE(ch, _VLV_PLL_DW5_CH0, _VLV_PLL_DW5_CH1)
ch               1307 drivers/gpu/drm/i915/i915_reg.h #define VLV_PLL_DW7(ch) _PIPE(ch, _VLV_PLL_DW7_CH0, _VLV_PLL_DW7_CH1)
ch               1311 drivers/gpu/drm/i915/i915_reg.h #define VLV_PLL_DW8(ch) _PIPE(ch, _VLV_PLL_DW8_CH0, _VLV_PLL_DW8_CH1)
ch               1316 drivers/gpu/drm/i915/i915_reg.h #define VLV_PLL_DW9(ch) _PIPE(ch, _VLV_PLL_DW9_CH0, _VLV_PLL_DW9_CH1)
ch               1320 drivers/gpu/drm/i915/i915_reg.h #define VLV_PLL_DW10(ch) _PIPE(ch, _VLV_PLL_DW10_CH0, _VLV_PLL_DW10_CH1)
ch               1324 drivers/gpu/drm/i915/i915_reg.h #define VLV_PLL_DW11(ch) _PIPE(ch, _VLV_PLL_DW11_CH0, _VLV_PLL_DW11_CH1)
ch               1341 drivers/gpu/drm/i915/i915_reg.h #define VLV_PCS_DW0(ch) _PORT(ch, _VLV_PCS_DW0_CH0, _VLV_PCS_DW0_CH1)
ch               1347 drivers/gpu/drm/i915/i915_reg.h #define VLV_PCS01_DW0(ch) _PORT(ch, _VLV_PCS01_DW0_CH0, _VLV_PCS01_DW0_CH1)
ch               1348 drivers/gpu/drm/i915/i915_reg.h #define VLV_PCS23_DW0(ch) _PORT(ch, _VLV_PCS23_DW0_CH0, _VLV_PCS23_DW0_CH1)
ch               1357 drivers/gpu/drm/i915/i915_reg.h #define VLV_PCS_DW1(ch) _PORT(ch, _VLV_PCS_DW1_CH0, _VLV_PCS_DW1_CH1)
ch               1363 drivers/gpu/drm/i915/i915_reg.h #define VLV_PCS01_DW1(ch) _PORT(ch, _VLV_PCS01_DW1_CH0, _VLV_PCS01_DW1_CH1)
ch               1364 drivers/gpu/drm/i915/i915_reg.h #define VLV_PCS23_DW1(ch) _PORT(ch, _VLV_PCS23_DW1_CH0, _VLV_PCS23_DW1_CH1)
ch               1370 drivers/gpu/drm/i915/i915_reg.h #define VLV_PCS_DW8(ch) _PORT(ch, _VLV_PCS_DW8_CH0, _VLV_PCS_DW8_CH1)
ch               1387 drivers/gpu/drm/i915/i915_reg.h #define	VLV_PCS_DW9(ch) _PORT(ch, _VLV_PCS_DW9_CH0, _VLV_PCS_DW9_CH1)
ch               1393 drivers/gpu/drm/i915/i915_reg.h #define VLV_PCS01_DW9(ch) _PORT(ch, _VLV_PCS01_DW9_CH0, _VLV_PCS01_DW9_CH1)
ch               1394 drivers/gpu/drm/i915/i915_reg.h #define VLV_PCS23_DW9(ch) _PORT(ch, _VLV_PCS23_DW9_CH0, _VLV_PCS23_DW9_CH1)
ch               1406 drivers/gpu/drm/i915/i915_reg.h #define CHV_PCS_DW10(ch) _PORT(ch, _CHV_PCS_DW10_CH0, _CHV_PCS_DW10_CH1)
ch               1421 drivers/gpu/drm/i915/i915_reg.h #define VLV_PCS_DW11(ch) _PORT(ch, _VLV_PCS_DW11_CH0, _VLV_PCS_DW11_CH1)
ch               1427 drivers/gpu/drm/i915/i915_reg.h #define VLV_PCS01_DW11(ch) _PORT(ch, _VLV_PCS01_DW11_CH0, _VLV_PCS01_DW11_CH1)
ch               1428 drivers/gpu/drm/i915/i915_reg.h #define VLV_PCS23_DW11(ch) _PORT(ch, _VLV_PCS23_DW11_CH0, _VLV_PCS23_DW11_CH1)
ch               1434 drivers/gpu/drm/i915/i915_reg.h #define VLV_PCS01_DW12(ch) _PORT(ch, _VLV_PCS01_DW12_CH0, _VLV_PCS01_DW12_CH1)
ch               1435 drivers/gpu/drm/i915/i915_reg.h #define VLV_PCS23_DW12(ch) _PORT(ch, _VLV_PCS23_DW12_CH0, _VLV_PCS23_DW12_CH1)
ch               1444 drivers/gpu/drm/i915/i915_reg.h #define VLV_PCS_DW12(ch) _PORT(ch, _VLV_PCS_DW12_CH0, _VLV_PCS_DW12_CH1)
ch               1448 drivers/gpu/drm/i915/i915_reg.h #define	VLV_PCS_DW14(ch) _PORT(ch, _VLV_PCS_DW14_CH0, _VLV_PCS_DW14_CH1)
ch               1452 drivers/gpu/drm/i915/i915_reg.h #define VLV_PCS_DW23(ch) _PORT(ch, _VLV_PCS_DW23_CH0, _VLV_PCS_DW23_CH1)
ch               1459 drivers/gpu/drm/i915/i915_reg.h #define VLV_TX_DW2(ch) _PORT(ch, _VLV_TX_DW2_CH0, _VLV_TX_DW2_CH1)
ch               1467 drivers/gpu/drm/i915/i915_reg.h #define VLV_TX_DW3(ch) _PORT(ch, _VLV_TX_DW3_CH0, _VLV_TX_DW3_CH1)
ch               1475 drivers/gpu/drm/i915/i915_reg.h #define VLV_TX_DW4(ch) _PORT(ch, _VLV_TX_DW4_CH0, _VLV_TX_DW4_CH1)
ch               1479 drivers/gpu/drm/i915/i915_reg.h #define VLV_TX3_DW4(ch) _PORT(ch, _VLV_TX3_DW4_CH0, _VLV_TX3_DW4_CH1)
ch               1484 drivers/gpu/drm/i915/i915_reg.h #define VLV_TX_DW5(ch) _PORT(ch, _VLV_TX_DW5_CH0, _VLV_TX_DW5_CH1)
ch               1488 drivers/gpu/drm/i915/i915_reg.h #define VLV_TX_DW11(ch) _PORT(ch, _VLV_TX_DW11_CH0, _VLV_TX_DW11_CH1)
ch               1492 drivers/gpu/drm/i915/i915_reg.h #define VLV_TX_DW14(ch) _PORT(ch, _VLV_TX_DW14_CH0, _VLV_TX_DW14_CH1)
ch               1497 drivers/gpu/drm/i915/i915_reg.h #define CHV_PLL_DW0(ch) _PIPE(ch, _CHV_PLL_DW0_CH0, _CHV_PLL_DW0_CH1)
ch               1503 drivers/gpu/drm/i915/i915_reg.h #define CHV_PLL_DW1(ch) _PIPE(ch, _CHV_PLL_DW1_CH0, _CHV_PLL_DW1_CH1)
ch               1507 drivers/gpu/drm/i915/i915_reg.h #define CHV_PLL_DW2(ch) _PIPE(ch, _CHV_PLL_DW2_CH0, _CHV_PLL_DW2_CH1)
ch               1516 drivers/gpu/drm/i915/i915_reg.h #define CHV_PLL_DW3(ch) _PIPE(ch, _CHV_PLL_DW3_CH0, _CHV_PLL_DW3_CH1)
ch               1523 drivers/gpu/drm/i915/i915_reg.h #define CHV_PLL_DW6(ch) _PIPE(ch, _CHV_PLL_DW6_CH0, _CHV_PLL_DW6_CH1)
ch               1529 drivers/gpu/drm/i915/i915_reg.h #define CHV_PLL_DW8(ch) _PIPE(ch, _CHV_PLL_DW8_CH0, _CHV_PLL_DW8_CH1)
ch               1536 drivers/gpu/drm/i915/i915_reg.h #define CHV_PLL_DW9(ch) _PIPE(ch, _CHV_PLL_DW9_CH0, _CHV_PLL_DW9_CH1)
ch               1562 drivers/gpu/drm/i915/i915_reg.h #define CHV_CMN_DW13(ch) _PIPE(ch, _CHV_CMN_DW13_CH0, _CHV_CMN_DW0_CH1)
ch               1576 drivers/gpu/drm/i915/i915_reg.h #define CHV_CMN_DW14(ch) _PIPE(ch, _CHV_CMN_DW14_CH0, _CHV_CMN_DW1_CH1)
ch               1585 drivers/gpu/drm/i915/i915_reg.h #define CHV_CMN_DW19(ch) _PIPE(ch, _CHV_CMN_DW19_CH0, _CHV_CMN_DW6_CH1)
ch               1599 drivers/gpu/drm/i915/i915_reg.h #define _TXLANE(ch, lane, offset) ((ch ? 0x2400 : 0) + \
ch               1602 drivers/gpu/drm/i915/i915_reg.h #define CHV_TX_DW0(ch, lane) _TXLANE(ch, lane, 0x80)
ch               1603 drivers/gpu/drm/i915/i915_reg.h #define CHV_TX_DW1(ch, lane) _TXLANE(ch, lane, 0x84)
ch               1604 drivers/gpu/drm/i915/i915_reg.h #define CHV_TX_DW2(ch, lane) _TXLANE(ch, lane, 0x88)
ch               1605 drivers/gpu/drm/i915/i915_reg.h #define CHV_TX_DW3(ch, lane) _TXLANE(ch, lane, 0x8c)
ch               1606 drivers/gpu/drm/i915/i915_reg.h #define CHV_TX_DW4(ch, lane) _TXLANE(ch, lane, 0x90)
ch               1607 drivers/gpu/drm/i915/i915_reg.h #define CHV_TX_DW5(ch, lane) _TXLANE(ch, lane, 0x94)
ch               1608 drivers/gpu/drm/i915/i915_reg.h #define CHV_TX_DW6(ch, lane) _TXLANE(ch, lane, 0x98)
ch               1609 drivers/gpu/drm/i915/i915_reg.h #define CHV_TX_DW7(ch, lane) _TXLANE(ch, lane, 0x9c)
ch               1610 drivers/gpu/drm/i915/i915_reg.h #define CHV_TX_DW8(ch, lane) _TXLANE(ch, lane, 0xa0)
ch               1611 drivers/gpu/drm/i915/i915_reg.h #define CHV_TX_DW9(ch, lane) _TXLANE(ch, lane, 0xa4)
ch               1612 drivers/gpu/drm/i915/i915_reg.h #define CHV_TX_DW10(ch, lane) _TXLANE(ch, lane, 0xa8)
ch               1613 drivers/gpu/drm/i915/i915_reg.h #define CHV_TX_DW11(ch, lane) _TXLANE(ch, lane, 0xac)
ch               1615 drivers/gpu/drm/i915/i915_reg.h #define CHV_TX_DW14(ch, lane) _TXLANE(ch, lane, 0xb8)
ch               1629 drivers/gpu/drm/i915/i915_reg.h #define _BXT_PHY_CH(phy, ch, reg_ch0, reg_ch1)		\
ch               1630 drivers/gpu/drm/i915/i915_reg.h 	(BXT_PHY_BASE(phy) + _PIPE((ch), (reg_ch0) - _BXT_PHY0_BASE,	\
ch               1632 drivers/gpu/drm/i915/i915_reg.h #define _MMIO_BXT_PHY_CH(phy, ch, reg_ch0, reg_ch1)		\
ch               1633 drivers/gpu/drm/i915/i915_reg.h 	_MMIO(_BXT_PHY_CH(phy, ch, reg_ch0, reg_ch1))
ch               1675 drivers/gpu/drm/i915/i915_reg.h #define BXT_PORT_PLL_EBB_0(phy, ch)	_MMIO_BXT_PHY_CH(phy, ch, \
ch               1684 drivers/gpu/drm/i915/i915_reg.h #define BXT_PORT_PLL_EBB_4(phy, ch)	_MMIO_BXT_PHY_CH(phy, ch, \
ch               1717 drivers/gpu/drm/i915/i915_reg.h #define _PORT_PLL_BASE(phy, ch)		_BXT_PHY_CH(phy, ch, \
ch               1720 drivers/gpu/drm/i915/i915_reg.h #define BXT_PORT_PLL(phy, ch, idx)	_MMIO(_PORT_PLL_BASE(phy, ch) + \
ch               2213 drivers/gpu/drm/i915/i915_reg.h #define BXT_PORT_PCS_DW10_LN01(phy, ch)	_MMIO_BXT_PHY_CH(phy, ch, \
ch               2216 drivers/gpu/drm/i915/i915_reg.h #define BXT_PORT_PCS_DW10_GRP(phy, ch)	_MMIO_BXT_PHY_CH(phy, ch, \
ch               2234 drivers/gpu/drm/i915/i915_reg.h #define BXT_PORT_PCS_DW12_LN01(phy, ch)	_MMIO_BXT_PHY_CH(phy, ch, \
ch               2237 drivers/gpu/drm/i915/i915_reg.h #define BXT_PORT_PCS_DW12_LN23(phy, ch)	_MMIO_BXT_PHY_CH(phy, ch, \
ch               2240 drivers/gpu/drm/i915/i915_reg.h #define BXT_PORT_PCS_DW12_GRP(phy, ch)	_MMIO_BXT_PHY_CH(phy, ch, \
ch               2254 drivers/gpu/drm/i915/i915_reg.h #define BXT_PORT_TX_DW2_LN0(phy, ch)	_MMIO_BXT_PHY_CH(phy, ch, \
ch               2257 drivers/gpu/drm/i915/i915_reg.h #define BXT_PORT_TX_DW2_GRP(phy, ch)	_MMIO_BXT_PHY_CH(phy, ch, \
ch               2271 drivers/gpu/drm/i915/i915_reg.h #define BXT_PORT_TX_DW3_LN0(phy, ch)	_MMIO_BXT_PHY_CH(phy, ch, \
ch               2274 drivers/gpu/drm/i915/i915_reg.h #define BXT_PORT_TX_DW3_GRP(phy, ch)	_MMIO_BXT_PHY_CH(phy, ch, \
ch               2286 drivers/gpu/drm/i915/i915_reg.h #define BXT_PORT_TX_DW4_LN0(phy, ch)	_MMIO_BXT_PHY_CH(phy, ch, \
ch               2289 drivers/gpu/drm/i915/i915_reg.h #define BXT_PORT_TX_DW4_GRP(phy, ch)	_MMIO_BXT_PHY_CH(phy, ch, \
ch               2301 drivers/gpu/drm/i915/i915_reg.h #define BXT_PORT_TX_DW5_LN0(phy, ch)	_MMIO_BXT_PHY_CH(phy, ch, \
ch               2304 drivers/gpu/drm/i915/i915_reg.h #define BXT_PORT_TX_DW5_GRP(phy, ch)	_MMIO_BXT_PHY_CH(phy, ch, \
ch               2315 drivers/gpu/drm/i915/i915_reg.h #define BXT_PORT_TX_DW14_LN(phy, ch, lane)				\
ch               2316 drivers/gpu/drm/i915/i915_reg.h 	_MMIO(_BXT_PHY_CH(phy, ch, _PORT_TX_DW14_LN0_B,			\
ch               3300 drivers/gpu/drm/i915/i915_reg.h #define   PHY_CH_POWER_DOWN_OVRD_EN(phy, ch)	(1 << (2 * (phy) + (ch) + 27))
ch               3305 drivers/gpu/drm/i915/i915_reg.h #define   PHY_CH_POWER_DOWN_OVRD(mask, phy, ch)	((mask) << (8 * (phy) + 4 * (ch) + 11))
ch               3308 drivers/gpu/drm/i915/i915_reg.h #define   PHY_CH_POWER_MODE(mode, phy, ch)	((mode) << (6 * (phy) + 3 * (ch) + 2))
ch               3312 drivers/gpu/drm/i915/i915_reg.h #define   PHY_STATUS_CMN_LDO(phy, ch)                   (1 << (6 - (6 * (phy) + 3 * (ch))))
ch               3313 drivers/gpu/drm/i915/i915_reg.h #define   PHY_STATUS_SPLINE_LDO(phy, ch, spline)        (1 << (8 - (6 * (phy) + 3 * (ch) + (spline))))
ch                334 drivers/gpu/drm/mcde/mcde_display.c 				   enum mcde_channel ch,
ch                454 drivers/gpu/drm/mcde/mcde_display.c 	val = ch << MCDE_OVLXCOMP_CH_ID_SHIFT;
ch                458 drivers/gpu/drm/mcde/mcde_display.c static void mcde_configure_channel(struct mcde *mcde, enum mcde_channel ch,
ch                469 drivers/gpu/drm/mcde/mcde_display.c 	switch (ch) {
ch                755 drivers/gpu/drm/mcde/mcde_display.c 			    enum mcde_channel ch)
ch                770 drivers/gpu/drm/mcde/mcde_display.c 	switch (ch) {
ch                 29 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxg94.c 	int ch;
ch                 36 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxg94.c 	nvkm_mask(device, 0x00e4e4 + (aux->ch * 0x50), 0x00310000, 0x00000000);
ch                 51 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxg94.c 		ctrl = nvkm_rd32(device, 0x00e4e4 + (aux->ch * 0x50));
ch                 60 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxg94.c 	nvkm_mask(device, 0x00e4e4 + (aux->ch * 0x50), 0x00300000, ureq);
ch                 63 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxg94.c 		ctrl = nvkm_rd32(device, 0x00e4e4 + (aux->ch * 0x50));
ch                 81 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxg94.c 	const u32 base = aux->ch * 0x50;
ch                175 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxg94.c 	aux->ch = drive;
ch                176 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxg94.c 	aux->base.intr = 1 << aux->ch;
ch                 29 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxgm200.c 	int ch;
ch                 36 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxgm200.c 	nvkm_mask(device, 0x00d954 + (aux->ch * 0x50), 0x00310000, 0x00000000);
ch                 51 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxgm200.c 		ctrl = nvkm_rd32(device, 0x00d954 + (aux->ch * 0x50));
ch                 60 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxgm200.c 	nvkm_mask(device, 0x00d954 + (aux->ch * 0x50), 0x00300000, ureq);
ch                 63 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxgm200.c 		ctrl = nvkm_rd32(device, 0x00d954 + (aux->ch * 0x50));
ch                 81 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxgm200.c 	const u32 base = aux->ch * 0x50;
ch                180 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxgm200.c 	aux->ch = drive;
ch                181 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxgm200.c 	aux->base.intr = 1 << aux->ch;
ch               2940 drivers/gpu/drm/omapdrm/dss/dispc.c 				    enum omap_channel ch,
ch               2944 drivers/gpu/drm/omapdrm/dss/dispc.c 	mgr_fld_write(dispc, ch, DISPC_MGR_FLD_TCKSELECTION, type);
ch               2946 drivers/gpu/drm/omapdrm/dss/dispc.c 	dispc_write_reg(dispc, DISPC_TRANS_COLOR(ch), trans_key);
ch               2950 drivers/gpu/drm/omapdrm/dss/dispc.c 				       enum omap_channel ch, bool enable)
ch               2952 drivers/gpu/drm/omapdrm/dss/dispc.c 	mgr_fld_write(dispc, ch, DISPC_MGR_FLD_TCKENABLE, enable);
ch               2956 drivers/gpu/drm/omapdrm/dss/dispc.c 						enum omap_channel ch,
ch               2962 drivers/gpu/drm/omapdrm/dss/dispc.c 	if (ch == OMAP_DSS_CHANNEL_LCD)
ch               2964 drivers/gpu/drm/omapdrm/dss/dispc.c 	else if (ch == OMAP_DSS_CHANNEL_DIGIT)
ch                 73 drivers/gpu/drm/sun4i/sun8i_mixer.h #define SUN50I_MIXER_BLEND_CSC_CTL_EN(ch)	BIT(ch)
ch                 70 drivers/gpu/host1x/channel.c 	struct host1x_channel *ch = &host->channel_list.channels[index];
ch                 72 drivers/gpu/host1x/channel.c 	if (!kref_get_unless_zero(&ch->refcount))
ch                 75 drivers/gpu/host1x/channel.c 	return ch;
ch                 49 drivers/gpu/host1x/debug.c static int show_channel(struct host1x_channel *ch, void *data, bool show_fifo)
ch                 51 drivers/gpu/host1x/debug.c 	struct host1x *m = dev_get_drvdata(ch->dev->parent);
ch                 54 drivers/gpu/host1x/debug.c 	mutex_lock(&ch->cdma.lock);
ch                 57 drivers/gpu/host1x/debug.c 		host1x_hw_show_channel_fifo(m, ch, o);
ch                 59 drivers/gpu/host1x/debug.c 	host1x_hw_show_channel_cdma(m, ch, o);
ch                 61 drivers/gpu/host1x/debug.c 	mutex_unlock(&ch->cdma.lock);
ch                104 drivers/gpu/host1x/debug.c 		struct host1x_channel *ch = host1x_channel_get_index(m, i);
ch                106 drivers/gpu/host1x/debug.c 		if (ch) {
ch                107 drivers/gpu/host1x/debug.c 			show_channel(ch, o, show_fifo);
ch                108 drivers/gpu/host1x/debug.c 			host1x_channel_put(ch);
ch                 62 drivers/gpu/host1x/dev.c void host1x_ch_writel(struct host1x_channel *ch, u32 v, u32 r)
ch                 64 drivers/gpu/host1x/dev.c 	writel(v, ch->regs + r);
ch                 67 drivers/gpu/host1x/dev.c u32 host1x_ch_readl(struct host1x_channel *ch, u32 r)
ch                 69 drivers/gpu/host1x/dev.c 	return readl(ch->regs + r);
ch                 55 drivers/gpu/host1x/dev.h 				  struct host1x_channel *ch,
ch                 58 drivers/gpu/host1x/dev.h 				  struct host1x_channel *ch,
ch                149 drivers/gpu/host1x/dev.h void host1x_ch_writel(struct host1x_channel *ch, u32 r, u32 v);
ch                150 drivers/gpu/host1x/dev.h u32 host1x_ch_readl(struct host1x_channel *ch, u32 r);
ch                184 drivers/gpu/host1x/dev.h 	struct host1x_channel *ch)
ch                186 drivers/gpu/host1x/dev.h 	return host->syncpt_op->assign_to_channel(sp, ch);
ch                 45 drivers/gpu/host1x/hw/cdma_hw.c 	struct host1x_channel *ch = cdma_to_channel(cdma);
ch                 55 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, HOST1X_CHANNEL_DMACTRL_DMASTOP,
ch                 59 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, lower_32_bits(start), HOST1X_CHANNEL_DMASTART);
ch                 61 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, upper_32_bits(start), HOST1X_CHANNEL_DMASTART_HI);
ch                 63 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, cdma->push_buffer.pos, HOST1X_CHANNEL_DMAPUT);
ch                 65 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, 0, HOST1X_CHANNEL_DMAPUT_HI);
ch                 67 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, lower_32_bits(end), HOST1X_CHANNEL_DMAEND);
ch                 69 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, upper_32_bits(end), HOST1X_CHANNEL_DMAEND_HI);
ch                 73 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, HOST1X_CHANNEL_DMACTRL_DMASTOP |
ch                 79 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, 0, HOST1X_CHANNEL_DMACTRL);
ch                 92 drivers/gpu/host1x/hw/cdma_hw.c 	struct host1x_channel *ch = cdma_to_channel(cdma);
ch                100 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, HOST1X_CHANNEL_DMACTRL_DMASTOP,
ch                107 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, lower_32_bits(start), HOST1X_CHANNEL_DMASTART);
ch                109 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, upper_32_bits(start), HOST1X_CHANNEL_DMASTART_HI);
ch                111 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, lower_32_bits(end), HOST1X_CHANNEL_DMAEND);
ch                113 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, upper_32_bits(end), HOST1X_CHANNEL_DMAEND_HI);
ch                117 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, getptr, HOST1X_CHANNEL_DMAPUT);
ch                118 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, HOST1X_CHANNEL_DMACTRL_DMASTOP |
ch                125 drivers/gpu/host1x/hw/cdma_hw.c 		host1x_ch_readl(ch, HOST1X_CHANNEL_DMAGET),
ch                126 drivers/gpu/host1x/hw/cdma_hw.c 		host1x_ch_readl(ch, HOST1X_CHANNEL_DMAPUT),
ch                130 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, HOST1X_CHANNEL_DMACTRL_DMASTOP,
ch                132 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, cdma->push_buffer.pos, HOST1X_CHANNEL_DMAPUT);
ch                135 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, 0, HOST1X_CHANNEL_DMACTRL);
ch                145 drivers/gpu/host1x/hw/cdma_hw.c 	struct host1x_channel *ch = cdma_to_channel(cdma);
ch                148 drivers/gpu/host1x/hw/cdma_hw.c 		host1x_ch_writel(ch, cdma->push_buffer.pos,
ch                156 drivers/gpu/host1x/hw/cdma_hw.c 	struct host1x_channel *ch = cdma_to_channel(cdma);
ch                162 drivers/gpu/host1x/hw/cdma_hw.c 		host1x_ch_writel(ch, HOST1X_CHANNEL_DMACTRL_DMASTOP,
ch                170 drivers/gpu/host1x/hw/cdma_hw.c static void cdma_hw_cmdproc_stop(struct host1x *host, struct host1x_channel *ch,
ch                174 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, stop ? 0x1 : 0x0, HOST1X_CHANNEL_CMDPROC_STOP);
ch                178 drivers/gpu/host1x/hw/cdma_hw.c 		cmdproc_stop |= BIT(ch->id);
ch                180 drivers/gpu/host1x/hw/cdma_hw.c 		cmdproc_stop &= ~BIT(ch->id);
ch                185 drivers/gpu/host1x/hw/cdma_hw.c static void cdma_hw_teardown(struct host1x *host, struct host1x_channel *ch)
ch                188 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, 0x1, HOST1X_CHANNEL_TEARDOWN);
ch                190 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_sync_writel(host, BIT(ch->id), HOST1X_SYNC_CH_TEARDOWN);
ch                201 drivers/gpu/host1x/hw/cdma_hw.c 	struct host1x_channel *ch = cdma_to_channel(cdma);
ch                208 drivers/gpu/host1x/hw/cdma_hw.c 	dev_dbg(host->dev, "freezing channel (id %d)\n", ch->id);
ch                210 drivers/gpu/host1x/hw/cdma_hw.c 	cdma_hw_cmdproc_stop(host, ch, true);
ch                213 drivers/gpu/host1x/hw/cdma_hw.c 		__func__, host1x_ch_readl(ch, HOST1X_CHANNEL_DMAGET),
ch                214 drivers/gpu/host1x/hw/cdma_hw.c 		host1x_ch_readl(ch, HOST1X_CHANNEL_DMAPUT),
ch                217 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_ch_writel(ch, HOST1X_CHANNEL_DMACTRL_DMASTOP,
ch                220 drivers/gpu/host1x/hw/cdma_hw.c 	cdma_hw_teardown(host, ch);
ch                229 drivers/gpu/host1x/hw/cdma_hw.c 	struct host1x_channel *ch = cdma_to_channel(cdma);
ch                233 drivers/gpu/host1x/hw/cdma_hw.c 		ch->id, getptr);
ch                235 drivers/gpu/host1x/hw/cdma_hw.c 	cdma_hw_cmdproc_stop(host1x, ch, false);
ch                251 drivers/gpu/host1x/hw/cdma_hw.c 	struct host1x_channel *ch;
ch                256 drivers/gpu/host1x/hw/cdma_hw.c 	ch = cdma_to_channel(cdma);
ch                270 drivers/gpu/host1x/hw/cdma_hw.c 	cdma_hw_cmdproc_stop(host1x, ch, true);
ch                279 drivers/gpu/host1x/hw/cdma_hw.c 		cdma_hw_cmdproc_stop(host1x, ch, false);
ch                291 drivers/gpu/host1x/hw/cdma_hw.c 	host1x_cdma_update_sync_queue(cdma, ch->dev);
ch                120 drivers/gpu/host1x/hw/channel_hw.c 	struct host1x_channel *ch = job->channel;
ch                127 drivers/gpu/host1x/hw/channel_hw.c 	struct host1x *host = dev_get_drvdata(ch->dev->parent);
ch                130 drivers/gpu/host1x/hw/channel_hw.c 	trace_host1x_channel_submit(dev_name(ch->dev),
ch                138 drivers/gpu/host1x/hw/channel_hw.c 	err = mutex_lock_interruptible(&ch->submitlock);
ch                144 drivers/gpu/host1x/hw/channel_hw.c 		mutex_unlock(&ch->submitlock);
ch                149 drivers/gpu/host1x/hw/channel_hw.c 	host1x_channel_set_streamid(ch);
ch                152 drivers/gpu/host1x/hw/channel_hw.c 	err = host1x_cdma_begin(&ch->cdma, job);
ch                154 drivers/gpu/host1x/hw/channel_hw.c 		mutex_unlock(&ch->submitlock);
ch                163 drivers/gpu/host1x/hw/channel_hw.c 		host1x_cdma_push(&ch->cdma,
ch                176 drivers/gpu/host1x/hw/channel_hw.c 	host1x_hw_syncpt_assign_to_channel(host, sp, ch);
ch                182 drivers/gpu/host1x/hw/channel_hw.c 		host1x_cdma_push(&ch->cdma,
ch                189 drivers/gpu/host1x/hw/channel_hw.c 	host1x_cdma_end(&ch->cdma, job);
ch                191 drivers/gpu/host1x/hw/channel_hw.c 	trace_host1x_channel_submitted(dev_name(ch->dev), prev_max, syncval);
ch                195 drivers/gpu/host1x/hw/channel_hw.c 				     HOST1X_INTR_ACTION_SUBMIT_COMPLETE, ch,
ch                200 drivers/gpu/host1x/hw/channel_hw.c 	mutex_unlock(&ch->submitlock);
ch                210 drivers/gpu/host1x/hw/channel_hw.c 				 struct host1x_channel *ch)
ch                219 drivers/gpu/host1x/hw/channel_hw.c 		host, HOST1X_HV_CH_KERNEL_FILTER_GBUFFER(ch->id / 32));
ch                220 drivers/gpu/host1x/hw/channel_hw.c 	val |= BIT(ch->id % 32);
ch                222 drivers/gpu/host1x/hw/channel_hw.c 		host, val, HOST1X_HV_CH_KERNEL_FILTER_GBUFFER(ch->id / 32));
ch                224 drivers/gpu/host1x/hw/channel_hw.c 	host1x_ch_writel(ch,
ch                230 drivers/gpu/host1x/hw/channel_hw.c static int host1x_channel_init(struct host1x_channel *ch, struct host1x *dev,
ch                234 drivers/gpu/host1x/hw/channel_hw.c 	ch->regs = dev->regs + index * 0x4000;
ch                236 drivers/gpu/host1x/hw/channel_hw.c 	ch->regs = dev->regs + index * 0x100;
ch                238 drivers/gpu/host1x/hw/channel_hw.c 	enable_gather_filter(dev, ch);
ch                 15 drivers/gpu/host1x/hw/debug_hw_1x01.c 					   struct host1x_channel *ch,
ch                 18 drivers/gpu/host1x/hw/debug_hw_1x01.c 	struct host1x_cdma *cdma = &ch->cdma;
ch                 23 drivers/gpu/host1x/hw/debug_hw_1x01.c 	dmaput = host1x_ch_readl(ch, HOST1X_CHANNEL_DMAPUT);
ch                 24 drivers/gpu/host1x/hw/debug_hw_1x01.c 	dmaget = host1x_ch_readl(ch, HOST1X_CHANNEL_DMAGET);
ch                 25 drivers/gpu/host1x/hw/debug_hw_1x01.c 	dmactrl = host1x_ch_readl(ch, HOST1X_CHANNEL_DMACTRL);
ch                 26 drivers/gpu/host1x/hw/debug_hw_1x01.c 	cbread = host1x_sync_readl(host, HOST1X_SYNC_CBREAD(ch->id));
ch                 27 drivers/gpu/host1x/hw/debug_hw_1x01.c 	cbstat = host1x_sync_readl(host, HOST1X_SYNC_CBSTAT(ch->id));
ch                 29 drivers/gpu/host1x/hw/debug_hw_1x01.c 	host1x_debug_output(o, "%u-%s: ", ch->id, dev_name(ch->dev));
ch                 32 drivers/gpu/host1x/hw/debug_hw_1x01.c 	    !ch->cdma.push_buffer.mapped) {
ch                 68 drivers/gpu/host1x/hw/debug_hw_1x01.c 					   struct host1x_channel *ch,
ch                 74 drivers/gpu/host1x/hw/debug_hw_1x01.c 	host1x_debug_output(o, "%u: fifo:\n", ch->id);
ch                 76 drivers/gpu/host1x/hw/debug_hw_1x01.c 	val = host1x_ch_readl(ch, HOST1X_CHANNEL_FIFOSTAT);
ch                 85 drivers/gpu/host1x/hw/debug_hw_1x01.c 			   HOST1X_SYNC_CFPEEK_CTRL_CHANNR_F(ch->id),
ch                 92 drivers/gpu/host1x/hw/debug_hw_1x01.c 	val = host1x_sync_readl(host, HOST1X_SYNC_CF_SETUP(ch->id));
ch                 99 drivers/gpu/host1x/hw/debug_hw_1x01.c 				   HOST1X_SYNC_CFPEEK_CTRL_CHANNR_F(ch->id) |
ch                 15 drivers/gpu/host1x/hw/debug_hw_1x06.c 					   struct host1x_channel *ch,
ch                 18 drivers/gpu/host1x/hw/debug_hw_1x06.c 	struct host1x_cdma *cdma = &ch->cdma;
ch                 23 drivers/gpu/host1x/hw/debug_hw_1x06.c 	dmaput = host1x_ch_readl(ch, HOST1X_CHANNEL_DMAPUT);
ch                 24 drivers/gpu/host1x/hw/debug_hw_1x06.c 	dmaget = host1x_ch_readl(ch, HOST1X_CHANNEL_DMAGET);
ch                 25 drivers/gpu/host1x/hw/debug_hw_1x06.c 	dmactrl = host1x_ch_readl(ch, HOST1X_CHANNEL_DMACTRL);
ch                 26 drivers/gpu/host1x/hw/debug_hw_1x06.c 	offset = host1x_ch_readl(ch, HOST1X_CHANNEL_CMDP_OFFSET);
ch                 27 drivers/gpu/host1x/hw/debug_hw_1x06.c 	class = host1x_ch_readl(ch, HOST1X_CHANNEL_CMDP_CLASS);
ch                 28 drivers/gpu/host1x/hw/debug_hw_1x06.c 	ch_stat = host1x_ch_readl(ch, HOST1X_CHANNEL_CHANNELSTAT);
ch                 30 drivers/gpu/host1x/hw/debug_hw_1x06.c 	host1x_debug_output(o, "%u-%s: ", ch->id, dev_name(ch->dev));
ch                 33 drivers/gpu/host1x/hw/debug_hw_1x06.c 	    !ch->cdma.push_buffer.mapped) {
ch                 53 drivers/gpu/host1x/hw/debug_hw_1x06.c 					   struct host1x_channel *ch,
ch                 63 drivers/gpu/host1x/hw/debug_hw_1x06.c 	host1x_debug_output(o, "%u: fifo:\n", ch->id);
ch                 65 drivers/gpu/host1x/hw/debug_hw_1x06.c 	val = host1x_ch_readl(ch, HOST1X_CHANNEL_CMDFIFO_STAT);
ch                 72 drivers/gpu/host1x/hw/debug_hw_1x06.c 	val = host1x_ch_readl(ch, HOST1X_CHANNEL_CMDFIFO_RDATA);
ch                 81 drivers/gpu/host1x/hw/debug_hw_1x06.c 	val |= HOST1X_HV_CMDFIFO_PEEK_CTRL_CHANNEL(ch->id);
ch                 88 drivers/gpu/host1x/hw/debug_hw_1x06.c 	val = host1x_hypervisor_readl(host, HOST1X_HV_CMDFIFO_SETUP(ch->id));
ch                 95 drivers/gpu/host1x/hw/debug_hw_1x06.c 		val |= HOST1X_HV_CMDFIFO_PEEK_CTRL_CHANNEL(ch->id);
ch                104 drivers/gpu/host1x/hw/syncpt_hw.c 				  struct host1x_channel *ch)
ch                113 drivers/gpu/host1x/hw/syncpt_hw.c 			   HOST1X_SYNC_SYNCPT_CH_APP_CH(ch ? ch->id : 0xff),
ch                 25 drivers/gpu/host1x/job.c struct host1x_job *host1x_job_alloc(struct host1x_channel *ch,
ch                 48 drivers/gpu/host1x/job.c 	job->channel = ch;
ch                315 drivers/gpu/ipu-v3/ipu-common.c #define idma_mask(ch)			(1 << ((ch) & 0x1f))
ch                 93 drivers/gpu/ipu-v3/ipu-cpmem.c ipu_get_cpmem(struct ipuv3_channel *ch)
ch                 95 drivers/gpu/ipu-v3/ipu-cpmem.c 	struct ipu_cpmem *cpmem = ch->ipu->cpmem_priv;
ch                 97 drivers/gpu/ipu-v3/ipu-cpmem.c 	return cpmem->base + ch->num;
ch                100 drivers/gpu/ipu-v3/ipu-cpmem.c static void ipu_ch_param_write_field(struct ipuv3_channel *ch, u32 wbs, u32 v)
ch                102 drivers/gpu/ipu-v3/ipu-cpmem.c 	struct ipu_ch_param __iomem *base = ipu_get_cpmem(ch);
ch                126 drivers/gpu/ipu-v3/ipu-cpmem.c static u32 ipu_ch_param_read_field(struct ipuv3_channel *ch, u32 wbs)
ch                128 drivers/gpu/ipu-v3/ipu-cpmem.c 	struct ipu_ch_param __iomem *base = ipu_get_cpmem(ch);
ch                228 drivers/gpu/ipu-v3/ipu-cpmem.c void ipu_cpmem_zero(struct ipuv3_channel *ch)
ch                230 drivers/gpu/ipu-v3/ipu-cpmem.c 	struct ipu_ch_param __iomem *p = ipu_get_cpmem(ch);
ch                239 drivers/gpu/ipu-v3/ipu-cpmem.c void ipu_cpmem_set_resolution(struct ipuv3_channel *ch, int xres, int yres)
ch                241 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_FW, xres - 1);
ch                242 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_FH, yres - 1);
ch                246 drivers/gpu/ipu-v3/ipu-cpmem.c void ipu_cpmem_skip_odd_chroma_rows(struct ipuv3_channel *ch)
ch                248 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_RDRW, 1);
ch                252 drivers/gpu/ipu-v3/ipu-cpmem.c void ipu_cpmem_set_stride(struct ipuv3_channel *ch, int stride)
ch                254 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_SLY, stride - 1);
ch                258 drivers/gpu/ipu-v3/ipu-cpmem.c void ipu_cpmem_set_high_priority(struct ipuv3_channel *ch)
ch                260 drivers/gpu/ipu-v3/ipu-cpmem.c 	struct ipu_soc *ipu = ch->ipu;
ch                264 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_ID, 1);
ch                266 drivers/gpu/ipu-v3/ipu-cpmem.c 	val = ipu_idmac_read(ipu, IDMAC_CHA_PRI(ch->num));
ch                267 drivers/gpu/ipu-v3/ipu-cpmem.c 	val |= 1 << (ch->num % 32);
ch                268 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_idmac_write(ipu, val, IDMAC_CHA_PRI(ch->num));
ch                272 drivers/gpu/ipu-v3/ipu-cpmem.c void ipu_cpmem_set_buffer(struct ipuv3_channel *ch, int bufnum, dma_addr_t buf)
ch                277 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_EBA1, buf >> 3);
ch                279 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_EBA0, buf >> 3);
ch                283 drivers/gpu/ipu-v3/ipu-cpmem.c void ipu_cpmem_set_uv_offset(struct ipuv3_channel *ch, u32 u_off, u32 v_off)
ch                287 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_UBO, u_off / 8);
ch                288 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_VBO, v_off / 8);
ch                292 drivers/gpu/ipu-v3/ipu-cpmem.c void ipu_cpmem_interlaced_scan(struct ipuv3_channel *ch, int stride,
ch                325 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_SO, 1);
ch                326 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_ILO, ilo);
ch                327 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_SLY, sly);
ch                329 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_SLUV, sluv);
ch                333 drivers/gpu/ipu-v3/ipu-cpmem.c void ipu_cpmem_set_axi_id(struct ipuv3_channel *ch, u32 id)
ch                336 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_ID, id);
ch                340 drivers/gpu/ipu-v3/ipu-cpmem.c int ipu_cpmem_get_burstsize(struct ipuv3_channel *ch)
ch                342 drivers/gpu/ipu-v3/ipu-cpmem.c 	return ipu_ch_param_read_field(ch, IPU_FIELD_NPB) + 1;
ch                346 drivers/gpu/ipu-v3/ipu-cpmem.c void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize)
ch                348 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_NPB, burstsize - 1);
ch                352 drivers/gpu/ipu-v3/ipu-cpmem.c void ipu_cpmem_set_block_mode(struct ipuv3_channel *ch)
ch                354 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_BM, 1);
ch                358 drivers/gpu/ipu-v3/ipu-cpmem.c void ipu_cpmem_set_rotation(struct ipuv3_channel *ch,
ch                363 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_ROT_HF_VF, temp_rot);
ch                367 drivers/gpu/ipu-v3/ipu-cpmem.c int ipu_cpmem_set_format_rgb(struct ipuv3_channel *ch,
ch                377 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_WID0, rgb->red.length - 1);
ch                378 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_OFS0, ro);
ch                379 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_WID1, rgb->green.length - 1);
ch                380 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_OFS1, go);
ch                381 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_WID2, rgb->blue.length - 1);
ch                382 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_OFS2, bo);
ch                385 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_WID3,
ch                387 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_OFS3, to);
ch                389 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_WID3, 7);
ch                390 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_OFS3,
ch                414 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_BPP, bpp);
ch                415 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_NPB, npb);
ch                416 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 7); /* rgb mode */
ch                422 drivers/gpu/ipu-v3/ipu-cpmem.c int ipu_cpmem_set_format_passthrough(struct ipuv3_channel *ch, int width)
ch                447 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_BPP, bpp);
ch                448 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_NPB, npb);
ch                449 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 6); /* raw mode */
ch                455 drivers/gpu/ipu-v3/ipu-cpmem.c void ipu_cpmem_set_yuv_interleaved(struct ipuv3_channel *ch, u32 pixel_format)
ch                459 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_BPP, 3); /* bits/pixel */
ch                460 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 0xA);/* pix fmt */
ch                461 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_NPB, 31);/* burst size */
ch                464 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_BPP, 3); /* bits/pixel */
ch                465 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 0x8);/* pix fmt */
ch                466 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_NPB, 31);/* burst size */
ch                472 drivers/gpu/ipu-v3/ipu-cpmem.c void ipu_cpmem_set_yuv_planar_full(struct ipuv3_channel *ch,
ch                478 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_SLUV, uv_stride - 1);
ch                479 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_UBO, u_offset / 8);
ch                480 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_VBO, v_offset / 8);
ch                622 drivers/gpu/ipu-v3/ipu-cpmem.c static void ipu_cpmem_set_separate_alpha(struct ipuv3_channel *ch)
ch                624 drivers/gpu/ipu-v3/ipu-cpmem.c 	struct ipu_soc *ipu = ch->ipu;
ch                628 drivers/gpu/ipu-v3/ipu-cpmem.c 	albm = ipu_channel_albm(ch->num);
ch                632 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_ALU, 1);
ch                633 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_ALBM, albm);
ch                634 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_ch_param_write_field(ch, IPU_FIELD_CRE, 1);
ch                637 drivers/gpu/ipu-v3/ipu-cpmem.c 	val |= BIT(ch->num);
ch                641 drivers/gpu/ipu-v3/ipu-cpmem.c int ipu_cpmem_set_fmt(struct ipuv3_channel *ch, u32 drm_fourcc)
ch                647 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 2);
ch                649 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_NPB, 31);
ch                654 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 1);
ch                656 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_NPB, 31);
ch                661 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 0);
ch                663 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_NPB, 31);
ch                667 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 4);
ch                669 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_NPB, 31);
ch                673 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 3);
ch                675 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_NPB, 31);
ch                679 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_BPP, 3);
ch                681 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 0xA);
ch                683 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_NPB, 31);
ch                687 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_BPP, 3);
ch                689 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 0x8);
ch                691 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_NPB, 31);
ch                695 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_cpmem_set_format_rgb(ch, &def_xbgr_32);
ch                699 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_cpmem_set_format_rgb(ch, &def_xrgb_32);
ch                704 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_cpmem_set_format_rgb(ch, &def_rgbx_32);
ch                709 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_cpmem_set_format_rgb(ch, &def_bgrx_32);
ch                713 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_cpmem_set_format_rgb(ch, &def_bgr_24);
ch                717 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_cpmem_set_format_rgb(ch, &def_rgb_24);
ch                721 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_cpmem_set_format_rgb(ch, &def_rgb_16);
ch                725 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_cpmem_set_format_rgb(ch, &def_bgr_16);
ch                728 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_cpmem_set_format_rgb(ch, &def_argb_16);
ch                731 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_cpmem_set_format_rgb(ch, &def_abgr_16);
ch                734 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_cpmem_set_format_rgb(ch, &def_rgba_16);
ch                737 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_cpmem_set_format_rgb(ch, &def_bgra_16);
ch                740 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_cpmem_set_format_rgb(ch, &def_argb_16_4444);
ch                753 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_write_field(ch, IPU_FIELD_WID3, 7);
ch                754 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_cpmem_set_separate_alpha(ch);
ch                764 drivers/gpu/ipu-v3/ipu-cpmem.c int ipu_cpmem_set_image(struct ipuv3_channel *ch, struct ipu_image *image)
ch                774 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_cpmem_set_resolution(ch, image->rect.width, image->rect.height);
ch                775 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_cpmem_set_stride(ch, pix->bytesperline);
ch                777 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_cpmem_set_fmt(ch, v4l2_pix_fmt_to_drm_fourcc(pix->pixelformat));
ch                789 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline / 2,
ch                801 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline / 2,
ch                813 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline / 2,
ch                823 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline,
ch                833 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline,
ch                882 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_cpmem_set_buffer(ch, 0, image->phys0 + offset);
ch                883 drivers/gpu/ipu-v3/ipu-cpmem.c 	ipu_cpmem_set_buffer(ch, 1, image->phys1 + offset);
ch                889 drivers/gpu/ipu-v3/ipu-cpmem.c void ipu_cpmem_dump(struct ipuv3_channel *ch)
ch                891 drivers/gpu/ipu-v3/ipu-cpmem.c 	struct ipu_ch_param __iomem *p = ipu_get_cpmem(ch);
ch                892 drivers/gpu/ipu-v3/ipu-cpmem.c 	struct ipu_soc *ipu = ch->ipu;
ch                893 drivers/gpu/ipu-v3/ipu-cpmem.c 	int chno = ch->num;
ch                908 drivers/gpu/ipu-v3/ipu-cpmem.c 		 ipu_ch_param_read_field(ch, IPU_FIELD_PFS));
ch                910 drivers/gpu/ipu-v3/ipu-cpmem.c 		ipu_ch_param_read_field(ch, IPU_FIELD_BPP));
ch                912 drivers/gpu/ipu-v3/ipu-cpmem.c 		 ipu_ch_param_read_field(ch, IPU_FIELD_NPB));
ch                915 drivers/gpu/ipu-v3/ipu-cpmem.c 		 ipu_ch_param_read_field(ch, IPU_FIELD_FW));
ch                917 drivers/gpu/ipu-v3/ipu-cpmem.c 		 ipu_ch_param_read_field(ch, IPU_FIELD_FH));
ch                919 drivers/gpu/ipu-v3/ipu-cpmem.c 		 ipu_ch_param_read_field(ch, IPU_FIELD_EBA0) << 3);
ch                921 drivers/gpu/ipu-v3/ipu-cpmem.c 		 ipu_ch_param_read_field(ch, IPU_FIELD_EBA1) << 3);
ch                923 drivers/gpu/ipu-v3/ipu-cpmem.c 		 ipu_ch_param_read_field(ch, IPU_FIELD_SL));
ch                925 drivers/gpu/ipu-v3/ipu-cpmem.c 		 ipu_ch_param_read_field(ch, IPU_FIELD_SO));
ch                927 drivers/gpu/ipu-v3/ipu-cpmem.c 		 ipu_ch_param_read_field(ch, IPU_FIELD_SLUV));
ch                929 drivers/gpu/ipu-v3/ipu-cpmem.c 		 ipu_ch_param_read_field(ch, IPU_FIELD_UBO) << 3);
ch                931 drivers/gpu/ipu-v3/ipu-cpmem.c 		 ipu_ch_param_read_field(ch, IPU_FIELD_VBO) << 3);
ch                934 drivers/gpu/ipu-v3/ipu-cpmem.c 		 ipu_ch_param_read_field(ch, IPU_FIELD_WID0));
ch                936 drivers/gpu/ipu-v3/ipu-cpmem.c 		 ipu_ch_param_read_field(ch, IPU_FIELD_WID1));
ch                938 drivers/gpu/ipu-v3/ipu-cpmem.c 		 ipu_ch_param_read_field(ch, IPU_FIELD_WID2));
ch                940 drivers/gpu/ipu-v3/ipu-cpmem.c 		 ipu_ch_param_read_field(ch, IPU_FIELD_WID3));
ch                942 drivers/gpu/ipu-v3/ipu-cpmem.c 		 ipu_ch_param_read_field(ch, IPU_FIELD_OFS0));
ch                944 drivers/gpu/ipu-v3/ipu-cpmem.c 		 ipu_ch_param_read_field(ch, IPU_FIELD_OFS1));
ch                946 drivers/gpu/ipu-v3/ipu-cpmem.c 		 ipu_ch_param_read_field(ch, IPU_FIELD_OFS2));
ch                948 drivers/gpu/ipu-v3/ipu-cpmem.c 		 ipu_ch_param_read_field(ch, IPU_FIELD_OFS3));
ch                 52 drivers/gpu/ipu-v3/ipu-prv.h #define IPU_CHA_DB_MODE_SEL(ch)		IPU_CM_REG(0x0150 + 4 * ((ch) / 32))
ch                 53 drivers/gpu/ipu-v3/ipu-prv.h #define IPU_ALT_CHA_DB_MODE_SEL(ch)	IPU_CM_REG(0x0168 + 4 * ((ch) / 32))
ch                 54 drivers/gpu/ipu-v3/ipu-prv.h #define IPU_CHA_CUR_BUF(ch)		IPU_CM_REG(0x023C + 4 * ((ch) / 32))
ch                 60 drivers/gpu/ipu-v3/ipu-prv.h #define IPU_CHA_BUF0_RDY(ch)		IPU_CM_REG(0x0268 + 4 * ((ch) / 32))
ch                 61 drivers/gpu/ipu-v3/ipu-prv.h #define IPU_CHA_BUF1_RDY(ch)		IPU_CM_REG(0x0270 + 4 * ((ch) / 32))
ch                 62 drivers/gpu/ipu-v3/ipu-prv.h #define IPU_CHA_BUF2_RDY(ch)		IPU_CM_REG(0x0288 + 4 * ((ch) / 32))
ch                 63 drivers/gpu/ipu-v3/ipu-prv.h #define IPU_ALT_CHA_BUF0_RDY(ch)	IPU_CM_REG(0x0278 + 4 * ((ch) / 32))
ch                 64 drivers/gpu/ipu-v3/ipu-prv.h #define IPU_ALT_CHA_BUF1_RDY(ch)	IPU_CM_REG(0x0280 + 4 * ((ch) / 32))
ch                107 drivers/gpu/ipu-v3/ipu-prv.h #define IDMAC_CHA_EN(ch)		IPU_IDMAC_REG(0x0004 + 4 * ((ch) / 32))
ch                110 drivers/gpu/ipu-v3/ipu-prv.h #define IDMAC_CHA_PRI(ch)		IPU_IDMAC_REG(0x0014 + 4 * ((ch) / 32))
ch                111 drivers/gpu/ipu-v3/ipu-prv.h #define IDMAC_WM_EN(ch)			IPU_IDMAC_REG(0x001c + 4 * ((ch) / 32))
ch                117 drivers/gpu/ipu-v3/ipu-prv.h #define IDMAC_BAND_EN(ch)		IPU_IDMAC_REG(0x0040 + 4 * ((ch) / 32))
ch                118 drivers/gpu/ipu-v3/ipu-prv.h #define IDMAC_CHA_BUSY(ch)		IPU_IDMAC_REG(0x0100 + 4 * ((ch) / 32))
ch                 79 drivers/hsi/clients/hsi_char.c 	unsigned int		ch;
ch                204 drivers/hsi/clients/hsi_char.c 		msg->channel = channel->ch;
ch                425 drivers/hsi/clients/hsi_char.c 	if (channel->ch >= channel->cl->rx_cfg.num_hw_channels)
ch                482 drivers/hsi/clients/hsi_char.c 	if (channel->ch >= channel->cl->tx_cfg.num_hw_channels)
ch                712 drivers/hsi/clients/hsi_char.c 		channel->ch = i;
ch                 54 drivers/hsi/controllers/omap_ssi_port.c 	unsigned int ch;
ch                 86 drivers/hsi/controllers/omap_ssi_port.c 	for (ch = 0; ch < omap_port->channels; ch++) {
ch                 87 drivers/hsi/controllers/omap_ssi_port.c 		seq_printf(m, "BUFFER_CH%d\t: 0x%08x\n", ch,
ch                 88 drivers/hsi/controllers/omap_ssi_port.c 				readl(base + SSI_SST_BUFFER_CH_REG(ch)));
ch                113 drivers/hsi/controllers/omap_ssi_port.c 	for (ch = 0; ch < omap_port->channels; ch++) {
ch                114 drivers/hsi/controllers/omap_ssi_port.c 		seq_printf(m, "BUFFER_CH%d\t: 0x%08x\n", ch,
ch                115 drivers/hsi/controllers/omap_ssi_port.c 				readl(base + SSI_SSR_BUFFER_CH_REG(ch)));
ch                964 drivers/hsi/controllers/omap_ssi_port.c 	unsigned int ch;
ch                973 drivers/hsi/controllers/omap_ssi_port.c 		for (ch = 0; ch < omap_port->channels; ch++) {
ch                974 drivers/hsi/controllers/omap_ssi_port.c 			if (status_reg & SSI_DATAACCEPT(ch))
ch                975 drivers/hsi/controllers/omap_ssi_port.c 				ssi_pio_complete(port, &omap_port->txqueue[ch]);
ch                976 drivers/hsi/controllers/omap_ssi_port.c 			if (status_reg & SSI_DATAAVAILABLE(ch))
ch                977 drivers/hsi/controllers/omap_ssi_port.c 				ssi_pio_complete(port, &omap_port->rxqueue[ch]);
ch               1083 drivers/hsi/controllers/omap_ssi_port.c 	unsigned int ch;
ch               1085 drivers/hsi/controllers/omap_ssi_port.c 	for (ch = 0; ch < SSI_MAX_CHANNELS; ch++) {
ch               1086 drivers/hsi/controllers/omap_ssi_port.c 		INIT_LIST_HEAD(&omap_port->txqueue[ch]);
ch               1087 drivers/hsi/controllers/omap_ssi_port.c 		INIT_LIST_HEAD(&omap_port->rxqueue[ch]);
ch                 66 drivers/hwmon/ad7418.c 		int i, ch;
ch                 92 drivers/hwmon/ad7418.c 		for (i = 0, ch = 4; i < data->adc_max; i++, ch--) {
ch                 94 drivers/hwmon/ad7418.c 					cfg | AD7418_REG_ADC_CH(ch));
ch                 46 drivers/hwmon/ads7828.c static inline u8 ads7828_cmd_byte(u8 cmd, int ch)
ch                 48 drivers/hwmon/ads7828.c 	return cmd | (((ch >> 1) | (ch & 0x01) << 2) << 4);
ch                260 drivers/hwmon/max197.c 	int ch, ret;
ch                290 drivers/hwmon/max197.c 	for (ch = 0; ch < MAX197_NUM_CH; ch++)
ch                291 drivers/hwmon/max197.c 		data->ctrl_bytes[ch] = (u8) ch;
ch                 19 drivers/hwmon/max31790.c #define MAX31790_REG_FAN_CONFIG(ch)	(0x02 + (ch))
ch                 20 drivers/hwmon/max31790.c #define MAX31790_REG_FAN_DYNAMICS(ch)	(0x08 + (ch))
ch                 23 drivers/hwmon/max31790.c #define MAX31790_REG_TACH_COUNT(ch)	(0x18 + (ch) * 2)
ch                 24 drivers/hwmon/max31790.c #define MAX31790_REG_PWM_DUTY_CYCLE(ch)	(0x30 + (ch) * 2)
ch                 25 drivers/hwmon/max31790.c #define MAX31790_REG_PWMOUT(ch)		(0x40 + (ch) * 2)
ch                 26 drivers/hwmon/max31790.c #define MAX31790_REG_TARGET_COUNT(ch)	(0x50 + (ch) * 2)
ch                 28 drivers/hwmon/max6639.c #define MAX6639_REG_TEMP(ch)			(0x00 + (ch))
ch                 32 drivers/hwmon/max6639.c #define MAX6639_REG_TEMP_EXT(ch)		(0x05 + (ch))
ch                 33 drivers/hwmon/max6639.c #define MAX6639_REG_ALERT_LIMIT(ch)		(0x08 + (ch))
ch                 34 drivers/hwmon/max6639.c #define MAX6639_REG_OT_LIMIT(ch)		(0x0A + (ch))
ch                 35 drivers/hwmon/max6639.c #define MAX6639_REG_THERM_LIMIT(ch)		(0x0C + (ch))
ch                 36 drivers/hwmon/max6639.c #define MAX6639_REG_FAN_CONFIG1(ch)		(0x10 + (ch) * 4)
ch                 37 drivers/hwmon/max6639.c #define MAX6639_REG_FAN_CONFIG2a(ch)		(0x11 + (ch) * 4)
ch                 38 drivers/hwmon/max6639.c #define MAX6639_REG_FAN_CONFIG2b(ch)		(0x12 + (ch) * 4)
ch                 39 drivers/hwmon/max6639.c #define MAX6639_REG_FAN_CONFIG3(ch)		(0x13 + (ch) * 4)
ch                 40 drivers/hwmon/max6639.c #define MAX6639_REG_FAN_CNT(ch)			(0x20 + (ch))
ch                 41 drivers/hwmon/max6639.c #define MAX6639_REG_TARGET_CNT(ch)		(0x22 + (ch))
ch                 42 drivers/hwmon/max6639.c #define MAX6639_REG_FAN_PPR(ch)			(0x24 + (ch))
ch                 43 drivers/hwmon/max6639.c #define MAX6639_REG_TARGTDUTY(ch)		(0x26 + (ch))
ch                 44 drivers/hwmon/max6639.c #define MAX6639_REG_FAN_START_TEMP(ch)		(0x28 + (ch))
ch                522 drivers/hwmon/nct6683.c 	int ch = data->in_index[index];
ch                527 drivers/hwmon/nct6683.c 		reg = NCT6683_REG_MON(ch);
ch                531 drivers/hwmon/nct6683.c 			reg = NCT6683_REG_MON_LOW(ch);
ch                535 drivers/hwmon/nct6683.c 			reg = NCT6683_REG_MON_HIGH(ch);
ch                545 drivers/hwmon/nct6683.c 	int ch = data->temp_index[index];
ch                553 drivers/hwmon/nct6683.c 			reg = NCT6683_REG_INTEL_TEMP_MAX(ch);
ch                556 drivers/hwmon/nct6683.c 			reg = NCT6683_REG_INTEL_TEMP_CRIT(ch);
ch                565 drivers/hwmon/nct6683.c 			reg = NCT6683_REG_MON_LOW(ch);
ch                568 drivers/hwmon/nct6683.c 			reg = NCT6683_REG_TEMP_MAX(ch);
ch                571 drivers/hwmon/nct6683.c 			reg = NCT6683_REG_TEMP_HYST(ch);
ch                574 drivers/hwmon/nct6683.c 			reg = NCT6683_REG_MON_HIGH(ch);
ch                615 drivers/hwmon/nct6683.c 			u8 ch = data->temp_index[i];
ch                618 drivers/hwmon/nct6683.c 							  NCT6683_REG_MON(ch));
ch                 24 drivers/hwmon/npcm750-pwm-fan.c #define NPCM7XX_PWM_REG_CNRx(base, n, ch) \
ch                 25 drivers/hwmon/npcm750-pwm-fan.c 			(NPCM7XX_PWM_REG_BASE(base, n) + 0x0C + (12 * (ch)))
ch                 26 drivers/hwmon/npcm750-pwm-fan.c #define NPCM7XX_PWM_REG_CMRx(base, n, ch) \
ch                 27 drivers/hwmon/npcm750-pwm-fan.c 			(NPCM7XX_PWM_REG_BASE(base, n) + 0x10 + (12 * (ch)))
ch                 28 drivers/hwmon/npcm750-pwm-fan.c #define NPCM7XX_PWM_REG_PDRx(base, n, ch) \
ch                 29 drivers/hwmon/npcm750-pwm-fan.c 			(NPCM7XX_PWM_REG_BASE(base, n) + 0x14 + (12 * (ch)))
ch                675 drivers/hwmon/npcm750-pwm-fan.c 	int m, ch;
ch                703 drivers/hwmon/npcm750-pwm-fan.c 		for (ch = 0; ch < NPCM7XX_PWM_MAX_CHN_NUM_IN_A_MODULE; ch++) {
ch                705 drivers/hwmon/npcm750-pwm-fan.c 				  NPCM7XX_PWM_REG_CNRx(data->pwm_base, m, ch));
ch                715 drivers/hwmon/npcm750-pwm-fan.c 	int ch;
ch                763 drivers/hwmon/npcm750-pwm-fan.c 			ch = md * NPCM7XX_FAN_MAX_CHN_NUM_IN_A_MODULE + i;
ch                764 drivers/hwmon/npcm750-pwm-fan.c 			data->fan_dev[ch].fan_st_flg = FAN_DISABLE;
ch                765 drivers/hwmon/npcm750-pwm-fan.c 			data->fan_dev[ch].fan_pls_per_rev =
ch                767 drivers/hwmon/npcm750-pwm-fan.c 			data->fan_dev[ch].fan_cnt = 0;
ch                869 drivers/hwmon/npcm750-pwm-fan.c 	u8 index, ch;
ch                899 drivers/hwmon/npcm750-pwm-fan.c 	for (ch = 0; ch < fan_cnt; ch++) {
ch                900 drivers/hwmon/npcm750-pwm-fan.c 		index = fan_ch[ch];
ch                 85 drivers/hwtracing/coresight/coresight-stm.c #define stm_channel_addr(drvdata, ch)	(drvdata->chs.base +	\
ch                 86 drivers/hwtracing/coresight/coresight-stm.c 					(ch * BYTES_PER_CHANNEL))
ch                127 drivers/ide/atiixp.c 	u8 udma_mode = 0, ch = hwif->channel;
ch                129 drivers/ide/atiixp.c 	pci_read_config_byte(pdev, ATIIXP_IDE_UDMA_MODE + ch, &udma_mode);
ch                105 drivers/ide/buddha.c     unsigned char ch;
ch                107 drivers/ide/buddha.c     ch = z_readb(hwif->io_ports.irq_addr);
ch                108 drivers/ide/buddha.c     if (!(ch & 0x80))
ch                 63 drivers/ide/gayle.c 	unsigned char ch;
ch                 65 drivers/ide/gayle.c 	ch = z_readb(hwif->io_ports.irq_addr);
ch                 66 drivers/ide/gayle.c 	if (!(ch & GAYLE_IRQ_IDE))
ch                554 drivers/ide/siimage.c 	u8 ch			= hwif->channel;
ch                572 drivers/ide/siimage.c 	if (ch)
ch                593 drivers/ide/siimage.c 		if (ch)
ch                602 drivers/ide/siimage.c 	hwif->dma_base = (unsigned long)addr + (ch ? 0x08 : 0x00);
ch                107 drivers/iio/accel/st_accel_core.c 		.ch = (struct iio_chan_spec *)st_accel_12bit_channels,
ch                189 drivers/iio/accel/st_accel_core.c 		.ch = (struct iio_chan_spec *)st_accel_12bit_channels,
ch                268 drivers/iio/accel/st_accel_core.c 		.ch = (struct iio_chan_spec *)st_accel_16bit_channels,
ch                358 drivers/iio/accel/st_accel_core.c 		.ch = (struct iio_chan_spec *)st_accel_12bit_channels,
ch                430 drivers/iio/accel/st_accel_core.c 		.ch = (struct iio_chan_spec *)st_accel_8bit_channels,
ch                502 drivers/iio/accel/st_accel_core.c 		.ch = (struct iio_chan_spec *)st_accel_12bit_channels,
ch                572 drivers/iio/accel/st_accel_core.c 		.ch = (struct iio_chan_spec *)st_accel_12bit_channels,
ch                630 drivers/iio/accel/st_accel_core.c 		.ch = (struct iio_chan_spec *)st_accel_8bit_channels,
ch                705 drivers/iio/accel/st_accel_core.c 		.ch = (struct iio_chan_spec *)st_accel_12bit_channels,
ch                786 drivers/iio/accel/st_accel_core.c 		.ch = (struct iio_chan_spec *)st_accel_16bit_channels,
ch                838 drivers/iio/accel/st_accel_core.c 		.ch = (struct iio_chan_spec *)st_accel_8bit_channels,
ch                911 drivers/iio/accel/st_accel_core.c 			struct iio_chan_spec const *ch, int *val,
ch                919 drivers/iio/accel/st_accel_core.c 		err = st_sensors_read_info_raw(indio_dev, ch, val);
ch               1196 drivers/iio/accel/st_accel_core.c 				adata->sensor_settings->ch,
ch                173 drivers/iio/adc/ad7298.c static int ad7298_scan_direct(struct ad7298_state *st, unsigned ch)
ch                177 drivers/iio/adc/ad7298.c 				   (AD7298_CH(0) >> ch));
ch                142 drivers/iio/adc/ad7606.c static int ad7606_scan_direct(struct iio_dev *indio_dev, unsigned int ch)
ch                157 drivers/iio/adc/ad7606.c 		ret = st->data[ch];
ch                171 drivers/iio/adc/ad7606.c 	int ret, ch = 0;
ch                189 drivers/iio/adc/ad7606.c 			ch = chan->address;
ch                191 drivers/iio/adc/ad7606.c 		*val2 = st->scale_avail[st->range[ch]];
ch                227 drivers/iio/adc/ad7606.c static int ad7606_write_scale_hw(struct iio_dev *indio_dev, int ch, int val)
ch                260 drivers/iio/adc/ad7606.c 	int i, ret, ch = 0;
ch                267 drivers/iio/adc/ad7606.c 			ch = chan->address;
ch                268 drivers/iio/adc/ad7606.c 		ret = st->write_scale(indio_dev, ch, i);
ch                273 drivers/iio/adc/ad7606.c 		st->range[ch] = i;
ch                105 drivers/iio/adc/ad7606.h 	int (*write_scale)(struct iio_dev *indio_dev, int ch, int val);
ch                 30 drivers/iio/adc/ad7606_spi.c #define AD7616_RANGE_CH_ADDR(ch)	((ch) >> 2)
ch                 32 drivers/iio/adc/ad7606_spi.c #define AD7616_RANGE_CH_MSK(ch)		(0b11 << (((ch) & 0b11) * 2))
ch                 33 drivers/iio/adc/ad7606_spi.c #define AD7616_RANGE_CH_MODE(ch, mode)	((mode) << ((((ch) & 0b11)) * 2))
ch                 42 drivers/iio/adc/ad7606_spi.c #define AD7606_RANGE_CH_MSK(ch)		(GENMASK(3, 0) << (4 * ((ch) & 0x1)))
ch                 43 drivers/iio/adc/ad7606_spi.c #define AD7606_RANGE_CH_MODE(ch, mode)	\
ch                 44 drivers/iio/adc/ad7606_spi.c 	((GENMASK(3, 0) & mode) << (4 * ((ch) & 0x1)))
ch                 45 drivers/iio/adc/ad7606_spi.c #define AD7606_RANGE_CH_ADDR(ch)	(0x03 + ((ch) >> 1))
ch                176 drivers/iio/adc/ad7606_spi.c static int ad7616_write_scale_sw(struct iio_dev *indio_dev, int ch, int val)
ch                189 drivers/iio/adc/ad7606_spi.c 	ch_index = ch >> 1;
ch                193 drivers/iio/adc/ad7606_spi.c 	if ((ch & 0x1) == 0) /* channel A */
ch                212 drivers/iio/adc/ad7606_spi.c static int ad7606_write_scale_sw(struct iio_dev *indio_dev, int ch, int val)
ch                217 drivers/iio/adc/ad7606_spi.c 				     AD7606_RANGE_CH_ADDR(ch),
ch                218 drivers/iio/adc/ad7606_spi.c 				     AD7606_RANGE_CH_MSK(ch),
ch                219 drivers/iio/adc/ad7606_spi.c 				     AD7606_RANGE_CH_MODE(ch, val));
ch                138 drivers/iio/adc/ad7887.c static int ad7887_scan_direct(struct ad7887_state *st, unsigned ch)
ch                140 drivers/iio/adc/ad7887.c 	int ret = spi_sync(st->spi, &st->msg[ch]);
ch                144 drivers/iio/adc/ad7887.c 	return (st->data[(ch * 2)] << 8) | st->data[(ch * 2) + 1];
ch                191 drivers/iio/adc/ad7923.c static int ad7923_scan_direct(struct ad7923_state *st, unsigned ch)
ch                195 drivers/iio/adc/ad7923.c 	cmd = AD7923_WRITE_CR | AD7923_CHANNEL_WRITE(ch) |
ch                244 drivers/iio/adc/ad799x.c static int ad799x_scan_direct(struct ad799x_state *st, unsigned ch)
ch                252 drivers/iio/adc/ad799x.c 		cmd = st->config | (BIT(ch) << AD799X_CHANNEL_SHIFT);
ch                257 drivers/iio/adc/ad799x.c 		cmd = BIT(ch) << AD799X_CHANNEL_SHIFT;
ch                261 drivers/iio/adc/ad799x.c 		cmd = (ch << AD799X_CHANNEL_SHIFT) | AD7997_8_READ_SINGLE;
ch                138 drivers/iio/adc/at91_adc.c #define AT91_ADC_CHAN(st, ch) \
ch                139 drivers/iio/adc/at91_adc.c 	(st->registers->channel_base + (ch * 4))
ch                233 drivers/iio/adc/envelope-detector.c 				    struct iio_chan_spec const *ch, char *buf)
ch                242 drivers/iio/adc/envelope-detector.c 				     struct iio_chan_spec const *ch,
ch                272 drivers/iio/adc/envelope-detector.c 					   struct iio_chan_spec const *ch,
ch                282 drivers/iio/adc/envelope-detector.c 					    struct iio_chan_spec const *ch,
ch                 70 drivers/iio/adc/lpc18xx_adc.c static int lpc18xx_adc_read_chan(struct lpc18xx_adc *adc, unsigned int ch)
ch                 75 drivers/iio/adc/lpc18xx_adc.c 	reg = adc->cr_reg | BIT(ch) | LPC18XX_ADC_CR_START_NOW;
ch                 42 drivers/iio/adc/max1118.c #define MAX1118_CHANNEL(ch)						\
ch                 46 drivers/iio/adc/max1118.c 		.channel = (ch),					\
ch                 49 drivers/iio/adc/max1118.c 		.scan_index = ch,					\
ch                321 drivers/iio/adc/mxs-lradc-adc.c 	int i, ch, len = 0;
ch                323 drivers/iio/adc/mxs-lradc-adc.c 	ch = iio_attr->address;
ch                324 drivers/iio/adc/mxs-lradc-adc.c 	for (i = 0; i < ARRAY_SIZE(adc->scale_avail[ch]); i++)
ch                326 drivers/iio/adc/mxs-lradc-adc.c 			       adc->scale_avail[ch][i].integer,
ch                327 drivers/iio/adc/mxs-lradc-adc.c 			       adc->scale_avail[ch][i].nano);
ch                334 drivers/iio/adc/mxs-lradc-adc.c #define SHOW_SCALE_AVAILABLE_ATTR(ch)\
ch                335 drivers/iio/adc/mxs-lradc-adc.c 	IIO_DEVICE_ATTR(in_voltage##ch##_scale_available, 0444,\
ch                336 drivers/iio/adc/mxs-lradc-adc.c 			mxs_lradc_adc_show_scale_avail, NULL, ch)
ch                 57 drivers/iio/adc/npcm_adc.c #define NPCM_ADC_CHAN(ch) {					\
ch                 60 drivers/iio/adc/npcm_adc.c 	.channel = ch,						\
ch                430 drivers/iio/adc/qcom-pm8xxx-xoadc.c 		struct pm8xxx_chan_info *ch = &adc->chans[i];
ch                431 drivers/iio/adc/qcom-pm8xxx-xoadc.c 		if (ch->hwchan->amux_channel == chan)
ch                432 drivers/iio/adc/qcom-pm8xxx-xoadc.c 			return ch;
ch                438 drivers/iio/adc/qcom-pm8xxx-xoadc.c 				   const struct pm8xxx_chan_info *ch,
ch                448 drivers/iio/adc/qcom-pm8xxx-xoadc.c 		ch->name, ch->hwchan->amux_channel, ch->hwchan->pre_scale_mux, rsv);
ch                453 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	val = ch->hwchan->amux_channel << ADC_AMUX_SEL_SHIFT;
ch                454 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	val |= ch->hwchan->pre_scale_mux << ADC_AMUX_PREMUX_SHIFT;
ch                479 drivers/iio/adc/qcom-pm8xxx-xoadc.c 		if (ch->hwchan->amux_channel == PM8XXX_CHANNEL_MUXOFF)
ch                485 drivers/iio/adc/qcom-pm8xxx-xoadc.c 			rsvval = (ch->amux_ip_rsv << ADC_RSV_IP_SEL_SHIFT) |
ch                508 drivers/iio/adc/qcom-pm8xxx-xoadc.c 			   ch->decimation << ADC_DIG_PARAM_DEC_SHIFT);
ch                569 drivers/iio/adc/qcom-pm8xxx-xoadc.c 			       const struct pm8xxx_chan_info *ch,
ch                577 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	return pm8xxx_read_channel_rsv(adc, ch, 0xff, adc_code, false);
ch                582 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	const struct pm8xxx_chan_info *ch;
ch                593 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	ch = pm8xxx_get_channel(adc, PM8XXX_CHANNEL_125V);
ch                594 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	if (!ch)
ch                596 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	ret = pm8xxx_read_channel(adc, ch, &read_1250v);
ch                601 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	ch = pm8xxx_get_channel(adc, PM8XXX_CHANNEL_INTERNAL);
ch                602 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	if (!ch)
ch                604 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	ret = pm8xxx_read_channel(adc, ch, &read_0625v);
ch                621 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	ch = pm8xxx_get_channel(adc, PM8XXX_CHANNEL_MUXOFF);
ch                622 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	if (!ch)
ch                624 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	ret = pm8xxx_read_channel_rsv(adc, ch, AMUX_RSV5,
ch                630 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	ret = pm8xxx_read_channel_rsv(adc, ch, AMUX_RSV4,
ch                652 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	const struct pm8xxx_chan_info *ch;
ch                658 drivers/iio/adc/qcom-pm8xxx-xoadc.c 		ch = pm8xxx_get_channel(adc, chan->address);
ch                659 drivers/iio/adc/qcom-pm8xxx-xoadc.c 		if (!ch) {
ch                664 drivers/iio/adc/qcom-pm8xxx-xoadc.c 		ret = pm8xxx_read_channel(adc, ch, &adc_code);
ch                668 drivers/iio/adc/qcom-pm8xxx-xoadc.c 		ret = qcom_vadc_scale(ch->hwchan->scale_fn_type,
ch                669 drivers/iio/adc/qcom-pm8xxx-xoadc.c 				      &adc->graph[ch->calibration],
ch                670 drivers/iio/adc/qcom-pm8xxx-xoadc.c 				      &ch->hwchan->prescale,
ch                671 drivers/iio/adc/qcom-pm8xxx-xoadc.c 				      (ch->calibration == VADC_CALIB_ABSOLUTE),
ch                678 drivers/iio/adc/qcom-pm8xxx-xoadc.c 		ch = pm8xxx_get_channel(adc, chan->address);
ch                679 drivers/iio/adc/qcom-pm8xxx-xoadc.c 		if (!ch) {
ch                684 drivers/iio/adc/qcom-pm8xxx-xoadc.c 		ret = pm8xxx_read_channel(adc, ch, &adc_code);
ch                736 drivers/iio/adc/qcom-pm8xxx-xoadc.c 				      struct pm8xxx_chan_info *ch)
ch                772 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	ch->name = name;
ch                773 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	ch->hwchan = hwchan;
ch                775 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	ch->calibration = VADC_CALIB_ABSOLUTE;
ch                777 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	ch->decimation = VADC_DEF_DECIMATION;
ch                780 drivers/iio/adc/qcom-pm8xxx-xoadc.c 		ch->calibration = VADC_CALIB_RATIOMETRIC;
ch                800 drivers/iio/adc/qcom-pm8xxx-xoadc.c 		ch->decimation = ret;
ch                815 drivers/iio/adc/qcom-pm8xxx-xoadc.c 		hwchan->pre_scale_mux, hwchan->amux_channel, ch->name,
ch                816 drivers/iio/adc/qcom-pm8xxx-xoadc.c 		ch->amux_ip_rsv, ch->decimation, hwchan->prescale.num,
ch                826 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	struct pm8xxx_chan_info *ch;
ch                849 drivers/iio/adc/qcom-pm8xxx-xoadc.c 		ch = &adc->chans[i];
ch                853 drivers/iio/adc/qcom-pm8xxx-xoadc.c 						 ch);
ch                862 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	ch = pm8xxx_get_channel(adc, PM8XXX_CHANNEL_125V);
ch                863 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	if (!ch) {
ch                867 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	ch = pm8xxx_get_channel(adc, PM8XXX_CHANNEL_INTERNAL);
ch                868 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	if (!ch) {
ch                872 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	ch = pm8xxx_get_channel(adc, PM8XXX_CHANNEL_MUXOFF);
ch                873 drivers/iio/adc/qcom-pm8xxx-xoadc.c 	if (!ch) {
ch                 40 drivers/iio/adc/rcar-gyroadc.c #define RCAR_GYROADC_REALTIME_DATA(ch)		(0x10 + ((ch) * 4))
ch                 41 drivers/iio/adc/rcar-gyroadc.c #define RCAR_GYROADC_100MS_ADDED_DATA(ch)	(0x30 + ((ch) * 4))
ch                 42 drivers/iio/adc/rcar-gyroadc.c #define RCAR_GYROADC_10MS_AVG_DATA(ch)		(0x50 + ((ch) * 4))
ch                 45 drivers/iio/adc/rcar-gyroadc.c #define RCAR_GYROADC_FIFO_STATUS_EMPTY(ch)	BIT(0 + (4 * (ch)))
ch                 46 drivers/iio/adc/rcar-gyroadc.c #define RCAR_GYROADC_FIFO_STATUS_FULL(ch)	BIT(1 + (4 * (ch)))
ch                 47 drivers/iio/adc/rcar-gyroadc.c #define RCAR_GYROADC_FIFO_STATUS_ERROR(ch)	BIT(2 + (4 * (ch)))
ch                369 drivers/iio/adc/stm32-dfsdm-adc.c 				      struct stm32_dfsdm_channel *ch)
ch                371 drivers/iio/adc/stm32-dfsdm-adc.c 	unsigned int id = ch->id;
ch                377 drivers/iio/adc/stm32-dfsdm-adc.c 				 DFSDM_CHCFGR1_SITP(ch->type));
ch                382 drivers/iio/adc/stm32-dfsdm-adc.c 				 DFSDM_CHCFGR1_SPICKSEL(ch->src));
ch                387 drivers/iio/adc/stm32-dfsdm-adc.c 				  DFSDM_CHCFGR1_CHINSEL(ch->alt_si));
ch                596 drivers/iio/adc/stm32-dfsdm-adc.c 					struct iio_chan_spec *ch)
ch                600 drivers/iio/adc/stm32-dfsdm-adc.c 	int chan_idx = ch->scan_index;
ch                605 drivers/iio/adc/stm32-dfsdm-adc.c 					 &ch->channel);
ch                612 drivers/iio/adc/stm32-dfsdm-adc.c 	if (ch->channel >= dfsdm->num_chs) {
ch                615 drivers/iio/adc/stm32-dfsdm-adc.c 			ch->channel, dfsdm->num_chs);
ch                621 drivers/iio/adc/stm32-dfsdm-adc.c 					    &ch->datasheet_name);
ch                629 drivers/iio/adc/stm32-dfsdm-adc.c 	df_ch =  &dfsdm->ch_list[ch->channel];
ch                630 drivers/iio/adc/stm32-dfsdm-adc.c 	df_ch->id = ch->channel;
ch                705 drivers/iio/adc/stm32-dfsdm-adc.c 	struct stm32_dfsdm_channel *ch = &adc->dfsdm->ch_list[chan->channel];
ch                712 drivers/iio/adc/stm32-dfsdm-adc.c 	if (ch->src != DFSDM_CHANNEL_SPI_CLOCK_EXTERNAL)
ch               1198 drivers/iio/adc/stm32-dfsdm-adc.c 	struct stm32_dfsdm_channel *ch = &adc->dfsdm->ch_list[chan->channel];
ch               1221 drivers/iio/adc/stm32-dfsdm-adc.c 		switch (ch->src) {
ch               1390 drivers/iio/adc/stm32-dfsdm-adc.c 					 struct iio_chan_spec *ch)
ch               1395 drivers/iio/adc/stm32-dfsdm-adc.c 	ret = stm32_dfsdm_channel_parse_of(adc->dfsdm, indio_dev, ch);
ch               1399 drivers/iio/adc/stm32-dfsdm-adc.c 	ch->type = IIO_VOLTAGE;
ch               1400 drivers/iio/adc/stm32-dfsdm-adc.c 	ch->indexed = 1;
ch               1406 drivers/iio/adc/stm32-dfsdm-adc.c 	ch->info_mask_separate = BIT(IIO_CHAN_INFO_RAW);
ch               1407 drivers/iio/adc/stm32-dfsdm-adc.c 	ch->info_mask_shared_by_all = BIT(IIO_CHAN_INFO_OVERSAMPLING_RATIO) |
ch               1411 drivers/iio/adc/stm32-dfsdm-adc.c 		ch->ext_info = dfsdm_adc_audio_ext_info;
ch               1413 drivers/iio/adc/stm32-dfsdm-adc.c 		ch->scan_type.shift = 8;
ch               1415 drivers/iio/adc/stm32-dfsdm-adc.c 	ch->scan_type.sign = 's';
ch               1416 drivers/iio/adc/stm32-dfsdm-adc.c 	ch->scan_type.realbits = 24;
ch               1417 drivers/iio/adc/stm32-dfsdm-adc.c 	ch->scan_type.storagebits = 32;
ch               1420 drivers/iio/adc/stm32-dfsdm-adc.c 					  &adc->dfsdm->ch_list[ch->channel]);
ch               1425 drivers/iio/adc/stm32-dfsdm-adc.c 	struct iio_chan_spec *ch;
ch               1430 drivers/iio/adc/stm32-dfsdm-adc.c 	ch = devm_kzalloc(&indio_dev->dev, sizeof(*ch), GFP_KERNEL);
ch               1431 drivers/iio/adc/stm32-dfsdm-adc.c 	if (!ch)
ch               1434 drivers/iio/adc/stm32-dfsdm-adc.c 	ch->scan_index = 0;
ch               1436 drivers/iio/adc/stm32-dfsdm-adc.c 	ret = stm32_dfsdm_adc_chan_init_one(indio_dev, ch);
ch               1441 drivers/iio/adc/stm32-dfsdm-adc.c 	ch->info_mask_separate = BIT(IIO_CHAN_INFO_SAMP_FREQ);
ch               1443 drivers/iio/adc/stm32-dfsdm-adc.c 	d_ch = &adc->dfsdm->ch_list[ch->channel];
ch               1448 drivers/iio/adc/stm32-dfsdm-adc.c 	indio_dev->channels = ch;
ch               1455 drivers/iio/adc/stm32-dfsdm-adc.c 	struct iio_chan_spec *ch;
ch               1477 drivers/iio/adc/stm32-dfsdm-adc.c 	ch = devm_kcalloc(&indio_dev->dev, num_ch, sizeof(*ch),
ch               1479 drivers/iio/adc/stm32-dfsdm-adc.c 	if (!ch)
ch               1483 drivers/iio/adc/stm32-dfsdm-adc.c 		ch[chan_idx].scan_index = chan_idx;
ch               1484 drivers/iio/adc/stm32-dfsdm-adc.c 		ret = stm32_dfsdm_adc_chan_init_one(indio_dev, &ch[chan_idx]);
ch               1492 drivers/iio/adc/stm32-dfsdm-adc.c 	indio_dev->channels = ch;
ch               1675 drivers/iio/adc/stm32-dfsdm-adc.c 	struct stm32_dfsdm_channel *ch;
ch               1681 drivers/iio/adc/stm32-dfsdm-adc.c 		ch = &adc->dfsdm->ch_list[chan->channel];
ch               1682 drivers/iio/adc/stm32-dfsdm-adc.c 		ret = stm32_dfsdm_chan_configure(adc->dfsdm, ch);
ch                 49 drivers/iio/adc/ti-adc108s102.c #define ADC108S102_CMD(ch)		((u16)(ch) << 11)
ch                161 drivers/iio/adc/ti-adc108s102.c static int adc108s102_scan_direct(struct adc108s102_state *st, unsigned int ch)
ch                165 drivers/iio/adc/ti-adc108s102.c 	st->tx_buf[0] = cpu_to_be16(ADC108S102_CMD(ch));
ch                 43 drivers/iio/adc/ti-ads7950.c #define TI_ADS7950_CR_CHAN(ch)	((ch) << 7)
ch                326 drivers/iio/adc/ti-ads7950.c static int ti_ads7950_scan_direct(struct iio_dev *indio_dev, unsigned int ch)
ch                332 drivers/iio/adc/ti-ads7950.c 	cmd = TI_ADS7950_MAN_CMD(TI_ADS7950_CR_CHAN(ch));
ch                 42 drivers/iio/amplifiers/ad8366.c 	unsigned char		ch[2];
ch                109 drivers/iio/amplifiers/ad8366.c 		code = st->ch[chan->channel];
ch                172 drivers/iio/amplifiers/ad8366.c 		st->ch[chan->channel] = code;
ch                173 drivers/iio/amplifiers/ad8366.c 		ret = ad8366_write(indio_dev, st->ch[0], st->ch[1]);
ch                536 drivers/iio/common/st_sensors/st_sensors_core.c 				     struct iio_chan_spec const *ch, int *data)
ch                543 drivers/iio/common/st_sensors/st_sensors_core.c 	byte_for_channel = DIV_ROUND_UP(ch->scan_type.realbits +
ch                544 drivers/iio/common/st_sensors/st_sensors_core.c 					ch->scan_type.shift, 8);
ch                549 drivers/iio/common/st_sensors/st_sensors_core.c 	err = regmap_bulk_read(sdata->regmap, ch->address,
ch                568 drivers/iio/common/st_sensors/st_sensors_core.c 				struct iio_chan_spec const *ch, int *val)
ch                583 drivers/iio/common/st_sensors/st_sensors_core.c 		err = st_sensors_read_axis_data(indio_dev, ch, val);
ch                587 drivers/iio/common/st_sensors/st_sensors_core.c 		*val = *val >> ch->scan_type.shift;
ch                 36 drivers/iio/dac/ad5504.c #define AD5504_DAC_PWR(ch)		((ch) << 2)
ch                 23 drivers/iio/dac/ad7303.c #define AD7303_CFG_POWER_DOWN(ch) BIT(11 + (ch))
ch                 21 drivers/iio/dac/stm32-dac.c #define STM32_DAC_IS_CHAN_1(ch)		((ch) & STM32_DAC_CHANNEL_1)
ch                 48 drivers/iio/dac/stm32-dac.c static int stm32_dac_set_enable_state(struct iio_dev *indio_dev, int ch,
ch                 52 drivers/iio/dac/stm32-dac.c 	u32 msk = STM32_DAC_IS_CHAN_1(ch) ? STM32_DAC_CR_EN1 : STM32_DAC_CR_EN2;
ch                 58 drivers/iio/frequency/ad9523.c #define AD9523_CHANNEL_CLOCK_DIST(ch)		(AD9523_R3B | (0x192 + 3 * ch))
ch                367 drivers/iio/frequency/ad9523.c 			      unsigned int ch, unsigned int out)
ch                373 drivers/iio/frequency/ad9523.c 	switch (ch) {
ch                378 drivers/iio/frequency/ad9523.c 		mask = AD9523_PLL1_OUTP_CH_CTRL_VCXO_SRC_SEL_CH0 << ch;
ch                392 drivers/iio/frequency/ad9523.c 		mask = AD9523_PLL1_OUTP_CTRL_VCO_DIV_SEL_CH4_M2 << (ch - 4);
ch                403 drivers/iio/frequency/ad9523.c 		mask = AD9523_PLL1_OUTP_CH_CTRL_VCO_DIV_SEL_CH7_M2 << (ch - 7);
ch                415 drivers/iio/frequency/ad9523.c 	st->vco_out_map[ch] = out;
ch                421 drivers/iio/frequency/ad9523.c 			      unsigned int ch, unsigned long freq)
ch                427 drivers/iio/frequency/ad9523.c 	switch (ch) {
ch                443 drivers/iio/frequency/ad9523.c 	return ad9523_vco_out_map(indio_dev, ch, use_alt_clk_src);
ch                 65 drivers/iio/gyro/st_gyro_core.c 		.ch = (struct iio_chan_spec *)st_gyro_16bit_channels,
ch                143 drivers/iio/gyro/st_gyro_core.c 		.ch = (struct iio_chan_spec *)st_gyro_16bit_channels,
ch                217 drivers/iio/gyro/st_gyro_core.c 		.ch = (struct iio_chan_spec *)st_gyro_16bit_channels,
ch                291 drivers/iio/gyro/st_gyro_core.c 		.ch = (struct iio_chan_spec *)st_gyro_16bit_channels,
ch                362 drivers/iio/gyro/st_gyro_core.c 			struct iio_chan_spec const *ch, int *val,
ch                370 drivers/iio/gyro/st_gyro_core.c 		err = st_sensors_read_info_raw(indio_dev, ch, val);
ch                478 drivers/iio/gyro/st_gyro_core.c 	indio_dev->channels = gdata->sensor_settings->ch;
ch                169 drivers/iio/humidity/hts221_buffer.c 	struct iio_chan_spec const *ch;
ch                173 drivers/iio/humidity/hts221_buffer.c 	ch = &iio_dev->channels[HTS221_SENSOR_H];
ch                174 drivers/iio/humidity/hts221_buffer.c 	err = regmap_bulk_read(hw->regmap, ch->address,
ch                180 drivers/iio/humidity/hts221_buffer.c 	ch = &iio_dev->channels[HTS221_SENSOR_T];
ch                181 drivers/iio/humidity/hts221_buffer.c 	err = regmap_bulk_read(hw->regmap, ch->address,
ch                428 drivers/iio/humidity/hts221_core.c 			   struct iio_chan_spec const *ch,
ch                440 drivers/iio/humidity/hts221_core.c 		ret = hts221_read_oneshot(hw, ch->address, val);
ch                443 drivers/iio/humidity/hts221_core.c 		ret = hts221_get_sensor_scale(hw, ch->type, val, val2);
ch                446 drivers/iio/humidity/hts221_core.c 		ret = hts221_get_sensor_offset(hw, ch->type, val, val2);
ch                456 drivers/iio/humidity/hts221_core.c 		switch (ch->type) {
ch               1116 drivers/iio/imu/adis16400.c 		const struct iio_chan_spec *ch = &chip_info->channels[i];
ch               1118 drivers/iio/imu/adis16400.c 		if (ch->scan_index >= 0 &&
ch               1119 drivers/iio/imu/adis16400.c 		    ch->scan_index != ADIS16400_SCAN_TIMESTAMP)
ch               1120 drivers/iio/imu/adis16400.c 			st->avail_scan_mask[0] |= BIT(ch->scan_index);
ch               1103 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c 			       struct iio_chan_spec const *ch,
ch               1115 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c 		ret = st_lsm6dsx_read_oneshot(sensor, ch->address, val);
ch                433 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c 			     struct iio_chan_spec const *ch,
ch                446 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c 	len = min_t(int, sizeof(data), ch->scan_type.realbits >> 3);
ch                447 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c 	err = st_lsm6dsx_shub_read(sensor, ch->address, data, len);
ch                467 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c 			 struct iio_chan_spec const *ch,
ch                479 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c 		ret = st_lsm6dsx_shub_read_oneshot(sensor, ch, val);
ch                549 drivers/iio/industrialio-buffer.c 	const struct iio_chan_spec *ch;
ch                552 drivers/iio/industrialio-buffer.c 	ch = iio_find_channel_from_si(indio_dev, scan_index);
ch                553 drivers/iio/industrialio-buffer.c 	bytes = ch->scan_type.storagebits / 8;
ch                554 drivers/iio/industrialio-buffer.c 	if (ch->scan_type.repeat > 1)
ch                555 drivers/iio/industrialio-buffer.c 		bytes *= ch->scan_type.repeat;
ch                 63 drivers/iio/light/si1145.c #define SI1145_PS_LED_REG(ch) \
ch                 64 drivers/iio/light/si1145.c 	(((ch) == 2) ? SI1145_REG_PS_LED3 : SI1145_REG_PS_LED21)
ch                 65 drivers/iio/light/si1145.c #define SI1145_PS_LED_SHIFT(ch) \
ch                 66 drivers/iio/light/si1145.c 	(((ch) == 1) ? 4 : 0)
ch                115 drivers/iio/light/st_uvis25_core.c 			      struct iio_chan_spec const *ch,
ch                137 drivers/iio/light/st_uvis25_core.c 		ret = st_uvis25_read_oneshot(hw, ch->address, val);
ch                112 drivers/iio/magnetometer/st_magn_core.c 		.ch = (struct iio_chan_spec *)st_magn_16bit_channels,
ch                191 drivers/iio/magnetometer/st_magn_core.c 		.ch = (struct iio_chan_spec *)st_magn_16bit_channels,
ch                270 drivers/iio/magnetometer/st_magn_core.c 		.ch = (struct iio_chan_spec *)st_magn_2_16bit_channels,
ch                342 drivers/iio/magnetometer/st_magn_core.c 		.ch = (struct iio_chan_spec *)st_magn_3_16bit_channels,
ch                387 drivers/iio/magnetometer/st_magn_core.c 			struct iio_chan_spec const *ch, int *val,
ch                395 drivers/iio/magnetometer/st_magn_core.c 		err = st_sensors_read_info_raw(indio_dev, ch, val);
ch                402 drivers/iio/magnetometer/st_magn_core.c 		if ((ch->scan_index == ST_SENSORS_SCAN_Z) &&
ch                507 drivers/iio/magnetometer/st_magn_core.c 	indio_dev->channels = mdata->sensor_settings->ch;
ch                 43 drivers/iio/potentiometer/ds1803.c #define DS1803_CHANNEL(ch) {					\
ch                 47 drivers/iio/potentiometer/ds1803.c 	.channel = (ch),					\
ch                 29 drivers/iio/potentiometer/max5487.c #define MAX5487_CHANNEL(ch, addr) {				\
ch                 33 drivers/iio/potentiometer/max5487.c 	.channel = ch,						\
ch                 66 drivers/iio/potentiometer/mcp41010.c #define MCP41010_CHANNEL(ch) {					\
ch                 70 drivers/iio/potentiometer/mcp41010.c 	.channel = (ch),					\
ch                135 drivers/iio/potentiometer/mcp4131.c #define MCP4131_CHANNEL(ch) {					\
ch                139 drivers/iio/potentiometer/mcp4131.c 	.channel = (ch),					\
ch                124 drivers/iio/potentiometer/mcp4531.c #define MCP4531_CHANNEL(ch) {						\
ch                128 drivers/iio/potentiometer/mcp4531.c 	.channel = (ch),						\
ch                 48 drivers/iio/potentiometer/tpl0102.c #define TPL0102_CHANNEL(ch) {					\
ch                 52 drivers/iio/potentiometer/tpl0102.c 	.channel = (ch),					\
ch                243 drivers/iio/pressure/st_pressure_core.c 		.ch = (struct iio_chan_spec *)st_press_1_channels,
ch                316 drivers/iio/pressure/st_pressure_core.c 		.ch = (struct iio_chan_spec *)st_press_lps001wp_channels,
ch                368 drivers/iio/pressure/st_pressure_core.c 		.ch = (struct iio_chan_spec *)st_press_1_channels,
ch                437 drivers/iio/pressure/st_pressure_core.c 		.ch = (struct iio_chan_spec *)st_press_lps22hb_channels,
ch                504 drivers/iio/pressure/st_pressure_core.c 		.ch = (struct iio_chan_spec *)st_press_lps22hb_channels,
ch                565 drivers/iio/pressure/st_pressure_core.c 			      struct iio_chan_spec const *ch,
ch                586 drivers/iio/pressure/st_pressure_core.c 			struct iio_chan_spec const *ch, int *val,
ch                594 drivers/iio/pressure/st_pressure_core.c 		err = st_sensors_read_info_raw(indio_dev, ch, val);
ch                600 drivers/iio/pressure/st_pressure_core.c 		switch (ch->type) {
ch                615 drivers/iio/pressure/st_pressure_core.c 		switch (ch->type) {
ch                709 drivers/iio/pressure/st_pressure_core.c 	indio_dev->channels = press_data->sensor_settings->ch;
ch                313 drivers/infiniband/ulp/srp/ib_srp.c static int srp_new_ib_cm_id(struct srp_rdma_ch *ch)
ch                315 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch                319 drivers/infiniband/ulp/srp/ib_srp.c 				    srp_ib_cm_handler, ch);
ch                323 drivers/infiniband/ulp/srp/ib_srp.c 	if (ch->ib_cm.cm_id)
ch                324 drivers/infiniband/ulp/srp/ib_srp.c 		ib_destroy_cm_id(ch->ib_cm.cm_id);
ch                325 drivers/infiniband/ulp/srp/ib_srp.c 	ch->ib_cm.cm_id = new_cm_id;
ch                328 drivers/infiniband/ulp/srp/ib_srp.c 		ch->ib_cm.path.rec_type = SA_PATH_REC_TYPE_OPA;
ch                330 drivers/infiniband/ulp/srp/ib_srp.c 		ch->ib_cm.path.rec_type = SA_PATH_REC_TYPE_IB;
ch                331 drivers/infiniband/ulp/srp/ib_srp.c 	ch->ib_cm.path.sgid = target->sgid;
ch                332 drivers/infiniband/ulp/srp/ib_srp.c 	ch->ib_cm.path.dgid = target->ib_cm.orig_dgid;
ch                333 drivers/infiniband/ulp/srp/ib_srp.c 	ch->ib_cm.path.pkey = target->ib_cm.pkey;
ch                334 drivers/infiniband/ulp/srp/ib_srp.c 	ch->ib_cm.path.service_id = target->ib_cm.service_id;
ch                339 drivers/infiniband/ulp/srp/ib_srp.c static int srp_new_rdma_cm_id(struct srp_rdma_ch *ch)
ch                341 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch                345 drivers/infiniband/ulp/srp/ib_srp.c 	new_cm_id = rdma_create_id(target->net, srp_rdma_cm_handler, ch,
ch                353 drivers/infiniband/ulp/srp/ib_srp.c 	init_completion(&ch->done);
ch                363 drivers/infiniband/ulp/srp/ib_srp.c 	ret = wait_for_completion_interruptible(&ch->done);
ch                367 drivers/infiniband/ulp/srp/ib_srp.c 	ret = ch->status;
ch                374 drivers/infiniband/ulp/srp/ib_srp.c 	swap(ch->rdma_cm.cm_id, new_cm_id);
ch                383 drivers/infiniband/ulp/srp/ib_srp.c static int srp_new_cm_id(struct srp_rdma_ch *ch)
ch                385 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch                387 drivers/infiniband/ulp/srp/ib_srp.c 	return target->using_rdma_cm ? srp_new_rdma_cm_id(ch) :
ch                388 drivers/infiniband/ulp/srp/ib_srp.c 		srp_new_ib_cm_id(ch);
ch                541 drivers/infiniband/ulp/srp/ib_srp.c static void srp_destroy_qp(struct srp_rdma_ch *ch)
ch                543 drivers/infiniband/ulp/srp/ib_srp.c 	spin_lock_irq(&ch->lock);
ch                544 drivers/infiniband/ulp/srp/ib_srp.c 	ib_process_cq_direct(ch->send_cq, -1);
ch                545 drivers/infiniband/ulp/srp/ib_srp.c 	spin_unlock_irq(&ch->lock);
ch                547 drivers/infiniband/ulp/srp/ib_srp.c 	ib_drain_qp(ch->qp);
ch                548 drivers/infiniband/ulp/srp/ib_srp.c 	ib_destroy_qp(ch->qp);
ch                551 drivers/infiniband/ulp/srp/ib_srp.c static int srp_create_ch_ib(struct srp_rdma_ch *ch)
ch                553 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch                568 drivers/infiniband/ulp/srp/ib_srp.c 	recv_cq = ib_alloc_cq(dev->dev, ch, target->queue_size + 1,
ch                569 drivers/infiniband/ulp/srp/ib_srp.c 				ch->comp_vector, IB_POLL_SOFTIRQ);
ch                575 drivers/infiniband/ulp/srp/ib_srp.c 	send_cq = ib_alloc_cq(dev->dev, ch, m * target->queue_size,
ch                576 drivers/infiniband/ulp/srp/ib_srp.c 				ch->comp_vector, IB_POLL_DIRECT);
ch                593 drivers/infiniband/ulp/srp/ib_srp.c 		ret = rdma_create_qp(ch->rdma_cm.cm_id, dev->pd, init_attr);
ch                594 drivers/infiniband/ulp/srp/ib_srp.c 		qp = ch->rdma_cm.cm_id->qp;
ch                629 drivers/infiniband/ulp/srp/ib_srp.c 	if (ch->qp)
ch                630 drivers/infiniband/ulp/srp/ib_srp.c 		srp_destroy_qp(ch);
ch                631 drivers/infiniband/ulp/srp/ib_srp.c 	if (ch->recv_cq)
ch                632 drivers/infiniband/ulp/srp/ib_srp.c 		ib_free_cq(ch->recv_cq);
ch                633 drivers/infiniband/ulp/srp/ib_srp.c 	if (ch->send_cq)
ch                634 drivers/infiniband/ulp/srp/ib_srp.c 		ib_free_cq(ch->send_cq);
ch                636 drivers/infiniband/ulp/srp/ib_srp.c 	ch->qp = qp;
ch                637 drivers/infiniband/ulp/srp/ib_srp.c 	ch->recv_cq = recv_cq;
ch                638 drivers/infiniband/ulp/srp/ib_srp.c 	ch->send_cq = send_cq;
ch                641 drivers/infiniband/ulp/srp/ib_srp.c 		if (ch->fr_pool)
ch                642 drivers/infiniband/ulp/srp/ib_srp.c 			srp_destroy_fr_pool(ch->fr_pool);
ch                643 drivers/infiniband/ulp/srp/ib_srp.c 		ch->fr_pool = fr_pool;
ch                645 drivers/infiniband/ulp/srp/ib_srp.c 		if (ch->fmr_pool)
ch                646 drivers/infiniband/ulp/srp/ib_srp.c 			ib_destroy_fmr_pool(ch->fmr_pool);
ch                647 drivers/infiniband/ulp/srp/ib_srp.c 		ch->fmr_pool = fmr_pool;
ch                655 drivers/infiniband/ulp/srp/ib_srp.c 		rdma_destroy_qp(ch->rdma_cm.cm_id);
ch                675 drivers/infiniband/ulp/srp/ib_srp.c 			   struct srp_rdma_ch *ch)
ch                680 drivers/infiniband/ulp/srp/ib_srp.c 	if (!ch->target)
ch                684 drivers/infiniband/ulp/srp/ib_srp.c 		if (ch->rdma_cm.cm_id) {
ch                685 drivers/infiniband/ulp/srp/ib_srp.c 			rdma_destroy_id(ch->rdma_cm.cm_id);
ch                686 drivers/infiniband/ulp/srp/ib_srp.c 			ch->rdma_cm.cm_id = NULL;
ch                689 drivers/infiniband/ulp/srp/ib_srp.c 		if (ch->ib_cm.cm_id) {
ch                690 drivers/infiniband/ulp/srp/ib_srp.c 			ib_destroy_cm_id(ch->ib_cm.cm_id);
ch                691 drivers/infiniband/ulp/srp/ib_srp.c 			ch->ib_cm.cm_id = NULL;
ch                696 drivers/infiniband/ulp/srp/ib_srp.c 	if (!ch->qp)
ch                700 drivers/infiniband/ulp/srp/ib_srp.c 		if (ch->fr_pool)
ch                701 drivers/infiniband/ulp/srp/ib_srp.c 			srp_destroy_fr_pool(ch->fr_pool);
ch                703 drivers/infiniband/ulp/srp/ib_srp.c 		if (ch->fmr_pool)
ch                704 drivers/infiniband/ulp/srp/ib_srp.c 			ib_destroy_fmr_pool(ch->fmr_pool);
ch                707 drivers/infiniband/ulp/srp/ib_srp.c 	srp_destroy_qp(ch);
ch                708 drivers/infiniband/ulp/srp/ib_srp.c 	ib_free_cq(ch->send_cq);
ch                709 drivers/infiniband/ulp/srp/ib_srp.c 	ib_free_cq(ch->recv_cq);
ch                717 drivers/infiniband/ulp/srp/ib_srp.c 	ch->target = NULL;
ch                719 drivers/infiniband/ulp/srp/ib_srp.c 	ch->qp = NULL;
ch                720 drivers/infiniband/ulp/srp/ib_srp.c 	ch->send_cq = ch->recv_cq = NULL;
ch                722 drivers/infiniband/ulp/srp/ib_srp.c 	if (ch->rx_ring) {
ch                724 drivers/infiniband/ulp/srp/ib_srp.c 			srp_free_iu(target->srp_host, ch->rx_ring[i]);
ch                725 drivers/infiniband/ulp/srp/ib_srp.c 		kfree(ch->rx_ring);
ch                726 drivers/infiniband/ulp/srp/ib_srp.c 		ch->rx_ring = NULL;
ch                728 drivers/infiniband/ulp/srp/ib_srp.c 	if (ch->tx_ring) {
ch                730 drivers/infiniband/ulp/srp/ib_srp.c 			srp_free_iu(target->srp_host, ch->tx_ring[i]);
ch                731 drivers/infiniband/ulp/srp/ib_srp.c 		kfree(ch->tx_ring);
ch                732 drivers/infiniband/ulp/srp/ib_srp.c 		ch->tx_ring = NULL;
ch                740 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_rdma_ch *ch = ch_ptr;
ch                741 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch                743 drivers/infiniband/ulp/srp/ib_srp.c 	ch->status = status;
ch                748 drivers/infiniband/ulp/srp/ib_srp.c 		ch->ib_cm.path = *pathrec;
ch                749 drivers/infiniband/ulp/srp/ib_srp.c 	complete(&ch->done);
ch                752 drivers/infiniband/ulp/srp/ib_srp.c static int srp_ib_lookup_path(struct srp_rdma_ch *ch)
ch                754 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch                757 drivers/infiniband/ulp/srp/ib_srp.c 	ch->ib_cm.path.numb_path = 1;
ch                759 drivers/infiniband/ulp/srp/ib_srp.c 	init_completion(&ch->done);
ch                761 drivers/infiniband/ulp/srp/ib_srp.c 	ch->ib_cm.path_query_id = ib_sa_path_rec_get(&srp_sa_client,
ch                764 drivers/infiniband/ulp/srp/ib_srp.c 					       &ch->ib_cm.path,
ch                773 drivers/infiniband/ulp/srp/ib_srp.c 					       ch, &ch->ib_cm.path_query);
ch                774 drivers/infiniband/ulp/srp/ib_srp.c 	if (ch->ib_cm.path_query_id < 0)
ch                775 drivers/infiniband/ulp/srp/ib_srp.c 		return ch->ib_cm.path_query_id;
ch                777 drivers/infiniband/ulp/srp/ib_srp.c 	ret = wait_for_completion_interruptible(&ch->done);
ch                781 drivers/infiniband/ulp/srp/ib_srp.c 	if (ch->status < 0)
ch                784 drivers/infiniband/ulp/srp/ib_srp.c 			     ch->ib_cm.path.sgid.raw, ch->ib_cm.path.dgid.raw,
ch                788 drivers/infiniband/ulp/srp/ib_srp.c 	return ch->status;
ch                791 drivers/infiniband/ulp/srp/ib_srp.c static int srp_rdma_lookup_path(struct srp_rdma_ch *ch)
ch                793 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch                796 drivers/infiniband/ulp/srp/ib_srp.c 	init_completion(&ch->done);
ch                798 drivers/infiniband/ulp/srp/ib_srp.c 	ret = rdma_resolve_route(ch->rdma_cm.cm_id, SRP_PATH_REC_TIMEOUT_MS);
ch                802 drivers/infiniband/ulp/srp/ib_srp.c 	wait_for_completion_interruptible(&ch->done);
ch                804 drivers/infiniband/ulp/srp/ib_srp.c 	if (ch->status != 0)
ch                808 drivers/infiniband/ulp/srp/ib_srp.c 	return ch->status;
ch                811 drivers/infiniband/ulp/srp/ib_srp.c static int srp_lookup_path(struct srp_rdma_ch *ch)
ch                813 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch                815 drivers/infiniband/ulp/srp/ib_srp.c 	return target->using_rdma_cm ? srp_rdma_lookup_path(ch) :
ch                816 drivers/infiniband/ulp/srp/ib_srp.c 		srp_ib_lookup_path(ch);
ch                836 drivers/infiniband/ulp/srp/ib_srp.c static int srp_send_req(struct srp_rdma_ch *ch, uint32_t max_iu_len,
ch                839 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch                900 drivers/infiniband/ulp/srp/ib_srp.c 		req->ib_param.primary_path = &ch->ib_cm.path;
ch                905 drivers/infiniband/ulp/srp/ib_srp.c 		req->ib_param.qp_num = ch->qp->qp_num;
ch                906 drivers/infiniband/ulp/srp/ib_srp.c 		req->ib_param.qp_type = ch->qp->qp_type;
ch                952 drivers/infiniband/ulp/srp/ib_srp.c 		status = rdma_connect(ch->rdma_cm.cm_id, &req->rdma_param);
ch                954 drivers/infiniband/ulp/srp/ib_srp.c 		status = ib_send_cm_req(ch->ib_cm.cm_id, &req->ib_param);
ch                980 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_rdma_ch *ch;
ch                986 drivers/infiniband/ulp/srp/ib_srp.c 		ch = &target->ch[i];
ch                987 drivers/infiniband/ulp/srp/ib_srp.c 		ch->connected = false;
ch                990 drivers/infiniband/ulp/srp/ib_srp.c 			if (ch->rdma_cm.cm_id)
ch                991 drivers/infiniband/ulp/srp/ib_srp.c 				rdma_disconnect(ch->rdma_cm.cm_id);
ch                993 drivers/infiniband/ulp/srp/ib_srp.c 			if (ch->ib_cm.cm_id)
ch                994 drivers/infiniband/ulp/srp/ib_srp.c 				ret = ib_send_cm_dreq(ch->ib_cm.cm_id,
ch               1005 drivers/infiniband/ulp/srp/ib_srp.c 			      struct srp_rdma_ch *ch)
ch               1012 drivers/infiniband/ulp/srp/ib_srp.c 	if (!ch->req_ring)
ch               1016 drivers/infiniband/ulp/srp/ib_srp.c 		req = &ch->req_ring[i];
ch               1031 drivers/infiniband/ulp/srp/ib_srp.c 	kfree(ch->req_ring);
ch               1032 drivers/infiniband/ulp/srp/ib_srp.c 	ch->req_ring = NULL;
ch               1035 drivers/infiniband/ulp/srp/ib_srp.c static int srp_alloc_req_data(struct srp_rdma_ch *ch)
ch               1037 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               1045 drivers/infiniband/ulp/srp/ib_srp.c 	ch->req_ring = kcalloc(target->req_ring_size, sizeof(*ch->req_ring),
ch               1047 drivers/infiniband/ulp/srp/ib_srp.c 	if (!ch->req_ring)
ch               1051 drivers/infiniband/ulp/srp/ib_srp.c 		req = &ch->req_ring[i];
ch               1101 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_rdma_ch *ch;
ch               1114 drivers/infiniband/ulp/srp/ib_srp.c 		ch = &target->ch[i];
ch               1115 drivers/infiniband/ulp/srp/ib_srp.c 		srp_free_ch_ib(target, ch);
ch               1120 drivers/infiniband/ulp/srp/ib_srp.c 		ch = &target->ch[i];
ch               1121 drivers/infiniband/ulp/srp/ib_srp.c 		srp_free_req_data(target, ch);
ch               1123 drivers/infiniband/ulp/srp/ib_srp.c 	kfree(target->ch);
ch               1124 drivers/infiniband/ulp/srp/ib_srp.c 	target->ch = NULL;
ch               1159 drivers/infiniband/ulp/srp/ib_srp.c 		c += target->ch[i].connected;
ch               1164 drivers/infiniband/ulp/srp/ib_srp.c static int srp_connect_ch(struct srp_rdma_ch *ch, uint32_t max_iu_len,
ch               1167 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               1172 drivers/infiniband/ulp/srp/ib_srp.c 	ret = srp_lookup_path(ch);
ch               1177 drivers/infiniband/ulp/srp/ib_srp.c 		init_completion(&ch->done);
ch               1178 drivers/infiniband/ulp/srp/ib_srp.c 		ret = srp_send_req(ch, max_iu_len, multich);
ch               1181 drivers/infiniband/ulp/srp/ib_srp.c 		ret = wait_for_completion_interruptible(&ch->done);
ch               1191 drivers/infiniband/ulp/srp/ib_srp.c 		ret = ch->status;
ch               1194 drivers/infiniband/ulp/srp/ib_srp.c 			ch->connected = true;
ch               1198 drivers/infiniband/ulp/srp/ib_srp.c 			ret = srp_lookup_path(ch);
ch               1226 drivers/infiniband/ulp/srp/ib_srp.c static int srp_inv_rkey(struct srp_request *req, struct srp_rdma_ch *ch,
ch               1239 drivers/infiniband/ulp/srp/ib_srp.c 	return ib_post_send(ch->qp, &wr, NULL);
ch               1243 drivers/infiniband/ulp/srp/ib_srp.c 			   struct srp_rdma_ch *ch,
ch               1246 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               1260 drivers/infiniband/ulp/srp/ib_srp.c 			res = srp_inv_rkey(req, ch, (*pfr)->mr->rkey);
ch               1270 drivers/infiniband/ulp/srp/ib_srp.c 			srp_fr_pool_put(ch->fr_pool, req->fr_list,
ch               1294 drivers/infiniband/ulp/srp/ib_srp.c static struct scsi_cmnd *srp_claim_req(struct srp_rdma_ch *ch,
ch               1301 drivers/infiniband/ulp/srp/ib_srp.c 	spin_lock_irqsave(&ch->lock, flags);
ch               1310 drivers/infiniband/ulp/srp/ib_srp.c 	spin_unlock_irqrestore(&ch->lock, flags);
ch               1322 drivers/infiniband/ulp/srp/ib_srp.c static void srp_free_req(struct srp_rdma_ch *ch, struct srp_request *req,
ch               1327 drivers/infiniband/ulp/srp/ib_srp.c 	srp_unmap_data(scmnd, ch, req);
ch               1329 drivers/infiniband/ulp/srp/ib_srp.c 	spin_lock_irqsave(&ch->lock, flags);
ch               1330 drivers/infiniband/ulp/srp/ib_srp.c 	ch->req_lim += req_lim_delta;
ch               1331 drivers/infiniband/ulp/srp/ib_srp.c 	spin_unlock_irqrestore(&ch->lock, flags);
ch               1334 drivers/infiniband/ulp/srp/ib_srp.c static void srp_finish_req(struct srp_rdma_ch *ch, struct srp_request *req,
ch               1337 drivers/infiniband/ulp/srp/ib_srp.c 	struct scsi_cmnd *scmnd = srp_claim_req(ch, req, sdev, NULL);
ch               1340 drivers/infiniband/ulp/srp/ib_srp.c 		srp_free_req(ch, req, scmnd, 0);
ch               1349 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_rdma_ch *ch;
ch               1353 drivers/infiniband/ulp/srp/ib_srp.c 		ch = &target->ch[i];
ch               1356 drivers/infiniband/ulp/srp/ib_srp.c 			struct srp_request *req = &ch->req_ring[j];
ch               1358 drivers/infiniband/ulp/srp/ib_srp.c 			srp_finish_req(ch, req, NULL,
ch               1390 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_rdma_ch *ch;
ch               1407 drivers/infiniband/ulp/srp/ib_srp.c 		ch = &target->ch[i];
ch               1408 drivers/infiniband/ulp/srp/ib_srp.c 		ret += srp_new_cm_id(ch);
ch               1411 drivers/infiniband/ulp/srp/ib_srp.c 		ch = &target->ch[i];
ch               1413 drivers/infiniband/ulp/srp/ib_srp.c 			struct srp_request *req = &ch->req_ring[j];
ch               1415 drivers/infiniband/ulp/srp/ib_srp.c 			srp_finish_req(ch, req, NULL, DID_RESET << 16);
ch               1419 drivers/infiniband/ulp/srp/ib_srp.c 		ch = &target->ch[i];
ch               1425 drivers/infiniband/ulp/srp/ib_srp.c 		ret += srp_create_ch_ib(ch);
ch               1427 drivers/infiniband/ulp/srp/ib_srp.c 		INIT_LIST_HEAD(&ch->free_tx);
ch               1429 drivers/infiniband/ulp/srp/ib_srp.c 			list_add(&ch->tx_ring[j]->list, &ch->free_tx);
ch               1435 drivers/infiniband/ulp/srp/ib_srp.c 		ch = &target->ch[i];
ch               1438 drivers/infiniband/ulp/srp/ib_srp.c 		ret = srp_connect_ch(ch, max_iu_len, multich);
ch               1466 drivers/infiniband/ulp/srp/ib_srp.c 			      struct srp_rdma_ch *ch)
ch               1468 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               1474 drivers/infiniband/ulp/srp/ib_srp.c 		shost_printk(KERN_ERR, ch->target->scsi_host,
ch               1476 drivers/infiniband/ulp/srp/ib_srp.c 			     ch->target->mr_per_cmd);
ch               1491 drivers/infiniband/ulp/srp/ib_srp.c 	fmr = ib_fmr_pool_map_phys(ch->fmr_pool, state->pages,
ch               1522 drivers/infiniband/ulp/srp/ib_srp.c 			     struct srp_rdma_ch *ch, int sg_nents,
ch               1525 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               1533 drivers/infiniband/ulp/srp/ib_srp.c 		shost_printk(KERN_ERR, ch->target->scsi_host,
ch               1535 drivers/infiniband/ulp/srp/ib_srp.c 			     ch->target->mr_per_cmd);
ch               1552 drivers/infiniband/ulp/srp/ib_srp.c 	desc = srp_fr_pool_get(ch->fr_pool);
ch               1562 drivers/infiniband/ulp/srp/ib_srp.c 		srp_fr_pool_put(ch->fr_pool, &desc, 1);
ch               1590 drivers/infiniband/ulp/srp/ib_srp.c 	err = ib_post_send(ch->qp, &wr.wr, NULL);
ch               1600 drivers/infiniband/ulp/srp/ib_srp.c 			    struct srp_rdma_ch *ch,
ch               1603 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               1617 drivers/infiniband/ulp/srp/ib_srp.c 			ret = srp_map_finish_fmr(state, ch);
ch               1639 drivers/infiniband/ulp/srp/ib_srp.c 		ret = srp_map_finish_fmr(state, ch);
ch               1643 drivers/infiniband/ulp/srp/ib_srp.c static int srp_map_sg_fmr(struct srp_map_state *state, struct srp_rdma_ch *ch,
ch               1652 drivers/infiniband/ulp/srp/ib_srp.c 	state->fmr.end = req->fmr_list + ch->target->mr_per_cmd;
ch               1655 drivers/infiniband/ulp/srp/ib_srp.c 		ret = srp_map_sg_entry(state, ch, sg);
ch               1660 drivers/infiniband/ulp/srp/ib_srp.c 	ret = srp_map_finish_fmr(state, ch);
ch               1667 drivers/infiniband/ulp/srp/ib_srp.c static int srp_map_sg_fr(struct srp_map_state *state, struct srp_rdma_ch *ch,
ch               1674 drivers/infiniband/ulp/srp/ib_srp.c 	state->fr.end = req->fr_list + ch->target->mr_per_cmd;
ch               1683 drivers/infiniband/ulp/srp/ib_srp.c 		n = srp_map_finish_fr(state, req, ch, count, &sg_offset);
ch               1695 drivers/infiniband/ulp/srp/ib_srp.c static int srp_map_sg_dma(struct srp_map_state *state, struct srp_rdma_ch *ch,
ch               1699 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               1718 drivers/infiniband/ulp/srp/ib_srp.c static int srp_map_idb(struct srp_rdma_ch *ch, struct srp_request *req,
ch               1722 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               1745 drivers/infiniband/ulp/srp/ib_srp.c 		ret = srp_map_finish_fr(&state, req, ch, 1, NULL);
ch               1754 drivers/infiniband/ulp/srp/ib_srp.c 		ret = srp_map_finish_fmr(&state, ch);
ch               1767 drivers/infiniband/ulp/srp/ib_srp.c 			      struct srp_rdma_ch *ch, struct srp_request *req,
ch               1770 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_device *dev = ch->target->srp_host->srp_dev;
ch               1800 drivers/infiniband/ulp/srp/ib_srp.c static int srp_map_data(struct scsi_cmnd *scmnd, struct srp_rdma_ch *ch,
ch               1803 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               1840 drivers/infiniband/ulp/srp/ib_srp.c 	if (ch->use_imm_data &&
ch               1842 drivers/infiniband/ulp/srp/ib_srp.c 	    SRP_IMM_DATA_OFFSET + data_len <= ch->max_it_iu_len &&
ch               1896 drivers/infiniband/ulp/srp/ib_srp.c 		ret = srp_map_sg_fr(&state, ch, req, scat, count);
ch               1898 drivers/infiniband/ulp/srp/ib_srp.c 		ret = srp_map_sg_fmr(&state, ch, req, scat, count);
ch               1900 drivers/infiniband/ulp/srp/ib_srp.c 		ret = srp_map_sg_dma(&state, ch, req, scat, count);
ch               1909 drivers/infiniband/ulp/srp/ib_srp.c 			srp_check_mapping(&state, ch, req, scat, count);
ch               1951 drivers/infiniband/ulp/srp/ib_srp.c 		ret = srp_map_idb(ch, req, state.gen.next, state.gen.end,
ch               1982 drivers/infiniband/ulp/srp/ib_srp.c 	srp_unmap_data(scmnd, ch, req);
ch               1991 drivers/infiniband/ulp/srp/ib_srp.c static void srp_put_tx_iu(struct srp_rdma_ch *ch, struct srp_iu *iu,
ch               1996 drivers/infiniband/ulp/srp/ib_srp.c 	spin_lock_irqsave(&ch->lock, flags);
ch               1997 drivers/infiniband/ulp/srp/ib_srp.c 	list_add(&iu->list, &ch->free_tx);
ch               1999 drivers/infiniband/ulp/srp/ib_srp.c 		++ch->req_lim;
ch               2000 drivers/infiniband/ulp/srp/ib_srp.c 	spin_unlock_irqrestore(&ch->lock, flags);
ch               2016 drivers/infiniband/ulp/srp/ib_srp.c static struct srp_iu *__srp_get_tx_iu(struct srp_rdma_ch *ch,
ch               2019 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               2023 drivers/infiniband/ulp/srp/ib_srp.c 	lockdep_assert_held(&ch->lock);
ch               2025 drivers/infiniband/ulp/srp/ib_srp.c 	ib_process_cq_direct(ch->send_cq, -1);
ch               2027 drivers/infiniband/ulp/srp/ib_srp.c 	if (list_empty(&ch->free_tx))
ch               2032 drivers/infiniband/ulp/srp/ib_srp.c 		if (ch->req_lim <= rsv) {
ch               2037 drivers/infiniband/ulp/srp/ib_srp.c 		--ch->req_lim;
ch               2040 drivers/infiniband/ulp/srp/ib_srp.c 	iu = list_first_entry(&ch->free_tx, struct srp_iu, list);
ch               2053 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_rdma_ch *ch = cq->cq_context;
ch               2060 drivers/infiniband/ulp/srp/ib_srp.c 	lockdep_assert_held(&ch->lock);
ch               2062 drivers/infiniband/ulp/srp/ib_srp.c 	list_add(&iu->list, &ch->free_tx);
ch               2071 drivers/infiniband/ulp/srp/ib_srp.c static int srp_post_send(struct srp_rdma_ch *ch, struct srp_iu *iu, int len)
ch               2073 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               2092 drivers/infiniband/ulp/srp/ib_srp.c 	return ib_post_send(ch->qp, &wr, NULL);
ch               2095 drivers/infiniband/ulp/srp/ib_srp.c static int srp_post_recv(struct srp_rdma_ch *ch, struct srp_iu *iu)
ch               2097 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               2112 drivers/infiniband/ulp/srp/ib_srp.c 	return ib_post_recv(ch->qp, &wr, NULL);
ch               2115 drivers/infiniband/ulp/srp/ib_srp.c static void srp_process_rsp(struct srp_rdma_ch *ch, struct srp_rsp *rsp)
ch               2117 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               2123 drivers/infiniband/ulp/srp/ib_srp.c 		spin_lock_irqsave(&ch->lock, flags);
ch               2124 drivers/infiniband/ulp/srp/ib_srp.c 		ch->req_lim += be32_to_cpu(rsp->req_lim_delta);
ch               2125 drivers/infiniband/ulp/srp/ib_srp.c 		if (rsp->tag == ch->tsk_mgmt_tag) {
ch               2126 drivers/infiniband/ulp/srp/ib_srp.c 			ch->tsk_mgmt_status = -1;
ch               2128 drivers/infiniband/ulp/srp/ib_srp.c 				ch->tsk_mgmt_status = rsp->data[3];
ch               2129 drivers/infiniband/ulp/srp/ib_srp.c 			complete(&ch->tsk_mgmt_done);
ch               2135 drivers/infiniband/ulp/srp/ib_srp.c 		spin_unlock_irqrestore(&ch->lock, flags);
ch               2140 drivers/infiniband/ulp/srp/ib_srp.c 			scmnd = srp_claim_req(ch, req, NULL, scmnd);
ch               2147 drivers/infiniband/ulp/srp/ib_srp.c 				     rsp->tag, ch - target->ch, ch->qp->qp_num);
ch               2149 drivers/infiniband/ulp/srp/ib_srp.c 			spin_lock_irqsave(&ch->lock, flags);
ch               2150 drivers/infiniband/ulp/srp/ib_srp.c 			ch->req_lim += be32_to_cpu(rsp->req_lim_delta);
ch               2151 drivers/infiniband/ulp/srp/ib_srp.c 			spin_unlock_irqrestore(&ch->lock, flags);
ch               2173 drivers/infiniband/ulp/srp/ib_srp.c 		srp_free_req(ch, req, scmnd,
ch               2181 drivers/infiniband/ulp/srp/ib_srp.c static int srp_response_common(struct srp_rdma_ch *ch, s32 req_delta,
ch               2184 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               2190 drivers/infiniband/ulp/srp/ib_srp.c 	spin_lock_irqsave(&ch->lock, flags);
ch               2191 drivers/infiniband/ulp/srp/ib_srp.c 	ch->req_lim += req_delta;
ch               2192 drivers/infiniband/ulp/srp/ib_srp.c 	iu = __srp_get_tx_iu(ch, SRP_IU_RSP);
ch               2193 drivers/infiniband/ulp/srp/ib_srp.c 	spin_unlock_irqrestore(&ch->lock, flags);
ch               2206 drivers/infiniband/ulp/srp/ib_srp.c 	err = srp_post_send(ch, iu, len);
ch               2210 drivers/infiniband/ulp/srp/ib_srp.c 		srp_put_tx_iu(ch, iu, SRP_IU_RSP);
ch               2216 drivers/infiniband/ulp/srp/ib_srp.c static void srp_process_cred_req(struct srp_rdma_ch *ch,
ch               2225 drivers/infiniband/ulp/srp/ib_srp.c 	if (srp_response_common(ch, delta, &rsp, sizeof(rsp)))
ch               2226 drivers/infiniband/ulp/srp/ib_srp.c 		shost_printk(KERN_ERR, ch->target->scsi_host, PFX
ch               2230 drivers/infiniband/ulp/srp/ib_srp.c static void srp_process_aer_req(struct srp_rdma_ch *ch,
ch               2233 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               2243 drivers/infiniband/ulp/srp/ib_srp.c 	if (srp_response_common(ch, delta, &rsp, sizeof(rsp)))
ch               2251 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_rdma_ch *ch = cq->cq_context;
ch               2252 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               2262 drivers/infiniband/ulp/srp/ib_srp.c 	ib_dma_sync_single_for_cpu(dev, iu->dma, ch->max_ti_iu_len,
ch               2276 drivers/infiniband/ulp/srp/ib_srp.c 		srp_process_rsp(ch, iu->buf);
ch               2280 drivers/infiniband/ulp/srp/ib_srp.c 		srp_process_cred_req(ch, iu->buf);
ch               2284 drivers/infiniband/ulp/srp/ib_srp.c 		srp_process_aer_req(ch, iu->buf);
ch               2299 drivers/infiniband/ulp/srp/ib_srp.c 	ib_dma_sync_single_for_device(dev, iu->dma, ch->max_ti_iu_len,
ch               2302 drivers/infiniband/ulp/srp/ib_srp.c 	res = srp_post_recv(ch, iu);
ch               2327 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_rdma_ch *ch = cq->cq_context;
ch               2328 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               2330 drivers/infiniband/ulp/srp/ib_srp.c 	if (ch->connected && !target->qp_in_error) {
ch               2343 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_rdma_ch *ch;
ch               2359 drivers/infiniband/ulp/srp/ib_srp.c 	ch = &target->ch[blk_mq_unique_tag_to_hwq(tag)];
ch               2365 drivers/infiniband/ulp/srp/ib_srp.c 	spin_lock_irqsave(&ch->lock, flags);
ch               2366 drivers/infiniband/ulp/srp/ib_srp.c 	iu = __srp_get_tx_iu(ch, SRP_IU_CMD);
ch               2367 drivers/infiniband/ulp/srp/ib_srp.c 	spin_unlock_irqrestore(&ch->lock, flags);
ch               2372 drivers/infiniband/ulp/srp/ib_srp.c 	req = &ch->req_ring[idx];
ch               2374 drivers/infiniband/ulp/srp/ib_srp.c 	ib_dma_sync_single_for_cpu(dev, iu->dma, ch->max_it_iu_len,
ch               2396 drivers/infiniband/ulp/srp/ib_srp.c 	len = srp_map_data(scmnd, ch, req);
ch               2411 drivers/infiniband/ulp/srp/ib_srp.c 	ib_dma_sync_single_for_device(dev, iu->dma, ch->max_it_iu_len,
ch               2414 drivers/infiniband/ulp/srp/ib_srp.c 	if (srp_post_send(ch, iu, len)) {
ch               2423 drivers/infiniband/ulp/srp/ib_srp.c 	srp_unmap_data(scmnd, ch, req);
ch               2426 drivers/infiniband/ulp/srp/ib_srp.c 	srp_put_tx_iu(ch, iu, SRP_IU_CMD);
ch               2449 drivers/infiniband/ulp/srp/ib_srp.c static int srp_alloc_iu_bufs(struct srp_rdma_ch *ch)
ch               2451 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               2454 drivers/infiniband/ulp/srp/ib_srp.c 	ch->rx_ring = kcalloc(target->queue_size, sizeof(*ch->rx_ring),
ch               2456 drivers/infiniband/ulp/srp/ib_srp.c 	if (!ch->rx_ring)
ch               2458 drivers/infiniband/ulp/srp/ib_srp.c 	ch->tx_ring = kcalloc(target->queue_size, sizeof(*ch->tx_ring),
ch               2460 drivers/infiniband/ulp/srp/ib_srp.c 	if (!ch->tx_ring)
ch               2464 drivers/infiniband/ulp/srp/ib_srp.c 		ch->rx_ring[i] = srp_alloc_iu(target->srp_host,
ch               2465 drivers/infiniband/ulp/srp/ib_srp.c 					      ch->max_ti_iu_len,
ch               2467 drivers/infiniband/ulp/srp/ib_srp.c 		if (!ch->rx_ring[i])
ch               2472 drivers/infiniband/ulp/srp/ib_srp.c 		ch->tx_ring[i] = srp_alloc_iu(target->srp_host,
ch               2473 drivers/infiniband/ulp/srp/ib_srp.c 					      ch->max_it_iu_len,
ch               2475 drivers/infiniband/ulp/srp/ib_srp.c 		if (!ch->tx_ring[i])
ch               2478 drivers/infiniband/ulp/srp/ib_srp.c 		list_add(&ch->tx_ring[i]->list, &ch->free_tx);
ch               2485 drivers/infiniband/ulp/srp/ib_srp.c 		srp_free_iu(target->srp_host, ch->rx_ring[i]);
ch               2486 drivers/infiniband/ulp/srp/ib_srp.c 		srp_free_iu(target->srp_host, ch->tx_ring[i]);
ch               2491 drivers/infiniband/ulp/srp/ib_srp.c 	kfree(ch->tx_ring);
ch               2492 drivers/infiniband/ulp/srp/ib_srp.c 	ch->tx_ring = NULL;
ch               2493 drivers/infiniband/ulp/srp/ib_srp.c 	kfree(ch->rx_ring);
ch               2494 drivers/infiniband/ulp/srp/ib_srp.c 	ch->rx_ring = NULL;
ch               2528 drivers/infiniband/ulp/srp/ib_srp.c 			       struct srp_rdma_ch *ch)
ch               2530 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               2537 drivers/infiniband/ulp/srp/ib_srp.c 		ch->max_ti_iu_len = be32_to_cpu(lrsp->max_ti_iu_len);
ch               2538 drivers/infiniband/ulp/srp/ib_srp.c 		ch->req_lim       = be32_to_cpu(lrsp->req_lim_delta);
ch               2539 drivers/infiniband/ulp/srp/ib_srp.c 		ch->use_imm_data  = srp_use_imm_data &&
ch               2541 drivers/infiniband/ulp/srp/ib_srp.c 		ch->max_it_iu_len = srp_max_it_iu_len(target->cmd_sg_cnt,
ch               2542 drivers/infiniband/ulp/srp/ib_srp.c 						      ch->use_imm_data);
ch               2543 drivers/infiniband/ulp/srp/ib_srp.c 		WARN_ON_ONCE(ch->max_it_iu_len >
ch               2546 drivers/infiniband/ulp/srp/ib_srp.c 		if (ch->use_imm_data)
ch               2555 drivers/infiniband/ulp/srp/ib_srp.c 			= min(ch->req_lim - SRP_TSK_MGMT_SQ_SIZE,
ch               2567 drivers/infiniband/ulp/srp/ib_srp.c 	if (!ch->rx_ring) {
ch               2568 drivers/infiniband/ulp/srp/ib_srp.c 		ret = srp_alloc_iu_bufs(ch);
ch               2574 drivers/infiniband/ulp/srp/ib_srp.c 		struct srp_iu *iu = ch->rx_ring[i];
ch               2576 drivers/infiniband/ulp/srp/ib_srp.c 		ret = srp_post_recv(ch, iu);
ch               2592 drivers/infiniband/ulp/srp/ib_srp.c 		ret = ib_modify_qp(ch->qp, qp_attr, attr_mask);
ch               2603 drivers/infiniband/ulp/srp/ib_srp.c 		ret = ib_modify_qp(ch->qp, qp_attr, attr_mask);
ch               2614 drivers/infiniband/ulp/srp/ib_srp.c 	ch->status = ret;
ch               2619 drivers/infiniband/ulp/srp/ib_srp.c 				  struct srp_rdma_ch *ch)
ch               2621 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               2631 drivers/infiniband/ulp/srp/ib_srp.c 		sa_path_set_dlid(&ch->ib_cm.path, dlid);
ch               2632 drivers/infiniband/ulp/srp/ib_srp.c 		ch->ib_cm.path.pkey = cpi->redirect_pkey;
ch               2634 drivers/infiniband/ulp/srp/ib_srp.c 		memcpy(ch->ib_cm.path.dgid.raw, cpi->redirect_gid, 16);
ch               2636 drivers/infiniband/ulp/srp/ib_srp.c 		ch->status = dlid ? SRP_DLID_REDIRECT : SRP_PORT_REDIRECT;
ch               2641 drivers/infiniband/ulp/srp/ib_srp.c 			union ib_gid *dgid = &ch->ib_cm.path.dgid;
ch               2655 drivers/infiniband/ulp/srp/ib_srp.c 			ch->status = SRP_PORT_REDIRECT;
ch               2659 drivers/infiniband/ulp/srp/ib_srp.c 			ch->status = -ECONNRESET;
ch               2666 drivers/infiniband/ulp/srp/ib_srp.c 		ch->status = -ECONNRESET;
ch               2688 drivers/infiniband/ulp/srp/ib_srp.c 		ch->status = -ECONNRESET;
ch               2693 drivers/infiniband/ulp/srp/ib_srp.c 		ch->status = SRP_STALE_CONN;
ch               2699 drivers/infiniband/ulp/srp/ib_srp.c 		ch->status = -ECONNRESET;
ch               2706 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_rdma_ch *ch = cm_id->context;
ch               2707 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               2715 drivers/infiniband/ulp/srp/ib_srp.c 		ch->status = -ECONNRESET;
ch               2720 drivers/infiniband/ulp/srp/ib_srp.c 		srp_cm_rep_handler(cm_id, event->private_data, ch);
ch               2727 drivers/infiniband/ulp/srp/ib_srp.c 		srp_ib_cm_rej_handler(cm_id, event, ch);
ch               2733 drivers/infiniband/ulp/srp/ib_srp.c 		ch->connected = false;
ch               2745 drivers/infiniband/ulp/srp/ib_srp.c 		ch->status = 0;
ch               2760 drivers/infiniband/ulp/srp/ib_srp.c 		complete(&ch->done);
ch               2765 drivers/infiniband/ulp/srp/ib_srp.c static void srp_rdma_cm_rej_handler(struct srp_rdma_ch *ch,
ch               2768 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               2776 drivers/infiniband/ulp/srp/ib_srp.c 		ch->status = -ECONNRESET;
ch               2798 drivers/infiniband/ulp/srp/ib_srp.c 		ch->status = -ECONNRESET;
ch               2804 drivers/infiniband/ulp/srp/ib_srp.c 		ch->status = SRP_STALE_CONN;
ch               2810 drivers/infiniband/ulp/srp/ib_srp.c 		ch->status = -ECONNRESET;
ch               2818 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_rdma_ch *ch = cm_id->context;
ch               2819 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               2824 drivers/infiniband/ulp/srp/ib_srp.c 		ch->status = 0;
ch               2829 drivers/infiniband/ulp/srp/ib_srp.c 		ch->status = -ENXIO;
ch               2834 drivers/infiniband/ulp/srp/ib_srp.c 		ch->status = 0;
ch               2840 drivers/infiniband/ulp/srp/ib_srp.c 		ch->status = -EHOSTUNREACH;
ch               2848 drivers/infiniband/ulp/srp/ib_srp.c 		ch->status = -ECONNRESET;
ch               2853 drivers/infiniband/ulp/srp/ib_srp.c 		srp_cm_rep_handler(NULL, event->param.conn.private_data, ch);
ch               2860 drivers/infiniband/ulp/srp/ib_srp.c 		srp_rdma_cm_rej_handler(ch, event);
ch               2864 drivers/infiniband/ulp/srp/ib_srp.c 		if (ch->connected) {
ch               2867 drivers/infiniband/ulp/srp/ib_srp.c 			rdma_disconnect(ch->rdma_cm.cm_id);
ch               2869 drivers/infiniband/ulp/srp/ib_srp.c 			ch->status = 0;
ch               2879 drivers/infiniband/ulp/srp/ib_srp.c 		ch->status = 0;
ch               2889 drivers/infiniband/ulp/srp/ib_srp.c 		complete(&ch->done);
ch               2909 drivers/infiniband/ulp/srp/ib_srp.c static int srp_send_tsk_mgmt(struct srp_rdma_ch *ch, u64 req_tag, u64 lun,
ch               2912 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_target_port *target = ch->target;
ch               2919 drivers/infiniband/ulp/srp/ib_srp.c 	if (!ch->connected || target->qp_in_error)
ch               2927 drivers/infiniband/ulp/srp/ib_srp.c 	spin_lock_irq(&ch->lock);
ch               2928 drivers/infiniband/ulp/srp/ib_srp.c 	iu = __srp_get_tx_iu(ch, SRP_IU_TSK_MGMT);
ch               2929 drivers/infiniband/ulp/srp/ib_srp.c 	spin_unlock_irq(&ch->lock);
ch               2949 drivers/infiniband/ulp/srp/ib_srp.c 	spin_lock_irq(&ch->lock);
ch               2950 drivers/infiniband/ulp/srp/ib_srp.c 	ch->tsk_mgmt_tag = (ch->tsk_mgmt_tag + 1) | SRP_TAG_TSK_MGMT;
ch               2951 drivers/infiniband/ulp/srp/ib_srp.c 	tsk_mgmt->tag = ch->tsk_mgmt_tag;
ch               2952 drivers/infiniband/ulp/srp/ib_srp.c 	spin_unlock_irq(&ch->lock);
ch               2954 drivers/infiniband/ulp/srp/ib_srp.c 	init_completion(&ch->tsk_mgmt_done);
ch               2958 drivers/infiniband/ulp/srp/ib_srp.c 	if (srp_post_send(ch, iu, sizeof(*tsk_mgmt))) {
ch               2959 drivers/infiniband/ulp/srp/ib_srp.c 		srp_put_tx_iu(ch, iu, SRP_IU_TSK_MGMT);
ch               2964 drivers/infiniband/ulp/srp/ib_srp.c 	res = wait_for_completion_timeout(&ch->tsk_mgmt_done,
ch               2967 drivers/infiniband/ulp/srp/ib_srp.c 		*status = ch->tsk_mgmt_status;
ch               2981 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_rdma_ch *ch;
ch               2992 drivers/infiniband/ulp/srp/ib_srp.c 	ch = &target->ch[ch_idx];
ch               2993 drivers/infiniband/ulp/srp/ib_srp.c 	if (!srp_claim_req(ch, req, NULL, scmnd))
ch               2997 drivers/infiniband/ulp/srp/ib_srp.c 	if (srp_send_tsk_mgmt(ch, tag, scmnd->device->lun,
ch               3005 drivers/infiniband/ulp/srp/ib_srp.c 		srp_free_req(ch, req, scmnd, 0);
ch               3016 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_rdma_ch *ch;
ch               3021 drivers/infiniband/ulp/srp/ib_srp.c 	ch = &target->ch[0];
ch               3022 drivers/infiniband/ulp/srp/ib_srp.c 	if (srp_send_tsk_mgmt(ch, SRP_TAG_NO_REQ, scmnd->device->lun,
ch               3114 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_rdma_ch *ch = &target->ch[0];
ch               3118 drivers/infiniband/ulp/srp/ib_srp.c 	return sprintf(buf, "%pI6\n", ch->ib_cm.path.dgid.raw);
ch               3135 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_rdma_ch *ch;
ch               3139 drivers/infiniband/ulp/srp/ib_srp.c 		ch = &target->ch[i];
ch               3140 drivers/infiniband/ulp/srp/ib_srp.c 		req_lim = min(req_lim, ch->req_lim);
ch               3775 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_rdma_ch *ch;
ch               3906 drivers/infiniband/ulp/srp/ib_srp.c 	target->ch = kcalloc(target->ch_count, sizeof(*target->ch),
ch               3908 drivers/infiniband/ulp/srp/ib_srp.c 	if (!target->ch)
ch               3928 drivers/infiniband/ulp/srp/ib_srp.c 			ch = &target->ch[ch_start + cpu_idx];
ch               3929 drivers/infiniband/ulp/srp/ib_srp.c 			ch->target = target;
ch               3930 drivers/infiniband/ulp/srp/ib_srp.c 			ch->comp_vector = cv_start == cv_end ? cv_start :
ch               3932 drivers/infiniband/ulp/srp/ib_srp.c 			spin_lock_init(&ch->lock);
ch               3933 drivers/infiniband/ulp/srp/ib_srp.c 			INIT_LIST_HEAD(&ch->free_tx);
ch               3934 drivers/infiniband/ulp/srp/ib_srp.c 			ret = srp_new_cm_id(ch);
ch               3938 drivers/infiniband/ulp/srp/ib_srp.c 			ret = srp_create_ch_ib(ch);
ch               3942 drivers/infiniband/ulp/srp/ib_srp.c 			ret = srp_alloc_req_data(ch);
ch               3946 drivers/infiniband/ulp/srp/ib_srp.c 			ret = srp_connect_ch(ch, max_iu_len, multich);
ch               3963 drivers/infiniband/ulp/srp/ib_srp.c 					srp_free_ch_ib(target, ch);
ch               3964 drivers/infiniband/ulp/srp/ib_srp.c 					srp_free_req_data(target, ch);
ch               3965 drivers/infiniband/ulp/srp/ib_srp.c 					target->ch_count = ch - target->ch;
ch               4027 drivers/infiniband/ulp/srp/ib_srp.c 		ch = &target->ch[i];
ch               4028 drivers/infiniband/ulp/srp/ib_srp.c 		srp_free_ch_ib(target, ch);
ch               4029 drivers/infiniband/ulp/srp/ib_srp.c 		srp_free_req_data(target, ch);
ch               4032 drivers/infiniband/ulp/srp/ib_srp.c 	kfree(target->ch);
ch                207 drivers/infiniband/ulp/srp/ib_srp.h 	struct srp_rdma_ch	*ch;
ch                102 drivers/infiniband/ulp/srpt/ib_srpt.c static void srpt_process_wait_list(struct srpt_rdma_ch *ch);
ch                108 drivers/infiniband/ulp/srpt/ib_srpt.c static bool srpt_set_ch_state(struct srpt_rdma_ch *ch, enum rdma_ch_state new)
ch                114 drivers/infiniband/ulp/srpt/ib_srpt.c 	spin_lock_irqsave(&ch->spinlock, flags);
ch                115 drivers/infiniband/ulp/srpt/ib_srpt.c 	prev = ch->state;
ch                117 drivers/infiniband/ulp/srpt/ib_srpt.c 		ch->state = new;
ch                120 drivers/infiniband/ulp/srpt/ib_srpt.c 	spin_unlock_irqrestore(&ch->spinlock, flags);
ch                218 drivers/infiniband/ulp/srpt/ib_srpt.c static void srpt_qp_event(struct ib_event *event, struct srpt_rdma_ch *ch)
ch                221 drivers/infiniband/ulp/srpt/ib_srpt.c 		 event->event, ch, ch->sess_name, ch->state);
ch                225 drivers/infiniband/ulp/srpt/ib_srpt.c 		if (ch->using_rdma_cm)
ch                226 drivers/infiniband/ulp/srpt/ib_srpt.c 			rdma_notify(ch->rdma_cm.cm_id, event->event);
ch                228 drivers/infiniband/ulp/srpt/ib_srpt.c 			ib_cm_notify(ch->ib_cm.cm_id, event->event);
ch                232 drivers/infiniband/ulp/srpt/ib_srpt.c 			 ch->sess_name, ch->qp->qp_num,
ch                233 drivers/infiniband/ulp/srpt/ib_srpt.c 			 get_ch_state_name(ch->state));
ch                821 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_post_recv(struct srpt_device *sdev, struct srpt_rdma_ch *ch,
ch                841 drivers/infiniband/ulp/srpt/ib_srpt.c 		return ib_post_recv(ch->qp, &wr, NULL);
ch                853 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_zerolength_write(struct srpt_rdma_ch *ch)
ch                858 drivers/infiniband/ulp/srpt/ib_srpt.c 			{ .wr_cqe	= &ch->zw_cqe, },
ch                864 drivers/infiniband/ulp/srpt/ib_srpt.c 	pr_debug("%s-%d: queued zerolength write\n", ch->sess_name,
ch                865 drivers/infiniband/ulp/srpt/ib_srpt.c 		 ch->qp->qp_num);
ch                867 drivers/infiniband/ulp/srpt/ib_srpt.c 	return ib_post_send(ch->qp, &wr.wr, NULL);
ch                872 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_rdma_ch *ch = cq->cq_context;
ch                874 drivers/infiniband/ulp/srpt/ib_srpt.c 	pr_debug("%s-%d wc->status %d\n", ch->sess_name, ch->qp->qp_num,
ch                878 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_process_wait_list(ch);
ch                880 drivers/infiniband/ulp/srpt/ib_srpt.c 		if (srpt_set_ch_state(ch, CH_DISCONNECTED))
ch                881 drivers/infiniband/ulp/srpt/ib_srpt.c 			schedule_work(&ch->release_work);
ch                884 drivers/infiniband/ulp/srpt/ib_srpt.c 				 ch->sess_name, ch->qp->qp_num);
ch                893 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_rdma_ch *ch = ioctx->ch;
ch                918 drivers/infiniband/ulp/srpt/ib_srpt.c 		ret = rdma_rw_ctx_init(&ctx->rw, ch->qp, ch->sport->port,
ch                947 drivers/infiniband/ulp/srpt/ib_srpt.c 		rdma_rw_ctx_destroy(&ctx->rw, ch->qp, ch->sport->port,
ch                956 drivers/infiniband/ulp/srpt/ib_srpt.c static void srpt_free_rw_ctxs(struct srpt_rdma_ch *ch,
ch                965 drivers/infiniband/ulp/srpt/ib_srpt.c 		rdma_rw_ctx_destroy(&ctx->rw, ch->qp, ch->sport->port,
ch               1110 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_init_ch_qp(struct srpt_rdma_ch *ch, struct ib_qp *qp)
ch               1115 drivers/infiniband/ulp/srpt/ib_srpt.c 	WARN_ON_ONCE(ch->using_rdma_cm);
ch               1123 drivers/infiniband/ulp/srpt/ib_srpt.c 	attr->port_num = ch->sport->port;
ch               1125 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = ib_find_cached_pkey(ch->sport->sdev->device, ch->sport->port,
ch               1126 drivers/infiniband/ulp/srpt/ib_srpt.c 				  ch->pkey, &attr->pkey_index);
ch               1129 drivers/infiniband/ulp/srpt/ib_srpt.c 		       ch->pkey, ret);
ch               1150 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_ch_qp_rtr(struct srpt_rdma_ch *ch, struct ib_qp *qp)
ch               1156 drivers/infiniband/ulp/srpt/ib_srpt.c 	WARN_ON_ONCE(ch->using_rdma_cm);
ch               1159 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = ib_cm_init_qp_attr(ch->ib_cm.cm_id, &qp_attr, &attr_mask);
ch               1182 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_ch_qp_rts(struct srpt_rdma_ch *ch, struct ib_qp *qp)
ch               1189 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = ib_cm_init_qp_attr(ch->ib_cm.cm_id, &qp_attr, &attr_mask);
ch               1205 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_ch_qp_err(struct srpt_rdma_ch *ch)
ch               1210 drivers/infiniband/ulp/srpt/ib_srpt.c 	return ib_modify_qp(ch->qp, &qp_attr, IB_QP_STATE);
ch               1217 drivers/infiniband/ulp/srpt/ib_srpt.c static struct srpt_send_ioctx *srpt_get_send_ioctx(struct srpt_rdma_ch *ch)
ch               1222 drivers/infiniband/ulp/srpt/ib_srpt.c 	BUG_ON(!ch);
ch               1224 drivers/infiniband/ulp/srpt/ib_srpt.c 	tag = sbitmap_queue_get(&ch->sess->sess_tag_pool, &cpu);
ch               1228 drivers/infiniband/ulp/srpt/ib_srpt.c 	ioctx = ch->ioctx_ring[tag];
ch               1229 drivers/infiniband/ulp/srpt/ib_srpt.c 	BUG_ON(ioctx->ch != ch);
ch               1325 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_rdma_ch *ch = cq->cq_context;
ch               1330 drivers/infiniband/ulp/srpt/ib_srpt.c 	atomic_add(ioctx->n_rdma, &ch->sq_wr_avail);
ch               1363 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_build_cmd_rsp(struct srpt_rdma_ch *ch,
ch               1389 drivers/infiniband/ulp/srpt/ib_srpt.c 		cpu_to_be32(1 + atomic_xchg(&ch->req_lim_delta, 0));
ch               1417 drivers/infiniband/ulp/srpt/ib_srpt.c 		max_sense_len = ch->max_ti_iu_len - sizeof(*srp_rsp);
ch               1445 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_build_tskmgmt_rsp(struct srpt_rdma_ch *ch,
ch               1462 drivers/infiniband/ulp/srpt/ib_srpt.c 		cpu_to_be32(1 + atomic_xchg(&ch->req_lim_delta, 0));
ch               1486 drivers/infiniband/ulp/srpt/ib_srpt.c static void srpt_handle_cmd(struct srpt_rdma_ch *ch,
ch               1521 drivers/infiniband/ulp/srpt/ib_srpt.c 			       &sg, &sg_cnt, &data_len, ch->imm_data_offset);
ch               1530 drivers/infiniband/ulp/srpt/ib_srpt.c 	rc = target_submit_cmd_map_sgls(cmd, ch->sess, srp_cmd->cdb,
ch               1575 drivers/infiniband/ulp/srpt/ib_srpt.c static void srpt_handle_tsk_mgmt(struct srpt_rdma_ch *ch,
ch               1581 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct se_session *sess = ch->sess;
ch               1591 drivers/infiniband/ulp/srpt/ib_srpt.c 		 srp_tsk->tsk_mgmt_func, srp_tsk->task_tag, srp_tsk->tag, ch,
ch               1592 drivers/infiniband/ulp/srpt/ib_srpt.c 		 ch->sess);
ch               1614 drivers/infiniband/ulp/srpt/ib_srpt.c srpt_handle_new_iu(struct srpt_rdma_ch *ch, struct srpt_recv_ioctx *recv_ioctx)
ch               1621 drivers/infiniband/ulp/srpt/ib_srpt.c 	BUG_ON(!ch);
ch               1624 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (unlikely(ch->state == CH_CONNECTING))
ch               1627 drivers/infiniband/ulp/srpt/ib_srpt.c 	ib_dma_sync_single_for_cpu(ch->sport->sdev->device,
ch               1635 drivers/infiniband/ulp/srpt/ib_srpt.c 		send_ioctx = srpt_get_send_ioctx(ch);
ch               1641 drivers/infiniband/ulp/srpt/ib_srpt.c 		WARN_ON_ONCE(!ch->processing_wait_list);
ch               1647 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_handle_cmd(ch, recv_ioctx, send_ioctx);
ch               1650 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_handle_tsk_mgmt(ch, recv_ioctx, send_ioctx);
ch               1670 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_post_recv(ch->sport->sdev, ch, recv_ioctx);
ch               1678 drivers/infiniband/ulp/srpt/ib_srpt.c 		WARN_ON_ONCE(ch->processing_wait_list);
ch               1679 drivers/infiniband/ulp/srpt/ib_srpt.c 		list_add_tail(&recv_ioctx->wait_list, &ch->cmd_wait_list);
ch               1686 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_rdma_ch *ch = cq->cq_context;
ch               1693 drivers/infiniband/ulp/srpt/ib_srpt.c 		req_lim = atomic_dec_return(&ch->req_lim);
ch               1697 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_handle_new_iu(ch, ioctx);
ch               1709 drivers/infiniband/ulp/srpt/ib_srpt.c static void srpt_process_wait_list(struct srpt_rdma_ch *ch)
ch               1713 drivers/infiniband/ulp/srpt/ib_srpt.c 	WARN_ON_ONCE(ch->state == CH_CONNECTING);
ch               1715 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (list_empty(&ch->cmd_wait_list))
ch               1718 drivers/infiniband/ulp/srpt/ib_srpt.c 	WARN_ON_ONCE(ch->processing_wait_list);
ch               1719 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch->processing_wait_list = true;
ch               1720 drivers/infiniband/ulp/srpt/ib_srpt.c 	list_for_each_entry_safe(recv_ioctx, tmp, &ch->cmd_wait_list,
ch               1722 drivers/infiniband/ulp/srpt/ib_srpt.c 		if (!srpt_handle_new_iu(ch, recv_ioctx))
ch               1725 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch->processing_wait_list = false;
ch               1747 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_rdma_ch *ch = cq->cq_context;
ch               1757 drivers/infiniband/ulp/srpt/ib_srpt.c 	atomic_add(1 + ioctx->n_rdma, &ch->sq_wr_avail);
ch               1770 drivers/infiniband/ulp/srpt/ib_srpt.c 	srpt_process_wait_list(ch);
ch               1777 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_create_ch_ib(struct srpt_rdma_ch *ch)
ch               1780 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_port *sport = ch->sport;
ch               1786 drivers/infiniband/ulp/srpt/ib_srpt.c 	WARN_ON(ch->rq_size < 1);
ch               1794 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch->cq = ib_alloc_cq_any(sdev->device, ch, ch->rq_size + sq_size,
ch               1796 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (IS_ERR(ch->cq)) {
ch               1797 drivers/infiniband/ulp/srpt/ib_srpt.c 		ret = PTR_ERR(ch->cq);
ch               1799 drivers/infiniband/ulp/srpt/ib_srpt.c 		       ch->rq_size + sq_size, ret);
ch               1803 drivers/infiniband/ulp/srpt/ib_srpt.c 	qp_init->qp_context = (void *)ch;
ch               1806 drivers/infiniband/ulp/srpt/ib_srpt.c 	qp_init->send_cq = ch->cq;
ch               1807 drivers/infiniband/ulp/srpt/ib_srpt.c 	qp_init->recv_cq = ch->cq;
ch               1823 drivers/infiniband/ulp/srpt/ib_srpt.c 	qp_init->port_num = ch->sport->port;
ch               1827 drivers/infiniband/ulp/srpt/ib_srpt.c 		qp_init->cap.max_recv_wr = ch->rq_size;
ch               1832 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (ch->using_rdma_cm) {
ch               1833 drivers/infiniband/ulp/srpt/ib_srpt.c 		ret = rdma_create_qp(ch->rdma_cm.cm_id, sdev->pd, qp_init);
ch               1834 drivers/infiniband/ulp/srpt/ib_srpt.c 		ch->qp = ch->rdma_cm.cm_id->qp;
ch               1836 drivers/infiniband/ulp/srpt/ib_srpt.c 		ch->qp = ib_create_qp(sdev->pd, qp_init);
ch               1837 drivers/infiniband/ulp/srpt/ib_srpt.c 		if (!IS_ERR(ch->qp)) {
ch               1838 drivers/infiniband/ulp/srpt/ib_srpt.c 			ret = srpt_init_ch_qp(ch, ch->qp);
ch               1840 drivers/infiniband/ulp/srpt/ib_srpt.c 				ib_destroy_qp(ch->qp);
ch               1842 drivers/infiniband/ulp/srpt/ib_srpt.c 			ret = PTR_ERR(ch->qp);
ch               1851 drivers/infiniband/ulp/srpt/ib_srpt.c 			ib_free_cq(ch->cq);
ch               1861 drivers/infiniband/ulp/srpt/ib_srpt.c 	atomic_set(&ch->sq_wr_avail, qp_init->cap.max_send_wr);
ch               1864 drivers/infiniband/ulp/srpt/ib_srpt.c 		 __func__, ch->cq->cqe, qp_init->cap.max_send_sge,
ch               1865 drivers/infiniband/ulp/srpt/ib_srpt.c 		 qp_init->cap.max_send_wr, ch);
ch               1868 drivers/infiniband/ulp/srpt/ib_srpt.c 		for (i = 0; i < ch->rq_size; i++)
ch               1869 drivers/infiniband/ulp/srpt/ib_srpt.c 			srpt_post_recv(sdev, ch, ch->ioctx_recv_ring[i]);
ch               1876 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch->qp = NULL;
ch               1877 drivers/infiniband/ulp/srpt/ib_srpt.c 	ib_free_cq(ch->cq);
ch               1881 drivers/infiniband/ulp/srpt/ib_srpt.c static void srpt_destroy_ch_ib(struct srpt_rdma_ch *ch)
ch               1883 drivers/infiniband/ulp/srpt/ib_srpt.c 	ib_destroy_qp(ch->qp);
ch               1884 drivers/infiniband/ulp/srpt/ib_srpt.c 	ib_free_cq(ch->cq);
ch               1897 drivers/infiniband/ulp/srpt/ib_srpt.c static bool srpt_close_ch(struct srpt_rdma_ch *ch)
ch               1901 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (!srpt_set_ch_state(ch, CH_DRAINING)) {
ch               1902 drivers/infiniband/ulp/srpt/ib_srpt.c 		pr_debug("%s: already closed\n", ch->sess_name);
ch               1906 drivers/infiniband/ulp/srpt/ib_srpt.c 	kref_get(&ch->kref);
ch               1908 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = srpt_ch_qp_err(ch);
ch               1911 drivers/infiniband/ulp/srpt/ib_srpt.c 		       ch->sess_name, ch->qp->qp_num, ret);
ch               1913 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = srpt_zerolength_write(ch);
ch               1916 drivers/infiniband/ulp/srpt/ib_srpt.c 		       ch->sess_name, ch->qp->qp_num, ret);
ch               1917 drivers/infiniband/ulp/srpt/ib_srpt.c 		if (srpt_set_ch_state(ch, CH_DISCONNECTED))
ch               1918 drivers/infiniband/ulp/srpt/ib_srpt.c 			schedule_work(&ch->release_work);
ch               1923 drivers/infiniband/ulp/srpt/ib_srpt.c 	kref_put(&ch->kref, srpt_free_ch);
ch               1937 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_disconnect_ch(struct srpt_rdma_ch *ch)
ch               1941 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (!srpt_set_ch_state(ch, CH_DISCONNECTING))
ch               1944 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (ch->using_rdma_cm) {
ch               1945 drivers/infiniband/ulp/srpt/ib_srpt.c 		ret = rdma_disconnect(ch->rdma_cm.cm_id);
ch               1947 drivers/infiniband/ulp/srpt/ib_srpt.c 		ret = ib_send_cm_dreq(ch->ib_cm.cm_id, NULL, 0);
ch               1949 drivers/infiniband/ulp/srpt/ib_srpt.c 			ret = ib_send_cm_drep(ch->ib_cm.cm_id, NULL, 0);
ch               1952 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (ret < 0 && srpt_close_ch(ch))
ch               1958 drivers/infiniband/ulp/srpt/ib_srpt.c static bool srpt_ch_closed(struct srpt_port *sport, struct srpt_rdma_ch *ch)
ch               1967 drivers/infiniband/ulp/srpt/ib_srpt.c 			if (ch2 == ch) {
ch               1980 drivers/infiniband/ulp/srpt/ib_srpt.c static void srpt_disconnect_ch_sync(struct srpt_rdma_ch *ch)
ch               1982 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_port *sport = ch->sport;
ch               1984 drivers/infiniband/ulp/srpt/ib_srpt.c 	pr_debug("ch %s-%d state %d\n", ch->sess_name, ch->qp->qp_num,
ch               1985 drivers/infiniband/ulp/srpt/ib_srpt.c 		 ch->state);
ch               1988 drivers/infiniband/ulp/srpt/ib_srpt.c 	srpt_disconnect_ch(ch);
ch               1991 drivers/infiniband/ulp/srpt/ib_srpt.c 	while (wait_event_timeout(sport->ch_releaseQ, srpt_ch_closed(sport, ch),
ch               1994 drivers/infiniband/ulp/srpt/ib_srpt.c 			ch->sess_name, ch->qp->qp_num, ch->state);
ch               2001 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_rdma_ch *ch;
ch               2006 drivers/infiniband/ulp/srpt/ib_srpt.c 		list_for_each_entry(ch, &nexus->ch_list, list) {
ch               2007 drivers/infiniband/ulp/srpt/ib_srpt.c 			if (srpt_disconnect_ch(ch) >= 0)
ch               2009 drivers/infiniband/ulp/srpt/ib_srpt.c 					ch->sess_name,
ch               2012 drivers/infiniband/ulp/srpt/ib_srpt.c 			srpt_close_ch(ch);
ch               2074 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_rdma_ch *ch = container_of(kref, struct srpt_rdma_ch, kref);
ch               2076 drivers/infiniband/ulp/srpt/ib_srpt.c 	kfree_rcu(ch, rcu);
ch               2089 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_rdma_ch *ch;
ch               2094 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch = container_of(w, struct srpt_rdma_ch, release_work);
ch               2095 drivers/infiniband/ulp/srpt/ib_srpt.c 	pr_debug("%s-%d\n", ch->sess_name, ch->qp->qp_num);
ch               2097 drivers/infiniband/ulp/srpt/ib_srpt.c 	sdev = ch->sport->sdev;
ch               2100 drivers/infiniband/ulp/srpt/ib_srpt.c 	se_sess = ch->sess;
ch               2107 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch->sess = NULL;
ch               2109 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (ch->using_rdma_cm)
ch               2110 drivers/infiniband/ulp/srpt/ib_srpt.c 		rdma_destroy_id(ch->rdma_cm.cm_id);
ch               2112 drivers/infiniband/ulp/srpt/ib_srpt.c 		ib_destroy_cm_id(ch->ib_cm.cm_id);
ch               2114 drivers/infiniband/ulp/srpt/ib_srpt.c 	sport = ch->sport;
ch               2116 drivers/infiniband/ulp/srpt/ib_srpt.c 	list_del_rcu(&ch->list);
ch               2119 drivers/infiniband/ulp/srpt/ib_srpt.c 	srpt_destroy_ch_ib(ch);
ch               2121 drivers/infiniband/ulp/srpt/ib_srpt.c 	srpt_free_ioctx_ring((struct srpt_ioctx **)ch->ioctx_ring,
ch               2122 drivers/infiniband/ulp/srpt/ib_srpt.c 			     ch->sport->sdev, ch->rq_size,
ch               2123 drivers/infiniband/ulp/srpt/ib_srpt.c 			     ch->rsp_buf_cache, DMA_TO_DEVICE);
ch               2125 drivers/infiniband/ulp/srpt/ib_srpt.c 	kmem_cache_destroy(ch->rsp_buf_cache);
ch               2127 drivers/infiniband/ulp/srpt/ib_srpt.c 	srpt_free_ioctx_ring((struct srpt_ioctx **)ch->ioctx_recv_ring,
ch               2128 drivers/infiniband/ulp/srpt/ib_srpt.c 			     sdev, ch->rq_size,
ch               2129 drivers/infiniband/ulp/srpt/ib_srpt.c 			     ch->req_buf_cache, DMA_FROM_DEVICE);
ch               2131 drivers/infiniband/ulp/srpt/ib_srpt.c 	kmem_cache_destroy(ch->req_buf_cache);
ch               2135 drivers/infiniband/ulp/srpt/ib_srpt.c 	kref_put(&ch->kref, srpt_free_ch);
ch               2167 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_rdma_ch *ch = NULL;
ch               2223 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch = kzalloc(sizeof(*ch), GFP_KERNEL);
ch               2224 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (!ch) {
ch               2230 drivers/infiniband/ulp/srpt/ib_srpt.c 	kref_init(&ch->kref);
ch               2231 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch->pkey = be16_to_cpu(pkey);
ch               2232 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch->nexus = nexus;
ch               2233 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch->zw_cqe.done = srpt_zerolength_write_done;
ch               2234 drivers/infiniband/ulp/srpt/ib_srpt.c 	INIT_WORK(&ch->release_work, srpt_release_channel_work);
ch               2235 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch->sport = sport;
ch               2237 drivers/infiniband/ulp/srpt/ib_srpt.c 		ch->ib_cm.cm_id = ib_cm_id;
ch               2238 drivers/infiniband/ulp/srpt/ib_srpt.c 		ib_cm_id->context = ch;
ch               2240 drivers/infiniband/ulp/srpt/ib_srpt.c 		ch->using_rdma_cm = true;
ch               2241 drivers/infiniband/ulp/srpt/ib_srpt.c 		ch->rdma_cm.cm_id = rdma_cm_id;
ch               2242 drivers/infiniband/ulp/srpt/ib_srpt.c 		rdma_cm_id->context = ch;
ch               2249 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch->rq_size = min(MAX_SRPT_RQ_SIZE, sdev->device->attrs.max_qp_wr);
ch               2250 drivers/infiniband/ulp/srpt/ib_srpt.c 	spin_lock_init(&ch->spinlock);
ch               2251 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch->state = CH_CONNECTING;
ch               2252 drivers/infiniband/ulp/srpt/ib_srpt.c 	INIT_LIST_HEAD(&ch->cmd_wait_list);
ch               2253 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch->max_rsp_size = ch->sport->port_attrib.srp_max_rsp_size;
ch               2255 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch->rsp_buf_cache = kmem_cache_create("srpt-rsp-buf", ch->max_rsp_size,
ch               2257 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (!ch->rsp_buf_cache)
ch               2260 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch->ioctx_ring = (struct srpt_send_ioctx **)
ch               2261 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_alloc_ioctx_ring(ch->sport->sdev, ch->rq_size,
ch               2262 drivers/infiniband/ulp/srpt/ib_srpt.c 				      sizeof(*ch->ioctx_ring[0]),
ch               2263 drivers/infiniband/ulp/srpt/ib_srpt.c 				      ch->rsp_buf_cache, 0, DMA_TO_DEVICE);
ch               2264 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (!ch->ioctx_ring) {
ch               2270 drivers/infiniband/ulp/srpt/ib_srpt.c 	for (i = 0; i < ch->rq_size; i++)
ch               2271 drivers/infiniband/ulp/srpt/ib_srpt.c 		ch->ioctx_ring[i]->ch = ch;
ch               2282 drivers/infiniband/ulp/srpt/ib_srpt.c 			ch->imm_data_offset = imm_data_offset;
ch               2285 drivers/infiniband/ulp/srpt/ib_srpt.c 			ch->imm_data_offset = 0;
ch               2290 drivers/infiniband/ulp/srpt/ib_srpt.c 		ch->req_buf_cache = kmem_cache_create("srpt-req-buf", req_sz,
ch               2292 drivers/infiniband/ulp/srpt/ib_srpt.c 		if (!ch->req_buf_cache)
ch               2295 drivers/infiniband/ulp/srpt/ib_srpt.c 		ch->ioctx_recv_ring = (struct srpt_recv_ioctx **)
ch               2296 drivers/infiniband/ulp/srpt/ib_srpt.c 			srpt_alloc_ioctx_ring(ch->sport->sdev, ch->rq_size,
ch               2297 drivers/infiniband/ulp/srpt/ib_srpt.c 					      sizeof(*ch->ioctx_recv_ring[0]),
ch               2298 drivers/infiniband/ulp/srpt/ib_srpt.c 					      ch->req_buf_cache,
ch               2301 drivers/infiniband/ulp/srpt/ib_srpt.c 		if (!ch->ioctx_recv_ring) {
ch               2307 drivers/infiniband/ulp/srpt/ib_srpt.c 		for (i = 0; i < ch->rq_size; i++)
ch               2308 drivers/infiniband/ulp/srpt/ib_srpt.c 			INIT_LIST_HEAD(&ch->ioctx_recv_ring[i]->wait_list);
ch               2311 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = srpt_create_ch_ib(ch);
ch               2318 drivers/infiniband/ulp/srpt/ib_srpt.c 	strlcpy(ch->sess_name, src_addr, sizeof(ch->sess_name));
ch               2323 drivers/infiniband/ulp/srpt/ib_srpt.c 	pr_debug("registering session %s\n", ch->sess_name);
ch               2325 drivers/infiniband/ulp/srpt/ib_srpt.c 	tag_num = ch->rq_size;
ch               2328 drivers/infiniband/ulp/srpt/ib_srpt.c 		ch->sess = target_setup_session(&sport->port_guid_tpg, tag_num,
ch               2330 drivers/infiniband/ulp/srpt/ib_srpt.c 						ch->sess_name, ch, NULL);
ch               2331 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (sport->port_gid_tpg.se_tpg_wwn && IS_ERR_OR_NULL(ch->sess))
ch               2332 drivers/infiniband/ulp/srpt/ib_srpt.c 		ch->sess = target_setup_session(&sport->port_gid_tpg, tag_num,
ch               2334 drivers/infiniband/ulp/srpt/ib_srpt.c 					ch, NULL);
ch               2336 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (sport->port_gid_tpg.se_tpg_wwn && IS_ERR_OR_NULL(ch->sess))
ch               2337 drivers/infiniband/ulp/srpt/ib_srpt.c 		ch->sess = target_setup_session(&sport->port_gid_tpg, tag_num,
ch               2339 drivers/infiniband/ulp/srpt/ib_srpt.c 						i_port_id + 2, ch, NULL);
ch               2340 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (IS_ERR_OR_NULL(ch->sess)) {
ch               2341 drivers/infiniband/ulp/srpt/ib_srpt.c 		WARN_ON_ONCE(ch->sess == NULL);
ch               2342 drivers/infiniband/ulp/srpt/ib_srpt.c 		ret = PTR_ERR(ch->sess);
ch               2343 drivers/infiniband/ulp/srpt/ib_srpt.c 		ch->sess = NULL;
ch               2345 drivers/infiniband/ulp/srpt/ib_srpt.c 			ch->sess_name, ret);
ch               2368 drivers/infiniband/ulp/srpt/ib_srpt.c 	list_add_tail_rcu(&ch->list, &nexus->ch_list);
ch               2381 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = ch->using_rdma_cm ? 0 : srpt_ch_qp_rtr(ch, ch->qp);
ch               2389 drivers/infiniband/ulp/srpt/ib_srpt.c 	pr_debug("Establish connection sess=%p name=%s ch=%p\n", ch->sess,
ch               2390 drivers/infiniband/ulp/srpt/ib_srpt.c 		 ch->sess_name, ch);
ch               2397 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch->max_ti_iu_len = it_iu_len;
ch               2400 drivers/infiniband/ulp/srpt/ib_srpt.c 	rsp->req_lim_delta = cpu_to_be32(ch->rq_size);
ch               2401 drivers/infiniband/ulp/srpt/ib_srpt.c 	atomic_set(&ch->req_lim, ch->rq_size);
ch               2402 drivers/infiniband/ulp/srpt/ib_srpt.c 	atomic_set(&ch->req_lim_delta, 0);
ch               2405 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (ch->using_rdma_cm) {
ch               2413 drivers/infiniband/ulp/srpt/ib_srpt.c 		rep_param->ib_cm.qp_num = ch->qp->qp_num;
ch               2429 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (sport->enabled && ch->state == CH_CONNECTING) {
ch               2430 drivers/infiniband/ulp/srpt/ib_srpt.c 		if (ch->using_rdma_cm)
ch               2454 drivers/infiniband/ulp/srpt/ib_srpt.c 	srpt_destroy_ch_ib(ch);
ch               2457 drivers/infiniband/ulp/srpt/ib_srpt.c 	srpt_free_ioctx_ring((struct srpt_ioctx **)ch->ioctx_recv_ring,
ch               2458 drivers/infiniband/ulp/srpt/ib_srpt.c 			     ch->sport->sdev, ch->rq_size,
ch               2459 drivers/infiniband/ulp/srpt/ib_srpt.c 			     ch->req_buf_cache, DMA_FROM_DEVICE);
ch               2462 drivers/infiniband/ulp/srpt/ib_srpt.c 	kmem_cache_destroy(ch->req_buf_cache);
ch               2465 drivers/infiniband/ulp/srpt/ib_srpt.c 	srpt_free_ioctx_ring((struct srpt_ioctx **)ch->ioctx_ring,
ch               2466 drivers/infiniband/ulp/srpt/ib_srpt.c 			     ch->sport->sdev, ch->rq_size,
ch               2467 drivers/infiniband/ulp/srpt/ib_srpt.c 			     ch->rsp_buf_cache, DMA_TO_DEVICE);
ch               2470 drivers/infiniband/ulp/srpt/ib_srpt.c 	kmem_cache_destroy(ch->rsp_buf_cache);
ch               2477 drivers/infiniband/ulp/srpt/ib_srpt.c 	kfree(ch);
ch               2478 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch = NULL;
ch               2495 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (ch && ch->sess) {
ch               2496 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_close_ch(ch);
ch               2560 drivers/infiniband/ulp/srpt/ib_srpt.c static void srpt_cm_rej_recv(struct srpt_rdma_ch *ch,
ch               2574 drivers/infiniband/ulp/srpt/ib_srpt.c 		ch->sess_name, ch->qp->qp_num, reason, private_data_len ?
ch               2586 drivers/infiniband/ulp/srpt/ib_srpt.c static void srpt_cm_rtu_recv(struct srpt_rdma_ch *ch)
ch               2590 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = ch->using_rdma_cm ? 0 : srpt_ch_qp_rts(ch, ch->qp);
ch               2592 drivers/infiniband/ulp/srpt/ib_srpt.c 		pr_err("%s-%d: QP transition to RTS failed\n", ch->sess_name,
ch               2593 drivers/infiniband/ulp/srpt/ib_srpt.c 		       ch->qp->qp_num);
ch               2594 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_close_ch(ch);
ch               2603 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (!srpt_set_ch_state(ch, CH_LIVE)) {
ch               2605 drivers/infiniband/ulp/srpt/ib_srpt.c 		       ch->sess_name, ch->qp->qp_num);
ch               2610 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = srpt_zerolength_write(ch);
ch               2629 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_rdma_ch *ch = cm_id->context;
ch               2639 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_cm_rej_recv(ch, event->param.rej_rcvd.reason,
ch               2645 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_cm_rtu_recv(ch);
ch               2648 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_disconnect_ch(ch);
ch               2652 drivers/infiniband/ulp/srpt/ib_srpt.c 			ch->sess_name, ch->qp->qp_num);
ch               2653 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_close_ch(ch);
ch               2657 drivers/infiniband/ulp/srpt/ib_srpt.c 			ch->sess_name, ch->qp->qp_num);
ch               2658 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_close_ch(ch);
ch               2661 drivers/infiniband/ulp/srpt/ib_srpt.c 		pr_info("Received CM REP error for ch %s-%d.\n", ch->sess_name,
ch               2662 drivers/infiniband/ulp/srpt/ib_srpt.c 			ch->qp->qp_num);
ch               2681 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_rdma_ch *ch = cm_id->context;
ch               2689 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_cm_rej_recv(ch, event->status,
ch               2694 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_cm_rtu_recv(ch);
ch               2697 drivers/infiniband/ulp/srpt/ib_srpt.c 		if (ch->state < CH_DISCONNECTING)
ch               2698 drivers/infiniband/ulp/srpt/ib_srpt.c 			srpt_disconnect_ch(ch);
ch               2700 drivers/infiniband/ulp/srpt/ib_srpt.c 			srpt_close_ch(ch);
ch               2703 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_close_ch(ch);
ch               2706 drivers/infiniband/ulp/srpt/ib_srpt.c 		pr_info("Received CM REP error for ch %s-%d.\n", ch->sess_name,
ch               2707 drivers/infiniband/ulp/srpt/ib_srpt.c 			ch->qp->qp_num);
ch               2728 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_rdma_ch *ch = ioctx->ch;
ch               2743 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (atomic_sub_return(ioctx->n_rdma, &ch->sq_wr_avail) < 0) {
ch               2754 drivers/infiniband/ulp/srpt/ib_srpt.c 		first_wr = rdma_rw_ctx_wrs(&ctx->rw, ch->qp, ch->sport->port,
ch               2759 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = ib_post_send(ch->qp, first_wr, NULL);
ch               2763 drivers/infiniband/ulp/srpt/ib_srpt.c 			 atomic_read(&ch->sq_wr_avail));
ch               2769 drivers/infiniband/ulp/srpt/ib_srpt.c 	atomic_add(ioctx->n_rdma, &ch->sq_wr_avail);
ch               2795 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_rdma_ch *ch = ioctx->ch;
ch               2796 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_device *sdev = ch->sport->sdev;
ch               2803 drivers/infiniband/ulp/srpt/ib_srpt.c 	BUG_ON(!ch);
ch               2816 drivers/infiniband/ulp/srpt/ib_srpt.c 			ch, ioctx->ioctx.index, ioctx->state);
ch               2830 drivers/infiniband/ulp/srpt/ib_srpt.c 			first_wr = rdma_rw_ctx_wrs(&ctx->rw, ch->qp,
ch               2831 drivers/infiniband/ulp/srpt/ib_srpt.c 					ch->sport->port, NULL, first_wr);
ch               2836 drivers/infiniband/ulp/srpt/ib_srpt.c 		resp_len = srpt_build_cmd_rsp(ch, ioctx, ioctx->cmd.tag,
ch               2841 drivers/infiniband/ulp/srpt/ib_srpt.c 		resp_len = srpt_build_tskmgmt_rsp(ch, ioctx, srp_tm_status,
ch               2845 drivers/infiniband/ulp/srpt/ib_srpt.c 	atomic_inc(&ch->req_lim);
ch               2848 drivers/infiniband/ulp/srpt/ib_srpt.c 			&ch->sq_wr_avail) < 0)) {
ch               2870 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = ib_post_send(ch->qp, first_wr, NULL);
ch               2880 drivers/infiniband/ulp/srpt/ib_srpt.c 	atomic_add(1 + ioctx->n_rdma, &ch->sq_wr_avail);
ch               2881 drivers/infiniband/ulp/srpt/ib_srpt.c 	atomic_dec(&ch->req_lim);
ch               2907 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_rdma_ch *ch = ioctx->ch;
ch               2909 drivers/infiniband/ulp/srpt/ib_srpt.c 	atomic_inc(&ch->req_lim_delta);
ch               2954 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_rdma_ch *ch;
ch               2968 drivers/infiniband/ulp/srpt/ib_srpt.c 			list_for_each_entry(ch, &nexus->ch_list, list) {
ch               2970 drivers/infiniband/ulp/srpt/ib_srpt.c 					ch->sess_name, ch->qp->qp_num,
ch               2971 drivers/infiniband/ulp/srpt/ib_srpt.c 					get_ch_state_name(ch->state));
ch               3309 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_rdma_ch *ch = ioctx->ch;
ch               3318 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_post_recv(ch->sport->sdev, ch, recv_ioctx);
ch               3322 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_free_rw_ctxs(ch, ioctx);
ch               3339 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_rdma_ch *ch = se_sess->fabric_sess_ptr;
ch               3341 drivers/infiniband/ulp/srpt/ib_srpt.c 	srpt_disconnect_ch_sync(ch);
ch                220 drivers/infiniband/ulp/srpt/ib_srpt.h 	struct srpt_rdma_ch	*ch;
ch                 98 drivers/input/touchscreen/mxs-lradc-ts.c 				     unsigned int ch)
ch                102 drivers/input/touchscreen/mxs-lradc-ts.c 	writel(LRADC_CTRL4_LRADCSELECT(vch, ch),
ch                106 drivers/input/touchscreen/mxs-lradc-ts.c static void mxs_lradc_setup_ts_channel(struct mxs_lradc_ts *ts, unsigned int ch)
ch                118 drivers/input/touchscreen/mxs-lradc-ts.c 	       ts->base + LRADC_CH(ch));
ch                125 drivers/input/touchscreen/mxs-lradc-ts.c 	       ts->base + LRADC_CH(ch) + STMP_OFFSET_REG_CLR);
ch                135 drivers/input/touchscreen/mxs-lradc-ts.c 	writel(LRADC_DELAY_TRIGGER(1 << ch) | LRADC_DELAY_TRIGGER_DELAYS(0) |
ch                140 drivers/input/touchscreen/mxs-lradc-ts.c 	writel(LRADC_CTRL1_LRADC_IRQ(ch),
ch                 88 drivers/input/touchscreen/pcap_ts.c 	u8 ch[2];
ch                 97 drivers/input/touchscreen/pcap_ts.c 	ch[0] = PCAP_ADC_CH_TS_X1;
ch                 98 drivers/input/touchscreen/pcap_ts.c 	ch[1] = PCAP_ADC_CH_TS_Y1;
ch                 99 drivers/input/touchscreen/pcap_ts.c 	pcap_adc_async(pcap_ts->pcap, PCAP_ADC_BANK_1, 0, ch,
ch                136 drivers/input/touchscreen/sx8654.c 	u16 ch;
ch                171 drivers/input/touchscreen/sx8654.c 		ch = chdata >> 12;
ch                172 drivers/input/touchscreen/sx8654.c 		if (ch == CH_X)
ch                174 drivers/input/touchscreen/sx8654.c 		else if (ch == CH_Y)
ch                177 drivers/input/touchscreen/sx8654.c 			dev_warn(dev, "unknown channel %d [0x%04x]\n", ch,
ch               1081 drivers/isdn/capi/capi.c static int capinc_tty_put_char(struct tty_struct *tty, unsigned char ch)
ch               1088 drivers/isdn/capi/capi.c 	pr_debug("capinc_put_char(%u)\n", ch);
ch               1094 drivers/isdn/capi/capi.c 			skb_put_u8(skb, ch);
ch               1106 drivers/isdn/capi/capi.c 		skb_put_u8(skb, ch);
ch               1109 drivers/isdn/capi/capi.c 		printk(KERN_ERR "capinc_put_char: char %u lost\n", ch);
ch               1228 drivers/isdn/capi/capi.c static void capinc_tty_send_xchar(struct tty_struct *tty, char ch)
ch               1230 drivers/isdn/capi/capi.c 	pr_debug("capinc_tty_send_xchar(%d)\n", ch);
ch                680 drivers/isdn/hardware/mISDN/avmfritz.c avm_l2l1B(struct mISDNchannel *ch, struct sk_buff *skb)
ch                682 drivers/isdn/hardware/mISDN/avmfritz.c 	struct bchannel *bch = container_of(ch, struct bchannel, ch);
ch                701 drivers/isdn/hardware/mISDN/avmfritz.c 			ret = modehdlc(bch, ch->protocol);
ch                706 drivers/isdn/hardware/mISDN/avmfritz.c 			_queue_data(ch, PH_ACTIVATE_IND, MISDN_ID_ANY, 0,
ch                714 drivers/isdn/hardware/mISDN/avmfritz.c 		_queue_data(ch, PH_DEACTIVATE_IND, MISDN_ID_ANY, 0,
ch                836 drivers/isdn/hardware/mISDN/avmfritz.c avm_bctrl(struct mISDNchannel *ch, u32 cmd, void *arg)
ch                838 drivers/isdn/hardware/mISDN/avmfritz.c 	struct bchannel *bch = container_of(ch, struct bchannel, ch);
ch                852 drivers/isdn/hardware/mISDN/avmfritz.c 		ch->protocol = ISDN_P_NONE;
ch                853 drivers/isdn/hardware/mISDN/avmfritz.c 		ch->peer = NULL;
ch                906 drivers/isdn/hardware/mISDN/avmfritz.c 	bch->ch.protocol = rq->protocol;
ch                907 drivers/isdn/hardware/mISDN/avmfritz.c 	rq->ch = &bch->ch;
ch                915 drivers/isdn/hardware/mISDN/avmfritz.c avm_dctrl(struct mISDNchannel *ch, u32 cmd, void *arg)
ch                917 drivers/isdn/hardware/mISDN/avmfritz.c 	struct mISDNdevice	*dev = container_of(ch, struct mISDNdevice, D);
ch               1054 drivers/isdn/hardware/mISDN/avmfritz.c 		card->bch[i].ch.send = avm_l2l1B;
ch               1055 drivers/isdn/hardware/mISDN/avmfritz.c 		card->bch[i].ch.ctrl = avm_bctrl;
ch               1056 drivers/isdn/hardware/mISDN/avmfritz.c 		card->bch[i].ch.nr = i + 1;
ch               1057 drivers/isdn/hardware/mISDN/avmfritz.c 		list_add(&card->bch[i].ch.list, &card->isac.dch.dev.bchannels);
ch                840 drivers/isdn/hardware/mISDN/hfcmulti.c vpm_echocan_on(struct hfc_multi *hc, int ch, int taps)
ch                844 drivers/isdn/hardware/mISDN/hfcmulti.c 	struct bchannel *bch = hc->chan[ch].bch;
ch                849 drivers/isdn/hardware/mISDN/hfcmulti.c 	if (hc->chan[ch].protocol != ISDN_P_B_RAW)
ch                862 drivers/isdn/hardware/mISDN/hfcmulti.c 	timeslot = ((ch / 4) * 8) + ((ch % 4) * 4) + 1;
ch                863 drivers/isdn/hardware/mISDN/hfcmulti.c 	unit = ch % 4;
ch                872 drivers/isdn/hardware/mISDN/hfcmulti.c vpm_echocan_off(struct hfc_multi *hc, int ch)
ch                876 drivers/isdn/hardware/mISDN/hfcmulti.c 	struct bchannel *bch = hc->chan[ch].bch;
ch                882 drivers/isdn/hardware/mISDN/hfcmulti.c 	if (hc->chan[ch].protocol != ISDN_P_B_RAW)
ch                895 drivers/isdn/hardware/mISDN/hfcmulti.c 	timeslot = ((ch / 4) * 8) + ((ch % 4) * 4) + 1;
ch                896 drivers/isdn/hardware/mISDN/hfcmulti.c 	unit = ch % 4;
ch               1829 drivers/isdn/hardware/mISDN/hfcmulti.c 	int		co, ch;
ch               1840 drivers/isdn/hardware/mISDN/hfcmulti.c 	for (ch = 0; ch <= 31; ch++) {
ch               1842 drivers/isdn/hardware/mISDN/hfcmulti.c 		bch = hc->chan[ch].bch;
ch               1845 drivers/isdn/hardware/mISDN/hfcmulti.c 		if (!hc->created[hc->chan[ch].port])
ch               1851 drivers/isdn/hardware/mISDN/hfcmulti.c 			       __func__, ch);
ch               1852 drivers/isdn/hardware/mISDN/hfcmulti.c 		coeff = &(hc->chan[ch].coeff[hc->chan[ch].coeff_count * 16]);
ch               1856 drivers/isdn/hardware/mISDN/hfcmulti.c 			addr = hc->DTMFbase + ((co << 7) | (ch << 2));
ch               1903 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->chan[ch].coeff_count++;
ch               1904 drivers/isdn/hardware/mISDN/hfcmulti.c 		if (hc->chan[ch].coeff_count == 8) {
ch               1905 drivers/isdn/hardware/mISDN/hfcmulti.c 			hc->chan[ch].coeff_count = 0;
ch               1915 drivers/isdn/hardware/mISDN/hfcmulti.c 			skb_put_data(skb, hc->chan[ch].coeff, 512);
ch               1932 drivers/isdn/hardware/mISDN/hfcmulti.c hfcmulti_tx(struct hfc_multi *hc, int ch)
ch               1944 drivers/isdn/hardware/mISDN/hfcmulti.c 	bch = hc->chan[ch].bch;
ch               1945 drivers/isdn/hardware/mISDN/hfcmulti.c 	dch = hc->chan[ch].dch;
ch               1949 drivers/isdn/hardware/mISDN/hfcmulti.c 	txpending = &hc->chan[ch].txpending;
ch               1950 drivers/isdn/hardware/mISDN/hfcmulti.c 	slot_tx = hc->chan[ch].slot_tx;
ch               1969 drivers/isdn/hardware/mISDN/hfcmulti.c 	    (hc->chan[ch].protocol == ISDN_P_B_RAW) &&
ch               1970 drivers/isdn/hardware/mISDN/hfcmulti.c 	    (hc->chan[ch].slot_rx < 0) &&
ch               1971 drivers/isdn/hardware/mISDN/hfcmulti.c 	    (hc->chan[ch].slot_tx < 0))
ch               1972 drivers/isdn/hardware/mISDN/hfcmulti.c 		HFC_outb_nodebug(hc, R_FIFO, 0x20 | (ch << 1));
ch               1974 drivers/isdn/hardware/mISDN/hfcmulti.c 		HFC_outb_nodebug(hc, R_FIFO, ch << 1);
ch               2027 drivers/isdn/hardware/mISDN/hfcmulti.c 	hc->chan[ch].Zfill = z1 - z2;
ch               2028 drivers/isdn/hardware/mISDN/hfcmulti.c 	if (hc->chan[ch].Zfill < 0)
ch               2029 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->chan[ch].Zfill += hc->Zlen;
ch               2051 drivers/isdn/hardware/mISDN/hfcmulti.c 					       __func__, ch, slot_tx);
ch               2060 drivers/isdn/hardware/mISDN/hfcmulti.c 				HFC_outb_nodebug(hc, R_FIFO, ch << 1 | 1);
ch               2069 drivers/isdn/hardware/mISDN/hfcmulti.c 				HFC_outb_nodebug(hc, R_FIFO, ch << 1);
ch               2094 drivers/isdn/hardware/mISDN/hfcmulti.c 			       __func__, ch, slot_tx);
ch               2103 drivers/isdn/hardware/mISDN/hfcmulti.c 		HFC_outb_nodebug(hc, R_FIFO, ch << 1 | 1);
ch               2112 drivers/isdn/hardware/mISDN/hfcmulti.c 		HFC_outb_nodebug(hc, R_FIFO, ch << 1);
ch               2119 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->activity_tx |= 1 << hc->chan[ch].port;
ch               2134 drivers/isdn/hardware/mISDN/hfcmulti.c 		       __func__, hc->id + 1, ch, Zspace, z1, z2, ii-i, len-i,
ch               2139 drivers/isdn/hardware/mISDN/hfcmulti.c 	hc->chan[ch].Zfill += ii - i;
ch               2178 drivers/isdn/hardware/mISDN/hfcmulti.c hfcmulti_rx(struct hfc_multi *hc, int ch)
ch               2189 drivers/isdn/hardware/mISDN/hfcmulti.c 	bch = hc->chan[ch].bch;
ch               2193 drivers/isdn/hardware/mISDN/hfcmulti.c 	} else if (hc->chan[ch].dch) {
ch               2194 drivers/isdn/hardware/mISDN/hfcmulti.c 		dch = hc->chan[ch].dch;
ch               2204 drivers/isdn/hardware/mISDN/hfcmulti.c 	    (hc->chan[ch].protocol == ISDN_P_B_RAW) &&
ch               2205 drivers/isdn/hardware/mISDN/hfcmulti.c 	    (hc->chan[ch].slot_rx < 0) &&
ch               2206 drivers/isdn/hardware/mISDN/hfcmulti.c 	    (hc->chan[ch].slot_tx < 0))
ch               2207 drivers/isdn/hardware/mISDN/hfcmulti.c 		HFC_outb_nodebug(hc, R_FIFO, 0x20 | (ch << 1) | 1);
ch               2209 drivers/isdn/hardware/mISDN/hfcmulti.c 		HFC_outb_nodebug(hc, R_FIFO, (ch << 1) | 1);
ch               2213 drivers/isdn/hardware/mISDN/hfcmulti.c 	if (hc->chan[ch].rx_off) {
ch               2271 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->activity_rx |= 1 << hc->chan[ch].port;
ch               2278 drivers/isdn/hardware/mISDN/hfcmulti.c 			       "got=%d (again %d)\n", __func__, hc->id + 1, ch,
ch               2356 drivers/isdn/hardware/mISDN/hfcmulti.c 			       __func__, hc->id + 1, ch, Zsize, z1, z2);
ch               2358 drivers/isdn/hardware/mISDN/hfcmulti.c 		recv_Bchannel(bch, hc->chan[ch].Zfill, false);
ch               2387 drivers/isdn/hardware/mISDN/hfcmulti.c 	int		ch, temp;
ch               2423 drivers/isdn/hardware/mISDN/hfcmulti.c 		for (ch = 0; ch <= 31; ch++) {
ch               2424 drivers/isdn/hardware/mISDN/hfcmulti.c 			if (hc->created[hc->chan[ch].port]) {
ch               2425 drivers/isdn/hardware/mISDN/hfcmulti.c 				hfcmulti_tx(hc, ch);
ch               2427 drivers/isdn/hardware/mISDN/hfcmulti.c 				hfcmulti_rx(hc, ch);
ch               2428 drivers/isdn/hardware/mISDN/hfcmulti.c 				if (hc->chan[ch].dch &&
ch               2429 drivers/isdn/hardware/mISDN/hfcmulti.c 				    hc->chan[ch].nt_timer > -1) {
ch               2430 drivers/isdn/hardware/mISDN/hfcmulti.c 					dch = hc->chan[ch].dch;
ch               2431 drivers/isdn/hardware/mISDN/hfcmulti.c 					if (!(--hc->chan[ch].nt_timer)) {
ch               2565 drivers/isdn/hardware/mISDN/hfcmulti.c 	int		ch;
ch               2570 drivers/isdn/hardware/mISDN/hfcmulti.c 	for (ch = 0; ch <= 31; ch++) {
ch               2571 drivers/isdn/hardware/mISDN/hfcmulti.c 		if (hc->chan[ch].dch) {
ch               2572 drivers/isdn/hardware/mISDN/hfcmulti.c 			dch = hc->chan[ch].dch;
ch               2575 drivers/isdn/hardware/mISDN/hfcmulti.c 						 hc->chan[ch].port);
ch               2595 drivers/isdn/hardware/mISDN/hfcmulti.c 							(1 << hc->chan[ch].port);
ch               2598 drivers/isdn/hardware/mISDN/hfcmulti.c 							~(1 << hc->chan[ch].port);
ch               2607 drivers/isdn/hardware/mISDN/hfcmulti.c 							 (ch << 1) | 1);
ch               2619 drivers/isdn/hardware/mISDN/hfcmulti.c 					       hc->chan[ch].port);
ch               2631 drivers/isdn/hardware/mISDN/hfcmulti.c 	int	ch, j;
ch               2639 drivers/isdn/hardware/mISDN/hfcmulti.c 		ch = (block << 2) + (j >> 1);
ch               2640 drivers/isdn/hardware/mISDN/hfcmulti.c 		dch = hc->chan[ch].dch;
ch               2641 drivers/isdn/hardware/mISDN/hfcmulti.c 		bch = hc->chan[ch].bch;
ch               2642 drivers/isdn/hardware/mISDN/hfcmulti.c 		if (((!dch) && (!bch)) || (!hc->created[hc->chan[ch].port])) {
ch               2648 drivers/isdn/hardware/mISDN/hfcmulti.c 			hfcmulti_tx(hc, ch);
ch               2655 drivers/isdn/hardware/mISDN/hfcmulti.c 			hfcmulti_tx(hc, ch);
ch               2663 drivers/isdn/hardware/mISDN/hfcmulti.c 			hfcmulti_rx(hc, ch);
ch               2667 drivers/isdn/hardware/mISDN/hfcmulti.c 			hfcmulti_rx(hc, ch);
ch               2859 drivers/isdn/hardware/mISDN/hfcmulti.c mode_hfcmulti(struct hfc_multi *hc, int ch, int protocol, int slot_tx,
ch               2866 drivers/isdn/hardware/mISDN/hfcmulti.c 	if (ch < 0 || ch > 31)
ch               2868 drivers/isdn/hardware/mISDN/hfcmulti.c 	oslot_tx = hc->chan[ch].slot_tx;
ch               2869 drivers/isdn/hardware/mISDN/hfcmulti.c 	oslot_rx = hc->chan[ch].slot_rx;
ch               2870 drivers/isdn/hardware/mISDN/hfcmulti.c 	conf = hc->chan[ch].conf;
ch               2876 drivers/isdn/hardware/mISDN/hfcmulti.c 		       __func__, hc->id, ch, protocol, oslot_tx, slot_tx,
ch               2884 drivers/isdn/hardware/mISDN/hfcmulti.c 		if (hc->slot_owner[oslot_tx << 1] == ch) {
ch               2905 drivers/isdn/hardware/mISDN/hfcmulti.c 		if (hc->slot_owner[(oslot_rx << 1) | 1] == ch) {
ch               2922 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->chan[ch].slot_tx = -1;
ch               2923 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->chan[ch].bank_tx = 0;
ch               2926 drivers/isdn/hardware/mISDN/hfcmulti.c 		if (hc->chan[ch].txpending)
ch               2937 drivers/isdn/hardware/mISDN/hfcmulti.c 			       __func__, ch, slot_tx, bank_tx,
ch               2940 drivers/isdn/hardware/mISDN/hfcmulti.c 		HFC_outb(hc, A_SL_CFG, (ch << 1) | routing);
ch               2944 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->slot_owner[slot_tx << 1] = ch;
ch               2945 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->chan[ch].slot_tx = slot_tx;
ch               2946 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->chan[ch].bank_tx = bank_tx;
ch               2951 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->chan[ch].slot_rx = -1;
ch               2952 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->chan[ch].bank_rx = 0;
ch               2955 drivers/isdn/hardware/mISDN/hfcmulti.c 		if (hc->chan[ch].txpending)
ch               2966 drivers/isdn/hardware/mISDN/hfcmulti.c 			       __func__, ch, slot_rx, bank_rx,
ch               2969 drivers/isdn/hardware/mISDN/hfcmulti.c 		HFC_outb(hc, A_SL_CFG, (ch << 1) | V_CH_DIR | routing);
ch               2970 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->slot_owner[(slot_rx << 1) | 1] = ch;
ch               2971 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->chan[ch].slot_rx = slot_rx;
ch               2972 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->chan[ch].bank_rx = bank_rx;
ch               2978 drivers/isdn/hardware/mISDN/hfcmulti.c 		HFC_outb(hc, R_FIFO, ch << 1);
ch               2986 drivers/isdn/hardware/mISDN/hfcmulti.c 		HFC_outb(hc, R_FIFO, (ch << 1) | 1);
ch               2993 drivers/isdn/hardware/mISDN/hfcmulti.c 		if (hc->chan[ch].bch && hc->ctype != HFC_TYPE_E1) {
ch               2994 drivers/isdn/hardware/mISDN/hfcmulti.c 			hc->hw.a_st_ctrl0[hc->chan[ch].port] &=
ch               2995 drivers/isdn/hardware/mISDN/hfcmulti.c 				((ch & 0x3) == 0) ? ~V_B1_EN : ~V_B2_EN;
ch               2996 drivers/isdn/hardware/mISDN/hfcmulti.c 			HFC_outb(hc, R_ST_SEL, hc->chan[ch].port);
ch               3000 drivers/isdn/hardware/mISDN/hfcmulti.c 				 hc->hw.a_st_ctrl0[hc->chan[ch].port]);
ch               3002 drivers/isdn/hardware/mISDN/hfcmulti.c 		if (hc->chan[ch].bch) {
ch               3003 drivers/isdn/hardware/mISDN/hfcmulti.c 			test_and_clear_bit(FLG_HDLC, &hc->chan[ch].bch->Flags);
ch               3005 drivers/isdn/hardware/mISDN/hfcmulti.c 					   &hc->chan[ch].bch->Flags);
ch               3011 drivers/isdn/hardware/mISDN/hfcmulti.c 		    (hc->chan[ch].slot_rx < 0) &&
ch               3012 drivers/isdn/hardware/mISDN/hfcmulti.c 		    (hc->chan[ch].slot_tx < 0)) {
ch               3016 drivers/isdn/hardware/mISDN/hfcmulti.c 			       "state on PCM slot %d\n", ch,
ch               3017 drivers/isdn/hardware/mISDN/hfcmulti.c 			       ((ch / 4) * 8) + ((ch % 4) * 4) + 1);
ch               3020 drivers/isdn/hardware/mISDN/hfcmulti.c 			vpm_out(hc, ch, ((ch / 4) * 8) +
ch               3021 drivers/isdn/hardware/mISDN/hfcmulti.c 				((ch % 4) * 4) + 1, 0x01);
ch               3024 drivers/isdn/hardware/mISDN/hfcmulti.c 			HFC_outb(hc, R_FIFO, (ch << 1));
ch               3027 drivers/isdn/hardware/mISDN/hfcmulti.c 			HFC_outb(hc, R_SLOT, (((ch / 4) * 8) +
ch               3028 drivers/isdn/hardware/mISDN/hfcmulti.c 					      ((ch % 4) * 4) + 1) << 1);
ch               3029 drivers/isdn/hardware/mISDN/hfcmulti.c 			HFC_outb(hc, A_SL_CFG, 0x80 | (ch << 1));
ch               3032 drivers/isdn/hardware/mISDN/hfcmulti.c 			HFC_outb(hc, R_FIFO, 0x20 | (ch << 1) | 1);
ch               3037 drivers/isdn/hardware/mISDN/hfcmulti.c 			if (hc->chan[ch].protocol != protocol) {
ch               3041 drivers/isdn/hardware/mISDN/hfcmulti.c 			HFC_outb(hc, R_SLOT, ((((ch / 4) * 8) +
ch               3042 drivers/isdn/hardware/mISDN/hfcmulti.c 					       ((ch % 4) * 4) + 1) << 1) | 1);
ch               3043 drivers/isdn/hardware/mISDN/hfcmulti.c 			HFC_outb(hc, A_SL_CFG, 0x80 | 0x20 | (ch << 1) | 1);
ch               3047 drivers/isdn/hardware/mISDN/hfcmulti.c 			HFC_outb(hc, R_FIFO, (ch << 1) | 1);
ch               3050 drivers/isdn/hardware/mISDN/hfcmulti.c 			HFC_outb(hc, R_SLOT, ((((ch / 4) * 8) +
ch               3051 drivers/isdn/hardware/mISDN/hfcmulti.c 					       ((ch % 4) * 4)) << 1) | 1);
ch               3052 drivers/isdn/hardware/mISDN/hfcmulti.c 			HFC_outb(hc, A_SL_CFG, 0x80 | 0x40 | (ch << 1) | 1);
ch               3055 drivers/isdn/hardware/mISDN/hfcmulti.c 			HFC_outb(hc, R_FIFO, 0x20 | (ch << 1));
ch               3060 drivers/isdn/hardware/mISDN/hfcmulti.c 			if (hc->chan[ch].protocol != protocol) {
ch               3066 drivers/isdn/hardware/mISDN/hfcmulti.c 			HFC_outb(hc, R_SLOT, (((ch / 4) * 8) +
ch               3067 drivers/isdn/hardware/mISDN/hfcmulti.c 					      ((ch % 4) * 4)) << 1);
ch               3068 drivers/isdn/hardware/mISDN/hfcmulti.c 			HFC_outb(hc, A_SL_CFG, 0x80 | 0x20 | (ch << 1));
ch               3071 drivers/isdn/hardware/mISDN/hfcmulti.c 			HFC_outb(hc, R_FIFO, ch << 1);
ch               3082 drivers/isdn/hardware/mISDN/hfcmulti.c 			if (hc->chan[ch].protocol != protocol) {
ch               3089 drivers/isdn/hardware/mISDN/hfcmulti.c 			HFC_outb(hc, R_FIFO, (ch << 1) | 1);
ch               3100 drivers/isdn/hardware/mISDN/hfcmulti.c 			if (hc->chan[ch].protocol != protocol) {
ch               3106 drivers/isdn/hardware/mISDN/hfcmulti.c 			hc->hw.a_st_ctrl0[hc->chan[ch].port] |=
ch               3107 drivers/isdn/hardware/mISDN/hfcmulti.c 				((ch & 0x3) == 0) ? V_B1_EN : V_B2_EN;
ch               3108 drivers/isdn/hardware/mISDN/hfcmulti.c 			HFC_outb(hc, R_ST_SEL, hc->chan[ch].port);
ch               3112 drivers/isdn/hardware/mISDN/hfcmulti.c 				 hc->hw.a_st_ctrl0[hc->chan[ch].port]);
ch               3114 drivers/isdn/hardware/mISDN/hfcmulti.c 		if (hc->chan[ch].bch)
ch               3116 drivers/isdn/hardware/mISDN/hfcmulti.c 					 &hc->chan[ch].bch->Flags);
ch               3124 drivers/isdn/hardware/mISDN/hfcmulti.c 		HFC_outb(hc, R_FIFO, ch << 1);
ch               3126 drivers/isdn/hardware/mISDN/hfcmulti.c 		if (hc->ctype == HFC_TYPE_E1 || hc->chan[ch].bch) {
ch               3139 drivers/isdn/hardware/mISDN/hfcmulti.c 		HFC_outb(hc, R_FIFO, (ch << 1) | 1);
ch               3142 drivers/isdn/hardware/mISDN/hfcmulti.c 		if (hc->ctype == HFC_TYPE_E1 || hc->chan[ch].bch)
ch               3149 drivers/isdn/hardware/mISDN/hfcmulti.c 		if (hc->chan[ch].bch) {
ch               3150 drivers/isdn/hardware/mISDN/hfcmulti.c 			test_and_set_bit(FLG_HDLC, &hc->chan[ch].bch->Flags);
ch               3152 drivers/isdn/hardware/mISDN/hfcmulti.c 				hc->hw.a_st_ctrl0[hc->chan[ch].port] |=
ch               3153 drivers/isdn/hardware/mISDN/hfcmulti.c 					((ch & 0x3) == 0) ? V_B1_EN : V_B2_EN;
ch               3154 drivers/isdn/hardware/mISDN/hfcmulti.c 				HFC_outb(hc, R_ST_SEL, hc->chan[ch].port);
ch               3158 drivers/isdn/hardware/mISDN/hfcmulti.c 					 hc->hw.a_st_ctrl0[hc->chan[ch].port]);
ch               3165 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->chan[ch].protocol = ISDN_P_NONE;
ch               3168 drivers/isdn/hardware/mISDN/hfcmulti.c 	hc->chan[ch].protocol = protocol;
ch               3178 drivers/isdn/hardware/mISDN/hfcmulti.c hfcmulti_pcm(struct hfc_multi *hc, int ch, int slot_tx, int bank_tx,
ch               3183 drivers/isdn/hardware/mISDN/hfcmulti.c 		mode_hfcmulti(hc, ch, hc->chan[ch].protocol, -1, 0, -1, 0);
ch               3188 drivers/isdn/hardware/mISDN/hfcmulti.c 	mode_hfcmulti(hc, ch, hc->chan[ch].protocol, slot_tx, bank_tx,
ch               3197 drivers/isdn/hardware/mISDN/hfcmulti.c hfcmulti_conf(struct hfc_multi *hc, int ch, int num)
ch               3200 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->chan[ch].conf = num;
ch               3202 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->chan[ch].conf = -1;
ch               3203 drivers/isdn/hardware/mISDN/hfcmulti.c 	mode_hfcmulti(hc, ch, hc->chan[ch].protocol, hc->chan[ch].slot_tx,
ch               3204 drivers/isdn/hardware/mISDN/hfcmulti.c 		      hc->chan[ch].bank_tx, hc->chan[ch].slot_rx,
ch               3205 drivers/isdn/hardware/mISDN/hfcmulti.c 		      hc->chan[ch].bank_rx);
ch               3325 drivers/isdn/hardware/mISDN/hfcmulti.c handle_dmsg(struct mISDNchannel *ch, struct sk_buff *skb)
ch               3327 drivers/isdn/hardware/mISDN/hfcmulti.c 	struct mISDNdevice	*dev = container_of(ch, struct mISDNdevice, D);
ch               3349 drivers/isdn/hardware/mISDN/hfcmulti.c 			queue_ch_frame(ch, PH_DATA_CNF, id, NULL);
ch               3454 drivers/isdn/hardware/mISDN/hfcmulti.c handle_bmsg(struct mISDNchannel *ch, struct sk_buff *skb)
ch               3456 drivers/isdn/hardware/mISDN/hfcmulti.c 	struct bchannel		*bch = container_of(ch, struct bchannel, ch);
ch               3486 drivers/isdn/hardware/mISDN/hfcmulti.c 					    ch->protocol,
ch               3492 drivers/isdn/hardware/mISDN/hfcmulti.c 				if (ch->protocol == ISDN_P_B_RAW && !hc->dtmf
ch               3508 drivers/isdn/hardware/mISDN/hfcmulti.c 			_queue_data(ch, PH_ACTIVATE_IND, MISDN_ID_ANY, 0, NULL,
ch               3537 drivers/isdn/hardware/mISDN/hfcmulti.c 		_queue_data(ch, PH_DEACTIVATE_IND, MISDN_ID_ANY, 0, NULL,
ch               3681 drivers/isdn/hardware/mISDN/hfcmulti.c hfcm_bctrl(struct mISDNchannel *ch, u_int cmd, void *arg)
ch               3683 drivers/isdn/hardware/mISDN/hfcmulti.c 	struct bchannel		*bch = container_of(ch, struct bchannel, ch);
ch               3695 drivers/isdn/hardware/mISDN/hfcmulti.c 		ch->protocol = ISDN_P_NONE;
ch               3696 drivers/isdn/hardware/mISDN/hfcmulti.c 		ch->peer = NULL;
ch               3721 drivers/isdn/hardware/mISDN/hfcmulti.c 	int ch, i;
ch               3728 drivers/isdn/hardware/mISDN/hfcmulti.c 	ch = dch->slot;
ch               3798 drivers/isdn/hardware/mISDN/hfcmulti.c 				if (hc->chan[ch].nt_timer == 0) {
ch               3799 drivers/isdn/hardware/mISDN/hfcmulti.c 					hc->chan[ch].nt_timer = -1;
ch               3801 drivers/isdn/hardware/mISDN/hfcmulti.c 						 hc->chan[ch].port);
ch               3811 drivers/isdn/hardware/mISDN/hfcmulti.c 					hc->chan[ch].nt_timer =
ch               3814 drivers/isdn/hardware/mISDN/hfcmulti.c 						 hc->chan[ch].port);
ch               3823 drivers/isdn/hardware/mISDN/hfcmulti.c 				hc->chan[ch].nt_timer = -1;
ch               3829 drivers/isdn/hardware/mISDN/hfcmulti.c 				hc->chan[ch].nt_timer = -1;
ch               3832 drivers/isdn/hardware/mISDN/hfcmulti.c 				hc->chan[ch].nt_timer = -1;
ch               4075 drivers/isdn/hardware/mISDN/hfcmulti.c 	rq->ch = &dch->dev.D;
ch               4086 drivers/isdn/hardware/mISDN/hfcmulti.c 	int		ch;
ch               4093 drivers/isdn/hardware/mISDN/hfcmulti.c 		ch = rq->adr.channel;
ch               4095 drivers/isdn/hardware/mISDN/hfcmulti.c 		ch = (rq->adr.channel - 1) + (dch->slot - 2);
ch               4096 drivers/isdn/hardware/mISDN/hfcmulti.c 	bch = hc->chan[ch].bch;
ch               4099 drivers/isdn/hardware/mISDN/hfcmulti.c 		       __func__, ch);
ch               4104 drivers/isdn/hardware/mISDN/hfcmulti.c 	bch->ch.protocol = rq->protocol;
ch               4105 drivers/isdn/hardware/mISDN/hfcmulti.c 	hc->chan[ch].rx_off = 0;
ch               4106 drivers/isdn/hardware/mISDN/hfcmulti.c 	rq->ch = &bch->ch;
ch               4167 drivers/isdn/hardware/mISDN/hfcmulti.c hfcm_dctrl(struct mISDNchannel *ch, u_int cmd, void *arg)
ch               4169 drivers/isdn/hardware/mISDN/hfcmulti.c 	struct mISDNdevice	*dev = container_of(ch, struct mISDNdevice, D);
ch               4631 drivers/isdn/hardware/mISDN/hfcmulti.c 	int	ch;
ch               4659 drivers/isdn/hardware/mISDN/hfcmulti.c 	for (ch = 0; ch <= 31; ch++) {
ch               4660 drivers/isdn/hardware/mISDN/hfcmulti.c 		if (hc->chan[ch].dch)
ch               4661 drivers/isdn/hardware/mISDN/hfcmulti.c 			release_port(hc, hc->chan[ch].dch);
ch               4800 drivers/isdn/hardware/mISDN/hfcmulti.c 	int		ch, ret = 0;
ch               4819 drivers/isdn/hardware/mISDN/hfcmulti.c 	for (ch = 1; ch <= 31; ch++) {
ch               4820 drivers/isdn/hardware/mISDN/hfcmulti.c 		if (!((1 << ch) & hc->bmask[pt])) /* skip unused channel */
ch               4829 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->chan[ch].coeff = kzalloc(512, GFP_KERNEL);
ch               4830 drivers/isdn/hardware/mISDN/hfcmulti.c 		if (!hc->chan[ch].coeff) {
ch               4837 drivers/isdn/hardware/mISDN/hfcmulti.c 		bch->nr = ch;
ch               4838 drivers/isdn/hardware/mISDN/hfcmulti.c 		bch->slot = ch;
ch               4842 drivers/isdn/hardware/mISDN/hfcmulti.c 		bch->ch.send = handle_bmsg;
ch               4843 drivers/isdn/hardware/mISDN/hfcmulti.c 		bch->ch.ctrl = hfcm_bctrl;
ch               4844 drivers/isdn/hardware/mISDN/hfcmulti.c 		bch->ch.nr = ch;
ch               4845 drivers/isdn/hardware/mISDN/hfcmulti.c 		list_add(&bch->ch.list, &dch->dev.bchannels);
ch               4846 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->chan[ch].bch = bch;
ch               4847 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->chan[ch].port = pt;
ch               4874 drivers/isdn/hardware/mISDN/hfcmulti.c 	int		ch, i, ret = 0;
ch               4894 drivers/isdn/hardware/mISDN/hfcmulti.c 	for (ch = 0; ch < dch->dev.nrbchan; ch++) {
ch               4902 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->chan[i + ch].coeff = kzalloc(512, GFP_KERNEL);
ch               4903 drivers/isdn/hardware/mISDN/hfcmulti.c 		if (!hc->chan[i + ch].coeff) {
ch               4910 drivers/isdn/hardware/mISDN/hfcmulti.c 		bch->nr = ch + 1;
ch               4911 drivers/isdn/hardware/mISDN/hfcmulti.c 		bch->slot = i + ch;
ch               4915 drivers/isdn/hardware/mISDN/hfcmulti.c 		bch->ch.send = handle_bmsg;
ch               4916 drivers/isdn/hardware/mISDN/hfcmulti.c 		bch->ch.ctrl = hfcm_bctrl;
ch               4917 drivers/isdn/hardware/mISDN/hfcmulti.c 		bch->ch.nr = ch + 1;
ch               4918 drivers/isdn/hardware/mISDN/hfcmulti.c 		list_add(&bch->ch.list, &dch->dev.bchannels);
ch               4919 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->chan[i + ch].bch = bch;
ch               4920 drivers/isdn/hardware/mISDN/hfcmulti.c 		hc->chan[i + ch].port = pt;
ch               4995 drivers/isdn/hardware/mISDN/hfcmulti.c 	int		i, ch;
ch               5034 drivers/isdn/hardware/mISDN/hfcmulti.c 		for (ch = 0; ch <= 31; ch++) {
ch               5035 drivers/isdn/hardware/mISDN/hfcmulti.c 			if (!((1 << ch) & dmask[E1_cnt]))
ch               5037 drivers/isdn/hardware/mISDN/hfcmulti.c 			hc->dnum[pt] = ch;
ch               5050 drivers/isdn/hardware/mISDN/hfcmulti.c 				E1_cnt + 1, ch, hc->bmask[pt]);
ch               1525 drivers/isdn/hardware/mISDN/hfcpci.c hfc_bctrl(struct mISDNchannel *ch, u_int cmd, void *arg)
ch               1527 drivers/isdn/hardware/mISDN/hfcpci.c 	struct bchannel	*bch = container_of(ch, struct bchannel, ch);
ch               1554 drivers/isdn/hardware/mISDN/hfcpci.c 		ch->protocol = ISDN_P_NONE;
ch               1555 drivers/isdn/hardware/mISDN/hfcpci.c 		ch->peer = NULL;
ch               1573 drivers/isdn/hardware/mISDN/hfcpci.c hfcpci_l2l1D(struct mISDNchannel *ch, struct sk_buff *skb)
ch               1575 drivers/isdn/hardware/mISDN/hfcpci.c 	struct mISDNdevice	*dev = container_of(ch, struct mISDNdevice, D);
ch               1592 drivers/isdn/hardware/mISDN/hfcpci.c 			queue_ch_frame(ch, PH_DATA_CNF, id, NULL);
ch               1657 drivers/isdn/hardware/mISDN/hfcpci.c hfcpci_l2l1B(struct mISDNchannel *ch, struct sk_buff *skb)
ch               1659 drivers/isdn/hardware/mISDN/hfcpci.c 	struct bchannel		*bch = container_of(ch, struct bchannel, ch);
ch               1678 drivers/isdn/hardware/mISDN/hfcpci.c 			ret = mode_hfcpci(bch, bch->nr, ch->protocol);
ch               1683 drivers/isdn/hardware/mISDN/hfcpci.c 			_queue_data(ch, PH_ACTIVATE_IND, MISDN_ID_ANY, 0,
ch               1688 drivers/isdn/hardware/mISDN/hfcpci.c 		_queue_data(ch, PH_DEACTIVATE_IND, MISDN_ID_ANY, 0,
ch               1873 drivers/isdn/hardware/mISDN/hfcpci.c open_dchannel(struct hfc_pci *hc, struct mISDNchannel *ch,
ch               1894 drivers/isdn/hardware/mISDN/hfcpci.c 		ch->protocol = rq->protocol;
ch               1899 drivers/isdn/hardware/mISDN/hfcpci.c 		if (rq->protocol != ch->protocol) {
ch               1908 drivers/isdn/hardware/mISDN/hfcpci.c 			ch->protocol = rq->protocol;
ch               1913 drivers/isdn/hardware/mISDN/hfcpci.c 	if (((ch->protocol == ISDN_P_NT_S0) && (hc->dch.state == 3)) ||
ch               1914 drivers/isdn/hardware/mISDN/hfcpci.c 	    ((ch->protocol == ISDN_P_TE_S0) && (hc->dch.state == 7))) {
ch               1915 drivers/isdn/hardware/mISDN/hfcpci.c 		_queue_data(ch, PH_ACTIVATE_IND, MISDN_ID_ANY,
ch               1918 drivers/isdn/hardware/mISDN/hfcpci.c 	rq->ch = ch;
ch               1936 drivers/isdn/hardware/mISDN/hfcpci.c 	bch->ch.protocol = rq->protocol;
ch               1937 drivers/isdn/hardware/mISDN/hfcpci.c 	rq->ch = &bch->ch; /* TODO: E-channel */
ch               1947 drivers/isdn/hardware/mISDN/hfcpci.c hfc_dctrl(struct mISDNchannel *ch, u_int cmd, void *arg)
ch               1949 drivers/isdn/hardware/mISDN/hfcpci.c 	struct mISDNdevice	*dev = container_of(ch, struct mISDNdevice, D);
ch               1963 drivers/isdn/hardware/mISDN/hfcpci.c 			err = open_dchannel(hc, ch, rq);
ch               2096 drivers/isdn/hardware/mISDN/hfcpci.c 		card->bch[i].ch.send = hfcpci_l2l1B;
ch               2097 drivers/isdn/hardware/mISDN/hfcpci.c 		card->bch[i].ch.ctrl = hfc_bctrl;
ch               2098 drivers/isdn/hardware/mISDN/hfcpci.c 		card->bch[i].ch.nr = i + 1;
ch               2099 drivers/isdn/hardware/mISDN/hfcpci.c 		list_add(&card->bch[i].ch.list, &card->dch.dev.bchannels);
ch                196 drivers/isdn/hardware/mISDN/hfcsusb.c hfcusb_l2l1B(struct mISDNchannel *ch, struct sk_buff *skb)
ch                198 drivers/isdn/hardware/mISDN/hfcsusb.c 	struct bchannel		*bch = container_of(ch, struct bchannel, ch);
ch                221 drivers/isdn/hardware/mISDN/hfcsusb.c 			ret = hfcsusb_setup_bch(bch, ch->protocol);
ch                225 drivers/isdn/hardware/mISDN/hfcsusb.c 			_queue_data(ch, PH_ACTIVATE_IND, MISDN_ID_ANY,
ch                230 drivers/isdn/hardware/mISDN/hfcsusb.c 		_queue_data(ch, PH_DEACTIVATE_IND, MISDN_ID_ANY,
ch                255 drivers/isdn/hardware/mISDN/hfcsusb.c 	phi->dch.ch.protocol = hw->protocol;
ch                256 drivers/isdn/hardware/mISDN/hfcsusb.c 	phi->dch.ch.Flags = dch->Flags;
ch                260 drivers/isdn/hardware/mISDN/hfcsusb.c 		phi->bch[i].protocol = hw->bch[i].ch.protocol;
ch                273 drivers/isdn/hardware/mISDN/hfcsusb.c hfcusb_l2l1D(struct mISDNchannel *ch, struct sk_buff *skb)
ch                275 drivers/isdn/hardware/mISDN/hfcsusb.c 	struct mISDNdevice	*dev = container_of(ch, struct mISDNdevice, D);
ch                293 drivers/isdn/hardware/mISDN/hfcsusb.c 			queue_ch_frame(ch, PH_DATA_CNF, hh->id, NULL);
ch                412 drivers/isdn/hardware/mISDN/hfcsusb.c open_dchannel(struct hfcsusb *hw, struct mISDNchannel *ch,
ch                447 drivers/isdn/hardware/mISDN/hfcsusb.c 		ch->protocol = rq->protocol;
ch                450 drivers/isdn/hardware/mISDN/hfcsusb.c 		if (rq->protocol != ch->protocol)
ch                454 drivers/isdn/hardware/mISDN/hfcsusb.c 	if (((ch->protocol == ISDN_P_NT_S0) && (hw->dch.state == 3)) ||
ch                455 drivers/isdn/hardware/mISDN/hfcsusb.c 	    ((ch->protocol == ISDN_P_TE_S0) && (hw->dch.state == 7)))
ch                456 drivers/isdn/hardware/mISDN/hfcsusb.c 		_queue_data(ch, PH_ACTIVATE_IND, MISDN_ID_ANY,
ch                458 drivers/isdn/hardware/mISDN/hfcsusb.c 	rq->ch = ch;
ch                482 drivers/isdn/hardware/mISDN/hfcsusb.c 	bch->ch.protocol = rq->protocol;
ch                483 drivers/isdn/hardware/mISDN/hfcsusb.c 	rq->ch = &bch->ch;
ch                518 drivers/isdn/hardware/mISDN/hfcsusb.c hfc_dctrl(struct mISDNchannel *ch, u_int cmd, void *arg)
ch                520 drivers/isdn/hardware/mISDN/hfcsusb.c 	struct mISDNdevice	*dev = container_of(ch, struct mISDNdevice, D);
ch                534 drivers/isdn/hardware/mISDN/hfcsusb.c 			err = open_dchannel(hw, ch, rq);
ch               1801 drivers/isdn/hardware/mISDN/hfcsusb.c hfc_bctrl(struct mISDNchannel *ch, u_int cmd, void *arg)
ch               1803 drivers/isdn/hardware/mISDN/hfcsusb.c 	struct bchannel	*bch = container_of(ch, struct bchannel, ch);
ch               1819 drivers/isdn/hardware/mISDN/hfcsusb.c 		ch->protocol = ISDN_P_NONE;
ch               1820 drivers/isdn/hardware/mISDN/hfcsusb.c 		ch->peer = NULL;
ch               1866 drivers/isdn/hardware/mISDN/hfcsusb.c 		hw->bch[i].ch.send = hfcusb_l2l1B;
ch               1867 drivers/isdn/hardware/mISDN/hfcsusb.c 		hw->bch[i].ch.ctrl = hfc_bctrl;
ch               1868 drivers/isdn/hardware/mISDN/hfcsusb.c 		hw->bch[i].ch.nr = i + 1;
ch               1869 drivers/isdn/hardware/mISDN/hfcsusb.c 		list_add(&hw->bch[i].ch.list, &hw->dch.dev.bchannels);
ch                 32 drivers/isdn/hardware/mISDN/isar.h 	struct	isar_ch	ch[2];
ch                552 drivers/isdn/hardware/mISDN/mISDNipac.c isac_l1hw(struct mISDNchannel *ch, struct sk_buff *skb)
ch                554 drivers/isdn/hardware/mISDN/mISDNipac.c 	struct mISDNdevice	*dev = container_of(ch, struct mISDNdevice, D);
ch                571 drivers/isdn/hardware/mISDN/mISDNipac.c 			queue_ch_frame(ch, PH_DATA_CNF, id, NULL);
ch                752 drivers/isdn/hardware/mISDN/mISDNipac.c 	rq->ch = &isac->dch.dev.D;
ch                753 drivers/isdn/hardware/mISDN/mISDNipac.c 	rq->ch->protocol = rq->protocol;
ch                755 drivers/isdn/hardware/mISDN/mISDNipac.c 		_queue_data(rq->ch, PH_ACTIVATE_IND, MISDN_ID_ANY,
ch               1331 drivers/isdn/hardware/mISDN/mISDNipac.c hscx_l2l1(struct mISDNchannel *ch, struct sk_buff *skb)
ch               1333 drivers/isdn/hardware/mISDN/mISDNipac.c 	struct bchannel *bch = container_of(ch, struct bchannel, ch);
ch               1352 drivers/isdn/hardware/mISDN/mISDNipac.c 			ret = hscx_mode(hx, ch->protocol);
ch               1357 drivers/isdn/hardware/mISDN/mISDNipac.c 			_queue_data(ch, PH_ACTIVATE_IND, MISDN_ID_ANY, 0,
ch               1365 drivers/isdn/hardware/mISDN/mISDNipac.c 		_queue_data(ch, PH_DEACTIVATE_IND, MISDN_ID_ANY, 0,
ch               1386 drivers/isdn/hardware/mISDN/mISDNipac.c hscx_bctrl(struct mISDNchannel *ch, u32 cmd, void *arg)
ch               1388 drivers/isdn/hardware/mISDN/mISDNipac.c 	struct bchannel *bch = container_of(ch, struct bchannel, ch);
ch               1402 drivers/isdn/hardware/mISDN/mISDNipac.c 		ch->protocol = ISDN_P_NONE;
ch               1403 drivers/isdn/hardware/mISDN/mISDNipac.c 		ch->peer = NULL;
ch               1491 drivers/isdn/hardware/mISDN/mISDNipac.c 	bch->ch.protocol = rq->protocol;
ch               1492 drivers/isdn/hardware/mISDN/mISDNipac.c 	rq->ch = &bch->ch;
ch               1525 drivers/isdn/hardware/mISDN/mISDNipac.c ipac_dctrl(struct mISDNchannel *ch, u32 cmd, void *arg)
ch               1527 drivers/isdn/hardware/mISDN/mISDNipac.c 	struct mISDNdevice *dev = container_of(ch, struct mISDNdevice, D);
ch               1599 drivers/isdn/hardware/mISDN/mISDNipac.c 		list_add(&ipac->hscx[i].bch.ch.list,
ch               1603 drivers/isdn/hardware/mISDN/mISDNipac.c 		ipac->hscx[i].bch.ch.nr = i + 1;
ch               1604 drivers/isdn/hardware/mISDN/mISDNipac.c 		ipac->hscx[i].bch.ch.send = &hscx_l2l1;
ch               1605 drivers/isdn/hardware/mISDN/mISDNipac.c 		ipac->hscx[i].bch.ch.ctrl = hscx_bctrl;
ch                 69 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (isar->ch[0].bch.debug & DEBUG_HW_BFIFO) {
ch                 98 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (isar->ch[0].bch.debug & DEBUG_HW_BFIFO) {
ch                175 drivers/isdn/hardware/mISDN/mISDNisar.c 	u32	saved_debug = isar->ch[0].bch.debug;
ch                194 drivers/isdn/hardware/mISDN/mISDNisar.c 		isar->ch[0].bch.debug &= ~DEBUG_HW_BFIFO;
ch                281 drivers/isdn/hardware/mISDN/mISDNisar.c 	isar->ch[0].bch.debug = saved_debug;
ch                393 drivers/isdn/hardware/mISDN/mISDNisar.c 	isar->ch[0].bch.debug = saved_debug;
ch                402 drivers/isdn/hardware/mISDN/mISDNisar.c deliver_status(struct isar_ch *ch, int status)
ch                404 drivers/isdn/hardware/mISDN/mISDNisar.c 	pr_debug("%s: HL->LL FAXIND %x\n", ch->is->name, status);
ch                405 drivers/isdn/hardware/mISDN/mISDNisar.c 	_queue_data(&ch->bch.ch, PH_CONTROL_IND, status, 0, NULL, GFP_ATOMIC);
ch                409 drivers/isdn/hardware/mISDN/mISDNisar.c isar_rcv_frame(struct isar_ch *ch)
ch                414 drivers/isdn/hardware/mISDN/mISDNisar.c 	if (!ch->is->clsb) {
ch                415 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s; ISAR zero len frame\n", ch->is->name);
ch                416 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
ch                419 drivers/isdn/hardware/mISDN/mISDNisar.c 	if (test_bit(FLG_RX_OFF, &ch->bch.Flags)) {
ch                420 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch->bch.dropcnt += ch->is->clsb;
ch                421 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
ch                424 drivers/isdn/hardware/mISDN/mISDNisar.c 	switch (ch->bch.state) {
ch                427 drivers/isdn/hardware/mISDN/mISDNisar.c 			 ch->is->name, ch->is->iis, ch->is->cmsb, ch->is->clsb);
ch                428 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
ch                433 drivers/isdn/hardware/mISDN/mISDNisar.c 		maxlen = bchannel_get_rxbuf(&ch->bch, ch->is->clsb);
ch                436 drivers/isdn/hardware/mISDN/mISDNisar.c 				   ch->is->name, ch->bch.nr, ch->is->clsb);
ch                437 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
ch                440 drivers/isdn/hardware/mISDN/mISDNisar.c 		rcv_mbox(ch->is, skb_put(ch->bch.rx_skb, ch->is->clsb));
ch                441 drivers/isdn/hardware/mISDN/mISDNisar.c 		recv_Bchannel(&ch->bch, 0, false);
ch                444 drivers/isdn/hardware/mISDN/mISDNisar.c 		maxlen = bchannel_get_rxbuf(&ch->bch, ch->is->clsb);
ch                447 drivers/isdn/hardware/mISDN/mISDNisar.c 				   ch->is->name, ch->bch.nr, ch->is->clsb);
ch                448 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
ch                451 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->is->cmsb & HDLC_ERROR) {
ch                453 drivers/isdn/hardware/mISDN/mISDNisar.c 				 ch->is->name, ch->is->cmsb, ch->is->clsb);
ch                455 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (ch->is->cmsb & HDLC_ERR_RER)
ch                456 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->bch.err_inv++;
ch                457 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (ch->is->cmsb & HDLC_ERR_CER)
ch                458 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->bch.err_crc++;
ch                460 drivers/isdn/hardware/mISDN/mISDNisar.c 			skb_trim(ch->bch.rx_skb, 0);
ch                461 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
ch                464 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->is->cmsb & HDLC_FSD)
ch                465 drivers/isdn/hardware/mISDN/mISDNisar.c 			skb_trim(ch->bch.rx_skb, 0);
ch                466 drivers/isdn/hardware/mISDN/mISDNisar.c 		ptr = skb_put(ch->bch.rx_skb, ch->is->clsb);
ch                467 drivers/isdn/hardware/mISDN/mISDNisar.c 		rcv_mbox(ch->is, ptr);
ch                468 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->is->cmsb & HDLC_FED) {
ch                469 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (ch->bch.rx_skb->len < 3) { /* last 2 are the FCS */
ch                471 drivers/isdn/hardware/mISDN/mISDNisar.c 					 ch->is->name, ch->bch.rx_skb->len);
ch                472 drivers/isdn/hardware/mISDN/mISDNisar.c 				skb_trim(ch->bch.rx_skb, 0);
ch                475 drivers/isdn/hardware/mISDN/mISDNisar.c 			skb_trim(ch->bch.rx_skb, ch->bch.rx_skb->len - 2);
ch                476 drivers/isdn/hardware/mISDN/mISDNisar.c 			recv_Bchannel(&ch->bch, 0, false);
ch                480 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->state != STFAX_ACTIV) {
ch                482 drivers/isdn/hardware/mISDN/mISDNisar.c 				 ch->is->name);
ch                483 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
ch                484 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (ch->bch.rx_skb)
ch                485 drivers/isdn/hardware/mISDN/mISDNisar.c 				skb_trim(ch->bch.rx_skb, 0);
ch                488 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (!ch->bch.rx_skb) {
ch                489 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->bch.rx_skb = mI_alloc_skb(ch->bch.maxlen,
ch                491 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (unlikely(!ch->bch.rx_skb)) {
ch                494 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
ch                498 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->cmd == PCTRL_CMD_FRM) {
ch                499 drivers/isdn/hardware/mISDN/mISDNisar.c 			rcv_mbox(ch->is, skb_put(ch->bch.rx_skb, ch->is->clsb));
ch                501 drivers/isdn/hardware/mISDN/mISDNisar.c 				 ch->is->name, ch->bch.rx_skb->len);
ch                502 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (ch->is->cmsb & SART_NMD) { /* ABORT */
ch                504 drivers/isdn/hardware/mISDN/mISDNisar.c 					 ch->is->name);
ch                505 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
ch                506 drivers/isdn/hardware/mISDN/mISDNisar.c 				send_mbox(ch->is, SET_DPS(ch->dpath) |
ch                509 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->state = STFAX_ESCAPE;
ch                512 drivers/isdn/hardware/mISDN/mISDNisar.c 			recv_Bchannel(&ch->bch, 0, false);
ch                513 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (ch->is->cmsb & SART_NMD)
ch                514 drivers/isdn/hardware/mISDN/mISDNisar.c 				deliver_status(ch, HW_MOD_NOCARR);
ch                517 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->cmd != PCTRL_CMD_FRH) {
ch                519 drivers/isdn/hardware/mISDN/mISDNisar.c 				 ch->is->name, ch->cmd);
ch                520 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
ch                521 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (ch->bch.rx_skb)
ch                522 drivers/isdn/hardware/mISDN/mISDNisar.c 				skb_trim(ch->bch.rx_skb, 0);
ch                526 drivers/isdn/hardware/mISDN/mISDNisar.c 		if ((ch->bch.rx_skb->len + ch->is->clsb) >
ch                527 drivers/isdn/hardware/mISDN/mISDNisar.c 		    (ch->bch.maxlen + 2)) {
ch                529 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->is->name, __func__);
ch                530 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
ch                531 drivers/isdn/hardware/mISDN/mISDNisar.c 			skb_trim(ch->bch.rx_skb, 0);
ch                533 drivers/isdn/hardware/mISDN/mISDNisar.c 		}  else if (ch->is->cmsb & HDLC_ERROR) {
ch                535 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->is->name, ch->is->cmsb, ch->is->clsb);
ch                536 drivers/isdn/hardware/mISDN/mISDNisar.c 			skb_trim(ch->bch.rx_skb, 0);
ch                537 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
ch                540 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->is->cmsb & HDLC_FSD)
ch                541 drivers/isdn/hardware/mISDN/mISDNisar.c 			skb_trim(ch->bch.rx_skb, 0);
ch                542 drivers/isdn/hardware/mISDN/mISDNisar.c 		ptr = skb_put(ch->bch.rx_skb, ch->is->clsb);
ch                543 drivers/isdn/hardware/mISDN/mISDNisar.c 		rcv_mbox(ch->is, ptr);
ch                544 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->is->cmsb & HDLC_FED) {
ch                545 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (ch->bch.rx_skb->len < 3) { /* last 2 are the FCS */
ch                547 drivers/isdn/hardware/mISDN/mISDNisar.c 					ch->is->name, ch->bch.rx_skb->len);
ch                548 drivers/isdn/hardware/mISDN/mISDNisar.c 				skb_trim(ch->bch.rx_skb, 0);
ch                551 drivers/isdn/hardware/mISDN/mISDNisar.c 			skb_trim(ch->bch.rx_skb, ch->bch.rx_skb->len - 2);
ch                552 drivers/isdn/hardware/mISDN/mISDNisar.c 			recv_Bchannel(&ch->bch, 0, false);
ch                554 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->is->cmsb & SART_NMD) { /* ABORT */
ch                556 drivers/isdn/hardware/mISDN/mISDNisar.c 				 ch->is->name);
ch                557 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
ch                558 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (ch->bch.rx_skb)
ch                559 drivers/isdn/hardware/mISDN/mISDNisar.c 				skb_trim(ch->bch.rx_skb, 0);
ch                560 drivers/isdn/hardware/mISDN/mISDNisar.c 			send_mbox(ch->is, SET_DPS(ch->dpath) |
ch                562 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->state = STFAX_ESCAPE;
ch                563 drivers/isdn/hardware/mISDN/mISDNisar.c 			deliver_status(ch, HW_MOD_NOCARR);
ch                567 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_info("isar_rcv_frame protocol (%x)error\n", ch->bch.state);
ch                568 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
ch                574 drivers/isdn/hardware/mISDN/mISDNisar.c isar_fill_fifo(struct isar_ch *ch)
ch                580 drivers/isdn/hardware/mISDN/mISDNisar.c 	pr_debug("%s: ch%d  tx_skb %d tx_idx %d\n", ch->is->name, ch->bch.nr,
ch                581 drivers/isdn/hardware/mISDN/mISDNisar.c 		 ch->bch.tx_skb ? ch->bch.tx_skb->len : -1, ch->bch.tx_idx);
ch                582 drivers/isdn/hardware/mISDN/mISDNisar.c 	if (!(ch->is->bstat &
ch                583 drivers/isdn/hardware/mISDN/mISDNisar.c 	      (ch->dpath == 1 ? BSTAT_RDM1 : BSTAT_RDM2)))
ch                585 drivers/isdn/hardware/mISDN/mISDNisar.c 	if (!ch->bch.tx_skb) {
ch                586 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (!test_bit(FLG_TX_EMPTY, &ch->bch.Flags) ||
ch                587 drivers/isdn/hardware/mISDN/mISDNisar.c 		    (ch->bch.state != ISDN_P_B_RAW))
ch                589 drivers/isdn/hardware/mISDN/mISDNisar.c 		count = ch->mml;
ch                591 drivers/isdn/hardware/mISDN/mISDNisar.c 		memset(ch->is->buf, ch->bch.fill[0], count);
ch                592 drivers/isdn/hardware/mISDN/mISDNisar.c 		send_mbox(ch->is, SET_DPS(ch->dpath) | ISAR_HIS_SDATA,
ch                593 drivers/isdn/hardware/mISDN/mISDNisar.c 			  0, count, ch->is->buf);
ch                596 drivers/isdn/hardware/mISDN/mISDNisar.c 	count = ch->bch.tx_skb->len - ch->bch.tx_idx;
ch                599 drivers/isdn/hardware/mISDN/mISDNisar.c 	if (count > ch->mml) {
ch                601 drivers/isdn/hardware/mISDN/mISDNisar.c 		count = ch->mml;
ch                605 drivers/isdn/hardware/mISDN/mISDNisar.c 	ptr = ch->bch.tx_skb->data + ch->bch.tx_idx;
ch                606 drivers/isdn/hardware/mISDN/mISDNisar.c 	if (!ch->bch.tx_idx) {
ch                607 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s: frame start\n", ch->is->name);
ch                608 drivers/isdn/hardware/mISDN/mISDNisar.c 		if ((ch->bch.state == ISDN_P_B_T30_FAX) &&
ch                609 drivers/isdn/hardware/mISDN/mISDNisar.c 		    (ch->cmd == PCTRL_CMD_FTH)) {
ch                614 drivers/isdn/hardware/mISDN/mISDNisar.c 							 &ch->bch.Flags);
ch                616 drivers/isdn/hardware/mISDN/mISDNisar.c 						 ch->is->name);
ch                619 drivers/isdn/hardware/mISDN/mISDNisar.c 								 &ch->bch.Flags);
ch                625 drivers/isdn/hardware/mISDN/mISDNisar.c 	ch->bch.tx_idx += count;
ch                626 drivers/isdn/hardware/mISDN/mISDNisar.c 	switch (ch->bch.state) {
ch                633 drivers/isdn/hardware/mISDN/mISDNisar.c 		send_mbox(ch->is, SET_DPS(ch->dpath) | ISAR_HIS_SDATA,
ch                637 drivers/isdn/hardware/mISDN/mISDNisar.c 		send_mbox(ch->is, SET_DPS(ch->dpath) | ISAR_HIS_SDATA,
ch                641 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->state != STFAX_ACTIV)
ch                642 drivers/isdn/hardware/mISDN/mISDNisar.c 			pr_debug("%s: not ACTIV\n", ch->is->name);
ch                643 drivers/isdn/hardware/mISDN/mISDNisar.c 		else if (ch->cmd == PCTRL_CMD_FTH)
ch                644 drivers/isdn/hardware/mISDN/mISDNisar.c 			send_mbox(ch->is, SET_DPS(ch->dpath) | ISAR_HIS_SDATA,
ch                646 drivers/isdn/hardware/mISDN/mISDNisar.c 		else if (ch->cmd == PCTRL_CMD_FTM)
ch                647 drivers/isdn/hardware/mISDN/mISDNisar.c 			send_mbox(ch->is, SET_DPS(ch->dpath) | ISAR_HIS_SDATA,
ch                650 drivers/isdn/hardware/mISDN/mISDNisar.c 			pr_debug("%s: not FTH/FTM\n", ch->is->name);
ch                654 drivers/isdn/hardware/mISDN/mISDNisar.c 			__func__, ch->bch.state);
ch                662 drivers/isdn/hardware/mISDN/mISDNisar.c 	struct isar_ch	*base = &isar->ch[0];
ch                675 drivers/isdn/hardware/mISDN/mISDNisar.c send_next(struct isar_ch *ch)
ch                677 drivers/isdn/hardware/mISDN/mISDNisar.c 	pr_debug("%s: %s ch%d tx_skb %d tx_idx %d\n", ch->is->name, __func__,
ch                678 drivers/isdn/hardware/mISDN/mISDNisar.c 		 ch->bch.nr, ch->bch.tx_skb ? ch->bch.tx_skb->len : -1,
ch                679 drivers/isdn/hardware/mISDN/mISDNisar.c 		 ch->bch.tx_idx);
ch                680 drivers/isdn/hardware/mISDN/mISDNisar.c 	if (ch->bch.state == ISDN_P_B_T30_FAX) {
ch                681 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->cmd == PCTRL_CMD_FTH) {
ch                682 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (test_bit(FLG_LASTDATA, &ch->bch.Flags)) {
ch                684 drivers/isdn/hardware/mISDN/mISDNisar.c 				test_and_set_bit(FLG_NMD_DATA, &ch->bch.Flags);
ch                686 drivers/isdn/hardware/mISDN/mISDNisar.c 		} else if (ch->cmd == PCTRL_CMD_FTM) {
ch                687 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (test_bit(FLG_DLEETX, &ch->bch.Flags)) {
ch                688 drivers/isdn/hardware/mISDN/mISDNisar.c 				test_and_set_bit(FLG_LASTDATA, &ch->bch.Flags);
ch                689 drivers/isdn/hardware/mISDN/mISDNisar.c 				test_and_set_bit(FLG_NMD_DATA, &ch->bch.Flags);
ch                693 drivers/isdn/hardware/mISDN/mISDNisar.c 	dev_kfree_skb(ch->bch.tx_skb);
ch                694 drivers/isdn/hardware/mISDN/mISDNisar.c 	if (get_next_bframe(&ch->bch)) {
ch                695 drivers/isdn/hardware/mISDN/mISDNisar.c 		isar_fill_fifo(ch);
ch                696 drivers/isdn/hardware/mISDN/mISDNisar.c 		test_and_clear_bit(FLG_TX_EMPTY, &ch->bch.Flags);
ch                697 drivers/isdn/hardware/mISDN/mISDNisar.c 	} else if (test_bit(FLG_TX_EMPTY, &ch->bch.Flags)) {
ch                698 drivers/isdn/hardware/mISDN/mISDNisar.c 		isar_fill_fifo(ch);
ch                700 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (test_and_clear_bit(FLG_DLEETX, &ch->bch.Flags)) {
ch                702 drivers/isdn/hardware/mISDN/mISDNisar.c 					       &ch->bch.Flags)) {
ch                704 drivers/isdn/hardware/mISDN/mISDNisar.c 						       &ch->bch.Flags)) {
ch                706 drivers/isdn/hardware/mISDN/mISDNisar.c 					send_mbox(ch->is, SET_DPS(ch->dpath) |
ch                709 drivers/isdn/hardware/mISDN/mISDNisar.c 				test_and_set_bit(FLG_LL_OK, &ch->bch.Flags);
ch                711 drivers/isdn/hardware/mISDN/mISDNisar.c 				deliver_status(ch, HW_MOD_CONNECT);
ch                713 drivers/isdn/hardware/mISDN/mISDNisar.c 		} else if (test_bit(FLG_FILLEMPTY, &ch->bch.Flags)) {
ch                714 drivers/isdn/hardware/mISDN/mISDNisar.c 			test_and_set_bit(FLG_TX_EMPTY, &ch->bch.Flags);
ch                722 drivers/isdn/hardware/mISDN/mISDNisar.c 	struct isar_ch	*ch;
ch                726 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch = sel_bch_isar(isar, 1);
ch                727 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch && test_bit(FLG_ACTIVE, &ch->bch.Flags)) {
ch                728 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (ch->bch.tx_skb && (ch->bch.tx_skb->len >
ch                729 drivers/isdn/hardware/mISDN/mISDNisar.c 					       ch->bch.tx_idx))
ch                730 drivers/isdn/hardware/mISDN/mISDNisar.c 				isar_fill_fifo(ch);
ch                732 drivers/isdn/hardware/mISDN/mISDNisar.c 				send_next(ch);
ch                736 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch = sel_bch_isar(isar, 2);
ch                737 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch && test_bit(FLG_ACTIVE, &ch->bch.Flags)) {
ch                738 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (ch->bch.tx_skb && (ch->bch.tx_skb->len >
ch                739 drivers/isdn/hardware/mISDN/mISDNisar.c 					       ch->bch.tx_idx))
ch                740 drivers/isdn/hardware/mISDN/mISDNisar.c 				isar_fill_fifo(ch);
ch                742 drivers/isdn/hardware/mISDN/mISDNisar.c 				send_next(ch);
ch                754 drivers/isdn/hardware/mISDN/mISDNisar.c isar_pump_status_rsp(struct isar_ch *ch) {
ch                755 drivers/isdn/hardware/mISDN/mISDNisar.c 	u8 ril = ch->is->buf[0];
ch                758 drivers/isdn/hardware/mISDN/mISDNisar.c 	if (!test_and_clear_bit(ISAR_RATE_REQ, &ch->is->Flags))
ch                761 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_info("%s: wrong pstrsp ril=%d\n", ch->is->name, ril);
ch                764 drivers/isdn/hardware/mISDN/mISDNisar.c 	switch (ch->is->buf[1]) {
ch                799 drivers/isdn/hardware/mISDN/mISDNisar.c 	sprintf(ch->conmsg, "%s %s", dmril[ril], dmrim[rim]);
ch                800 drivers/isdn/hardware/mISDN/mISDNisar.c 	pr_debug("%s: pump strsp %s\n", ch->is->name, ch->conmsg);
ch                804 drivers/isdn/hardware/mISDN/mISDNisar.c isar_pump_statev_modem(struct isar_ch *ch, u8 devt) {
ch                805 drivers/isdn/hardware/mISDN/mISDNisar.c 	u8 dps = SET_DPS(ch->dpath);
ch                809 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s: pump stev TIMER\n", ch->is->name);
ch                812 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s: pump stev CONNECT\n", ch->is->name);
ch                813 drivers/isdn/hardware/mISDN/mISDNisar.c 		deliver_status(ch, HW_MOD_CONNECT);
ch                816 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s: pump stev NO CONNECT\n", ch->is->name);
ch                817 drivers/isdn/hardware/mISDN/mISDNisar.c 		send_mbox(ch->is, dps | ISAR_HIS_PSTREQ, 0, 0, NULL);
ch                818 drivers/isdn/hardware/mISDN/mISDNisar.c 		deliver_status(ch, HW_MOD_NOCARR);
ch                821 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s: pump stev V24 OFF\n", ch->is->name);
ch                824 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s: pump stev CTS ON\n", ch->is->name);
ch                827 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s pump stev CTS OFF\n", ch->is->name);
ch                830 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s: pump stev CARRIER ON\n", ch->is->name);
ch                831 drivers/isdn/hardware/mISDN/mISDNisar.c 		test_and_set_bit(ISAR_RATE_REQ, &ch->is->Flags);
ch                832 drivers/isdn/hardware/mISDN/mISDNisar.c 		send_mbox(ch->is, dps | ISAR_HIS_PSTREQ, 0, 0, NULL);
ch                835 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s: pump stev CARRIER OFF\n", ch->is->name);
ch                838 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s: pump stev DSR ON\n", ch->is->name);
ch                841 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s: pump stev DSR_OFF\n", ch->is->name);
ch                844 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s: pump stev REMOTE RETRAIN\n", ch->is->name);
ch                847 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s: pump stev REMOTE RENEGOTIATE\n", ch->is->name);
ch                850 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s: pump stev GSTN CLEAR\n", ch->is->name);
ch                853 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_info("u%s: unknown pump stev %x\n", ch->is->name, devt);
ch                859 drivers/isdn/hardware/mISDN/mISDNisar.c isar_pump_statev_fax(struct isar_ch *ch, u8 devt) {
ch                860 drivers/isdn/hardware/mISDN/mISDNisar.c 	u8 dps = SET_DPS(ch->dpath);
ch                865 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s: pump stev TIMER\n", ch->is->name);
ch                868 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s: pump stev RSP_READY\n", ch->is->name);
ch                869 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch->state = STFAX_READY;
ch                870 drivers/isdn/hardware/mISDN/mISDNisar.c 		deliver_status(ch, HW_MOD_READY);
ch                872 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (test_bit(BC_FLG_ORIG, &ch->bch.Flags))
ch                879 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->state == STFAX_LINE) {
ch                880 drivers/isdn/hardware/mISDN/mISDNisar.c 			pr_debug("%s: pump stev LINE_TX_H\n", ch->is->name);
ch                881 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->state = STFAX_CONT;
ch                882 drivers/isdn/hardware/mISDN/mISDNisar.c 			send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
ch                886 drivers/isdn/hardware/mISDN/mISDNisar.c 				 ch->is->name, ch->state);
ch                890 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->state == STFAX_LINE) {
ch                891 drivers/isdn/hardware/mISDN/mISDNisar.c 			pr_debug("%s: pump stev LINE_RX_H\n", ch->is->name);
ch                892 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->state = STFAX_CONT;
ch                893 drivers/isdn/hardware/mISDN/mISDNisar.c 			send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
ch                897 drivers/isdn/hardware/mISDN/mISDNisar.c 				 ch->is->name, ch->state);
ch                901 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->state == STFAX_LINE) {
ch                902 drivers/isdn/hardware/mISDN/mISDNisar.c 			pr_debug("%s: pump stev LINE_TX_B\n", ch->is->name);
ch                903 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->state = STFAX_CONT;
ch                904 drivers/isdn/hardware/mISDN/mISDNisar.c 			send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
ch                908 drivers/isdn/hardware/mISDN/mISDNisar.c 				 ch->is->name, ch->state);
ch                912 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->state == STFAX_LINE) {
ch                913 drivers/isdn/hardware/mISDN/mISDNisar.c 			pr_debug("%s: pump stev LINE_RX_B\n", ch->is->name);
ch                914 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->state = STFAX_CONT;
ch                915 drivers/isdn/hardware/mISDN/mISDNisar.c 			send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
ch                919 drivers/isdn/hardware/mISDN/mISDNisar.c 				 ch->is->name, ch->state);
ch                923 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->state == STFAX_CONT) {
ch                924 drivers/isdn/hardware/mISDN/mISDNisar.c 			pr_debug("%s: pump stev RSP_CONN\n", ch->is->name);
ch                925 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->state = STFAX_ACTIV;
ch                926 drivers/isdn/hardware/mISDN/mISDNisar.c 			test_and_set_bit(ISAR_RATE_REQ, &ch->is->Flags);
ch                927 drivers/isdn/hardware/mISDN/mISDNisar.c 			send_mbox(ch->is, dps | ISAR_HIS_PSTREQ, 0, 0, NULL);
ch                928 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (ch->cmd == PCTRL_CMD_FTH) {
ch                929 drivers/isdn/hardware/mISDN/mISDNisar.c 				int delay = (ch->mod == 3) ? 1000 : 200;
ch                932 drivers/isdn/hardware/mISDN/mISDNisar.c 						     &ch->bch.Flags))
ch                933 drivers/isdn/hardware/mISDN/mISDNisar.c 					del_timer(&ch->ftimer);
ch                934 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->ftimer.expires =
ch                937 drivers/isdn/hardware/mISDN/mISDNisar.c 						 &ch->bch.Flags);
ch                938 drivers/isdn/hardware/mISDN/mISDNisar.c 				add_timer(&ch->ftimer);
ch                940 drivers/isdn/hardware/mISDN/mISDNisar.c 				deliver_status(ch, HW_MOD_CONNECT);
ch                944 drivers/isdn/hardware/mISDN/mISDNisar.c 				 ch->is->name, ch->state);
ch                948 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s: pump stev FLAGS_DET\n", ch->is->name);
ch                952 drivers/isdn/hardware/mISDN/mISDNisar.c 			 ch->is->name, ch->state);
ch                953 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->state == STFAX_ESCAPE) {
ch                955 drivers/isdn/hardware/mISDN/mISDNisar.c 			switch (ch->newcmd) {
ch                957 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->state = STFAX_READY;
ch                963 drivers/isdn/hardware/mISDN/mISDNisar.c 				send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
ch                965 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->state = STFAX_SILDET;
ch                969 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->mod = ch->newmod;
ch                970 drivers/isdn/hardware/mISDN/mISDNisar.c 				p1 = ch->newmod;
ch                971 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->newmod = 0;
ch                972 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->cmd = ch->newcmd;
ch                973 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->newcmd = 0;
ch                974 drivers/isdn/hardware/mISDN/mISDNisar.c 				send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
ch                975 drivers/isdn/hardware/mISDN/mISDNisar.c 					  ch->cmd, 1, &p1);
ch                976 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->state = STFAX_LINE;
ch                977 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->try_mod = 3;
ch                981 drivers/isdn/hardware/mISDN/mISDNisar.c 					 ch->is->name, ch->newcmd);
ch                984 drivers/isdn/hardware/mISDN/mISDNisar.c 		} else if (ch->state == STFAX_ACTIV) {
ch                985 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (test_and_clear_bit(FLG_LL_OK, &ch->bch.Flags))
ch                986 drivers/isdn/hardware/mISDN/mISDNisar.c 				deliver_status(ch, HW_MOD_OK);
ch                987 drivers/isdn/hardware/mISDN/mISDNisar.c 			else if (ch->cmd == PCTRL_CMD_FRM)
ch                988 drivers/isdn/hardware/mISDN/mISDNisar.c 				deliver_status(ch, HW_MOD_NOCARR);
ch                990 drivers/isdn/hardware/mISDN/mISDNisar.c 				deliver_status(ch, HW_MOD_FCERROR);
ch                991 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->state = STFAX_READY;
ch                992 drivers/isdn/hardware/mISDN/mISDNisar.c 		} else if (ch->state != STFAX_SILDET) {
ch                994 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->state = STFAX_READY;
ch                995 drivers/isdn/hardware/mISDN/mISDNisar.c 			deliver_status(ch, HW_MOD_FCERROR);
ch                999 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s: pump stev RSP_SILDET\n", ch->is->name);
ch               1000 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->state == STFAX_SILDET) {
ch               1001 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->mod = ch->newmod;
ch               1002 drivers/isdn/hardware/mISDN/mISDNisar.c 			p1 = ch->newmod;
ch               1003 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->newmod = 0;
ch               1004 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->cmd = ch->newcmd;
ch               1005 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->newcmd = 0;
ch               1006 drivers/isdn/hardware/mISDN/mISDNisar.c 			send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
ch               1007 drivers/isdn/hardware/mISDN/mISDNisar.c 				  ch->cmd, 1, &p1);
ch               1008 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->state = STFAX_LINE;
ch               1009 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->try_mod = 3;
ch               1013 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s: pump stev RSP_SILOFF\n", ch->is->name);
ch               1016 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->state == STFAX_LINE) {
ch               1018 drivers/isdn/hardware/mISDN/mISDNisar.c 				 ch->is->name, ch->try_mod);
ch               1019 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (ch->try_mod--) {
ch               1020 drivers/isdn/hardware/mISDN/mISDNisar.c 				send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
ch               1021 drivers/isdn/hardware/mISDN/mISDNisar.c 					  ch->cmd, 1, &ch->mod);
ch               1025 drivers/isdn/hardware/mISDN/mISDNisar.c 		pr_debug("%s: pump stev RSP_FCERR\n", ch->is->name);
ch               1026 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch->state = STFAX_ESCAPE;
ch               1027 drivers/isdn/hardware/mISDN/mISDNisar.c 		send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL, PCTRL_CMD_ESC,
ch               1029 drivers/isdn/hardware/mISDN/mISDNisar.c 		deliver_status(ch, HW_MOD_FCERROR);
ch               1039 drivers/isdn/hardware/mISDN/mISDNisar.c 	struct isar_ch *ch;
ch               1044 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch = sel_bch_isar(isar, isar->iis >> 6);
ch               1045 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch)
ch               1046 drivers/isdn/hardware/mISDN/mISDNisar.c 			isar_rcv_frame(ch);
ch               1061 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch = sel_bch_isar(isar, isar->iis >> 6);
ch               1062 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch) {
ch               1064 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->bch.err_tx++;
ch               1066 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->bch.err_rdo++;
ch               1074 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch = sel_bch_isar(isar, isar->iis >> 6);
ch               1075 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch) {
ch               1077 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (ch->bch.state == ISDN_P_B_MODEM_ASYNC)
ch               1078 drivers/isdn/hardware/mISDN/mISDNisar.c 				isar_pump_statev_modem(ch, isar->cmsb);
ch               1079 drivers/isdn/hardware/mISDN/mISDNisar.c 			else if (ch->bch.state == ISDN_P_B_T30_FAX)
ch               1080 drivers/isdn/hardware/mISDN/mISDNisar.c 				isar_pump_statev_fax(ch, isar->cmsb);
ch               1081 drivers/isdn/hardware/mISDN/mISDNisar.c 			else if (ch->bch.state == ISDN_P_B_RAW) {
ch               1091 drivers/isdn/hardware/mISDN/mISDNisar.c 				_queue_data(&ch->bch.ch, PH_CONTROL_IND,
ch               1096 drivers/isdn/hardware/mISDN/mISDNisar.c 					 isar->name, ch->bch.state,
ch               1106 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch = sel_bch_isar(isar, isar->iis >> 6);
ch               1107 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch) {
ch               1109 drivers/isdn/hardware/mISDN/mISDNisar.c 			isar_pump_status_rsp(ch);
ch               1138 drivers/isdn/hardware/mISDN/mISDNisar.c 	struct isar_ch *ch = from_timer(ch, t, ftimer);
ch               1140 drivers/isdn/hardware/mISDN/mISDNisar.c 	pr_debug("%s: ftimer flags %lx\n", ch->is->name, ch->bch.Flags);
ch               1141 drivers/isdn/hardware/mISDN/mISDNisar.c 	test_and_clear_bit(FLG_FTI_RUN, &ch->bch.Flags);
ch               1142 drivers/isdn/hardware/mISDN/mISDNisar.c 	if (test_and_clear_bit(FLG_LL_CONN, &ch->bch.Flags))
ch               1143 drivers/isdn/hardware/mISDN/mISDNisar.c 		deliver_status(ch, HW_MOD_CONNECT);
ch               1147 drivers/isdn/hardware/mISDN/mISDNisar.c setup_pump(struct isar_ch *ch) {
ch               1148 drivers/isdn/hardware/mISDN/mISDNisar.c 	u8 dps = SET_DPS(ch->dpath);
ch               1151 drivers/isdn/hardware/mISDN/mISDNisar.c 	switch (ch->bch.state) {
ch               1155 drivers/isdn/hardware/mISDN/mISDNisar.c 		send_mbox(ch->is, dps | ISAR_HIS_PUMPCFG, PMOD_BYPASS, 0, NULL);
ch               1158 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (test_bit(FLG_DTMFSEND, &ch->bch.Flags)) {
ch               1160 drivers/isdn/hardware/mISDN/mISDNisar.c 			send_mbox(ch->is, dps | ISAR_HIS_PUMPCFG,
ch               1164 drivers/isdn/hardware/mISDN/mISDNisar.c 			send_mbox(ch->is, dps | ISAR_HIS_PUMPCFG,
ch               1170 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (test_bit(FLG_ORIGIN, &ch->bch.Flags)) {
ch               1182 drivers/isdn/hardware/mISDN/mISDNisar.c 		send_mbox(ch->is, dps | ISAR_HIS_PUMPCFG, ctrl, 6, param);
ch               1186 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (test_bit(FLG_ORIGIN, &ch->bch.Flags)) {
ch               1193 drivers/isdn/hardware/mISDN/mISDNisar.c 		send_mbox(ch->is, dps | ISAR_HIS_PUMPCFG, ctrl, 2, param);
ch               1194 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch->state = STFAX_NULL;
ch               1195 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch->newcmd = 0;
ch               1196 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch->newmod = 0;
ch               1197 drivers/isdn/hardware/mISDN/mISDNisar.c 		test_and_set_bit(FLG_FTI_RUN, &ch->bch.Flags);
ch               1201 drivers/isdn/hardware/mISDN/mISDNisar.c 	send_mbox(ch->is, dps | ISAR_HIS_PSTREQ, 0, 0, NULL);
ch               1206 drivers/isdn/hardware/mISDN/mISDNisar.c setup_sart(struct isar_ch *ch) {
ch               1207 drivers/isdn/hardware/mISDN/mISDNisar.c 	u8 dps = SET_DPS(ch->dpath);
ch               1210 drivers/isdn/hardware/mISDN/mISDNisar.c 	switch (ch->bch.state) {
ch               1212 drivers/isdn/hardware/mISDN/mISDNisar.c 		send_mbox(ch->is, dps | ISAR_HIS_SARTCFG, SMODE_DISABLE,
ch               1217 drivers/isdn/hardware/mISDN/mISDNisar.c 		send_mbox(ch->is, dps | ISAR_HIS_SARTCFG, SMODE_BINARY,
ch               1222 drivers/isdn/hardware/mISDN/mISDNisar.c 		send_mbox(ch->is, dps | ISAR_HIS_SARTCFG, SMODE_HDLC,
ch               1229 drivers/isdn/hardware/mISDN/mISDNisar.c 		send_mbox(ch->is, dps | ISAR_HIS_SARTCFG, ctrl, 2, param);
ch               1233 drivers/isdn/hardware/mISDN/mISDNisar.c 	send_mbox(ch->is, dps | ISAR_HIS_BSTREQ, 0, 0, NULL);
ch               1238 drivers/isdn/hardware/mISDN/mISDNisar.c setup_iom2(struct isar_ch *ch) {
ch               1239 drivers/isdn/hardware/mISDN/mISDNisar.c 	u8 dps = SET_DPS(ch->dpath);
ch               1242 drivers/isdn/hardware/mISDN/mISDNisar.c 	if (ch->bch.nr == 2) {
ch               1246 drivers/isdn/hardware/mISDN/mISDNisar.c 	switch (ch->bch.state) {
ch               1250 drivers/isdn/hardware/mISDN/mISDNisar.c 		msg[1] = ch->dpath + 2;
ch               1251 drivers/isdn/hardware/mISDN/mISDNisar.c 		msg[3] = ch->dpath + 2;
ch               1261 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (test_bit(FLG_DTMFSEND, &ch->bch.Flags))
ch               1266 drivers/isdn/hardware/mISDN/mISDNisar.c 	send_mbox(ch->is, dps | ISAR_HIS_IOM2CFG, cmsb, 5, msg);
ch               1268 drivers/isdn/hardware/mISDN/mISDNisar.c 	send_mbox(ch->is, dps | ISAR_HIS_IOM2REQ, 0, 0, NULL);
ch               1273 drivers/isdn/hardware/mISDN/mISDNisar.c modeisar(struct isar_ch *ch, u32 bprotocol)
ch               1276 drivers/isdn/hardware/mISDN/mISDNisar.c 	if (ch->bch.state == ISDN_P_NONE) { /* New Setup */
ch               1279 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (!ch->dpath)
ch               1282 drivers/isdn/hardware/mISDN/mISDNisar.c 			test_and_clear_bit(FLG_HDLC, &ch->bch.Flags);
ch               1283 drivers/isdn/hardware/mISDN/mISDNisar.c 			test_and_clear_bit(FLG_TRANSPARENT, &ch->bch.Flags);
ch               1288 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (!test_and_set_bit(ISAR_DP2_USE, &ch->is->Flags))
ch               1289 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->dpath = 2;
ch               1291 drivers/isdn/hardware/mISDN/mISDNisar.c 						   &ch->is->Flags))
ch               1292 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->dpath = 1;
ch               1298 drivers/isdn/hardware/mISDN/mISDNisar.c 				test_and_set_bit(FLG_HDLC, &ch->bch.Flags);
ch               1301 drivers/isdn/hardware/mISDN/mISDNisar.c 						 &ch->bch.Flags);
ch               1307 drivers/isdn/hardware/mISDN/mISDNisar.c 			if (!test_and_set_bit(ISAR_DP1_USE, &ch->is->Flags))
ch               1308 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->dpath = 1;
ch               1311 drivers/isdn/hardware/mISDN/mISDNisar.c 					"only with DP1\n", ch->is->name);
ch               1316 drivers/isdn/hardware/mISDN/mISDNisar.c 			pr_info("%s: protocol not known %x\n", ch->is->name,
ch               1321 drivers/isdn/hardware/mISDN/mISDNisar.c 	pr_debug("%s: ISAR ch%d dp%d protocol %x->%x\n", ch->is->name,
ch               1322 drivers/isdn/hardware/mISDN/mISDNisar.c 		 ch->bch.nr, ch->dpath, ch->bch.state, bprotocol);
ch               1323 drivers/isdn/hardware/mISDN/mISDNisar.c 	ch->bch.state = bprotocol;
ch               1324 drivers/isdn/hardware/mISDN/mISDNisar.c 	setup_pump(ch);
ch               1325 drivers/isdn/hardware/mISDN/mISDNisar.c 	setup_iom2(ch);
ch               1326 drivers/isdn/hardware/mISDN/mISDNisar.c 	setup_sart(ch);
ch               1327 drivers/isdn/hardware/mISDN/mISDNisar.c 	if (ch->bch.state == ISDN_P_NONE) {
ch               1329 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->dpath == 1)
ch               1330 drivers/isdn/hardware/mISDN/mISDNisar.c 			test_and_clear_bit(ISAR_DP1_USE, &ch->is->Flags);
ch               1331 drivers/isdn/hardware/mISDN/mISDNisar.c 		else if (ch->dpath == 2)
ch               1332 drivers/isdn/hardware/mISDN/mISDNisar.c 			test_and_clear_bit(ISAR_DP2_USE, &ch->is->Flags);
ch               1333 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch->dpath = 0;
ch               1334 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch->is->ctrl(ch->is->hw, HW_DEACT_IND, ch->bch.nr);
ch               1336 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch->is->ctrl(ch->is->hw, HW_ACTIVATE_IND, ch->bch.nr);
ch               1341 drivers/isdn/hardware/mISDN/mISDNisar.c isar_pump_cmd(struct isar_ch *ch, u32 cmd, u8 para)
ch               1343 drivers/isdn/hardware/mISDN/mISDNisar.c 	u8 dps = SET_DPS(ch->dpath);
ch               1347 drivers/isdn/hardware/mISDN/mISDNisar.c 		 ch->is->name, cmd, para, ch->bch.state);
ch               1350 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->state == STFAX_READY) {
ch               1354 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->state = STFAX_LINE;
ch               1355 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->cmd = ctrl;
ch               1356 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->mod = para;
ch               1357 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->newmod = 0;
ch               1358 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->newcmd = 0;
ch               1359 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->try_mod = 3;
ch               1360 drivers/isdn/hardware/mISDN/mISDNisar.c 		} else if ((ch->state == STFAX_ACTIV) &&
ch               1361 drivers/isdn/hardware/mISDN/mISDNisar.c 			   (ch->cmd == PCTRL_CMD_FTM) && (ch->mod == para))
ch               1362 drivers/isdn/hardware/mISDN/mISDNisar.c 			deliver_status(ch, HW_MOD_CONNECT);
ch               1364 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->newmod = para;
ch               1365 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->newcmd = PCTRL_CMD_FTM;
ch               1368 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->state = STFAX_ESCAPE;
ch               1372 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->state == STFAX_READY) {
ch               1376 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->state = STFAX_LINE;
ch               1377 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->cmd = ctrl;
ch               1378 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->mod = para;
ch               1379 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->newmod = 0;
ch               1380 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->newcmd = 0;
ch               1381 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->try_mod = 3;
ch               1382 drivers/isdn/hardware/mISDN/mISDNisar.c 		} else if ((ch->state == STFAX_ACTIV) &&
ch               1383 drivers/isdn/hardware/mISDN/mISDNisar.c 			   (ch->cmd == PCTRL_CMD_FTH) && (ch->mod == para))
ch               1384 drivers/isdn/hardware/mISDN/mISDNisar.c 			deliver_status(ch, HW_MOD_CONNECT);
ch               1386 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->newmod = para;
ch               1387 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->newcmd = PCTRL_CMD_FTH;
ch               1390 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->state = STFAX_ESCAPE;
ch               1394 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->state == STFAX_READY) {
ch               1398 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->state = STFAX_LINE;
ch               1399 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->cmd = ctrl;
ch               1400 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->mod = para;
ch               1401 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->newmod = 0;
ch               1402 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->newcmd = 0;
ch               1403 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->try_mod = 3;
ch               1404 drivers/isdn/hardware/mISDN/mISDNisar.c 		} else if ((ch->state == STFAX_ACTIV) &&
ch               1405 drivers/isdn/hardware/mISDN/mISDNisar.c 			   (ch->cmd == PCTRL_CMD_FRM) && (ch->mod == para))
ch               1406 drivers/isdn/hardware/mISDN/mISDNisar.c 			deliver_status(ch, HW_MOD_CONNECT);
ch               1408 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->newmod = para;
ch               1409 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->newcmd = PCTRL_CMD_FRM;
ch               1412 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->state = STFAX_ESCAPE;
ch               1416 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (ch->state == STFAX_READY) {
ch               1420 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->state = STFAX_LINE;
ch               1421 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->cmd = ctrl;
ch               1422 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->mod = para;
ch               1423 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->newmod = 0;
ch               1424 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->newcmd = 0;
ch               1425 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->try_mod = 3;
ch               1426 drivers/isdn/hardware/mISDN/mISDNisar.c 		} else if ((ch->state == STFAX_ACTIV) &&
ch               1427 drivers/isdn/hardware/mISDN/mISDNisar.c 			   (ch->cmd == PCTRL_CMD_FRH) && (ch->mod == para))
ch               1428 drivers/isdn/hardware/mISDN/mISDNisar.c 			deliver_status(ch, HW_MOD_CONNECT);
ch               1430 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->newmod = para;
ch               1431 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->newcmd = PCTRL_CMD_FRH;
ch               1434 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->state = STFAX_ESCAPE;
ch               1444 drivers/isdn/hardware/mISDN/mISDNisar.c 		send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL, ctrl, nom, &p1);
ch               1459 drivers/isdn/hardware/mISDN/mISDNisar.c 		isar->ch[i].mml = msg;
ch               1460 drivers/isdn/hardware/mISDN/mISDNisar.c 		isar->ch[i].bch.state = 0;
ch               1461 drivers/isdn/hardware/mISDN/mISDNisar.c 		isar->ch[i].dpath = i + 1;
ch               1462 drivers/isdn/hardware/mISDN/mISDNisar.c 		modeisar(&isar->ch[i], ISDN_P_NONE);
ch               1467 drivers/isdn/hardware/mISDN/mISDNisar.c isar_l2l1(struct mISDNchannel *ch, struct sk_buff *skb)
ch               1469 drivers/isdn/hardware/mISDN/mISDNisar.c 	struct bchannel *bch = container_of(ch, struct bchannel, ch);
ch               1489 drivers/isdn/hardware/mISDN/mISDNisar.c 			ret = modeisar(ich, ch->protocol);
ch               1494 drivers/isdn/hardware/mISDN/mISDNisar.c 			_queue_data(ch, PH_ACTIVATE_IND, MISDN_ID_ANY, 0,
ch               1502 drivers/isdn/hardware/mISDN/mISDNisar.c 		_queue_data(ch, PH_DEACTIVATE_IND, MISDN_ID_ANY, 0,
ch               1570 drivers/isdn/hardware/mISDN/mISDNisar.c isar_bctrl(struct mISDNchannel *ch, u32 cmd, void *arg)
ch               1572 drivers/isdn/hardware/mISDN/mISDNisar.c 	struct bchannel *bch = container_of(ch, struct bchannel, ch);
ch               1586 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch->protocol = ISDN_P_NONE;
ch               1587 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch->peer = NULL;
ch               1604 drivers/isdn/hardware/mISDN/mISDNisar.c 	modeisar(&isar->ch[0], ISDN_P_NONE);
ch               1605 drivers/isdn/hardware/mISDN/mISDNisar.c 	modeisar(&isar->ch[1], ISDN_P_NONE);
ch               1606 drivers/isdn/hardware/mISDN/mISDNisar.c 	del_timer(&isar->ch[0].ftimer);
ch               1607 drivers/isdn/hardware/mISDN/mISDNisar.c 	del_timer(&isar->ch[1].ftimer);
ch               1608 drivers/isdn/hardware/mISDN/mISDNisar.c 	test_and_clear_bit(FLG_INITIALIZED, &isar->ch[0].bch.Flags);
ch               1609 drivers/isdn/hardware/mISDN/mISDNisar.c 	test_and_clear_bit(FLG_INITIALIZED, &isar->ch[1].bch.Flags);
ch               1619 drivers/isdn/hardware/mISDN/mISDNisar.c 		if (isar->ch[0].bch.debug & DEBUG_HW)
ch               1628 drivers/isdn/hardware/mISDN/mISDNisar.c 	timer_setup(&isar->ch[0].ftimer, ftimer_handler, 0);
ch               1629 drivers/isdn/hardware/mISDN/mISDNisar.c 	test_and_set_bit(FLG_INITIALIZED, &isar->ch[0].bch.Flags);
ch               1630 drivers/isdn/hardware/mISDN/mISDNisar.c 	timer_setup(&isar->ch[1].ftimer, ftimer_handler, 0);
ch               1631 drivers/isdn/hardware/mISDN/mISDNisar.c 	test_and_set_bit(FLG_INITIALIZED, &isar->ch[1].bch.Flags);
ch               1644 drivers/isdn/hardware/mISDN/mISDNisar.c 	bch = &isar->ch[rq->adr.channel - 1].bch;
ch               1647 drivers/isdn/hardware/mISDN/mISDNisar.c 	bch->ch.protocol = rq->protocol;
ch               1648 drivers/isdn/hardware/mISDN/mISDNisar.c 	rq->ch = &bch->ch;
ch               1659 drivers/isdn/hardware/mISDN/mISDNisar.c 		isar->ch[i].bch.nr = i + 1;
ch               1660 drivers/isdn/hardware/mISDN/mISDNisar.c 		mISDN_initbchannel(&isar->ch[i].bch, MAX_DATA_MEM, 32);
ch               1661 drivers/isdn/hardware/mISDN/mISDNisar.c 		isar->ch[i].bch.ch.nr = i + 1;
ch               1662 drivers/isdn/hardware/mISDN/mISDNisar.c 		isar->ch[i].bch.ch.send = &isar_l2l1;
ch               1663 drivers/isdn/hardware/mISDN/mISDNisar.c 		isar->ch[i].bch.ch.ctrl = isar_bctrl;
ch               1664 drivers/isdn/hardware/mISDN/mISDNisar.c 		isar->ch[i].bch.hw = hw;
ch               1665 drivers/isdn/hardware/mISDN/mISDNisar.c 		isar->ch[i].is = isar;
ch                737 drivers/isdn/hardware/mISDN/netjet.c nj_l2l1B(struct mISDNchannel *ch, struct sk_buff *skb)
ch                740 drivers/isdn/hardware/mISDN/netjet.c 	struct bchannel *bch = container_of(ch, struct bchannel, ch);
ch                759 drivers/isdn/hardware/mISDN/netjet.c 			ret = mode_tiger(bc, ch->protocol);
ch                764 drivers/isdn/hardware/mISDN/netjet.c 			_queue_data(ch, PH_ACTIVATE_IND, MISDN_ID_ANY, 0,
ch                772 drivers/isdn/hardware/mISDN/netjet.c 		_queue_data(ch, PH_DEACTIVATE_IND, MISDN_ID_ANY, 0,
ch                789 drivers/isdn/hardware/mISDN/netjet.c nj_bctrl(struct mISDNchannel *ch, u32 cmd, void *arg)
ch                791 drivers/isdn/hardware/mISDN/netjet.c 	struct bchannel *bch = container_of(ch, struct bchannel, ch);
ch                806 drivers/isdn/hardware/mISDN/netjet.c 		ch->protocol = ISDN_P_NONE;
ch                807 drivers/isdn/hardware/mISDN/netjet.c 		ch->peer = NULL;
ch                861 drivers/isdn/hardware/mISDN/netjet.c 	bch->ch.protocol = rq->protocol;
ch                862 drivers/isdn/hardware/mISDN/netjet.c 	rq->ch = &bch->ch;
ch                870 drivers/isdn/hardware/mISDN/netjet.c nj_dctrl(struct mISDNchannel *ch, u32 cmd, void *arg)
ch                872 drivers/isdn/hardware/mISDN/netjet.c 	struct mISDNdevice	*dev = container_of(ch, struct mISDNdevice, D);
ch               1023 drivers/isdn/hardware/mISDN/netjet.c 		card->bc[i].bch.ch.send = nj_l2l1B;
ch               1024 drivers/isdn/hardware/mISDN/netjet.c 		card->bc[i].bch.ch.ctrl = nj_bctrl;
ch               1025 drivers/isdn/hardware/mISDN/netjet.c 		card->bc[i].bch.ch.nr = i + 1;
ch               1026 drivers/isdn/hardware/mISDN/netjet.c 		list_add(&card->bc[i].bch.ch.list,
ch                 79 drivers/isdn/hardware/mISDN/speedfax.c 	card->isar.ch[0].bch.debug = debug;
ch                 80 drivers/isdn/hardware/mISDN/speedfax.c 	card->isar.ch[1].bch.debug = debug;
ch                236 drivers/isdn/hardware/mISDN/speedfax.c sfax_dctrl(struct mISDNchannel *ch, u32 cmd, void *arg)
ch                238 drivers/isdn/hardware/mISDN/speedfax.c 	struct mISDNdevice	*dev = container_of(ch, struct mISDNdevice, D);
ch                398 drivers/isdn/hardware/mISDN/speedfax.c 		list_add(&card->isar.ch[i].bch.ch.list,
ch                648 drivers/isdn/hardware/mISDN/w6692.c W6692B_interrupt(struct w6692_hw *card, int ch)
ch                650 drivers/isdn/hardware/mISDN/w6692.c 	struct w6692_ch	*wch = &card->bc[ch];
ch                931 drivers/isdn/hardware/mISDN/w6692.c w6692_l2l1B(struct mISDNchannel *ch, struct sk_buff *skb)
ch                933 drivers/isdn/hardware/mISDN/w6692.c 	struct bchannel *bch = container_of(ch, struct bchannel, ch);
ch                953 drivers/isdn/hardware/mISDN/w6692.c 			ret = w6692_mode(bc, ch->protocol);
ch                958 drivers/isdn/hardware/mISDN/w6692.c 			_queue_data(ch, PH_ACTIVATE_IND, MISDN_ID_ANY, 0,
ch                966 drivers/isdn/hardware/mISDN/w6692.c 		_queue_data(ch, PH_DEACTIVATE_IND, MISDN_ID_ANY, 0,
ch                998 drivers/isdn/hardware/mISDN/w6692.c 	bch->ch.protocol = rq->protocol;
ch                999 drivers/isdn/hardware/mISDN/w6692.c 	rq->ch = &bch->ch;
ch               1024 drivers/isdn/hardware/mISDN/w6692.c w6692_bctrl(struct mISDNchannel *ch, u32 cmd, void *arg)
ch               1026 drivers/isdn/hardware/mISDN/w6692.c 	struct bchannel *bch = container_of(ch, struct bchannel, ch);
ch               1041 drivers/isdn/hardware/mISDN/w6692.c 		ch->protocol = ISDN_P_NONE;
ch               1042 drivers/isdn/hardware/mISDN/w6692.c 		ch->peer = NULL;
ch               1057 drivers/isdn/hardware/mISDN/w6692.c w6692_l2l1D(struct mISDNchannel *ch, struct sk_buff *skb)
ch               1059 drivers/isdn/hardware/mISDN/w6692.c 	struct mISDNdevice	*dev = container_of(ch, struct mISDNdevice, D);
ch               1076 drivers/isdn/hardware/mISDN/w6692.c 			queue_ch_frame(ch, PH_DATA_CNF, id, NULL);
ch               1167 drivers/isdn/hardware/mISDN/w6692.c 	rq->ch = &card->dch.dev.D;
ch               1168 drivers/isdn/hardware/mISDN/w6692.c 	rq->ch->protocol = rq->protocol;
ch               1170 drivers/isdn/hardware/mISDN/w6692.c 		_queue_data(rq->ch, PH_ACTIVATE_IND, MISDN_ID_ANY,
ch               1176 drivers/isdn/hardware/mISDN/w6692.c w6692_dctrl(struct mISDNchannel *ch, u32 cmd, void *arg)
ch               1178 drivers/isdn/hardware/mISDN/w6692.c 	struct mISDNdevice *dev = container_of(ch, struct mISDNdevice, D);
ch               1298 drivers/isdn/hardware/mISDN/w6692.c 		card->bc[i].bch.ch.nr = i + 1;
ch               1299 drivers/isdn/hardware/mISDN/w6692.c 		card->bc[i].bch.ch.send = w6692_l2l1B;
ch               1300 drivers/isdn/hardware/mISDN/w6692.c 		card->bc[i].bch.ch.ctrl = w6692_bctrl;
ch               1302 drivers/isdn/hardware/mISDN/w6692.c 		list_add(&card->bc[i].bch.ch.list, &card->dch.dev.bchannels);
ch                357 drivers/isdn/mISDN/core.c const char *mISDNDevName4ch(struct mISDNchannel *ch)
ch                359 drivers/isdn/mISDN/core.c 	if (!ch)
ch                361 drivers/isdn/mISDN/core.c 	if (!ch->st)
ch                363 drivers/isdn/mISDN/core.c 	if (!ch->st->dev)
ch                365 drivers/isdn/mISDN/core.c 	return dev_name(&ch->st->dev->dev);
ch                172 drivers/isdn/mISDN/dsp.h 	struct mISDNchannel	ch;
ch                370 drivers/isdn/mISDN/dsp_cmx.c 	if (dsp->ch.peer)
ch                371 drivers/isdn/mISDN/dsp_cmx.c 		dsp->ch.peer->ctrl(dsp->ch.peer, CONTROL_CHANNEL, &cq);
ch                216 drivers/isdn/mISDN/dsp_core.c 	if (!dsp->ch.peer) {
ch                224 drivers/isdn/mISDN/dsp_core.c 	if (dsp->ch.peer->ctrl(dsp->ch.peer, CONTROL_CHANNEL, &cq)) {
ch                261 drivers/isdn/mISDN/dsp_core.c 	if (!dsp->ch.peer) {
ch                270 drivers/isdn/mISDN/dsp_core.c 	if (dsp->ch.peer->ctrl(dsp->ch.peer, CONTROL_CHANNEL, &cq)) {
ch                626 drivers/isdn/mISDN/dsp_core.c get_features(struct mISDNchannel *ch)
ch                628 drivers/isdn/mISDN/dsp_core.c 	struct dsp		*dsp = container_of(ch, struct dsp, ch);
ch                631 drivers/isdn/mISDN/dsp_core.c 	if (!ch->peer) {
ch                639 drivers/isdn/mISDN/dsp_core.c 	if (ch->peer->ctrl(ch->peer, CONTROL_CHANNEL, &cq) < 0) {
ch                653 drivers/isdn/mISDN/dsp_core.c 		if (ch->peer->ctrl(ch->peer, CONTROL_CHANNEL, &cq)) {
ch                664 drivers/isdn/mISDN/dsp_core.c dsp_function(struct mISDNchannel *ch,  struct sk_buff *skb)
ch                666 drivers/isdn/mISDN/dsp_core.c 	struct dsp		*dsp = container_of(ch, struct dsp, ch);
ch                911 drivers/isdn/mISDN/dsp_core.c 		get_features(ch);
ch                917 drivers/isdn/mISDN/dsp_core.c 		if (ch->peer)
ch                918 drivers/isdn/mISDN/dsp_core.c 			return ch->recv(ch->peer, skb);
ch                937 drivers/isdn/mISDN/dsp_core.c 		if (ch->peer)
ch                938 drivers/isdn/mISDN/dsp_core.c 			return ch->recv(ch->peer, skb);
ch                952 drivers/isdn/mISDN/dsp_core.c dsp_ctrl(struct mISDNchannel *ch, u_int cmd, void *arg)
ch                954 drivers/isdn/mISDN/dsp_core.c 	struct dsp		*dsp = container_of(ch, struct dsp, ch);
ch                965 drivers/isdn/mISDN/dsp_core.c 		if (dsp->ch.peer)
ch                966 drivers/isdn/mISDN/dsp_core.c 			dsp->ch.peer->ctrl(dsp->ch.peer, CLOSE_CHANNEL, NULL);
ch               1035 drivers/isdn/mISDN/dsp_core.c 			if (dsp->ch.peer) {
ch               1037 drivers/isdn/mISDN/dsp_core.c 				if (dsp->ch.recv(dsp->ch.peer, skb)) {
ch               1067 drivers/isdn/mISDN/dsp_core.c 	ndsp->ch.send = dsp_function;
ch               1068 drivers/isdn/mISDN/dsp_core.c 	ndsp->ch.ctrl = dsp_ctrl;
ch               1069 drivers/isdn/mISDN/dsp_core.c 	ndsp->up = crq->ch;
ch               1070 drivers/isdn/mISDN/dsp_core.c 	crq->ch = &ndsp->ch;
ch                 85 drivers/isdn/mISDN/dsp_hwec.c 	if (!dsp->ch.peer->ctrl(&dsp->ch, CONTROL_CHANNEL, &cq)) {
ch                105 drivers/isdn/mISDN/dsp_hwec.c 	if (!dsp->ch.peer->ctrl(&dsp->ch, CONTROL_CHANNEL, &cq)) {
ch                447 drivers/isdn/mISDN/dsp_tones.c 		if (dsp->ch.peer) {
ch                448 drivers/isdn/mISDN/dsp_tones.c 			if (dsp->ch.recv(dsp->ch.peer, nskb))
ch                 46 drivers/isdn/mISDN/hwchannel.c 			if (likely(bch->ch.peer)) {
ch                 47 drivers/isdn/mISDN/hwchannel.c 				err = bch->ch.recv(bch->ch.peer, skb);
ch                 57 drivers/isdn/mISDN/hwchannel.c mISDN_initdchannel(struct dchannel *ch, int maxlen, void *phf)
ch                 59 drivers/isdn/mISDN/hwchannel.c 	test_and_set_bit(FLG_HDLC, &ch->Flags);
ch                 60 drivers/isdn/mISDN/hwchannel.c 	ch->maxlen = maxlen;
ch                 61 drivers/isdn/mISDN/hwchannel.c 	ch->hw = NULL;
ch                 62 drivers/isdn/mISDN/hwchannel.c 	ch->rx_skb = NULL;
ch                 63 drivers/isdn/mISDN/hwchannel.c 	ch->tx_skb = NULL;
ch                 64 drivers/isdn/mISDN/hwchannel.c 	ch->tx_idx = 0;
ch                 65 drivers/isdn/mISDN/hwchannel.c 	ch->phfunc = phf;
ch                 66 drivers/isdn/mISDN/hwchannel.c 	skb_queue_head_init(&ch->squeue);
ch                 67 drivers/isdn/mISDN/hwchannel.c 	skb_queue_head_init(&ch->rqueue);
ch                 68 drivers/isdn/mISDN/hwchannel.c 	INIT_LIST_HEAD(&ch->dev.bchannels);
ch                 69 drivers/isdn/mISDN/hwchannel.c 	INIT_WORK(&ch->workq, dchannel_bh);
ch                 75 drivers/isdn/mISDN/hwchannel.c mISDN_initbchannel(struct bchannel *ch, unsigned short maxlen,
ch                 78 drivers/isdn/mISDN/hwchannel.c 	ch->Flags = 0;
ch                 79 drivers/isdn/mISDN/hwchannel.c 	ch->minlen = minlen;
ch                 80 drivers/isdn/mISDN/hwchannel.c 	ch->next_minlen = minlen;
ch                 81 drivers/isdn/mISDN/hwchannel.c 	ch->init_minlen = minlen;
ch                 82 drivers/isdn/mISDN/hwchannel.c 	ch->maxlen = maxlen;
ch                 83 drivers/isdn/mISDN/hwchannel.c 	ch->next_maxlen = maxlen;
ch                 84 drivers/isdn/mISDN/hwchannel.c 	ch->init_maxlen = maxlen;
ch                 85 drivers/isdn/mISDN/hwchannel.c 	ch->hw = NULL;
ch                 86 drivers/isdn/mISDN/hwchannel.c 	ch->rx_skb = NULL;
ch                 87 drivers/isdn/mISDN/hwchannel.c 	ch->tx_skb = NULL;
ch                 88 drivers/isdn/mISDN/hwchannel.c 	ch->tx_idx = 0;
ch                 89 drivers/isdn/mISDN/hwchannel.c 	skb_queue_head_init(&ch->rqueue);
ch                 90 drivers/isdn/mISDN/hwchannel.c 	ch->rcount = 0;
ch                 91 drivers/isdn/mISDN/hwchannel.c 	ch->next_skb = NULL;
ch                 92 drivers/isdn/mISDN/hwchannel.c 	INIT_WORK(&ch->workq, bchannel_bh);
ch                 98 drivers/isdn/mISDN/hwchannel.c mISDN_freedchannel(struct dchannel *ch)
ch                100 drivers/isdn/mISDN/hwchannel.c 	if (ch->tx_skb) {
ch                101 drivers/isdn/mISDN/hwchannel.c 		dev_kfree_skb(ch->tx_skb);
ch                102 drivers/isdn/mISDN/hwchannel.c 		ch->tx_skb = NULL;
ch                104 drivers/isdn/mISDN/hwchannel.c 	if (ch->rx_skb) {
ch                105 drivers/isdn/mISDN/hwchannel.c 		dev_kfree_skb(ch->rx_skb);
ch                106 drivers/isdn/mISDN/hwchannel.c 		ch->rx_skb = NULL;
ch                108 drivers/isdn/mISDN/hwchannel.c 	skb_queue_purge(&ch->squeue);
ch                109 drivers/isdn/mISDN/hwchannel.c 	skb_queue_purge(&ch->rqueue);
ch                110 drivers/isdn/mISDN/hwchannel.c 	flush_work(&ch->workq);
ch                116 drivers/isdn/mISDN/hwchannel.c mISDN_clear_bchannel(struct bchannel *ch)
ch                118 drivers/isdn/mISDN/hwchannel.c 	if (ch->tx_skb) {
ch                119 drivers/isdn/mISDN/hwchannel.c 		dev_kfree_skb(ch->tx_skb);
ch                120 drivers/isdn/mISDN/hwchannel.c 		ch->tx_skb = NULL;
ch                122 drivers/isdn/mISDN/hwchannel.c 	ch->tx_idx = 0;
ch                123 drivers/isdn/mISDN/hwchannel.c 	if (ch->rx_skb) {
ch                124 drivers/isdn/mISDN/hwchannel.c 		dev_kfree_skb(ch->rx_skb);
ch                125 drivers/isdn/mISDN/hwchannel.c 		ch->rx_skb = NULL;
ch                127 drivers/isdn/mISDN/hwchannel.c 	if (ch->next_skb) {
ch                128 drivers/isdn/mISDN/hwchannel.c 		dev_kfree_skb(ch->next_skb);
ch                129 drivers/isdn/mISDN/hwchannel.c 		ch->next_skb = NULL;
ch                131 drivers/isdn/mISDN/hwchannel.c 	test_and_clear_bit(FLG_TX_BUSY, &ch->Flags);
ch                132 drivers/isdn/mISDN/hwchannel.c 	test_and_clear_bit(FLG_TX_NEXT, &ch->Flags);
ch                133 drivers/isdn/mISDN/hwchannel.c 	test_and_clear_bit(FLG_ACTIVE, &ch->Flags);
ch                134 drivers/isdn/mISDN/hwchannel.c 	test_and_clear_bit(FLG_FILLEMPTY, &ch->Flags);
ch                135 drivers/isdn/mISDN/hwchannel.c 	test_and_clear_bit(FLG_TX_EMPTY, &ch->Flags);
ch                136 drivers/isdn/mISDN/hwchannel.c 	test_and_clear_bit(FLG_RX_OFF, &ch->Flags);
ch                137 drivers/isdn/mISDN/hwchannel.c 	ch->dropcnt = 0;
ch                138 drivers/isdn/mISDN/hwchannel.c 	ch->minlen = ch->init_minlen;
ch                139 drivers/isdn/mISDN/hwchannel.c 	ch->next_minlen = ch->init_minlen;
ch                140 drivers/isdn/mISDN/hwchannel.c 	ch->maxlen = ch->init_maxlen;
ch                141 drivers/isdn/mISDN/hwchannel.c 	ch->next_maxlen = ch->init_maxlen;
ch                142 drivers/isdn/mISDN/hwchannel.c 	skb_queue_purge(&ch->rqueue);
ch                143 drivers/isdn/mISDN/hwchannel.c 	ch->rcount = 0;
ch                148 drivers/isdn/mISDN/hwchannel.c mISDN_freebchannel(struct bchannel *ch)
ch                150 drivers/isdn/mISDN/hwchannel.c 	cancel_work_sync(&ch->workq);
ch                151 drivers/isdn/mISDN/hwchannel.c 	mISDN_clear_bchannel(ch);
ch                384 drivers/isdn/mISDN/hwchannel.c queue_ch_frame(struct mISDNchannel *ch, u_int pr, int id, struct sk_buff *skb)
ch                389 drivers/isdn/mISDN/hwchannel.c 		_queue_data(ch, pr, id, 0, NULL, GFP_ATOMIC);
ch                391 drivers/isdn/mISDN/hwchannel.c 		if (ch->peer) {
ch                395 drivers/isdn/mISDN/hwchannel.c 			if (!ch->recv(ch->peer, skb))
ch                404 drivers/isdn/mISDN/hwchannel.c dchannel_senddata(struct dchannel *ch, struct sk_buff *skb)
ch                411 drivers/isdn/mISDN/hwchannel.c 	if (skb->len > ch->maxlen) {
ch                413 drivers/isdn/mISDN/hwchannel.c 		       __func__, skb->len, ch->maxlen);
ch                417 drivers/isdn/mISDN/hwchannel.c 	if (test_and_set_bit(FLG_TX_BUSY, &ch->Flags)) {
ch                418 drivers/isdn/mISDN/hwchannel.c 		skb_queue_tail(&ch->squeue, skb);
ch                422 drivers/isdn/mISDN/hwchannel.c 		ch->tx_skb = skb;
ch                423 drivers/isdn/mISDN/hwchannel.c 		ch->tx_idx = 0;
ch                430 drivers/isdn/mISDN/hwchannel.c bchannel_senddata(struct bchannel *ch, struct sk_buff *skb)
ch                438 drivers/isdn/mISDN/hwchannel.c 	if (skb->len > ch->maxlen) {
ch                440 drivers/isdn/mISDN/hwchannel.c 		       __func__, skb->len, ch->maxlen);
ch                445 drivers/isdn/mISDN/hwchannel.c 	if (ch->next_skb) {
ch                448 drivers/isdn/mISDN/hwchannel.c 		       __func__, skb->len, ch->next_skb->len);
ch                451 drivers/isdn/mISDN/hwchannel.c 	if (test_and_set_bit(FLG_TX_BUSY, &ch->Flags)) {
ch                452 drivers/isdn/mISDN/hwchannel.c 		test_and_set_bit(FLG_TX_NEXT, &ch->Flags);
ch                453 drivers/isdn/mISDN/hwchannel.c 		ch->next_skb = skb;
ch                457 drivers/isdn/mISDN/hwchannel.c 		ch->tx_skb = skb;
ch                458 drivers/isdn/mISDN/hwchannel.c 		ch->tx_idx = 0;
ch                459 drivers/isdn/mISDN/hwchannel.c 		confirm_Bsend(ch);
ch                435 drivers/isdn/mISDN/l1oip_core.c 			queue_ch_frame(&bch->ch, PH_DATA_IND, rx_counter, nskb);
ch                864 drivers/isdn/mISDN/l1oip_core.c handle_dmsg(struct mISDNchannel *ch, struct sk_buff *skb)
ch                866 drivers/isdn/mISDN/l1oip_core.c 	struct mISDNdevice	*dev = container_of(ch, struct mISDNdevice, D);
ch                901 drivers/isdn/mISDN/l1oip_core.c 		queue_ch_frame(ch, PH_DATA_CNF, hh->id, skb);
ch                909 drivers/isdn/mISDN/l1oip_core.c 			queue_ch_frame(ch, PH_ACTIVATE_IND, hh->id, skb);
ch                911 drivers/isdn/mISDN/l1oip_core.c 			queue_ch_frame(ch, PH_DEACTIVATE_IND, hh->id, skb);
ch                920 drivers/isdn/mISDN/l1oip_core.c 			queue_ch_frame(ch, PH_ACTIVATE_IND, hh->id, skb);
ch                922 drivers/isdn/mISDN/l1oip_core.c 			queue_ch_frame(ch, PH_DEACTIVATE_IND, hh->id, skb);
ch                996 drivers/isdn/mISDN/l1oip_core.c 	rq->ch = &dch->dev.D;
ch               1006 drivers/isdn/mISDN/l1oip_core.c 	int		ch;
ch               1012 drivers/isdn/mISDN/l1oip_core.c 	ch = rq->adr.channel; /* BRI: 1=B1 2=B2  PRI: 1..15,17.. */
ch               1013 drivers/isdn/mISDN/l1oip_core.c 	bch = hc->chan[ch].bch;
ch               1016 drivers/isdn/mISDN/l1oip_core.c 		       __func__, ch);
ch               1021 drivers/isdn/mISDN/l1oip_core.c 	bch->ch.protocol = rq->protocol;
ch               1022 drivers/isdn/mISDN/l1oip_core.c 	rq->ch = &bch->ch;
ch               1029 drivers/isdn/mISDN/l1oip_core.c l1oip_dctrl(struct mISDNchannel *ch, u_int cmd, void *arg)
ch               1031 drivers/isdn/mISDN/l1oip_core.c 	struct mISDNdevice	*dev = container_of(ch, struct mISDNdevice, D);
ch               1084 drivers/isdn/mISDN/l1oip_core.c handle_bmsg(struct mISDNchannel *ch, struct sk_buff *skb)
ch               1086 drivers/isdn/mISDN/l1oip_core.c 	struct bchannel		*bch = container_of(ch, struct bchannel, ch);
ch               1113 drivers/isdn/mISDN/l1oip_core.c 			queue_ch_frame(ch, PH_DATA_CNF, hh->id, skb);
ch               1124 drivers/isdn/mISDN/l1oip_core.c 			queue_ch_frame(ch, PH_DATA_CNF, hh->id, skb);
ch               1144 drivers/isdn/mISDN/l1oip_core.c 		queue_ch_frame(ch, PH_DATA_CNF, hh->id, skb);
ch               1153 drivers/isdn/mISDN/l1oip_core.c 		queue_ch_frame(ch, PH_ACTIVATE_IND, hh->id, skb);
ch               1162 drivers/isdn/mISDN/l1oip_core.c 		queue_ch_frame(ch, PH_DEACTIVATE_IND, hh->id, skb);
ch               1199 drivers/isdn/mISDN/l1oip_core.c l1oip_bctrl(struct mISDNchannel *ch, u_int cmd, void *arg)
ch               1201 drivers/isdn/mISDN/l1oip_core.c 	struct bchannel	*bch = container_of(ch, struct bchannel, ch);
ch               1211 drivers/isdn/mISDN/l1oip_core.c 		ch->protocol = ISDN_P_NONE;
ch               1212 drivers/isdn/mISDN/l1oip_core.c 		ch->peer = NULL;
ch               1233 drivers/isdn/mISDN/l1oip_core.c 	int	ch;
ch               1248 drivers/isdn/mISDN/l1oip_core.c 	for (ch = 0; ch < 128; ch++) {
ch               1249 drivers/isdn/mISDN/l1oip_core.c 		if (hc->chan[ch].dch) {
ch               1250 drivers/isdn/mISDN/l1oip_core.c 			mISDN_freedchannel(hc->chan[ch].dch);
ch               1251 drivers/isdn/mISDN/l1oip_core.c 			kfree(hc->chan[ch].dch);
ch               1253 drivers/isdn/mISDN/l1oip_core.c 		if (hc->chan[ch].bch) {
ch               1254 drivers/isdn/mISDN/l1oip_core.c 			mISDN_freebchannel(hc->chan[ch].bch);
ch               1255 drivers/isdn/mISDN/l1oip_core.c 			kfree(hc->chan[ch].bch);
ch               1257 drivers/isdn/mISDN/l1oip_core.c 			dev_kfree_skb(hc->chan[ch].disorder_skb);
ch               1290 drivers/isdn/mISDN/l1oip_core.c 	int		i, ch;
ch               1389 drivers/isdn/mISDN/l1oip_core.c 	for (ch = 0; ch < dch->dev.nrbchan; ch++) {
ch               1390 drivers/isdn/mISDN/l1oip_core.c 		if (ch == 15)
ch               1398 drivers/isdn/mISDN/l1oip_core.c 		bch->nr = i + ch;
ch               1399 drivers/isdn/mISDN/l1oip_core.c 		bch->slot = i + ch;
ch               1403 drivers/isdn/mISDN/l1oip_core.c 		bch->ch.send = handle_bmsg;
ch               1404 drivers/isdn/mISDN/l1oip_core.c 		bch->ch.ctrl = l1oip_bctrl;
ch               1405 drivers/isdn/mISDN/l1oip_core.c 		bch->ch.nr = i + ch;
ch               1406 drivers/isdn/mISDN/l1oip_core.c 		list_add(&bch->ch.list, &dch->dev.bchannels);
ch               1407 drivers/isdn/mISDN/l1oip_core.c 		hc->chan[i + ch].bch = bch;
ch                105 drivers/isdn/mISDN/layer2.c 	       mISDNDevName4ch(&l2->ch), l2->sapi, l2->tei, &vaf);
ch                145 drivers/isdn/mISDN/layer2.c 	mISDN_HEAD_ID(skb) = (l2->ch.nr << 16) | l2->ch.addr;
ch                149 drivers/isdn/mISDN/layer2.c 		       mISDNDevName4ch(&l2->ch), err);
ch                168 drivers/isdn/mISDN/layer2.c 	hh->id = (l2->ch.nr << 16) | l2->ch.addr;
ch                174 drivers/isdn/mISDN/layer2.c 		       mISDNDevName4ch(&l2->ch), err);
ch                183 drivers/isdn/mISDN/layer2.c 	ret = l2->ch.recv(l2->ch.peer, skb);
ch                186 drivers/isdn/mISDN/layer2.c 		       mISDNDevName4ch(&l2->ch), ret);
ch                287 drivers/isdn/mISDN/layer2.c 		       mISDNDevName4ch(&l2->ch), l2->sapi, l2->tei,
ch                288 drivers/isdn/mISDN/layer2.c 		       l2->ch.nr, event == EV_L2_T200 ? "T200" : "T203");
ch                293 drivers/isdn/mISDN/layer2.c 	hh->id = l2->ch.nr;
ch                296 drivers/isdn/mISDN/layer2.c 		       mISDNDevName4ch(&l2->ch), l2->sapi, l2->tei,
ch                297 drivers/isdn/mISDN/layer2.c 		       l2->ch.nr, event == EV_L2_T200 ? "T200" : "T203");
ch                298 drivers/isdn/mISDN/layer2.c 	if (l2->ch.st)
ch                299 drivers/isdn/mISDN/layer2.c 		l2->ch.st->own.recv(&l2->ch.st->own, skb);
ch                307 drivers/isdn/mISDN/layer2.c 	       mISDNDevName4ch(&l2->ch), l2->id, prim, (char)c);
ch                630 drivers/isdn/mISDN/layer2.c 			       mISDNDevName4ch(&l2->ch), __func__);
ch               1115 drivers/isdn/mISDN/layer2.c 		       mISDNDevName4ch(&l2->ch), __func__);
ch               1175 drivers/isdn/mISDN/layer2.c 				       mISDNDevName4ch(&l2->ch), p1);
ch               1350 drivers/isdn/mISDN/layer2.c 	set_channel_address(&l2->ch, l2->sapi, l2->tei);
ch               1488 drivers/isdn/mISDN/layer2.c 		       mISDNDevName4ch(&l2->ch), i);
ch               1502 drivers/isdn/mISDN/layer2.c 		       mISDNDevName4ch(&l2->ch), p1);
ch               1875 drivers/isdn/mISDN/layer2.c 			       mISDNDevName4ch(&l2->ch));
ch               1884 drivers/isdn/mISDN/layer2.c 				       mISDNDevName4ch(&l2->ch), psapi,
ch               1893 drivers/isdn/mISDN/layer2.c 				       mISDNDevName4ch(&l2->ch), ptei, l2->tei);
ch               1935 drivers/isdn/mISDN/layer2.c 		       mISDNDevName4ch(&l2->ch), c);
ch               1942 drivers/isdn/mISDN/layer2.c l2_send(struct mISDNchannel *ch, struct sk_buff *skb)
ch               1944 drivers/isdn/mISDN/layer2.c 	struct layer2		*l2 = container_of(ch, struct layer2, ch);
ch               1950 drivers/isdn/mISDN/layer2.c 		       __func__, mISDNDevName4ch(&l2->ch), hh->prim, hh->id,
ch               1958 drivers/isdn/mISDN/layer2.c 				mISDNDevName4ch(&l2->ch), hh->prim, hh->id);
ch               2040 drivers/isdn/mISDN/layer2.c 		       mISDNDevName4ch(&l2->ch), cmd, __func__);
ch               2054 drivers/isdn/mISDN/layer2.c 		       mISDNDevName4ch(&l2->ch));
ch               2072 drivers/isdn/mISDN/layer2.c 		if (l2->ch.st)
ch               2073 drivers/isdn/mISDN/layer2.c 			l2->ch.st->dev->D.ctrl(&l2->ch.st->dev->D,
ch               2080 drivers/isdn/mISDN/layer2.c l2_ctrl(struct mISDNchannel *ch, u_int cmd, void *arg)
ch               2082 drivers/isdn/mISDN/layer2.c 	struct layer2		*l2 = container_of(ch, struct layer2, ch);
ch               2087 drivers/isdn/mISDN/layer2.c 		       mISDNDevName4ch(ch), __func__, cmd);
ch               2092 drivers/isdn/mISDN/layer2.c 			set_channel_address(&l2->ch, l2->sapi, l2->tei);
ch               2099 drivers/isdn/mISDN/layer2.c 		if (l2->ch.peer)
ch               2100 drivers/isdn/mISDN/layer2.c 			l2->ch.peer->ctrl(l2->ch.peer, CLOSE_CHANNEL, NULL);
ch               2108 drivers/isdn/mISDN/layer2.c create_l2(struct mISDNchannel *ch, u_int protocol, u_long options, int tei,
ch               2121 drivers/isdn/mISDN/layer2.c 	l2->up = ch;
ch               2122 drivers/isdn/mISDN/layer2.c 	l2->ch.st = ch->st;
ch               2123 drivers/isdn/mISDN/layer2.c 	l2->ch.send = l2_send;
ch               2124 drivers/isdn/mISDN/layer2.c 	l2->ch.ctrl = l2_ctrl;
ch               2149 drivers/isdn/mISDN/layer2.c 		l2->ch.st->dev->D.ctrl(&l2->ch.st->dev->D, OPEN_CHANNEL, &rq);
ch               2174 drivers/isdn/mISDN/layer2.c 		l2->ch.st->dev->D.ctrl(&l2->ch.st->dev->D, OPEN_CHANNEL, &rq);
ch               2221 drivers/isdn/mISDN/layer2.c 	l2 = create_l2(crq->ch, crq->protocol, 0, 0, 0);
ch               2224 drivers/isdn/mISDN/layer2.c 	crq->ch = &l2->ch;
ch                 15 drivers/isdn/mISDN/layer2.h 	struct mISDNchannel	ch;
ch                 45 drivers/isdn/mISDN/layer2.h 	struct mISDNchannel	ch;
ch                 61 drivers/isdn/mISDN/socket.c mISDN_send(struct mISDNchannel *ch, struct sk_buff *skb)
ch                 66 drivers/isdn/mISDN/socket.c 	msk = container_of(ch, struct mISDN_sock, ch);
ch                 79 drivers/isdn/mISDN/socket.c mISDN_ctrl(struct mISDNchannel *ch, u_int cmd, void *arg)
ch                 83 drivers/isdn/mISDN/socket.c 	msk = container_of(ch, struct mISDN_sock, ch);
ch                 85 drivers/isdn/mISDN/socket.c 		printk(KERN_DEBUG "%s(%p, %x, %p)\n", __func__, ch, cmd, arg);
ch                116 drivers/isdn/mISDN/socket.c 		       __func__, (int)len, flags, _pms(sk)->ch.nr,
ch                139 drivers/isdn/mISDN/socket.c 			maddr->channel = _pms(sk)->ch.nr;
ch                140 drivers/isdn/mISDN/socket.c 			maddr->sapi = _pms(sk)->ch.addr & 0xFF;
ch                141 drivers/isdn/mISDN/socket.c 			maddr->tei =  (_pms(sk)->ch.addr >> 8) & 0xFF;
ch                175 drivers/isdn/mISDN/socket.c 		       __func__, (int)len, msg->msg_flags, _pms(sk)->ch.nr,
ch                211 drivers/isdn/mISDN/socket.c 			mISDN_HEAD_ID(skb) = _pms(sk)->ch.nr;
ch                219 drivers/isdn/mISDN/socket.c 	if (!_pms(sk)->ch.peer)
ch                221 drivers/isdn/mISDN/socket.c 	err = _pms(sk)->ch.recv(_pms(sk)->ch.peer, skb);
ch                250 drivers/isdn/mISDN/socket.c 			delete_channel(&_pms(sk)->ch);
ch                262 drivers/isdn/mISDN/socket.c 		delete_channel(&_pms(sk)->ch);
ch                510 drivers/isdn/mISDN/socket.c 	_pms(sk)->ch.send = mISDN_send;
ch                511 drivers/isdn/mISDN/socket.c 	_pms(sk)->ch.ctrl = mISDN_ctrl;
ch                519 drivers/isdn/mISDN/socket.c 		err = connect_layer1(_pms(sk)->dev, &_pms(sk)->ch,
ch                526 drivers/isdn/mISDN/socket.c 		err = create_l2entity(_pms(sk)->dev, &_pms(sk)->ch,
ch                535 drivers/isdn/mISDN/socket.c 		err = connect_Bstack(_pms(sk)->dev, &_pms(sk)->ch,
ch                544 drivers/isdn/mISDN/socket.c 	_pms(sk)->ch.protocol = sk->sk_protocol;
ch                565 drivers/isdn/mISDN/socket.c 	maddr->channel = _pms(sk)->ch.nr;
ch                566 drivers/isdn/mISDN/socket.c 	maddr->sapi = _pms(sk)->ch.addr & 0xff;
ch                567 drivers/isdn/mISDN/socket.c 	maddr->tei = (_pms(sk)->ch.addr >> 8) & 0xff;
ch                 36 drivers/isdn/mISDN/stack.c mISDN_queue_message(struct mISDNchannel *ch, struct sk_buff *skb)
ch                 38 drivers/isdn/mISDN/stack.c 	_queue_message(ch->st, skb);
ch                 45 drivers/isdn/mISDN/stack.c 	struct mISDNchannel	*ch;
ch                 48 drivers/isdn/mISDN/stack.c 	list_for_each_entry(ch, &st->layer2, list) {
ch                 49 drivers/isdn/mISDN/stack.c 		if (id == ch->nr)
ch                 52 drivers/isdn/mISDN/stack.c 	ch = NULL;
ch                 55 drivers/isdn/mISDN/stack.c 	return ch;
ch                 86 drivers/isdn/mISDN/stack.c 	struct mISDNchannel	*ch;
ch                 93 drivers/isdn/mISDN/stack.c 		list_for_each_entry(ch, &st->layer2, list) {
ch                 94 drivers/isdn/mISDN/stack.c 			if (list_is_last(&ch->list, &st->layer2)) {
ch                101 drivers/isdn/mISDN/stack.c 				ret = ch->send(ch, cskb);
ch                107 drivers/isdn/mISDN/stack.c 						       __func__, ch->nr,
ch                108 drivers/isdn/mISDN/stack.c 						       hh->prim, ch->addr, ret);
ch                113 drivers/isdn/mISDN/stack.c 				       __func__, ch->nr, ch->addr);
ch                118 drivers/isdn/mISDN/stack.c 		list_for_each_entry(ch, &st->layer2, list) {
ch                119 drivers/isdn/mISDN/stack.c 			if ((hh->id & MISDN_ID_ADDR_MASK) == ch->addr) {
ch                120 drivers/isdn/mISDN/stack.c 				ret = ch->send(ch, skb);
ch                143 drivers/isdn/mISDN/stack.c 	struct mISDNchannel	*ch;
ch                162 drivers/isdn/mISDN/stack.c 		ch = get_channel4id(st, hh->id);
ch                163 drivers/isdn/mISDN/stack.c 		if (ch)
ch                164 drivers/isdn/mISDN/stack.c 			return ch->send(ch, skb);
ch                172 drivers/isdn/mISDN/stack.c 		ch = get_channel4id(st, hh->id);
ch                173 drivers/isdn/mISDN/stack.c 		if (ch)
ch                174 drivers/isdn/mISDN/stack.c 			return ch->send(ch, skb);
ch                325 drivers/isdn/mISDN/stack.c l1_receive(struct mISDNchannel *ch, struct sk_buff *skb)
ch                327 drivers/isdn/mISDN/stack.c 	if (!ch->st)
ch                330 drivers/isdn/mISDN/stack.c 	_queue_message(ch->st, skb);
ch                335 drivers/isdn/mISDN/stack.c set_channel_address(struct mISDNchannel *ch, u_int sapi, u_int tei)
ch                337 drivers/isdn/mISDN/stack.c 	ch->addr = sapi | (tei << 8);
ch                341 drivers/isdn/mISDN/stack.c __add_layer2(struct mISDNchannel *ch, struct mISDNstack *st)
ch                343 drivers/isdn/mISDN/stack.c 	list_add_tail(&ch->list, &st->layer2);
ch                347 drivers/isdn/mISDN/stack.c add_layer2(struct mISDNchannel *ch, struct mISDNstack *st)
ch                350 drivers/isdn/mISDN/stack.c 	__add_layer2(ch, st);
ch                355 drivers/isdn/mISDN/stack.c st_own_ctrl(struct mISDNchannel *ch, u_int cmd, void *arg)
ch                357 drivers/isdn/mISDN/stack.c 	if (!ch->st || !ch->st->layer1)
ch                359 drivers/isdn/mISDN/stack.c 	return ch->st->layer1->ctrl(ch->st->layer1, cmd, arg);
ch                417 drivers/isdn/mISDN/stack.c connect_layer1(struct mISDNdevice *dev, struct mISDNchannel *ch,
ch                420 drivers/isdn/mISDN/stack.c 	struct mISDN_sock	*msk = container_of(ch, struct mISDN_sock, ch);
ch                434 drivers/isdn/mISDN/stack.c 		ch->recv = mISDN_queue_message;
ch                435 drivers/isdn/mISDN/stack.c 		ch->peer = &dev->D.st->own;
ch                436 drivers/isdn/mISDN/stack.c 		ch->st = dev->D.st;
ch                455 drivers/isdn/mISDN/stack.c connect_Bstack(struct mISDNdevice *dev, struct mISDNchannel *ch,
ch                467 drivers/isdn/mISDN/stack.c 	ch->st = dev->D.st;
ch                475 drivers/isdn/mISDN/stack.c 		ch->recv = rq.ch->send;
ch                476 drivers/isdn/mISDN/stack.c 		ch->peer = rq.ch;
ch                477 drivers/isdn/mISDN/stack.c 		rq.ch->recv = ch->send;
ch                478 drivers/isdn/mISDN/stack.c 		rq.ch->peer = ch;
ch                479 drivers/isdn/mISDN/stack.c 		rq.ch->st = dev->D.st;
ch                486 drivers/isdn/mISDN/stack.c 		rq2.ch = ch;
ch                490 drivers/isdn/mISDN/stack.c 		ch->recv = rq2.ch->send;
ch                491 drivers/isdn/mISDN/stack.c 		ch->peer = rq2.ch;
ch                492 drivers/isdn/mISDN/stack.c 		rq2.ch->st = dev->D.st;
ch                497 drivers/isdn/mISDN/stack.c 			rq2.ch->ctrl(rq2.ch, CLOSE_CHANNEL, NULL);
ch                500 drivers/isdn/mISDN/stack.c 		rq2.ch->recv = rq.ch->send;
ch                501 drivers/isdn/mISDN/stack.c 		rq2.ch->peer = rq.ch;
ch                502 drivers/isdn/mISDN/stack.c 		rq.ch->recv = rq2.ch->send;
ch                503 drivers/isdn/mISDN/stack.c 		rq.ch->peer = rq2.ch;
ch                504 drivers/isdn/mISDN/stack.c 		rq.ch->st = dev->D.st;
ch                506 drivers/isdn/mISDN/stack.c 	ch->protocol = protocol;
ch                507 drivers/isdn/mISDN/stack.c 	ch->nr = rq.ch->nr;
ch                512 drivers/isdn/mISDN/stack.c create_l2entity(struct mISDNdevice *dev, struct mISDNchannel *ch,
ch                533 drivers/isdn/mISDN/stack.c 		ch->recv = mISDN_queue_message;
ch                534 drivers/isdn/mISDN/stack.c 		ch->peer = &dev->D.st->own;
ch                535 drivers/isdn/mISDN/stack.c 		ch->st = dev->D.st;
ch                543 drivers/isdn/mISDN/stack.c 		rq.ch = ch;
ch                547 drivers/isdn/mISDN/stack.c 			if ((protocol == ISDN_P_LAPD_NT) && !rq.ch)
ch                549 drivers/isdn/mISDN/stack.c 			add_layer2(rq.ch, dev->D.st);
ch                550 drivers/isdn/mISDN/stack.c 			rq.ch->recv = mISDN_queue_message;
ch                551 drivers/isdn/mISDN/stack.c 			rq.ch->peer = &dev->D.st->own;
ch                552 drivers/isdn/mISDN/stack.c 			rq.ch->ctrl(rq.ch, OPEN_CHANNEL, NULL); /* can't fail */
ch                562 drivers/isdn/mISDN/stack.c delete_channel(struct mISDNchannel *ch)
ch                564 drivers/isdn/mISDN/stack.c 	struct mISDN_sock	*msk = container_of(ch, struct mISDN_sock, ch);
ch                567 drivers/isdn/mISDN/stack.c 	if (!ch->st) {
ch                573 drivers/isdn/mISDN/stack.c 		       dev_name(&ch->st->dev->dev), ch->protocol);
ch                574 drivers/isdn/mISDN/stack.c 	if (ch->protocol >= ISDN_P_B_START) {
ch                575 drivers/isdn/mISDN/stack.c 		if (ch->peer) {
ch                576 drivers/isdn/mISDN/stack.c 			ch->peer->ctrl(ch->peer, CLOSE_CHANNEL, NULL);
ch                577 drivers/isdn/mISDN/stack.c 			ch->peer = NULL;
ch                581 drivers/isdn/mISDN/stack.c 	switch (ch->protocol) {
ch                586 drivers/isdn/mISDN/stack.c 		write_lock_bh(&ch->st->l1sock.lock);
ch                588 drivers/isdn/mISDN/stack.c 		write_unlock_bh(&ch->st->l1sock.lock);
ch                589 drivers/isdn/mISDN/stack.c 		ch->st->dev->D.ctrl(&ch->st->dev->D, CLOSE_CHANNEL, NULL);
ch                592 drivers/isdn/mISDN/stack.c 		pch = get_channel4id(ch->st, ch->nr);
ch                594 drivers/isdn/mISDN/stack.c 			mutex_lock(&ch->st->lmutex);
ch                596 drivers/isdn/mISDN/stack.c 			mutex_unlock(&ch->st->lmutex);
ch                598 drivers/isdn/mISDN/stack.c 			pch = ch->st->dev->teimgr;
ch                605 drivers/isdn/mISDN/stack.c 		pch = ch->st->dev->teimgr;
ch                 84 drivers/isdn/mISDN/tei.c 	printk(KERN_DEBUG "mgr(%d): %pV\n", mgr->ch.st->dev->id, &vaf);
ch                162 drivers/isdn/mISDN/tei.c 	_queue_data(&mgr->ch, PH_DEACTIVATE_REQ, MISDN_ID_ANY, 0, NULL,
ch                249 drivers/isdn/mISDN/tei.c 		if (l2->ch.nr > 63) {
ch                255 drivers/isdn/mISDN/tei.c 		__set_bit(l2->ch.nr, ids);
ch                273 drivers/isdn/mISDN/tei.c 		if (l2->ch.nr == 0)
ch                275 drivers/isdn/mISDN/tei.c 		if ((l2->ch.addr & 0xff) != 0)
ch                277 drivers/isdn/mISDN/tei.c 		i = l2->ch.addr >> 8;
ch                304 drivers/isdn/mISDN/tei.c 	hh->id = (mgr->ch.nr << 16) | mgr->ch.addr;
ch                343 drivers/isdn/mISDN/tei.c 		if (mgr->ch.recv(mgr->ch.peer, skb)) {
ch                362 drivers/isdn/mISDN/tei.c 					if (!mgr->ch.recv(mgr->ch.peer, skb))
ch                378 drivers/isdn/mISDN/tei.c 		_queue_data(&mgr->ch, PH_ACTIVATE_REQ, MISDN_ID_ANY, 0,
ch                391 drivers/isdn/mISDN/tei.c 		_queue_data(&mgr->ch, PH_ACTIVATE_REQ, MISDN_ID_ANY, 0,
ch                655 drivers/isdn/mISDN/tei.c 	list_del(&l2->ch.list);
ch                656 drivers/isdn/mISDN/tei.c 	l2->ch.ctrl(&l2->ch, CLOSE_CHANNEL, NULL);
ch                794 drivers/isdn/mISDN/tei.c 	if (mgr->ch.st->dev->Dprotocols & ((1 << ISDN_P_TE_E1) |
ch                826 drivers/isdn/mISDN/tei.c 		l2->ch.ctrl(&l2->ch, CLOSE_CHANNEL, NULL);
ch                830 drivers/isdn/mISDN/tei.c 		l2->ch.nr = id;
ch                831 drivers/isdn/mISDN/tei.c 		__add_layer2(&l2->ch, mgr->ch.st);
ch                832 drivers/isdn/mISDN/tei.c 		l2->ch.recv = mgr->ch.recv;
ch                833 drivers/isdn/mISDN/tei.c 		l2->ch.peer = mgr->ch.peer;
ch                834 drivers/isdn/mISDN/tei.c 		l2->ch.ctrl(&l2->ch, OPEN_CHANNEL, NULL);
ch                836 drivers/isdn/mISDN/tei.c 		rq.adr.dev = mgr->ch.st->dev->id;
ch                837 drivers/isdn/mISDN/tei.c 		id = mgr->ch.st->own.ctrl(&mgr->ch.st->own, OPEN_CHANNEL, &rq);
ch                840 drivers/isdn/mISDN/tei.c 			l2->ch.ctrl(&l2->ch, CLOSE_CHANNEL, NULL);
ch                993 drivers/isdn/mISDN/tei.c 		       __func__, dev_name(&mgr->ch.st->dev->dev),
ch               1025 drivers/isdn/mISDN/tei.c 	if (mgr->ch.st->dev->Dprotocols
ch               1029 drivers/isdn/mISDN/tei.c 		mgr->up = crq->ch;
ch               1034 drivers/isdn/mISDN/tei.c 		crq->ch = NULL;
ch               1039 drivers/isdn/mISDN/tei.c 				l2->ch.ctrl(&l2->ch, OPEN_CHANNEL, NULL);
ch               1045 drivers/isdn/mISDN/tei.c 	l2 = create_l2(crq->ch, crq->protocol, opt,
ch               1083 drivers/isdn/mISDN/tei.c 		l2->ch.nr = id;
ch               1085 drivers/isdn/mISDN/tei.c 		crq->ch = &l2->ch;
ch               1087 drivers/isdn/mISDN/tei.c 		id = mgr->ch.st->own.ctrl(&mgr->ch.st->own, OPEN_CHANNEL,
ch               1091 drivers/isdn/mISDN/tei.c 		l2->ch.ctrl(&l2->ch, CLOSE_CHANNEL, NULL);
ch               1096 drivers/isdn/mISDN/tei.c mgr_send(struct mISDNchannel *ch, struct sk_buff *skb)
ch               1102 drivers/isdn/mISDN/tei.c 	mgr = container_of(ch, struct manager, ch);
ch               1150 drivers/isdn/mISDN/tei.c 				mutex_lock(&mgr->ch.st->lmutex);
ch               1151 drivers/isdn/mISDN/tei.c 				list_del(&l2->ch.list);
ch               1152 drivers/isdn/mISDN/tei.c 				mutex_unlock(&mgr->ch.st->lmutex);
ch               1153 drivers/isdn/mISDN/tei.c 				l2->ch.ctrl(&l2->ch, CLOSE_CHANNEL, NULL);
ch               1166 drivers/isdn/mISDN/tei.c 	mgr->ch.st->dev->D.ctrl(&mgr->ch.st->dev->D, CLOSE_CHANNEL, NULL);
ch               1233 drivers/isdn/mISDN/tei.c 	ret = l2->ch.send(&l2->ch, skb);
ch               1238 drivers/isdn/mISDN/tei.c delete_teimanager(struct mISDNchannel *ch)
ch               1243 drivers/isdn/mISDN/tei.c 	mgr = container_of(ch, struct manager, ch);
ch               1246 drivers/isdn/mISDN/tei.c 		mutex_lock(&mgr->ch.st->lmutex);
ch               1247 drivers/isdn/mISDN/tei.c 		list_del(&l2->ch.list);
ch               1248 drivers/isdn/mISDN/tei.c 		mutex_unlock(&mgr->ch.st->lmutex);
ch               1249 drivers/isdn/mISDN/tei.c 		l2->ch.ctrl(&l2->ch, CLOSE_CHANNEL, NULL);
ch               1251 drivers/isdn/mISDN/tei.c 	list_del(&mgr->ch.list);
ch               1258 drivers/isdn/mISDN/tei.c mgr_ctrl(struct mISDNchannel *ch, u_int cmd, void *arg)
ch               1263 drivers/isdn/mISDN/tei.c 	mgr = container_of(ch, struct manager, ch);
ch               1284 drivers/isdn/mISDN/tei.c mgr_bcast(struct mISDNchannel *ch, struct sk_buff *skb)
ch               1286 drivers/isdn/mISDN/tei.c 	struct manager		*mgr = container_of(ch, struct manager, bcast);
ch               1296 drivers/isdn/mISDN/tei.c 		    (l2->ch.addr & MISDN_ID_SAPI_MASK)) {
ch               1311 drivers/isdn/mISDN/tei.c 				hhc->id = l2->ch.nr;
ch               1312 drivers/isdn/mISDN/tei.c 				ret = ch->st->own.recv(&ch->st->own, cskb);
ch               1318 drivers/isdn/mISDN/tei.c 						       __func__, l2->ch.nr,
ch               1319 drivers/isdn/mISDN/tei.c 						       hh->prim, l2->ch.addr, ret);
ch               1324 drivers/isdn/mISDN/tei.c 				       __func__, ch->nr, ch->addr);
ch               1337 drivers/isdn/mISDN/tei.c mgr_bcast_ctrl(struct mISDNchannel *ch, u_int cmd, void *arg)
ch               1356 drivers/isdn/mISDN/tei.c 	mgr->ch.send = mgr_send;
ch               1357 drivers/isdn/mISDN/tei.c 	mgr->ch.ctrl = mgr_ctrl;
ch               1358 drivers/isdn/mISDN/tei.c 	mgr->ch.st = dev->D.st;
ch               1359 drivers/isdn/mISDN/tei.c 	set_channel_address(&mgr->ch, TEI_SAPI, GROUP_TEI);
ch               1360 drivers/isdn/mISDN/tei.c 	add_layer2(&mgr->ch, dev->D.st);
ch               1372 drivers/isdn/mISDN/tei.c 	dev->teimgr = &mgr->ch;
ch                110 drivers/lightnvm/core.c 		int ch = i + ch_map->ch_off;
ch                115 drivers/lightnvm/core.c 				int lunid = (ch * dev->geo.num_lun) + lun;
ch                187 drivers/lightnvm/core.c 			luns[lunid].a.ch = i;
ch                571 drivers/lightnvm/core.c 	struct nvm_ch_map *ch_map = &dev_map->chnls[p->a.ch];
ch                574 drivers/lightnvm/core.c 	p->a.ch += ch_map->ch_off;
ch                582 drivers/lightnvm/core.c 	struct nvm_ch_map *ch_rmap = &dev_rmap->chnls[p->a.ch];
ch                585 drivers/lightnvm/core.c 	p->a.ch -= ch_rmap->ch_off;
ch               1008 drivers/lightnvm/core.c 	int ch, lun, nr_blks;
ch               1026 drivers/lightnvm/core.c 	for (ch = ppa.g.ch; ch < geo->num_ch; ch++) {
ch               1034 drivers/lightnvm/core.c 			ppa_gen.g.ch = ch;
ch                606 drivers/lightnvm/pblk-init.c 		int ch = i % geo->num_ch;
ch                608 drivers/lightnvm/pblk-init.c 		int lunid = lun_raw + ch * geo->num_lun;
ch                 43 drivers/lightnvm/pblk-sysfs.c 					rlun->bppa.a.ch,
ch                973 drivers/lightnvm/pblk.h 	return p.a.lun * geo->num_ch + p.a.ch;
ch                990 drivers/lightnvm/pblk.h 		ppa.g.ch = (paddr & ppaf->ch_mask) >> ppaf->ch_offset;
ch               1045 drivers/lightnvm/pblk.h 		paddr = (u64)p.g.ch << ppaf->ch_offset;
ch               1203 drivers/lightnvm/pblk.h 			p->g.ch, p->g.lun, p->g.blk,
ch               1242 drivers/lightnvm/pblk.h 					ppa->g.ch < geo->num_ch &&
ch                 85 drivers/macintosh/ans-lcd.c 	char ch, __user *temp;
ch                105 drivers/macintosh/ans-lcd.c 		__get_user(ch, temp);
ch                106 drivers/macintosh/ans-lcd.c 		for (; ch; temp++) { /* FIXME: This is ugly, but should work, as a \0 byte is not a valid command code */
ch                107 drivers/macintosh/ans-lcd.c 			anslcd_write_byte_ctrl ( ch );
ch                108 drivers/macintosh/ans-lcd.c 			__get_user(ch, temp);
ch                 24 drivers/mailbox/hi3660-mailbox.c #define MBOX_BASE(mbox, ch)		((mbox)->base + ((ch) * 0x40))
ch                 88 drivers/mailbox/hi3660-mailbox.c 	unsigned long ch = (unsigned long)chan->con_priv;
ch                 90 drivers/mailbox/hi3660-mailbox.c 	struct hi3660_chan_info *mchan = &mbox->mchan[ch];
ch                 91 drivers/mailbox/hi3660-mailbox.c 	void __iomem *base = MBOX_BASE(mbox, ch);
ch                136 drivers/mailbox/hi3660-mailbox.c 	unsigned long ch = (unsigned long)chan->con_priv;
ch                138 drivers/mailbox/hi3660-mailbox.c 	struct hi3660_chan_info *mchan = &mbox->mchan[ch];
ch                139 drivers/mailbox/hi3660-mailbox.c 	void __iomem *base = MBOX_BASE(mbox, ch);
ch                177 drivers/mailbox/hi3660-mailbox.c 	unsigned long ch = (unsigned long)chan->con_priv;
ch                179 drivers/mailbox/hi3660-mailbox.c 	struct hi3660_chan_info *mchan = &mbox->mchan[ch];
ch                180 drivers/mailbox/hi3660-mailbox.c 	void __iomem *base = MBOX_BASE(mbox, ch);
ch                217 drivers/mailbox/hi3660-mailbox.c 	unsigned int ch = spec->args[0];
ch                219 drivers/mailbox/hi3660-mailbox.c 	if (ch >= MBOX_CHAN_MAX) {
ch                220 drivers/mailbox/hi3660-mailbox.c 		dev_err(mbox->dev, "Invalid channel idx %d\n", ch);
ch                224 drivers/mailbox/hi3660-mailbox.c 	mchan = &mbox->mchan[ch];
ch                228 drivers/mailbox/hi3660-mailbox.c 	return &mbox->chan[ch];
ch                244 drivers/mailbox/hi3660-mailbox.c 	unsigned long ch;
ch                265 drivers/mailbox/hi3660-mailbox.c 	for (ch = 0; ch < MBOX_CHAN_MAX; ch++)
ch                266 drivers/mailbox/hi3660-mailbox.c 		chan[ch].con_priv = (void *)ch;
ch                397 drivers/mailbox/tegra-hsp.c 	struct tegra_hsp_channel *ch = &mb->channel;
ch                403 drivers/mailbox/tegra-hsp.c 		value = tegra_hsp_channel_readl(ch, HSP_SM_SHRD_MBOX);
ch                418 drivers/mailbox/tegra-hsp.c 	struct tegra_hsp_channel *ch = &mb->channel;
ch                448 drivers/mailbox/tegra-hsp.c 			tegra_hsp_channel_writel(ch, 0x0,
ch                451 drivers/mailbox/tegra-hsp.c 			tegra_hsp_channel_writel(ch, 0x1,
ch                461 drivers/mailbox/tegra-hsp.c 	struct tegra_hsp_channel *ch = &mb->channel;
ch                467 drivers/mailbox/tegra-hsp.c 			tegra_hsp_channel_writel(ch, 0x0,
ch                470 drivers/mailbox/tegra-hsp.c 			tegra_hsp_channel_writel(ch, 0x0,
ch                929 drivers/md/dm-stats.c 		char ch;
ch                930 drivers/md/dm-stats.c 		s = sscanf(h, "%llu%c", &hi, &ch);
ch                931 drivers/md/dm-stats.c 		if (!s || (s == 2 && ch != ','))
ch                473 drivers/media/dvb-frontends/dib3000mc.c 				      struct dtv_frontend_properties *ch, u16 seq)
ch                476 drivers/media/dvb-frontends/dib3000mc.c 	u32 bw = BANDWIDTH_TO_KHZ(ch->bandwidth_hz);
ch                479 drivers/media/dvb-frontends/dib3000mc.c 	dib3000mc_set_timing(state, ch->transmission_mode, bw, 0);
ch                512 drivers/media/dvb-frontends/dib3000mc.c 	dib3000mc_set_impulse_noise(state, 0, ch->transmission_mode);
ch                515 drivers/media/dvb-frontends/dib3000mc.c 	switch (ch->transmission_mode) {
ch                520 drivers/media/dvb-frontends/dib3000mc.c 	switch (ch->guard_interval) {
ch                527 drivers/media/dvb-frontends/dib3000mc.c 	switch (ch->modulation) {
ch                543 drivers/media/dvb-frontends/dib3000mc.c 	if (ch->hierarchy == 1)
ch                547 drivers/media/dvb-frontends/dib3000mc.c 	switch ((ch->hierarchy == 0 || 1 == 1) ? ch->code_rate_HP : ch->code_rate_LP) {
ch                558 drivers/media/dvb-frontends/dib3000mc.c 	switch (ch->transmission_mode) {
ch                563 drivers/media/dvb-frontends/dib3000mc.c 	switch (ch->guard_interval) {
ch                581 drivers/media/dvb-frontends/dib3000mc.c 	dib3000mc_set_impulse_noise(state, state->cfg->impulse_noise_mode, ch->transmission_mode);
ch                630 drivers/media/dvb-frontends/dib3000mc.c 	struct dtv_frontend_properties *ch = &demod->dtv_property_cache;
ch                634 drivers/media/dvb-frontends/dib3000mc.c 	dib3000mc_set_channel_cfg(state, ch, 0);
ch                646 drivers/media/dvb-frontends/dib3000mc.c 	dib3000mc_set_adp_cfg(state, (u8)ch->modulation);
ch                647 drivers/media/dvb-frontends/dib3000mc.c 	if (ch->transmission_mode == TRANSMISSION_MODE_8K) {
ch                656 drivers/media/dvb-frontends/dib3000mc.c 		dib3000mc_set_timing(state, ch->transmission_mode,
ch                657 drivers/media/dvb-frontends/dib3000mc.c 				     BANDWIDTH_TO_KHZ(ch->bandwidth_hz), 1);
ch                754 drivers/media/dvb-frontends/dib7000m.c 	struct dtv_frontend_properties *ch = &demod->dtv_property_cache;
ch                767 drivers/media/dvb-frontends/dib7000m.c 			if (dib7000m_set_agc_config(state, BAND_OF_FREQUENCY(ch->frequency/1000)) != 0)
ch                843 drivers/media/dvb-frontends/dib7000m.c static void dib7000m_set_channel(struct dib7000m_state *state, struct dtv_frontend_properties *ch,
ch                848 drivers/media/dvb-frontends/dib7000m.c 	dib7000m_set_bandwidth(state, BANDWIDTH_TO_KHZ(ch->bandwidth_hz));
ch                852 drivers/media/dvb-frontends/dib7000m.c 	switch (ch->transmission_mode) {
ch                858 drivers/media/dvb-frontends/dib7000m.c 	switch (ch->guard_interval) {
ch                865 drivers/media/dvb-frontends/dib7000m.c 	switch (ch->modulation) {
ch                884 drivers/media/dvb-frontends/dib7000m.c 	if (ch->hierarchy == 1)
ch                888 drivers/media/dvb-frontends/dib7000m.c 	switch ((ch->hierarchy == 0 || 1 == 1) ? ch->code_rate_HP : ch->code_rate_LP) {
ch                913 drivers/media/dvb-frontends/dib7000m.c 	switch (ch->transmission_mode) {
ch                919 drivers/media/dvb-frontends/dib7000m.c 	switch (ch->guard_interval) {
ch                937 drivers/media/dvb-frontends/dib7000m.c 	switch (ch->modulation) {
ch                966 drivers/media/dvb-frontends/dib7000m.c 	struct dtv_frontend_properties *ch = &demod->dtv_property_cache;
ch                972 drivers/media/dvb-frontends/dib7000m.c 	schan = *ch;
ch               1042 drivers/media/dvb-frontends/dib7000m.c 	struct dtv_frontend_properties *ch = &demod->dtv_property_cache;
ch               1048 drivers/media/dvb-frontends/dib7000m.c 	dib7000m_set_channel(state, ch, 0);
ch               1066 drivers/media/dvb-frontends/dib7000m.c 	switch (ch->transmission_mode) {
ch               1076 drivers/media/dvb-frontends/dib7000m.c 	switch (ch->transmission_mode) {
ch               1086 drivers/media/dvb-frontends/dib7000m.c 	switch (ch->transmission_mode) {
ch               1098 drivers/media/dvb-frontends/dib7000m.c 	dib7000m_set_bandwidth(state, BANDWIDTH_TO_KHZ(ch->bandwidth_hz));
ch                839 drivers/media/dvb-frontends/dib7000p.c 	struct dtv_frontend_properties *ch = &demod->dtv_property_cache;
ch                864 drivers/media/dvb-frontends/dib7000p.c 		if (dib7000p_set_agc_config(state, BAND_OF_FREQUENCY(ch->frequency / 1000)) != 0)
ch                871 drivers/media/dvb-frontends/dib7000p.c 			frequency_offset = (s32)frequency_tuner / 1000 - ch->frequency / 1000;
ch                972 drivers/media/dvb-frontends/dib7000p.c 				 struct dtv_frontend_properties *ch, u8 seq)
ch                976 drivers/media/dvb-frontends/dib7000p.c 	dib7000p_set_bandwidth(state, BANDWIDTH_TO_KHZ(ch->bandwidth_hz));
ch                980 drivers/media/dvb-frontends/dib7000p.c 	switch (ch->transmission_mode) {
ch                992 drivers/media/dvb-frontends/dib7000p.c 	switch (ch->guard_interval) {
ch               1007 drivers/media/dvb-frontends/dib7000p.c 	switch (ch->modulation) {
ch               1038 drivers/media/dvb-frontends/dib7000p.c 	if (ch->hierarchy == 1)
ch               1042 drivers/media/dvb-frontends/dib7000p.c 	switch ((ch->hierarchy == 0 || 1 == 1) ? ch->code_rate_HP : ch->code_rate_LP) {
ch               1069 drivers/media/dvb-frontends/dib7000p.c 	switch (ch->transmission_mode) {
ch               1081 drivers/media/dvb-frontends/dib7000p.c 	switch (ch->guard_interval) {
ch               1102 drivers/media/dvb-frontends/dib7000p.c 	state->div_force_off = !1 && ch->transmission_mode != TRANSMISSION_MODE_8K;
ch               1106 drivers/media/dvb-frontends/dib7000p.c 	switch (ch->modulation) {
ch               1132 drivers/media/dvb-frontends/dib7000p.c 	struct dtv_frontend_properties *ch = &demod->dtv_property_cache;
ch               1138 drivers/media/dvb-frontends/dib7000p.c 	schan = *ch;
ch               1148 drivers/media/dvb-frontends/dib7000p.c 	factor = BANDWIDTH_TO_KHZ(ch->bandwidth_hz);
ch               1279 drivers/media/dvb-frontends/dib7000p.c 	struct dtv_frontend_properties *ch = &demod->dtv_property_cache;
ch               1283 drivers/media/dvb-frontends/dib7000p.c 	if (ch != NULL)
ch               1284 drivers/media/dvb-frontends/dib7000p.c 		dib7000p_set_channel(state, ch, 0);
ch               1312 drivers/media/dvb-frontends/dib7000p.c 	switch (ch->transmission_mode) {
ch               1328 drivers/media/dvb-frontends/dib7000p.c 	switch (ch->transmission_mode) {
ch               1344 drivers/media/dvb-frontends/dib7000p.c 	switch (ch->transmission_mode) {
ch               1376 drivers/media/dvb-frontends/dib7000p.c 		dib7000p_spur_protect(state, ch->frequency / 1000, BANDWIDTH_TO_KHZ(ch->bandwidth_hz));
ch               1378 drivers/media/dvb-frontends/dib7000p.c 	dib7000p_set_bandwidth(state, BANDWIDTH_TO_KHZ(ch->bandwidth_hz));
ch               1194 drivers/media/dvb-frontends/dib9000.c 	struct dibDVBTChannel *ch;
ch               1208 drivers/media/dvb-frontends/dib9000.c 	ch = (struct dibDVBTChannel *)state->i2c_read_buffer;
ch               1211 drivers/media/dvb-frontends/dib9000.c 	switch (ch->spectrum_inversion & 0x7) {
ch               1223 drivers/media/dvb-frontends/dib9000.c 	switch (ch->nfft) {
ch               1238 drivers/media/dvb-frontends/dib9000.c 	switch (ch->guard) {
ch               1256 drivers/media/dvb-frontends/dib9000.c 	switch (ch->constellation) {
ch               1271 drivers/media/dvb-frontends/dib9000.c 	switch (ch->hrch) {
ch               1283 drivers/media/dvb-frontends/dib9000.c 	switch (ch->code_rate_hp) {
ch               1304 drivers/media/dvb-frontends/dib9000.c 	switch (ch->code_rate_lp) {
ch               1349 drivers/media/dvb-frontends/dib9000.c 	struct dibDVBTChannel ch;
ch               1353 drivers/media/dvb-frontends/dib9000.c 		ch.spectrum_inversion = 1;
ch               1356 drivers/media/dvb-frontends/dib9000.c 		ch.spectrum_inversion = 0;
ch               1360 drivers/media/dvb-frontends/dib9000.c 		ch.spectrum_inversion = -1;
ch               1365 drivers/media/dvb-frontends/dib9000.c 		ch.nfft = 0;
ch               1368 drivers/media/dvb-frontends/dib9000.c 		ch.nfft = 2;
ch               1371 drivers/media/dvb-frontends/dib9000.c 		ch.nfft = 1;
ch               1375 drivers/media/dvb-frontends/dib9000.c 		ch.nfft = 1;
ch               1380 drivers/media/dvb-frontends/dib9000.c 		ch.guard = 0;
ch               1383 drivers/media/dvb-frontends/dib9000.c 		ch.guard = 1;
ch               1386 drivers/media/dvb-frontends/dib9000.c 		ch.guard = 2;
ch               1389 drivers/media/dvb-frontends/dib9000.c 		ch.guard = 3;
ch               1393 drivers/media/dvb-frontends/dib9000.c 		ch.guard = -1;
ch               1398 drivers/media/dvb-frontends/dib9000.c 		ch.constellation = 2;
ch               1401 drivers/media/dvb-frontends/dib9000.c 		ch.constellation = 1;
ch               1404 drivers/media/dvb-frontends/dib9000.c 		ch.constellation = 0;
ch               1408 drivers/media/dvb-frontends/dib9000.c 		ch.constellation = -1;
ch               1413 drivers/media/dvb-frontends/dib9000.c 		ch.hrch = 0;
ch               1418 drivers/media/dvb-frontends/dib9000.c 		ch.hrch = 1;
ch               1422 drivers/media/dvb-frontends/dib9000.c 		ch.hrch = -1;
ch               1425 drivers/media/dvb-frontends/dib9000.c 	ch.alpha = 1;
ch               1428 drivers/media/dvb-frontends/dib9000.c 		ch.code_rate_hp = 1;
ch               1431 drivers/media/dvb-frontends/dib9000.c 		ch.code_rate_hp = 2;
ch               1434 drivers/media/dvb-frontends/dib9000.c 		ch.code_rate_hp = 3;
ch               1437 drivers/media/dvb-frontends/dib9000.c 		ch.code_rate_hp = 5;
ch               1440 drivers/media/dvb-frontends/dib9000.c 		ch.code_rate_hp = 7;
ch               1444 drivers/media/dvb-frontends/dib9000.c 		ch.code_rate_hp = -1;
ch               1449 drivers/media/dvb-frontends/dib9000.c 		ch.code_rate_lp = 1;
ch               1452 drivers/media/dvb-frontends/dib9000.c 		ch.code_rate_lp = 2;
ch               1455 drivers/media/dvb-frontends/dib9000.c 		ch.code_rate_lp = 3;
ch               1458 drivers/media/dvb-frontends/dib9000.c 		ch.code_rate_lp = 5;
ch               1461 drivers/media/dvb-frontends/dib9000.c 		ch.code_rate_lp = 7;
ch               1465 drivers/media/dvb-frontends/dib9000.c 		ch.code_rate_lp = -1;
ch               1468 drivers/media/dvb-frontends/dib9000.c 	ch.select_hp = 1;
ch               1469 drivers/media/dvb-frontends/dib9000.c 	ch.intlv_native = 1;
ch               1471 drivers/media/dvb-frontends/dib9000.c 	dib9000_risc_mem_write(state, FE_MM_W_CHANNEL_UNION, (u8 *) &ch);
ch                202 drivers/media/pci/cobalt/cobalt-v4l2.c 	int ch = (int)s->video_channel;
ch                220 drivers/media/pci/cobalt/cobalt-v4l2.c 	packer = COBALT_CVI_PACKER(cobalt, ch);
ch                577 drivers/media/pci/cx18/cx18-av-core.c 	} ch[3] = {NONE, NONE, NONE};
ch                591 drivers/media/pci/cx18/cx18-av-core.c 		ch[0] = CVBS;
ch                610 drivers/media/pci/cx18/cx18-av-core.c 		ch[0] = Y;
ch                612 drivers/media/pci/cx18/cx18-av-core.c 		ch[1] = Pr;
ch                614 drivers/media/pci/cx18/cx18-av-core.c 		ch[2] = Pb;
ch                630 drivers/media/pci/cx18/cx18-av-core.c 		ch[0] = Y;
ch                634 drivers/media/pci/cx18/cx18-av-core.c 			ch[2] = C;
ch                638 drivers/media/pci/cx18/cx18-av-core.c 			ch[1] = C;
ch                650 drivers/media/pci/cx18/cx18-av-core.c 		ch[1] = SIF;
ch                654 drivers/media/pci/cx18/cx18-av-core.c 		ch[1] = SIF;
ch                658 drivers/media/pci/cx18/cx18-av-core.c 		ch[1] = SIF;
ch                662 drivers/media/pci/cx18/cx18-av-core.c 		ch[2] = SIF;
ch                666 drivers/media/pci/cx18/cx18-av-core.c 		ch[2] = SIF;
ch                682 drivers/media/pci/cx18/cx18-av-core.c 	if (ch[2] == NONE)
ch                688 drivers/media/pci/cx18/cx18-av-core.c 	if (ch[1] != NONE && ch[2] != NONE)
ch                698 drivers/media/pci/cx18/cx18-av-core.c 	if (ch[1] != NONE && ch[2] != NONE)
ch                702 drivers/media/pci/cx18/cx18-av-core.c 		switch (ch[i]) {
ch                718 drivers/media/pci/cx18/cx18-av-core.c 			if (i == 0 && ch[i] == C)
ch                292 drivers/media/pci/cx18/cx18-fileops.c 		u8 ch = cx->search_pack_header ? 0xba : 0xe0;
ch                307 drivers/media/pci/cx18/cx18-fileops.c 			    q[1] != 0 || q[2] != 1 || q[3] != ch)
ch                321 drivers/media/pci/cx18/cx18-fileops.c 					ch = 0xba; /* next want a Program Pack*/
ch                455 drivers/media/pci/cx23885/cx23885-core.c 				      struct sram_channel *ch,
ch                461 drivers/media/pci/cx23885/cx23885-core.c 	if (ch->cmds_start == 0) {
ch                463 drivers/media/pci/cx23885/cx23885-core.c 			ch->name);
ch                464 drivers/media/pci/cx23885/cx23885-core.c 		cx_write(ch->ptr1_reg, 0);
ch                465 drivers/media/pci/cx23885/cx23885-core.c 		cx_write(ch->ptr2_reg, 0);
ch                466 drivers/media/pci/cx23885/cx23885-core.c 		cx_write(ch->cnt2_reg, 0);
ch                467 drivers/media/pci/cx23885/cx23885-core.c 		cx_write(ch->cnt1_reg, 0);
ch                471 drivers/media/pci/cx23885/cx23885-core.c 			ch->name);
ch                475 drivers/media/pci/cx23885/cx23885-core.c 	cdt   = ch->cdt;
ch                476 drivers/media/pci/cx23885/cx23885-core.c 	lines = ch->fifo_size / bpl;
ch                488 drivers/media/pci/cx23885/cx23885-core.c 			ch->fifo_start + bpl*i);
ch                489 drivers/media/pci/cx23885/cx23885-core.c 		cx_write(cdt + 16*i, ch->fifo_start + bpl*i);
ch                496 drivers/media/pci/cx23885/cx23885-core.c 	if (ch->jumponly)
ch                497 drivers/media/pci/cx23885/cx23885-core.c 		cx_write(ch->cmds_start + 0, 8);
ch                499 drivers/media/pci/cx23885/cx23885-core.c 		cx_write(ch->cmds_start + 0, risc);
ch                500 drivers/media/pci/cx23885/cx23885-core.c 	cx_write(ch->cmds_start +  4, 0); /* 64 bits 63-32 */
ch                501 drivers/media/pci/cx23885/cx23885-core.c 	cx_write(ch->cmds_start +  8, cdt);
ch                502 drivers/media/pci/cx23885/cx23885-core.c 	cx_write(ch->cmds_start + 12, (lines*16) >> 3);
ch                503 drivers/media/pci/cx23885/cx23885-core.c 	cx_write(ch->cmds_start + 16, ch->ctrl_start);
ch                504 drivers/media/pci/cx23885/cx23885-core.c 	if (ch->jumponly)
ch                505 drivers/media/pci/cx23885/cx23885-core.c 		cx_write(ch->cmds_start + 20, 0x80000000 | (64 >> 2));
ch                507 drivers/media/pci/cx23885/cx23885-core.c 		cx_write(ch->cmds_start + 20, 64 >> 2);
ch                509 drivers/media/pci/cx23885/cx23885-core.c 		cx_write(ch->cmds_start + i, 0);
ch                512 drivers/media/pci/cx23885/cx23885-core.c 	cx_write(ch->ptr1_reg, ch->fifo_start);
ch                513 drivers/media/pci/cx23885/cx23885-core.c 	cx_write(ch->ptr2_reg, cdt);
ch                514 drivers/media/pci/cx23885/cx23885-core.c 	cx_write(ch->cnt2_reg, (lines*16) >> 3);
ch                515 drivers/media/pci/cx23885/cx23885-core.c 	cx_write(ch->cnt1_reg, (bpl >> 3) - 1);
ch                519 drivers/media/pci/cx23885/cx23885-core.c 		ch->name,
ch                527 drivers/media/pci/cx23885/cx23885-core.c 				      struct sram_channel *ch)
ch                549 drivers/media/pci/cx23885/cx23885-core.c 		dev->name, ch->name);
ch                553 drivers/media/pci/cx23885/cx23885-core.c 			cx_read(ch->cmds_start + 4*i));
ch                556 drivers/media/pci/cx23885/cx23885-core.c 		risc = cx_read(ch->cmds_start + 4 * (i + 14));
ch                561 drivers/media/pci/cx23885/cx23885-core.c 		risc = cx_read(ch->ctrl_start + 4 * i);
ch                565 drivers/media/pci/cx23885/cx23885-core.c 			ch->ctrl_start + 4 * i, i);
ch                568 drivers/media/pci/cx23885/cx23885-core.c 			risc = cx_read(ch->ctrl_start + 4 * (i + j));
ch                575 drivers/media/pci/cx23885/cx23885-core.c 		dev->name, ch->fifo_start, ch->fifo_start+ch->fifo_size);
ch                577 drivers/media/pci/cx23885/cx23885-core.c 		dev->name, ch->ctrl_start, ch->ctrl_start + 6*16);
ch                579 drivers/media/pci/cx23885/cx23885-core.c 		dev->name, cx_read(ch->ptr1_reg));
ch                581 drivers/media/pci/cx23885/cx23885-core.c 		dev->name, cx_read(ch->ptr2_reg));
ch                583 drivers/media/pci/cx23885/cx23885-core.c 		dev->name, cx_read(ch->cnt1_reg));
ch                585 drivers/media/pci/cx23885/cx23885-core.c 		dev->name, cx_read(ch->cnt2_reg));
ch                510 drivers/media/pci/cx23885/cx23885.h 	struct sram_channel *ch,
ch                514 drivers/media/pci/cx23885/cx23885.h 	struct sram_channel *ch);
ch                425 drivers/media/pci/cx25821/cx25821-core.c 			       const struct sram_channel *ch,
ch                431 drivers/media/pci/cx25821/cx25821-core.c 	if (ch->cmds_start == 0) {
ch                432 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(ch->ptr1_reg, 0);
ch                433 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(ch->ptr2_reg, 0);
ch                434 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(ch->cnt2_reg, 0);
ch                435 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(ch->cnt1_reg, 0);
ch                440 drivers/media/pci/cx25821/cx25821-core.c 	cdt = ch->cdt;
ch                441 drivers/media/pci/cx25821/cx25821-core.c 	lines = ch->fifo_size / bpl;
ch                454 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(cdt + 16 * i, ch->fifo_start + bpl * i);
ch                462 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(ch->fifo_start + 4 * i, i);
ch                465 drivers/media/pci/cx25821/cx25821-core.c 	if (ch->jumponly)
ch                466 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(ch->cmds_start + 0, 8);
ch                468 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(ch->cmds_start + 0, risc);
ch                470 drivers/media/pci/cx25821/cx25821-core.c 	cx_write(ch->cmds_start + 4, 0);	/* 64 bits 63-32 */
ch                471 drivers/media/pci/cx25821/cx25821-core.c 	cx_write(ch->cmds_start + 8, cdt);
ch                472 drivers/media/pci/cx25821/cx25821-core.c 	cx_write(ch->cmds_start + 12, (lines * 16) >> 3);
ch                473 drivers/media/pci/cx25821/cx25821-core.c 	cx_write(ch->cmds_start + 16, ch->ctrl_start);
ch                475 drivers/media/pci/cx25821/cx25821-core.c 	if (ch->jumponly)
ch                476 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(ch->cmds_start + 20, 0x80000000 | (64 >> 2));
ch                478 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(ch->cmds_start + 20, 64 >> 2);
ch                481 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(ch->cmds_start + i, 0);
ch                484 drivers/media/pci/cx25821/cx25821-core.c 	cx_write(ch->ptr1_reg, ch->fifo_start);
ch                485 drivers/media/pci/cx25821/cx25821-core.c 	cx_write(ch->ptr2_reg, cdt);
ch                486 drivers/media/pci/cx25821/cx25821-core.c 	cx_write(ch->cnt2_reg, (lines * 16) >> 3);
ch                487 drivers/media/pci/cx25821/cx25821-core.c 	cx_write(ch->cnt1_reg, (bpl >> 3) - 1);
ch                493 drivers/media/pci/cx25821/cx25821-core.c 				     const struct sram_channel *ch,
ch                499 drivers/media/pci/cx25821/cx25821-core.c 	if (ch->cmds_start == 0) {
ch                500 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(ch->ptr1_reg, 0);
ch                501 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(ch->ptr2_reg, 0);
ch                502 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(ch->cnt2_reg, 0);
ch                503 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(ch->cnt1_reg, 0);
ch                508 drivers/media/pci/cx25821/cx25821-core.c 	cdt = ch->cdt;
ch                509 drivers/media/pci/cx25821/cx25821-core.c 	lines = ch->fifo_size / bpl;
ch                522 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(cdt + 16 * i, ch->fifo_start + bpl * i);
ch                529 drivers/media/pci/cx25821/cx25821-core.c 	if (ch->jumponly)
ch                530 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(ch->cmds_start + 0, 8);
ch                532 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(ch->cmds_start + 0, risc);
ch                534 drivers/media/pci/cx25821/cx25821-core.c 	cx_write(ch->cmds_start + 4, 0);	/* 64 bits 63-32 */
ch                535 drivers/media/pci/cx25821/cx25821-core.c 	cx_write(ch->cmds_start + 8, cdt);
ch                536 drivers/media/pci/cx25821/cx25821-core.c 	cx_write(ch->cmds_start + 12, (lines * 16) >> 3);
ch                537 drivers/media/pci/cx25821/cx25821-core.c 	cx_write(ch->cmds_start + 16, ch->ctrl_start);
ch                540 drivers/media/pci/cx25821/cx25821-core.c 	if (ch->jumponly)
ch                541 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(ch->cmds_start + 20, 0x80000000 | (64 >> 2));
ch                543 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(ch->cmds_start + 20, 64 >> 2);
ch                547 drivers/media/pci/cx25821/cx25821-core.c 		cx_write(ch->cmds_start + i, 0);
ch                550 drivers/media/pci/cx25821/cx25821-core.c 	cx_write(ch->ptr1_reg, ch->fifo_start);
ch                551 drivers/media/pci/cx25821/cx25821-core.c 	cx_write(ch->ptr2_reg, cdt);
ch                552 drivers/media/pci/cx25821/cx25821-core.c 	cx_write(ch->cnt2_reg, (lines * 16) >> 3);
ch                553 drivers/media/pci/cx25821/cx25821-core.c 	cx_write(ch->cnt1_reg, (bpl >> 3) - 1);
ch                559 drivers/media/pci/cx25821/cx25821-core.c void cx25821_sram_channel_dump(struct cx25821_dev *dev, const struct sram_channel *ch)
ch                580 drivers/media/pci/cx25821/cx25821-core.c 	pr_warn("%s: %s - dma channel status dump\n", dev->name, ch->name);
ch                583 drivers/media/pci/cx25821/cx25821-core.c 			i * 4, name[i], cx_read(ch->cmds_start + 4 * i));
ch                587 drivers/media/pci/cx25821/cx25821-core.c 		risc = cx_read(ch->cmds_start + 4 * (i + 14));
ch                593 drivers/media/pci/cx25821/cx25821-core.c 		risc = cx_read(ch->ctrl_start + 4 * i);
ch                597 drivers/media/pci/cx25821/cx25821-core.c 			i * 4, ch->ctrl_start + 4 * i, i);
ch                600 drivers/media/pci/cx25821/cx25821-core.c 			risc = cx_read(ch->ctrl_start + 4 * (i + j));
ch                607 drivers/media/pci/cx25821/cx25821-core.c 		ch->fifo_start, ch->fifo_start + ch->fifo_size);
ch                609 drivers/media/pci/cx25821/cx25821-core.c 		ch->ctrl_start, ch->ctrl_start + 6 * 16);
ch                611 drivers/media/pci/cx25821/cx25821-core.c 		cx_read(ch->ptr1_reg));
ch                613 drivers/media/pci/cx25821/cx25821-core.c 		cx_read(ch->ptr2_reg));
ch                615 drivers/media/pci/cx25821/cx25821-core.c 		cx_read(ch->cnt1_reg));
ch                617 drivers/media/pci/cx25821/cx25821-core.c 		cx_read(ch->cnt2_reg));
ch                621 drivers/media/pci/cx25821/cx25821-core.c 				     const struct sram_channel *ch)
ch                644 drivers/media/pci/cx25821/cx25821-core.c 		dev->name, ch->name);
ch                649 drivers/media/pci/cx25821/cx25821-core.c 			cx_read(ch->cmds_start + 4 * i));
ch                653 drivers/media/pci/cx25821/cx25821-core.c 		risc = cx_read(ch->cmds_start + 4 * (i + 14));
ch                659 drivers/media/pci/cx25821/cx25821-core.c 		risc = cx_read(ch->ctrl_start + 4 * i);
ch                663 drivers/media/pci/cx25821/cx25821-core.c 			i * 4, ch->ctrl_start + 4 * i, i);
ch                667 drivers/media/pci/cx25821/cx25821-core.c 			risc = cx_read(ch->ctrl_start + 4 * (i + j));
ch                674 drivers/media/pci/cx25821/cx25821-core.c 		ch->fifo_start, ch->fifo_start + ch->fifo_size);
ch                676 drivers/media/pci/cx25821/cx25821-core.c 		ch->ctrl_start, ch->ctrl_start + 6 * 16);
ch                678 drivers/media/pci/cx25821/cx25821-core.c 		cx_read(ch->ptr1_reg));
ch                680 drivers/media/pci/cx25821/cx25821-core.c 		cx_read(ch->ptr2_reg));
ch                682 drivers/media/pci/cx25821/cx25821-core.c 		cx_read(ch->cnt1_reg));
ch                684 drivers/media/pci/cx25821/cx25821-core.c 		cx_read(ch->cnt2_reg));
ch                687 drivers/media/pci/cx25821/cx25821-core.c 		risc = cx_read(ch->cmds_start + 56 + (i * 4));
ch                769 drivers/media/pci/cx25821/cx25821-core.c 				 const struct sram_channel *ch)
ch                771 drivers/media/pci/cx25821/cx25821-core.c 	cx_write(ch->pix_frmt, PIXEL_FRMT_422);
ch                772 drivers/media/pci/cx25821/cx25821-core.c 	cx_write(ch->vip_ctl, PIXEL_ENGINE_VIP1);
ch                392 drivers/media/pci/cx25821/cx25821.h 				      const struct sram_channel *ch, unsigned int bpl,
ch                412 drivers/media/pci/cx25821/cx25821.h 				      const struct sram_channel *ch);
ch                414 drivers/media/pci/cx25821/cx25821.h 					    const struct sram_channel *ch);
ch                421 drivers/media/pci/cx25821/cx25821.h 					    const struct sram_channel *ch,
ch                341 drivers/media/pci/cx88/cx88-core.c 			    const struct sram_channel *ch,
ch                348 drivers/media/pci/cx88/cx88-core.c 	cdt   = ch->cdt;
ch                349 drivers/media/pci/cx88/cx88-core.c 	lines = ch->fifo_size / bpl;
ch                356 drivers/media/pci/cx88/cx88-core.c 		cx_write(cdt + 16 * i, ch->fifo_start + bpl * i);
ch                359 drivers/media/pci/cx88/cx88-core.c 	cx_write(ch->cmds_start +  0, risc);
ch                360 drivers/media/pci/cx88/cx88-core.c 	cx_write(ch->cmds_start +  4, cdt);
ch                361 drivers/media/pci/cx88/cx88-core.c 	cx_write(ch->cmds_start +  8, (lines * 16) >> 3);
ch                362 drivers/media/pci/cx88/cx88-core.c 	cx_write(ch->cmds_start + 12, ch->ctrl_start);
ch                363 drivers/media/pci/cx88/cx88-core.c 	cx_write(ch->cmds_start + 16, 64 >> 2);
ch                365 drivers/media/pci/cx88/cx88-core.c 		cx_write(ch->cmds_start + i, 0);
ch                368 drivers/media/pci/cx88/cx88-core.c 	cx_write(ch->ptr1_reg, ch->fifo_start);
ch                369 drivers/media/pci/cx88/cx88-core.c 	cx_write(ch->ptr2_reg, cdt);
ch                370 drivers/media/pci/cx88/cx88-core.c 	cx_write(ch->cnt1_reg, (bpl >> 3) - 1);
ch                371 drivers/media/pci/cx88/cx88-core.c 	cx_write(ch->cnt2_reg, (lines * 16) >> 3);
ch                373 drivers/media/pci/cx88/cx88-core.c 	dprintk(2, "sram setup %s: bpl=%d lines=%d\n", ch->name, bpl, lines);
ch                420 drivers/media/pci/cx88/cx88-core.c 			    const struct sram_channel *ch)
ch                438 drivers/media/pci/cx88/cx88-core.c 	dprintk0("%s - dma channel status dump\n", ch->name);
ch                441 drivers/media/pci/cx88/cx88-core.c 			 name[i], cx_read(ch->cmds_start + 4 * i));
ch                443 drivers/media/pci/cx88/cx88-core.c 		risc = cx_read(ch->cmds_start + 4 * (i + 11));
ch                451 drivers/media/pci/cx88/cx88-core.c 		risc = cx_read(ch->ctrl_start + 4 * i);
ch                455 drivers/media/pci/cx88/cx88-core.c 			risc = cx_read(ch->ctrl_start + 4 * (i + j));
ch                462 drivers/media/pci/cx88/cx88-core.c 		 ch->fifo_start, ch->fifo_start + ch->fifo_size);
ch                464 drivers/media/pci/cx88/cx88-core.c 		 ch->ctrl_start, ch->ctrl_start + 6 * 16);
ch                465 drivers/media/pci/cx88/cx88-core.c 	dprintk0("  ptr1_reg: 0x%08x\n", cx_read(ch->ptr1_reg));
ch                466 drivers/media/pci/cx88/cx88-core.c 	dprintk0("  ptr2_reg: 0x%08x\n", cx_read(ch->ptr2_reg));
ch                467 drivers/media/pci/cx88/cx88-core.c 	dprintk0("  cnt1_reg: 0x%08x\n", cx_read(ch->cnt1_reg));
ch                468 drivers/media/pci/cx88/cx88-core.c 	dprintk0("  cnt2_reg: 0x%08x\n", cx_read(ch->cnt2_reg));
ch                633 drivers/media/pci/cx88/cx88.h 			    const struct sram_channel *ch,
ch                636 drivers/media/pci/cx88/cx88.h 			    const struct sram_channel *ch);
ch                298 drivers/media/pci/ivtv/ivtv-fileops.c 		u8 ch = itv->search_pack_header ? 0xba : 0xe0;
ch                304 drivers/media/pci/ivtv/ivtv-fileops.c 			    q[1] != 0 || q[2] != 1 || q[3] != ch) {
ch                312 drivers/media/pci/ivtv/ivtv-fileops.c 					ch = 0xba;
ch                616 drivers/media/pci/ngene/ngene.h 	struct ngene_channel      *ch;
ch                190 drivers/media/pci/solo6x10/solo6x10-disp.c int solo_set_motion_threshold(struct solo_dev *solo_dev, u8 ch, u16 val)
ch                192 drivers/media/pci/solo6x10/solo6x10-disp.c 	if (ch > solo_dev->nr_chans)
ch                196 drivers/media/pci/solo6x10/solo6x10-disp.c 				   (ch * SOLO_MOT_THRESH_SIZE * 2),
ch                200 drivers/media/pci/solo6x10/solo6x10-disp.c int solo_set_motion_block(struct solo_dev *solo_dev, u8 ch,
ch                204 drivers/media/pci/solo6x10/solo6x10-disp.c 	u32 off = SOLO_MOT_FLAG_AREA + ch * SOLO_MOT_THRESH_SIZE * 2;
ch                143 drivers/media/pci/solo6x10/solo6x10-enc.c 		reg &= ~(1 << solo_enc->ch);
ch                158 drivers/media/pci/solo6x10/solo6x10-enc.c 		     SOLO_EOSD_EXT_ADDR_CHAN(solo_dev, solo_enc->ch),
ch                162 drivers/media/pci/solo6x10/solo6x10-enc.c 	reg |= (1 << solo_enc->ch);
ch                172 drivers/media/pci/solo6x10/solo6x10-enc.c void solo_s_jpeg_qp(struct solo_dev *solo_dev, unsigned int ch,
ch                178 drivers/media/pci/solo6x10/solo6x10-enc.c 	if ((ch > 31) || (qp > 3))
ch                184 drivers/media/pci/solo6x10/solo6x10-enc.c 	if (ch < 16) {
ch                188 drivers/media/pci/solo6x10/solo6x10-enc.c 		ch -= 16;
ch                192 drivers/media/pci/solo6x10/solo6x10-enc.c 	ch *= 2;
ch                196 drivers/media/pci/solo6x10/solo6x10-enc.c 	solo_dev->jpeg_qp[idx] &= ~(3 << ch);
ch                197 drivers/media/pci/solo6x10/solo6x10-enc.c 	solo_dev->jpeg_qp[idx] |= (qp & 3) << ch;
ch                204 drivers/media/pci/solo6x10/solo6x10-enc.c int solo_g_jpeg_qp(struct solo_dev *solo_dev, unsigned int ch)
ch                211 drivers/media/pci/solo6x10/solo6x10-enc.c 	if (WARN_ON_ONCE(ch > 31))
ch                214 drivers/media/pci/solo6x10/solo6x10-enc.c 	if (ch < 16) {
ch                217 drivers/media/pci/solo6x10/solo6x10-enc.c 		ch -= 16;
ch                220 drivers/media/pci/solo6x10/solo6x10-enc.c 	ch *= 2;
ch                222 drivers/media/pci/solo6x10/solo6x10-enc.c 	return (solo_dev->jpeg_qp[idx] >> ch) & 3;
ch                299 drivers/media/pci/solo6x10/solo6x10-g723.c 	u8 ch = value->id.numid - 1;
ch                301 drivers/media/pci/solo6x10/solo6x10-g723.c 	value->value.integer.value[0] = tw28_get_audio_gain(solo_dev, ch);
ch                310 drivers/media/pci/solo6x10/solo6x10-g723.c 	u8 ch = value->id.numid - 1;
ch                313 drivers/media/pci/solo6x10/solo6x10-g723.c 	old_val = tw28_get_audio_gain(solo_dev, ch);
ch                317 drivers/media/pci/solo6x10/solo6x10-g723.c 	tw28_set_audio_gain(solo_dev, ch, value->value.integer.value[0]);
ch                 25 drivers/media/pci/solo6x10/solo6x10-offsets.h #define SOLO_EOSD_EXT_ADDR_CHAN(__solo, ch) \
ch                 26 drivers/media/pci/solo6x10/solo6x10-offsets.h 	(SOLO_EOSD_EXT_ADDR + SOLO_EOSD_EXT_SIZE(__solo) * (ch))
ch                201 drivers/media/pci/solo6x10/solo6x10-regs.h #define	SOLO_VI_MOSAIC(ch)			(0x0140 + ((ch)*4))
ch                207 drivers/media/pci/solo6x10/solo6x10-regs.h #define	SOLO_VI_WIN_CTRL0(ch)			(0x0180 + ((ch)*4))
ch                208 drivers/media/pci/solo6x10/solo6x10-regs.h #define	SOLO_VI_WIN_CTRL1(ch)			(0x01C0 + ((ch)*4))
ch                221 drivers/media/pci/solo6x10/solo6x10-regs.h #define	SOLO_VI_WIN_ON(ch)			(0x0200 + ((ch)*4))
ch                372 drivers/media/pci/solo6x10/solo6x10-regs.h #define SOLO_CAP_CH_SCALE(ch)			(0x0440+((ch)*4))
ch                373 drivers/media/pci/solo6x10/solo6x10-regs.h #define SOLO_CAP_CH_COMP_ENA_E(ch)		(0x0480+((ch)*4))
ch                374 drivers/media/pci/solo6x10/solo6x10-regs.h #define SOLO_CAP_CH_INTV(ch)			(0x04C0+((ch)*4))
ch                375 drivers/media/pci/solo6x10/solo6x10-regs.h #define SOLO_CAP_CH_INTV_E(ch)			(0x0500+((ch)*4))
ch                427 drivers/media/pci/solo6x10/solo6x10-regs.h #define SOLO_VE_CH_INTL(ch)			(0x0700+((ch)*4))
ch                428 drivers/media/pci/solo6x10/solo6x10-regs.h #define SOLO_VE_CH_MOT(ch)			(0x0740+((ch)*4))
ch                429 drivers/media/pci/solo6x10/solo6x10-regs.h #define SOLO_VE_CH_QP(ch)			(0x0780+((ch)*4))
ch                430 drivers/media/pci/solo6x10/solo6x10-regs.h #define SOLO_VE_CH_QP_E(ch)			(0x07C0+((ch)*4))
ch                431 drivers/media/pci/solo6x10/solo6x10-regs.h #define SOLO_VE_CH_GOP(ch)			(0x0800+((ch)*4))
ch                432 drivers/media/pci/solo6x10/solo6x10-regs.h #define SOLO_VE_CH_GOP_E(ch)			(0x0840+((ch)*4))
ch                433 drivers/media/pci/solo6x10/solo6x10-regs.h #define SOLO_VE_CH_REF_BASE(ch)			(0x0880+((ch)*4))
ch                434 drivers/media/pci/solo6x10/solo6x10-regs.h #define SOLO_VE_CH_REF_BASE_E(ch)		(0x08C0+((ch)*4))
ch                610 drivers/media/pci/solo6x10/solo6x10-regs.h #define	  SOLO_AUDIO_EE_ENC_CH(ch)		((ch)<<25)
ch                619 drivers/media/pci/solo6x10/solo6x10-regs.h #define	  SOLO_AUDIO_EVOL(ch, value)		((value)<<((ch)%10))
ch                366 drivers/media/pci/solo6x10/solo6x10-tw28.c 	int ch;
ch                462 drivers/media/pci/solo6x10/solo6x10-tw28.c 	for (ch = 0; ch < 4; ch++) {
ch                464 drivers/media/pci/solo6x10/solo6x10-tw28.c 		switch (ch) {
ch                483 drivers/media/pci/solo6x10/solo6x10-tw28.c 					   dev_addr, (ch * 0x10) + i,
ch                641 drivers/media/pci/solo6x10/solo6x10-tw28.c int tw28_get_video_status(struct solo_dev *solo_dev, u8 ch)
ch                646 drivers/media/pci/solo6x10/solo6x10-tw28.c 	chip_num = ch / 4;
ch                647 drivers/media/pci/solo6x10/solo6x10-tw28.c 	ch %= 4;
ch                652 drivers/media/pci/solo6x10/solo6x10-tw28.c 	return val & (1 << ch) ? 1 : 0;
ch                674 drivers/media/pci/solo6x10/solo6x10-tw28.c bool tw28_has_sharpness(struct solo_dev *solo_dev, u8 ch)
ch                676 drivers/media/pci/solo6x10/solo6x10-tw28.c 	return is_tw286x(solo_dev, ch / 4);
ch                679 drivers/media/pci/solo6x10/solo6x10-tw28.c int tw28_set_ctrl_val(struct solo_dev *solo_dev, u32 ctrl, u8 ch,
ch                686 drivers/media/pci/solo6x10/solo6x10-tw28.c 	chip_num = ch / 4;
ch                687 drivers/media/pci/solo6x10/solo6x10-tw28.c 	ch %= 4;
ch                714 drivers/media/pci/solo6x10/solo6x10-tw28.c 		tw_writebyte(solo_dev, chip_num, TW286x_HUE_ADDR(ch),
ch                715 drivers/media/pci/solo6x10/solo6x10-tw28.c 			     TW_HUE_ADDR(ch), sval);
ch                724 drivers/media/pci/solo6x10/solo6x10-tw28.c 					   TW286x_SATURATIONU_ADDR(ch), val);
ch                726 drivers/media/pci/solo6x10/solo6x10-tw28.c 		tw_writebyte(solo_dev, chip_num, TW286x_SATURATIONV_ADDR(ch),
ch                727 drivers/media/pci/solo6x10/solo6x10-tw28.c 			     TW_SATURATION_ADDR(ch), val);
ch                732 drivers/media/pci/solo6x10/solo6x10-tw28.c 		tw_writebyte(solo_dev, chip_num, TW286x_CONTRAST_ADDR(ch),
ch                733 drivers/media/pci/solo6x10/solo6x10-tw28.c 			     TW_CONTRAST_ADDR(ch), val);
ch                741 drivers/media/pci/solo6x10/solo6x10-tw28.c 		tw_writebyte(solo_dev, chip_num, TW286x_BRIGHTNESS_ADDR(ch),
ch                742 drivers/media/pci/solo6x10/solo6x10-tw28.c 			     TW_BRIGHTNESS_ADDR(ch), sval);
ch                752 drivers/media/pci/solo6x10/solo6x10-tw28.c int tw28_get_ctrl_val(struct solo_dev *solo_dev, u32 ctrl, u8 ch,
ch                758 drivers/media/pci/solo6x10/solo6x10-tw28.c 	chip_num = ch / 4;
ch                759 drivers/media/pci/solo6x10/solo6x10-tw28.c 	ch %= 4;
ch                773 drivers/media/pci/solo6x10/solo6x10-tw28.c 		rval = tw_readbyte(solo_dev, chip_num, TW286x_HUE_ADDR(ch),
ch                774 drivers/media/pci/solo6x10/solo6x10-tw28.c 				   TW_HUE_ADDR(ch));
ch                782 drivers/media/pci/solo6x10/solo6x10-tw28.c 				   TW286x_SATURATIONU_ADDR(ch),
ch                783 drivers/media/pci/solo6x10/solo6x10-tw28.c 				   TW_SATURATION_ADDR(ch));
ch                787 drivers/media/pci/solo6x10/solo6x10-tw28.c 				   TW286x_CONTRAST_ADDR(ch),
ch                788 drivers/media/pci/solo6x10/solo6x10-tw28.c 				   TW_CONTRAST_ADDR(ch));
ch                792 drivers/media/pci/solo6x10/solo6x10-tw28.c 				   TW286x_BRIGHTNESS_ADDR(ch),
ch                793 drivers/media/pci/solo6x10/solo6x10-tw28.c 				   TW_BRIGHTNESS_ADDR(ch));
ch                829 drivers/media/pci/solo6x10/solo6x10-tw28.c u8 tw28_get_audio_gain(struct solo_dev *solo_dev, u8 ch)
ch                835 drivers/media/pci/solo6x10/solo6x10-tw28.c 	chip_num = ch / 4;
ch                836 drivers/media/pci/solo6x10/solo6x10-tw28.c 	ch %= 4;
ch                839 drivers/media/pci/solo6x10/solo6x10-tw28.c 			  TW286x_AUDIO_INPUT_GAIN_ADDR(ch),
ch                840 drivers/media/pci/solo6x10/solo6x10-tw28.c 			  TW_AUDIO_INPUT_GAIN_ADDR(ch));
ch                842 drivers/media/pci/solo6x10/solo6x10-tw28.c 	return (ch % 2) ? (val >> 4) : (val & 0x0f);
ch                845 drivers/media/pci/solo6x10/solo6x10-tw28.c void tw28_set_audio_gain(struct solo_dev *solo_dev, u8 ch, u8 val)
ch                851 drivers/media/pci/solo6x10/solo6x10-tw28.c 	chip_num = ch / 4;
ch                852 drivers/media/pci/solo6x10/solo6x10-tw28.c 	ch %= 4;
ch                855 drivers/media/pci/solo6x10/solo6x10-tw28.c 			      TW286x_AUDIO_INPUT_GAIN_ADDR(ch),
ch                856 drivers/media/pci/solo6x10/solo6x10-tw28.c 			      TW_AUDIO_INPUT_GAIN_ADDR(ch));
ch                858 drivers/media/pci/solo6x10/solo6x10-tw28.c 	val = (old_val & ((ch % 2) ? 0x0f : 0xf0)) |
ch                859 drivers/media/pci/solo6x10/solo6x10-tw28.c 		((ch % 2) ? (val << 4) : val);
ch                861 drivers/media/pci/solo6x10/solo6x10-tw28.c 	tw_writebyte(solo_dev, chip_num, TW286x_AUDIO_INPUT_GAIN_ADDR(ch),
ch                862 drivers/media/pci/solo6x10/solo6x10-tw28.c 		     TW_AUDIO_INPUT_GAIN_ADDR(ch), val);
ch                 43 drivers/media/pci/solo6x10/solo6x10-tw28.h int tw28_set_ctrl_val(struct solo_dev *solo_dev, u32 ctrl, u8 ch, s32 val);
ch                 44 drivers/media/pci/solo6x10/solo6x10-tw28.h int tw28_get_ctrl_val(struct solo_dev *solo_dev, u32 ctrl, u8 ch, s32 *val);
ch                 45 drivers/media/pci/solo6x10/solo6x10-tw28.h bool tw28_has_sharpness(struct solo_dev *solo_dev, u8 ch);
ch                 47 drivers/media/pci/solo6x10/solo6x10-tw28.h u8 tw28_get_audio_gain(struct solo_dev *solo_dev, u8 ch);
ch                 48 drivers/media/pci/solo6x10/solo6x10-tw28.h void tw28_set_audio_gain(struct solo_dev *solo_dev, u8 ch, u8 val);
ch                 49 drivers/media/pci/solo6x10/solo6x10-tw28.h int tw28_get_video_status(struct solo_dev *solo_dev, u8 ch);
ch                 97 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	return (solo_dev->motion_mask >> solo_enc->ch) & 1;
ch                104 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	u32 ch_mask = 1 << solo_enc->ch;
ch                120 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	u32 mask = 1 << solo_enc->ch;
ch                218 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	       jpeg_dqt[solo_g_jpeg_qp(solo_dev, solo_enc->ch)], DQT_LEN);
ch                223 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	u8 ch = solo_enc->ch;
ch                236 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		solo_reg_write(solo_dev, SOLO_CAP_CH_COMP_ENA_E(ch), 1);
ch                239 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	solo_reg_write(solo_dev, SOLO_CAP_CH_SCALE(ch), 0);
ch                242 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	solo_reg_write(solo_dev, SOLO_VE_CH_INTL(ch),
ch                251 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	solo_reg_write(solo_dev, SOLO_VE_CH_GOP(ch), solo_enc->gop);
ch                252 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	solo_reg_write(solo_dev, SOLO_VE_CH_QP(ch), solo_enc->qp);
ch                253 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	solo_reg_write(solo_dev, SOLO_CAP_CH_INTV(ch), interval);
ch                256 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	solo_reg_write(solo_dev, SOLO_VE_CH_GOP_E(ch), solo_enc->gop);
ch                257 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	solo_reg_write(solo_dev, SOLO_VE_CH_QP_E(ch), solo_enc->qp);
ch                258 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	solo_reg_write(solo_dev, SOLO_CAP_CH_INTV_E(ch), interval);
ch                261 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	solo_reg_write(solo_dev, SOLO_CAP_CH_SCALE(ch), solo_enc->mode);
ch                272 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	solo_reg_write(solo_dev, SOLO_CAP_CH_SCALE(solo_enc->ch), 0);
ch                273 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	solo_reg_write(solo_dev, SOLO_CAP_CH_COMP_ENA_E(solo_enc->ch), 0);
ch                584 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		u8 ch;
ch                596 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		ch = (mpeg_current >> 24) & 0x1f;
ch                599 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		if (ch >= SOLO_MAX_CHANNELS) {
ch                600 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 			ch -= SOLO_MAX_CHANNELS;
ch                605 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		solo_enc = solo_dev->v4l2_enc[ch];
ch                608 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 				"Got spurious packet for channel %d\n", ch);
ch                771 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		 solo_enc->ch);
ch                787 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		 solo_enc->ch + 1);
ch                791 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	if (!tw28_get_video_status(solo_dev, solo_enc->ch))
ch               1070 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		return tw28_set_ctrl_val(solo_dev, ctrl->id, solo_enc->ch,
ch               1074 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		solo_reg_write(solo_dev, SOLO_VE_CH_GOP(solo_enc->ch), solo_enc->gop);
ch               1075 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		solo_reg_write(solo_dev, SOLO_VE_CH_GOP_E(solo_enc->ch), solo_enc->gop);
ch               1079 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		solo_reg_write(solo_dev, SOLO_VE_CH_QP(solo_enc->ch), solo_enc->qp);
ch               1080 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		solo_reg_write(solo_dev, SOLO_VE_CH_QP_E(solo_enc->ch), solo_enc->qp);
ch               1086 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		return solo_set_motion_threshold(solo_dev, solo_enc->ch,
ch               1093 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 				err = solo_set_motion_threshold(solo_dev, solo_enc->ch,
ch               1096 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 				err = solo_set_motion_block(solo_dev, solo_enc->ch,
ch               1105 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 			return solo_set_motion_block(solo_dev, solo_enc->ch,
ch               1210 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 					   u8 ch, unsigned nr)
ch               1230 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	if (tw28_has_sharpness(solo_dev, ch))
ch               1253 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	solo_enc->ch = ch;
ch                 62 drivers/media/pci/solo6x10/solo6x10-v4l2.c static void solo_win_setup(struct solo_dev *solo_dev, u8 ch,
ch                 65 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	if (ch >= solo_dev->nr_chans)
ch                 69 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	solo_reg_write(solo_dev, SOLO_VI_WIN_CTRL0(ch),
ch                 70 drivers/media/pci/solo6x10/solo6x10-v4l2.c 		       SOLO_VI_WIN_CHANNEL(ch) |
ch                 75 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	solo_reg_write(solo_dev, SOLO_VI_WIN_CTRL1(ch),
ch                 82 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	u8 ch = idx * 4;
ch                 84 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	if (ch >= solo_dev->nr_chans)
ch                 90 drivers/media/pci/solo6x10/solo6x10-v4l2.c 		for (i = ch; i < ch + 4; i++)
ch                 99 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	solo_win_setup(solo_dev, ch, 0, 0, solo_dev->video_hsize / 2,
ch                101 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	solo_win_setup(solo_dev, ch + 1, solo_dev->video_hsize / 2, 0,
ch                104 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	solo_win_setup(solo_dev, ch + 2, 0, solo_vlines(solo_dev) / 2,
ch                106 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	solo_win_setup(solo_dev, ch + 3, solo_dev->video_hsize / 2,
ch                143 drivers/media/pci/solo6x10/solo6x10-v4l2.c static int solo_v4l2_ch(struct solo_dev *solo_dev, u8 ch, int on)
ch                147 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	if (ch < solo_dev->nr_chans) {
ch                148 drivers/media/pci/solo6x10/solo6x10-v4l2.c 		solo_win_setup(solo_dev, ch, on ? 0 : solo_dev->video_hsize,
ch                155 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	if (ch >= solo_dev->nr_chans + solo_dev->nr_ext)
ch                158 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	ext_ch = ch - solo_dev->nr_chans;
ch                168 drivers/media/pci/solo6x10/solo6x10-v4l2.c static int solo_v4l2_set_ch(struct solo_dev *solo_dev, u8 ch)
ch                170 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	if (ch >= solo_dev->nr_chans + solo_dev->nr_ext)
ch                176 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	solo_v4l2_ch(solo_dev, ch, 1);
ch                178 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	solo_dev->cur_disp_ch = ch;
ch                148 drivers/media/pci/solo6x10/solo6x10.h 	u8			ch;
ch                359 drivers/media/pci/solo6x10/solo6x10.h int solo_set_motion_threshold(struct solo_dev *solo_dev, u8 ch, u16 val);
ch                360 drivers/media/pci/solo6x10/solo6x10.h int solo_set_motion_block(struct solo_dev *solo_dev, u8 ch,
ch                374 drivers/media/pci/solo6x10/solo6x10.h void solo_s_jpeg_qp(struct solo_dev *solo_dev, unsigned int ch,
ch                376 drivers/media/pci/solo6x10/solo6x10.h int solo_g_jpeg_qp(struct solo_dev *solo_dev, unsigned int ch);
ch                949 drivers/media/pci/ttpci/av7110_hw.c 	u16 ch, cl;
ch                954 drivers/media/pci/ttpci/av7110_hw.c 	ch = ((yuv >> 16) & 0xffff);
ch                956 drivers/media/pci/ttpci/av7110_hw.c 			color, ch, cl);
ch                 35 drivers/media/pci/tw686x/tw686x-audio.c 	unsigned int ch, pb;
ch                 37 drivers/media/pci/tw686x/tw686x-audio.c 	for_each_set_bit(ch, &requests, max_channels(dev)) {
ch                 38 drivers/media/pci/tw686x/tw686x-audio.c 		struct tw686x_audio_channel *ac = &dev->audio_channels[ch];
ch                 43 drivers/media/pci/tw686x/tw686x-audio.c 		pb = !!(pb_status & BIT(AUDIO_CHANNEL_OFFSET + ch));
ch                 73 drivers/media/pci/tw686x/tw686x-audio.c 			u32 reg = pb ? ADMA_B_ADDR[ch] : ADMA_P_ADDR[ch];
ch                160 drivers/media/pci/tw686x/tw686x-audio.c 	tw686x_disable_channel(dev, AUDIO_CHANNEL_OFFSET + ac->ch);
ch                209 drivers/media/pci/tw686x/tw686x-audio.c 		reg_write(dev, ADMA_P_ADDR[ac->ch], p_buf->dma);
ch                210 drivers/media/pci/tw686x/tw686x-audio.c 		reg_write(dev, ADMA_B_ADDR[ac->ch], b_buf->dma);
ch                235 drivers/media/pci/tw686x/tw686x-audio.c 				AUDIO_CHANNEL_OFFSET + ac->ch);
ch                247 drivers/media/pci/tw686x/tw686x-audio.c 		tw686x_disable_channel(dev, AUDIO_CHANNEL_OFFSET + ac->ch);
ch                338 drivers/media/pci/tw686x/tw686x-audio.c 		u32 reg = pb ? ADMA_B_ADDR[ac->ch] : ADMA_P_ADDR[ac->ch];
ch                346 drivers/media/pci/tw686x/tw686x-audio.c 				ac->ch, pb ? "B" : "P");
ch                379 drivers/media/pci/tw686x/tw686x-audio.c 	int err, ch;
ch                396 drivers/media/pci/tw686x/tw686x-audio.c 	for (ch = 0; ch < max_channels(dev); ch++) {
ch                399 drivers/media/pci/tw686x/tw686x-audio.c 		ac = &dev->audio_channels[ch];
ch                402 drivers/media/pci/tw686x/tw686x-audio.c 		ac->ch = ch;
ch                418 drivers/media/pci/tw686x/tw686x-audio.c 	for (ch = 0; ch < max_channels(dev); ch++) {
ch                419 drivers/media/pci/tw686x/tw686x-audio.c 		if (!dev->audio_channels[ch].dev)
ch                421 drivers/media/pci/tw686x/tw686x-audio.c 		tw686x_audio_dma_free(dev, &dev->audio_channels[ch]);
ch                228 drivers/media/pci/tw686x/tw686x-core.c 	unsigned int ch;
ch                230 drivers/media/pci/tw686x/tw686x-core.c 	for (ch = 0; ch < max_channels(dev); ch++)
ch                231 drivers/media/pci/tw686x/tw686x-core.c 		v4l2_ctrl_handler_free(&dev->video_channels[ch].ctrl_handler);
ch                105 drivers/media/pci/tw686x/tw686x-video.c 	u32 reg = pb ? VDMA_B_ADDR[vc->ch] : VDMA_P_ADDR[vc->ch];
ch                118 drivers/media/pci/tw686x/tw686x-video.c 			 vc->ch, pb ? "B" : "P");
ch                160 drivers/media/pci/tw686x/tw686x-video.c 		u32 reg = pb ? VDMA_B_ADDR[vc->ch] : VDMA_P_ADDR[vc->ch];
ch                241 drivers/media/pci/tw686x/tw686x-video.c 				 vc->ch, pb ? "B" : "P");
ch                274 drivers/media/pci/tw686x/tw686x-video.c 	u32 reg = pb ? DMA_PAGE_TABLE1_ADDR[vc->ch] :
ch                275 drivers/media/pci/tw686x/tw686x-video.c 		       DMA_PAGE_TABLE0_ADDR[vc->ch];
ch                285 drivers/media/pci/tw686x/tw686x-video.c 				 vc->ch, pb ? "B" : "P");
ch                292 drivers/media/pci/tw686x/tw686x-video.c 		       vc->ch * TW686X_SG_TABLE_SIZE;
ch                301 drivers/media/pci/tw686x/tw686x-video.c 	unsigned int sg_table_size, pb, ch, channels;
ch                320 drivers/media/pci/tw686x/tw686x-video.c 	for (ch = 0; ch < channels; ch++) {
ch                321 drivers/media/pci/tw686x/tw686x-video.c 		struct tw686x_video_channel *vc = &dev->video_channels[ch];
ch                408 drivers/media/pci/tw686x/tw686x-video.c 	reg_write(vc->dev, VIDEO_FIELD_CTRL[vc->ch], fps_map[i]);
ch                531 drivers/media/pci/tw686x/tw686x-video.c 	tw686x_enable_channel(dev, vc->ch);
ch                557 drivers/media/pci/tw686x/tw686x-video.c 		tw686x_disable_channel(dev, vc->ch);
ch                590 drivers/media/pci/tw686x/tw686x-video.c 	unsigned int ch;
ch                595 drivers/media/pci/tw686x/tw686x-video.c 	ch = vc->ch;
ch                599 drivers/media/pci/tw686x/tw686x-video.c 		reg_write(dev, BRIGHT[ch], ctrl->val & 0xff);
ch                603 drivers/media/pci/tw686x/tw686x-video.c 		reg_write(dev, CONTRAST[ch], ctrl->val);
ch                607 drivers/media/pci/tw686x/tw686x-video.c 		reg_write(dev, SAT_U[ch], ctrl->val);
ch                608 drivers/media/pci/tw686x/tw686x-video.c 		reg_write(dev, SAT_V[ch], ctrl->val);
ch                612 drivers/media/pci/tw686x/tw686x-video.c 		reg_write(dev, HUE[ch], ctrl->val & 0xff);
ch                698 drivers/media/pci/tw686x/tw686x-video.c 	val = reg_read(vc->dev, VDMA_CHANNEL_CONFIG[vc->ch]);
ch                717 drivers/media/pci/tw686x/tw686x-video.c 				0 : vc->ch * TW686X_MAX_SG_DESC_COUNT;
ch                725 drivers/media/pci/tw686x/tw686x-video.c 	reg_write(vc->dev, VDMA_CHANNEL_CONFIG[vc->ch], val);
ch                732 drivers/media/pci/tw686x/tw686x-video.c 	reg_write(vc->dev, VDMA_WHP[vc->ch], val);
ch                793 drivers/media/pci/tw686x/tw686x-video.c 	reg_write(vc->dev, SDT[vc->ch], val);
ch                797 drivers/media/pci/tw686x/tw686x-video.c 		val &= ~(1 << (SYS_MODE_DMA_SHIFT + vc->ch));
ch                799 drivers/media/pci/tw686x/tw686x-video.c 		val |= (1 << (SYS_MODE_DMA_SHIFT + vc->ch));
ch                847 drivers/media/pci/tw686x/tw686x-video.c 	old_std = reg_read(dev, SDT[vc->ch]);
ch                848 drivers/media/pci/tw686x/tw686x-video.c 	reg_write(dev, SDT[vc->ch], 0x7);
ch                849 drivers/media/pci/tw686x/tw686x-video.c 	reg_write(dev, SDT_EN[vc->ch], 0xff);
ch                854 drivers/media/pci/tw686x/tw686x-video.c 		detected_std = reg_read(dev, SDT[vc->ch]);
ch                859 drivers/media/pci/tw686x/tw686x-video.c 	reg_write(dev, SDT[vc->ch], old_std);
ch                987 drivers/media/pci/tw686x/tw686x-video.c 	val = reg_read(vc->dev, VDMA_CHANNEL_CONFIG[vc->ch]);
ch                990 drivers/media/pci/tw686x/tw686x-video.c 	reg_write(vc->dev, VDMA_CHANNEL_CONFIG[vc->ch], val);
ch               1033 drivers/media/pci/tw686x/tw686x-video.c 	vidstat = reg_read(vc->dev, VIDSTAT[vc->ch]);
ch               1093 drivers/media/pci/tw686x/tw686x-video.c 	unsigned int ch, pb;
ch               1095 drivers/media/pci/tw686x/tw686x-video.c 	for_each_set_bit(ch, &requests, max_channels(dev)) {
ch               1096 drivers/media/pci/tw686x/tw686x-video.c 		vc = &dev->video_channels[ch];
ch               1103 drivers/media/pci/tw686x/tw686x-video.c 		if (vc->no_signal && !(fifo_status & BIT(ch))) {
ch               1107 drivers/media/pci/tw686x/tw686x-video.c 			*reset_ch |= BIT(ch);
ch               1111 drivers/media/pci/tw686x/tw686x-video.c 		vc->no_signal = !!(fifo_status & BIT(ch));
ch               1117 drivers/media/pci/tw686x/tw686x-video.c 			fifo_ov = (fifo_status >> 24) & BIT(ch);
ch               1118 drivers/media/pci/tw686x/tw686x-video.c 			fifo_bad = (fifo_status >> 16) & BIT(ch);
ch               1123 drivers/media/pci/tw686x/tw686x-video.c 				*reset_ch |= BIT(ch);
ch               1129 drivers/media/pci/tw686x/tw686x-video.c 		pb = !!(pb_status & BIT(ch));
ch               1135 drivers/media/pci/tw686x/tw686x-video.c 			*reset_ch |= BIT(ch);
ch               1149 drivers/media/pci/tw686x/tw686x-video.c 	unsigned int ch, pb;
ch               1151 drivers/media/pci/tw686x/tw686x-video.c 	for (ch = 0; ch < max_channels(dev); ch++) {
ch               1152 drivers/media/pci/tw686x/tw686x-video.c 		struct tw686x_video_channel *vc = &dev->video_channels[ch];
ch               1164 drivers/media/pci/tw686x/tw686x-video.c 	unsigned int ch, val;
ch               1187 drivers/media/pci/tw686x/tw686x-video.c 	for (ch = 0; ch < max_channels(dev); ch++) {
ch               1188 drivers/media/pci/tw686x/tw686x-video.c 		struct tw686x_video_channel *vc = &dev->video_channels[ch];
ch               1191 drivers/media/pci/tw686x/tw686x-video.c 		vc->ch = ch;
ch               1194 drivers/media/pci/tw686x/tw686x-video.c 	for (ch = 0; ch < max_channels(dev); ch++) {
ch               1195 drivers/media/pci/tw686x/tw686x-video.c 		struct tw686x_video_channel *vc = &dev->video_channels[ch];
ch               1216 drivers/media/pci/tw686x/tw686x-video.c 		reg_write(dev, VDELAY_LO[ch], 0x14);
ch               1217 drivers/media/pci/tw686x/tw686x-video.c 		reg_write(dev, HACTIVE_LO[ch], 0xd0);
ch               1218 drivers/media/pci/tw686x/tw686x-video.c 		reg_write(dev, VIDEO_SIZE[ch], 0);
ch               1236 drivers/media/pci/tw686x/tw686x-video.c 				 "dma%d: cannot init vb2 queue\n", ch);
ch               1243 drivers/media/pci/tw686x/tw686x-video.c 				 "dma%d: cannot init ctrl handler\n", ch);
ch               1265 drivers/media/pci/tw686x/tw686x-video.c 				 "dma%d: unable to allocate device\n", ch);
ch               1292 drivers/media/pci/tw686x/tw686x-video.c 	for (ch = 0; ch < max_channels(dev); ch++)
ch               1293 drivers/media/pci/tw686x/tw686x-video.c 		val |= dev->dma_ops->hw_dma_mode << (16 + ch * 2);
ch                 68 drivers/media/pci/tw686x/tw686x.h 	unsigned int ch;
ch                 95 drivers/media/pci/tw686x/tw686x.h 	unsigned int ch;
ch                 46 drivers/media/platform/davinci/vpif_capture.c static void vpif_calculate_offsets(struct channel_obj *ch);
ch                 47 drivers/media/platform/davinci/vpif_capture.c static void vpif_config_addr(struct channel_obj *ch, int muxmode);
ch                 72 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = vb2_get_drv_priv(q);
ch                 78 drivers/media/platform/davinci/vpif_capture.c 	common = &ch->common[VPIF_VIDEO_INDEX];
ch                113 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = vb2_get_drv_priv(vq);
ch                114 drivers/media/platform/davinci/vpif_capture.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch                132 drivers/media/platform/davinci/vpif_capture.c 	vpif_calculate_offsets(ch);
ch                144 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = vb2_get_drv_priv(vb->vb2_queue);
ch                149 drivers/media/platform/davinci/vpif_capture.c 	common = &ch->common[VPIF_VIDEO_INDEX];
ch                168 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = vb2_get_drv_priv(vq);
ch                169 drivers/media/platform/davinci/vpif_capture.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch                170 drivers/media/platform/davinci/vpif_capture.c 	struct vpif_params *vpif = &ch->vpifparams;
ch                176 drivers/media/platform/davinci/vpif_capture.c 	ch->field_id = 0;
ch                188 drivers/media/platform/davinci/vpif_capture.c 	ret = v4l2_subdev_call(ch->sd, video, s_stream, 1);
ch                195 drivers/media/platform/davinci/vpif_capture.c 	ret = vpif_set_video_params(vpif, ch->channel_id);
ch                202 drivers/media/platform/davinci/vpif_capture.c 	vpif_config_addr(ch, ret);
ch                223 drivers/media/platform/davinci/vpif_capture.c 	channel_first_int[VPIF_VIDEO_INDEX][ch->channel_id] = 1;
ch                224 drivers/media/platform/davinci/vpif_capture.c 	if (VPIF_CHANNEL0_VIDEO == ch->channel_id) {
ch                229 drivers/media/platform/davinci/vpif_capture.c 	if (VPIF_CHANNEL1_VIDEO == ch->channel_id ||
ch                258 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = vb2_get_drv_priv(vq);
ch                263 drivers/media/platform/davinci/vpif_capture.c 	common = &ch->common[VPIF_VIDEO_INDEX];
ch                266 drivers/media/platform/davinci/vpif_capture.c 	if (VPIF_CHANNEL0_VIDEO == ch->channel_id) {
ch                270 drivers/media/platform/davinci/vpif_capture.c 	if (VPIF_CHANNEL1_VIDEO == ch->channel_id ||
ch                278 drivers/media/platform/davinci/vpif_capture.c 	ret = v4l2_subdev_call(ch->sd, video, s_stream, 0);
ch                371 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch;
ch                379 drivers/media/platform/davinci/vpif_capture.c 	ch = dev->dev[channel_id];
ch                382 drivers/media/platform/davinci/vpif_capture.c 		common = &ch->common[i];
ch                385 drivers/media/platform/davinci/vpif_capture.c 		if (1 == ch->vpifparams.std_info.frm_fmt ||
ch                414 drivers/media/platform/davinci/vpif_capture.c 				ch->field_id ^= 1;
ch                416 drivers/media/platform/davinci/vpif_capture.c 				fid = vpif_channel_getfid(ch->channel_id);
ch                417 drivers/media/platform/davinci/vpif_capture.c 				if (fid != ch->field_id) {
ch                423 drivers/media/platform/davinci/vpif_capture.c 						ch->field_id = fid;
ch                459 drivers/media/platform/davinci/vpif_capture.c static int vpif_update_std_info(struct channel_obj *ch)
ch                461 drivers/media/platform/davinci/vpif_capture.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch                462 drivers/media/platform/davinci/vpif_capture.c 	struct vpif_params *vpifparams = &ch->vpifparams;
ch                465 drivers/media/platform/davinci/vpif_capture.c 	struct video_obj *vid_ch = &ch->video;
ch                535 drivers/media/platform/davinci/vpif_capture.c 	if (ch->vpifparams.std_info.frm_fmt)
ch                540 drivers/media/platform/davinci/vpif_capture.c 	if (ch->vpifparams.iface.if_type == VPIF_IF_RAW_BAYER)
ch                557 drivers/media/platform/davinci/vpif_capture.c static void vpif_calculate_offsets(struct channel_obj *ch)
ch                560 drivers/media/platform/davinci/vpif_capture.c 	struct video_obj *vid_ch = &(ch->video);
ch                561 drivers/media/platform/davinci/vpif_capture.c 	struct vpif_params *vpifparams = &ch->vpifparams;
ch                562 drivers/media/platform/davinci/vpif_capture.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch                618 drivers/media/platform/davinci/vpif_capture.c 	ch->vpifparams.video_params.stdid = vpifparams->std_info.stdid;
ch                637 drivers/media/platform/davinci/vpif_capture.c static void vpif_config_addr(struct channel_obj *ch, int muxmode)
ch                643 drivers/media/platform/davinci/vpif_capture.c 	common = &(ch->common[VPIF_VIDEO_INDEX]);
ch                645 drivers/media/platform/davinci/vpif_capture.c 	if (VPIF_CHANNEL1_VIDEO == ch->channel_id)
ch                701 drivers/media/platform/davinci/vpif_capture.c 		struct channel_obj *ch,
ch                705 drivers/media/platform/davinci/vpif_capture.c 			&vpif_cfg->chan_config[ch->channel_id];
ch                723 drivers/media/platform/davinci/vpif_capture.c 		ret = vpif_cfg->setup_input_path(ch->channel_id,
ch                743 drivers/media/platform/davinci/vpif_capture.c 	ch->input_idx = index;
ch                744 drivers/media/platform/davinci/vpif_capture.c 	ch->sd = sd;
ch                746 drivers/media/platform/davinci/vpif_capture.c 	ch->vpifparams.iface = chan_cfg->vpif_if;
ch                749 drivers/media/platform/davinci/vpif_capture.c 	ch->video_dev.tvnorms = chan_cfg->inputs[index].input.std;
ch                764 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch                770 drivers/media/platform/davinci/vpif_capture.c 	ret = v4l2_subdev_call(ch->sd, video, querystd, std_id);
ch                792 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch                798 drivers/media/platform/davinci/vpif_capture.c 	if (!config->chan_config[ch->channel_id].inputs)
ch                801 drivers/media/platform/davinci/vpif_capture.c 	chan_cfg = &config->chan_config[ch->channel_id];
ch                802 drivers/media/platform/davinci/vpif_capture.c 	input = chan_cfg->inputs[ch->input_idx].input;
ch                806 drivers/media/platform/davinci/vpif_capture.c 	*std = ch->video.stdid;
ch                820 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch                821 drivers/media/platform/davinci/vpif_capture.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch                828 drivers/media/platform/davinci/vpif_capture.c 	if (!config->chan_config[ch->channel_id].inputs)
ch                831 drivers/media/platform/davinci/vpif_capture.c 	chan_cfg = &config->chan_config[ch->channel_id];
ch                832 drivers/media/platform/davinci/vpif_capture.c 	input = chan_cfg->inputs[ch->input_idx].input;
ch                840 drivers/media/platform/davinci/vpif_capture.c 	ch->video.stdid = std_id;
ch                841 drivers/media/platform/davinci/vpif_capture.c 	memset(&ch->video.dv_timings, 0, sizeof(ch->video.dv_timings));
ch                844 drivers/media/platform/davinci/vpif_capture.c 	if (vpif_update_std_info(ch)) {
ch                850 drivers/media/platform/davinci/vpif_capture.c 	ret = v4l2_subdev_call(ch->sd, video, s_std, std_id);
ch                870 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch                873 drivers/media/platform/davinci/vpif_capture.c 	chan_cfg = &config->chan_config[ch->channel_id];
ch                892 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch                894 drivers/media/platform/davinci/vpif_capture.c 	*index = ch->input_idx;
ch                908 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch                909 drivers/media/platform/davinci/vpif_capture.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch                912 drivers/media/platform/davinci/vpif_capture.c 	chan_cfg = &config->chan_config[ch->channel_id];
ch                920 drivers/media/platform/davinci/vpif_capture.c 	return vpif_set_input(config, ch, index);
ch                933 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch                941 drivers/media/platform/davinci/vpif_capture.c 	if (ch->vpifparams.iface.if_type == VPIF_IF_RAW_BAYER)
ch                958 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch                960 drivers/media/platform/davinci/vpif_capture.c 	struct common_obj *common = &(ch->common[VPIF_VIDEO_INDEX]);
ch                963 drivers/media/platform/davinci/vpif_capture.c 	vpif_update_std_info(ch);
ch                995 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch                996 drivers/media/platform/davinci/vpif_capture.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch               1012 drivers/media/platform/davinci/vpif_capture.c 	ret = v4l2_subdev_call(ch->sd, pad, get_fmt, NULL, &format);
ch               1035 drivers/media/platform/davinci/vpif_capture.c 		vpif_update_std_info(ch);
ch               1051 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch               1052 drivers/media/platform/davinci/vpif_capture.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch               1100 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch               1105 drivers/media/platform/davinci/vpif_capture.c 	if (!config->chan_config[ch->channel_id].inputs)
ch               1108 drivers/media/platform/davinci/vpif_capture.c 	chan_cfg = &config->chan_config[ch->channel_id];
ch               1109 drivers/media/platform/davinci/vpif_capture.c 	input = chan_cfg->inputs[ch->input_idx].input;
ch               1115 drivers/media/platform/davinci/vpif_capture.c 	ret = v4l2_subdev_call(ch->sd, pad, enum_dv_timings, timings);
ch               1134 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch               1139 drivers/media/platform/davinci/vpif_capture.c 	if (!config->chan_config[ch->channel_id].inputs)
ch               1142 drivers/media/platform/davinci/vpif_capture.c 	chan_cfg = &config->chan_config[ch->channel_id];
ch               1143 drivers/media/platform/davinci/vpif_capture.c 	input = chan_cfg->inputs[ch->input_idx].input;
ch               1147 drivers/media/platform/davinci/vpif_capture.c 	ret = v4l2_subdev_call(ch->sd, video, query_dv_timings, timings);
ch               1165 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch               1166 drivers/media/platform/davinci/vpif_capture.c 	struct vpif_params *vpifparams = &ch->vpifparams;
ch               1168 drivers/media/platform/davinci/vpif_capture.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch               1169 drivers/media/platform/davinci/vpif_capture.c 	struct video_obj *vid_ch = &ch->video;
ch               1175 drivers/media/platform/davinci/vpif_capture.c 	if (!config->chan_config[ch->channel_id].inputs)
ch               1178 drivers/media/platform/davinci/vpif_capture.c 	chan_cfg = &config->chan_config[ch->channel_id];
ch               1179 drivers/media/platform/davinci/vpif_capture.c 	input = chan_cfg->inputs[ch->input_idx].input;
ch               1192 drivers/media/platform/davinci/vpif_capture.c 	ret = v4l2_subdev_call(ch->sd, video, s_dv_timings, timings);
ch               1264 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch               1265 drivers/media/platform/davinci/vpif_capture.c 	struct video_obj *vid_ch = &ch->video;
ch               1269 drivers/media/platform/davinci/vpif_capture.c 	if (!config->chan_config[ch->channel_id].inputs)
ch               1272 drivers/media/platform/davinci/vpif_capture.c 	chan_cfg = &config->chan_config[ch->channel_id];
ch               1273 drivers/media/platform/davinci/vpif_capture.c 	input = chan_cfg->inputs[ch->input_idx].input;
ch               1413 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch;
ch               1418 drivers/media/platform/davinci/vpif_capture.c 		ch = vpif_obj.dev[j];
ch               1419 drivers/media/platform/davinci/vpif_capture.c 		ch->channel_id = j;
ch               1420 drivers/media/platform/davinci/vpif_capture.c 		common = &(ch->common[VPIF_VIDEO_INDEX]);
ch               1425 drivers/media/platform/davinci/vpif_capture.c 		err = vpif_set_input(vpif_obj.config, ch, 0);
ch               1430 drivers/media/platform/davinci/vpif_capture.c 		ch->video.stdid = V4L2_STD_525_60;
ch               1431 drivers/media/platform/davinci/vpif_capture.c 		memset(&ch->video.dv_timings, 0, sizeof(ch->video.dv_timings));
ch               1433 drivers/media/platform/davinci/vpif_capture.c 		vpif_update_std_info(ch);
ch               1439 drivers/media/platform/davinci/vpif_capture.c 		q->drv_priv = ch;
ch               1457 drivers/media/platform/davinci/vpif_capture.c 		vdev = &ch->video_dev;
ch               1467 drivers/media/platform/davinci/vpif_capture.c 		video_set_drvdata(&ch->video_dev, ch);
ch               1480 drivers/media/platform/davinci/vpif_capture.c 		ch = vpif_obj.dev[k];
ch               1481 drivers/media/platform/davinci/vpif_capture.c 		common = &ch->common[k];
ch               1483 drivers/media/platform/davinci/vpif_capture.c 		video_unregister_device(&ch->video_dev);
ch               1729 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch;
ch               1740 drivers/media/platform/davinci/vpif_capture.c 		ch = vpif_obj.dev[i];
ch               1742 drivers/media/platform/davinci/vpif_capture.c 		video_unregister_device(&ch->video_dev);
ch               1757 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch;
ch               1762 drivers/media/platform/davinci/vpif_capture.c 		ch = vpif_obj.dev[i];
ch               1763 drivers/media/platform/davinci/vpif_capture.c 		common = &ch->common[VPIF_VIDEO_INDEX];
ch               1770 drivers/media/platform/davinci/vpif_capture.c 		if (ch->channel_id == VPIF_CHANNEL0_VIDEO) {
ch               1774 drivers/media/platform/davinci/vpif_capture.c 		if (ch->channel_id == VPIF_CHANNEL1_VIDEO ||
ch               1791 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch;
ch               1796 drivers/media/platform/davinci/vpif_capture.c 		ch = vpif_obj.dev[i];
ch               1797 drivers/media/platform/davinci/vpif_capture.c 		common = &ch->common[VPIF_VIDEO_INDEX];
ch               1804 drivers/media/platform/davinci/vpif_capture.c 		if (ch->channel_id == VPIF_CHANNEL0_VIDEO) {
ch               1808 drivers/media/platform/davinci/vpif_capture.c 		if (ch->channel_id == VPIF_CHANNEL1_VIDEO ||
ch                 54 drivers/media/platform/davinci/vpif_display.c static void vpif_calculate_offsets(struct channel_obj *ch);
ch                 55 drivers/media/platform/davinci/vpif_display.c static void vpif_config_addr(struct channel_obj *ch, int muxmode);
ch                 74 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch = vb2_get_drv_priv(vb->vb2_queue);
ch                 77 drivers/media/platform/davinci/vpif_display.c 	common = &ch->common[VPIF_VIDEO_INDEX];
ch                115 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch = vb2_get_drv_priv(vq);
ch                116 drivers/media/platform/davinci/vpif_display.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch                132 drivers/media/platform/davinci/vpif_display.c 	vpif_calculate_offsets(ch);
ch                147 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch = vb2_get_drv_priv(vb->vb2_queue);
ch                151 drivers/media/platform/davinci/vpif_display.c 	common = &ch->common[VPIF_VIDEO_INDEX];
ch                168 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch = vb2_get_drv_priv(vq);
ch                169 drivers/media/platform/davinci/vpif_display.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch                170 drivers/media/platform/davinci/vpif_display.c 	struct vpif_params *vpif = &ch->vpifparams;
ch                178 drivers/media/platform/davinci/vpif_display.c 	ch->field_id = 0;
ch                182 drivers/media/platform/davinci/vpif_display.c 		ret = vpif_config_data->set_clock(ch->vpifparams.std_info.
ch                183 drivers/media/platform/davinci/vpif_display.c 		ycmux_mode, ch->vpifparams.std_info.hd_sd);
ch                191 drivers/media/platform/davinci/vpif_display.c 	ret = vpif_set_video_params(vpif, ch->channel_id + 2);
ch                196 drivers/media/platform/davinci/vpif_display.c 	vpif_config_addr(ch, ret);
ch                215 drivers/media/platform/davinci/vpif_display.c 	channel_first_int[VPIF_VIDEO_INDEX][ch->channel_id] = 1;
ch                216 drivers/media/platform/davinci/vpif_display.c 	if (VPIF_CHANNEL2_VIDEO == ch->channel_id) {
ch                224 drivers/media/platform/davinci/vpif_display.c 	if (VPIF_CHANNEL3_VIDEO == ch->channel_id || ycmux_mode == 2) {
ch                253 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch = vb2_get_drv_priv(vq);
ch                257 drivers/media/platform/davinci/vpif_display.c 	common = &ch->common[VPIF_VIDEO_INDEX];
ch                260 drivers/media/platform/davinci/vpif_display.c 	if (VPIF_CHANNEL2_VIDEO == ch->channel_id) {
ch                264 drivers/media/platform/davinci/vpif_display.c 	if (VPIF_CHANNEL3_VIDEO == ch->channel_id || ycmux_mode == 2) {
ch                364 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch;
ch                373 drivers/media/platform/davinci/vpif_display.c 	ch = dev->dev[channel_id];
ch                375 drivers/media/platform/davinci/vpif_display.c 		common = &ch->common[i];
ch                378 drivers/media/platform/davinci/vpif_display.c 		if (1 == ch->vpifparams.std_info.frm_fmt) {
ch                410 drivers/media/platform/davinci/vpif_display.c 				ch->field_id ^= 1;
ch                412 drivers/media/platform/davinci/vpif_display.c 				fid = vpif_channel_getfid(ch->channel_id + 2);
ch                414 drivers/media/platform/davinci/vpif_display.c 				if (fid != ch->field_id) {
ch                417 drivers/media/platform/davinci/vpif_display.c 						ch->field_id = fid;
ch                429 drivers/media/platform/davinci/vpif_display.c static int vpif_update_std_info(struct channel_obj *ch)
ch                431 drivers/media/platform/davinci/vpif_display.c 	struct video_obj *vid_ch = &ch->video;
ch                432 drivers/media/platform/davinci/vpif_display.c 	struct vpif_params *vpifparams = &ch->vpifparams;
ch                457 drivers/media/platform/davinci/vpif_display.c static int vpif_update_resolution(struct channel_obj *ch)
ch                459 drivers/media/platform/davinci/vpif_display.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch                460 drivers/media/platform/davinci/vpif_display.c 	struct video_obj *vid_ch = &ch->video;
ch                461 drivers/media/platform/davinci/vpif_display.c 	struct vpif_params *vpifparams = &ch->vpifparams;
ch                468 drivers/media/platform/davinci/vpif_display.c 		if (vpif_update_std_info(ch))
ch                488 drivers/media/platform/davinci/vpif_display.c 	if (ch->vpifparams.std_info.frm_fmt)
ch                500 drivers/media/platform/davinci/vpif_display.c static void vpif_calculate_offsets(struct channel_obj *ch)
ch                502 drivers/media/platform/davinci/vpif_display.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch                503 drivers/media/platform/davinci/vpif_display.c 	struct vpif_params *vpifparams = &ch->vpifparams;
ch                505 drivers/media/platform/davinci/vpif_display.c 	struct video_obj *vid_ch = &ch->video;
ch                509 drivers/media/platform/davinci/vpif_display.c 		if (ch->vpifparams.std_info.frm_fmt)
ch                545 drivers/media/platform/davinci/vpif_display.c 	if (ch->vpifparams.std_info.frm_fmt == 1) {
ch                558 drivers/media/platform/davinci/vpif_display.c 	ch->vpifparams.video_params.stdid = ch->vpifparams.std_info.stdid;
ch                561 drivers/media/platform/davinci/vpif_display.c static void vpif_config_addr(struct channel_obj *ch, int muxmode)
ch                563 drivers/media/platform/davinci/vpif_display.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch                565 drivers/media/platform/davinci/vpif_display.c 	if (VPIF_CHANNEL3_VIDEO == ch->channel_id) {
ch                610 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch                611 drivers/media/platform/davinci/vpif_display.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch                617 drivers/media/platform/davinci/vpif_display.c 	if (vpif_update_resolution(ch))
ch                627 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch                628 drivers/media/platform/davinci/vpif_display.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch                638 drivers/media/platform/davinci/vpif_display.c 	if (vpif_update_resolution(ch))
ch                655 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch                656 drivers/media/platform/davinci/vpif_display.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch                679 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch                680 drivers/media/platform/davinci/vpif_display.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch                685 drivers/media/platform/davinci/vpif_display.c 	if (!config->chan_config[ch->channel_id].outputs)
ch                688 drivers/media/platform/davinci/vpif_display.c 	chan_cfg = &config->chan_config[ch->channel_id];
ch                689 drivers/media/platform/davinci/vpif_display.c 	output = chan_cfg->outputs[ch->output_idx].output;
ch                701 drivers/media/platform/davinci/vpif_display.c 	ch->video.stdid = std_id;
ch                702 drivers/media/platform/davinci/vpif_display.c 	memset(&ch->video.dv_timings, 0, sizeof(ch->video.dv_timings));
ch                704 drivers/media/platform/davinci/vpif_display.c 	if (vpif_update_resolution(ch))
ch                727 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch                731 drivers/media/platform/davinci/vpif_display.c 	if (!config->chan_config[ch->channel_id].outputs)
ch                734 drivers/media/platform/davinci/vpif_display.c 	chan_cfg = &config->chan_config[ch->channel_id];
ch                735 drivers/media/platform/davinci/vpif_display.c 	output = chan_cfg->outputs[ch->output_idx].output;
ch                739 drivers/media/platform/davinci/vpif_display.c 	*std = ch->video.stdid;
ch                749 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch                752 drivers/media/platform/davinci/vpif_display.c 	chan_cfg = &config->chan_config[ch->channel_id];
ch                807 drivers/media/platform/davinci/vpif_display.c 		      struct channel_obj *ch, int index)
ch                810 drivers/media/platform/davinci/vpif_display.c 		&vpif_cfg->chan_config[ch->channel_id];
ch                830 drivers/media/platform/davinci/vpif_display.c 	ch->output_idx = index;
ch                831 drivers/media/platform/davinci/vpif_display.c 	ch->sd = sd;
ch                834 drivers/media/platform/davinci/vpif_display.c 		ch->video_dev.tvnorms = chan_cfg->outputs[index].output.std;
ch                842 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch                844 drivers/media/platform/davinci/vpif_display.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch                849 drivers/media/platform/davinci/vpif_display.c 	chan_cfg = &config->chan_config[ch->channel_id];
ch                854 drivers/media/platform/davinci/vpif_display.c 	return vpif_set_output(config, ch, i);
ch                860 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch                862 drivers/media/platform/davinci/vpif_display.c 	*i = ch->output_idx;
ch                879 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch                884 drivers/media/platform/davinci/vpif_display.c 	if (!config->chan_config[ch->channel_id].outputs)
ch                887 drivers/media/platform/davinci/vpif_display.c 	chan_cfg = &config->chan_config[ch->channel_id];
ch                888 drivers/media/platform/davinci/vpif_display.c 	output = chan_cfg->outputs[ch->output_idx].output;
ch                894 drivers/media/platform/davinci/vpif_display.c 	ret = v4l2_subdev_call(ch->sd, pad, enum_dv_timings, timings);
ch                911 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch                912 drivers/media/platform/davinci/vpif_display.c 	struct vpif_params *vpifparams = &ch->vpifparams;
ch                913 drivers/media/platform/davinci/vpif_display.c 	struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
ch                915 drivers/media/platform/davinci/vpif_display.c 	struct video_obj *vid_ch = &ch->video;
ch                921 drivers/media/platform/davinci/vpif_display.c 	if (!config->chan_config[ch->channel_id].outputs)
ch                924 drivers/media/platform/davinci/vpif_display.c 	chan_cfg = &config->chan_config[ch->channel_id];
ch                925 drivers/media/platform/davinci/vpif_display.c 	output = chan_cfg->outputs[ch->output_idx].output;
ch                938 drivers/media/platform/davinci/vpif_display.c 	ret = v4l2_subdev_call(ch->sd, video, s_dv_timings, timings);
ch               1010 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch = video_get_drvdata(vdev);
ch               1012 drivers/media/platform/davinci/vpif_display.c 	struct video_obj *vid_ch = &ch->video;
ch               1015 drivers/media/platform/davinci/vpif_display.c 	if (!config->chan_config[ch->channel_id].outputs)
ch               1018 drivers/media/platform/davinci/vpif_display.c 	chan_cfg = &config->chan_config[ch->channel_id];
ch               1019 drivers/media/platform/davinci/vpif_display.c 	output = chan_cfg->outputs[ch->output_idx].output;
ch               1141 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch;
ch               1146 drivers/media/platform/davinci/vpif_display.c 		ch = vpif_obj.dev[j];
ch               1149 drivers/media/platform/davinci/vpif_display.c 			common = &ch->common[k];
ch               1161 drivers/media/platform/davinci/vpif_display.c 		ch->initialized = 0;
ch               1163 drivers/media/platform/davinci/vpif_display.c 			ch->sd = vpif_obj.sd[0];
ch               1164 drivers/media/platform/davinci/vpif_display.c 		ch->channel_id = j;
ch               1166 drivers/media/platform/davinci/vpif_display.c 		memset(&ch->vpifparams, 0, sizeof(ch->vpifparams));
ch               1168 drivers/media/platform/davinci/vpif_display.c 		ch->common[VPIF_VIDEO_INDEX].fmt.type =
ch               1172 drivers/media/platform/davinci/vpif_display.c 		err = vpif_set_output(vpif_obj.config, ch, 0);
ch               1177 drivers/media/platform/davinci/vpif_display.c 		ch->video.stdid = V4L2_STD_525_60;
ch               1178 drivers/media/platform/davinci/vpif_display.c 		memset(&ch->video.dv_timings, 0, sizeof(ch->video.dv_timings));
ch               1179 drivers/media/platform/davinci/vpif_display.c 		vpif_update_resolution(ch);
ch               1185 drivers/media/platform/davinci/vpif_display.c 		q->drv_priv = ch;
ch               1203 drivers/media/platform/davinci/vpif_display.c 			 ch, &ch->video_dev);
ch               1206 drivers/media/platform/davinci/vpif_display.c 		vdev = &ch->video_dev;
ch               1216 drivers/media/platform/davinci/vpif_display.c 		video_set_drvdata(&ch->video_dev, ch);
ch               1227 drivers/media/platform/davinci/vpif_display.c 		ch = vpif_obj.dev[k];
ch               1228 drivers/media/platform/davinci/vpif_display.c 		common = &ch->common[k];
ch               1229 drivers/media/platform/davinci/vpif_display.c 		video_unregister_device(&ch->video_dev);
ch               1359 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch;
ch               1373 drivers/media/platform/davinci/vpif_display.c 		ch = vpif_obj.dev[i];
ch               1375 drivers/media/platform/davinci/vpif_display.c 		video_unregister_device(&ch->video_dev);
ch               1386 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch;
ch               1391 drivers/media/platform/davinci/vpif_display.c 		ch = vpif_obj.dev[i];
ch               1392 drivers/media/platform/davinci/vpif_display.c 		common = &ch->common[VPIF_VIDEO_INDEX];
ch               1399 drivers/media/platform/davinci/vpif_display.c 		if (ch->channel_id == VPIF_CHANNEL2_VIDEO) {
ch               1403 drivers/media/platform/davinci/vpif_display.c 		if (ch->channel_id == VPIF_CHANNEL3_VIDEO ||
ch               1418 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch;
ch               1423 drivers/media/platform/davinci/vpif_display.c 		ch = vpif_obj.dev[i];
ch               1424 drivers/media/platform/davinci/vpif_display.c 		common = &ch->common[VPIF_VIDEO_INDEX];
ch               1431 drivers/media/platform/davinci/vpif_display.c 		if (ch->channel_id == VPIF_CHANNEL2_VIDEO) {
ch               1435 drivers/media/platform/davinci/vpif_display.c 		if (ch->channel_id == VPIF_CHANNEL3_VIDEO ||
ch                132 drivers/media/platform/rcar_drif.c 	(&((sdr)->ch[!(ch_num)]->buf[(idx)]))
ch                134 drivers/media/platform/rcar_drif.c #define for_each_rcar_drif_channel(ch, ch_mask)			\
ch                135 drivers/media/platform/rcar_drif.c 	for_each_set_bit(ch, ch_mask, RCAR_DRIF_MAX_CHANNEL)
ch                236 drivers/media/platform/rcar_drif.c 	struct rcar_drif *ch[RCAR_DRIF_MAX_CHANNEL]; /* DRIFx0,1 */
ch                246 drivers/media/platform/rcar_drif.c static void rcar_drif_write(struct rcar_drif *ch, u32 offset, u32 data)
ch                248 drivers/media/platform/rcar_drif.c 	writel(data, ch->base + offset);
ch                251 drivers/media/platform/rcar_drif.c static u32 rcar_drif_read(struct rcar_drif *ch, u32 offset)
ch                253 drivers/media/platform/rcar_drif.c 	return readl(ch->base + offset);
ch                262 drivers/media/platform/rcar_drif.c 		if (sdr->ch[i]->dmach) {
ch                263 drivers/media/platform/rcar_drif.c 			dma_release_channel(sdr->ch[i]->dmach);
ch                264 drivers/media/platform/rcar_drif.c 			sdr->ch[i]->dmach = NULL;
ch                276 drivers/media/platform/rcar_drif.c 		struct rcar_drif *ch = sdr->ch[i];
ch                278 drivers/media/platform/rcar_drif.c 		ch->dmach = dma_request_slave_channel(&ch->pdev->dev, "rx");
ch                279 drivers/media/platform/rcar_drif.c 		if (!ch->dmach) {
ch                287 drivers/media/platform/rcar_drif.c 		dma_cfg.src_addr = (phys_addr_t)(ch->start + RCAR_DRIF_SIRFDR);
ch                289 drivers/media/platform/rcar_drif.c 		ret = dmaengine_slave_config(ch->dmach, &dma_cfg);
ch                325 drivers/media/platform/rcar_drif.c 		rcar_drif_write(sdr->ch[i], RCAR_DRIF_SITMDR1,
ch                329 drivers/media/platform/rcar_drif.c 		rcar_drif_write(sdr->ch[i], RCAR_DRIF_SIRMDR1, sdr->mdr1);
ch                332 drivers/media/platform/rcar_drif.c 			  i, rcar_drif_read(sdr->ch[i], RCAR_DRIF_SIRMDR1));
ch                359 drivers/media/platform/rcar_drif.c 		rcar_drif_write(sdr->ch[i], RCAR_DRIF_SIRMDR2, mdr);
ch                363 drivers/media/platform/rcar_drif.c 		rcar_drif_write(sdr->ch[i], RCAR_DRIF_SIRMDR3, mdr);
ch                366 drivers/media/platform/rcar_drif.c 			  i, rcar_drif_read(sdr->ch[i], RCAR_DRIF_SIRMDR2),
ch                367 drivers/media/platform/rcar_drif.c 			  rcar_drif_read(sdr->ch[i], RCAR_DRIF_SIRMDR3));
ch                378 drivers/media/platform/rcar_drif.c 		struct rcar_drif *ch = sdr->ch[i];
ch                381 drivers/media/platform/rcar_drif.c 		if (ch->buf[0].addr) {
ch                382 drivers/media/platform/rcar_drif.c 			dma_free_coherent(&ch->pdev->dev,
ch                384 drivers/media/platform/rcar_drif.c 				ch->buf[0].addr, ch->dma_handle);
ch                385 drivers/media/platform/rcar_drif.c 			ch->buf[0].addr = NULL;
ch                398 drivers/media/platform/rcar_drif.c 		struct rcar_drif *ch = sdr->ch[i];
ch                401 drivers/media/platform/rcar_drif.c 		addr = dma_alloc_coherent(&ch->pdev->dev,
ch                403 drivers/media/platform/rcar_drif.c 				&ch->dma_handle, GFP_KERNEL);
ch                413 drivers/media/platform/rcar_drif.c 			ch->buf[j].addr = addr + (j * sdr->hwbuf_size);
ch                414 drivers/media/platform/rcar_drif.c 			ch->buf[j].status = 0;
ch                501 drivers/media/platform/rcar_drif.c static void rcar_drif_channel_complete(struct rcar_drif *ch, u32 idx)
ch                505 drivers/media/platform/rcar_drif.c 	ch->buf[idx].status |= RCAR_DRIF_BUF_DONE;
ch                508 drivers/media/platform/rcar_drif.c 	str = rcar_drif_read(ch, RCAR_DRIF_SISTR);
ch                511 drivers/media/platform/rcar_drif.c 		rcar_drif_write(ch, RCAR_DRIF_SISTR, str);
ch                514 drivers/media/platform/rcar_drif.c 		ch->buf[idx].status |= RCAR_DRIF_BUF_OVERFLOW;
ch                521 drivers/media/platform/rcar_drif.c 	struct rcar_drif *ch = dma_async_param;
ch                522 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = ch->sdr;
ch                538 drivers/media/platform/rcar_drif.c 	rcar_drif_channel_complete(ch, idx);
ch                541 drivers/media/platform/rcar_drif.c 		buf[0] = ch->num ? to_rcar_drif_buf_pair(sdr, ch->num, idx) :
ch                542 drivers/media/platform/rcar_drif.c 				&ch->buf[idx];
ch                543 drivers/media/platform/rcar_drif.c 		buf[1] = ch->num ? &ch->buf[idx] :
ch                544 drivers/media/platform/rcar_drif.c 				to_rcar_drif_buf_pair(sdr, ch->num, idx);
ch                561 drivers/media/platform/rcar_drif.c 		buf[0] = &ch->buf[idx];
ch                573 drivers/media/platform/rcar_drif.c 	rdrif_dbg(sdr, "ch%u: prod %u\n", ch->num, produced);
ch                594 drivers/media/platform/rcar_drif.c static int rcar_drif_qbuf(struct rcar_drif *ch)
ch                596 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = ch->sdr;
ch                597 drivers/media/platform/rcar_drif.c 	dma_addr_t addr = ch->dma_handle;
ch                603 drivers/media/platform/rcar_drif.c 	rxd = dmaengine_prep_dma_cyclic(ch->dmach, addr,
ch                608 drivers/media/platform/rcar_drif.c 		rdrif_err(sdr, "ch%u: prep dma cyclic failed\n", ch->num);
ch                614 drivers/media/platform/rcar_drif.c 	rxd->callback_param = ch;
ch                617 drivers/media/platform/rcar_drif.c 		rdrif_err(sdr, "ch%u: dma submit failed\n", ch->num);
ch                621 drivers/media/platform/rcar_drif.c 	dma_async_issue_pending(ch->dmach);
ch                639 drivers/media/platform/rcar_drif.c 		ctr = rcar_drif_read(sdr->ch[i], RCAR_DRIF_SICTR);
ch                642 drivers/media/platform/rcar_drif.c 		rcar_drif_write(sdr->ch[i], RCAR_DRIF_SICTR, ctr);
ch                647 drivers/media/platform/rcar_drif.c 		ret = readl_poll_timeout(sdr->ch[i]->base + RCAR_DRIF_SICTR,
ch                651 drivers/media/platform/rcar_drif.c 				  rcar_drif_read(sdr->ch[i], RCAR_DRIF_SICTR));
ch                667 drivers/media/platform/rcar_drif.c 		ctr = rcar_drif_read(sdr->ch[i], RCAR_DRIF_SICTR);
ch                669 drivers/media/platform/rcar_drif.c 		rcar_drif_write(sdr->ch[i], RCAR_DRIF_SICTR, ctr);
ch                674 drivers/media/platform/rcar_drif.c 		ret = readl_poll_timeout(sdr->ch[i]->base + RCAR_DRIF_SICTR,
ch                679 drivers/media/platform/rcar_drif.c 			i, rcar_drif_read(sdr->ch[i], RCAR_DRIF_SICTR));
ch                684 drivers/media/platform/rcar_drif.c static void rcar_drif_stop_channel(struct rcar_drif *ch)
ch                687 drivers/media/platform/rcar_drif.c 	rcar_drif_write(ch, RCAR_DRIF_SIIER, 0x00000000);
ch                690 drivers/media/platform/rcar_drif.c 	dmaengine_terminate_sync(ch->dmach);
ch                702 drivers/media/platform/rcar_drif.c 		rcar_drif_stop_channel(sdr->ch[i]);
ch                706 drivers/media/platform/rcar_drif.c static int rcar_drif_start_channel(struct rcar_drif *ch)
ch                708 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = ch->sdr;
ch                713 drivers/media/platform/rcar_drif.c 	rcar_drif_write(ch, RCAR_DRIF_SICTR, RCAR_DRIF_SICTR_RESET);
ch                714 drivers/media/platform/rcar_drif.c 	ret = readl_poll_timeout(ch->base + RCAR_DRIF_SICTR, ctr,
ch                718 drivers/media/platform/rcar_drif.c 			  ch->num, rcar_drif_read(ch, RCAR_DRIF_SICTR));
ch                723 drivers/media/platform/rcar_drif.c 	ret = rcar_drif_qbuf(ch);
ch                730 drivers/media/platform/rcar_drif.c 	rcar_drif_write(ch, RCAR_DRIF_SISTR, str);
ch                733 drivers/media/platform/rcar_drif.c 	rcar_drif_write(ch, RCAR_DRIF_SIIER, 0x00009000);
ch                746 drivers/media/platform/rcar_drif.c 		ret = rcar_drif_start_channel(sdr->ch[i]);
ch                763 drivers/media/platform/rcar_drif.c 		rcar_drif_stop_channel(sdr->ch[i]);
ch                779 drivers/media/platform/rcar_drif.c 		ret = clk_prepare_enable(sdr->ch[i]->clk);
ch                825 drivers/media/platform/rcar_drif.c 		clk_disable_unprepare(sdr->ch[i]->clk);
ch                853 drivers/media/platform/rcar_drif.c 		clk_disable_unprepare(sdr->ch[i]->clk);
ch               1273 drivers/media/platform/rcar_drif.c 	struct rcar_drif *ch;
ch               1283 drivers/media/platform/rcar_drif.c 	ch = platform_get_drvdata(pdev);
ch               1284 drivers/media/platform/rcar_drif.c 	if (ch) {
ch               1286 drivers/media/platform/rcar_drif.c 		ch->sdr = sdr;
ch               1289 drivers/media/platform/rcar_drif.c 		sdr->ch[ch->num] = ch;
ch               1290 drivers/media/platform/rcar_drif.c 		sdr->hw_ch_mask |= BIT(ch->num);
ch               1387 drivers/media/platform/rcar_drif.c 	struct rcar_drif *ch;
ch               1392 drivers/media/platform/rcar_drif.c 	ch = devm_kzalloc(&pdev->dev, sizeof(*ch), GFP_KERNEL);
ch               1393 drivers/media/platform/rcar_drif.c 	if (!ch)
ch               1396 drivers/media/platform/rcar_drif.c 	ch->pdev = pdev;
ch               1399 drivers/media/platform/rcar_drif.c 	ch->clk = devm_clk_get(&pdev->dev, "fck");
ch               1400 drivers/media/platform/rcar_drif.c 	if (IS_ERR(ch->clk)) {
ch               1401 drivers/media/platform/rcar_drif.c 		ret = PTR_ERR(ch->clk);
ch               1408 drivers/media/platform/rcar_drif.c 	ch->base = devm_ioremap_resource(&pdev->dev, res);
ch               1409 drivers/media/platform/rcar_drif.c 	if (IS_ERR(ch->base))
ch               1410 drivers/media/platform/rcar_drif.c 		return PTR_ERR(ch->base);
ch               1412 drivers/media/platform/rcar_drif.c 	ch->start = res->start;
ch               1413 drivers/media/platform/rcar_drif.c 	platform_set_drvdata(pdev, ch);
ch               1420 drivers/media/platform/rcar_drif.c 			ch->num = 1;	/* Primary bond is channel 0 always */
ch               1432 drivers/media/platform/rcar_drif.c 	ch->sdr = sdr;
ch               1436 drivers/media/platform/rcar_drif.c 	sdr->ch[ch->num] = ch;
ch               1437 drivers/media/platform/rcar_drif.c 	sdr->hw_ch_mask = BIT(ch->num);
ch               1453 drivers/media/platform/rcar_drif.c 	struct rcar_drif *ch = platform_get_drvdata(pdev);
ch               1454 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = ch->sdr;
ch               1457 drivers/media/platform/rcar_drif.c 	if (ch->num)
ch                 69 drivers/media/platform/vivid/vivid-vbi-gen.c static void cc_insert(u8 *cc, u8 ch)
ch                 75 drivers/media/platform/vivid/vivid-vbi-gen.c 		cc[2 * i] = cc[2 * i + 1] = (ch & (1 << i)) ? 1 : 0;
ch                398 drivers/media/usb/gspca/w996Xcf.c 	int start_cropx, start_cropy,  x, y, fw, fh, cw, ch,
ch                437 drivers/media/usb/gspca/w996Xcf.c 	ch = (fw >= fh) ? SC(sd->gspca_dev.pixfmt.height) / fw : max_height;
ch                443 drivers/media/usb/gspca/w996Xcf.c 	y = (max_height - ch) / 2;
ch                448 drivers/media/usb/gspca/w996Xcf.c 	reg_w(sd, 0x13, start_cropy + y + ch);
ch                 22 drivers/media/usb/pvrusb2/pvrusb2-debugifc.c 	char ch;
ch                 25 drivers/media/usb/pvrusb2/pvrusb2-debugifc.c 		ch = buf[scnt];
ch                 26 drivers/media/usb/pvrusb2/pvrusb2-debugifc.c 		if (ch == ' ') continue;
ch                 27 drivers/media/usb/pvrusb2/pvrusb2-debugifc.c 		if (ch == '\t') continue;
ch                 28 drivers/media/usb/pvrusb2/pvrusb2-debugifc.c 		if (ch == '\n') continue;
ch                 39 drivers/media/usb/pvrusb2/pvrusb2-debugifc.c 	char ch;
ch                 42 drivers/media/usb/pvrusb2/pvrusb2-debugifc.c 		ch = buf[scnt];
ch                 43 drivers/media/usb/pvrusb2/pvrusb2-debugifc.c 		if (ch == ' ') break;
ch                 44 drivers/media/usb/pvrusb2/pvrusb2-debugifc.c 		if (ch == '\t') break;
ch                 45 drivers/media/usb/pvrusb2/pvrusb2-debugifc.c 		if (ch == '\n') break;
ch                128 drivers/media/usb/pvrusb2/pvrusb2-std.c 	char ch;
ch                148 drivers/media/usb/pvrusb2/pvrusb2-std.c 			ch = bufPtr[cnt];
ch                149 drivers/media/usb/pvrusb2/pvrusb2-std.c 			if (ch == ';') {
ch                153 drivers/media/usb/pvrusb2/pvrusb2-std.c 			if (ch == '/') break;
ch                 22 drivers/mfd/ezx-pcap.c 	u8 ch[2];
ch                284 drivers/mfd/ezx-pcap.c 	tmp |= (req->ch[0] << PCAP_ADC_ADA1_SHIFT);
ch                285 drivers/mfd/ezx-pcap.c 	tmp |= (req->ch[1] << PCAP_ADC_ADA2_SHIFT);
ch                305 drivers/mfd/ezx-pcap.c int pcap_adc_async(struct pcap_chip *pcap, u8 bank, u32 flags, u8 ch[],
ch                318 drivers/mfd/ezx-pcap.c 	req->ch[0] = ch[0];
ch                319 drivers/mfd/ezx-pcap.c 	req->ch[1] = ch[1];
ch                349 drivers/mfd/ezx-pcap.c int pcap_adc_sync(struct pcap_chip *pcap, u8 bank, u32 flags, u8 ch[],
ch                356 drivers/mfd/ezx-pcap.c 	ret = pcap_adc_async(pcap, bank, flags, ch, pcap_adc_sync_cb,
ch                142 drivers/mfd/ipaq-micro.c static void micro_process_char(struct ipaq_micro *micro, u8 ch)
ch                148 drivers/mfd/ipaq-micro.c 		if (ch == CHAR_SOF)
ch                152 drivers/mfd/ipaq-micro.c 		rx->id = (ch & 0xf0) >> 4;
ch                153 drivers/mfd/ipaq-micro.c 		rx->len = (ch & 0x0f);
ch                155 drivers/mfd/ipaq-micro.c 		rx->chksum = ch;
ch                159 drivers/mfd/ipaq-micro.c 		rx->chksum += ch;
ch                160 drivers/mfd/ipaq-micro.c 		rx->buf[rx->index] = ch;
ch                165 drivers/mfd/ipaq-micro.c 		if (ch == rx->chksum)
ch                174 drivers/mfd/ipaq-micro.c 	u32 status, ch;
ch                177 drivers/mfd/ipaq-micro.c 		ch = readl(micro->base + UTDR);
ch                184 drivers/mfd/ipaq-micro.c 		micro_process_char(micro, ch);
ch                859 drivers/misc/altera-stapl/altera.c 				u8 ch;
ch                861 drivers/misc/altera-stapl/altera.c 				ch = (char) stack[--stack_ptr];
ch                862 drivers/misc/altera-stapl/altera.c 				if ((ch < 1) || (ch > 127)) {
ch                868 drivers/misc/altera-stapl/altera.c 					ch = 127;
ch                870 drivers/misc/altera-stapl/altera.c 				msg_buff[count] = ch;
ch                142 drivers/misc/genwqe/card_utils.c 		char ch = (char)((app_id >> (24 - j*8)) & 0xff);
ch                144 drivers/misc/genwqe/card_utils.c 		if (ch == ' ')
ch                146 drivers/misc/genwqe/card_utils.c 		app_name[i++] = isprint(ch) ? ch : 'X';
ch                695 drivers/misc/kgdbts.c 	char ch;
ch                699 drivers/misc/kgdbts.c 	while ((ch = buf[count])) {
ch                700 drivers/misc/kgdbts.c 		checksum += ch;
ch                675 drivers/misc/sgi-xp/xpc.h xpc_msgqueue_ref(struct xpc_channel *ch)
ch                677 drivers/misc/sgi-xp/xpc.h 	atomic_inc(&ch->references);
ch                681 drivers/misc/sgi-xp/xpc.h xpc_msgqueue_deref(struct xpc_channel *ch)
ch                683 drivers/misc/sgi-xp/xpc.h 	s32 refs = atomic_dec_return(&ch->references);
ch                687 drivers/misc/sgi-xp/xpc.h 		xpc_wakeup_channel_mgr(&xpc_partitions[ch->partid]);
ch                 27 drivers/misc/sgi-xp/xpc_channel.c xpc_process_connect(struct xpc_channel *ch, unsigned long *irq_flags)
ch                 31 drivers/misc/sgi-xp/xpc_channel.c 	lockdep_assert_held(&ch->lock);
ch                 33 drivers/misc/sgi-xp/xpc_channel.c 	if (!(ch->flags & XPC_C_OPENREQUEST) ||
ch                 34 drivers/misc/sgi-xp/xpc_channel.c 	    !(ch->flags & XPC_C_ROPENREQUEST)) {
ch                 38 drivers/misc/sgi-xp/xpc_channel.c 	DBUG_ON(!(ch->flags & XPC_C_CONNECTING));
ch                 40 drivers/misc/sgi-xp/xpc_channel.c 	if (!(ch->flags & XPC_C_SETUP)) {
ch                 41 drivers/misc/sgi-xp/xpc_channel.c 		spin_unlock_irqrestore(&ch->lock, *irq_flags);
ch                 42 drivers/misc/sgi-xp/xpc_channel.c 		ret = xpc_arch_ops.setup_msg_structures(ch);
ch                 43 drivers/misc/sgi-xp/xpc_channel.c 		spin_lock_irqsave(&ch->lock, *irq_flags);
ch                 46 drivers/misc/sgi-xp/xpc_channel.c 			XPC_DISCONNECT_CHANNEL(ch, ret, irq_flags);
ch                 48 drivers/misc/sgi-xp/xpc_channel.c 			ch->flags |= XPC_C_SETUP;
ch                 50 drivers/misc/sgi-xp/xpc_channel.c 		if (ch->flags & XPC_C_DISCONNECTING)
ch                 54 drivers/misc/sgi-xp/xpc_channel.c 	if (!(ch->flags & XPC_C_OPENREPLY)) {
ch                 55 drivers/misc/sgi-xp/xpc_channel.c 		ch->flags |= XPC_C_OPENREPLY;
ch                 56 drivers/misc/sgi-xp/xpc_channel.c 		xpc_arch_ops.send_chctl_openreply(ch, irq_flags);
ch                 59 drivers/misc/sgi-xp/xpc_channel.c 	if (!(ch->flags & XPC_C_ROPENREPLY))
ch                 62 drivers/misc/sgi-xp/xpc_channel.c 	if (!(ch->flags & XPC_C_OPENCOMPLETE)) {
ch                 63 drivers/misc/sgi-xp/xpc_channel.c 		ch->flags |= (XPC_C_OPENCOMPLETE | XPC_C_CONNECTED);
ch                 64 drivers/misc/sgi-xp/xpc_channel.c 		xpc_arch_ops.send_chctl_opencomplete(ch, irq_flags);
ch                 67 drivers/misc/sgi-xp/xpc_channel.c 	if (!(ch->flags & XPC_C_ROPENCOMPLETE))
ch                 71 drivers/misc/sgi-xp/xpc_channel.c 		 ch->number, ch->partid);
ch                 73 drivers/misc/sgi-xp/xpc_channel.c 	ch->flags = (XPC_C_CONNECTED | XPC_C_SETUP);	/* clear all else */
ch                 80 drivers/misc/sgi-xp/xpc_channel.c xpc_process_disconnect(struct xpc_channel *ch, unsigned long *irq_flags)
ch                 82 drivers/misc/sgi-xp/xpc_channel.c 	struct xpc_partition *part = &xpc_partitions[ch->partid];
ch                 83 drivers/misc/sgi-xp/xpc_channel.c 	u32 channel_was_connected = (ch->flags & XPC_C_WASCONNECTED);
ch                 85 drivers/misc/sgi-xp/xpc_channel.c 	lockdep_assert_held(&ch->lock);
ch                 87 drivers/misc/sgi-xp/xpc_channel.c 	if (!(ch->flags & XPC_C_DISCONNECTING))
ch                 90 drivers/misc/sgi-xp/xpc_channel.c 	DBUG_ON(!(ch->flags & XPC_C_CLOSEREQUEST));
ch                 94 drivers/misc/sgi-xp/xpc_channel.c 	if (atomic_read(&ch->kthreads_assigned) > 0 ||
ch                 95 drivers/misc/sgi-xp/xpc_channel.c 	    atomic_read(&ch->references) > 0) {
ch                 98 drivers/misc/sgi-xp/xpc_channel.c 	DBUG_ON((ch->flags & XPC_C_CONNECTEDCALLOUT_MADE) &&
ch                 99 drivers/misc/sgi-xp/xpc_channel.c 		!(ch->flags & XPC_C_DISCONNECTINGCALLOUT_MADE));
ch                103 drivers/misc/sgi-xp/xpc_channel.c 		if (xpc_arch_ops.partition_engaged(ch->partid))
ch                110 drivers/misc/sgi-xp/xpc_channel.c 		if (!(ch->flags & XPC_C_RCLOSEREQUEST))
ch                113 drivers/misc/sgi-xp/xpc_channel.c 		if (!(ch->flags & XPC_C_CLOSEREPLY)) {
ch                114 drivers/misc/sgi-xp/xpc_channel.c 			ch->flags |= XPC_C_CLOSEREPLY;
ch                115 drivers/misc/sgi-xp/xpc_channel.c 			xpc_arch_ops.send_chctl_closereply(ch, irq_flags);
ch                118 drivers/misc/sgi-xp/xpc_channel.c 		if (!(ch->flags & XPC_C_RCLOSEREPLY))
ch                123 drivers/misc/sgi-xp/xpc_channel.c 	if (atomic_read(&ch->n_to_notify) > 0) {
ch                125 drivers/misc/sgi-xp/xpc_channel.c 		xpc_arch_ops.notify_senders_of_disconnect(ch);
ch                130 drivers/misc/sgi-xp/xpc_channel.c 	if (ch->flags & XPC_C_DISCONNECTINGCALLOUT_MADE) {
ch                131 drivers/misc/sgi-xp/xpc_channel.c 		spin_unlock_irqrestore(&ch->lock, *irq_flags);
ch                132 drivers/misc/sgi-xp/xpc_channel.c 		xpc_disconnect_callout(ch, xpDisconnected);
ch                133 drivers/misc/sgi-xp/xpc_channel.c 		spin_lock_irqsave(&ch->lock, *irq_flags);
ch                136 drivers/misc/sgi-xp/xpc_channel.c 	DBUG_ON(atomic_read(&ch->n_to_notify) != 0);
ch                139 drivers/misc/sgi-xp/xpc_channel.c 	xpc_arch_ops.teardown_msg_structures(ch);
ch                141 drivers/misc/sgi-xp/xpc_channel.c 	ch->func = NULL;
ch                142 drivers/misc/sgi-xp/xpc_channel.c 	ch->key = NULL;
ch                143 drivers/misc/sgi-xp/xpc_channel.c 	ch->entry_size = 0;
ch                144 drivers/misc/sgi-xp/xpc_channel.c 	ch->local_nentries = 0;
ch                145 drivers/misc/sgi-xp/xpc_channel.c 	ch->remote_nentries = 0;
ch                146 drivers/misc/sgi-xp/xpc_channel.c 	ch->kthreads_assigned_limit = 0;
ch                147 drivers/misc/sgi-xp/xpc_channel.c 	ch->kthreads_idle_limit = 0;
ch                155 drivers/misc/sgi-xp/xpc_channel.c 	ch->flags = (XPC_C_DISCONNECTED | (ch->flags & XPC_C_WDISCONNECT));
ch                161 drivers/misc/sgi-xp/xpc_channel.c 			 "reason=%d\n", ch->number, ch->partid, ch->reason);
ch                164 drivers/misc/sgi-xp/xpc_channel.c 	if (ch->flags & XPC_C_WDISCONNECT) {
ch                166 drivers/misc/sgi-xp/xpc_channel.c 		complete(&ch->wdisconnect_wait);
ch                167 drivers/misc/sgi-xp/xpc_channel.c 	} else if (ch->delayed_chctl_flags) {
ch                171 drivers/misc/sgi-xp/xpc_channel.c 			part->chctl.flags[ch->number] |=
ch                172 drivers/misc/sgi-xp/xpc_channel.c 			    ch->delayed_chctl_flags;
ch                175 drivers/misc/sgi-xp/xpc_channel.c 		ch->delayed_chctl_flags = 0;
ch                189 drivers/misc/sgi-xp/xpc_channel.c 	struct xpc_channel *ch = &part->channels[ch_number];
ch                194 drivers/misc/sgi-xp/xpc_channel.c 	spin_lock_irqsave(&ch->lock, irq_flags);
ch                198 drivers/misc/sgi-xp/xpc_channel.c 	if ((ch->flags & XPC_C_DISCONNECTED) &&
ch                199 drivers/misc/sgi-xp/xpc_channel.c 	    (ch->flags & XPC_C_WDISCONNECT)) {
ch                204 drivers/misc/sgi-xp/xpc_channel.c 		ch->delayed_chctl_flags |= chctl_flags;
ch                212 drivers/misc/sgi-xp/xpc_channel.c 			ch->partid, ch->number);
ch                220 drivers/misc/sgi-xp/xpc_channel.c 		if (ch->flags & XPC_C_RCLOSEREQUEST) {
ch                221 drivers/misc/sgi-xp/xpc_channel.c 			DBUG_ON(!(ch->flags & XPC_C_DISCONNECTING));
ch                222 drivers/misc/sgi-xp/xpc_channel.c 			DBUG_ON(!(ch->flags & XPC_C_CLOSEREQUEST));
ch                223 drivers/misc/sgi-xp/xpc_channel.c 			DBUG_ON(!(ch->flags & XPC_C_CLOSEREPLY));
ch                224 drivers/misc/sgi-xp/xpc_channel.c 			DBUG_ON(ch->flags & XPC_C_RCLOSEREPLY);
ch                228 drivers/misc/sgi-xp/xpc_channel.c 			ch->flags |= XPC_C_RCLOSEREPLY;
ch                231 drivers/misc/sgi-xp/xpc_channel.c 			xpc_process_disconnect(ch, &irq_flags);
ch                232 drivers/misc/sgi-xp/xpc_channel.c 			DBUG_ON(!(ch->flags & XPC_C_DISCONNECTED));
ch                236 drivers/misc/sgi-xp/xpc_channel.c 		if (ch->flags & XPC_C_DISCONNECTED) {
ch                241 drivers/misc/sgi-xp/xpc_channel.c 					DBUG_ON(ch->delayed_chctl_flags != 0);
ch                250 drivers/misc/sgi-xp/xpc_channel.c 			XPC_SET_REASON(ch, 0, 0);
ch                251 drivers/misc/sgi-xp/xpc_channel.c 			ch->flags &= ~XPC_C_DISCONNECTED;
ch                254 drivers/misc/sgi-xp/xpc_channel.c 			ch->flags |= (XPC_C_CONNECTING | XPC_C_ROPENREQUEST);
ch                265 drivers/misc/sgi-xp/xpc_channel.c 		ch->flags |= XPC_C_RCLOSEREQUEST;
ch                267 drivers/misc/sgi-xp/xpc_channel.c 		if (!(ch->flags & XPC_C_DISCONNECTING)) {
ch                274 drivers/misc/sgi-xp/xpc_channel.c 			XPC_DISCONNECT_CHANNEL(ch, reason, &irq_flags);
ch                280 drivers/misc/sgi-xp/xpc_channel.c 		xpc_process_disconnect(ch, &irq_flags);
ch                286 drivers/misc/sgi-xp/xpc_channel.c 			"%d, channel=%d\n", ch->partid, ch->number);
ch                288 drivers/misc/sgi-xp/xpc_channel.c 		if (ch->flags & XPC_C_DISCONNECTED) {
ch                293 drivers/misc/sgi-xp/xpc_channel.c 		DBUG_ON(!(ch->flags & XPC_C_CLOSEREQUEST));
ch                295 drivers/misc/sgi-xp/xpc_channel.c 		if (!(ch->flags & XPC_C_RCLOSEREQUEST)) {
ch                299 drivers/misc/sgi-xp/xpc_channel.c 				DBUG_ON(ch->delayed_chctl_flags != 0);
ch                308 drivers/misc/sgi-xp/xpc_channel.c 		ch->flags |= XPC_C_RCLOSEREPLY;
ch                310 drivers/misc/sgi-xp/xpc_channel.c 		if (ch->flags & XPC_C_CLOSEREPLY) {
ch                312 drivers/misc/sgi-xp/xpc_channel.c 			xpc_process_disconnect(ch, &irq_flags);
ch                321 drivers/misc/sgi-xp/xpc_channel.c 			ch->partid, ch->number);
ch                324 drivers/misc/sgi-xp/xpc_channel.c 		    (ch->flags & XPC_C_ROPENREQUEST)) {
ch                328 drivers/misc/sgi-xp/xpc_channel.c 		if (ch->flags & (XPC_C_DISCONNECTING | XPC_C_WDISCONNECT)) {
ch                329 drivers/misc/sgi-xp/xpc_channel.c 			ch->delayed_chctl_flags |= XPC_CHCTL_OPENREQUEST;
ch                332 drivers/misc/sgi-xp/xpc_channel.c 		DBUG_ON(!(ch->flags & (XPC_C_DISCONNECTED |
ch                334 drivers/misc/sgi-xp/xpc_channel.c 		DBUG_ON(ch->flags & (XPC_C_ROPENREQUEST | XPC_C_ROPENREPLY |
ch                347 drivers/misc/sgi-xp/xpc_channel.c 		ch->flags |= (XPC_C_ROPENREQUEST | XPC_C_CONNECTING);
ch                348 drivers/misc/sgi-xp/xpc_channel.c 		ch->remote_nentries = args->local_nentries;
ch                350 drivers/misc/sgi-xp/xpc_channel.c 		if (ch->flags & XPC_C_OPENREQUEST) {
ch                351 drivers/misc/sgi-xp/xpc_channel.c 			if (args->entry_size != ch->entry_size) {
ch                352 drivers/misc/sgi-xp/xpc_channel.c 				XPC_DISCONNECT_CHANNEL(ch, xpUnequalMsgSizes,
ch                357 drivers/misc/sgi-xp/xpc_channel.c 			ch->entry_size = args->entry_size;
ch                359 drivers/misc/sgi-xp/xpc_channel.c 			XPC_SET_REASON(ch, 0, 0);
ch                360 drivers/misc/sgi-xp/xpc_channel.c 			ch->flags &= ~XPC_C_DISCONNECTED;
ch                365 drivers/misc/sgi-xp/xpc_channel.c 		xpc_process_connect(ch, &irq_flags);
ch                374 drivers/misc/sgi-xp/xpc_channel.c 			args->remote_nentries, ch->partid, ch->number);
ch                376 drivers/misc/sgi-xp/xpc_channel.c 		if (ch->flags & (XPC_C_DISCONNECTING | XPC_C_DISCONNECTED))
ch                379 drivers/misc/sgi-xp/xpc_channel.c 		if (!(ch->flags & XPC_C_OPENREQUEST)) {
ch                380 drivers/misc/sgi-xp/xpc_channel.c 			XPC_DISCONNECT_CHANNEL(ch, xpOpenCloseError,
ch                385 drivers/misc/sgi-xp/xpc_channel.c 		DBUG_ON(!(ch->flags & XPC_C_ROPENREQUEST));
ch                386 drivers/misc/sgi-xp/xpc_channel.c 		DBUG_ON(ch->flags & XPC_C_CONNECTED);
ch                399 drivers/misc/sgi-xp/xpc_channel.c 		ret = xpc_arch_ops.save_remote_msgqueue_pa(ch,
ch                402 drivers/misc/sgi-xp/xpc_channel.c 			XPC_DISCONNECT_CHANNEL(ch, ret, &irq_flags);
ch                405 drivers/misc/sgi-xp/xpc_channel.c 		ch->flags |= XPC_C_ROPENREPLY;
ch                407 drivers/misc/sgi-xp/xpc_channel.c 		if (args->local_nentries < ch->remote_nentries) {
ch                411 drivers/misc/sgi-xp/xpc_channel.c 				args->local_nentries, ch->remote_nentries,
ch                412 drivers/misc/sgi-xp/xpc_channel.c 				ch->partid, ch->number);
ch                414 drivers/misc/sgi-xp/xpc_channel.c 			ch->remote_nentries = args->local_nentries;
ch                416 drivers/misc/sgi-xp/xpc_channel.c 		if (args->remote_nentries < ch->local_nentries) {
ch                420 drivers/misc/sgi-xp/xpc_channel.c 				args->remote_nentries, ch->local_nentries,
ch                421 drivers/misc/sgi-xp/xpc_channel.c 				ch->partid, ch->number);
ch                423 drivers/misc/sgi-xp/xpc_channel.c 			ch->local_nentries = args->remote_nentries;
ch                426 drivers/misc/sgi-xp/xpc_channel.c 		xpc_process_connect(ch, &irq_flags);
ch                432 drivers/misc/sgi-xp/xpc_channel.c 			"partid=%d, channel=%d\n", ch->partid, ch->number);
ch                434 drivers/misc/sgi-xp/xpc_channel.c 		if (ch->flags & (XPC_C_DISCONNECTING | XPC_C_DISCONNECTED))
ch                437 drivers/misc/sgi-xp/xpc_channel.c 		if (!(ch->flags & XPC_C_OPENREQUEST) ||
ch                438 drivers/misc/sgi-xp/xpc_channel.c 		    !(ch->flags & XPC_C_OPENREPLY)) {
ch                439 drivers/misc/sgi-xp/xpc_channel.c 			XPC_DISCONNECT_CHANNEL(ch, xpOpenCloseError,
ch                444 drivers/misc/sgi-xp/xpc_channel.c 		DBUG_ON(!(ch->flags & XPC_C_ROPENREQUEST));
ch                445 drivers/misc/sgi-xp/xpc_channel.c 		DBUG_ON(!(ch->flags & XPC_C_ROPENREPLY));
ch                446 drivers/misc/sgi-xp/xpc_channel.c 		DBUG_ON(!(ch->flags & XPC_C_CONNECTED));
ch                448 drivers/misc/sgi-xp/xpc_channel.c 		ch->flags |= XPC_C_ROPENCOMPLETE;
ch                450 drivers/misc/sgi-xp/xpc_channel.c 		xpc_process_connect(ch, &irq_flags);
ch                455 drivers/misc/sgi-xp/xpc_channel.c 	spin_unlock_irqrestore(&ch->lock, irq_flags);
ch                458 drivers/misc/sgi-xp/xpc_channel.c 		xpc_create_kthreads(ch, 1, 0);
ch                465 drivers/misc/sgi-xp/xpc_channel.c xpc_connect_channel(struct xpc_channel *ch)
ch                468 drivers/misc/sgi-xp/xpc_channel.c 	struct xpc_registration *registration = &xpc_registrations[ch->number];
ch                473 drivers/misc/sgi-xp/xpc_channel.c 	if (!XPC_CHANNEL_REGISTERED(ch->number)) {
ch                478 drivers/misc/sgi-xp/xpc_channel.c 	spin_lock_irqsave(&ch->lock, irq_flags);
ch                480 drivers/misc/sgi-xp/xpc_channel.c 	DBUG_ON(ch->flags & XPC_C_CONNECTED);
ch                481 drivers/misc/sgi-xp/xpc_channel.c 	DBUG_ON(ch->flags & XPC_C_OPENREQUEST);
ch                483 drivers/misc/sgi-xp/xpc_channel.c 	if (ch->flags & XPC_C_DISCONNECTING) {
ch                484 drivers/misc/sgi-xp/xpc_channel.c 		spin_unlock_irqrestore(&ch->lock, irq_flags);
ch                486 drivers/misc/sgi-xp/xpc_channel.c 		return ch->reason;
ch                491 drivers/misc/sgi-xp/xpc_channel.c 	ch->kthreads_assigned_limit = registration->assigned_limit;
ch                492 drivers/misc/sgi-xp/xpc_channel.c 	ch->kthreads_idle_limit = registration->idle_limit;
ch                493 drivers/misc/sgi-xp/xpc_channel.c 	DBUG_ON(atomic_read(&ch->kthreads_assigned) != 0);
ch                494 drivers/misc/sgi-xp/xpc_channel.c 	DBUG_ON(atomic_read(&ch->kthreads_idle) != 0);
ch                495 drivers/misc/sgi-xp/xpc_channel.c 	DBUG_ON(atomic_read(&ch->kthreads_active) != 0);
ch                497 drivers/misc/sgi-xp/xpc_channel.c 	ch->func = registration->func;
ch                499 drivers/misc/sgi-xp/xpc_channel.c 	ch->key = registration->key;
ch                501 drivers/misc/sgi-xp/xpc_channel.c 	ch->local_nentries = registration->nentries;
ch                503 drivers/misc/sgi-xp/xpc_channel.c 	if (ch->flags & XPC_C_ROPENREQUEST) {
ch                504 drivers/misc/sgi-xp/xpc_channel.c 		if (registration->entry_size != ch->entry_size) {
ch                517 drivers/misc/sgi-xp/xpc_channel.c 			XPC_DISCONNECT_CHANNEL(ch, xpUnequalMsgSizes,
ch                519 drivers/misc/sgi-xp/xpc_channel.c 			spin_unlock_irqrestore(&ch->lock, irq_flags);
ch                523 drivers/misc/sgi-xp/xpc_channel.c 		ch->entry_size = registration->entry_size;
ch                525 drivers/misc/sgi-xp/xpc_channel.c 		XPC_SET_REASON(ch, 0, 0);
ch                526 drivers/misc/sgi-xp/xpc_channel.c 		ch->flags &= ~XPC_C_DISCONNECTED;
ch                528 drivers/misc/sgi-xp/xpc_channel.c 		atomic_inc(&xpc_partitions[ch->partid].nchannels_active);
ch                535 drivers/misc/sgi-xp/xpc_channel.c 	ch->flags |= (XPC_C_OPENREQUEST | XPC_C_CONNECTING);
ch                536 drivers/misc/sgi-xp/xpc_channel.c 	xpc_arch_ops.send_chctl_openrequest(ch, &irq_flags);
ch                538 drivers/misc/sgi-xp/xpc_channel.c 	xpc_process_connect(ch, &irq_flags);
ch                540 drivers/misc/sgi-xp/xpc_channel.c 	spin_unlock_irqrestore(&ch->lock, irq_flags);
ch                550 drivers/misc/sgi-xp/xpc_channel.c 	struct xpc_channel *ch;
ch                564 drivers/misc/sgi-xp/xpc_channel.c 		ch = &part->channels[ch_number];
ch                576 drivers/misc/sgi-xp/xpc_channel.c 		ch_flags = ch->flags;	/* need an atomic snapshot of flags */
ch                579 drivers/misc/sgi-xp/xpc_channel.c 			spin_lock_irqsave(&ch->lock, irq_flags);
ch                580 drivers/misc/sgi-xp/xpc_channel.c 			xpc_process_disconnect(ch, &irq_flags);
ch                581 drivers/misc/sgi-xp/xpc_channel.c 			spin_unlock_irqrestore(&ch->lock, irq_flags);
ch                591 drivers/misc/sgi-xp/xpc_channel.c 				(void)xpc_connect_channel(ch);
ch                621 drivers/misc/sgi-xp/xpc_channel.c 	struct xpc_channel *ch;
ch                634 drivers/misc/sgi-xp/xpc_channel.c 		ch = &part->channels[ch_number];
ch                636 drivers/misc/sgi-xp/xpc_channel.c 		xpc_msgqueue_ref(ch);
ch                637 drivers/misc/sgi-xp/xpc_channel.c 		spin_lock_irqsave(&ch->lock, irq_flags);
ch                639 drivers/misc/sgi-xp/xpc_channel.c 		XPC_DISCONNECT_CHANNEL(ch, reason, &irq_flags);
ch                641 drivers/misc/sgi-xp/xpc_channel.c 		spin_unlock_irqrestore(&ch->lock, irq_flags);
ch                642 drivers/misc/sgi-xp/xpc_channel.c 		xpc_msgqueue_deref(ch);
ch                677 drivers/misc/sgi-xp/xpc_channel.c xpc_connected_callout(struct xpc_channel *ch)
ch                681 drivers/misc/sgi-xp/xpc_channel.c 	if (ch->func != NULL) {
ch                683 drivers/misc/sgi-xp/xpc_channel.c 			"partid=%d, channel=%d\n", ch->partid, ch->number);
ch                685 drivers/misc/sgi-xp/xpc_channel.c 		ch->func(xpConnected, ch->partid, ch->number,
ch                686 drivers/misc/sgi-xp/xpc_channel.c 			 (void *)(u64)ch->local_nentries, ch->key);
ch                689 drivers/misc/sgi-xp/xpc_channel.c 			"partid=%d, channel=%d\n", ch->partid, ch->number);
ch                712 drivers/misc/sgi-xp/xpc_channel.c 	struct xpc_channel *ch;
ch                721 drivers/misc/sgi-xp/xpc_channel.c 			ch = &part->channels[ch_number];
ch                722 drivers/misc/sgi-xp/xpc_channel.c 			xpc_msgqueue_ref(ch);
ch                724 drivers/misc/sgi-xp/xpc_channel.c 			spin_lock_irqsave(&ch->lock, irq_flags);
ch                726 drivers/misc/sgi-xp/xpc_channel.c 			if (!(ch->flags & XPC_C_DISCONNECTED)) {
ch                727 drivers/misc/sgi-xp/xpc_channel.c 				ch->flags |= XPC_C_WDISCONNECT;
ch                729 drivers/misc/sgi-xp/xpc_channel.c 				XPC_DISCONNECT_CHANNEL(ch, xpUnregistering,
ch                733 drivers/misc/sgi-xp/xpc_channel.c 			spin_unlock_irqrestore(&ch->lock, irq_flags);
ch                735 drivers/misc/sgi-xp/xpc_channel.c 			xpc_msgqueue_deref(ch);
ch                753 drivers/misc/sgi-xp/xpc_channel.c xpc_disconnect_channel(const int line, struct xpc_channel *ch,
ch                756 drivers/misc/sgi-xp/xpc_channel.c 	u32 channel_was_connected = (ch->flags & XPC_C_CONNECTED);
ch                758 drivers/misc/sgi-xp/xpc_channel.c 	lockdep_assert_held(&ch->lock);
ch                760 drivers/misc/sgi-xp/xpc_channel.c 	if (ch->flags & (XPC_C_DISCONNECTING | XPC_C_DISCONNECTED))
ch                763 drivers/misc/sgi-xp/xpc_channel.c 	DBUG_ON(!(ch->flags & (XPC_C_CONNECTING | XPC_C_CONNECTED)));
ch                766 drivers/misc/sgi-xp/xpc_channel.c 		reason, line, ch->partid, ch->number);
ch                768 drivers/misc/sgi-xp/xpc_channel.c 	XPC_SET_REASON(ch, reason, line);
ch                770 drivers/misc/sgi-xp/xpc_channel.c 	ch->flags |= (XPC_C_CLOSEREQUEST | XPC_C_DISCONNECTING);
ch                772 drivers/misc/sgi-xp/xpc_channel.c 	ch->flags &= ~(XPC_C_OPENREQUEST | XPC_C_OPENREPLY |
ch                776 drivers/misc/sgi-xp/xpc_channel.c 	xpc_arch_ops.send_chctl_closerequest(ch, irq_flags);
ch                779 drivers/misc/sgi-xp/xpc_channel.c 		ch->flags |= XPC_C_WASCONNECTED;
ch                781 drivers/misc/sgi-xp/xpc_channel.c 	spin_unlock_irqrestore(&ch->lock, *irq_flags);
ch                784 drivers/misc/sgi-xp/xpc_channel.c 	if (atomic_read(&ch->kthreads_idle) > 0) {
ch                785 drivers/misc/sgi-xp/xpc_channel.c 		wake_up_all(&ch->idle_wq);
ch                787 drivers/misc/sgi-xp/xpc_channel.c 	} else if ((ch->flags & XPC_C_CONNECTEDCALLOUT_MADE) &&
ch                788 drivers/misc/sgi-xp/xpc_channel.c 		   !(ch->flags & XPC_C_DISCONNECTINGCALLOUT)) {
ch                790 drivers/misc/sgi-xp/xpc_channel.c 		xpc_create_kthreads(ch, 1, 1);
ch                794 drivers/misc/sgi-xp/xpc_channel.c 	if (atomic_read(&ch->n_on_msg_allocate_wq) > 0)
ch                795 drivers/misc/sgi-xp/xpc_channel.c 		wake_up(&ch->msg_allocate_wq);
ch                797 drivers/misc/sgi-xp/xpc_channel.c 	spin_lock_irqsave(&ch->lock, *irq_flags);
ch                801 drivers/misc/sgi-xp/xpc_channel.c xpc_disconnect_callout(struct xpc_channel *ch, enum xp_retval reason)
ch                809 drivers/misc/sgi-xp/xpc_channel.c 	if (ch->func != NULL) {
ch                811 drivers/misc/sgi-xp/xpc_channel.c 			"channel=%d\n", reason, ch->partid, ch->number);
ch                813 drivers/misc/sgi-xp/xpc_channel.c 		ch->func(reason, ch->partid, ch->number, NULL, ch->key);
ch                816 drivers/misc/sgi-xp/xpc_channel.c 			"channel=%d\n", reason, ch->partid, ch->number);
ch                825 drivers/misc/sgi-xp/xpc_channel.c xpc_allocate_msg_wait(struct xpc_channel *ch)
ch                830 drivers/misc/sgi-xp/xpc_channel.c 	if (ch->flags & XPC_C_DISCONNECTING) {
ch                831 drivers/misc/sgi-xp/xpc_channel.c 		DBUG_ON(ch->reason == xpInterrupted);
ch                832 drivers/misc/sgi-xp/xpc_channel.c 		return ch->reason;
ch                835 drivers/misc/sgi-xp/xpc_channel.c 	atomic_inc(&ch->n_on_msg_allocate_wq);
ch                836 drivers/misc/sgi-xp/xpc_channel.c 	prepare_to_wait(&ch->msg_allocate_wq, &wait, TASK_INTERRUPTIBLE);
ch                838 drivers/misc/sgi-xp/xpc_channel.c 	finish_wait(&ch->msg_allocate_wq, &wait);
ch                839 drivers/misc/sgi-xp/xpc_channel.c 	atomic_dec(&ch->n_on_msg_allocate_wq);
ch                841 drivers/misc/sgi-xp/xpc_channel.c 	if (ch->flags & XPC_C_DISCONNECTING) {
ch                842 drivers/misc/sgi-xp/xpc_channel.c 		ret = ch->reason;
ch                843 drivers/misc/sgi-xp/xpc_channel.c 		DBUG_ON(ch->reason == xpInterrupted);
ch                949 drivers/misc/sgi-xp/xpc_channel.c xpc_deliver_payload(struct xpc_channel *ch)
ch                953 drivers/misc/sgi-xp/xpc_channel.c 	payload = xpc_arch_ops.get_deliverable_payload(ch);
ch                961 drivers/misc/sgi-xp/xpc_channel.c 		xpc_msgqueue_ref(ch);
ch                963 drivers/misc/sgi-xp/xpc_channel.c 		atomic_inc(&ch->kthreads_active);
ch                965 drivers/misc/sgi-xp/xpc_channel.c 		if (ch->func != NULL) {
ch                967 drivers/misc/sgi-xp/xpc_channel.c 				"partid=%d channel=%d\n", payload, ch->partid,
ch                968 drivers/misc/sgi-xp/xpc_channel.c 				ch->number);
ch                971 drivers/misc/sgi-xp/xpc_channel.c 			ch->func(xpMsgReceived, ch->partid, ch->number, payload,
ch                972 drivers/misc/sgi-xp/xpc_channel.c 				 ch->key);
ch                975 drivers/misc/sgi-xp/xpc_channel.c 				"partid=%d channel=%d\n", payload, ch->partid,
ch                976 drivers/misc/sgi-xp/xpc_channel.c 				ch->number);
ch                979 drivers/misc/sgi-xp/xpc_channel.c 		atomic_dec(&ch->kthreads_active);
ch               1001 drivers/misc/sgi-xp/xpc_channel.c 	struct xpc_channel *ch;
ch               1006 drivers/misc/sgi-xp/xpc_channel.c 	ch = &part->channels[ch_number];
ch               1007 drivers/misc/sgi-xp/xpc_channel.c 	xpc_arch_ops.received_payload(ch, payload);
ch               1010 drivers/misc/sgi-xp/xpc_channel.c 	xpc_msgqueue_deref(ch);
ch                404 drivers/misc/sgi-xp/xpc_main.c 	struct xpc_channel *ch;
ch                444 drivers/misc/sgi-xp/xpc_main.c 		ch = &part->channels[ch_number];
ch                446 drivers/misc/sgi-xp/xpc_main.c 		ch->partid = partid;
ch                447 drivers/misc/sgi-xp/xpc_main.c 		ch->number = ch_number;
ch                448 drivers/misc/sgi-xp/xpc_main.c 		ch->flags = XPC_C_DISCONNECTED;
ch                450 drivers/misc/sgi-xp/xpc_main.c 		atomic_set(&ch->kthreads_assigned, 0);
ch                451 drivers/misc/sgi-xp/xpc_main.c 		atomic_set(&ch->kthreads_idle, 0);
ch                452 drivers/misc/sgi-xp/xpc_main.c 		atomic_set(&ch->kthreads_active, 0);
ch                454 drivers/misc/sgi-xp/xpc_main.c 		atomic_set(&ch->references, 0);
ch                455 drivers/misc/sgi-xp/xpc_main.c 		atomic_set(&ch->n_to_notify, 0);
ch                457 drivers/misc/sgi-xp/xpc_main.c 		spin_lock_init(&ch->lock);
ch                458 drivers/misc/sgi-xp/xpc_main.c 		init_completion(&ch->wdisconnect_wait);
ch                460 drivers/misc/sgi-xp/xpc_main.c 		atomic_set(&ch->n_on_msg_allocate_wq, 0);
ch                461 drivers/misc/sgi-xp/xpc_main.c 		init_waitqueue_head(&ch->msg_allocate_wq);
ch                462 drivers/misc/sgi-xp/xpc_main.c 		init_waitqueue_head(&ch->idle_wq);
ch                610 drivers/misc/sgi-xp/xpc_main.c xpc_activate_kthreads(struct xpc_channel *ch, int needed)
ch                612 drivers/misc/sgi-xp/xpc_main.c 	int idle = atomic_read(&ch->kthreads_idle);
ch                613 drivers/misc/sgi-xp/xpc_main.c 	int assigned = atomic_read(&ch->kthreads_assigned);
ch                623 drivers/misc/sgi-xp/xpc_main.c 			"channel=%d\n", wakeup, ch->partid, ch->number);
ch                626 drivers/misc/sgi-xp/xpc_main.c 		wake_up_nr(&ch->idle_wq, wakeup);
ch                632 drivers/misc/sgi-xp/xpc_main.c 	if (needed + assigned > ch->kthreads_assigned_limit) {
ch                633 drivers/misc/sgi-xp/xpc_main.c 		needed = ch->kthreads_assigned_limit - assigned;
ch                639 drivers/misc/sgi-xp/xpc_main.c 		needed, ch->partid, ch->number);
ch                641 drivers/misc/sgi-xp/xpc_main.c 	xpc_create_kthreads(ch, needed, 0);
ch                648 drivers/misc/sgi-xp/xpc_main.c xpc_kthread_waitmsgs(struct xpc_partition *part, struct xpc_channel *ch)
ch                656 drivers/misc/sgi-xp/xpc_main.c 		while (n_of_deliverable_payloads(ch) > 0 &&
ch                657 drivers/misc/sgi-xp/xpc_main.c 		       !(ch->flags & XPC_C_DISCONNECTING)) {
ch                658 drivers/misc/sgi-xp/xpc_main.c 			xpc_deliver_payload(ch);
ch                661 drivers/misc/sgi-xp/xpc_main.c 		if (atomic_inc_return(&ch->kthreads_idle) >
ch                662 drivers/misc/sgi-xp/xpc_main.c 		    ch->kthreads_idle_limit) {
ch                664 drivers/misc/sgi-xp/xpc_main.c 			atomic_dec(&ch->kthreads_idle);
ch                671 drivers/misc/sgi-xp/xpc_main.c 		(void)wait_event_interruptible_exclusive(ch->idle_wq,
ch                672 drivers/misc/sgi-xp/xpc_main.c 				(n_of_deliverable_payloads(ch) > 0 ||
ch                673 drivers/misc/sgi-xp/xpc_main.c 				 (ch->flags & XPC_C_DISCONNECTING)));
ch                675 drivers/misc/sgi-xp/xpc_main.c 		atomic_dec(&ch->kthreads_idle);
ch                677 drivers/misc/sgi-xp/xpc_main.c 	} while (!(ch->flags & XPC_C_DISCONNECTING));
ch                686 drivers/misc/sgi-xp/xpc_main.c 	struct xpc_channel *ch;
ch                695 drivers/misc/sgi-xp/xpc_main.c 	ch = &part->channels[ch_number];
ch                697 drivers/misc/sgi-xp/xpc_main.c 	if (!(ch->flags & XPC_C_DISCONNECTING)) {
ch                701 drivers/misc/sgi-xp/xpc_main.c 		spin_lock_irqsave(&ch->lock, irq_flags);
ch                702 drivers/misc/sgi-xp/xpc_main.c 		if (!(ch->flags & XPC_C_CONNECTEDCALLOUT)) {
ch                703 drivers/misc/sgi-xp/xpc_main.c 			ch->flags |= XPC_C_CONNECTEDCALLOUT;
ch                704 drivers/misc/sgi-xp/xpc_main.c 			spin_unlock_irqrestore(&ch->lock, irq_flags);
ch                706 drivers/misc/sgi-xp/xpc_main.c 			xpc_connected_callout(ch);
ch                708 drivers/misc/sgi-xp/xpc_main.c 			spin_lock_irqsave(&ch->lock, irq_flags);
ch                709 drivers/misc/sgi-xp/xpc_main.c 			ch->flags |= XPC_C_CONNECTEDCALLOUT_MADE;
ch                710 drivers/misc/sgi-xp/xpc_main.c 			spin_unlock_irqrestore(&ch->lock, irq_flags);
ch                719 drivers/misc/sgi-xp/xpc_main.c 			n_needed = n_of_deliverable_payloads(ch) - 1;
ch                720 drivers/misc/sgi-xp/xpc_main.c 			if (n_needed > 0 && !(ch->flags & XPC_C_DISCONNECTING))
ch                721 drivers/misc/sgi-xp/xpc_main.c 				xpc_activate_kthreads(ch, n_needed);
ch                724 drivers/misc/sgi-xp/xpc_main.c 			spin_unlock_irqrestore(&ch->lock, irq_flags);
ch                727 drivers/misc/sgi-xp/xpc_main.c 		xpc_kthread_waitmsgs(part, ch);
ch                732 drivers/misc/sgi-xp/xpc_main.c 	spin_lock_irqsave(&ch->lock, irq_flags);
ch                733 drivers/misc/sgi-xp/xpc_main.c 	if ((ch->flags & XPC_C_CONNECTEDCALLOUT_MADE) &&
ch                734 drivers/misc/sgi-xp/xpc_main.c 	    !(ch->flags & XPC_C_DISCONNECTINGCALLOUT)) {
ch                735 drivers/misc/sgi-xp/xpc_main.c 		ch->flags |= XPC_C_DISCONNECTINGCALLOUT;
ch                736 drivers/misc/sgi-xp/xpc_main.c 		spin_unlock_irqrestore(&ch->lock, irq_flags);
ch                738 drivers/misc/sgi-xp/xpc_main.c 		xpc_disconnect_callout(ch, xpDisconnecting);
ch                740 drivers/misc/sgi-xp/xpc_main.c 		spin_lock_irqsave(&ch->lock, irq_flags);
ch                741 drivers/misc/sgi-xp/xpc_main.c 		ch->flags |= XPC_C_DISCONNECTINGCALLOUT_MADE;
ch                743 drivers/misc/sgi-xp/xpc_main.c 	spin_unlock_irqrestore(&ch->lock, irq_flags);
ch                745 drivers/misc/sgi-xp/xpc_main.c 	if (atomic_dec_return(&ch->kthreads_assigned) == 0 &&
ch                750 drivers/misc/sgi-xp/xpc_main.c 	xpc_msgqueue_deref(ch);
ch                772 drivers/misc/sgi-xp/xpc_main.c xpc_create_kthreads(struct xpc_channel *ch, int needed,
ch                776 drivers/misc/sgi-xp/xpc_main.c 	u64 args = XPC_PACK_ARGS(ch->partid, ch->number);
ch                777 drivers/misc/sgi-xp/xpc_main.c 	struct xpc_partition *part = &xpc_partitions[ch->partid];
ch                790 drivers/misc/sgi-xp/xpc_main.c 			if (!atomic_inc_not_zero(&ch->kthreads_assigned)) {
ch                792 drivers/misc/sgi-xp/xpc_main.c 				BUG_ON(!(ch->flags &
ch                797 drivers/misc/sgi-xp/xpc_main.c 		} else if (ch->flags & XPC_C_DISCONNECTING) {
ch                800 drivers/misc/sgi-xp/xpc_main.c 		} else if (atomic_inc_return(&ch->kthreads_assigned) == 1 &&
ch                805 drivers/misc/sgi-xp/xpc_main.c 		xpc_msgqueue_ref(ch);
ch                808 drivers/misc/sgi-xp/xpc_main.c 				      "xpc%02dc%d", ch->partid, ch->number);
ch                822 drivers/misc/sgi-xp/xpc_main.c 			if (atomic_dec_return(&ch->kthreads_assigned) == 0 &&
ch                826 drivers/misc/sgi-xp/xpc_main.c 			xpc_msgqueue_deref(ch);
ch                829 drivers/misc/sgi-xp/xpc_main.c 			if (atomic_read(&ch->kthreads_assigned) <
ch                830 drivers/misc/sgi-xp/xpc_main.c 			    ch->kthreads_idle_limit) {
ch                836 drivers/misc/sgi-xp/xpc_main.c 				spin_lock_irqsave(&ch->lock, irq_flags);
ch                837 drivers/misc/sgi-xp/xpc_main.c 				XPC_DISCONNECT_CHANNEL(ch, xpLackOfResources,
ch                839 drivers/misc/sgi-xp/xpc_main.c 				spin_unlock_irqrestore(&ch->lock, irq_flags);
ch                852 drivers/misc/sgi-xp/xpc_main.c 	struct xpc_channel *ch;
ch                862 drivers/misc/sgi-xp/xpc_main.c 		ch = &part->channels[ch_number];
ch                864 drivers/misc/sgi-xp/xpc_main.c 		if (!(ch->flags & XPC_C_WDISCONNECT)) {
ch                869 drivers/misc/sgi-xp/xpc_main.c 		wait_for_completion(&ch->wdisconnect_wait);
ch                871 drivers/misc/sgi-xp/xpc_main.c 		spin_lock_irqsave(&ch->lock, irq_flags);
ch                872 drivers/misc/sgi-xp/xpc_main.c 		DBUG_ON(!(ch->flags & XPC_C_DISCONNECTED));
ch                875 drivers/misc/sgi-xp/xpc_main.c 		if (ch->delayed_chctl_flags) {
ch                878 drivers/misc/sgi-xp/xpc_main.c 				part->chctl.flags[ch->number] |=
ch                879 drivers/misc/sgi-xp/xpc_main.c 				    ch->delayed_chctl_flags;
ch                883 drivers/misc/sgi-xp/xpc_main.c 			ch->delayed_chctl_flags = 0;
ch                886 drivers/misc/sgi-xp/xpc_main.c 		ch->flags &= ~XPC_C_WDISCONNECT;
ch                887 drivers/misc/sgi-xp/xpc_main.c 		spin_unlock_irqrestore(&ch->lock, irq_flags);
ch                743 drivers/misc/sgi-xp/xpc_uv.c xpc_send_activate_IRQ_ch_uv(struct xpc_channel *ch, unsigned long *irq_flags,
ch                746 drivers/misc/sgi-xp/xpc_uv.c 	struct xpc_partition *part = &xpc_partitions[ch->partid];
ch                752 drivers/misc/sgi-xp/xpc_uv.c 			spin_unlock_irqrestore(&ch->lock, *irq_flags);
ch                757 drivers/misc/sgi-xp/xpc_uv.c 			spin_lock_irqsave(&ch->lock, *irq_flags);
ch               1086 drivers/misc/sgi-xp/xpc_uv.c xpc_allocate_send_msg_slot_uv(struct xpc_channel *ch)
ch               1088 drivers/misc/sgi-xp/xpc_uv.c 	struct xpc_channel_uv *ch_uv = &ch->sn.uv;
ch               1095 drivers/misc/sgi-xp/xpc_uv.c 	for (nentries = ch->local_nentries; nentries > 0; nentries--) {
ch               1109 drivers/misc/sgi-xp/xpc_uv.c 		spin_lock_irqsave(&ch->lock, irq_flags);
ch               1110 drivers/misc/sgi-xp/xpc_uv.c 		if (nentries < ch->local_nentries)
ch               1111 drivers/misc/sgi-xp/xpc_uv.c 			ch->local_nentries = nentries;
ch               1112 drivers/misc/sgi-xp/xpc_uv.c 		spin_unlock_irqrestore(&ch->lock, irq_flags);
ch               1120 drivers/misc/sgi-xp/xpc_uv.c xpc_allocate_recv_msg_slot_uv(struct xpc_channel *ch)
ch               1122 drivers/misc/sgi-xp/xpc_uv.c 	struct xpc_channel_uv *ch_uv = &ch->sn.uv;
ch               1129 drivers/misc/sgi-xp/xpc_uv.c 	for (nentries = ch->remote_nentries; nentries > 0; nentries--) {
ch               1130 drivers/misc/sgi-xp/xpc_uv.c 		nbytes = nentries * ch->entry_size;
ch               1137 drivers/misc/sgi-xp/xpc_uv.c 			    entry * ch->entry_size;
ch               1142 drivers/misc/sgi-xp/xpc_uv.c 		spin_lock_irqsave(&ch->lock, irq_flags);
ch               1143 drivers/misc/sgi-xp/xpc_uv.c 		if (nentries < ch->remote_nentries)
ch               1144 drivers/misc/sgi-xp/xpc_uv.c 			ch->remote_nentries = nentries;
ch               1145 drivers/misc/sgi-xp/xpc_uv.c 		spin_unlock_irqrestore(&ch->lock, irq_flags);
ch               1156 drivers/misc/sgi-xp/xpc_uv.c xpc_setup_msg_structures_uv(struct xpc_channel *ch)
ch               1159 drivers/misc/sgi-xp/xpc_uv.c 	struct xpc_channel_uv *ch_uv = &ch->sn.uv;
ch               1161 drivers/misc/sgi-xp/xpc_uv.c 	DBUG_ON(ch->flags & XPC_C_SETUP);
ch               1169 drivers/misc/sgi-xp/xpc_uv.c 	ret = xpc_allocate_send_msg_slot_uv(ch);
ch               1172 drivers/misc/sgi-xp/xpc_uv.c 		ret = xpc_allocate_recv_msg_slot_uv(ch);
ch               1186 drivers/misc/sgi-xp/xpc_uv.c xpc_teardown_msg_structures_uv(struct xpc_channel *ch)
ch               1188 drivers/misc/sgi-xp/xpc_uv.c 	struct xpc_channel_uv *ch_uv = &ch->sn.uv;
ch               1190 drivers/misc/sgi-xp/xpc_uv.c 	lockdep_assert_held(&ch->lock);
ch               1195 drivers/misc/sgi-xp/xpc_uv.c 	if (ch->flags & XPC_C_SETUP) {
ch               1204 drivers/misc/sgi-xp/xpc_uv.c xpc_send_chctl_closerequest_uv(struct xpc_channel *ch, unsigned long *irq_flags)
ch               1208 drivers/misc/sgi-xp/xpc_uv.c 	msg.ch_number = ch->number;
ch               1209 drivers/misc/sgi-xp/xpc_uv.c 	msg.reason = ch->reason;
ch               1210 drivers/misc/sgi-xp/xpc_uv.c 	xpc_send_activate_IRQ_ch_uv(ch, irq_flags, &msg, sizeof(msg),
ch               1215 drivers/misc/sgi-xp/xpc_uv.c xpc_send_chctl_closereply_uv(struct xpc_channel *ch, unsigned long *irq_flags)
ch               1219 drivers/misc/sgi-xp/xpc_uv.c 	msg.ch_number = ch->number;
ch               1220 drivers/misc/sgi-xp/xpc_uv.c 	xpc_send_activate_IRQ_ch_uv(ch, irq_flags, &msg, sizeof(msg),
ch               1225 drivers/misc/sgi-xp/xpc_uv.c xpc_send_chctl_openrequest_uv(struct xpc_channel *ch, unsigned long *irq_flags)
ch               1229 drivers/misc/sgi-xp/xpc_uv.c 	msg.ch_number = ch->number;
ch               1230 drivers/misc/sgi-xp/xpc_uv.c 	msg.entry_size = ch->entry_size;
ch               1231 drivers/misc/sgi-xp/xpc_uv.c 	msg.local_nentries = ch->local_nentries;
ch               1232 drivers/misc/sgi-xp/xpc_uv.c 	xpc_send_activate_IRQ_ch_uv(ch, irq_flags, &msg, sizeof(msg),
ch               1237 drivers/misc/sgi-xp/xpc_uv.c xpc_send_chctl_openreply_uv(struct xpc_channel *ch, unsigned long *irq_flags)
ch               1241 drivers/misc/sgi-xp/xpc_uv.c 	msg.ch_number = ch->number;
ch               1242 drivers/misc/sgi-xp/xpc_uv.c 	msg.local_nentries = ch->local_nentries;
ch               1243 drivers/misc/sgi-xp/xpc_uv.c 	msg.remote_nentries = ch->remote_nentries;
ch               1245 drivers/misc/sgi-xp/xpc_uv.c 	xpc_send_activate_IRQ_ch_uv(ch, irq_flags, &msg, sizeof(msg),
ch               1250 drivers/misc/sgi-xp/xpc_uv.c xpc_send_chctl_opencomplete_uv(struct xpc_channel *ch, unsigned long *irq_flags)
ch               1254 drivers/misc/sgi-xp/xpc_uv.c 	msg.ch_number = ch->number;
ch               1255 drivers/misc/sgi-xp/xpc_uv.c 	xpc_send_activate_IRQ_ch_uv(ch, irq_flags, &msg, sizeof(msg),
ch               1272 drivers/misc/sgi-xp/xpc_uv.c xpc_save_remote_msgqueue_pa_uv(struct xpc_channel *ch,
ch               1275 drivers/misc/sgi-xp/xpc_uv.c 	struct xpc_channel_uv *ch_uv = &ch->sn.uv;
ch               1332 drivers/misc/sgi-xp/xpc_uv.c xpc_allocate_msg_slot_uv(struct xpc_channel *ch, u32 flags,
ch               1340 drivers/misc/sgi-xp/xpc_uv.c 		entry = xpc_get_fifo_entry_uv(&ch->sn.uv.msg_slot_free_list);
ch               1347 drivers/misc/sgi-xp/xpc_uv.c 		ret = xpc_allocate_msg_wait(ch);
ch               1358 drivers/misc/sgi-xp/xpc_uv.c xpc_free_msg_slot_uv(struct xpc_channel *ch,
ch               1361 drivers/misc/sgi-xp/xpc_uv.c 	xpc_put_fifo_entry_uv(&ch->sn.uv.msg_slot_free_list, &msg_slot->next);
ch               1364 drivers/misc/sgi-xp/xpc_uv.c 	if (atomic_read(&ch->n_on_msg_allocate_wq) > 0)
ch               1365 drivers/misc/sgi-xp/xpc_uv.c 		wake_up(&ch->msg_allocate_wq);
ch               1369 drivers/misc/sgi-xp/xpc_uv.c xpc_notify_sender_uv(struct xpc_channel *ch,
ch               1377 drivers/misc/sgi-xp/xpc_uv.c 		atomic_dec(&ch->n_to_notify);
ch               1381 drivers/misc/sgi-xp/xpc_uv.c 			msg_slot->msg_slot_number, ch->partid, ch->number);
ch               1383 drivers/misc/sgi-xp/xpc_uv.c 		func(reason, ch->partid, ch->number, msg_slot->key);
ch               1387 drivers/misc/sgi-xp/xpc_uv.c 			msg_slot->msg_slot_number, ch->partid, ch->number);
ch               1392 drivers/misc/sgi-xp/xpc_uv.c xpc_handle_notify_mq_ack_uv(struct xpc_channel *ch,
ch               1396 drivers/misc/sgi-xp/xpc_uv.c 	int entry = msg->hdr.msg_slot_number % ch->local_nentries;
ch               1398 drivers/misc/sgi-xp/xpc_uv.c 	msg_slot = &ch->sn.uv.send_msg_slots[entry];
ch               1401 drivers/misc/sgi-xp/xpc_uv.c 	msg_slot->msg_slot_number += ch->local_nentries;
ch               1404 drivers/misc/sgi-xp/xpc_uv.c 		xpc_notify_sender_uv(ch, msg_slot, xpMsgDelivered);
ch               1406 drivers/misc/sgi-xp/xpc_uv.c 	xpc_free_msg_slot_uv(ch, msg_slot);
ch               1414 drivers/misc/sgi-xp/xpc_uv.c 	struct xpc_channel *ch;
ch               1437 drivers/misc/sgi-xp/xpc_uv.c 	ch = &part->channels[ch_number];
ch               1438 drivers/misc/sgi-xp/xpc_uv.c 	xpc_msgqueue_ref(ch);
ch               1440 drivers/misc/sgi-xp/xpc_uv.c 	if (!(ch->flags & XPC_C_CONNECTED)) {
ch               1441 drivers/misc/sgi-xp/xpc_uv.c 		xpc_msgqueue_deref(ch);
ch               1447 drivers/misc/sgi-xp/xpc_uv.c 		xpc_handle_notify_mq_ack_uv(ch, msg);
ch               1448 drivers/misc/sgi-xp/xpc_uv.c 		xpc_msgqueue_deref(ch);
ch               1453 drivers/misc/sgi-xp/xpc_uv.c 	ch_uv = &ch->sn.uv;
ch               1456 drivers/misc/sgi-xp/xpc_uv.c 	    (msg->hdr.msg_slot_number % ch->remote_nentries) * ch->entry_size;
ch               1464 drivers/misc/sgi-xp/xpc_uv.c 	if (ch->flags & XPC_C_CONNECTEDCALLOUT_MADE) {
ch               1470 drivers/misc/sgi-xp/xpc_uv.c 		if (atomic_read(&ch->kthreads_idle) > 0)
ch               1471 drivers/misc/sgi-xp/xpc_uv.c 			wake_up_nr(&ch->idle_wq, 1);
ch               1473 drivers/misc/sgi-xp/xpc_uv.c 			xpc_send_chctl_local_msgrequest_uv(part, ch->number);
ch               1475 drivers/misc/sgi-xp/xpc_uv.c 	xpc_msgqueue_deref(ch);
ch               1508 drivers/misc/sgi-xp/xpc_uv.c xpc_n_of_deliverable_payloads_uv(struct xpc_channel *ch)
ch               1510 drivers/misc/sgi-xp/xpc_uv.c 	return xpc_n_of_fifo_entries_uv(&ch->sn.uv.recv_msg_list);
ch               1516 drivers/misc/sgi-xp/xpc_uv.c 	struct xpc_channel *ch = &part->channels[ch_number];
ch               1519 drivers/misc/sgi-xp/xpc_uv.c 	xpc_msgqueue_ref(ch);
ch               1521 drivers/misc/sgi-xp/xpc_uv.c 	ndeliverable_payloads = xpc_n_of_deliverable_payloads_uv(ch);
ch               1524 drivers/misc/sgi-xp/xpc_uv.c 	    (ch->flags & XPC_C_CONNECTED) &&
ch               1525 drivers/misc/sgi-xp/xpc_uv.c 	    (ch->flags & XPC_C_CONNECTEDCALLOUT_MADE)) {
ch               1527 drivers/misc/sgi-xp/xpc_uv.c 		xpc_activate_kthreads(ch, ndeliverable_payloads);
ch               1530 drivers/misc/sgi-xp/xpc_uv.c 	xpc_msgqueue_deref(ch);
ch               1534 drivers/misc/sgi-xp/xpc_uv.c xpc_send_payload_uv(struct xpc_channel *ch, u32 flags, void *payload,
ch               1547 drivers/misc/sgi-xp/xpc_uv.c 	if (msg_size > ch->entry_size)
ch               1550 drivers/misc/sgi-xp/xpc_uv.c 	xpc_msgqueue_ref(ch);
ch               1552 drivers/misc/sgi-xp/xpc_uv.c 	if (ch->flags & XPC_C_DISCONNECTING) {
ch               1553 drivers/misc/sgi-xp/xpc_uv.c 		ret = ch->reason;
ch               1556 drivers/misc/sgi-xp/xpc_uv.c 	if (!(ch->flags & XPC_C_CONNECTED)) {
ch               1561 drivers/misc/sgi-xp/xpc_uv.c 	ret = xpc_allocate_msg_slot_uv(ch, flags, &msg_slot);
ch               1566 drivers/misc/sgi-xp/xpc_uv.c 		atomic_inc(&ch->n_to_notify);
ch               1572 drivers/misc/sgi-xp/xpc_uv.c 		if (ch->flags & XPC_C_DISCONNECTING) {
ch               1573 drivers/misc/sgi-xp/xpc_uv.c 			ret = ch->reason;
ch               1580 drivers/misc/sgi-xp/xpc_uv.c 	msg->hdr.ch_number = ch->number;
ch               1585 drivers/misc/sgi-xp/xpc_uv.c 	ret = xpc_send_gru_msg(ch->sn.uv.cached_notify_gru_mq_desc, msg,
ch               1590 drivers/misc/sgi-xp/xpc_uv.c 	XPC_DEACTIVATE_PARTITION(&xpc_partitions[ch->partid], ret);
ch               1609 drivers/misc/sgi-xp/xpc_uv.c 		atomic_dec(&ch->n_to_notify);
ch               1611 drivers/misc/sgi-xp/xpc_uv.c 	xpc_free_msg_slot_uv(ch, msg_slot);
ch               1613 drivers/misc/sgi-xp/xpc_uv.c 	xpc_msgqueue_deref(ch);
ch               1625 drivers/misc/sgi-xp/xpc_uv.c xpc_notify_senders_of_disconnect_uv(struct xpc_channel *ch)
ch               1630 drivers/misc/sgi-xp/xpc_uv.c 	DBUG_ON(!(ch->flags & XPC_C_DISCONNECTING));
ch               1632 drivers/misc/sgi-xp/xpc_uv.c 	for (entry = 0; entry < ch->local_nentries; entry++) {
ch               1634 drivers/misc/sgi-xp/xpc_uv.c 		if (atomic_read(&ch->n_to_notify) == 0)
ch               1637 drivers/misc/sgi-xp/xpc_uv.c 		msg_slot = &ch->sn.uv.send_msg_slots[entry];
ch               1639 drivers/misc/sgi-xp/xpc_uv.c 			xpc_notify_sender_uv(ch, msg_slot, ch->reason);
ch               1647 drivers/misc/sgi-xp/xpc_uv.c xpc_get_deliverable_payload_uv(struct xpc_channel *ch)
ch               1653 drivers/misc/sgi-xp/xpc_uv.c 	if (!(ch->flags & XPC_C_DISCONNECTING)) {
ch               1654 drivers/misc/sgi-xp/xpc_uv.c 		entry = xpc_get_fifo_entry_uv(&ch->sn.uv.recv_msg_list);
ch               1665 drivers/misc/sgi-xp/xpc_uv.c xpc_received_payload_uv(struct xpc_channel *ch, void *payload)
ch               1677 drivers/misc/sgi-xp/xpc_uv.c 	ret = xpc_send_gru_msg(ch->sn.uv.cached_notify_gru_mq_desc, msg,
ch               1680 drivers/misc/sgi-xp/xpc_uv.c 		XPC_DEACTIVATE_PARTITION(&xpc_partitions[ch->partid], ret);
ch                373 drivers/mmc/core/sdio_uart.c 	unsigned int ch, flag;
ch                377 drivers/mmc/core/sdio_uart.c 		ch = sdio_in(port, UART_RX);
ch                409 drivers/mmc/core/sdio_uart.c 			tty_insert_flip_char(&port->port, ch, flag);
ch                812 drivers/mmc/core/sdio_uart.c static void sdio_uart_send_xchar(struct tty_struct *tty, char ch)
ch                816 drivers/mmc/core/sdio_uart.c 	port->x_char = ch;
ch                817 drivers/mmc/core/sdio_uart.c 	if (ch && !(port->ier & UART_IER_THRI)) {
ch                769 drivers/mmc/host/dw_mmc.c 	dmaengine_terminate_async(host->dms->ch);
ch                800 drivers/mmc/host/dw_mmc.c 	ret = dmaengine_slave_config(host->dms->ch, &cfg);
ch                806 drivers/mmc/host/dw_mmc.c 	desc = dmaengine_prep_slave_sg(host->dms->ch, sgl,
ch                824 drivers/mmc/host/dw_mmc.c 	dma_async_issue_pending(host->dms->ch);
ch                836 drivers/mmc/host/dw_mmc.c 	host->dms->ch = dma_request_slave_channel(host->dev, "rx-tx");
ch                837 drivers/mmc/host/dw_mmc.c 	if (!host->dms->ch) {
ch                850 drivers/mmc/host/dw_mmc.c 		if (host->dms->ch) {
ch                851 drivers/mmc/host/dw_mmc.c 			dma_release_channel(host->dms->ch);
ch                852 drivers/mmc/host/dw_mmc.c 			host->dms->ch = NULL;
ch                 52 drivers/mmc/host/dw_mmc.h 	struct dma_chan *ch;
ch                576 drivers/mtd/nand/raw/cafe_nand.c 	u8 ah, al, bh, bl, ch, cl;
ch                583 drivers/mtd/nand/raw/cafe_nand.c 	ch = gf64_mul(ah ^ al, bh ^ bl) ^ gf64_mul(al, bl);
ch                586 drivers/mtd/nand/raw/cafe_nand.c 	return (ch << 6) ^ cl;
ch                 50 drivers/mtd/nand/raw/txx9ndfmc.c #define TXX9_NDFMCR_CS(ch)	((ch) << 2)
ch                298 drivers/net/can/rcar/rcar_canfd.c #define RCANFD_CFCC(ch, idx)		(0x0118 + (0x0c * (ch)) + \
ch                301 drivers/net/can/rcar/rcar_canfd.c #define RCANFD_CFSTS(ch, idx)		(0x0178 + (0x0c * (ch)) + \
ch                304 drivers/net/can/rcar/rcar_canfd.c #define RCANFD_CFPCTR(ch, idx)		(0x01d8 + (0x0c * (ch)) + \
ch                393 drivers/net/can/rcar/rcar_canfd.c #define RCANFD_C_CFID(ch, idx)		(RCANFD_C_CFOFFSET + (0x30 * (ch)) + \
ch                395 drivers/net/can/rcar/rcar_canfd.c #define RCANFD_C_CFPTR(ch, idx)		(RCANFD_C_CFOFFSET + 0x04 + \
ch                396 drivers/net/can/rcar/rcar_canfd.c 					 (0x30 * (ch)) + (0x10 * (idx)))
ch                397 drivers/net/can/rcar/rcar_canfd.c #define RCANFD_C_CFDF(ch, idx, df)	(RCANFD_C_CFOFFSET + 0x08 + \
ch                398 drivers/net/can/rcar/rcar_canfd.c 					 (0x30 * (ch)) + (0x10 * (idx)) + \
ch                442 drivers/net/can/rcar/rcar_canfd.c #define RCANFD_F_CFID(ch, idx)		(RCANFD_F_CFOFFSET + (0x180 * (ch)) + \
ch                444 drivers/net/can/rcar/rcar_canfd.c #define RCANFD_F_CFPTR(ch, idx)		(RCANFD_F_CFOFFSET + 0x04 + \
ch                445 drivers/net/can/rcar/rcar_canfd.c 					 (0x180 * (ch)) + (0x80 * (idx)))
ch                446 drivers/net/can/rcar/rcar_canfd.c #define RCANFD_F_CFFDCSTS(ch, idx)	(RCANFD_F_CFOFFSET + 0x08 + \
ch                447 drivers/net/can/rcar/rcar_canfd.c 					 (0x180 * (ch)) + (0x80 * (idx)))
ch                448 drivers/net/can/rcar/rcar_canfd.c #define RCANFD_F_CFDF(ch, idx, df)	(RCANFD_F_CFOFFSET + 0x0c + \
ch                449 drivers/net/can/rcar/rcar_canfd.c 					 (0x180 * (ch)) + (0x80 * (idx)) + \
ch                508 drivers/net/can/rcar/rcar_canfd.c 	struct rcar_canfd_channel *ch[RCANFD_NUM_CHANNELS];
ch                625 drivers/net/can/rcar/rcar_canfd.c 	u32 sts, ch;
ch                663 drivers/net/can/rcar/rcar_canfd.c 	for_each_set_bit(ch, &gpriv->channels_mask, RCANFD_NUM_CHANNELS) {
ch                665 drivers/net/can/rcar/rcar_canfd.c 				     RCANFD_CCTR(ch), RCANFD_CCTR_CSLPR);
ch                667 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_update_bit(gpriv->base, RCANFD_CCTR(ch),
ch                672 drivers/net/can/rcar/rcar_canfd.c 		err = readl_poll_timeout((gpriv->base + RCANFD_CSTS(ch)), sts,
ch                677 drivers/net/can/rcar/rcar_canfd.c 				"channel %u reset failed\n", ch);
ch                686 drivers/net/can/rcar/rcar_canfd.c 	u32 cfg, ch;
ch                704 drivers/net/can/rcar/rcar_canfd.c 	for_each_set_bit(ch, &gpriv->channels_mask, RCANFD_NUM_CHANNELS) {
ch                705 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_set_bit(gpriv->base, RCANFD_CCTR(ch),
ch                707 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_update_bit(gpriv->base, RCANFD_CCTR(ch),
ch                714 drivers/net/can/rcar/rcar_canfd.c 					   u32 ch)
ch                718 drivers/net/can/rcar/rcar_canfd.c 	u32 ridx = ch + RCANFD_RFFIFO_IDX;
ch                720 drivers/net/can/rcar/rcar_canfd.c 	if (ch == 0) {
ch                736 drivers/net/can/rcar/rcar_canfd.c 			   RCANFD_GAFLCFG_SETRNC(ch, num_rules));
ch                757 drivers/net/can/rcar/rcar_canfd.c static void rcar_canfd_configure_rx(struct rcar_canfd_global *gpriv, u32 ch)
ch                764 drivers/net/can/rcar/rcar_canfd.c 	u32 ridx = ch + RCANFD_RFFIFO_IDX;
ch                777 drivers/net/can/rcar/rcar_canfd.c static void rcar_canfd_configure_tx(struct rcar_canfd_global *gpriv, u32 ch)
ch                799 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_write(gpriv->base, RCANFD_CFCC(ch, RCANFD_CFFIFO_IDX), cfg);
ch                804 drivers/net/can/rcar/rcar_canfd.c 				 RCANFD_F_CFFDCSTS(ch, RCANFD_CFFIFO_IDX), 0);
ch                835 drivers/net/can/rcar/rcar_canfd.c 	u32 ctr, ch = priv->channel;
ch                838 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_write(priv->base, RCANFD_CERFL(ch), 0);
ch                846 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_set_bit(priv->base, RCANFD_CCTR(ch), ctr);
ch                852 drivers/net/can/rcar/rcar_canfd.c 	u32 ctr, ch = priv->channel;
ch                859 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_clear_bit(priv->base, RCANFD_CCTR(ch), ctr);
ch                862 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_write(priv->base, RCANFD_CERFL(ch), 0);
ch                870 drivers/net/can/rcar/rcar_canfd.c 	u32 ch = priv->channel;
ch                872 drivers/net/can/rcar/rcar_canfd.c 	u32 ridx = ch + RCANFD_RFFIFO_IDX;
ch                875 drivers/net/can/rcar/rcar_canfd.c 	if ((gerfl & RCANFD_GERFL_EEF0) && (ch == 0)) {
ch                879 drivers/net/can/rcar/rcar_canfd.c 	if ((gerfl & RCANFD_GERFL_EEF1) && (ch == 1)) {
ch                885 drivers/net/can/rcar/rcar_canfd.c 				      RCANFD_CFSTS(ch, RCANFD_CFFIFO_IDX));
ch                890 drivers/net/can/rcar/rcar_canfd.c 					 RCANFD_CFSTS(ch, RCANFD_CFFIFO_IDX),
ch                923 drivers/net/can/rcar/rcar_canfd.c 	u32 ch = priv->channel;
ch               1025 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_write(priv->base, RCANFD_CERFL(ch),
ch               1038 drivers/net/can/rcar/rcar_canfd.c 	u32 ch = priv->channel;
ch               1052 drivers/net/can/rcar/rcar_canfd.c 				      RCANFD_CFSTS(ch, RCANFD_CFFIFO_IDX));
ch               1068 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_write(priv->base, RCANFD_CFSTS(ch, RCANFD_CFFIFO_IDX),
ch               1079 drivers/net/can/rcar/rcar_canfd.c 	u32 ch, ridx;
ch               1084 drivers/net/can/rcar/rcar_canfd.c 	for_each_set_bit(ch, &gpriv->channels_mask, RCANFD_NUM_CHANNELS) {
ch               1085 drivers/net/can/rcar/rcar_canfd.c 		priv = gpriv->ch[ch];
ch               1087 drivers/net/can/rcar/rcar_canfd.c 		ridx = ch + RCANFD_RFFIFO_IDX;
ch               1147 drivers/net/can/rcar/rcar_canfd.c 	u32 sts, ch, cerfl;
ch               1151 drivers/net/can/rcar/rcar_canfd.c 	for_each_set_bit(ch, &gpriv->channels_mask, RCANFD_NUM_CHANNELS) {
ch               1152 drivers/net/can/rcar/rcar_canfd.c 		priv = gpriv->ch[ch];
ch               1156 drivers/net/can/rcar/rcar_canfd.c 		cerfl = rcar_canfd_read(priv->base, RCANFD_CERFL(ch));
ch               1157 drivers/net/can/rcar/rcar_canfd.c 		sts = rcar_canfd_read(priv->base, RCANFD_CSTS(ch));
ch               1170 drivers/net/can/rcar/rcar_canfd.c 				      RCANFD_CFSTS(ch, RCANFD_CFFIFO_IDX));
ch               1184 drivers/net/can/rcar/rcar_canfd.c 	u32 ch = priv->channel;
ch               1197 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_write(priv->base, RCANFD_CCFG(ch), cfg);
ch               1210 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_write(priv->base, RCANFD_F_DCFG(ch), cfg);
ch               1218 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_write(priv->base, RCANFD_CCFG(ch), cfg);
ch               1229 drivers/net/can/rcar/rcar_canfd.c 	u32 sts, ch = priv->channel;
ch               1230 drivers/net/can/rcar/rcar_canfd.c 	u32 ridx = ch + RCANFD_RFFIFO_IDX;
ch               1237 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_update_bit(priv->base, RCANFD_CCTR(ch),
ch               1241 drivers/net/can/rcar/rcar_canfd.c 	err = readl_poll_timeout((priv->base + RCANFD_CSTS(ch)), sts,
ch               1244 drivers/net/can/rcar/rcar_canfd.c 		netdev_err(ndev, "channel %u communication state failed\n", ch);
ch               1249 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_set_bit(priv->base, RCANFD_CFCC(ch, RCANFD_CFFIFO_IDX),
ch               1300 drivers/net/can/rcar/rcar_canfd.c 	u32 sts, ch = priv->channel;
ch               1301 drivers/net/can/rcar/rcar_canfd.c 	u32 ridx = ch + RCANFD_RFFIFO_IDX;
ch               1304 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_update_bit(priv->base, RCANFD_CCTR(ch),
ch               1308 drivers/net/can/rcar/rcar_canfd.c 	err = readl_poll_timeout((priv->base + RCANFD_CSTS(ch)), sts,
ch               1311 drivers/net/can/rcar/rcar_canfd.c 		netdev_err(ndev, "channel %u reset failed\n", ch);
ch               1316 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_clear_bit(priv->base, RCANFD_CFCC(ch, RCANFD_CFFIFO_IDX),
ch               1345 drivers/net/can/rcar/rcar_canfd.c 	u32 ch = priv->channel;
ch               1364 drivers/net/can/rcar/rcar_canfd.c 				 RCANFD_F_CFID(ch, RCANFD_CFFIFO_IDX), id);
ch               1366 drivers/net/can/rcar/rcar_canfd.c 				 RCANFD_F_CFPTR(ch, RCANFD_CFFIFO_IDX), dlc);
ch               1379 drivers/net/can/rcar/rcar_canfd.c 				 RCANFD_F_CFFDCSTS(ch, RCANFD_CFFIFO_IDX), sts);
ch               1382 drivers/net/can/rcar/rcar_canfd.c 				    RCANFD_F_CFDF(ch, RCANFD_CFFIFO_IDX, 0));
ch               1385 drivers/net/can/rcar/rcar_canfd.c 				 RCANFD_C_CFID(ch, RCANFD_CFFIFO_IDX), id);
ch               1387 drivers/net/can/rcar/rcar_canfd.c 				 RCANFD_C_CFPTR(ch, RCANFD_CFFIFO_IDX), dlc);
ch               1389 drivers/net/can/rcar/rcar_canfd.c 				    RCANFD_C_CFDF(ch, RCANFD_CFFIFO_IDX, 0));
ch               1406 drivers/net/can/rcar/rcar_canfd.c 			 RCANFD_CFPCTR(ch, RCANFD_CFFIFO_IDX), 0xff);
ch               1418 drivers/net/can/rcar/rcar_canfd.c 	u32 ch = priv->channel;
ch               1419 drivers/net/can/rcar/rcar_canfd.c 	u32 ridx = ch + RCANFD_RFFIFO_IDX;
ch               1492 drivers/net/can/rcar/rcar_canfd.c 	u32 ch = priv->channel;
ch               1493 drivers/net/can/rcar/rcar_canfd.c 	u32 ridx = ch + RCANFD_RFFIFO_IDX;
ch               1540 drivers/net/can/rcar/rcar_canfd.c 	u32 val, ch = priv->channel;
ch               1543 drivers/net/can/rcar/rcar_canfd.c 	val = rcar_canfd_read(priv->base, RCANFD_CSTS(ch));
ch               1556 drivers/net/can/rcar/rcar_canfd.c static int rcar_canfd_channel_probe(struct rcar_canfd_global *gpriv, u32 ch,
ch               1576 drivers/net/can/rcar/rcar_canfd.c 	priv->channel = ch;
ch               1609 drivers/net/can/rcar/rcar_canfd.c 	gpriv->ch[priv->channel] = priv;
ch               1620 drivers/net/can/rcar/rcar_canfd.c static void rcar_canfd_channel_remove(struct rcar_canfd_global *gpriv, u32 ch)
ch               1622 drivers/net/can/rcar/rcar_canfd.c 	struct rcar_canfd_channel *priv = gpriv->ch[ch];
ch               1635 drivers/net/can/rcar/rcar_canfd.c 	u32 sts, ch, fcan_freq;
ch               1751 drivers/net/can/rcar/rcar_canfd.c 	for_each_set_bit(ch, &gpriv->channels_mask, RCANFD_NUM_CHANNELS) {
ch               1753 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_configure_rx(gpriv, ch);
ch               1756 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_configure_tx(gpriv, ch);
ch               1759 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_configure_afl_rules(gpriv, ch);
ch               1777 drivers/net/can/rcar/rcar_canfd.c 	for_each_set_bit(ch, &gpriv->channels_mask, RCANFD_NUM_CHANNELS) {
ch               1778 drivers/net/can/rcar/rcar_canfd.c 		err = rcar_canfd_channel_probe(gpriv, ch, fcan_freq);
ch               1789 drivers/net/can/rcar/rcar_canfd.c 	for_each_set_bit(ch, &gpriv->channels_mask, RCANFD_NUM_CHANNELS)
ch               1790 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_channel_remove(gpriv, ch);
ch               1802 drivers/net/can/rcar/rcar_canfd.c 	u32 ch;
ch               1807 drivers/net/can/rcar/rcar_canfd.c 	for_each_set_bit(ch, &gpriv->channels_mask, RCANFD_NUM_CHANNELS) {
ch               1808 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_disable_channel_interrupts(gpriv->ch[ch]);
ch               1809 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_channel_remove(gpriv, ch);
ch               10367 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	cmd.u.params.ch = channel;
ch               3520 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h 			__u8   ch;
ch               1216 drivers/net/ethernet/emulex/benet/be_ethtool.c 			    struct ethtool_channels *ch)
ch               1222 drivers/net/ethernet/emulex/benet/be_ethtool.c 	ch->combined_count = min(adapter->num_tx_qs, num_rx_irqs);
ch               1223 drivers/net/ethernet/emulex/benet/be_ethtool.c 	ch->rx_count = num_rx_irqs - ch->combined_count;
ch               1224 drivers/net/ethernet/emulex/benet/be_ethtool.c 	ch->tx_count = adapter->num_tx_qs - ch->combined_count;
ch               1226 drivers/net/ethernet/emulex/benet/be_ethtool.c 	ch->max_combined = be_max_qp_irqs(adapter);
ch               1228 drivers/net/ethernet/emulex/benet/be_ethtool.c 	ch->max_rx = be_max_rx_irqs(adapter) - 1;
ch               1229 drivers/net/ethernet/emulex/benet/be_ethtool.c 	ch->max_tx = be_max_tx_irqs(adapter) - 1;
ch               1233 drivers/net/ethernet/emulex/benet/be_ethtool.c 			   struct ethtool_channels *ch)
ch               1241 drivers/net/ethernet/emulex/benet/be_ethtool.c 	if (ch->other_count || !ch->combined_count ||
ch               1242 drivers/net/ethernet/emulex/benet/be_ethtool.c 	    (ch->rx_count && ch->tx_count))
ch               1245 drivers/net/ethernet/emulex/benet/be_ethtool.c 	if (ch->combined_count > be_max_qp_irqs(adapter) ||
ch               1246 drivers/net/ethernet/emulex/benet/be_ethtool.c 	    (ch->rx_count &&
ch               1247 drivers/net/ethernet/emulex/benet/be_ethtool.c 	     (ch->rx_count + ch->combined_count) > be_max_rx_irqs(adapter)) ||
ch               1248 drivers/net/ethernet/emulex/benet/be_ethtool.c 	    (ch->tx_count &&
ch               1249 drivers/net/ethernet/emulex/benet/be_ethtool.c 	     (ch->tx_count + ch->combined_count) > be_max_tx_irqs(adapter)))
ch               1252 drivers/net/ethernet/emulex/benet/be_ethtool.c 	adapter->cfg_num_rx_irqs = ch->combined_count + ch->rx_count;
ch               1253 drivers/net/ethernet/emulex/benet/be_ethtool.c 	adapter->cfg_num_tx_irqs = ch->combined_count + ch->tx_count;
ch                126 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c 	struct dpaa2_eth_channel *ch;
ch                134 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c 		ch = priv->channel[i];
ch                136 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c 			   ch->ch_id,
ch                137 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c 			   ch->nctx.desired_cpu,
ch                138 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c 			   ch->stats.dequeue_portal_busy,
ch                139 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c 			   ch->stats.cdan,
ch                140 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c 			   ch->buf_count);
ch                102 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c static struct sk_buff *build_linear_skb(struct dpaa2_eth_channel *ch,
ch                110 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	ch->buf_count--;
ch                124 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 				      struct dpaa2_eth_channel *ch,
ch                198 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	ch->buf_count -= i + 2;
ch                221 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 			    struct dpaa2_eth_channel *ch,
ch                226 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	ch->xdp.drop_bufs[ch->xdp.drop_cnt++] = addr;
ch                227 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	if (ch->xdp.drop_cnt < DPAA2_ETH_BUFS_PER_CMD)
ch                230 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	while ((err = dpaa2_io_service_release(ch->dpio, priv->bpid,
ch                231 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 					       ch->xdp.drop_bufs,
ch                232 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 					       ch->xdp.drop_cnt)) == -EBUSY)
ch                236 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		free_bufs(priv, ch->xdp.drop_bufs, ch->xdp.drop_cnt);
ch                237 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		ch->buf_count -= ch->xdp.drop_cnt;
ch                240 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	ch->xdp.drop_cnt = 0;
ch                276 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		   struct dpaa2_eth_channel *ch,
ch                291 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	xdp_prog = READ_ONCE(ch->xdp.prog);
ch                299 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	xdp.rxq = &ch->xdp_rxq;
ch                313 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 			xdp_release_buf(priv, ch, addr);
ch                315 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 			ch->stats.xdp_tx_err++;
ch                319 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 			ch->stats.xdp_tx++;
ch                329 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		xdp_release_buf(priv, ch, addr);
ch                330 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		ch->stats.xdp_drop++;
ch                335 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		ch->buf_count--;
ch                339 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 			ch->stats.xdp_drop++;
ch                341 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 			ch->stats.xdp_redirect++;
ch                345 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	ch->xdp.res |= xdp_act;
ch                353 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 			 struct dpaa2_eth_channel *ch,
ch                385 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		xdp_act = run_xdp(priv, ch, fq, (struct dpaa2_fd *)fd, vaddr);
ch                394 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		skb = build_linear_skb(ch, fd, vaddr);
ch                400 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		skb = build_frag_skb(priv, ch, buf_data);
ch                438 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	list_add_tail(&skb->list, ch->rx_list);
ch                454 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c static int consume_frames(struct dpaa2_eth_channel *ch,
ch                457 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	struct dpaa2_eth_priv *priv = ch->priv;
ch                465 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		dq = dpaa2_io_store_next(ch->store, &is_last);
ch                478 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		fq->consume(priv, ch, fd, fq);
ch                866 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 			      struct dpaa2_eth_channel *ch __always_unused,
ch                946 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		    struct dpaa2_eth_channel *ch, u16 bpid)
ch                982 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	while ((err = dpaa2_io_service_release(ch->dpio, bpid,
ch               1063 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		       struct dpaa2_eth_channel *ch,
ch               1068 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	if (likely(ch->buf_count >= DPAA2_ETH_REFILL_THRESH))
ch               1072 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		new_count = add_bufs(priv, ch, bpid);
ch               1077 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		ch->buf_count += new_count;
ch               1078 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	} while (ch->buf_count < DPAA2_ETH_NUM_BUFS);
ch               1080 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	if (unlikely(ch->buf_count < DPAA2_ETH_NUM_BUFS))
ch               1086 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c static int pull_channel(struct dpaa2_eth_channel *ch)
ch               1093 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		err = dpaa2_io_service_pull_channel(ch->dpio, ch->ch_id,
ch               1094 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 						    ch->store);
ch               1099 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	ch->stats.dequeue_portal_busy += dequeues;
ch               1101 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		ch->stats.pull_err++;
ch               1114 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	struct dpaa2_eth_channel *ch;
ch               1123 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	ch = container_of(napi, struct dpaa2_eth_channel, napi);
ch               1124 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	ch->xdp.res = 0;
ch               1125 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	priv = ch->priv;
ch               1128 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	ch->rx_list = &rx_list;
ch               1131 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		err = pull_channel(ch);
ch               1136 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		refill_pool(priv, ch, priv->bpid);
ch               1138 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		store_cleaned = consume_frames(ch, &fq);
ch               1164 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		err = dpaa2_io_service_rearm(ch->dpio, &ch->nctx);
ch               1168 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		  ch->nctx.desired_cpu);
ch               1173 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	netif_receive_skb_list(ch->rx_list);
ch               1183 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	if (ch->xdp.res & XDP_REDIRECT)
ch               1191 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	struct dpaa2_eth_channel *ch;
ch               1195 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		ch = priv->channel[i];
ch               1196 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		napi_enable(&ch->napi);
ch               1202 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	struct dpaa2_eth_channel *ch;
ch               1206 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		ch = priv->channel[i];
ch               1207 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		napi_disable(&ch->napi);
ch               1767 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	struct dpaa2_eth_channel *ch;
ch               1806 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		ch = priv->channel[i];
ch               1807 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		old = xchg(&ch->xdp.prog, prog);
ch               2034 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	struct dpaa2_eth_channel *ch;
ch               2036 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	ch = container_of(ctx, struct dpaa2_eth_channel, nctx);
ch               2039 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	ch->stats.cdan++;
ch               2041 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	napi_schedule_irqoff(&ch->napi);
ch               2260 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	struct dpaa2_eth_channel *ch;
ch               2265 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		ch = priv->channel[i];
ch               2266 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		dpaa2_io_service_deregister(ch->dpio, &ch->nctx, dev);
ch               2267 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		free_channel(priv, ch);
ch               3421 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	struct dpaa2_eth_channel *ch;
ch               3424 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		ch = priv->channel[i];
ch               3426 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		netif_napi_add(priv->net_dev, &ch->napi, dpaa2_eth_poll,
ch               3434 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	struct dpaa2_eth_channel *ch;
ch               3437 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		ch = priv->channel[i];
ch               3438 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		netif_napi_del(&ch->napi);
ch                315 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h 			struct dpaa2_eth_channel *ch,
ch                815 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c hns_get_channels(struct net_device *net_dev, struct ethtool_channels *ch)
ch                819 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c 	ch->max_rx = priv->ae_handle->q_num;
ch                820 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c 	ch->max_tx = priv->ae_handle->q_num;
ch                822 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c 	ch->rx_count = priv->ae_handle->q_num;
ch                823 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c 	ch->tx_count = priv->ae_handle->q_num;
ch                495 drivers/net/ethernet/hisilicon/hns3/hnae3.h 			     struct ethtool_channels *ch);
ch               4448 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c 		      struct ethtool_channels *ch)
ch               4453 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c 	u32 new_tqp_num = ch->combined_count;
ch               4460 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c 	if (ch->rx_count || ch->tx_count)
ch                649 drivers/net/ethernet/hisilicon/hns3/hns3_enet.h 		      struct ethtool_channels *ch);
ch               1075 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c 			      struct ethtool_channels *ch)
ch               1080 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c 		h->ae_algo->ops->get_channels(h, ch);
ch               9533 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 			       struct ethtool_channels *ch)
ch               9535 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 	ch->max_combined = hclge_get_max_channels(handle);
ch               9536 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 	ch->other_count = 1;
ch               9537 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 	ch->max_other = 1;
ch               9538 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 	ch->combined_count = handle->kinfo.rss_size;
ch               2842 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c 				 struct ethtool_channels *ch)
ch               2846 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c 	ch->max_combined = hclgevf_get_max_channels(hdev);
ch               2847 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c 	ch->other_count = 0;
ch               2848 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c 	ch->max_other = 0;
ch               2849 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c 	ch->combined_count = handle->kinfo.rss_size;
ch               1114 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c 			       struct ethtool_channels *ch)
ch               1119 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c 	ch->max_combined = fm10k_max_channels(dev);
ch               1122 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c 	ch->max_other = NON_Q_VECTORS;
ch               1123 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c 	ch->other_count = ch->max_other;
ch               1126 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c 	ch->combined_count = interface->ring_feature[RING_F_RSS].indices;
ch               1130 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c 			      struct ethtool_channels *ch)
ch               1133 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c 	unsigned int count = ch->combined_count;
ch               1136 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c 	if (!count || ch->rx_count || ch->tx_count)
ch               1140 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c 	if (ch->other_count != NON_Q_VECTORS)
ch                440 drivers/net/ethernet/intel/i40e/i40e.h static inline bool i40e_is_channel_macvlan(struct i40e_channel *ch)
ch                442 drivers/net/ethernet/intel/i40e/i40e.h 	return !!ch->fwd;
ch                445 drivers/net/ethernet/intel/i40e/i40e.h static inline u8 *i40e_channel_mac(struct i40e_channel *ch)
ch                447 drivers/net/ethernet/intel/i40e/i40e.h 	if (i40e_is_channel_macvlan(ch))
ch                448 drivers/net/ethernet/intel/i40e/i40e.h 		return ch->fwd->netdev->dev_addr;
ch               1157 drivers/net/ethernet/intel/i40e/i40e.h int i40e_create_queue_channel(struct i40e_vsi *vsi, struct i40e_channel *ch);
ch               4618 drivers/net/ethernet/intel/i40e/i40e_ethtool.c 			      struct ethtool_channels *ch)
ch               4625 drivers/net/ethernet/intel/i40e/i40e_ethtool.c 	ch->max_combined = i40e_max_channels(vsi);
ch               4628 drivers/net/ethernet/intel/i40e/i40e_ethtool.c 	ch->other_count = (pf->flags & I40E_FLAG_FD_SB_ENABLED) ? 1 : 0;
ch               4629 drivers/net/ethernet/intel/i40e/i40e_ethtool.c 	ch->max_other = ch->other_count;
ch               4632 drivers/net/ethernet/intel/i40e/i40e_ethtool.c 	ch->combined_count = vsi->num_queue_pairs;
ch               4644 drivers/net/ethernet/intel/i40e/i40e_ethtool.c 			     struct ethtool_channels *ch)
ch               4648 drivers/net/ethernet/intel/i40e/i40e_ethtool.c 	unsigned int count = ch->combined_count;
ch               4667 drivers/net/ethernet/intel/i40e/i40e_ethtool.c 	if (!count || ch->rx_count || ch->tx_count)
ch               4671 drivers/net/ethernet/intel/i40e/i40e_ethtool.c 	if (ch->other_count != ((pf->flags & I40E_FLAG_FD_SB_ENABLED) ? 1 : 0))
ch               3093 drivers/net/ethernet/intel/i40e/i40e_main.c 	if (!ring->q_vector || !ring->netdev || ring->ch)
ch               3180 drivers/net/ethernet/intel/i40e/i40e_main.c 	if (ring->ch)
ch               3182 drivers/net/ethernet/intel/i40e/i40e_main.c 			le16_to_cpu(ring->ch->info.qs_handle[ring->dcb_tc]);
ch               3208 drivers/net/ethernet/intel/i40e/i40e_main.c 	if (ring->ch) {
ch               3209 drivers/net/ethernet/intel/i40e/i40e_main.c 		if (ring->ch->type == I40E_VSI_VMDQ2)
ch               3214 drivers/net/ethernet/intel/i40e/i40e_main.c 		qtx_ctl |= (ring->ch->vsi_number <<
ch               5558 drivers/net/ethernet/intel/i40e/i40e_main.c 	struct i40e_channel *ch, *ch_tmp;
ch               5572 drivers/net/ethernet/intel/i40e/i40e_main.c 	list_for_each_entry_safe(ch, ch_tmp, &vsi->ch_list, list) {
ch               5575 drivers/net/ethernet/intel/i40e/i40e_main.c 		list_del(&ch->list);
ch               5576 drivers/net/ethernet/intel/i40e/i40e_main.c 		p_vsi = ch->parent_vsi;
ch               5577 drivers/net/ethernet/intel/i40e/i40e_main.c 		if (!p_vsi || !ch->initialized) {
ch               5578 drivers/net/ethernet/intel/i40e/i40e_main.c 			kfree(ch);
ch               5582 drivers/net/ethernet/intel/i40e/i40e_main.c 		for (i = 0; i < ch->num_queue_pairs; i++) {
ch               5586 drivers/net/ethernet/intel/i40e/i40e_main.c 			pf_q = ch->base_queue + i;
ch               5588 drivers/net/ethernet/intel/i40e/i40e_main.c 			tx_ring->ch = NULL;
ch               5591 drivers/net/ethernet/intel/i40e/i40e_main.c 			rx_ring->ch = NULL;
ch               5595 drivers/net/ethernet/intel/i40e/i40e_main.c 		ret = i40e_set_bw_limit(vsi, ch->seid, 0);
ch               5599 drivers/net/ethernet/intel/i40e/i40e_main.c 				 ch->seid);
ch               5604 drivers/net/ethernet/intel/i40e/i40e_main.c 			if (cfilter->seid != ch->seid)
ch               5625 drivers/net/ethernet/intel/i40e/i40e_main.c 		ret = i40e_aq_delete_element(&vsi->back->hw, ch->seid,
ch               5630 drivers/net/ethernet/intel/i40e/i40e_main.c 				ch->seid, p_vsi->seid);
ch               5631 drivers/net/ethernet/intel/i40e/i40e_main.c 		kfree(ch);
ch               5644 drivers/net/ethernet/intel/i40e/i40e_main.c 	struct i40e_channel *ch, *ch_tmp;
ch               5646 drivers/net/ethernet/intel/i40e/i40e_main.c 	list_for_each_entry_safe(ch, ch_tmp, &vsi->ch_list, list) {
ch               5647 drivers/net/ethernet/intel/i40e/i40e_main.c 		if (ch->initialized)
ch               5663 drivers/net/ethernet/intel/i40e/i40e_main.c 	struct i40e_channel *ch, *ch_tmp;
ch               5666 drivers/net/ethernet/intel/i40e/i40e_main.c 	list_for_each_entry_safe(ch, ch_tmp, &vsi->ch_list, list) {
ch               5667 drivers/net/ethernet/intel/i40e/i40e_main.c 		if (!ch->initialized)
ch               5669 drivers/net/ethernet/intel/i40e/i40e_main.c 		if (ch->num_queue_pairs > max)
ch               5670 drivers/net/ethernet/intel/i40e/i40e_main.c 			max = ch->num_queue_pairs;
ch               5798 drivers/net/ethernet/intel/i40e/i40e_main.c 					 struct i40e_channel *ch)
ch               5807 drivers/net/ethernet/intel/i40e/i40e_main.c 	qcount = min_t(int, ch->num_queue_pairs, pf->num_lan_msix);
ch               5808 drivers/net/ethernet/intel/i40e/i40e_main.c 	ch->num_queue_pairs = qcount;
ch               5823 drivers/net/ethernet/intel/i40e/i40e_main.c 	ctxt->info.queue_mapping[0] = cpu_to_le16(ch->base_queue);
ch               5836 drivers/net/ethernet/intel/i40e/i40e_main.c 			    struct i40e_channel *ch)
ch               5843 drivers/net/ethernet/intel/i40e/i40e_main.c 	if (ch->type != I40E_VSI_VMDQ2) {
ch               5845 drivers/net/ethernet/intel/i40e/i40e_main.c 			 "add new vsi failed, ch->type %d\n", ch->type);
ch               5854 drivers/net/ethernet/intel/i40e/i40e_main.c 	if (ch->type == I40E_VSI_VMDQ2)
ch               5865 drivers/net/ethernet/intel/i40e/i40e_main.c 	i40e_channel_setup_queue_map(pf, &ctxt, ch);
ch               5881 drivers/net/ethernet/intel/i40e/i40e_main.c 	ch->enabled_tc = !i40e_is_channel_macvlan(ch) && enabled_tc;
ch               5882 drivers/net/ethernet/intel/i40e/i40e_main.c 	ch->seid = ctxt.seid;
ch               5883 drivers/net/ethernet/intel/i40e/i40e_main.c 	ch->vsi_number = ctxt.vsi_number;
ch               5884 drivers/net/ethernet/intel/i40e/i40e_main.c 	ch->stat_counter_idx = cpu_to_le16(ctxt.info.stat_counter_idx);
ch               5890 drivers/net/ethernet/intel/i40e/i40e_main.c 	ch->info.mapping_flags = ctxt.info.mapping_flags;
ch               5891 drivers/net/ethernet/intel/i40e/i40e_main.c 	memcpy(&ch->info.queue_mapping,
ch               5893 drivers/net/ethernet/intel/i40e/i40e_main.c 	memcpy(&ch->info.tc_mapping, ctxt.info.tc_mapping,
ch               5899 drivers/net/ethernet/intel/i40e/i40e_main.c static int i40e_channel_config_bw(struct i40e_vsi *vsi, struct i40e_channel *ch,
ch               5906 drivers/net/ethernet/intel/i40e/i40e_main.c 	bw_data.tc_valid_bits = ch->enabled_tc;
ch               5910 drivers/net/ethernet/intel/i40e/i40e_main.c 	ret = i40e_aq_config_vsi_tc_bw(&vsi->back->hw, ch->seid,
ch               5915 drivers/net/ethernet/intel/i40e/i40e_main.c 			 vsi->back->hw.aq.asq_last_status, ch->seid);
ch               5920 drivers/net/ethernet/intel/i40e/i40e_main.c 		ch->info.qs_handle[i] = bw_data.qs_handles[i];
ch               5936 drivers/net/ethernet/intel/i40e/i40e_main.c 				       struct i40e_channel *ch)
ch               5944 drivers/net/ethernet/intel/i40e/i40e_main.c 		if (ch->enabled_tc & BIT(i))
ch               5949 drivers/net/ethernet/intel/i40e/i40e_main.c 	ret = i40e_channel_config_bw(vsi, ch, bw_share);
ch               5953 drivers/net/ethernet/intel/i40e/i40e_main.c 			 ch->enabled_tc, ch->seid);
ch               5957 drivers/net/ethernet/intel/i40e/i40e_main.c 	for (i = 0; i < ch->num_queue_pairs; i++) {
ch               5961 drivers/net/ethernet/intel/i40e/i40e_main.c 		pf_q = ch->base_queue + i;
ch               5967 drivers/net/ethernet/intel/i40e/i40e_main.c 		tx_ring->ch = ch;
ch               5971 drivers/net/ethernet/intel/i40e/i40e_main.c 		rx_ring->ch = ch;
ch               5990 drivers/net/ethernet/intel/i40e/i40e_main.c 					struct i40e_channel *ch,
ch               5995 drivers/net/ethernet/intel/i40e/i40e_main.c 	ch->initialized = false;
ch               5996 drivers/net/ethernet/intel/i40e/i40e_main.c 	ch->base_queue = vsi->next_base_queue;
ch               5997 drivers/net/ethernet/intel/i40e/i40e_main.c 	ch->type = type;
ch               6000 drivers/net/ethernet/intel/i40e/i40e_main.c 	ret = i40e_add_channel(pf, uplink_seid, ch);
ch               6009 drivers/net/ethernet/intel/i40e/i40e_main.c 	ch->initialized = true;
ch               6012 drivers/net/ethernet/intel/i40e/i40e_main.c 	ret = i40e_channel_config_tx_ring(pf, vsi, ch);
ch               6016 drivers/net/ethernet/intel/i40e/i40e_main.c 			 ch->seid);
ch               6021 drivers/net/ethernet/intel/i40e/i40e_main.c 	vsi->next_base_queue = vsi->next_base_queue + ch->num_queue_pairs;
ch               6024 drivers/net/ethernet/intel/i40e/i40e_main.c 		ch->seid, ch->vsi_number, ch->stat_counter_idx,
ch               6025 drivers/net/ethernet/intel/i40e/i40e_main.c 		ch->num_queue_pairs,
ch               6041 drivers/net/ethernet/intel/i40e/i40e_main.c 			       struct i40e_channel *ch)
ch               6059 drivers/net/ethernet/intel/i40e/i40e_main.c 	ret = i40e_setup_hw_channel(pf, vsi, ch, seid, vsi_type);
ch               6065 drivers/net/ethernet/intel/i40e/i40e_main.c 	return ch->initialized ? true : false;
ch               6134 drivers/net/ethernet/intel/i40e/i40e_main.c 			      struct i40e_channel *ch)
ch               6140 drivers/net/ethernet/intel/i40e/i40e_main.c 	if (!ch)
ch               6143 drivers/net/ethernet/intel/i40e/i40e_main.c 	if (!ch->num_queue_pairs) {
ch               6145 drivers/net/ethernet/intel/i40e/i40e_main.c 			ch->num_queue_pairs);
ch               6150 drivers/net/ethernet/intel/i40e/i40e_main.c 	err = i40e_validate_num_queues(pf, ch->num_queue_pairs, vsi,
ch               6154 drivers/net/ethernet/intel/i40e/i40e_main.c 			 ch->num_queue_pairs);
ch               6190 drivers/net/ethernet/intel/i40e/i40e_main.c 	if (!vsi->cnt_q_avail || vsi->cnt_q_avail < ch->num_queue_pairs) {
ch               6193 drivers/net/ethernet/intel/i40e/i40e_main.c 			vsi->cnt_q_avail, ch->num_queue_pairs);
ch               6199 drivers/net/ethernet/intel/i40e/i40e_main.c 		err = i40e_vsi_reconfig_rss(vsi, ch->num_queue_pairs);
ch               6203 drivers/net/ethernet/intel/i40e/i40e_main.c 				 ch->num_queue_pairs);
ch               6208 drivers/net/ethernet/intel/i40e/i40e_main.c 	if (!i40e_setup_channel(pf, vsi, ch)) {
ch               6215 drivers/net/ethernet/intel/i40e/i40e_main.c 		 ch->seid, ch->num_queue_pairs);
ch               6218 drivers/net/ethernet/intel/i40e/i40e_main.c 	if (ch->max_tx_rate) {
ch               6219 drivers/net/ethernet/intel/i40e/i40e_main.c 		u64 credits = ch->max_tx_rate;
ch               6221 drivers/net/ethernet/intel/i40e/i40e_main.c 		if (i40e_set_bw_limit(vsi, ch->seid, ch->max_tx_rate))
ch               6227 drivers/net/ethernet/intel/i40e/i40e_main.c 			ch->max_tx_rate,
ch               6229 drivers/net/ethernet/intel/i40e/i40e_main.c 			ch->seid);
ch               6233 drivers/net/ethernet/intel/i40e/i40e_main.c 	ch->parent_vsi = vsi;
ch               6236 drivers/net/ethernet/intel/i40e/i40e_main.c 	vsi->cnt_q_avail -= ch->num_queue_pairs;
ch               6249 drivers/net/ethernet/intel/i40e/i40e_main.c 	struct i40e_channel *ch;
ch               6257 drivers/net/ethernet/intel/i40e/i40e_main.c 			ch = kzalloc(sizeof(*ch), GFP_KERNEL);
ch               6258 drivers/net/ethernet/intel/i40e/i40e_main.c 			if (!ch) {
ch               6263 drivers/net/ethernet/intel/i40e/i40e_main.c 			INIT_LIST_HEAD(&ch->list);
ch               6264 drivers/net/ethernet/intel/i40e/i40e_main.c 			ch->num_queue_pairs =
ch               6266 drivers/net/ethernet/intel/i40e/i40e_main.c 			ch->base_queue =
ch               6274 drivers/net/ethernet/intel/i40e/i40e_main.c 			ch->max_tx_rate = max_rate;
ch               6276 drivers/net/ethernet/intel/i40e/i40e_main.c 			list_add_tail(&ch->list, &vsi->ch_list);
ch               6278 drivers/net/ethernet/intel/i40e/i40e_main.c 			ret = i40e_create_queue_channel(vsi, ch);
ch               6282 drivers/net/ethernet/intel/i40e/i40e_main.c 					i, ch->num_queue_pairs);
ch               6285 drivers/net/ethernet/intel/i40e/i40e_main.c 			vsi->tc_seid_map[i] = ch->seid;
ch               6951 drivers/net/ethernet/intel/i40e/i40e_main.c static void i40e_reset_ch_rings(struct i40e_vsi *vsi, struct i40e_channel *ch)
ch               6957 drivers/net/ethernet/intel/i40e/i40e_main.c 	for (i = 0; i < ch->num_queue_pairs; i++) {
ch               6958 drivers/net/ethernet/intel/i40e/i40e_main.c 		pf_q = ch->base_queue + i;
ch               6960 drivers/net/ethernet/intel/i40e/i40e_main.c 		tx_ring->ch = NULL;
ch               6962 drivers/net/ethernet/intel/i40e/i40e_main.c 		rx_ring->ch = NULL;
ch               6976 drivers/net/ethernet/intel/i40e/i40e_main.c 	struct i40e_channel *ch, *ch_tmp;
ch               6982 drivers/net/ethernet/intel/i40e/i40e_main.c 	list_for_each_entry_safe(ch, ch_tmp, &vsi->macvlan_list, list) {
ch               6985 drivers/net/ethernet/intel/i40e/i40e_main.c 		if (i40e_is_channel_macvlan(ch)) {
ch               6986 drivers/net/ethernet/intel/i40e/i40e_main.c 			i40e_reset_ch_rings(vsi, ch);
ch               6987 drivers/net/ethernet/intel/i40e/i40e_main.c 			clear_bit(ch->fwd->bit_no, vsi->fwd_bitmask);
ch               6988 drivers/net/ethernet/intel/i40e/i40e_main.c 			netdev_unbind_sb_channel(vsi->netdev, ch->fwd->netdev);
ch               6989 drivers/net/ethernet/intel/i40e/i40e_main.c 			netdev_set_sb_channel(ch->fwd->netdev, 0);
ch               6990 drivers/net/ethernet/intel/i40e/i40e_main.c 			kfree(ch->fwd);
ch               6991 drivers/net/ethernet/intel/i40e/i40e_main.c 			ch->fwd = NULL;
ch               6994 drivers/net/ethernet/intel/i40e/i40e_main.c 		list_del(&ch->list);
ch               6995 drivers/net/ethernet/intel/i40e/i40e_main.c 		parent_vsi = ch->parent_vsi;
ch               6996 drivers/net/ethernet/intel/i40e/i40e_main.c 		if (!parent_vsi || !ch->initialized) {
ch               6997 drivers/net/ethernet/intel/i40e/i40e_main.c 			kfree(ch);
ch               7002 drivers/net/ethernet/intel/i40e/i40e_main.c 		ret = i40e_aq_delete_element(&vsi->back->hw, ch->seid,
ch               7007 drivers/net/ethernet/intel/i40e/i40e_main.c 				ch->seid, parent_vsi->seid);
ch               7008 drivers/net/ethernet/intel/i40e/i40e_main.c 		kfree(ch);
ch               7023 drivers/net/ethernet/intel/i40e/i40e_main.c 	struct i40e_channel *ch, *ch_tmp;
ch               7031 drivers/net/ethernet/intel/i40e/i40e_main.c 	list_for_each_entry_safe(ch, ch_tmp, &vsi->macvlan_list, list) {
ch               7032 drivers/net/ethernet/intel/i40e/i40e_main.c 		if (!i40e_is_channel_macvlan(ch)) {
ch               7033 drivers/net/ethernet/intel/i40e/i40e_main.c 			ch->fwd = fwd;
ch               7038 drivers/net/ethernet/intel/i40e/i40e_main.c 							     ch->num_queue_pairs,
ch               7039 drivers/net/ethernet/intel/i40e/i40e_main.c 							     ch->base_queue);
ch               7040 drivers/net/ethernet/intel/i40e/i40e_main.c 			for (i = 0; i < ch->num_queue_pairs; i++) {
ch               7044 drivers/net/ethernet/intel/i40e/i40e_main.c 				pf_q = ch->base_queue + i;
ch               7048 drivers/net/ethernet/intel/i40e/i40e_main.c 				tx_ring->ch = ch;
ch               7052 drivers/net/ethernet/intel/i40e/i40e_main.c 				rx_ring->ch = ch;
ch               7064 drivers/net/ethernet/intel/i40e/i40e_main.c 	ret = i40e_add_macvlan_filter(hw, ch->seid, vdev->dev_addr, &aq_err);
ch               7068 drivers/net/ethernet/intel/i40e/i40e_main.c 		for (i = 0; i < ch->num_queue_pairs; i++) {
ch               7072 drivers/net/ethernet/intel/i40e/i40e_main.c 			pf_q = ch->base_queue + i;
ch               7100 drivers/net/ethernet/intel/i40e/i40e_main.c 	struct i40e_channel *ch;
ch               7162 drivers/net/ethernet/intel/i40e/i40e_main.c 		ch = kzalloc(sizeof(*ch), GFP_KERNEL);
ch               7163 drivers/net/ethernet/intel/i40e/i40e_main.c 		if (!ch) {
ch               7167 drivers/net/ethernet/intel/i40e/i40e_main.c 		INIT_LIST_HEAD(&ch->list);
ch               7168 drivers/net/ethernet/intel/i40e/i40e_main.c 		ch->num_queue_pairs = qcnt;
ch               7169 drivers/net/ethernet/intel/i40e/i40e_main.c 		if (!i40e_setup_channel(pf, vsi, ch)) {
ch               7171 drivers/net/ethernet/intel/i40e/i40e_main.c 			kfree(ch);
ch               7174 drivers/net/ethernet/intel/i40e/i40e_main.c 		ch->parent_vsi = vsi;
ch               7175 drivers/net/ethernet/intel/i40e/i40e_main.c 		vsi->cnt_q_avail -= ch->num_queue_pairs;
ch               7177 drivers/net/ethernet/intel/i40e/i40e_main.c 		list_add_tail(&ch->list, &vsi->macvlan_list);
ch               7306 drivers/net/ethernet/intel/i40e/i40e_main.c 	struct i40e_channel *ch, *ch_tmp;
ch               7314 drivers/net/ethernet/intel/i40e/i40e_main.c 	list_for_each_entry_safe(ch, ch_tmp, &vsi->macvlan_list, list) {
ch               7315 drivers/net/ethernet/intel/i40e/i40e_main.c 		if (i40e_is_channel_macvlan(ch)) {
ch               7316 drivers/net/ethernet/intel/i40e/i40e_main.c 			ret = i40e_del_macvlan_filter(hw, ch->seid,
ch               7317 drivers/net/ethernet/intel/i40e/i40e_main.c 						      i40e_channel_mac(ch),
ch               7321 drivers/net/ethernet/intel/i40e/i40e_main.c 				i40e_reset_ch_rings(vsi, ch);
ch               7322 drivers/net/ethernet/intel/i40e/i40e_main.c 				clear_bit(ch->fwd->bit_no, vsi->fwd_bitmask);
ch               7324 drivers/net/ethernet/intel/i40e/i40e_main.c 							 ch->fwd->netdev);
ch               7325 drivers/net/ethernet/intel/i40e/i40e_main.c 				netdev_set_sb_channel(ch->fwd->netdev, 0);
ch               7326 drivers/net/ethernet/intel/i40e/i40e_main.c 				kfree(ch->fwd);
ch               7327 drivers/net/ethernet/intel/i40e/i40e_main.c 				ch->fwd = NULL;
ch               7342 drivers/net/ethernet/intel/i40e/i40e_main.c 	struct i40e_channel *ch, *ch_tmp;
ch               7349 drivers/net/ethernet/intel/i40e/i40e_main.c 	list_for_each_entry_safe(ch, ch_tmp, &vsi->macvlan_list, list) {
ch               7350 drivers/net/ethernet/intel/i40e/i40e_main.c 		if (i40e_is_channel_macvlan(ch) &&
ch               7351 drivers/net/ethernet/intel/i40e/i40e_main.c 		    ether_addr_equal(i40e_channel_mac(ch),
ch               7353 drivers/net/ethernet/intel/i40e/i40e_main.c 			ret = i40e_del_macvlan_filter(hw, ch->seid,
ch               7354 drivers/net/ethernet/intel/i40e/i40e_main.c 						      i40e_channel_mac(ch),
ch               7358 drivers/net/ethernet/intel/i40e/i40e_main.c 				i40e_reset_ch_rings(vsi, ch);
ch               7359 drivers/net/ethernet/intel/i40e/i40e_main.c 				clear_bit(ch->fwd->bit_no, vsi->fwd_bitmask);
ch               7362 drivers/net/ethernet/intel/i40e/i40e_main.c 				kfree(ch->fwd);
ch               7363 drivers/net/ethernet/intel/i40e/i40e_main.c 				ch->fwd = NULL;
ch               7952 drivers/net/ethernet/intel/i40e/i40e_main.c 	struct i40e_channel *ch, *ch_tmp;
ch               7966 drivers/net/ethernet/intel/i40e/i40e_main.c 		list_for_each_entry_safe(ch, ch_tmp, &vsi->ch_list,
ch               7968 drivers/net/ethernet/intel/i40e/i40e_main.c 			if (ch->seid == vsi->tc_seid_map[tc])
ch               7969 drivers/net/ethernet/intel/i40e/i40e_main.c 				filter->seid = ch->seid;
ch               9734 drivers/net/ethernet/intel/i40e/i40e_main.c 	struct i40e_channel *ch, *ch_tmp;
ch               9740 drivers/net/ethernet/intel/i40e/i40e_main.c 	list_for_each_entry_safe(ch, ch_tmp, &vsi->ch_list, list) {
ch               9741 drivers/net/ethernet/intel/i40e/i40e_main.c 		if (!ch->initialized)
ch               9744 drivers/net/ethernet/intel/i40e/i40e_main.c 		ret = i40e_add_channel(vsi->back, vsi->uplink_seid, ch);
ch               9752 drivers/net/ethernet/intel/i40e/i40e_main.c 		ret = i40e_channel_config_tx_ring(vsi->back, vsi, ch);
ch               9756 drivers/net/ethernet/intel/i40e/i40e_main.c 				 ch->seid);
ch               9761 drivers/net/ethernet/intel/i40e/i40e_main.c 							ch->num_queue_pairs;
ch               9762 drivers/net/ethernet/intel/i40e/i40e_main.c 		if (ch->max_tx_rate) {
ch               9763 drivers/net/ethernet/intel/i40e/i40e_main.c 			u64 credits = ch->max_tx_rate;
ch               9765 drivers/net/ethernet/intel/i40e/i40e_main.c 			if (i40e_set_bw_limit(vsi, ch->seid,
ch               9766 drivers/net/ethernet/intel/i40e/i40e_main.c 					      ch->max_tx_rate))
ch               9772 drivers/net/ethernet/intel/i40e/i40e_main.c 				ch->max_tx_rate,
ch               9774 drivers/net/ethernet/intel/i40e/i40e_main.c 				ch->seid);
ch               9776 drivers/net/ethernet/intel/i40e/i40e_main.c 		ret = i40e_rebuild_cloud_filters(vsi, ch->seid);
ch               9780 drivers/net/ethernet/intel/i40e/i40e_main.c 				ch->seid);
ch                419 drivers/net/ethernet/intel/i40e/i40e_txrx.h 	struct i40e_channel *ch;
ch                261 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			if (queue_id < vf->ch[i].num_qps) {
ch                262 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 				vsi_id = vf->ch[i].vsi_id;
ch                268 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			queue_id -= vf->ch[i].num_qps;
ch                768 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 		vf->ch[idx].vsi_idx = vsi->idx;
ch                769 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 		vf->ch[idx].vsi_id = vsi->id;
ch                775 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 	} else if (vf->ch[idx].max_tx_rate) {
ch                776 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 		max_tx_rate = vf->ch[idx].max_tx_rate;
ch                812 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			qps = vf->ch[i].num_qps;
ch                813 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			vsi_id =  vf->ch[i].vsi_id;
ch                860 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			qps = vf->ch[i].num_qps;
ch                861 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			vsi_id =  vf->ch[i].vsi_id;
ch                962 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 	if (vf->adq_enabled && vf->ch[0].vsi_idx) {
ch                969 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 				i40e_vsi_release(pf->vsi[vf->ch[j].vsi_idx]);
ch                970 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			vf->ch[j].vsi_idx = 0;
ch                971 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			vf->ch[j].vsi_id = 0;
ch               1832 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 		if (vf->ch[i].vsi_idx) {
ch               1833 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			i40e_vsi_release(pf->vsi[vf->ch[i].vsi_idx]);
ch               1834 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			vf->ch[i].vsi_idx = 0;
ch               1835 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			vf->ch[i].vsi_id = 0;
ch               2116 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			num_qps_all += vf->ch[i].num_qps;
ch               2146 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			if (idx >= ARRAY_SIZE(vf->ch)) {
ch               2150 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			vsi_id = vf->ch[idx].vsi_id;
ch               2167 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			if (idx >= ARRAY_SIZE(vf->ch)) {
ch               2171 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			if (j == (vf->ch[idx].num_qps - 1)) {
ch               2187 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			pf->vsi[vf->ch[i].vsi_idx]->num_queue_pairs =
ch               2188 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			       vf->ch[i].num_qps;
ch               2211 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			vsi_id = vf->ch[vsi_queue_id / I40E_MAX_VF_VSI].vsi_id;
ch               2387 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 			if (i40e_vsi_start_rings(pf->vsi[vf->ch[i].vsi_idx]))
ch               3263 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 		vsi = i40e_find_vsi_from_id(pf, vf->ch[i].vsi_id);
ch               3393 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 	vsi = pf->vsi[vf->ch[vcf->action_meta].vsi_idx];
ch               3527 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 	vsi = pf->vsi[vf->ch[vcf->action_meta].vsi_idx];
ch               3669 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 				vf->ch[i].max_tx_rate =
ch               3673 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 		vf->ch[i].num_qps = tci->list[i].count;
ch                110 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h 	struct i40evf_channel ch[I40E_MAX_VF_VSI];
ch                858 drivers/net/ethernet/intel/iavf/iavf_ethtool.c 			      struct ethtool_channels *ch)
ch                863 drivers/net/ethernet/intel/iavf/iavf_ethtool.c 	ch->max_combined = IAVF_MAX_REQ_QUEUES;
ch                865 drivers/net/ethernet/intel/iavf/iavf_ethtool.c 	ch->max_other = NONQ_VECS;
ch                866 drivers/net/ethernet/intel/iavf/iavf_ethtool.c 	ch->other_count = NONQ_VECS;
ch                868 drivers/net/ethernet/intel/iavf/iavf_ethtool.c 	ch->combined_count = adapter->num_active_queues;
ch                881 drivers/net/ethernet/intel/iavf/iavf_ethtool.c 			     struct ethtool_channels *ch)
ch                884 drivers/net/ethernet/intel/iavf/iavf_ethtool.c 	int num_req = ch->combined_count;
ch                905 drivers/net/ethernet/intel/iavf/iavf_ethtool.c 	if (ch->rx_count || ch->tx_count || ch->other_count != NONQ_VECS)
ch                820 drivers/net/ethernet/intel/ice/ice_flex_pipe.c 	struct ice_ptg_ptype **ch;
ch                835 drivers/net/ethernet/intel/ice/ice_flex_pipe.c 	ch = &hw->blk[blk].xlt1.ptg_tbl[ptg].first_ptype;
ch                838 drivers/net/ethernet/intel/ice/ice_flex_pipe.c 			*ch = p->next_ptype;
ch                842 drivers/net/ethernet/intel/ice/ice_flex_pipe.c 		ch = &p->next_ptype;
ch               3391 drivers/net/ethernet/intel/igb/igb_ethtool.c 			     struct ethtool_channels *ch)
ch               3396 drivers/net/ethernet/intel/igb/igb_ethtool.c 	ch->max_combined = igb_max_channels(adapter);
ch               3400 drivers/net/ethernet/intel/igb/igb_ethtool.c 		ch->max_other = NON_Q_VECTORS;
ch               3401 drivers/net/ethernet/intel/igb/igb_ethtool.c 		ch->other_count = NON_Q_VECTORS;
ch               3404 drivers/net/ethernet/intel/igb/igb_ethtool.c 	ch->combined_count = adapter->rss_queues;
ch               3408 drivers/net/ethernet/intel/igb/igb_ethtool.c 			    struct ethtool_channels *ch)
ch               3411 drivers/net/ethernet/intel/igb/igb_ethtool.c 	unsigned int count = ch->combined_count;
ch               3415 drivers/net/ethernet/intel/igb/igb_ethtool.c 	if (!count || ch->rx_count || ch->tx_count)
ch               3419 drivers/net/ethernet/intel/igb/igb_ethtool.c 	if (ch->other_count != NON_Q_VECTORS)
ch               1554 drivers/net/ethernet/intel/igc/igc_ethtool.c 			     struct ethtool_channels *ch)
ch               1559 drivers/net/ethernet/intel/igc/igc_ethtool.c 	ch->max_combined = igc_max_channels(adapter);
ch               1563 drivers/net/ethernet/intel/igc/igc_ethtool.c 		ch->max_other = NON_Q_VECTORS;
ch               1564 drivers/net/ethernet/intel/igc/igc_ethtool.c 		ch->other_count = NON_Q_VECTORS;
ch               1567 drivers/net/ethernet/intel/igc/igc_ethtool.c 	ch->combined_count = adapter->rss_queues;
ch               1571 drivers/net/ethernet/intel/igc/igc_ethtool.c 			    struct ethtool_channels *ch)
ch               1574 drivers/net/ethernet/intel/igc/igc_ethtool.c 	unsigned int count = ch->combined_count;
ch               1578 drivers/net/ethernet/intel/igc/igc_ethtool.c 	if (!count || ch->rx_count || ch->tx_count)
ch               1582 drivers/net/ethernet/intel/igc/igc_ethtool.c 	if (ch->other_count != NON_Q_VECTORS)
ch               3124 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c 			       struct ethtool_channels *ch)
ch               3129 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c 	ch->max_combined = ixgbe_max_channels(adapter);
ch               3133 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c 		ch->max_other = NON_Q_VECTORS;
ch               3134 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c 		ch->other_count = NON_Q_VECTORS;
ch               3138 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c 	ch->combined_count = adapter->ring_feature[RING_F_RSS].indices;
ch               3141 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c 	if (ch->combined_count == 1)
ch               3157 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c 	ch->combined_count = adapter->ring_feature[RING_F_FDIR].indices;
ch               3161 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c 			      struct ethtool_channels *ch)
ch               3164 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c 	unsigned int count = ch->combined_count;
ch               3168 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c 	if (!count || ch->rx_count || ch->tx_count)
ch               3172 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c 	if (ch->other_count != NON_Q_VECTORS)
ch                145 drivers/net/ethernet/korina.c static inline void korina_start_dma(struct dma_reg *ch, u32 dma_addr)
ch                147 drivers/net/ethernet/korina.c 	writel(0, &ch->dmandptr);
ch                148 drivers/net/ethernet/korina.c 	writel(dma_addr, &ch->dmadptr);
ch                152 drivers/net/ethernet/korina.c 					struct dma_reg *ch)
ch                154 drivers/net/ethernet/korina.c 	if (readl(&ch->dmac) & DMA_CHAN_RUN_BIT) {
ch                155 drivers/net/ethernet/korina.c 		writel(0x10, &ch->dmac);
ch                157 drivers/net/ethernet/korina.c 		while (!(readl(&ch->dmas) & DMA_STAT_HALT))
ch                160 drivers/net/ethernet/korina.c 		writel(0, &ch->dmas);
ch                163 drivers/net/ethernet/korina.c 	writel(0, &ch->dmadptr);
ch                164 drivers/net/ethernet/korina.c 	writel(0, &ch->dmandptr);
ch                167 drivers/net/ethernet/korina.c static inline void korina_chain_dma(struct dma_reg *ch, u32 dma_addr)
ch                169 drivers/net/ethernet/korina.c 	writel(dma_addr, &ch->dmandptr);
ch                 96 drivers/net/ethernet/lantiq_etop.c 	struct ltq_etop_chan ch[MAX_DMA_CHAN];
ch                103 drivers/net/ethernet/lantiq_etop.c ltq_etop_alloc_skb(struct ltq_etop_chan *ch)
ch                105 drivers/net/ethernet/lantiq_etop.c 	struct ltq_etop_priv *priv = netdev_priv(ch->netdev);
ch                107 drivers/net/ethernet/lantiq_etop.c 	ch->skb[ch->dma.desc] = netdev_alloc_skb(ch->netdev, MAX_DMA_DATA_LEN);
ch                108 drivers/net/ethernet/lantiq_etop.c 	if (!ch->skb[ch->dma.desc])
ch                110 drivers/net/ethernet/lantiq_etop.c 	ch->dma.desc_base[ch->dma.desc].addr = dma_map_single(&priv->pdev->dev,
ch                111 drivers/net/ethernet/lantiq_etop.c 		ch->skb[ch->dma.desc]->data, MAX_DMA_DATA_LEN,
ch                113 drivers/net/ethernet/lantiq_etop.c 	ch->dma.desc_base[ch->dma.desc].addr =
ch                114 drivers/net/ethernet/lantiq_etop.c 		CPHYSADDR(ch->skb[ch->dma.desc]->data);
ch                115 drivers/net/ethernet/lantiq_etop.c 	ch->dma.desc_base[ch->dma.desc].ctl =
ch                118 drivers/net/ethernet/lantiq_etop.c 	skb_reserve(ch->skb[ch->dma.desc], NET_IP_ALIGN);
ch                123 drivers/net/ethernet/lantiq_etop.c ltq_etop_hw_receive(struct ltq_etop_chan *ch)
ch                125 drivers/net/ethernet/lantiq_etop.c 	struct ltq_etop_priv *priv = netdev_priv(ch->netdev);
ch                126 drivers/net/ethernet/lantiq_etop.c 	struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc];
ch                127 drivers/net/ethernet/lantiq_etop.c 	struct sk_buff *skb = ch->skb[ch->dma.desc];
ch                132 drivers/net/ethernet/lantiq_etop.c 	if (ltq_etop_alloc_skb(ch)) {
ch                133 drivers/net/ethernet/lantiq_etop.c 		netdev_err(ch->netdev,
ch                135 drivers/net/ethernet/lantiq_etop.c 		ltq_dma_close(&ch->dma);
ch                137 drivers/net/ethernet/lantiq_etop.c 	ch->dma.desc++;
ch                138 drivers/net/ethernet/lantiq_etop.c 	ch->dma.desc %= LTQ_DESC_NUM;
ch                142 drivers/net/ethernet/lantiq_etop.c 	skb->protocol = eth_type_trans(skb, ch->netdev);
ch                149 drivers/net/ethernet/lantiq_etop.c 	struct ltq_etop_chan *ch = container_of(napi,
ch                154 drivers/net/ethernet/lantiq_etop.c 		struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc];
ch                158 drivers/net/ethernet/lantiq_etop.c 		ltq_etop_hw_receive(ch);
ch                162 drivers/net/ethernet/lantiq_etop.c 		napi_complete_done(&ch->napi, work_done);
ch                163 drivers/net/ethernet/lantiq_etop.c 		ltq_dma_ack_irq(&ch->dma);
ch                171 drivers/net/ethernet/lantiq_etop.c 	struct ltq_etop_chan *ch =
ch                173 drivers/net/ethernet/lantiq_etop.c 	struct ltq_etop_priv *priv = netdev_priv(ch->netdev);
ch                175 drivers/net/ethernet/lantiq_etop.c 		netdev_get_tx_queue(ch->netdev, ch->idx >> 1);
ch                179 drivers/net/ethernet/lantiq_etop.c 	while ((ch->dma.desc_base[ch->tx_free].ctl &
ch                181 drivers/net/ethernet/lantiq_etop.c 		dev_kfree_skb_any(ch->skb[ch->tx_free]);
ch                182 drivers/net/ethernet/lantiq_etop.c 		ch->skb[ch->tx_free] = NULL;
ch                183 drivers/net/ethernet/lantiq_etop.c 		memset(&ch->dma.desc_base[ch->tx_free], 0,
ch                185 drivers/net/ethernet/lantiq_etop.c 		ch->tx_free++;
ch                186 drivers/net/ethernet/lantiq_etop.c 		ch->tx_free %= LTQ_DESC_NUM;
ch                192 drivers/net/ethernet/lantiq_etop.c 	napi_complete(&ch->napi);
ch                193 drivers/net/ethernet/lantiq_etop.c 	ltq_dma_ack_irq(&ch->dma);
ch                201 drivers/net/ethernet/lantiq_etop.c 	int ch = irq - LTQ_DMA_CH0_INT;
ch                203 drivers/net/ethernet/lantiq_etop.c 	napi_schedule(&priv->ch[ch].napi);
ch                208 drivers/net/ethernet/lantiq_etop.c ltq_etop_free_channel(struct net_device *dev, struct ltq_etop_chan *ch)
ch                212 drivers/net/ethernet/lantiq_etop.c 	ltq_dma_free(&ch->dma);
ch                213 drivers/net/ethernet/lantiq_etop.c 	if (ch->dma.irq)
ch                214 drivers/net/ethernet/lantiq_etop.c 		free_irq(ch->dma.irq, priv);
ch                215 drivers/net/ethernet/lantiq_etop.c 	if (IS_RX(ch->idx)) {
ch                218 drivers/net/ethernet/lantiq_etop.c 			dev_kfree_skb_any(ch->skb[ch->dma.desc]);
ch                231 drivers/net/ethernet/lantiq_etop.c 			ltq_etop_free_channel(dev, &priv->ch[i]);
ch                266 drivers/net/ethernet/lantiq_etop.c 		struct ltq_etop_chan *ch = &priv->ch[i];
ch                268 drivers/net/ethernet/lantiq_etop.c 		ch->idx = ch->dma.nr = i;
ch                269 drivers/net/ethernet/lantiq_etop.c 		ch->dma.dev = &priv->pdev->dev;
ch                272 drivers/net/ethernet/lantiq_etop.c 			ltq_dma_alloc_tx(&ch->dma);
ch                275 drivers/net/ethernet/lantiq_etop.c 			ltq_dma_alloc_rx(&ch->dma);
ch                276 drivers/net/ethernet/lantiq_etop.c 			for (ch->dma.desc = 0; ch->dma.desc < LTQ_DESC_NUM;
ch                277 drivers/net/ethernet/lantiq_etop.c 					ch->dma.desc++)
ch                278 drivers/net/ethernet/lantiq_etop.c 				if (ltq_etop_alloc_skb(ch))
ch                280 drivers/net/ethernet/lantiq_etop.c 			ch->dma.desc = 0;
ch                283 drivers/net/ethernet/lantiq_etop.c 		ch->dma.irq = irq;
ch                422 drivers/net/ethernet/lantiq_etop.c 		struct ltq_etop_chan *ch = &priv->ch[i];
ch                426 drivers/net/ethernet/lantiq_etop.c 		ltq_dma_open(&ch->dma);
ch                427 drivers/net/ethernet/lantiq_etop.c 		ltq_dma_enable_irq(&ch->dma);
ch                428 drivers/net/ethernet/lantiq_etop.c 		napi_enable(&ch->napi);
ch                444 drivers/net/ethernet/lantiq_etop.c 		struct ltq_etop_chan *ch = &priv->ch[i];
ch                448 drivers/net/ethernet/lantiq_etop.c 		napi_disable(&ch->napi);
ch                449 drivers/net/ethernet/lantiq_etop.c 		ltq_dma_close(&ch->dma);
ch                460 drivers/net/ethernet/lantiq_etop.c 	struct ltq_etop_chan *ch = &priv->ch[(queue << 1) | 1];
ch                461 drivers/net/ethernet/lantiq_etop.c 	struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc];
ch                468 drivers/net/ethernet/lantiq_etop.c 	if ((desc->ctl & (LTQ_DMA_OWN | LTQ_DMA_C)) || ch->skb[ch->dma.desc]) {
ch                477 drivers/net/ethernet/lantiq_etop.c 	ch->skb[ch->dma.desc] = skb;
ch                487 drivers/net/ethernet/lantiq_etop.c 	ch->dma.desc++;
ch                488 drivers/net/ethernet/lantiq_etop.c 	ch->dma.desc %= LTQ_DESC_NUM;
ch                491 drivers/net/ethernet/lantiq_etop.c 	if (ch->dma.desc_base[ch->dma.desc].ctl & LTQ_DMA_OWN)
ch                679 drivers/net/ethernet/lantiq_etop.c 			netif_napi_add(dev, &priv->ch[i].napi,
ch                682 drivers/net/ethernet/lantiq_etop.c 			netif_napi_add(dev, &priv->ch[i].napi,
ch                684 drivers/net/ethernet/lantiq_etop.c 		priv->ch[i].netdev = dev;
ch                 98 drivers/net/ethernet/lantiq_xrx200.c static void xrx200_flush_dma(struct xrx200_chan *ch)
ch                103 drivers/net/ethernet/lantiq_xrx200.c 		struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc];
ch                110 drivers/net/ethernet/lantiq_xrx200.c 		ch->dma.desc++;
ch                111 drivers/net/ethernet/lantiq_xrx200.c 		ch->dma.desc %= LTQ_DESC_NUM;
ch                155 drivers/net/ethernet/lantiq_xrx200.c static int xrx200_alloc_skb(struct xrx200_chan *ch)
ch                159 drivers/net/ethernet/lantiq_xrx200.c 	ch->skb[ch->dma.desc] = netdev_alloc_skb_ip_align(ch->priv->net_dev,
ch                161 drivers/net/ethernet/lantiq_xrx200.c 	if (!ch->skb[ch->dma.desc]) {
ch                166 drivers/net/ethernet/lantiq_xrx200.c 	ch->dma.desc_base[ch->dma.desc].addr = dma_map_single(ch->priv->dev,
ch                167 drivers/net/ethernet/lantiq_xrx200.c 			ch->skb[ch->dma.desc]->data, XRX200_DMA_DATA_LEN,
ch                169 drivers/net/ethernet/lantiq_xrx200.c 	if (unlikely(dma_mapping_error(ch->priv->dev,
ch                170 drivers/net/ethernet/lantiq_xrx200.c 				       ch->dma.desc_base[ch->dma.desc].addr))) {
ch                171 drivers/net/ethernet/lantiq_xrx200.c 		dev_kfree_skb_any(ch->skb[ch->dma.desc]);
ch                177 drivers/net/ethernet/lantiq_xrx200.c 	ch->dma.desc_base[ch->dma.desc].ctl =
ch                184 drivers/net/ethernet/lantiq_xrx200.c static int xrx200_hw_receive(struct xrx200_chan *ch)
ch                186 drivers/net/ethernet/lantiq_xrx200.c 	struct xrx200_priv *priv = ch->priv;
ch                187 drivers/net/ethernet/lantiq_xrx200.c 	struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc];
ch                188 drivers/net/ethernet/lantiq_xrx200.c 	struct sk_buff *skb = ch->skb[ch->dma.desc];
ch                193 drivers/net/ethernet/lantiq_xrx200.c 	ret = xrx200_alloc_skb(ch);
ch                195 drivers/net/ethernet/lantiq_xrx200.c 	ch->dma.desc++;
ch                196 drivers/net/ethernet/lantiq_xrx200.c 	ch->dma.desc %= LTQ_DESC_NUM;
ch                214 drivers/net/ethernet/lantiq_xrx200.c 	struct xrx200_chan *ch = container_of(napi,
ch                220 drivers/net/ethernet/lantiq_xrx200.c 		struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc];
ch                223 drivers/net/ethernet/lantiq_xrx200.c 			ret = xrx200_hw_receive(ch);
ch                233 drivers/net/ethernet/lantiq_xrx200.c 		napi_complete(&ch->napi);
ch                234 drivers/net/ethernet/lantiq_xrx200.c 		ltq_dma_enable_irq(&ch->dma);
ch                242 drivers/net/ethernet/lantiq_xrx200.c 	struct xrx200_chan *ch = container_of(napi,
ch                244 drivers/net/ethernet/lantiq_xrx200.c 	struct net_device *net_dev = ch->priv->net_dev;
ch                249 drivers/net/ethernet/lantiq_xrx200.c 		struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->tx_free];
ch                252 drivers/net/ethernet/lantiq_xrx200.c 			struct sk_buff *skb = ch->skb[ch->tx_free];
ch                256 drivers/net/ethernet/lantiq_xrx200.c 			ch->skb[ch->tx_free] = NULL;
ch                258 drivers/net/ethernet/lantiq_xrx200.c 			memset(&ch->dma.desc_base[ch->tx_free], 0,
ch                260 drivers/net/ethernet/lantiq_xrx200.c 			ch->tx_free++;
ch                261 drivers/net/ethernet/lantiq_xrx200.c 			ch->tx_free %= LTQ_DESC_NUM;
ch                269 drivers/net/ethernet/lantiq_xrx200.c 	netdev_completed_queue(ch->priv->net_dev, pkts, bytes);
ch                272 drivers/net/ethernet/lantiq_xrx200.c 		napi_complete(&ch->napi);
ch                273 drivers/net/ethernet/lantiq_xrx200.c 		ltq_dma_enable_irq(&ch->dma);
ch                282 drivers/net/ethernet/lantiq_xrx200.c 	struct xrx200_chan *ch = &priv->chan_tx;
ch                283 drivers/net/ethernet/lantiq_xrx200.c 	struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc];
ch                296 drivers/net/ethernet/lantiq_xrx200.c 	if ((desc->ctl & (LTQ_DMA_OWN | LTQ_DMA_C)) || ch->skb[ch->dma.desc]) {
ch                302 drivers/net/ethernet/lantiq_xrx200.c 	ch->skb[ch->dma.desc] = skb;
ch                316 drivers/net/ethernet/lantiq_xrx200.c 	ch->dma.desc++;
ch                317 drivers/net/ethernet/lantiq_xrx200.c 	ch->dma.desc %= LTQ_DESC_NUM;
ch                318 drivers/net/ethernet/lantiq_xrx200.c 	if (ch->dma.desc == ch->tx_free)
ch                342 drivers/net/ethernet/lantiq_xrx200.c 	struct xrx200_chan *ch = ptr;
ch                344 drivers/net/ethernet/lantiq_xrx200.c 	ltq_dma_disable_irq(&ch->dma);
ch                345 drivers/net/ethernet/lantiq_xrx200.c 	ltq_dma_ack_irq(&ch->dma);
ch                347 drivers/net/ethernet/lantiq_xrx200.c 	napi_schedule(&ch->napi);
ch               1634 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 	struct cmd_msg_cache *ch = NULL;
ch               1642 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 		ch = &cmd->cache[i];
ch               1643 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 		if (in_size > ch->max_inbox_size)
ch               1645 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 		spin_lock_irq(&ch->lock);
ch               1646 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 		if (list_empty(&ch->head)) {
ch               1647 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 			spin_unlock_irq(&ch->lock);
ch               1650 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 		msg = list_entry(ch->head.next, typeof(*msg), list);
ch               1656 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 		spin_unlock_irq(&ch->lock);
ch               1820 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 	struct cmd_msg_cache *ch;
ch               1826 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 		ch = &dev->cmd.cache[i];
ch               1827 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 		list_for_each_entry_safe(msg, n, &ch->head, list) {
ch               1849 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 	struct cmd_msg_cache *ch;
ch               1856 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 		ch = &cmd->cache[k];
ch               1857 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 		spin_lock_init(&ch->lock);
ch               1858 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 		INIT_LIST_HEAD(&ch->head);
ch               1859 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 		ch->num_ent = cmd_cache_num_ent[k];
ch               1860 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 		ch->max_inbox_size = cmd_cache_ent_size[k];
ch               1861 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 		for (i = 0; i < ch->num_ent; i++) {
ch               1863 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 						 ch->max_inbox_size, 0);
ch               1866 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 			msg->parent = ch;
ch               1867 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 			list_add_tail(&msg->list, &ch->head);
ch                752 drivers/net/ethernet/mellanox/mlx5/core/en.h 	struct mlx5e_ch_stats ch;
ch               1146 drivers/net/ethernet/mellanox/mlx5/core/en.h 				struct ethtool_channels *ch);
ch               1148 drivers/net/ethernet/mellanox/mlx5/core/en.h 			       struct ethtool_channels *ch);
ch                 17 drivers/net/ethernet/mellanox/mlx5/core/en/hv_vhca_stats.c mlx5e_hv_vhca_fill_ring_stats(struct mlx5e_priv *priv, int ch,
ch                 23 drivers/net/ethernet/mellanox/mlx5/core/en/hv_vhca_stats.c 	stats = &priv->channel_stats[ch];
ch                 36 drivers/net/ethernet/mellanox/mlx5/core/en/hv_vhca_stats.c 	int ch, i = 0;
ch                 38 drivers/net/ethernet/mellanox/mlx5/core/en/hv_vhca_stats.c 	for (ch = 0; ch < priv->max_nch; ch++) {
ch                 46 drivers/net/ethernet/mellanox/mlx5/core/en/hv_vhca_stats.c 		mlx5e_hv_vhca_fill_ring_stats(priv, ch, buf);
ch                 49 drivers/net/ethernet/mellanox/mlx5/core/en/params.h 	int ch = qid - nch * group;
ch                 51 drivers/net/ethernet/mellanox/mlx5/core/en/params.h 	if (ch < 0 || ch >= nch)
ch                 54 drivers/net/ethernet/mellanox/mlx5/core/en/params.h 	*ix = ch;
ch                390 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c 				struct ethtool_channels *ch)
ch                394 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c 	ch->max_combined   = priv->max_nch;
ch                395 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c 	ch->combined_count = priv->channels.params.num_channels;
ch                398 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c 		ch->max_combined *= 2;
ch                399 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c 		ch->combined_count *= 2;
ch                406 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c 			       struct ethtool_channels *ch)
ch                410 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c 	mlx5e_ethtool_get_channels(priv, ch);
ch                414 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c 			       struct ethtool_channels *ch)
ch                417 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c 	unsigned int count = ch->combined_count;
ch                474 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c 			      struct ethtool_channels *ch)
ch                478 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c 	return mlx5e_ethtool_set_channels(priv, ch);
ch               1994 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	c->stats    = &priv->channel_stats[ix].ch;
ch               2925 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	int i, ch;
ch               2927 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	ch = priv->channels.num;
ch               2929 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	for (i = 0; i < ch; i++) {
ch               2937 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 			priv->channel_tc2realtxq[i][tc] = i + tc * ch;
ch                257 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c 				   struct ethtool_channels *ch)
ch                261 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c 	mlx5e_ethtool_get_channels(priv, ch);
ch                265 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c 				  struct ethtool_channels *ch)
ch                269 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c 	u32 new_channels_amount = ch->combined_count;
ch                273 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c 	err = mlx5e_ethtool_set_channels(priv, ch);
ch                187 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c 		struct mlx5e_ch_stats *ch_stats = &channel_stats->ch;
ch               1631 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c 				MLX5E_READ_CTR64_CPU(&priv->channel_stats[i].ch,
ch                 86 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c 			      struct ethtool_channels *ch)
ch                 90 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c 	return mlx5e_ethtool_set_channels(priv, ch);
ch                 94 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c 			       struct ethtool_channels *ch)
ch                 98 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c 	mlx5e_ethtool_get_channels(priv, ch);
ch                 25 drivers/net/ethernet/netronome/nfp/flower/cmsg.c 	struct nfp_flower_cmsg_hdr *ch;
ch                 34 drivers/net/ethernet/netronome/nfp/flower/cmsg.c 	ch = nfp_flower_cmsg_get_hdr(skb);
ch                 35 drivers/net/ethernet/netronome/nfp/flower/cmsg.c 	ch->pad = 0;
ch                 36 drivers/net/ethernet/netronome/nfp/flower/cmsg.c 	ch->version = NFP_FLOWER_CMSG_VER1;
ch                 37 drivers/net/ethernet/netronome/nfp/flower/cmsg.c 	ch->type = type;
ch                491 drivers/net/ethernet/pensando/ionic/ionic_ethtool.c 			       struct ethtool_channels *ch)
ch                496 drivers/net/ethernet/pensando/ionic/ionic_ethtool.c 	ch->max_combined = lif->ionic->ntxqs_per_lif;
ch                499 drivers/net/ethernet/pensando/ionic/ionic_ethtool.c 	ch->combined_count = lif->nxqs;
ch                503 drivers/net/ethernet/pensando/ionic/ionic_ethtool.c 			      struct ethtool_channels *ch)
ch                508 drivers/net/ethernet/pensando/ionic/ionic_ethtool.c 	if (!ch->combined_count || ch->other_count ||
ch                509 drivers/net/ethernet/pensando/ionic/ionic_ethtool.c 	    ch->rx_count || ch->tx_count)
ch                512 drivers/net/ethernet/pensando/ionic/ionic_ethtool.c 	if (ch->combined_count == lif->nxqs)
ch                522 drivers/net/ethernet/pensando/ionic/ionic_ethtool.c 	lif->nxqs = ch->combined_count;
ch               1324 drivers/net/ethernet/renesas/ravb_main.c 				const char *ch)
ch               1329 drivers/net/ethernet/renesas/ravb_main.c 	name = devm_kasprintf(dev, GFP_KERNEL, "%s:%s", ndev->name, ch);
ch                148 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		struct stmmac_channel *ch = &priv->channel[queue];
ch                151 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			napi_disable(&ch->rx_napi);
ch                153 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			napi_disable(&ch->tx_napi);
ch                169 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		struct stmmac_channel *ch = &priv->channel[queue];
ch                172 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			napi_enable(&ch->rx_napi);
ch                174 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			napi_enable(&ch->tx_napi);
ch               2060 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	struct stmmac_channel *ch = &priv->channel[chan];
ch               2063 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		if (napi_schedule_prep(&ch->rx_napi)) {
ch               2065 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			__napi_schedule_irqoff(&ch->rx_napi);
ch               2071 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		napi_schedule_irqoff(&ch->tx_napi);
ch               2262 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	struct stmmac_channel *ch;
ch               2264 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	ch = &priv->channel[tx_q->queue_index];
ch               2270 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (likely(napi_schedule_prep(&ch->tx_napi)))
ch               2271 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		__napi_schedule(&ch->tx_napi);
ch               3459 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	struct stmmac_channel *ch = &priv->channel[queue];
ch               3579 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			skb = napi_alloc_skb(&ch->rx_napi, len);
ch               3644 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		napi_gro_receive(&ch->rx_napi, skb);
ch               3667 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	struct stmmac_channel *ch =
ch               3669 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	struct stmmac_priv *priv = ch->priv_data;
ch               3670 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 chan = ch->index;
ch               3683 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	struct stmmac_channel *ch =
ch               3685 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	struct stmmac_priv *priv = ch->priv_data;
ch               3687 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 chan = ch->index;
ch               4629 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		struct stmmac_channel *ch = &priv->channel[queue];
ch               4631 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		ch->priv_data = priv;
ch               4632 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		ch->index = queue;
ch               4635 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			netif_napi_add(ndev, &ch->rx_napi, stmmac_napi_poll_rx,
ch               4639 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			netif_tx_napi_add(ndev, &ch->tx_napi,
ch               4701 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		struct stmmac_channel *ch = &priv->channel[queue];
ch               4704 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			netif_napi_del(&ch->rx_napi);
ch               4706 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			netif_napi_del(&ch->tx_napi);
ch                791 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 		struct stmmac_channel *ch = &priv->channel[i];
ch                801 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 		napi_reschedule(&ch->rx_napi);
ch                370 drivers/net/ethernet/ti/cpsw.c 	int ch;
ch                380 drivers/net/ethernet/ti/cpsw.c 	int			ch;
ch                386 drivers/net/ethernet/ti/cpsw.c 		ch = xmeta->ch;
ch                391 drivers/net/ethernet/ti/cpsw.c 		ch = skb_get_queue_mapping(skb);
ch                399 drivers/net/ethernet/ti/cpsw.c 	txq = netdev_get_tx_queue(ndev, ch);
ch                461 drivers/net/ethernet/ti/cpsw.c 	xmeta->ch = 0;
ch                462 drivers/net/ethernet/ti/cpsw.c 	txch = cpsw->txv[0].ch;
ch                488 drivers/net/ethernet/ti/cpsw.c static int cpsw_run_xdp(struct cpsw_priv *priv, int ch, struct xdp_buff *xdp,
ch                543 drivers/net/ethernet/ti/cpsw.c 	page_pool_recycle_direct(cpsw->page_pool[ch], page);
ch                575 drivers/net/ethernet/ti/cpsw.c static int cpsw_ndev_create_xdp_rxq(struct cpsw_priv *priv, int ch)
ch                582 drivers/net/ethernet/ti/cpsw.c 	pool = cpsw->page_pool[ch];
ch                583 drivers/net/ethernet/ti/cpsw.c 	rxq = &priv->xdp_rxq[ch];
ch                585 drivers/net/ethernet/ti/cpsw.c 	ret = xdp_rxq_info_reg(rxq, priv->ndev, ch);
ch                596 drivers/net/ethernet/ti/cpsw.c static void cpsw_ndev_destroy_xdp_rxq(struct cpsw_priv *priv, int ch)
ch                598 drivers/net/ethernet/ti/cpsw.c 	struct xdp_rxq_info *rxq = &priv->xdp_rxq[ch];
ch                606 drivers/net/ethernet/ti/cpsw.c static int cpsw_create_rx_pool(struct cpsw_common *cpsw, int ch)
ch                611 drivers/net/ethernet/ti/cpsw.c 	pool_size = cpdma_chan_get_rx_buf_num(cpsw->rxv[ch].ch);
ch                616 drivers/net/ethernet/ti/cpsw.c 		cpsw->page_pool[ch] = pool;
ch                624 drivers/net/ethernet/ti/cpsw.c 	int i, ch;
ch                626 drivers/net/ethernet/ti/cpsw.c 	for (ch = 0; ch < cpsw->rx_ch_num; ch++) {
ch                632 drivers/net/ethernet/ti/cpsw.c 			cpsw_ndev_destroy_xdp_rxq(netdev_priv(ndev), ch);
ch                635 drivers/net/ethernet/ti/cpsw.c 		page_pool_destroy(cpsw->page_pool[ch]);
ch                636 drivers/net/ethernet/ti/cpsw.c 		cpsw->page_pool[ch] = NULL;
ch                643 drivers/net/ethernet/ti/cpsw.c 	int i, ch, ret;
ch                645 drivers/net/ethernet/ti/cpsw.c 	for (ch = 0; ch < cpsw->rx_ch_num; ch++) {
ch                646 drivers/net/ethernet/ti/cpsw.c 		ret = cpsw_create_rx_pool(cpsw, ch);
ch                658 drivers/net/ethernet/ti/cpsw.c 			ret = cpsw_ndev_create_xdp_rxq(netdev_priv(ndev), ch);
ch                679 drivers/net/ethernet/ti/cpsw.c 	int			ret = 0, port, ch = xmeta->ch;
ch                695 drivers/net/ethernet/ti/cpsw.c 	pool = cpsw->page_pool[ch];
ch                736 drivers/net/ethernet/ti/cpsw.c 		xdp.rxq = &priv->xdp_rxq[ch];
ch                738 drivers/net/ethernet/ti/cpsw.c 		ret = cpsw_run_xdp(priv, ch, &xdp, page);
ch                777 drivers/net/ethernet/ti/cpsw.c 	xmeta->ch = ch;
ch                780 drivers/net/ethernet/ti/cpsw.c 	ret = cpdma_chan_submit_mapped(cpsw->rxv[ch].ch, new_page, dma,
ch                798 drivers/net/ethernet/ti/cpsw.c 		ch_rate = cpdma_chan_get_rate(txv[i].ch);
ch                834 drivers/net/ethernet/ti/cpsw.c 		ch_rate = cpdma_chan_get_rate(txv[i].ch);
ch                847 drivers/net/ethernet/ti/cpsw.c 			cpdma_chan_set_weight(cpsw->txv[i].ch, ch_weight);
ch                852 drivers/net/ethernet/ti/cpsw.c 			cpdma_chan_set_weight(cpsw->txv[i].ch, 0);
ch                908 drivers/net/ethernet/ti/cpsw.c 	int			num_tx, cur_budget, ch;
ch                914 drivers/net/ethernet/ti/cpsw.c 	for (ch = 0, num_tx = 0; ch_map & 0xff; ch_map <<= 1, ch++) {
ch                918 drivers/net/ethernet/ti/cpsw.c 		txv = &cpsw->txv[ch];
ch                924 drivers/net/ethernet/ti/cpsw.c 		num_tx += cpdma_chan_process(txv->ch, cur_budget);
ch                942 drivers/net/ethernet/ti/cpsw.c 	num_tx = cpdma_chan_process(cpsw->txv[0].ch, budget);
ch                958 drivers/net/ethernet/ti/cpsw.c 	int			num_rx, cur_budget, ch;
ch                964 drivers/net/ethernet/ti/cpsw.c 	for (ch = 0, num_rx = 0; ch_map; ch_map >>= 1, ch++) {
ch                968 drivers/net/ethernet/ti/cpsw.c 		rxv = &cpsw->rxv[ch];
ch                974 drivers/net/ethernet/ti/cpsw.c 		num_rx += cpdma_chan_process(rxv->ch, cur_budget);
ch                992 drivers/net/ethernet/ti/cpsw.c 	num_rx = cpdma_chan_process(cpsw->rxv[0].ch, budget);
ch               1145 drivers/net/ethernet/ti/cpsw.c 		ch_rate = cpdma_chan_get_rate(cpsw->txv[i].ch);
ch               1358 drivers/net/ethernet/ti/cpsw.c 	int ch, i, ret;
ch               1361 drivers/net/ethernet/ti/cpsw.c 	for (ch = 0; ch < cpsw->rx_ch_num; ch++) {
ch               1362 drivers/net/ethernet/ti/cpsw.c 		pool = cpsw->page_pool[ch];
ch               1363 drivers/net/ethernet/ti/cpsw.c 		ch_buf_num = cpdma_chan_get_rx_buf_num(cpsw->rxv[ch].ch);
ch               1373 drivers/net/ethernet/ti/cpsw.c 			xmeta->ch = ch;
ch               1376 drivers/net/ethernet/ti/cpsw.c 			ret = cpdma_chan_idle_submit_mapped(cpsw->rxv[ch].ch,
ch               1383 drivers/net/ethernet/ti/cpsw.c 					 ch, ret);
ch               1390 drivers/net/ethernet/ti/cpsw.c 			  ch, ch_buf_num);
ch               1819 drivers/net/ethernet/ti/cpsw.c 	txch = cpsw->txv[q_idx].ch;
ch               2042 drivers/net/ethernet/ti/cpsw.c 	int ch;
ch               2047 drivers/net/ethernet/ti/cpsw.c 	for (ch = 0; ch < cpsw->tx_ch_num; ch++) {
ch               2048 drivers/net/ethernet/ti/cpsw.c 		cpdma_chan_stop(cpsw->txv[ch].ch);
ch               2049 drivers/net/ethernet/ti/cpsw.c 		cpdma_chan_start(cpsw->txv[ch].ch);
ch               2250 drivers/net/ethernet/ti/cpsw.c 	ret = cpdma_chan_set_rate(cpsw->txv[queue].ch, ch_rate);
ch               2771 drivers/net/ethernet/ti/cpsw.c 	int ret = 0, ch;
ch               2858 drivers/net/ethernet/ti/cpsw.c 	ch = cpsw->quirk_irq ? 0 : 7;
ch               2859 drivers/net/ethernet/ti/cpsw.c 	cpsw->txv[0].ch = cpdma_chan_create(cpsw->dma, ch, cpsw_tx_handler, 0);
ch               2860 drivers/net/ethernet/ti/cpsw.c 	if (IS_ERR(cpsw->txv[0].ch)) {
ch               2862 drivers/net/ethernet/ti/cpsw.c 		ret = PTR_ERR(cpsw->txv[0].ch);
ch               2866 drivers/net/ethernet/ti/cpsw.c 	cpsw->rxv[0].ch = cpdma_chan_create(cpsw->dma, 0, cpsw_rx_handler, 1);
ch               2867 drivers/net/ethernet/ti/cpsw.c 	if (IS_ERR(cpsw->rxv[0].ch)) {
ch               2869 drivers/net/ethernet/ti/cpsw.c 		ret = PTR_ERR(cpsw->rxv[0].ch);
ch                277 drivers/net/ethernet/ti/cpsw_ethtool.c 	int i, l, ch;
ch                284 drivers/net/ethernet/ti/cpsw_ethtool.c 	for (ch = 0; ch < cpsw->rx_ch_num; ch++) {
ch                285 drivers/net/ethernet/ti/cpsw_ethtool.c 		cpdma_chan_get_stats(cpsw->rxv[ch].ch, &ch_stats);
ch                293 drivers/net/ethernet/ti/cpsw_ethtool.c 	for (ch = 0; ch < cpsw->tx_ch_num; ch++) {
ch                294 drivers/net/ethernet/ti/cpsw_ethtool.c 		cpdma_chan_get_stats(cpsw->txv[ch].ch, &ch_stats);
ch                381 drivers/net/ethernet/ti/cpsw_ethtool.c void cpsw_get_channels(struct net_device *ndev, struct ethtool_channels *ch)
ch                385 drivers/net/ethernet/ti/cpsw_ethtool.c 	ch->max_rx = cpsw->quirk_irq ? 1 : CPSW_MAX_QUEUES;
ch                386 drivers/net/ethernet/ti/cpsw_ethtool.c 	ch->max_tx = cpsw->quirk_irq ? 1 : CPSW_MAX_QUEUES;
ch                387 drivers/net/ethernet/ti/cpsw_ethtool.c 	ch->max_combined = 0;
ch                388 drivers/net/ethernet/ti/cpsw_ethtool.c 	ch->max_other = 0;
ch                389 drivers/net/ethernet/ti/cpsw_ethtool.c 	ch->other_count = 0;
ch                390 drivers/net/ethernet/ti/cpsw_ethtool.c 	ch->rx_count = cpsw->rx_ch_num;
ch                391 drivers/net/ethernet/ti/cpsw_ethtool.c 	ch->tx_count = cpsw->tx_ch_num;
ch                392 drivers/net/ethernet/ti/cpsw_ethtool.c 	ch->combined_count = 0;
ch                510 drivers/net/ethernet/ti/cpsw_ethtool.c 				  struct ethtool_channels *ch)
ch                517 drivers/net/ethernet/ti/cpsw_ethtool.c 	if (ch->combined_count)
ch                521 drivers/net/ethernet/ti/cpsw_ethtool.c 	if (!ch->rx_count || !ch->tx_count)
ch                524 drivers/net/ethernet/ti/cpsw_ethtool.c 	if (ch->rx_count > cpsw->data.channels ||
ch                525 drivers/net/ethernet/ti/cpsw_ethtool.c 	    ch->tx_count > cpsw->data.channels)
ch                538 drivers/net/ethernet/ti/cpsw_ethtool.c 	int ret, *ch, vch;
ch                541 drivers/net/ethernet/ti/cpsw_ethtool.c 		ch = &cpsw->rx_ch_num;
ch                545 drivers/net/ethernet/ti/cpsw_ethtool.c 		ch = &cpsw->tx_ch_num;
ch                550 drivers/net/ethernet/ti/cpsw_ethtool.c 	while (*ch < ch_num) {
ch                551 drivers/net/ethernet/ti/cpsw_ethtool.c 		vch = rx ? *ch : 7 - *ch;
ch                552 drivers/net/ethernet/ti/cpsw_ethtool.c 		vec[*ch].ch = cpdma_chan_create(cpsw->dma, vch, handler, rx);
ch                553 drivers/net/ethernet/ti/cpsw_ethtool.c 		queue = netdev_get_tx_queue(priv->ndev, *ch);
ch                556 drivers/net/ethernet/ti/cpsw_ethtool.c 		if (IS_ERR(vec[*ch].ch))
ch                557 drivers/net/ethernet/ti/cpsw_ethtool.c 			return PTR_ERR(vec[*ch].ch);
ch                559 drivers/net/ethernet/ti/cpsw_ethtool.c 		if (!vec[*ch].ch)
ch                562 drivers/net/ethernet/ti/cpsw_ethtool.c 		cpsw_info(priv, ifup, "created new %d %s channel\n", *ch,
ch                564 drivers/net/ethernet/ti/cpsw_ethtool.c 		(*ch)++;
ch                567 drivers/net/ethernet/ti/cpsw_ethtool.c 	while (*ch > ch_num) {
ch                568 drivers/net/ethernet/ti/cpsw_ethtool.c 		(*ch)--;
ch                570 drivers/net/ethernet/ti/cpsw_ethtool.c 		ret = cpdma_chan_destroy(vec[*ch].ch);
ch                574 drivers/net/ethernet/ti/cpsw_ethtool.c 		cpsw_info(priv, ifup, "destroyed %d %s channel\n", *ch,
ch                319 drivers/net/ethernet/ti/cpsw_priv.h 	struct cpdma_chan *ch;
ch                420 drivers/net/ethernet/ti/cpsw_priv.h void cpsw_get_channels(struct net_device *ndev, struct ethtool_channels *ch);
ch                406 drivers/net/ethernet/ti/davinci_cpdma.c static int cpdma_chan_fit_rate(struct cpdma_chan *ch, u32 rate,
ch                409 drivers/net/ethernet/ti/davinci_cpdma.c 	struct cpdma_ctlr *ctlr = ch->ctlr;
ch                411 drivers/net/ethernet/ti/davinci_cpdma.c 	u32 old_rate = ch->rate;
ch                421 drivers/net/ethernet/ti/davinci_cpdma.c 		if (chan == ch)
ch                439 drivers/net/ethernet/ti/davinci_cpdma.c 	ch->rate = old_rate;
ch                446 drivers/net/ethernet/ti/davinci_cpdma.c 				  struct cpdma_chan *ch)
ch                455 drivers/net/ethernet/ti/davinci_cpdma.c 	if (!ch->rate) {
ch                456 drivers/net/ethernet/ti/davinci_cpdma.c 		ch->rate_factor = 0;
ch                466 drivers/net/ethernet/ti/davinci_cpdma.c 	min_send_cnt = freq - ch->rate;
ch                467 drivers/net/ethernet/ti/davinci_cpdma.c 	send_cnt = DIV_ROUND_UP(min_send_cnt, ch->rate);
ch                469 drivers/net/ethernet/ti/davinci_cpdma.c 		divident = ch->rate * send_cnt;
ch                477 drivers/net/ethernet/ti/davinci_cpdma.c 		delta = new_rate >= ch->rate ? new_rate - ch->rate : delta;
ch                496 drivers/net/ethernet/ti/davinci_cpdma.c 		send_cnt = DIV_ROUND_CLOSEST_ULL(divident, ch->rate);
ch                501 drivers/net/ethernet/ti/davinci_cpdma.c 	ch->rate = best_rate;
ch                502 drivers/net/ethernet/ti/davinci_cpdma.c 	ch->rate_factor = best_send_cnt | (best_idle_cnt << 16);
ch                505 drivers/net/ethernet/ti/davinci_cpdma.c 	rate_reg = CPDMA_TX_PRI0_RATE + 4 * ch->chan_num;
ch                506 drivers/net/ethernet/ti/davinci_cpdma.c 	dma_reg_write(ctlr, rate_reg, ch->rate_factor);
ch                784 drivers/net/ethernet/ti/davinci_cpdma.c int cpdma_chan_set_weight(struct cpdma_chan *ch, int weight)
ch                786 drivers/net/ethernet/ti/davinci_cpdma.c 	struct cpdma_ctlr *ctlr = ch->ctlr;
ch                791 drivers/net/ethernet/ti/davinci_cpdma.c 	spin_lock_irqsave(&ch->lock, ch_flags);
ch                792 drivers/net/ethernet/ti/davinci_cpdma.c 	if (ch->weight == weight) {
ch                793 drivers/net/ethernet/ti/davinci_cpdma.c 		spin_unlock_irqrestore(&ch->lock, ch_flags);
ch                797 drivers/net/ethernet/ti/davinci_cpdma.c 	ch->weight = weight;
ch                798 drivers/net/ethernet/ti/davinci_cpdma.c 	spin_unlock_irqrestore(&ch->lock, ch_flags);
ch                825 drivers/net/ethernet/ti/davinci_cpdma.c int cpdma_chan_set_rate(struct cpdma_chan *ch, u32 rate)
ch                832 drivers/net/ethernet/ti/davinci_cpdma.c 	if (!ch || !is_tx_chan(ch))
ch                835 drivers/net/ethernet/ti/davinci_cpdma.c 	if (ch->rate == rate)
ch                838 drivers/net/ethernet/ti/davinci_cpdma.c 	ctlr = ch->ctlr;
ch                840 drivers/net/ethernet/ti/davinci_cpdma.c 	spin_lock_irqsave(&ch->lock, ch_flags);
ch                842 drivers/net/ethernet/ti/davinci_cpdma.c 	ret = cpdma_chan_fit_rate(ch, rate, &rmask, &prio_mode);
ch                846 drivers/net/ethernet/ti/davinci_cpdma.c 	ret = cpdma_chan_set_factors(ctlr, ch);
ch                850 drivers/net/ethernet/ti/davinci_cpdma.c 	spin_unlock_irqrestore(&ch->lock, ch_flags);
ch                859 drivers/net/ethernet/ti/davinci_cpdma.c 	spin_unlock_irqrestore(&ch->lock, ch_flags);
ch                864 drivers/net/ethernet/ti/davinci_cpdma.c u32 cpdma_chan_get_rate(struct cpdma_chan *ch)
ch                869 drivers/net/ethernet/ti/davinci_cpdma.c 	spin_lock_irqsave(&ch->lock, flags);
ch                870 drivers/net/ethernet/ti/davinci_cpdma.c 	rate = ch->rate;
ch                871 drivers/net/ethernet/ti/davinci_cpdma.c 	spin_unlock_irqrestore(&ch->lock, flags);
ch                 96 drivers/net/ethernet/ti/davinci_cpdma.h int cpdma_chan_set_weight(struct cpdma_chan *ch, int weight);
ch                 97 drivers/net/ethernet/ti/davinci_cpdma.h int cpdma_chan_set_rate(struct cpdma_chan *ch, u32 rate);
ch                 98 drivers/net/ethernet/ti/davinci_cpdma.h u32 cpdma_chan_get_rate(struct cpdma_chan *ch);
ch                151 drivers/net/ethernet/ti/davinci_emac.c # define EMAC_MBP_PROMISCCH(ch)		(((ch) & 0x7) << 16)
ch                153 drivers/net/ethernet/ti/davinci_emac.c # define EMAC_MBP_BCASTCHAN(ch)		(((ch) & 0x7) << 8)
ch                155 drivers/net/ethernet/ti/davinci_emac.c # define EMAC_MBP_MCASTCHAN(ch)		((ch) & 0x7)
ch               1011 drivers/net/ethernet/ti/davinci_emac.c static void emac_set_type0addr(struct emac_priv *priv, u32 ch, char *mac_addr)
ch               1021 drivers/net/ethernet/ti/davinci_emac.c 	val |= BIT(ch);
ch               1024 drivers/net/ethernet/ti/davinci_emac.c 	val &= ~BIT(ch);
ch               1038 drivers/net/ethernet/ti/davinci_emac.c static void emac_set_type1addr(struct emac_priv *priv, u32 ch, char *mac_addr)
ch               1041 drivers/net/ethernet/ti/davinci_emac.c 	emac_write(EMAC_MACINDEX, ch);
ch               1047 drivers/net/ethernet/ti/davinci_emac.c 	emac_set_type0addr(priv, ch, mac_addr);
ch               1062 drivers/net/ethernet/ti/davinci_emac.c static void emac_set_type2addr(struct emac_priv *priv, u32 ch,
ch               1070 drivers/net/ethernet/ti/davinci_emac.c 	val = ((mac_addr[5] << 8) | mac_addr[4] | ((ch & 0x7) << 16) | \
ch               1073 drivers/net/ethernet/ti/davinci_emac.c 	emac_set_type0addr(priv, ch, mac_addr);
ch               1086 drivers/net/ethernet/ti/davinci_emac.c static void emac_setmac(struct emac_priv *priv, u32 ch, char *mac_addr)
ch               1091 drivers/net/ethernet/ti/davinci_emac.c 		emac_set_type0addr(priv, ch, mac_addr);
ch               1095 drivers/net/ethernet/ti/davinci_emac.c 			emac_set_type1addr(priv, ch, mac_addr);
ch               1097 drivers/net/ethernet/ti/davinci_emac.c 		emac_set_type2addr(priv, ch, mac_addr, ch, 1);
ch               1098 drivers/net/ethernet/ti/davinci_emac.c 		emac_set_type0addr(priv, ch, mac_addr);
ch               1258 drivers/net/ethernet/ti/davinci_emac.c 		u32 ch, cause;
ch               1267 drivers/net/ethernet/ti/davinci_emac.c 			ch = ((status & EMAC_MACSTATUS_TXERRCH_MASK) >>
ch               1271 drivers/net/ethernet/ti/davinci_emac.c 					&emac_txhost_errcodes[cause][0], ch);
ch               1277 drivers/net/ethernet/ti/davinci_emac.c 			ch = ((status & EMAC_MACSTATUS_RXERRCH_MASK) >>
ch               1281 drivers/net/ethernet/ti/davinci_emac.c 					&emac_rxhost_errcodes[cause][0], ch);
ch                285 drivers/net/ethernet/xscale/ixp4xx_eth.c 	u32 ch, hi, lo, val;
ch                291 drivers/net/ethernet/xscale/ixp4xx_eth.c 	ch = PORT2CHANNEL(port);
ch                295 drivers/net/ethernet/xscale/ixp4xx_eth.c 	val = __raw_readl(&regs->channel[ch].ch_event);
ch                300 drivers/net/ethernet/xscale/ixp4xx_eth.c 	lo = __raw_readl(&regs->channel[ch].src_uuid_lo);
ch                301 drivers/net/ethernet/xscale/ixp4xx_eth.c 	hi = __raw_readl(&regs->channel[ch].src_uuid_hi);
ch                309 drivers/net/ethernet/xscale/ixp4xx_eth.c 	lo = __raw_readl(&regs->channel[ch].rx_snap_lo);
ch                310 drivers/net/ethernet/xscale/ixp4xx_eth.c 	hi = __raw_readl(&regs->channel[ch].rx_snap_hi);
ch                319 drivers/net/ethernet/xscale/ixp4xx_eth.c 	__raw_writel(RX_SNAPSHOT_LOCKED, &regs->channel[ch].ch_event);
ch                328 drivers/net/ethernet/xscale/ixp4xx_eth.c 	u32 ch, cnt, hi, lo, val;
ch                336 drivers/net/ethernet/xscale/ixp4xx_eth.c 	ch = PORT2CHANNEL(port);
ch                345 drivers/net/ethernet/xscale/ixp4xx_eth.c 		val = __raw_readl(&regs->channel[ch].ch_event);
ch                355 drivers/net/ethernet/xscale/ixp4xx_eth.c 	lo = __raw_readl(&regs->channel[ch].tx_snap_lo);
ch                356 drivers/net/ethernet/xscale/ixp4xx_eth.c 	hi = __raw_readl(&regs->channel[ch].tx_snap_hi);
ch                365 drivers/net/ethernet/xscale/ixp4xx_eth.c 	__raw_writel(TX_SNAPSHOT_LOCKED, &regs->channel[ch].ch_event);
ch                373 drivers/net/ethernet/xscale/ixp4xx_eth.c 	int ch;
ch                381 drivers/net/ethernet/xscale/ixp4xx_eth.c 	ch = PORT2CHANNEL(port);
ch                393 drivers/net/ethernet/xscale/ixp4xx_eth.c 		__raw_writel(0, &regs->channel[ch].ch_control);
ch                397 drivers/net/ethernet/xscale/ixp4xx_eth.c 		__raw_writel(MASTER_MODE, &regs->channel[ch].ch_control);
ch                407 drivers/net/ethernet/xscale/ixp4xx_eth.c 		     &regs->channel[ch].ch_event);
ch                734 drivers/net/phy/dp83640.c static inline u16 exts_chan_to_edata(int ch)
ch                736 drivers/net/phy/dp83640.c 	return 1 << ((ch + EXT_EVENT) * 2);
ch               2316 drivers/net/ppp/ppp_generic.c 	struct channel *ch;
ch               2372 drivers/net/ppp/ppp_generic.c 	list_for_each_entry(ch, &ppp->channels, clist) {
ch               2373 drivers/net/ppp/ppp_generic.c 		if (seq_before(ch->lastseq, seq))
ch               2374 drivers/net/ppp/ppp_generic.c 			seq = ch->lastseq;
ch                370 drivers/net/wan/ixp4xx_hss.c 	int ch;
ch                376 drivers/net/wan/ixp4xx_hss.c 	for (ch = 0; ch < MAX_CHANNELS; ch++) {
ch                380 drivers/net/wan/ixp4xx_hss.c 		if (ch % 16 == 15) {
ch                381 drivers/net/wan/ixp4xx_hss.c 			msg.index = HSS_CONFIG_TX_LUT + ((ch / 4) & ~3);
ch                334 drivers/net/wan/z85230.c 	u8 ch,stat;
ch                341 drivers/net/wan/z85230.c 		ch=read_zsdata(c);
ch                349 drivers/net/wan/z85230.c 			*c->dptr++=ch;
ch               1127 drivers/net/wireless/ath/ath10k/htt_rx.c 	struct ieee80211_channel *ch;
ch               1130 drivers/net/wireless/ath/ath10k/htt_rx.c 	ch = ar->scan_channel;
ch               1131 drivers/net/wireless/ath/ath10k/htt_rx.c 	if (!ch)
ch               1132 drivers/net/wireless/ath/ath10k/htt_rx.c 		ch = ar->rx_channel;
ch               1133 drivers/net/wireless/ath/ath10k/htt_rx.c 	if (!ch)
ch               1134 drivers/net/wireless/ath/ath10k/htt_rx.c 		ch = ath10k_htt_rx_h_peer_channel(ar, rxd);
ch               1135 drivers/net/wireless/ath/ath10k/htt_rx.c 	if (!ch)
ch               1136 drivers/net/wireless/ath/ath10k/htt_rx.c 		ch = ath10k_htt_rx_h_vdev_channel(ar, vdev_id);
ch               1137 drivers/net/wireless/ath/ath10k/htt_rx.c 	if (!ch)
ch               1138 drivers/net/wireless/ath/ath10k/htt_rx.c 		ch = ath10k_htt_rx_h_any_channel(ar);
ch               1139 drivers/net/wireless/ath/ath10k/htt_rx.c 	if (!ch)
ch               1140 drivers/net/wireless/ath/ath10k/htt_rx.c 		ch = ar->tgt_oper_chan;
ch               1143 drivers/net/wireless/ath/ath10k/htt_rx.c 	if (!ch)
ch               1146 drivers/net/wireless/ath/ath10k/htt_rx.c 	status->band = ch->band;
ch               1147 drivers/net/wireless/ath/ath10k/htt_rx.c 	status->freq = ch->center_freq;
ch               2164 drivers/net/wireless/ath/ath10k/htt_rx.c 	struct ieee80211_channel *ch;
ch               2251 drivers/net/wireless/ath/ath10k/htt_rx.c 	ch = ar->scan_channel;
ch               2252 drivers/net/wireless/ath/ath10k/htt_rx.c 	if (!ch)
ch               2253 drivers/net/wireless/ath/ath10k/htt_rx.c 		ch = ar->rx_channel;
ch               2254 drivers/net/wireless/ath/ath10k/htt_rx.c 	if (!ch)
ch               2255 drivers/net/wireless/ath/ath10k/htt_rx.c 		ch = ath10k_htt_rx_h_any_channel(ar);
ch               2256 drivers/net/wireless/ath/ath10k/htt_rx.c 	if (!ch)
ch               2257 drivers/net/wireless/ath/ath10k/htt_rx.c 		ch = ar->tgt_oper_chan;
ch               2260 drivers/net/wireless/ath/ath10k/htt_rx.c 	if (ch) {
ch               2261 drivers/net/wireless/ath/ath10k/htt_rx.c 		rx_status->band = ch->band;
ch               2262 drivers/net/wireless/ath/ath10k/htt_rx.c 		rx_status->freq = ch->center_freq;
ch               3081 drivers/net/wireless/ath/ath10k/mac.c 	struct wmi_channel_arg *ch;
ch               3108 drivers/net/wireless/ath/ath10k/mac.c 	ch = arg.channels;
ch               3119 drivers/net/wireless/ath/ath10k/mac.c 			ch->allow_ht = true;
ch               3122 drivers/net/wireless/ath/ath10k/mac.c 			ch->allow_vht = true;
ch               3124 drivers/net/wireless/ath/ath10k/mac.c 			ch->allow_ibss =
ch               3127 drivers/net/wireless/ath/ath10k/mac.c 			ch->ht40plus =
ch               3130 drivers/net/wireless/ath/ath10k/mac.c 			ch->chan_radar =
ch               3134 drivers/net/wireless/ath/ath10k/mac.c 			ch->passive = passive;
ch               3141 drivers/net/wireless/ath/ath10k/mac.c 			ch->passive |= ch->chan_radar;
ch               3143 drivers/net/wireless/ath/ath10k/mac.c 			ch->freq = channel->center_freq;
ch               3144 drivers/net/wireless/ath/ath10k/mac.c 			ch->band_center_freq1 = channel->center_freq;
ch               3145 drivers/net/wireless/ath/ath10k/mac.c 			ch->min_power = 0;
ch               3146 drivers/net/wireless/ath/ath10k/mac.c 			ch->max_power = channel->max_power * 2;
ch               3147 drivers/net/wireless/ath/ath10k/mac.c 			ch->max_reg_power = channel->max_reg_power * 2;
ch               3148 drivers/net/wireless/ath/ath10k/mac.c 			ch->max_antenna_gain = channel->max_antenna_gain * 2;
ch               3149 drivers/net/wireless/ath/ath10k/mac.c 			ch->reg_class_id = 0; /* FIXME */
ch               3156 drivers/net/wireless/ath/ath10k/mac.c 				ch->mode = MODE_11G;
ch               3158 drivers/net/wireless/ath/ath10k/mac.c 				ch->mode = MODE_11A;
ch               3160 drivers/net/wireless/ath/ath10k/mac.c 			if (WARN_ON_ONCE(ch->mode == MODE_UNKNOWN))
ch               3165 drivers/net/wireless/ath/ath10k/mac.c 				    ch - arg.channels, arg.n_channels,
ch               3166 drivers/net/wireless/ath/ath10k/mac.c 				   ch->freq, ch->max_power, ch->max_reg_power,
ch               3167 drivers/net/wireless/ath/ath10k/mac.c 				   ch->max_antenna_gain, ch->mode);
ch               3169 drivers/net/wireless/ath/ath10k/mac.c 			ch++;
ch               2016 drivers/net/wireless/ath/ath10k/wmi-tlv.c 	struct wmi_channel *ch;
ch               2029 drivers/net/wireless/ath/ath10k/wmi-tlv.c 	      (sizeof(*tlv) + sizeof(*ch)) +
ch               2064 drivers/net/wireless/ath/ath10k/wmi-tlv.c 	tlv->len = __cpu_to_le16(sizeof(*ch));
ch               2065 drivers/net/wireless/ath/ath10k/wmi-tlv.c 	ch = (void *)tlv->value;
ch               2066 drivers/net/wireless/ath/ath10k/wmi-tlv.c 	ath10k_wmi_put_wmi_channel(ch, &arg->channel);
ch               2069 drivers/net/wireless/ath/ath10k/wmi-tlv.c 	ptr += sizeof(*ch);
ch               2668 drivers/net/wireless/ath/ath10k/wmi-tlv.c 	struct wmi_channel_arg *ch;
ch               2699 drivers/net/wireless/ath/ath10k/wmi-tlv.c 		ch = &arg->channels[i];
ch               2706 drivers/net/wireless/ath/ath10k/wmi-tlv.c 		ath10k_wmi_put_wmi_channel(ci, ch);
ch               1684 drivers/net/wireless/ath/ath10k/wmi.c void ath10k_wmi_put_wmi_channel(struct wmi_channel *ch,
ch               1689 drivers/net/wireless/ath/ath10k/wmi.c 	memset(ch, 0, sizeof(*ch));
ch               1704 drivers/net/wireless/ath/ath10k/wmi.c 	ch->mhz = __cpu_to_le32(arg->freq);
ch               1705 drivers/net/wireless/ath/ath10k/wmi.c 	ch->band_center_freq1 = __cpu_to_le32(arg->band_center_freq1);
ch               1707 drivers/net/wireless/ath/ath10k/wmi.c 		ch->band_center_freq2 = __cpu_to_le32(arg->band_center_freq2);
ch               1709 drivers/net/wireless/ath/ath10k/wmi.c 		ch->band_center_freq2 = 0;
ch               1710 drivers/net/wireless/ath/ath10k/wmi.c 	ch->min_power = arg->min_power;
ch               1711 drivers/net/wireless/ath/ath10k/wmi.c 	ch->max_power = arg->max_power;
ch               1712 drivers/net/wireless/ath/ath10k/wmi.c 	ch->reg_power = arg->max_reg_power;
ch               1713 drivers/net/wireless/ath/ath10k/wmi.c 	ch->antenna_max = arg->max_antenna_gain;
ch               1714 drivers/net/wireless/ath/ath10k/wmi.c 	ch->max_tx_power = arg->max_power;
ch               1717 drivers/net/wireless/ath/ath10k/wmi.c 	ch->mode = arg->mode;
ch               1718 drivers/net/wireless/ath/ath10k/wmi.c 	ch->flags |= __cpu_to_le32(flags);
ch               2562 drivers/net/wireless/ath/ath10k/wmi.c 	int band, ch, idx = 0;
ch               2569 drivers/net/wireless/ath/ath10k/wmi.c 		for (ch = 0; ch < sband->n_channels; ch++, idx++)
ch               2570 drivers/net/wireless/ath/ath10k/wmi.c 			if (sband->channels[ch].center_freq == freq)
ch               3956 drivers/net/wireless/ath/ath10k/wmi.c 	struct ieee80211_channel *ch;
ch               3988 drivers/net/wireless/ath/ath10k/wmi.c 	ch = ar->rx_channel;
ch               3991 drivers/net/wireless/ath/ath10k/wmi.c 	if (!ch)
ch               3992 drivers/net/wireless/ath/ath10k/wmi.c 		ch = ar->tgt_oper_chan;
ch               3996 drivers/net/wireless/ath/ath10k/wmi.c 	if (!ch) {
ch               4016 drivers/net/wireless/ath/ath10k/wmi.c 	pe.freq = ch->center_freq;
ch               4589 drivers/net/wireless/ath/ath10k/wmi.c 	u8 tpc, num_streams, preamble, ch, stm_idx;
ch               4593 drivers/net/wireless/ath/ath10k/wmi.c 	ch = num_chains - 1;
ch               4595 drivers/net/wireless/ath/ath10k/wmi.c 	tpc = min_t(u8, ev->rates_array[rate_idx], ev->max_reg_allow_pow[ch]);
ch               4610 drivers/net/wireless/ath/ath10k/wmi.c 			    ev->max_reg_allow_pow_agstbc[ch - 1][stm_idx]);
ch               4614 drivers/net/wireless/ath/ath10k/wmi.c 			    ev->max_reg_allow_pow_agtxbf[ch - 1][stm_idx]);
ch               4618 drivers/net/wireless/ath/ath10k/wmi.c 			    ev->max_reg_allow_pow_agcdd[ch - 1][stm_idx]);
ch               4860 drivers/net/wireless/ath/ath10k/wmi.c 	u8 tpc, num_streams, preamble, ch, stm_idx;
ch               4866 drivers/net/wireless/ath/ath10k/wmi.c 	ch = num_chains - 1;
ch               4929 drivers/net/wireless/ath/ath10k/wmi.c 			    ev->max_reg_allow_pow[ch]);
ch               4932 drivers/net/wireless/ath/ath10k/wmi.c 				      ev->max_reg_allow_pow[ch]),
ch               4946 drivers/net/wireless/ath/ath10k/wmi.c 		pow_agstbc = ev->max_reg_allow_pow_agstbc[ch - 1][stm_idx];
ch               4954 drivers/net/wireless/ath/ath10k/wmi.c 		pow_agtxbf = ev->max_reg_allow_pow_agtxbf[ch - 1][stm_idx];
ch               4962 drivers/net/wireless/ath/ath10k/wmi.c 		pow_agcdd = ev->max_reg_allow_pow_agcdd[ch - 1][stm_idx];
ch               7446 drivers/net/wireless/ath/ath10k/wmi.c 	struct wmi_channel_arg *ch;
ch               7461 drivers/net/wireless/ath/ath10k/wmi.c 		ch = &arg->channels[i];
ch               7464 drivers/net/wireless/ath/ath10k/wmi.c 		ath10k_wmi_put_wmi_channel(ci, ch);
ch               7315 drivers/net/wireless/ath/ath10k/wmi.h void ath10k_wmi_put_wmi_channel(struct wmi_channel *ch,
ch                299 drivers/net/wireless/ath/ath5k/base.c 	unsigned int count, size, freq, ch;
ch                319 drivers/net/wireless/ath/ath5k/base.c 	for (ch = 1; ch <= size && count < max; ch++) {
ch                320 drivers/net/wireless/ath/ath5k/base.c 		freq = ieee80211_channel_to_frequency(ch, band);
ch                334 drivers/net/wireless/ath/ath5k/base.c 		if (!ath5k_is_standard_channel(ch, band))
ch               2894 drivers/net/wireless/ath/ath6kl/cfg80211.c 	p.ch = cpu_to_le16(info->chandef.chan->center_freq);
ch                578 drivers/net/wireless/ath/ath6kl/main.c 	vif->profile.ch = cpu_to_le16(channel);
ch                977 drivers/net/wireless/ath/ath6kl/main.c 			ar->last_ch = le16_to_cpu(vif->profile.ch);
ch                871 drivers/net/wireless/ath/ath6kl/wmi.c 				   __func__, le16_to_cpu(ev->u.ap_bss.ch),
ch                874 drivers/net/wireless/ath/ath6kl/wmi.c 				vif, le16_to_cpu(ev->u.ap_bss.ch));
ch                900 drivers/net/wireless/ath/ath6kl/wmi.c 		   le16_to_cpu(ev->u.sta.ch), ev->u.sta.bssid,
ch                932 drivers/net/wireless/ath/ath6kl/wmi.c 	ath6kl_connect_event(vif, le16_to_cpu(ev->u.sta.ch),
ch               1105 drivers/net/wireless/ath/ath6kl/wmi.c 		   bih->ch, bih->snr, bih->snr - 95, bih->bssid,
ch               1119 drivers/net/wireless/ath/ath6kl/wmi.c 	channel = ieee80211_get_channel(ar->wiphy, le16_to_cpu(bih->ch));
ch               1900 drivers/net/wireless/ath/ath6kl/wmi.c 	cc->ch = cpu_to_le16(channel);
ch               3406 drivers/net/wireless/ath/ath6kl/wmi.c 		   __func__, p->nw_type, p->auth_mode, le16_to_cpu(p->ch),
ch                745 drivers/net/wireless/ath/ath6kl/wmi.h 	__le16 ch;
ch               1523 drivers/net/wireless/ath/ath6kl/wmi.h 			__le16 ch;
ch               1540 drivers/net/wireless/ath/ath6kl/wmi.h 			__le16 ch;
ch               1672 drivers/net/wireless/ath/ath6kl/wmi.h 	__le16 ch; /* frequency in MHz */
ch               1750 drivers/net/wireless/ath/ath6kl/wmi.h 	__le16 ch;
ch                267 drivers/net/wireless/ath/regd.c 				       struct ieee80211_channel *ch)
ch                271 drivers/net/wireless/ath/regd.c 	reg_rule = freq_reg_info(wiphy, MHZ_TO_KHZ(ch->center_freq));
ch                276 drivers/net/wireless/ath/regd.c 		if (ch->flags & IEEE80211_CHAN_NO_IR)
ch                277 drivers/net/wireless/ath/regd.c 			ch->flags &= ~IEEE80211_CHAN_NO_IR;
ch                282 drivers/net/wireless/ath/regd.c 	struct ieee80211_channel *ch;
ch                284 drivers/net/wireless/ath/regd.c 	ch = ieee80211_get_channel(wiphy, center_freq);
ch                285 drivers/net/wireless/ath/regd.c 	if (!ch)
ch                288 drivers/net/wireless/ath/regd.c 	ath_force_clear_no_ir_chan(wiphy, ch);
ch                291 drivers/net/wireless/ath/regd.c static void ath_force_no_ir_chan(struct ieee80211_channel *ch)
ch                293 drivers/net/wireless/ath/regd.c 	ch->flags |= IEEE80211_CHAN_NO_IR;
ch                298 drivers/net/wireless/ath/regd.c 	struct ieee80211_channel *ch;
ch                300 drivers/net/wireless/ath/regd.c 	ch = ieee80211_get_channel(wiphy, center_freq);
ch                301 drivers/net/wireless/ath/regd.c 	if (!ch)
ch                304 drivers/net/wireless/ath/regd.c 	ath_force_no_ir_chan(ch);
ch                311 drivers/net/wireless/ath/regd.c 				struct ieee80211_channel *ch)
ch                313 drivers/net/wireless/ath/regd.c 	if (ath_is_radar_freq(ch->center_freq, reg) ||
ch                314 drivers/net/wireless/ath/regd.c 	    (ch->flags & IEEE80211_CHAN_RADAR))
ch                319 drivers/net/wireless/ath/regd.c 		ath_force_clear_no_ir_chan(wiphy, ch);
ch                323 drivers/net/wireless/ath/regd.c 			ath_force_clear_no_ir_chan(wiphy, ch);
ch                326 drivers/net/wireless/ath/regd.c 		if (ch->beacon_found)
ch                327 drivers/net/wireless/ath/regd.c 			ch->flags &= ~IEEE80211_CHAN_NO_IR;
ch                345 drivers/net/wireless/ath/regd.c 	struct ieee80211_channel *ch;
ch                353 drivers/net/wireless/ath/regd.c 			ch = &sband->channels[i];
ch                355 drivers/net/wireless/ath/regd.c 							initiator, ch);
ch                407 drivers/net/wireless/ath/regd.c 	struct ieee80211_channel *ch;
ch                416 drivers/net/wireless/ath/regd.c 		ch = &sband->channels[i];
ch                417 drivers/net/wireless/ath/regd.c 		if (!ath_is_radar_freq(ch->center_freq, reg))
ch                429 drivers/net/wireless/ath/regd.c 		if (!(ch->flags & IEEE80211_CHAN_DISABLED))
ch                430 drivers/net/wireless/ath/regd.c 			ch->flags |= IEEE80211_CHAN_RADAR |
ch                 57 drivers/net/wireless/ath/wcn36xx/dxe.c static void wcn36xx_dxe_free_ctl_block(struct wcn36xx_dxe_ch *ch)
ch                 59 drivers/net/wireless/ath/wcn36xx/dxe.c 	struct wcn36xx_dxe_ctl *ctl = ch->head_blk_ctl, *next;
ch                 62 drivers/net/wireless/ath/wcn36xx/dxe.c 	for (i = 0; i < ch->desc_num && ctl; i++) {
ch                 69 drivers/net/wireless/ath/wcn36xx/dxe.c static int wcn36xx_dxe_allocate_ctl_block(struct wcn36xx_dxe_ch *ch)
ch                 75 drivers/net/wireless/ath/wcn36xx/dxe.c 	spin_lock_init(&ch->lock);
ch                 76 drivers/net/wireless/ath/wcn36xx/dxe.c 	for (i = 0; i < ch->desc_num; i++) {
ch                 83 drivers/net/wireless/ath/wcn36xx/dxe.c 			ch->head_blk_ctl = cur_ctl;
ch                 84 drivers/net/wireless/ath/wcn36xx/dxe.c 			ch->tail_blk_ctl = cur_ctl;
ch                 85 drivers/net/wireless/ath/wcn36xx/dxe.c 		} else if (ch->desc_num - 1 == i) {
ch                 87 drivers/net/wireless/ath/wcn36xx/dxe.c 			cur_ctl->next = ch->head_blk_ctl;
ch                 97 drivers/net/wireless/ath/wcn36xx/dxe.c 	wcn36xx_dxe_free_ctl_block(ch);
ch                235 drivers/net/wireless/ath/wcn36xx/dxe.c static void wcn36xx_dxe_init_tx_bd(struct wcn36xx_dxe_ch *ch,
ch                241 drivers/net/wireless/ath/wcn36xx/dxe.c 	struct wcn36xx_dxe_ctl *cur = ch->head_blk_ctl;
ch                243 drivers/net/wireless/ath/wcn36xx/dxe.c 	for (i = 0; i < ch->desc_num; i++) {
ch                355 drivers/net/wireless/ath/wcn36xx/dxe.c static void reap_tx_dxes(struct wcn36xx *wcn, struct wcn36xx_dxe_ch *ch)
ch                366 drivers/net/wireless/ath/wcn36xx/dxe.c 	spin_lock_irqsave(&ch->lock, flags);
ch                367 drivers/net/wireless/ath/wcn36xx/dxe.c 	ctl = ch->tail_blk_ctl;
ch                390 drivers/net/wireless/ath/wcn36xx/dxe.c 	} while (ctl != ch->head_blk_ctl);
ch                392 drivers/net/wireless/ath/wcn36xx/dxe.c 	ch->tail_blk_ctl = ctl;
ch                393 drivers/net/wireless/ath/wcn36xx/dxe.c 	spin_unlock_irqrestore(&ch->lock, flags);
ch                522 drivers/net/wireless/ath/wcn36xx/dxe.c 				     struct wcn36xx_dxe_ch *ch,
ch                560 drivers/net/wireless/ath/wcn36xx/dxe.c 	spin_lock(&ch->lock);
ch                562 drivers/net/wireless/ath/wcn36xx/dxe.c 	ctl = ch->head_blk_ctl;
ch                584 drivers/net/wireless/ath/wcn36xx/dxe.c 	ch->head_blk_ctl = ctl;
ch                586 drivers/net/wireless/ath/wcn36xx/dxe.c 	spin_unlock(&ch->lock);
ch                684 drivers/net/wireless/ath/wcn36xx/dxe.c 	struct wcn36xx_dxe_ch *ch = NULL;
ch                688 drivers/net/wireless/ath/wcn36xx/dxe.c 	ch = is_low ? &wcn->dxe_tx_l_ch : &wcn->dxe_tx_h_ch;
ch                690 drivers/net/wireless/ath/wcn36xx/dxe.c 	spin_lock_irqsave(&ch->lock, flags);
ch                691 drivers/net/wireless/ath/wcn36xx/dxe.c 	ctl_bd = ch->head_blk_ctl;
ch                702 drivers/net/wireless/ath/wcn36xx/dxe.c 		spin_unlock_irqrestore(&ch->lock, flags);
ch                722 drivers/net/wireless/ath/wcn36xx/dxe.c 	desc_bd->dst_addr_l = ch->dxe_wq;
ch                744 drivers/net/wireless/ath/wcn36xx/dxe.c 	desc_skb->dst_addr_l = ch->dxe_wq;
ch                753 drivers/net/wireless/ath/wcn36xx/dxe.c 	 ch->head_blk_ctl = ctl_skb->next;
ch                757 drivers/net/wireless/ath/wcn36xx/dxe.c 	desc_skb->ctrl = ch->ctrl_skb;
ch                759 drivers/net/wireless/ath/wcn36xx/dxe.c 	desc_bd->ctrl = ch->ctrl_bd;
ch                775 drivers/net/wireless/ath/wcn36xx/dxe.c 			ch->reg_ctrl, ch->def_ctrl);
ch                780 drivers/net/wireless/ath/wcn36xx/dxe.c 	spin_unlock_irqrestore(&ch->lock, flags);
ch                392 drivers/net/wireless/ath/wcn36xx/main.c 		int ch = WCN36XX_HW_CHANNEL(wcn);
ch                394 drivers/net/wireless/ath/wcn36xx/main.c 			    ch);
ch                397 drivers/net/wireless/ath/wcn36xx/main.c 			wcn36xx_smd_switch_channel(wcn, vif, ch);
ch                754 drivers/net/wireless/ath/wcn36xx/smd.c 			       struct ieee80211_vif *vif, int ch)
ch                762 drivers/net/wireless/ath/wcn36xx/smd.c 	msg_body.channel_number = (u8)ch;
ch               1047 drivers/net/wireless/ath/wcn36xx/smd.c int wcn36xx_smd_join(struct wcn36xx *wcn, const u8 *bssid, u8 *vif, u8 ch)
ch               1057 drivers/net/wireless/ath/wcn36xx/smd.c 	msg_body.channel = ch;
ch                 74 drivers/net/wireless/ath/wcn36xx/smd.h int wcn36xx_smd_join(struct wcn36xx *wcn, const u8 *bssid, u8 *vif, u8 ch);
ch                 88 drivers/net/wireless/ath/wcn36xx/smd.h 			       struct ieee80211_vif *vif, int ch);
ch                972 drivers/net/wireless/ath/wil6210/cfg80211.c 		int ch = request->channels[i]->hw_value;
ch                974 drivers/net/wireless/ath/wil6210/cfg80211.c 		if (ch == 0) {
ch                981 drivers/net/wireless/ath/wil6210/cfg80211.c 		cmd.cmd.channel_list[cmd.cmd.num_channels++].channel = ch - 1;
ch                982 drivers/net/wireless/ath/wil6210/cfg80211.c 		wil_dbg_misc(wil, "Scan for ch %d  : %d MHz\n", ch,
ch               1210 drivers/net/wireless/ath/wil6210/cfg80211.c 	int ch;
ch               1284 drivers/net/wireless/ath/wil6210/cfg80211.c 	ch = bss->channel->hw_value;
ch               1285 drivers/net/wireless/ath/wil6210/cfg80211.c 	if (ch == 0) {
ch               1343 drivers/net/wireless/ath/wil6210/cfg80211.c 	conn.channel = ch - 1;
ch               2749 drivers/net/wireless/ath/wil6210/cfg80211.c 	struct ieee80211_channel *ch;
ch               2768 drivers/net/wireless/ath/wil6210/cfg80211.c 	ch = wiphy->bands[NL80211_BAND_60GHZ]->channels;
ch               2769 drivers/net/wireless/ath/wil6210/cfg80211.c 	cfg80211_chandef_create(&wil->monitor_chandef, ch, NL80211_CHAN_NO_HT);
ch                336 drivers/net/wireless/ath/wil6210/txrx.c 	struct ieee80211_channel *ch = wil->monitor_chandef.chan;
ch                355 drivers/net/wireless/ath/wil6210/txrx.c 	rtap->chnl_freq = cpu_to_le16(ch ? ch->center_freq : 58320);
ch                969 drivers/net/wireless/ath/wil6210/wmi.c 	int ch; /* channel number */
ch                996 drivers/net/wireless/ath/wil6210/wmi.c 	ch = evt->channel + 1;
ch                998 drivers/net/wireless/ath/wil6210/wmi.c 		 evt->bssid, ch, evt->cid, evt->aid);
ch               1731 drivers/net/wireless/ath/wil6210/wmi.c 	int ch; /* channel number (primary) */
ch               1778 drivers/net/wireless/ath/wil6210/wmi.c 	ch = data->channel + 1;
ch               1780 drivers/net/wireless/ath/wil6210/wmi.c 		 data->mac_addr, ch, cid, data->aid);
ch               1832 drivers/net/wireless/ath/wil6210/wmi.c 	freq = ieee80211_channel_to_frequency(ch, NL80211_BAND_60GHZ);
ch               2621 drivers/net/wireless/ath/wil6210/wmi.c 		struct ieee80211_channel *ch = wil->monitor_chandef.chan;
ch               2624 drivers/net/wireless/ath/wil6210/wmi.c 		if (ch)
ch               2625 drivers/net/wireless/ath/wil6210/wmi.c 			cmd.sniffer_cfg.channel = ch->hw_value - 1;
ch               6275 drivers/net/wireless/broadcom/b43/phy_n.c 	int ch = new_channel->hw_value;
ch               6334 drivers/net/wireless/broadcom/b43/phy_n.c 				if (ch == 13 || ch == 14 || ch == 153)
ch               6337 drivers/net/wireless/broadcom/b43/phy_n.c 				if (ch == 54)
ch               6342 drivers/net/wireless/broadcom/b43/phy_n.c 				if ((ch >= 5 && ch <= 8) || ch == 13 || ch == 14)
ch               6346 drivers/net/wireless/broadcom/b43/phy_n.c 				    (ch == 38 || ch == 102 || ch == 118))
ch                246 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			       struct cfg80211_chan_def *ch)
ch                252 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 		  ch->chan->center_freq, ch->center_freq1, ch->width);
ch                253 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	ch_inf.chnum = ieee80211_frequency_to_channel(ch->center_freq1);
ch                254 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	primary_offset = ch->chan->center_freq - ch->center_freq1;
ch                255 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	switch (ch->width) {
ch                304 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	switch (ch->chan->band) {
ch                322 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			struct ieee80211_channel *ch)
ch                326 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	ch_inf.chnum = ieee80211_frequency_to_channel(ch->center_freq);
ch               2804 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	struct brcmu_chan ch;
ch               2819 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 		ch.chspec = le16_to_cpu(bi->chanspec);
ch               2820 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 		cfg->d11inf.decchspec(&ch);
ch               2821 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 		bi->ctl_ch = ch.control_ch_num;
ch               2905 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	struct brcmu_chan ch;
ch               2934 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	ch.chspec = le16_to_cpu(bi->chanspec);
ch               2935 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	cfg->d11inf.decchspec(&ch);
ch               2937 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	if (ch.band == BRCMU_CHAN_BAND_2G)
ch               2942 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	freq = ieee80211_channel_to_frequency(ch.control_ch_num, band->band);
ch               2952 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	brcmf_dbg(CONN, "channel: %d(%d)\n", ch.control_ch_num, freq);
ch               4998 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	struct brcmu_chan ch;
ch               5013 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	ch.chspec = chanspec;
ch               5014 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	cfg->d11inf.decchspec(&ch);
ch               5016 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	switch (ch.band) {
ch               5025 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	switch (ch.bw) {
ch               5043 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	freq = ieee80211_channel_to_frequency(ch.control_ch_num, band);
ch               5046 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	chandef->center_freq1 = ieee80211_channel_to_frequency(ch.chnum, band);
ch               5506 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	struct brcmu_chan ch;
ch               5533 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	ch.chspec = le16_to_cpu(bi->chanspec);
ch               5534 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	cfg->d11inf.decchspec(&ch);
ch               5536 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	if (ch.band == BRCMU_CHAN_BAND_2G)
ch               5541 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	freq = ieee80211_channel_to_frequency(ch.control_ch_num, band->band);
ch               5996 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 					   struct brcmu_chan *ch)
ch               6001 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	if (ch->sb == BRCMU_CHAN_SB_U) {
ch               6025 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	struct brcmu_chan ch;
ch               6057 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 		ch.chspec = (u16)le32_to_cpu(list->element[i]);
ch               6058 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 		cfg->d11inf.decchspec(&ch);
ch               6060 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 		if (ch.band == BRCMU_CHAN_BAND_2G) {
ch               6062 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 		} else if (ch.band == BRCMU_CHAN_BAND_5G) {
ch               6066 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 				 ch.chspec);
ch               6072 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 		    ch.bw == BRCMU_CHAN_BW_40)
ch               6075 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 		    ch.bw == BRCMU_CHAN_BW_80)
ch               6080 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			if (band->channels[j].hw_value == ch.control_ch_num) {
ch               6090 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 				 ch.control_ch_num);
ch               6100 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 		switch (ch.bw) {
ch               6108 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			brcmf_update_bw40_channel_flag(channel, &ch);
ch               6112 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 				   ch.bw);
ch               6122 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			ch.bw = BRCMU_CHAN_BW_20;
ch               6123 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			cfg->d11inf.encchspec(&ch);
ch               6124 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			chaninfo = ch.chspec;
ch               6154 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	struct brcmu_chan ch;
ch               6181 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 		ch.band = BRCMU_CHAN_BAND_2G;
ch               6182 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 		ch.bw = BRCMU_CHAN_BW_40;
ch               6183 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 		ch.sb = BRCMU_CHAN_SB_NONE;
ch               6184 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 		ch.chnum = 0;
ch               6185 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 		cfg->d11inf.encchspec(&ch);
ch               6188 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 		*(__le16 *)pbuf = cpu_to_le16(ch.chspec);
ch               6202 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			ch.chspec = (u16)le32_to_cpu(list->element[i]);
ch               6203 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			cfg->d11inf.decchspec(&ch);
ch               6204 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			if (WARN_ON(ch.band != BRCMU_CHAN_BAND_2G))
ch               6206 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			if (WARN_ON(ch.bw != BRCMU_CHAN_BW_40))
ch               6209 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 				if (band->channels[j].hw_value == ch.control_ch_num)
ch               6215 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			brcmf_update_bw40_channel_flag(&band->channels[j], &ch);
ch                406 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h 			struct ieee80211_channel *ch);
ch                915 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	struct brcmu_chan ch;
ch                931 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	ch.chnum = channel;
ch                932 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	ch.bw = BRCMU_CHAN_BW_20;
ch                933 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	p2p->cfg->d11inf.encchspec(&ch);
ch                935 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 					   ch.chspec, (u16)duration);
ch               1048 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	struct brcmu_chan ch;
ch               1063 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	ch.bw = BRCMU_CHAN_BW_20;
ch               1065 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 		ch.chnum = channel;
ch               1066 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 		p2p->cfg->d11inf.encchspec(&ch);
ch               1069 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 			default_chan_list[i] = ch.chspec;
ch               1071 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 		ch.chnum = SOCIAL_CHAN_1;
ch               1072 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 		p2p->cfg->d11inf.encchspec(&ch);
ch               1073 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 		default_chan_list[0] = ch.chspec;
ch               1074 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 		ch.chnum = SOCIAL_CHAN_2;
ch               1075 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 		p2p->cfg->d11inf.encchspec(&ch);
ch               1076 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 		default_chan_list[1] = ch.chspec;
ch               1077 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 		ch.chnum = SOCIAL_CHAN_3;
ch               1078 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 		p2p->cfg->d11inf.encchspec(&ch);
ch               1079 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 		default_chan_list[2] = ch.chspec;
ch               1208 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	struct brcmu_chan ch;
ch               1235 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 			ch.chspec = le16_to_cpu(bi->chanspec);
ch               1236 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 			cfg->d11inf.decchspec(&ch);
ch               1237 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 			bi->ctl_ch = ch.control_ch_num;
ch               1347 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	struct brcmu_chan ch;
ch               1358 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	ch.chspec = be16_to_cpu(rxframe->chanspec);
ch               1359 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	cfg->d11inf.decchspec(&ch);
ch               1377 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 				afx_hdl->peer_chan = ch.control_ch_num;
ch               1420 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	freq = ieee80211_channel_to_frequency(ch.control_ch_num,
ch               1421 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 					      ch.band == BRCMU_CHAN_BAND_2G ?
ch               1862 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	struct brcmu_chan ch;
ch               1876 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	ch.chspec = be16_to_cpu(rxframe->chanspec);
ch               1877 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	cfg->d11inf.decchspec(&ch);
ch               1881 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 		afx_hdl->peer_chan = ch.control_ch_num;
ch               1906 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	freq = ieee80211_channel_to_frequency(ch.control_ch_num,
ch               1907 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 					      ch.band == BRCMU_CHAN_BAND_2G ?
ch               1914 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 		  mgmt_frame_len, e->datalen, ch.chspec, freq);
ch               1931 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	struct brcmu_chan ch;
ch               1953 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	ch.chnum = BRCMF_P2P_TEMP_CHAN;
ch               1954 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	ch.bw = BRCMU_CHAN_BW_20;
ch               1955 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	p2p->cfg->d11inf.encchspec(&ch);
ch               1956 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c 	*chanspec = ch.chspec;
ch                769 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 	u8 ch;
ch                780 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 		ch = brcmf_pcie_read_tcm8(devinfo, addr);
ch                784 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 		if (ch == '\r')
ch                786 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 		console->log_str[console->log_idx] = ch;
ch                788 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 		if ((ch != '\n') &&
ch                790 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 			ch = '\n';
ch                791 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 			console->log_str[console->log_idx] = ch;
ch                794 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 		if (ch == '\n') {
ch               2813 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 	u8 line[CONSOLE_LINE_MAX], ch;
ch               2867 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 			ch = c->buf[c->last];
ch               2869 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 			if (ch == '\n')
ch               2871 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 			line[n] = ch;
ch                377 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 	struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.chandef.chan;
ch                387 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 	if (ch->flags & IEEE80211_CHAN_NO_OFDM)
ch                393 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 			      !!(ch->flags & IEEE80211_CHAN_NO_IR),
ch                402 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 	struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.chandef.chan;
ch                417 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 	if (WARN_ON(!ch))
ch                433 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 	maxpwr = QDB(ch->max_power) - delta;
ch                636 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 	struct ieee80211_channel *ch;
ch                644 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 		ch = &sband->channels[i];
ch                646 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 		if (!brcms_is_radar_freq(ch->center_freq))
ch                653 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 		if (!(ch->flags & IEEE80211_CHAN_DISABLED))
ch                654 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 			ch->flags |= IEEE80211_CHAN_RADAR |
ch                664 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 	struct ieee80211_channel *ch;
ch                674 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 			ch = &sband->channels[i];
ch                676 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 			if (ch->flags &
ch                682 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 						     MHZ_TO_KHZ(ch->center_freq));
ch                687 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 					ch->flags &= ~IEEE80211_CHAN_NO_IR;
ch                688 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 			} else if (ch->beacon_found) {
ch                689 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 				ch->flags &= ~IEEE80211_CHAN_NO_IR;
ch                702 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 	struct ieee80211_channel *ch;
ch                718 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 			ch = &sband->channels[i];
ch                720 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 			if (!(ch->flags & IEEE80211_CHAN_DISABLED))
ch                744 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 	struct ieee80211_channel *ch;
ch                762 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 			ch = &sband->channels[i];
ch                763 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 			if (!isset(sup_chan.vec, ch->hw_value))
ch                764 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c 				ch->flags |= IEEE80211_CHAN_DISABLED;
ch               5017 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct ieee80211_channel *ch;
ch               5085 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		ch = wlc->pub->ieee_hw->conf.chandef.chan;
ch               5087 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_c_set_chanspec(wlc, ch20mhz_chspec(ch->hw_value));
ch               7854 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.chandef.chan;
ch               7859 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	chanspec = ch20mhz_chspec(ch->hw_value);
ch                141 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.h #define	CHANNEL_BANDUNIT(wlc, ch) \
ch                142 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.h 	(((ch) <= CH_MAX_2G_CHANNEL) ? BAND_2G_INDEX : BAND_5G_INDEX)
ch               2329 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_noise_sample_request(struct brcms_phy_pub *pih, u8 reason, u8 ch)
ch               2338 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		pi->phynoise_chan_watchdog = ch;
ch               2449 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		wlc_phy_noise_cb(pi, ch, noise_dbm);
ch                 41 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c static void brcmu_d11n_encchspec(struct brcmu_chan *ch)
ch                 43 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	if (ch->bw == BRCMU_CHAN_BW_20)
ch                 44 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->sb = BRCMU_CHAN_SB_NONE;
ch                 46 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	ch->chspec = 0;
ch                 47 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_CH_MASK,
ch                 48 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			BRCMU_CHSPEC_CH_SHIFT, ch->chnum);
ch                 49 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_D11N_SB_MASK,
ch                 50 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			0, d11n_sb(ch->sb));
ch                 51 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_D11N_BW_MASK,
ch                 52 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			0, d11n_bw(ch->bw));
ch                 54 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	if (ch->chnum <= CH_MAX_2G_CHANNEL)
ch                 55 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->chspec |= BRCMU_CHSPEC_D11N_BND_2G;
ch                 57 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->chspec |= BRCMU_CHSPEC_D11N_BND_5G;
ch                 77 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c static void brcmu_d11ac_encchspec(struct brcmu_chan *ch)
ch                 79 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	if (ch->bw == BRCMU_CHAN_BW_20 || ch->sb == BRCMU_CHAN_SB_NONE)
ch                 80 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->sb = BRCMU_CHAN_SB_L;
ch                 82 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_CH_MASK,
ch                 83 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			BRCMU_CHSPEC_CH_SHIFT, ch->chnum);
ch                 84 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_D11AC_SB_MASK,
ch                 85 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			BRCMU_CHSPEC_D11AC_SB_SHIFT, ch->sb);
ch                 86 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_D11AC_BW_MASK,
ch                 87 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			0, d11ac_bw(ch->bw));
ch                 89 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	ch->chspec &= ~BRCMU_CHSPEC_D11AC_BND_MASK;
ch                 90 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	if (ch->chnum <= CH_MAX_2G_CHANNEL)
ch                 91 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->chspec |= BRCMU_CHSPEC_D11AC_BND_2G;
ch                 93 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->chspec |= BRCMU_CHSPEC_D11AC_BND_5G;
ch                 96 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c static void brcmu_d11n_decchspec(struct brcmu_chan *ch)
ch                100 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	ch->chnum = (u8)(ch->chspec & BRCMU_CHSPEC_CH_MASK);
ch                101 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	ch->control_ch_num = ch->chnum;
ch                103 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	switch (ch->chspec & BRCMU_CHSPEC_D11N_BW_MASK) {
ch                105 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->bw = BRCMU_CHAN_BW_20;
ch                106 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->sb = BRCMU_CHAN_SB_NONE;
ch                109 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->bw = BRCMU_CHAN_BW_40;
ch                110 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		val = ch->chspec & BRCMU_CHSPEC_D11N_SB_MASK;
ch                112 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->sb = BRCMU_CHAN_SB_L;
ch                113 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->control_ch_num -= CH_10MHZ_APART;
ch                115 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->sb = BRCMU_CHAN_SB_U;
ch                116 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->control_ch_num += CH_10MHZ_APART;
ch                120 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec);
ch                124 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	switch (ch->chspec & BRCMU_CHSPEC_D11N_BND_MASK) {
ch                126 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->band = BRCMU_CHAN_BAND_5G;
ch                129 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->band = BRCMU_CHAN_BAND_2G;
ch                132 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec);
ch                137 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c static void brcmu_d11ac_decchspec(struct brcmu_chan *ch)
ch                141 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	ch->chnum = (u8)(ch->chspec & BRCMU_CHSPEC_CH_MASK);
ch                142 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	ch->control_ch_num = ch->chnum;
ch                144 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	switch (ch->chspec & BRCMU_CHSPEC_D11AC_BW_MASK) {
ch                146 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->bw = BRCMU_CHAN_BW_20;
ch                147 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->sb = BRCMU_CHAN_SB_NONE;
ch                150 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->bw = BRCMU_CHAN_BW_40;
ch                151 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		val = ch->chspec & BRCMU_CHSPEC_D11AC_SB_MASK;
ch                153 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->sb = BRCMU_CHAN_SB_L;
ch                154 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->control_ch_num -= CH_10MHZ_APART;
ch                156 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->sb = BRCMU_CHAN_SB_U;
ch                157 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->control_ch_num += CH_10MHZ_APART;
ch                159 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec);
ch                163 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->bw = BRCMU_CHAN_BW_80;
ch                164 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->sb = brcmu_maskget16(ch->chspec, BRCMU_CHSPEC_D11AC_SB_MASK,
ch                166 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		switch (ch->sb) {
ch                168 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->control_ch_num -= CH_30MHZ_APART;
ch                171 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->control_ch_num -= CH_10MHZ_APART;
ch                174 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->control_ch_num += CH_10MHZ_APART;
ch                177 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->control_ch_num += CH_30MHZ_APART;
ch                180 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec);
ch                185 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->bw = BRCMU_CHAN_BW_160;
ch                186 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->sb = brcmu_maskget16(ch->chspec, BRCMU_CHSPEC_D11AC_SB_MASK,
ch                188 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		switch (ch->sb) {
ch                190 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->control_ch_num -= CH_70MHZ_APART;
ch                193 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->control_ch_num -= CH_50MHZ_APART;
ch                196 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->control_ch_num -= CH_30MHZ_APART;
ch                199 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->control_ch_num -= CH_10MHZ_APART;
ch                202 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->control_ch_num += CH_10MHZ_APART;
ch                205 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->control_ch_num += CH_30MHZ_APART;
ch                208 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->control_ch_num += CH_50MHZ_APART;
ch                211 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->control_ch_num += CH_70MHZ_APART;
ch                214 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec);
ch                220 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec);
ch                224 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	switch (ch->chspec & BRCMU_CHSPEC_D11AC_BND_MASK) {
ch                226 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->band = BRCMU_CHAN_BAND_5G;
ch                229 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->band = BRCMU_CHAN_BAND_2G;
ch                232 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		WARN_ONCE(1, "Invalid chanspec 0x%04x\n", ch->chspec);
ch                150 drivers/net/wireless/broadcom/brcm80211/include/brcmu_d11.h 	void (*encchspec)(struct brcmu_chan *ch);
ch                151 drivers/net/wireless/broadcom/brcm80211/include/brcmu_d11.h 	void (*decchspec)(struct brcmu_chan *ch);
ch               5834 drivers/net/wireless/cisco/airo.c 	int ch;
ch               5842 drivers/net/wireless/cisco/airo.c 	ch = le16_to_cpu(status_rid.channel);
ch               5843 drivers/net/wireless/cisco/airo.c 	if((ch > 0) && (ch < 15)) {
ch               5845 drivers/net/wireless/cisco/airo.c 			ieee80211_channel_to_frequency(ch, NL80211_BAND_2GHZ);
ch               5848 drivers/net/wireless/cisco/airo.c 		fwrq->m = ch;
ch                 84 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	const struct libipw_channel * ch;
ch                 91 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	ch = libipw_get_channel(ieee, channel);
ch                 92 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	if (!ch->channel)
ch                 94 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	return ch->freq;
ch               2068 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	int ch, ret;
ch               2073 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	for (ch = 0; ch < il->hw_params.dma_chnl_num; ch++) {
ch               2074 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		_il_wr(il, FH49_TCSR_CHNL_TX_CONFIG_REG(ch), 0x0);
ch               2077 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				 FH49_TSSR_TX_STATUS_REG_MSK_CHNL_IDLE(ch),
ch               2078 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				 FH49_TSSR_TX_STATUS_REG_MSK_CHNL_IDLE(ch),
ch               2082 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			       ch, _il_rd(il, FH49_TSSR_TX_STATUS_REG));
ch               6061 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	u16 ch;
ch               6081 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ch = channel->hw_value;
ch               6082 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (le16_to_cpu(il->active.channel) == ch)
ch               6085 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ch_info = il_get_channel_info(il, channel->band, ch);
ch               6112 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if ((le16_to_cpu(il->staging.channel) != ch))
ch               6127 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->switch_channel = cpu_to_le16(ch);
ch               1464 drivers/net/wireless/intel/iwlegacy/4965.c 	u16 ch;
ch               1481 drivers/net/wireless/intel/iwlegacy/4965.c 	ch = ch_switch->chandef.chan->hw_value;
ch               1482 drivers/net/wireless/intel/iwlegacy/4965.c 	cmd.channel = cpu_to_le16(ch);
ch               1512 drivers/net/wireless/intel/iwlegacy/4965.c 	ch_info = il_get_channel_info(il, il->band, ch);
ch               1517 drivers/net/wireless/intel/iwlegacy/4965.c 		       il->active.channel, ch);
ch               1521 drivers/net/wireless/intel/iwlegacy/4965.c 	rc = il4965_fill_txpower_tbl(il, band, ch, is_ht40, ctrl_chan_high,
ch                877 drivers/net/wireless/intel/iwlegacy/common.c #define CHECK_AND_PRINT_I(x) ((eeprom_ch_info[ch].flags & EEPROM_CHANNEL_##x) \
ch                889 drivers/net/wireless/intel/iwlegacy/common.c 	int band, ch;
ch                926 drivers/net/wireless/intel/iwlegacy/common.c 		for (ch = 0; ch < eeprom_ch_count; ch++) {
ch                927 drivers/net/wireless/intel/iwlegacy/common.c 			ch_info->channel = eeprom_ch_idx[ch];
ch                934 drivers/net/wireless/intel/iwlegacy/common.c 			ch_info->eeprom = eeprom_ch_info[ch];
ch                938 drivers/net/wireless/intel/iwlegacy/common.c 			ch_info->flags = eeprom_ch_info[ch].flags;
ch                956 drivers/net/wireless/intel/iwlegacy/common.c 			    eeprom_ch_info[ch].max_power_avg;
ch                957 drivers/net/wireless/intel/iwlegacy/common.c 			ch_info->scan_power = eeprom_ch_info[ch].max_power_avg;
ch                969 drivers/net/wireless/intel/iwlegacy/common.c 				 eeprom_ch_info[ch].flags,
ch                970 drivers/net/wireless/intel/iwlegacy/common.c 				 eeprom_ch_info[ch].max_power_avg,
ch                971 drivers/net/wireless/intel/iwlegacy/common.c 				 ((eeprom_ch_info[ch].
ch                973 drivers/net/wireless/intel/iwlegacy/common.c 				  !(eeprom_ch_info[ch].
ch                998 drivers/net/wireless/intel/iwlegacy/common.c 		for (ch = 0; ch < eeprom_ch_count; ch++) {
ch               1000 drivers/net/wireless/intel/iwlegacy/common.c 			il_mod_ht40_chan_info(il, ieeeband, eeprom_ch_idx[ch],
ch               1001 drivers/net/wireless/intel/iwlegacy/common.c 					      &eeprom_ch_info[ch],
ch               1006 drivers/net/wireless/intel/iwlegacy/common.c 					      eeprom_ch_idx[ch] + 4,
ch               1007 drivers/net/wireless/intel/iwlegacy/common.c 					      &eeprom_ch_info[ch],
ch               3426 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_channel_info *ch;
ch               3478 drivers/net/wireless/intel/iwlegacy/common.c 		ch = &il->channel_info[i];
ch               3480 drivers/net/wireless/intel/iwlegacy/common.c 		if (!il_is_channel_valid(ch))
ch               3483 drivers/net/wireless/intel/iwlegacy/common.c 		sband = &il->bands[ch->band];
ch               3488 drivers/net/wireless/intel/iwlegacy/common.c 		    ieee80211_channel_to_frequency(ch->channel, ch->band);
ch               3489 drivers/net/wireless/intel/iwlegacy/common.c 		geo_ch->max_power = ch->max_power_avg;
ch               3491 drivers/net/wireless/intel/iwlegacy/common.c 		geo_ch->hw_value = ch->channel;
ch               3493 drivers/net/wireless/intel/iwlegacy/common.c 		if (il_is_channel_valid(ch)) {
ch               3494 drivers/net/wireless/intel/iwlegacy/common.c 			if (!(ch->flags & EEPROM_CHANNEL_IBSS))
ch               3497 drivers/net/wireless/intel/iwlegacy/common.c 			if (!(ch->flags & EEPROM_CHANNEL_ACTIVE))
ch               3500 drivers/net/wireless/intel/iwlegacy/common.c 			if (ch->flags & EEPROM_CHANNEL_RADAR)
ch               3503 drivers/net/wireless/intel/iwlegacy/common.c 			geo_ch->flags |= ch->ht40_extension_channel;
ch               3505 drivers/net/wireless/intel/iwlegacy/common.c 			if (ch->max_power_avg > max_tx_power)
ch               3506 drivers/net/wireless/intel/iwlegacy/common.c 				max_tx_power = ch->max_power_avg;
ch               3511 drivers/net/wireless/intel/iwlegacy/common.c 		D_INFO("Channel %d Freq=%d[%sGHz] %s flag=0x%X\n", ch->channel,
ch               3513 drivers/net/wireless/intel/iwlegacy/common.c 		       il_is_channel_a_band(ch) ? "5.2" : "2.4",
ch               3954 drivers/net/wireless/intel/iwlegacy/common.c il_set_rxon_channel(struct il_priv *il, struct ieee80211_channel *ch)
ch               3956 drivers/net/wireless/intel/iwlegacy/common.c 	enum nl80211_band band = ch->band;
ch               3957 drivers/net/wireless/intel/iwlegacy/common.c 	u16 channel = ch->hw_value;
ch               5027 drivers/net/wireless/intel/iwlegacy/common.c 	u16 ch;
ch               5064 drivers/net/wireless/intel/iwlegacy/common.c 		ch = channel->hw_value;
ch               5065 drivers/net/wireless/intel/iwlegacy/common.c 		ch_info = il_get_channel_info(il, channel->band, ch);
ch               5112 drivers/net/wireless/intel/iwlegacy/common.c 		if ((le16_to_cpu(il->staging.channel) != ch))
ch               1472 drivers/net/wireless/intel/iwlegacy/common.h il_is_channel_passive(const struct il_channel_info *ch)
ch               1474 drivers/net/wireless/intel/iwlegacy/common.h 	return (!(ch->flags & EEPROM_CHANNEL_ACTIVE)) ? 1 : 0;
ch               1478 drivers/net/wireless/intel/iwlegacy/common.h il_is_channel_ibss(const struct il_channel_info *ch)
ch               1480 drivers/net/wireless/intel/iwlegacy/common.h 	return (ch->flags & EEPROM_CHANNEL_IBSS) ? 1 : 0;
ch               1695 drivers/net/wireless/intel/iwlegacy/common.h int il_set_rxon_channel(struct il_priv *il, struct ieee80211_channel *ch);
ch                152 drivers/net/wireless/intel/iwlwifi/dvm/agn.h void iwl_set_rxon_channel(struct iwl_priv *priv, struct ieee80211_channel *ch,
ch                398 drivers/net/wireless/intel/iwlwifi/dvm/devices.c 	u16 ch;
ch                410 drivers/net/wireless/intel/iwlwifi/dvm/devices.c 	ch = ch_switch->chandef.chan->hw_value;
ch                412 drivers/net/wireless/intel/iwlwifi/dvm/devices.c 		      ctx->active.channel, ch);
ch                413 drivers/net/wireless/intel/iwlwifi/dvm/devices.c 	cmd.channel = cpu_to_le16(ch);
ch                559 drivers/net/wireless/intel/iwlwifi/dvm/devices.c 	u16 ch;
ch                578 drivers/net/wireless/intel/iwlwifi/dvm/devices.c 	ch = ch_switch->chandef.chan->hw_value;
ch                580 drivers/net/wireless/intel/iwlwifi/dvm/devices.c 		      ctx->active.channel, ch);
ch                581 drivers/net/wireless/intel/iwlwifi/dvm/devices.c 	cmd->channel = cpu_to_le16(ch);
ch                949 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c 	u16 ch;
ch                969 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c 	ch = channel->hw_value;
ch                970 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c 	if (le16_to_cpu(ctx->active.channel) == ch)
ch                992 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c 	if ((le16_to_cpu(ctx->staging.channel) != ch))
ch               1004 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c 	priv->switch_channel = cpu_to_le16(ch);
ch                699 drivers/net/wireless/intel/iwlwifi/dvm/rxon.c void iwl_set_rxon_channel(struct iwl_priv *priv, struct ieee80211_channel *ch,
ch                702 drivers/net/wireless/intel/iwlwifi/dvm/rxon.c 	enum nl80211_band band = ch->band;
ch                703 drivers/net/wireless/intel/iwlwifi/dvm/rxon.c 	u16 channel = ch->hw_value;
ch                849 drivers/net/wireless/intel/iwlwifi/pcie/tx.c 	int ch, ret;
ch                858 drivers/net/wireless/intel/iwlwifi/pcie/tx.c 	for (ch = 0; ch < FH_TCSR_CHNL_NUM; ch++) {
ch                859 drivers/net/wireless/intel/iwlwifi/pcie/tx.c 		iwl_write32(trans, FH_TCSR_CHNL_TX_CONFIG_REG(ch), 0x0);
ch                860 drivers/net/wireless/intel/iwlwifi/pcie/tx.c 		mask |= FH_TSSR_TX_STATUS_REG_MSK_CHNL_IDLE(ch);
ch                868 drivers/net/wireless/intel/iwlwifi/pcie/tx.c 			ch, iwl_read32(trans, FH_TSSR_TX_STATUS_REG));
ch                819 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 		int ch;
ch                821 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 		for (ch = 0; ch < FREQ_COUNT; ch++) {
ch                822 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 			if (fr == freq_list[ch]) {
ch                824 drivers/net/wireless/intersil/hostap/hostap_ioctl.c 				freq->m = ch + 1;
ch                705 drivers/net/wireless/marvell/libertas/cmd.c 	struct ieee80211_channel *ch;
ch                746 drivers/net/wireless/marvell/libertas/cmd.c 			ch = &bands[band]->channels[i];
ch                747 drivers/net/wireless/marvell/libertas/cmd.c 			if (ch->flags & IEEE80211_CHAN_DISABLED)
ch                752 drivers/net/wireless/marvell/libertas/cmd.c 				next_chan = first_channel = (u32) ch->hw_value;
ch                753 drivers/net/wireless/marvell/libertas/cmd.c 				max_pwr = ch->max_power;
ch                758 drivers/net/wireless/marvell/libertas/cmd.c 			if ((ch->hw_value == next_chan + 1) &&
ch                759 drivers/net/wireless/marvell/libertas/cmd.c 					(ch->max_power == max_pwr)) {
ch                 59 drivers/net/wireless/marvell/libertas_tf/cmd.c 	u8 ch;
ch                 68 drivers/net/wireless/marvell/libertas_tf/cmd.c 	for (ch = range->start; ch < range->end; ch++)
ch                 69 drivers/net/wireless/marvell/libertas_tf/cmd.c 		priv->channels[CHAN_TO_IDX(ch)].flags = 0;
ch                546 drivers/net/wireless/marvell/mwifiex/cfg80211.c 	struct ieee80211_channel *ch;
ch                566 drivers/net/wireless/marvell/mwifiex/cfg80211.c 		ch = &sband->channels[i];
ch                567 drivers/net/wireless/marvell/mwifiex/cfg80211.c 		if (ch->flags & IEEE80211_CHAN_DISABLED)
ch                572 drivers/net/wireless/marvell/mwifiex/cfg80211.c 			first_chan = (u32) ch->hw_value;
ch                574 drivers/net/wireless/marvell/mwifiex/cfg80211.c 			max_pwr = ch->max_power;
ch                579 drivers/net/wireless/marvell/mwifiex/cfg80211.c 		if (ch->hw_value == next_chan + 1 &&
ch                580 drivers/net/wireless/marvell/mwifiex/cfg80211.c 		    ch->max_power == max_pwr) {
ch                589 drivers/net/wireless/marvell/mwifiex/cfg80211.c 			first_chan = (u32) ch->hw_value;
ch                591 drivers/net/wireless/marvell/mwifiex/cfg80211.c 			max_pwr = ch->max_power;
ch                316 drivers/net/wireless/marvell/mwifiex/cfp.c 	struct ieee80211_channel *ch = NULL;
ch                335 drivers/net/wireless/marvell/mwifiex/cfp.c 		ch = &sband->channels[i];
ch                337 drivers/net/wireless/marvell/mwifiex/cfp.c 		if (ch->flags & IEEE80211_CHAN_DISABLED)
ch                341 drivers/net/wireless/marvell/mwifiex/cfp.c 			if (ch->center_freq == freq)
ch                345 drivers/net/wireless/marvell/mwifiex/cfp.c 			if (ch->hw_value == channel ||
ch                356 drivers/net/wireless/marvell/mwifiex/cfp.c 		if (!ch)
ch                359 drivers/net/wireless/marvell/mwifiex/cfp.c 		priv->cfp.channel = ch->hw_value;
ch                360 drivers/net/wireless/marvell/mwifiex/cfp.c 		priv->cfp.freq = ch->center_freq;
ch                361 drivers/net/wireless/marvell/mwifiex/cfp.c 		priv->cfp.max_tx_power = ch->max_power;
ch                464 drivers/net/wireless/marvell/mwifiex/scan.c 	struct ieee80211_channel *ch;
ch                476 drivers/net/wireless/marvell/mwifiex/scan.c 			ch = &sband->channels[i];
ch                477 drivers/net/wireless/marvell/mwifiex/scan.c 			if (ch->flags & IEEE80211_CHAN_DISABLED)
ch                486 drivers/net/wireless/marvell/mwifiex/scan.c 			else if ((ch->flags & IEEE80211_CHAN_NO_IR) ||
ch                487 drivers/net/wireless/marvell/mwifiex/scan.c 				 (ch->flags & IEEE80211_CHAN_RADAR))
ch                494 drivers/net/wireless/marvell/mwifiex/scan.c 			if (ch->flags & IEEE80211_CHAN_NO_IR)
ch                502 drivers/net/wireless/marvell/mwifiex/scan.c 							(u32) ch->hw_value;
ch                508 drivers/net/wireless/marvell/mwifiex/scan.c 			    !((ch->flags & IEEE80211_CHAN_NO_IR) ||
ch                509 drivers/net/wireless/marvell/mwifiex/scan.c 			      (ch->flags & IEEE80211_CHAN_RADAR)))
ch                532 drivers/net/wireless/marvell/mwifiex/scan.c 	struct ieee80211_channel *ch;
ch                543 drivers/net/wireless/marvell/mwifiex/scan.c 			ch = &sband->channels[i];
ch                544 drivers/net/wireless/marvell/mwifiex/scan.c 			if (ch->flags & IEEE80211_CHAN_DISABLED)
ch                552 drivers/net/wireless/marvell/mwifiex/scan.c 			else if (ch->flags & IEEE80211_CHAN_NO_IR)
ch                560 drivers/net/wireless/marvell/mwifiex/scan.c 			if (ch->flags & IEEE80211_CHAN_NO_IR)
ch                568 drivers/net/wireless/marvell/mwifiex/scan.c 							(u32)ch->hw_value;
ch               3081 drivers/net/wireless/marvell/mwl8k.c 	int band, ch, idx = 0;
ch               3088 drivers/net/wireless/marvell/mwl8k.c 		for (ch = 0; ch < sband->n_channels; ch++, idx++)
ch               3089 drivers/net/wireless/marvell/mwl8k.c 			if (sband->channels[ch].center_freq == freq)
ch                 52 drivers/net/wireless/mediatek/mt76/mt76x2/mcu.c 		u8 ch;
ch                 59 drivers/net/wireless/mediatek/mt76/mt76x2/mcu.c 		.ch = channel,
ch                137 drivers/net/wireless/realtek/rtlwifi/regd.c 	struct ieee80211_channel *ch;
ch                148 drivers/net/wireless/realtek/rtlwifi/regd.c 			ch = &sband->channels[i];
ch                149 drivers/net/wireless/realtek/rtlwifi/regd.c 			if (_rtl_is_radar_freq(ch->center_freq) ||
ch                150 drivers/net/wireless/realtek/rtlwifi/regd.c 			    (ch->flags & IEEE80211_CHAN_RADAR))
ch                154 drivers/net/wireless/realtek/rtlwifi/regd.c 							 ch->center_freq);
ch                167 drivers/net/wireless/realtek/rtlwifi/regd.c 					ch->flags &= ~IEEE80211_CHAN_NO_IBSS;
ch                170 drivers/net/wireless/realtek/rtlwifi/regd.c 					ch->flags &=
ch                173 drivers/net/wireless/realtek/rtlwifi/regd.c 				if (ch->beacon_found)
ch                174 drivers/net/wireless/realtek/rtlwifi/regd.c 					ch->flags &= ~(IEEE80211_CHAN_NO_IBSS |
ch                187 drivers/net/wireless/realtek/rtlwifi/regd.c 	struct ieee80211_channel *ch;
ch                199 drivers/net/wireless/realtek/rtlwifi/regd.c 		ch = &sband->channels[11];	/* CH 12 */
ch                200 drivers/net/wireless/realtek/rtlwifi/regd.c 		if (ch->flags & IEEE80211_CHAN_PASSIVE_SCAN)
ch                201 drivers/net/wireless/realtek/rtlwifi/regd.c 			ch->flags &= ~IEEE80211_CHAN_PASSIVE_SCAN;
ch                202 drivers/net/wireless/realtek/rtlwifi/regd.c 		ch = &sband->channels[12];	/* CH 13 */
ch                203 drivers/net/wireless/realtek/rtlwifi/regd.c 		if (ch->flags & IEEE80211_CHAN_PASSIVE_SCAN)
ch                204 drivers/net/wireless/realtek/rtlwifi/regd.c 			ch->flags &= ~IEEE80211_CHAN_PASSIVE_SCAN;
ch                215 drivers/net/wireless/realtek/rtlwifi/regd.c 	ch = &sband->channels[11];	/* CH 12 */
ch                216 drivers/net/wireless/realtek/rtlwifi/regd.c 	reg_rule = freq_reg_info(wiphy, ch->center_freq);
ch                219 drivers/net/wireless/realtek/rtlwifi/regd.c 			if (ch->flags & IEEE80211_CHAN_PASSIVE_SCAN)
ch                220 drivers/net/wireless/realtek/rtlwifi/regd.c 				ch->flags &= ~IEEE80211_CHAN_PASSIVE_SCAN;
ch                223 drivers/net/wireless/realtek/rtlwifi/regd.c 	ch = &sband->channels[12];	/* CH 13 */
ch                224 drivers/net/wireless/realtek/rtlwifi/regd.c 	reg_rule = freq_reg_info(wiphy, ch->center_freq);
ch                227 drivers/net/wireless/realtek/rtlwifi/regd.c 			if (ch->flags & IEEE80211_CHAN_PASSIVE_SCAN)
ch                228 drivers/net/wireless/realtek/rtlwifi/regd.c 				ch->flags &= ~IEEE80211_CHAN_PASSIVE_SCAN;
ch                239 drivers/net/wireless/realtek/rtlwifi/regd.c 	struct ieee80211_channel *ch;
ch                248 drivers/net/wireless/realtek/rtlwifi/regd.c 		ch = &sband->channels[i];
ch                249 drivers/net/wireless/realtek/rtlwifi/regd.c 		if (!_rtl_is_radar_freq(ch->center_freq))
ch                263 drivers/net/wireless/realtek/rtlwifi/regd.c 		if (!(ch->flags & IEEE80211_CHAN_DISABLED))
ch                264 drivers/net/wireless/realtek/rtlwifi/regd.c 			ch->flags |= IEEE80211_CHAN_RADAR |
ch               1545 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c 	u32 ch, rfpath, group;
ch               1626 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c 		for (ch = 0; ch < CHANNEL_MAX_NUMBER; ch++) {
ch               1627 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c 			group = rtl92d_get_chnlgroup_fromarray((u8) ch);
ch               1628 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c 			if (ch < CHANNEL_MAX_NUMBER_2G)
ch               1629 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c 				rtlefuse->txpwrlevel_cck[rfpath][ch] =
ch               1631 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c 			rtlefuse->txpwrlevel_ht40_1s[rfpath][ch] =
ch               1633 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c 			rtlefuse->txpwr_ht20diff[rfpath][ch] =
ch               1635 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c 			rtlefuse->txpwr_legacyhtdiff[rfpath][ch] =
ch               1637 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c 			rtlefuse->pwrgroup_ht20[rfpath][ch] =
ch               1639 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c 			rtlefuse->pwrgroup_ht40[rfpath][ch] =
ch               1643 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c 			rtlefuse->txpwrlevel_ht40_2s[rfpath][ch] =
ch                510 drivers/net/wireless/realtek/rtw88/debug.c 	u8 ch = hal->current_channel;
ch                550 drivers/net/wireless/realtek/rtw88/debug.c 						ch, regd, &pwr_param);
ch                230 drivers/net/wireless/realtek/rtw88/fw.c void rtw_fw_wl_ch_info(struct rtw_dev *rtwdev, u8 link, u8 ch, u8 bw)
ch                237 drivers/net/wireless/realtek/rtw88/fw.c 	SET_WL_CH_INFO_CHNL(h2c_pkt, ch);
ch                274 drivers/net/wireless/realtek/rtw88/fw.h void rtw_fw_wl_ch_info(struct rtw_dev *rtwdev, u8 link, u8 ch, u8 bw);
ch               1262 drivers/net/wireless/realtek/rtw88/phy.c 				       u8 bw, u8 rs, u8 ch, s8 pwr_limit)
ch               1271 drivers/net/wireless/realtek/rtw88/phy.c 	ch_idx = rtw_channel_to_idx(band, ch);
ch               1367 drivers/net/wireless/realtek/rtw88/phy.c 					   p->bw, p->rs, p->ch, p->txpwr_lmt);
ch               1737 drivers/net/wireless/realtek/rtw88/phy.c 			     u8 ch, u8 regd, struct rtw_power_params *pwr_param)
ch               1747 drivers/net/wireless/realtek/rtw88/phy.c 	group = rtw_get_channel_group(ch);
ch               1750 drivers/net/wireless/realtek/rtw88/phy.c 	if (ch <= 14) {
ch               1765 drivers/net/wireless/realtek/rtw88/phy.c 					    rate, ch, regd);
ch               1794 drivers/net/wireless/realtek/rtw88/phy.c 					     u8 ch, u8 path, u8 rs)
ch               1814 drivers/net/wireless/realtek/rtw88/phy.c 						     bw, ch, regd);
ch               1825 drivers/net/wireless/realtek/rtw88/phy.c 					       u8 ch, u8 path)
ch               1837 drivers/net/wireless/realtek/rtw88/phy.c 		rtw_phy_set_tx_power_index_by_rs(rtwdev, ch, path, rs);
ch               1908 drivers/net/wireless/realtek/rtw88/phy.c 	u8 ch;
ch               1910 drivers/net/wireless/realtek/rtw88/phy.c 	for (ch = 0; ch < RTW_MAX_CHANNEL_NUM_2G; ch++) {
ch               1912 drivers/net/wireless/realtek/rtw88/phy.c 		hal->tx_pwr_limit_2g[regd][bw][rs][ch] -= base;
ch               1915 drivers/net/wireless/realtek/rtw88/phy.c 	for (ch = 0; ch < RTW_MAX_CHANNEL_NUM_5G; ch++) {
ch               1917 drivers/net/wireless/realtek/rtw88/phy.c 		hal->tx_pwr_limit_5g[regd][bw][rs][ch] -= base;
ch               1939 drivers/net/wireless/realtek/rtw88/phy.c 	u8 ch;
ch               1942 drivers/net/wireless/realtek/rtw88/phy.c 	for (ch = 0; ch < RTW_MAX_CHANNEL_NUM_2G; ch++)
ch               1943 drivers/net/wireless/realtek/rtw88/phy.c 		hal->tx_pwr_limit_2g[regd][bw][rs][ch] = max_power_index;
ch               1946 drivers/net/wireless/realtek/rtw88/phy.c 	for (ch = 0; ch < RTW_MAX_CHANNEL_NUM_5G; ch++)
ch               1947 drivers/net/wireless/realtek/rtw88/phy.c 		hal->tx_pwr_limit_5g[regd][bw][rs][ch] = max_power_index;
ch                 53 drivers/net/wireless/realtek/rtw88/phy.h 	u8 ch;
ch                125 drivers/net/wireless/realtek/rtw88/phy.h 			u8 rate, u8 bw, u8 ch, u8 regd,
ch                268 drivers/net/wireless/realtek/rtw88/regd.c 	struct ieee80211_channel *ch;
ch                277 drivers/net/wireless/realtek/rtw88/regd.c 			ch = &sband->channels[i];
ch                280 drivers/net/wireless/realtek/rtw88/regd.c 						 MHZ_TO_KHZ(ch->center_freq));
ch                284 drivers/net/wireless/realtek/rtw88/regd.c 			ch->flags &= ~IEEE80211_CHAN_DISABLED;
ch                287 drivers/net/wireless/realtek/rtw88/regd.c 				ch->flags &= ~IEEE80211_CHAN_NO_IR;
ch                296 drivers/net/wireless/realtek/rtw88/regd.c 	struct ieee80211_channel *ch;
ch                309 drivers/net/wireless/realtek/rtw88/regd.c 		ch = &sband->channels[i];
ch                310 drivers/net/wireless/realtek/rtw88/regd.c 		ch->flags |= IEEE80211_CHAN_NO_80MHZ;
ch                319 drivers/net/wireless/realtek/rtw88/regd.c 		ch = &sband->channels[i];
ch                320 drivers/net/wireless/realtek/rtw88/regd.c 		ch->flags |= IEEE80211_CHAN_NO_80MHZ;
ch                667 drivers/net/wireless/realtek/rtw88/rtw8822b.c 	u8 ch = rtwdev->hal.current_channel;
ch                760 drivers/net/wireless/realtek/rtw88/rtw8822b.c 	(*rfe_info->rtw_set_channel_rfe)(rtwdev, ch);
ch               1689 drivers/net/wireless/rsi/rsi_91x_mac80211.c 	struct ieee80211_channel *ch;
ch               1704 drivers/net/wireless/rsi/rsi_91x_mac80211.c 			ch = &sband->channels[i];
ch               1705 drivers/net/wireless/rsi/rsi_91x_mac80211.c 			if (ch->flags & IEEE80211_CHAN_DISABLED)
ch               1708 drivers/net/wireless/rsi/rsi_91x_mac80211.c 			if (ch->flags & IEEE80211_CHAN_RADAR)
ch               1709 drivers/net/wireless/rsi/rsi_91x_mac80211.c 				ch->flags |= IEEE80211_CHAN_NO_IR;
ch                 34 drivers/net/wireless/st/cw1200/scan.c 		tmo += scan->ch[i].max_chan_time + 10;
ch                232 drivers/net/wireless/st/cw1200/scan.c 		scan.ch = kcalloc(it - priv->scan.curr,
ch                235 drivers/net/wireless/st/cw1200/scan.c 		if (!scan.ch) {
ch                240 drivers/net/wireless/st/cw1200/scan.c 			scan.ch[i].number = priv->scan.curr[i]->hw_value;
ch                242 drivers/net/wireless/st/cw1200/scan.c 				scan.ch[i].min_chan_time = 50;
ch                243 drivers/net/wireless/st/cw1200/scan.c 				scan.ch[i].max_chan_time = 100;
ch                245 drivers/net/wireless/st/cw1200/scan.c 				scan.ch[i].min_chan_time = 10;
ch                246 drivers/net/wireless/st/cw1200/scan.c 				scan.ch[i].max_chan_time = 25;
ch                256 drivers/net/wireless/st/cw1200/scan.c 		kfree(scan.ch);
ch                370 drivers/net/wireless/st/cw1200/scan.c 	struct wsm_scan_ch ch[1] = {{
ch                380 drivers/net/wireless/st/cw1200/scan.c 		.ch = ch,
ch                415 drivers/net/wireless/st/cw1200/scan.c 	ch[0].number = priv->channel->hw_value;
ch                345 drivers/net/wireless/st/cw1200/sta.c 		struct ieee80211_channel *ch = conf->chandef.chan;
ch                347 drivers/net/wireless/st/cw1200/sta.c 			.channel_number = ch->hw_value,
ch                350 drivers/net/wireless/st/cw1200/sta.c 			 ch->center_freq, ch->hw_value);
ch                360 drivers/net/wireless/st/cw1200/sta.c 					priv->channel = ch;
ch                315 drivers/net/wireless/st/cw1200/wsm.c 		WSM_PUT16(buf, arg->ch[i].number);
ch                317 drivers/net/wireless/st/cw1200/wsm.c 		WSM_PUT32(buf, arg->ch[i].min_chan_time);
ch                318 drivers/net/wireless/st/cw1200/wsm.c 		WSM_PUT32(buf, arg->ch[i].max_chan_time);
ch                734 drivers/net/wireless/st/cw1200/wsm.h 	struct wsm_scan_ch *ch;
ch               1637 drivers/net/wireless/ti/wlcore/cmd.c static int wlcore_get_reg_conf_ch_idx(enum nl80211_band band, u16 ch)
ch               1646 drivers/net/wireless/ti/wlcore/cmd.c 		if (ch >= 1 && ch <= 14)
ch               1647 drivers/net/wireless/ti/wlcore/cmd.c 			return ch - 1;
ch               1650 drivers/net/wireless/ti/wlcore/cmd.c 		switch (ch) {
ch               1653 drivers/net/wireless/ti/wlcore/cmd.c 			return 18 + (ch-8)/4;
ch               1656 drivers/net/wireless/ti/wlcore/cmd.c 			return 21 + (ch-34)/2;
ch               1659 drivers/net/wireless/ti/wlcore/cmd.c 			return 29 + (ch-52)/4;
ch               1662 drivers/net/wireless/ti/wlcore/cmd.c 			return 33 + (ch-100)/4;
ch               1665 drivers/net/wireless/ti/wlcore/cmd.c 			return 44 + (ch-149)/4;
ch               1674 drivers/net/wireless/ti/wlcore/cmd.c 	wl1271_error("%s: unknown band/channel: %d/%d", __func__, band, ch);
ch               1712 drivers/net/wireless/ti/wlcore/cmd.c 			u16 ch = channel->hw_value;
ch               1723 drivers/net/wireless/ti/wlcore/cmd.c 			ch_bit_idx = wlcore_get_reg_conf_ch_idx(b, ch);
ch                 26 drivers/net/wireless/zydas/zd1211rw/zd_rf.h #define RF_CHANNEL(ch) [(ch)-1]
ch                 98 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	struct rcar_gen3_chan *ch;
ch                132 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	struct rcar_gen3_chan *ch = container_of(work, struct rcar_gen3_chan,
ch                135 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	if (ch->extcon_host) {
ch                136 drivers/phy/renesas/phy-rcar-gen3-usb2.c 		extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, true);
ch                137 drivers/phy/renesas/phy-rcar-gen3-usb2.c 		extcon_set_state_sync(ch->extcon, EXTCON_USB, false);
ch                139 drivers/phy/renesas/phy-rcar-gen3-usb2.c 		extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, false);
ch                140 drivers/phy/renesas/phy-rcar-gen3-usb2.c 		extcon_set_state_sync(ch->extcon, EXTCON_USB, true);
ch                144 drivers/phy/renesas/phy-rcar-gen3-usb2.c static void rcar_gen3_set_host_mode(struct rcar_gen3_chan *ch, int host)
ch                146 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	void __iomem *usb2_base = ch->base;
ch                149 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	dev_vdbg(ch->dev, "%s: %08x, %d\n", __func__, val, host);
ch                157 drivers/phy/renesas/phy-rcar-gen3-usb2.c static void rcar_gen3_set_linectrl(struct rcar_gen3_chan *ch, int dp, int dm)
ch                159 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	void __iomem *usb2_base = ch->base;
ch                162 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	dev_vdbg(ch->dev, "%s: %08x, %d, %d\n", __func__, val, dp, dm);
ch                171 drivers/phy/renesas/phy-rcar-gen3-usb2.c static void rcar_gen3_enable_vbus_ctrl(struct rcar_gen3_chan *ch, int vbus)
ch                173 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	void __iomem *usb2_base = ch->base;
ch                176 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	dev_vdbg(ch->dev, "%s: %08x, %d\n", __func__, val, vbus);
ch                184 drivers/phy/renesas/phy-rcar-gen3-usb2.c static void rcar_gen3_control_otg_irq(struct rcar_gen3_chan *ch, int enable)
ch                186 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	void __iomem *usb2_base = ch->base;
ch                189 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	if (ch->uses_otg_pins && enable)
ch                196 drivers/phy/renesas/phy-rcar-gen3-usb2.c static void rcar_gen3_init_for_host(struct rcar_gen3_chan *ch)
ch                198 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	rcar_gen3_set_linectrl(ch, 1, 1);
ch                199 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	rcar_gen3_set_host_mode(ch, 1);
ch                200 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	rcar_gen3_enable_vbus_ctrl(ch, 1);
ch                202 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	ch->extcon_host = true;
ch                203 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	schedule_work(&ch->work);
ch                206 drivers/phy/renesas/phy-rcar-gen3-usb2.c static void rcar_gen3_init_for_peri(struct rcar_gen3_chan *ch)
ch                208 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	rcar_gen3_set_linectrl(ch, 0, 1);
ch                209 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	rcar_gen3_set_host_mode(ch, 0);
ch                210 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	rcar_gen3_enable_vbus_ctrl(ch, 0);
ch                212 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	ch->extcon_host = false;
ch                213 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	schedule_work(&ch->work);
ch                216 drivers/phy/renesas/phy-rcar-gen3-usb2.c static void rcar_gen3_init_for_b_host(struct rcar_gen3_chan *ch)
ch                218 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	void __iomem *usb2_base = ch->base;
ch                224 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	rcar_gen3_set_linectrl(ch, 1, 1);
ch                225 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	rcar_gen3_set_host_mode(ch, 1);
ch                226 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	rcar_gen3_enable_vbus_ctrl(ch, 0);
ch                232 drivers/phy/renesas/phy-rcar-gen3-usb2.c static void rcar_gen3_init_for_a_peri(struct rcar_gen3_chan *ch)
ch                234 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	rcar_gen3_set_linectrl(ch, 0, 1);
ch                235 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	rcar_gen3_set_host_mode(ch, 0);
ch                236 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	rcar_gen3_enable_vbus_ctrl(ch, 1);
ch                239 drivers/phy/renesas/phy-rcar-gen3-usb2.c static void rcar_gen3_init_from_a_peri_to_a_host(struct rcar_gen3_chan *ch)
ch                241 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	rcar_gen3_control_otg_irq(ch, 0);
ch                243 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	rcar_gen3_enable_vbus_ctrl(ch, 1);
ch                244 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	rcar_gen3_init_for_host(ch);
ch                246 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	rcar_gen3_control_otg_irq(ch, 1);
ch                249 drivers/phy/renesas/phy-rcar-gen3-usb2.c static bool rcar_gen3_check_id(struct rcar_gen3_chan *ch)
ch                251 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	if (!ch->uses_otg_pins)
ch                252 drivers/phy/renesas/phy-rcar-gen3-usb2.c 		return (ch->dr_mode == USB_DR_MODE_HOST) ? false : true;
ch                254 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	return !!(readl(ch->base + USB2_ADPCTRL) & USB2_ADPCTRL_IDDIG);
ch                257 drivers/phy/renesas/phy-rcar-gen3-usb2.c static void rcar_gen3_device_recognition(struct rcar_gen3_chan *ch)
ch                259 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	if (!rcar_gen3_check_id(ch))
ch                260 drivers/phy/renesas/phy-rcar-gen3-usb2.c 		rcar_gen3_init_for_host(ch);
ch                262 drivers/phy/renesas/phy-rcar-gen3-usb2.c 		rcar_gen3_init_for_peri(ch);
ch                265 drivers/phy/renesas/phy-rcar-gen3-usb2.c static bool rcar_gen3_is_host(struct rcar_gen3_chan *ch)
ch                267 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	return !(readl(ch->base + USB2_COMMCTRL) & USB2_COMMCTRL_OTG_PERI);
ch                270 drivers/phy/renesas/phy-rcar-gen3-usb2.c static enum phy_mode rcar_gen3_get_phy_mode(struct rcar_gen3_chan *ch)
ch                272 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	if (rcar_gen3_is_host(ch))
ch                278 drivers/phy/renesas/phy-rcar-gen3-usb2.c static bool rcar_gen3_is_any_rphy_initialized(struct rcar_gen3_chan *ch)
ch                283 drivers/phy/renesas/phy-rcar-gen3-usb2.c 		if (ch->rphys[i].initialized)
ch                290 drivers/phy/renesas/phy-rcar-gen3-usb2.c static bool rcar_gen3_needs_init_otg(struct rcar_gen3_chan *ch)
ch                295 drivers/phy/renesas/phy-rcar-gen3-usb2.c 		if (ch->rphys[i].otg_initialized)
ch                302 drivers/phy/renesas/phy-rcar-gen3-usb2.c static bool rcar_gen3_are_all_rphys_power_off(struct rcar_gen3_chan *ch)
ch                307 drivers/phy/renesas/phy-rcar-gen3-usb2.c 		if (ch->rphys[i].powered)
ch                317 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	struct rcar_gen3_chan *ch = dev_get_drvdata(dev);
ch                321 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	if (!ch->is_otg_channel || !rcar_gen3_is_any_rphy_initialized(ch))
ch                332 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	is_b_device = rcar_gen3_check_id(ch);
ch                333 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	cur_mode = rcar_gen3_get_phy_mode(ch);
ch                341 drivers/phy/renesas/phy-rcar-gen3-usb2.c 			rcar_gen3_init_from_a_peri_to_a_host(ch);
ch                343 drivers/phy/renesas/phy-rcar-gen3-usb2.c 			rcar_gen3_init_for_b_host(ch);
ch                346 drivers/phy/renesas/phy-rcar-gen3-usb2.c 			rcar_gen3_init_for_a_peri(ch);
ch                348 drivers/phy/renesas/phy-rcar-gen3-usb2.c 			rcar_gen3_init_for_peri(ch);
ch                357 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	struct rcar_gen3_chan *ch = dev_get_drvdata(dev);
ch                359 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	if (!ch->is_otg_channel || !rcar_gen3_is_any_rphy_initialized(ch))
ch                362 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	return sprintf(buf, "%s\n", rcar_gen3_is_host(ch) ? "host" :
ch                367 drivers/phy/renesas/phy-rcar-gen3-usb2.c static void rcar_gen3_init_otg(struct rcar_gen3_chan *ch)
ch                369 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	void __iomem *usb2_base = ch->base;
ch                389 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	rcar_gen3_device_recognition(ch);
ch                395 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	struct rcar_gen3_chan *channel = rphy->ch;
ch                421 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	struct rcar_gen3_chan *channel = rphy->ch;
ch                442 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	struct rcar_gen3_chan *channel = rphy->ch;
ch                474 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	struct rcar_gen3_chan *channel = rphy->ch;
ch                508 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	struct rcar_gen3_chan *ch = _ch;
ch                509 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	void __iomem *usb2_base = ch->base;
ch                514 drivers/phy/renesas/phy-rcar-gen3-usb2.c 		dev_vdbg(ch->dev, "%s: %08x\n", __func__, status);
ch                516 drivers/phy/renesas/phy-rcar-gen3-usb2.c 		rcar_gen3_device_recognition(ch);
ch                557 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	struct rcar_gen3_chan *ch = dev_get_drvdata(dev);
ch                560 drivers/phy/renesas/phy-rcar-gen3-usb2.c 		return ch->rphys[PHY_INDEX_BOTH_HC].phy;
ch                567 drivers/phy/renesas/phy-rcar-gen3-usb2.c 	return ch->rphys[args->args[0]].phy;
ch                664 drivers/phy/renesas/phy-rcar-gen3-usb2.c 		channel->rphys[i].ch = channel;
ch               1542 drivers/platform/x86/dell-laptop.c 	char ch;
ch               1546 drivers/platform/x86/dell-laptop.c 	ret = sscanf(buf, "%d %c", &value, &ch);
ch               1550 drivers/platform/x86/dell-laptop.c 		ch = 's';
ch               1557 drivers/platform/x86/dell-laptop.c 	switch (ch) {
ch                406 drivers/ps3/ps3av.c int ps3av_set_audio_mode(u32 ch, u32 fs, u32 word_bits, u32 format, u32 source)
ch                435 drivers/ps3/ps3av.c 		ps3av_cmd_set_audio_mode(&audio_mode, ps3av->av_port[i], ch,
ch                667 drivers/ps3/ps3av_cmd.c 			      u32 ch, u32 fs, u32 word_bits, u32 format,
ch                673 drivers/ps3/ps3av_cmd.c 	if (!(ch | fs | format | word_bits | source)) {
ch                674 drivers/ps3/ps3av_cmd.c 		ch = PS3AV_CMD_AUDIO_NUM_OF_CH_2;
ch                687 drivers/ps3/ps3av_cmd.c 	audio->audio_num_of_ch = ch;
ch                693 drivers/ps3/ps3av_cmd.c 	switch (ch) {
ch                719 drivers/ps3/ps3av_cmd.c 		switch (ch) {
ch                 96 drivers/pwm/pwm-atmel.c 				     unsigned int ch, unsigned long offset)
ch                 98 drivers/pwm/pwm-atmel.c 	unsigned long base = PWM_CH_REG_OFFSET + ch * PWM_CH_REG_SIZE;
ch                104 drivers/pwm/pwm-atmel.c 				       unsigned int ch, unsigned long offset,
ch                107 drivers/pwm/pwm-atmel.c 	unsigned long base = PWM_CH_REG_OFFSET + ch * PWM_CH_REG_SIZE;
ch                 25 drivers/pwm/pwm-bcm-iproc.c #define IPROC_PWM_CTRL_TYPE_SHIFT(ch)		(15 + (ch))
ch                 26 drivers/pwm/pwm-bcm-iproc.c #define IPROC_PWM_CTRL_POLARITY_SHIFT(ch)	(8 + (ch))
ch                 27 drivers/pwm/pwm-bcm-iproc.c #define IPROC_PWM_CTRL_EN_SHIFT(ch)		(ch)
ch                 29 drivers/pwm/pwm-bcm-iproc.c #define IPROC_PWM_PERIOD_OFFSET(ch)		(0x04 + ((ch) << 3))
ch                 33 drivers/pwm/pwm-bcm-iproc.c #define IPROC_PWM_DUTY_CYCLE_OFFSET(ch)		(0x08 + ((ch) << 3))
ch                 39 drivers/pwm/pwm-bcm-iproc.c #define IPROC_PWM_PRESCALE_SHIFT(ch)		((3 - (ch)) * \
ch                 41 drivers/pwm/pwm-bcm-iproc.c #define IPROC_PWM_PRESCALE_MASK(ch)		(IPROC_PWM_PRESCALE_MAX << \
ch                 42 drivers/pwm/pwm-bcm-iproc.c 						 IPROC_PWM_PRESCALE_SHIFT(ch))
ch                 34 drivers/pwm/pwm-brcmstb.c #define PWM_CWORD_MSB(ch)	(0x08 + ((ch) * PWM_CH_SIZE))
ch                 35 drivers/pwm/pwm-brcmstb.c #define PWM_CWORD_LSB(ch)	(0x0c + ((ch) * PWM_CH_SIZE))
ch                 47 drivers/pwm/pwm-brcmstb.c #define PWM_ON(ch)		(0x18 + ((ch) * PWM_CH_SIZE))
ch                 49 drivers/pwm/pwm-brcmstb.c #define PWM_PERIOD(ch)		(0x1c + ((ch) * PWM_CH_SIZE))
ch                 29 drivers/pwm/pwm-img.c #define PWM_CTRL_CFG_DIV_SHIFT(ch)		((ch) * 2 + 4)
ch                 32 drivers/pwm/pwm-img.c #define PWM_CH_CFG(ch)				(0x4 + (ch) * 4)
ch                 38 drivers/pwm/pwm-img.c #define PERIP_PWM_PDM_CONTROL_CH_SHIFT(ch)	((ch) * 4)
ch                301 drivers/pwm/pwm-sifive.c 	int ret, ch;
ch                303 drivers/pwm/pwm-sifive.c 	for (ch = 0; ch < ddata->chip.npwm; ch++) {
ch                304 drivers/pwm/pwm-sifive.c 		pwm = &ddata->chip.pwms[ch];
ch                 52 drivers/pwm/pwm-stm32.c static int write_ccrx(struct stm32_pwm *dev, int ch, u32 value)
ch                 54 drivers/pwm/pwm-stm32.c 	switch (ch) {
ch                319 drivers/pwm/pwm-stm32.c static int stm32_pwm_config(struct stm32_pwm *priv, int ch,
ch                347 drivers/pwm/pwm-stm32.c 	if (active_channels(priv) & ~(1 << ch * 4)) {
ch                365 drivers/pwm/pwm-stm32.c 	write_ccrx(priv, ch, dty);
ch                368 drivers/pwm/pwm-stm32.c 	shift = (ch & 0x1) * CCMR_CHANNEL_SHIFT;
ch                372 drivers/pwm/pwm-stm32.c 	if (ch < 2)
ch                384 drivers/pwm/pwm-stm32.c static int stm32_pwm_set_polarity(struct stm32_pwm *priv, int ch,
ch                389 drivers/pwm/pwm-stm32.c 	mask = TIM_CCER_CC1P << (ch * 4);
ch                391 drivers/pwm/pwm-stm32.c 		mask |= TIM_CCER_CC1NP << (ch * 4);
ch                399 drivers/pwm/pwm-stm32.c static int stm32_pwm_enable(struct stm32_pwm *priv, int ch)
ch                409 drivers/pwm/pwm-stm32.c 	mask = TIM_CCER_CC1E << (ch * 4);
ch                411 drivers/pwm/pwm-stm32.c 		mask |= TIM_CCER_CC1NE << (ch * 4);
ch                424 drivers/pwm/pwm-stm32.c static void stm32_pwm_disable(struct stm32_pwm *priv, int ch)
ch                429 drivers/pwm/pwm-stm32.c 	mask = TIM_CCER_CC1E << (ch * 4);
ch                431 drivers/pwm/pwm-stm32.c 		mask |= TIM_CCER_CC1NE << (ch * 4);
ch                 27 drivers/pwm/pwm-sun4i.c #define PWM_CH_PRD(ch)		(PWM_CH_PRD_BASE + PWM_CH_PRD_OFFSET * (ch))
ch                 41 drivers/pwm/pwm-sun4i.c #define PWM_RDY(ch)		BIT(PWM_RDY_BASE + PWM_RDY_OFFSET * (ch))
ch                 43 drivers/rapidio/devices/tsi721.c static void tsi721_omsg_handler(struct tsi721_device *priv, int ch);
ch                 44 drivers/rapidio/devices/tsi721.c static void tsi721_imsg_handler(struct tsi721_device *priv, int ch);
ch                495 drivers/rapidio/devices/tsi721.c 		int ch;
ch                510 drivers/rapidio/devices/tsi721.c 			for (ch = 4; ch < RIO_MAX_MBOX + 4; ch++) {
ch                511 drivers/rapidio/devices/tsi721.c 				if (!(dev_ch_int & TSI721_INT_IMSG_CHAN(ch)))
ch                513 drivers/rapidio/devices/tsi721.c 				tsi721_imsg_handler(priv, ch);
ch                527 drivers/rapidio/devices/tsi721.c 			for (ch = 0; ch < RIO_MAX_MBOX; ch++) {
ch                528 drivers/rapidio/devices/tsi721.c 				if (!(dev_ch_int & TSI721_INT_OMSG_CHAN(ch)))
ch                530 drivers/rapidio/devices/tsi721.c 				tsi721_omsg_handler(priv, ch);
ch                544 drivers/rapidio/devices/tsi721.c 		int ch;
ch                550 drivers/rapidio/devices/tsi721.c 			for (ch = 0; ch < TSI721_DMA_MAXCH; ch++) {
ch                551 drivers/rapidio/devices/tsi721.c 				if (!(dev_ch_int & TSI721_INT_BDMA_CHAN(ch)))
ch                553 drivers/rapidio/devices/tsi721.c 				tsi721_bdma_handler(&priv->bdma[ch]);
ch               1538 drivers/rapidio/devices/tsi721.c tsi721_imsg_interrupt_enable(struct tsi721_device *priv, int ch,
ch               1547 drivers/rapidio/devices/tsi721.c 	iowrite32(inte_mask, priv->regs + TSI721_IBDMAC_INT(ch));
ch               1550 drivers/rapidio/devices/tsi721.c 	rval = ioread32(priv->regs + TSI721_IBDMAC_INTE(ch));
ch               1551 drivers/rapidio/devices/tsi721.c 	iowrite32(rval | inte_mask, priv->regs + TSI721_IBDMAC_INTE(ch));
ch               1562 drivers/rapidio/devices/tsi721.c 	iowrite32(rval | TSI721_INT_IMSG_CHAN(ch),
ch               1568 drivers/rapidio/devices/tsi721.c tsi721_imsg_interrupt_disable(struct tsi721_device *priv, int ch,
ch               1577 drivers/rapidio/devices/tsi721.c 	iowrite32(inte_mask, priv->regs + TSI721_IBDMAC_INT(ch));
ch               1580 drivers/rapidio/devices/tsi721.c 	rval = ioread32(priv->regs + TSI721_IBDMAC_INTE(ch));
ch               1582 drivers/rapidio/devices/tsi721.c 	iowrite32(rval, priv->regs + TSI721_IBDMAC_INTE(ch));
ch               1593 drivers/rapidio/devices/tsi721.c 	rval &= ~TSI721_INT_IMSG_CHAN(ch);
ch               1599 drivers/rapidio/devices/tsi721.c tsi721_omsg_interrupt_enable(struct tsi721_device *priv, int ch,
ch               1608 drivers/rapidio/devices/tsi721.c 	iowrite32(inte_mask, priv->regs + TSI721_OBDMAC_INT(ch));
ch               1611 drivers/rapidio/devices/tsi721.c 	rval = ioread32(priv->regs + TSI721_OBDMAC_INTE(ch));
ch               1612 drivers/rapidio/devices/tsi721.c 	iowrite32(rval | inte_mask, priv->regs + TSI721_OBDMAC_INTE(ch));
ch               1623 drivers/rapidio/devices/tsi721.c 	iowrite32(rval | TSI721_INT_OMSG_CHAN(ch),
ch               1629 drivers/rapidio/devices/tsi721.c tsi721_omsg_interrupt_disable(struct tsi721_device *priv, int ch,
ch               1638 drivers/rapidio/devices/tsi721.c 	iowrite32(inte_mask, priv->regs + TSI721_OBDMAC_INT(ch));
ch               1641 drivers/rapidio/devices/tsi721.c 	rval = ioread32(priv->regs + TSI721_OBDMAC_INTE(ch));
ch               1643 drivers/rapidio/devices/tsi721.c 	iowrite32(rval, priv->regs + TSI721_OBDMAC_INTE(ch));
ch               1654 drivers/rapidio/devices/tsi721.c 	rval &= ~TSI721_INT_OMSG_CHAN(ch);
ch               1734 drivers/rapidio/devices/tsi721.c static void tsi721_omsg_handler(struct tsi721_device *priv, int ch)
ch               1742 drivers/rapidio/devices/tsi721.c 	spin_lock(&priv->omsg_ring[ch].lock);
ch               1744 drivers/rapidio/devices/tsi721.c 	omsg_int = ioread32(priv->regs + TSI721_OBDMAC_INT(ch));
ch               1748 drivers/rapidio/devices/tsi721.c 			"OB MBOX%d: Status FIFO is full", ch);
ch               1760 drivers/rapidio/devices/tsi721.c 		srd_ptr = priv->omsg_ring[ch].sts_rdptr;
ch               1761 drivers/rapidio/devices/tsi721.c 		sts_ptr = priv->omsg_ring[ch].sts_base;
ch               1771 drivers/rapidio/devices/tsi721.c 			srd_ptr %= priv->omsg_ring[ch].sts_size;
ch               1778 drivers/rapidio/devices/tsi721.c 		priv->omsg_ring[ch].sts_rdptr = srd_ptr;
ch               1779 drivers/rapidio/devices/tsi721.c 		iowrite32(srd_ptr, priv->regs + TSI721_OBDMAC_DSRP(ch));
ch               1781 drivers/rapidio/devices/tsi721.c 		if (!mport->outb_msg[ch].mcback)
ch               1786 drivers/rapidio/devices/tsi721.c 		tx_slot = (last_ptr - (u64)priv->omsg_ring[ch].omd_phys)/
ch               1794 drivers/rapidio/devices/tsi721.c 		if (tx_slot == priv->omsg_ring[ch].size) {
ch               1797 drivers/rapidio/devices/tsi721.c 					(u64)priv->omsg_ring[ch].omd_phys)/
ch               1803 drivers/rapidio/devices/tsi721.c 		if (tx_slot >= priv->omsg_ring[ch].size)
ch               1806 drivers/rapidio/devices/tsi721.c 				  tx_slot, priv->omsg_ring[ch].size);
ch               1807 drivers/rapidio/devices/tsi721.c 		WARN_ON(tx_slot >= priv->omsg_ring[ch].size);
ch               1811 drivers/rapidio/devices/tsi721.c 		if (tx_slot == priv->omsg_ring[ch].size)
ch               1814 drivers/rapidio/devices/tsi721.c 		dev_id = priv->omsg_ring[ch].dev_id;
ch               1827 drivers/rapidio/devices/tsi721.c 			  ioread32(priv->regs + TSI721_OBDMAC_STS(ch)));
ch               1830 drivers/rapidio/devices/tsi721.c 				priv->regs + TSI721_OBDMAC_INT(ch));
ch               1832 drivers/rapidio/devices/tsi721.c 				priv->regs + TSI721_OBDMAC_CTL(ch));
ch               1833 drivers/rapidio/devices/tsi721.c 		ioread32(priv->regs + TSI721_OBDMAC_CTL(ch));
ch               1836 drivers/rapidio/devices/tsi721.c 		dev_id = priv->omsg_ring[ch].dev_id;
ch               1837 drivers/rapidio/devices/tsi721.c 		tx_slot = priv->omsg_ring[ch].tx_slot;
ch               1841 drivers/rapidio/devices/tsi721.c 		iowrite32(priv->omsg_ring[ch].tx_slot,
ch               1842 drivers/rapidio/devices/tsi721.c 			priv->regs + TSI721_OBDMAC_DRDCNT(ch));
ch               1843 drivers/rapidio/devices/tsi721.c 		ioread32(priv->regs + TSI721_OBDMAC_DRDCNT(ch));
ch               1844 drivers/rapidio/devices/tsi721.c 		priv->omsg_ring[ch].wr_count = priv->omsg_ring[ch].tx_slot;
ch               1845 drivers/rapidio/devices/tsi721.c 		priv->omsg_ring[ch].sts_rdptr = 0;
ch               1849 drivers/rapidio/devices/tsi721.c 	iowrite32(omsg_int, priv->regs + TSI721_OBDMAC_INT(ch));
ch               1856 drivers/rapidio/devices/tsi721.c 		ch_inte |= TSI721_INT_OMSG_CHAN(ch);
ch               1860 drivers/rapidio/devices/tsi721.c 	spin_unlock(&priv->omsg_ring[ch].lock);
ch               1862 drivers/rapidio/devices/tsi721.c 	if (mport->outb_msg[ch].mcback && do_callback)
ch               1863 drivers/rapidio/devices/tsi721.c 		mport->outb_msg[ch].mcback(mport, dev_id, ch, tx_slot);
ch               2113 drivers/rapidio/devices/tsi721.c static void tsi721_imsg_handler(struct tsi721_device *priv, int ch)
ch               2115 drivers/rapidio/devices/tsi721.c 	u32 mbox = ch - 4;
ch               2121 drivers/rapidio/devices/tsi721.c 	imsg_int = ioread32(priv->regs + TSI721_IBDMAC_INT(ch));
ch               2133 drivers/rapidio/devices/tsi721.c 	iowrite32(imsg_int, priv->regs + TSI721_IBDMAC_INT(ch));
ch               2146 drivers/rapidio/devices/tsi721.c 		ch_inte |= TSI721_INT_IMSG_CHAN(ch);
ch               2164 drivers/rapidio/devices/tsi721.c 	int ch = mbox + 4;
ch               2259 drivers/rapidio/devices/tsi721.c 		priv->regs + TSI721_IBDMAC_FQBH(ch));
ch               2262 drivers/rapidio/devices/tsi721.c 		priv->regs+TSI721_IBDMAC_FQBL(ch));
ch               2264 drivers/rapidio/devices/tsi721.c 		priv->regs + TSI721_IBDMAC_FQSZ(ch));
ch               2268 drivers/rapidio/devices/tsi721.c 		priv->regs + TSI721_IBDMAC_DQBH(ch));
ch               2271 drivers/rapidio/devices/tsi721.c 		priv->regs+TSI721_IBDMAC_DQBL(ch));
ch               2273 drivers/rapidio/devices/tsi721.c 		priv->regs + TSI721_IBDMAC_DQSZ(ch));
ch               2307 drivers/rapidio/devices/tsi721.c 	tsi721_imsg_interrupt_enable(priv, ch, TSI721_IBDMAC_INT_ALL);
ch               2310 drivers/rapidio/devices/tsi721.c 	iowrite32(TSI721_IBDMAC_CTL_INIT, priv->regs + TSI721_IBDMAC_CTL(ch));
ch               2311 drivers/rapidio/devices/tsi721.c 	ioread32(priv->regs + TSI721_IBDMAC_CTL(ch));
ch               2314 drivers/rapidio/devices/tsi721.c 	iowrite32(entries - 1, priv->regs + TSI721_IBDMAC_FQWP(ch));
ch               2358 drivers/rapidio/devices/tsi721.c 	int ch = mbox + 4;
ch               2367 drivers/rapidio/devices/tsi721.c 	tsi721_imsg_interrupt_disable(priv, ch, TSI721_OBDMAC_INT_MASK);
ch               2453 drivers/rapidio/devices/tsi721.c 	int ch = mbox + 4;
ch               2490 drivers/rapidio/devices/tsi721.c 		priv->regs + TSI721_IBDMAC_DQRP(ch));
ch               2500 drivers/rapidio/devices/tsi721.c 		priv->regs + TSI721_IBDMAC_FQWP(ch));
ch               2513 drivers/rapidio/devices/tsi721.c 	int	ch;
ch               2523 drivers/rapidio/devices/tsi721.c 	for (ch = 0; ch < TSI721_IMSG_CHNUM; ch++) {
ch               2526 drivers/rapidio/devices/tsi721.c 			priv->regs + TSI721_IBDMAC_INT(ch));
ch               2528 drivers/rapidio/devices/tsi721.c 		iowrite32(0, priv->regs + TSI721_IBDMAC_STS(ch));
ch               2531 drivers/rapidio/devices/tsi721.c 				priv->regs + TSI721_SMSG_ECC_COR_LOG(ch));
ch               2533 drivers/rapidio/devices/tsi721.c 				priv->regs + TSI721_SMSG_ECC_NCOR(ch));
ch               2578 drivers/rapidio/devices/tsi721.c 	int ch;
ch               2587 drivers/rapidio/devices/tsi721.c 	for (ch = 0; ch < TSI721_IMSG_CHNUM; ch++)
ch               2588 drivers/rapidio/devices/tsi721.c 		iowrite32(0, priv->regs + TSI721_IBDMAC_INTE(ch));
ch               2591 drivers/rapidio/devices/tsi721.c 	for (ch = 0; ch < TSI721_OMSG_CHNUM; ch++)
ch               2592 drivers/rapidio/devices/tsi721.c 		iowrite32(0, priv->regs + TSI721_OBDMAC_INTE(ch));
ch               2598 drivers/rapidio/devices/tsi721.c 	for (ch = 0; ch < TSI721_DMA_MAXCH; ch++)
ch               2600 drivers/rapidio/devices/tsi721.c 			priv->regs + TSI721_DMAC_BASE(ch) + TSI721_DMAC_INTE);
ch               2606 drivers/rapidio/devices/tsi721.c 	for (ch = 0; ch < TSI721_SRIO_MAXCH; ch++)
ch               2607 drivers/rapidio/devices/tsi721.c 		iowrite32(0, priv->regs + TSI721_SR_CHINTE(ch));
ch                228 drivers/rapidio/rio_cm.c static int riocm_ch_close(struct rio_channel *ch);
ch                248 drivers/rapidio/rio_cm.c static int riocm_cmp(struct rio_channel *ch, enum rio_cm_state cmp)
ch                252 drivers/rapidio/rio_cm.c 	spin_lock_bh(&ch->lock);
ch                253 drivers/rapidio/rio_cm.c 	ret = (ch->state == cmp);
ch                254 drivers/rapidio/rio_cm.c 	spin_unlock_bh(&ch->lock);
ch                258 drivers/rapidio/rio_cm.c static int riocm_cmp_exch(struct rio_channel *ch,
ch                263 drivers/rapidio/rio_cm.c 	spin_lock_bh(&ch->lock);
ch                264 drivers/rapidio/rio_cm.c 	ret = (ch->state == cmp);
ch                266 drivers/rapidio/rio_cm.c 		ch->state = exch;
ch                267 drivers/rapidio/rio_cm.c 	spin_unlock_bh(&ch->lock);
ch                271 drivers/rapidio/rio_cm.c static enum rio_cm_state riocm_exch(struct rio_channel *ch,
ch                276 drivers/rapidio/rio_cm.c 	spin_lock_bh(&ch->lock);
ch                277 drivers/rapidio/rio_cm.c 	old = ch->state;
ch                278 drivers/rapidio/rio_cm.c 	ch->state = exch;
ch                279 drivers/rapidio/rio_cm.c 	spin_unlock_bh(&ch->lock);
ch                285 drivers/rapidio/rio_cm.c 	struct rio_channel *ch;
ch                288 drivers/rapidio/rio_cm.c 	ch = idr_find(&ch_idr, nr);
ch                289 drivers/rapidio/rio_cm.c 	if (ch)
ch                290 drivers/rapidio/rio_cm.c 		kref_get(&ch->ref);
ch                292 drivers/rapidio/rio_cm.c 	return ch;
ch                295 drivers/rapidio/rio_cm.c static void riocm_put_channel(struct rio_channel *ch)
ch                297 drivers/rapidio/rio_cm.c 	kref_put(&ch->ref, riocm_ch_free);
ch                378 drivers/rapidio/rio_cm.c 	struct rio_channel *ch;
ch                385 drivers/rapidio/rio_cm.c 	ch = riocm_get_channel(chnum);
ch                387 drivers/rapidio/rio_cm.c 	if (!ch)
ch                390 drivers/rapidio/rio_cm.c 	if (ch->state != RIO_CM_LISTEN) {
ch                392 drivers/rapidio/rio_cm.c 		riocm_put_channel(ch);
ch                398 drivers/rapidio/rio_cm.c 		riocm_put_channel(ch);
ch                406 drivers/rapidio/rio_cm.c 	spin_lock_bh(&ch->lock);
ch                407 drivers/rapidio/rio_cm.c 	list_add_tail(&req->node, &ch->accept_queue);
ch                408 drivers/rapidio/rio_cm.c 	spin_unlock_bh(&ch->lock);
ch                409 drivers/rapidio/rio_cm.c 	complete(&ch->comp);
ch                410 drivers/rapidio/rio_cm.c 	riocm_put_channel(ch);
ch                425 drivers/rapidio/rio_cm.c 	struct rio_channel *ch;
ch                430 drivers/rapidio/rio_cm.c 	ch = riocm_get_channel(chnum);
ch                431 drivers/rapidio/rio_cm.c 	if (!ch)
ch                434 drivers/rapidio/rio_cm.c 	if (ch->state != RIO_CM_CONNECT) {
ch                435 drivers/rapidio/rio_cm.c 		riocm_put_channel(ch);
ch                439 drivers/rapidio/rio_cm.c 	riocm_exch(ch, RIO_CM_CONNECTED);
ch                440 drivers/rapidio/rio_cm.c 	ch->rem_channel = ntohs(hh->src_ch);
ch                441 drivers/rapidio/rio_cm.c 	complete(&ch->comp);
ch                442 drivers/rapidio/rio_cm.c 	riocm_put_channel(ch);
ch                457 drivers/rapidio/rio_cm.c 	struct rio_channel *ch;
ch                464 drivers/rapidio/rio_cm.c 	ch = idr_find(&ch_idr, ntohs(hh->dst_ch));
ch                465 drivers/rapidio/rio_cm.c 	if (!ch) {
ch                469 drivers/rapidio/rio_cm.c 	idr_remove(&ch_idr, ch->id);
ch                472 drivers/rapidio/rio_cm.c 	riocm_exch(ch, RIO_CM_DISCONNECT);
ch                474 drivers/rapidio/rio_cm.c 	ret = riocm_ch_close(ch);
ch                529 drivers/rapidio/rio_cm.c 	struct rio_channel *ch;
ch                535 drivers/rapidio/rio_cm.c 	ch = riocm_get_channel(ntohs(hdr->dst_ch));
ch                536 drivers/rapidio/rio_cm.c 	if (!ch) {
ch                543 drivers/rapidio/rio_cm.c 	spin_lock(&ch->lock);
ch                545 drivers/rapidio/rio_cm.c 	if (ch->state != RIO_CM_CONNECTED) {
ch                548 drivers/rapidio/rio_cm.c 			    ch->id, ch->state);
ch                549 drivers/rapidio/rio_cm.c 		spin_unlock(&ch->lock);
ch                551 drivers/rapidio/rio_cm.c 		riocm_put_channel(ch);
ch                555 drivers/rapidio/rio_cm.c 	if (ch->rx_ring.count == RIOCM_RX_RING_SIZE) {
ch                557 drivers/rapidio/rio_cm.c 		riocm_debug(RX_DATA, "ch=%d is full", ch->id);
ch                558 drivers/rapidio/rio_cm.c 		spin_unlock(&ch->lock);
ch                560 drivers/rapidio/rio_cm.c 		riocm_put_channel(ch);
ch                564 drivers/rapidio/rio_cm.c 	ch->rx_ring.buf[ch->rx_ring.head] = buf;
ch                565 drivers/rapidio/rio_cm.c 	ch->rx_ring.head++;
ch                566 drivers/rapidio/rio_cm.c 	ch->rx_ring.count++;
ch                567 drivers/rapidio/rio_cm.c 	ch->rx_ring.head %= RIOCM_RX_RING_SIZE;
ch                569 drivers/rapidio/rio_cm.c 	complete(&ch->comp);
ch                571 drivers/rapidio/rio_cm.c 	spin_unlock(&ch->lock);
ch                572 drivers/rapidio/rio_cm.c 	riocm_put_channel(ch);
ch                783 drivers/rapidio/rio_cm.c 	struct rio_channel *ch;
ch                790 drivers/rapidio/rio_cm.c 	ch = riocm_get_channel(ch_id);
ch                791 drivers/rapidio/rio_cm.c 	if (!ch) {
ch                797 drivers/rapidio/rio_cm.c 	if (!riocm_cmp(ch, RIO_CM_CONNECTED)) {
ch                807 drivers/rapidio/rio_cm.c 	hdr->bhdr.src_id = htonl(ch->loc_destid);
ch                808 drivers/rapidio/rio_cm.c 	hdr->bhdr.dst_id = htonl(ch->rem_destid);
ch                813 drivers/rapidio/rio_cm.c 	hdr->dst_ch = htons(ch->rem_channel);
ch                814 drivers/rapidio/rio_cm.c 	hdr->src_ch = htons(ch->id);
ch                823 drivers/rapidio/rio_cm.c 	ret = riocm_post_send(ch->cmdev, ch->rdev, buf, len);
ch                825 drivers/rapidio/rio_cm.c 		riocm_debug(TX, "ch %d send_err=%d", ch->id, ret);
ch                827 drivers/rapidio/rio_cm.c 	riocm_put_channel(ch);
ch                831 drivers/rapidio/rio_cm.c static int riocm_ch_free_rxbuf(struct rio_channel *ch, void *buf)
ch                835 drivers/rapidio/rio_cm.c 	spin_lock_bh(&ch->lock);
ch                838 drivers/rapidio/rio_cm.c 		if (ch->rx_ring.inuse[i] == buf) {
ch                839 drivers/rapidio/rio_cm.c 			ch->rx_ring.inuse[i] = NULL;
ch                840 drivers/rapidio/rio_cm.c 			ch->rx_ring.inuse_cnt--;
ch                846 drivers/rapidio/rio_cm.c 	spin_unlock_bh(&ch->lock);
ch                866 drivers/rapidio/rio_cm.c static int riocm_ch_receive(struct rio_channel *ch, void **buf, long timeout)
ch                872 drivers/rapidio/rio_cm.c 	if (!riocm_cmp(ch, RIO_CM_CONNECTED)) {
ch                877 drivers/rapidio/rio_cm.c 	if (ch->rx_ring.inuse_cnt == RIOCM_RX_RING_SIZE) {
ch                885 drivers/rapidio/rio_cm.c 	wret = wait_for_completion_interruptible_timeout(&ch->comp, timeout);
ch                887 drivers/rapidio/rio_cm.c 	riocm_debug(WAIT, "wait on %d returned %ld", ch->id, wret);
ch                894 drivers/rapidio/rio_cm.c 		ret = riocm_cmp(ch, RIO_CM_CONNECTED) ? 0 : -ECONNRESET;
ch                899 drivers/rapidio/rio_cm.c 	spin_lock_bh(&ch->lock);
ch                901 drivers/rapidio/rio_cm.c 	rxmsg = ch->rx_ring.buf[ch->rx_ring.tail];
ch                902 drivers/rapidio/rio_cm.c 	ch->rx_ring.buf[ch->rx_ring.tail] = NULL;
ch                903 drivers/rapidio/rio_cm.c 	ch->rx_ring.count--;
ch                904 drivers/rapidio/rio_cm.c 	ch->rx_ring.tail++;
ch                905 drivers/rapidio/rio_cm.c 	ch->rx_ring.tail %= RIOCM_RX_RING_SIZE;
ch                909 drivers/rapidio/rio_cm.c 		if (ch->rx_ring.inuse[i] == NULL) {
ch                910 drivers/rapidio/rio_cm.c 			ch->rx_ring.inuse[i] = rxmsg;
ch                911 drivers/rapidio/rio_cm.c 			ch->rx_ring.inuse_cnt++;
ch                923 drivers/rapidio/rio_cm.c 	spin_unlock_bh(&ch->lock);
ch                945 drivers/rapidio/rio_cm.c 	struct rio_channel *ch = NULL;
ch                950 drivers/rapidio/rio_cm.c 	ch = riocm_get_channel(loc_ch);
ch                951 drivers/rapidio/rio_cm.c 	if (!ch)
ch                954 drivers/rapidio/rio_cm.c 	if (!riocm_cmp_exch(ch, RIO_CM_IDLE, RIO_CM_CONNECT)) {
ch                959 drivers/rapidio/rio_cm.c 	ch->cmdev = cm;
ch                960 drivers/rapidio/rio_cm.c 	ch->rdev = peer->rdev;
ch                961 drivers/rapidio/rio_cm.c 	ch->context = NULL;
ch                962 drivers/rapidio/rio_cm.c 	ch->loc_destid = cm->mport->host_deviceid;
ch                963 drivers/rapidio/rio_cm.c 	ch->rem_channel = rem_ch;
ch                975 drivers/rapidio/rio_cm.c 	hdr->bhdr.src_id = htonl(ch->loc_destid);
ch               1000 drivers/rapidio/rio_cm.c 		riocm_cmp_exch(ch, RIO_CM_CONNECT, RIO_CM_IDLE);
ch               1005 drivers/rapidio/rio_cm.c 	wret = wait_for_completion_interruptible_timeout(&ch->comp,
ch               1007 drivers/rapidio/rio_cm.c 	riocm_debug(WAIT, "wait on %d returns %ld", ch->id, wret);
ch               1014 drivers/rapidio/rio_cm.c 		ret = riocm_cmp(ch, RIO_CM_CONNECTED) ? 0 : -1;
ch               1017 drivers/rapidio/rio_cm.c 	riocm_put_channel(ch);
ch               1021 drivers/rapidio/rio_cm.c static int riocm_send_ack(struct rio_channel *ch)
ch               1030 drivers/rapidio/rio_cm.c 	hdr->bhdr.src_id = htonl(ch->loc_destid);
ch               1031 drivers/rapidio/rio_cm.c 	hdr->bhdr.dst_id = htonl(ch->rem_destid);
ch               1032 drivers/rapidio/rio_cm.c 	hdr->dst_ch = htons(ch->rem_channel);
ch               1033 drivers/rapidio/rio_cm.c 	hdr->src_ch = htons(ch->id);
ch               1043 drivers/rapidio/rio_cm.c 	ret = riocm_post_send(ch->cmdev, ch->rdev, hdr, sizeof(*hdr));
ch               1045 drivers/rapidio/rio_cm.c 	if (ret == -EBUSY && !riocm_queue_req(ch->cmdev,
ch               1046 drivers/rapidio/rio_cm.c 					      ch->rdev, hdr, sizeof(*hdr)))
ch               1052 drivers/rapidio/rio_cm.c 			    ch->id, rio_name(ch->rdev), ret);
ch               1074 drivers/rapidio/rio_cm.c 	struct rio_channel *ch;
ch               1082 drivers/rapidio/rio_cm.c 	ch = riocm_get_channel(ch_id);
ch               1083 drivers/rapidio/rio_cm.c 	if (!ch)
ch               1086 drivers/rapidio/rio_cm.c 	if (!riocm_cmp(ch, RIO_CM_LISTEN)) {
ch               1093 drivers/rapidio/rio_cm.c 		if (!try_wait_for_completion(&ch->comp)) {
ch               1098 drivers/rapidio/rio_cm.c 		riocm_debug(WAIT, "on %d", ch->id);
ch               1100 drivers/rapidio/rio_cm.c 		wret = wait_for_completion_interruptible_timeout(&ch->comp,
ch               1111 drivers/rapidio/rio_cm.c 	spin_lock_bh(&ch->lock);
ch               1113 drivers/rapidio/rio_cm.c 	if (ch->state != RIO_CM_LISTEN) {
ch               1115 drivers/rapidio/rio_cm.c 	} else if (list_empty(&ch->accept_queue)) {
ch               1117 drivers/rapidio/rio_cm.c 			    ch->id);
ch               1121 drivers/rapidio/rio_cm.c 	spin_unlock_bh(&ch->lock);
ch               1124 drivers/rapidio/rio_cm.c 		riocm_debug(WAIT, "on %d returns %d", ch->id, err);
ch               1138 drivers/rapidio/rio_cm.c 	spin_lock_bh(&ch->lock);
ch               1140 drivers/rapidio/rio_cm.c 	req = list_first_entry(&ch->accept_queue, struct conn_req, node);
ch               1142 drivers/rapidio/rio_cm.c 	new_ch->cmdev = ch->cmdev;
ch               1143 drivers/rapidio/rio_cm.c 	new_ch->loc_destid = ch->loc_destid;
ch               1147 drivers/rapidio/rio_cm.c 	spin_unlock_bh(&ch->lock);
ch               1148 drivers/rapidio/rio_cm.c 	riocm_put_channel(ch);
ch               1149 drivers/rapidio/rio_cm.c 	ch = NULL;
ch               1187 drivers/rapidio/rio_cm.c 	if (ch)
ch               1188 drivers/rapidio/rio_cm.c 		riocm_put_channel(ch);
ch               1203 drivers/rapidio/rio_cm.c 	struct rio_channel *ch = NULL;
ch               1208 drivers/rapidio/rio_cm.c 	ch = riocm_get_channel(ch_id);
ch               1209 drivers/rapidio/rio_cm.c 	if (!ch)
ch               1211 drivers/rapidio/rio_cm.c 	if (!riocm_cmp_exch(ch, RIO_CM_CHAN_BOUND, RIO_CM_LISTEN))
ch               1213 drivers/rapidio/rio_cm.c 	riocm_put_channel(ch);
ch               1230 drivers/rapidio/rio_cm.c 	struct rio_channel *ch = NULL;
ch               1249 drivers/rapidio/rio_cm.c 	ch = riocm_get_channel(ch_id);
ch               1250 drivers/rapidio/rio_cm.c 	if (!ch) {
ch               1255 drivers/rapidio/rio_cm.c 	spin_lock_bh(&ch->lock);
ch               1256 drivers/rapidio/rio_cm.c 	if (ch->state != RIO_CM_IDLE) {
ch               1257 drivers/rapidio/rio_cm.c 		spin_unlock_bh(&ch->lock);
ch               1262 drivers/rapidio/rio_cm.c 	ch->cmdev = cm;
ch               1263 drivers/rapidio/rio_cm.c 	ch->loc_destid = cm->mport->host_deviceid;
ch               1264 drivers/rapidio/rio_cm.c 	ch->context = context;
ch               1265 drivers/rapidio/rio_cm.c 	ch->state = RIO_CM_CHAN_BOUND;
ch               1266 drivers/rapidio/rio_cm.c 	spin_unlock_bh(&ch->lock);
ch               1268 drivers/rapidio/rio_cm.c 	riocm_put_channel(ch);
ch               1285 drivers/rapidio/rio_cm.c 	struct rio_channel *ch;
ch               1287 drivers/rapidio/rio_cm.c 	ch = kzalloc(sizeof(*ch), GFP_KERNEL);
ch               1288 drivers/rapidio/rio_cm.c 	if (!ch)
ch               1303 drivers/rapidio/rio_cm.c 	id = idr_alloc_cyclic(&ch_idr, ch, start, end, GFP_NOWAIT);
ch               1308 drivers/rapidio/rio_cm.c 		kfree(ch);
ch               1312 drivers/rapidio/rio_cm.c 	ch->id = (u16)id;
ch               1313 drivers/rapidio/rio_cm.c 	ch->state = RIO_CM_IDLE;
ch               1314 drivers/rapidio/rio_cm.c 	spin_lock_init(&ch->lock);
ch               1315 drivers/rapidio/rio_cm.c 	INIT_LIST_HEAD(&ch->accept_queue);
ch               1316 drivers/rapidio/rio_cm.c 	INIT_LIST_HEAD(&ch->ch_node);
ch               1317 drivers/rapidio/rio_cm.c 	init_completion(&ch->comp);
ch               1318 drivers/rapidio/rio_cm.c 	init_completion(&ch->comp_close);
ch               1319 drivers/rapidio/rio_cm.c 	kref_init(&ch->ref);
ch               1320 drivers/rapidio/rio_cm.c 	ch->rx_ring.head = 0;
ch               1321 drivers/rapidio/rio_cm.c 	ch->rx_ring.tail = 0;
ch               1322 drivers/rapidio/rio_cm.c 	ch->rx_ring.count = 0;
ch               1323 drivers/rapidio/rio_cm.c 	ch->rx_ring.inuse_cnt = 0;
ch               1325 drivers/rapidio/rio_cm.c 	return ch;
ch               1346 drivers/rapidio/rio_cm.c 	struct rio_channel *ch = NULL;
ch               1348 drivers/rapidio/rio_cm.c 	ch = riocm_ch_alloc(*ch_num);
ch               1350 drivers/rapidio/rio_cm.c 	if (IS_ERR(ch))
ch               1352 drivers/rapidio/rio_cm.c 			    *ch_num, PTR_ERR(ch));
ch               1354 drivers/rapidio/rio_cm.c 		*ch_num = ch->id;
ch               1356 drivers/rapidio/rio_cm.c 	return ch;
ch               1365 drivers/rapidio/rio_cm.c 	struct rio_channel *ch = container_of(ref, struct rio_channel, ref);
ch               1368 drivers/rapidio/rio_cm.c 	riocm_debug(CHOP, "(ch_%d)", ch->id);
ch               1370 drivers/rapidio/rio_cm.c 	if (ch->rx_ring.inuse_cnt) {
ch               1372 drivers/rapidio/rio_cm.c 		     i < RIOCM_RX_RING_SIZE && ch->rx_ring.inuse_cnt; i++) {
ch               1373 drivers/rapidio/rio_cm.c 			if (ch->rx_ring.inuse[i] != NULL) {
ch               1374 drivers/rapidio/rio_cm.c 				kfree(ch->rx_ring.inuse[i]);
ch               1375 drivers/rapidio/rio_cm.c 				ch->rx_ring.inuse_cnt--;
ch               1380 drivers/rapidio/rio_cm.c 	if (ch->rx_ring.count)
ch               1381 drivers/rapidio/rio_cm.c 		for (i = 0; i < RIOCM_RX_RING_SIZE && ch->rx_ring.count; i++) {
ch               1382 drivers/rapidio/rio_cm.c 			if (ch->rx_ring.buf[i] != NULL) {
ch               1383 drivers/rapidio/rio_cm.c 				kfree(ch->rx_ring.buf[i]);
ch               1384 drivers/rapidio/rio_cm.c 				ch->rx_ring.count--;
ch               1388 drivers/rapidio/rio_cm.c 	complete(&ch->comp_close);
ch               1391 drivers/rapidio/rio_cm.c static int riocm_send_close(struct rio_channel *ch)
ch               1404 drivers/rapidio/rio_cm.c 	hdr->bhdr.src_id = htonl(ch->loc_destid);
ch               1405 drivers/rapidio/rio_cm.c 	hdr->bhdr.dst_id = htonl(ch->rem_destid);
ch               1410 drivers/rapidio/rio_cm.c 	hdr->dst_ch = htons(ch->rem_channel);
ch               1411 drivers/rapidio/rio_cm.c 	hdr->src_ch = htons(ch->id);
ch               1417 drivers/rapidio/rio_cm.c 	ret = riocm_post_send(ch->cmdev, ch->rdev, hdr, sizeof(*hdr));
ch               1419 drivers/rapidio/rio_cm.c 	if (ret == -EBUSY && !riocm_queue_req(ch->cmdev, ch->rdev,
ch               1425 drivers/rapidio/rio_cm.c 		riocm_error("ch(%d) send CLOSE failed (ret=%d)", ch->id, ret);
ch               1434 drivers/rapidio/rio_cm.c static int riocm_ch_close(struct rio_channel *ch)
ch               1442 drivers/rapidio/rio_cm.c 		    ch->id, current->comm, task_pid_nr(current));
ch               1444 drivers/rapidio/rio_cm.c 	state = riocm_exch(ch, RIO_CM_DESTROYING);
ch               1446 drivers/rapidio/rio_cm.c 		riocm_send_close(ch);
ch               1448 drivers/rapidio/rio_cm.c 	complete_all(&ch->comp);
ch               1450 drivers/rapidio/rio_cm.c 	riocm_put_channel(ch);
ch               1451 drivers/rapidio/rio_cm.c 	wret = wait_for_completion_interruptible_timeout(&ch->comp_close, tmo);
ch               1453 drivers/rapidio/rio_cm.c 	riocm_debug(WAIT, "wait on %d returns %ld", ch->id, wret);
ch               1458 drivers/rapidio/rio_cm.c 		       current->comm, task_pid_nr(current), ch->id);
ch               1463 drivers/rapidio/rio_cm.c 			current->comm, task_pid_nr(current), ch->id);
ch               1468 drivers/rapidio/rio_cm.c 		riocm_debug(CHOP, "ch_%d resources released", ch->id);
ch               1469 drivers/rapidio/rio_cm.c 		kfree(ch);
ch               1471 drivers/rapidio/rio_cm.c 		riocm_debug(CHOP, "failed to release ch_%d resources", ch->id);
ch               1496 drivers/rapidio/rio_cm.c 	struct rio_channel *ch, *_c;
ch               1505 drivers/rapidio/rio_cm.c 	idr_for_each_entry(&ch_idr, ch, i) {
ch               1506 drivers/rapidio/rio_cm.c 		if (ch && ch->filp == filp) {
ch               1508 drivers/rapidio/rio_cm.c 				    ch->id, current->comm,
ch               1510 drivers/rapidio/rio_cm.c 			idr_remove(&ch_idr, ch->id);
ch               1511 drivers/rapidio/rio_cm.c 			list_add(&ch->ch_node, &list);
ch               1517 drivers/rapidio/rio_cm.c 		list_for_each_entry_safe(ch, _c, &list, ch_node) {
ch               1518 drivers/rapidio/rio_cm.c 			list_del(&ch->ch_node);
ch               1519 drivers/rapidio/rio_cm.c 			riocm_ch_close(ch);
ch               1660 drivers/rapidio/rio_cm.c 	struct rio_channel *ch;
ch               1667 drivers/rapidio/rio_cm.c 	ch = riocm_ch_create(&ch_num);
ch               1668 drivers/rapidio/rio_cm.c 	if (IS_ERR(ch))
ch               1669 drivers/rapidio/rio_cm.c 		return PTR_ERR(ch);
ch               1671 drivers/rapidio/rio_cm.c 	ch->filp = filp;
ch               1686 drivers/rapidio/rio_cm.c 	struct rio_channel *ch;
ch               1695 drivers/rapidio/rio_cm.c 	ch = idr_find(&ch_idr, ch_num);
ch               1696 drivers/rapidio/rio_cm.c 	if (!ch) {
ch               1700 drivers/rapidio/rio_cm.c 	if (ch->filp != filp) {
ch               1704 drivers/rapidio/rio_cm.c 	idr_remove(&ch_idr, ch->id);
ch               1707 drivers/rapidio/rio_cm.c 	return riocm_ch_close(ch);
ch               1750 drivers/rapidio/rio_cm.c 	struct rio_channel *ch;
ch               1761 drivers/rapidio/rio_cm.c 	ch = riocm_ch_accept(param.ch_num, &param.ch_num, accept_to);
ch               1762 drivers/rapidio/rio_cm.c 	if (IS_ERR(ch))
ch               1763 drivers/rapidio/rio_cm.c 		return PTR_ERR(ch);
ch               1764 drivers/rapidio/rio_cm.c 	ch->filp = filp;
ch               1767 drivers/rapidio/rio_cm.c 		    ch->id, current->comm, task_pid_nr(current));
ch               1861 drivers/rapidio/rio_cm.c 	struct rio_channel *ch;
ch               1872 drivers/rapidio/rio_cm.c 	ch = riocm_get_channel(msg.ch_num);
ch               1873 drivers/rapidio/rio_cm.c 	if (!ch)
ch               1878 drivers/rapidio/rio_cm.c 	ret = riocm_ch_receive(ch, &buf, rxto);
ch               1887 drivers/rapidio/rio_cm.c 	riocm_ch_free_rxbuf(ch, buf);
ch               1889 drivers/rapidio/rio_cm.c 	riocm_put_channel(ch);
ch               1993 drivers/rapidio/rio_cm.c 	struct rio_channel *ch, *_c;
ch               2041 drivers/rapidio/rio_cm.c 	idr_for_each_entry(&ch_idr, ch, i) {
ch               2042 drivers/rapidio/rio_cm.c 		if (ch && ch->rdev == rdev) {
ch               2044 drivers/rapidio/rio_cm.c 				riocm_exch(ch, RIO_CM_DISCONNECT);
ch               2045 drivers/rapidio/rio_cm.c 			idr_remove(&ch_idr, ch->id);
ch               2046 drivers/rapidio/rio_cm.c 			list_add(&ch->ch_node, &list);
ch               2052 drivers/rapidio/rio_cm.c 		list_for_each_entry_safe(ch, _c, &list, ch_node) {
ch               2053 drivers/rapidio/rio_cm.c 			list_del(&ch->ch_node);
ch               2054 drivers/rapidio/rio_cm.c 			riocm_ch_close(ch);
ch               2182 drivers/rapidio/rio_cm.c 	struct rio_channel *ch, *_c;
ch               2207 drivers/rapidio/rio_cm.c 	idr_for_each_entry(&ch_idr, ch, i) {
ch               2208 drivers/rapidio/rio_cm.c 		if (ch->cmdev == cm) {
ch               2210 drivers/rapidio/rio_cm.c 				    mport->name, ch->id);
ch               2211 drivers/rapidio/rio_cm.c 			idr_remove(&ch_idr, ch->id);
ch               2212 drivers/rapidio/rio_cm.c 			list_add(&ch->ch_node, &list);
ch               2218 drivers/rapidio/rio_cm.c 		list_for_each_entry_safe(ch, _c, &list, ch_node) {
ch               2219 drivers/rapidio/rio_cm.c 			list_del(&ch->ch_node);
ch               2220 drivers/rapidio/rio_cm.c 			riocm_ch_close(ch);
ch               2244 drivers/rapidio/rio_cm.c 	struct rio_channel *ch;
ch               2258 drivers/rapidio/rio_cm.c 	idr_for_each_entry(&ch_idr, ch, i) {
ch               2259 drivers/rapidio/rio_cm.c 		if (ch->state == RIO_CM_CONNECTED) {
ch               2260 drivers/rapidio/rio_cm.c 			riocm_debug(EXIT, "close ch %d", ch->id);
ch               2261 drivers/rapidio/rio_cm.c 			idr_remove(&ch_idr, ch->id);
ch               2262 drivers/rapidio/rio_cm.c 			list_add(&ch->ch_node, &list);
ch               2267 drivers/rapidio/rio_cm.c 	list_for_each_entry(ch, &list, ch_node)
ch               2268 drivers/rapidio/rio_cm.c 		riocm_send_close(ch);
ch                143 drivers/reset/reset-uniphier.c #define UNIPHIER_MIO_RESET_SD(id, ch)			\
ch                144 drivers/reset/reset-uniphier.c 	UNIPHIER_RESETX((id), 0x110 + 0x200 * (ch), 0)
ch                146 drivers/reset/reset-uniphier.c #define UNIPHIER_MIO_RESET_SD_BRIDGE(id, ch)		\
ch                147 drivers/reset/reset-uniphier.c 	UNIPHIER_RESETX((id), 0x110 + 0x200 * (ch), 26)
ch                149 drivers/reset/reset-uniphier.c #define UNIPHIER_MIO_RESET_EMMC_HW_RESET(id, ch)	\
ch                150 drivers/reset/reset-uniphier.c 	UNIPHIER_RESETX((id), 0x80 + 0x200 * (ch), 0)
ch                152 drivers/reset/reset-uniphier.c #define UNIPHIER_MIO_RESET_USB2(id, ch)			\
ch                153 drivers/reset/reset-uniphier.c 	UNIPHIER_RESETX((id), 0x114 + 0x200 * (ch), 0)
ch                155 drivers/reset/reset-uniphier.c #define UNIPHIER_MIO_RESET_USB2_BRIDGE(id, ch)		\
ch                156 drivers/reset/reset-uniphier.c 	UNIPHIER_RESETX((id), 0x110 + 0x200 * (ch), 24)
ch                187 drivers/reset/reset-uniphier.c #define UNIPHIER_PERI_RESET_UART(id, ch)		\
ch                188 drivers/reset/reset-uniphier.c 	UNIPHIER_RESETX((id), 0x114, 19 + (ch))
ch                190 drivers/reset/reset-uniphier.c #define UNIPHIER_PERI_RESET_I2C(id, ch)			\
ch                191 drivers/reset/reset-uniphier.c 	UNIPHIER_RESETX((id), 0x114, 5 + (ch))
ch                193 drivers/reset/reset-uniphier.c #define UNIPHIER_PERI_RESET_FI2C(id, ch)		\
ch                194 drivers/reset/reset-uniphier.c 	UNIPHIER_RESETX((id), 0x114, 24 + (ch))
ch                196 drivers/reset/reset-uniphier.c #define UNIPHIER_PERI_RESET_SCSSI(id, ch)		\
ch                197 drivers/reset/reset-uniphier.c 	UNIPHIER_RESETX((id), 0x110, 17 + (ch))
ch                 52 drivers/reset/sti/reset-syscfg.c 	const struct syscfg_reset_channel *ch;
ch                 59 drivers/reset/sti/reset-syscfg.c 	ch = &rst->channels[idx];
ch                 61 drivers/reset/sti/reset-syscfg.c 	err = regmap_field_write(ch->reset, ctrl_val);
ch                 65 drivers/reset/sti/reset-syscfg.c 	if (ch->ack) {
ch                 70 drivers/reset/sti/reset-syscfg.c 			err = regmap_field_read(ch->ack, &ack_val);
ch                115 drivers/reset/sti/reset-syscfg.c 	const struct syscfg_reset_channel *ch;
ch                122 drivers/reset/sti/reset-syscfg.c 	ch = &rst->channels[idx];
ch                123 drivers/reset/sti/reset-syscfg.c 	if (ch->ack)
ch                124 drivers/reset/sti/reset-syscfg.c 		err = regmap_field_read(ch->ack, &ret_val);
ch                126 drivers/reset/sti/reset-syscfg.c 		err = regmap_field_read(ch->reset, &ret_val);
ch                956 drivers/rpmsg/qcom_smd.c 	struct qcom_smd_channel *ch = qsept->qsch;
ch                958 drivers/rpmsg/qcom_smd.c 	qcom_smd_channel_close(ch);
ch                959 drivers/rpmsg/qcom_smd.c 	ch->qsept = NULL;
ch                472 drivers/s390/char/con3215.c 	char ch;
ch                477 drivers/s390/char/con3215.c 		ch = raw->buffer[ix];
ch                480 drivers/s390/char/con3215.c 		if (ch == 0x15)
ch                563 drivers/s390/char/con3215.c static void raw3215_putchar(struct raw3215_info *raw, unsigned char ch)
ch                569 drivers/s390/char/con3215.c 	if (ch == '\t') {
ch                572 drivers/s390/char/con3215.c 		ch = ' ';
ch                573 drivers/s390/char/con3215.c 	} else if (ch == '\n') {
ch                583 drivers/s390/char/con3215.c 		raw->buffer[raw->head] = (char) _ascebc[(int) ch];
ch               1065 drivers/s390/char/con3215.c static int tty3215_put_char(struct tty_struct *tty, unsigned char ch)
ch               1072 drivers/s390/char/con3215.c 	raw3215_putchar(raw, ch);
ch                212 drivers/s390/char/keyboard.c handle_diacr(struct kbd_data *kbd, unsigned int ch)
ch                221 drivers/s390/char/keyboard.c 		    kbd->accent_table[i].base == ch)
ch                225 drivers/s390/char/keyboard.c 	if (ch == ' ' || ch == d)
ch                229 drivers/s390/char/keyboard.c 	return ch;
ch                 56 drivers/s390/char/keyboard.h kbd_put_queue(struct tty_port *port, int ch)
ch                 58 drivers/s390/char/keyboard.h 	tty_insert_flip_char(port, ch, 0);
ch                363 drivers/s390/char/sclp.h sclp_ascebc(unsigned char ch)
ch                365 drivers/s390/char/sclp.h 	return (MACHINE_IS_VM) ? _ascebc[ch] : _ascebc_500[ch];
ch                 86 drivers/s390/char/sclp_early_core.c 	unsigned char *ptr, *end, ch;
ch                101 drivers/s390/char/sclp_early_core.c 			ch = str[offset++];
ch                102 drivers/s390/char/sclp_early_core.c 			if ((ch == 0x0a) || (ptr + count > end))
ch                104 drivers/s390/char/sclp_early_core.c 			ptr[count] = _ascebc[ch];
ch                254 drivers/s390/char/sclp_tty.c sclp_tty_put_char(struct tty_struct *tty, unsigned char ch)
ch                256 drivers/s390/char/sclp_tty.c 	sclp_tty_chars[sclp_tty_chars_count++] = ch;
ch                257 drivers/s390/char/sclp_tty.c 	if (ch == '\n' || sclp_tty_chars_count >= SCLP_TTY_BUF_SIZE) {
ch                589 drivers/s390/char/sclp_vt220.c sclp_vt220_put_char(struct tty_struct *tty, unsigned char ch)
ch                591 drivers/s390/char/sclp_vt220.c 	return __sclp_vt220_write(&ch, 1, 0, 0, 1);
ch               1084 drivers/s390/char/tty3270.c static void tty3270_put_character(struct tty3270 *tp, char ch)
ch               1101 drivers/s390/char/tty3270.c 	cell->character = tp->view.ascebc[(unsigned int) ch];
ch               1488 drivers/s390/char/tty3270.c tty3270_escape_sequence(struct tty3270 *tp, char ch)
ch               1493 drivers/s390/char/tty3270.c 		if (ch == 0x1b)
ch               1500 drivers/s390/char/tty3270.c 		switch (ch) {
ch               1543 drivers/s390/char/tty3270.c 		tp->esc_ques = (ch == '?');
ch               1548 drivers/s390/char/tty3270.c 		if (ch == ';' && tp->esc_npar < ESCAPE_NPAR - 1) {
ch               1552 drivers/s390/char/tty3270.c 		if (ch >= '0' && ch <= '9') {
ch               1554 drivers/s390/char/tty3270.c 			tp->esc_par[tp->esc_npar] += ch - '0';
ch               1559 drivers/s390/char/tty3270.c 	if (ch == 'n' && !tp->esc_ques) {
ch               1571 drivers/s390/char/tty3270.c 	switch (ch) {
ch               1730 drivers/s390/char/tty3270.c static int tty3270_put_char(struct tty_struct *tty, unsigned char ch)
ch               1737 drivers/s390/char/tty3270.c 	tp->char_buf[tp->char_count++] = ch;
ch                191 drivers/s390/net/ctcm_fsms.c void ctcm_ccw_check_rc(struct channel *ch, int rc, char *msg)
ch                195 drivers/s390/net/ctcm_fsms.c 		CTCM_FUNTAIL, ch->id, msg, rc);
ch                199 drivers/s390/net/ctcm_fsms.c 			ch->id);
ch                200 drivers/s390/net/ctcm_fsms.c 		fsm_event(ch->fsm, CTC_EVENT_IO_EBUSY, ch);
ch                204 drivers/s390/net/ctcm_fsms.c 		       ch->id);
ch                205 drivers/s390/net/ctcm_fsms.c 		fsm_event(ch->fsm, CTC_EVENT_IO_ENODEV, ch);
ch                210 drivers/s390/net/ctcm_fsms.c 		fsm_event(ch->fsm, CTC_EVENT_IO_UNKNOWN, ch);
ch                248 drivers/s390/net/ctcm_fsms.c 	struct channel *ch = arg;
ch                249 drivers/s390/net/ctcm_fsms.c 	struct net_device *dev = ch->netdev;
ch                257 drivers/s390/net/ctcm_fsms.c 	CTCM_PR_DEBUG("%s(%s): %s\n", __func__, ch->id, dev->name);
ch                259 drivers/s390/net/ctcm_fsms.c 	duration = done_stamp - ch->prof.send_stamp;
ch                260 drivers/s390/net/ctcm_fsms.c 	if (duration > ch->prof.tx_time)
ch                261 drivers/s390/net/ctcm_fsms.c 		ch->prof.tx_time = duration;
ch                263 drivers/s390/net/ctcm_fsms.c 	if (ch->irb->scsw.cmd.count != 0)
ch                266 drivers/s390/net/ctcm_fsms.c 			     CTCM_FUNTAIL, dev->name, ch->irb->scsw.cmd.count);
ch                267 drivers/s390/net/ctcm_fsms.c 	fsm_deltimer(&ch->timer);
ch                268 drivers/s390/net/ctcm_fsms.c 	while ((skb = skb_dequeue(&ch->io_queue))) {
ch                278 drivers/s390/net/ctcm_fsms.c 	spin_lock(&ch->collect_lock);
ch                279 drivers/s390/net/ctcm_fsms.c 	clear_normalized_cda(&ch->ccw[4]);
ch                280 drivers/s390/net/ctcm_fsms.c 	if (ch->collect_len > 0) {
ch                283 drivers/s390/net/ctcm_fsms.c 		if (ctcm_checkalloc_buffer(ch)) {
ch                284 drivers/s390/net/ctcm_fsms.c 			spin_unlock(&ch->collect_lock);
ch                287 drivers/s390/net/ctcm_fsms.c 		ch->trans_skb->data = ch->trans_skb_data;
ch                288 drivers/s390/net/ctcm_fsms.c 		skb_reset_tail_pointer(ch->trans_skb);
ch                289 drivers/s390/net/ctcm_fsms.c 		ch->trans_skb->len = 0;
ch                290 drivers/s390/net/ctcm_fsms.c 		if (ch->prof.maxmulti < (ch->collect_len + 2))
ch                291 drivers/s390/net/ctcm_fsms.c 			ch->prof.maxmulti = ch->collect_len + 2;
ch                292 drivers/s390/net/ctcm_fsms.c 		if (ch->prof.maxcqueue < skb_queue_len(&ch->collect_queue))
ch                293 drivers/s390/net/ctcm_fsms.c 			ch->prof.maxcqueue = skb_queue_len(&ch->collect_queue);
ch                294 drivers/s390/net/ctcm_fsms.c 		*((__u16 *)skb_put(ch->trans_skb, 2)) = ch->collect_len + 2;
ch                296 drivers/s390/net/ctcm_fsms.c 		while ((skb = skb_dequeue(&ch->collect_queue))) {
ch                298 drivers/s390/net/ctcm_fsms.c 				skb_put(ch->trans_skb, skb->len), skb->len);
ch                305 drivers/s390/net/ctcm_fsms.c 		ch->collect_len = 0;
ch                306 drivers/s390/net/ctcm_fsms.c 		spin_unlock(&ch->collect_lock);
ch                307 drivers/s390/net/ctcm_fsms.c 		ch->ccw[1].count = ch->trans_skb->len;
ch                308 drivers/s390/net/ctcm_fsms.c 		fsm_addtimer(&ch->timer, CTCM_TIME_5_SEC, CTC_EVENT_TIMER, ch);
ch                309 drivers/s390/net/ctcm_fsms.c 		ch->prof.send_stamp = jiffies;
ch                310 drivers/s390/net/ctcm_fsms.c 		rc = ccw_device_start(ch->cdev, &ch->ccw[0], 0, 0xff, 0);
ch                311 drivers/s390/net/ctcm_fsms.c 		ch->prof.doios_multi++;
ch                315 drivers/s390/net/ctcm_fsms.c 			fsm_deltimer(&ch->timer);
ch                316 drivers/s390/net/ctcm_fsms.c 			ctcm_ccw_check_rc(ch, rc, "chained TX");
ch                319 drivers/s390/net/ctcm_fsms.c 		spin_unlock(&ch->collect_lock);
ch                336 drivers/s390/net/ctcm_fsms.c 	struct channel *ch = arg;
ch                337 drivers/s390/net/ctcm_fsms.c 	struct net_device *dev = ch->netdev;
ch                340 drivers/s390/net/ctcm_fsms.c 	CTCM_PR_DEBUG("%s(%s): %s\n", __func__, ch->id, dev->name);
ch                342 drivers/s390/net/ctcm_fsms.c 	fsm_deltimer(&ch->timer);
ch                344 drivers/s390/net/ctcm_fsms.c 	fsm_event(priv->fsm, DEV_EVENT_TXUP, ch->netdev);
ch                357 drivers/s390/net/ctcm_fsms.c 	struct channel *ch = arg;
ch                358 drivers/s390/net/ctcm_fsms.c 	struct net_device *dev = ch->netdev;
ch                360 drivers/s390/net/ctcm_fsms.c 	int len = ch->max_bufsize - ch->irb->scsw.cmd.count;
ch                361 drivers/s390/net/ctcm_fsms.c 	struct sk_buff *skb = ch->trans_skb;
ch                366 drivers/s390/net/ctcm_fsms.c 	fsm_deltimer(&ch->timer);
ch                375 drivers/s390/net/ctcm_fsms.c 	if (len > ch->max_bufsize) {
ch                378 drivers/s390/net/ctcm_fsms.c 				CTCM_FUNTAIL, dev->name, len, ch->max_bufsize);
ch                387 drivers/s390/net/ctcm_fsms.c 	switch (ch->protocol) {
ch                410 drivers/s390/net/ctcm_fsms.c 		ctcm_unpack_skb(ch, skb);
ch                413 drivers/s390/net/ctcm_fsms.c 	skb->data = ch->trans_skb_data;
ch                416 drivers/s390/net/ctcm_fsms.c 	if (ctcm_checkalloc_buffer(ch))
ch                418 drivers/s390/net/ctcm_fsms.c 	ch->ccw[1].count = ch->max_bufsize;
ch                419 drivers/s390/net/ctcm_fsms.c 	rc = ccw_device_start(ch->cdev, &ch->ccw[0], 0, 0xff, 0);
ch                421 drivers/s390/net/ctcm_fsms.c 		ctcm_ccw_check_rc(ch, rc, "normal RX");
ch                434 drivers/s390/net/ctcm_fsms.c 	struct channel *ch = arg;
ch                439 drivers/s390/net/ctcm_fsms.c 		CTCM_FUNTAIL, ch->id, fsmstate);
ch                441 drivers/s390/net/ctcm_fsms.c 	ch->sense_rc = 0;	/* reset unit check report control */
ch                445 drivers/s390/net/ctcm_fsms.c 				CTCM_FUNTAIL, ch->id);
ch                446 drivers/s390/net/ctcm_fsms.c 	fsm_deltimer(&ch->timer);
ch                447 drivers/s390/net/ctcm_fsms.c 	if (ctcm_checkalloc_buffer(ch))
ch                450 drivers/s390/net/ctcm_fsms.c 	    (ch->protocol == CTCM_PROTO_OS390)) {
ch                452 drivers/s390/net/ctcm_fsms.c 		if (CHANNEL_DIRECTION(ch->flags) == CTCM_READ) {
ch                453 drivers/s390/net/ctcm_fsms.c 			*((__u16 *)ch->trans_skb->data) = CTCM_INITIAL_BLOCKLEN;
ch                454 drivers/s390/net/ctcm_fsms.c 			fsm_addtimer(&ch->timer, CTCM_TIME_5_SEC,
ch                455 drivers/s390/net/ctcm_fsms.c 				     CTC_EVENT_TIMER, ch);
ch                458 drivers/s390/net/ctcm_fsms.c 			struct net_device *dev = ch->netdev;
ch                470 drivers/s390/net/ctcm_fsms.c 	if ((CHANNEL_DIRECTION(ch->flags) == CTCM_WRITE) ||
ch                471 drivers/s390/net/ctcm_fsms.c 	    (ch->protocol != CTCM_PROTO_S390))
ch                472 drivers/s390/net/ctcm_fsms.c 		fsm_addtimer(&ch->timer, CTCM_TIME_5_SEC, CTC_EVENT_TIMER, ch);
ch                474 drivers/s390/net/ctcm_fsms.c 	*((__u16 *)ch->trans_skb->data) = CTCM_INITIAL_BLOCKLEN;
ch                475 drivers/s390/net/ctcm_fsms.c 	ch->ccw[1].count = 2;	/* Transfer only length */
ch                477 drivers/s390/net/ctcm_fsms.c 	fsm_newstate(fi, (CHANNEL_DIRECTION(ch->flags) == CTCM_READ)
ch                479 drivers/s390/net/ctcm_fsms.c 	rc = ccw_device_start(ch->cdev, &ch->ccw[0], 0, 0xff, 0);
ch                481 drivers/s390/net/ctcm_fsms.c 		fsm_deltimer(&ch->timer);
ch                483 drivers/s390/net/ctcm_fsms.c 		ctcm_ccw_check_rc(ch, rc, "init IO");
ch                492 drivers/s390/net/ctcm_fsms.c 	if ((CHANNEL_DIRECTION(ch->flags) == CTCM_READ) &&
ch                493 drivers/s390/net/ctcm_fsms.c 	    (ch->protocol == CTCM_PROTO_S390)) {
ch                494 drivers/s390/net/ctcm_fsms.c 		struct net_device *dev = ch->netdev;
ch                511 drivers/s390/net/ctcm_fsms.c 	struct channel *ch = arg;
ch                512 drivers/s390/net/ctcm_fsms.c 	struct net_device *dev = ch->netdev;
ch                517 drivers/s390/net/ctcm_fsms.c 	fsm_deltimer(&ch->timer);
ch                518 drivers/s390/net/ctcm_fsms.c 	buflen = *((__u16 *)ch->trans_skb->data);
ch                523 drivers/s390/net/ctcm_fsms.c 		if (ctcm_checkalloc_buffer(ch))
ch                525 drivers/s390/net/ctcm_fsms.c 		ch->ccw[1].count = ch->max_bufsize;
ch                527 drivers/s390/net/ctcm_fsms.c 		rc = ccw_device_start(ch->cdev, &ch->ccw[0], 0, 0xff, 0);
ch                530 drivers/s390/net/ctcm_fsms.c 			ctcm_ccw_check_rc(ch, rc, "initial RX");
ch                550 drivers/s390/net/ctcm_fsms.c 	struct channel *ch = arg;
ch                555 drivers/s390/net/ctcm_fsms.c 	fsm_deltimer(&ch->timer);
ch                556 drivers/s390/net/ctcm_fsms.c 	if (IS_MPC(ch)) {
ch                559 drivers/s390/net/ctcm_fsms.c 				__func__, smp_processor_id(), ch, ch->id);
ch                561 drivers/s390/net/ctcm_fsms.c 	fsm_addtimer(&ch->timer, timeout, CTC_EVENT_TIMER, ch);
ch                563 drivers/s390/net/ctcm_fsms.c 	CTCM_CCW_DUMP((char *)&ch->ccw[6], sizeof(struct ccw1) * 2);
ch                566 drivers/s390/net/ctcm_fsms.c 		spin_lock_irqsave(get_ccwdev_lock(ch->cdev), saveflags);
ch                570 drivers/s390/net/ctcm_fsms.c 	rc = ccw_device_start(ch->cdev, &ch->ccw[6], 0, 0xff, 0);
ch                572 drivers/s390/net/ctcm_fsms.c 		spin_unlock_irqrestore(get_ccwdev_lock(ch->cdev), saveflags);
ch                574 drivers/s390/net/ctcm_fsms.c 		fsm_deltimer(&ch->timer);
ch                576 drivers/s390/net/ctcm_fsms.c 		ctcm_ccw_check_rc(ch, rc, "set Mode");
ch                578 drivers/s390/net/ctcm_fsms.c 		ch->retry = 0;
ch                590 drivers/s390/net/ctcm_fsms.c 	struct channel *ch	= arg;
ch                595 drivers/s390/net/ctcm_fsms.c 		CTCM_FUNTAIL, ch->id,
ch                596 drivers/s390/net/ctcm_fsms.c 		(CHANNEL_DIRECTION(ch->flags) == CTCM_READ) ? "RX" : "TX");
ch                598 drivers/s390/net/ctcm_fsms.c 	if (ch->trans_skb != NULL) {
ch                599 drivers/s390/net/ctcm_fsms.c 		clear_normalized_cda(&ch->ccw[1]);
ch                600 drivers/s390/net/ctcm_fsms.c 		dev_kfree_skb(ch->trans_skb);
ch                601 drivers/s390/net/ctcm_fsms.c 		ch->trans_skb = NULL;
ch                603 drivers/s390/net/ctcm_fsms.c 	if (CHANNEL_DIRECTION(ch->flags) == CTCM_READ) {
ch                604 drivers/s390/net/ctcm_fsms.c 		ch->ccw[1].cmd_code = CCW_CMD_READ;
ch                605 drivers/s390/net/ctcm_fsms.c 		ch->ccw[1].flags = CCW_FLAG_SLI;
ch                606 drivers/s390/net/ctcm_fsms.c 		ch->ccw[1].count = 0;
ch                608 drivers/s390/net/ctcm_fsms.c 		ch->ccw[1].cmd_code = CCW_CMD_WRITE;
ch                609 drivers/s390/net/ctcm_fsms.c 		ch->ccw[1].flags = CCW_FLAG_SLI | CCW_FLAG_CC;
ch                610 drivers/s390/net/ctcm_fsms.c 		ch->ccw[1].count = 0;
ch                612 drivers/s390/net/ctcm_fsms.c 	if (ctcm_checkalloc_buffer(ch)) {
ch                616 drivers/s390/net/ctcm_fsms.c 			CTCM_FUNTAIL, ch->id,
ch                617 drivers/s390/net/ctcm_fsms.c 			(CHANNEL_DIRECTION(ch->flags) == CTCM_READ) ?
ch                620 drivers/s390/net/ctcm_fsms.c 	ch->ccw[0].cmd_code = CCW_CMD_PREPARE;
ch                621 drivers/s390/net/ctcm_fsms.c 	ch->ccw[0].flags = CCW_FLAG_SLI | CCW_FLAG_CC;
ch                622 drivers/s390/net/ctcm_fsms.c 	ch->ccw[0].count = 0;
ch                623 drivers/s390/net/ctcm_fsms.c 	ch->ccw[0].cda = 0;
ch                624 drivers/s390/net/ctcm_fsms.c 	ch->ccw[2].cmd_code = CCW_CMD_NOOP;	/* jointed CE + DE */
ch                625 drivers/s390/net/ctcm_fsms.c 	ch->ccw[2].flags = CCW_FLAG_SLI;
ch                626 drivers/s390/net/ctcm_fsms.c 	ch->ccw[2].count = 0;
ch                627 drivers/s390/net/ctcm_fsms.c 	ch->ccw[2].cda = 0;
ch                628 drivers/s390/net/ctcm_fsms.c 	memcpy(&ch->ccw[3], &ch->ccw[0], sizeof(struct ccw1) * 3);
ch                629 drivers/s390/net/ctcm_fsms.c 	ch->ccw[4].cda = 0;
ch                630 drivers/s390/net/ctcm_fsms.c 	ch->ccw[4].flags &= ~CCW_FLAG_IDA;
ch                633 drivers/s390/net/ctcm_fsms.c 	fsm_addtimer(&ch->timer, 1000, CTC_EVENT_TIMER, ch);
ch                634 drivers/s390/net/ctcm_fsms.c 	spin_lock_irqsave(get_ccwdev_lock(ch->cdev), saveflags);
ch                635 drivers/s390/net/ctcm_fsms.c 	rc = ccw_device_halt(ch->cdev, 0);
ch                636 drivers/s390/net/ctcm_fsms.c 	spin_unlock_irqrestore(get_ccwdev_lock(ch->cdev), saveflags);
ch                639 drivers/s390/net/ctcm_fsms.c 			fsm_deltimer(&ch->timer);
ch                640 drivers/s390/net/ctcm_fsms.c 		ctcm_ccw_check_rc(ch, rc, "initial HaltIO");
ch                653 drivers/s390/net/ctcm_fsms.c 	struct channel *ch = arg;
ch                658 drivers/s390/net/ctcm_fsms.c 	fsm_deltimer(&ch->timer);
ch                659 drivers/s390/net/ctcm_fsms.c 	if (IS_MPC(ch))
ch                660 drivers/s390/net/ctcm_fsms.c 		fsm_deltimer(&ch->sweep_timer);
ch                662 drivers/s390/net/ctcm_fsms.c 	fsm_addtimer(&ch->timer, CTCM_TIME_5_SEC, CTC_EVENT_TIMER, ch);
ch                665 drivers/s390/net/ctcm_fsms.c 		spin_lock_irqsave(get_ccwdev_lock(ch->cdev), saveflags);
ch                670 drivers/s390/net/ctcm_fsms.c 	rc = ccw_device_halt(ch->cdev, 0);
ch                673 drivers/s390/net/ctcm_fsms.c 		spin_unlock_irqrestore(get_ccwdev_lock(ch->cdev), saveflags);
ch                677 drivers/s390/net/ctcm_fsms.c 		fsm_deltimer(&ch->timer);
ch                680 drivers/s390/net/ctcm_fsms.c 			ctcm_ccw_check_rc(ch, rc, (char *)__func__);
ch                694 drivers/s390/net/ctcm_fsms.c 		struct channel *ch)
ch                696 drivers/s390/net/ctcm_fsms.c 	struct net_device *dev = ch->netdev;
ch                701 drivers/s390/net/ctcm_fsms.c 			CTCM_FUNTAIL, dev->name, ch->id, state);
ch                703 drivers/s390/net/ctcm_fsms.c 	fsm_deltimer(&ch->timer);
ch                704 drivers/s390/net/ctcm_fsms.c 	if (IS_MPC(ch))
ch                705 drivers/s390/net/ctcm_fsms.c 		fsm_deltimer(&ch->sweep_timer);
ch                708 drivers/s390/net/ctcm_fsms.c 	if (state == CTC_STATE_STOPPED && ch->trans_skb != NULL) {
ch                709 drivers/s390/net/ctcm_fsms.c 		clear_normalized_cda(&ch->ccw[1]);
ch                710 drivers/s390/net/ctcm_fsms.c 		dev_kfree_skb_any(ch->trans_skb);
ch                711 drivers/s390/net/ctcm_fsms.c 		ch->trans_skb = NULL;
ch                714 drivers/s390/net/ctcm_fsms.c 	ch->th_seg = 0x00;
ch                715 drivers/s390/net/ctcm_fsms.c 	ch->th_seq_num = 0x00;
ch                716 drivers/s390/net/ctcm_fsms.c 	if (CHANNEL_DIRECTION(ch->flags) == CTCM_READ) {
ch                717 drivers/s390/net/ctcm_fsms.c 		skb_queue_purge(&ch->io_queue);
ch                720 drivers/s390/net/ctcm_fsms.c 		ctcm_purge_skb_queue(&ch->io_queue);
ch                721 drivers/s390/net/ctcm_fsms.c 		if (IS_MPC(ch))
ch                722 drivers/s390/net/ctcm_fsms.c 			ctcm_purge_skb_queue(&ch->sweep_queue);
ch                723 drivers/s390/net/ctcm_fsms.c 		spin_lock(&ch->collect_lock);
ch                724 drivers/s390/net/ctcm_fsms.c 		ctcm_purge_skb_queue(&ch->collect_queue);
ch                725 drivers/s390/net/ctcm_fsms.c 		ch->collect_len = 0;
ch                726 drivers/s390/net/ctcm_fsms.c 		spin_unlock(&ch->collect_lock);
ch                780 drivers/s390/net/ctcm_fsms.c 	struct channel *ch = arg;
ch                781 drivers/s390/net/ctcm_fsms.c 	struct net_device *dev = ch->netdev;
ch                793 drivers/s390/net/ctcm_fsms.c 		fsm_deltimer(&ch->timer);
ch                794 drivers/s390/net/ctcm_fsms.c 		fsm_addtimer(&ch->timer, CTCM_TIME_5_SEC, CTC_EVENT_TIMER, ch);
ch                795 drivers/s390/net/ctcm_fsms.c 		if (!IS_MPC(ch) &&
ch                796 drivers/s390/net/ctcm_fsms.c 		    (CHANNEL_DIRECTION(ch->flags) == CTCM_READ)) {
ch                797 drivers/s390/net/ctcm_fsms.c 			int rc = ccw_device_halt(ch->cdev, 0);
ch                799 drivers/s390/net/ctcm_fsms.c 				ctcm_ccw_check_rc(ch, rc,
ch                808 drivers/s390/net/ctcm_fsms.c 		(CHANNEL_DIRECTION(ch->flags) == CTCM_READ) ? "RX" : "TX",
ch                811 drivers/s390/net/ctcm_fsms.c 	if (CHANNEL_DIRECTION(ch->flags) == CTCM_READ) {
ch                829 drivers/s390/net/ctcm_fsms.c 	struct channel *ch = arg;
ch                830 drivers/s390/net/ctcm_fsms.c 	struct net_device *dev = ch->netdev;
ch                837 drivers/s390/net/ctcm_fsms.c 			CTCM_FUNTAIL, ch->id, event, dev->name);
ch                839 drivers/s390/net/ctcm_fsms.c 	fsm_deltimer(&ch->timer);
ch                841 drivers/s390/net/ctcm_fsms.c 	fsm_addtimer(&ch->timer, CTCM_TIME_5_SEC, CTC_EVENT_TIMER, ch);
ch                845 drivers/s390/net/ctcm_fsms.c 		spin_lock_irqsave(get_ccwdev_lock(ch->cdev), saveflags);
ch                849 drivers/s390/net/ctcm_fsms.c 	rc = ccw_device_halt(ch->cdev, 0);
ch                851 drivers/s390/net/ctcm_fsms.c 		spin_unlock_irqrestore(get_ccwdev_lock(ch->cdev), saveflags);
ch                854 drivers/s390/net/ctcm_fsms.c 		    fsm_deltimer(&ch->timer);
ch                857 drivers/s390/net/ctcm_fsms.c 		ctcm_ccw_check_rc(ch, rc, "HaltIO in ctcm_chx_restart");
ch                871 drivers/s390/net/ctcm_fsms.c 	struct channel *ch = arg;
ch                872 drivers/s390/net/ctcm_fsms.c 	struct net_device *dev = ch->netdev;
ch                878 drivers/s390/net/ctcm_fsms.c 			fsm_deltimer(&ch->timer);
ch                879 drivers/s390/net/ctcm_fsms.c 		if (ch->retry++ < 3)
ch                887 drivers/s390/net/ctcm_fsms.c 			"%s(%s): %s in %s", CTCM_FUNTAIL, ch->id,
ch                906 drivers/s390/net/ctcm_fsms.c 	struct channel *ch = arg;
ch                907 drivers/s390/net/ctcm_fsms.c 	struct net_device *dev = ch->netdev;
ch                912 drivers/s390/net/ctcm_fsms.c 				CTCM_FUNTAIL, dev->name, ch->id);
ch                926 drivers/s390/net/ctcm_fsms.c 	struct channel *ch = arg;
ch                928 drivers/s390/net/ctcm_fsms.c 	struct net_device *dev = ch->netdev;
ch                934 drivers/s390/net/ctcm_fsms.c 	fsm_deltimer(&ch->timer);
ch                945 drivers/s390/net/ctcm_fsms.c 	ccw_device_halt(ch->cdev, 0);
ch                958 drivers/s390/net/ctcm_fsms.c 	struct channel *ch = arg;
ch                959 drivers/s390/net/ctcm_fsms.c 	struct net_device *dev = ch->netdev;
ch                963 drivers/s390/net/ctcm_fsms.c 		fsm_deltimer(&ch->timer);
ch                964 drivers/s390/net/ctcm_fsms.c 		if (ch->retry++ < 3)
ch                972 drivers/s390/net/ctcm_fsms.c 			"%s(%s): %s in %s", CTCM_FUNTAIL, ch->id,
ch                990 drivers/s390/net/ctcm_fsms.c 	struct channel *ch = arg;
ch                991 drivers/s390/net/ctcm_fsms.c 	struct net_device *dev = ch->netdev;
ch                996 drivers/s390/net/ctcm_fsms.c 			__func__, smp_processor_id(), ch, ch->id);
ch                998 drivers/s390/net/ctcm_fsms.c 	fsm_deltimer(&ch->timer);
ch                999 drivers/s390/net/ctcm_fsms.c 	if (ch->retry++ > 3) {
ch               1003 drivers/s390/net/ctcm_fsms.c 					CTCM_FUNTAIL, ch->id);
ch               1014 drivers/s390/net/ctcm_fsms.c 				CTCM_FUNTAIL, ch->id, ch->retry);
ch               1015 drivers/s390/net/ctcm_fsms.c 	skb = skb_peek(&ch->io_queue);
ch               1019 drivers/s390/net/ctcm_fsms.c 		clear_normalized_cda(&ch->ccw[4]);
ch               1020 drivers/s390/net/ctcm_fsms.c 		ch->ccw[4].count = skb->len;
ch               1021 drivers/s390/net/ctcm_fsms.c 		if (set_normalized_cda(&ch->ccw[4], skb->data)) {
ch               1024 drivers/s390/net/ctcm_fsms.c 						CTCM_FUNTAIL, ch->id);
ch               1029 drivers/s390/net/ctcm_fsms.c 		fsm_addtimer(&ch->timer, 1000, CTC_EVENT_TIMER, ch);
ch               1031 drivers/s390/net/ctcm_fsms.c 			spin_lock_irqsave(get_ccwdev_lock(ch->cdev), saveflags);
ch               1036 drivers/s390/net/ctcm_fsms.c 			ctcmpc_dumpit((char *)&ch->ccw[3],
ch               1039 drivers/s390/net/ctcm_fsms.c 		rc = ccw_device_start(ch->cdev, &ch->ccw[3], 0, 0xff, 0);
ch               1041 drivers/s390/net/ctcm_fsms.c 			spin_unlock_irqrestore(get_ccwdev_lock(ch->cdev),
ch               1044 drivers/s390/net/ctcm_fsms.c 			fsm_deltimer(&ch->timer);
ch               1045 drivers/s390/net/ctcm_fsms.c 			ctcm_ccw_check_rc(ch, rc, "TX in chx_txretry");
ch               1046 drivers/s390/net/ctcm_fsms.c 			ctcm_purge_skb_queue(&ch->io_queue);
ch               1062 drivers/s390/net/ctcm_fsms.c 	struct channel *ch = arg;
ch               1063 drivers/s390/net/ctcm_fsms.c 	struct net_device *dev = ch->netdev;
ch               1065 drivers/s390/net/ctcm_fsms.c 	int rd = CHANNEL_DIRECTION(ch->flags);
ch               1067 drivers/s390/net/ctcm_fsms.c 	fsm_deltimer(&ch->timer);
ch               1070 drivers/s390/net/ctcm_fsms.c 			CTCM_FUNTAIL, ch->id, rd == CTCM_READ ? "RX" : "TX");
ch               1072 drivers/s390/net/ctcm_fsms.c 	if (IS_MPC(ch)) {
ch               1212 drivers/s390/net/ctcm_fsms.c 	struct channel		*ch = arg;
ch               1213 drivers/s390/net/ctcm_fsms.c 	struct net_device	*dev = ch->netdev;
ch               1230 drivers/s390/net/ctcm_fsms.c 	duration = done_stamp - ch->prof.send_stamp;
ch               1231 drivers/s390/net/ctcm_fsms.c 	if (duration > ch->prof.tx_time)
ch               1232 drivers/s390/net/ctcm_fsms.c 		ch->prof.tx_time = duration;
ch               1234 drivers/s390/net/ctcm_fsms.c 	if (ch->irb->scsw.cmd.count != 0)
ch               1237 drivers/s390/net/ctcm_fsms.c 			     CTCM_FUNTAIL, dev->name, ch->irb->scsw.cmd.count);
ch               1238 drivers/s390/net/ctcm_fsms.c 	fsm_deltimer(&ch->timer);
ch               1239 drivers/s390/net/ctcm_fsms.c 	while ((skb = skb_dequeue(&ch->io_queue))) {
ch               1249 drivers/s390/net/ctcm_fsms.c 	spin_lock(&ch->collect_lock);
ch               1250 drivers/s390/net/ctcm_fsms.c 	clear_normalized_cda(&ch->ccw[4]);
ch               1251 drivers/s390/net/ctcm_fsms.c 	if ((ch->collect_len <= 0) || (grp->in_sweep != 0)) {
ch               1252 drivers/s390/net/ctcm_fsms.c 		spin_unlock(&ch->collect_lock);
ch               1257 drivers/s390/net/ctcm_fsms.c 	if (ctcm_checkalloc_buffer(ch)) {
ch               1258 drivers/s390/net/ctcm_fsms.c 		spin_unlock(&ch->collect_lock);
ch               1261 drivers/s390/net/ctcm_fsms.c 	ch->trans_skb->data = ch->trans_skb_data;
ch               1262 drivers/s390/net/ctcm_fsms.c 	skb_reset_tail_pointer(ch->trans_skb);
ch               1263 drivers/s390/net/ctcm_fsms.c 	ch->trans_skb->len = 0;
ch               1264 drivers/s390/net/ctcm_fsms.c 	if (ch->prof.maxmulti < (ch->collect_len + TH_HEADER_LENGTH))
ch               1265 drivers/s390/net/ctcm_fsms.c 		ch->prof.maxmulti = ch->collect_len + TH_HEADER_LENGTH;
ch               1266 drivers/s390/net/ctcm_fsms.c 	if (ch->prof.maxcqueue < skb_queue_len(&ch->collect_queue))
ch               1267 drivers/s390/net/ctcm_fsms.c 		ch->prof.maxcqueue = skb_queue_len(&ch->collect_queue);
ch               1276 drivers/s390/net/ctcm_fsms.c 	while ((skb = skb_dequeue(&ch->collect_queue))) {
ch               1277 drivers/s390/net/ctcm_fsms.c 		skb_put_data(ch->trans_skb, skb->data, skb->len);
ch               1279 drivers/s390/net/ctcm_fsms.c 			(skb_tail_pointer(ch->trans_skb) - skb->len);
ch               1287 drivers/s390/net/ctcm_fsms.c 				__func__, ch->trans_skb->len);
ch               1292 drivers/s390/net/ctcm_fsms.c 		ch->collect_len -= skb->len;
ch               1298 drivers/s390/net/ctcm_fsms.c 		peekskb = skb_peek(&ch->collect_queue);
ch               1308 drivers/s390/net/ctcm_fsms.c 		spin_unlock(&ch->collect_lock);
ch               1313 drivers/s390/net/ctcm_fsms.c 	ch->th_seq_num++;
ch               1314 drivers/s390/net/ctcm_fsms.c 	header->th_seq_num = ch->th_seq_num;
ch               1317 drivers/s390/net/ctcm_fsms.c 					__func__, ch->th_seq_num);
ch               1319 drivers/s390/net/ctcm_fsms.c 	memcpy(skb_push(ch->trans_skb, TH_HEADER_LENGTH), header,
ch               1325 drivers/s390/net/ctcm_fsms.c 		       __func__, ch->trans_skb->len);
ch               1328 drivers/s390/net/ctcm_fsms.c 	CTCM_D3_DUMP((char *)ch->trans_skb->data,
ch               1329 drivers/s390/net/ctcm_fsms.c 				min_t(int, ch->trans_skb->len, 50));
ch               1331 drivers/s390/net/ctcm_fsms.c 	spin_unlock(&ch->collect_lock);
ch               1332 drivers/s390/net/ctcm_fsms.c 	clear_normalized_cda(&ch->ccw[1]);
ch               1335 drivers/s390/net/ctcm_fsms.c 			(void *)(unsigned long)ch->ccw[1].cda,
ch               1336 drivers/s390/net/ctcm_fsms.c 			ch->trans_skb->data);
ch               1337 drivers/s390/net/ctcm_fsms.c 	ch->ccw[1].count = ch->max_bufsize;
ch               1339 drivers/s390/net/ctcm_fsms.c 	if (set_normalized_cda(&ch->ccw[1], ch->trans_skb->data)) {
ch               1340 drivers/s390/net/ctcm_fsms.c 		dev_kfree_skb_any(ch->trans_skb);
ch               1341 drivers/s390/net/ctcm_fsms.c 		ch->trans_skb = NULL;
ch               1344 drivers/s390/net/ctcm_fsms.c 				CTCM_FUNTAIL, ch->id);
ch               1350 drivers/s390/net/ctcm_fsms.c 			(void *)(unsigned long)ch->ccw[1].cda,
ch               1351 drivers/s390/net/ctcm_fsms.c 			ch->trans_skb->data);
ch               1353 drivers/s390/net/ctcm_fsms.c 	ch->ccw[1].count = ch->trans_skb->len;
ch               1354 drivers/s390/net/ctcm_fsms.c 	fsm_addtimer(&ch->timer, CTCM_TIME_5_SEC, CTC_EVENT_TIMER, ch);
ch               1355 drivers/s390/net/ctcm_fsms.c 	ch->prof.send_stamp = jiffies;
ch               1357 drivers/s390/net/ctcm_fsms.c 		ctcmpc_dumpit((char *)&ch->ccw[0], sizeof(struct ccw1) * 3);
ch               1358 drivers/s390/net/ctcm_fsms.c 	rc = ccw_device_start(ch->cdev, &ch->ccw[0], 0, 0xff, 0);
ch               1359 drivers/s390/net/ctcm_fsms.c 	ch->prof.doios_multi++;
ch               1363 drivers/s390/net/ctcm_fsms.c 		fsm_deltimer(&ch->timer);
ch               1364 drivers/s390/net/ctcm_fsms.c 		ctcm_ccw_check_rc(ch, rc, "chained TX");
ch               1381 drivers/s390/net/ctcm_fsms.c 	struct channel		*ch = arg;
ch               1382 drivers/s390/net/ctcm_fsms.c 	struct net_device	*dev = ch->netdev;
ch               1385 drivers/s390/net/ctcm_fsms.c 	struct sk_buff		*skb = ch->trans_skb;
ch               1388 drivers/s390/net/ctcm_fsms.c 	int len	= ch->max_bufsize - ch->irb->scsw.cmd.count;
ch               1392 drivers/s390/net/ctcm_fsms.c 				ch->id, ch->max_bufsize, len);
ch               1393 drivers/s390/net/ctcm_fsms.c 	fsm_deltimer(&ch->timer);
ch               1412 drivers/s390/net/ctcm_fsms.c 		new_skb = __dev_alloc_skb(ch->max_bufsize, GFP_ATOMIC);
ch               1429 drivers/s390/net/ctcm_fsms.c 			skb_queue_tail(&ch->io_queue, new_skb);
ch               1430 drivers/s390/net/ctcm_fsms.c 			tasklet_schedule(&ch->ch_tasklet);
ch               1434 drivers/s390/net/ctcm_fsms.c 			skb_queue_tail(&ch->io_queue, new_skb);
ch               1435 drivers/s390/net/ctcm_fsms.c 			tasklet_hi_schedule(&ch->ch_tasklet);
ch               1445 drivers/s390/net/ctcm_fsms.c 		if (ctcm_checkalloc_buffer(ch))
ch               1447 drivers/s390/net/ctcm_fsms.c 		ch->trans_skb->data = ch->trans_skb_data;
ch               1448 drivers/s390/net/ctcm_fsms.c 		skb_reset_tail_pointer(ch->trans_skb);
ch               1449 drivers/s390/net/ctcm_fsms.c 		ch->trans_skb->len = 0;
ch               1450 drivers/s390/net/ctcm_fsms.c 		ch->ccw[1].count = ch->max_bufsize;
ch               1452 drivers/s390/net/ctcm_fsms.c 			ctcmpc_dumpit((char *)&ch->ccw[0],
ch               1457 drivers/s390/net/ctcm_fsms.c 				get_ccwdev_lock(ch->cdev), saveflags);
ch               1458 drivers/s390/net/ctcm_fsms.c 		rc = ccw_device_start(ch->cdev, &ch->ccw[0], 0, 0xff, 0);
ch               1461 drivers/s390/net/ctcm_fsms.c 				get_ccwdev_lock(ch->cdev), saveflags);
ch               1463 drivers/s390/net/ctcm_fsms.c 			ctcm_ccw_check_rc(ch, rc, "normal RX");
ch               1469 drivers/s390/net/ctcm_fsms.c 			__func__, dev->name, ch, ch->id);
ch               1482 drivers/s390/net/ctcm_fsms.c 	struct channel		*ch = arg;
ch               1483 drivers/s390/net/ctcm_fsms.c 	struct net_device	*dev = ch->netdev;
ch               1488 drivers/s390/net/ctcm_fsms.c 				__func__, ch->id, ch);
ch               1492 drivers/s390/net/ctcm_fsms.c 			CTCM_FUNTAIL, ch->id, fsm_getstate(fi),
ch               1493 drivers/s390/net/ctcm_fsms.c 			fsm_getstate(gptr->fsm), ch->protocol);
ch               1498 drivers/s390/net/ctcm_fsms.c 	fsm_deltimer(&ch->timer);
ch               1499 drivers/s390/net/ctcm_fsms.c 	if (ctcm_checkalloc_buffer(ch))
ch               1505 drivers/s390/net/ctcm_fsms.c 		if (CHANNEL_DIRECTION(ch->flags) == CTCM_READ) {
ch               1516 drivers/s390/net/ctcm_fsms.c 	fsm_newstate(fi, (CHANNEL_DIRECTION(ch->flags) == CTCM_READ)
ch               1521 drivers/s390/net/ctcm_fsms.c 				__func__, ch->id, ch);
ch               1536 drivers/s390/net/ctcm_fsms.c 	struct channel *ch = arg;
ch               1537 drivers/s390/net/ctcm_fsms.c 	struct net_device *dev = ch->netdev;
ch               1543 drivers/s390/net/ctcm_fsms.c 	fsm_deltimer(&ch->timer);
ch               1545 drivers/s390/net/ctcm_fsms.c 			__func__, ch->id, dev->name, smp_processor_id(),
ch               1554 drivers/s390/net/ctcm_fsms.c 		if (ctcm_checkalloc_buffer(ch))
ch               1556 drivers/s390/net/ctcm_fsms.c 		ch->trans_skb->data = ch->trans_skb_data;
ch               1557 drivers/s390/net/ctcm_fsms.c 		skb_reset_tail_pointer(ch->trans_skb);
ch               1558 drivers/s390/net/ctcm_fsms.c 		ch->trans_skb->len = 0;
ch               1559 drivers/s390/net/ctcm_fsms.c 		ch->ccw[1].count = ch->max_bufsize;
ch               1560 drivers/s390/net/ctcm_fsms.c 		CTCM_CCW_DUMP((char *)&ch->ccw[0], sizeof(struct ccw1) * 3);
ch               1563 drivers/s390/net/ctcm_fsms.c 			spin_lock_irqsave(get_ccwdev_lock(ch->cdev), saveflags);
ch               1564 drivers/s390/net/ctcm_fsms.c 		rc = ccw_device_start(ch->cdev, &ch->ccw[0], 0, 0xff, 0);
ch               1567 drivers/s390/net/ctcm_fsms.c 					get_ccwdev_lock(ch->cdev), saveflags);
ch               1570 drivers/s390/net/ctcm_fsms.c 			ctcm_ccw_check_rc(ch, rc, "initial RX");
ch               1590 drivers/s390/net/ctcm_fsms.c 	struct channel	  *ch     = arg;
ch               1591 drivers/s390/net/ctcm_fsms.c 	struct net_device *dev    = ch->netdev;
ch               1596 drivers/s390/net/ctcm_fsms.c 		__func__, dev->name, ch->id, ch, smp_processor_id(),
ch               1597 drivers/s390/net/ctcm_fsms.c 			fsm_getstate_str(ch->fsm), fsm_getstate_str(grp->fsm));
ch               1602 drivers/s390/net/ctcm_fsms.c 		if (!ch->in_mpcgroup)
ch               1604 drivers/s390/net/ctcm_fsms.c 		if (fsm_getstate(ch->fsm) ==  CH_XID0_PENDING) {
ch               1609 drivers/s390/net/ctcm_fsms.c 			fsm_event(grp->fsm, MPCG_EVENT_XID0DO, ch);
ch               1611 drivers/s390/net/ctcm_fsms.c 		} else if (fsm_getstate(ch->fsm) < CH_XID7_PENDING1)
ch               1613 drivers/s390/net/ctcm_fsms.c 			fsm_newstate(ch->fsm, CH_XID7_PENDING1);
ch               1620 drivers/s390/net/ctcm_fsms.c 		if (fsm_getstate(ch->fsm) < CH_XID7_PENDING1)
ch               1621 drivers/s390/net/ctcm_fsms.c 			fsm_newstate(ch->fsm, CH_XID7_PENDING1);
ch               1627 drivers/s390/net/ctcm_fsms.c 		switch (fsm_getstate(ch->fsm)) {
ch               1629 drivers/s390/net/ctcm_fsms.c 			fsm_newstate(ch->fsm, CH_XID7_PENDING1);
ch               1632 drivers/s390/net/ctcm_fsms.c 			fsm_newstate(ch->fsm, CH_XID7_PENDING3);
ch               1649 drivers/s390/net/ctcm_fsms.c 	struct channel	  *ch     = arg;
ch               1650 drivers/s390/net/ctcm_fsms.c 	struct net_device *dev    = ch->netdev;
ch               1655 drivers/s390/net/ctcm_fsms.c 			__func__, dev->name, ch->id,
ch               1656 drivers/s390/net/ctcm_fsms.c 			fsm_getstate_str(ch->fsm), fsm_getstate_str(grp->fsm));
ch               1658 drivers/s390/net/ctcm_fsms.c 	fsm_deltimer(&ch->timer);
ch               1683 drivers/s390/net/ctcm_fsms.c 		if (fsm_getstate(ch->fsm) == CH_XID0_INPROGRESS) {
ch               1684 drivers/s390/net/ctcm_fsms.c 			fsm_newstate(ch->fsm, CH_XID0_PENDING) ;
ch               1717 drivers/s390/net/ctcm_fsms.c 	if (ch->in_mpcgroup)
ch               1718 drivers/s390/net/ctcm_fsms.c 		fsm_event(grp->fsm, MPCG_EVENT_XID0DO, ch);
ch               1722 drivers/s390/net/ctcm_fsms.c 				CTCM_FUNTAIL, dev->name, ch->id);
ch               1735 drivers/s390/net/ctcm_fsms.c 	struct channel	   *ch	   = arg;
ch               1736 drivers/s390/net/ctcm_fsms.c 	struct net_device  *dev    = ch->netdev;
ch               1740 drivers/s390/net/ctcm_fsms.c 	fsm_event(grp->fsm, MPCG_EVENT_XID0DO, ch);
ch               2072 drivers/s390/net/ctcm_fsms.c 		struct channel *ch = priv->channel[direction];
ch               2073 drivers/s390/net/ctcm_fsms.c 		fsm_event(ch->fsm, CTC_EVENT_START, ch);
ch               2094 drivers/s390/net/ctcm_fsms.c 		struct channel *ch = priv->channel[direction];
ch               2095 drivers/s390/net/ctcm_fsms.c 		fsm_event(ch->fsm, CTC_EVENT_STOP, ch);
ch               2096 drivers/s390/net/ctcm_fsms.c 		ch->th_seq_num = 0x00;
ch               2098 drivers/s390/net/ctcm_fsms.c 				__func__, ch->th_seq_num);
ch                160 drivers/s390/net/ctcm_fsms.h void ctcm_ccw_check_rc(struct channel *ch, int rc, char *msg);
ch                 75 drivers/s390/net/ctcm_main.c void ctcm_unpack_skb(struct channel *ch, struct sk_buff *pskb)
ch                 77 drivers/s390/net/ctcm_main.c 	struct net_device *dev = ch->netdev;
ch                 91 drivers/s390/net/ctcm_main.c 		if ((ch->protocol == CTCM_PROTO_S390) &&
ch                 93 drivers/s390/net/ctcm_main.c 			if (!(ch->logflags & LOG_FLAG_ILLEGALPKT)) {
ch                 94 drivers/s390/net/ctcm_main.c 				ch->logflags |= LOG_FLAG_ILLEGALPKT;
ch                113 drivers/s390/net/ctcm_main.c 			if (!(ch->logflags & LOG_FLAG_ILLEGALSIZE)) {
ch                119 drivers/s390/net/ctcm_main.c 				ch->logflags |= LOG_FLAG_ILLEGALSIZE;
ch                130 drivers/s390/net/ctcm_main.c 			if (!(ch->logflags & LOG_FLAG_OVERRUN)) {
ch                135 drivers/s390/net/ctcm_main.c 				ch->logflags |= LOG_FLAG_OVERRUN;
ch                147 drivers/s390/net/ctcm_main.c 			if (!(ch->logflags & LOG_FLAG_NOMEM)) {
ch                151 drivers/s390/net/ctcm_main.c 				ch->logflags |= LOG_FLAG_NOMEM;
ch                166 drivers/s390/net/ctcm_main.c 		ch->logflags = 0;
ch                175 drivers/s390/net/ctcm_main.c 				ch->logflags |= LOG_FLAG_OVERRUN;
ch                188 drivers/s390/net/ctcm_main.c static void channel_free(struct channel *ch)
ch                190 drivers/s390/net/ctcm_main.c 	CTCM_DBF_TEXT_(SETUP, CTC_DBF_INFO, "%s(%s)", CTCM_FUNTAIL, ch->id);
ch                191 drivers/s390/net/ctcm_main.c 	ch->flags &= ~CHANNEL_FLAGS_INUSE;
ch                192 drivers/s390/net/ctcm_main.c 	fsm_newstate(ch->fsm, CTC_STATE_IDLE);
ch                200 drivers/s390/net/ctcm_main.c static void channel_remove(struct channel *ch)
ch                206 drivers/s390/net/ctcm_main.c 	if (ch == NULL)
ch                209 drivers/s390/net/ctcm_main.c 		strncpy(chid, ch->id, CTCM_ID_SIZE);
ch                211 drivers/s390/net/ctcm_main.c 	channel_free(ch);
ch                213 drivers/s390/net/ctcm_main.c 		if (*c == ch) {
ch                214 drivers/s390/net/ctcm_main.c 			*c = ch->next;
ch                215 drivers/s390/net/ctcm_main.c 			fsm_deltimer(&ch->timer);
ch                216 drivers/s390/net/ctcm_main.c 			if (IS_MPC(ch))
ch                217 drivers/s390/net/ctcm_main.c 				fsm_deltimer(&ch->sweep_timer);
ch                219 drivers/s390/net/ctcm_main.c 			kfree_fsm(ch->fsm);
ch                220 drivers/s390/net/ctcm_main.c 			clear_normalized_cda(&ch->ccw[4]);
ch                221 drivers/s390/net/ctcm_main.c 			if (ch->trans_skb != NULL) {
ch                222 drivers/s390/net/ctcm_main.c 				clear_normalized_cda(&ch->ccw[1]);
ch                223 drivers/s390/net/ctcm_main.c 				dev_kfree_skb_any(ch->trans_skb);
ch                225 drivers/s390/net/ctcm_main.c 			if (IS_MPC(ch)) {
ch                226 drivers/s390/net/ctcm_main.c 				tasklet_kill(&ch->ch_tasklet);
ch                227 drivers/s390/net/ctcm_main.c 				tasklet_kill(&ch->ch_disc_tasklet);
ch                228 drivers/s390/net/ctcm_main.c 				kfree(ch->discontact_th);
ch                230 drivers/s390/net/ctcm_main.c 			kfree(ch->ccw);
ch                231 drivers/s390/net/ctcm_main.c 			kfree(ch->irb);
ch                232 drivers/s390/net/ctcm_main.c 			kfree(ch);
ch                255 drivers/s390/net/ctcm_main.c 	struct channel *ch = channels;
ch                257 drivers/s390/net/ctcm_main.c 	while (ch && (strncmp(ch->id, id, CTCM_ID_SIZE) || (ch->type != type)))
ch                258 drivers/s390/net/ctcm_main.c 		ch = ch->next;
ch                259 drivers/s390/net/ctcm_main.c 	if (!ch) {
ch                264 drivers/s390/net/ctcm_main.c 		if (ch->flags & CHANNEL_FLAGS_INUSE)
ch                265 drivers/s390/net/ctcm_main.c 			ch = NULL;
ch                267 drivers/s390/net/ctcm_main.c 			ch->flags |= CHANNEL_FLAGS_INUSE;
ch                268 drivers/s390/net/ctcm_main.c 			ch->flags &= ~CHANNEL_FLAGS_RWMASK;
ch                269 drivers/s390/net/ctcm_main.c 			ch->flags |= (direction == CTCM_WRITE)
ch                271 drivers/s390/net/ctcm_main.c 			fsm_newstate(ch->fsm, CTC_STATE_STOPPED);
ch                274 drivers/s390/net/ctcm_main.c 	return ch;
ch                309 drivers/s390/net/ctcm_main.c static void ccw_unit_check(struct channel *ch, __u8 sense)
ch                313 drivers/s390/net/ctcm_main.c 				CTCM_FUNTAIL, ch->id, sense);
ch                317 drivers/s390/net/ctcm_main.c 			if (ch->sense_rc != 0x01) {
ch                320 drivers/s390/net/ctcm_main.c 					"disconnected\n", ch->id);
ch                321 drivers/s390/net/ctcm_main.c 				ch->sense_rc = 0x01;
ch                323 drivers/s390/net/ctcm_main.c 			fsm_event(ch->fsm, CTC_EVENT_UC_RCRESET, ch);
ch                325 drivers/s390/net/ctcm_main.c 			if (ch->sense_rc != SNS0_INTERVENTION_REQ) {
ch                328 drivers/s390/net/ctcm_main.c 					"not available\n", ch->id);
ch                329 drivers/s390/net/ctcm_main.c 				ch->sense_rc = SNS0_INTERVENTION_REQ;
ch                331 drivers/s390/net/ctcm_main.c 			fsm_event(ch->fsm, CTC_EVENT_UC_RSRESET, ch);
ch                335 drivers/s390/net/ctcm_main.c 			if (ch->sense_rc != SNS0_BUS_OUT_CHECK) {
ch                338 drivers/s390/net/ctcm_main.c 						CTCM_FUNTAIL, ch->id, sense);
ch                339 drivers/s390/net/ctcm_main.c 				ch->sense_rc = SNS0_BUS_OUT_CHECK;
ch                341 drivers/s390/net/ctcm_main.c 			fsm_event(ch->fsm, CTC_EVENT_UC_HWFAIL, ch);
ch                343 drivers/s390/net/ctcm_main.c 			if (ch->sense_rc != SNS0_EQUIPMENT_CHECK) {
ch                346 drivers/s390/net/ctcm_main.c 						CTCM_FUNTAIL, ch->id, sense);
ch                347 drivers/s390/net/ctcm_main.c 				ch->sense_rc = SNS0_EQUIPMENT_CHECK;
ch                349 drivers/s390/net/ctcm_main.c 			fsm_event(ch->fsm, CTC_EVENT_UC_RXPARITY, ch);
ch                352 drivers/s390/net/ctcm_main.c 		if (ch->sense_rc != SNS0_BUS_OUT_CHECK) {
ch                355 drivers/s390/net/ctcm_main.c 					CTCM_FUNTAIL, ch->id, sense);
ch                356 drivers/s390/net/ctcm_main.c 			ch->sense_rc = SNS0_BUS_OUT_CHECK;
ch                359 drivers/s390/net/ctcm_main.c 			fsm_event(ch->fsm, CTC_EVENT_UC_TXTIMEOUT, ch);
ch                361 drivers/s390/net/ctcm_main.c 			fsm_event(ch->fsm, CTC_EVENT_UC_TXPARITY, ch);
ch                363 drivers/s390/net/ctcm_main.c 		if (ch->sense_rc != SNS0_CMD_REJECT) {
ch                366 drivers/s390/net/ctcm_main.c 						CTCM_FUNTAIL, ch->id);
ch                367 drivers/s390/net/ctcm_main.c 			ch->sense_rc = SNS0_CMD_REJECT;
ch                372 drivers/s390/net/ctcm_main.c 					CTCM_FUNTAIL, ch->id);
ch                373 drivers/s390/net/ctcm_main.c 		fsm_event(ch->fsm, CTC_EVENT_UC_ZERO, ch);
ch                377 drivers/s390/net/ctcm_main.c 					CTCM_FUNTAIL, ch->id, sense);
ch                378 drivers/s390/net/ctcm_main.c 		fsm_event(ch->fsm, CTC_EVENT_UC_UNKNOWN, ch);
ch                382 drivers/s390/net/ctcm_main.c int ctcm_ch_alloc_buffer(struct channel *ch)
ch                384 drivers/s390/net/ctcm_main.c 	clear_normalized_cda(&ch->ccw[1]);
ch                385 drivers/s390/net/ctcm_main.c 	ch->trans_skb = __dev_alloc_skb(ch->max_bufsize, GFP_ATOMIC | GFP_DMA);
ch                386 drivers/s390/net/ctcm_main.c 	if (ch->trans_skb == NULL) {
ch                389 drivers/s390/net/ctcm_main.c 			CTCM_FUNTAIL, ch->id,
ch                390 drivers/s390/net/ctcm_main.c 			(CHANNEL_DIRECTION(ch->flags) == CTCM_READ) ?
ch                395 drivers/s390/net/ctcm_main.c 	ch->ccw[1].count = ch->max_bufsize;
ch                396 drivers/s390/net/ctcm_main.c 	if (set_normalized_cda(&ch->ccw[1], ch->trans_skb->data)) {
ch                397 drivers/s390/net/ctcm_main.c 		dev_kfree_skb(ch->trans_skb);
ch                398 drivers/s390/net/ctcm_main.c 		ch->trans_skb = NULL;
ch                401 drivers/s390/net/ctcm_main.c 			CTCM_FUNTAIL, ch->id,
ch                402 drivers/s390/net/ctcm_main.c 			(CHANNEL_DIRECTION(ch->flags) == CTCM_READ) ?
ch                407 drivers/s390/net/ctcm_main.c 	ch->ccw[1].count = 0;
ch                408 drivers/s390/net/ctcm_main.c 	ch->trans_skb_data = ch->trans_skb->data;
ch                409 drivers/s390/net/ctcm_main.c 	ch->flags &= ~CHANNEL_FLAGS_BUFSIZE_CHANGED;
ch                465 drivers/s390/net/ctcm_main.c static int ctcm_transmit_skb(struct channel *ch, struct sk_buff *skb)
ch                479 drivers/s390/net/ctcm_main.c 	spin_lock_irqsave(&ch->collect_lock, saveflags);
ch                480 drivers/s390/net/ctcm_main.c 	if (fsm_getstate(ch->fsm) != CTC_STATE_TXIDLE) {
ch                483 drivers/s390/net/ctcm_main.c 		if (ch->collect_len + l > ch->max_bufsize - 2) {
ch                484 drivers/s390/net/ctcm_main.c 			spin_unlock_irqrestore(&ch->collect_lock, saveflags);
ch                493 drivers/s390/net/ctcm_main.c 			skb_queue_tail(&ch->collect_queue, skb);
ch                494 drivers/s390/net/ctcm_main.c 			ch->collect_len += l;
ch                496 drivers/s390/net/ctcm_main.c 		spin_unlock_irqrestore(&ch->collect_lock, saveflags);
ch                499 drivers/s390/net/ctcm_main.c 	spin_unlock_irqrestore(&ch->collect_lock, saveflags);
ch                505 drivers/s390/net/ctcm_main.c 	ch->prof.txlen += skb->len;
ch                523 drivers/s390/net/ctcm_main.c 			ctcm_clear_busy(ch->netdev);
ch                534 drivers/s390/net/ctcm_main.c 	ch->ccw[4].count = block_len;
ch                535 drivers/s390/net/ctcm_main.c 	if (set_normalized_cda(&ch->ccw[4], skb->data)) {
ch                541 drivers/s390/net/ctcm_main.c 		if (ctcm_checkalloc_buffer(ch)) {
ch                548 drivers/s390/net/ctcm_main.c 			ctcm_clear_busy(ch->netdev);
ch                552 drivers/s390/net/ctcm_main.c 		skb_reset_tail_pointer(ch->trans_skb);
ch                553 drivers/s390/net/ctcm_main.c 		ch->trans_skb->len = 0;
ch                554 drivers/s390/net/ctcm_main.c 		ch->ccw[1].count = skb->len;
ch                556 drivers/s390/net/ctcm_main.c 				skb_put(ch->trans_skb, skb->len), skb->len);
ch                561 drivers/s390/net/ctcm_main.c 		skb_queue_tail(&ch->io_queue, skb);
ch                565 drivers/s390/net/ctcm_main.c 		ctcmpc_dumpit((char *)&ch->ccw[ccw_idx],
ch                567 drivers/s390/net/ctcm_main.c 	ch->retry = 0;
ch                568 drivers/s390/net/ctcm_main.c 	fsm_newstate(ch->fsm, CTC_STATE_TX);
ch                569 drivers/s390/net/ctcm_main.c 	fsm_addtimer(&ch->timer, CTCM_TIME_5_SEC, CTC_EVENT_TIMER, ch);
ch                570 drivers/s390/net/ctcm_main.c 	spin_lock_irqsave(get_ccwdev_lock(ch->cdev), saveflags);
ch                571 drivers/s390/net/ctcm_main.c 	ch->prof.send_stamp = jiffies;
ch                572 drivers/s390/net/ctcm_main.c 	rc = ccw_device_start(ch->cdev, &ch->ccw[ccw_idx], 0, 0xff, 0);
ch                573 drivers/s390/net/ctcm_main.c 	spin_unlock_irqrestore(get_ccwdev_lock(ch->cdev), saveflags);
ch                575 drivers/s390/net/ctcm_main.c 		ch->prof.doios_single++;
ch                577 drivers/s390/net/ctcm_main.c 		fsm_deltimer(&ch->timer);
ch                578 drivers/s390/net/ctcm_main.c 		ctcm_ccw_check_rc(ch, rc, "single skb TX");
ch                580 drivers/s390/net/ctcm_main.c 			skb_dequeue_tail(&ch->io_queue);
ch                587 drivers/s390/net/ctcm_main.c 		struct net_device *dev = ch->netdev;
ch                593 drivers/s390/net/ctcm_main.c 	ctcm_clear_busy(ch->netdev);
ch                604 drivers/s390/net/ctcm_main.c 	struct channel *ch;
ch                609 drivers/s390/net/ctcm_main.c 	ch = priv->channel[CTCM_WRITE];
ch                639 drivers/s390/net/ctcm_main.c 	header->sw.th_last_seq	= ch->th_seq_num;
ch                646 drivers/s390/net/ctcm_main.c 	skb_queue_tail(&ch->sweep_queue, sweep_skb);
ch                648 drivers/s390/net/ctcm_main.c 	fsm_addtimer(&ch->sweep_timer, 100, CTC_EVENT_RSWEEP_TIMER, ch);
ch                663 drivers/s390/net/ctcm_main.c static int ctcmpc_transmit_skb(struct channel *ch, struct sk_buff *skb)
ch                666 drivers/s390/net/ctcm_main.c 	struct net_device *dev = ch->netdev;
ch                677 drivers/s390/net/ctcm_main.c 			__func__, dev->name, smp_processor_id(), ch,
ch                678 drivers/s390/net/ctcm_main.c 					ch->id, fsm_getstate_str(ch->fsm));
ch                680 drivers/s390/net/ctcm_main.c 	if ((fsm_getstate(ch->fsm) != CTC_STATE_TXIDLE) || grp->in_sweep) {
ch                681 drivers/s390/net/ctcm_main.c 		spin_lock_irqsave(&ch->collect_lock, saveflags);
ch                686 drivers/s390/net/ctcm_main.c 			spin_unlock_irqrestore(&ch->collect_lock, saveflags);
ch                707 drivers/s390/net/ctcm_main.c 		skb_queue_tail(&ch->collect_queue, skb);
ch                708 drivers/s390/net/ctcm_main.c 		ch->collect_len += skb->len;
ch                711 drivers/s390/net/ctcm_main.c 		spin_unlock_irqrestore(&ch->collect_lock, saveflags);
ch                757 drivers/s390/net/ctcm_main.c 	if (ch->collect_len > 0) {
ch                758 drivers/s390/net/ctcm_main.c 		spin_lock_irqsave(&ch->collect_lock, saveflags);
ch                759 drivers/s390/net/ctcm_main.c 		skb_queue_tail(&ch->collect_queue, skb);
ch                760 drivers/s390/net/ctcm_main.c 		ch->collect_len += skb->len;
ch                761 drivers/s390/net/ctcm_main.c 		skb = skb_dequeue(&ch->collect_queue);
ch                762 drivers/s390/net/ctcm_main.c 		ch->collect_len -= skb->len;
ch                763 drivers/s390/net/ctcm_main.c 		spin_unlock_irqrestore(&ch->collect_lock, saveflags);
ch                769 drivers/s390/net/ctcm_main.c 	ch->prof.txlen += skb->len - PDU_HEADER_LENGTH;
ch                779 drivers/s390/net/ctcm_main.c 	ch->th_seq_num++;
ch                780 drivers/s390/net/ctcm_main.c 	header->th_seq_num = ch->th_seq_num;
ch                783 drivers/s390/net/ctcm_main.c 		       __func__, dev->name, ch->th_seq_num);
ch                795 drivers/s390/net/ctcm_main.c 	ch->ccw[4].count = skb->len;
ch                796 drivers/s390/net/ctcm_main.c 	if (set_normalized_cda(&ch->ccw[4], skb->data)) {
ch                801 drivers/s390/net/ctcm_main.c 		if (ctcm_checkalloc_buffer(ch)) {
ch                809 drivers/s390/net/ctcm_main.c 		skb_reset_tail_pointer(ch->trans_skb);
ch                810 drivers/s390/net/ctcm_main.c 		ch->trans_skb->len = 0;
ch                811 drivers/s390/net/ctcm_main.c 		ch->ccw[1].count = skb->len;
ch                812 drivers/s390/net/ctcm_main.c 		skb_put_data(ch->trans_skb, skb->data, skb->len);
ch                818 drivers/s390/net/ctcm_main.c 				__func__, dev->name, ch->trans_skb->len);
ch                819 drivers/s390/net/ctcm_main.c 		CTCM_D3_DUMP((char *)ch->trans_skb->data,
ch                820 drivers/s390/net/ctcm_main.c 				min_t(int, 32, ch->trans_skb->len));
ch                822 drivers/s390/net/ctcm_main.c 		skb_queue_tail(&ch->io_queue, skb);
ch                825 drivers/s390/net/ctcm_main.c 	ch->retry = 0;
ch                826 drivers/s390/net/ctcm_main.c 	fsm_newstate(ch->fsm, CTC_STATE_TX);
ch                827 drivers/s390/net/ctcm_main.c 	fsm_addtimer(&ch->timer, CTCM_TIME_5_SEC, CTC_EVENT_TIMER, ch);
ch                830 drivers/s390/net/ctcm_main.c 		ctcmpc_dumpit((char *)&ch->ccw[ccw_idx],
ch                833 drivers/s390/net/ctcm_main.c 	spin_lock_irqsave(get_ccwdev_lock(ch->cdev), saveflags);
ch                834 drivers/s390/net/ctcm_main.c 	ch->prof.send_stamp = jiffies;
ch                835 drivers/s390/net/ctcm_main.c 	rc = ccw_device_start(ch->cdev, &ch->ccw[ccw_idx], 0, 0xff, 0);
ch                836 drivers/s390/net/ctcm_main.c 	spin_unlock_irqrestore(get_ccwdev_lock(ch->cdev), saveflags);
ch                838 drivers/s390/net/ctcm_main.c 		ch->prof.doios_single++;
ch                840 drivers/s390/net/ctcm_main.c 		fsm_deltimer(&ch->timer);
ch                841 drivers/s390/net/ctcm_main.c 		ctcm_ccw_check_rc(ch, rc, "single skb TX");
ch                843 drivers/s390/net/ctcm_main.c 			skb_dequeue_tail(&ch->io_queue);
ch                848 drivers/s390/net/ctcm_main.c 	if (ch->th_seq_num > 0xf0000000)	/* Chose at random. */
ch                849 drivers/s390/net/ctcm_main.c 		ctcmpc_send_sweep_req(ch);
ch                855 drivers/s390/net/ctcm_main.c 			CTCM_FUNTAIL, ch->id);
ch               1197 drivers/s390/net/ctcm_main.c 	struct channel		*ch;
ch               1229 drivers/s390/net/ctcm_main.c 		ch = priv->channel[CTCM_READ];
ch               1231 drivers/s390/net/ctcm_main.c 		ch = priv->channel[CTCM_WRITE];
ch               1241 drivers/s390/net/ctcm_main.c 	dev = ch->netdev;
ch               1245 drivers/s390/net/ctcm_main.c 			__func__, ch);
ch               1251 drivers/s390/net/ctcm_main.c 	memcpy(ch->irb, irb, sizeof(struct irb));
ch               1255 drivers/s390/net/ctcm_main.c 		fsm_event(ch->fsm, CTC_EVENT_SC_UNKNOWN, ch);
ch               1258 drivers/s390/net/ctcm_main.c 				CTCM_FUNTAIL, dev->name, ch->id, cstat, dstat);
ch               1266 drivers/s390/net/ctcm_main.c 		if ((irb->ecw[0] & ch->sense_rc) == 0)
ch               1270 drivers/s390/net/ctcm_main.c 				CTCM_FUNTAIL, ch->id, irb->ecw[0], dstat);
ch               1271 drivers/s390/net/ctcm_main.c 		ccw_unit_check(ch, irb->ecw[0]);
ch               1276 drivers/s390/net/ctcm_main.c 			fsm_event(ch->fsm, CTC_EVENT_ATTNBUSY, ch);
ch               1278 drivers/s390/net/ctcm_main.c 			fsm_event(ch->fsm, CTC_EVENT_BUSY, ch);
ch               1282 drivers/s390/net/ctcm_main.c 		fsm_event(ch->fsm, CTC_EVENT_ATTN, ch);
ch               1289 drivers/s390/net/ctcm_main.c 		fsm_event(ch->fsm, CTC_EVENT_FINSTAT, ch);
ch               1291 drivers/s390/net/ctcm_main.c 		fsm_event(ch->fsm, CTC_EVENT_IRQ, ch);
ch               1350 drivers/s390/net/ctcm_main.c 	struct channel *ch;
ch               1358 drivers/s390/net/ctcm_main.c 	ch = kzalloc(sizeof(struct channel), GFP_KERNEL);
ch               1359 drivers/s390/net/ctcm_main.c 	if (ch == NULL)
ch               1362 drivers/s390/net/ctcm_main.c 	ch->protocol = priv->protocol;
ch               1364 drivers/s390/net/ctcm_main.c 		ch->discontact_th = kzalloc(TH_HEADER_LENGTH, gfp_type());
ch               1365 drivers/s390/net/ctcm_main.c 		if (ch->discontact_th == NULL)
ch               1368 drivers/s390/net/ctcm_main.c 		ch->discontact_th->th_blk_flag = TH_DISCONTACT;
ch               1369 drivers/s390/net/ctcm_main.c 		tasklet_init(&ch->ch_disc_tasklet,
ch               1370 drivers/s390/net/ctcm_main.c 			mpc_action_send_discontact, (unsigned long)ch);
ch               1372 drivers/s390/net/ctcm_main.c 		tasklet_init(&ch->ch_tasklet, ctcmpc_bh, (unsigned long)ch);
ch               1373 drivers/s390/net/ctcm_main.c 		ch->max_bufsize = (MPC_BUFSIZE_DEFAULT - 35);
ch               1378 drivers/s390/net/ctcm_main.c 	ch->ccw = kcalloc(ccw_num, sizeof(struct ccw1), GFP_KERNEL | GFP_DMA);
ch               1379 drivers/s390/net/ctcm_main.c 	if (ch->ccw == NULL)
ch               1382 drivers/s390/net/ctcm_main.c 	ch->cdev = cdev;
ch               1383 drivers/s390/net/ctcm_main.c 	snprintf(ch->id, CTCM_ID_SIZE, "ch-%s", dev_name(&cdev->dev));
ch               1384 drivers/s390/net/ctcm_main.c 	ch->type = type;
ch               1429 drivers/s390/net/ctcm_main.c 	ch->ccw[6].cmd_code	= CCW_CMD_SET_EXTENDED;
ch               1430 drivers/s390/net/ctcm_main.c 	ch->ccw[6].flags	= CCW_FLAG_SLI;
ch               1432 drivers/s390/net/ctcm_main.c 	ch->ccw[7].cmd_code	= CCW_CMD_NOOP;
ch               1433 drivers/s390/net/ctcm_main.c 	ch->ccw[7].flags	= CCW_FLAG_SLI;
ch               1436 drivers/s390/net/ctcm_main.c 		ch->ccw[15].cmd_code = CCW_CMD_WRITE;
ch               1437 drivers/s390/net/ctcm_main.c 		ch->ccw[15].flags    = CCW_FLAG_SLI | CCW_FLAG_CC;
ch               1438 drivers/s390/net/ctcm_main.c 		ch->ccw[15].count    = TH_HEADER_LENGTH;
ch               1439 drivers/s390/net/ctcm_main.c 		ch->ccw[15].cda      = virt_to_phys(ch->discontact_th);
ch               1441 drivers/s390/net/ctcm_main.c 		ch->ccw[16].cmd_code = CCW_CMD_NOOP;
ch               1442 drivers/s390/net/ctcm_main.c 		ch->ccw[16].flags    = CCW_FLAG_SLI;
ch               1444 drivers/s390/net/ctcm_main.c 		ch->fsm = init_fsm(ch->id, ctc_ch_state_names,
ch               1449 drivers/s390/net/ctcm_main.c 		ch->fsm = init_fsm(ch->id, ctc_ch_state_names,
ch               1454 drivers/s390/net/ctcm_main.c 	if (ch->fsm == NULL)
ch               1457 drivers/s390/net/ctcm_main.c 	fsm_newstate(ch->fsm, CTC_STATE_IDLE);
ch               1459 drivers/s390/net/ctcm_main.c 	ch->irb = kzalloc(sizeof(struct irb), GFP_KERNEL);
ch               1460 drivers/s390/net/ctcm_main.c 	if (ch->irb == NULL)
ch               1463 drivers/s390/net/ctcm_main.c 	while (*c && ctcm_less_than((*c)->id, ch->id))
ch               1466 drivers/s390/net/ctcm_main.c 	if (*c && (!strncmp((*c)->id, ch->id, CTCM_ID_SIZE))) {
ch               1474 drivers/s390/net/ctcm_main.c 	spin_lock_init(&ch->collect_lock);
ch               1476 drivers/s390/net/ctcm_main.c 	fsm_settimer(ch->fsm, &ch->timer);
ch               1477 drivers/s390/net/ctcm_main.c 	skb_queue_head_init(&ch->io_queue);
ch               1478 drivers/s390/net/ctcm_main.c 	skb_queue_head_init(&ch->collect_queue);
ch               1481 drivers/s390/net/ctcm_main.c 		fsm_settimer(ch->fsm, &ch->sweep_timer);
ch               1482 drivers/s390/net/ctcm_main.c 		skb_queue_head_init(&ch->sweep_queue);
ch               1484 drivers/s390/net/ctcm_main.c 	ch->next = *c;
ch               1485 drivers/s390/net/ctcm_main.c 	*c = ch;
ch               1492 drivers/s390/net/ctcm_main.c 	kfree(ch->ccw);
ch               1493 drivers/s390/net/ctcm_main.c 	kfree(ch->discontact_th);
ch               1494 drivers/s390/net/ctcm_main.c 	kfree_fsm(ch->fsm);
ch               1495 drivers/s390/net/ctcm_main.c 	kfree(ch->irb);
ch               1496 drivers/s390/net/ctcm_main.c 	kfree(ch);
ch                259 drivers/s390/net/ctcm_main.h void ctcm_unpack_skb(struct channel *ch, struct sk_buff *pskb);
ch                278 drivers/s390/net/ctcm_main.h int ctcm_ch_alloc_buffer(struct channel *ch);
ch                280 drivers/s390/net/ctcm_main.h static inline int ctcm_checkalloc_buffer(struct channel *ch)
ch                282 drivers/s390/net/ctcm_main.h 	if (ch->trans_skb == NULL)
ch                283 drivers/s390/net/ctcm_main.h 		return ctcm_ch_alloc_buffer(ch);
ch                284 drivers/s390/net/ctcm_main.h 	if (ch->flags & CHANNEL_FLAGS_BUFSIZE_CHANGED) {
ch                285 drivers/s390/net/ctcm_main.h 		dev_kfree_skb(ch->trans_skb);
ch                286 drivers/s390/net/ctcm_main.h 		return ctcm_ch_alloc_buffer(ch);
ch                107 drivers/s390/net/ctcm_mpc.c static void ctcmpc_unpack_skb(struct channel *ch, struct sk_buff *pskb);
ch                609 drivers/s390/net/ctcm_mpc.c 	struct channel	  *rch = mpcginfo->ch;
ch                613 drivers/s390/net/ctcm_mpc.c 	struct channel	  *ch = priv->channel[CTCM_WRITE];
ch                615 drivers/s390/net/ctcm_mpc.c 	CTCM_PR_DEBUG("%s: ch=0x%p id=%s\n", __func__, ch, ch->id);
ch                622 drivers/s390/net/ctcm_mpc.c 		fsm_deltimer(&ch->sweep_timer);
ch                625 drivers/s390/net/ctcm_mpc.c 		ch->th_seq_num = 0x00;
ch                646 drivers/s390/net/ctcm_mpc.c 	struct channel *ch  = priv->channel[CTCM_WRITE];
ch                670 drivers/s390/net/ctcm_mpc.c 	header->sw.th_last_seq	= ch->th_seq_num;
ch                677 drivers/s390/net/ctcm_mpc.c 	skb_queue_tail(&ch->sweep_queue, sweep_skb);
ch                679 drivers/s390/net/ctcm_mpc.c 	fsm_addtimer(&ch->sweep_timer, 100, CTC_EVENT_RSWEEP_TIMER, ch);
ch                696 drivers/s390/net/ctcm_mpc.c 	struct channel	  *rch     = mpcginfo->ch;
ch                700 drivers/s390/net/ctcm_mpc.c 	struct channel	  *ch	   = priv->channel[CTCM_WRITE];
ch                704 drivers/s390/net/ctcm_mpc.c 			" %s(): ch=0x%p id=%s\n", __func__, ch, ch->id);
ch                716 drivers/s390/net/ctcm_mpc.c 	ctcmpc_send_sweep_resp(ch);
ch                878 drivers/s390/net/ctcm_mpc.c 	struct channel *ch = NULL;
ch                894 drivers/s390/net/ctcm_mpc.c 	ch = priv->channel[CTCM_READ];
ch                895 drivers/s390/net/ctcm_mpc.c 	ch->pdu_seq = 0;
ch                897 drivers/s390/net/ctcm_mpc.c 			__func__, ch->pdu_seq);
ch                899 drivers/s390/net/ctcm_mpc.c 	ctcmpc_chx_rxidle(ch->fsm, CTC_EVENT_START, ch);
ch                901 drivers/s390/net/ctcm_mpc.c 	ch = priv->channel[CTCM_WRITE];
ch                902 drivers/s390/net/ctcm_mpc.c 	if (ch->collect_len > 0) {
ch                903 drivers/s390/net/ctcm_mpc.c 		spin_lock(&ch->collect_lock);
ch                904 drivers/s390/net/ctcm_mpc.c 		ctcm_purge_skb_queue(&ch->collect_queue);
ch                905 drivers/s390/net/ctcm_mpc.c 		ch->collect_len = 0;
ch                906 drivers/s390/net/ctcm_mpc.c 		spin_unlock(&ch->collect_lock);
ch                908 drivers/s390/net/ctcm_mpc.c 	ctcm_chx_txidle(ch->fsm, CTC_EVENT_START, ch);
ch                929 drivers/s390/net/ctcm_mpc.c void mpc_channel_action(struct channel *ch, int direction, int action)
ch                931 drivers/s390/net/ctcm_mpc.c 	struct net_device  *dev  = ch->netdev;
ch                942 drivers/s390/net/ctcm_mpc.c 	CTCM_PR_DEBUG("enter %s: ch=0x%p id=%s\n", __func__, ch, ch->id);
ch                951 drivers/s390/net/ctcm_mpc.c 	if ((action == MPC_CHANNEL_ADD) && (ch->in_mpcgroup == 0)) {
ch                955 drivers/s390/net/ctcm_mpc.c 		ch->in_mpcgroup = 1;
ch                957 drivers/s390/net/ctcm_mpc.c 		if (ch->xid_skb != NULL)
ch                958 drivers/s390/net/ctcm_mpc.c 			dev_kfree_skb_any(ch->xid_skb);
ch                960 drivers/s390/net/ctcm_mpc.c 		ch->xid_skb = __dev_alloc_skb(MPC_BUFSIZE_DEFAULT,
ch                962 drivers/s390/net/ctcm_mpc.c 		if (ch->xid_skb == NULL) {
ch                969 drivers/s390/net/ctcm_mpc.c 		ch->xid_skb_data = ch->xid_skb->data;
ch                970 drivers/s390/net/ctcm_mpc.c 		ch->xid_th = (struct th_header *)ch->xid_skb->data;
ch                971 drivers/s390/net/ctcm_mpc.c 		skb_put(ch->xid_skb, TH_HEADER_LENGTH);
ch                972 drivers/s390/net/ctcm_mpc.c 		ch->xid = (struct xid2 *)skb_tail_pointer(ch->xid_skb);
ch                973 drivers/s390/net/ctcm_mpc.c 		skb_put(ch->xid_skb, XID2_LENGTH);
ch                974 drivers/s390/net/ctcm_mpc.c 		ch->xid_id = skb_tail_pointer(ch->xid_skb);
ch                975 drivers/s390/net/ctcm_mpc.c 		ch->xid_skb->data = ch->xid_skb_data;
ch                976 drivers/s390/net/ctcm_mpc.c 		skb_reset_tail_pointer(ch->xid_skb);
ch                977 drivers/s390/net/ctcm_mpc.c 		ch->xid_skb->len = 0;
ch                979 drivers/s390/net/ctcm_mpc.c 		skb_put_data(ch->xid_skb, grp->xid_skb->data,
ch                982 drivers/s390/net/ctcm_mpc.c 		ch->xid->xid2_dlc_type =
ch                983 drivers/s390/net/ctcm_mpc.c 			((CHANNEL_DIRECTION(ch->flags) == CTCM_READ)
ch                986 drivers/s390/net/ctcm_mpc.c 		if (CHANNEL_DIRECTION(ch->flags) == CTCM_WRITE)
ch                987 drivers/s390/net/ctcm_mpc.c 			ch->xid->xid2_buf_len = 0x00;
ch                989 drivers/s390/net/ctcm_mpc.c 		ch->xid_skb->data = ch->xid_skb_data;
ch                990 drivers/s390/net/ctcm_mpc.c 		skb_reset_tail_pointer(ch->xid_skb);
ch                991 drivers/s390/net/ctcm_mpc.c 		ch->xid_skb->len = 0;
ch                993 drivers/s390/net/ctcm_mpc.c 		fsm_newstate(ch->fsm, CH_XID0_PENDING);
ch               1004 drivers/s390/net/ctcm_mpc.c 			(ch->in_mpcgroup == 1)) {
ch               1005 drivers/s390/net/ctcm_mpc.c 		ch->in_mpcgroup = 0;
ch               1009 drivers/s390/net/ctcm_mpc.c 		if (ch->xid_skb != NULL)
ch               1010 drivers/s390/net/ctcm_mpc.c 			dev_kfree_skb_any(ch->xid_skb);
ch               1011 drivers/s390/net/ctcm_mpc.c 		ch->xid_skb = NULL;
ch               1030 drivers/s390/net/ctcm_mpc.c 	CTCM_PR_DEBUG("exit %s: ch=0x%p id=%s\n", __func__, ch, ch->id);
ch               1041 drivers/s390/net/ctcm_mpc.c static void ctcmpc_unpack_skb(struct channel *ch, struct sk_buff *pskb)
ch               1043 drivers/s390/net/ctcm_mpc.c 	struct net_device *dev	= ch->netdev;
ch               1057 drivers/s390/net/ctcm_mpc.c 			__func__, dev->name, smp_processor_id(), ch->id);
ch               1078 drivers/s390/net/ctcm_mpc.c 		    (header->th_seq_num != ch->th_seq_num + 1) &&
ch               1079 drivers/s390/net/ctcm_mpc.c 		    (ch->th_seq_num != 0))) {
ch               1088 drivers/s390/net/ctcm_mpc.c 			skb_queue_tail(&ch->io_queue, pskb);
ch               1091 drivers/s390/net/ctcm_mpc.c 				ch->th_seq_num + 1, header->th_seq_num);
ch               1096 drivers/s390/net/ctcm_mpc.c 		ch->th_seq_num = header->th_seq_num;
ch               1099 drivers/s390/net/ctcm_mpc.c 					__func__, ch->th_seq_num);
ch               1120 drivers/s390/net/ctcm_mpc.c 			if ((pskb->len <= 0) || (pskb->len > ch->max_bufsize)) {
ch               1159 drivers/s390/net/ctcm_mpc.c 			*((__u32 *) skb_push(skb, 4)) = ch->pdu_seq;
ch               1160 drivers/s390/net/ctcm_mpc.c 			ch->pdu_seq++;
ch               1164 drivers/s390/net/ctcm_mpc.c 						__func__, ch->pdu_seq);
ch               1184 drivers/s390/net/ctcm_mpc.c 		mpcginfo->ch = ch;
ch               1225 drivers/s390/net/ctcm_mpc.c 			__func__, dev->name, ch, ch->id);
ch               1238 drivers/s390/net/ctcm_mpc.c 	struct channel	  *ch	= (struct channel *)thischan;
ch               1240 drivers/s390/net/ctcm_mpc.c 	struct net_device *dev	= ch->netdev;
ch               1245 drivers/s390/net/ctcm_mpc.c 	       dev->name, smp_processor_id(), __func__, ch->id);
ch               1248 drivers/s390/net/ctcm_mpc.c 			(skb = skb_dequeue(&ch->io_queue))) {
ch               1249 drivers/s390/net/ctcm_mpc.c 		ctcmpc_unpack_skb(ch, skb);
ch               1258 drivers/s390/net/ctcm_mpc.c 		if (skb == skb_peek(&ch->io_queue))
ch               1262 drivers/s390/net/ctcm_mpc.c 			__func__, dev->name, ch, ch->id);
ch               1491 drivers/s390/net/ctcm_mpc.c 	struct channel	   *ch	       = mpcginfo->ch;
ch               1496 drivers/s390/net/ctcm_mpc.c 	if (ch) {
ch               1497 drivers/s390/net/ctcm_mpc.c 		dev = ch->netdev;
ch               1503 drivers/s390/net/ctcm_mpc.c 					CTCM_FUNTAIL, dev->name, ch->id);
ch               1522 drivers/s390/net/ctcm_mpc.c 	struct channel	*ch = (struct channel *)thischan;
ch               1525 drivers/s390/net/ctcm_mpc.c 	spin_lock_irqsave(get_ccwdev_lock(ch->cdev), saveflags);
ch               1526 drivers/s390/net/ctcm_mpc.c 	rc = ccw_device_start(ch->cdev, &ch->ccw[15], 0, 0xff, 0);
ch               1527 drivers/s390/net/ctcm_mpc.c 	spin_unlock_irqrestore(get_ccwdev_lock(ch->cdev), saveflags);
ch               1530 drivers/s390/net/ctcm_mpc.c 		ctcm_ccw_check_rc(ch, rc, (char *)__func__);
ch               1544 drivers/s390/net/ctcm_mpc.c 	struct channel	   *ch	 = mpcginfo->ch;
ch               1545 drivers/s390/net/ctcm_mpc.c 	struct net_device  *dev  = ch->netdev;
ch               1561 drivers/s390/net/ctcm_mpc.c 				CTCM_FUNTAIL, ch->id);
ch               1568 drivers/s390/net/ctcm_mpc.c 	if (((CHANNEL_DIRECTION(ch->flags) == CTCM_READ) ? XID2_WRITE_SIDE :
ch               1574 drivers/s390/net/ctcm_mpc.c 				CTCM_FUNTAIL, ch->id);
ch               1609 drivers/s390/net/ctcm_mpc.c 					CTCM_FUNTAIL, ch->id);
ch               1614 drivers/s390/net/ctcm_mpc.c 					CTCM_FUNTAIL, ch->id);
ch               1623 drivers/s390/net/ctcm_mpc.c 					CTCM_FUNTAIL, ch->id);
ch               1630 drivers/s390/net/ctcm_mpc.c 					CTCM_FUNTAIL, ch->id);
ch               1637 drivers/s390/net/ctcm_mpc.c 					CTCM_FUNTAIL, ch->id);
ch               1644 drivers/s390/net/ctcm_mpc.c 					CTCM_FUNTAIL, ch->id);
ch               1665 drivers/s390/net/ctcm_mpc.c 	struct channel *ch = arg;
ch               1672 drivers/s390/net/ctcm_mpc.c 			__func__, smp_processor_id(), ch, ch->id);
ch               1674 drivers/s390/net/ctcm_mpc.c 	if (ctcm_checkalloc_buffer(ch))
ch               1680 drivers/s390/net/ctcm_mpc.c 	ch->trans_skb->data = ch->trans_skb_data;
ch               1681 drivers/s390/net/ctcm_mpc.c 	skb_reset_tail_pointer(ch->trans_skb);
ch               1682 drivers/s390/net/ctcm_mpc.c 	ch->trans_skb->len = 0;
ch               1687 drivers/s390/net/ctcm_mpc.c 	memset(ch->trans_skb->data, 0, 16);
ch               1688 drivers/s390/net/ctcm_mpc.c 	ch->rcvd_xid_th =  (struct th_header *)ch->trans_skb_data;
ch               1690 drivers/s390/net/ctcm_mpc.c 	skb_put(ch->trans_skb, TH_HEADER_LENGTH);
ch               1691 drivers/s390/net/ctcm_mpc.c 	ch->rcvd_xid = (struct xid2 *)skb_tail_pointer(ch->trans_skb);
ch               1693 drivers/s390/net/ctcm_mpc.c 	skb_put(ch->trans_skb, XID2_LENGTH);
ch               1694 drivers/s390/net/ctcm_mpc.c 	ch->rcvd_xid_id = skb_tail_pointer(ch->trans_skb);
ch               1696 drivers/s390/net/ctcm_mpc.c 	ch->trans_skb->data = ch->trans_skb_data;
ch               1697 drivers/s390/net/ctcm_mpc.c 	skb_reset_tail_pointer(ch->trans_skb);
ch               1698 drivers/s390/net/ctcm_mpc.c 	ch->trans_skb->len = 0;
ch               1708 drivers/s390/net/ctcm_mpc.c 	ch->ccw[8].flags	= CCW_FLAG_SLI | CCW_FLAG_CC;
ch               1709 drivers/s390/net/ctcm_mpc.c 	ch->ccw[8].count	= 0;
ch               1710 drivers/s390/net/ctcm_mpc.c 	ch->ccw[8].cda		= 0x00;
ch               1712 drivers/s390/net/ctcm_mpc.c 	if (!(ch->xid_th && ch->xid && ch->xid_id))
ch               1715 drivers/s390/net/ctcm_mpc.c 			CTCM_FUNTAIL, ch->id, ch->xid_th, ch->xid, ch->xid_id);
ch               1719 drivers/s390/net/ctcm_mpc.c 		if (ch->xid_th == NULL)
ch               1721 drivers/s390/net/ctcm_mpc.c 		ch->ccw[9].cmd_code	= CCW_CMD_WRITE;
ch               1722 drivers/s390/net/ctcm_mpc.c 		ch->ccw[9].flags	= CCW_FLAG_SLI | CCW_FLAG_CC;
ch               1723 drivers/s390/net/ctcm_mpc.c 		ch->ccw[9].count	= TH_HEADER_LENGTH;
ch               1724 drivers/s390/net/ctcm_mpc.c 		ch->ccw[9].cda		= virt_to_phys(ch->xid_th);
ch               1726 drivers/s390/net/ctcm_mpc.c 		if (ch->xid == NULL)
ch               1728 drivers/s390/net/ctcm_mpc.c 		ch->ccw[10].cmd_code	= CCW_CMD_WRITE;
ch               1729 drivers/s390/net/ctcm_mpc.c 		ch->ccw[10].flags	= CCW_FLAG_SLI | CCW_FLAG_CC;
ch               1730 drivers/s390/net/ctcm_mpc.c 		ch->ccw[10].count	= XID2_LENGTH;
ch               1731 drivers/s390/net/ctcm_mpc.c 		ch->ccw[10].cda		= virt_to_phys(ch->xid);
ch               1733 drivers/s390/net/ctcm_mpc.c 		ch->ccw[11].cmd_code	= CCW_CMD_READ;
ch               1734 drivers/s390/net/ctcm_mpc.c 		ch->ccw[11].flags	= CCW_FLAG_SLI | CCW_FLAG_CC;
ch               1735 drivers/s390/net/ctcm_mpc.c 		ch->ccw[11].count	= TH_HEADER_LENGTH;
ch               1736 drivers/s390/net/ctcm_mpc.c 		ch->ccw[11].cda		= virt_to_phys(ch->rcvd_xid_th);
ch               1738 drivers/s390/net/ctcm_mpc.c 		ch->ccw[12].cmd_code	= CCW_CMD_READ;
ch               1739 drivers/s390/net/ctcm_mpc.c 		ch->ccw[12].flags	= CCW_FLAG_SLI | CCW_FLAG_CC;
ch               1740 drivers/s390/net/ctcm_mpc.c 		ch->ccw[12].count	= XID2_LENGTH;
ch               1741 drivers/s390/net/ctcm_mpc.c 		ch->ccw[12].cda		= virt_to_phys(ch->rcvd_xid);
ch               1743 drivers/s390/net/ctcm_mpc.c 		ch->ccw[13].cmd_code	= CCW_CMD_READ;
ch               1744 drivers/s390/net/ctcm_mpc.c 		ch->ccw[13].cda		= virt_to_phys(ch->rcvd_xid_id);
ch               1747 drivers/s390/net/ctcm_mpc.c 		ch->ccw[9].cmd_code	= CCW_CMD_READ;
ch               1748 drivers/s390/net/ctcm_mpc.c 		ch->ccw[9].flags	= CCW_FLAG_SLI | CCW_FLAG_CC;
ch               1749 drivers/s390/net/ctcm_mpc.c 		ch->ccw[9].count	= TH_HEADER_LENGTH;
ch               1750 drivers/s390/net/ctcm_mpc.c 		ch->ccw[9].cda		= virt_to_phys(ch->rcvd_xid_th);
ch               1752 drivers/s390/net/ctcm_mpc.c 		ch->ccw[10].cmd_code	= CCW_CMD_READ;
ch               1753 drivers/s390/net/ctcm_mpc.c 		ch->ccw[10].flags	= CCW_FLAG_SLI | CCW_FLAG_CC;
ch               1754 drivers/s390/net/ctcm_mpc.c 		ch->ccw[10].count	= XID2_LENGTH;
ch               1755 drivers/s390/net/ctcm_mpc.c 		ch->ccw[10].cda		= virt_to_phys(ch->rcvd_xid);
ch               1757 drivers/s390/net/ctcm_mpc.c 		if (ch->xid_th == NULL)
ch               1759 drivers/s390/net/ctcm_mpc.c 		ch->ccw[11].cmd_code	= CCW_CMD_WRITE;
ch               1760 drivers/s390/net/ctcm_mpc.c 		ch->ccw[11].flags	= CCW_FLAG_SLI | CCW_FLAG_CC;
ch               1761 drivers/s390/net/ctcm_mpc.c 		ch->ccw[11].count	= TH_HEADER_LENGTH;
ch               1762 drivers/s390/net/ctcm_mpc.c 		ch->ccw[11].cda		= virt_to_phys(ch->xid_th);
ch               1764 drivers/s390/net/ctcm_mpc.c 		if (ch->xid == NULL)
ch               1766 drivers/s390/net/ctcm_mpc.c 		ch->ccw[12].cmd_code	= CCW_CMD_WRITE;
ch               1767 drivers/s390/net/ctcm_mpc.c 		ch->ccw[12].flags	= CCW_FLAG_SLI | CCW_FLAG_CC;
ch               1768 drivers/s390/net/ctcm_mpc.c 		ch->ccw[12].count	= XID2_LENGTH;
ch               1769 drivers/s390/net/ctcm_mpc.c 		ch->ccw[12].cda		= virt_to_phys(ch->xid);
ch               1771 drivers/s390/net/ctcm_mpc.c 		if (ch->xid_id == NULL)
ch               1773 drivers/s390/net/ctcm_mpc.c 		ch->ccw[13].cmd_code	= CCW_CMD_WRITE;
ch               1774 drivers/s390/net/ctcm_mpc.c 		ch->ccw[13].cda		= virt_to_phys(ch->xid_id);
ch               1777 drivers/s390/net/ctcm_mpc.c 	ch->ccw[13].flags	= CCW_FLAG_SLI | CCW_FLAG_CC;
ch               1778 drivers/s390/net/ctcm_mpc.c 	ch->ccw[13].count	= 4;
ch               1780 drivers/s390/net/ctcm_mpc.c 	ch->ccw[14].cmd_code	= CCW_CMD_NOOP;
ch               1781 drivers/s390/net/ctcm_mpc.c 	ch->ccw[14].flags	= CCW_FLAG_SLI;
ch               1782 drivers/s390/net/ctcm_mpc.c 	ch->ccw[14].count	= 0;
ch               1783 drivers/s390/net/ctcm_mpc.c 	ch->ccw[14].cda		= 0;
ch               1785 drivers/s390/net/ctcm_mpc.c 	CTCM_CCW_DUMP((char *)&ch->ccw[8], sizeof(struct ccw1) * 7);
ch               1786 drivers/s390/net/ctcm_mpc.c 	CTCM_D3_DUMP((char *)ch->xid_th, TH_HEADER_LENGTH);
ch               1787 drivers/s390/net/ctcm_mpc.c 	CTCM_D3_DUMP((char *)ch->xid, XID2_LENGTH);
ch               1788 drivers/s390/net/ctcm_mpc.c 	CTCM_D3_DUMP((char *)ch->xid_id, 4);
ch               1794 drivers/s390/net/ctcm_mpc.c 		spin_lock_irqsave(get_ccwdev_lock(ch->cdev), saveflags);
ch               1798 drivers/s390/net/ctcm_mpc.c 	fsm_addtimer(&ch->timer, 5000 , CTC_EVENT_TIMER, ch);
ch               1799 drivers/s390/net/ctcm_mpc.c 	rc = ccw_device_start(ch->cdev, &ch->ccw[8], 0, 0xff, 0);
ch               1802 drivers/s390/net/ctcm_mpc.c 		spin_unlock_irqrestore(get_ccwdev_lock(ch->cdev), saveflags);
ch               1805 drivers/s390/net/ctcm_mpc.c 		ctcm_ccw_check_rc(ch, rc,
ch               1811 drivers/s390/net/ctcm_mpc.c 				__func__, ch, ch->id);
ch               1840 drivers/s390/net/ctcm_mpc.c 	struct channel	   *ch   = arg;
ch               1841 drivers/s390/net/ctcm_mpc.c 	struct net_device  *dev  = ch->netdev;
ch               1846 drivers/s390/net/ctcm_mpc.c 			__func__, smp_processor_id(), ch, ch->id);
ch               1848 drivers/s390/net/ctcm_mpc.c 	if (ch->xid == NULL) {
ch               1855 drivers/s390/net/ctcm_mpc.c 	fsm_newstate(ch->fsm, CH_XID0_INPROGRESS);
ch               1857 drivers/s390/net/ctcm_mpc.c 	ch->xid->xid2_option =	XID2_0;
ch               1862 drivers/s390/net/ctcm_mpc.c 		ch->ccw[8].cmd_code = CCW_CMD_SENSE_CMD;
ch               1866 drivers/s390/net/ctcm_mpc.c 		ch->ccw[8].cmd_code = CCW_CMD_WRITE_CTL;
ch               1870 drivers/s390/net/ctcm_mpc.c 	fsm_event(grp->fsm, MPCG_EVENT_DOIO, ch);
ch               1893 drivers/s390/net/ctcm_mpc.c 		struct channel *ch = priv->channel[direction];
ch               1894 drivers/s390/net/ctcm_mpc.c 		struct xid2 *thisxid = ch->xid;
ch               1895 drivers/s390/net/ctcm_mpc.c 		ch->xid_skb->data = ch->xid_skb_data;
ch               1896 drivers/s390/net/ctcm_mpc.c 		skb_reset_tail_pointer(ch->xid_skb);
ch               1897 drivers/s390/net/ctcm_mpc.c 		ch->xid_skb->len = 0;
ch               1904 drivers/s390/net/ctcm_mpc.c 				if (fsm_getstate(ch->fsm) == CH_XID7_PENDING1) {
ch               1905 drivers/s390/net/ctcm_mpc.c 					fsm_newstate(ch->fsm, CH_XID7_PENDING2);
ch               1906 drivers/s390/net/ctcm_mpc.c 					ch->ccw[8].cmd_code = CCW_CMD_SENSE_CMD;
ch               1907 drivers/s390/net/ctcm_mpc.c 					skb_put_data(ch->xid_skb, &thdummy,
ch               1911 drivers/s390/net/ctcm_mpc.c 			} else if (fsm_getstate(ch->fsm) < CH_XID7_PENDING2) {
ch               1912 drivers/s390/net/ctcm_mpc.c 					fsm_newstate(ch->fsm, CH_XID7_PENDING2);
ch               1913 drivers/s390/net/ctcm_mpc.c 					ch->ccw[8].cmd_code = CCW_CMD_WRITE_CTL;
ch               1914 drivers/s390/net/ctcm_mpc.c 					skb_put_data(ch->xid_skb, &thnorm,
ch               1921 drivers/s390/net/ctcm_mpc.c 				if (fsm_getstate(ch->fsm) < CH_XID7_PENDING4) {
ch               1922 drivers/s390/net/ctcm_mpc.c 					fsm_newstate(ch->fsm, CH_XID7_PENDING4);
ch               1923 drivers/s390/net/ctcm_mpc.c 					skb_put_data(ch->xid_skb, &thnorm,
ch               1925 drivers/s390/net/ctcm_mpc.c 					ch->ccw[8].cmd_code = CCW_CMD_WRITE_CTL;
ch               1928 drivers/s390/net/ctcm_mpc.c 			} else if (fsm_getstate(ch->fsm) == CH_XID7_PENDING3) {
ch               1929 drivers/s390/net/ctcm_mpc.c 				fsm_newstate(ch->fsm, CH_XID7_PENDING4);
ch               1930 drivers/s390/net/ctcm_mpc.c 				ch->ccw[8].cmd_code = CCW_CMD_SENSE_CMD;
ch               1931 drivers/s390/net/ctcm_mpc.c 				skb_put_data(ch->xid_skb, &thdummy,
ch               1938 drivers/s390/net/ctcm_mpc.c 			fsm_event(grp->fsm, MPCG_EVENT_DOIO, ch);
ch               1952 drivers/s390/net/ctcm_mpc.c 	struct channel	   *ch   = mpcginfo->ch;
ch               1953 drivers/s390/net/ctcm_mpc.c 	struct net_device  *dev  = ch->netdev;
ch               1958 drivers/s390/net/ctcm_mpc.c 			__func__, ch->id, grp->outstanding_xid2,
ch               1961 drivers/s390/net/ctcm_mpc.c 	if (fsm_getstate(ch->fsm) < CH_XID7_PENDING)
ch               1962 drivers/s390/net/ctcm_mpc.c 		fsm_newstate(ch->fsm, CH_XID7_PENDING);
ch               1997 drivers/s390/net/ctcm_mpc.c 		__func__, ch->id, grp->outstanding_xid2,
ch               2000 drivers/s390/net/ctcm_mpc.c 		__func__, ch->id,
ch               2001 drivers/s390/net/ctcm_mpc.c 		fsm_getstate_str(grp->fsm), fsm_getstate_str(ch->fsm));
ch               2014 drivers/s390/net/ctcm_mpc.c 	struct channel	   *ch	       = mpcginfo->ch;
ch               2015 drivers/s390/net/ctcm_mpc.c 	struct net_device  *dev        = ch->netdev;
ch               2020 drivers/s390/net/ctcm_mpc.c 		__func__, smp_processor_id(), ch, ch->id);
ch               2025 drivers/s390/net/ctcm_mpc.c 	ch->xid_skb->data = ch->xid_skb_data;
ch               2026 drivers/s390/net/ctcm_mpc.c 	skb_reset_tail_pointer(ch->xid_skb);
ch               2027 drivers/s390/net/ctcm_mpc.c 	ch->xid_skb->len = 0;
ch                152 drivers/s390/net/ctcm_mpc.h 	struct channel	*ch;
ch                234 drivers/s390/net/ctcm_mpc.h void mpc_channel_action(struct channel *ch, int direction, int action);
ch               1352 drivers/scsi/BusLogic.c 	unsigned char *tgt, ch;
ch               1487 drivers/scsi/BusLogic.c 		ch = model[i];
ch               1488 drivers/scsi/BusLogic.c 		if (ch == ' ' || ch == '\0')
ch               1490 drivers/scsi/BusLogic.c 		*tgt++ = ch;
ch               7494 drivers/scsi/FlashPoint.c 	unsigned short ch;
ch               7496 drivers/scsi/FlashPoint.c 		ch = (unsigned short)buffer[i];
ch               7498 drivers/scsi/FlashPoint.c 			if ((crc ^ ch) & 1)
ch               7502 drivers/scsi/FlashPoint.c 			ch >>= 1;
ch                128 drivers/scsi/aha1740.c 		        ch:1,	/* Chaining Halted */
ch                121 drivers/scsi/aic7xxx/aicasm/aicasm.c 	int  ch;
ch                146 drivers/scsi/aic7xxx/aicasm/aicasm.c 	while ((ch = getopt(argc, argv, "d:i:l:n:o:p:r:I:")) != -1) {
ch                147 drivers/scsi/aic7xxx/aicasm/aicasm.c 		switch(ch) {
ch                181 drivers/scsi/aic7xxx/aicasm/aicasm.c 					appname, ch, optarg);
ch                 88 drivers/scsi/ch.c #define ch_printk(prefix, ch, fmt, a...) \
ch                 89 drivers/scsi/ch.c 	sdev_prefix_printk(prefix, (ch)->device, (ch)->name, fmt, ##a)
ch                 94 drivers/scsi/ch.c 		ch_printk(KERN_DEBUG, ch, fmt, ##arg);			\
ch                 99 drivers/scsi/ch.c 		ch_printk(level, ch, fmt, ##arg);			\
ch                187 drivers/scsi/ch.c ch_do_scsi(scsi_changer *ch, unsigned char *cmd, int cmd_len,
ch                199 drivers/scsi/ch.c 	result = scsi_execute_req(ch->device, cmd, direction, buffer,
ch                205 drivers/scsi/ch.c 			scsi_print_sense_hdr(ch->device, ch->name, &sshdr);
ch                210 drivers/scsi/ch.c 			ch->unit_attention = 1;
ch                222 drivers/scsi/ch.c ch_elem_to_typecode(scsi_changer *ch, u_int elem)
ch                227 drivers/scsi/ch.c 		if (elem >= ch->firsts[i]  &&
ch                228 drivers/scsi/ch.c 		    elem <  ch->firsts[i] +
ch                229 drivers/scsi/ch.c 	            ch->counts[i])
ch                236 drivers/scsi/ch.c ch_read_element_status(scsi_changer *ch, u_int elem, char *data)
ch                249 drivers/scsi/ch.c 	cmd[1] = ((ch->device->lun & 0x7) << 5) |
ch                250 drivers/scsi/ch.c 		(ch->voltags ? 0x10 : 0) |
ch                251 drivers/scsi/ch.c 		ch_elem_to_typecode(ch,elem);
ch                256 drivers/scsi/ch.c 	if (0 == (result = ch_do_scsi(ch, cmd, 12,
ch                266 drivers/scsi/ch.c 		if (ch->voltags) {
ch                267 drivers/scsi/ch.c 			ch->voltags = 0;
ch                278 drivers/scsi/ch.c ch_init_elem(scsi_changer *ch)
ch                286 drivers/scsi/ch.c 	cmd[1] = (ch->device->lun & 0x7) << 5;
ch                287 drivers/scsi/ch.c 	err = ch_do_scsi(ch, cmd, 6, NULL, 0, DMA_NONE);
ch                293 drivers/scsi/ch.c ch_readconfig(scsi_changer *ch)
ch                306 drivers/scsi/ch.c 	cmd[1] = (ch->device->lun & 0x7) << 5;
ch                309 drivers/scsi/ch.c 	result = ch_do_scsi(ch, cmd, 10, buffer, 255, DMA_FROM_DEVICE);
ch                312 drivers/scsi/ch.c 		result  = ch_do_scsi(ch, cmd, 10, buffer, 255, DMA_FROM_DEVICE);
ch                315 drivers/scsi/ch.c 		ch->firsts[CHET_MT] =
ch                317 drivers/scsi/ch.c 		ch->counts[CHET_MT] =
ch                319 drivers/scsi/ch.c 		ch->firsts[CHET_ST] =
ch                321 drivers/scsi/ch.c 		ch->counts[CHET_ST] =
ch                323 drivers/scsi/ch.c 		ch->firsts[CHET_IE] =
ch                325 drivers/scsi/ch.c 		ch->counts[CHET_IE] =
ch                327 drivers/scsi/ch.c 		ch->firsts[CHET_DT] =
ch                329 drivers/scsi/ch.c 		ch->counts[CHET_DT] =
ch                332 drivers/scsi/ch.c 			ch->firsts[CHET_MT],
ch                333 drivers/scsi/ch.c 			ch->counts[CHET_MT]);
ch                335 drivers/scsi/ch.c 			ch->firsts[CHET_ST],
ch                336 drivers/scsi/ch.c 			ch->counts[CHET_ST]);
ch                338 drivers/scsi/ch.c 			ch->firsts[CHET_IE],
ch                339 drivers/scsi/ch.c 			ch->counts[CHET_IE]);
ch                341 drivers/scsi/ch.c 			ch->firsts[CHET_DT],
ch                342 drivers/scsi/ch.c 			ch->counts[CHET_DT]);
ch                353 drivers/scsi/ch.c 		ch->firsts[CHET_V1+i] = vendor_firsts[i];
ch                354 drivers/scsi/ch.c 		ch->counts[CHET_V1+i] = vendor_counts[i];
ch                361 drivers/scsi/ch.c 	ch->dt = kcalloc(ch->counts[CHET_DT], sizeof(*ch->dt),
ch                364 drivers/scsi/ch.c 	if (!ch->dt) {
ch                369 drivers/scsi/ch.c 	for (elem = 0; elem < ch->counts[CHET_DT]; elem++) {
ch                376 drivers/scsi/ch.c 				elem+ch->firsts[CHET_DT]);
ch                378 drivers/scsi/ch.c 			   (ch,elem+ch->firsts[CHET_DT],data)) {
ch                380 drivers/scsi/ch.c 				elem+ch->firsts[CHET_DT]);
ch                382 drivers/scsi/ch.c 			VPRINTK(KERN_INFO, "dt 0x%x: ",elem+ch->firsts[CHET_DT]);
ch                385 drivers/scsi/ch.c 				ch->dt[elem] = NULL;
ch                388 drivers/scsi/ch.c 				ch->dt[elem] = NULL;
ch                390 drivers/scsi/ch.c 				id  = ch->device->id;
ch                398 drivers/scsi/ch.c 			ch->dt[elem] =
ch                399 drivers/scsi/ch.c 				scsi_device_lookup(ch->device->host,
ch                400 drivers/scsi/ch.c 						   ch->device->channel,
ch                402 drivers/scsi/ch.c 			if (!ch->dt[elem]) {
ch                407 drivers/scsi/ch.c 					ch->dt[elem]->vendor,
ch                408 drivers/scsi/ch.c 					ch->dt[elem]->model,
ch                409 drivers/scsi/ch.c 					ch->dt[elem]->rev);
ch                413 drivers/scsi/ch.c 	ch->voltags = 1;
ch                422 drivers/scsi/ch.c ch_position(scsi_changer *ch, u_int trans, u_int elem, int rotate)
ch                428 drivers/scsi/ch.c 		trans = ch->firsts[CHET_MT];
ch                431 drivers/scsi/ch.c 	cmd[1]  = (ch->device->lun & 0x7) << 5;
ch                437 drivers/scsi/ch.c 	return ch_do_scsi(ch, cmd, 10, NULL, 0, DMA_NONE);
ch                441 drivers/scsi/ch.c ch_move(scsi_changer *ch, u_int trans, u_int src, u_int dest, int rotate)
ch                447 drivers/scsi/ch.c 		trans = ch->firsts[CHET_MT];
ch                450 drivers/scsi/ch.c 	cmd[1]  = (ch->device->lun & 0x7) << 5;
ch                458 drivers/scsi/ch.c 	return ch_do_scsi(ch, cmd, 12, NULL,0, DMA_NONE);
ch                462 drivers/scsi/ch.c ch_exchange(scsi_changer *ch, u_int trans, u_int src,
ch                470 drivers/scsi/ch.c 		trans = ch->firsts[CHET_MT];
ch                473 drivers/scsi/ch.c 	cmd[1]  = (ch->device->lun & 0x7) << 5;
ch                484 drivers/scsi/ch.c 	return ch_do_scsi(ch, cmd, 12, NULL, 0, DMA_NONE);
ch                504 drivers/scsi/ch.c ch_set_voltag(scsi_changer *ch, u_int elem,
ch                521 drivers/scsi/ch.c 	cmd[1] = ((ch->device->lun & 0x7) << 5) |
ch                522 drivers/scsi/ch.c 		ch_elem_to_typecode(ch,elem);
ch                534 drivers/scsi/ch.c 	result = ch_do_scsi(ch, cmd, 12, buffer, 256, DMA_TO_DEVICE);
ch                539 drivers/scsi/ch.c static int ch_gstatus(scsi_changer *ch, int type, unsigned char __user *dest)
ch                545 drivers/scsi/ch.c 	mutex_lock(&ch->lock);
ch                546 drivers/scsi/ch.c 	for (i = 0; i < ch->counts[type]; i++) {
ch                548 drivers/scsi/ch.c 		    (ch, ch->firsts[type]+i,data)) {
ch                555 drivers/scsi/ch.c 				ch->firsts[type]+i,
ch                558 drivers/scsi/ch.c 			(ch, ch->firsts[type]+i,data);
ch                562 drivers/scsi/ch.c 	mutex_unlock(&ch->lock);
ch                570 drivers/scsi/ch.c 	scsi_changer *ch = container_of(ref, scsi_changer, ref);
ch                572 drivers/scsi/ch.c 	kfree(ch->dt);
ch                573 drivers/scsi/ch.c 	kfree(ch);
ch                579 drivers/scsi/ch.c 	scsi_changer *ch = file->private_data;
ch                581 drivers/scsi/ch.c 	scsi_device_put(ch->device);
ch                583 drivers/scsi/ch.c 	kref_put(&ch->ref, ch_destroy);
ch                590 drivers/scsi/ch.c 	scsi_changer *ch;
ch                595 drivers/scsi/ch.c 	ch = idr_find(&ch_index_idr, minor);
ch                597 drivers/scsi/ch.c 	if (NULL == ch || scsi_device_get(ch->device)) {
ch                602 drivers/scsi/ch.c 	kref_get(&ch->ref);
ch                605 drivers/scsi/ch.c 	file->private_data = ch;
ch                611 drivers/scsi/ch.c ch_checkrange(scsi_changer *ch, unsigned int type, unsigned int unit)
ch                613 drivers/scsi/ch.c 	if (type >= CH_TYPES  ||  unit >= ch->counts[type])
ch                621 drivers/scsi/ch.c 	scsi_changer *ch = file->private_data;
ch                625 drivers/scsi/ch.c 	retval = scsi_ioctl_block_when_processing_errors(ch->device, cmd,
ch                636 drivers/scsi/ch.c 		params.cp_npickers  = ch->counts[CHET_MT];
ch                637 drivers/scsi/ch.c 		params.cp_nslots    = ch->counts[CHET_ST];
ch                638 drivers/scsi/ch.c 		params.cp_nportals  = ch->counts[CHET_IE];
ch                639 drivers/scsi/ch.c 		params.cp_ndrives   = ch->counts[CHET_DT];
ch                650 drivers/scsi/ch.c 		if (ch->counts[CHET_V1]) {
ch                651 drivers/scsi/ch.c 			vparams.cvp_n1  = ch->counts[CHET_V1];
ch                654 drivers/scsi/ch.c 		if (ch->counts[CHET_V2]) {
ch                655 drivers/scsi/ch.c 			vparams.cvp_n2  = ch->counts[CHET_V2];
ch                658 drivers/scsi/ch.c 		if (ch->counts[CHET_V3]) {
ch                659 drivers/scsi/ch.c 			vparams.cvp_n3  = ch->counts[CHET_V3];
ch                662 drivers/scsi/ch.c 		if (ch->counts[CHET_V4]) {
ch                663 drivers/scsi/ch.c 			vparams.cvp_n4  = ch->counts[CHET_V4];
ch                678 drivers/scsi/ch.c 		if (0 != ch_checkrange(ch, pos.cp_type, pos.cp_unit)) {
ch                682 drivers/scsi/ch.c 		mutex_lock(&ch->lock);
ch                683 drivers/scsi/ch.c 		retval = ch_position(ch,0,
ch                684 drivers/scsi/ch.c 				     ch->firsts[pos.cp_type] + pos.cp_unit,
ch                686 drivers/scsi/ch.c 		mutex_unlock(&ch->lock);
ch                697 drivers/scsi/ch.c 		if (0 != ch_checkrange(ch, mv.cm_fromtype, mv.cm_fromunit) ||
ch                698 drivers/scsi/ch.c 		    0 != ch_checkrange(ch, mv.cm_totype,   mv.cm_tounit  )) {
ch                703 drivers/scsi/ch.c 		mutex_lock(&ch->lock);
ch                704 drivers/scsi/ch.c 		retval = ch_move(ch,0,
ch                705 drivers/scsi/ch.c 				 ch->firsts[mv.cm_fromtype] + mv.cm_fromunit,
ch                706 drivers/scsi/ch.c 				 ch->firsts[mv.cm_totype]   + mv.cm_tounit,
ch                708 drivers/scsi/ch.c 		mutex_unlock(&ch->lock);
ch                719 drivers/scsi/ch.c 		if (0 != ch_checkrange(ch, mv.ce_srctype,  mv.ce_srcunit ) ||
ch                720 drivers/scsi/ch.c 		    0 != ch_checkrange(ch, mv.ce_fdsttype, mv.ce_fdstunit) ||
ch                721 drivers/scsi/ch.c 		    0 != ch_checkrange(ch, mv.ce_sdsttype, mv.ce_sdstunit)) {
ch                726 drivers/scsi/ch.c 		mutex_lock(&ch->lock);
ch                728 drivers/scsi/ch.c 			(ch,0,
ch                729 drivers/scsi/ch.c 			 ch->firsts[mv.ce_srctype]  + mv.ce_srcunit,
ch                730 drivers/scsi/ch.c 			 ch->firsts[mv.ce_fdsttype] + mv.ce_fdstunit,
ch                731 drivers/scsi/ch.c 			 ch->firsts[mv.ce_sdsttype] + mv.ce_sdstunit,
ch                733 drivers/scsi/ch.c 		mutex_unlock(&ch->lock);
ch                746 drivers/scsi/ch.c 		return ch_gstatus(ch, ces.ces_type, ces.ces_data);
ch                760 drivers/scsi/ch.c 		if (0 != ch_checkrange(ch, cge.cge_type, cge.cge_unit))
ch                762 drivers/scsi/ch.c 		elem = ch->firsts[cge.cge_type] + cge.cge_unit;
ch                767 drivers/scsi/ch.c 		mutex_lock(&ch->lock);
ch                772 drivers/scsi/ch.c 		ch_cmd[1] = ((ch->device->lun & 0x7) << 5) |
ch                773 drivers/scsi/ch.c 			(ch->voltags ? 0x10 : 0) |
ch                774 drivers/scsi/ch.c 			ch_elem_to_typecode(ch,elem);
ch                780 drivers/scsi/ch.c 		result = ch_do_scsi(ch, ch_cmd, 12,
ch                794 drivers/scsi/ch.c 					if (elem >= ch->firsts[i] &&
ch                795 drivers/scsi/ch.c 					    elem <  ch->firsts[i] + ch->counts[i]) {
ch                797 drivers/scsi/ch.c 						cge.cge_srcunit = elem-ch->firsts[i];
ch                814 drivers/scsi/ch.c 		} else if (ch->voltags) {
ch                815 drivers/scsi/ch.c 			ch->voltags = 0;
ch                820 drivers/scsi/ch.c 		mutex_unlock(&ch->lock);
ch                829 drivers/scsi/ch.c 		mutex_lock(&ch->lock);
ch                830 drivers/scsi/ch.c 		retval = ch_init_elem(ch);
ch                831 drivers/scsi/ch.c 		mutex_unlock(&ch->lock);
ch                843 drivers/scsi/ch.c 		if (0 != ch_checkrange(ch, csv.csv_type, csv.csv_unit)) {
ch                847 drivers/scsi/ch.c 		elem = ch->firsts[csv.csv_type] + csv.csv_unit;
ch                848 drivers/scsi/ch.c 		mutex_lock(&ch->lock);
ch                849 drivers/scsi/ch.c 		retval = ch_set_voltag(ch, elem,
ch                853 drivers/scsi/ch.c 		mutex_unlock(&ch->lock);
ch                858 drivers/scsi/ch.c 		return scsi_ioctl(ch->device, cmd, argp);
ch                874 drivers/scsi/ch.c 	scsi_changer *ch = file->private_data;
ch                898 drivers/scsi/ch.c 		return ch_gstatus(ch, ces32.ces_type, data);
ch                915 drivers/scsi/ch.c 	scsi_changer *ch;
ch                920 drivers/scsi/ch.c 	ch = kzalloc(sizeof(*ch), GFP_KERNEL);
ch                921 drivers/scsi/ch.c 	if (NULL == ch)
ch                926 drivers/scsi/ch.c 	ret = idr_alloc(&ch_index_idr, ch, 0, CH_MAX_DEVS + 1, GFP_NOWAIT);
ch                936 drivers/scsi/ch.c 	ch->minor = ret;
ch                937 drivers/scsi/ch.c 	sprintf(ch->name,"ch%d",ch->minor);
ch                940 drivers/scsi/ch.c 				  MKDEV(SCSI_CHANGER_MAJOR, ch->minor), ch,
ch                941 drivers/scsi/ch.c 				  "s%s", ch->name);
ch                944 drivers/scsi/ch.c 			    ch->minor);
ch                949 drivers/scsi/ch.c 	mutex_init(&ch->lock);
ch                950 drivers/scsi/ch.c 	kref_init(&ch->ref);
ch                951 drivers/scsi/ch.c 	ch->device = sd;
ch                952 drivers/scsi/ch.c 	ret = ch_readconfig(ch);
ch                956 drivers/scsi/ch.c 		ch_init_elem(ch);
ch                958 drivers/scsi/ch.c 	dev_set_drvdata(dev, ch);
ch                959 drivers/scsi/ch.c 	sdev_printk(KERN_INFO, sd, "Attached scsi changer %s\n", ch->name);
ch                963 drivers/scsi/ch.c 	device_destroy(ch_sysfs_class, MKDEV(SCSI_CHANGER_MAJOR, ch->minor));
ch                965 drivers/scsi/ch.c 	idr_remove(&ch_index_idr, ch->minor);
ch                967 drivers/scsi/ch.c 	kfree(ch);
ch                973 drivers/scsi/ch.c 	scsi_changer *ch = dev_get_drvdata(dev);
ch                976 drivers/scsi/ch.c 	idr_remove(&ch_index_idr, ch->minor);
ch                979 drivers/scsi/ch.c 	device_destroy(ch_sysfs_class, MKDEV(SCSI_CHANGER_MAJOR,ch->minor));
ch                980 drivers/scsi/ch.c 	kref_put(&ch->ref, ch_destroy);
ch                245 drivers/scsi/esas2r/esas2r_flash.c 	struct esas2r_component_header *ch = &fi->cmp_hdr[CH_IT_BIOS];
ch                249 drivers/scsi/esas2r/esas2r_flash.c 	pi = (struct esas2r_pc_image *)((u8 *)fi + ch->image_offset);
ch                272 drivers/scsi/esas2r/esas2r_flash.c 		       esas2r_calc_byte_cksum((u8 *)pi, ch->length, 0);
ch                277 drivers/scsi/esas2r/esas2r_flash.c 	struct esas2r_component_header *ch = &fi->cmp_hdr[CH_IT_EFI];
ch                278 drivers/scsi/esas2r/esas2r_flash.c 	u32 len = ch->length;
ch                279 drivers/scsi/esas2r/esas2r_flash.c 	u32 offset = ch->image_offset;
ch                329 drivers/scsi/esas2r/esas2r_flash.c 	struct esas2r_component_header *ch;
ch                344 drivers/scsi/esas2r/esas2r_flash.c 		ch = &fi->cmp_hdr[fc->comp_typ];
ch                348 drivers/scsi/esas2r/esas2r_flash.c 		    + ch->image_offset          /* start of the current image */
ch                349 drivers/scsi/esas2r/esas2r_flash.c 		    + ch->length                /* end of the current image   */
ch                379 drivers/scsi/esas2r/esas2r_flash.c 		ch = &fi->cmp_hdr[fc->comp_typ];
ch                384 drivers/scsi/esas2r/esas2r_flash.c 			ch = &fi->cmp_hdr[CH_IT_BIOS];
ch                385 drivers/scsi/esas2r/esas2r_flash.c 			if (ch->length == 0)
ch                392 drivers/scsi/esas2r/esas2r_flash.c 			fc->sgc.length = ch->length;
ch                394 drivers/scsi/esas2r/esas2r_flash.c 					     ch->image_offset;
ch                405 drivers/scsi/esas2r/esas2r_flash.c 			fc->cmp_len = ch->length;
ch                418 drivers/scsi/esas2r/esas2r_flash.c 			ch->status = CH_STAT_SUCCESS;
ch                421 drivers/scsi/esas2r/esas2r_flash.c 			ch = &fi->cmp_hdr[CH_IT_MAC];
ch                422 drivers/scsi/esas2r/esas2r_flash.c 			if (ch->length == 0)
ch                430 drivers/scsi/esas2r/esas2r_flash.c 			fc->sgc.length = ch->length;
ch                432 drivers/scsi/esas2r/esas2r_flash.c 					     ch->image_offset;
ch                439 drivers/scsi/esas2r/esas2r_flash.c 			fc->flsh_addr -= ch->length;
ch                440 drivers/scsi/esas2r/esas2r_flash.c 			fc->cmp_len = ch->length;
ch                453 drivers/scsi/esas2r/esas2r_flash.c 			ch->status = CH_STAT_SUCCESS;
ch                456 drivers/scsi/esas2r/esas2r_flash.c 			ch = &fi->cmp_hdr[CH_IT_EFI];
ch                457 drivers/scsi/esas2r/esas2r_flash.c 			if (ch->length == 0)
ch                466 drivers/scsi/esas2r/esas2r_flash.c 			fc->sgc.length = ch->length;
ch                468 drivers/scsi/esas2r/esas2r_flash.c 					     ch->image_offset;
ch                475 drivers/scsi/esas2r/esas2r_flash.c 			fc->flsh_addr -= ch->length;
ch                476 drivers/scsi/esas2r/esas2r_flash.c 			fc->cmp_len = ch->length;
ch                489 drivers/scsi/esas2r/esas2r_flash.c 			ch->status = CH_STAT_SUCCESS;
ch                492 drivers/scsi/esas2r/esas2r_flash.c 			ch = &fi->cmp_hdr[CH_IT_CFG];
ch                494 drivers/scsi/esas2r/esas2r_flash.c 			if (ch->length == 0)
ch                499 drivers/scsi/esas2r/esas2r_flash.c 			fc->flsh_addr = FLS_OFFSET_CPYR - ch->length;
ch                500 drivers/scsi/esas2r/esas2r_flash.c 			fc->sgc.length = ch->length;
ch                502 drivers/scsi/esas2r/esas2r_flash.c 					     ch->image_offset;
ch                509 drivers/scsi/esas2r/esas2r_flash.c 			fc->flsh_addr = FLS_OFFSET_CPYR - ch->length;
ch                510 drivers/scsi/esas2r/esas2r_flash.c 			fc->cmp_len = ch->length;
ch                523 drivers/scsi/esas2r/esas2r_flash.c 			ch->status = CH_STAT_SUCCESS;
ch                552 drivers/scsi/esas2r/esas2r_flash.c 			ch = &fi->cmp_hdr[fc->comp_typ];
ch                553 drivers/scsi/esas2r/esas2r_flash.c 			ch->status = CH_STAT_FAILED;
ch                700 drivers/scsi/esas2r/esas2r_flash.c 	struct esas2r_component_header *ch;
ch                725 drivers/scsi/esas2r/esas2r_flash.c 	for (i = 0, len = 0, ch = fi->cmp_hdr;
ch                727 drivers/scsi/esas2r/esas2r_flash.c 	     i++, ch++) {
ch                734 drivers/scsi/esas2r/esas2r_flash.c 		if (i != ch->img_type) {
ch                736 drivers/scsi/esas2r/esas2r_flash.c 			ch->status = CH_STAT_INVALID;
ch                740 drivers/scsi/esas2r/esas2r_flash.c 		switch (ch->img_type) {
ch                754 drivers/scsi/esas2r/esas2r_flash.c 		switch (ch->img_type) {
ch                762 drivers/scsi/esas2r/esas2r_flash.c 			if (ch->length & 0x1ff)
ch                766 drivers/scsi/esas2r/esas2r_flash.c 			if (ch->length == 0)
ch                770 drivers/scsi/esas2r/esas2r_flash.c 			if (chk_boot((u8 *)fi + ch->image_offset, ch->length)
ch                779 drivers/scsi/esas2r/esas2r_flash.c 			if (ch->length == 0) {
ch                785 drivers/scsi/esas2r/esas2r_flash.c 			if (!chk_cfg((u8 *)fi + ch->image_offset + ch->length,
ch                786 drivers/scsi/esas2r/esas2r_flash.c 				     ch->length, NULL))
ch                799 drivers/scsi/esas2r/esas2r_flash.c 			ch->status = CH_STAT_INVALID;
ch                801 drivers/scsi/esas2r/esas2r_flash.c 			ch->status = CH_STAT_PENDING;
ch                802 drivers/scsi/esas2r/esas2r_flash.c 			len += ch->length;
ch               1395 drivers/scsi/esas2r/esas2r_flash.c 	struct esas2r_component_header *ch;
ch               1431 drivers/scsi/esas2r/esas2r_flash.c 		ch = &fi->cmp_hdr[CH_IT_BIOS];
ch               1433 drivers/scsi/esas2r/esas2r_flash.c 		if (ch->length)
ch               1437 drivers/scsi/esas2r/esas2r_flash.c 		ch = &fi->cmp_hdr[CH_IT_EFI];
ch               1439 drivers/scsi/esas2r/esas2r_flash.c 		if (ch->length)
ch               1475 drivers/scsi/esas2r/esas2r_flash.c 		for (j = 0, ch = fi->cmp_hdr;
ch               1477 drivers/scsi/esas2r/esas2r_flash.c 		     j++, ch++) {
ch               1478 drivers/scsi/esas2r/esas2r_flash.c 			ch->img_type = j;
ch               1479 drivers/scsi/esas2r/esas2r_flash.c 			ch->status = CH_STAT_PENDING;
ch               1480 drivers/scsi/esas2r/esas2r_flash.c 			ch->length = 0;
ch               1481 drivers/scsi/esas2r/esas2r_flash.c 			ch->version = 0xffffffff;
ch               1482 drivers/scsi/esas2r/esas2r_flash.c 			ch->image_offset = 0;
ch               1483 drivers/scsi/esas2r/esas2r_flash.c 			ch->pad[0] = 0;
ch               1484 drivers/scsi/esas2r/esas2r_flash.c 			ch->pad[1] = 0;
ch               1830 drivers/scsi/libsas/sas_expander.c 	struct domain_device *ch;
ch               1851 drivers/scsi/libsas/sas_expander.c 	list_for_each_entry(ch, &ex->children, siblings) {
ch               1852 drivers/scsi/libsas/sas_expander.c 		if (dev_is_expander(ch->dev_type)) {
ch               1853 drivers/scsi/libsas/sas_expander.c 			res = sas_find_bcast_dev(ch, src_dev);
ch                117 drivers/scsi/megaraid.c #define IS_RAID_CH(hba, ch)	(((hba)->mega_ch_class >> (ch)) & 0x01)
ch               4004 drivers/scsi/megaraid.c mega_internal_dev_inquiry(adapter_t *adapter, u8 ch, u8 tgt,
ch               4033 drivers/scsi/megaraid.c 	pthru->channel = (adapter->flag & BOARD_40LD) ? 0 : ch;
ch               4035 drivers/scsi/megaraid.c 	pthru->target = (adapter->flag & BOARD_40LD) ? (ch << 4)|tgt : tgt;
ch                224 drivers/scsi/megaraid/megaraid_mbox.h #define IS_RAID_CH(rdev, ch)	(((rdev)->channel_class >> (ch)) & 0x01)
ch               3242 drivers/scsi/ufs/ufshcd.c static inline char ufshcd_remove_non_printable(u8 ch)
ch               3244 drivers/scsi/ufs/ufshcd.c 	return (ch >= 0x20 && ch <= 0x7e) ? ch : ' ';
ch                941 drivers/slimbus/qcom-ngd-ctrl.c 						   (port->ch.aux_fmt << 6);
ch                953 drivers/slimbus/qcom-ngd-ctrl.c 						port->ch.prrate |
ch                956 drivers/slimbus/qcom-ngd-ctrl.c 				wbuf[txn.msg->num_bytes++] =  port->ch.prrate;
ch                965 drivers/slimbus/qcom-ngd-ctrl.c 		wbuf[txn.msg->num_bytes++] = port->ch.id;
ch                290 drivers/slimbus/slimbus.h 	struct slim_channel ch;
ch                136 drivers/slimbus/stream.c 	wbuf[1] = port->ch.id;
ch                137 drivers/slimbus/stream.c 	port->ch.state = SLIM_CH_STATE_ASSOCIATED;
ch                153 drivers/slimbus/stream.c 	port->ch.state = SLIM_CH_STATE_DISCONNECTED;
ch                169 drivers/slimbus/stream.c 	wbuf[0] = port->ch.id;
ch                175 drivers/slimbus/stream.c 	port->ch.state = SLIM_CH_STATE_REMOVED;
ch                244 drivers/slimbus/stream.c 		port->ch.prrate = slim_get_prate_code(cfg->rate);
ch                245 drivers/slimbus/stream.c 		port->ch.id = cfg->chs[i];
ch                246 drivers/slimbus/stream.c 		port->ch.data_fmt = SLIM_CH_DATA_FMT_NOT_DEFINED;
ch                247 drivers/slimbus/stream.c 		port->ch.aux_fmt = SLIM_CH_AUX_FMT_NOT_APPLICABLE;
ch                248 drivers/slimbus/stream.c 		port->ch.state = SLIM_CH_STATE_ALLOCATED;
ch                272 drivers/slimbus/stream.c 	wbuf[0] = port->ch.id;
ch                273 drivers/slimbus/stream.c 	wbuf[1] = port->ch.prrate;
ch                279 drivers/slimbus/stream.c 	wbuf[2] = port->ch.data_fmt | (port->ch.aux_fmt << 4);
ch                281 drivers/slimbus/stream.c 	port->ch.state = SLIM_CH_STATE_CONTENT_DEFINED;
ch                307 drivers/slimbus/stream.c 	port->ch.seg_dist = slim_get_segdist_code(stream->ratem);
ch                309 drivers/slimbus/stream.c 	wbuf[0] = port->ch.id;
ch                310 drivers/slimbus/stream.c 	wbuf[1] = port->ch.seg_dist & 0xFF;
ch                311 drivers/slimbus/stream.c 	wbuf[2] = (stream->prot << 4) | ((port->ch.seg_dist & 0xF00) >> 8);
ch                317 drivers/slimbus/stream.c 	port->ch.state = SLIM_CH_STATE_DEFINED;
ch                333 drivers/slimbus/stream.c 	wbuf[0] = port->ch.id;
ch                334 drivers/slimbus/stream.c 	port->ch.state = SLIM_CH_STATE_ACTIVE;
ch                363 drivers/slimbus/stream.c 			stream->ports[i].ch.state = SLIM_CH_STATE_ACTIVE;
ch               1050 drivers/soc/fsl/dpio/qbman-portal.c 	__le16 ch;
ch               1062 drivers/soc/fsl/dpio/qbman-portal.c 	__le16 ch;
ch               1079 drivers/soc/fsl/dpio/qbman-portal.c 	p->ch = cpu_to_le16(channelid);
ch                 18 drivers/soc/qcom/apr.c 	struct rpmsg_endpoint *ch;
ch                 58 drivers/soc/qcom/apr.c 	ret = rpmsg_trysend(apr->ch, pkt, hdr->pkt_size);
ch                338 drivers/soc/qcom/apr.c 	apr->ch = rpdev->ept;
ch                171 drivers/soc/renesas/rcar-sysc.c 	struct rcar_sysc_ch ch;
ch                186 drivers/soc/renesas/rcar-sysc.c 	return rcar_sysc_power(&pd->ch, false);
ch                194 drivers/soc/renesas/rcar-sysc.c 	return rcar_sysc_power(&pd->ch, true);
ch                248 drivers/soc/renesas/rcar-sysc.c 	if (!rcar_sysc_power_is_off(&pd->ch)) {
ch                253 drivers/soc/renesas/rcar-sysc.c 	rcar_sysc_power(&pd->ch, true);
ch                390 drivers/soc/renesas/rcar-sysc.c 		pd->ch.chan_offs = area->chan_offs;
ch                391 drivers/soc/renesas/rcar-sysc.c 		pd->ch.chan_bit = area->chan_bit;
ch                392 drivers/soc/renesas/rcar-sysc.c 		pd->ch.isr_bit = area->isr_bit;
ch                449 drivers/soc/renesas/rcar-sysc.c 		if (!(pd->flags & PD_CPU) || pd->ch.chan_bit != idx)
ch                452 drivers/soc/renesas/rcar-sysc.c 		return rcar_sysc_power(&pd->ch, on);
ch                132 drivers/soc/ti/knav_dma.c #define chan_number(ch)	((ch->direction == DMA_MEM_TO_DEV) ? \
ch                133 drivers/soc/ti/knav_dma.c 			ch->channel : ch->flow)
ch                 39 drivers/soc/ti/knav_qmss.h #define ACC_INTD_OFFSET_COUNT(ch)	(0x0300 + 4 * (ch))
ch                 40 drivers/soc/ti/knav_qmss.h #define ACC_INTD_OFFSET_STATUS(ch)	(0x0200 + 4 * ((ch) / 32))
ch               1217 drivers/soundwire/cadence_master.c 			    u32 ch, u32 dir, struct sdw_cdns_pdi *pdi)
ch               1228 drivers/soundwire/cadence_master.c 	val |= ((1 << ch) - 1) << SDW_REG_SHIFT(CDNS_PDI_CONFIG_CHANNEL);
ch               1278 drivers/soundwire/cadence_master.c 			u32 ch, u32 dir)
ch               1283 drivers/soundwire/cadence_master.c 		pdis = cdns_get_num_pdi(cdns, stream->in, stream->num_in, ch);
ch               1285 drivers/soundwire/cadence_master.c 		pdis = cdns_get_num_pdi(cdns, stream->out, stream->num_out, ch);
ch               1289 drivers/soundwire/cadence_master.c 		pdis = cdns_get_num_pdi(cdns, stream->bd, stream->num_bd, ch);
ch               1306 drivers/soundwire/cadence_master.c 			  struct sdw_cdns_port *port, u32 ch, u32 dir)
ch               1324 drivers/soundwire/cadence_master.c 	pdi->h_ch_num = ch - 1;
ch               1326 drivers/soundwire/cadence_master.c 	pdi->ch_count = ch;
ch                 43 drivers/soundwire/cadence_master.h 	unsigned int ch;
ch                172 drivers/soundwire/cadence_master.h 			u32 ch, u32 dir);
ch                175 drivers/soundwire/cadence_master.h 			  struct sdw_cdns_port *port, u32 ch, u32 dir);
ch                177 drivers/soundwire/cadence_master.h 			    u32 ch, u32 dir, struct sdw_cdns_pdi *pdi);
ch                613 drivers/soundwire/intel.c 					      u32 ch, u32 dir, bool pcm)
ch                626 drivers/soundwire/intel.c 		port->ch = ch;
ch                636 drivers/soundwire/intel.c 		ret = sdw_cdns_alloc_stream(cdns, &cdns->pcm, port, ch, dir);
ch                641 drivers/soundwire/intel.c 		sdw_cdns_config_stream(cdns, port, ch, dir, port->pdi);
ch                646 drivers/soundwire/intel.c 		ret = sdw_cdns_alloc_stream(cdns, &cdns->pdm, port, ch, dir);
ch                681 drivers/soundwire/intel.c 	int ret, i, ch, dir;
ch                688 drivers/soundwire/intel.c 	ch = params_channels(params);
ch                696 drivers/soundwire/intel.c 		dma->nr_ports = sdw_cdns_get_stream(cdns, &cdns->pdm, ch, dir);
ch                699 drivers/soundwire/intel.c 		dma->nr_ports = sdw_cdns_get_stream(cdns, &cdns->pcm, ch, dir);
ch                712 drivers/soundwire/intel.c 		dma->port[i] = intel_alloc_port(sdw, ch, dir, pcm);
ch                728 drivers/soundwire/intel.c 	sconfig.ch_count = ch;
ch                748 drivers/soundwire/intel.c 		pconfig[i].ch_mask = (1 << ch) - 1;
ch                235 drivers/soundwire/mipi_disco.c 			dpn[i].ch = devm_kcalloc(&slave->dev, dpn[i].num_ch,
ch                236 drivers/soundwire/mipi_disco.c 						 sizeof(*dpn[i].ch),
ch                238 drivers/soundwire/mipi_disco.c 			if (!dpn[i].ch)
ch                243 drivers/soundwire/mipi_disco.c 					dpn[i].ch, dpn[i].num_ch);
ch                124 drivers/spi/spi-s3c64xx.c 	struct dma_chan *ch;
ch                283 drivers/spi/spi-s3c64xx.c 		dmaengine_slave_config(dma->ch, &config);
ch                291 drivers/spi/spi-s3c64xx.c 		dmaengine_slave_config(dma->ch, &config);
ch                294 drivers/spi/spi-s3c64xx.c 	desc = dmaengine_prep_slave_sg(dma->ch, sgt->sgl, sgt->nents,
ch                301 drivers/spi/spi-s3c64xx.c 	dma_async_issue_pending(dma->ch);
ch                336 drivers/spi/spi-s3c64xx.c 	spi->dma_rx = sdd->rx_dma.ch;
ch                337 drivers/spi/spi-s3c64xx.c 	spi->dma_tx = sdd->tx_dma.ch;
ch                661 drivers/spi/spi-s3c64xx.c 	    sdd->rx_dma.ch && sdd->tx_dma.ch) {
ch                703 drivers/spi/spi-s3c64xx.c 					dmaengine_terminate_all(sdd->tx_dma.ch);
ch                705 drivers/spi/spi-s3c64xx.c 					dmaengine_terminate_all(sdd->rx_dma.ch);
ch               1157 drivers/spi/spi-s3c64xx.c 		sdd->rx_dma.ch = dma_request_slave_channel_reason(&pdev->dev,
ch               1159 drivers/spi/spi-s3c64xx.c 		if (IS_ERR(sdd->rx_dma.ch)) {
ch               1161 drivers/spi/spi-s3c64xx.c 			ret = PTR_ERR(sdd->rx_dma.ch);
ch               1164 drivers/spi/spi-s3c64xx.c 		sdd->tx_dma.ch = dma_request_slave_channel_reason(&pdev->dev,
ch               1166 drivers/spi/spi-s3c64xx.c 		if (IS_ERR(sdd->tx_dma.ch)) {
ch               1168 drivers/spi/spi-s3c64xx.c 			ret = PTR_ERR(sdd->tx_dma.ch);
ch               1219 drivers/spi/spi-s3c64xx.c 		dma_release_channel(sdd->tx_dma.ch);
ch               1222 drivers/spi/spi-s3c64xx.c 		dma_release_channel(sdd->rx_dma.ch);
ch               1245 drivers/spi/spi-s3c64xx.c 		dma_release_channel(sdd->rx_dma.ch);
ch               1246 drivers/spi/spi-s3c64xx.c 		dma_release_channel(sdd->tx_dma.ch);
ch                179 drivers/spi/spi-topcliff-pch.c 	int ch;
ch                866 drivers/spi/spi-topcliff-pch.c 	param->chan_id = data->ch * 2; /* Tx = 0, 2 */;
ch                881 drivers/spi/spi-topcliff-pch.c 	param->chan_id = data->ch * 2 + 1; /* Rx = Tx + 1 */;
ch               1364 drivers/spi/spi-topcliff-pch.c 	data->ch = plat_dev->id;
ch                 37 drivers/staging/board/armadillo800eva.c 	.ch[0] = {
ch                245 drivers/staging/comedi/drivers/amplc_dio200_common.c 	unsigned int n, ch;
ch                249 drivers/staging/comedi/drivers/amplc_dio200_common.c 		ch = CR_CHAN(cmd->chanlist[n]);
ch                250 drivers/staging/comedi/drivers/amplc_dio200_common.c 		if (triggered & (1U << ch))
ch                838 drivers/staging/comedi/drivers/amplc_pci224.c 	unsigned int ch;
ch                850 drivers/staging/comedi/drivers/amplc_pci224.c 		ch = CR_CHAN(cmd->chanlist[i]);
ch                851 drivers/staging/comedi/drivers/amplc_pci224.c 		devpriv->ao_enab |= 1U << ch;
ch                854 drivers/staging/comedi/drivers/amplc_pci224.c 			if (CR_CHAN(cmd->chanlist[j]) < ch)
ch                 24 drivers/staging/exfat/exfat_nls.c static int convert_ch_to_uni(struct nls_table *nls, u16 *uni, u8 *ch,
ch                 31 drivers/staging/exfat/exfat_nls.c 	if (ch[0] < 0x80) {
ch                 32 drivers/staging/exfat/exfat_nls.c 		*uni = (u16)ch[0];
ch                 36 drivers/staging/exfat/exfat_nls.c 	len = nls->char2uni(ch, NLS_MAX_CHARSET_SIZE, uni);
ch                 52 drivers/staging/exfat/exfat_nls.c static int convert_uni_to_ch(struct nls_table *nls, u8 *ch, u16 uni,
ch                 57 drivers/staging/exfat/exfat_nls.c 	ch[0] = 0x0;
ch                 60 drivers/staging/exfat/exfat_nls.c 		ch[0] = (u8)uni;
ch                 64 drivers/staging/exfat/exfat_nls.c 	len = nls->uni2char(uni, ch, NLS_MAX_CHARSET_SIZE);
ch                 70 drivers/staging/exfat/exfat_nls.c 		ch[0] = '_';
ch                102 drivers/staging/fbtft/fb_tls8204.c 			u8 ch = 0;
ch                105 drivers/staging/fbtft/fb_tls8204.c 				ch >>= 1;
ch                107 drivers/staging/fbtft/fb_tls8204.c 					ch |= 0x80;
ch                109 drivers/staging/fbtft/fb_tls8204.c 			*buf++ = ch;
ch                801 drivers/staging/fwserial/fwserial.c static void fwtty_write_xchar(struct fwtty_port *port, char ch)
ch                807 drivers/staging/fwserial/fwserial.c 	fwtty_dbg(port, "%02x\n", ch);
ch                813 drivers/staging/fwserial/fwserial.c 				      peer->fifo_addr, &ch, sizeof(ch),
ch               1144 drivers/staging/fwserial/fwserial.c static void fwtty_send_xchar(struct tty_struct *tty, char ch)
ch               1148 drivers/staging/fwserial/fwserial.c 	fwtty_dbg(port, "%02x\n", ch);
ch               1150 drivers/staging/fwserial/fwserial.c 	fwtty_write_xchar(port, ch);
ch                422 drivers/staging/iio/adc/ad7280a.c 	unsigned int devaddr, ch;
ch                429 drivers/staging/iio/adc/ad7280a.c 	ch = this_attr->address & 0xFF;
ch                433 drivers/staging/iio/adc/ad7280a.c 		st->cb_mask[devaddr] |= 1 << (ch + 2);
ch                435 drivers/staging/iio/adc/ad7280a.c 		st->cb_mask[devaddr] &= ~(1 << (ch + 2));
ch                559 drivers/staging/iio/adc/ad7280a.c 	int addr, ch, i;
ch                562 drivers/staging/iio/adc/ad7280a.c 	for (ch = AD7280A_CELL_VOLTAGE_1; ch <= AD7280A_AUX_ADC_6; ch++) {
ch                565 drivers/staging/iio/adc/ad7280a.c 		if (ch < AD7280A_AUX_ADC_1) {
ch                566 drivers/staging/iio/adc/ad7280a.c 			i = AD7280A_CALC_VOLTAGE_CHAN_NUM(dev, ch);
ch                569 drivers/staging/iio/adc/ad7280a.c 			i = AD7280A_CALC_TEMP_CHAN_NUM(dev, ch);
ch                573 drivers/staging/iio/adc/ad7280a.c 		addr = ad7280a_devaddr(dev) << 8 | ch;
ch                633 drivers/staging/iio/adc/ad7280a.c 	int addr, ch, i, ret;
ch                637 drivers/staging/iio/adc/ad7280a.c 	for (ch = AD7280A_CELL_VOLTAGE_1; ch <= AD7280A_CELL_VOLTAGE_6; ch++) {
ch                639 drivers/staging/iio/adc/ad7280a.c 		addr = ad7280a_devaddr(dev) << 8 | ch;
ch                640 drivers/staging/iio/adc/ad7280a.c 		i = dev * AD7280A_CELLS_PER_DEV + ch;
ch                650 drivers/staging/iio/adc/ad7280a.c 		addr = ad7280a_devaddr(dev) << 8 | (AD7280A_CB1_TIMER + ch);
ch               1088 drivers/staging/isdn/gigaset/capi.c 	unsigned ch;
ch               1095 drivers/staging/isdn/gigaset/capi.c 			for (ch = 0; ch < cs->channels; ch++)
ch               1096 drivers/staging/isdn/gigaset/capi.c 				remove_appl_from_channel(&cs->bcs[ch], ap);
ch                 98 drivers/staging/isdn/hysdn/hysdn_procconf.c 	unsigned char ch, *cp;
ch                107 drivers/staging/isdn/hysdn/hysdn_procconf.c 		if (copy_from_user(&ch, buf, 1))	/* get first char for detect */
ch                110 drivers/staging/isdn/hysdn/hysdn_procconf.c 		if (ch == 0x1A) {
ch                198 drivers/staging/media/imx/imx-ic-prpencvf.c static void prp_vb2_buf_done(struct prp_priv *priv, struct ipuv3_channel *ch)
ch                228 drivers/staging/media/imx/imx-ic-prpencvf.c 	if (ipu_idmac_buffer_is_ready(ch, priv->ipu_buf_num))
ch                229 drivers/staging/media/imx/imx-ic-prpencvf.c 		ipu_idmac_clear_buffer(ch, priv->ipu_buf_num);
ch                231 drivers/staging/media/imx/imx-ic-prpencvf.c 	if (priv->interweave_swap && ch == priv->out_ch)
ch                234 drivers/staging/media/imx/imx-ic-prpencvf.c 	ipu_cpmem_set_buffer(ch, priv->ipu_buf_num, phys);
ch                137 drivers/staging/media/imx/imx-media-vdic.c 	struct ipuv3_channel *ch;
ch                149 drivers/staging/media/imx/imx-media-vdic.c 		ch = ipu_idmac_get(priv->ipu, IPUV3_CHANNEL_MEM_VDI_PREV);
ch                150 drivers/staging/media/imx/imx-media-vdic.c 		if (IS_ERR(ch)) {
ch                152 drivers/staging/media/imx/imx-media-vdic.c 			ret = PTR_ERR(ch);
ch                155 drivers/staging/media/imx/imx-media-vdic.c 		priv->vdi_in_ch_p = ch;
ch                157 drivers/staging/media/imx/imx-media-vdic.c 		ch = ipu_idmac_get(priv->ipu, IPUV3_CHANNEL_MEM_VDI_CUR);
ch                158 drivers/staging/media/imx/imx-media-vdic.c 		if (IS_ERR(ch)) {
ch                160 drivers/staging/media/imx/imx-media-vdic.c 			ret = PTR_ERR(ch);
ch                163 drivers/staging/media/imx/imx-media-vdic.c 		priv->vdi_in_ch = ch;
ch                165 drivers/staging/media/imx/imx-media-vdic.c 		ch = ipu_idmac_get(priv->ipu, IPUV3_CHANNEL_MEM_VDI_NEXT);
ch                166 drivers/staging/media/imx/imx-media-vdic.c 		if (IS_ERR(ch)) {
ch                168 drivers/staging/media/imx/imx-media-vdic.c 			ret = PTR_ERR(ch);
ch                171 drivers/staging/media/imx/imx-media-vdic.c 		priv->vdi_in_ch_n = ch;
ch                 64 drivers/staging/most/dim2/dim2.c 	struct dim_channel ch;
ch                166 drivers/staging/most/dim2/dim2.c 	if (!dim_get_channel_state(&hdm_ch->ch, &st)->ready) {
ch                174 drivers/staging/most/dim2/dim2.c 	if (dim_dbr_space(&hdm_ch->ch) < buf_size) {
ch                180 drivers/staging/most/dim2/dim2.c 	if (!dim_enqueue_buffer(&hdm_ch->ch, mbo->bus_address, buf_size)) {
ch                265 drivers/staging/most/dim2/dim2.c 	done_buffers = dim_get_channel_state(&hdm_ch->ch, &st)->done_buffers;
ch                271 drivers/staging/most/dim2/dim2.c 	if (!dim_detach_buffers(&hdm_ch->ch, done_buffers)) {
ch                329 drivers/staging/most/dim2/dim2.c 			buffer[idx++] = &dev->hch[ch_idx].ch;
ch                369 drivers/staging/most/dim2/dim2.c 		dim_service_channel(&dev->hch[ch_idx].ch);
ch                461 drivers/staging/most/dim2/dim2.c 	hdm_ch->ch.dbr_size = ccfg->dbr_size;
ch                475 drivers/staging/most/dim2/dim2.c 		hal_ret = dim_init_control(&hdm_ch->ch, is_tx, ch_addr,
ch                489 drivers/staging/most/dim2/dim2.c 		hal_ret = dim_init_async(&hdm_ch->ch, is_tx, ch_addr,
ch                504 drivers/staging/most/dim2/dim2.c 		hal_ret = dim_init_isoc(&hdm_ch->ch, is_tx, ch_addr, sub_size);
ch                518 drivers/staging/most/dim2/dim2.c 		hal_ret = dim_init_sync(&hdm_ch->ch, is_tx, ch_addr, sub_size);
ch                543 drivers/staging/most/dim2/dim2.c 	ccfg->dbr_size = hdm_ch->ch.dbr_size;
ch                646 drivers/staging/most/dim2/dim2.c 	hal_ret = dim_destroy_channel(&hdm_ch->ch);
ch                400 drivers/staging/most/dim2/hal.c u16 dim_dbr_space(struct dim_channel *ch)
ch                405 drivers/staging/most/dim2/hal.c 	if (ch->addr != dbr->ch_addr)
ch                408 drivers/staging/most/dim2/hal.c 	cur_rpc = dim2_rpc(ch->addr);
ch                599 drivers/staging/most/dim2/hal.c static void isoc_init(struct dim_channel *ch, u8 ch_addr, u16 packet_length)
ch                601 drivers/staging/most/dim2/hal.c 	state_init(&ch->state);
ch                603 drivers/staging/most/dim2/hal.c 	ch->addr = ch_addr;
ch                605 drivers/staging/most/dim2/hal.c 	ch->packet_length = packet_length;
ch                606 drivers/staging/most/dim2/hal.c 	ch->bytes_per_frame = 0;
ch                607 drivers/staging/most/dim2/hal.c 	ch->done_sw_buffers_number = 0;
ch                610 drivers/staging/most/dim2/hal.c static void sync_init(struct dim_channel *ch, u8 ch_addr, u16 bytes_per_frame)
ch                612 drivers/staging/most/dim2/hal.c 	state_init(&ch->state);
ch                614 drivers/staging/most/dim2/hal.c 	ch->addr = ch_addr;
ch                616 drivers/staging/most/dim2/hal.c 	ch->packet_length = 0;
ch                617 drivers/staging/most/dim2/hal.c 	ch->bytes_per_frame = bytes_per_frame;
ch                618 drivers/staging/most/dim2/hal.c 	ch->done_sw_buffers_number = 0;
ch                621 drivers/staging/most/dim2/hal.c static void channel_init(struct dim_channel *ch, u8 ch_addr)
ch                623 drivers/staging/most/dim2/hal.c 	state_init(&ch->state);
ch                625 drivers/staging/most/dim2/hal.c 	ch->addr = ch_addr;
ch                627 drivers/staging/most/dim2/hal.c 	ch->packet_length = 0;
ch                628 drivers/staging/most/dim2/hal.c 	ch->bytes_per_frame = 0;
ch                629 drivers/staging/most/dim2/hal.c 	ch->done_sw_buffers_number = 0;
ch                633 drivers/staging/most/dim2/hal.c static bool channel_service_interrupt(struct dim_channel *ch)
ch                635 drivers/staging/most/dim2/hal.c 	struct int_ch_state *const state = &ch->state;
ch                637 drivers/staging/most/dim2/hal.c 	if (!service_channel(ch->addr, state->idx2))
ch                645 drivers/staging/most/dim2/hal.c static bool channel_start(struct dim_channel *ch, u32 buf_addr, u16 buf_size)
ch                647 drivers/staging/most/dim2/hal.c 	struct int_ch_state *const state = &ch->state;
ch                652 drivers/staging/most/dim2/hal.c 	if (ch->packet_length == 0 && ch->bytes_per_frame == 0 &&
ch                657 drivers/staging/most/dim2/hal.c 	if (ch->packet_length &&
ch                658 drivers/staging/most/dim2/hal.c 	    buf_size != norm_isoc_buffer_size(buf_size, ch->packet_length))
ch                662 drivers/staging/most/dim2/hal.c 	if (ch->bytes_per_frame &&
ch                663 drivers/staging/most/dim2/hal.c 	    buf_size != norm_sync_buffer_size(buf_size, ch->bytes_per_frame))
ch                672 drivers/staging/most/dim2/hal.c 	if (ch->addr == g.atx_dbr.ch_addr)
ch                675 drivers/staging/most/dim2/hal.c 	if (ch->packet_length || ch->bytes_per_frame)
ch                676 drivers/staging/most/dim2/hal.c 		dim2_start_isoc_sync(ch->addr, state->idx1, buf_addr, buf_size);
ch                678 drivers/staging/most/dim2/hal.c 		dim2_start_ctrl_async(ch->addr, state->idx1, buf_addr,
ch                685 drivers/staging/most/dim2/hal.c static u8 channel_service(struct dim_channel *ch)
ch                687 drivers/staging/most/dim2/hal.c 	struct int_ch_state *const state = &ch->state;
ch                695 drivers/staging/most/dim2/hal.c 		ch->done_sw_buffers_number++;
ch                701 drivers/staging/most/dim2/hal.c static bool channel_detach_buffers(struct dim_channel *ch, u16 buffers_number)
ch                703 drivers/staging/most/dim2/hal.c 	if (buffers_number > ch->done_sw_buffers_number)
ch                706 drivers/staging/most/dim2/hal.c 	ch->done_sw_buffers_number -= buffers_number;
ch                752 drivers/staging/most/dim2/hal.c static u8 init_ctrl_async(struct dim_channel *ch, u8 type, u8 is_tx,
ch                755 drivers/staging/most/dim2/hal.c 	if (!g.dim_is_initialized || !ch)
ch                761 drivers/staging/most/dim2/hal.c 	if (!ch->dbr_size)
ch                762 drivers/staging/most/dim2/hal.c 		ch->dbr_size = ROUND_UP_TO(hw_buffer_size, DBR_BLOCK_SIZE);
ch                763 drivers/staging/most/dim2/hal.c 	ch->dbr_addr = alloc_dbr(ch->dbr_size);
ch                764 drivers/staging/most/dim2/hal.c 	if (ch->dbr_addr >= DBR_SIZE)
ch                767 drivers/staging/most/dim2/hal.c 	channel_init(ch, ch_address / 2);
ch                769 drivers/staging/most/dim2/hal.c 	dim2_configure_channel(ch->addr, type, is_tx,
ch                770 drivers/staging/most/dim2/hal.c 			       ch->dbr_addr, ch->dbr_size, 0);
ch                809 drivers/staging/most/dim2/hal.c u8 dim_init_control(struct dim_channel *ch, u8 is_tx, u16 ch_address,
ch                812 drivers/staging/most/dim2/hal.c 	return init_ctrl_async(ch, CAT_CT_VAL_CONTROL, is_tx, ch_address,
ch                816 drivers/staging/most/dim2/hal.c u8 dim_init_async(struct dim_channel *ch, u8 is_tx, u16 ch_address,
ch                819 drivers/staging/most/dim2/hal.c 	u8 ret = init_ctrl_async(ch, CAT_CT_VAL_ASYNC, is_tx, ch_address,
ch                823 drivers/staging/most/dim2/hal.c 		g.atx_dbr.ch_addr = ch->addr;
ch                824 drivers/staging/most/dim2/hal.c 		dbrcnt_init(ch->addr, ch->dbr_size);
ch                831 drivers/staging/most/dim2/hal.c u8 dim_init_isoc(struct dim_channel *ch, u8 is_tx, u16 ch_address,
ch                834 drivers/staging/most/dim2/hal.c 	if (!g.dim_is_initialized || !ch)
ch                843 drivers/staging/most/dim2/hal.c 	if (!ch->dbr_size)
ch                844 drivers/staging/most/dim2/hal.c 		ch->dbr_size = packet_length * ISOC_DBR_FACTOR;
ch                845 drivers/staging/most/dim2/hal.c 	ch->dbr_addr = alloc_dbr(ch->dbr_size);
ch                846 drivers/staging/most/dim2/hal.c 	if (ch->dbr_addr >= DBR_SIZE)
ch                849 drivers/staging/most/dim2/hal.c 	isoc_init(ch, ch_address / 2, packet_length);
ch                851 drivers/staging/most/dim2/hal.c 	dim2_configure_channel(ch->addr, CAT_CT_VAL_ISOC, is_tx, ch->dbr_addr,
ch                852 drivers/staging/most/dim2/hal.c 			       ch->dbr_size, packet_length);
ch                857 drivers/staging/most/dim2/hal.c u8 dim_init_sync(struct dim_channel *ch, u8 is_tx, u16 ch_address,
ch                862 drivers/staging/most/dim2/hal.c 	if (!g.dim_is_initialized || !ch)
ch                871 drivers/staging/most/dim2/hal.c 	if (!ch->dbr_size)
ch                872 drivers/staging/most/dim2/hal.c 		ch->dbr_size = bytes_per_frame << bd_factor;
ch                873 drivers/staging/most/dim2/hal.c 	ch->dbr_addr = alloc_dbr(ch->dbr_size);
ch                874 drivers/staging/most/dim2/hal.c 	if (ch->dbr_addr >= DBR_SIZE)
ch                877 drivers/staging/most/dim2/hal.c 	sync_init(ch, ch_address / 2, bytes_per_frame);
ch                879 drivers/staging/most/dim2/hal.c 	dim2_clear_dbr(ch->dbr_addr, ch->dbr_size);
ch                880 drivers/staging/most/dim2/hal.c 	dim2_configure_channel(ch->addr, CAT_CT_VAL_SYNC, is_tx,
ch                881 drivers/staging/most/dim2/hal.c 			       ch->dbr_addr, ch->dbr_size, 0);
ch                886 drivers/staging/most/dim2/hal.c u8 dim_destroy_channel(struct dim_channel *ch)
ch                888 drivers/staging/most/dim2/hal.c 	if (!g.dim_is_initialized || !ch)
ch                891 drivers/staging/most/dim2/hal.c 	if (ch->addr == g.atx_dbr.ch_addr) {
ch                896 drivers/staging/most/dim2/hal.c 	dim2_clear_channel(ch->addr);
ch                897 drivers/staging/most/dim2/hal.c 	if (ch->dbr_addr < DBR_SIZE)
ch                898 drivers/staging/most/dim2/hal.c 		free_dbr(ch->dbr_addr, ch->dbr_size);
ch                899 drivers/staging/most/dim2/hal.c 	ch->dbr_addr = DBR_SIZE;
ch                927 drivers/staging/most/dim2/hal.c 		struct dim_channel *const *ch = channels;
ch                931 drivers/staging/most/dim2/hal.c 		while (*ch) {
ch                932 drivers/staging/most/dim2/hal.c 			state_changed |= channel_service_interrupt(*ch);
ch                933 drivers/staging/most/dim2/hal.c 			++ch;
ch                938 drivers/staging/most/dim2/hal.c u8 dim_service_channel(struct dim_channel *ch)
ch                940 drivers/staging/most/dim2/hal.c 	if (!g.dim_is_initialized || !ch)
ch                943 drivers/staging/most/dim2/hal.c 	return channel_service(ch);
ch                946 drivers/staging/most/dim2/hal.c struct dim_ch_state_t *dim_get_channel_state(struct dim_channel *ch,
ch                949 drivers/staging/most/dim2/hal.c 	if (!ch || !state_ptr)
ch                952 drivers/staging/most/dim2/hal.c 	state_ptr->ready = ch->state.level < 2;
ch                953 drivers/staging/most/dim2/hal.c 	state_ptr->done_buffers = ch->done_sw_buffers_number;
ch                958 drivers/staging/most/dim2/hal.c bool dim_enqueue_buffer(struct dim_channel *ch, u32 buffer_addr,
ch                961 drivers/staging/most/dim2/hal.c 	if (!ch)
ch                965 drivers/staging/most/dim2/hal.c 	return channel_start(ch, buffer_addr, buffer_size);
ch                968 drivers/staging/most/dim2/hal.c bool dim_detach_buffers(struct dim_channel *ch, u16 buffers_number)
ch                970 drivers/staging/most/dim2/hal.c 	if (!ch)
ch                974 drivers/staging/most/dim2/hal.c 	return channel_detach_buffers(ch, buffers_number);
ch                 70 drivers/staging/most/dim2/hal.h u8 dim_init_control(struct dim_channel *ch, u8 is_tx, u16 ch_address,
ch                 73 drivers/staging/most/dim2/hal.h u8 dim_init_async(struct dim_channel *ch, u8 is_tx, u16 ch_address,
ch                 76 drivers/staging/most/dim2/hal.h u8 dim_init_isoc(struct dim_channel *ch, u8 is_tx, u16 ch_address,
ch                 79 drivers/staging/most/dim2/hal.h u8 dim_init_sync(struct dim_channel *ch, u8 is_tx, u16 ch_address,
ch                 82 drivers/staging/most/dim2/hal.h u8 dim_destroy_channel(struct dim_channel *ch);
ch                 88 drivers/staging/most/dim2/hal.h u8 dim_service_channel(struct dim_channel *ch);
ch                 90 drivers/staging/most/dim2/hal.h struct dim_ch_state_t *dim_get_channel_state(struct dim_channel *ch,
ch                 93 drivers/staging/most/dim2/hal.h u16 dim_dbr_space(struct dim_channel *ch);
ch                 95 drivers/staging/most/dim2/hal.h bool dim_enqueue_buffer(struct dim_channel *ch, u32 buffer_addr,
ch                 98 drivers/staging/most/dim2/hal.h bool dim_detach_buffers(struct dim_channel *ch, u16 buffers_number);
ch                310 drivers/staging/most/net/net.c 	struct net_dev_channel *ch;
ch                339 drivers/staging/most/net/net.c 		ch = ccfg->direction == MOST_CH_TX ? &nd->tx : &nd->rx;
ch                341 drivers/staging/most/net/net.c 		ch = ccfg->direction == MOST_CH_TX ? &nd->tx : &nd->rx;
ch                342 drivers/staging/most/net/net.c 		if (ch->linked) {
ch                354 drivers/staging/most/net/net.c 	ch->ch_id = channel_idx;
ch                355 drivers/staging/most/net/net.c 	ch->linked = true;
ch                366 drivers/staging/most/net/net.c 	struct net_dev_channel *ch;
ch                378 drivers/staging/most/net/net.c 		ch = &nd->rx;
ch                380 drivers/staging/most/net/net.c 		ch = &nd->tx;
ch                388 drivers/staging/most/net/net.c 		ch->linked = false;
ch                232 drivers/staging/rtl8188eu/core/rtw_cmd.c 	struct rtw_ieee80211_channel *ch, int ch_num)
ch                274 drivers/staging/rtl8188eu/core/rtw_cmd.c 	if (ch) {
ch                278 drivers/staging/rtl8188eu/core/rtw_cmd.c 			if (ch[i].hw_value && !(ch[i].flags & RTW_IEEE80211_CHAN_DISABLED)) {
ch                279 drivers/staging/rtl8188eu/core/rtw_cmd.c 				memcpy(&psurveyPara->ch[i], &ch[i], sizeof(struct rtw_ieee80211_channel));
ch                137 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c int rtw_ch_set_search_ch(struct rt_channel_info *ch_set, const u32 ch)
ch                142 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 		if (ch == ch_set[i].ChannelNum)
ch               1910 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 	struct rtw_ieee80211_channel *ch;
ch               1913 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 		ch = &pmlmeext->sitesurvey_res.ch[pmlmeext->sitesurvey_res.channel_idx];
ch               1914 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 		survey_channel = ch->hw_value;
ch               1915 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 		ScanType = (ch->flags & RTW_IEEE80211_CHAN_PASSIVE_SCAN) ? SCAN_PASSIVE : SCAN_ACTIVE;
ch               3946 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 		u8 ch;
ch               3950 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 		for (ch = o->min_chan; ch <= o->max_chan; ch += o->inc) {
ch               3951 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 			if (!has_channel(channel_set, chanset_size, ch))
ch               3967 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 			reg->channel[reg->channels] = ch;
ch               5148 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 			, pmlmeext->sitesurvey_res.ch, RTW_CHANNEL_SCAN_AMOUNT
ch               5149 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 			, pparm->ch, pparm->ch_num
ch               5458 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 		set_ch_parm->ch, set_ch_parm->bw, set_ch_parm->ch_offset);
ch               5460 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 	pmlmeext->cur_channel = set_ch_parm->ch;
ch               5464 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c 	set_channel_bwmode(padapter, set_ch_parm->ch, set_ch_parm->ch_offset, set_ch_parm->bw);
ch                283 drivers/staging/rtl8188eu/core/rtw_wlan_util.c inline void rtw_set_oper_ch(struct adapter *adapter, u8 ch)
ch                285 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 	adapter->mlmeextpriv.oper_channel = ch;
ch                419 drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c 	u8 ch, group;
ch                427 drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c 	for (ch = 0; ch < CHANNEL_MAX_NUMBER; ch++) {
ch                428 drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c 		Hal_GetChnlGroup88E(ch, &group);
ch                429 drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c 		pHalData->Index24G_CCK_Base[0][ch] = pwrInfo24G.IndexCCK_Base[0][group];
ch                430 drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c 		if (ch == 14)
ch                431 drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c 			pHalData->Index24G_BW40_Base[0][ch] = pwrInfo24G.IndexBW40_Base[0][4];
ch                433 drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c 			pHalData->Index24G_BW40_Base[0][ch] = pwrInfo24G.IndexBW40_Base[0][group];
ch                435 drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c 		DBG_88E("======= Path %d, Channel %d =======\n", 0, ch);
ch                436 drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c 		DBG_88E("Index24G_CCK_Base[%d][%d] = 0x%x\n", 0, ch, pHalData->Index24G_CCK_Base[0][ch]);
ch                437 drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c 		DBG_88E("Index24G_BW40_Base[%d][%d] = 0x%x\n", 0, ch, pHalData->Index24G_BW40_Base[0][ch]);
ch                124 drivers/staging/rtl8188eu/include/rtw_cmd.h 	struct rtw_ieee80211_channel ch[RTW_CHANNEL_SCAN_AMOUNT];
ch                273 drivers/staging/rtl8188eu/include/rtw_cmd.h 	u8 ch;
ch                301 drivers/staging/rtl8188eu/include/rtw_cmd.h 		      int ssid_num, struct rtw_ieee80211_channel *ch,
ch                246 drivers/staging/rtl8188eu/include/rtw_mlme_ext.h 	struct rtw_ieee80211_channel ch[RTW_CHANNEL_SCAN_AMOUNT];
ch                360 drivers/staging/rtl8188eu/include/rtw_mlme_ext.h int rtw_ch_set_search_ch(struct rt_channel_info *ch_set, const u32 ch);
ch                465 drivers/staging/rtl8188eu/include/rtw_mlme_ext.h void rtw_set_oper_ch(struct adapter *adapter, u8 ch);
ch                131 drivers/staging/rtl8188eu/include/rtw_rf.h u32 rtw_ch2freq(u32 ch);
ch                296 drivers/staging/rtl8192e/rtl8192e/rtl_core.c static void _rtl92e_set_chan(struct net_device *dev, short ch)
ch                300 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	RT_TRACE(COMP_CH, "=====>%s()====ch:%d\n", __func__, ch);
ch                304 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	priv->chan = ch;
ch                372 drivers/staging/rtl8192e/rtl8192e/rtl_core.h 	u8 (*rf_set_chan)(struct net_device *dev, u8 ch);
ch               1732 drivers/staging/rtl8192e/rtllib.h 	void (*set_chan)(struct net_device *dev, short ch);
ch                507 drivers/staging/rtl8192e/rtllib_softmac.c 	short ch = 0;
ch                517 drivers/staging/rtl8192e/rtllib_softmac.c 			ch++;
ch                518 drivers/staging/rtl8192e/rtllib_softmac.c 			if (ch > MAX_CHANNEL_NUMBER)
ch                520 drivers/staging/rtl8192e/rtllib_softmac.c 		} while (!ieee->active_channel_map[ch]);
ch                549 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->set_chan(ieee->dev, ch);
ch                550 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->active_channel_map[ch] == 1)
ch               2903 drivers/staging/rtl8192e/rtllib_softmac.c 	short ch = 0;
ch               2915 drivers/staging/rtl8192e/rtllib_softmac.c 			ch++;
ch               2916 drivers/staging/rtl8192e/rtllib_softmac.c 			if (ch > MAX_CHANNEL_NUMBER)
ch               2918 drivers/staging/rtl8192e/rtllib_softmac.c 		} while (!ieee->active_channel_map[ch]);
ch               2919 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->current_network.channel = ch;
ch               1950 drivers/staging/rtl8192u/ieee80211/ieee80211.h 	void (*set_chan)(struct net_device *dev, short ch);
ch                413 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	short ch = 0;
ch                421 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ch++;
ch                422 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			if (ch > MAX_CHANNEL_NUMBER)
ch                424 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		} while (!channel_map[ch]);
ch                447 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->set_chan(ieee->dev, ch);
ch                448 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (channel_map[ch] == 1)
ch               2484 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	short ch = 0;
ch               2494 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ch++;
ch               2495 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			if (ch > MAX_CHANNEL_NUMBER)
ch               2497 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		} while (!GET_DOT11D_INFO(ieee)->channel_map[ch]);
ch               2498 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->current_network.channel = ch;
ch                858 drivers/staging/rtl8192u/r8192U.h 	u8 (*rf_set_chan)(struct net_device *dev, u8 ch);
ch               1112 drivers/staging/rtl8192u/r8192U.h void rtl8192_set_chan(struct net_device *dev, short ch);
ch                692 drivers/staging/rtl8192u/r8192U_core.c void rtl8192_set_chan(struct net_device *dev, short ch)
ch                696 drivers/staging/rtl8192u/r8192U_core.c 	RT_TRACE(COMP_CH, "=====>%s()====ch:%d\n", __func__, ch);
ch                697 drivers/staging/rtl8192u/r8192U_core.c 	priv->chan = ch;
ch                578 drivers/staging/rtl8723bs/core/rtw_cmd.c 	struct rtw_ieee80211_channel *ch, int ch_num)
ch                624 drivers/staging/rtl8723bs/core/rtw_cmd.c 	if (ch) {
ch                627 drivers/staging/rtl8723bs/core/rtw_cmd.c 			if (ch[i].hw_value && !(ch[i].flags & RTW_IEEE80211_CHAN_DISABLED)) {
ch                628 drivers/staging/rtl8723bs/core/rtw_cmd.c 				memcpy(&psurveyPara->ch[i], &ch[i], sizeof(struct rtw_ieee80211_channel));
ch                632 drivers/staging/rtl8723bs/core/rtw_cmd.c 					psurveyPara->ch[i].hw_value);
ch                219 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c int rtw_ch_set_search_ch(RT_CHANNEL_INFO *ch_set, const u32 ch)
ch                223 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 		if (ch == ch_set[i].ChannelNum)
ch                239 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c bool rtw_mlme_band_check(struct adapter *adapter, const u32 ch)
ch                242 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 		|| (adapter->setband == GHZ_24 && ch < 35) /* 2.4G only */
ch                243 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 		|| (adapter->setband == GHZ_50 && ch > 35) /* 5G only */
ch                365 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 		u8 ch;
ch                369 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 		for (ch = o->min_chan; ch <= o->max_chan; ch += o->inc) {
ch                370 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 			if (!has_channel(channel_set, chanset_size, ch))
ch                386 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 			reg->channel[reg->channels] = ch;
ch               2816 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 			   u8 *da, u8 ch, bool append_wps, bool wait_ack)
ch               2886 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	if (ch)
ch               2887 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 		pframe = rtw_set_ie(pframe, _DSSET_IE_, 1, &ch, &pattrib->pktlen);
ch               2918 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c int issue_probereq_ex(struct adapter *padapter, struct ndis_802_11_ssid *pssid, u8 *da, u8 ch, bool append_wps,
ch               2925 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 		ret = _issue_probereq(padapter, pssid, da, ch, append_wps, wait_ms > 0?true:false);
ch               4284 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 		struct rtw_ieee80211_channel *ch;
ch               4286 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 			ch = &pmlmeext->sitesurvey_res.ch[pmlmeext->sitesurvey_res.channel_idx];
ch               4287 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 			survey_channel = ch->hw_value;
ch               4288 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 			ScanType = (ch->flags & RTW_IEEE80211_CHAN_PASSIVE_SCAN) ? SCAN_PASSIVE : SCAN_ACTIVE;
ch               6119 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	u8 ch, bw, offset;
ch               6229 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	if (rtw_chk_start_clnt_join(padapter, &ch, &bw, &offset) == _FAIL) {
ch               6246 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	set_channel_bwmode(padapter, ch, offset, bw);
ch               6371 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 			, pmlmeext->sitesurvey_res.ch, RTW_CHANNEL_SCAN_AMOUNT
ch               6372 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 			, pparm->ch, pparm->ch_num
ch               6738 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c int rtw_chk_start_clnt_join(struct adapter *padapter, u8 *ch, u8 *bw, u8 *offset)
ch               6746 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	if (!ch || !bw || !offset) {
ch               6753 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 		*ch = cur_ch;
ch               6762 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c int rtw_get_ch_setting_union(struct adapter *adapter, u8 *ch, u8 *bw, u8 *offset)
ch               6767 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	if (ch)
ch               6768 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 		*ch = 0;
ch               6794 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 		set_ch_parm->ch, set_ch_parm->bw, set_ch_parm->ch_offset);
ch               6796 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	pmlmeext->cur_channel = set_ch_parm->ch;
ch               6800 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c 	set_channel_bwmode(padapter, set_ch_parm->ch, set_ch_parm->ch_offset, set_ch_parm->bw);
ch                315 drivers/staging/rtl8723bs/core/rtw_wlan_util.c inline void rtw_set_oper_ch(struct adapter *adapter, u8 ch)
ch                325 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 	if (dvobj->oper_channel != ch) {
ch                329 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 		cnt += snprintf(msg+cnt, len-cnt, "switch to ch %3u", ch);
ch                334 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 			if (iface->mlmeextpriv.cur_channel == ch)
ch                338 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 			if (iface->wdinfo.listen_channel == ch && !rtw_p2p_chk_state(&iface->wdinfo, P2P_STATE_NONE))
ch                349 drivers/staging/rtl8723bs/core/rtw_wlan_util.c 	dvobj->oper_channel = ch;
ch               2585 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c 	u8 	rfPath, ch, TxCount = 1;
ch               2589 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c 		for (ch = 0 ; ch < CHANNEL_MAX_NUMBER; ch++) {
ch               2592 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c 			Hal_GetChnlGroup8723B(ch+1, &group);
ch               2594 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c 			if (ch == 14-1) {
ch               2595 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c 				pHalData->Index24G_CCK_Base[rfPath][ch] = pwrInfo24G.IndexCCK_Base[rfPath][5];
ch               2596 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c 				pHalData->Index24G_BW40_Base[rfPath][ch] = pwrInfo24G.IndexBW40_Base[rfPath][group];
ch               2598 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c 				pHalData->Index24G_CCK_Base[rfPath][ch] = pwrInfo24G.IndexCCK_Base[rfPath][group];
ch               2599 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c 				pHalData->Index24G_BW40_Base[rfPath][ch] = pwrInfo24G.IndexBW40_Base[rfPath][group];
ch               2602 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c 			RT_TRACE(_module_hci_hal_init_c_, _drv_info_, ("======= Path %d, ChannelIndex %d, Group %d =======\n", rfPath, ch, group));
ch               2603 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c 			RT_TRACE(_module_hci_hal_init_c_, _drv_info_, ("Index24G_CCK_Base[%d][%d] = 0x%x\n", rfPath, ch, pHalData->Index24G_CCK_Base[rfPath][ch]));
ch               2604 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c 			RT_TRACE(_module_hci_hal_init_c_, _drv_info_, ("Index24G_BW40_Base[%d][%d] = 0x%x\n", rfPath, ch, pHalData->Index24G_BW40_Base[rfPath][ch]));
ch                274 drivers/staging/rtl8723bs/include/rtw_cmd.h 	struct rtw_ieee80211_channel ch[RTW_CHANNEL_SCAN_AMOUNT];
ch                765 drivers/staging/rtl8723bs/include/rtw_cmd.h 	u8 ch;
ch                828 drivers/staging/rtl8723bs/include/rtw_cmd.h u8 rtw_sitesurvey_cmd(struct adapter  *padapter, struct ndis_802_11_ssid *ssid, int ssid_num, struct rtw_ieee80211_channel *ch, int ch_num);
ch                336 drivers/staging/rtl8723bs/include/rtw_mlme_ext.h 	struct rtw_ieee80211_channel ch[RTW_CHANNEL_SCAN_AMOUNT];
ch                439 drivers/staging/rtl8723bs/include/rtw_mlme_ext.h int rtw_ch_set_search_ch(RT_CHANNEL_INFO *ch_set, const u32 ch);
ch                440 drivers/staging/rtl8723bs/include/rtw_mlme_ext.h bool rtw_mlme_band_check(struct adapter *adapter, const u32 ch);
ch                561 drivers/staging/rtl8723bs/include/rtw_mlme_ext.h void rtw_set_oper_ch(struct adapter *adapter, u8 ch);
ch                669 drivers/staging/rtl8723bs/include/rtw_mlme_ext.h s32 issue_probereq_ex(struct adapter *padapter, struct ndis_802_11_ssid *pssid, u8 *da, u8 ch, bool append_wps, int try_cnt, int wait_ms);
ch                745 drivers/staging/rtl8723bs/include/rtw_mlme_ext.h int rtw_chk_start_clnt_join(struct adapter *padapter, u8 *ch, u8 *bw, u8 *offset);
ch                746 drivers/staging/rtl8723bs/include/rtw_mlme_ext.h int rtw_get_ch_setting_union(struct adapter *adapter, u8 *ch, u8 *bw, u8 *offset);
ch                149 drivers/staging/rtl8723bs/include/rtw_rf.h u32 rtw_ch2freq(u32 ch);
ch               1517 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c 	struct rtw_ieee80211_channel ch[RTW_CHANNEL_SCAN_AMOUNT];
ch               1618 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c 	memset(ch, 0, sizeof(struct rtw_ieee80211_channel)*RTW_CHANNEL_SCAN_AMOUNT);
ch               1623 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c 		ch[i].hw_value = request->channels[i]->hw_value;
ch               1624 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c 		ch[i].flags = request->channels[i]->flags;
ch               1630 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c 			memcpy(&ch[i], &ch[0], sizeof(struct rtw_ieee80211_channel));
ch               1631 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c 		_status = rtw_sitesurvey_cmd(padapter, ssid, RTW_SSID_SCAN_AMOUNT, ch, survey_times_for_one_ch);
ch               1636 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c 			memcpy(&ch[j*survey_times+i], &ch[j], sizeof(struct rtw_ieee80211_channel));
ch               1638 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c 		_status = rtw_sitesurvey_cmd(padapter, ssid, RTW_SSID_SCAN_AMOUNT, ch, survey_times * request->n_channels);
ch               1273 drivers/staging/rtl8723bs/os_dep/os_intfs.c 	u8 ch, bw, offset;
ch               1330 drivers/staging/rtl8723bs/os_dep/os_intfs.c 		if (rtw_get_ch_setting_union(padapter, &ch, &bw, &offset) != 0) {
ch               1332 drivers/staging/rtl8723bs/os_dep/os_intfs.c 				FUNC_ADPT_ARG(padapter), ch, bw, offset);
ch               1333 drivers/staging/rtl8723bs/os_dep/os_intfs.c 			set_channel_bwmode(padapter, ch, offset, bw);
ch               1351 drivers/staging/rtl8723bs/os_dep/os_intfs.c 	u8 ch, bw, offset;
ch               1387 drivers/staging/rtl8723bs/os_dep/os_intfs.c 	if (rtw_get_ch_setting_union(padapter, &ch, &bw, &offset) != 0) {
ch               1389 drivers/staging/rtl8723bs/os_dep/os_intfs.c 			 FUNC_ADPT_ARG(padapter), ch, bw, offset);
ch               1390 drivers/staging/rtl8723bs/os_dep/os_intfs.c 		set_channel_bwmode(padapter, ch, offset, bw);
ch                 68 drivers/staging/rtl8723bs/os_dep/wifi_regd.c 	struct ieee80211_channel *ch;
ch                 79 drivers/staging/rtl8723bs/os_dep/wifi_regd.c 				ch = &sband->channels[j];
ch                 81 drivers/staging/rtl8723bs/os_dep/wifi_regd.c 				if (ch)
ch                 82 drivers/staging/rtl8723bs/os_dep/wifi_regd.c 					ch->flags = IEEE80211_CHAN_DISABLED;
ch                 94 drivers/staging/rtl8723bs/os_dep/wifi_regd.c 		ch = ieee80211_get_channel(wiphy, freq);
ch                 95 drivers/staging/rtl8723bs/os_dep/wifi_regd.c 		if (ch) {
ch                 97 drivers/staging/rtl8723bs/os_dep/wifi_regd.c 				ch->flags = IEEE80211_CHAN_NO_IR;
ch                 99 drivers/staging/rtl8723bs/os_dep/wifi_regd.c 				ch->flags = 0;
ch                 63 drivers/staging/speakup/buffers.c void synth_buffer_add(u16 ch)
ch                 77 drivers/staging/speakup/buffers.c 	*buff_in++ = ch;
ch                 88 drivers/staging/speakup/buffers.c 	u16 ch;
ch                 92 drivers/staging/speakup/buffers.c 	ch = *buff_out++;
ch                 95 drivers/staging/speakup/buffers.c 	return ch;
ch                 51 drivers/staging/speakup/keyhelp.c 	u_char *kp, counters[MAXFUNCS], ch, ch1;
ch                 82 drivers/staging/speakup/keyhelp.c 	while ((ch = *kp++)) {
ch                 89 drivers/staging/speakup/keyhelp.c 			key = (state_tbl[i] << 8) + ch;
ch                132 drivers/staging/speakup/keyhelp.c int spk_handle_help(struct vc_data *vc, u_char type, u_char ch, u_short key)
ch                142 drivers/staging/speakup/keyhelp.c 		if (ch == SPACE) {
ch                147 drivers/staging/speakup/keyhelp.c 		ch |= 32; /* lower case */
ch                148 drivers/staging/speakup/keyhelp.c 		if (ch < 'a' || ch > 'z')
ch                150 drivers/staging/speakup/keyhelp.c 		if (letter_offsets[ch - 'a'] == -1) {
ch                151 drivers/staging/speakup/keyhelp.c 			synth_printf(spk_msg_get(MSG_NO_COMMAND), ch);
ch                155 drivers/staging/speakup/keyhelp.c 		cur_item = letter_offsets[ch - 'a'];
ch                157 drivers/staging/speakup/keyhelp.c 		if (ch == 0 &&
ch                160 drivers/staging/speakup/keyhelp.c 		else if (ch == 3 && cur_item > 0)
ch                164 drivers/staging/speakup/keyhelp.c 	} else if (type == KT_SPKUP && ch == SPEAKUP_HELP &&
ch                178 drivers/staging/speakup/keyhelp.c 			if (ch == funcvals[i])
ch                185 drivers/staging/speakup/keyhelp.c 			if (ch == kp[i])
ch                238 drivers/staging/speakup/kobjects.c 	u_char ch;
ch                252 drivers/staging/speakup/kobjects.c 			ch = *cp1++;
ch                253 drivers/staging/speakup/kobjects.c 			cp += sprintf(cp, "%d,", (int)ch);
ch                337 drivers/staging/speakup/kobjects.c 	char ch = 0;
ch                343 drivers/staging/speakup/kobjects.c 		ch = buf[0];
ch                344 drivers/staging/speakup/kobjects.c 		if (ch == '\n')
ch                345 drivers/staging/speakup/kobjects.c 			ch = '0';
ch                347 drivers/staging/speakup/kobjects.c 	if (ch < '0' || ch > '7') {
ch                348 drivers/staging/speakup/kobjects.c 		pr_warn("silent value '%c' not in range (0,7)\n", ch);
ch                352 drivers/staging/speakup/kobjects.c 	if (ch & 2) {
ch                358 drivers/staging/speakup/kobjects.c 	if (ch & 4)
ch                360 drivers/staging/speakup/kobjects.c 	if (ch & 1)
ch                554 drivers/staging/speakup/kobjects.c 	char ch;
ch                575 drivers/staging/speakup/kobjects.c 			for (cp = (char *)param->p_val; (ch = *cp); cp++) {
ch                576 drivers/staging/speakup/kobjects.c 				if (ch >= ' ' && ch < '~')
ch                577 drivers/staging/speakup/kobjects.c 					*cp1++ = ch;
ch                579 drivers/staging/speakup/kobjects.c 					cp1 += sprintf(cp1, "\\x%02x", ch);
ch                425 drivers/staging/speakup/main.c static void speak_char(u16 ch)
ch                430 drivers/staging/speakup/main.c 	if (ch >= 0x100 || (direct && direct->u.n.value)) {
ch                431 drivers/staging/speakup/main.c 		if (ch < 0x100 && IS_CHAR(ch, B_CAP)) {
ch                435 drivers/staging/speakup/main.c 		synth_putwc_s(ch);
ch                436 drivers/staging/speakup/main.c 		if (ch < 0x100 && IS_CHAR(ch, B_CAP))
ch                441 drivers/staging/speakup/main.c 	cp = spk_characters[ch];
ch                446 drivers/staging/speakup/main.c 	if (IS_CHAR(ch, B_CAP)) {
ch                462 drivers/staging/speakup/main.c 	u16 ch = ' ';
ch                477 drivers/staging/speakup/main.c 		ch = inverse_translate(vc, c, 1);
ch                480 drivers/staging/speakup/main.c 	return ch;
ch                485 drivers/staging/speakup/main.c 	u16 ch;
ch                488 drivers/staging/speakup/main.c 	ch = get_char(vc, (u_short *)spk_pos, &spk_attr);
ch                495 drivers/staging/speakup/main.c 	speak_char(ch);
ch                500 drivers/staging/speakup/main.c 	u16 ch;
ch                503 drivers/staging/speakup/main.c 	ch = get_char(vc, (u_short *)spk_pos, &spk_attr);
ch                504 drivers/staging/speakup/main.c 	if (ch <= 0x7f && isalpha(ch)) {
ch                505 drivers/staging/speakup/main.c 		ch &= 0x1f;
ch                506 drivers/staging/speakup/main.c 		synth_printf("%s\n", phonetic[--ch]);
ch                508 drivers/staging/speakup/main.c 		if (ch < 0x100 && IS_CHAR(ch, B_NUM))
ch                510 drivers/staging/speakup/main.c 		speak_char(ch);
ch                550 drivers/staging/speakup/main.c 	u16 ch;
ch                555 drivers/staging/speakup/main.c 	ch = get_char(vc, (u_short *)tmp_pos, &temp);
ch                558 drivers/staging/speakup/main.c 	if (spk_say_word_ctl && ch == SPACE) {
ch                563 drivers/staging/speakup/main.c 		   (ch == SPACE || ch == 0 || (ch < 0x100 && IS_WDLM(ch))) &&
ch                569 drivers/staging/speakup/main.c 			ch = get_char(vc, (u_short *)tmp_pos - 1, &temp);
ch                570 drivers/staging/speakup/main.c 			if ((ch == SPACE || ch == 0 ||
ch                571 drivers/staging/speakup/main.c 			     (ch < 0x100 && IS_WDLM(ch))) &&
ch                583 drivers/staging/speakup/main.c 		ch = get_char(vc, (u_short *)tmp_pos, &temp);
ch                584 drivers/staging/speakup/main.c 		if (ch == SPACE || ch == 0 ||
ch                586 drivers/staging/speakup/main.c 		     ch > SPACE))
ch                588 drivers/staging/speakup/main.c 		buf[cnt++] = ch;
ch                610 drivers/staging/speakup/main.c 	u16 ch;
ch                640 drivers/staging/speakup/main.c 		ch = get_char(vc, (u_short *)spk_pos, &temp);
ch                641 drivers/staging/speakup/main.c 		if (ch == SPACE || ch == 0)
ch                643 drivers/staging/speakup/main.c 		else if (ch < 0x100 && IS_WDLM(ch))
ch                664 drivers/staging/speakup/main.c 	u16 ch;
ch                673 drivers/staging/speakup/main.c 		ch = get_char(vc, (u_short *)spk_pos, &temp);
ch                674 drivers/staging/speakup/main.c 		if (ch == SPACE || ch == 0)
ch                676 drivers/staging/speakup/main.c 		else if (ch < 0x100 && IS_WDLM(ch))
ch                710 drivers/staging/speakup/main.c 	u16 ch;
ch                714 drivers/staging/speakup/main.c 	while ((ch = *cp)) {
ch                718 drivers/staging/speakup/main.c 		if (ch < 0x100 && IS_CHAR(ch, B_CAP)) {
ch                731 drivers/staging/speakup/main.c 		if (ch >= 0x100 || (direct && direct->u.n.value)) {
ch                732 drivers/staging/speakup/main.c 			synth_putwc_s(ch);
ch                734 drivers/staging/speakup/main.c 		    ch <= 0x7f && isalpha(ch)) {
ch                735 drivers/staging/speakup/main.c 			ch &= 0x1f;
ch                736 drivers/staging/speakup/main.c 			cp1 = phonetic[--ch];
ch                739 drivers/staging/speakup/main.c 			cp1 = spk_characters[ch];
ch               1006 drivers/staging/speakup/main.c 	u16 ch;
ch               1016 drivers/staging/speakup/main.c 	ch = buf[i];
ch               1020 drivers/staging/speakup/main.c 	speak_char(ch);
ch               1026 drivers/staging/speakup/main.c 	u16 ch;
ch               1033 drivers/staging/speakup/main.c 	ch = buf[--len];
ch               1037 drivers/staging/speakup/main.c 	speak_char(ch);
ch               1051 drivers/staging/speakup/main.c 	u16 ch = get_char(vc, (u_short *)spk_pos, &tmp);
ch               1053 drivers/staging/speakup/main.c 	synth_printf(spk_msg_get(MSG_CHAR_INFO), ch, ch);
ch               1083 drivers/staging/speakup/main.c 	static u16 ch = '\0', old_ch = '\0';
ch               1095 drivers/staging/speakup/main.c 		ch = *in_buf++;
ch               1096 drivers/staging/speakup/main.c 		if (ch < 0x100)
ch               1097 drivers/staging/speakup/main.c 			char_type = spk_chartab[ch];
ch               1100 drivers/staging/speakup/main.c 		if (ch == old_ch && !(char_type & B_NUM)) {
ch               1112 drivers/staging/speakup/main.c 		if (ch == spk_lastkey) {
ch               1114 drivers/staging/speakup/main.c 			if (spk_key_echo == 1 && ch >= MINECHOCHAR)
ch               1115 drivers/staging/speakup/main.c 				speak_char(ch);
ch               1119 drivers/staging/speakup/main.c 			synth_putwc_s(ch);
ch               1122 drivers/staging/speakup/main.c 			synth_putwc_s(ch);
ch               1124 drivers/staging/speakup/main.c 			speak_char(ch);
ch               1134 drivers/staging/speakup/main.c 			if (ch != old_ch)
ch               1135 drivers/staging/speakup/main.c 				synth_putwc_s(ch);
ch               1140 drivers/staging/speakup/main.c 			if (old_ch != ch)
ch               1145 drivers/staging/speakup/main.c 		old_ch = ch;
ch               1226 drivers/staging/speakup/main.c 	u_char ch, version, num_keys;
ch               1252 drivers/staging/speakup/main.c 		ch = *cp1++;
ch               1253 drivers/staging/speakup/main.c 		if (ch >= SHIFT_TBL_SIZE) {
ch               1255 drivers/staging/speakup/main.c 				 ch, SHIFT_TBL_SIZE);
ch               1258 drivers/staging/speakup/main.c 		spk_shift_table[ch] = i;
ch               1261 drivers/staging/speakup/main.c 	while ((ch = *cp1)) {
ch               1262 drivers/staging/speakup/main.c 		if (ch >= MAX_KEY) {
ch               1264 drivers/staging/speakup/main.c 				 ch, MAX_KEY);
ch               1267 drivers/staging/speakup/main.c 		spk_our_keys[ch] = cp1;
ch               1320 drivers/staging/speakup/main.c static int edit_bits(struct vc_data *vc, u_char type, u_char ch, u_short key)
ch               1322 drivers/staging/speakup/main.c 	short mask = pb_edit->mask, ch_type = spk_chartab[ch];
ch               1324 drivers/staging/speakup/main.c 	if (type != KT_LATIN || (ch_type & B_NUM) || ch < SPACE)
ch               1326 drivers/staging/speakup/main.c 	if (ch == SPACE) {
ch               1333 drivers/staging/speakup/main.c 	spk_chartab[ch] ^= mask;
ch               1334 drivers/staging/speakup/main.c 	speak_char(ch);
ch               1336 drivers/staging/speakup/main.c 		     (spk_chartab[ch] & mask) ? spk_msg_get(MSG_ON) :
ch               1611 drivers/staging/speakup/main.c 	u16 ch;
ch               1622 drivers/staging/speakup/main.c 			ch = get_attributes(vc, ptr);
ch               1623 drivers/staging/speakup/main.c 			bg = (ch & 0x70) >> 4;
ch               1939 drivers/staging/speakup/main.c static int handle_goto(struct vc_data *vc, u_char type, u_char ch, u_short key)
ch               1947 drivers/staging/speakup/main.c 	if (type == KT_SPKUP && ch == SPEAKUP_GOTO)
ch               1949 drivers/staging/speakup/main.c 	if (type == KT_LATIN && ch == '\n')
ch               1953 drivers/staging/speakup/main.c 	if (ch == 8) {
ch               1963 drivers/staging/speakup/main.c 	if (ch < '+' || ch > 'y')
ch               1965 drivers/staging/speakup/main.c 	wch = ch;
ch               1966 drivers/staging/speakup/main.c 	goto_buf[num++] = ch;
ch               1970 drivers/staging/speakup/main.c 	if ((ch == '+' || ch == '-') && num == 1)
ch               1972 drivers/staging/speakup/main.c 	if (ch >= '0' && ch <= '9' && num < maxlen)
ch               1976 drivers/staging/speakup/main.c 	if (ch < 'x' || ch > 'y') {
ch                 29 drivers/staging/speakup/serialio.c static int spk_serial_out(struct spk_synth *in_synth, const char ch);
ch                 30 drivers/staging/speakup/serialio.c static void spk_serial_send_xchar(char ch);
ch                151 drivers/staging/speakup/serialio.c static void spk_serial_send_xchar(char ch)
ch                160 drivers/staging/speakup/serialio.c 	outb(ch, speakup_info.port_tts);
ch                281 drivers/staging/speakup/serialio.c static int spk_serial_out(struct spk_synth *in_synth, const char ch)
ch                284 drivers/staging/speakup/serialio.c 		outb_p(ch, speakup_info.port_tts);
ch                293 drivers/staging/speakup/serialio.c 	u_char ch;
ch                295 drivers/staging/speakup/serialio.c 	while ((ch = *buff)) {
ch                296 drivers/staging/speakup/serialio.c 		if (ch == '\n')
ch                297 drivers/staging/speakup/serialio.c 			ch = synth->procspeech;
ch                299 drivers/staging/speakup/serialio.c 			outb(ch, speakup_info.port_tts);
ch                 65 drivers/staging/speakup/speakup.h int spk_handle_help(struct vc_data *vc, u_char type, u_char ch, u_short key);
ch                 71 drivers/staging/speakup/speakup.h void synth_buffer_add(u16 ch);
ch                142 drivers/staging/speakup/speakup_acntpc.c 	u_char ch;
ch                144 drivers/staging/speakup/speakup_acntpc.c 	while ((ch = *buf)) {
ch                147 drivers/staging/speakup/speakup_acntpc.c 		if (ch == '\n')
ch                148 drivers/staging/speakup/speakup_acntpc.c 			ch = PROCSPEECH;
ch                156 drivers/staging/speakup/speakup_acntpc.c 		outb_p(ch, speakup_info.port_tts);
ch                164 drivers/staging/speakup/speakup_acntpc.c 	u_char ch;
ch                212 drivers/staging/speakup/speakup_acntpc.c 		ch = synth_buffer_getc();
ch                214 drivers/staging/speakup/speakup_acntpc.c 		if (ch == '\n')
ch                215 drivers/staging/speakup/speakup_acntpc.c 			ch = PROCSPEECH;
ch                216 drivers/staging/speakup/speakup_acntpc.c 		outb_p(ch, speakup_info.port_tts);
ch                217 drivers/staging/speakup/speakup_acntpc.c 		if (time_after_eq(jiffies, jiff_max) && ch == SPACE) {
ch                127 drivers/staging/speakup/speakup_apollo.c 	u_char ch;
ch                161 drivers/staging/speakup/speakup_apollo.c 		ch = synth_buffer_peek();
ch                165 drivers/staging/speakup/speakup_apollo.c 		if (!synth->io_ops->synth_out(synth, ch)) {
ch                171 drivers/staging/speakup/speakup_apollo.c 		if (time_after_eq(jiffies, jiff_max) && (ch == SPACE)) {
ch                 26 drivers/staging/speakup/speakup_decext.c static void read_buff_add(u_char ch)
ch                 28 drivers/staging/speakup/speakup_decext.c 	last_char = ch;
ch                142 drivers/staging/speakup/speakup_decext.c 	u_char ch;
ch                172 drivers/staging/speakup/speakup_decext.c 		ch = synth_buffer_peek();
ch                176 drivers/staging/speakup/speakup_decext.c 		if (ch == '\n')
ch                177 drivers/staging/speakup/speakup_decext.c 			ch = 0x0D;
ch                178 drivers/staging/speakup/speakup_decext.c 		if (synth_full() || !synth->io_ops->synth_out(synth, ch)) {
ch                186 drivers/staging/speakup/speakup_decext.c 		if (ch == '[') {
ch                188 drivers/staging/speakup/speakup_decext.c 		} else if (ch == ']') {
ch                190 drivers/staging/speakup/speakup_decext.c 		} else if (ch <= SPACE) {
ch                208 drivers/staging/speakup/speakup_decext.c 		last = ch;
ch                325 drivers/staging/speakup/speakup_decpc.c static int dt_sendchar(char ch)
ch                332 drivers/staging/speakup/speakup_decpc.c 	outb_p(ch, speakup_info.port_tts + 4);
ch                361 drivers/staging/speakup/speakup_decpc.c 	u_char ch;
ch                390 drivers/staging/speakup/speakup_decpc.c 		ch = synth_buffer_peek();
ch                394 drivers/staging/speakup/speakup_decpc.c 		if (ch == '\n')
ch                395 drivers/staging/speakup/speakup_decpc.c 			ch = 0x0D;
ch                396 drivers/staging/speakup/speakup_decpc.c 		if (dt_sendchar(ch)) {
ch                404 drivers/staging/speakup/speakup_decpc.c 		if (ch == '[') {
ch                406 drivers/staging/speakup/speakup_decpc.c 		} else if (ch == ']') {
ch                408 drivers/staging/speakup/speakup_decpc.c 		} else if (ch <= SPACE) {
ch                425 drivers/staging/speakup/speakup_decpc.c 		last = ch;
ch                426 drivers/staging/speakup/speakup_decpc.c 		ch = 0;
ch                434 drivers/staging/speakup/speakup_decpc.c 	u_char ch;
ch                436 drivers/staging/speakup/speakup_decpc.c 	while ((ch = *buf)) {
ch                437 drivers/staging/speakup/speakup_decpc.c 		if (ch == '\n')
ch                438 drivers/staging/speakup/speakup_decpc.c 			ch = PROCSPEECH;
ch                439 drivers/staging/speakup/speakup_decpc.c 		if (dt_sendchar(ch))
ch                146 drivers/staging/speakup/speakup_dectlk.c static int is_indnum(u_char *ch)
ch                148 drivers/staging/speakup/speakup_dectlk.c 	if ((*ch >= '0') && (*ch <= '9')) {
ch                149 drivers/staging/speakup/speakup_dectlk.c 		*ch = *ch - '0';
ch                196 drivers/staging/speakup/speakup_dectlk.c 	static u_char ch;
ch                239 drivers/staging/speakup/speakup_dectlk.c 		ch = synth_buffer_peek();
ch                244 drivers/staging/speakup/speakup_dectlk.c 		if (ch == '\n')
ch                245 drivers/staging/speakup/speakup_dectlk.c 			ch = 0x0D;
ch                246 drivers/staging/speakup/speakup_dectlk.c 		if (synth_full_val || !synth->io_ops->synth_out(synth, ch)) {
ch                254 drivers/staging/speakup/speakup_dectlk.c 		if (ch == '[') {
ch                256 drivers/staging/speakup/speakup_dectlk.c 		} else if (ch == ']') {
ch                258 drivers/staging/speakup/speakup_dectlk.c 		} else if (ch <= SPACE) {
ch                276 drivers/staging/speakup/speakup_dectlk.c 		last = ch;
ch                163 drivers/staging/speakup/speakup_dtlk.c static void spk_out(const char ch)
ch                172 drivers/staging/speakup/speakup_dtlk.c 	outb_p(ch, speakup_info.port_tts);
ch                183 drivers/staging/speakup/speakup_dtlk.c 	u_char ch;
ch                219 drivers/staging/speakup/speakup_dtlk.c 		ch = synth_buffer_getc();
ch                221 drivers/staging/speakup/speakup_dtlk.c 		if (ch == '\n')
ch                222 drivers/staging/speakup/speakup_dtlk.c 			ch = PROCSPEECH;
ch                223 drivers/staging/speakup/speakup_dtlk.c 		spk_out(ch);
ch                224 drivers/staging/speakup/speakup_dtlk.c 		if (time_after_eq(jiffies, jiff_max) && (ch == SPACE)) {
ch                239 drivers/staging/speakup/speakup_dtlk.c 	u_char ch;
ch                241 drivers/staging/speakup/speakup_dtlk.c 	while ((ch = (u_char)*buf)) {
ch                244 drivers/staging/speakup/speakup_dtlk.c 		if (ch == '\n')
ch                245 drivers/staging/speakup/speakup_dtlk.c 			ch = PROCSPEECH;
ch                246 drivers/staging/speakup/speakup_dtlk.c 		spk_out(ch);
ch                261 drivers/staging/speakup/speakup_dtlk.c 	u_char ch;
ch                265 drivers/staging/speakup/speakup_dtlk.c 	ch = synth_status & 0x7f;
ch                266 drivers/staging/speakup/speakup_dtlk.c 	outb_p(ch, speakup_info.port_tts);
ch                269 drivers/staging/speakup/speakup_dtlk.c 	return (char)ch;
ch                145 drivers/staging/speakup/speakup_keypc.c 	u_char ch;
ch                148 drivers/staging/speakup/speakup_keypc.c 	while ((ch = *buf)) {
ch                149 drivers/staging/speakup/speakup_keypc.c 		if (ch == '\n')
ch                150 drivers/staging/speakup/speakup_keypc.c 			ch = PROCSPEECH;
ch                157 drivers/staging/speakup/speakup_keypc.c 		outb_p(ch, synth_port);
ch                166 drivers/staging/speakup/speakup_keypc.c 	u_char ch;
ch                215 drivers/staging/speakup/speakup_keypc.c 		ch = synth_buffer_getc();
ch                217 drivers/staging/speakup/speakup_keypc.c 		if (ch == '\n')
ch                218 drivers/staging/speakup/speakup_keypc.c 			ch = PROCSPEECH;
ch                219 drivers/staging/speakup/speakup_keypc.c 		outb_p(ch, synth_port);
ch                221 drivers/staging/speakup/speakup_keypc.c 		if (time_after_eq(jiffies, jiff_max) && (ch == SPACE)) {
ch                204 drivers/staging/speakup/speakup_soft.c 	u16 ch;
ch                245 drivers/staging/speakup/speakup_soft.c 			ch = '\x18';
ch                247 drivers/staging/speakup/speakup_soft.c 			ch = init[init_pos++];
ch                253 drivers/staging/speakup/speakup_soft.c 			ch = synth_buffer_getc();
ch                257 drivers/staging/speakup/speakup_soft.c 		if ((!unicode && ch < 0x100) || (unicode && ch < 0x80)) {
ch                258 drivers/staging/speakup/speakup_soft.c 			u_char c = ch;
ch                265 drivers/staging/speakup/speakup_soft.c 		} else if (unicode && ch < 0x800) {
ch                267 drivers/staging/speakup/speakup_soft.c 				0xc0 | (ch >> 6),
ch                268 drivers/staging/speakup/speakup_soft.c 				0x80 | (ch & 0x3f)
ch                278 drivers/staging/speakup/speakup_soft.c 				0xe0 | (ch >> 12),
ch                279 drivers/staging/speakup/speakup_soft.c 				0x80 | ((ch >> 6) & 0x3f),
ch                280 drivers/staging/speakup/speakup_soft.c 				0x80 | (ch & 0x3f)
ch                112 drivers/staging/speakup/spk_ttyio.c static int spk_ttyio_out(struct spk_synth *in_synth, const char ch);
ch                113 drivers/staging/speakup/spk_ttyio.c static int spk_ttyio_out_unicode(struct spk_synth *in_synth, u16 ch);
ch                114 drivers/staging/speakup/spk_ttyio.c static void spk_ttyio_send_xchar(char ch);
ch                201 drivers/staging/speakup/spk_ttyio.c static int spk_ttyio_out(struct spk_synth *in_synth, const char ch)
ch                205 drivers/staging/speakup/spk_ttyio.c 		int ret = speakup_tty->ops->write(speakup_tty, &ch, 1);
ch                229 drivers/staging/speakup/spk_ttyio.c static int spk_ttyio_out_unicode(struct spk_synth *in_synth, u16 ch)
ch                233 drivers/staging/speakup/spk_ttyio.c 	if (ch < 0x80) {
ch                234 drivers/staging/speakup/spk_ttyio.c 		ret = spk_ttyio_out(in_synth, ch);
ch                235 drivers/staging/speakup/spk_ttyio.c 	} else if (ch < 0x800) {
ch                236 drivers/staging/speakup/spk_ttyio.c 		ret  = spk_ttyio_out(in_synth, 0xc0 | (ch >> 6));
ch                237 drivers/staging/speakup/spk_ttyio.c 		ret &= spk_ttyio_out(in_synth, 0x80 | (ch & 0x3f));
ch                239 drivers/staging/speakup/spk_ttyio.c 		ret  = spk_ttyio_out(in_synth, 0xe0 | (ch >> 12));
ch                240 drivers/staging/speakup/spk_ttyio.c 		ret &= spk_ttyio_out(in_synth, 0x80 | ((ch >> 6) & 0x3f));
ch                241 drivers/staging/speakup/spk_ttyio.c 		ret &= spk_ttyio_out(in_synth, 0x80 | (ch & 0x3f));
ch                263 drivers/staging/speakup/spk_ttyio.c static void spk_ttyio_send_xchar(char ch)
ch                272 drivers/staging/speakup/spk_ttyio.c 		speakup_tty->ops->send_xchar(speakup_tty, ch);
ch                372 drivers/staging/speakup/spk_ttyio.c 	u_char ch;
ch                374 drivers/staging/speakup/spk_ttyio.c 	while ((ch = *buff)) {
ch                375 drivers/staging/speakup/spk_ttyio.c 		if (ch == '\n')
ch                376 drivers/staging/speakup/spk_ttyio.c 			ch = synth->procspeech;
ch                378 drivers/staging/speakup/spk_ttyio.c 		    !synth->io_ops->synth_out(synth, ch))
ch                 50 drivers/staging/speakup/spk_types.h typedef int (*special_func)(struct vc_data *vc, u_char type, u_char ch,
ch                153 drivers/staging/speakup/spk_types.h 	int (*synth_out)(struct spk_synth *synth, const char ch);
ch                154 drivers/staging/speakup/spk_types.h 	int (*synth_out_unicode)(struct spk_synth *synth, u16 ch);
ch                155 drivers/staging/speakup/spk_types.h 	void (*send_xchar)(char ch);
ch                 56 drivers/staging/speakup/synth.c 	u16 ch;
ch                 90 drivers/staging/speakup/synth.c 		ch = synth_buffer_peek();
ch                 94 drivers/staging/speakup/synth.c 		if (ch == '\n')
ch                 95 drivers/staging/speakup/synth.c 			ch = synth->procspeech;
ch                 97 drivers/staging/speakup/synth.c 			ret = synth->io_ops->synth_out_unicode(synth, ch);
ch                 99 drivers/staging/speakup/synth.c 			ret = synth->io_ops->synth_out(synth, ch);
ch                104 drivers/staging/speakup/synth.c 		if (time_after_eq(jiffies, jiff_max) && (ch == SPACE)) {
ch               3572 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c 				u8 ch = mem[offset];
ch               3574 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c 				if ((ch < ' ') || (ch > '~'))
ch               3575 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c 					ch = '.';
ch               3576 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c 				*s++ = (char)ch;
ch                119 drivers/staging/vt6655/channel.c 	struct ieee80211_channel *ch;
ch                127 drivers/staging/vt6655/channel.c 		ch = vnt_channels_5ghz;
ch                130 drivers/staging/vt6655/channel.c 			ch[i].max_power = 0x3f;
ch                131 drivers/staging/vt6655/channel.c 			ch[i].flags = IEEE80211_CHAN_NO_HT40;
ch                142 drivers/staging/vt6655/channel.c 		ch = vnt_channels_2ghz;
ch                145 drivers/staging/vt6655/channel.c 			ch[i].max_power = 0x3f;
ch                146 drivers/staging/vt6655/channel.c 			ch[i].flags = IEEE80211_CHAN_NO_HT40;
ch                164 drivers/staging/vt6655/channel.c bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch)
ch                168 drivers/staging/vt6655/channel.c 	if (priv->byCurrentCh == ch->hw_value)
ch                188 drivers/staging/vt6655/channel.c 						  ch->hw_value);
ch                190 drivers/staging/vt6655/channel.c 	priv->byCurrentCh = ch->hw_value;
ch                192 drivers/staging/vt6655/channel.c 				ch->hw_value);
ch                196 drivers/staging/vt6655/channel.c 		RFvWriteWakeProgSyn(priv, priv->byRFType, ch->hw_value);
ch                 16 drivers/staging/vt6655/channel.h bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch);
ch                132 drivers/staging/vt6656/channel.c 	struct ieee80211_channel *ch;
ch                139 drivers/staging/vt6656/channel.c 		ch = vnt_channels_5ghz;
ch                142 drivers/staging/vt6656/channel.c 			ch[i].max_power = VNT_RF_MAX_POWER;
ch                143 drivers/staging/vt6656/channel.c 			ch[i].flags = IEEE80211_CHAN_NO_HT40;
ch                153 drivers/staging/vt6656/channel.c 		ch = vnt_channels_2ghz;
ch                156 drivers/staging/vt6656/channel.c 			ch[i].max_power = VNT_RF_MAX_POWER;
ch                157 drivers/staging/vt6656/channel.c 			ch[i].flags = IEEE80211_CHAN_NO_HT40;
ch                108 drivers/staging/wilc1000/wilc_hif.c 	u8 ch;
ch                457 drivers/staging/wilc1000/wilc_hif.c 	param->ch = ieee80211_frequency_to_channel(bss->channel->center_freq);
ch                598 drivers/staging/wilc1000/wilc_hif.c 		rcvd_info->ch = ch_elm[2];
ch                924 drivers/staging/wilc1000/wilc_hif.c 	wid.val[1] = (s8)hif_remain_ch->ch;
ch                933 drivers/staging/wilc1000/wilc_hif.c 	hif_drv->remain_on_ch.ch = hif_remain_ch->ch;
ch               1749 drivers/staging/wilc1000/wilc_hif.c 	roc.ch = chan;
ch                113 drivers/staging/wilc1000/wilc_hif.h 	u8 ch;
ch                129 drivers/staging/wilc1000/wilc_hif.h 	u8 ch;
ch                141 drivers/staging/wilc1000/wilc_hif.h 	u16 ch;
ch                 90 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c 		freq = ieee80211_channel_to_frequency((s32)info->ch,
ch                278 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c 	u8 ch;
ch                382 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c 	ch = ieee80211_frequency_to_channel(bss->channel->center_freq);
ch                383 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c 	vif->wilc->op_ch = ch;
ch                385 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c 		vif->wilc->sta_ch = ch;
ch                391 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c 	wfi_drv->conn_info.ch = ch;
ch                 92 drivers/thermal/tegra/tegra-bpmp-thermal.c static void bpmp_mrq_thermal(unsigned int mrq, struct tegra_bpmp_channel *ch,
ch                 99 drivers/thermal/tegra/tegra-bpmp-thermal.c 	req = (struct mrq_thermal_bpmp_to_host_request *)ch->ib->data;
ch                104 drivers/thermal/tegra/tegra-bpmp-thermal.c 		tegra_bpmp_mrq_return(ch, -EINVAL, NULL, 0);
ch                113 drivers/thermal/tegra/tegra-bpmp-thermal.c 		tegra_bpmp_mrq_return(ch, 0, NULL, 0);
ch                119 drivers/thermal/tegra/tegra-bpmp-thermal.c 	tegra_bpmp_mrq_return(ch, -EINVAL, NULL, 0);
ch                 54 drivers/thermal/uniphier_thermal.c #define PMALERTINTCTL_CLR(ch)		BIT(4 * (ch) + 2)
ch                 55 drivers/thermal/uniphier_thermal.c #define PMALERTINTCTL_SET(ch)		BIT(4 * (ch) + 1)
ch                 56 drivers/thermal/uniphier_thermal.c #define PMALERTINTCTL_EN(ch)		BIT(4 * (ch) + 0)
ch                142 drivers/thermal/uniphier_thermal.c static void uniphier_tm_set_alert(struct uniphier_tm_dev *tdev, u32 ch,
ch                148 drivers/thermal/uniphier_thermal.c 	regmap_write_bits(map, tdev->data->map_base + SETALERT0 + (ch << 2),
ch                254 drivers/tty/amiserial.c 	unsigned char ch, flag;
ch                271 drivers/tty/amiserial.c 	ch = serdatr & 0xff;
ch                275 drivers/tty/amiserial.c 	printk("DR%02x:%02x...", ch, status);
ch                330 drivers/tty/amiserial.c 	tty_insert_flip_char(&info->tport, ch, flag);
ch                779 drivers/tty/amiserial.c static int rs_put_char(struct tty_struct *tty, unsigned char ch)
ch                800 drivers/tty/amiserial.c 	info->xmit.buf[info->xmit.head++] = ch;
ch                912 drivers/tty/amiserial.c static void rs_send_xchar(struct tty_struct *tty, char ch)
ch                920 drivers/tty/amiserial.c 	info->x_char = ch;
ch                921 drivers/tty/amiserial.c 	if (ch) {
ch                 91 drivers/tty/cyclades.c static void cy_send_xchar(struct tty_struct *tty, char ch);
ch               1814 drivers/tty/cyclades.c static int cy_put_char(struct tty_struct *tty, unsigned char ch)
ch               1835 drivers/tty/cyclades.c 	info->port.xmit_buf[info->xmit_head++] = ch;
ch               2796 drivers/tty/cyclades.c static void cy_send_xchar(struct tty_struct *tty, char ch)
ch               2805 drivers/tty/cyclades.c 	info->x_char = ch;
ch               2807 drivers/tty/cyclades.c 	if (ch)
ch               2814 drivers/tty/cyclades.c 		if (ch == STOP_CHAR(tty))
ch               2816 drivers/tty/cyclades.c 		else if (ch == START_CHAR(tty))
ch                439 drivers/tty/goldfish.c static void gf_early_console_putchar(struct uart_port *port, int ch)
ch                441 drivers/tty/goldfish.c 	__raw_writel(ch, port->membase);
ch                866 drivers/tty/hvc/hvc_console.c 	char ch;
ch                868 drivers/tty/hvc/hvc_console.c 	n = hp->ops->get_chars(hp->vtermno, &ch, 1);
ch                873 drivers/tty/hvc/hvc_console.c 	return ch;
ch                876 drivers/tty/hvc/hvc_console.c static void hvc_poll_put_char(struct tty_driver *driver, int line, char ch)
ch                883 drivers/tty/hvc/hvc_console.c 		n = hp->ops->put_chars(hp->vtermno, &ch, 1);
ch                315 drivers/tty/hvc/hvc_opal.c 	int ch;
ch                317 drivers/tty/hvc/hvc_opal.c 		ch = udbg_opal_getc_poll();
ch                318 drivers/tty/hvc/hvc_opal.c 		if (ch != -1)
ch                319 drivers/tty/hvc/hvc_opal.c 			return ch;
ch                278 drivers/tty/hvc/hvc_vio.c 	int ch;
ch                284 drivers/tty/hvc/hvc_vio.c 		ch = udbg_hvc_getc_poll();
ch                285 drivers/tty/hvc/hvc_vio.c 		if (ch == -1) {
ch                291 drivers/tty/hvc/hvc_vio.c 			return ch;
ch                966 drivers/tty/isicom.c static int isicom_put_char(struct tty_struct *tty, unsigned char ch)
ch                981 drivers/tty/isicom.c 	port->port.xmit_buf[port->xmit_head++] = ch;
ch                289 drivers/tty/moxa.c 	struct moxa_port *ch = tty->driver_data;
ch                297 drivers/tty/moxa.c 	} else if (!ch)
ch                307 drivers/tty/moxa.c 		MoxaPortFlushData(ch, arg);
ch                331 drivers/tty/moxa.c 		status = MoxaPortTxQueue(ch);
ch                335 drivers/tty/moxa.c 		status = MoxaPortRxQueue(ch);
ch               1132 drivers/tty/moxa.c 	struct moxa_port *ch = container_of(port, struct moxa_port, port);
ch               1133 drivers/tty/moxa.c         MoxaPortDisable(ch);
ch               1134 drivers/tty/moxa.c 	MoxaPortFlushData(ch, 2);
ch               1139 drivers/tty/moxa.c 	struct moxa_port *ch = container_of(port, struct moxa_port, port);
ch               1143 drivers/tty/moxa.c 	dcd = ch->DCDState;
ch               1150 drivers/tty/moxa.c 	struct moxa_port *ch = container_of(port, struct moxa_port, port);
ch               1151 drivers/tty/moxa.c 	MoxaPortLineCtrl(ch, onoff, onoff);
ch               1158 drivers/tty/moxa.c 	struct moxa_port *ch;
ch               1178 drivers/tty/moxa.c 	ch = &brd->ports[port % MAX_PORTS_PER_BOARD];
ch               1179 drivers/tty/moxa.c 	ch->port.count++;
ch               1180 drivers/tty/moxa.c 	tty->driver_data = ch;
ch               1181 drivers/tty/moxa.c 	tty_port_tty_set(&ch->port, tty);
ch               1182 drivers/tty/moxa.c 	mutex_lock(&ch->port.mutex);
ch               1183 drivers/tty/moxa.c 	if (!tty_port_initialized(&ch->port)) {
ch               1184 drivers/tty/moxa.c 		ch->statusflags = 0;
ch               1186 drivers/tty/moxa.c 		MoxaPortLineCtrl(ch, 1, 1);
ch               1187 drivers/tty/moxa.c 		MoxaPortEnable(ch);
ch               1188 drivers/tty/moxa.c 		MoxaSetFifo(ch, ch->type == PORT_16550A);
ch               1189 drivers/tty/moxa.c 		tty_port_set_initialized(&ch->port, 1);
ch               1191 drivers/tty/moxa.c 	mutex_unlock(&ch->port.mutex);
ch               1194 drivers/tty/moxa.c 	return tty_port_block_til_ready(&ch->port, tty, filp);
ch               1199 drivers/tty/moxa.c 	struct moxa_port *ch = tty->driver_data;
ch               1200 drivers/tty/moxa.c 	ch->cflag = tty->termios.c_cflag;
ch               1201 drivers/tty/moxa.c 	tty_port_close(&ch->port, tty, filp);
ch               1207 drivers/tty/moxa.c 	struct moxa_port *ch = tty->driver_data;
ch               1211 drivers/tty/moxa.c 	if (ch == NULL)
ch               1218 drivers/tty/moxa.c 	set_bit(LOWWAIT, &ch->statusflags);
ch               1224 drivers/tty/moxa.c 	struct moxa_port *ch;
ch               1228 drivers/tty/moxa.c 	ch = tty->driver_data;
ch               1229 drivers/tty/moxa.c 	if (ch == NULL)
ch               1231 drivers/tty/moxa.c 	return MoxaPortTxFree(ch);
ch               1236 drivers/tty/moxa.c 	struct moxa_port *ch = tty->driver_data;
ch               1238 drivers/tty/moxa.c 	if (ch == NULL)
ch               1240 drivers/tty/moxa.c 	MoxaPortFlushData(ch, 1);
ch               1246 drivers/tty/moxa.c 	struct moxa_port *ch = tty->driver_data;
ch               1249 drivers/tty/moxa.c 	chars = MoxaPortTxQueue(ch);
ch               1255 drivers/tty/moxa.c         	set_bit(EMPTYWAIT, &ch->statusflags);
ch               1261 drivers/tty/moxa.c 	struct moxa_port *ch = tty->driver_data;
ch               1264 drivers/tty/moxa.c 	MoxaPortGetLineOut(ch, &dtr, &rts);
ch               1269 drivers/tty/moxa.c 	dtr = MoxaPortLineStatus(ch);
ch               1282 drivers/tty/moxa.c 	struct moxa_port *ch;
ch               1286 drivers/tty/moxa.c 	ch = tty->driver_data;
ch               1287 drivers/tty/moxa.c 	if (!ch) {
ch               1292 drivers/tty/moxa.c 	MoxaPortGetLineOut(ch, &dtr, &rts);
ch               1301 drivers/tty/moxa.c 	MoxaPortLineCtrl(ch, dtr, rts);
ch               1309 drivers/tty/moxa.c 	struct moxa_port *ch = tty->driver_data;
ch               1311 drivers/tty/moxa.c 	if (ch == NULL)
ch               1315 drivers/tty/moxa.c 		wake_up_interruptible(&ch->port.open_wait);
ch               1320 drivers/tty/moxa.c 	struct moxa_port *ch = tty->driver_data;
ch               1322 drivers/tty/moxa.c 	if (ch == NULL)
ch               1324 drivers/tty/moxa.c 	MoxaPortTxDisable(ch);
ch               1325 drivers/tty/moxa.c 	set_bit(TXSTOPPED, &ch->statusflags);
ch               1331 drivers/tty/moxa.c 	struct moxa_port *ch = tty->driver_data;
ch               1333 drivers/tty/moxa.c 	if (ch == NULL)
ch               1336 drivers/tty/moxa.c 	if (!test_bit(TXSTOPPED, &ch->statusflags))
ch               1339 drivers/tty/moxa.c 	MoxaPortTxEnable(ch);
ch               1340 drivers/tty/moxa.c 	clear_bit(TXSTOPPED, &ch->statusflags);
ch               1345 drivers/tty/moxa.c 	struct moxa_port *ch = tty->driver_data;
ch               1346 drivers/tty/moxa.c 	tty_port_hangup(&ch->port);
ch               1469 drivers/tty/moxa.c 	struct moxa_port *ch = tty->driver_data;
ch               1482 drivers/tty/moxa.c 	MoxaPortFlowCtrl(ch, rts, cts, txflow, rxflow, xany);
ch               1483 drivers/tty/moxa.c 	baud = MoxaPortSetTermio(ch, ts, tty_get_baud_rate(tty));
ch               1139 drivers/tty/mxser.c static int mxser_put_char(struct tty_struct *tty, unsigned char ch)
ch               1151 drivers/tty/mxser.c 	info->port.xmit_buf[info->xmit_head++] = ch;
ch               2060 drivers/tty/mxser.c 	unsigned char ch, gdl;
ch               2088 drivers/tty/mxser.c 			ch = inb(port->ioaddr + UART_RX);
ch               2089 drivers/tty/mxser.c 			tty_insert_flip_char(&port->port, ch, 0);
ch               2100 drivers/tty/mxser.c 		ch = inb(port->ioaddr + UART_RX);
ch               2128 drivers/tty/mxser.c 			tty_insert_flip_char(&port->port, ch, flag);
ch                218 drivers/tty/n_gsm.c 	void (*receive)(struct gsm_mux *gsm, u8 ch);
ch                219 drivers/tty/n_gsm.c 	void (*error)(struct gsm_mux *gsm, u8 ch, u8 flag);
ch                112 drivers/tty/n_r3964.c static void put_char(struct r3964_info *pInfo, unsigned char ch);
ch                376 drivers/tty/n_r3964.c static void put_char(struct r3964_info *pInfo, unsigned char ch)
ch                380 drivers/tty/n_r3964.c 	tty_put_char(tty, ch);
ch                381 drivers/tty/n_r3964.c 	pInfo->bcc ^= ch;
ch                219 drivers/tty/rocket.c static unsigned char GetLineNumber(int ctrl, int aiop, int ch);
ch                220 drivers/tty/rocket.c static unsigned char SetLineNumber(int ctrl, int aiop, int ch);
ch                531 drivers/tty/rocket.c 	int ctrl, aiop, ch, line;
ch                561 drivers/tty/rocket.c 				for (ch = 0; AiopMask;  AiopMask >>= 1, ch++) {
ch                566 drivers/tty/rocket.c 						line = GetLineNumber(ctrl, aiop, ch);
ch                585 drivers/tty/rocket.c 					ch = i & 0x07;
ch                586 drivers/tty/rocket.c 					line = GetLineNumber(ctrl, aiop, ch);
ch               1320 drivers/tty/rocket.c static void rp_send_xchar(struct tty_struct *tty, char ch)
ch               1330 drivers/tty/rocket.c 		sWriteTxPrioByte(cp, ch);
ch               1332 drivers/tty/rocket.c 		sWriteTxByte(sGetTxRxDataIO(cp), ch);
ch               1506 drivers/tty/rocket.c static int rp_put_char(struct tty_struct *tty, unsigned char ch)
ch               1522 drivers/tty/rocket.c 	printk(KERN_INFO "rp_put_char %c...\n", ch);
ch               1532 drivers/tty/rocket.c 		info->xmit_buf[info->xmit_head++] = ch;
ch               1537 drivers/tty/rocket.c 		sOutB(sGetTxRxDataIO(cp), ch);
ch               3109 drivers/tty/rocket.c static unsigned char GetLineNumber(int ctrl, int aiop, int ch)
ch               3111 drivers/tty/rocket.c 	return lineNumbers[(ctrl << 5) | (aiop << 3) | ch];
ch               3119 drivers/tty/rocket.c static unsigned char SetLineNumber(int ctrl, int aiop, int ch)
ch               3121 drivers/tty/rocket.c 	lineNumbers[(ctrl << 5) | (aiop << 3) | ch] = nextLineNumber++;
ch                 85 drivers/tty/serial/21285.c 	unsigned int status, ch, flag, rxs, max_count = 256;
ch                 89 drivers/tty/serial/21285.c 		ch = *CSR_UARTDR;
ch                110 drivers/tty/serial/21285.c 		uart_insert_char(port, rxs, RXSTAT_OVERRUN, ch, flag);
ch                371 drivers/tty/serial/21285.c static void serial21285_console_putchar(struct uart_port *port, int ch)
ch                375 drivers/tty/serial/21285.c 	*CSR_UARTDR = ch;
ch               1642 drivers/tty/serial/8250/8250_port.c 	unsigned char ch;
ch               1646 drivers/tty/serial/8250/8250_port.c 		ch = serial_in(up, UART_RX);
ch               1655 drivers/tty/serial/8250/8250_port.c 		ch = 0;
ch               1694 drivers/tty/serial/8250/8250_port.c 	if (uart_prepare_sysrq_char(port, ch))
ch               1697 drivers/tty/serial/8250/8250_port.c 	uart_insert_char(port, lsr, UART_LSR_OE, ch, flag);
ch               3110 drivers/tty/serial/8250/8250_port.c static void serial8250_console_putchar(struct uart_port *port, int ch)
ch               3115 drivers/tty/serial/8250/8250_port.c 	serial_port_out(port, UART_TX, ch);
ch                120 drivers/tty/serial/altera_jtaguart.c 	unsigned char ch, flag;
ch                125 drivers/tty/serial/altera_jtaguart.c 		ch = status & ALTERA_JTAGUART_DATA_DATA_MSK;
ch                129 drivers/tty/serial/altera_jtaguart.c 		if (uart_handle_sysrq_char(port, ch))
ch                131 drivers/tty/serial/altera_jtaguart.c 		uart_insert_char(port, 0, 0, ch, flag);
ch                205 drivers/tty/serial/altera_uart.c 	unsigned char ch, flag;
ch                210 drivers/tty/serial/altera_uart.c 		ch = altera_uart_readl(port, ALTERA_UART_RXDATA_REG);
ch                240 drivers/tty/serial/altera_uart.c 		if (uart_handle_sysrq_char(port, ch))
ch                242 drivers/tty/serial/altera_uart.c 		uart_insert_char(port, status, ALTERA_UART_STATUS_ROE_MSK, ch,
ch                119 drivers/tty/serial/amba-pl010.c 	unsigned int status, ch, flag, rsr, max_count = 256;
ch                123 drivers/tty/serial/amba-pl010.c 		ch = readb(uap->port.membase + UART01x_DR);
ch                158 drivers/tty/serial/amba-pl010.c 		if (uart_handle_sysrq_char(&uap->port, ch))
ch                161 drivers/tty/serial/amba-pl010.c 		uart_insert_char(&uap->port, rsr, UART01x_RSR_OE, ch, flag);
ch                568 drivers/tty/serial/amba-pl010.c static void pl010_console_putchar(struct uart_port *port, int ch)
ch                578 drivers/tty/serial/amba-pl010.c 	writel(ch, uap->port.membase + UART01x_DR);
ch                317 drivers/tty/serial/amba-pl011.c 	unsigned int ch, flag, fifotaken;
ch                325 drivers/tty/serial/amba-pl011.c 		ch = pl011_read(uap, REG_DR) | UART_DUMMY_DR_RX;
ch                329 drivers/tty/serial/amba-pl011.c 		if (unlikely(ch & UART_DR_ERROR)) {
ch                330 drivers/tty/serial/amba-pl011.c 			if (ch & UART011_DR_BE) {
ch                331 drivers/tty/serial/amba-pl011.c 				ch &= ~(UART011_DR_FE | UART011_DR_PE);
ch                335 drivers/tty/serial/amba-pl011.c 			} else if (ch & UART011_DR_PE)
ch                337 drivers/tty/serial/amba-pl011.c 			else if (ch & UART011_DR_FE)
ch                339 drivers/tty/serial/amba-pl011.c 			if (ch & UART011_DR_OE)
ch                342 drivers/tty/serial/amba-pl011.c 			ch &= uap->port.read_status_mask;
ch                344 drivers/tty/serial/amba-pl011.c 			if (ch & UART011_DR_BE)
ch                346 drivers/tty/serial/amba-pl011.c 			else if (ch & UART011_DR_PE)
ch                348 drivers/tty/serial/amba-pl011.c 			else if (ch & UART011_DR_FE)
ch                352 drivers/tty/serial/amba-pl011.c 		if (uart_handle_sysrq_char(&uap->port, ch & 255))
ch                355 drivers/tty/serial/amba-pl011.c 		uart_insert_char(&uap->port, ch, UART011_DR_OE, ch, flag);
ch               1640 drivers/tty/serial/amba-pl011.c 			 unsigned char ch)
ch               1648 drivers/tty/serial/amba-pl011.c 	pl011_write(ch, uap, REG_DR);
ch               2197 drivers/tty/serial/amba-pl011.c static void pl011_console_putchar(struct uart_port *port, int ch)
ch               2204 drivers/tty/serial/amba-pl011.c 	pl011_write(ch, uap, REG_DR);
ch                 77 drivers/tty/serial/apbuart.c 	unsigned int status, ch, rsr, flag;
ch                 84 drivers/tty/serial/apbuart.c 		ch = UART_GET_CHAR(port);
ch                114 drivers/tty/serial/apbuart.c 		if (uart_handle_sysrq_char(port, ch))
ch                117 drivers/tty/serial/apbuart.c 		uart_insert_char(port, rsr, UART_STATUS_OE, ch, flag);
ch                422 drivers/tty/serial/apbuart.c static void apbuart_console_putchar(struct uart_port *port, int ch)
ch                428 drivers/tty/serial/apbuart.c 	UART_PUT_CHAR(port, ch);
ch                103 drivers/tty/serial/ar933x_uart.c static inline void ar933x_uart_putc(struct ar933x_uart_port *up, int ch)
ch                107 drivers/tty/serial/ar933x_uart.c 	rdata = ch & AR933X_UART_DATA_TX_RX_MASK;
ch                311 drivers/tty/serial/ar933x_uart.c 		unsigned char ch;
ch                322 drivers/tty/serial/ar933x_uart.c 		ch = rdata & AR933X_UART_DATA_TX_RX_MASK;
ch                324 drivers/tty/serial/ar933x_uart.c 		if (uart_handle_sysrq_char(&up->port, ch))
ch                328 drivers/tty/serial/ar933x_uart.c 			tty_insert_flip_char(port, ch, TTY_NORMAL);
ch                532 drivers/tty/serial/ar933x_uart.c static void ar933x_uart_console_putchar(struct uart_port *port, int ch)
ch                538 drivers/tty/serial/ar933x_uart.c 	ar933x_uart_putc(up, ch);
ch                164 drivers/tty/serial/arc_uart.c 	unsigned char ch;
ch                172 drivers/tty/serial/arc_uart.c 		ch = xmit->buf[xmit->tail];
ch                177 drivers/tty/serial/arc_uart.c 		UART_SET_DATA(port, ch);
ch                203 drivers/tty/serial/arc_uart.c 	unsigned int ch, flg = 0;
ch                237 drivers/tty/serial/arc_uart.c 		ch = UART_GET_DATA(port);
ch                240 drivers/tty/serial/arc_uart.c 		if (!(uart_handle_sysrq_char(port, ch)))
ch                241 drivers/tty/serial/arc_uart.c 			uart_insert_char(port, status, RXOERR, ch, flg);
ch                517 drivers/tty/serial/arc_uart.c static void arc_serial_console_putchar(struct uart_port *port, int ch)
ch                522 drivers/tty/serial/arc_uart.c 	UART_SET_DATA(port, (unsigned char)ch);
ch                 96 drivers/tty/serial/atmel_serial.c 	u16		ch;
ch                734 drivers/tty/serial/atmel_serial.c 		     unsigned int ch)
ch                746 drivers/tty/serial/atmel_serial.c 	c->ch		= ch;
ch                781 drivers/tty/serial/atmel_serial.c 	unsigned int status, ch;
ch                785 drivers/tty/serial/atmel_serial.c 		ch = atmel_uart_read_char(port);
ch                818 drivers/tty/serial/atmel_serial.c 		atmel_buffer_rx_char(port, status, ch);
ch               1571 drivers/tty/serial/atmel_serial.c 		if (uart_handle_sysrq_char(port, c.ch))
ch               1574 drivers/tty/serial/atmel_serial.c 		uart_insert_char(port, status, ATMEL_US_OVRE, c.ch, flg);
ch               2444 drivers/tty/serial/atmel_serial.c static void atmel_poll_put_char(struct uart_port *port, unsigned char ch)
ch               2449 drivers/tty/serial/atmel_serial.c 	atmel_uart_write_char(port, ch);
ch               2544 drivers/tty/serial/atmel_serial.c static void atmel_console_putchar(struct uart_port *port, int ch)
ch               2548 drivers/tty/serial/atmel_serial.c 	atmel_uart_write_char(port, ch);
ch                690 drivers/tty/serial/bcm63xx_uart.c static void bcm_console_putchar(struct uart_port *port, int ch)
ch                693 drivers/tty/serial/bcm63xx_uart.c 	bcm_uart_writel(port, ch, UART_FIFO_REG);
ch                100 drivers/tty/serial/clps711x.c 	u16 ch;
ch                109 drivers/tty/serial/clps711x.c 		ch = readw(port->membase + UARTDR_OFFSET);
ch                110 drivers/tty/serial/clps711x.c 		status = ch & (UARTDR_FRMERR | UARTDR_PARERR | UARTDR_OVERR);
ch                111 drivers/tty/serial/clps711x.c 		ch &= 0xff;
ch                134 drivers/tty/serial/clps711x.c 		if (uart_handle_sysrq_char(port, ch))
ch                140 drivers/tty/serial/clps711x.c 		uart_insert_char(port, status, UARTDR_OVERR, ch, flg);
ch                355 drivers/tty/serial/clps711x.c static void uart_clps711x_console_putchar(struct uart_port *port, int ch)
ch                365 drivers/tty/serial/clps711x.c 	writew(ch, port->membase + UARTDR_OFFSET);
ch                233 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	unsigned char ch;
ch                277 drivers/tty/serial/cpm_uart/cpm_uart_core.c 			ch = *cp++;
ch                284 drivers/tty/serial/cpm_uart/cpm_uart_core.c 			if (uart_handle_sysrq_char(port, ch))
ch                293 drivers/tty/serial/cpm_uart/cpm_uart_core.c 			tty_insert_flip_char(tport, ch, flg);
ch                343 drivers/tty/serial/cpm_uart/cpm_uart_core.c 		ch = 0;
ch               1112 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	static char ch[2];
ch               1114 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	ch[0] = (char)c;
ch               1115 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	cpm_uart_early_write(pinfo, ch, 1, false);
ch                139 drivers/tty/serial/digicolor-usart.c 		u8 status, ch;
ch                145 drivers/tty/serial/digicolor-usart.c 		ch = readb_relaxed(port->membase + UA_EMI_REC);
ch                172 drivers/tty/serial/digicolor-usart.c 		uart_insert_char(port, status, UA_STATUS_OVERRUN_ERR, ch,
ch                384 drivers/tty/serial/digicolor-usart.c static void digicolor_uart_console_putchar(struct uart_port *port, int ch)
ch                389 drivers/tty/serial/digicolor-usart.c 	writeb_relaxed(ch, port->membase + UA_EMI_REC);
ch                188 drivers/tty/serial/dz.c 	unsigned char ch, flag;
ch                196 drivers/tty/serial/dz.c 		ch = UCHAR(status);		/* grab the char */
ch                210 drivers/tty/serial/dz.c 			if (!ch) {
ch                238 drivers/tty/serial/dz.c 		if (uart_handle_sysrq_char(uport, ch))
ch                241 drivers/tty/serial/dz.c 		uart_insert_char(uport, status, DZ_OERR, ch, flag);
ch                808 drivers/tty/serial/dz.c static void dz_console_putchar(struct uart_port *uport, int ch)
ch                839 drivers/tty/serial/dz.c 		dz_out(dport, DZ_TDR, ch);
ch                513 drivers/tty/serial/efm32-uart.c static void efm32_uart_console_putchar(struct uart_port *port, int ch)
ch                527 drivers/tty/serial/efm32-uart.c 	efm32_uart_write32(efm_port, ch, UARTn_TXDATA);
ch                576 drivers/tty/serial/fsl_linflexuart.c static void linflex_console_putchar(struct uart_port *port, int ch)
ch                582 drivers/tty/serial/fsl_linflexuart.c 	writeb(ch, port->membase + BDRL);
ch                601 drivers/tty/serial/fsl_linflexuart.c static void linflex_earlycon_putchar(struct uart_port *port, int ch)
ch                607 drivers/tty/serial/fsl_linflexuart.c 		linflex_console_putchar(port, ch);
ch                633 drivers/tty/serial/fsl_linflexuart.c 		earlycon_buf.content[earlycon_buf.len++] = ch;
ch                638 drivers/tty/serial/fsl_linflexuart.c 	linflex_console_putchar(port, ch);
ch               2078 drivers/tty/serial/fsl_lpuart.c static void lpuart_console_putchar(struct uart_port *port, int ch)
ch               2081 drivers/tty/serial/fsl_lpuart.c 	writeb(ch, port->membase + UARTDR);
ch               2084 drivers/tty/serial/fsl_lpuart.c static void lpuart32_console_putchar(struct uart_port *port, int ch)
ch               2087 drivers/tty/serial/fsl_lpuart.c 	lpuart32_write(port, ch, UARTDATA);
ch               1004 drivers/tty/serial/icom.c static void icom_send_xchar(struct uart_port *port, char ch)
ch               1010 drivers/tty/serial/icom.c 	trace(ICOM_PORT, "SEND_XCHAR", ch);
ch               1018 drivers/tty/serial/icom.c 			writeb(ch, &ICOM_PORT->dram->xchar);
ch               1918 drivers/tty/serial/imx.c static void imx_uart_console_putchar(struct uart_port *port, int ch)
ch               1925 drivers/tty/serial/imx.c 	imx_uart_writel(sport, ch, URTX0);
ch               2115 drivers/tty/serial/imx.c static void imx_uart_console_early_putchar(struct uart_port *port, int ch)
ch               2122 drivers/tty/serial/imx.c 	imx_uart_writel(sport, ch, URTX0);
ch                255 drivers/tty/serial/ip22zilog.c 	unsigned char ch, flag;
ch                260 drivers/tty/serial/ip22zilog.c 		ch = readb(&channel->control);
ch                262 drivers/tty/serial/ip22zilog.c 		if (!(ch & Rx_CH_AV))
ch                272 drivers/tty/serial/ip22zilog.c 		ch = readb(&channel->data);
ch                275 drivers/tty/serial/ip22zilog.c 		ch &= up->parity_mask;
ch                278 drivers/tty/serial/ip22zilog.c 		if (!ch)
ch                308 drivers/tty/serial/ip22zilog.c 		if (uart_handle_sysrq_char(&up->port, ch))
ch                312 drivers/tty/serial/ip22zilog.c 			uart_insert_char(&up->port, r1, Rx_OVR, ch, flag);
ch                997 drivers/tty/serial/ip22zilog.c static void ip22zilog_put_char(struct uart_port *port, int ch)
ch               1014 drivers/tty/serial/ip22zilog.c 	writeb(ch, &channel->data);
ch                105 drivers/tty/serial/jsm/jsm.h 	void (*uart_init)(struct jsm_channel *ch);
ch                106 drivers/tty/serial/jsm/jsm.h 	void (*uart_off)(struct jsm_channel *ch);
ch                107 drivers/tty/serial/jsm/jsm.h 	void (*param)(struct jsm_channel *ch);
ch                108 drivers/tty/serial/jsm/jsm.h 	void (*assert_modem_signals)(struct jsm_channel *ch);
ch                109 drivers/tty/serial/jsm/jsm.h 	void (*flush_uart_write)(struct jsm_channel *ch);
ch                110 drivers/tty/serial/jsm/jsm.h 	void (*flush_uart_read)(struct jsm_channel *ch);
ch                111 drivers/tty/serial/jsm/jsm.h 	void (*disable_receiver)(struct jsm_channel *ch);
ch                112 drivers/tty/serial/jsm/jsm.h 	void (*enable_receiver)(struct jsm_channel *ch);
ch                113 drivers/tty/serial/jsm/jsm.h 	void (*send_break)(struct jsm_channel *ch);
ch                114 drivers/tty/serial/jsm/jsm.h 	void (*clear_break)(struct jsm_channel *ch);
ch                115 drivers/tty/serial/jsm/jsm.h 	void (*send_start_character)(struct jsm_channel *ch);
ch                116 drivers/tty/serial/jsm/jsm.h 	void (*send_stop_character)(struct jsm_channel *ch);
ch                117 drivers/tty/serial/jsm/jsm.h 	void (*copy_data_from_queue_to_uart)(struct jsm_channel *ch);
ch                118 drivers/tty/serial/jsm/jsm.h 	u32 (*get_uart_bytes_left)(struct jsm_channel *ch);
ch                119 drivers/tty/serial/jsm/jsm.h 	void (*send_immediate_char)(struct jsm_channel *ch, unsigned char);
ch                435 drivers/tty/serial/jsm/jsm.h void jsm_input(struct jsm_channel *ch);
ch                436 drivers/tty/serial/jsm/jsm.h void jsm_check_queue_flow_control(struct jsm_channel *ch);
ch                 52 drivers/tty/serial/jsm/jsm_cls.c static void cls_set_cts_flow_control(struct jsm_channel *ch)
ch                 54 drivers/tty/serial/jsm/jsm_cls.c 	u8 lcrb = readb(&ch->ch_cls_uart->lcr);
ch                 55 drivers/tty/serial/jsm/jsm_cls.c 	u8 ier = readb(&ch->ch_cls_uart->ier);
ch                 62 drivers/tty/serial/jsm/jsm_cls.c 	writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr);
ch                 64 drivers/tty/serial/jsm/jsm_cls.c 	isr_fcr = readb(&ch->ch_cls_uart->isr_fcr);
ch                 70 drivers/tty/serial/jsm/jsm_cls.c 	writeb(isr_fcr, &ch->ch_cls_uart->isr_fcr);
ch                 73 drivers/tty/serial/jsm/jsm_cls.c 	writeb(lcrb, &ch->ch_cls_uart->lcr);
ch                 81 drivers/tty/serial/jsm/jsm_cls.c 	writeb(ier, &ch->ch_cls_uart->ier);
ch                 84 drivers/tty/serial/jsm/jsm_cls.c 	writeb((UART_FCR_ENABLE_FIFO), &ch->ch_cls_uart->isr_fcr);
ch                 88 drivers/tty/serial/jsm/jsm_cls.c 		&ch->ch_cls_uart->isr_fcr);
ch                 90 drivers/tty/serial/jsm/jsm_cls.c 	ch->ch_t_tlevel = 16;
ch                 93 drivers/tty/serial/jsm/jsm_cls.c static void cls_set_ixon_flow_control(struct jsm_channel *ch)
ch                 95 drivers/tty/serial/jsm/jsm_cls.c 	u8 lcrb = readb(&ch->ch_cls_uart->lcr);
ch                 96 drivers/tty/serial/jsm/jsm_cls.c 	u8 ier = readb(&ch->ch_cls_uart->ier);
ch                103 drivers/tty/serial/jsm/jsm_cls.c 	writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr);
ch                105 drivers/tty/serial/jsm/jsm_cls.c 	isr_fcr = readb(&ch->ch_cls_uart->isr_fcr);
ch                111 drivers/tty/serial/jsm/jsm_cls.c 	writeb(isr_fcr, &ch->ch_cls_uart->isr_fcr);
ch                114 drivers/tty/serial/jsm/jsm_cls.c 	writeb(ch->ch_startc, &ch->ch_cls_uart->mcr);
ch                115 drivers/tty/serial/jsm/jsm_cls.c 	writeb(0, &ch->ch_cls_uart->lsr);
ch                116 drivers/tty/serial/jsm/jsm_cls.c 	writeb(ch->ch_stopc, &ch->ch_cls_uart->msr);
ch                117 drivers/tty/serial/jsm/jsm_cls.c 	writeb(0, &ch->ch_cls_uart->spr);
ch                120 drivers/tty/serial/jsm/jsm_cls.c 	writeb(lcrb, &ch->ch_cls_uart->lcr);
ch                128 drivers/tty/serial/jsm/jsm_cls.c 	writeb(ier, &ch->ch_cls_uart->ier);
ch                131 drivers/tty/serial/jsm/jsm_cls.c 	writeb((UART_FCR_ENABLE_FIFO), &ch->ch_cls_uart->isr_fcr);
ch                135 drivers/tty/serial/jsm/jsm_cls.c 		&ch->ch_cls_uart->isr_fcr);
ch                138 drivers/tty/serial/jsm/jsm_cls.c static void cls_set_no_output_flow_control(struct jsm_channel *ch)
ch                140 drivers/tty/serial/jsm/jsm_cls.c 	u8 lcrb = readb(&ch->ch_cls_uart->lcr);
ch                141 drivers/tty/serial/jsm/jsm_cls.c 	u8 ier = readb(&ch->ch_cls_uart->ier);
ch                148 drivers/tty/serial/jsm/jsm_cls.c 	writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr);
ch                150 drivers/tty/serial/jsm/jsm_cls.c 	isr_fcr = readb(&ch->ch_cls_uart->isr_fcr);
ch                156 drivers/tty/serial/jsm/jsm_cls.c 	writeb(isr_fcr, &ch->ch_cls_uart->isr_fcr);
ch                159 drivers/tty/serial/jsm/jsm_cls.c 	writeb(lcrb, &ch->ch_cls_uart->lcr);
ch                167 drivers/tty/serial/jsm/jsm_cls.c 	writeb(ier, &ch->ch_cls_uart->ier);
ch                170 drivers/tty/serial/jsm/jsm_cls.c 	writeb((UART_FCR_ENABLE_FIFO), &ch->ch_cls_uart->isr_fcr);
ch                174 drivers/tty/serial/jsm/jsm_cls.c 		&ch->ch_cls_uart->isr_fcr);
ch                176 drivers/tty/serial/jsm/jsm_cls.c 	ch->ch_r_watermark = 0;
ch                177 drivers/tty/serial/jsm/jsm_cls.c 	ch->ch_t_tlevel = 16;
ch                178 drivers/tty/serial/jsm/jsm_cls.c 	ch->ch_r_tlevel = 16;
ch                181 drivers/tty/serial/jsm/jsm_cls.c static void cls_set_rts_flow_control(struct jsm_channel *ch)
ch                183 drivers/tty/serial/jsm/jsm_cls.c 	u8 lcrb = readb(&ch->ch_cls_uart->lcr);
ch                184 drivers/tty/serial/jsm/jsm_cls.c 	u8 ier = readb(&ch->ch_cls_uart->ier);
ch                191 drivers/tty/serial/jsm/jsm_cls.c 	writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr);
ch                193 drivers/tty/serial/jsm/jsm_cls.c 	isr_fcr = readb(&ch->ch_cls_uart->isr_fcr);
ch                199 drivers/tty/serial/jsm/jsm_cls.c 	writeb(isr_fcr, &ch->ch_cls_uart->isr_fcr);
ch                202 drivers/tty/serial/jsm/jsm_cls.c 	writeb(lcrb, &ch->ch_cls_uart->lcr);
ch                206 drivers/tty/serial/jsm/jsm_cls.c 	writeb(ier, &ch->ch_cls_uart->ier);
ch                209 drivers/tty/serial/jsm/jsm_cls.c 	writeb((UART_FCR_ENABLE_FIFO), &ch->ch_cls_uart->isr_fcr);
ch                213 drivers/tty/serial/jsm/jsm_cls.c 		&ch->ch_cls_uart->isr_fcr);
ch                215 drivers/tty/serial/jsm/jsm_cls.c 	ch->ch_r_watermark = 4;
ch                216 drivers/tty/serial/jsm/jsm_cls.c 	ch->ch_r_tlevel = 8;
ch                219 drivers/tty/serial/jsm/jsm_cls.c static void cls_set_ixoff_flow_control(struct jsm_channel *ch)
ch                221 drivers/tty/serial/jsm/jsm_cls.c 	u8 lcrb = readb(&ch->ch_cls_uart->lcr);
ch                222 drivers/tty/serial/jsm/jsm_cls.c 	u8 ier = readb(&ch->ch_cls_uart->ier);
ch                229 drivers/tty/serial/jsm/jsm_cls.c 	writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr);
ch                231 drivers/tty/serial/jsm/jsm_cls.c 	isr_fcr = readb(&ch->ch_cls_uart->isr_fcr);
ch                237 drivers/tty/serial/jsm/jsm_cls.c 	writeb(isr_fcr, &ch->ch_cls_uart->isr_fcr);
ch                240 drivers/tty/serial/jsm/jsm_cls.c 	writeb(ch->ch_startc, &ch->ch_cls_uart->mcr);
ch                241 drivers/tty/serial/jsm/jsm_cls.c 	writeb(0, &ch->ch_cls_uart->lsr);
ch                242 drivers/tty/serial/jsm/jsm_cls.c 	writeb(ch->ch_stopc, &ch->ch_cls_uart->msr);
ch                243 drivers/tty/serial/jsm/jsm_cls.c 	writeb(0, &ch->ch_cls_uart->spr);
ch                246 drivers/tty/serial/jsm/jsm_cls.c 	writeb(lcrb, &ch->ch_cls_uart->lcr);
ch                250 drivers/tty/serial/jsm/jsm_cls.c 	writeb(ier, &ch->ch_cls_uart->ier);
ch                253 drivers/tty/serial/jsm/jsm_cls.c 	writeb((UART_FCR_ENABLE_FIFO), &ch->ch_cls_uart->isr_fcr);
ch                257 drivers/tty/serial/jsm/jsm_cls.c 		&ch->ch_cls_uart->isr_fcr);
ch                260 drivers/tty/serial/jsm/jsm_cls.c static void cls_set_no_input_flow_control(struct jsm_channel *ch)
ch                262 drivers/tty/serial/jsm/jsm_cls.c 	u8 lcrb = readb(&ch->ch_cls_uart->lcr);
ch                263 drivers/tty/serial/jsm/jsm_cls.c 	u8 ier = readb(&ch->ch_cls_uart->ier);
ch                270 drivers/tty/serial/jsm/jsm_cls.c 	writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr);
ch                272 drivers/tty/serial/jsm/jsm_cls.c 	isr_fcr = readb(&ch->ch_cls_uart->isr_fcr);
ch                278 drivers/tty/serial/jsm/jsm_cls.c 	writeb(isr_fcr, &ch->ch_cls_uart->isr_fcr);
ch                281 drivers/tty/serial/jsm/jsm_cls.c 	writeb(lcrb, &ch->ch_cls_uart->lcr);
ch                285 drivers/tty/serial/jsm/jsm_cls.c 	writeb(ier, &ch->ch_cls_uart->ier);
ch                288 drivers/tty/serial/jsm/jsm_cls.c 	writeb((UART_FCR_ENABLE_FIFO), &ch->ch_cls_uart->isr_fcr);
ch                292 drivers/tty/serial/jsm/jsm_cls.c 		&ch->ch_cls_uart->isr_fcr);
ch                294 drivers/tty/serial/jsm/jsm_cls.c 	ch->ch_t_tlevel = 16;
ch                295 drivers/tty/serial/jsm/jsm_cls.c 	ch->ch_r_tlevel = 16;
ch                305 drivers/tty/serial/jsm/jsm_cls.c static void cls_clear_break(struct jsm_channel *ch)
ch                309 drivers/tty/serial/jsm/jsm_cls.c 	spin_lock_irqsave(&ch->ch_lock, lock_flags);
ch                312 drivers/tty/serial/jsm/jsm_cls.c 	if (ch->ch_flags & CH_BREAK_SENDING) {
ch                313 drivers/tty/serial/jsm/jsm_cls.c 		u8 temp = readb(&ch->ch_cls_uart->lcr);
ch                315 drivers/tty/serial/jsm/jsm_cls.c 		writeb((temp & ~UART_LCR_SBC), &ch->ch_cls_uart->lcr);
ch                317 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_flags &= ~(CH_BREAK_SENDING);
ch                318 drivers/tty/serial/jsm/jsm_cls.c 		jsm_dbg(IOCTL, &ch->ch_bd->pci_dev,
ch                322 drivers/tty/serial/jsm/jsm_cls.c 	spin_unlock_irqrestore(&ch->ch_lock, lock_flags);
ch                325 drivers/tty/serial/jsm/jsm_cls.c static void cls_disable_receiver(struct jsm_channel *ch)
ch                327 drivers/tty/serial/jsm/jsm_cls.c 	u8 tmp = readb(&ch->ch_cls_uart->ier);
ch                330 drivers/tty/serial/jsm/jsm_cls.c 	writeb(tmp, &ch->ch_cls_uart->ier);
ch                333 drivers/tty/serial/jsm/jsm_cls.c static void cls_enable_receiver(struct jsm_channel *ch)
ch                335 drivers/tty/serial/jsm/jsm_cls.c 	u8 tmp = readb(&ch->ch_cls_uart->ier);
ch                338 drivers/tty/serial/jsm/jsm_cls.c 	writeb(tmp, &ch->ch_cls_uart->ier);
ch                342 drivers/tty/serial/jsm/jsm_cls.c static void cls_assert_modem_signals(struct jsm_channel *ch)
ch                344 drivers/tty/serial/jsm/jsm_cls.c 	if (!ch)
ch                347 drivers/tty/serial/jsm/jsm_cls.c 	writeb(ch->ch_mostat, &ch->ch_cls_uart->mcr);
ch                350 drivers/tty/serial/jsm/jsm_cls.c static void cls_copy_data_from_uart_to_queue(struct jsm_channel *ch)
ch                359 drivers/tty/serial/jsm/jsm_cls.c 	if (!ch)
ch                362 drivers/tty/serial/jsm/jsm_cls.c 	spin_lock_irqsave(&ch->ch_lock, flags);
ch                365 drivers/tty/serial/jsm/jsm_cls.c 	head = ch->ch_r_head & RQUEUEMASK;
ch                366 drivers/tty/serial/jsm/jsm_cls.c 	tail = ch->ch_r_tail & RQUEUEMASK;
ch                369 drivers/tty/serial/jsm/jsm_cls.c 	linestatus = ch->ch_cached_lsr;
ch                370 drivers/tty/serial/jsm/jsm_cls.c 	ch->ch_cached_lsr = 0;
ch                381 drivers/tty/serial/jsm/jsm_cls.c 	if (ch->ch_c_iflag & IGNBRK)
ch                389 drivers/tty/serial/jsm/jsm_cls.c 		linestatus = readb(&ch->ch_cls_uart->lsr);
ch                403 drivers/tty/serial/jsm/jsm_cls.c 			discard = readb(&ch->ch_cls_uart->txrx);
ch                417 drivers/tty/serial/jsm/jsm_cls.c 			ch->ch_r_tail = tail;
ch                418 drivers/tty/serial/jsm/jsm_cls.c 			ch->ch_err_overrun++;
ch                422 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_equeue[head] = linestatus & (UART_LSR_BI | UART_LSR_PE
ch                424 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_rqueue[head] = readb(&ch->ch_cls_uart->txrx);
ch                428 drivers/tty/serial/jsm/jsm_cls.c 		if (ch->ch_equeue[head] & UART_LSR_PE)
ch                429 drivers/tty/serial/jsm/jsm_cls.c 			ch->ch_err_parity++;
ch                430 drivers/tty/serial/jsm/jsm_cls.c 		if (ch->ch_equeue[head] & UART_LSR_BI)
ch                431 drivers/tty/serial/jsm/jsm_cls.c 			ch->ch_err_break++;
ch                432 drivers/tty/serial/jsm/jsm_cls.c 		if (ch->ch_equeue[head] & UART_LSR_FE)
ch                433 drivers/tty/serial/jsm/jsm_cls.c 			ch->ch_err_frame++;
ch                437 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_rxcount++;
ch                443 drivers/tty/serial/jsm/jsm_cls.c 	ch->ch_r_head = head & RQUEUEMASK;
ch                444 drivers/tty/serial/jsm/jsm_cls.c 	ch->ch_e_head = head & EQUEUEMASK;
ch                446 drivers/tty/serial/jsm/jsm_cls.c 	spin_unlock_irqrestore(&ch->ch_lock, flags);
ch                449 drivers/tty/serial/jsm/jsm_cls.c static void cls_copy_data_from_queue_to_uart(struct jsm_channel *ch)
ch                457 drivers/tty/serial/jsm/jsm_cls.c 	if (!ch)
ch                460 drivers/tty/serial/jsm/jsm_cls.c 	circ = &ch->uart_port.state->xmit;
ch                467 drivers/tty/serial/jsm/jsm_cls.c 	if ((ch->ch_flags & CH_STOP) || (ch->ch_flags & CH_BREAK_SENDING))
ch                471 drivers/tty/serial/jsm/jsm_cls.c 	if (!(ch->ch_flags & (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM)))
ch                484 drivers/tty/serial/jsm/jsm_cls.c 		writeb(circ->buf[tail], &ch->ch_cls_uart->txrx);
ch                487 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_txcount++;
ch                494 drivers/tty/serial/jsm/jsm_cls.c 	if (len_written > ch->ch_t_tlevel)
ch                495 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_flags &= ~(CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
ch                498 drivers/tty/serial/jsm/jsm_cls.c 		uart_write_wakeup(&ch->uart_port);
ch                501 drivers/tty/serial/jsm/jsm_cls.c static void cls_parse_modem(struct jsm_channel *ch, u8 signals)
ch                505 drivers/tty/serial/jsm/jsm_cls.c 	jsm_dbg(MSIGS, &ch->ch_bd->pci_dev,
ch                507 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_portnum, msignals);
ch                517 drivers/tty/serial/jsm/jsm_cls.c 		uart_handle_dcd_change(&ch->uart_port, msignals & UART_MSR_DCD);
ch                519 drivers/tty/serial/jsm/jsm_cls.c 		uart_handle_dcd_change(&ch->uart_port, msignals & UART_MSR_CTS);
ch                522 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_mistat |= UART_MSR_DCD;
ch                524 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_mistat &= ~UART_MSR_DCD;
ch                527 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_mistat |= UART_MSR_DSR;
ch                529 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_mistat &= ~UART_MSR_DSR;
ch                532 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_mistat |= UART_MSR_RI;
ch                534 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_mistat &= ~UART_MSR_RI;
ch                537 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_mistat |= UART_MSR_CTS;
ch                539 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_mistat &= ~UART_MSR_CTS;
ch                541 drivers/tty/serial/jsm/jsm_cls.c 	jsm_dbg(MSIGS, &ch->ch_bd->pci_dev,
ch                543 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_portnum,
ch                544 drivers/tty/serial/jsm/jsm_cls.c 		!!((ch->ch_mistat | ch->ch_mostat) & UART_MCR_DTR),
ch                545 drivers/tty/serial/jsm/jsm_cls.c 		!!((ch->ch_mistat | ch->ch_mostat) & UART_MCR_RTS),
ch                546 drivers/tty/serial/jsm/jsm_cls.c 		!!((ch->ch_mistat | ch->ch_mostat) & UART_MSR_CTS),
ch                547 drivers/tty/serial/jsm/jsm_cls.c 		!!((ch->ch_mistat | ch->ch_mostat) & UART_MSR_DSR),
ch                548 drivers/tty/serial/jsm/jsm_cls.c 		!!((ch->ch_mistat | ch->ch_mostat) & UART_MSR_RI),
ch                549 drivers/tty/serial/jsm/jsm_cls.c 		!!((ch->ch_mistat | ch->ch_mostat) & UART_MSR_DCD));
ch                555 drivers/tty/serial/jsm/jsm_cls.c 	struct jsm_channel *ch;
ch                567 drivers/tty/serial/jsm/jsm_cls.c 	ch = brd->channels[port];
ch                568 drivers/tty/serial/jsm/jsm_cls.c 	if (!ch)
ch                573 drivers/tty/serial/jsm/jsm_cls.c 		isr = readb(&ch->ch_cls_uart->isr_fcr);
ch                582 drivers/tty/serial/jsm/jsm_cls.c 			cls_copy_data_from_uart_to_queue(ch);
ch                583 drivers/tty/serial/jsm/jsm_cls.c 			jsm_check_queue_flow_control(ch);
ch                589 drivers/tty/serial/jsm/jsm_cls.c 			spin_lock_irqsave(&ch->ch_lock, flags);
ch                590 drivers/tty/serial/jsm/jsm_cls.c 			ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
ch                591 drivers/tty/serial/jsm/jsm_cls.c 			spin_unlock_irqrestore(&ch->ch_lock, flags);
ch                592 drivers/tty/serial/jsm/jsm_cls.c 			cls_copy_data_from_queue_to_uart(ch);
ch                602 drivers/tty/serial/jsm/jsm_cls.c 		cls_parse_modem(ch, readb(&ch->ch_cls_uart->msr));
ch                607 drivers/tty/serial/jsm/jsm_cls.c static void cls_flush_uart_write(struct jsm_channel *ch)
ch                612 drivers/tty/serial/jsm/jsm_cls.c 	if (!ch)
ch                616 drivers/tty/serial/jsm/jsm_cls.c 						&ch->ch_cls_uart->isr_fcr);
ch                620 drivers/tty/serial/jsm/jsm_cls.c 		tmp = readb(&ch->ch_cls_uart->isr_fcr);
ch                622 drivers/tty/serial/jsm/jsm_cls.c 			jsm_dbg(IOCTL, &ch->ch_bd->pci_dev,
ch                629 drivers/tty/serial/jsm/jsm_cls.c 	ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
ch                633 drivers/tty/serial/jsm/jsm_cls.c static void cls_flush_uart_read(struct jsm_channel *ch)
ch                635 drivers/tty/serial/jsm/jsm_cls.c 	if (!ch)
ch                652 drivers/tty/serial/jsm/jsm_cls.c static void cls_send_start_character(struct jsm_channel *ch)
ch                654 drivers/tty/serial/jsm/jsm_cls.c 	if (!ch)
ch                657 drivers/tty/serial/jsm/jsm_cls.c 	if (ch->ch_startc != __DISABLED_CHAR) {
ch                658 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_xon_sends++;
ch                659 drivers/tty/serial/jsm/jsm_cls.c 		writeb(ch->ch_startc, &ch->ch_cls_uart->txrx);
ch                663 drivers/tty/serial/jsm/jsm_cls.c static void cls_send_stop_character(struct jsm_channel *ch)
ch                665 drivers/tty/serial/jsm/jsm_cls.c 	if (!ch)
ch                668 drivers/tty/serial/jsm/jsm_cls.c 	if (ch->ch_stopc != __DISABLED_CHAR) {
ch                669 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_xoff_sends++;
ch                670 drivers/tty/serial/jsm/jsm_cls.c 		writeb(ch->ch_stopc, &ch->ch_cls_uart->txrx);
ch                678 drivers/tty/serial/jsm/jsm_cls.c static void cls_param(struct jsm_channel *ch)
ch                689 drivers/tty/serial/jsm/jsm_cls.c 	bd = ch->ch_bd;
ch                696 drivers/tty/serial/jsm/jsm_cls.c 	if ((ch->ch_c_cflag & (CBAUD)) == 0) {
ch                697 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_r_head = 0;
ch                698 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_r_tail = 0;
ch                699 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_e_head = 0;
ch                700 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_e_tail = 0;
ch                702 drivers/tty/serial/jsm/jsm_cls.c 		cls_flush_uart_write(ch);
ch                703 drivers/tty/serial/jsm/jsm_cls.c 		cls_flush_uart_read(ch);
ch                706 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_flags |= (CH_BAUD0);
ch                707 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_mostat &= ~(UART_MCR_RTS | UART_MCR_DTR);
ch                708 drivers/tty/serial/jsm/jsm_cls.c 		cls_assert_modem_signals(ch);
ch                712 drivers/tty/serial/jsm/jsm_cls.c 	cflag = C_BAUD(ch->uart_port.state->port.tty);
ch                721 drivers/tty/serial/jsm/jsm_cls.c 	if (ch->ch_flags & CH_BAUD0)
ch                722 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_flags &= ~(CH_BAUD0);
ch                724 drivers/tty/serial/jsm/jsm_cls.c 	if (ch->ch_c_cflag & PARENB)
ch                727 drivers/tty/serial/jsm/jsm_cls.c 	if (!(ch->ch_c_cflag & PARODD))
ch                735 drivers/tty/serial/jsm/jsm_cls.c 	if (ch->ch_c_cflag & CMSPAR)
ch                739 drivers/tty/serial/jsm/jsm_cls.c 	if (ch->ch_c_cflag & CSTOPB)
ch                742 drivers/tty/serial/jsm/jsm_cls.c 	switch (ch->ch_c_cflag & CSIZE) {
ch                758 drivers/tty/serial/jsm/jsm_cls.c 	ier = readb(&ch->ch_cls_uart->ier);
ch                759 drivers/tty/serial/jsm/jsm_cls.c 	uart_lcr = readb(&ch->ch_cls_uart->lcr);
ch                761 drivers/tty/serial/jsm/jsm_cls.c 	quot = ch->ch_bd->bd_dividend / baud;
ch                764 drivers/tty/serial/jsm/jsm_cls.c 		writeb(UART_LCR_DLAB, &ch->ch_cls_uart->lcr);
ch                765 drivers/tty/serial/jsm/jsm_cls.c 		writeb((quot & 0xff), &ch->ch_cls_uart->txrx);
ch                766 drivers/tty/serial/jsm/jsm_cls.c 		writeb((quot >> 8), &ch->ch_cls_uart->ier);
ch                767 drivers/tty/serial/jsm/jsm_cls.c 		writeb(lcr, &ch->ch_cls_uart->lcr);
ch                771 drivers/tty/serial/jsm/jsm_cls.c 		writeb(lcr, &ch->ch_cls_uart->lcr);
ch                773 drivers/tty/serial/jsm/jsm_cls.c 	if (ch->ch_c_cflag & CREAD)
ch                778 drivers/tty/serial/jsm/jsm_cls.c 	writeb(ier, &ch->ch_cls_uart->ier);
ch                780 drivers/tty/serial/jsm/jsm_cls.c 	if (ch->ch_c_cflag & CRTSCTS)
ch                781 drivers/tty/serial/jsm/jsm_cls.c 		cls_set_cts_flow_control(ch);
ch                782 drivers/tty/serial/jsm/jsm_cls.c 	else if (ch->ch_c_iflag & IXON) {
ch                787 drivers/tty/serial/jsm/jsm_cls.c 		if ((ch->ch_startc == __DISABLED_CHAR) ||
ch                788 drivers/tty/serial/jsm/jsm_cls.c 			(ch->ch_stopc == __DISABLED_CHAR))
ch                789 drivers/tty/serial/jsm/jsm_cls.c 			cls_set_no_output_flow_control(ch);
ch                791 drivers/tty/serial/jsm/jsm_cls.c 			cls_set_ixon_flow_control(ch);
ch                793 drivers/tty/serial/jsm/jsm_cls.c 		cls_set_no_output_flow_control(ch);
ch                795 drivers/tty/serial/jsm/jsm_cls.c 	if (ch->ch_c_cflag & CRTSCTS)
ch                796 drivers/tty/serial/jsm/jsm_cls.c 		cls_set_rts_flow_control(ch);
ch                797 drivers/tty/serial/jsm/jsm_cls.c 	else if (ch->ch_c_iflag & IXOFF) {
ch                802 drivers/tty/serial/jsm/jsm_cls.c 		if ((ch->ch_startc == __DISABLED_CHAR) ||
ch                803 drivers/tty/serial/jsm/jsm_cls.c 			(ch->ch_stopc == __DISABLED_CHAR))
ch                804 drivers/tty/serial/jsm/jsm_cls.c 			cls_set_no_input_flow_control(ch);
ch                806 drivers/tty/serial/jsm/jsm_cls.c 			cls_set_ixoff_flow_control(ch);
ch                808 drivers/tty/serial/jsm/jsm_cls.c 		cls_set_no_input_flow_control(ch);
ch                810 drivers/tty/serial/jsm/jsm_cls.c 	cls_assert_modem_signals(ch);
ch                813 drivers/tty/serial/jsm/jsm_cls.c 	cls_parse_modem(ch, readb(&ch->ch_cls_uart->msr));
ch                859 drivers/tty/serial/jsm/jsm_cls.c static void cls_uart_init(struct jsm_channel *ch)
ch                861 drivers/tty/serial/jsm/jsm_cls.c 	unsigned char lcrb = readb(&ch->ch_cls_uart->lcr);
ch                864 drivers/tty/serial/jsm/jsm_cls.c 	writeb(0, &ch->ch_cls_uart->ier);
ch                870 drivers/tty/serial/jsm/jsm_cls.c 	writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr);
ch                872 drivers/tty/serial/jsm/jsm_cls.c 	isr_fcr = readb(&ch->ch_cls_uart->isr_fcr);
ch                877 drivers/tty/serial/jsm/jsm_cls.c 	writeb(isr_fcr, &ch->ch_cls_uart->isr_fcr);
ch                880 drivers/tty/serial/jsm/jsm_cls.c 	writeb(lcrb, &ch->ch_cls_uart->lcr);
ch                883 drivers/tty/serial/jsm/jsm_cls.c 	readb(&ch->ch_cls_uart->txrx);
ch                886 drivers/tty/serial/jsm/jsm_cls.c 						 &ch->ch_cls_uart->isr_fcr);
ch                889 drivers/tty/serial/jsm/jsm_cls.c 	ch->ch_flags |= (CH_FIFO_ENABLED | CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
ch                891 drivers/tty/serial/jsm/jsm_cls.c 	readb(&ch->ch_cls_uart->lsr);
ch                892 drivers/tty/serial/jsm/jsm_cls.c 	readb(&ch->ch_cls_uart->msr);
ch                898 drivers/tty/serial/jsm/jsm_cls.c static void cls_uart_off(struct jsm_channel *ch)
ch                901 drivers/tty/serial/jsm/jsm_cls.c 	writeb(0, &ch->ch_cls_uart->ier);
ch                910 drivers/tty/serial/jsm/jsm_cls.c static u32 cls_get_uart_bytes_left(struct jsm_channel *ch)
ch                913 drivers/tty/serial/jsm/jsm_cls.c 	u8 lsr = readb(&ch->ch_cls_uart->lsr);
ch                919 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
ch                932 drivers/tty/serial/jsm/jsm_cls.c static void cls_send_break(struct jsm_channel *ch)
ch                935 drivers/tty/serial/jsm/jsm_cls.c 	if (!(ch->ch_flags & CH_BREAK_SENDING)) {
ch                936 drivers/tty/serial/jsm/jsm_cls.c 		u8 temp = readb(&ch->ch_cls_uart->lcr);
ch                938 drivers/tty/serial/jsm/jsm_cls.c 		writeb((temp | UART_LCR_SBC), &ch->ch_cls_uart->lcr);
ch                939 drivers/tty/serial/jsm/jsm_cls.c 		ch->ch_flags |= (CH_BREAK_SENDING);
ch                950 drivers/tty/serial/jsm/jsm_cls.c static void cls_send_immediate_char(struct jsm_channel *ch, unsigned char c)
ch                952 drivers/tty/serial/jsm/jsm_cls.c 	writeb(c, &ch->ch_cls_uart->txrx);
ch                 35 drivers/tty/serial/jsm/jsm_neo.c static void neo_set_cts_flow_control(struct jsm_channel *ch)
ch                 38 drivers/tty/serial/jsm/jsm_neo.c 	ier = readb(&ch->ch_neo_uart->ier);
ch                 39 drivers/tty/serial/jsm/jsm_neo.c 	efr = readb(&ch->ch_neo_uart->efr);
ch                 41 drivers/tty/serial/jsm/jsm_neo.c 	jsm_dbg(PARAM, &ch->ch_bd->pci_dev, "Setting CTSFLOW\n");
ch                 51 drivers/tty/serial/jsm/jsm_neo.c 	writeb(0, &ch->ch_neo_uart->efr);
ch                 54 drivers/tty/serial/jsm/jsm_neo.c 	writeb(efr, &ch->ch_neo_uart->efr);
ch                 57 drivers/tty/serial/jsm/jsm_neo.c 	writeb((UART_17158_FCTR_TRGD | UART_17158_FCTR_RTS_4DELAY), &ch->ch_neo_uart->fctr);
ch                 60 drivers/tty/serial/jsm/jsm_neo.c 	writeb(8, &ch->ch_neo_uart->tfifo);
ch                 61 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_t_tlevel = 8;
ch                 63 drivers/tty/serial/jsm/jsm_neo.c 	writeb(ier, &ch->ch_neo_uart->ier);
ch                 66 drivers/tty/serial/jsm/jsm_neo.c static void neo_set_rts_flow_control(struct jsm_channel *ch)
ch                 69 drivers/tty/serial/jsm/jsm_neo.c 	ier = readb(&ch->ch_neo_uart->ier);
ch                 70 drivers/tty/serial/jsm/jsm_neo.c 	efr = readb(&ch->ch_neo_uart->efr);
ch                 72 drivers/tty/serial/jsm/jsm_neo.c 	jsm_dbg(PARAM, &ch->ch_bd->pci_dev, "Setting RTSFLOW\n");
ch                 83 drivers/tty/serial/jsm/jsm_neo.c 	writeb(0, &ch->ch_neo_uart->efr);
ch                 86 drivers/tty/serial/jsm/jsm_neo.c 	writeb(efr, &ch->ch_neo_uart->efr);
ch                 88 drivers/tty/serial/jsm/jsm_neo.c 	writeb((UART_17158_FCTR_TRGD | UART_17158_FCTR_RTS_4DELAY), &ch->ch_neo_uart->fctr);
ch                 89 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_r_watermark = 4;
ch                 91 drivers/tty/serial/jsm/jsm_neo.c 	writeb(56, &ch->ch_neo_uart->rfifo);
ch                 92 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_r_tlevel = 56;
ch                 94 drivers/tty/serial/jsm/jsm_neo.c 	writeb(ier, &ch->ch_neo_uart->ier);
ch                102 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_mostat |= (UART_MCR_RTS);
ch                106 drivers/tty/serial/jsm/jsm_neo.c static void neo_set_ixon_flow_control(struct jsm_channel *ch)
ch                109 drivers/tty/serial/jsm/jsm_neo.c 	ier = readb(&ch->ch_neo_uart->ier);
ch                110 drivers/tty/serial/jsm/jsm_neo.c 	efr = readb(&ch->ch_neo_uart->efr);
ch                112 drivers/tty/serial/jsm/jsm_neo.c 	jsm_dbg(PARAM, &ch->ch_bd->pci_dev, "Setting IXON FLOW\n");
ch                122 drivers/tty/serial/jsm/jsm_neo.c 	writeb(0, &ch->ch_neo_uart->efr);
ch                125 drivers/tty/serial/jsm/jsm_neo.c 	writeb(efr, &ch->ch_neo_uart->efr);
ch                127 drivers/tty/serial/jsm/jsm_neo.c 	writeb((UART_17158_FCTR_TRGD | UART_17158_FCTR_RTS_8DELAY), &ch->ch_neo_uart->fctr);
ch                128 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_r_watermark = 4;
ch                130 drivers/tty/serial/jsm/jsm_neo.c 	writeb(32, &ch->ch_neo_uart->rfifo);
ch                131 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_r_tlevel = 32;
ch                134 drivers/tty/serial/jsm/jsm_neo.c 	writeb(ch->ch_startc, &ch->ch_neo_uart->xonchar1);
ch                135 drivers/tty/serial/jsm/jsm_neo.c 	writeb(0, &ch->ch_neo_uart->xonchar2);
ch                137 drivers/tty/serial/jsm/jsm_neo.c 	writeb(ch->ch_stopc, &ch->ch_neo_uart->xoffchar1);
ch                138 drivers/tty/serial/jsm/jsm_neo.c 	writeb(0, &ch->ch_neo_uart->xoffchar2);
ch                140 drivers/tty/serial/jsm/jsm_neo.c 	writeb(ier, &ch->ch_neo_uart->ier);
ch                143 drivers/tty/serial/jsm/jsm_neo.c static void neo_set_ixoff_flow_control(struct jsm_channel *ch)
ch                146 drivers/tty/serial/jsm/jsm_neo.c 	ier = readb(&ch->ch_neo_uart->ier);
ch                147 drivers/tty/serial/jsm/jsm_neo.c 	efr = readb(&ch->ch_neo_uart->efr);
ch                149 drivers/tty/serial/jsm/jsm_neo.c 	jsm_dbg(PARAM, &ch->ch_bd->pci_dev, "Setting IXOFF FLOW\n");
ch                160 drivers/tty/serial/jsm/jsm_neo.c 	writeb(0, &ch->ch_neo_uart->efr);
ch                163 drivers/tty/serial/jsm/jsm_neo.c 	writeb(efr, &ch->ch_neo_uart->efr);
ch                166 drivers/tty/serial/jsm/jsm_neo.c 	writeb((UART_17158_FCTR_TRGD | UART_17158_FCTR_RTS_8DELAY), &ch->ch_neo_uart->fctr);
ch                168 drivers/tty/serial/jsm/jsm_neo.c 	writeb(8, &ch->ch_neo_uart->tfifo);
ch                169 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_t_tlevel = 8;
ch                172 drivers/tty/serial/jsm/jsm_neo.c 	writeb(ch->ch_startc, &ch->ch_neo_uart->xonchar1);
ch                173 drivers/tty/serial/jsm/jsm_neo.c 	writeb(0, &ch->ch_neo_uart->xonchar2);
ch                175 drivers/tty/serial/jsm/jsm_neo.c 	writeb(ch->ch_stopc, &ch->ch_neo_uart->xoffchar1);
ch                176 drivers/tty/serial/jsm/jsm_neo.c 	writeb(0, &ch->ch_neo_uart->xoffchar2);
ch                178 drivers/tty/serial/jsm/jsm_neo.c 	writeb(ier, &ch->ch_neo_uart->ier);
ch                181 drivers/tty/serial/jsm/jsm_neo.c static void neo_set_no_input_flow_control(struct jsm_channel *ch)
ch                184 drivers/tty/serial/jsm/jsm_neo.c 	ier = readb(&ch->ch_neo_uart->ier);
ch                185 drivers/tty/serial/jsm/jsm_neo.c 	efr = readb(&ch->ch_neo_uart->efr);
ch                187 drivers/tty/serial/jsm/jsm_neo.c 	jsm_dbg(PARAM, &ch->ch_bd->pci_dev, "Unsetting Input FLOW\n");
ch                195 drivers/tty/serial/jsm/jsm_neo.c 	if (ch->ch_c_iflag & IXON)
ch                201 drivers/tty/serial/jsm/jsm_neo.c 	writeb(0, &ch->ch_neo_uart->efr);
ch                204 drivers/tty/serial/jsm/jsm_neo.c 	writeb(efr, &ch->ch_neo_uart->efr);
ch                207 drivers/tty/serial/jsm/jsm_neo.c 	writeb((UART_17158_FCTR_TRGD | UART_17158_FCTR_RTS_8DELAY), &ch->ch_neo_uart->fctr);
ch                209 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_r_watermark = 0;
ch                211 drivers/tty/serial/jsm/jsm_neo.c 	writeb(16, &ch->ch_neo_uart->tfifo);
ch                212 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_t_tlevel = 16;
ch                214 drivers/tty/serial/jsm/jsm_neo.c 	writeb(16, &ch->ch_neo_uart->rfifo);
ch                215 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_r_tlevel = 16;
ch                217 drivers/tty/serial/jsm/jsm_neo.c 	writeb(ier, &ch->ch_neo_uart->ier);
ch                220 drivers/tty/serial/jsm/jsm_neo.c static void neo_set_no_output_flow_control(struct jsm_channel *ch)
ch                223 drivers/tty/serial/jsm/jsm_neo.c 	ier = readb(&ch->ch_neo_uart->ier);
ch                224 drivers/tty/serial/jsm/jsm_neo.c 	efr = readb(&ch->ch_neo_uart->efr);
ch                226 drivers/tty/serial/jsm/jsm_neo.c 	jsm_dbg(PARAM, &ch->ch_bd->pci_dev, "Unsetting Output FLOW\n");
ch                233 drivers/tty/serial/jsm/jsm_neo.c 	if (ch->ch_c_iflag & IXOFF)
ch                239 drivers/tty/serial/jsm/jsm_neo.c 	writeb(0, &ch->ch_neo_uart->efr);
ch                242 drivers/tty/serial/jsm/jsm_neo.c 	writeb(efr, &ch->ch_neo_uart->efr);
ch                245 drivers/tty/serial/jsm/jsm_neo.c 	writeb((UART_17158_FCTR_TRGD | UART_17158_FCTR_RTS_8DELAY), &ch->ch_neo_uart->fctr);
ch                247 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_r_watermark = 0;
ch                249 drivers/tty/serial/jsm/jsm_neo.c 	writeb(16, &ch->ch_neo_uart->tfifo);
ch                250 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_t_tlevel = 16;
ch                252 drivers/tty/serial/jsm/jsm_neo.c 	writeb(16, &ch->ch_neo_uart->rfifo);
ch                253 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_r_tlevel = 16;
ch                255 drivers/tty/serial/jsm/jsm_neo.c 	writeb(ier, &ch->ch_neo_uart->ier);
ch                258 drivers/tty/serial/jsm/jsm_neo.c static inline void neo_set_new_start_stop_chars(struct jsm_channel *ch)
ch                262 drivers/tty/serial/jsm/jsm_neo.c 	if (ch->ch_c_cflag & CRTSCTS)
ch                265 drivers/tty/serial/jsm/jsm_neo.c 	jsm_dbg(PARAM, &ch->ch_bd->pci_dev, "start\n");
ch                268 drivers/tty/serial/jsm/jsm_neo.c 	writeb(ch->ch_startc, &ch->ch_neo_uart->xonchar1);
ch                269 drivers/tty/serial/jsm/jsm_neo.c 	writeb(0, &ch->ch_neo_uart->xonchar2);
ch                271 drivers/tty/serial/jsm/jsm_neo.c 	writeb(ch->ch_stopc, &ch->ch_neo_uart->xoffchar1);
ch                272 drivers/tty/serial/jsm/jsm_neo.c 	writeb(0, &ch->ch_neo_uart->xoffchar2);
ch                275 drivers/tty/serial/jsm/jsm_neo.c static void neo_copy_data_from_uart_to_queue(struct jsm_channel *ch)
ch                286 drivers/tty/serial/jsm/jsm_neo.c 	head = ch->ch_r_head & RQUEUEMASK;
ch                287 drivers/tty/serial/jsm/jsm_neo.c 	tail = ch->ch_r_tail & RQUEUEMASK;
ch                290 drivers/tty/serial/jsm/jsm_neo.c 	linestatus = ch->ch_cached_lsr;
ch                291 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_cached_lsr = 0;
ch                304 drivers/tty/serial/jsm/jsm_neo.c 	if (!(ch->ch_flags & CH_FIFO_ENABLED))
ch                307 drivers/tty/serial/jsm/jsm_neo.c 		total = readb(&ch->ch_neo_uart->rfifo);
ch                333 drivers/tty/serial/jsm/jsm_neo.c 		linestatus = readb(&ch->ch_neo_uart->lsr);
ch                360 drivers/tty/serial/jsm/jsm_neo.c 			ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
ch                365 drivers/tty/serial/jsm/jsm_neo.c 		memcpy_fromio(ch->ch_rqueue + head, &ch->ch_neo_uart->txrxburst, n);
ch                371 drivers/tty/serial/jsm/jsm_neo.c 		memset(ch->ch_equeue + head, 0, n);
ch                377 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_rxcount += n;
ch                384 drivers/tty/serial/jsm/jsm_neo.c 	if (ch->ch_c_iflag & IGNBRK)
ch                397 drivers/tty/serial/jsm/jsm_neo.c 		linestatus |= readb(&ch->ch_neo_uart->lsr);
ch                405 drivers/tty/serial/jsm/jsm_neo.c 			ch->ch_cached_lsr = linestatus;
ch                419 drivers/tty/serial/jsm/jsm_neo.c 			ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
ch                428 drivers/tty/serial/jsm/jsm_neo.c 			memcpy_fromio(&discard, &ch->ch_neo_uart->txrxburst, 1);
ch                441 drivers/tty/serial/jsm/jsm_neo.c 			jsm_dbg(READ, &ch->ch_bd->pci_dev,
ch                443 drivers/tty/serial/jsm/jsm_neo.c 				ch->ch_rqueue[tail], ch->ch_equeue[tail]);
ch                445 drivers/tty/serial/jsm/jsm_neo.c 			ch->ch_r_tail = tail = (tail + 1) & RQUEUEMASK;
ch                446 drivers/tty/serial/jsm/jsm_neo.c 			ch->ch_err_overrun++;
ch                450 drivers/tty/serial/jsm/jsm_neo.c 		memcpy_fromio(ch->ch_rqueue + head, &ch->ch_neo_uart->txrxburst, 1);
ch                451 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_equeue[head] = (u8) linestatus;
ch                453 drivers/tty/serial/jsm/jsm_neo.c 		jsm_dbg(READ, &ch->ch_bd->pci_dev, "DATA/LSR pair: %x %x\n",
ch                454 drivers/tty/serial/jsm/jsm_neo.c 			ch->ch_rqueue[head], ch->ch_equeue[head]);
ch                463 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_rxcount++;
ch                469 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_r_head = head & RQUEUEMASK;
ch                470 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_e_head = head & EQUEUEMASK;
ch                471 drivers/tty/serial/jsm/jsm_neo.c 	jsm_input(ch);
ch                474 drivers/tty/serial/jsm/jsm_neo.c static void neo_copy_data_from_queue_to_uart(struct jsm_channel *ch)
ch                484 drivers/tty/serial/jsm/jsm_neo.c 	if (!ch)
ch                487 drivers/tty/serial/jsm/jsm_neo.c 	circ = &ch->uart_port.state->xmit;
ch                494 drivers/tty/serial/jsm/jsm_neo.c 	if ((ch->ch_flags & CH_STOP) || (ch->ch_flags & CH_BREAK_SENDING))
ch                499 drivers/tty/serial/jsm/jsm_neo.c 	if (!(ch->ch_flags & CH_FIFO_ENABLED)) {
ch                500 drivers/tty/serial/jsm/jsm_neo.c 		u8 lsrbits = readb(&ch->ch_neo_uart->lsr);
ch                502 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_cached_lsr |= lsrbits;
ch                503 drivers/tty/serial/jsm/jsm_neo.c 		if (ch->ch_cached_lsr & UART_LSR_THRE) {
ch                504 drivers/tty/serial/jsm/jsm_neo.c 			ch->ch_cached_lsr &= ~(UART_LSR_THRE);
ch                506 drivers/tty/serial/jsm/jsm_neo.c 			writeb(circ->buf[circ->tail], &ch->ch_neo_uart->txrx);
ch                507 drivers/tty/serial/jsm/jsm_neo.c 			jsm_dbg(WRITE, &ch->ch_bd->pci_dev,
ch                510 drivers/tty/serial/jsm/jsm_neo.c 			ch->ch_txcount++;
ch                518 drivers/tty/serial/jsm/jsm_neo.c 	if (!(ch->ch_flags & (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM)))
ch                521 drivers/tty/serial/jsm/jsm_neo.c 	n = UART_17158_TX_FIFOSIZE - ch->ch_t_tlevel;
ch                539 drivers/tty/serial/jsm/jsm_neo.c 		memcpy_toio(&ch->ch_neo_uart->txrxburst, circ->buf + tail, s);
ch                543 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_txcount += s;
ch                550 drivers/tty/serial/jsm/jsm_neo.c 	if (len_written >= ch->ch_t_tlevel)
ch                551 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_flags &= ~(CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
ch                554 drivers/tty/serial/jsm/jsm_neo.c 		uart_write_wakeup(&ch->uart_port);
ch                557 drivers/tty/serial/jsm/jsm_neo.c static void neo_parse_modem(struct jsm_channel *ch, u8 signals)
ch                561 drivers/tty/serial/jsm/jsm_neo.c 	jsm_dbg(MSIGS, &ch->ch_bd->pci_dev,
ch                563 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_portnum, msignals);
ch                570 drivers/tty/serial/jsm/jsm_neo.c 		uart_handle_dcd_change(&ch->uart_port, msignals & UART_MSR_DCD);
ch                572 drivers/tty/serial/jsm/jsm_neo.c 		uart_handle_cts_change(&ch->uart_port, msignals & UART_MSR_CTS);
ch                574 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_mistat |= UART_MSR_DCD;
ch                576 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_mistat &= ~UART_MSR_DCD;
ch                579 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_mistat |= UART_MSR_DSR;
ch                581 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_mistat &= ~UART_MSR_DSR;
ch                584 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_mistat |= UART_MSR_RI;
ch                586 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_mistat &= ~UART_MSR_RI;
ch                589 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_mistat |= UART_MSR_CTS;
ch                591 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_mistat &= ~UART_MSR_CTS;
ch                593 drivers/tty/serial/jsm/jsm_neo.c 	jsm_dbg(MSIGS, &ch->ch_bd->pci_dev,
ch                595 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_portnum,
ch                596 drivers/tty/serial/jsm/jsm_neo.c 		!!((ch->ch_mistat | ch->ch_mostat) & UART_MCR_DTR),
ch                597 drivers/tty/serial/jsm/jsm_neo.c 		!!((ch->ch_mistat | ch->ch_mostat) & UART_MCR_RTS),
ch                598 drivers/tty/serial/jsm/jsm_neo.c 		!!((ch->ch_mistat | ch->ch_mostat) & UART_MSR_CTS),
ch                599 drivers/tty/serial/jsm/jsm_neo.c 		!!((ch->ch_mistat | ch->ch_mostat) & UART_MSR_DSR),
ch                600 drivers/tty/serial/jsm/jsm_neo.c 		!!((ch->ch_mistat | ch->ch_mostat) & UART_MSR_RI),
ch                601 drivers/tty/serial/jsm/jsm_neo.c 		!!((ch->ch_mistat | ch->ch_mostat) & UART_MSR_DCD));
ch                605 drivers/tty/serial/jsm/jsm_neo.c static void neo_assert_modem_signals(struct jsm_channel *ch)
ch                607 drivers/tty/serial/jsm/jsm_neo.c 	if (!ch)
ch                610 drivers/tty/serial/jsm/jsm_neo.c 	writeb(ch->ch_mostat, &ch->ch_neo_uart->mcr);
ch                613 drivers/tty/serial/jsm/jsm_neo.c 	neo_pci_posting_flush(ch->ch_bd);
ch                621 drivers/tty/serial/jsm/jsm_neo.c static void neo_flush_uart_write(struct jsm_channel *ch)
ch                626 drivers/tty/serial/jsm/jsm_neo.c 	if (!ch)
ch                629 drivers/tty/serial/jsm/jsm_neo.c 	writeb((UART_FCR_ENABLE_FIFO | UART_FCR_CLEAR_XMIT), &ch->ch_neo_uart->isr_fcr);
ch                634 drivers/tty/serial/jsm/jsm_neo.c 		tmp = readb(&ch->ch_neo_uart->isr_fcr);
ch                636 drivers/tty/serial/jsm/jsm_neo.c 			jsm_dbg(IOCTL, &ch->ch_bd->pci_dev,
ch                644 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
ch                653 drivers/tty/serial/jsm/jsm_neo.c static void neo_flush_uart_read(struct jsm_channel *ch)
ch                658 drivers/tty/serial/jsm/jsm_neo.c 	if (!ch)
ch                661 drivers/tty/serial/jsm/jsm_neo.c 	writeb((UART_FCR_ENABLE_FIFO | UART_FCR_CLEAR_RCVR), &ch->ch_neo_uart->isr_fcr);
ch                666 drivers/tty/serial/jsm/jsm_neo.c 		tmp = readb(&ch->ch_neo_uart->isr_fcr);
ch                668 drivers/tty/serial/jsm/jsm_neo.c 			jsm_dbg(IOCTL, &ch->ch_bd->pci_dev,
ch                680 drivers/tty/serial/jsm/jsm_neo.c static void neo_clear_break(struct jsm_channel *ch)
ch                684 drivers/tty/serial/jsm/jsm_neo.c 	spin_lock_irqsave(&ch->ch_lock, lock_flags);
ch                687 drivers/tty/serial/jsm/jsm_neo.c 	if (ch->ch_flags & CH_BREAK_SENDING) {
ch                688 drivers/tty/serial/jsm/jsm_neo.c 		u8 temp = readb(&ch->ch_neo_uart->lcr);
ch                689 drivers/tty/serial/jsm/jsm_neo.c 		writeb((temp & ~UART_LCR_SBC), &ch->ch_neo_uart->lcr);
ch                691 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_flags &= ~(CH_BREAK_SENDING);
ch                692 drivers/tty/serial/jsm/jsm_neo.c 		jsm_dbg(IOCTL, &ch->ch_bd->pci_dev,
ch                697 drivers/tty/serial/jsm/jsm_neo.c 		neo_pci_posting_flush(ch->ch_bd);
ch                699 drivers/tty/serial/jsm/jsm_neo.c 	spin_unlock_irqrestore(&ch->ch_lock, lock_flags);
ch                707 drivers/tty/serial/jsm/jsm_neo.c 	struct jsm_channel *ch;
ch                718 drivers/tty/serial/jsm/jsm_neo.c 	ch = brd->channels[port];
ch                719 drivers/tty/serial/jsm/jsm_neo.c 	if (!ch)
ch                725 drivers/tty/serial/jsm/jsm_neo.c 		isr = readb(&ch->ch_neo_uart->isr_fcr);
ch                736 drivers/tty/serial/jsm/jsm_neo.c 		jsm_dbg(INTR, &ch->ch_bd->pci_dev, "%s:%d isr: %x\n",
ch                741 drivers/tty/serial/jsm/jsm_neo.c 			neo_copy_data_from_uart_to_queue(ch);
ch                744 drivers/tty/serial/jsm/jsm_neo.c 			spin_lock_irqsave(&ch->ch_lock, lock_flags);
ch                745 drivers/tty/serial/jsm/jsm_neo.c 			jsm_check_queue_flow_control(ch);
ch                746 drivers/tty/serial/jsm/jsm_neo.c 			spin_unlock_irqrestore(&ch->ch_lock, lock_flags);
ch                751 drivers/tty/serial/jsm/jsm_neo.c 			spin_lock_irqsave(&ch->ch_lock, lock_flags);
ch                752 drivers/tty/serial/jsm/jsm_neo.c 			ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
ch                753 drivers/tty/serial/jsm/jsm_neo.c 			spin_unlock_irqrestore(&ch->ch_lock, lock_flags);
ch                754 drivers/tty/serial/jsm/jsm_neo.c 			neo_copy_data_from_queue_to_uart(ch);
ch                758 drivers/tty/serial/jsm/jsm_neo.c 			cause = readb(&ch->ch_neo_uart->xoffchar1);
ch                760 drivers/tty/serial/jsm/jsm_neo.c 			jsm_dbg(INTR, &ch->ch_bd->pci_dev,
ch                769 drivers/tty/serial/jsm/jsm_neo.c 			spin_lock_irqsave(&ch->ch_lock, lock_flags);
ch                773 drivers/tty/serial/jsm/jsm_neo.c 					ch->ch_flags &= ~(CH_STOP);
ch                775 drivers/tty/serial/jsm/jsm_neo.c 				jsm_dbg(INTR, &ch->ch_bd->pci_dev,
ch                781 drivers/tty/serial/jsm/jsm_neo.c 					ch->ch_flags |= CH_STOP;
ch                782 drivers/tty/serial/jsm/jsm_neo.c 					jsm_dbg(INTR, &ch->ch_bd->pci_dev,
ch                785 drivers/tty/serial/jsm/jsm_neo.c 				jsm_dbg(INTR, &ch->ch_bd->pci_dev,
ch                789 drivers/tty/serial/jsm/jsm_neo.c 			spin_unlock_irqrestore(&ch->ch_lock, lock_flags);
ch                797 drivers/tty/serial/jsm/jsm_neo.c 			cause = readb(&ch->ch_neo_uart->mcr);
ch                800 drivers/tty/serial/jsm/jsm_neo.c 			spin_lock_irqsave(&ch->ch_lock, lock_flags);
ch                803 drivers/tty/serial/jsm/jsm_neo.c 					ch->ch_mostat |= UART_MCR_RTS;
ch                805 drivers/tty/serial/jsm/jsm_neo.c 					ch->ch_mostat &= ~(UART_MCR_RTS);
ch                808 drivers/tty/serial/jsm/jsm_neo.c 					ch->ch_mostat |= UART_MCR_DTR;
ch                810 drivers/tty/serial/jsm/jsm_neo.c 					ch->ch_mostat &= ~(UART_MCR_DTR);
ch                812 drivers/tty/serial/jsm/jsm_neo.c 			spin_unlock_irqrestore(&ch->ch_lock, lock_flags);
ch                816 drivers/tty/serial/jsm/jsm_neo.c 		jsm_dbg(INTR, &ch->ch_bd->pci_dev,
ch                818 drivers/tty/serial/jsm/jsm_neo.c 		neo_parse_modem(ch, readb(&ch->ch_neo_uart->msr));
ch                824 drivers/tty/serial/jsm/jsm_neo.c 	struct jsm_channel *ch;
ch                834 drivers/tty/serial/jsm/jsm_neo.c 	ch = brd->channels[port];
ch                835 drivers/tty/serial/jsm/jsm_neo.c 	if (!ch)
ch                838 drivers/tty/serial/jsm/jsm_neo.c 	linestatus = readb(&ch->ch_neo_uart->lsr);
ch                840 drivers/tty/serial/jsm/jsm_neo.c 	jsm_dbg(INTR, &ch->ch_bd->pci_dev, "%s:%d port: %d linestatus: %x\n",
ch                843 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_cached_lsr |= linestatus;
ch                845 drivers/tty/serial/jsm/jsm_neo.c 	if (ch->ch_cached_lsr & UART_LSR_DR) {
ch                847 drivers/tty/serial/jsm/jsm_neo.c 		neo_copy_data_from_uart_to_queue(ch);
ch                848 drivers/tty/serial/jsm/jsm_neo.c 		spin_lock_irqsave(&ch->ch_lock, lock_flags);
ch                849 drivers/tty/serial/jsm/jsm_neo.c 		jsm_check_queue_flow_control(ch);
ch                850 drivers/tty/serial/jsm/jsm_neo.c 		spin_unlock_irqrestore(&ch->ch_lock, lock_flags);
ch                860 drivers/tty/serial/jsm/jsm_neo.c 		jsm_dbg(INTR, &ch->ch_bd->pci_dev,
ch                870 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_err_parity++;
ch                871 drivers/tty/serial/jsm/jsm_neo.c 		jsm_dbg(INTR, &ch->ch_bd->pci_dev, "%s:%d Port: %d. PAR ERR!\n",
ch                876 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_err_frame++;
ch                877 drivers/tty/serial/jsm/jsm_neo.c 		jsm_dbg(INTR, &ch->ch_bd->pci_dev, "%s:%d Port: %d. FRM ERR!\n",
ch                882 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_err_break++;
ch                883 drivers/tty/serial/jsm/jsm_neo.c 		jsm_dbg(INTR, &ch->ch_bd->pci_dev,
ch                895 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_err_overrun++;
ch                896 drivers/tty/serial/jsm/jsm_neo.c 		jsm_dbg(INTR, &ch->ch_bd->pci_dev,
ch                902 drivers/tty/serial/jsm/jsm_neo.c 		spin_lock_irqsave(&ch->ch_lock, lock_flags);
ch                903 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
ch                904 drivers/tty/serial/jsm/jsm_neo.c 		spin_unlock_irqrestore(&ch->ch_lock, lock_flags);
ch                907 drivers/tty/serial/jsm/jsm_neo.c 		neo_copy_data_from_queue_to_uart(ch);
ch                910 drivers/tty/serial/jsm/jsm_neo.c 		spin_lock_irqsave(&ch->ch_lock, lock_flags);
ch                911 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
ch                912 drivers/tty/serial/jsm/jsm_neo.c 		spin_unlock_irqrestore(&ch->ch_lock, lock_flags);
ch                915 drivers/tty/serial/jsm/jsm_neo.c 		neo_copy_data_from_queue_to_uart(ch);
ch                923 drivers/tty/serial/jsm/jsm_neo.c static void neo_param(struct jsm_channel *ch)
ch                931 drivers/tty/serial/jsm/jsm_neo.c 	bd = ch->ch_bd;
ch                938 drivers/tty/serial/jsm/jsm_neo.c 	if ((ch->ch_c_cflag & (CBAUD)) == 0) {
ch                939 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_r_head = ch->ch_r_tail = 0;
ch                940 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_e_head = ch->ch_e_tail = 0;
ch                942 drivers/tty/serial/jsm/jsm_neo.c 		neo_flush_uart_write(ch);
ch                943 drivers/tty/serial/jsm/jsm_neo.c 		neo_flush_uart_read(ch);
ch                945 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_flags |= (CH_BAUD0);
ch                946 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_mostat &= ~(UART_MCR_RTS | UART_MCR_DTR);
ch                947 drivers/tty/serial/jsm/jsm_neo.c 		neo_assert_modem_signals(ch);
ch                978 drivers/tty/serial/jsm/jsm_neo.c 		cflag = C_BAUD(ch->uart_port.state->port.tty);
ch                987 drivers/tty/serial/jsm/jsm_neo.c 		if (ch->ch_flags & CH_BAUD0)
ch                988 drivers/tty/serial/jsm/jsm_neo.c 			ch->ch_flags &= ~(CH_BAUD0);
ch                991 drivers/tty/serial/jsm/jsm_neo.c 	if (ch->ch_c_cflag & PARENB)
ch                994 drivers/tty/serial/jsm/jsm_neo.c 	if (!(ch->ch_c_cflag & PARODD))
ch               1002 drivers/tty/serial/jsm/jsm_neo.c 	if (ch->ch_c_cflag & CMSPAR)
ch               1006 drivers/tty/serial/jsm/jsm_neo.c 	if (ch->ch_c_cflag & CSTOPB)
ch               1009 drivers/tty/serial/jsm/jsm_neo.c 	switch (ch->ch_c_cflag & CSIZE) {
ch               1025 drivers/tty/serial/jsm/jsm_neo.c 	ier = readb(&ch->ch_neo_uart->ier);
ch               1026 drivers/tty/serial/jsm/jsm_neo.c 	uart_lcr = readb(&ch->ch_neo_uart->lcr);
ch               1028 drivers/tty/serial/jsm/jsm_neo.c 	quot = ch->ch_bd->bd_dividend / baud;
ch               1031 drivers/tty/serial/jsm/jsm_neo.c 		writeb(UART_LCR_DLAB, &ch->ch_neo_uart->lcr);
ch               1032 drivers/tty/serial/jsm/jsm_neo.c 		writeb((quot & 0xff), &ch->ch_neo_uart->txrx);
ch               1033 drivers/tty/serial/jsm/jsm_neo.c 		writeb((quot >> 8), &ch->ch_neo_uart->ier);
ch               1034 drivers/tty/serial/jsm/jsm_neo.c 		writeb(lcr, &ch->ch_neo_uart->lcr);
ch               1038 drivers/tty/serial/jsm/jsm_neo.c 		writeb(lcr, &ch->ch_neo_uart->lcr);
ch               1040 drivers/tty/serial/jsm/jsm_neo.c 	if (ch->ch_c_cflag & CREAD)
ch               1045 drivers/tty/serial/jsm/jsm_neo.c 	writeb(ier, &ch->ch_neo_uart->ier);
ch               1048 drivers/tty/serial/jsm/jsm_neo.c 	neo_set_new_start_stop_chars(ch);
ch               1050 drivers/tty/serial/jsm/jsm_neo.c 	if (ch->ch_c_cflag & CRTSCTS)
ch               1051 drivers/tty/serial/jsm/jsm_neo.c 		neo_set_cts_flow_control(ch);
ch               1052 drivers/tty/serial/jsm/jsm_neo.c 	else if (ch->ch_c_iflag & IXON) {
ch               1054 drivers/tty/serial/jsm/jsm_neo.c 		if ((ch->ch_startc == __DISABLED_CHAR) || (ch->ch_stopc == __DISABLED_CHAR))
ch               1055 drivers/tty/serial/jsm/jsm_neo.c 			neo_set_no_output_flow_control(ch);
ch               1057 drivers/tty/serial/jsm/jsm_neo.c 			neo_set_ixon_flow_control(ch);
ch               1060 drivers/tty/serial/jsm/jsm_neo.c 		neo_set_no_output_flow_control(ch);
ch               1062 drivers/tty/serial/jsm/jsm_neo.c 	if (ch->ch_c_cflag & CRTSCTS)
ch               1063 drivers/tty/serial/jsm/jsm_neo.c 		neo_set_rts_flow_control(ch);
ch               1064 drivers/tty/serial/jsm/jsm_neo.c 	else if (ch->ch_c_iflag & IXOFF) {
ch               1066 drivers/tty/serial/jsm/jsm_neo.c 		if ((ch->ch_startc == __DISABLED_CHAR) || (ch->ch_stopc == __DISABLED_CHAR))
ch               1067 drivers/tty/serial/jsm/jsm_neo.c 			neo_set_no_input_flow_control(ch);
ch               1069 drivers/tty/serial/jsm/jsm_neo.c 			neo_set_ixoff_flow_control(ch);
ch               1072 drivers/tty/serial/jsm/jsm_neo.c 		neo_set_no_input_flow_control(ch);
ch               1079 drivers/tty/serial/jsm/jsm_neo.c 		writeb(1, &ch->ch_neo_uart->rfifo);
ch               1080 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_r_tlevel = 1;
ch               1083 drivers/tty/serial/jsm/jsm_neo.c 	neo_assert_modem_signals(ch);
ch               1086 drivers/tty/serial/jsm/jsm_neo.c 	neo_parse_modem(ch, readb(&ch->ch_neo_uart->msr));
ch               1098 drivers/tty/serial/jsm/jsm_neo.c 	struct jsm_channel *ch;
ch               1174 drivers/tty/serial/jsm/jsm_neo.c 			ch = brd->channels[port];
ch               1175 drivers/tty/serial/jsm/jsm_neo.c 			if (!ch)
ch               1178 drivers/tty/serial/jsm/jsm_neo.c 			neo_copy_data_from_uart_to_queue(ch);
ch               1181 drivers/tty/serial/jsm/jsm_neo.c 			spin_lock_irqsave(&ch->ch_lock, lock_flags2);
ch               1182 drivers/tty/serial/jsm/jsm_neo.c 			jsm_check_queue_flow_control(ch);
ch               1183 drivers/tty/serial/jsm/jsm_neo.c 			spin_unlock_irqrestore(&ch->ch_lock, lock_flags2);
ch               1242 drivers/tty/serial/jsm/jsm_neo.c static void neo_disable_receiver(struct jsm_channel *ch)
ch               1244 drivers/tty/serial/jsm/jsm_neo.c 	u8 tmp = readb(&ch->ch_neo_uart->ier);
ch               1246 drivers/tty/serial/jsm/jsm_neo.c 	writeb(tmp, &ch->ch_neo_uart->ier);
ch               1249 drivers/tty/serial/jsm/jsm_neo.c 	neo_pci_posting_flush(ch->ch_bd);
ch               1258 drivers/tty/serial/jsm/jsm_neo.c static void neo_enable_receiver(struct jsm_channel *ch)
ch               1260 drivers/tty/serial/jsm/jsm_neo.c 	u8 tmp = readb(&ch->ch_neo_uart->ier);
ch               1262 drivers/tty/serial/jsm/jsm_neo.c 	writeb(tmp, &ch->ch_neo_uart->ier);
ch               1265 drivers/tty/serial/jsm/jsm_neo.c 	neo_pci_posting_flush(ch->ch_bd);
ch               1268 drivers/tty/serial/jsm/jsm_neo.c static void neo_send_start_character(struct jsm_channel *ch)
ch               1270 drivers/tty/serial/jsm/jsm_neo.c 	if (!ch)
ch               1273 drivers/tty/serial/jsm/jsm_neo.c 	if (ch->ch_startc != __DISABLED_CHAR) {
ch               1274 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_xon_sends++;
ch               1275 drivers/tty/serial/jsm/jsm_neo.c 		writeb(ch->ch_startc, &ch->ch_neo_uart->txrx);
ch               1278 drivers/tty/serial/jsm/jsm_neo.c 		neo_pci_posting_flush(ch->ch_bd);
ch               1282 drivers/tty/serial/jsm/jsm_neo.c static void neo_send_stop_character(struct jsm_channel *ch)
ch               1284 drivers/tty/serial/jsm/jsm_neo.c 	if (!ch)
ch               1287 drivers/tty/serial/jsm/jsm_neo.c 	if (ch->ch_stopc != __DISABLED_CHAR) {
ch               1288 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_xoff_sends++;
ch               1289 drivers/tty/serial/jsm/jsm_neo.c 		writeb(ch->ch_stopc, &ch->ch_neo_uart->txrx);
ch               1292 drivers/tty/serial/jsm/jsm_neo.c 		neo_pci_posting_flush(ch->ch_bd);
ch               1299 drivers/tty/serial/jsm/jsm_neo.c static void neo_uart_init(struct jsm_channel *ch)
ch               1301 drivers/tty/serial/jsm/jsm_neo.c 	writeb(0, &ch->ch_neo_uart->ier);
ch               1302 drivers/tty/serial/jsm/jsm_neo.c 	writeb(0, &ch->ch_neo_uart->efr);
ch               1303 drivers/tty/serial/jsm/jsm_neo.c 	writeb(UART_EFR_ECB, &ch->ch_neo_uart->efr);
ch               1306 drivers/tty/serial/jsm/jsm_neo.c 	readb(&ch->ch_neo_uart->txrx);
ch               1307 drivers/tty/serial/jsm/jsm_neo.c 	writeb((UART_FCR_ENABLE_FIFO|UART_FCR_CLEAR_RCVR|UART_FCR_CLEAR_XMIT), &ch->ch_neo_uart->isr_fcr);
ch               1308 drivers/tty/serial/jsm/jsm_neo.c 	readb(&ch->ch_neo_uart->lsr);
ch               1309 drivers/tty/serial/jsm/jsm_neo.c 	readb(&ch->ch_neo_uart->msr);
ch               1311 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_flags |= CH_FIFO_ENABLED;
ch               1314 drivers/tty/serial/jsm/jsm_neo.c 	writeb(ch->ch_mostat, &ch->ch_neo_uart->mcr);
ch               1320 drivers/tty/serial/jsm/jsm_neo.c static void neo_uart_off(struct jsm_channel *ch)
ch               1323 drivers/tty/serial/jsm/jsm_neo.c 	writeb(0, &ch->ch_neo_uart->efr);
ch               1326 drivers/tty/serial/jsm/jsm_neo.c 	writeb(0, &ch->ch_neo_uart->ier);
ch               1329 drivers/tty/serial/jsm/jsm_neo.c static u32 neo_get_uart_bytes_left(struct jsm_channel *ch)
ch               1332 drivers/tty/serial/jsm/jsm_neo.c 	u8 lsr = readb(&ch->ch_neo_uart->lsr);
ch               1335 drivers/tty/serial/jsm/jsm_neo.c 	ch->ch_cached_lsr |= lsr;
ch               1341 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
ch               1349 drivers/tty/serial/jsm/jsm_neo.c static void neo_send_break(struct jsm_channel *ch)
ch               1358 drivers/tty/serial/jsm/jsm_neo.c 	if (!(ch->ch_flags & CH_BREAK_SENDING)) {
ch               1359 drivers/tty/serial/jsm/jsm_neo.c 		u8 temp = readb(&ch->ch_neo_uart->lcr);
ch               1360 drivers/tty/serial/jsm/jsm_neo.c 		writeb((temp | UART_LCR_SBC), &ch->ch_neo_uart->lcr);
ch               1361 drivers/tty/serial/jsm/jsm_neo.c 		ch->ch_flags |= (CH_BREAK_SENDING);
ch               1364 drivers/tty/serial/jsm/jsm_neo.c 		neo_pci_posting_flush(ch->ch_bd);
ch               1376 drivers/tty/serial/jsm/jsm_neo.c static void neo_send_immediate_char(struct jsm_channel *ch, unsigned char c)
ch               1378 drivers/tty/serial/jsm/jsm_neo.c 	if (!ch)
ch               1381 drivers/tty/serial/jsm/jsm_neo.c 	writeb(c, &ch->ch_neo_uart->txrx);
ch               1384 drivers/tty/serial/jsm/jsm_neo.c 	neo_pci_posting_flush(ch->ch_bd);
ch                 25 drivers/tty/serial/jsm/jsm_tty.c static void jsm_carrier(struct jsm_channel *ch);
ch                 27 drivers/tty/serial/jsm/jsm_tty.c static inline int jsm_get_mstat(struct jsm_channel *ch)
ch                 32 drivers/tty/serial/jsm/jsm_tty.c 	jsm_dbg(IOCTL, &ch->ch_bd->pci_dev, "start\n");
ch                 34 drivers/tty/serial/jsm/jsm_tty.c 	mstat = (ch->ch_mostat | ch->ch_mistat);
ch                 51 drivers/tty/serial/jsm/jsm_tty.c 	jsm_dbg(IOCTL, &ch->ch_bd->pci_dev, "finish\n");
ch                148 drivers/tty/serial/jsm/jsm_tty.c static void jsm_tty_send_xchar(struct uart_port *port, char ch)
ch                157 drivers/tty/serial/jsm/jsm_tty.c 	if (ch == termios->c_cc[VSTART])
ch                160 drivers/tty/serial/jsm/jsm_tty.c 	if (ch == termios->c_cc[VSTOP])
ch                367 drivers/tty/serial/jsm/jsm_tty.c 	struct jsm_channel *ch;
ch                400 drivers/tty/serial/jsm/jsm_tty.c 	ch = brd->channels[0];
ch                404 drivers/tty/serial/jsm/jsm_tty.c 	for (i = 0; i < brd->nasync; i++, ch = brd->channels[i]) {
ch                409 drivers/tty/serial/jsm/jsm_tty.c 		spin_lock_init(&ch->ch_lock);
ch                412 drivers/tty/serial/jsm/jsm_tty.c 			ch->ch_neo_uart =  vaddr + (brd->bd_uart_offset * i);
ch                414 drivers/tty/serial/jsm/jsm_tty.c 			ch->ch_cls_uart =  vaddr + (brd->bd_uart_offset * i);
ch                416 drivers/tty/serial/jsm/jsm_tty.c 		ch->ch_bd = brd;
ch                417 drivers/tty/serial/jsm/jsm_tty.c 		ch->ch_portnum = i;
ch                420 drivers/tty/serial/jsm/jsm_tty.c 		ch->ch_close_delay = 250;
ch                422 drivers/tty/serial/jsm/jsm_tty.c 		init_waitqueue_head(&ch->ch_flags_wait);
ch                480 drivers/tty/serial/jsm/jsm_tty.c 	struct jsm_channel *ch;
ch                499 drivers/tty/serial/jsm/jsm_tty.c 		ch = brd->channels[i];
ch                501 drivers/tty/serial/jsm/jsm_tty.c 		clear_bit(ch->uart_port.line, linemap);
ch                509 drivers/tty/serial/jsm/jsm_tty.c void jsm_input(struct jsm_channel *ch)
ch                523 drivers/tty/serial/jsm/jsm_tty.c 	jsm_dbg(READ, &ch->ch_bd->pci_dev, "start\n");
ch                525 drivers/tty/serial/jsm/jsm_tty.c 	port = &ch->uart_port.state->port;
ch                528 drivers/tty/serial/jsm/jsm_tty.c 	bd = ch->ch_bd;
ch                532 drivers/tty/serial/jsm/jsm_tty.c 	spin_lock_irqsave(&ch->ch_lock, lock_flags);
ch                541 drivers/tty/serial/jsm/jsm_tty.c 	head = ch->ch_r_head & rmask;
ch                542 drivers/tty/serial/jsm/jsm_tty.c 	tail = ch->ch_r_tail & rmask;
ch                546 drivers/tty/serial/jsm/jsm_tty.c 		spin_unlock_irqrestore(&ch->ch_lock, lock_flags);
ch                550 drivers/tty/serial/jsm/jsm_tty.c 	jsm_dbg(READ, &ch->ch_bd->pci_dev, "start\n");
ch                558 drivers/tty/serial/jsm/jsm_tty.c 		jsm_dbg(READ, &ch->ch_bd->pci_dev,
ch                560 drivers/tty/serial/jsm/jsm_tty.c 			data_len, ch->ch_portnum);
ch                561 drivers/tty/serial/jsm/jsm_tty.c 		ch->ch_r_head = tail;
ch                564 drivers/tty/serial/jsm/jsm_tty.c 		jsm_check_queue_flow_control(ch);
ch                566 drivers/tty/serial/jsm/jsm_tty.c 		spin_unlock_irqrestore(&ch->ch_lock, lock_flags);
ch                573 drivers/tty/serial/jsm/jsm_tty.c 	if (ch->ch_flags & CH_STOPI) {
ch                574 drivers/tty/serial/jsm/jsm_tty.c 		spin_unlock_irqrestore(&ch->ch_lock, lock_flags);
ch                575 drivers/tty/serial/jsm/jsm_tty.c 		jsm_dbg(READ, &ch->ch_bd->pci_dev,
ch                577 drivers/tty/serial/jsm/jsm_tty.c 			ch->ch_portnum, head, tail);
ch                581 drivers/tty/serial/jsm/jsm_tty.c 	jsm_dbg(READ, &ch->ch_bd->pci_dev, "start 2\n");
ch                610 drivers/tty/serial/jsm/jsm_tty.c 				if (*(ch->ch_equeue +tail +i) & UART_LSR_BI)
ch                611 drivers/tty/serial/jsm/jsm_tty.c 					tty_insert_flip_char(port, *(ch->ch_rqueue +tail +i),  TTY_BREAK);
ch                612 drivers/tty/serial/jsm/jsm_tty.c 				else if (*(ch->ch_equeue +tail +i) & UART_LSR_PE)
ch                613 drivers/tty/serial/jsm/jsm_tty.c 					tty_insert_flip_char(port, *(ch->ch_rqueue +tail +i), TTY_PARITY);
ch                614 drivers/tty/serial/jsm/jsm_tty.c 				else if (*(ch->ch_equeue +tail +i) & UART_LSR_FE)
ch                615 drivers/tty/serial/jsm/jsm_tty.c 					tty_insert_flip_char(port, *(ch->ch_rqueue +tail +i), TTY_FRAME);
ch                617 drivers/tty/serial/jsm/jsm_tty.c 					tty_insert_flip_char(port, *(ch->ch_rqueue +tail +i), TTY_NORMAL);
ch                620 drivers/tty/serial/jsm/jsm_tty.c 			tty_insert_flip_string(port, ch->ch_rqueue + tail, s);
ch                628 drivers/tty/serial/jsm/jsm_tty.c 	ch->ch_r_tail = tail & rmask;
ch                629 drivers/tty/serial/jsm/jsm_tty.c 	ch->ch_e_tail = tail & rmask;
ch                630 drivers/tty/serial/jsm/jsm_tty.c 	jsm_check_queue_flow_control(ch);
ch                631 drivers/tty/serial/jsm/jsm_tty.c 	spin_unlock_irqrestore(&ch->ch_lock, lock_flags);
ch                636 drivers/tty/serial/jsm/jsm_tty.c 	jsm_dbg(IOCTL, &ch->ch_bd->pci_dev, "finish\n");
ch                639 drivers/tty/serial/jsm/jsm_tty.c static void jsm_carrier(struct jsm_channel *ch)
ch                646 drivers/tty/serial/jsm/jsm_tty.c 	jsm_dbg(CARR, &ch->ch_bd->pci_dev, "start\n");
ch                648 drivers/tty/serial/jsm/jsm_tty.c 	bd = ch->ch_bd;
ch                652 drivers/tty/serial/jsm/jsm_tty.c 	if (ch->ch_mistat & UART_MSR_DCD) {
ch                653 drivers/tty/serial/jsm/jsm_tty.c 		jsm_dbg(CARR, &ch->ch_bd->pci_dev, "mistat: %x D_CD: %x\n",
ch                654 drivers/tty/serial/jsm/jsm_tty.c 			ch->ch_mistat, ch->ch_mistat & UART_MSR_DCD);
ch                658 drivers/tty/serial/jsm/jsm_tty.c 	if (ch->ch_c_cflag & CLOCAL)
ch                661 drivers/tty/serial/jsm/jsm_tty.c 	jsm_dbg(CARR, &ch->ch_bd->pci_dev, "DCD: physical: %d virt: %d\n",
ch                667 drivers/tty/serial/jsm/jsm_tty.c 	if (((ch->ch_flags & CH_FCAR) == 0) && (virt_carrier == 1)) {
ch                674 drivers/tty/serial/jsm/jsm_tty.c 		jsm_dbg(CARR, &ch->ch_bd->pci_dev, "carrier: virt DCD rose\n");
ch                676 drivers/tty/serial/jsm/jsm_tty.c 		if (waitqueue_active(&(ch->ch_flags_wait)))
ch                677 drivers/tty/serial/jsm/jsm_tty.c 			wake_up_interruptible(&ch->ch_flags_wait);
ch                683 drivers/tty/serial/jsm/jsm_tty.c 	if (((ch->ch_flags & CH_CD) == 0) && (phys_carrier == 1)) {
ch                690 drivers/tty/serial/jsm/jsm_tty.c 		jsm_dbg(CARR, &ch->ch_bd->pci_dev,
ch                693 drivers/tty/serial/jsm/jsm_tty.c 		if (waitqueue_active(&(ch->ch_flags_wait)))
ch                694 drivers/tty/serial/jsm/jsm_tty.c 			wake_up_interruptible(&ch->ch_flags_wait);
ch                706 drivers/tty/serial/jsm/jsm_tty.c 	if ((virt_carrier == 0) && ((ch->ch_flags & CH_CD) != 0)
ch                720 drivers/tty/serial/jsm/jsm_tty.c 		if (waitqueue_active(&(ch->ch_flags_wait)))
ch                721 drivers/tty/serial/jsm/jsm_tty.c 			wake_up_interruptible(&ch->ch_flags_wait);
ch                728 drivers/tty/serial/jsm/jsm_tty.c 		ch->ch_flags |= CH_FCAR;
ch                730 drivers/tty/serial/jsm/jsm_tty.c 		ch->ch_flags &= ~CH_FCAR;
ch                733 drivers/tty/serial/jsm/jsm_tty.c 		ch->ch_flags |= CH_CD;
ch                735 drivers/tty/serial/jsm/jsm_tty.c 		ch->ch_flags &= ~CH_CD;
ch                739 drivers/tty/serial/jsm/jsm_tty.c void jsm_check_queue_flow_control(struct jsm_channel *ch)
ch                741 drivers/tty/serial/jsm/jsm_tty.c 	struct board_ops *bd_ops = ch->ch_bd->bd_ops;
ch                745 drivers/tty/serial/jsm/jsm_tty.c 	if ((qleft = ch->ch_r_tail - ch->ch_r_head - 1) < 0)
ch                765 drivers/tty/serial/jsm/jsm_tty.c 		if (ch->ch_c_cflag & CRTSCTS) {
ch                766 drivers/tty/serial/jsm/jsm_tty.c 			if (!(ch->ch_flags & CH_RECEIVER_OFF)) {
ch                767 drivers/tty/serial/jsm/jsm_tty.c 				bd_ops->disable_receiver(ch);
ch                768 drivers/tty/serial/jsm/jsm_tty.c 				ch->ch_flags |= (CH_RECEIVER_OFF);
ch                769 drivers/tty/serial/jsm/jsm_tty.c 				jsm_dbg(READ, &ch->ch_bd->pci_dev,
ch                775 drivers/tty/serial/jsm/jsm_tty.c 		else if (ch->ch_c_iflag & IXOFF) {
ch                776 drivers/tty/serial/jsm/jsm_tty.c 			if (ch->ch_stops_sent <= MAX_STOPS_SENT) {
ch                777 drivers/tty/serial/jsm/jsm_tty.c 				bd_ops->send_stop_character(ch);
ch                778 drivers/tty/serial/jsm/jsm_tty.c 				ch->ch_stops_sent++;
ch                779 drivers/tty/serial/jsm/jsm_tty.c 				jsm_dbg(READ, &ch->ch_bd->pci_dev,
ch                781 drivers/tty/serial/jsm/jsm_tty.c 					ch->ch_stops_sent);
ch                803 drivers/tty/serial/jsm/jsm_tty.c 		if (ch->ch_c_cflag & CRTSCTS) {
ch                804 drivers/tty/serial/jsm/jsm_tty.c 			if (ch->ch_flags & CH_RECEIVER_OFF) {
ch                805 drivers/tty/serial/jsm/jsm_tty.c 				bd_ops->enable_receiver(ch);
ch                806 drivers/tty/serial/jsm/jsm_tty.c 				ch->ch_flags &= ~(CH_RECEIVER_OFF);
ch                807 drivers/tty/serial/jsm/jsm_tty.c 				jsm_dbg(READ, &ch->ch_bd->pci_dev,
ch                813 drivers/tty/serial/jsm/jsm_tty.c 		else if (ch->ch_c_iflag & IXOFF && ch->ch_stops_sent) {
ch                814 drivers/tty/serial/jsm/jsm_tty.c 			ch->ch_stops_sent = 0;
ch                815 drivers/tty/serial/jsm/jsm_tty.c 			bd_ops->send_start_character(ch);
ch                816 drivers/tty/serial/jsm/jsm_tty.c 			jsm_dbg(READ, &ch->ch_bd->pci_dev,
ch                 98 drivers/tty/serial/kgdb_nmi.c static void kgdb_tty_recv(int ch)
ch                101 drivers/tty/serial/kgdb_nmi.c 	char c = ch;
ch                103 drivers/tty/serial/kgdb_nmi.c 	if (!kgdb_nmi_port || ch < 0)
ch                194 drivers/tty/serial/kgdb_nmi.c 	char ch;
ch                203 drivers/tty/serial/kgdb_nmi.c 	while (kfifo_out(&priv->fifo, &ch, 1))
ch                204 drivers/tty/serial/kgdb_nmi.c 		tty_insert_flip_char(&priv->port, ch, TTY_NORMAL);
ch                166 drivers/tty/serial/lantiq.c 	unsigned int ch = 0, rsr = 0, fifocnt;
ch                172 drivers/tty/serial/lantiq.c 		ch = readb(port->membase + LTQ_ASC_RBUF);
ch                207 drivers/tty/serial/lantiq.c 			tty_insert_flip_char(tport, ch, flag);
ch                218 drivers/tty/serial/lantiq.c 	if (ch != 0)
ch                602 drivers/tty/serial/lantiq.c lqasc_console_putchar(struct uart_port *port, int ch)
ch                613 drivers/tty/serial/lantiq.c 	writeb(ch, port->membase + LTQ_ASC_TBUF);
ch                126 drivers/tty/serial/lpc32xx_hs.c static void lpc32xx_hsuart_console_putchar(struct uart_port *port, int ch)
ch                129 drivers/tty/serial/lpc32xx_hs.c 	writel((u32)ch, LPC32XX_HSUART_FIFO(port->membase));
ch                218 drivers/tty/serial/max3100.c 	unsigned int ch, flg, status = 0;
ch                223 drivers/tty/serial/max3100.c 		ch = rx & (s->parity & MAX3100_7BIT ? 0x7f : 0xff);
ch                243 drivers/tty/serial/max3100.c 		uart_insert_char(&s->port, status, MAX3100_STATUS_OE, ch, flg);
ch                657 drivers/tty/serial/max310x.c 	unsigned int sts, ch, flag, i;
ch                703 drivers/tty/serial/max310x.c 			ch = max310x_port_read(port, MAX310X_RHR_REG);
ch                735 drivers/tty/serial/max310x.c 			if (uart_handle_sysrq_char(port, ch))
ch                741 drivers/tty/serial/max310x.c 			uart_insert_char(port, sts, MAX310X_LSR_RXOVR_BIT, ch, flag);
ch                284 drivers/tty/serial/mcf.c 	unsigned char status, ch, flag;
ch                287 drivers/tty/serial/mcf.c 		ch = readb(port->membase + MCFUART_URB);
ch                317 drivers/tty/serial/mcf.c 		if (uart_handle_sysrq_char(port, ch))
ch                319 drivers/tty/serial/mcf.c 		uart_insert_char(port, status, MCFUART_USR_RXOVERRUN, ch, flag);
ch                140 drivers/tty/serial/meson_uart.c 	unsigned int ch;
ch                159 drivers/tty/serial/meson_uart.c 		ch = xmit->buf[xmit->tail];
ch                160 drivers/tty/serial/meson_uart.c 		writel(ch, port->membase + AML_UART_WFIFO);
ch                179 drivers/tty/serial/meson_uart.c 	u32 ostatus, status, ch, mode;
ch                209 drivers/tty/serial/meson_uart.c 		ch = readl(port->membase + AML_UART_RFIFO);
ch                210 drivers/tty/serial/meson_uart.c 		ch &= 0xff;
ch                212 drivers/tty/serial/meson_uart.c 		if ((ostatus & AML_UART_FRAME_ERR) && (ch == 0)) {
ch                219 drivers/tty/serial/meson_uart.c 		if (uart_handle_sysrq_char(port, ch))
ch                223 drivers/tty/serial/meson_uart.c 			tty_insert_flip_char(tport, ch, flag);
ch                457 drivers/tty/serial/meson_uart.c static void meson_console_putchar(struct uart_port *port, int ch)
ch                464 drivers/tty/serial/meson_uart.c 	writel(ch, port->membase + AML_UART_WFIFO);
ch                157 drivers/tty/serial/milbeaut_usio.c 	char ch = 0;
ch                169 drivers/tty/serial/milbeaut_usio.c 			ch = readw(port->membase + MLB_USIO_REG_DR);
ch                172 drivers/tty/serial/milbeaut_usio.c 			if (uart_handle_sysrq_char(port, ch))
ch                175 drivers/tty/serial/milbeaut_usio.c 					 ch, flag);
ch                185 drivers/tty/serial/milbeaut_usio.c 			ch = 0;
ch                189 drivers/tty/serial/milbeaut_usio.c 				ch = 0;
ch                193 drivers/tty/serial/milbeaut_usio.c 					ch = 0;
ch                197 drivers/tty/serial/milbeaut_usio.c 					 ch, flag);
ch               1376 drivers/tty/serial/mpc52xx_uart.c 	unsigned char ch, flag;
ch               1382 drivers/tty/serial/mpc52xx_uart.c 		ch = psc_ops->read_char(port);
ch               1386 drivers/tty/serial/mpc52xx_uart.c 		if (uart_handle_sysrq_char(port, ch)) {
ch               1420 drivers/tty/serial/mpc52xx_uart.c 		tty_insert_flip_char(tport, ch, flag);
ch                435 drivers/tty/serial/mps2-uart.c static void mps2_uart_console_putchar(struct uart_port *port, int ch)
ch                440 drivers/tty/serial/mps2-uart.c 	mps2_uart_write8(port, ch, UARTn_DATA);
ch                487 drivers/tty/serial/mps2-uart.c static void mps2_early_putchar(struct uart_port *port, int ch)
ch                492 drivers/tty/serial/mps2-uart.c 	writeb((unsigned char)ch, port->membase + UARTn_DATA);
ch                239 drivers/tty/serial/mvebu-uart.c 	unsigned char ch = 0;
ch                244 drivers/tty/serial/mvebu-uart.c 			ch = readl(port->membase + UART_RBR(port));
ch                245 drivers/tty/serial/mvebu-uart.c 			ch &= 0xff;
ch                266 drivers/tty/serial/mvebu-uart.c 		if (uart_handle_sysrq_char(port, ch))
ch                280 drivers/tty/serial/mvebu-uart.c 			tty_insert_flip_char(tport, ch, flag);
ch                651 drivers/tty/serial/mvebu-uart.c static void mvebu_uart_console_putchar(struct uart_port *port, int ch)
ch                654 drivers/tty/serial/mvebu-uart.c 	writel(ch, port->membase + UART_TSH(port));
ch               1340 drivers/tty/serial/mxs-auart.c static void mxs_auart_console_putchar(struct uart_port *port, int ch)
ch               1351 drivers/tty/serial/mxs-auart.c 	mxs_write(ch, s, REG_DATA);
ch                496 drivers/tty/serial/omap-serial.c 	unsigned char ch = 0;
ch                499 drivers/tty/serial/omap-serial.c 		ch = serial_in(up, UART_RX);
ch                543 drivers/tty/serial/omap-serial.c 	unsigned char ch = 0;
ch                549 drivers/tty/serial/omap-serial.c 	ch = serial_in(up, UART_RX);
ch                553 drivers/tty/serial/omap-serial.c 	if (uart_handle_sysrq_char(&up->port, ch))
ch                556 drivers/tty/serial/omap-serial.c 	uart_insert_char(&up->port, lsr, UART_LSR_OE, ch, flag);
ch               1197 drivers/tty/serial/omap-serial.c static void serial_omap_poll_put_char(struct uart_port *port, unsigned char ch)
ch               1203 drivers/tty/serial/omap-serial.c 	serial_out(up, UART_TX, ch);
ch               1291 drivers/tty/serial/omap-serial.c static void serial_omap_console_putchar(struct uart_port *port, int ch)
ch               1296 drivers/tty/serial/omap-serial.c 	serial_out(up, UART_TX, ch);
ch                181 drivers/tty/serial/owl-uart.c 	unsigned int ch;
ch                198 drivers/tty/serial/owl-uart.c 		ch = xmit->buf[xmit->tail];
ch                199 drivers/tty/serial/owl-uart.c 		owl_uart_write(port, ch, OWL_UART_TXDAT);
ch                483 drivers/tty/serial/owl-uart.c static void owl_console_putchar(struct uart_port *port, int ch)
ch                491 drivers/tty/serial/owl-uart.c 	owl_uart_write(port, ch, OWL_UART_TXDAT);
ch               1614 drivers/tty/serial/pch_uart.c static void pch_console_putchar(struct uart_port *port, int ch)
ch               1620 drivers/tty/serial/pch_uart.c 	iowrite8(ch, priv->membase + PCH_UART_THR);
ch                694 drivers/tty/serial/pic32_uart.c static void pic32_console_putchar(struct uart_port *port, int ch)
ch                707 drivers/tty/serial/pic32_uart.c 	pic32_uart_writel(sport, PIC32_UART_TX, ch & 0xff);
ch                222 drivers/tty/serial/pmac_zilog.c 	unsigned char ch, r1, drop, flag;
ch                237 drivers/tty/serial/pmac_zilog.c 		ch = read_zsdata(uap);
ch                244 drivers/tty/serial/pmac_zilog.c 		ch &= uap->parity_mask;
ch                245 drivers/tty/serial/pmac_zilog.c 		if (ch == 0 && uap->flags & PMACZILOG_FLAG_BREAK) {
ch                252 drivers/tty/serial/pmac_zilog.c 		if (ch == '\x0f') {
ch                260 drivers/tty/serial/pmac_zilog.c 			swallow = uart_handle_sysrq_char(&uap->port, ch);
ch                299 drivers/tty/serial/pmac_zilog.c 			tty_insert_flip_char(port, ch, flag);
ch                313 drivers/tty/serial/pmac_zilog.c 		ch = read_zsreg(uap, R0);
ch                314 drivers/tty/serial/pmac_zilog.c 		if (!(ch & Rx_CH_AV))
ch               1941 drivers/tty/serial/pmac_zilog.c static void pmz_console_putchar(struct uart_port *port, int ch)
ch               1949 drivers/tty/serial/pmac_zilog.c 	write_zsdata(uap, ch);
ch                184 drivers/tty/serial/pnx8xxx_uart.c 	unsigned int status, ch, flg;
ch                189 drivers/tty/serial/pnx8xxx_uart.c 		ch = serial_in(sport, PNX8XXX_FIFO) & 0xff;
ch                228 drivers/tty/serial/pnx8xxx_uart.c 		if (uart_handle_sysrq_char(&sport->port, ch))
ch                232 drivers/tty/serial/pnx8xxx_uart.c 				ISTAT_TO_SM(PNX8XXX_UART_INT_RXOVRN), ch, flg);
ch                672 drivers/tty/serial/pnx8xxx_uart.c static void pnx8xxx_console_putchar(struct uart_port *port, int ch)
ch                682 drivers/tty/serial/pnx8xxx_uart.c 	serial_out(sport, PNX8XXX_FIFO, ch);
ch                 96 drivers/tty/serial/pxa.c 	unsigned int ch, flag;
ch                110 drivers/tty/serial/pxa.c 		ch = serial_in(up, UART_RX);
ch                157 drivers/tty/serial/pxa.c 		if (uart_handle_sysrq_char(&up->port, ch))
ch                160 drivers/tty/serial/pxa.c 		uart_insert_char(&up->port, *status, UART_LSR_OE, ch, flag);
ch                626 drivers/tty/serial/pxa.c static void serial_pxa_console_putchar(struct uart_port *port, int ch)
ch                631 drivers/tty/serial/pxa.c 	serial_out(up, UART_TX, ch);
ch                372 drivers/tty/serial/qcom_geni_serial.c static void qcom_geni_serial_wr_char(struct uart_port *uport, int ch)
ch                374 drivers/tty/serial/qcom_geni_serial.c 	writel(ch, uport->membase + SE_GENI_TX_FIFOn);
ch                332 drivers/tty/serial/rda-uart.c 	unsigned int ch;
ch                352 drivers/tty/serial/rda-uart.c 		ch = xmit->buf[xmit->tail];
ch                353 drivers/tty/serial/rda-uart.c 		rda_uart_write(port, ch, RDA_UART_RXTX_BUFFER);
ch                578 drivers/tty/serial/rda-uart.c static void rda_console_putchar(struct uart_port *port, int ch)
ch                586 drivers/tty/serial/rda-uart.c 	rda_uart_write(port, ch, RDA_UART_RXTX_BUFFER);
ch                406 drivers/tty/serial/rp2.c 		char ch = byte & 0xff;
ch                409 drivers/tty/serial/rp2.c 			if (!uart_handle_sysrq_char(&up->port, ch))
ch                410 drivers/tty/serial/rp2.c 				uart_insert_char(&up->port, byte, 0, ch,
ch                422 drivers/tty/serial/rp2.c 					 RP2_DATA_BYTE_ERR_OVERRUN_m, ch, flag);
ch                488 drivers/tty/serial/rp2.c 	int ch, handled = 0;
ch                492 drivers/tty/serial/rp2.c 	for_each_set_bit(ch, &status, PORTS_PER_ASIC) {
ch                493 drivers/tty/serial/rp2.c 		rp2_ch_interrupt(&card->ports[ch]);
ch                187 drivers/tty/serial/sa1100.c 	unsigned int status, ch, flg;
ch                192 drivers/tty/serial/sa1100.c 		ch = UART_GET_CHAR(sport);
ch                222 drivers/tty/serial/sa1100.c 		if (uart_handle_sysrq_char(&sport->port, ch))
ch                225 drivers/tty/serial/sa1100.c 		uart_insert_char(&sport->port, status, UTSR1_TO_SM(UTSR1_ROR), ch, flg);
ch                706 drivers/tty/serial/sa1100.c static void sa1100_console_putchar(struct uart_port *port, int ch)
ch                713 drivers/tty/serial/sa1100.c 	UART_PUT_CHAR(sport, ch);
ch                598 drivers/tty/serial/samsung.c 	unsigned int ufcon, ch, flag, ufstat, uerstat;
ch                616 drivers/tty/serial/samsung.c 		ch = rd_regb(port, S3C2410_URXH);
ch                645 drivers/tty/serial/samsung.c 			    ch, uerstat);
ch                671 drivers/tty/serial/samsung.c 		if (uart_handle_sysrq_char(port, ch))
ch                675 drivers/tty/serial/samsung.c 				 ch, flag);
ch               2108 drivers/tty/serial/samsung.c s3c24xx_serial_console_putchar(struct uart_port *port, int ch)
ch               2114 drivers/tty/serial/samsung.c 	wr_regb(port, S3C2410_UTXH, ch);
ch                339 drivers/tty/serial/sb1250-duart.c 	unsigned int status, ch, flag;
ch                347 drivers/tty/serial/sb1250-duart.c 		ch = read_sbdchn(sport, R_DUART_RX_HOLD);
ch                377 drivers/tty/serial/sb1250-duart.c 		if (uart_handle_sysrq_char(uport, ch))
ch                380 drivers/tty/serial/sb1250-duart.c 		uart_insert_char(uport, status, M_DUART_OVRUN_ERR, ch, flag);
ch                827 drivers/tty/serial/sb1250-duart.c static void sbd_console_putchar(struct uart_port *uport, int ch)
ch                832 drivers/tty/serial/sb1250-duart.c 	write_sbdchn(sport, R_DUART_TX_HOLD, ch);
ch                559 drivers/tty/serial/sc16is7xx.c 	unsigned int lsr = 0, ch, flag, bytes_read, i;
ch                617 drivers/tty/serial/sc16is7xx.c 			ch = s->buf[i];
ch                618 drivers/tty/serial/sc16is7xx.c 			if (uart_handle_sysrq_char(port, ch))
ch                624 drivers/tty/serial/sc16is7xx.c 			uart_insert_char(port, lsr, SC16IS7XX_LSR_OE_BIT, ch,
ch                391 drivers/tty/serial/sccnxp.c 	unsigned int ch, flag;
ch                399 drivers/tty/serial/sccnxp.c 		ch = sccnxp_port_read(port, SCCNXP_RHR_REG);
ch                432 drivers/tty/serial/sccnxp.c 		if (uart_handle_sysrq_char(port, ch))
ch                438 drivers/tty/serial/sccnxp.c 		uart_insert_char(port, sr, SR_OVR, ch, flag);
ch                641 drivers/tty/serial/serial-tegra.c 		unsigned char ch;
ch                651 drivers/tty/serial/serial-tegra.c 		ch = (unsigned char) tegra_uart_read(tup, UART_RX);
ch                654 drivers/tty/serial/serial-tegra.c 		if (!uart_handle_sysrq_char(&tup->uport, ch) && tty)
ch                655 drivers/tty/serial/serial-tegra.c 			tty_insert_flip_char(tty, ch, flag);
ch                674 drivers/tty/serial/serial_core.c static void uart_send_xchar(struct tty_struct *tty, char ch)
ch                685 drivers/tty/serial/serial_core.c 		port->ops->send_xchar(port, ch);
ch                688 drivers/tty/serial/serial_core.c 		port->x_char = ch;
ch                689 drivers/tty/serial/serial_core.c 		if (ch)
ch               2446 drivers/tty/serial/serial_core.c static void uart_poll_put_char(struct tty_driver *driver, int line, char ch)
ch               2456 drivers/tty/serial/serial_core.c 	if (ch == '\n')
ch               2458 drivers/tty/serial/serial_core.c 	port->ops->poll_put_char(port, ch);
ch               3066 drivers/tty/serial/serial_core.c 		 unsigned int overrun, unsigned int ch, unsigned int flag)
ch               3071 drivers/tty/serial/serial_core.c 		if (tty_insert_flip_char(tport, ch, flag) == 0)
ch                270 drivers/tty/serial/serial_txx9.c 	unsigned char ch;
ch                277 drivers/tty/serial/serial_txx9.c 		ch = sio_in(up, TXX9_SIRFIFO);
ch                328 drivers/tty/serial/serial_txx9.c 		if (uart_handle_sysrq_char(&up->port, ch))
ch                331 drivers/tty/serial/serial_txx9.c 		uart_insert_char(&up->port, disr, TXX9_SIDISR_UOER, ch, flag);
ch                886 drivers/tty/serial/serial_txx9.c static void serial_txx9_console_putchar(struct uart_port *port, int ch)
ch                891 drivers/tty/serial/serial_txx9.c 	sio_out(up, TXX9_SITFIFO, ch);
ch               3006 drivers/tty/serial/sh-sci.c static void serial_console_putchar(struct uart_port *port, int ch)
ch               3008 drivers/tty/serial/sh-sci.c 	sci_poll_put_char(port, ch);
ch                286 drivers/tty/serial/sifive.c static void __ssp_transmit_char(struct sifive_serial_port *ssp, int ch)
ch                288 drivers/tty/serial/sifive.c 	__ssp_writel(ch, SIFIVE_SERIAL_TXDATA_OFFS, ssp);
ch                410 drivers/tty/serial/sifive.c 	u8 ch;
ch                420 drivers/tty/serial/sifive.c 	ch = (v & SIFIVE_SERIAL_RXDATA_DATA_MASK) >>
ch                423 drivers/tty/serial/sifive.c 	return ch;
ch                437 drivers/tty/serial/sifive.c 	unsigned char ch;
ch                442 drivers/tty/serial/sifive.c 		ch = __ssp_receive_char(ssp, &is_empty);
ch                447 drivers/tty/serial/sifive.c 		uart_insert_char(&ssp->port, 0, 0, ch, TTY_NORMAL);
ch                761 drivers/tty/serial/sifive.c static void sifive_serial_console_putchar(struct uart_port *port, int ch)
ch                766 drivers/tty/serial/sifive.c 	__ssp_transmit_char(ssp, ch);
ch                398 drivers/tty/serial/sirfsoc_uart.c 	unsigned int ch, rx_count = 0;
ch                405 drivers/tty/serial/sirfsoc_uart.c 		ch = rd_regl(port, ureg->sirfsoc_rx_fifo_data) |
ch                407 drivers/tty/serial/sirfsoc_uart.c 		if (unlikely(uart_handle_sysrq_char(port, ch)))
ch                409 drivers/tty/serial/sirfsoc_uart.c 		uart_insert_char(port, 0, 0, ch, TTY_NORMAL);
ch               1115 drivers/tty/serial/sirfsoc_uart.c static void sirfsoc_uart_console_putchar(struct uart_port *port, int ch)
ch               1123 drivers/tty/serial/sirfsoc_uart.c 	wr_regl(port, ureg->sirfsoc_tx_fifo_data, ch);
ch                604 drivers/tty/serial/sprd_serial.c 	unsigned int ch, flag, lsr, max_count = SPRD_TIMEOUT;
ch                614 drivers/tty/serial/sprd_serial.c 		ch = serial_in(port, SPRD_RXD);
ch                622 drivers/tty/serial/sprd_serial.c 		if (uart_handle_sysrq_char(port, ch))
ch                625 drivers/tty/serial/sprd_serial.c 		uart_insert_char(port, lsr, SPRD_LSR_OE, ch, flag);
ch                958 drivers/tty/serial/sprd_serial.c static void sprd_console_putchar(struct uart_port *port, int ch)
ch                961 drivers/tty/serial/sprd_serial.c 	serial_out(port, SPRD_TXD, ch);
ch                862 drivers/tty/serial/st-asc.c static void asc_console_putchar(struct uart_port *port, int ch)
ch                870 drivers/tty/serial/st-asc.c 	asc_out(port, ASC_TXBUF, ch);
ch               1247 drivers/tty/serial/stm32-usart.c static void stm32_console_putchar(struct uart_port *port, int ch)
ch               1255 drivers/tty/serial/stm32-usart.c 	writel_relaxed(ch, port->membase + ofs->tdr);
ch                204 drivers/tty/serial/suncore.c int suncore_mouse_baud_detection(unsigned char ch, int is_break)
ch                223 drivers/tty/serial/suncore.c 		if (ch == 0x87) {
ch                272 drivers/tty/serial/sunhv.c static void sunhv_send_xchar(struct uart_port *port, char ch)
ch                277 drivers/tty/serial/sunhv.c 	if (ch == __DISABLED_CHAR)
ch                283 drivers/tty/serial/sunhv.c 		long status = sun4v_con_putchar(ch);
ch                171 drivers/tty/serial/sunsab.c 		unsigned char ch = buf[i], flag;
ch                216 drivers/tty/serial/sunsab.c 		if (uart_handle_sysrq_char(&up->port, ch) || !port)
ch                221 drivers/tty/serial/sunsab.c 			tty_insert_flip_char(port, ch, flag);
ch                472 drivers/tty/serial/sunsab.c static void sunsab_send_xchar(struct uart_port *port, char ch)
ch                478 drivers/tty/serial/sunsab.c 	if (ch == __DISABLED_CHAR)
ch                484 drivers/tty/serial/sunsab.c 	writeb(ch, &up->regs->w.tic);
ch                327 drivers/tty/serial/sunsu.c 	unsigned char ch, flag;
ch                332 drivers/tty/serial/sunsu.c 		ch = serial_inp(up, UART_RX);
ch                381 drivers/tty/serial/sunsu.c 		if (uart_handle_sysrq_char(&up->port, ch))
ch                384 drivers/tty/serial/sunsu.c 			tty_insert_flip_char(port, ch, flag);
ch                508 drivers/tty/serial/sunsu.c 		unsigned char ch = serial_inp(up, UART_RX);
ch                513 drivers/tty/serial/sunsu.c 			serio_interrupt(&up->serio, ch, 0);
ch                516 drivers/tty/serial/sunsu.c 			int ret = suncore_mouse_baud_detection(ch, is_break);
ch                527 drivers/tty/serial/sunsu.c 				serio_interrupt(&up->serio, ch, 0);
ch                990 drivers/tty/serial/sunsu.c static int sunsu_serio_write(struct serio *serio, unsigned char ch)
ch               1003 drivers/tty/serial/sunsu.c 	serial_out(up, UART_TX, ch);
ch               1291 drivers/tty/serial/sunsu.c static void sunsu_console_putchar(struct uart_port *port, int ch)
ch               1297 drivers/tty/serial/sunsu.c 	serial_out(up, UART_TX, ch);
ch                107 drivers/tty/serial/sunzilog.c static void sunzilog_putchar(struct uart_port *port, int ch);
ch                299 drivers/tty/serial/sunzilog.c 					 unsigned char ch, int is_break)
ch                305 drivers/tty/serial/sunzilog.c 			serio_interrupt(&up->serio, ch, 0);
ch                308 drivers/tty/serial/sunzilog.c 		int ret = suncore_mouse_baud_detection(ch, is_break);
ch                320 drivers/tty/serial/sunzilog.c 				serio_interrupt(&up->serio, ch, 0);
ch                332 drivers/tty/serial/sunzilog.c 	unsigned char ch, r1, flag;
ch                346 drivers/tty/serial/sunzilog.c 		ch = readb(&channel->control);
ch                352 drivers/tty/serial/sunzilog.c 		if (ch & BRK_ABRT)
ch                355 drivers/tty/serial/sunzilog.c 		if (!(ch & Rx_CH_AV))
ch                358 drivers/tty/serial/sunzilog.c 		ch = readb(&channel->data);
ch                361 drivers/tty/serial/sunzilog.c 		ch &= up->parity_mask;
ch                364 drivers/tty/serial/sunzilog.c 			sunzilog_kbdms_receive_chars(up, ch, 0);
ch                392 drivers/tty/serial/sunzilog.c 		if (uart_handle_sysrq_char(&up->port, ch) || !port)
ch                397 drivers/tty/serial/sunzilog.c 		    	tty_insert_flip_char(port, ch, flag);
ch               1007 drivers/tty/serial/sunzilog.c 	unsigned char ch, r1;
ch               1021 drivers/tty/serial/sunzilog.c 	ch = readb(&channel->control);
ch               1027 drivers/tty/serial/sunzilog.c 	if (ch & BRK_ABRT)
ch               1030 drivers/tty/serial/sunzilog.c 	if (!(ch & Rx_CH_AV))
ch               1033 drivers/tty/serial/sunzilog.c 	ch = readb(&channel->data);
ch               1036 drivers/tty/serial/sunzilog.c 	ch &= up->parity_mask;
ch               1037 drivers/tty/serial/sunzilog.c 	return ch;
ch               1041 drivers/tty/serial/sunzilog.c 			unsigned char ch)
ch               1046 drivers/tty/serial/sunzilog.c 	sunzilog_putchar(&up->port, ch);
ch               1132 drivers/tty/serial/sunzilog.c static void sunzilog_putchar(struct uart_port *port, int ch)
ch               1149 drivers/tty/serial/sunzilog.c 	writeb(ch, &channel->data);
ch               1158 drivers/tty/serial/sunzilog.c static int sunzilog_serio_write(struct serio *serio, unsigned char ch)
ch               1165 drivers/tty/serial/sunzilog.c 	sunzilog_putchar(&up->port, ch);
ch                 85 drivers/tty/serial/timbuart.c 		u8 ch = ioread8(port->membase + TIMBUART_RXFIFO);
ch                 87 drivers/tty/serial/timbuart.c 		tty_insert_flip_char(tport, ch, TTY_NORMAL);
ch                129 drivers/tty/serial/uartlite.c 	unsigned char ch = 0;
ch                139 drivers/tty/serial/uartlite.c 		ch = uart_in32(ULITE_RX, port);
ch                165 drivers/tty/serial/uartlite.c 		tty_insert_flip_char(tport, ch, flag);
ch                413 drivers/tty/serial/uartlite.c static void ulite_put_poll_char(struct uart_port *port, unsigned char ch)
ch                419 drivers/tty/serial/uartlite.c 	uart_out32(ch, ULITE_TX, port);
ch                474 drivers/tty/serial/uartlite.c static void ulite_console_putchar(struct uart_port *port, int ch)
ch                477 drivers/tty/serial/uartlite.c 	uart_out32(ch, ULITE_TX, port);
ch                460 drivers/tty/serial/ucc_uart.c 	unsigned char ch, *cp;
ch                494 drivers/tty/serial/ucc_uart.c 			ch = *cp++;
ch                501 drivers/tty/serial/ucc_uart.c 			if (uart_handle_sysrq_char(port, ch))
ch                505 drivers/tty/serial/ucc_uart.c 			tty_insert_flip_char(tport, ch, flg);
ch                303 drivers/tty/serial/vr41xx_siu.c 	uint8_t lsr, ch;
ch                310 drivers/tty/serial/vr41xx_siu.c 		ch = siu_read(port, UART_RX);
ch                344 drivers/tty/serial/vr41xx_siu.c 		if (uart_handle_sysrq_char(port, ch))
ch                347 drivers/tty/serial/vr41xx_siu.c 		uart_insert_char(port, lsr, UART_LSR_OE, ch, flag);
ch                750 drivers/tty/serial/vr41xx_siu.c static void siu_console_putchar(struct uart_port *port, int ch)
ch                753 drivers/tty/serial/vr41xx_siu.c 	siu_write(port, UART_TX, ch);
ch               1130 drivers/tty/serial/xilinx_uartps.c static void cdns_uart_console_putchar(struct uart_port *port, int ch)
ch               1134 drivers/tty/serial/xilinx_uartps.c 	writel(ch, port->membase + CDNS_UART_FIFO);
ch                546 drivers/tty/serial/zs.c 	unsigned int avail, status, ch, flag;
ch                558 drivers/tty/serial/zs.c 		ch = read_zsdata(zport);
ch                567 drivers/tty/serial/zs.c 		if (!ch)
ch                601 drivers/tty/serial/zs.c 		if (uart_handle_sysrq_char(uport, ch))
ch                604 drivers/tty/serial/zs.c 		uart_insert_char(uport, status, Rx_OVR, ch, flag);
ch               1130 drivers/tty/serial/zs.c static void zs_console_putchar(struct uart_port *uport, int ch)
ch               1140 drivers/tty/serial/zs.c 		write_zsdata(zport, ch);
ch               2000 drivers/tty/synclink.c static int mgsl_put_char(struct tty_struct *tty, unsigned char ch)
ch               2008 drivers/tty/synclink.c 			__FILE__, __LINE__, ch, info->device_name);
ch               2021 drivers/tty/synclink.c 			info->xmit_buf[info->xmit_head++] = ch;
ch               2311 drivers/tty/synclink.c static void mgsl_send_xchar(struct tty_struct *tty, char ch)
ch               2318 drivers/tty/synclink.c 			 __FILE__,__LINE__, info->device_name, ch );
ch               2323 drivers/tty/synclink.c 	info->x_char = ch;
ch               2324 drivers/tty/synclink.c 	if (ch) {
ch                146 drivers/tty/synclink_gt.c static int put_char(struct tty_struct *tty, unsigned char ch);
ch                147 drivers/tty/synclink_gt.c static void send_xchar(struct tty_struct *tty, char ch);
ch                848 drivers/tty/synclink_gt.c static int put_char(struct tty_struct *tty, unsigned char ch)
ch                856 drivers/tty/synclink_gt.c 	DBGINFO(("%s put_char(%d)\n", info->device_name, ch));
ch                861 drivers/tty/synclink_gt.c 		info->tx_buf[info->tx_count++] = ch;
ch                868 drivers/tty/synclink_gt.c static void send_xchar(struct tty_struct *tty, char ch)
ch                875 drivers/tty/synclink_gt.c 	DBGINFO(("%s send_xchar(%d)\n", info->device_name, ch));
ch                876 drivers/tty/synclink_gt.c 	info->x_char = ch;
ch                877 drivers/tty/synclink_gt.c 	if (ch) {
ch               1830 drivers/tty/synclink_gt.c 	unsigned char ch;
ch               1842 drivers/tty/synclink_gt.c 			ch = *p;
ch               1861 drivers/tty/synclink_gt.c 			tty_insert_flip_char(&info->port, ch, stat);
ch                512 drivers/tty/synclinkmp.c static int put_char(struct tty_struct *tty, unsigned char ch);
ch                513 drivers/tty/synclinkmp.c static void send_xchar(struct tty_struct *tty, char ch);
ch                988 drivers/tty/synclinkmp.c static int put_char(struct tty_struct *tty, unsigned char ch)
ch                996 drivers/tty/synclinkmp.c 			__FILE__,__LINE__,info->device_name,ch);
ch               1011 drivers/tty/synclinkmp.c 			info->tx_buf[info->tx_put++] = ch;
ch               1025 drivers/tty/synclinkmp.c static void send_xchar(struct tty_struct *tty, char ch)
ch               1032 drivers/tty/synclinkmp.c 			 __FILE__,__LINE__, info->device_name, ch );
ch               1037 drivers/tty/synclinkmp.c 	info->x_char = ch;
ch               1038 drivers/tty/synclinkmp.c 	if (ch) {
ch                136 drivers/tty/tty_audit.c void tty_audit_tiocsti(struct tty_struct *tty, char ch)
ch                145 drivers/tty/tty_audit.c 		tty_audit_log("ioctl=TIOCSTI", dev, &ch, 1);
ch                379 drivers/tty/tty_buffer.c int __tty_insert_flip_char(struct tty_port *port, unsigned char ch, char flag)
ch                390 drivers/tty/tty_buffer.c 	*char_buf_ptr(tb, tb->used++) = ch;
ch               1077 drivers/tty/tty_io.c int tty_send_xchar(struct tty_struct *tty, char ch)
ch               1083 drivers/tty/tty_io.c 		tty->ops->send_xchar(tty, ch);
ch               1094 drivers/tty/tty_io.c 	tty->ops->write(tty, &ch, 1);
ch               2185 drivers/tty/tty_io.c 	char ch, mbz = 0;
ch               2190 drivers/tty/tty_io.c 	if (get_user(ch, p))
ch               2192 drivers/tty/tty_io.c 	tty_audit_tiocsti(tty, ch);
ch               2197 drivers/tty/tty_io.c 		ld->ops->receive_buf(tty, &ch, &mbz, 1);
ch               3025 drivers/tty/tty_io.c int tty_put_char(struct tty_struct *tty, unsigned char ch)
ch               3028 drivers/tty/tty_io.c 		return tty->ops->put_char(tty, ch);
ch               3029 drivers/tty/tty_io.c 	return tty->ops->write(tty, &ch, 1);
ch                343 drivers/tty/vt/consolemap.c 	int i, ch;
ch                350 drivers/tty/vt/consolemap.c 		ch = conv_uni_to_pc(vc_cons[fg_console].d, p[i]);
ch                351 drivers/tty/vt/consolemap.c 		outbuf[i] = (ch & ~0xff) ? 0 : ch;
ch                310 drivers/tty/vt/keyboard.c static void put_queue(struct vc_data *vc, int ch)
ch                312 drivers/tty/vt/keyboard.c 	tty_insert_flip_char(&vc->port, ch, 0);
ch                411 drivers/tty/vt/keyboard.c static unsigned int handle_diacr(struct vc_data *vc, unsigned int ch)
ch                419 drivers/tty/vt/keyboard.c 		if ((ch & ~0xff) == BRL_UC_ROW)
ch                420 drivers/tty/vt/keyboard.c 			return d | ch;
ch                423 drivers/tty/vt/keyboard.c 			if (accent_table[i].diacr == d && accent_table[i].base == ch)
ch                427 drivers/tty/vt/keyboard.c 	if (ch == ' ' || ch == (BRL_UC_ROW|0) || ch == d)
ch                438 drivers/tty/vt/keyboard.c 	return ch;
ch               3169 drivers/tty/vt/vt.c static int con_put_char(struct tty_struct *tty, unsigned char ch)
ch               3173 drivers/tty/vt/vt.c 	return do_con_write(tty, &ch, 1);
ch               1020 drivers/usb/early/ehci-dbgp.c 		char ch = kgdbdbgp_buf[kgdbdbgp_buf_idx++];
ch               1021 drivers/usb/early/ehci-dbgp.c 		return ch;
ch                778 drivers/usb/gadget/function/u_serial.c static int gs_put_char(struct tty_struct *tty, unsigned char ch)
ch                785 drivers/usb/gadget/function/u_serial.c 		port->port_num, tty, ch, __builtin_return_address(0));
ch                788 drivers/usb/gadget/function/u_serial.c 	status = kfifo_put(&port->port_write_buf, ch);
ch                145 drivers/usb/gadget/function/uvc_configfs.c 	struct uvcg_control_header *ch = to_uvcg_control_header(item);	\
ch                148 drivers/usb/gadget/function/uvc_configfs.c 	struct mutex *su_mutex = &ch->item.ci_group->cg_subsys->su_mutex;\
ch                153 drivers/usb/gadget/function/uvc_configfs.c 	opts_item = ch->item.ci_parent->ci_parent->ci_parent;		\
ch                157 drivers/usb/gadget/function/uvc_configfs.c 	result = sprintf(page, "%u\n", le##bits##_to_cpu(ch->desc.aname));\
ch                168 drivers/usb/gadget/function/uvc_configfs.c 	struct uvcg_control_header *ch = to_uvcg_control_header(item);	\
ch                171 drivers/usb/gadget/function/uvc_configfs.c 	struct mutex *su_mutex = &ch->item.ci_group->cg_subsys->su_mutex;\
ch                177 drivers/usb/gadget/function/uvc_configfs.c 	opts_item = ch->item.ci_parent->ci_parent->ci_parent;		\
ch                181 drivers/usb/gadget/function/uvc_configfs.c 	if (ch->linked || opts->refcnt) {				\
ch                194 drivers/usb/gadget/function/uvc_configfs.c 	ch->desc.aname = cpu_to_le##bits(num);				\
ch                816 drivers/usb/gadget/function/uvc_configfs.c static ssize_t uvcg_format_bma_controls_store(struct uvcg_format *ch,
ch                821 drivers/usb/gadget/function/uvc_configfs.c 	struct mutex *su_mutex = &ch->group.cg_subsys->su_mutex;
ch                826 drivers/usb/gadget/function/uvc_configfs.c 	opts_item = ch->group.cg_item.ci_parent->ci_parent->ci_parent;
ch                830 drivers/usb/gadget/function/uvc_configfs.c 	if (ch->linked || opts->refcnt) {
ch                838 drivers/usb/gadget/function/uvc_configfs.c 	ret = hex2bin(ch->bmaControls, page + 2, 1);
ch               1276 drivers/usb/gadget/function/uvc_configfs.c 	struct uvcg_frame *ch = to_uvcg_frame(item);
ch               1280 drivers/usb/gadget/function/uvc_configfs.c 	struct mutex *su_mutex = &ch->item.ci_group->cg_subsys->su_mutex;
ch               1286 drivers/usb/gadget/function/uvc_configfs.c 	opts_item = ch->item.ci_parent->ci_parent->ci_parent->ci_parent;
ch               1288 drivers/usb/gadget/function/uvc_configfs.c 	fmt = to_uvcg_format(ch->item.ci_parent);
ch               1312 drivers/usb/gadget/function/uvc_configfs.c 	kfree(ch->dw_frame_interval);
ch               1313 drivers/usb/gadget/function/uvc_configfs.c 	ch->dw_frame_interval = frm_intrv;
ch               1314 drivers/usb/gadget/function/uvc_configfs.c 	ch->frame.b_frame_interval_type = n;
ch               1315 drivers/usb/gadget/function/uvc_configfs.c 	sort(ch->dw_frame_interval, n, sizeof(*ch->dw_frame_interval),
ch               1448 drivers/usb/gadget/function/uvc_configfs.c 	struct uvcg_uncompressed *ch = to_uvcg_uncompressed(item);
ch               1451 drivers/usb/gadget/function/uvc_configfs.c 	struct mutex *su_mutex = &ch->fmt.group.cg_subsys->su_mutex;
ch               1455 drivers/usb/gadget/function/uvc_configfs.c 	opts_item = ch->fmt.group.cg_item.ci_parent->ci_parent->ci_parent;
ch               1459 drivers/usb/gadget/function/uvc_configfs.c 	memcpy(page, ch->desc.guidFormat, sizeof(ch->desc.guidFormat));
ch               1464 drivers/usb/gadget/function/uvc_configfs.c 	return sizeof(ch->desc.guidFormat);
ch               1470 drivers/usb/gadget/function/uvc_configfs.c 	struct uvcg_uncompressed *ch = to_uvcg_uncompressed(item);
ch               1473 drivers/usb/gadget/function/uvc_configfs.c 	struct mutex *su_mutex = &ch->fmt.group.cg_subsys->su_mutex;
ch               1478 drivers/usb/gadget/function/uvc_configfs.c 	opts_item = ch->fmt.group.cg_item.ci_parent->ci_parent->ci_parent;
ch               1482 drivers/usb/gadget/function/uvc_configfs.c 	if (ch->fmt.linked || opts->refcnt) {
ch               1487 drivers/usb/gadget/function/uvc_configfs.c 	memcpy(ch->desc.guidFormat, page,
ch               1488 drivers/usb/gadget/function/uvc_configfs.c 	       min(sizeof(ch->desc.guidFormat), len));
ch               1489 drivers/usb/gadget/function/uvc_configfs.c 	ret = sizeof(ch->desc.guidFormat);
ch                211 drivers/usb/host/xhci-dbgtty.c static int dbc_tty_put_char(struct tty_struct *tty, unsigned char ch)
ch                218 drivers/usb/host/xhci-dbgtty.c 	status = kfifo_put(&port->write_fifo, ch);
ch                236 drivers/usb/image/mdc800.c static int mdc800_isBusy (char* ch)
ch                241 drivers/usb/image/mdc800.c 		if (ch [i] != (char)0x99)
ch                252 drivers/usb/image/mdc800.c static int mdc800_isReady (char *ch)
ch                257 drivers/usb/image/mdc800.c 		if (ch [i] != (char)0xbb)
ch                367 drivers/usb/misc/sisusbvga/sisusb_con.c sisusbcon_putc(struct vc_data *c, int ch, int y, int x)
ch                947 drivers/usb/musb/cppi_dma.c static int cppi_channel_program(struct dma_channel *ch,
ch                955 drivers/usb/musb/cppi_dma.c 	cppi_ch = container_of(ch, struct cppi_channel, channel);
ch                959 drivers/usb/musb/cppi_dma.c 	switch (ch->status) {
ch                983 drivers/usb/musb/cppi_dma.c 	ch->status = MUSB_DMA_STATUS_BUSY;
ch               1001 drivers/usb/musb/cppi_dma.c static bool cppi_rx_scan(struct cppi *cppi, unsigned ch)
ch               1003 drivers/usb/musb/cppi_dma.c 	struct cppi_channel		*rx = &cppi->rx[ch];
ch                288 drivers/usb/musb/musb_trace.h 	TP_PROTO(struct cppi41_dma_channel *ch),
ch                289 drivers/usb/musb/musb_trace.h 	TP_ARGS(ch),
ch                291 drivers/usb/musb/musb_trace.h 		__field(struct cppi41_dma_channel *, ch)
ch                292 drivers/usb/musb/musb_trace.h 		__string(name, dev_name(ch->hw_ep->musb->controller))
ch                301 drivers/usb/musb/musb_trace.h 		__entry->ch = ch;
ch                302 drivers/usb/musb/musb_trace.h 		__assign_str(name, dev_name(ch->hw_ep->musb->controller));
ch                303 drivers/usb/musb/musb_trace.h 		__entry->hwep = ch->hw_ep->epnum;
ch                304 drivers/usb/musb/musb_trace.h 		__entry->port = ch->port_num;
ch                305 drivers/usb/musb/musb_trace.h 		__entry->is_tx = ch->is_tx;
ch                306 drivers/usb/musb/musb_trace.h 		__entry->len = ch->total_len;
ch                307 drivers/usb/musb/musb_trace.h 		__entry->prog_len = ch->prog_len;
ch                308 drivers/usb/musb/musb_trace.h 		__entry->xferred = ch->transferred;
ch                311 drivers/usb/musb/musb_trace.h 			__get_str(name), __entry->ch, __entry->hwep,
ch                318 drivers/usb/musb/musb_trace.h 	TP_PROTO(struct cppi41_dma_channel *ch),
ch                319 drivers/usb/musb/musb_trace.h 	TP_ARGS(ch)
ch                323 drivers/usb/musb/musb_trace.h 	TP_PROTO(struct cppi41_dma_channel *ch),
ch                324 drivers/usb/musb/musb_trace.h 	TP_ARGS(ch)
ch                328 drivers/usb/musb/musb_trace.h 	TP_PROTO(struct cppi41_dma_channel *ch),
ch                329 drivers/usb/musb/musb_trace.h 	TP_ARGS(ch)
ch                333 drivers/usb/musb/musb_trace.h 	TP_PROTO(struct cppi41_dma_channel *ch),
ch                334 drivers/usb/musb/musb_trace.h 	TP_ARGS(ch)
ch                338 drivers/usb/musb/musb_trace.h 	TP_PROTO(struct cppi41_dma_channel *ch),
ch                339 drivers/usb/musb/musb_trace.h 	TP_ARGS(ch)
ch                343 drivers/usb/musb/musb_trace.h 	TP_PROTO(struct cppi41_dma_channel *ch),
ch                344 drivers/usb/musb/musb_trace.h 	TP_ARGS(ch)
ch                348 drivers/usb/musb/musb_trace.h 	TP_PROTO(struct cppi41_dma_channel *ch),
ch                349 drivers/usb/musb/musb_trace.h 	TP_ARGS(ch)
ch                443 drivers/usb/musb/tusb6010_omap.c 		struct dma_channel *ch = dma_channel_pool[i];
ch                444 drivers/usb/musb/tusb6010_omap.c 		if (ch->status == MUSB_DMA_STATUS_UNKNOWN) {
ch                445 drivers/usb/musb/tusb6010_omap.c 			ch->status = MUSB_DMA_STATUS_FREE;
ch                446 drivers/usb/musb/tusb6010_omap.c 			channel = ch;
ch                447 drivers/usb/musb/tusb6010_omap.c 			chdat = ch->private_data;
ch                521 drivers/usb/musb/tusb6010_omap.c 		struct dma_channel *ch = dma_channel_pool[i];
ch                522 drivers/usb/musb/tusb6010_omap.c 		if (ch) {
ch                523 drivers/usb/musb/tusb6010_omap.c 			kfree(ch->private_data);
ch                524 drivers/usb/musb/tusb6010_omap.c 			kfree(ch);
ch                615 drivers/usb/musb/tusb6010_omap.c 		struct dma_channel	*ch;
ch                618 drivers/usb/musb/tusb6010_omap.c 		ch = kzalloc(sizeof(struct dma_channel), GFP_KERNEL);
ch                619 drivers/usb/musb/tusb6010_omap.c 		if (!ch)
ch                622 drivers/usb/musb/tusb6010_omap.c 		dma_channel_pool[i] = ch;
ch                628 drivers/usb/musb/tusb6010_omap.c 		ch->status = MUSB_DMA_STATUS_UNKNOWN;
ch                629 drivers/usb/musb/tusb6010_omap.c 		ch->private_data = chdat;
ch               2488 drivers/usb/serial/ftdi_sio.c 	char *ch;
ch               2560 drivers/usb/serial/ftdi_sio.c 	ch = packet + 2;
ch               2563 drivers/usb/serial/ftdi_sio.c 		for (i = 0; i < len; i++, ch++) {
ch               2564 drivers/usb/serial/ftdi_sio.c 			if (!usb_serial_handle_sysrq_char(port, *ch))
ch               2565 drivers/usb/serial/ftdi_sio.c 				tty_insert_flip_char(&port->port, *ch, flag);
ch               2568 drivers/usb/serial/ftdi_sio.c 		tty_insert_flip_string_fixed_flag(&port->port, ch, flag, len);
ch                348 drivers/usb/serial/generic.c 	char *ch = (char *)urb->transfer_buffer;
ch                359 drivers/usb/serial/generic.c 		tty_insert_flip_string(&port->port, ch, urb->actual_length);
ch                361 drivers/usb/serial/generic.c 		for (i = 0; i < urb->actual_length; i++, ch++) {
ch                362 drivers/usb/serial/generic.c 			if (!usb_serial_handle_sysrq_char(port, *ch))
ch                363 drivers/usb/serial/generic.c 				tty_insert_flip_char(&port->port, *ch, TTY_NORMAL);
ch                575 drivers/usb/serial/generic.c int usb_serial_handle_sysrq_char(struct usb_serial_port *port, unsigned int ch)
ch                578 drivers/usb/serial/generic.c 		if (ch && time_before(jiffies, port->sysrq)) {
ch                579 drivers/usb/serial/generic.c 			handle_sysrq(ch);
ch                588 drivers/usb/serial/generic.c int usb_serial_handle_sysrq_char(struct usb_serial_port *port, unsigned int ch)
ch                477 drivers/usb/serial/mxuport.c 	u8 *ch;
ch                503 drivers/usb/serial/mxuport.c 			ch = data + HEADER_SIZE;
ch                504 drivers/usb/serial/mxuport.c 			mxuport_process_read_urb_data(demux_port, ch, rcv_len);
ch                524 drivers/usb/serial/mxuport.c 	u8 *ch;
ch                544 drivers/usb/serial/mxuport.c 			ch = data + HEADER_SIZE;
ch                546 drivers/usb/serial/mxuport.c 			mxuport_process_read_urb_event(demux_port, ch,
ch                129 drivers/usb/serial/quatech2.c static void qt2_update_lsr(struct usb_serial_port *port, unsigned char *ch);
ch                130 drivers/usb/serial/quatech2.c static void qt2_update_msr(struct usb_serial_port *port, unsigned char *ch);
ch                471 drivers/usb/serial/quatech2.c static void qt2_process_status(struct usb_serial_port *port, unsigned char *ch)
ch                473 drivers/usb/serial/quatech2.c 	switch (*ch) {
ch                475 drivers/usb/serial/quatech2.c 		qt2_update_lsr(port, ch + 1);
ch                478 drivers/usb/serial/quatech2.c 		qt2_update_msr(port, ch + 1);
ch                485 drivers/usb/serial/quatech2.c 				   unsigned char *ch)
ch                489 drivers/usb/serial/quatech2.c 	bytes_written = (int)(*ch) + (int)(*(ch + 1) << 4);
ch                493 drivers/usb/serial/quatech2.c static void qt2_process_flush(struct usb_serial_port *port, unsigned char *ch)
ch                504 drivers/usb/serial/quatech2.c 	unsigned char *ch;
ch                512 drivers/usb/serial/quatech2.c 	ch = urb->transfer_buffer;
ch                518 drivers/usb/serial/quatech2.c 		ch = (unsigned char *)urb->transfer_buffer + i;
ch                520 drivers/usb/serial/quatech2.c 		    (*ch == QT2_CONTROL_BYTE) &&
ch                521 drivers/usb/serial/quatech2.c 		    (*(ch + 1) == QT2_CONTROL_BYTE)) {
ch                523 drivers/usb/serial/quatech2.c 			switch (*(ch + 2)) {
ch                532 drivers/usb/serial/quatech2.c 				qt2_process_status(port, ch + 2);
ch                543 drivers/usb/serial/quatech2.c 				qt2_process_xmit_empty(port, ch + 3);
ch                556 drivers/usb/serial/quatech2.c 				newport = *(ch + 3);
ch                572 drivers/usb/serial/quatech2.c 				qt2_process_flush(port, ch + 2);
ch                577 drivers/usb/serial/quatech2.c 				tty_insert_flip_string(&port->port, ch, 2);
ch                584 drivers/usb/serial/quatech2.c 					 __func__, *(ch + 2));
ch                591 drivers/usb/serial/quatech2.c 		tty_insert_flip_char(&port->port, *ch, TTY_NORMAL);
ch                838 drivers/usb/serial/quatech2.c static void qt2_update_msr(struct usb_serial_port *port, unsigned char *ch)
ch                841 drivers/usb/serial/quatech2.c 	u8 newMSR = (u8) *ch;
ch                868 drivers/usb/serial/quatech2.c static void qt2_update_lsr(struct usb_serial_port *port, unsigned char *ch)
ch                873 drivers/usb/serial/quatech2.c 	u8 newLSR = (u8) *ch;
ch                502 drivers/usb/serial/ssu100.c 	char *ch;
ch                513 drivers/usb/serial/ssu100.c 		ch = packet + 4;
ch                515 drivers/usb/serial/ssu100.c 		ch = packet;
ch                521 drivers/usb/serial/ssu100.c 		for (i = 0; i < len; i++, ch++) {
ch                522 drivers/usb/serial/ssu100.c 			if (!usb_serial_handle_sysrq_char(port, *ch))
ch                523 drivers/usb/serial/ssu100.c 				tty_insert_flip_char(&port->port, *ch, flag);
ch                526 drivers/usb/serial/ssu100.c 		tty_insert_flip_string_fixed_flag(&port->port, ch, flag, len);
ch                380 drivers/video/console/mdacon.c static inline u16 mda_convert_attr(u16 ch)
ch                389 drivers/video/console/mdacon.c 	if (ch & 0x0800)	attr = 0x7000;	/* reverse */
ch                390 drivers/video/console/mdacon.c 	else if (ch & 0x0400)	attr = 0x0100;	/* underline */
ch                392 drivers/video/console/mdacon.c 	return ((ch & 0x0200) << 2) | 		/* intensity */ 
ch                393 drivers/video/console/mdacon.c 		(ch & 0x8000) |			/* blink */ 
ch                394 drivers/video/console/mdacon.c 		(ch & 0x00ff) | attr;
ch                428 drivers/video/console/mdacon.c static void mdacon_putc(struct vc_data *c, int ch, int y, int x)
ch                430 drivers/video/console/mdacon.c 	scr_writew(mda_convert_attr(ch), mda_addr(x, y));
ch                209 drivers/video/fbdev/core/bitblit.c 	unsigned int ch = vc->vc_font.height;
ch                211 drivers/video/fbdev/core/bitblit.c 	unsigned int bh = info->var.yres - (vc->vc_rows*ch);
ch                195 drivers/video/fbdev/core/fbcon_ccw.c 	unsigned int ch = vc->vc_font.height;
ch                197 drivers/video/fbdev/core/fbcon_ccw.c 	unsigned int bh = info->var.xres - (vc->vc_rows*ch);
ch                198 drivers/video/fbdev/core/fbcon_ccw.c 	unsigned int bs = vc->vc_rows*ch;
ch                178 drivers/video/fbdev/core/fbcon_cw.c 	unsigned int ch = vc->vc_font.height;
ch                180 drivers/video/fbdev/core/fbcon_cw.c 	unsigned int bh = info->var.xres - (vc->vc_rows*ch);
ch                226 drivers/video/fbdev/core/fbcon_ud.c 	unsigned int ch = vc->vc_font.height;
ch                228 drivers/video/fbdev/core/fbcon_ud.c 	unsigned int bh = info->var.yres - (vc->vc_rows*ch);
ch               1300 drivers/video/fbdev/mmp/hw/mmp_ctrl.h #define LVDS_PD_CH(ch)				((ch) << 1)
ch               2962 drivers/video/fbdev/omap2/omapfb/dss/dispc.c static void dispc_mgr_set_trans_key(enum omap_channel ch,
ch               2966 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	mgr_fld_write(ch, DISPC_MGR_FLD_TCKSELECTION, type);
ch               2968 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	dispc_write_reg(DISPC_TRANS_COLOR(ch), trans_key);
ch               2971 drivers/video/fbdev/omap2/omapfb/dss/dispc.c static void dispc_mgr_enable_trans_key(enum omap_channel ch, bool enable)
ch               2973 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	mgr_fld_write(ch, DISPC_MGR_FLD_TCKENABLE, enable);
ch               2976 drivers/video/fbdev/omap2/omapfb/dss/dispc.c static void dispc_mgr_enable_alpha_fixed_zorder(enum omap_channel ch,
ch               2982 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	if (ch == OMAP_DSS_CHANNEL_LCD)
ch               2984 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	else if (ch == OMAP_DSS_CHANNEL_DIGIT)
ch                214 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan ch[2];
ch                401 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch = handle;
ch                403 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_write(ch->lcdc, _LDDWD0R, data | LDDWDxR_WDACT);
ch                404 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_wait_bit(ch->lcdc, _LDSR, LDSR_AS, 0);
ch                405 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_write(ch->lcdc, _LDDWAR, LDDWAR_WA |
ch                406 drivers/video/fbdev/sh_mobile_lcdcfb.c 		   (lcdc_chan_is_sublcd(ch) ? 2 : 0));
ch                407 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_wait_bit(ch->lcdc, _LDSR, LDSR_AS, 0);
ch                412 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch = handle;
ch                414 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_write(ch->lcdc, _LDDWD0R, data | LDDWDxR_WDACT | LDDWDxR_RSW);
ch                415 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_wait_bit(ch->lcdc, _LDSR, LDSR_AS, 0);
ch                416 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_write(ch->lcdc, _LDDWAR, LDDWAR_WA |
ch                417 drivers/video/fbdev/sh_mobile_lcdcfb.c 		   (lcdc_chan_is_sublcd(ch) ? 2 : 0));
ch                418 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_wait_bit(ch->lcdc, _LDSR, LDSR_AS, 0);
ch                423 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch = handle;
ch                425 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_write(ch->lcdc, _LDDRDR, LDDRDR_RSR);
ch                426 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_wait_bit(ch->lcdc, _LDSR, LDSR_AS, 0);
ch                427 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_write(ch->lcdc, _LDDRAR, LDDRAR_RA |
ch                428 drivers/video/fbdev/sh_mobile_lcdcfb.c 		   (lcdc_chan_is_sublcd(ch) ? 2 : 0));
ch                430 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_wait_bit(ch->lcdc, _LDSR, LDSR_AS, 0);
ch                432 drivers/video/fbdev/sh_mobile_lcdcfb.c 	return lcdc_read(ch->lcdc, _LDDRDR) & LDDRDR_DRD_MASK;
ch                444 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch = info->par;
ch                445 drivers/video/fbdev/sh_mobile_lcdcfb.c 	unsigned int nr_pages_max = ch->fb_size >> PAGE_SHIFT;
ch                449 drivers/video/fbdev/sh_mobile_lcdcfb.c 	sg_init_table(ch->sglist, nr_pages_max);
ch                452 drivers/video/fbdev/sh_mobile_lcdcfb.c 		sg_set_page(&ch->sglist[nr_pages++], page, PAGE_SIZE, 0);
ch                460 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch = info->par;
ch                461 drivers/video/fbdev/sh_mobile_lcdcfb.c 	const struct sh_mobile_lcdc_panel_cfg *panel = &ch->cfg->panel_cfg;
ch                464 drivers/video/fbdev/sh_mobile_lcdcfb.c 	sh_mobile_lcdc_clk_on(ch->lcdc);
ch                485 drivers/video/fbdev/sh_mobile_lcdcfb.c 		dma_map_sg(ch->lcdc->dev, ch->sglist, nr_pages, DMA_TO_DEVICE);
ch                487 drivers/video/fbdev/sh_mobile_lcdcfb.c 			panel->start_transfer(ch, &sh_mobile_lcdc_sys_bus_ops);
ch                488 drivers/video/fbdev/sh_mobile_lcdcfb.c 		lcdc_write_chan(ch, LDSM2R, LDSM2R_OSTRG);
ch                489 drivers/video/fbdev/sh_mobile_lcdcfb.c 		dma_unmap_sg(ch->lcdc->dev, ch->sglist, nr_pages,
ch                493 drivers/video/fbdev/sh_mobile_lcdcfb.c 			panel->start_transfer(ch, &sh_mobile_lcdc_sys_bus_ops);
ch                494 drivers/video/fbdev/sh_mobile_lcdcfb.c 		lcdc_write_chan(ch, LDSM2R, LDSM2R_OSTRG);
ch                506 drivers/video/fbdev/sh_mobile_lcdcfb.c static void sh_mobile_lcdc_display_on(struct sh_mobile_lcdc_chan *ch)
ch                508 drivers/video/fbdev/sh_mobile_lcdcfb.c 	const struct sh_mobile_lcdc_panel_cfg *panel = &ch->cfg->panel_cfg;
ch                510 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (ch->tx_dev) {
ch                513 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ret = ch->tx_dev->ops->display_on(ch->tx_dev);
ch                518 drivers/video/fbdev/sh_mobile_lcdcfb.c 			ch->info->state = FBINFO_STATE_SUSPENDED;
ch                526 drivers/video/fbdev/sh_mobile_lcdcfb.c static void sh_mobile_lcdc_display_off(struct sh_mobile_lcdc_chan *ch)
ch                528 drivers/video/fbdev/sh_mobile_lcdcfb.c 	const struct sh_mobile_lcdc_panel_cfg *panel = &ch->cfg->panel_cfg;
ch                533 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (ch->tx_dev)
ch                534 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch->tx_dev->ops->display_off(ch->tx_dev);
ch                642 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch;
ch                655 drivers/video/fbdev/sh_mobile_lcdcfb.c 	for (k = 0; k < ARRAY_SIZE(priv->ch); k++) {
ch                656 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch = &priv->ch[k];
ch                658 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (!ch->enabled)
ch                663 drivers/video/fbdev/sh_mobile_lcdcfb.c 			if (is_sub == lcdc_chan_is_sublcd(ch)) {
ch                664 drivers/video/fbdev/sh_mobile_lcdcfb.c 				ch->frame_end = 1;
ch                665 drivers/video/fbdev/sh_mobile_lcdcfb.c 				wake_up(&ch->frame_end_wait);
ch                673 drivers/video/fbdev/sh_mobile_lcdcfb.c 			complete(&ch->vsync_completion);
ch                679 drivers/video/fbdev/sh_mobile_lcdcfb.c static int sh_mobile_lcdc_wait_for_vsync(struct sh_mobile_lcdc_chan *ch)
ch                687 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ldintr = lcdc_read(ch->lcdc, _LDINTR);
ch                689 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_write(ch->lcdc, _LDINTR, ldintr);
ch                691 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ret = wait_for_completion_interruptible_timeout(&ch->vsync_completion,
ch                712 drivers/video/fbdev/sh_mobile_lcdcfb.c 	for (k = 0; k < ARRAY_SIZE(priv->ch); k++)
ch                713 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (lcdc_read(priv, _LDCNT2R) & priv->ch[k].enabled)
ch                715 drivers/video/fbdev/sh_mobile_lcdcfb.c 				tmp = lcdc_read_chan(&priv->ch[k], LDPMR)
ch                728 drivers/video/fbdev/sh_mobile_lcdcfb.c static void sh_mobile_lcdc_geometry(struct sh_mobile_lcdc_chan *ch)
ch                730 drivers/video/fbdev/sh_mobile_lcdcfb.c 	const struct fb_var_screeninfo *var = &ch->info->var;
ch                731 drivers/video/fbdev/sh_mobile_lcdcfb.c 	const struct fb_videomode *mode = &ch->display.mode;
ch                735 drivers/video/fbdev/sh_mobile_lcdcfb.c 	tmp = ch->ldmt1r_value;
ch                738 drivers/video/fbdev/sh_mobile_lcdcfb.c 	tmp |= (ch->cfg->flags & LCDC_FLAGS_DWPOL) ? LDMT1R_DWPOL : 0;
ch                739 drivers/video/fbdev/sh_mobile_lcdcfb.c 	tmp |= (ch->cfg->flags & LCDC_FLAGS_DIPOL) ? LDMT1R_DIPOL : 0;
ch                740 drivers/video/fbdev/sh_mobile_lcdcfb.c 	tmp |= (ch->cfg->flags & LCDC_FLAGS_DAPOL) ? LDMT1R_DAPOL : 0;
ch                741 drivers/video/fbdev/sh_mobile_lcdcfb.c 	tmp |= (ch->cfg->flags & LCDC_FLAGS_HSCNT) ? LDMT1R_HSCNT : 0;
ch                742 drivers/video/fbdev/sh_mobile_lcdcfb.c 	tmp |= (ch->cfg->flags & LCDC_FLAGS_DWCNT) ? LDMT1R_DWCNT : 0;
ch                743 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_write_chan(ch, LDMT1R, tmp);
ch                746 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_write_chan(ch, LDMT2R, ch->cfg->sys_bus_cfg.ldmt2r);
ch                747 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_write_chan(ch, LDMT3R, ch->cfg->sys_bus_cfg.ldmt3r);
ch                753 drivers/video/fbdev/sh_mobile_lcdcfb.c 	tmp |= (min(mode->xres, ch->xres) / 8) << 16; /* HDCN */
ch                754 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_write_chan(ch, LDHCNR, tmp);
ch                759 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_write_chan(ch, LDHSYNR, tmp);
ch                764 drivers/video/fbdev/sh_mobile_lcdcfb.c 	tmp |= min(mode->yres, ch->yres) << 16; /* VDLN */
ch                765 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_write_chan(ch, LDVLNR, tmp);
ch                769 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_write_chan(ch, LDVSYNR, tmp);
ch                776 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_write_chan(ch, LDHAJR, tmp);
ch                777 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_write_chan_mirror(ch, LDHAJR, tmp);
ch                879 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch;
ch                886 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_write(priv, _LDCNT2R, priv->ch[0].enabled | priv->ch[1].enabled);
ch                894 drivers/video/fbdev/sh_mobile_lcdcfb.c 	for (k = 0; k < ARRAY_SIZE(priv->ch); k++) {
ch                895 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch = &priv->ch[k];
ch                896 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (!ch->enabled)
ch                900 drivers/video/fbdev/sh_mobile_lcdcfb.c 		lcdc_write_chan(ch, LDPMR, 0);
ch                902 drivers/video/fbdev/sh_mobile_lcdcfb.c 		m = ch->cfg->clock_divider;
ch                909 drivers/video/fbdev/sh_mobile_lcdcfb.c 		lcdc_write_chan(ch, LDDCKPAT1R, 0);
ch                910 drivers/video/fbdev/sh_mobile_lcdcfb.c 		lcdc_write_chan(ch, LDDCKPAT2R, (1 << (m/2)) - 1);
ch                914 drivers/video/fbdev/sh_mobile_lcdcfb.c 		tmp |= m << (lcdc_chan_is_sublcd(ch) ? 8 : 0);
ch                922 drivers/video/fbdev/sh_mobile_lcdcfb.c 	for (k = 0; k < ARRAY_SIZE(priv->ch); k++) {
ch                923 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch = &priv->ch[k];
ch                924 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (!ch->enabled)
ch                927 drivers/video/fbdev/sh_mobile_lcdcfb.c 		sh_mobile_lcdc_geometry(ch);
ch                929 drivers/video/fbdev/sh_mobile_lcdcfb.c 		tmp = ch->format->lddfr;
ch                931 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (ch->format->yuv) {
ch                932 drivers/video/fbdev/sh_mobile_lcdcfb.c 			switch (ch->colorspace) {
ch                942 drivers/video/fbdev/sh_mobile_lcdcfb.c 		lcdc_write_chan(ch, LDDFR, tmp);
ch                943 drivers/video/fbdev/sh_mobile_lcdcfb.c 		lcdc_write_chan(ch, LDMLSR, ch->line_size);
ch                944 drivers/video/fbdev/sh_mobile_lcdcfb.c 		lcdc_write_chan(ch, LDSA1R, ch->base_addr_y);
ch                945 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (ch->format->yuv)
ch                946 drivers/video/fbdev/sh_mobile_lcdcfb.c 			lcdc_write_chan(ch, LDSA2R, ch->base_addr_c);
ch                952 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (ch->ldmt1r_value & LDMT1R_IFM &&
ch                953 drivers/video/fbdev/sh_mobile_lcdcfb.c 		    ch->cfg->sys_bus_cfg.deferred_io_msec) {
ch                954 drivers/video/fbdev/sh_mobile_lcdcfb.c 			lcdc_write_chan(ch, LDSM1R, LDSM1R_OS);
ch                957 drivers/video/fbdev/sh_mobile_lcdcfb.c 			lcdc_write_chan(ch, LDSM1R, 0);
ch                962 drivers/video/fbdev/sh_mobile_lcdcfb.c 	switch (priv->ch[0].format->fourcc) {
ch                990 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch;
ch                996 drivers/video/fbdev/sh_mobile_lcdcfb.c 	for (k = 0; k < ARRAY_SIZE(priv->ch); k++) {
ch                997 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (priv->ch[k].enabled)
ch               1005 drivers/video/fbdev/sh_mobile_lcdcfb.c 	for (k = 0; k < ARRAY_SIZE(priv->ch); k++) {
ch               1008 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch = &priv->ch[k];
ch               1009 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (!ch->enabled)
ch               1012 drivers/video/fbdev/sh_mobile_lcdcfb.c 		panel = &ch->cfg->panel_cfg;
ch               1014 drivers/video/fbdev/sh_mobile_lcdcfb.c 			ret = panel->setup_sys(ch, &sh_mobile_lcdc_sys_bus_ops);
ch               1021 drivers/video/fbdev/sh_mobile_lcdcfb.c 	for (k = 0; k < ARRAY_SIZE(priv->ch); k++) {
ch               1022 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch = &priv->ch[k];
ch               1023 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (!ch->enabled)
ch               1026 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch->base_addr_y = ch->dma_handle;
ch               1027 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch->base_addr_c = ch->dma_handle
ch               1028 drivers/video/fbdev/sh_mobile_lcdcfb.c 				+ ch->xres_virtual * ch->yres_virtual;
ch               1029 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch->line_size = ch->pitch;
ch               1043 drivers/video/fbdev/sh_mobile_lcdcfb.c 	for (k = 0; k < ARRAY_SIZE(priv->ch); k++) {
ch               1044 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch = &priv->ch[k];
ch               1045 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (!ch->enabled)
ch               1048 drivers/video/fbdev/sh_mobile_lcdcfb.c 		tmp = ch->cfg->sys_bus_cfg.deferred_io_msec;
ch               1049 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (ch->ldmt1r_value & LDMT1R_IFM && tmp) {
ch               1050 drivers/video/fbdev/sh_mobile_lcdcfb.c 			ch->defio.deferred_io = sh_mobile_lcdc_deferred_io;
ch               1051 drivers/video/fbdev/sh_mobile_lcdcfb.c 			ch->defio.delay = msecs_to_jiffies(tmp);
ch               1052 drivers/video/fbdev/sh_mobile_lcdcfb.c 			ch->info->fbdefio = &ch->defio;
ch               1053 drivers/video/fbdev/sh_mobile_lcdcfb.c 			fb_deferred_io_init(ch->info);
ch               1056 drivers/video/fbdev/sh_mobile_lcdcfb.c 		sh_mobile_lcdc_display_on(ch);
ch               1058 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (ch->bl) {
ch               1059 drivers/video/fbdev/sh_mobile_lcdcfb.c 			ch->bl->props.power = FB_BLANK_UNBLANK;
ch               1060 drivers/video/fbdev/sh_mobile_lcdcfb.c 			backlight_update_status(ch->bl);
ch               1069 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch;
ch               1073 drivers/video/fbdev/sh_mobile_lcdcfb.c 	for (k = 0; k < ARRAY_SIZE(priv->ch); k++) {
ch               1074 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch = &priv->ch[k];
ch               1075 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (!ch->enabled)
ch               1082 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (ch->info && ch->info->fbdefio) {
ch               1083 drivers/video/fbdev/sh_mobile_lcdcfb.c 			ch->frame_end = 0;
ch               1084 drivers/video/fbdev/sh_mobile_lcdcfb.c 			schedule_delayed_work(&ch->info->deferred_work, 0);
ch               1085 drivers/video/fbdev/sh_mobile_lcdcfb.c 			wait_event(ch->frame_end_wait, ch->frame_end);
ch               1086 drivers/video/fbdev/sh_mobile_lcdcfb.c 			fb_deferred_io_cleanup(ch->info);
ch               1087 drivers/video/fbdev/sh_mobile_lcdcfb.c 			ch->info->fbdefio = NULL;
ch               1091 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (ch->bl) {
ch               1092 drivers/video/fbdev/sh_mobile_lcdcfb.c 			ch->bl->props.power = FB_BLANK_POWERDOWN;
ch               1093 drivers/video/fbdev/sh_mobile_lcdcfb.c 			backlight_update_status(ch->bl);
ch               1096 drivers/video/fbdev/sh_mobile_lcdcfb.c 		sh_mobile_lcdc_display_off(ch);
ch               1106 drivers/video/fbdev/sh_mobile_lcdcfb.c 	for (k = 0; k < ARRAY_SIZE(priv->ch); k++)
ch               1107 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (priv->ch[k].enabled)
ch               1686 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch = info->par;
ch               1687 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_priv *priv = ch->lcdc;
ch               1693 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (!ch->format->yuv) {
ch               1694 drivers/video/fbdev/sh_mobile_lcdcfb.c 		y_offset = (var->yoffset * ch->xres_virtual + var->xoffset)
ch               1695 drivers/video/fbdev/sh_mobile_lcdcfb.c 			 * ch->format->bpp / 8;
ch               1698 drivers/video/fbdev/sh_mobile_lcdcfb.c 		unsigned int xsub = ch->format->bpp < 24 ? 2 : 1;
ch               1699 drivers/video/fbdev/sh_mobile_lcdcfb.c 		unsigned int ysub = ch->format->bpp < 16 ? 2 : 1;
ch               1701 drivers/video/fbdev/sh_mobile_lcdcfb.c 		y_offset = var->yoffset * ch->xres_virtual + var->xoffset;
ch               1702 drivers/video/fbdev/sh_mobile_lcdcfb.c 		c_offset = var->yoffset / ysub * ch->xres_virtual * 2 / xsub
ch               1709 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (y_offset == ch->pan_y_offset)
ch               1713 drivers/video/fbdev/sh_mobile_lcdcfb.c 	base_addr_y = ch->dma_handle + y_offset;
ch               1714 drivers/video/fbdev/sh_mobile_lcdcfb.c 	base_addr_c = ch->dma_handle + ch->xres_virtual * ch->yres_virtual
ch               1717 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->base_addr_y = base_addr_y;
ch               1718 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->base_addr_c = base_addr_c;
ch               1719 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->pan_y_offset = y_offset;
ch               1721 drivers/video/fbdev/sh_mobile_lcdcfb.c 	lcdc_write_chan_mirror(ch, LDSA1R, base_addr_y);
ch               1722 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (ch->format->yuv)
ch               1723 drivers/video/fbdev/sh_mobile_lcdcfb.c 		lcdc_write_chan_mirror(ch, LDSA2R, base_addr_c);
ch               1726 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (lcdc_chan_is_sublcd(ch))
ch               1727 drivers/video/fbdev/sh_mobile_lcdcfb.c 		lcdc_write(ch->lcdc, _LDRCNTR, ldrcntr ^ LDRCNTR_SRS);
ch               1729 drivers/video/fbdev/sh_mobile_lcdcfb.c 		lcdc_write(ch->lcdc, _LDRCNTR, ldrcntr ^ LDRCNTR_MRS);
ch               1740 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch = info->par;
ch               1745 drivers/video/fbdev/sh_mobile_lcdcfb.c 		retval = sh_mobile_lcdc_wait_for_vsync(ch);
ch               1757 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch = info->par;
ch               1761 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (ch->use_count > 1 || (ch->use_count == 1 && !info->fbcon_par))
ch               1767 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (fb_mode_is_equal(&ch->display.mode, &mode))
ch               1772 drivers/video/fbdev/sh_mobile_lcdcfb.c 	fb_videomode_to_var(&var, &ch->display.mode);
ch               1773 drivers/video/fbdev/sh_mobile_lcdcfb.c 	var.width = ch->display.width;
ch               1774 drivers/video/fbdev/sh_mobile_lcdcfb.c 	var.height = ch->display.height;
ch               1790 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch = info->par;
ch               1792 drivers/video/fbdev/sh_mobile_lcdcfb.c 	mutex_lock(&ch->open_lock);
ch               1793 drivers/video/fbdev/sh_mobile_lcdcfb.c 	dev_dbg(info->dev, "%s(): %d users\n", __func__, ch->use_count);
ch               1795 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->use_count--;
ch               1804 drivers/video/fbdev/sh_mobile_lcdcfb.c 	mutex_unlock(&ch->open_lock);
ch               1811 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch = info->par;
ch               1813 drivers/video/fbdev/sh_mobile_lcdcfb.c 	mutex_lock(&ch->open_lock);
ch               1814 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->use_count++;
ch               1816 drivers/video/fbdev/sh_mobile_lcdcfb.c 	dev_dbg(info->dev, "%s(): %d users\n", __func__, ch->use_count);
ch               1817 drivers/video/fbdev/sh_mobile_lcdcfb.c 	mutex_unlock(&ch->open_lock);
ch               1825 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch = info->par;
ch               1826 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_priv *p = ch->lcdc;
ch               1838 drivers/video/fbdev/sh_mobile_lcdcfb.c 	for (i = 0; i < ch->cfg->num_modes; ++i) {
ch               1839 drivers/video/fbdev/sh_mobile_lcdcfb.c 		const struct fb_videomode *mode = &ch->cfg->lcd_modes[i];
ch               1858 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (ch->cfg->num_modes != 0) {
ch               1880 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch = info->par;
ch               1883 drivers/video/fbdev/sh_mobile_lcdcfb.c 	sh_mobile_lcdc_stop(ch->lcdc);
ch               1885 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->format = sh_mobile_format_info(sh_mobile_format_fourcc(&info->var));
ch               1886 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->colorspace = info->var.colorspace;
ch               1888 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->xres = info->var.xres;
ch               1889 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->xres_virtual = info->var.xres_virtual;
ch               1890 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->yres = info->var.yres;
ch               1891 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->yres_virtual = info->var.yres_virtual;
ch               1893 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (ch->format->yuv)
ch               1894 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch->pitch = info->var.xres_virtual;
ch               1896 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch->pitch = info->var.xres_virtual * ch->format->bpp / 8;
ch               1898 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ret = sh_mobile_lcdc_start(ch->lcdc);
ch               1902 drivers/video/fbdev/sh_mobile_lcdcfb.c 	info->fix.line_length = ch->pitch;
ch               1925 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch = info->par;
ch               1926 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_priv *p = ch->lcdc;
ch               1929 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (blank > FB_BLANK_UNBLANK && ch->blank_status == FB_BLANK_UNBLANK) {
ch               1931 drivers/video/fbdev/sh_mobile_lcdcfb.c 			.width = ch->xres,
ch               1932 drivers/video/fbdev/sh_mobile_lcdcfb.c 			.height = ch->yres,
ch               1937 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (blank <= FB_BLANK_NORMAL && ch->blank_status > FB_BLANK_NORMAL) {
ch               1941 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (blank > FB_BLANK_NORMAL && ch->blank_status <= FB_BLANK_NORMAL) {
ch               1948 drivers/video/fbdev/sh_mobile_lcdcfb.c 			sh_mobile_lcdc_wait_for_vsync(ch);
ch               1949 drivers/video/fbdev/sh_mobile_lcdcfb.c 			sh_mobile_lcdc_wait_for_vsync(ch);
ch               1954 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->blank_status = blank;
ch               1961 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch = info->par;
ch               1963 drivers/video/fbdev/sh_mobile_lcdcfb.c 	return dma_mmap_coherent(ch->lcdc->dev, vma, ch->fb_mem,
ch               1964 drivers/video/fbdev/sh_mobile_lcdcfb.c 				 ch->dma_handle, ch->fb_size);
ch               1986 drivers/video/fbdev/sh_mobile_lcdcfb.c sh_mobile_lcdc_channel_fb_unregister(struct sh_mobile_lcdc_chan *ch)
ch               1988 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (ch->info && ch->info->dev)
ch               1989 drivers/video/fbdev/sh_mobile_lcdcfb.c 		unregister_framebuffer(ch->info);
ch               1993 drivers/video/fbdev/sh_mobile_lcdcfb.c sh_mobile_lcdc_channel_fb_register(struct sh_mobile_lcdc_chan *ch)
ch               1995 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct fb_info *info = ch->info;
ch               1999 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch->sglist = vmalloc(sizeof(struct scatterlist) *
ch               2000 drivers/video/fbdev/sh_mobile_lcdcfb.c 				     ch->fb_size >> PAGE_SHIFT);
ch               2001 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (!ch->sglist)
ch               2005 drivers/video/fbdev/sh_mobile_lcdcfb.c 	info->bl_dev = ch->bl;
ch               2011 drivers/video/fbdev/sh_mobile_lcdcfb.c 	dev_info(ch->lcdc->dev, "registered %s/%s as %dx%d %dbpp.\n",
ch               2012 drivers/video/fbdev/sh_mobile_lcdcfb.c 		 dev_name(ch->lcdc->dev), (ch->cfg->chan == LCDC_CHAN_MAINLCD) ?
ch               2018 drivers/video/fbdev/sh_mobile_lcdcfb.c 		sh_mobile_lcdc_clk_off(ch->lcdc);
ch               2024 drivers/video/fbdev/sh_mobile_lcdcfb.c sh_mobile_lcdc_channel_fb_cleanup(struct sh_mobile_lcdc_chan *ch)
ch               2026 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct fb_info *info = ch->info;
ch               2031 drivers/video/fbdev/sh_mobile_lcdcfb.c 	vfree(ch->sglist);
ch               2038 drivers/video/fbdev/sh_mobile_lcdcfb.c sh_mobile_lcdc_channel_fb_init(struct sh_mobile_lcdc_chan *ch,
ch               2042 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_priv *priv = ch->lcdc;
ch               2054 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->info = info;
ch               2059 drivers/video/fbdev/sh_mobile_lcdcfb.c 	info->screen_base = ch->fb_mem;
ch               2060 drivers/video/fbdev/sh_mobile_lcdcfb.c 	info->pseudo_palette = &ch->pseudo_palette;
ch               2061 drivers/video/fbdev/sh_mobile_lcdcfb.c 	info->par = ch;
ch               2075 drivers/video/fbdev/sh_mobile_lcdcfb.c 	info->fix.smem_start = ch->dma_handle;
ch               2076 drivers/video/fbdev/sh_mobile_lcdcfb.c 	info->fix.smem_len = ch->fb_size;
ch               2077 drivers/video/fbdev/sh_mobile_lcdcfb.c 	info->fix.line_length = ch->pitch;
ch               2079 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (ch->format->yuv)
ch               2084 drivers/video/fbdev/sh_mobile_lcdcfb.c 	switch (ch->format->fourcc) {
ch               2099 drivers/video/fbdev/sh_mobile_lcdcfb.c 	var->width = ch->display.width;
ch               2100 drivers/video/fbdev/sh_mobile_lcdcfb.c 	var->height = ch->display.height;
ch               2101 drivers/video/fbdev/sh_mobile_lcdcfb.c 	var->xres_virtual = ch->xres_virtual;
ch               2102 drivers/video/fbdev/sh_mobile_lcdcfb.c 	var->yres_virtual = ch->yres_virtual;
ch               2108 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (!ch->format->yuv)
ch               2109 drivers/video/fbdev/sh_mobile_lcdcfb.c 		var->bits_per_pixel = ch->format->bpp;
ch               2111 drivers/video/fbdev/sh_mobile_lcdcfb.c 		var->grayscale = ch->format->fourcc;
ch               2126 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch = bl_get_data(bdev);
ch               2133 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->bl_brightness = brightness;
ch               2134 drivers/video/fbdev/sh_mobile_lcdcfb.c 	return ch->cfg->bl_info.set_brightness(brightness);
ch               2139 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct sh_mobile_lcdc_chan *ch = bl_get_data(bdev);
ch               2141 drivers/video/fbdev/sh_mobile_lcdcfb.c 	return ch->bl_brightness;
ch               2158 drivers/video/fbdev/sh_mobile_lcdcfb.c 					       struct sh_mobile_lcdc_chan *ch)
ch               2162 drivers/video/fbdev/sh_mobile_lcdcfb.c 	bl = backlight_device_register(ch->cfg->bl_info.name, parent, ch,
ch               2170 drivers/video/fbdev/sh_mobile_lcdcfb.c 	bl->props.max_brightness = ch->cfg->bl_info.max_brightness;
ch               2260 drivers/video/fbdev/sh_mobile_lcdcfb.c 	for (i = 0; i < ARRAY_SIZE(priv->ch); i++)
ch               2261 drivers/video/fbdev/sh_mobile_lcdcfb.c 		sh_mobile_lcdc_channel_fb_unregister(&priv->ch[i]);
ch               2275 drivers/video/fbdev/sh_mobile_lcdcfb.c 	for (i = 0; i < ARRAY_SIZE(priv->ch); i++) {
ch               2276 drivers/video/fbdev/sh_mobile_lcdcfb.c 		struct sh_mobile_lcdc_chan *ch = &priv->ch[i];
ch               2278 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (ch->tx_dev) {
ch               2279 drivers/video/fbdev/sh_mobile_lcdcfb.c 			ch->tx_dev->lcdc = NULL;
ch               2280 drivers/video/fbdev/sh_mobile_lcdcfb.c 			module_put(ch->cfg->tx_dev->dev.driver->owner);
ch               2283 drivers/video/fbdev/sh_mobile_lcdcfb.c 		sh_mobile_lcdc_channel_fb_cleanup(ch);
ch               2285 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (ch->fb_mem)
ch               2286 drivers/video/fbdev/sh_mobile_lcdcfb.c 			dma_free_coherent(&pdev->dev, ch->fb_size,
ch               2287 drivers/video/fbdev/sh_mobile_lcdcfb.c 					  ch->fb_mem, ch->dma_handle);
ch               2290 drivers/video/fbdev/sh_mobile_lcdcfb.c 	for (i = 0; i < ARRAY_SIZE(priv->ch); i++) {
ch               2291 drivers/video/fbdev/sh_mobile_lcdcfb.c 		struct sh_mobile_lcdc_chan *ch = &priv->ch[i];
ch               2293 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (ch->bl)
ch               2294 drivers/video/fbdev/sh_mobile_lcdcfb.c 			sh_mobile_lcdc_bl_remove(ch->bl);
ch               2295 drivers/video/fbdev/sh_mobile_lcdcfb.c 		mutex_destroy(&ch->open_lock);
ch               2312 drivers/video/fbdev/sh_mobile_lcdcfb.c static int sh_mobile_lcdc_check_interface(struct sh_mobile_lcdc_chan *ch)
ch               2314 drivers/video/fbdev/sh_mobile_lcdcfb.c 	int interface_type = ch->cfg->interface_type;
ch               2341 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (lcdc_chan_is_sublcd(ch)) {
ch               2348 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->ldmt1r_value = interface_type;
ch               2408 drivers/video/fbdev/sh_mobile_lcdcfb.c sh_mobile_lcdc_channel_init(struct sh_mobile_lcdc_chan *ch)
ch               2411 drivers/video/fbdev/sh_mobile_lcdcfb.c 	const struct sh_mobile_lcdc_chan_cfg *cfg = ch->cfg;
ch               2412 drivers/video/fbdev/sh_mobile_lcdcfb.c 	struct device *dev = ch->lcdc->dev;
ch               2466 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->format = format;
ch               2467 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->xres = mode->xres;
ch               2468 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->xres_virtual = mode->xres;
ch               2469 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->yres = mode->yres;
ch               2470 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->yres_virtual = mode->yres * 2;
ch               2473 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch->colorspace = V4L2_COLORSPACE_SRGB;
ch               2474 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch->pitch = ch->xres_virtual * format->bpp / 8;
ch               2476 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch->colorspace = V4L2_COLORSPACE_REC709;
ch               2477 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch->pitch = ch->xres_virtual;
ch               2480 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->display.width = cfg->panel_cfg.width;
ch               2481 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->display.height = cfg->panel_cfg.height;
ch               2482 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->display.mode = *mode;
ch               2485 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->fb_size = max_size * format->bpp / 8 * 2;
ch               2486 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ch->fb_mem = dma_alloc_coherent(dev, ch->fb_size, &ch->dma_handle,
ch               2488 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (ch->fb_mem == NULL) {
ch               2500 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch->tx_dev = platform_get_drvdata(cfg->tx_dev);
ch               2501 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch->tx_dev->lcdc = ch;
ch               2502 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch->tx_dev->def_mode = *mode;
ch               2505 drivers/video/fbdev/sh_mobile_lcdcfb.c 	return sh_mobile_lcdc_channel_fb_init(ch, mode, num_modes);
ch               2535 drivers/video/fbdev/sh_mobile_lcdcfb.c 	for (i = 0; i < ARRAY_SIZE(priv->ch); i++)
ch               2536 drivers/video/fbdev/sh_mobile_lcdcfb.c 		mutex_init(&priv->ch[i].open_lock);
ch               2549 drivers/video/fbdev/sh_mobile_lcdcfb.c 	for (i = 0, num_channels = 0; i < ARRAY_SIZE(pdata->ch); i++) {
ch               2550 drivers/video/fbdev/sh_mobile_lcdcfb.c 		struct sh_mobile_lcdc_chan *ch = priv->ch + num_channels;
ch               2552 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch->lcdc = priv;
ch               2553 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ch->cfg = &pdata->ch[i];
ch               2555 drivers/video/fbdev/sh_mobile_lcdcfb.c 		error = sh_mobile_lcdc_check_interface(ch);
ch               2560 drivers/video/fbdev/sh_mobile_lcdcfb.c 		init_waitqueue_head(&ch->frame_end_wait);
ch               2561 drivers/video/fbdev/sh_mobile_lcdcfb.c 		init_completion(&ch->vsync_completion);
ch               2564 drivers/video/fbdev/sh_mobile_lcdcfb.c 		if (ch->cfg->bl_info.max_brightness)
ch               2565 drivers/video/fbdev/sh_mobile_lcdcfb.c 			ch->bl = sh_mobile_lcdc_bl_probe(&pdev->dev, ch);
ch               2567 drivers/video/fbdev/sh_mobile_lcdcfb.c 		switch (pdata->ch[i].chan) {
ch               2569 drivers/video/fbdev/sh_mobile_lcdcfb.c 			ch->enabled = LDCNT2R_ME;
ch               2570 drivers/video/fbdev/sh_mobile_lcdcfb.c 			ch->reg_offs = lcdc_offs_mainlcd;
ch               2574 drivers/video/fbdev/sh_mobile_lcdcfb.c 			ch->enabled = LDCNT2R_SE;
ch               2575 drivers/video/fbdev/sh_mobile_lcdcfb.c 			ch->reg_offs = lcdc_offs_sublcd;
ch               2589 drivers/video/fbdev/sh_mobile_lcdcfb.c 		priv->forced_fourcc = pdata->ch[0].fourcc;
ch               2607 drivers/video/fbdev/sh_mobile_lcdcfb.c 		struct sh_mobile_lcdc_chan *ch = &priv->ch[i];
ch               2609 drivers/video/fbdev/sh_mobile_lcdcfb.c 		error = sh_mobile_lcdc_channel_init(ch);
ch               2618 drivers/video/fbdev/sh_mobile_lcdcfb.c 		ovl->channel = &priv->ch[0];
ch               2632 drivers/video/fbdev/sh_mobile_lcdcfb.c 		struct sh_mobile_lcdc_chan *ch = priv->ch + i;
ch               2634 drivers/video/fbdev/sh_mobile_lcdcfb.c 		error = sh_mobile_lcdc_channel_fb_register(ch);
ch                 66 drivers/visorbus/visorbus_main.c int visor_check_channel(struct channel_header *ch, struct device *dev,
ch                 73 drivers/visorbus/visorbus_main.c 		if (!guid_equal(&ch->chtype, expected_guid)) {
ch                 76 drivers/visorbus/visorbus_main.c 				&ch->chtype);
ch                 82 drivers/visorbus/visorbus_main.c 		if (ch->size < expected_min_bytes) {
ch                 86 drivers/visorbus/visorbus_main.c 				ch->size);
ch                 92 drivers/visorbus/visorbus_main.c 		if (ch->version_id != expected_version) {
ch                 96 drivers/visorbus/visorbus_main.c 				ch->version_id);
ch                102 drivers/visorbus/visorbus_main.c 		if (ch->signature != expected_signature) {
ch                105 drivers/visorbus/visorbus_main.c 				ch->signature);
ch                 20 fs/affs/namei.c affs_toupper(int ch)
ch                 22 fs/affs/namei.c 	return ch >= 'a' && ch <= 'z' ? ch -= ('a' - 'A') : ch;
ch                 28 fs/affs/namei.c affs_intl_toupper(int ch)
ch                 30 fs/affs/namei.c 	return (ch >= 'a' && ch <= 'z') || (ch >= 0xE0
ch                 31 fs/affs/namei.c 		&& ch <= 0xFE && ch != 0xF7) ?
ch                 32 fs/affs/namei.c 		ch - ('a' - 'A') : ch;
ch                144 fs/afs/cell.c  		char ch = name[i];
ch                145 fs/afs/cell.c  		if (!isprint(ch) || ch == '/' || ch == '@')
ch                 35 fs/cachefiles/key.c 	unsigned char csum, ch;
ch                 47 fs/cachefiles/key.c 		ch = raw[loop];
ch                 48 fs/cachefiles/key.c 		csum += ch;
ch                 49 fs/cachefiles/key.c 		print &= cachefiles_filecharmap[ch];
ch                107 fs/cifs/asn1.c asn1_octet_decode(struct asn1_ctx *ctx, unsigned char *ch)
ch                113 fs/cifs/asn1.c 	*ch = *(ctx->pointer)++;
ch                121 fs/cifs/asn1.c 	unsigned char ch;
ch                128 fs/cifs/asn1.c 	ch = *(ctx->pointer)++; /* ch has 0xa, ptr points to length octet */
ch                129 fs/cifs/asn1.c 	if ((ch) == ASN1_ENUM)  /* if ch value is ENUM, 0xa */
ch                142 fs/cifs/asn1.c 	unsigned char ch;
ch                147 fs/cifs/asn1.c 		if (!asn1_octet_decode(ctx, &ch))
ch                150 fs/cifs/asn1.c 		*tag |= ch & 0x7F;
ch                151 fs/cifs/asn1.c 	} while ((ch & 0x80) == 0x80);
ch                159 fs/cifs/asn1.c 	unsigned char ch;
ch                161 fs/cifs/asn1.c 	if (!asn1_octet_decode(ctx, &ch))
ch                164 fs/cifs/asn1.c 	*cls = (ch & 0xC0) >> 6;
ch                165 fs/cifs/asn1.c 	*con = (ch & 0x20) >> 5;
ch                166 fs/cifs/asn1.c 	*tag = (ch & 0x1F);
ch                178 fs/cifs/asn1.c 	unsigned char ch, cnt;
ch                180 fs/cifs/asn1.c 	if (!asn1_octet_decode(ctx, &ch))
ch                183 fs/cifs/asn1.c 	if (ch == 0x80)
ch                188 fs/cifs/asn1.c 		if (ch < 0x80)
ch                189 fs/cifs/asn1.c 			*len = ch;
ch                191 fs/cifs/asn1.c 			cnt = (unsigned char) (ch & 0x7F);
ch                195 fs/cifs/asn1.c 				if (!asn1_octet_decode(ctx, &ch))
ch                198 fs/cifs/asn1.c 				*len |= ch;
ch                239 fs/cifs/asn1.c 	unsigned char ch;
ch                242 fs/cifs/asn1.c 		if (!asn1_octet_decode(ctx, &ch))
ch                245 fs/cifs/asn1.c 		if (ch != 0x00) {
ch                250 fs/cifs/asn1.c 		if (!asn1_octet_decode(ctx, &ch))
ch                253 fs/cifs/asn1.c 		if (ch != 0x00) {
ch                392 fs/cifs/asn1.c 	unsigned char ch;
ch                397 fs/cifs/asn1.c 		if (!asn1_octet_decode(ctx, &ch))
ch                401 fs/cifs/asn1.c 		*subid |= ch & 0x7F;
ch                402 fs/cifs/asn1.c 	} while ((ch & 0x80) == 0x80);
ch                 48 fs/hfs/trans.c 		wchar_t ch;
ch                 52 fs/hfs/trans.c 				size = nls_disk->char2uni(src, srclen, &ch);
ch                 54 fs/hfs/trans.c 					ch = '?';
ch                 60 fs/hfs/trans.c 				ch = *src++;
ch                 63 fs/hfs/trans.c 			if (ch == '/')
ch                 64 fs/hfs/trans.c 				ch = ':';
ch                 65 fs/hfs/trans.c 			size = nls_io->uni2char(ch, dst, dstlen);
ch                 76 fs/hfs/trans.c 		char ch;
ch                 79 fs/hfs/trans.c 			*dst++ = (ch = *src++) == '/' ? ':' : ch;
ch                110 fs/hfs/trans.c 		wchar_t ch;
ch                113 fs/hfs/trans.c 			size = nls_io->char2uni(src, srclen, &ch);
ch                115 fs/hfs/trans.c 				ch = '?';
ch                120 fs/hfs/trans.c 			if (ch == ':')
ch                121 fs/hfs/trans.c 				ch = '/';
ch                123 fs/hfs/trans.c 				size = nls_disk->uni2char(ch, dst, dstlen);
ch                133 fs/hfs/trans.c 				*dst++ = ch > 0xff ? '?' : ch;
ch                138 fs/hfs/trans.c 		char ch;
ch                143 fs/hfs/trans.c 			*dst++ = (ch = *src++) == ':' ? '/' : ch;
ch                 20 fs/isofs/joliet.c 	__be16 *ip, ch;
ch                 26 fs/isofs/joliet.c 	while ((ch = get_unaligned(ip)) && len) {
ch                 28 fs/isofs/joliet.c 		llen = nls->uni2char(be16_to_cpu(ch), op, NLS_MAX_CHARSET_SIZE);
ch                142 fs/nfs/dns_resolve.c 		struct cache_head *ch,
ch                145 fs/nfs/dns_resolve.c 	struct nfs_dns_ent *key = container_of(ch, struct nfs_dns_ent, h);
ch                152 fs/nfs/dns_resolve.c 		struct cache_head *ch)
ch                154 fs/nfs/dns_resolve.c 	struct nfs_dns_ent *key = container_of(ch, struct nfs_dns_ent, h);
ch                159 fs/nfs/dns_resolve.c 		ret = sunrpc_cache_pipe_upcall(cd, ch);
ch                206 fs/nfs/dns_resolve.c 	struct cache_head *ch;
ch                208 fs/nfs/dns_resolve.c 	ch = sunrpc_cache_lookup_rcu(cd,
ch                211 fs/nfs/dns_resolve.c 	if (!ch)
ch                213 fs/nfs/dns_resolve.c 	return container_of(ch, struct nfs_dns_ent, h);
ch                220 fs/nfs/dns_resolve.c 	struct cache_head *ch;
ch                222 fs/nfs/dns_resolve.c 	ch = sunrpc_cache_update(cd,
ch                225 fs/nfs/dns_resolve.c 	if (!ch)
ch                227 fs/nfs/dns_resolve.c 	return container_of(ch, struct nfs_dns_ent, h);
ch                278 fs/nfsd/export.c 	struct cache_head *ch;
ch                281 fs/nfsd/export.c 	ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash);
ch                282 fs/nfsd/export.c 	if (ch)
ch                283 fs/nfsd/export.c 		return container_of(ch, struct svc_expkey, h);
ch                292 fs/nfsd/export.c 	struct cache_head *ch;
ch                295 fs/nfsd/export.c 	ch = sunrpc_cache_update(cd, &new->h, &old->h, hash);
ch                296 fs/nfsd/export.c 	if (ch)
ch                297 fs/nfsd/export.c 		return container_of(ch, struct svc_expkey, h);
ch                793 fs/nfsd/export.c 	struct cache_head *ch;
ch                796 fs/nfsd/export.c 	ch = sunrpc_cache_lookup_rcu(exp->cd, &exp->h, hash);
ch                797 fs/nfsd/export.c 	if (ch)
ch                798 fs/nfsd/export.c 		return container_of(ch, struct svc_export, h);
ch                806 fs/nfsd/export.c 	struct cache_head *ch;
ch                809 fs/nfsd/export.c 	ch = sunrpc_cache_update(old->cd, &new->h, &old->h, hash);
ch                810 fs/nfsd/export.c 	if (ch)
ch                811 fs/nfsd/export.c 		return container_of(ch, struct svc_export, h);
ch                126 fs/nfsd/nfs4idmap.c idtoname_request(struct cache_detail *cd, struct cache_head *ch, char **bpp,
ch                129 fs/nfsd/nfs4idmap.c  	struct ent *ent = container_of(ch, struct ent, h);
ch                268 fs/nfsd/nfs4idmap.c 	struct cache_head *ch = sunrpc_cache_lookup_rcu(cd, &item->h,
ch                270 fs/nfsd/nfs4idmap.c 	if (ch)
ch                271 fs/nfsd/nfs4idmap.c 		return container_of(ch, struct ent, h);
ch                279 fs/nfsd/nfs4idmap.c 	struct cache_head *ch = sunrpc_cache_update(cd, &new->h, &old->h,
ch                281 fs/nfsd/nfs4idmap.c 	if (ch)
ch                282 fs/nfsd/nfs4idmap.c 		return container_of(ch, struct ent, h);
ch                299 fs/nfsd/nfs4idmap.c nametoid_request(struct cache_detail *cd, struct cache_head *ch, char **bpp,
ch                302 fs/nfsd/nfs4idmap.c  	struct ent *ent = container_of(ch, struct ent, h);
ch                426 fs/nfsd/nfs4idmap.c 	struct cache_head *ch = sunrpc_cache_lookup_rcu(cd, &item->h,
ch                428 fs/nfsd/nfs4idmap.c 	if (ch)
ch                429 fs/nfsd/nfs4idmap.c 		return container_of(ch, struct ent, h);
ch                437 fs/nfsd/nfs4idmap.c 	struct cache_head *ch = sunrpc_cache_update(cd, &new->h, &old->h,
ch                439 fs/nfsd/nfs4idmap.c 	if (ch)
ch                440 fs/nfsd/nfs4idmap.c 		return container_of(ch, struct ent, h);
ch                559 fs/nls/mac-celtic.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                564 fs/nls/mac-celtic.c 	uni2charset = page_uni2charset[ch];
ch                489 fs/nls/mac-centeuro.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                494 fs/nls/mac-centeuro.c 	uni2charset = page_uni2charset[ch];
ch                559 fs/nls/mac-croatian.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                564 fs/nls/mac-croatian.c 	uni2charset = page_uni2charset[ch];
ch                454 fs/nls/mac-cyrillic.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                459 fs/nls/mac-cyrillic.c 	uni2charset = page_uni2charset[ch];
ch                524 fs/nls/mac-gaelic.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                529 fs/nls/mac-gaelic.c 	uni2charset = page_uni2charset[ch];
ch                454 fs/nls/mac-greek.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                459 fs/nls/mac-greek.c 	uni2charset = page_uni2charset[ch];
ch                559 fs/nls/mac-iceland.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                564 fs/nls/mac-iceland.c 	uni2charset = page_uni2charset[ch];
ch                489 fs/nls/mac-inuit.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                494 fs/nls/mac-inuit.c 	uni2charset = page_uni2charset[ch];
ch                594 fs/nls/mac-roman.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                599 fs/nls/mac-roman.c 	uni2charset = page_uni2charset[ch];
ch                559 fs/nls/mac-romanian.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                564 fs/nls/mac-romanian.c 	uni2charset = page_uni2charset[ch];
ch                559 fs/nls/mac-turkish.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                564 fs/nls/mac-turkish.c 	uni2charset = page_uni2charset[ch];
ch                124 fs/nls/nls_ascii.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                129 fs/nls/nls_ascii.c 	uni2charset = page_uni2charset[ch];
ch                502 fs/nls/nls_base.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                507 fs/nls/nls_base.c 	uni2charset = page_uni2charset[ch];
ch                305 fs/nls/nls_cp1250.c         unsigned char ch = (uni & 0xff00) >> 8;
ch                310 fs/nls/nls_cp1250.c         uni2charset = page_uni2charset[ch];
ch                259 fs/nls/nls_cp1251.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                264 fs/nls/nls_cp1251.c 	uni2charset = page_uni2charset[ch];
ch                340 fs/nls/nls_cp1255.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                345 fs/nls/nls_cp1255.c 	uni2charset = page_uni2charset[ch];
ch                345 fs/nls/nls_cp437.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                350 fs/nls/nls_cp437.c 	uni2charset = page_uni2charset[ch];
ch                308 fs/nls/nls_cp737.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                313 fs/nls/nls_cp737.c 	uni2charset = page_uni2charset[ch];
ch                277 fs/nls/nls_cp775.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                282 fs/nls/nls_cp775.c 	uni2charset = page_uni2charset[ch];
ch                273 fs/nls/nls_cp850.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                278 fs/nls/nls_cp850.c 	uni2charset = page_uni2charset[ch];
ch                295 fs/nls/nls_cp852.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                300 fs/nls/nls_cp852.c 	uni2charset = page_uni2charset[ch];
ch                257 fs/nls/nls_cp855.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                262 fs/nls/nls_cp855.c 	uni2charset = page_uni2charset[ch];
ch                259 fs/nls/nls_cp857.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                264 fs/nls/nls_cp857.c 	uni2charset = page_uni2charset[ch];
ch                322 fs/nls/nls_cp860.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                327 fs/nls/nls_cp860.c 	uni2charset = page_uni2charset[ch];
ch                345 fs/nls/nls_cp861.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                350 fs/nls/nls_cp861.c 	uni2charset = page_uni2charset[ch];
ch                379 fs/nls/nls_cp862.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                384 fs/nls/nls_cp862.c 	uni2charset = page_uni2charset[ch];
ch                339 fs/nls/nls_cp863.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                344 fs/nls/nls_cp863.c 	uni2charset = page_uni2charset[ch];
ch                365 fs/nls/nls_cp864.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                370 fs/nls/nls_cp864.c 	uni2charset = page_uni2charset[ch];
ch                345 fs/nls/nls_cp865.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                350 fs/nls/nls_cp865.c 	uni2charset = page_uni2charset[ch];
ch                263 fs/nls/nls_cp866.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                268 fs/nls/nls_cp866.c 	uni2charset = page_uni2charset[ch];
ch                273 fs/nls/nls_cp869.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                278 fs/nls/nls_cp869.c 	uni2charset = page_uni2charset[ch];
ch                231 fs/nls/nls_cp874.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                236 fs/nls/nls_cp874.c 	uni2charset = page_uni2charset[ch];
ch               7842 fs/nls/nls_cp932.c 	unsigned char ch = (uni>>8)&0xFF;
ch               7847 fs/nls/nls_cp932.c 	if (ch == 0xFF && 0x61 <= cl && cl <= 0x9F) {
ch               7851 fs/nls/nls_cp932.c 	uni2charset = page_uni2charset[ch];
ch               7861 fs/nls/nls_cp932.c 	} else if (ch == 0) {
ch               7880 fs/nls/nls_cp932.c 	unsigned char ch, cl;
ch               7897 fs/nls/nls_cp932.c 	ch = rawstring[0];
ch               7899 fs/nls/nls_cp932.c 	charset2uni = page_charset2uni[ch];
ch               11005 fs/nls/nls_cp936.c 	unsigned char ch = (uni>>8)&0xFF;
ch               11016 fs/nls/nls_cp936.c 	if (ch == 0) { /* handle the U00 plane*/
ch               11035 fs/nls/nls_cp936.c 	uni2charset = page_uni2charset[ch];
ch               11052 fs/nls/nls_cp936.c 	unsigned char ch, cl;
ch               11068 fs/nls/nls_cp936.c 	ch = rawstring[0];
ch               11071 fs/nls/nls_cp936.c 	charset2uni = page_charset2uni[ch];
ch               11078 fs/nls/nls_cp936.c 		if (ch==0x80) {/* Euro symbol.The only exception with a non-ascii unicode */
ch               11081 fs/nls/nls_cp936.c 			*uni = ch;
ch               13866 fs/nls/nls_cp949.c 	unsigned char ch = (uni>>8)&0xFF;
ch               13873 fs/nls/nls_cp949.c 	uni2charset = page_uni2charset[ch];
ch               13882 fs/nls/nls_cp949.c 	} else if (ch==0 && cl) {
ch               13895 fs/nls/nls_cp949.c 	unsigned char ch, cl;
ch               13907 fs/nls/nls_cp949.c 	ch = rawstring[0];
ch               13910 fs/nls/nls_cp949.c 	charset2uni = page_charset2uni[ch];
ch               13917 fs/nls/nls_cp949.c 		*uni = ch;
ch               9402 fs/nls/nls_cp950.c 	unsigned char ch = (uni>>8)&0xFF;
ch               9409 fs/nls/nls_cp950.c 	uni2charset = page_uni2charset[ch];
ch               9418 fs/nls/nls_cp950.c 	} else if (ch==0 && cl) {
ch               9431 fs/nls/nls_cp950.c 	unsigned char ch, cl;
ch               9443 fs/nls/nls_cp950.c 	ch = rawstring[0];
ch               9446 fs/nls/nls_cp950.c 	charset2uni = page_charset2uni[ch];
ch               9453 fs/nls/nls_cp950.c 		*uni = ch;
ch                439 fs/nls/nls_euc-jp.c 			unsigned char ch, cl;
ch                444 fs/nls/nls_euc-jp.c 			n = 3; ch = out[0]; cl = out[1];
ch                446 fs/nls/nls_euc-jp.c 			MAP_SJIS2EUC(ch, cl, 0xF5, out[1], out[2], 0xF5);
ch                215 fs/nls/nls_iso8859-1.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                220 fs/nls/nls_iso8859-1.c 	uni2charset = page_uni2charset[ch];
ch                243 fs/nls/nls_iso8859-13.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                248 fs/nls/nls_iso8859-13.c 	uni2charset = page_uni2charset[ch];
ch                299 fs/nls/nls_iso8859-14.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                304 fs/nls/nls_iso8859-14.c 	uni2charset = page_uni2charset[ch];
ch                265 fs/nls/nls_iso8859-15.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                270 fs/nls/nls_iso8859-15.c 	uni2charset = page_uni2charset[ch];
ch                266 fs/nls/nls_iso8859-2.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                271 fs/nls/nls_iso8859-2.c 	uni2charset = page_uni2charset[ch];
ch                266 fs/nls/nls_iso8859-3.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                271 fs/nls/nls_iso8859-3.c 	uni2charset = page_uni2charset[ch];
ch                266 fs/nls/nls_iso8859-4.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                271 fs/nls/nls_iso8859-4.c 	uni2charset = page_uni2charset[ch];
ch                230 fs/nls/nls_iso8859-5.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                235 fs/nls/nls_iso8859-5.c 	uni2charset = page_uni2charset[ch];
ch                221 fs/nls/nls_iso8859-6.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                226 fs/nls/nls_iso8859-6.c 	uni2charset = page_uni2charset[ch];
ch                275 fs/nls/nls_iso8859-7.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                280 fs/nls/nls_iso8859-7.c 	uni2charset = page_uni2charset[ch];
ch                230 fs/nls/nls_iso8859-9.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                235 fs/nls/nls_iso8859-9.c 	uni2charset = page_uni2charset[ch];
ch                281 fs/nls/nls_koi8-r.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                286 fs/nls/nls_koi8-r.c 	uni2charset = page_uni2charset[ch];
ch                288 fs/nls/nls_koi8-u.c 	unsigned char ch = (uni & 0xff00) >> 8;
ch                293 fs/nls/nls_koi8-u.c 	uni2charset = page_uni2charset[ch];
ch                 33 fs/ubifs/auth.c 	const struct ubifs_ch *ch = node;
ch                 39 fs/ubifs/auth.c 	err = crypto_shash_digest(shash, node, le32_to_cpu(ch->len), hash);
ch                100 fs/ubifs/auth.c 	auth->ch.node_type = UBIFS_AUTH_NODE;
ch                534 fs/ubifs/commit.c 	d->old_zroot_sqnum = le64_to_cpu(idx->ch.sqnum);
ch                613 fs/ubifs/commit.c 			if (le64_to_cpu(idx->ch.sqnum) != d->old_zroot_sqnum) {
ch                619 fs/ubifs/commit.c 			last_sqnum = le64_to_cpu(idx->ch.sqnum) + 1;
ch                632 fs/ubifs/commit.c 		if (le64_to_cpu(idx->ch.sqnum) >= last_sqnum) {
ch                683 fs/ubifs/commit.c 		last_sqnum = le64_to_cpu(idx->ch.sqnum);
ch                211 fs/ubifs/debug.c static void dump_ch(const struct ubifs_ch *ch)
ch                213 fs/ubifs/debug.c 	pr_err("\tmagic          %#x\n", le32_to_cpu(ch->magic));
ch                214 fs/ubifs/debug.c 	pr_err("\tcrc            %#x\n", le32_to_cpu(ch->crc));
ch                215 fs/ubifs/debug.c 	pr_err("\tnode_type      %d (%s)\n", ch->node_type,
ch                216 fs/ubifs/debug.c 	       dbg_ntype(ch->node_type));
ch                217 fs/ubifs/debug.c 	pr_err("\tgroup_type     %d (%s)\n", ch->group_type,
ch                218 fs/ubifs/debug.c 	       dbg_gtype(ch->group_type));
ch                220 fs/ubifs/debug.c 	       (unsigned long long)le64_to_cpu(ch->sqnum));
ch                221 fs/ubifs/debug.c 	pr_err("\tlen            %u\n", le32_to_cpu(ch->len));
ch                298 fs/ubifs/debug.c 	const struct ubifs_ch *ch = node;
ch                302 fs/ubifs/debug.c 	if (le32_to_cpu(ch->magic) != UBIFS_NODE_MAGIC) {
ch                312 fs/ubifs/debug.c 	switch (ch->node_type) {
ch                470 fs/ubifs/debug.c 		int dlen = le32_to_cpu(ch->len) - UBIFS_DATA_NODE_SZ;
ch                528 fs/ubifs/debug.c 		n = (le32_to_cpu(ch->len) - UBIFS_ORPH_NODE_SZ) >> 3;
ch                541 fs/ubifs/debug.c 		       (int)ch->node_type);
ch               1980 fs/ubifs/debug.c 	struct ubifs_ch *ch;
ch               2020 fs/ubifs/debug.c 	ch = node;
ch               2021 fs/ubifs/debug.c 	if (le64_to_cpu(ch->sqnum) > c->max_sqnum) {
ch                588 fs/ubifs/dir.c 		ubifs_assert(c, le64_to_cpu(dent->ch.sqnum) >
ch                 62 fs/ubifs/file.c 	ubifs_assert(c, le64_to_cpu(dn->ch.sqnum) >
ch                 68 fs/ubifs/file.c 	dlen = le32_to_cpu(dn->ch.len) - UBIFS_DATA_NODE_SZ;
ch                640 fs/ubifs/file.c 			ubifs_assert(c, le64_to_cpu(dn->ch.sqnum) >
ch                647 fs/ubifs/file.c 			dlen = le32_to_cpu(dn->ch.len) - UBIFS_DATA_NODE_SZ;
ch                230 fs/ubifs/io.c  	const struct ubifs_ch *ch = buf;
ch                235 fs/ubifs/io.c  	magic = le32_to_cpu(ch->magic);
ch                244 fs/ubifs/io.c  	type = ch->node_type;
ch                251 fs/ubifs/io.c  	node_len = le32_to_cpu(ch->len);
ch                267 fs/ubifs/io.c  	node_crc = le32_to_cpu(ch->crc);
ch                313 fs/ubifs/io.c  		struct ubifs_ch *ch = buf;
ch                316 fs/ubifs/io.c  		ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC);
ch                317 fs/ubifs/io.c  		ch->node_type = UBIFS_PAD_NODE;
ch                318 fs/ubifs/io.c  		ch->group_type = UBIFS_NO_NODE_GROUP;
ch                319 fs/ubifs/io.c  		ch->padding[0] = ch->padding[1] = 0;
ch                320 fs/ubifs/io.c  		ch->sqnum = 0;
ch                321 fs/ubifs/io.c  		ch->len = cpu_to_le32(UBIFS_PAD_NODE_SZ);
ch                325 fs/ubifs/io.c  		ch->crc = cpu_to_le32(crc);
ch                358 fs/ubifs/io.c  	struct ubifs_ch *ch = node;
ch                363 fs/ubifs/io.c  	ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC);
ch                364 fs/ubifs/io.c  	ch->len = cpu_to_le32(len);
ch                365 fs/ubifs/io.c  	ch->group_type = UBIFS_NO_NODE_GROUP;
ch                366 fs/ubifs/io.c  	ch->sqnum = cpu_to_le64(sqnum);
ch                367 fs/ubifs/io.c  	ch->padding[0] = ch->padding[1] = 0;
ch                378 fs/ubifs/io.c  	struct ubifs_ch *ch = node;
ch                382 fs/ubifs/io.c  	ch->crc = cpu_to_le32(crc);
ch                451 fs/ubifs/io.c  	struct ubifs_ch *ch = node;
ch                456 fs/ubifs/io.c  	ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC);
ch                457 fs/ubifs/io.c  	ch->len = cpu_to_le32(len);
ch                459 fs/ubifs/io.c  		ch->group_type = UBIFS_LAST_OF_NODE_GROUP;
ch                461 fs/ubifs/io.c  		ch->group_type = UBIFS_IN_NODE_GROUP;
ch                462 fs/ubifs/io.c  	ch->sqnum = cpu_to_le64(sqnum);
ch                463 fs/ubifs/io.c  	ch->padding[0] = ch->padding[1] = 0;
ch                465 fs/ubifs/io.c  	ch->crc = cpu_to_le32(crc);
ch                969 fs/ubifs/io.c  	struct ubifs_ch *ch = buf;
ch               1001 fs/ubifs/io.c  	if (type != ch->node_type) {
ch               1003 fs/ubifs/io.c  			  ch->node_type, type);
ch               1013 fs/ubifs/io.c  	rlen = le32_to_cpu(ch->len);
ch               1045 fs/ubifs/io.c  	struct ubifs_ch *ch = buf;
ch               1057 fs/ubifs/io.c  	if (type != ch->node_type) {
ch               1059 fs/ubifs/io.c  			   ch->node_type, type);
ch               1069 fs/ubifs/io.c  	l = le32_to_cpu(ch->len);
ch                232 fs/ubifs/journal.c 		const struct ubifs_ch *ch = node;
ch                233 fs/ubifs/journal.c 		int nodelen = le32_to_cpu(ch->len);
ch                241 fs/ubifs/journal.c 		ubifs_assert(c, ch->magic == cpu_to_le32(UBIFS_NODE_MAGIC));
ch                452 fs/ubifs/journal.c 	ino->ch.node_type = UBIFS_INO_NODE;
ch                590 fs/ubifs/journal.c 		dent->ch.node_type = UBIFS_DENT_NODE;
ch                596 fs/ubifs/journal.c 		dent->ch.node_type = UBIFS_XENT_NODE;
ch                756 fs/ubifs/journal.c 	data->ch.node_type = UBIFS_DATA_NODE;
ch               1090 fs/ubifs/journal.c 	dent1->ch.node_type = UBIFS_DENT_NODE;
ch               1106 fs/ubifs/journal.c 	dent2->ch.node_type = UBIFS_DENT_NODE;
ch               1265 fs/ubifs/journal.c 	dent->ch.node_type = UBIFS_DENT_NODE;
ch               1280 fs/ubifs/journal.c 	dent2->ch.node_type = UBIFS_DENT_NODE;
ch               1449 fs/ubifs/journal.c 	dlen = old_dlen = le32_to_cpu(dn->ch.len) - UBIFS_DATA_NODE_SZ;
ch               1533 fs/ubifs/journal.c 	trun->ch.node_type = UBIFS_TRUN_NODE;
ch               1701 fs/ubifs/journal.c 	xent->ch.node_type = UBIFS_XENT_NODE;
ch                229 fs/ubifs/log.c 	ref->ch.node_type = UBIFS_REF_NODE;
ch                373 fs/ubifs/log.c 	cs->ch.node_type = UBIFS_CS_NODE;
ch                403 fs/ubifs/log.c 		ref->ch.node_type = UBIFS_REF_NODE;
ch                614 fs/ubifs/log.c 	struct ubifs_ch *ch = node;
ch                615 fs/ubifs/log.c 	int len = le32_to_cpu(ch->len), remains = c->leb_size - *offs;
ch                355 fs/ubifs/master.c 	c->max_sqnum       = le64_to_cpu(c->mst_node->ch.sqnum);
ch                363 fs/ubifs/orphan.c 	orph->ch.node_type = UBIFS_ORPH_NODE;
ch                683 fs/ubifs/orphan.c 		n = (le32_to_cpu(orph->ch.len) - UBIFS_ORPH_NODE_SZ) >> 3;
ch                955 fs/ubifs/orphan.c 		n = (le32_to_cpu(orph->ch.len) - UBIFS_ORPH_NODE_SZ) >> 3;
ch                117 fs/ubifs/recovery.c 		struct ubifs_ch *ch = buf;
ch                119 fs/ubifs/recovery.c 		if (le32_to_cpu(ch->magic) != UBIFS_NODE_MAGIC)
ch                148 fs/ubifs/recovery.c 			struct ubifs_ch *ch = buf;
ch                150 fs/ubifs/recovery.c 			if (ch->node_type != UBIFS_MST_NODE)
ch                338 fs/ubifs/recovery.c 		c->max_sqnum = le64_to_cpu(mst->ch.sqnum) - 1;
ch                461 fs/ubifs/recovery.c 	struct ubifs_ch *ch = buf;
ch                462 fs/ubifs/recovery.c 	int skip, dlen = le32_to_cpu(ch->len);
ch                566 fs/ubifs/recovery.c 		struct ubifs_ch *ch;
ch                570 fs/ubifs/recovery.c 		ch = snod->node;
ch                571 fs/ubifs/recovery.c 		if (ch->group_type != UBIFS_IN_NODE_GROUP)
ch                650 fs/ubifs/recovery.c 			struct ubifs_ch *ch = buf;
ch                656 fs/ubifs/recovery.c 			node_len = ALIGN(le32_to_cpu(ch->len), 8);
ch                820 fs/ubifs/recovery.c 	if (cs_node->ch.node_type != UBIFS_CS_NODE) {
ch                821 fs/ubifs/recovery.c 		ubifs_err(c, "Not a CS node, type is %d", cs_node->ch.node_type);
ch                830 fs/ubifs/recovery.c 	*cs_sqnum = le64_to_cpu(cs_node->ch.sqnum);
ch               1009 fs/ubifs/recovery.c 			struct ubifs_ch *ch = buf;
ch               1012 fs/ubifs/recovery.c 			node_len = ALIGN(le32_to_cpu(ch->len), 8);
ch               1430 fs/ubifs/recovery.c 	len = le32_to_cpu(ino->ch.len);
ch               1432 fs/ubifs/recovery.c 	ino->ch.crc = cpu_to_le32(crc);
ch                485 fs/ubifs/replay.c 	if (le32_to_cpu(dent->ch.len) != nlen + UBIFS_DENT_NODE_SZ + 1 ||
ch               1039 fs/ubifs/replay.c 		c->cs_sqnum = le64_to_cpu(node->ch.sqnum);
ch                190 fs/ubifs/sb.c  	sup->ch.node_type  = UBIFS_SB_NODE;
ch                224 fs/ubifs/sb.c  	mst->ch.node_type = UBIFS_MST_NODE;
ch                276 fs/ubifs/sb.c  	idx->ch.node_type = UBIFS_IDX_NODE;
ch                290 fs/ubifs/sb.c  	ino->ch.node_type = UBIFS_INO_NODE;
ch                319 fs/ubifs/sb.c  	cs->ch.node_type = UBIFS_CS_NODE;
ch                 60 fs/ubifs/scan.c 	struct ubifs_ch *ch = buf;
ch                 63 fs/ubifs/scan.c 	magic = le32_to_cpu(ch->magic);
ch                 77 fs/ubifs/scan.c 		 dbg_ntype(ch->node_type), lnum, offs);
ch                 82 fs/ubifs/scan.c 	if (ch->node_type == UBIFS_PAD_NODE) {
ch                 85 fs/ubifs/scan.c 		int node_len = le32_to_cpu(ch->len);
ch                184 fs/ubifs/scan.c 	struct ubifs_ch *ch = buf;
ch                192 fs/ubifs/scan.c 	snod->sqnum = le64_to_cpu(ch->sqnum);
ch                193 fs/ubifs/scan.c 	snod->type = ch->node_type;
ch                195 fs/ubifs/scan.c 	snod->len = le32_to_cpu(ch->len);
ch                198 fs/ubifs/scan.c 	switch (ch->node_type) {
ch                266 fs/ubifs/scan.c 		struct ubifs_ch *ch = buf;
ch                307 fs/ubifs/scan.c 		node_len = ALIGN(le32_to_cpu(ch->len), 8);
ch                448 fs/ubifs/tnc.c 	struct ubifs_ch *ch = buf;
ch                460 fs/ubifs/tnc.c 	if (le32_to_cpu(ch->magic) != UBIFS_NODE_MAGIC)
ch                463 fs/ubifs/tnc.c 	if (ch->node_type != type)
ch                466 fs/ubifs/tnc.c 	node_len = le32_to_cpu(ch->len);
ch                473 fs/ubifs/tnc.c 		node_crc = le32_to_cpu(ch->crc);
ch               1694 fs/ubifs/tnc.c 	struct ubifs_ch *ch = buf;
ch               1697 fs/ubifs/tnc.c 	if (ch->node_type != UBIFS_DATA_NODE) {
ch               1699 fs/ubifs/tnc.c 			  ch->node_type, UBIFS_DATA_NODE);
ch               1715 fs/ubifs/tnc.c 	len = le32_to_cpu(ch->len);
ch                 33 fs/ubifs/tnc_commit.c 	idx->ch.node_type = UBIFS_IDX_NODE;
ch                866 fs/ubifs/tnc_commit.c 		idx->ch.node_type = UBIFS_IDX_NODE;
ch                516 fs/ubifs/ubifs-media.h 	struct ubifs_ch ch;
ch                557 fs/ubifs/ubifs-media.h 	struct ubifs_ch ch;
ch                578 fs/ubifs/ubifs-media.h 	struct ubifs_ch ch;
ch                599 fs/ubifs/ubifs-media.h 	struct ubifs_ch ch;
ch                613 fs/ubifs/ubifs-media.h 	struct ubifs_ch ch;
ch                653 fs/ubifs/ubifs-media.h 	struct ubifs_ch ch;
ch                723 fs/ubifs/ubifs-media.h 	struct ubifs_ch ch;
ch                767 fs/ubifs/ubifs-media.h 	struct ubifs_ch ch;
ch                780 fs/ubifs/ubifs-media.h 	struct ubifs_ch ch;
ch                794 fs/ubifs/ubifs-media.h 	struct ubifs_ch ch;
ch                827 fs/ubifs/ubifs-media.h 	struct ubifs_ch ch;
ch                839 fs/ubifs/ubifs-media.h 	struct ubifs_ch ch;
ch                850 fs/ubifs/ubifs-media.h 	struct ubifs_ch ch;
ch                 20 include/linux/firmware/imx/dsp.h 	struct mbox_chan *ch;
ch                156 include/linux/fsl/guts.h 	unsigned int co, unsigned int ch, unsigned int device)
ch                158 include/linux/fsl/guts.h 	unsigned int shift = 16 + (8 * (1 - co) + 2 * (3 - ch));
ch                192 include/linux/fsl/guts.h 	unsigned int co, unsigned int ch, unsigned int value)
ch                194 include/linux/fsl/guts.h 	if ((ch == 0) || (ch == 3)) {
ch                195 include/linux/fsl/guts.h 		unsigned int shift = 2 * (co + 1) - (ch & 1) - 1;
ch                239 include/linux/host1x.h struct host1x_job *host1x_job_alloc(struct host1x_channel *ch,
ch                428 include/linux/hwmon.h static inline bool hwmon_is_bad_char(const char ch)
ch                430 include/linux/hwmon.h 	switch (ch) {
ch                198 include/linux/iio/common/st_sensors.h 	struct iio_chan_spec *ch;
ch                304 include/linux/iio/common/st_sensors.h 				struct iio_chan_spec const *ch, int *val);
ch                630 include/linux/kernel.h extern int hex_to_bin(char ch);
ch                 45 include/linux/lightnvm.h 			u64 ch		: NVM_GEN_CH_BITS;
ch                 53 include/linux/lightnvm.h 			u64 ch		: NVM_GEN_CH_BITS;
ch                449 include/linux/lightnvm.h 		l.ppa = ((u64)r.g.ch) << ppaf->ch_offset;
ch                478 include/linux/lightnvm.h 		l.g.ch = (r.ppa & ppaf->ch_mask) >> ppaf->ch_offset;
ch                533 include/linux/lightnvm.h 			ppa64.g.ch = (ppa32 & ppaf->ch_mask) >>
ch                578 include/linux/lightnvm.h 			ppa32 |= ppa64.g.ch << ppaf->ch_offset;
ch                141 include/linux/mISDNhw.h 	struct mISDNchannel	ch;
ch                319 include/linux/mISDNif.h 	struct ph_info_ch ch;
ch                453 include/linux/mISDNif.h 	struct mISDNchannel	*ch;
ch                487 include/linux/mISDNif.h 	struct mISDNchannel	ch;
ch                565 include/linux/mISDNif.h _queue_data(struct mISDNchannel *ch, u_int prim,
ch                570 include/linux/mISDNif.h 	if (!ch->peer)
ch                575 include/linux/mISDNif.h 	if (ch->recv(ch->peer, skb))
ch                306 include/linux/omap-dma.h extern void omap_enable_dma_irq(int ch, u16 irq_bits);
ch                307 include/linux/omap-dma.h extern void omap_disable_dma_irq(int ch, u16 irq_bits);
ch                308 include/linux/omap-dma.h extern void omap_free_dma(int ch);
ch                372 include/linux/omap-dma.h static inline void omap_free_dma(int ch) { }
ch                 24 include/linux/platform_data/dma-mcf-edma.h #define MCF_EDMA_FILTER_PARAM(ch)	((void *)ch)
ch                 45 include/linux/serial_core.h 	void		(*send_xchar)(struct uart_port *, char ch);
ch                461 include/linux/serial_core.h 		 unsigned int overrun, unsigned int ch, unsigned int flag);
ch                465 include/linux/serial_core.h uart_handle_sysrq_char(struct uart_port *port, unsigned int ch)
ch                468 include/linux/serial_core.h 		if (ch && time_before(jiffies, port->sysrq)) {
ch                469 include/linux/serial_core.h 			handle_sysrq(ch);
ch                478 include/linux/serial_core.h uart_prepare_sysrq_char(struct uart_port *port, unsigned int ch)
ch                481 include/linux/serial_core.h 		if (ch && time_before(jiffies, port->sysrq)) {
ch                482 include/linux/serial_core.h 			port->sysrq_ch = ch;
ch                505 include/linux/serial_core.h uart_handle_sysrq_char(struct uart_port *port, unsigned int ch) { return 0; }
ch                507 include/linux/serial_core.h uart_prepare_sysrq_char(struct uart_port *port, unsigned int ch) { return 0; }
ch                307 include/linux/soundwire/sdw.h 	u32 *ch;
ch                 77 include/linux/sunrpc/cache.h 						 struct cache_head *ch,
ch                489 include/linux/tty.h extern int tty_send_xchar(struct tty_struct *tty, char ch);
ch                734 include/linux/tty.h extern void tty_audit_tiocsti(struct tty_struct *tty, char ch);
ch                741 include/linux/tty.h static inline void tty_audit_tiocsti(struct tty_struct *tty, char ch)
ch                265 include/linux/tty_driver.h 	int  (*put_char)(struct tty_struct *tty, unsigned char ch);
ch                283 include/linux/tty_driver.h 	void (*send_xchar)(struct tty_struct *tty, char ch);
ch                297 include/linux/tty_driver.h 	void (*poll_put_char)(struct tty_driver *driver, int line, char ch);
ch                 16 include/linux/tty_flip.h int __tty_insert_flip_char(struct tty_port *port, unsigned char ch, char flag);
ch                 19 include/linux/tty_flip.h 					unsigned char ch, char flag)
ch                 28 include/linux/tty_flip.h 		*char_buf_ptr(tb, tb->used++) = ch;
ch                 31 include/linux/tty_flip.h 	return __tty_insert_flip_char(port, ch, flag);
ch                116 include/linux/usb/audio-v3.h #define UAC3_DT_FEATURE_UNIT_SIZE(ch)		(7 + ((ch) + 1) * 4)
ch                119 include/linux/usb/audio-v3.h #define DECLARE_UAC3_FEATURE_UNIT_DESCRIPTOR(ch)		\
ch                120 include/linux/usb/audio-v3.h struct uac3_feature_unit_descriptor_##ch {			\
ch                126 include/linux/usb/audio-v3.h 	__le32 bmaControls[ch + 1];				\
ch                369 include/linux/usb/serial.h 					unsigned int ch);
ch                318 include/linux/visorbus.h int visor_check_channel(struct channel_header *ch, struct device *dev,
ch                 51 include/net/sctp/stream_sched.h void sctp_sched_dequeue_done(struct sctp_outq *q, struct sctp_chunk *ch);
ch                 53 include/net/sctp/stream_sched.h void sctp_sched_dequeue_common(struct sctp_outq *q, struct sctp_chunk *ch);
ch                680 include/net/sctp/structs.h static inline __u16 sctp_chunk_stream_no(struct sctp_chunk *ch)
ch                682 include/net/sctp/structs.h 	return ntohs(ch->subh.data_hdr->stream);
ch                482 include/soc/fsl/qman.h static inline void qm_fqd_set_destwq(struct qm_fqd *fqd, int ch, int wq)
ch                484 include/soc/fsl/qman.h 	fqd->dest_wq = cpu_to_be16((ch << QM_FQD_CHAN_OFF) |
ch                 98 include/sound/emu8000.h void snd_emu8000_dma_chan(struct snd_emu8000 *emu, int ch, int mode);
ch                 42 include/sound/emux_synth.h 	void (*reset)(struct snd_emux *emu, int ch);
ch                152 include/sound/emux_synth.h 	int  ch;		/* Hardware channel number */
ch                 50 include/sound/hda_regmap.h #define snd_hdac_regmap_encode_amp(nid, ch, dir, idx)			\
ch                 52 include/sound/hda_regmap.h 	 ((ch) ? AC_AMP_GET_RIGHT : AC_AMP_GET_LEFT) |			\
ch                137 include/sound/hda_regmap.h 			int ch, int dir, int idx)
ch                139 include/sound/hda_regmap.h 	unsigned int cmd = snd_hdac_regmap_encode_amp(nid, ch, dir, idx);
ch                161 include/sound/hda_regmap.h 			   int ch, int dir, int idx, int mask, int val)
ch                163 include/sound/hda_regmap.h 	unsigned int cmd = snd_hdac_regmap_encode_amp(nid, ch, dir, idx);
ch                497 include/sound/wavefront.h #define WF_CHANNEL_STATUS(ch,wcp) (wcp)[(ch/7)] & (1<<((ch)%7))
ch                242 include/uapi/linux/usb/audio.h #define UAC_DT_FEATURE_UNIT_SIZE(ch)		(7 + ((ch) + 1) * 2)
ch                245 include/uapi/linux/usb/audio.h #define DECLARE_UAC_FEATURE_UNIT_DESCRIPTOR(ch)			\
ch                246 include/uapi/linux/usb/audio.h struct uac_feature_unit_descriptor_##ch {			\
ch                253 include/uapi/linux/usb/audio.h 	__le16 bmaControls[ch + 1];				\
ch                214 include/uapi/sound/hdspm.h 	struct hdspm_channelfader ch[HDSPM_MIXER_CHANNELS];
ch                254 include/video/imx-ipu-v3.h void ipu_cpmem_zero(struct ipuv3_channel *ch);
ch                255 include/video/imx-ipu-v3.h void ipu_cpmem_set_resolution(struct ipuv3_channel *ch, int xres, int yres);
ch                256 include/video/imx-ipu-v3.h void ipu_cpmem_skip_odd_chroma_rows(struct ipuv3_channel *ch);
ch                257 include/video/imx-ipu-v3.h void ipu_cpmem_set_stride(struct ipuv3_channel *ch, int stride);
ch                258 include/video/imx-ipu-v3.h void ipu_cpmem_set_high_priority(struct ipuv3_channel *ch);
ch                259 include/video/imx-ipu-v3.h void ipu_cpmem_set_buffer(struct ipuv3_channel *ch, int bufnum, dma_addr_t buf);
ch                260 include/video/imx-ipu-v3.h void ipu_cpmem_set_uv_offset(struct ipuv3_channel *ch, u32 u_off, u32 v_off);
ch                261 include/video/imx-ipu-v3.h void ipu_cpmem_interlaced_scan(struct ipuv3_channel *ch, int stride,
ch                263 include/video/imx-ipu-v3.h void ipu_cpmem_set_axi_id(struct ipuv3_channel *ch, u32 id);
ch                264 include/video/imx-ipu-v3.h int ipu_cpmem_get_burstsize(struct ipuv3_channel *ch);
ch                265 include/video/imx-ipu-v3.h void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize);
ch                266 include/video/imx-ipu-v3.h void ipu_cpmem_set_block_mode(struct ipuv3_channel *ch);
ch                267 include/video/imx-ipu-v3.h void ipu_cpmem_set_rotation(struct ipuv3_channel *ch,
ch                269 include/video/imx-ipu-v3.h int ipu_cpmem_set_format_rgb(struct ipuv3_channel *ch,
ch                271 include/video/imx-ipu-v3.h int ipu_cpmem_set_format_passthrough(struct ipuv3_channel *ch, int width);
ch                272 include/video/imx-ipu-v3.h void ipu_cpmem_set_yuv_interleaved(struct ipuv3_channel *ch, u32 pixel_format);
ch                273 include/video/imx-ipu-v3.h void ipu_cpmem_set_yuv_planar_full(struct ipuv3_channel *ch,
ch                277 include/video/imx-ipu-v3.h int ipu_cpmem_set_fmt(struct ipuv3_channel *ch, u32 drm_fourcc);
ch                278 include/video/imx-ipu-v3.h int ipu_cpmem_set_image(struct ipuv3_channel *ch, struct ipu_image *image);
ch                279 include/video/imx-ipu-v3.h void ipu_cpmem_dump(struct ipuv3_channel *ch);
ch                192 include/video/sh_mobile_lcdc.h 	struct sh_mobile_lcdc_chan_cfg ch[2];
ch                 96 kernel/debug/gdbstub.c 	char ch;
ch                103 kernel/debug/gdbstub.c 		while ((ch = (gdbstub_read_wait())) != '$')
ch                116 kernel/debug/gdbstub.c 			ch = gdbstub_read_wait();
ch                117 kernel/debug/gdbstub.c 			if (ch == '#')
ch                119 kernel/debug/gdbstub.c 			checksum = checksum + ch;
ch                120 kernel/debug/gdbstub.c 			buffer[count] = ch;
ch                124 kernel/debug/gdbstub.c 		if (ch == '#') {
ch                149 kernel/debug/gdbstub.c 	char ch;
ch                159 kernel/debug/gdbstub.c 		while ((ch = buffer[count])) {
ch                160 kernel/debug/gdbstub.c 			dbg_io_ops->write_char(ch);
ch                161 kernel/debug/gdbstub.c 			checksum += ch;
ch                172 kernel/debug/gdbstub.c 		ch = gdbstub_read_wait();
ch                174 kernel/debug/gdbstub.c 		if (ch == 3)
ch                175 kernel/debug/gdbstub.c 			ch = gdbstub_read_wait();
ch                178 kernel/debug/gdbstub.c 		if (ch == '+')
ch                187 kernel/debug/gdbstub.c 		if (ch == '$') {
ch               1117 kernel/debug/gdbstub.c 	unsigned char checksum, ch, buffer[3];
ch               1135 kernel/debug/gdbstub.c 		ch = buffer[loop];
ch               1136 kernel/debug/gdbstub.c 		checksum += ch;
ch               1137 kernel/debug/gdbstub.c 		dbg_io_ops->write_char(ch);
ch               4959 kernel/locking/lockdep.c static void free_zapped_rcu(struct rcu_head *ch)
ch               4964 kernel/locking/lockdep.c 	if (WARN_ON_ONCE(ch != &delayed_free.rcu_head))
ch                921 kernel/sysctl_binary.c 		int ch;
ch                931 kernel/sysctl_binary.c 		if (get_user(ch, lastp))
ch                935 kernel/sysctl_binary.c 		if (ch == '\n') {
ch               1408 kernel/trace/trace.c 	char ch;
ch               1415 kernel/trace/trace.c 	ret = get_user(ch, ubuf++);
ch               1428 kernel/trace/trace.c 		while (cnt && isspace(ch)) {
ch               1429 kernel/trace/trace.c 			ret = get_user(ch, ubuf++);
ch               1439 kernel/trace/trace.c 		if (isspace(ch) || !ch) {
ch               1447 kernel/trace/trace.c 	while (cnt && !isspace(ch) && ch) {
ch               1449 kernel/trace/trace.c 			parser->buffer[parser->idx++] = ch;
ch               1454 kernel/trace/trace.c 		ret = get_user(ch, ubuf++);
ch               1462 kernel/trace/trace.c 	if (isspace(ch) || !ch) {
ch               1467 kernel/trace/trace.c 		parser->buffer[parser->idx++] = ch;
ch                 65 lib/earlycpio.c 	unsigned int ch[C_NFIELDS], *chp, v;
ch                 81 lib/earlycpio.c 		chp = ch;
ch                106 lib/earlycpio.c 		if ((ch[C_MAGIC] - 0x070701) > 1)
ch                111 lib/earlycpio.c 		dptr = PTR_ALIGN(p + ch[C_NAMESIZE], 4);
ch                112 lib/earlycpio.c 		nptr = PTR_ALIGN(dptr + ch[C_FILESIZE], 4);
ch                117 lib/earlycpio.c 		if ((ch[C_MODE] & 0170000) == 0100000 &&
ch                118 lib/earlycpio.c 		    ch[C_NAMESIZE] >= mypathsize &&
ch                124 lib/earlycpio.c 			if (ch[C_NAMESIZE] - mypathsize >= MAX_CPIO_FILE_NAME) {
ch                132 lib/earlycpio.c 			cd.size = ch[C_FILESIZE];
ch                 25 lib/hexdump.c  int hex_to_bin(char ch)
ch                 27 lib/hexdump.c  	if ((ch >= '0') && (ch <= '9'))
ch                 28 lib/hexdump.c  		return ch - '0';
ch                 29 lib/hexdump.c  	ch = tolower(ch);
ch                 30 lib/hexdump.c  	if ((ch >= 'a') && (ch <= 'f'))
ch                 31 lib/hexdump.c  		return ch - 'a' + 10;
ch                110 lib/hexdump.c  	u8 ch;
ch                171 lib/hexdump.c  			ch = ptr[j];
ch                172 lib/hexdump.c  			linebuf[lx++] = hex_asc_hi(ch);
ch                175 lib/hexdump.c  			linebuf[lx++] = hex_asc_lo(ch);
ch                194 lib/hexdump.c  		ch = ptr[j];
ch                195 lib/hexdump.c  		linebuf[lx++] = (isascii(ch) && isprint(ch)) ? ch : '.';
ch               1236 net/atm/lec.c  #define HASH(ch) (ch & (LEC_ARP_TABLE_SIZE - 1))
ch               1041 net/bluetooth/rfcomm/tty.c static void rfcomm_tty_send_xchar(struct tty_struct *tty, char ch)
ch               1043 net/bluetooth/rfcomm/tty.c 	BT_DBG("tty %p ch %c", tty, ch);
ch                632 net/bluetooth/sco.c 	struct sock *sk = sock->sk, *ch;
ch                650 net/bluetooth/sco.c 		ch = bt_accept_dequeue(sk, newsock);
ch                651 net/bluetooth/sco.c 		if (ch)
ch                676 net/bluetooth/sco.c 	BT_DBG("new socket %p", ch);
ch                686 net/ceph/auth_x.c 	struct ceph_x_authorize_challenge *ch =
ch                695 net/ceph/auth_x.c 	if (ret < sizeof(*ch)) {
ch                700 net/ceph/auth_x.c 	*server_challenge = le64_to_cpu(ch->server_challenge);
ch                 76 net/mac80211/tdls.c 	struct ieee80211_channel *ch;
ch                 85 net/mac80211/tdls.c 		ch = ieee80211_get_channel(sdata->local->hw.wiphy, i);
ch                 86 net/mac80211/tdls.c 		if (ch) {
ch                 88 net/mac80211/tdls.c 			cfg80211_chandef_create(&chandef, ch,
ch                482 net/sctp/associola.c 	struct sctp_chunk *ch;
ch                548 net/sctp/associola.c 		list_for_each_entry(ch, &peer->transmitted,
ch                550 net/sctp/associola.c 			ch->transport = NULL;
ch                551 net/sctp/associola.c 			ch->rtt_in_progress = 0;
ch                567 net/sctp/associola.c 	list_for_each_entry(ch, &asoc->outqueue.out_chunk_list, list)
ch                568 net/sctp/associola.c 		if (ch->transport == peer)
ch                569 net/sctp/associola.c 			ch->transport = NULL;
ch                667 net/sctp/input.c 	struct sctp_chunkhdr *ch, _ch;
ch                676 net/sctp/input.c 		ch = skb_header_pointer(skb, offset, sizeof(*ch), &_ch);
ch                679 net/sctp/input.c 		if (ntohs(ch->length) < sizeof(_ch))
ch                682 net/sctp/input.c 		ch_end = offset + SCTP_PAD4(ntohs(ch->length));
ch                690 net/sctp/input.c 		if (SCTP_CID_ABORT == ch->type)
ch                697 net/sctp/input.c 		if (SCTP_CID_SHUTDOWN_COMPLETE == ch->type)
ch                705 net/sctp/input.c 		if (SCTP_CID_INIT == ch->type && (void *)ch != skb->data)
ch               1160 net/sctp/input.c 					struct sctp_chunkhdr *ch,
ch               1165 net/sctp/input.c 	struct sctp_addip_chunk *asconf = (struct sctp_addip_chunk *)ch;
ch               1198 net/sctp/input.c 	struct sctp_chunkhdr *ch;
ch               1206 net/sctp/input.c 	ch = (struct sctp_chunkhdr *)skb->data;
ch               1209 net/sctp/input.c 		if (ntohs(ch->length) < sizeof(*ch))
ch               1212 net/sctp/input.c 		ch_end = ((__u8 *)ch) + SCTP_PAD4(ntohs(ch->length));
ch               1216 net/sctp/input.c 		switch (ch->type) {
ch               1236 net/sctp/input.c 						net, ch, laddr,
ch               1246 net/sctp/input.c 		ch = (struct sctp_chunkhdr *)ch_end;
ch               1264 net/sctp/input.c 	struct sctp_chunkhdr *ch;
ch               1274 net/sctp/input.c 	ch = (struct sctp_chunkhdr *)skb->data;
ch               1281 net/sctp/input.c 	if (SCTP_PAD4(ntohs(ch->length)) > skb->len)
ch               1285 net/sctp/input.c 	if (ch->type == SCTP_CID_INIT || ch->type == SCTP_CID_INIT_ACK)
ch                 87 net/sctp/inqueue.c 	struct sctp_chunkhdr *ch = NULL;
ch                 96 net/sctp/inqueue.c 	ch = (struct sctp_chunkhdr *)chunk->chunk_end;
ch                 98 net/sctp/inqueue.c 	return ch;
ch                110 net/sctp/inqueue.c 	struct sctp_chunkhdr *ch = NULL;
ch                139 net/sctp/inqueue.c 			ch = (struct sctp_chunkhdr *)chunk->chunk_end;
ch                183 net/sctp/inqueue.c 		ch = (struct sctp_chunkhdr *)chunk->skb->data;
ch                200 net/sctp/inqueue.c 	chunk->chunk_hdr = ch;
ch                201 net/sctp/inqueue.c 	chunk->chunk_end = ((__u8 *)ch) + SCTP_PAD4(ntohs(ch->length));
ch                202 net/sctp/inqueue.c 	skb_pull(chunk->skb, sizeof(*ch));
ch                205 net/sctp/inqueue.c 	if (chunk->chunk_end + sizeof(*ch) <= skb_tail_pointer(chunk->skb)) {
ch                 59 net/sctp/outqueue.c 				       struct sctp_chunk *ch)
ch                 64 net/sctp/outqueue.c 	list_add(&ch->list, &q->out_chunk_list);
ch                 65 net/sctp/outqueue.c 	q->out_qlen += ch->skb->len;
ch                 67 net/sctp/outqueue.c 	stream = sctp_chunk_stream_no(ch);
ch                 69 net/sctp/outqueue.c 	list_add(&ch->stream_list, &oute->outq);
ch                 80 net/sctp/outqueue.c 				       struct sctp_chunk *ch)
ch                 85 net/sctp/outqueue.c 	list_add_tail(&ch->list, &q->out_chunk_list);
ch                 86 net/sctp/outqueue.c 	q->out_qlen += ch->skb->len;
ch                 88 net/sctp/outqueue.c 	stream = sctp_chunk_stream_no(ch);
ch                 90 net/sctp/outqueue.c 	list_add_tail(&ch->stream_list, &oute->outq);
ch               1476 net/sctp/sm_make_chunk.c void sctp_chunk_hold(struct sctp_chunk *ch)
ch               1478 net/sctp/sm_make_chunk.c 	refcount_inc(&ch->refcnt);
ch               1482 net/sctp/sm_make_chunk.c void sctp_chunk_put(struct sctp_chunk *ch)
ch               1484 net/sctp/sm_make_chunk.c 	if (refcount_dec_and_test(&ch->refcnt))
ch               1485 net/sctp/sm_make_chunk.c 		sctp_chunk_destroy(ch);
ch               3541 net/sctp/sm_statefuns.c 	struct sctp_chunkhdr *ch;
ch               3549 net/sctp/sm_statefuns.c 	ch = (struct sctp_chunkhdr *)chunk->chunk_hdr;
ch               3552 net/sctp/sm_statefuns.c 		if (ntohs(ch->length) < sizeof(*ch))
ch               3557 net/sctp/sm_statefuns.c 		ch_end = ((__u8 *)ch) + SCTP_PAD4(ntohs(ch->length));
ch               3565 net/sctp/sm_statefuns.c 		if (SCTP_CID_SHUTDOWN_ACK == ch->type)
ch               3573 net/sctp/sm_statefuns.c 		if (SCTP_CID_ABORT == ch->type)
ch               3581 net/sctp/sm_statefuns.c 		if (SCTP_CID_COOKIE_ACK == ch->type)
ch               3584 net/sctp/sm_statefuns.c 		if (SCTP_CID_ERROR == ch->type) {
ch               3585 net/sctp/sm_statefuns.c 			sctp_walk_errors(err, ch) {
ch               3593 net/sctp/sm_statefuns.c 		ch = (struct sctp_chunkhdr *)ch_end;
ch               6988 net/sctp/socket.c 	struct sctp_chunks_param *ch;
ch               7006 net/sctp/socket.c 	ch = asoc->peer.peer_chunks;
ch               7007 net/sctp/socket.c 	if (!ch)
ch               7011 net/sctp/socket.c 	num_chunks = ntohs(ch->param_hdr.length) - sizeof(struct sctp_paramhdr);
ch               7015 net/sctp/socket.c 	if (copy_to_user(to, ch->chunks, num_chunks))
ch               7033 net/sctp/socket.c 	struct sctp_chunks_param *ch;
ch               7052 net/sctp/socket.c 		ch = (struct sctp_chunks_param *)asoc->c.auth_chunks;
ch               7056 net/sctp/socket.c 		ch = ep->auth_chunk_list;
ch               7058 net/sctp/socket.c 	if (!ch)
ch               7061 net/sctp/socket.c 	num_chunks = ntohs(ch->param_hdr.length) - sizeof(struct sctp_paramhdr);
ch               7065 net/sctp/socket.c 	if (copy_to_user(to, ch->chunks, num_chunks))
ch                 33 net/sctp/stream.c 	struct sctp_chunk *ch, *temp;
ch                 40 net/sctp/stream.c 	list_for_each_entry_safe(ch, temp, &outq->out_chunk_list, list) {
ch                 41 net/sctp/stream.c 		__u16 sid = sctp_chunk_stream_no(ch);
ch                 46 net/sctp/stream.c 		sctp_sched_dequeue_common(outq, ch);
ch                 52 net/sctp/stream.c 		sctp_chunk_fail(ch, (__force __u32)SCTP_ERROR_INV_STRM);
ch                 54 net/sctp/stream.c 		    SCTP_PR_PRIO_ENABLED(ch->sinfo.sinfo_flags))
ch                 57 net/sctp/stream.c 		sctp_chunk_free(ch);
ch               1170 net/sctp/stream_interleave.c #define sctp_walk_ifwdtsn(pos, ch) \
ch               1171 net/sctp/stream_interleave.c 	_sctp_walk_ifwdtsn((pos), (ch), ntohs((ch)->chunk_hdr->length) - \
ch                 61 net/sctp/stream_sched.c 	struct sctp_chunk *ch = NULL;
ch                 68 net/sctp/stream_sched.c 		ch = list_entry(stream->out_curr->ext->outq.next,
ch                 72 net/sctp/stream_sched.c 		ch = list_entry(entry, struct sctp_chunk, list);
ch                 75 net/sctp/stream_sched.c 	sctp_sched_dequeue_common(q, ch);
ch                 78 net/sctp/stream_sched.c 	return ch;
ch                135 net/sctp/stream_sched.c 	struct sctp_chunk *ch;
ch                172 net/sctp/stream_sched.c 	list_for_each_entry(ch, &asoc->outqueue.out_chunk_list, list) {
ch                173 net/sctp/stream_sched.c 		if (ch->msg == msg)
ch                175 net/sctp/stream_sched.c 		msg = ch->msg;
ch                228 net/sctp/stream_sched.c void sctp_sched_dequeue_done(struct sctp_outq *q, struct sctp_chunk *ch)
ch                230 net/sctp/stream_sched.c 	if (!list_is_last(&ch->frag_list, &ch->msg->chunks) &&
ch                239 net/sctp/stream_sched.c 		sid = sctp_chunk_stream_no(ch);
ch                246 net/sctp/stream_sched.c 	q->sched->dequeue_done(q, ch);
ch                250 net/sctp/stream_sched.c void sctp_sched_dequeue_common(struct sctp_outq *q, struct sctp_chunk *ch)
ch                252 net/sctp/stream_sched.c 	list_del_init(&ch->list);
ch                253 net/sctp/stream_sched.c 	list_del_init(&ch->stream_list);
ch                254 net/sctp/stream_sched.c 	q->out_qlen -= ch->skb->len;
ch                237 net/sctp/stream_sched_prio.c 	struct sctp_chunk *ch;
ch                240 net/sctp/stream_sched_prio.c 	ch = list_first_entry(&msg->chunks, struct sctp_chunk, frag_list);
ch                241 net/sctp/stream_sched_prio.c 	sid = sctp_chunk_stream_no(ch);
ch                251 net/sctp/stream_sched_prio.c 	struct sctp_chunk *ch = NULL;
ch                267 net/sctp/stream_sched_prio.c 	ch = list_entry(soute->outq.next, struct sctp_chunk, stream_list);
ch                268 net/sctp/stream_sched_prio.c 	sctp_sched_dequeue_common(q, ch);
ch                271 net/sctp/stream_sched_prio.c 	return ch;
ch                275 net/sctp/stream_sched_prio.c 					 struct sctp_chunk *ch)
ch                284 net/sctp/stream_sched_prio.c 	sid = sctp_chunk_stream_no(ch);
ch                298 net/sctp/stream_sched_prio.c 	struct sctp_chunk *ch;
ch                301 net/sctp/stream_sched_prio.c 	list_for_each_entry(ch, &asoc->outqueue.out_chunk_list, list) {
ch                304 net/sctp/stream_sched_prio.c 		sid = sctp_chunk_stream_no(ch);
ch                102 net/sctp/stream_sched_rr.c 	struct sctp_chunk *ch;
ch                105 net/sctp/stream_sched_rr.c 	ch = list_first_entry(&msg->chunks, struct sctp_chunk, frag_list);
ch                106 net/sctp/stream_sched_rr.c 	sid = sctp_chunk_stream_no(ch);
ch                115 net/sctp/stream_sched_rr.c 	struct sctp_chunk *ch = NULL;
ch                126 net/sctp/stream_sched_rr.c 	ch = list_entry(soute->outq.next, struct sctp_chunk, stream_list);
ch                128 net/sctp/stream_sched_rr.c 	sctp_sched_dequeue_common(q, ch);
ch                131 net/sctp/stream_sched_rr.c 	return ch;
ch                135 net/sctp/stream_sched_rr.c 				       struct sctp_chunk *ch)
ch                141 net/sctp/stream_sched_rr.c 	sid = sctp_chunk_stream_no(ch);
ch                154 net/sctp/stream_sched_rr.c 	struct sctp_chunk *ch;
ch                157 net/sctp/stream_sched_rr.c 	list_for_each_entry(ch, &asoc->outqueue.out_chunk_list, list) {
ch                160 net/sctp/stream_sched_rr.c 		sid = sctp_chunk_stream_no(ch);
ch                361 net/sctp/ulpevent.c 	struct sctp_errhdr *ch;
ch                366 net/sctp/ulpevent.c 	ch = (struct sctp_errhdr *)(chunk->skb->data);
ch                367 net/sctp/ulpevent.c 	cause = ch->cause;
ch                368 net/sctp/ulpevent.c 	elen = SCTP_PAD4(ntohs(ch->length)) - sizeof(*ch);
ch                371 net/sctp/ulpevent.c 	skb_pull(chunk->skb, sizeof(*ch));
ch                292 net/sunrpc/auth_gss/svcauth_gss.c 	struct cache_head *ch;
ch                295 net/sunrpc/auth_gss/svcauth_gss.c 	ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash);
ch                296 net/sunrpc/auth_gss/svcauth_gss.c 	if (ch)
ch                297 net/sunrpc/auth_gss/svcauth_gss.c 		return container_of(ch, struct rsi, h);
ch                304 net/sunrpc/auth_gss/svcauth_gss.c 	struct cache_head *ch;
ch                307 net/sunrpc/auth_gss/svcauth_gss.c 	ch = sunrpc_cache_update(cd, &new->h,
ch                309 net/sunrpc/auth_gss/svcauth_gss.c 	if (ch)
ch                310 net/sunrpc/auth_gss/svcauth_gss.c 		return container_of(ch, struct rsi, h);
ch                563 net/sunrpc/auth_gss/svcauth_gss.c 	struct cache_head *ch;
ch                566 net/sunrpc/auth_gss/svcauth_gss.c 	ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash);
ch                567 net/sunrpc/auth_gss/svcauth_gss.c 	if (ch)
ch                568 net/sunrpc/auth_gss/svcauth_gss.c 		return container_of(ch, struct rsc, h);
ch                575 net/sunrpc/auth_gss/svcauth_gss.c 	struct cache_head *ch;
ch                578 net/sunrpc/auth_gss/svcauth_gss.c 	ch = sunrpc_cache_update(cd, &new->h,
ch                580 net/sunrpc/auth_gss/svcauth_gss.c 	if (ch)
ch                581 net/sunrpc/auth_gss/svcauth_gss.c 		return container_of(ch, struct rsc, h);
ch                140 net/sunrpc/cache.c static void cache_dequeue(struct cache_detail *detail, struct cache_head *ch);
ch                441 net/sunrpc/cache.c 		struct cache_head *ch = NULL;
ch                451 net/sunrpc/cache.c 		hlist_for_each_entry_safe(ch, tmp, head, cache_list) {
ch                452 net/sunrpc/cache.c 			if (current_detail->nextcheck > ch->expiry_time)
ch                453 net/sunrpc/cache.c 				current_detail->nextcheck = ch->expiry_time+1;
ch                454 net/sunrpc/cache.c 			if (!cache_is_expired(current_detail, ch))
ch                457 net/sunrpc/cache.c 			hlist_del_init_rcu(&ch->cache_list);
ch                465 net/sunrpc/cache.c 		if (!ch)
ch                468 net/sunrpc/cache.c 		if (ch) {
ch                469 net/sunrpc/cache.c 			set_bit(CACHE_CLEANED, &ch->flags);
ch                470 net/sunrpc/cache.c 			cache_fresh_unlocked(ch, d);
ch                471 net/sunrpc/cache.c 			cache_put(ch, d);
ch                513 net/sunrpc/cache.c 	struct cache_head *ch = NULL;
ch                527 net/sunrpc/cache.c 		hlist_for_each_entry_safe(ch, tmp, head, cache_list) {
ch                528 net/sunrpc/cache.c 			hlist_del_init_rcu(&ch->cache_list);
ch                531 net/sunrpc/cache.c 			set_bit(CACHE_CLEANED, &ch->flags);
ch                533 net/sunrpc/cache.c 			cache_fresh_unlocked(ch, detail);
ch                534 net/sunrpc/cache.c 			cache_put(ch, detail);
ch               1072 net/sunrpc/cache.c static void cache_dequeue(struct cache_detail *detail, struct cache_head *ch)
ch               1083 net/sunrpc/cache.c 			if (cr->item != ch)
ch               1085 net/sunrpc/cache.c 			if (test_bit(CACHE_PENDING, &ch->flags))
ch               1321 net/sunrpc/cache.c 	struct cache_head *ch;
ch               1329 net/sunrpc/cache.c 	hlist_for_each_entry_rcu(ch, &cd->hash_table[hash], cache_list)
ch               1331 net/sunrpc/cache.c 			return ch;
ch               1348 net/sunrpc/cache.c 	struct cache_head *ch = p;
ch               1354 net/sunrpc/cache.c 	else if (ch->cache_list.next == NULL) {
ch               1360 net/sunrpc/cache.c 					hlist_next_rcu(&ch->cache_list)),
ch                287 net/sunrpc/svcauth_unix.c 	struct cache_head *ch;
ch                291 net/sunrpc/svcauth_unix.c 	ch = sunrpc_cache_lookup_rcu(cd, &ip.h,
ch                295 net/sunrpc/svcauth_unix.c 	if (ch)
ch                296 net/sunrpc/svcauth_unix.c 		return container_of(ch, struct ip_map, h);
ch                314 net/sunrpc/svcauth_unix.c 	struct cache_head *ch;
ch                321 net/sunrpc/svcauth_unix.c 	ch = sunrpc_cache_update(cd, &ip.h, &ipm->h,
ch                324 net/sunrpc/svcauth_unix.c 	if (!ch)
ch                326 net/sunrpc/svcauth_unix.c 	cache_put(ch, cd);
ch                535 net/sunrpc/svcauth_unix.c 		struct cache_head *ch;
ch                538 net/sunrpc/svcauth_unix.c 		ch = sunrpc_cache_update(cd,
ch                541 net/sunrpc/svcauth_unix.c 		if (!ch)
ch                545 net/sunrpc/svcauth_unix.c 			cache_put(ch, cd);
ch                628 net/sunrpc/svcauth_unix.c 	struct cache_head *ch;
ch                631 net/sunrpc/svcauth_unix.c 	ch = sunrpc_cache_lookup_rcu(cd, &ug.h, unix_gid_hash(uid));
ch                632 net/sunrpc/svcauth_unix.c 	if (ch)
ch                633 net/sunrpc/svcauth_unix.c 		return container_of(ch, struct unix_gid, h);
ch                 14 scripts/bin2c.c 	int ch, total = 0;
ch                 22 scripts/bin2c.c 		while ((ch = getchar()) != EOF) {
ch                 24 scripts/bin2c.c 			printf("\\x%02x", ch);
ch                 29 scripts/bin2c.c 	} while (ch != EOF);
ch                129 scripts/kconfig/lkc.h static inline bool sym_set_choice_value(struct symbol *ch, struct symbol *chval)
ch                472 scripts/kconfig/mconf.c 	char ch;
ch                546 scripts/kconfig/mconf.c 				case yes: ch = '*'; break;
ch                547 scripts/kconfig/mconf.c 				case mod: ch = 'M'; break;
ch                548 scripts/kconfig/mconf.c 				default:  ch = ' '; break;
ch                550 scripts/kconfig/mconf.c 				item_make("<%c>", ch);
ch                599 scripts/kconfig/mconf.c 				case yes: ch = '*'; break;
ch                600 scripts/kconfig/mconf.c 				case mod: ch = 'M'; break;
ch                601 scripts/kconfig/mconf.c 				default:  ch = ' '; break;
ch                605 scripts/kconfig/mconf.c 						item_make("{%c}", ch);
ch                607 scripts/kconfig/mconf.c 						item_make("<%c>", ch);
ch                609 scripts/kconfig/mconf.c 					item_make("-%c-", ch);
ch                742 scripts/kconfig/nconf.c 	char ch;
ch                815 scripts/kconfig/nconf.c 					ch = '*';
ch                818 scripts/kconfig/nconf.c 					ch = 'M';
ch                821 scripts/kconfig/nconf.c 					ch = ' ';
ch                824 scripts/kconfig/nconf.c 				item_make(menu, 't', "<%c>", ch);
ch                870 scripts/kconfig/nconf.c 					ch = '*';
ch                873 scripts/kconfig/nconf.c 					ch = 'M';
ch                876 scripts/kconfig/nconf.c 					ch = ' ';
ch                882 scripts/kconfig/nconf.c 							't', "{%c}", ch);
ch                885 scripts/kconfig/nconf.c 							't', "<%c>", ch);
ch                887 scripts/kconfig/nconf.c 					item_make(menu, 't', "-%c-", ch);
ch                153 scripts/kconfig/qconf.cc 		char ch;
ch                170 scripts/kconfig/qconf.cc 			ch = 'Y';
ch                175 scripts/kconfig/qconf.cc 			ch = 'M';
ch                183 scripts/kconfig/qconf.cc 			ch = 'N';
ch                193 scripts/kconfig/qconf.cc 		setText(dataColIdx, QChar(ch));
ch                555 scripts/kconfig/symbol.c 	signed char ch;
ch                561 scripts/kconfig/symbol.c 		ch = *str++;
ch                562 scripts/kconfig/symbol.c 		if (ch == '-')
ch                563 scripts/kconfig/symbol.c 			ch = *str++;
ch                564 scripts/kconfig/symbol.c 		if (!isdigit(ch))
ch                566 scripts/kconfig/symbol.c 		if (ch == '0' && *str != 0)
ch                568 scripts/kconfig/symbol.c 		while ((ch = *str++)) {
ch                569 scripts/kconfig/symbol.c 			if (!isdigit(ch))
ch                576 scripts/kconfig/symbol.c 		ch = *str++;
ch                578 scripts/kconfig/symbol.c 			if (!isxdigit(ch))
ch                580 scripts/kconfig/symbol.c 		} while ((ch = *str++));
ch               1173 sound/core/oss/mixer_oss.c 	int ch;
ch               1179 sound/core/oss/mixer_oss.c 		for (ch = 0; ch < SNDRV_OSS_MAX_MIXERS; ch++)
ch               1180 sound/core/oss/mixer_oss.c 			if (oss_mixer_names[ch] && strcmp(oss_mixer_names[ch], str) == 0)
ch               1182 sound/core/oss/mixer_oss.c 		if (ch >= SNDRV_OSS_MAX_MIXERS) {
ch               1191 sound/core/oss/mixer_oss.c 			mixer_slot_clear(&mixer->slots[ch]);
ch               1202 sound/core/oss/mixer_oss.c 		slot = (struct slot *)mixer->slots[ch].private_data;
ch               1210 sound/core/oss/mixer_oss.c 		tbl->oss_id = ch;
ch                400 sound/core/pcm_compat.c 	int err, ch, i;
ch                409 sound/core/pcm_compat.c 	if ((ch = substream->runtime->channels) > 128)
ch                415 sound/core/pcm_compat.c 	bufs = kmalloc_array(ch, sizeof(void __user *), GFP_KERNEL);
ch                418 sound/core/pcm_compat.c 	for (i = 0; i < ch; i++) {
ch               2299 sound/core/pcm_lib.c static bool valid_chmap_channels(const struct snd_pcm_chmap *info, int ch)
ch               2301 sound/core/pcm_lib.c 	if (ch > info->max_channels)
ch               2303 sound/core/pcm_lib.c 	return !info->channel_mask || (info->channel_mask & (1U << ch));
ch                 57 sound/core/seq/oss/seq_oss_device.h 	struct seq_oss_chinfo *ch;
ch                 28 sound/core/seq/oss/seq_oss_event.c static int note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev);
ch                 29 sound/core/seq/oss/seq_oss_event.c static int note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev);
ch                 30 sound/core/seq/oss/seq_oss_event.c 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);
ch                 31 sound/core/seq/oss/seq_oss_event.c 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);
ch                274 sound/core/seq/oss/seq_oss_event.c note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev)
ch                284 sound/core/seq/oss/seq_oss_event.c 		if (! info->ch || ch < 0 || ch >= info->nr_voices) {
ch                286 sound/core/seq/oss/seq_oss_event.c 			return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev);
ch                289 sound/core/seq/oss/seq_oss_event.c 		ch = array_index_nospec(ch, info->nr_voices);
ch                290 sound/core/seq/oss/seq_oss_event.c 		if (note == 255 && info->ch[ch].note >= 0) {
ch                297 sound/core/seq/oss/seq_oss_event.c 				if (info->ch[ch].vel)
ch                303 sound/core/seq/oss/seq_oss_event.c 			info->ch[ch].vel = vel;
ch                304 sound/core/seq/oss/seq_oss_event.c 			return set_note_event(dp, dev, type, ch, info->ch[ch].note, vel, ev);
ch                308 sound/core/seq/oss/seq_oss_event.c 		if (note != info->ch[ch].note && info->ch[ch].note >= 0)
ch                310 sound/core/seq/oss/seq_oss_event.c 			set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEOFF, ch, info->ch[ch].note, 0, ev);
ch                312 sound/core/seq/oss/seq_oss_event.c 		info->ch[ch].note = note;
ch                313 sound/core/seq/oss/seq_oss_event.c 		info->ch[ch].vel = vel;
ch                315 sound/core/seq/oss/seq_oss_event.c 			return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev);
ch                320 sound/core/seq/oss/seq_oss_event.c 		return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev);
ch                324 sound/core/seq/oss/seq_oss_event.c 			return set_note_event(dp, dev, SNDRV_SEQ_EVENT_KEYPRESS, ch, note - 128, vel, ev);
ch                326 sound/core/seq/oss/seq_oss_event.c 			return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev);
ch                335 sound/core/seq/oss/seq_oss_event.c note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev)
ch                345 sound/core/seq/oss/seq_oss_event.c 		if (! info->ch || ch < 0 || ch >= info->nr_voices) {
ch                347 sound/core/seq/oss/seq_oss_event.c 			return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev);
ch                350 sound/core/seq/oss/seq_oss_event.c 		ch = array_index_nospec(ch, info->nr_voices);
ch                351 sound/core/seq/oss/seq_oss_event.c 		if (info->ch[ch].note >= 0) {
ch                352 sound/core/seq/oss/seq_oss_event.c 			note = info->ch[ch].note;
ch                353 sound/core/seq/oss/seq_oss_event.c 			info->ch[ch].vel = 0;
ch                354 sound/core/seq/oss/seq_oss_event.c 			info->ch[ch].note = -1;
ch                355 sound/core/seq/oss/seq_oss_event.c 			return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEOFF, ch, note, vel, ev);
ch                362 sound/core/seq/oss/seq_oss_event.c 		return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEOFF, ch, note, vel, ev);
ch                372 sound/core/seq/oss/seq_oss_event.c set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel, struct snd_seq_event *ev)
ch                379 sound/core/seq/oss/seq_oss_event.c 	ev->data.note.channel = ch;
ch                390 sound/core/seq/oss/seq_oss_event.c set_control_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int param, int val, struct snd_seq_event *ev)
ch                397 sound/core/seq/oss/seq_oss_event.c 	ev->data.control.channel = ch;
ch                237 sound/core/seq/oss/seq_oss_synth.c 			info->ch = kcalloc(info->nr_voices, sizeof(struct seq_oss_chinfo), GFP_KERNEL);
ch                238 sound/core/seq/oss/seq_oss_synth.c 			if (!info->ch) {
ch                323 sound/core/seq/oss/seq_oss_synth.c 		kfree(info->ch);
ch                324 sound/core/seq/oss/seq_oss_synth.c 		info->ch = NULL;
ch                375 sound/core/seq/oss/seq_oss_synth.c 	if (info->ch == NULL || ! info->nr_voices)
ch                378 sound/core/seq/oss/seq_oss_synth.c 		info->ch[i].note = -1;
ch                379 sound/core/seq/oss/seq_oss_synth.c 		info->ch[i].vel = 0;
ch                413 sound/core/seq/oss/seq_oss_synth.c 			kfree(info->ch);
ch                414 sound/core/seq/oss/seq_oss_synth.c 			info->ch = NULL;
ch                661 sound/core/seq/seq_midi_emul.c 	int ch;
ch                662 sound/core/seq/seq_midi_emul.c 	for (ch = 0; ch < chset->max_channels; ch++) {
ch                663 sound/core/seq/seq_midi_emul.c 		struct snd_midi_channel *chan = chset->channels + ch;
ch                669 sound/core/seq/seq_midi_emul.c 		if (ch == 9)
ch                 60 sound/core/vmaster.c 	int err, ch;
ch                 69 sound/core/vmaster.c 	for (ch = 0; ch < slave->info.count; ch++)
ch                 70 sound/core/vmaster.c 		slave->vals[ch] = uctl->value.integer.value[ch];
ch                140 sound/core/vmaster.c 	int err, ch;
ch                145 sound/core/vmaster.c 	for (ch = 0; ch < slave->info.count; ch++)
ch                146 sound/core/vmaster.c 		ucontrol->value.integer.value[ch] = slave->vals[ch];
ch                153 sound/core/vmaster.c 	int err, ch, vol;
ch                161 sound/core/vmaster.c 		for (ch = 0; ch < slave->info.count; ch++)
ch                162 sound/core/vmaster.c 			ucontrol->value.integer.value[ch] &=
ch                166 sound/core/vmaster.c 		for (ch = 0; ch < slave->info.count; ch++) {
ch                168 sound/core/vmaster.c 			vol = ucontrol->value.integer.value[ch];
ch                174 sound/core/vmaster.c 			ucontrol->value.integer.value[ch] = vol;
ch                202 sound/core/vmaster.c 	int err, ch, changed = 0;
ch                207 sound/core/vmaster.c 	for (ch = 0; ch < slave->info.count; ch++) {
ch                208 sound/core/vmaster.c 		if (slave->vals[ch] != ucontrol->value.integer.value[ch]) {
ch                210 sound/core/vmaster.c 			slave->vals[ch] = ucontrol->value.integer.value[ch];
ch                257 sound/firewire/bebob/bebob_stream.c 	unsigned int sec, sections, ch, channels;
ch                318 sound/firewire/bebob/bebob_stream.c 		for (ch = 0; ch < channels; ch++) {
ch                331 sound/firewire/bebob/bebob_stream.c 				sec_loc = ch;
ch                214 sound/firewire/isight.c 	int ch, err;
ch                218 sound/firewire/isight.c 	ch = fw_iso_resources_allocate(&isight->resources,
ch                221 sound/firewire/isight.c 	if (ch < 0) {
ch                222 sound/firewire/isight.c 		err = ch;
ch                226 sound/firewire/isight.c 	value = cpu_to_be32(ch | (isight->device->max_speed << SPEED_SHIFT));
ch                 97 sound/isa/sb/emu8000.c snd_emu8000_dma_chan(struct snd_emu8000 *emu, int ch, int mode)
ch                102 sound/isa/sb/emu8000.c 		EMU8000_CCCA_WRITE(emu, ch, 0);
ch                103 sound/isa/sb/emu8000.c 		EMU8000_DCYSUSV_WRITE(emu, ch, 0x807F);
ch                106 sound/isa/sb/emu8000.c 	EMU8000_DCYSUSV_WRITE(emu, ch, 0x80);
ch                107 sound/isa/sb/emu8000.c 	EMU8000_VTFT_WRITE(emu, ch, 0);
ch                108 sound/isa/sb/emu8000.c 	EMU8000_CVCF_WRITE(emu, ch, 0);
ch                109 sound/isa/sb/emu8000.c 	EMU8000_PTRX_WRITE(emu, ch, 0x40000000);
ch                110 sound/isa/sb/emu8000.c 	EMU8000_CPF_WRITE(emu, ch, 0x40000000);
ch                111 sound/isa/sb/emu8000.c 	EMU8000_PSST_WRITE(emu, ch, 0);
ch                112 sound/isa/sb/emu8000.c 	EMU8000_CSL_WRITE(emu, ch, 0);
ch                114 sound/isa/sb/emu8000.c 		EMU8000_CCCA_WRITE(emu, ch, 0x06000000 | right_bit);
ch                116 sound/isa/sb/emu8000.c 		EMU8000_CCCA_WRITE(emu, ch, 0x04000000 | right_bit);
ch                175 sound/isa/sb/emu8000.c 	int ch;
ch                178 sound/isa/sb/emu8000.c 	for (ch = 0; ch < EMU8000_CHANNELS; ch++)
ch                179 sound/isa/sb/emu8000.c 		EMU8000_DCYSUSV_WRITE(emu, ch, 0x80);
ch                182 sound/isa/sb/emu8000.c 	for (ch = 0; ch < EMU8000_CHANNELS; ch++) {
ch                183 sound/isa/sb/emu8000.c 		EMU8000_ENVVOL_WRITE(emu, ch, 0);
ch                184 sound/isa/sb/emu8000.c 		EMU8000_ENVVAL_WRITE(emu, ch, 0);
ch                185 sound/isa/sb/emu8000.c 		EMU8000_DCYSUS_WRITE(emu, ch, 0);
ch                186 sound/isa/sb/emu8000.c 		EMU8000_ATKHLDV_WRITE(emu, ch, 0);
ch                187 sound/isa/sb/emu8000.c 		EMU8000_LFO1VAL_WRITE(emu, ch, 0);
ch                188 sound/isa/sb/emu8000.c 		EMU8000_ATKHLD_WRITE(emu, ch, 0);
ch                189 sound/isa/sb/emu8000.c 		EMU8000_LFO2VAL_WRITE(emu, ch, 0);
ch                190 sound/isa/sb/emu8000.c 		EMU8000_IP_WRITE(emu, ch, 0);
ch                191 sound/isa/sb/emu8000.c 		EMU8000_IFATN_WRITE(emu, ch, 0);
ch                192 sound/isa/sb/emu8000.c 		EMU8000_PEFE_WRITE(emu, ch, 0);
ch                193 sound/isa/sb/emu8000.c 		EMU8000_FMMOD_WRITE(emu, ch, 0);
ch                194 sound/isa/sb/emu8000.c 		EMU8000_TREMFRQ_WRITE(emu, ch, 0);
ch                195 sound/isa/sb/emu8000.c 		EMU8000_FM2FRQ2_WRITE(emu, ch, 0);
ch                196 sound/isa/sb/emu8000.c 		EMU8000_PTRX_WRITE(emu, ch, 0);
ch                197 sound/isa/sb/emu8000.c 		EMU8000_VTFT_WRITE(emu, ch, 0);
ch                198 sound/isa/sb/emu8000.c 		EMU8000_PSST_WRITE(emu, ch, 0);
ch                199 sound/isa/sb/emu8000.c 		EMU8000_CSL_WRITE(emu, ch, 0);
ch                200 sound/isa/sb/emu8000.c 		EMU8000_CCCA_WRITE(emu, ch, 0);
ch                203 sound/isa/sb/emu8000.c 	for (ch = 0; ch < EMU8000_CHANNELS; ch++) {
ch                204 sound/isa/sb/emu8000.c 		EMU8000_CPF_WRITE(emu, ch, 0);
ch                205 sound/isa/sb/emu8000.c 		EMU8000_CVCF_WRITE(emu, ch, 0);
ch                 22 sound/isa/sb/emu8000_callback.c static void reset_voice(struct snd_emux *emu, int ch);
ch                 39 sound/isa/sb/emu8000_callback.c static void snd_emu8000_tweak_voice(struct snd_emu8000 *emu, int ch);
ch                 90 sound/isa/sb/emu8000_callback.c 	EMU8000_DCYSUS_WRITE(hw, vp->ch, dcysusv);
ch                 92 sound/isa/sb/emu8000_callback.c 	EMU8000_DCYSUSV_WRITE(hw, vp->ch, dcysusv);
ch                104 sound/isa/sb/emu8000_callback.c 	EMU8000_DCYSUSV_WRITE(hw, vp->ch, 0x807F);
ch                183 sound/isa/sb/emu8000_callback.c 			val = (EMU8000_CVCF_READ(hw, vp->ch) >> 16) & 0xffff;
ch                195 sound/isa/sb/emu8000_callback.c 			val = EMU8000_CCCA_READ(hw, vp->ch) & 0xffffff;
ch                209 sound/isa/sb/emu8000_callback.c 			vp->ch = best[i].voice;
ch                224 sound/isa/sb/emu8000_callback.c 	int ch;
ch                230 sound/isa/sb/emu8000_callback.c 	ch = vp->ch;
ch                234 sound/isa/sb/emu8000_callback.c 	EMU8000_DCYSUSV_WRITE(hw, ch, 0x0080);
ch                235 sound/isa/sb/emu8000_callback.c 	EMU8000_VTFT_WRITE(hw, ch, 0x0000FFFF);
ch                236 sound/isa/sb/emu8000_callback.c 	EMU8000_CVCF_WRITE(hw, ch, 0x0000FFFF);
ch                237 sound/isa/sb/emu8000_callback.c 	EMU8000_PTRX_WRITE(hw, ch, 0);
ch                238 sound/isa/sb/emu8000_callback.c 	EMU8000_CPF_WRITE(hw, ch, 0);
ch                244 sound/isa/sb/emu8000_callback.c 	EMU8000_ENVVAL_WRITE(hw, ch, vp->reg.parm.moddelay);
ch                245 sound/isa/sb/emu8000_callback.c 	EMU8000_ATKHLD_WRITE(hw, ch, vp->reg.parm.modatkhld);
ch                246 sound/isa/sb/emu8000_callback.c 	EMU8000_DCYSUS_WRITE(hw, ch, vp->reg.parm.moddcysus);
ch                247 sound/isa/sb/emu8000_callback.c 	EMU8000_ENVVOL_WRITE(hw, ch, vp->reg.parm.voldelay);
ch                248 sound/isa/sb/emu8000_callback.c 	EMU8000_ATKHLDV_WRITE(hw, ch, vp->reg.parm.volatkhld);
ch                256 sound/isa/sb/emu8000_callback.c 	EMU8000_PEFE_WRITE(hw, ch, vp->reg.parm.pefe);
ch                259 sound/isa/sb/emu8000_callback.c 	EMU8000_LFO1VAL_WRITE(hw, ch, vp->reg.parm.lfo1delay);
ch                260 sound/isa/sb/emu8000_callback.c 	EMU8000_LFO2VAL_WRITE(hw, ch, vp->reg.parm.lfo2delay);
ch                277 sound/isa/sb/emu8000_callback.c 	EMU8000_CSL_WRITE(hw, ch, temp);
ch                283 sound/isa/sb/emu8000_callback.c 	EMU8000_CCCA_WRITE(hw, ch, temp);
ch                286 sound/isa/sb/emu8000_callback.c 	EMU8000_00A0_WRITE(hw, ch, 0);
ch                287 sound/isa/sb/emu8000_callback.c 	EMU8000_0080_WRITE(hw, ch, 0);
ch                291 sound/isa/sb/emu8000_callback.c 	EMU8000_VTFT_WRITE(hw, ch, temp | vp->ftarget);
ch                292 sound/isa/sb/emu8000_callback.c 	EMU8000_CVCF_WRITE(hw, ch, temp | 0xff00);
ch                303 sound/isa/sb/emu8000_callback.c 	int ch = vp->ch;
ch                314 sound/isa/sb/emu8000_callback.c 	EMU8000_PTRX_WRITE(hw, ch, temp);
ch                315 sound/isa/sb/emu8000_callback.c 	EMU8000_CPF_WRITE(hw, ch, vp->ptarget << 16);
ch                316 sound/isa/sb/emu8000_callback.c 	EMU8000_DCYSUSV_WRITE(hw, ch, vp->reg.parm.voldcysus);
ch                323 sound/isa/sb/emu8000_callback.c reset_voice(struct snd_emux *emu, int ch)
ch                328 sound/isa/sb/emu8000_callback.c 	EMU8000_DCYSUSV_WRITE(hw, ch, 0x807F);
ch                329 sound/isa/sb/emu8000_callback.c 	snd_emu8000_tweak_voice(hw, ch);
ch                338 sound/isa/sb/emu8000_callback.c 	EMU8000_IP_WRITE(hw, vp->ch, vp->apitch);
ch                352 sound/isa/sb/emu8000_callback.c 	EMU8000_IFATN_WRITE(hw, vp->ch, ifatn);
ch                364 sound/isa/sb/emu8000_callback.c 	EMU8000_PSST_WRITE(hw, vp->ch, temp);
ch                383 sound/isa/sb/emu8000_callback.c 	EMU8000_FMMOD_WRITE(hw, vp->ch, fmmod);
ch                390 sound/isa/sb/emu8000_callback.c 	EMU8000_TREMFRQ_WRITE(hw, vp->ch, vp->reg.parm.tremfrq);
ch                408 sound/isa/sb/emu8000_callback.c 	EMU8000_FM2FRQ2_WRITE(hw, vp->ch, fm2frq2);
ch                416 sound/isa/sb/emu8000_callback.c 	addr = EMU8000_CCCA_READ(hw, vp->ch) & 0xffffff;
ch                418 sound/isa/sb/emu8000_callback.c 	EMU8000_CCCA_WRITE(hw, vp->ch, addr);
ch                171 sound/isa/sb/emu8000_pcm.c static inline int emu8k_get_curpos(struct snd_emu8k_pcm *rec, int ch)
ch                173 sound/isa/sb/emu8000_pcm.c 	int val = EMU8000_CCCA_READ(rec->emu, ch) & 0xfffffff;
ch                174 sound/isa/sb/emu8000_pcm.c 	val -= rec->loop_start[ch] - 1;
ch                269 sound/isa/sb/emu8000_pcm.c static void setup_voice(struct snd_emu8k_pcm *rec, int ch)
ch                275 sound/isa/sb/emu8000_pcm.c 	EMU8000_DCYSUSV_WRITE(hw, ch, 0x0080);
ch                276 sound/isa/sb/emu8000_pcm.c 	EMU8000_VTFT_WRITE(hw, ch, 0x0000FFFF);
ch                277 sound/isa/sb/emu8000_pcm.c 	EMU8000_CVCF_WRITE(hw, ch, 0x0000FFFF);
ch                278 sound/isa/sb/emu8000_pcm.c 	EMU8000_PTRX_WRITE(hw, ch, 0);
ch                279 sound/isa/sb/emu8000_pcm.c 	EMU8000_CPF_WRITE(hw, ch, 0);
ch                282 sound/isa/sb/emu8000_pcm.c 	EMU8000_IP_WRITE(hw, ch, rec->pitch);
ch                284 sound/isa/sb/emu8000_pcm.c 	EMU8000_ENVVAL_WRITE(hw, ch, 0x8000);
ch                285 sound/isa/sb/emu8000_pcm.c 	EMU8000_ATKHLD_WRITE(hw, ch, 0x7f7f);
ch                286 sound/isa/sb/emu8000_pcm.c 	EMU8000_DCYSUS_WRITE(hw, ch, 0x7f7f);
ch                287 sound/isa/sb/emu8000_pcm.c 	EMU8000_ENVVOL_WRITE(hw, ch, 0x8000);
ch                288 sound/isa/sb/emu8000_pcm.c 	EMU8000_ATKHLDV_WRITE(hw, ch, 0x7f7f);
ch                292 sound/isa/sb/emu8000_pcm.c 	EMU8000_PEFE_WRITE(hw, ch, 0x0);
ch                294 sound/isa/sb/emu8000_pcm.c 	EMU8000_LFO1VAL_WRITE(hw, ch, 0x8000);
ch                295 sound/isa/sb/emu8000_pcm.c 	EMU8000_LFO2VAL_WRITE(hw, ch, 0x8000);
ch                297 sound/isa/sb/emu8000_pcm.c 	EMU8000_FMMOD_WRITE(hw, ch, 0);
ch                299 sound/isa/sb/emu8000_pcm.c 	EMU8000_TREMFRQ_WRITE(hw, ch, 0);
ch                301 sound/isa/sb/emu8000_pcm.c 	EMU8000_FM2FRQ2_WRITE(hw, ch, 0);
ch                303 sound/isa/sb/emu8000_pcm.c 	temp = rec->panning[ch];
ch                304 sound/isa/sb/emu8000_pcm.c 	temp = (temp <<24) | ((unsigned int)rec->loop_start[ch] - 1);
ch                305 sound/isa/sb/emu8000_pcm.c 	EMU8000_PSST_WRITE(hw, ch, temp);
ch                308 sound/isa/sb/emu8000_pcm.c 	temp = (temp << 24) | ((unsigned int)rec->loop_start[ch] + rec->buf_size - 1);
ch                309 sound/isa/sb/emu8000_pcm.c 	EMU8000_CSL_WRITE(hw, ch, temp);
ch                312 sound/isa/sb/emu8000_pcm.c 	temp = (temp << 28) | ((unsigned int)rec->loop_start[ch] - 1);
ch                313 sound/isa/sb/emu8000_pcm.c 	EMU8000_CCCA_WRITE(hw, ch, temp);
ch                315 sound/isa/sb/emu8000_pcm.c 	EMU8000_00A0_WRITE(hw, ch, 0);
ch                316 sound/isa/sb/emu8000_pcm.c 	EMU8000_0080_WRITE(hw, ch, 0);
ch                322 sound/isa/sb/emu8000_pcm.c static void start_voice(struct snd_emu8k_pcm *rec, int ch)
ch                330 sound/isa/sb/emu8000_pcm.c 	EMU8000_IFATN_WRITE(hw, ch, 0xff00);
ch                331 sound/isa/sb/emu8000_pcm.c 	EMU8000_VTFT_WRITE(hw, ch, 0xffff);
ch                332 sound/isa/sb/emu8000_pcm.c 	EMU8000_CVCF_WRITE(hw, ch, 0xffff);
ch                334 sound/isa/sb/emu8000_pcm.c 	EMU8000_DCYSUSV_WRITE(hw, ch, 0x7f7f);
ch                337 sound/isa/sb/emu8000_pcm.c 	if (rec->panning[ch] == 0)
ch                340 sound/isa/sb/emu8000_pcm.c 		aux = (-rec->panning[ch]) & 0xff;
ch                342 sound/isa/sb/emu8000_pcm.c 	EMU8000_PTRX_WRITE(hw, ch, temp);
ch                343 sound/isa/sb/emu8000_pcm.c 	EMU8000_CPF_WRITE(hw, ch, pt << 16);
ch                357 sound/isa/sb/emu8000_pcm.c static void stop_voice(struct snd_emu8k_pcm *rec, int ch)
ch                362 sound/isa/sb/emu8000_pcm.c 	EMU8000_DCYSUSV_WRITE(hw, ch, 0x807F);
ch                376 sound/isa/sb/emu8000_pcm.c 	int ch;
ch                380 sound/isa/sb/emu8000_pcm.c 		for (ch = 0; ch < rec->voices; ch++)
ch                381 sound/isa/sb/emu8000_pcm.c 			start_voice(rec, ch);
ch                386 sound/isa/sb/emu8000_pcm.c 		for (ch = 0; ch < rec->voices; ch++)
ch                387 sound/isa/sb/emu8000_pcm.c 			stop_voice(rec, ch);
ch                592 sound/isa/sb/emu8000_pcm.c 		int ch;
ch                593 sound/isa/sb/emu8000_pcm.c 		for (ch = 0; ch < rec->voices; ch++)
ch                594 sound/isa/sb/emu8000_pcm.c 			stop_voice(rec, ch); // to be sure
ch                626 sound/isa/sb/emu8000_pcm.c 		int err, i, ch;
ch                638 sound/isa/sb/emu8000_pcm.c 		for (ch = 0; ch < rec->voices; ch++) {
ch                639 sound/isa/sb/emu8000_pcm.c 			EMU8000_SMALW_WRITE(rec->emu, rec->loop_start[ch] + rec->buf_size);
ch                345 sound/mips/sgio2audio.c 					unsigned int ch, unsigned int count)
ch                355 sound/mips/sgio2audio.c 	struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime;
ch                357 sound/mips/sgio2audio.c 	spin_lock_irqsave(&chip->channel[ch].lock, flags);
ch                359 sound/mips/sgio2audio.c 	src_base = (unsigned long) chip->ring_base | (ch << CHANNEL_RING_SHIFT);
ch                360 sound/mips/sgio2audio.c 	src_pos = readq(&mace->perif.audio.chan[ch].read_ptr);
ch                362 sound/mips/sgio2audio.c 	dst_pos = chip->channel[ch].pos;
ch                366 sound/mips/sgio2audio.c 	chip->channel[ch].size += (count >> 3); /* in frames */
ch                367 sound/mips/sgio2audio.c 	ret = chip->channel[ch].size >= runtime->period_size;
ch                368 sound/mips/sgio2audio.c 	chip->channel[ch].size %= runtime->period_size;
ch                383 sound/mips/sgio2audio.c 	writeq(src_pos, &mace->perif.audio.chan[ch].read_ptr); /* in bytes */
ch                384 sound/mips/sgio2audio.c 	chip->channel[ch].pos = dst_pos;
ch                386 sound/mips/sgio2audio.c 	spin_unlock_irqrestore(&chip->channel[ch].lock, flags);
ch                393 sound/mips/sgio2audio.c 					unsigned int ch, unsigned int count)
ch                403 sound/mips/sgio2audio.c 	struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime;
ch                405 sound/mips/sgio2audio.c 	spin_lock_irqsave(&chip->channel[ch].lock, flags);
ch                407 sound/mips/sgio2audio.c 	dst_base = (unsigned long)chip->ring_base | (ch << CHANNEL_RING_SHIFT);
ch                408 sound/mips/sgio2audio.c 	dst_pos = readq(&mace->perif.audio.chan[ch].write_ptr);
ch                410 sound/mips/sgio2audio.c 	src_pos = chip->channel[ch].pos;
ch                414 sound/mips/sgio2audio.c 	chip->channel[ch].size += (count >> 3); /* in frames */
ch                415 sound/mips/sgio2audio.c 	ret = chip->channel[ch].size >= runtime->period_size;
ch                416 sound/mips/sgio2audio.c 	chip->channel[ch].size %= runtime->period_size;
ch                433 sound/mips/sgio2audio.c 	writeq(dst_pos, &mace->perif.audio.chan[ch].write_ptr); /* in bytes */
ch                434 sound/mips/sgio2audio.c 	chip->channel[ch].pos = src_pos;
ch                436 sound/mips/sgio2audio.c 	spin_unlock_irqrestore(&chip->channel[ch].lock, flags);
ch                444 sound/mips/sgio2audio.c 	int ch = chan->idx;
ch                447 sound/mips/sgio2audio.c 	writeq(CHANNEL_CONTROL_RESET, &mace->perif.audio.chan[ch].control);
ch                449 sound/mips/sgio2audio.c 	writeq(0, &mace->perif.audio.chan[ch].control);
ch                453 sound/mips/sgio2audio.c 		snd_sgio2audio_dma_push_frag(chip, ch, CHANNEL_RING_SIZE - 32);
ch                457 sound/mips/sgio2audio.c 	       &mace->perif.audio.chan[ch].control);
ch                474 sound/mips/sgio2audio.c 	int count, ch;
ch                478 sound/mips/sgio2audio.c 	ch = chan->idx;
ch                482 sound/mips/sgio2audio.c 		readq(&mace->perif.audio.chan[ch].depth) - 32;
ch                483 sound/mips/sgio2audio.c 	if (snd_sgio2audio_dma_pull_frag(chip, ch, count))
ch                494 sound/mips/sgio2audio.c 	int count, ch;
ch                498 sound/mips/sgio2audio.c 	ch = chan->idx;
ch                501 sound/mips/sgio2audio.c 		readq(&mace->perif.audio.chan[ch].depth) - 32;
ch                502 sound/mips/sgio2audio.c 	if (snd_sgio2audio_dma_push_frag(chip, ch, count))
ch                601 sound/mips/sgio2audio.c 	int ch = chan->idx;
ch                604 sound/mips/sgio2audio.c 	spin_lock_irqsave(&chip->channel[ch].lock, flags);
ch                607 sound/mips/sgio2audio.c 	chip->channel[ch].pos = 0;
ch                608 sound/mips/sgio2audio.c 	chip->channel[ch].size = 0;
ch                609 sound/mips/sgio2audio.c 	chip->channel[ch].substream = substream;
ch                616 sound/mips/sgio2audio.c 				 ch - 1,
ch                628 sound/mips/sgio2audio.c 	spin_unlock_irqrestore(&chip->channel[ch].lock, flags);
ch                133 sound/pci/au88x0/au88x0_core.c 	int ch;
ch                136 sound/pci/au88x0/au88x0_core.c 	for (ch = 0; ch < 0x20; ch++) {
ch                137 sound/pci/au88x0/au88x0_core.c 		if (((1 << ch) & rampchs[mix]) == 0)
ch                140 sound/pci/au88x0/au88x0_core.c 			   VORTEX_MIX_INVOL_B + (((mix << 5) + ch) << 2));
ch                145 sound/pci/au88x0/au88x0_core.c 				(((mix << 5) + ch) << 2), a);
ch                148 sound/pci/au88x0/au88x0_core.c 				(((mix << 5) + ch) << 2), a);
ch                150 sound/pci/au88x0/au88x0_core.c 			vortex_mix_killinput(vortex, mix, ch);
ch                259 sound/pci/au88x0/au88x0_core.c vortex_mixer_addWTD(vortex_t * vortex, unsigned char mix, unsigned char ch)
ch                264 sound/pci/au88x0/au88x0_core.c 	if ((temp & (1 << ch)) == 0) {
ch                265 sound/pci/au88x0/au88x0_core.c 		hwwrite(vortex->mmio, VORTEX_MIXER_CHNBASE + (ch << 2), mix);
ch                266 sound/pci/au88x0/au88x0_core.c 		vortex_mixer_en_sr(vortex, ch);
ch                269 sound/pci/au88x0/au88x0_core.c 	prev = VORTEX_MIXER_CHNBASE + (ch << 2);
ch                287 sound/pci/au88x0/au88x0_core.c vortex_mixer_delWTD(vortex_t * vortex, unsigned char mix, unsigned char ch)
ch                293 sound/pci/au88x0/au88x0_core.c 	if (((1 << ch) & eax) == 0) {
ch                297 sound/pci/au88x0/au88x0_core.c 	ebp = VORTEX_MIXER_CHNBASE + (ch << 2);
ch                343 sound/pci/au88x0/au88x0_core.c 						(ch << 2), esp18 & 0xef);
ch                359 sound/pci/au88x0/au88x0_core.c 		vortex_mixer_dis_sr(vortex, ch);
ch                655 sound/pci/au88x0/au88x0_core.c vortex_src_addWTD(vortex_t * vortex, unsigned char src, unsigned char ch)
ch                661 sound/pci/au88x0/au88x0_core.c 	if ((temp & (1 << ch)) == 0) {
ch                662 sound/pci/au88x0/au88x0_core.c 		hwwrite(vortex->mmio, VORTEX_SRC_CHNBASE + (ch << 2), src);
ch                663 sound/pci/au88x0/au88x0_core.c 		vortex_src_en_sr(vortex, ch);
ch                666 sound/pci/au88x0/au88x0_core.c 	prev = VORTEX_SRC_CHNBASE + (ch << 2);	/*ebp */
ch                687 sound/pci/au88x0/au88x0_core.c vortex_src_delWTD(vortex_t * vortex, unsigned char src, unsigned char ch)
ch                693 sound/pci/au88x0/au88x0_core.c 	if (((1 << ch) & eax) == 0) {
ch                697 sound/pci/au88x0/au88x0_core.c 	ebp = VORTEX_SRC_CHNBASE + (ch << 2);
ch                743 sound/pci/au88x0/au88x0_core.c 						(ch << 2), esp18 & 0xef);
ch                758 sound/pci/au88x0/au88x0_core.c 		vortex_src_dis_sr(vortex, ch);
ch               1781 sound/pci/au88x0/au88x0_core.c vortex_routeLRT(vortex_t * vortex, int en, unsigned char ch,
ch               1794 sound/pci/au88x0/au88x0_core.c 		vortex_adb_addroutes(vortex, ch, route, 2);
ch               1798 sound/pci/au88x0/au88x0_core.c 					  (source0 - OFFSET_SRCOUT), ch);
ch               1800 sound/pci/au88x0/au88x0_core.c 					  (source1 - OFFSET_SRCOUT), ch);
ch               1804 sound/pci/au88x0/au88x0_core.c 					    (source0 - OFFSET_MIXOUT), ch);
ch               1806 sound/pci/au88x0/au88x0_core.c 					    (source1 - OFFSET_MIXOUT), ch);
ch               1809 sound/pci/au88x0/au88x0_core.c 		vortex_adb_delroutes(vortex, ch, route[0], route[1]);
ch               1813 sound/pci/au88x0/au88x0_core.c 					  (source0 - OFFSET_SRCOUT), ch);
ch               1815 sound/pci/au88x0/au88x0_core.c 					  (source1 - OFFSET_SRCOUT), ch);
ch               1819 sound/pci/au88x0/au88x0_core.c 					    (source0 - OFFSET_MIXOUT), ch);
ch               1821 sound/pci/au88x0/au88x0_core.c 					    (source1 - OFFSET_MIXOUT), ch);
ch               1830 sound/pci/au88x0/au88x0_core.c vortex_connection_adbdma_src(vortex_t * vortex, int en, unsigned char ch,
ch               1833 sound/pci/au88x0/au88x0_core.c 	vortex_route(vortex, en, ch, ADB_DMA(adbdma), ADB_SRCIN(src));
ch               1867 sound/pci/au88x0/au88x0_core.c vortex_connection_src_adbdma(vortex_t * vortex, int en, unsigned char ch,
ch               1870 sound/pci/au88x0/au88x0_core.c 	vortex_route(vortex, en, ch, ADB_SRCOUT(src), ADB_DMA(adbdma));
ch               1875 sound/pci/au88x0/au88x0_core.c 				 unsigned char ch, unsigned char src0,
ch               1879 sound/pci/au88x0/au88x0_core.c 	vortex_routeLRT(vortex, en, ch, ADB_SRCOUT(src0), ADB_SRCOUT(src1),
ch               1885 sound/pci/au88x0/au88x0_core.c vortex_connection_mix_adb(vortex_t * vortex, int en, unsigned char ch,
ch               1888 sound/pci/au88x0/au88x0_core.c 	vortex_route(vortex, en, ch, ADB_MIXOUT(mix), dest);
ch               1894 sound/pci/au88x0/au88x0_core.c vortex_connection_mix_src(vortex_t * vortex, int en, unsigned char ch,
ch               1897 sound/pci/au88x0/au88x0_core.c 	vortex_route(vortex, en, ch, ADB_MIXOUT(mix), ADB_SRCIN(src));
ch               1915 sound/pci/au88x0/au88x0_core.c 				 unsigned char ch, unsigned char mix0,
ch               1928 sound/pci/au88x0/au88x0_core.c 		vortex_adb_addroutes(vortex, ch, routes, 0x2);
ch               1929 sound/pci/au88x0/au88x0_core.c 		vortex_mixer_addWTD(vortex, mix0, ch);
ch               1930 sound/pci/au88x0/au88x0_core.c 		vortex_mixer_addWTD(vortex, mix1, ch);
ch               1932 sound/pci/au88x0/au88x0_core.c 		vortex_adb_delroutes(vortex, ch, routes[0], routes[1]);
ch               1933 sound/pci/au88x0/au88x0_core.c 		vortex_mixer_delWTD(vortex, mix0, ch);
ch               1934 sound/pci/au88x0/au88x0_core.c 		vortex_mixer_delWTD(vortex, mix1, ch);
ch               1451 sound/pci/ca0106/ca0106_main.c 	int ch;
ch               1530 sound/pci/ca0106/ca0106_main.c 	for (ch = 0; ch < 4; ch++) {
ch               1532 sound/pci/ca0106/ca0106_main.c 		snd_ca0106_ptr_write(chip, CAPTURE_VOLUME1, ch, 0x30303030);
ch               1533 sound/pci/ca0106/ca0106_main.c 		snd_ca0106_ptr_write(chip, CAPTURE_VOLUME2, ch, 0x30303030);
ch               1535 sound/pci/ca0106/ca0106_main.c 		snd_ca0106_ptr_write(chip, PLAYBACK_VOLUME1, ch, 0x40404040);
ch               1536 sound/pci/ca0106/ca0106_main.c 		snd_ca0106_ptr_write(chip, PLAYBACK_VOLUME2, ch, 0x40404040);
ch               1537 sound/pci/ca0106/ca0106_main.c 		snd_ca0106_ptr_write(chip, PLAYBACK_VOLUME1, ch, 0xffffffff);
ch               1538 sound/pci/ca0106/ca0106_main.c 		snd_ca0106_ptr_write(chip, PLAYBACK_VOLUME2, ch, 0xffffffff);
ch                427 sound/pci/cmipci.c 	unsigned int ch;	/* channel (0/1) */
ch                692 sound/pci/cmipci.c static void snd_cmipci_ch_reset(struct cmipci *cm, int ch)
ch                694 sound/pci/cmipci.c 	int reset = CM_RST_CH0 << (cm->channel[ch].ch);
ch                729 sound/pci/cmipci.c 		if (!cm->can_multi_ch || !rec->ch)
ch                803 sound/pci/cmipci.c 	reg = rec->ch ? CM_REG_CH1_FRAME1 : CM_REG_CH0_FRAME1;
ch                806 sound/pci/cmipci.c 	reg = rec->ch ? CM_REG_CH1_FRAME2 : CM_REG_CH0_FRAME2;
ch                811 sound/pci/cmipci.c 	val = rec->ch ? CM_CHADC1 : CM_CHADC0;
ch                832 sound/pci/cmipci.c 	if (rec->ch) {
ch                844 sound/pci/cmipci.c 	if (rec->ch) {
ch                852 sound/pci/cmipci.c 		val &= ~(CM_CH0_SRATE_MASK << (rec->ch * 2));
ch                853 sound/pci/cmipci.c 		val |= freq_ext << (rec->ch * 2);
ch                880 sound/pci/cmipci.c 	inthld = CM_CH0_INT_EN << rec->ch;
ch                881 sound/pci/cmipci.c 	chen = CM_CHEN0 << rec->ch;
ch                882 sound/pci/cmipci.c 	reset = CM_RST_CH0 << rec->ch;
ch                883 sound/pci/cmipci.c 	pause = CM_PAUSE0 << rec->ch;
ch                936 sound/pci/cmipci.c 	reg = rec->ch ? CM_REG_CH1_FRAME2 : CM_REG_CH0_FRAME2;
ch                947 sound/pci/cmipci.c 	reg = rec->ch ? CM_REG_CH1_FRAME1 : CM_REG_CH0_FRAME1;
ch               1330 sound/pci/cmipci.c 		reg = rec->ch ? CM_REG_CH1_FRAME2 : CM_REG_CH0_FRAME2;
ch               1339 sound/pci/cmipci.c 		val &= ~(CM_ASFC_MASK << (rec->ch * 3));
ch               1340 sound/pci/cmipci.c 		val |= (4 << CM_ASFC_SHIFT) << (rec->ch * 3);
ch               1343 sound/pci/cmipci.c 		val &= ~(CM_CH0FMT_MASK << (rec->ch * 2));
ch               1344 sound/pci/cmipci.c 		val |= (3 << CM_CH0FMT_SHIFT) << (rec->ch * 2);
ch               1346 sound/pci/cmipci.c 			val &= ~(CM_CH0_SRATE_MASK << (rec->ch * 2));
ch               1350 sound/pci/cmipci.c 		cm->ctrl |= CM_CHEN0 << rec->ch;
ch               1358 sound/pci/cmipci.c 		cm->ctrl &= ~(CM_CHEN0 << rec->ch);
ch               1359 sound/pci/cmipci.c 		val = CM_RST_CH0 << rec->ch;
ch               1600 sound/pci/cmipci.c 	int ch = mode & CM_OPEN_CH_MASK;
ch               1608 sound/pci/cmipci.c 	if (cm->opened[ch]) {
ch               1612 sound/pci/cmipci.c 	cm->opened[ch] = mode;
ch               1613 sound/pci/cmipci.c 	cm->channel[ch].substream = subs;
ch               1616 sound/pci/cmipci.c 		cm->channel[ch].is_dac = 0;
ch               1627 sound/pci/cmipci.c 	int ch = mode & CM_OPEN_CH_MASK;
ch               1630 sound/pci/cmipci.c 	if (cm->opened[ch] == mode) {
ch               1631 sound/pci/cmipci.c 		if (cm->channel[ch].substream) {
ch               1632 sound/pci/cmipci.c 			snd_cmipci_ch_reset(cm, ch);
ch               1633 sound/pci/cmipci.c 			cm->channel[ch].running = 0;
ch               1634 sound/pci/cmipci.c 			cm->channel[ch].substream = NULL;
ch               1636 sound/pci/cmipci.c 		cm->opened[ch] = 0;
ch               1637 sound/pci/cmipci.c 		if (! cm->channel[ch].is_dac) {
ch               1639 sound/pci/cmipci.c 			cm->channel[ch].is_dac = 1;
ch               3030 sound/pci/cmipci.c 	cm->channel[0].ch = 0;
ch               3031 sound/pci/cmipci.c 	cm->channel[1].ch = 1;
ch                140 sound/pci/echoaudio/echoaudio.c 	struct snd_interval ch;
ch                142 sound/pci/echoaudio/echoaudio.c 	snd_interval_any(&ch);
ch                146 sound/pci/echoaudio/echoaudio.c 		ch.min = 1;
ch                148 sound/pci/echoaudio/echoaudio.c 		ch.max = 2;
ch                150 sound/pci/echoaudio/echoaudio.c 		ch.max = 1;
ch                152 sound/pci/echoaudio/echoaudio.c 		ch.integer = 1;
ch                153 sound/pci/echoaudio/echoaudio.c 		return snd_interval_refine(c, &ch);
ch                157 sound/pci/echoaudio/echoaudio.c 		ch.min = 1;
ch                158 sound/pci/echoaudio/echoaudio.c 		ch.max = 2;
ch                159 sound/pci/echoaudio/echoaudio.c 		ch.integer = 1;
ch                160 sound/pci/echoaudio/echoaudio.c 		return snd_interval_refine(c, &ch);
ch                209 sound/pci/echoaudio/echoaudio.c 	struct snd_interval ch;
ch                212 sound/pci/echoaudio/echoaudio.c 	snd_interval_any(&ch);
ch                213 sound/pci/echoaudio/echoaudio.c 	ch.integer = 1;
ch                218 sound/pci/echoaudio/echoaudio.c 		ch.min = 1;
ch                220 sound/pci/echoaudio/echoaudio.c 		ch.max = 2;
ch                222 sound/pci/echoaudio/echoaudio.c 		ch.max = 1;
ch                226 sound/pci/echoaudio/echoaudio.c 		ch.min = ch.max = 2;
ch                230 sound/pci/echoaudio/echoaudio.c 		ch.min = 2;
ch                234 sound/pci/echoaudio/echoaudio.c 	return snd_interval_refine(c, &ch);
ch                 91 sound/pci/emu10k1/emu10k1_callback.c 			int ch;
ch                 93 sound/pci/emu10k1/emu10k1_callback.c 			if ((ch = vp->ch) < 0) {
ch                101 sound/pci/emu10k1/emu10k1_callback.c 			vp->ch = -1;
ch                103 sound/pci/emu10k1/emu10k1_callback.c 			return ch;
ch                123 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, DCYSUSM, vp->ch, dcysusv);
ch                125 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, dcysusv);
ch                140 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, 0x807f | DCYSUSV_CHANNELENABLE_MASK);
ch                162 sound/pci/emu10k1/emu10k1_callback.c 	if (hw && (vp->ch >= 0)) {
ch                163 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, IFATN, vp->ch, 0xff00);
ch                164 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, 0x807f | DCYSUSV_CHANNELENABLE_MASK);
ch                166 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, VTFT, vp->ch, 0xffff);
ch                167 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, CVCF, vp->ch, 0xffff);
ch                168 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_voice_free(hw, &hw->voices[vp->ch]);
ch                170 sound/pci/emu10k1/emu10k1_callback.c 		vp->ch = -1;
ch                185 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, IFATN_ATTENUATION, vp->ch, vp->avol);
ch                187 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, IP, vp->ch, vp->apitch);
ch                189 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, PTRX_FXSENDAMOUNT_A, vp->ch, vp->apan);
ch                190 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, PTRX_FXSENDAMOUNT_B, vp->ch, vp->aaux);
ch                195 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, TREMFRQ, vp->ch, vp->reg.parm.tremfrq);
ch                230 sound/pci/emu10k1/emu10k1_callback.c 			if (vp->ch < 0) {
ch                241 sound/pci/emu10k1/emu10k1_callback.c 			val = snd_emu10k1_ptr_read(hw, CVCF_CURRENTVOL, vp->ch);
ch                256 sound/pci/emu10k1/emu10k1_callback.c 			val = snd_emu10k1_ptr_read(hw, CCCA_CURRADDR, vp->ch);
ch                287 sound/pci/emu10k1/emu10k1_callback.c 			if (vp->ch < 0) {
ch                292 sound/pci/emu10k1/emu10k1_callback.c 				vp->ch = hwvoice->number;
ch                310 sound/pci/emu10k1/emu10k1_callback.c 	int ch;
ch                317 sound/pci/emu10k1/emu10k1_callback.c 	ch = vp->ch;
ch                318 sound/pci/emu10k1/emu10k1_callback.c 	if (snd_BUG_ON(ch < 0))
ch                341 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, A_FXRT1, ch, temp);
ch                345 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, FXRT, ch, temp);
ch                349 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, DCYSUSV, ch, 0x0000);
ch                350 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, VTFT, ch, 0x0000FFFF);
ch                351 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, CVCF, ch, 0x0000FFFF);
ch                352 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, PTRX, ch, 0);
ch                353 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, CPF, ch, 0);
ch                356 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, IP, vp->ch, vp->apitch);
ch                359 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, ENVVAL, ch, vp->reg.parm.moddelay);
ch                360 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, ATKHLDM, ch, vp->reg.parm.modatkhld);
ch                361 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, DCYSUSM, ch, vp->reg.parm.moddcysus);
ch                362 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, ENVVOL, ch, vp->reg.parm.voldelay);
ch                363 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, ATKHLDV, ch, vp->reg.parm.volatkhld);
ch                369 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, IFATN, vp->ch, temp);
ch                372 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, PEFE, ch, vp->reg.parm.pefe);
ch                375 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, LFOVAL1, ch, vp->reg.parm.lfo1delay);
ch                376 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, LFOVAL2, ch, vp->reg.parm.lfo2delay);
ch                381 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, TREMFRQ, vp->ch, vp->reg.parm.tremfrq);
ch                390 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, PSST, vp->ch, (temp << 24) | addr);
ch                398 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, DSL, ch, temp);
ch                401 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, Z1, ch, 0);
ch                402 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, Z2, ch, 0);
ch                406 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, MAPA, ch, temp);
ch                407 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, MAPB, ch, temp);
ch                421 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, CCR, ch, 0x1c << 16);
ch                422 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, CDE, ch, sample);
ch                423 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, CDF, ch, sample);
ch                427 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, MAPA, ch, temp);
ch                428 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, MAPB, ch, temp);
ch                434 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, CCR, ch, val);
ch                450 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, CCCA, ch, temp);
ch                454 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, VTFT, ch, temp | vp->ftarget);
ch                455 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, CVCF, ch, temp | 0xff00);
ch                482 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, PTRX, vp->ch, temp);
ch                485 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, CPF, vp->ch, ptarget);
ch                488 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, vp->reg.parm.voldcysus|DCYSUSV_CHANNELENABLE_MASK);
ch                508 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, FMMOD, vp->ch, fmmod);
ch                526 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, FM2FRQ2, vp->ch, fm2frq2);
ch                534 sound/pci/emu10k1/emu10k1_callback.c 	val = snd_emu10k1_ptr_read(hw, CCCA, vp->ch) & ~CCCA_RESONANCE;
ch                536 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, CCCA, vp->ch, val);
ch                 58 sound/pci/emu10k1/emu10k1_main.c void snd_emu10k1_voice_init(struct snd_emu10k1 *emu, int ch)
ch                 60 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, DCYSUSV, ch, 0);
ch                 61 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, IP, ch, 0);
ch                 62 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, VTFT, ch, 0xffff);
ch                 63 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, CVCF, ch, 0xffff);
ch                 64 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, PTRX, ch, 0);
ch                 65 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, CPF, ch, 0);
ch                 66 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, CCR, ch, 0);
ch                 68 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, PSST, ch, 0);
ch                 69 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, DSL, ch, 0x10);
ch                 70 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, CCCA, ch, 0);
ch                 71 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, Z1, ch, 0);
ch                 72 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, Z2, ch, 0);
ch                 73 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, FXRT, ch, 0x32100000);
ch                 75 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, ATKHLDM, ch, 0);
ch                 76 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, DCYSUSM, ch, 0);
ch                 77 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, IFATN, ch, 0xffff);
ch                 78 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, PEFE, ch, 0);
ch                 79 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, FMMOD, ch, 0);
ch                 80 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, TREMFRQ, ch, 24);	/* 1 Hz */
ch                 81 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, FM2FRQ2, ch, 24);	/* 1 Hz */
ch                 82 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, TEMPENV, ch, 0);
ch                 85 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, LFOVAL2, ch, 0);
ch                 86 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, LFOVAL1, ch, 0);
ch                 87 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, ATKHLDV, ch, 0);
ch                 88 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, ENVVOL, ch, 0);
ch                 89 sound/pci/emu10k1/emu10k1_main.c 	snd_emu10k1_ptr_write(emu, ENVVAL, ch, 0);
ch                 93 sound/pci/emu10k1/emu10k1_main.c 		snd_emu10k1_ptr_write(emu, 0x4c, ch, 0); /* ?? */
ch                 94 sound/pci/emu10k1/emu10k1_main.c 		snd_emu10k1_ptr_write(emu, 0x4d, ch, 0); /* ?? */
ch                 95 sound/pci/emu10k1/emu10k1_main.c 		snd_emu10k1_ptr_write(emu, 0x4e, ch, 0); /* ?? */
ch                 96 sound/pci/emu10k1/emu10k1_main.c 		snd_emu10k1_ptr_write(emu, 0x4f, ch, 0); /* ?? */
ch                 97 sound/pci/emu10k1/emu10k1_main.c 		snd_emu10k1_ptr_write(emu, A_FXRT1, ch, 0x03020100);
ch                 98 sound/pci/emu10k1/emu10k1_main.c 		snd_emu10k1_ptr_write(emu, A_FXRT2, ch, 0x3f3f3f3f);
ch                 99 sound/pci/emu10k1/emu10k1_main.c 		snd_emu10k1_ptr_write(emu, A_SENDAMOUNTS, ch, 0);
ch                146 sound/pci/emu10k1/emu10k1_main.c 	int ch;
ch                177 sound/pci/emu10k1/emu10k1_main.c 	for (ch = 0; ch < NUM_G; ch++)
ch                178 sound/pci/emu10k1/emu10k1_main.c 		snd_emu10k1_voice_init(emu, ch);
ch                271 sound/pci/emu10k1/emu10k1_main.c 	for (ch = 0; ch < NUM_G; ch++) {
ch                272 sound/pci/emu10k1/emu10k1_main.c 		snd_emu10k1_ptr_write(emu, MAPA, ch, silent_page);
ch                273 sound/pci/emu10k1/emu10k1_main.c 		snd_emu10k1_ptr_write(emu, MAPB, ch, silent_page);
ch                396 sound/pci/emu10k1/emu10k1_main.c 	int ch;
ch                403 sound/pci/emu10k1/emu10k1_main.c 	for (ch = 0; ch < NUM_G; ch++)
ch                404 sound/pci/emu10k1/emu10k1_main.c 		snd_emu10k1_ptr_write(emu, DCYSUSV, ch, 0);
ch                405 sound/pci/emu10k1/emu10k1_main.c 	for (ch = 0; ch < NUM_G; ch++) {
ch                406 sound/pci/emu10k1/emu10k1_main.c 		snd_emu10k1_ptr_write(emu, VTFT, ch, 0);
ch                407 sound/pci/emu10k1/emu10k1_main.c 		snd_emu10k1_ptr_write(emu, CVCF, ch, 0);
ch                408 sound/pci/emu10k1/emu10k1_main.c 		snd_emu10k1_ptr_write(emu, PTRX, ch, 0);
ch                409 sound/pci/emu10k1/emu10k1_main.c 		snd_emu10k1_ptr_write(emu, CPF, ch, 0);
ch                893 sound/pci/emu10k1/emu10k1x.c 	int ch;
ch                955 sound/pci/emu10k1/emu10k1x.c 	for(ch = 0; ch < 3; ch++) {
ch                956 sound/pci/emu10k1/emu10k1x.c 		chip->voices[ch].emu = chip;
ch                957 sound/pci/emu10k1/emu10k1x.c 		chip->voices[ch].number = ch;
ch               1465 sound/pci/emu10k1/emumixer.c 	int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id);
ch               1466 sound/pci/emu10k1/emumixer.c 	struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch];
ch               1481 sound/pci/emu10k1/emumixer.c 		if (mix->epcm->voices[ch]) {
ch               1482 sound/pci/emu10k1/emumixer.c 			update_emu10k1_fxrt(emu, mix->epcm->voices[ch]->number,
ch               1533 sound/pci/emu10k1/emumixer.c 	int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id);
ch               1534 sound/pci/emu10k1/emumixer.c 	struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch];
ch               1547 sound/pci/emu10k1/emumixer.c 		if (mix->epcm->voices[ch]) {
ch               1548 sound/pci/emu10k1/emumixer.c 			update_emu10k1_send_volume(emu, mix->epcm->voices[ch]->number,
ch               1596 sound/pci/emu10k1/emumixer.c 	int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id);
ch               1597 sound/pci/emu10k1/emumixer.c 	struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch];
ch               1607 sound/pci/emu10k1/emumixer.c 		if (mix->epcm->voices[ch]) {
ch               1608 sound/pci/emu10k1/emumixer.c 			snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[ch]->number, mix->attn[0]);
ch                873 sound/pci/emu10k1/p16v.c 	int i, ch;
ch                877 sound/pci/emu10k1/p16v.c 	for (ch = 0; ch < NUM_CHS; ch++)
ch                879 sound/pci/emu10k1/p16v.c 			*val = snd_emu10k1_ptr20_read(emu, i, ch);
ch                884 sound/pci/emu10k1/p16v.c 	int i, ch;
ch                888 sound/pci/emu10k1/p16v.c 	for (ch = 0; ch < NUM_CHS; ch++)
ch                890 sound/pci/emu10k1/p16v.c 			snd_emu10k1_ptr20_write(emu, i, ch, *val);
ch               1271 sound/pci/hda/hda_codec.c 			       int ch, int dir, int idx)
ch               1273 sound/pci/hda/hda_codec.c 	unsigned int cmd = snd_hdac_regmap_encode_amp(nid, ch, dir, idx);
ch               1295 sound/pci/hda/hda_codec.c 			     int ch, int dir, int idx, int mask, int val)
ch               1297 sound/pci/hda/hda_codec.c 	unsigned int cmd = encode_amp(codec, nid, ch, dir, idx);
ch               1318 sound/pci/hda/hda_codec.c 	int ch, ret = 0;
ch               1322 sound/pci/hda/hda_codec.c 	for (ch = 0; ch < 2; ch++)
ch               1323 sound/pci/hda/hda_codec.c 		ret |= snd_hda_codec_amp_update(codec, nid, ch, direction,
ch               1343 sound/pci/hda/hda_codec.c int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch,
ch               1346 sound/pci/hda/hda_codec.c 	unsigned int cmd = encode_amp(codec, nid, ch, dir, idx);
ch               1368 sound/pci/hda/hda_codec.c 	int ch, ret = 0;
ch               1372 sound/pci/hda/hda_codec.c 	for (ch = 0; ch < 2; ch++)
ch               1373 sound/pci/hda/hda_codec.c 		ret |= snd_hda_codec_amp_init(codec, nid, ch, dir,
ch               1424 sound/pci/hda/hda_codec.c 	       int ch, int dir, int idx, unsigned int ofs)
ch               1427 sound/pci/hda/hda_codec.c 	val = snd_hda_codec_amp_read(codec, nid, ch, dir, idx);
ch               1438 sound/pci/hda/hda_codec.c 		 int ch, int dir, int idx, unsigned int ofs,
ch               1449 sound/pci/hda/hda_codec.c 	return snd_hda_codec_amp_update(codec, nid, ch, dir, idx,
ch               3426 sound/pci/hda/hda_codec.c 	int ch, v;
ch               3438 sound/pci/hda/hda_codec.c 		for (ch = 0; ch < 2; ch++) {
ch               3439 sound/pci/hda/hda_codec.c 			v = snd_hda_codec_amp_read(codec, p->nid, ch, p->dir,
ch               3788 sound/pci/hda/hda_codec.c 		int ch = 0;
ch               3792 sound/pci/hda/hda_codec.c 			ch = i * 2;
ch               3796 sound/pci/hda/hda_codec.c 					   stream_tag, ch, format);
ch               1155 sound/pci/hda/hda_generic.c static const char *get_line_out_pfx(struct hda_codec *codec, int ch,
ch               1176 sound/pci/hda/hda_generic.c 	if (ch >= cfg->line_outs)
ch               1177 sound/pci/hda/hda_generic.c 		return channel_name[ch];
ch               1184 sound/pci/hda/hda_generic.c 		if (!ch && cfg->hp_outs &&
ch               1190 sound/pci/hda/hda_generic.c 			return ch ? "Bass Speaker" : "Speaker";
ch               1196 sound/pci/hda/hda_generic.c 		if (!ch && cfg->speaker_outs &&
ch               1200 sound/pci/hda/hda_generic.c 		if (ch && spec->multi_ios)
ch               1202 sound/pci/hda/hda_generic.c 		*index = ch;
ch               1207 sound/pci/hda/hda_generic.c 		if (!ch && cfg->speaker_outs && cfg->hp_outs) {
ch               1223 sound/pci/hda/hda_generic.c 	if (ch >= ARRAY_SIZE(channel_name)) {
ch               1228 sound/pci/hda/hda_generic.c 	return channel_name[ch];
ch               2386 sound/pci/hda/hda_generic.c 	int i, ch;
ch               2388 sound/pci/hda/hda_generic.c 	ch = ucontrol->value.enumerated.item[0];
ch               2389 sound/pci/hda/hda_generic.c 	if (ch < 0 || ch > spec->multi_ios)
ch               2391 sound/pci/hda/hda_generic.c 	if (ch == (spec->ext_channel_count - spec->min_channel_count) / 2)
ch               2393 sound/pci/hda/hda_generic.c 	spec->ext_channel_count = ch * 2 + spec->min_channel_count;
ch               2395 sound/pci/hda/hda_generic.c 		set_multi_io(codec, i, i < ch);
ch                 84 sound/pci/hda/hda_local.h #define HDA_CODEC_MUTE_BEEP_MONO_IDX(xname, xcidx, nid, ch, xidx, dir) \
ch                 85 sound/pci/hda/hda_local.h 	HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, ch, xidx, dir)
ch                117 sound/pci/hda/hda_local.h #define snd_hda_codec_amp_read(codec, nid, ch, dir, idx) \
ch                118 sound/pci/hda/hda_local.h 	snd_hdac_regmap_get_amp(&(codec)->core, nid, ch, dir, idx)
ch                120 sound/pci/hda/hda_local.h 			     int ch, int dir, int idx, int mask, int val);
ch                123 sound/pci/hda/hda_local.h int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch,
ch               5108 sound/pci/hda/patch_ca0132.c 		int ch = get_amp_channels(kcontrol);
ch               5113 sound/pci/hda/patch_ca0132.c 		kcontrol->private_value = HDA_COMPOSE_AMP_VAL(shared_nid, ch,
ch               5722 sound/pci/hda/patch_ca0132.c 	int ch = get_amp_channels(kcontrol);
ch               5727 sound/pci/hda/patch_ca0132.c 		if (ch & 1) {
ch               5731 sound/pci/hda/patch_ca0132.c 		if (ch & 2) {
ch               5759 sound/pci/hda/patch_ca0132.c 	int ch = get_amp_channels(kcontrol);
ch               5769 sound/pci/hda/patch_ca0132.c 		if (ch & 1) {
ch               5773 sound/pci/hda/patch_ca0132.c 		if (ch & 2) {
ch               5877 sound/pci/hda/patch_ca0132.c 	int ch = get_amp_channels(kcontrol);
ch               5888 sound/pci/hda/patch_ca0132.c 		kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir);
ch               5898 sound/pci/hda/patch_ca0132.c 		kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir);
ch               5915 sound/pci/hda/patch_ca0132.c 	int ch = get_amp_channels(kcontrol);
ch               5919 sound/pci/hda/patch_ca0132.c 	if (ch & 1) {
ch               5923 sound/pci/hda/patch_ca0132.c 	if (ch & 2) {
ch               5936 sound/pci/hda/patch_ca0132.c 	int ch = get_amp_channels(kcontrol);
ch               5943 sound/pci/hda/patch_ca0132.c 	if (ch & 1) {
ch               5947 sound/pci/hda/patch_ca0132.c 	if (ch & 2) {
ch               5961 sound/pci/hda/patch_ca0132.c 		kcontrol->private_value = HDA_COMPOSE_AMP_VAL(shared_nid, ch,
ch               5983 sound/pci/hda/patch_ca0132.c 	int ch = get_amp_channels(kcontrol);
ch               5998 sound/pci/hda/patch_ca0132.c 	if (ch & 1) {
ch               6002 sound/pci/hda/patch_ca0132.c 	if (ch & 2) {
ch               6023 sound/pci/hda/patch_ca0132.c 	int ch = get_amp_channels(kcontrol);
ch               6034 sound/pci/hda/patch_ca0132.c 		kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir);
ch               6044 sound/pci/hda/patch_ca0132.c 		kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir);
ch                335 sound/pci/hda/patch_conexant.c 	int ch, val;
ch                337 sound/pci/hda/patch_conexant.c 	for (ch = 0; ch < 2; ch++) {
ch                339 sound/pci/hda/patch_conexant.c 			(ch ? AC_AMP_SET_RIGHT : AC_AMP_SET_LEFT);
ch                341 sound/pci/hda/patch_conexant.c 			val |= snd_hda_codec_amp_read(codec, 0x17, ch, HDA_OUTPUT, 0);
ch                295 sound/pci/hda/patch_via.c 	int ch, v;
ch                301 sound/pci/hda/patch_via.c 		for (ch = 0; ch < 2; ch++) {
ch                302 sound/pci/hda/patch_via.c 			v = snd_hda_codec_amp_read(codec, p->nid, ch, p->dir,
ch                757 sound/pci/ice1712/aureon.c 	int ch, change = 0;
ch                760 sound/pci/ice1712/aureon.c 	for (ch = 0; ch < 2; ch++) {
ch                761 sound/pci/ice1712/aureon.c 		unsigned int vol = ucontrol->value.integer.value[ch];
ch                764 sound/pci/ice1712/aureon.c 		vol |= spec->master[ch] & WM_VOL_MUTE;
ch                765 sound/pci/ice1712/aureon.c 		if (vol != spec->master[ch]) {
ch                767 sound/pci/ice1712/aureon.c 			spec->master[ch] = vol;
ch                769 sound/pci/ice1712/aureon.c 				wm_set_vol(ice, WM_DAC_ATTEN + dac + ch,
ch                770 sound/pci/ice1712/aureon.c 					   spec->vol[dac + ch],
ch                771 sound/pci/ice1712/aureon.c 					   spec->master[ch]);
ch                194 sound/pci/ice1712/maya44.c 	int ch, changed = 0;
ch                197 sound/pci/ice1712/maya44.c 	for (ch = 0; ch < 2; ch++) {
ch                198 sound/pci/ice1712/maya44.c 		val = ucontrol->value.integer.value[ch];
ch                201 sound/pci/ice1712/maya44.c 		if (val == wm->volumes[idx][ch])
ch                208 sound/pci/ice1712/maya44.c 		changed |= wm8776_write_bits(chip->ice, wm, vol->regs[ch],
ch                210 sound/pci/ice1712/maya44.c 		if (vol->mux_bits[ch])
ch                212 sound/pci/ice1712/maya44.c 					  vol->mux_bits[ch],
ch                213 sound/pci/ice1712/maya44.c 					  val ? 0 : vol->mux_bits[ch]);
ch                214 sound/pci/ice1712/maya44.c 		wm->volumes[idx][ch] = val;
ch                345 sound/pci/ice1712/phase.c 	int ch, change = 0;
ch                348 sound/pci/ice1712/phase.c 	for (ch = 0; ch < 2; ch++) {
ch                349 sound/pci/ice1712/phase.c 		unsigned int vol = ucontrol->value.integer.value[ch];
ch                352 sound/pci/ice1712/phase.c 		vol |= spec->master[ch] & WM_VOL_MUTE;
ch                353 sound/pci/ice1712/phase.c 		if (vol != spec->master[ch]) {
ch                355 sound/pci/ice1712/phase.c 			spec->master[ch] = vol;
ch                357 sound/pci/ice1712/phase.c 				wm_set_vol(ice, WM_DAC_ATTEN + dac + ch,
ch                358 sound/pci/ice1712/phase.c 					   spec->vol[dac + ch],
ch                359 sound/pci/ice1712/phase.c 					   spec->master[ch]);
ch                475 sound/pci/ice1712/prodigy_hifi.c 	int ch, change = 0;
ch                478 sound/pci/ice1712/prodigy_hifi.c 	for (ch = 0; ch < 2; ch++) {
ch                479 sound/pci/ice1712/prodigy_hifi.c 		if (ucontrol->value.integer.value[ch] != spec->master[ch]) {
ch                480 sound/pci/ice1712/prodigy_hifi.c 			spec->master[ch] = ucontrol->value.integer.value[ch];
ch                483 sound/pci/ice1712/prodigy_hifi.c 			wm_set_vol(ice, WM_DAC_ATTEN_L + ch,
ch                484 sound/pci/ice1712/prodigy_hifi.c 				   spec->vol[2 + ch], spec->master[ch]);
ch                486 sound/pci/ice1712/prodigy_hifi.c 			wm8766_set_vol(ice, WM8766_LDA1 + ch,
ch                487 sound/pci/ice1712/prodigy_hifi.c 				       spec->vol[0 + ch], spec->master[ch]);
ch                489 sound/pci/ice1712/prodigy_hifi.c 			wm8766_set_vol(ice, WM8766_LDA2 + ch,
ch                490 sound/pci/ice1712/prodigy_hifi.c 				       spec->vol[4 + ch], spec->master[ch]);
ch                492 sound/pci/ice1712/prodigy_hifi.c 			wm8766_set_vol(ice, WM8766_LDA3 + ch,
ch                493 sound/pci/ice1712/prodigy_hifi.c 				       spec->vol[6 + ch], spec->master[ch]);
ch                995 sound/pci/ice1712/prodigy_hifi.c 	int i, ch;
ch               1008 sound/pci/ice1712/prodigy_hifi.c 	for (ch = 0; ch < 2; ch++) {
ch               1009 sound/pci/ice1712/prodigy_hifi.c 		wm_set_vol(ice, WM_DAC_ATTEN_L + ch,
ch               1010 sound/pci/ice1712/prodigy_hifi.c 			   spec->vol[2 + ch], spec->master[ch]);
ch               1012 sound/pci/ice1712/prodigy_hifi.c 		wm8766_set_vol(ice, WM8766_LDA1 + ch,
ch               1013 sound/pci/ice1712/prodigy_hifi.c 			       spec->vol[0 + ch], spec->master[ch]);
ch               1015 sound/pci/ice1712/prodigy_hifi.c 		wm8766_set_vol(ice, WM8766_LDA2 + ch,
ch               1016 sound/pci/ice1712/prodigy_hifi.c 			       spec->vol[4 + ch], spec->master[ch]);
ch               1018 sound/pci/ice1712/prodigy_hifi.c 		wm8766_set_vol(ice, WM8766_LDA3 + ch,
ch               1019 sound/pci/ice1712/prodigy_hifi.c 			       spec->vol[6 + ch], spec->master[ch]);
ch                165 sound/pci/ice1712/se.c static void se200pci_WM8766_set_volume(struct snd_ice1712 *ice, int ch,
ch                168 sound/pci/ice1712/se.c 	switch (ch) {
ch                350 sound/pci/ice1712/se.c 	int ch;
ch                366 sound/pci/ice1712/se.c 		.ch = 1,
ch                373 sound/pci/ice1712/se.c 		.ch = 2,
ch                380 sound/pci/ice1712/se.c 		.ch = 0,
ch                481 sound/pci/ice1712/se.c 					   se200pci_cont[n].ch,
ch               1008 sound/pci/riptide/riptide.c 	unsigned char w, ch, sig, order;
ch               1013 sound/pci/riptide/riptide.c 	ch = channels == 1;
ch               1018 sound/pci/riptide/riptide.c 	if (SEND_SETF(cif, mixer, w, ch, order, sig, id) &&
ch               1019 sound/pci/riptide/riptide.c 	    SEND_SETF(cif, mixer, w, ch, order, sig, id)) {
ch               1152 sound/pci/rme9652/hdspm.c 	return hdspm->mixer->ch[chan].in[in];
ch               1160 sound/pci/rme9652/hdspm.c 	return hdspm->mixer->ch[chan].pb[pb];
ch               1172 sound/pci/rme9652/hdspm.c 		    (hdspm->mixer->ch[chan].in[in] = data & 0xFFFF));
ch               1185 sound/pci/rme9652/hdspm.c 		    (hdspm->mixer->ch[chan].pb[pb] = data & 0xFFFF));
ch                189 sound/ppc/snd_ps3.c static dma_addr_t v_to_bus(struct snd_ps3_card_info *card, void *paddr, int ch)
ch                191 sound/ppc/snd_ps3.c 	return card->dma_start_bus_addr[ch] +
ch                192 sound/ppc/snd_ps3.c 		(paddr - card->dma_start_vaddr[ch]);
ch                201 sound/ppc/snd_ps3.c 				enum snd_ps3_ch ch, size_t byte_count,
ch                205 sound/ppc/snd_ps3.c 		card->dma_last_transfer_vaddr[ch] =
ch                206 sound/ppc/snd_ps3.c 			card->dma_next_transfer_vaddr[ch];
ch                207 sound/ppc/snd_ps3.c 	card->dma_next_transfer_vaddr[ch] += byte_count;
ch                208 sound/ppc/snd_ps3.c 	if ((card->dma_start_vaddr[ch] + (card->dma_buffer_size / 2)) <=
ch                209 sound/ppc/snd_ps3.c 	    card->dma_next_transfer_vaddr[ch]) {
ch                210 sound/ppc/snd_ps3.c 		card->dma_next_transfer_vaddr[ch] = card->dma_start_vaddr[ch];
ch                222 sound/ppc/snd_ps3.c 	enum snd_ps3_ch ch;
ch                246 sound/ppc/snd_ps3.c 	for (ch = 0; ch < 2; ch++) {
ch                248 sound/ppc/snd_ps3.c 			dma_ch = stage * 2 + ch;
ch                254 sound/ppc/snd_ps3.c 					 card->dma_next_transfer_vaddr[ch],
ch                255 sound/ppc/snd_ps3.c 					 ch);
ch                262 sound/ppc/snd_ps3.c 			if (ch == 0)
ch                275 sound/ppc/snd_ps3.c 				snd_ps3_bump_buffer(card, ch,
ch                621 sound/ppc/tumbler.c static int snapper_set_mix_vol1(struct pmac_tumbler *mix, int idx, int ch, int reg)
ch                626 sound/ppc/tumbler.c 	vol = mix->mix_vol[idx][ch];
ch                629 sound/ppc/tumbler.c 		mix->mix_vol[idx][ch] = vol;
ch                633 sound/ppc/tumbler.c 		vol = mix->mix_vol[i][ch];
ch                204 sound/soc/amd/acp-pcm-dma.c 					   u32 pte_offset, u16 ch,
ch                250 sound/soc/amd/acp-pcm-dma.c 	pre_config_reset(acp_mmio, ch);
ch                251 sound/soc/amd/acp-pcm-dma.c 	config_acp_dma_channel(acp_mmio, ch,
ch                263 sound/soc/amd/acp-pcm-dma.c 					   u16 destination, u16 ch,
ch                290 sound/soc/amd/acp-pcm-dma.c 	pre_config_reset(acp_mmio, ch);
ch                292 sound/soc/amd/acp-pcm-dma.c 	config_acp_dma_channel(acp_mmio, ch, dma_dscr_idx - 1,
ch                136 sound/soc/atmel/atmel-i2s.c #define ATMEL_I2SC_SR_RXORCH(ch)	(1 << (((ch) & 0x7) + 8))
ch                140 sound/soc/atmel/atmel-i2s.c #define ATMEL_I2SC_SR_TXURCH(ch)	(1 << (((ch) & 0x7) + 20))
ch                208 sound/soc/atmel/atmel-i2s.c 	unsigned int sr, imr, pending, ch, mask;
ch                221 sound/soc/atmel/atmel-i2s.c 		for (ch = 0; ch < ATMEL_I2SC_MAX_TDM_CHANNELS; ++ch) {
ch                222 sound/soc/atmel/atmel-i2s.c 			if (sr & ATMEL_I2SC_SR_RXORCH(ch)) {
ch                223 sound/soc/atmel/atmel-i2s.c 				mask |= ATMEL_I2SC_SR_RXORCH(ch);
ch                225 sound/soc/atmel/atmel-i2s.c 					"RX overrun on channel %d\n", ch);
ch                235 sound/soc/atmel/atmel-i2s.c 		for (ch = 0; ch < ATMEL_I2SC_MAX_TDM_CHANNELS; ++ch) {
ch                236 sound/soc/atmel/atmel-i2s.c 			if (sr & ATMEL_I2SC_SR_TXURCH(ch)) {
ch                237 sound/soc/atmel/atmel-i2s.c 				mask |= ATMEL_I2SC_SR_TXURCH(ch);
ch                239 sound/soc/atmel/atmel-i2s.c 					"TX underrun on channel %d\n", ch);
ch                134 sound/soc/atmel/mchp-i2s-mcc.c #define MCHP_I2SMCC_MRA_NBCHAN(ch) \
ch                135 sound/soc/atmel/mchp-i2s-mcc.c 	((((ch) - 1) << 13) & MCHP_I2SMCC_MRA_NBCHAN_MASK)
ch                195 sound/soc/atmel/mchp-i2s-mcc.c #define MCHP_I2SMCC_INT_TXRDY_MASK(ch)		GENMASK((ch) - 1, 0)
ch                196 sound/soc/atmel/mchp-i2s-mcc.c #define MCHP_I2SMCC_INT_TXRDYCH(ch)		BIT(ch)
ch                197 sound/soc/atmel/mchp-i2s-mcc.c #define MCHP_I2SMCC_INT_TXUNF_MASK(ch)		GENMASK((ch) + 7, 8)
ch                198 sound/soc/atmel/mchp-i2s-mcc.c #define MCHP_I2SMCC_INT_TXUNFCH(ch)		BIT((ch) + 8)
ch                199 sound/soc/atmel/mchp-i2s-mcc.c #define MCHP_I2SMCC_INT_RXRDY_MASK(ch)		GENMASK((ch) + 15, 16)
ch                200 sound/soc/atmel/mchp-i2s-mcc.c #define MCHP_I2SMCC_INT_RXRDYCH(ch)		BIT((ch) + 16)
ch                201 sound/soc/atmel/mchp-i2s-mcc.c #define MCHP_I2SMCC_INT_RXOVF_MASK(ch)		GENMASK((ch) + 23, 24)
ch                202 sound/soc/atmel/mchp-i2s-mcc.c #define MCHP_I2SMCC_INT_RXOVFCH(ch)		BIT((ch) + 24)
ch               1662 sound/soc/codecs/cs43130.c static int cs43130_show_dc(struct device *dev, char *buf, u8 ch)
ch               1671 sound/soc/codecs/cs43130.c 				 cs43130->hpload_dc[ch]);
ch               1699 sound/soc/codecs/cs43130.c static int cs43130_show_ac(struct device *dev, char *buf, u8 ch)
ch               1708 sound/soc/codecs/cs43130.c 					cs43130->hpload_ac[i][ch]);
ch                 67 sound/soc/codecs/cx2072x.c 	u8 ch;
ch               1615 sound/soc/codecs/wcd9335.c 	struct wcd9335_slim_ch *ch;
ch               1618 sound/soc/codecs/wcd9335.c 	list_for_each_entry(ch, &wcd->dai[dai->id].slim_ch_list, list) {
ch               1624 sound/soc/codecs/wcd9335.c 			if (val == (ch->shift + INTn_2_INP_SEL_RX0))
ch               1641 sound/soc/codecs/wcd9335.c 	struct wcd9335_slim_ch *ch;
ch               1645 sound/soc/codecs/wcd9335.c 	list_for_each_entry(ch, &wcd->dai[dai->id].slim_ch_list, list) {
ch               1646 sound/soc/codecs/wcd9335.c 		inp = ch->shift + INTn_1_MIX_INP_SEL_RX0;
ch               1714 sound/soc/codecs/wcd9335.c 	struct wcd9335_slim_ch *ch;
ch               1723 sound/soc/codecs/wcd9335.c 	list_for_each_entry(ch, slim_ch_list, list) {
ch               1725 sound/soc/codecs/wcd9335.c 		payload |= 1 << ch->shift;
ch               1726 sound/soc/codecs/wcd9335.c 		cfg->port_mask |= BIT(ch->port);
ch               1734 sound/soc/codecs/wcd9335.c 	list_for_each_entry(ch, slim_ch_list, list) {
ch               1735 sound/soc/codecs/wcd9335.c 		cfg->chs[i++] = ch->ch_num;
ch               1739 sound/soc/codecs/wcd9335.c 				WCD9335_SLIM_PGD_RX_PORT_MULTI_CHNL_0(ch->port),
ch               1747 sound/soc/codecs/wcd9335.c 					WCD9335_SLIM_PGD_RX_PORT_CFG(ch->port),
ch               1753 sound/soc/codecs/wcd9335.c 				WCD9335_SLIM_PGD_TX_PORT_MULTI_CHNL_0(ch->port),
ch               1760 sound/soc/codecs/wcd9335.c 				WCD9335_SLIM_PGD_TX_PORT_MULTI_CHNL_1(ch->port),
ch               1767 sound/soc/codecs/wcd9335.c 					WCD9335_SLIM_PGD_TX_PORT_CFG(ch->port),
ch               1793 sound/soc/codecs/wcd9335.c 	struct wcd9335_slim_ch *ch;
ch               1797 sound/soc/codecs/wcd9335.c 	list_for_each_entry(ch, &wcd->dai[dai->id].slim_ch_list, list) {
ch               1798 sound/soc/codecs/wcd9335.c 		tx_port = ch->port;
ch               2018 sound/soc/codecs/wcd9335.c 	struct wcd9335_slim_ch *ch;
ch               2035 sound/soc/codecs/wcd9335.c 		list_for_each_entry(ch, &wcd->dai[dai->id].slim_ch_list, list)
ch               2036 sound/soc/codecs/wcd9335.c 			rx_slot[i++] = ch->ch_num;
ch               2048 sound/soc/codecs/wcd9335.c 		list_for_each_entry(ch, &wcd->dai[dai->id].slim_ch_list, list)
ch               2049 sound/soc/codecs/wcd9335.c 			tx_slot[i++] = ch->ch_num;
ch               3000 sound/soc/codecs/wcd9335.c 	struct wcd9335_slim_ch *ch;
ch               3002 sound/soc/codecs/wcd9335.c 	list_for_each_entry(ch, &dai->slim_ch_list, list) {
ch               3003 sound/soc/codecs/wcd9335.c 		if (ch->port >= WCD9335_RX_START) {
ch               3004 sound/soc/codecs/wcd9335.c 			port_num = ch->port - WCD9335_RX_START;
ch               3007 sound/soc/codecs/wcd9335.c 			port_num = ch->port;
ch                 47 sound/soc/fsl/p1022_ds.c 	unsigned int co, unsigned int ch, unsigned int device)
ch                 49 sound/soc/fsl/p1022_ds.c 	unsigned int shift = 16 + (8 * (1 - co) + 2 * (3 - ch));
ch                 54 sound/soc/fsl/p1022_rdk.c 	unsigned int co, unsigned int ch, unsigned int device)
ch                 56 sound/soc/fsl/p1022_rdk.c 	unsigned int shift = 16 + (8 * (1 - co) + 2 * (3 - ch));
ch                 41 sound/soc/intel/common/sst-firmware.c 	struct dma_chan *ch;
ch                 77 sound/soc/intel/common/sst-firmware.c 	if (dma->ch == NULL) {
ch                 85 sound/soc/intel/common/sst-firmware.c 	desc = dma->ch->device->device_prep_dma_memcpy(dma->ch, dest_addr,
ch                228 sound/soc/intel/common/sst-firmware.c 	dma->ch = dma_request_channel(mask, dma_chan_filter, dsp);
ch                229 sound/soc/intel/common/sst-firmware.c 	if (dma->ch == NULL) {
ch                240 sound/soc/intel/common/sst-firmware.c 	ret = dmaengine_slave_config(dma->ch, &slave);
ch                244 sound/soc/intel/common/sst-firmware.c 		dma_release_channel(dma->ch);
ch                245 sound/soc/intel/common/sst-firmware.c 		dma->ch = NULL;
ch                256 sound/soc/intel/common/sst-firmware.c 	if (!dma->ch)
ch                259 sound/soc/intel/common/sst-firmware.c 	dma_release_channel(dma->ch);
ch                260 sound/soc/intel/common/sst-firmware.c 	dma->ch = NULL;
ch                321 sound/soc/intel/common/sst-firmware.c 	if (dma->ch)
ch                322 sound/soc/intel/common/sst-firmware.c 		dma_release_channel(dma->ch);
ch                121 sound/soc/intel/skylake/skl-debug.c 			mconfig->pipe->p_params->ch,
ch                150 sound/soc/intel/skylake/skl-pcm.c 			params->ch, params->format, params->host_bps, 0);
ch                153 sound/soc/intel/skylake/skl-pcm.c 		format_val, params->s_freq, params->ch, params->format);
ch                196 sound/soc/intel/skylake/skl-pcm.c 	format_val = snd_hdac_calc_stream_format(params->s_freq, params->ch,
ch                200 sound/soc/intel/skylake/skl-pcm.c 		format_val, params->s_freq, params->ch, params->format);
ch                329 sound/soc/intel/skylake/skl-pcm.c 	p_params.ch = params_channels(params);
ch                418 sound/soc/intel/skylake/skl-pcm.c 	p_params.ch = params_channels(params);
ch                586 sound/soc/intel/skylake/skl-pcm.c 	p_params.ch = params_channels(params);
ch                 46 sound/soc/intel/skylake/skl-topology.c #define CHECK_HW_PARAMS(ch, freq, bps, prm_ch, prm_freq, prm_bps) \
ch                 47 sound/soc/intel/skylake/skl-topology.c 	((ch == prm_ch) && (bps == prm_bps) && (freq == prm_freq))
ch                155 sound/soc/intel/skylake/skl-topology.c 		fmt->channels = params->ch;
ch                287 sound/soc/intel/skylake/skl-topology.c 	u32 ch, s_freq, s_fmt;
ch                304 sound/soc/intel/skylake/skl-topology.c 		ch = m_iface->inputs[0].fmt.channels;
ch                313 sound/soc/intel/skylake/skl-topology.c 			ch = m_iface->outputs[0].fmt.channels;
ch                318 sound/soc/intel/skylake/skl-topology.c 			ch = m_iface->inputs[0].fmt.channels;
ch                328 sound/soc/intel/skylake/skl-topology.c 					s_fmt, ch, s_freq, dir, dev_type);
ch                336 sound/soc/intel/skylake/skl-topology.c 					ch, s_freq, s_fmt);
ch                624 sound/soc/intel/skylake/skl-topology.c 		if (CHECK_HW_PARAMS(params->ch, params->s_freq, params->s_fmt,
ch                635 sound/soc/intel/skylake/skl-topology.c 		params->ch, params->s_freq, params->s_fmt, pipe->ppl_id);
ch               1517 sound/soc/intel/skylake/skl-topology.c 		pipe->p_params->ch = params->ch;
ch               1556 sound/soc/intel/skylake/skl-topology.c 	format->channels = params->ch;
ch               1746 sound/soc/intel/skylake/skl-topology.c 					params->s_fmt, params->ch,
ch               1757 sound/soc/intel/skylake/skl-topology.c 				 params->ch, params->s_freq, params->s_fmt);
ch                267 sound/soc/intel/skylake/skl-topology.h 	u32 ch;
ch                 95 sound/soc/mediatek/mt8183/mt8183-dai-tdm.c static unsigned int get_tdm_ch(unsigned int ch)
ch                 97 sound/soc/mediatek/mt8183/mt8183-dai-tdm.c 	switch (ch) {
ch                 33 sound/soc/meson/axg-tdm-formatter.c 	unsigned int val, ch = ts->channels;
ch                 46 sound/soc/meson/axg-tdm-formatter.c 		     (j < 32) && ch;
ch                 49 sound/soc/meson/axg-tdm-formatter.c 			ch -= 1;
ch                 61 sound/soc/meson/axg-tdm-formatter.c 	if (WARN_ON(ch != 0)) {
ch                137 sound/soc/qcom/lpass-platform.c 	int ch, dir = substream->stream;
ch                141 sound/soc/qcom/lpass-platform.c 	ch = pcm_data->dma_ch;
ch                209 sound/soc/qcom/lpass-platform.c 			LPAIF_DMACTL_REG(v, ch, dir), regval);
ch                248 sound/soc/qcom/lpass-platform.c 	int ret, ch, dir = substream->stream;
ch                250 sound/soc/qcom/lpass-platform.c 	ch = pcm_data->dma_ch;
ch                253 sound/soc/qcom/lpass-platform.c 			LPAIF_DMABASE_REG(v, ch, dir),
ch                262 sound/soc/qcom/lpass-platform.c 			LPAIF_DMABUFF_REG(v, ch, dir),
ch                271 sound/soc/qcom/lpass-platform.c 			LPAIF_DMAPER_REG(v, ch, dir),
ch                280 sound/soc/qcom/lpass-platform.c 			LPAIF_DMACTL_REG(v, ch, dir),
ch                300 sound/soc/qcom/lpass-platform.c 	int ret, ch, dir = substream->stream;
ch                302 sound/soc/qcom/lpass-platform.c 	ch = pcm_data->dma_ch;
ch                311 sound/soc/qcom/lpass-platform.c 				LPAIF_IRQ_ALL(ch));
ch                320 sound/soc/qcom/lpass-platform.c 				LPAIF_IRQ_ALL(ch),
ch                321 sound/soc/qcom/lpass-platform.c 				LPAIF_IRQ_ALL(ch));
ch                329 sound/soc/qcom/lpass-platform.c 				LPAIF_DMACTL_REG(v, ch, dir),
ch                342 sound/soc/qcom/lpass-platform.c 				LPAIF_DMACTL_REG(v, ch, dir),
ch                353 sound/soc/qcom/lpass-platform.c 				LPAIF_IRQ_ALL(ch), 0);
ch                375 sound/soc/qcom/lpass-platform.c 	int ret, ch, dir = substream->stream;
ch                377 sound/soc/qcom/lpass-platform.c 	ch = pcm_data->dma_ch;
ch                380 sound/soc/qcom/lpass-platform.c 			LPAIF_DMABASE_REG(v, ch, dir), &base_addr);
ch                388 sound/soc/qcom/lpass-platform.c 			LPAIF_DMACURR_REG(v, ch, dir), &curr_addr);
ch                 81 sound/soc/qcom/lpass.h 	int (*free_dma_channel)(struct lpass_data *data, int ch);
ch                 11 sound/soc/qcom/qdsp6/q6dsp-common.c int q6dsp_map_channels(u8 ch_map[PCM_MAX_NUM_CHANNEL], int ch)
ch                 15 sound/soc/qcom/qdsp6/q6dsp-common.c 	switch (ch) {
ch                 22 sound/soc/qcom/qdsp6/q6dsp-common.h int q6dsp_map_channels(u8 ch_map[PCM_MAX_NUM_CHANNEL], int ch);
ch                 21 sound/soc/sof/intel/hda-dai.c 	u32 ch;
ch                131 sound/soc/sof/intel/hda-dai.c 	format_val = snd_hdac_calc_stream_format(params->s_freq, params->ch,
ch                136 sound/soc/sof/intel/hda-dai.c 		format_val, params->s_freq, params->ch, params->format);
ch                244 sound/soc/sof/intel/hda-dai.c 	p_params.ch = params_channels(params);
ch                207 sound/soc/uniphier/aio-core.c 	regmap_write(r, A2CHNMAPCTR0(sub->swm->ch.hw),
ch                208 sound/soc/uniphier/aio-core.c 		     MAPCTR0_EN | sub->swm->ch.map);
ch               1018 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_CHMXCTRL1(sub->swm->ch.map),
ch               1026 sound/soc/uniphier/aio-core.c 		regmap_write(r, CDA2D_CHMXSRCAMODE(sub->swm->ch.map), v);
ch               1028 sound/soc/uniphier/aio-core.c 		regmap_write(r, CDA2D_CHMXDSTAMODE(sub->swm->ch.map), v);
ch               1039 sound/soc/uniphier/aio-core.c 			     CDA2D_STRT0_STOP_START | BIT(sub->swm->ch.map));
ch               1046 sound/soc/uniphier/aio-core.c 			     CDA2D_STRT0_STOP_STOP | BIT(sub->swm->ch.map));
ch                 20 sound/soc/uniphier/aio-ld11.c 			.ch    = { 21, 14, },
ch                 33 sound/soc/uniphier/aio-ld11.c 			.ch    = { 22, 15, },
ch                 47 sound/soc/uniphier/aio-ld11.c 			.ch    = { 23, 16, },
ch                 61 sound/soc/uniphier/aio-ld11.c 			.ch    = { 26, 17, },
ch                 74 sound/soc/uniphier/aio-ld11.c 			.ch    = { 0, 0, },
ch                 88 sound/soc/uniphier/aio-ld11.c 			.ch    = { 0, 0, },
ch                102 sound/soc/uniphier/aio-ld11.c 			.ch    = { 2, 2, },
ch                115 sound/soc/uniphier/aio-ld11.c 			.ch    = { 3, 3, },
ch                128 sound/soc/uniphier/aio-ld11.c 			.ch    = { 7, 5, },
ch                143 sound/soc/uniphier/aio-ld11.c 			.ch    = { 8, 6, },
ch                159 sound/soc/uniphier/aio-ld11.c 			.ch    = { 1, 1, },
ch                173 sound/soc/uniphier/aio-ld11.c 			.ch    = { 1, 1, },
ch                 20 sound/soc/uniphier/aio-pxs2.c 			.ch    = { 16, 11, },
ch                 34 sound/soc/uniphier/aio-pxs2.c 			.ch    = { 17, 12, },
ch                 48 sound/soc/uniphier/aio-pxs2.c 			.ch    = { 0, 0, },
ch                 62 sound/soc/uniphier/aio-pxs2.c 			.ch    = { 1, 1, },
ch                 76 sound/soc/uniphier/aio-pxs2.c 			.ch    = { 2, 2, },
ch                 89 sound/soc/uniphier/aio-pxs2.c 			.ch    = { 6, 4, },
ch                102 sound/soc/uniphier/aio-pxs2.c 			.ch    = { 6, 4, },
ch                115 sound/soc/uniphier/aio-pxs2.c 			.ch    = { 7, 5, },
ch                128 sound/soc/uniphier/aio-pxs2.c 			.ch    = { 7, 5, },
ch                197 sound/soc/uniphier/aio.h 	struct uniphier_aio_selector ch;
ch                101 sound/soc/xilinx/xlnx_i2s.c 	u32 ch, format, data_width;
ch                113 sound/soc/xilinx/xlnx_i2s.c 	ret = of_property_read_u32(node, "xlnx,num-channels", &ch);
ch                118 sound/soc/xilinx/xlnx_i2s.c 	ch = ch * 2;
ch                140 sound/soc/xilinx/xlnx_i2s.c 		dai_drv->playback.channels_min = ch;
ch                141 sound/soc/xilinx/xlnx_i2s.c 		dai_drv->playback.channels_max = ch;
ch                148 sound/soc/xilinx/xlnx_i2s.c 		dai_drv->capture.channels_min = ch;
ch                149 sound/soc/xilinx/xlnx_i2s.c 		dai_drv->capture.channels_max = ch;
ch               2032 sound/sparc/dbri.c 	struct snd_interval ch;
ch               2034 sound/sparc/dbri.c 	snd_interval_any(&ch);
ch               2036 sound/sparc/dbri.c 		ch.min = 1;
ch               2037 sound/sparc/dbri.c 		ch.max = 1;
ch               2038 sound/sparc/dbri.c 		ch.integer = 1;
ch               2039 sound/sparc/dbri.c 		return snd_interval_refine(c, &ch);
ch                 34 sound/synth/emux/emux_oss.c 		       int ch, int param, int val, int atomic, int hop);
ch                481 sound/synth/emux/emux_oss.c fake_event(struct snd_emux *emu, struct snd_emux_port *port, int ch, int param, int val, int atomic, int hop)
ch                486 sound/synth/emux/emux_oss.c 	ev.data.control.channel = ch;
ch                 50 sound/synth/emux/emux_proc.c 	if (emu->voices[0].state != SNDRV_EMUX_ST_OFF && emu->voices[0].ch >= 0) {
ch                 90 sound/synth/emux/emux_synth.c 		if (vp == NULL || vp->ch < 0)
ch                147 sound/synth/emux/emux_synth.c 	int ch;
ch                162 sound/synth/emux/emux_synth.c 	for (ch = 0; ch < emu->max_voices; ch++) {
ch                163 sound/synth/emux/emux_synth.c 		vp = &emu->voices[ch];
ch                196 sound/synth/emux/emux_synth.c 	int ch, do_again = 0;
ch                199 sound/synth/emux/emux_synth.c 	for (ch = 0; ch < emu->max_voices; ch++) {
ch                200 sound/synth/emux/emux_synth.c 		vp = &emu->voices[ch];
ch                224 sound/synth/emux/emux_synth.c 	int ch;
ch                239 sound/synth/emux/emux_synth.c 	for (ch = 0; ch < emu->max_voices; ch++) {
ch                240 sound/synth/emux/emux_synth.c 		vp = &emu->voices[ch];
ch                923 sound/synth/emux/emux_synth.c 		vp->ch = -1; /* not used */
ch                189 sound/usb/6fire/control.c 	unsigned int ch = kcontrol->private_value;
ch                192 sound/usb/6fire/control.c 	if (ch > 4) {
ch                198 sound/usb/6fire/control.c 	if (rt->output_vol[ch] != ucontrol->value.integer.value[0]) {
ch                199 sound/usb/6fire/control.c 		rt->output_vol[ch] = ucontrol->value.integer.value[0];
ch                200 sound/usb/6fire/control.c 		rt->ovol_updated &= ~(1 << ch);
ch                203 sound/usb/6fire/control.c 	if (rt->output_vol[ch + 1] != ucontrol->value.integer.value[1]) {
ch                204 sound/usb/6fire/control.c 		rt->output_vol[ch + 1] = ucontrol->value.integer.value[1];
ch                205 sound/usb/6fire/control.c 		rt->ovol_updated &= ~(2 << ch);
ch                219 sound/usb/6fire/control.c 	unsigned int ch = kcontrol->private_value;
ch                221 sound/usb/6fire/control.c 	if (ch > 4) {
ch                227 sound/usb/6fire/control.c 	ucontrol->value.integer.value[0] = rt->output_vol[ch];
ch                228 sound/usb/6fire/control.c 	ucontrol->value.integer.value[1] = rt->output_vol[ch + 1];
ch                236 sound/usb/6fire/control.c 	unsigned int ch = kcontrol->private_value;
ch                240 sound/usb/6fire/control.c 	if (ch > 4) {
ch                246 sound/usb/6fire/control.c 	rt->output_mute &= ~(3 << ch);
ch                251 sound/usb/6fire/control.c 	rt->output_mute |= value << ch;
ch                263 sound/usb/6fire/control.c 	unsigned int ch = kcontrol->private_value;
ch                264 sound/usb/6fire/control.c 	u8 value = rt->output_mute >> ch;
ch                266 sound/usb/6fire/control.c 	if (ch > 4) {
ch               1065 sound/usb/mixer_quirks.c 	int err, ch;
ch               1072 sound/usb/mixer_quirks.c 	for (ch = 0; ch < 4; ++ch) {
ch               1073 sound/usb/mixer_quirks.c 		cmask = 1 << ch;
ch               1075 sound/usb/mixer_quirks.c 			"Effect Return %d Volume", ch + 1);
ch               1089 sound/usb/mixer_quirks.c 	int err, ch;
ch               1096 sound/usb/mixer_quirks.c 	for (ch = 0; ch < 8; ++ch) {
ch               1097 sound/usb/mixer_quirks.c 		cmask = 1 << ch;
ch               1099 sound/usb/mixer_quirks.c 			"Effect Send AIn%d Volume", ch + 1);
ch               1106 sound/usb/mixer_quirks.c 	for (ch = 8; ch < 16; ++ch) {
ch               1107 sound/usb/mixer_quirks.c 		cmask = 1 << ch;
ch               1109 sound/usb/mixer_quirks.c 			"Effect Send DIn%d Volume", ch - 7);
ch               1793 sound/usb/mixer_quirks.c static void dell_dock_init_vol(struct snd_usb_audio *chip, int ch, int id)
ch               1799 sound/usb/mixer_quirks.c 			ch, snd_usb_ctrl_intf(chip) | (id << 8),
ch                937 tools/lib/traceevent/event-parse.c static enum tep_event_type get_type(int ch)
ch                939 tools/lib/traceevent/event-parse.c 	if (ch == '\n')
ch                941 tools/lib/traceevent/event-parse.c 	if (isspace(ch))
ch                943 tools/lib/traceevent/event-parse.c 	if (isalnum(ch) || ch == '_')
ch                945 tools/lib/traceevent/event-parse.c 	if (ch == '\'')
ch                947 tools/lib/traceevent/event-parse.c 	if (ch == '"')
ch                949 tools/lib/traceevent/event-parse.c 	if (!isprint(ch))
ch                951 tools/lib/traceevent/event-parse.c 	if (ch == '(' || ch == ')' || ch == ',')
ch               1007 tools/lib/traceevent/event-parse.c 	int ch, last_ch, quote_ch, next_ch;
ch               1015 tools/lib/traceevent/event-parse.c 	ch = __read_char();
ch               1016 tools/lib/traceevent/event-parse.c 	if (ch < 0)
ch               1019 tools/lib/traceevent/event-parse.c 	type = get_type(ch);
ch               1023 tools/lib/traceevent/event-parse.c 	buf[i++] = ch;
ch               1028 tools/lib/traceevent/event-parse.c 		if (asprintf(tok, "%c", ch) < 0)
ch               1034 tools/lib/traceevent/event-parse.c 		switch (ch) {
ch               1047 tools/lib/traceevent/event-parse.c 			last_ch = ch;
ch               1048 tools/lib/traceevent/event-parse.c 			ch = __peek_char();
ch               1049 tools/lib/traceevent/event-parse.c 			if (ch != last_ch)
ch               1071 tools/lib/traceevent/event-parse.c 		ch = __peek_char();
ch               1072 tools/lib/traceevent/event-parse.c 		if (ch == '=')
ch               1080 tools/lib/traceevent/event-parse.c 		quote_ch = ch;
ch               1092 tools/lib/traceevent/event-parse.c 			last_ch = ch;
ch               1093 tools/lib/traceevent/event-parse.c 			ch = __read_char();
ch               1094 tools/lib/traceevent/event-parse.c 			buf[i++] = ch;
ch               1096 tools/lib/traceevent/event-parse.c 			if (ch == '\\' && last_ch == '\\')
ch               1098 tools/lib/traceevent/event-parse.c 		} while (ch != quote_ch || last_ch == '\\');
ch               1110 tools/lib/traceevent/event-parse.c 				ch = __read_char();
ch               1111 tools/lib/traceevent/event-parse.c 			} while (isspace(ch));
ch               1112 tools/lib/traceevent/event-parse.c 			if (ch == '"')
ch               1134 tools/lib/traceevent/event-parse.c 		ch = __read_char();
ch               1135 tools/lib/traceevent/event-parse.c 		buf[i++] = ch;
ch                 74 tools/perf/arch/x86/util/perf_regs.c 	SDT_NAME_REG(ch,  cx),
ch                604 tools/perf/builtin-diff.c 			    struct cyc_hist *ch, int offset)
ch                607 tools/perf/builtin-diff.c 	bi->start = ch->start;
ch                609 tools/perf/builtin-diff.c 	bi->cycles = ch->cycles;
ch                610 tools/perf/builtin-diff.c 	bi->cycles_aggr = ch->cycles_aggr;
ch                611 tools/perf/builtin-diff.c 	bi->num = ch->num;
ch                612 tools/perf/builtin-diff.c 	bi->num_aggr = ch->num_aggr;
ch                618 tools/perf/builtin-diff.c 	struct cyc_hist *ch;
ch                631 tools/perf/builtin-diff.c 	ch = notes->src->cycles_hist;
ch                633 tools/perf/builtin-diff.c 		if (ch[i].num_aggr) {
ch                641 tools/perf/builtin-diff.c 			init_block_info(bi, he->ms.sym, &ch[i], i);
ch               1443 tools/perf/builtin-script.c 	unsigned char ch = (unsigned char)val;
ch               1468 tools/perf/builtin-script.c 		if (printer_data->hit_nul && ch)
ch               1471 tools/perf/builtin-script.c 		if (!isprint(ch)) {
ch               1477 tools/perf/builtin-script.c 			if (ch == '\0')
ch               1482 tools/perf/builtin-script.c 			printed += fprintf(fp, "%c", ch);
ch               2320 tools/perf/builtin-trace.c 	unsigned char ch = (unsigned char)val;
ch               2324 tools/perf/builtin-trace.c 		return fprintf(fp, "%c", isprint(ch) ? ch : '.');
ch                817 tools/perf/util/annotate.c static int __symbol__account_cycles(struct cyc_hist *ch,
ch                830 tools/perf/util/annotate.c 	ch[offset].num_aggr++;
ch                831 tools/perf/util/annotate.c 	ch[offset].cycles_aggr += cycles;
ch                833 tools/perf/util/annotate.c 	if (cycles > ch[offset].cycles_max)
ch                834 tools/perf/util/annotate.c 		ch[offset].cycles_max = cycles;
ch                836 tools/perf/util/annotate.c 	if (ch[offset].cycles_min) {
ch                837 tools/perf/util/annotate.c 		if (cycles && cycles < ch[offset].cycles_min)
ch                838 tools/perf/util/annotate.c 			ch[offset].cycles_min = cycles;
ch                840 tools/perf/util/annotate.c 		ch[offset].cycles_min = cycles;
ch                842 tools/perf/util/annotate.c 	if (!have_start && ch[offset].have_start)
ch                844 tools/perf/util/annotate.c 	if (ch[offset].num) {
ch                845 tools/perf/util/annotate.c 		if (have_start && (!ch[offset].have_start ||
ch                846 tools/perf/util/annotate.c 				   ch[offset].start > start)) {
ch                847 tools/perf/util/annotate.c 			ch[offset].have_start = 0;
ch                848 tools/perf/util/annotate.c 			ch[offset].cycles = 0;
ch                849 tools/perf/util/annotate.c 			ch[offset].num = 0;
ch                850 tools/perf/util/annotate.c 			if (ch[offset].reset < 0xffff)
ch                851 tools/perf/util/annotate.c 				ch[offset].reset++;
ch                853 tools/perf/util/annotate.c 			   ch[offset].start < start)
ch                856 tools/perf/util/annotate.c 	ch[offset].have_start = have_start;
ch                857 tools/perf/util/annotate.c 	ch[offset].start = start;
ch                858 tools/perf/util/annotate.c 	ch[offset].cycles += cycles;
ch                859 tools/perf/util/annotate.c 	ch[offset].num++;
ch               1023 tools/perf/util/annotate.c static void annotation__count_and_fill(struct annotation *notes, u64 start, u64 end, struct cyc_hist *ch)
ch               1030 tools/perf/util/annotate.c 	if (n_insn && ch->num && ch->cycles) {
ch               1031 tools/perf/util/annotate.c 		float ipc = n_insn / ((double)ch->cycles / (double)ch->num);
ch               1034 tools/perf/util/annotate.c 		if (ch->reset >= 0x7fff)
ch               1047 tools/perf/util/annotate.c 			notes->hit_cycles += ch->cycles;
ch               1048 tools/perf/util/annotate.c 			notes->hit_insn += n_insn * ch->num;
ch               1068 tools/perf/util/annotate.c 		struct cyc_hist *ch;
ch               1070 tools/perf/util/annotate.c 		ch = &notes->src->cycles_hist[offset];
ch               1071 tools/perf/util/annotate.c 		if (ch && ch->cycles) {
ch               1074 tools/perf/util/annotate.c 			if (ch->have_start)
ch               1075 tools/perf/util/annotate.c 				annotation__count_and_fill(notes, ch->start, offset, ch);
ch               1077 tools/perf/util/annotate.c 			if (al && ch->num_aggr) {
ch               1078 tools/perf/util/annotate.c 				al->cycles = ch->cycles_aggr / ch->num_aggr;
ch               1079 tools/perf/util/annotate.c 				al->cycles_max = ch->cycles_max;
ch               1080 tools/perf/util/annotate.c 				al->cycles_min = ch->cycles_min;
ch                189 tools/perf/util/config.c 		int ch = get_next_char();
ch                191 tools/perf/util/config.c 		if (ch == '\n')
ch                193 tools/perf/util/config.c 		if (ch == '"')
ch                195 tools/perf/util/config.c 		if (ch == '\\') {
ch                196 tools/perf/util/config.c 			ch = get_next_char();
ch                197 tools/perf/util/config.c 			if (ch == '\n')
ch                200 tools/perf/util/config.c 		name[baselen++] = ch;
ch                120 tools/perf/util/debug.c 	unsigned char ch = (unsigned char)val;
ch                146 tools/perf/util/debug.c 			      isprint(ch) ? ch : '.');
ch                 67 tools/perf/util/time-utils.c static int split_start_end(char **start, char **end, const char *ostr, char ch)
ch                 81 tools/perf/util/time-utils.c 	d = strchr(start_str, ch);
ch                382 tools/power/acpi/tools/acpidbg/acpidbg.c 	int ch;
ch                386 tools/power/acpi/tools/acpidbg/acpidbg.c 	while ((ch = getopt(argc, argv, "b:f:h")) != -1) {
ch                387 tools/power/acpi/tools/acpidbg/acpidbg.c 		switch (ch) {
ch                 95 tools/spi/spidev_test.c 	unsigned int ch;
ch                 99 tools/spi/spidev_test.c 			match = sscanf(src + 2, "%2x", &ch);
ch                104 tools/spi/spidev_test.c 			*dst++ = (unsigned char)ch;
ch                 68 tools/testing/selftests/bpf/test_tag.c static int __hex2bin(char ch)
ch                 70 tools/testing/selftests/bpf/test_tag.c 	if ((ch >= '0') && (ch <= '9'))
ch                 71 tools/testing/selftests/bpf/test_tag.c 		return ch - '0';
ch                 72 tools/testing/selftests/bpf/test_tag.c 	ch = tolower(ch);
ch                 73 tools/testing/selftests/bpf/test_tag.c 	if ((ch >= 'a') && (ch <= 'f'))
ch                 74 tools/testing/selftests/bpf/test_tag.c 		return ch - 'a' + 10;
ch               2053 tools/testing/selftests/kvm/lib/sparsebit.c 	int ch;
ch               2055 tools/testing/selftests/kvm/lib/sparsebit.c 	ch = getchar();
ch               2056 tools/testing/selftests/kvm/lib/sparsebit.c 	if (ch == EOF)
ch               2058 tools/testing/selftests/kvm/lib/sparsebit.c 	return ch;
ch                149 tools/thermal/tmon/sysfs.c 	char *ch;
ch                152 tools/thermal/tmon/sysfs.c 	ch = strtok(name, "_");
ch                153 tools/thermal/tmon/sysfs.c 	while (ch != NULL) {
ch                155 tools/thermal/tmon/sysfs.c 		syslog(LOG_INFO, "%s:%s:%s:%d", __func__, name, ch, i);
ch                156 tools/thermal/tmon/sysfs.c 		ch = strtok(NULL, "_");
ch                158 tools/thermal/tmon/sysfs.c 			return atol(ch + skip);
ch                406 tools/thermal/tmon/tui.c static void handle_input_val(int ch)
ch                418 tools/thermal/tmon/tui.c 	if (ch == ptdata.nr_cooling_dev) {
ch                430 tools/thermal/tmon/tui.c 			CDEV, ptdata.cdi[ch].instance);
ch                442 tools/thermal/tmon/tui.c static void handle_input_choice(int ch)
ch                448 tools/thermal/tmon/tui.c 	if ((ch >= 'A' && ch <= 'A' + ptdata.nr_cooling_dev) ||
ch                449 tools/thermal/tmon/tui.c 		(ch >= 'a' && ch <= 'a' + ptdata.nr_cooling_dev)) {
ch                450 tools/thermal/tmon/tui.c 		base = (ch < 'a') ? 'A' : 'a';
ch                451 tools/thermal/tmon/tui.c 		cdev_id = ch - base;
ch                461 tools/thermal/tmon/tui.c 		snprintf(buf, sizeof(buf), "Invalid selection %d", ch);
ch                468 tools/thermal/tmon/tui.c 	int ch;
ch                471 tools/thermal/tmon/tui.c 	while ((ch = wgetch(cooling_device_window)) != EOF) {
ch                485 tools/thermal/tmon/tui.c 			handle_input_choice(ch);
ch                487 tools/thermal/tmon/tui.c 			if (ch == 'q' || ch == 'Q')
ch                488 tools/thermal/tmon/tui.c 				ch = 0;
ch                490 tools/thermal/tmon/tui.c 		switch (ch) {