/Linux-v5.4/Documentation/devicetree/bindings/serial/ |
D | snps-dw-apb-uart.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/serial/snps-dw-apb-uart.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rob Herring <robh@kernel.org> 13 - $ref: /schemas/serial.yaml# 18 - items: 19 - enum: 20 - renesas,r9a06g032-uart 21 - renesas,r9a06g033-uart [all …]
|
/Linux-v5.4/drivers/tty/serial/8250/ |
D | 8250_dw.c | 1 // SPDX-License-Identifier: GPL-2.0+ 59 struct dw8250_data *d = to_dw8250_data(p->private_data); in dw8250_modify_msr() 61 /* Override any modem control signals if needed */ in dw8250_modify_msr() 63 value |= d->msr_mask_on; in dw8250_modify_msr() 64 value &= ~d->msr_mask_off; in dw8250_modify_msr() 75 (void)p->serial_in(p, UART_RX); in dw8250_force_idle() 80 void __iomem *offset = p->membase + (UART_LCR << p->regshift); in dw8250_check_lcr() 84 while (tries--) { in dw8250_check_lcr() 85 unsigned int lcr = p->serial_in(p, UART_LCR); in dw8250_check_lcr() 93 if (p->type == PORT_OCTEON) in dw8250_check_lcr() [all …]
|
/Linux-v5.4/drivers/misc/sgi-gru/ |
D | grumain.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 56 /*--------- ASID Management ------------------------------------------- 71 * the search for in-use asids only checks contexts with GRUs currently 76 * 0---------------x------------x---------------------x----| 77 * ^-next ^-limit ^-MAX_ASID 86 gru_dbg(grudev, "gid %d\n", gru->gs_gid); in gru_wrap_asid() 88 gru->gs_asid_gen++; in gru_wrap_asid() 97 gru_dbg(grudev, "gid %d, asid 0x%x\n", gru->gs_gid, asid); in gru_reset_asid_limit() 103 gid = gru->gs_gid; in gru_reset_asid_limit() 106 if (!gru->gs_gts[i] || is_kernel_context(gru->gs_gts[i])) in gru_reset_asid_limit() [all …]
|
/Linux-v5.4/drivers/tty/serial/ |
D | mux.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 ** serial driver for the Mux console found in some PA-RISC servers. 7 ** (c) Copyright 2002 Hewlett-Packard Company 26 #include <asm/parisc-device.h> 67 #define UART_PUT_CHAR(p, c) __raw_writel((c), (p)->membase + IO_DATA_REG_OFFSET) 68 #define UART_GET_FIFO_CNT(p) __raw_readl((p)->membase + IO_DCOUNT_REG_OFFSET) 71 * get_mux_port_count - Get the number of available ports on the Mux. 77 * are connected. This function can override the IODC and 86 /* If this is the built-in Mux for the K-Class (Eole CAP/MUX), in get_mux_port_count() 90 if(dev->id.hversion == 0x15) in get_mux_port_count() [all …]
|
D | atmel_serial.c | 1 // SPDX-License-Identifier: GPL-2.0+ 24 #include <linux/dma-mapping.h> 68 /* Use device name ttyAT, major 204 and minor 154-169. This is necessary if we 77 /* Use device name ttyS, major 4, minor 64-68. This is the usual serial port 169 bool hd_start_rx; /* can start RX during half-duplex operation */ 205 { .compatible = "atmel,at91rm9200-usart-serial" }, 218 return __raw_readl(port->membase + reg); in atmel_uart_readl() 223 __raw_writel(value, port->membase + reg); in atmel_uart_writel() 228 return __raw_readb(port->membase + ATMEL_US_RHR); in atmel_uart_read_char() 233 __raw_writeb(value, port->membase + ATMEL_US_THR); in atmel_uart_write_char() [all …]
|
/Linux-v5.4/drivers/tty/ |
D | synclinkmp.c | 1 // SPDX-License-Identifier: GPL-1.0+ 78 #define COPY_FROM_USER(error,dest,src,size) error = copy_from_user(dest,src,size) ? -EFAULT : 0 80 #define COPY_TO_USER(error,dest,src,size) error = copy_to_user(dest,src,size) ? -EFAULT : 0 110 /* SCA-I style DMA buffer descriptor */ 126 u16 phys_entry; /* lower 16-bits of physical address of this descriptor */ 288 #define MISCSTATUS_DSR_LATCHED (SerialSignal_DSR<<8) /* change in DSR */ 374 #define DSR 0x90 macro 449 static int synclinkmp_adapter_count = -1; 453 * Set this param to non-zero to load eax with the 455 * This is useful for use with gdb and add-symbol-file command. [all …]
|
D | rocket_int.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * rocket_int.h --- internal header file for rocket.c 34 * byte-swapping the I/O instructions. However, all accesses using 35 * sOutDW aren't really 32-bit accesses, but should be handled in byte 36 * order. Hence the use of the cpu_to_le32() macro to byte-swap 37 * things to no-op the byte swapping done by the big-endian outl() 93 #define CTLID_NULL -1 /* no controller exists */ 97 #define AIOPID_NULL -1 /* no AIOP or channel exists */ 101 Global Register Offsets - Direct Access - Fixed values 112 Channel Register Offsets for 1st channel in AIOP - Direct Access [all …]
|
D | synclink_gt.c | 1 // SPDX-License-Identifier: GPL-1.0+ 28 * DBGINFO information - most verbose output 131 MODULE_PARM_DESC(ttymajor, "TTY major device number override: 0=auto assigned"); 165 #define dev_to_port(D) (dev_to_hdlc(D)->priv) 555 printk("%s %s data:\n",info->device_name, label); in trace_block() 570 count -= linecount; in trace_block() 581 printk("tbuf_current=%d\n", info->tbuf_current); in dump_tbufs() 582 for (i=0 ; i < info->tbuf_count ; i++) { in dump_tbufs() 584 i, le16_to_cpu(info->tbufs[i].count), le16_to_cpu(info->tbufs[i].status)); in dump_tbufs() 595 printk("rbuf_current=%d\n", info->rbuf_current); in dump_rbufs() [all …]
|
D | synclink.c | 1 // SPDX-License-Identifier: GPL-1.0+ 96 #include <linux/dma-mapping.h> 105 #define COPY_FROM_USER(error,dest,src,size) error = copy_from_user(dest,src,size) ? -EFAULT : 0 107 #define COPY_TO_USER(error,dest,src,size) error = copy_to_user(dest,src,size) ? -EFAULT : 0 136 u32 phys_addr; /* 32-bit flat physical address of data buffer */ 141 u32 link; /* 32-bit flat link to next buffer entry */ 393 #define RDMR 0x82 /* Receive DMA mode Register (non-shared) */ 554 #define usc_UnlatchTxstatusBits(a,b) usc_OutReg( (a), TCSR, (u16)((a)->tcsr_value + ((b) & 0x00FF))… 674 #define usc_TCmd(a,b) usc_OutReg((a), TCSR, (u16)((a)->tcsr_value + (b))) 714 #define dev_to_port(D) (dev_to_hdlc(D)->priv) [all …]
|
/Linux-v5.4/drivers/usb/serial/ |
D | ark3116.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 * - implements a driver for the arkmicro ark3116 chipset (vendor=0x6547, 10 * productid=0x0232) (used in a datacable called KQ-U8A) 52 struct usb_device *dev = serial->dev; in is_irda() 53 if (le16_to_cpu(dev->descriptor.idVendor) == 0x18ec && in is_irda() 54 le16_to_cpu(dev->descriptor.idProduct) == 0x3118) in is_irda() 82 result = usb_control_msg(serial->dev, in ark3116_write_reg() 83 usb_sndctrlpipe(serial->dev, 0), in ark3116_write_reg() 97 result = usb_control_msg(serial->dev, in ark3116_read_reg() 98 usb_rcvctrlpipe(serial->dev, 0), in ark3116_read_reg() [all …]
|
D | ftdi_sio.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2009 - 2013 7 * Copyright (C) 1999 - 2001 8 * Greg Kroah-Hartman (greg@kroah.com) 13 * See Documentation/usb/usb-serial.rst for more information on using this 16 * See http://ftdi-usb-sio.sourceforge.net for up to date testing info 24 /* Bill Ryder - bryder@sgi.com - wrote the FTDI_SIO implementation */ 28 assimilated :-) */ 47 #define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Bill Ryder <bryder@sgi.com>, Kuba Ober … 58 u16 last_set_data_value; /* the last data state set - needed for doing [all …]
|
/Linux-v5.4/drivers/mmc/core/ |
D | mmc_ops.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2006-2007 Pierre Ossman 60 if (!mmc_host_is_spi(card->host)) in __mmc_send_status() 61 cmd.arg = card->rca << 16; in __mmc_send_status() 64 err = mmc_wait_for_cmd(card->host, &cmd, retries); in __mmc_send_status() 91 cmd.arg = card->rca << 16; in _mmc_select_card() 104 return _mmc_select_card(card->host, card); in mmc_select_card() 117 * The presence of the DSR register can be determined from the CSD register, 126 cmd.arg = (host->dsr << 16) | 0xffff; in mmc_set_dsr() 138 * Non-SPI hosts need to prevent chipselect going active during in mmc_go_idle() [all …]
|
/Linux-v5.4/drivers/char/pcmcia/ |
D | synclink_cs.c | 83 #define COPY_FROM_USER(error,dest,src,size) error = copy_from_user(dest,src,size) ? -EFAULT : 0 85 #define COPY_TO_USER(error,dest,src,size) error = copy_to_user(dest,src,size) ? -EFAULT : 0 197 int if_mode; /* serial interface selection (RS-232, v.35 etc) */ 321 #define write_reg(info, reg, val) outb((val),(info)->io_base + (reg)) 322 #define read_reg(info, reg) inb((info)->io_base + (reg)) 324 #define read_reg16(info, reg) inw((info)->io_base + (reg)) 325 #define write_reg16(info, reg, val) outw((val), (info)->io_base + (reg)) 339 info->imra_value |= mask; in irq_disable() 340 write_reg16(info, CHA + IMR, info->imra_value); in irq_disable() 342 info->imrb_value |= mask; in irq_disable() [all …]
|
/Linux-v5.4/drivers/dma/ppc4xx/ |
D | adma.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2006-2009 DENX Software Engineering. 22 #include <linux/dma-mapping.h> 33 #include <asm/dcr-regs.h> 91 /* This array is used in data-check operations for storing a pattern */ 98 /* Since RXOR operations use the common register (MQ0_CF2H) for setting-up 135 switch (chan->device->id) { in print_cb() 145 cdb, chan->device->id, in print_cb() 146 cdb->attr, cdb->opc, le32_to_cpu(cdb->cnt), in print_cb() 147 le32_to_cpu(cdb->sg1u), le32_to_cpu(cdb->sg1l), in print_cb() [all …]
|