Home
last modified time | relevance | path

Searched full:port (Results 1 – 25 of 5177) sorted by relevance

12345678910>>...208

/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c284 * @min_volt: Actual min voltage at the local port
285 * @req_min_volt: Requested min voltage to the port partner
286 * @max_volt: Actual max voltage at the local port
287 * @req_max_volt: Requested max voltage to the port partner
288 * @max_curr: Actual max current at the local port
289 * @req_max_curr: Requested max current of the port partner
290 * @req_out_volt: Requested output voltage to the port partner
291 * @req_op_curr: Requested operating current to the port partner
477 /* Requested current / voltage to the port partner */
480 /* Actual current / voltage limit of the local port */
[all …]
/linux/drivers/usb/host/
H A Dxhci-dbgtty.c28 dbc_kfifo_to_req(struct dbc_port *port, char *packet) in dbc_kfifo_to_req() argument
32 len = kfifo_len(&port->port.xmit_fifo); in dbc_kfifo_to_req()
39 if (port->tx_boundary) in dbc_kfifo_to_req()
40 len = min(port->tx_boundary, len); in dbc_kfifo_to_req()
42 len = kfifo_out(&port->port.xmit_fifo, packet, len); in dbc_kfifo_to_req()
44 if (port->tx_boundary) in dbc_kfifo_to_req()
45 port->tx_boundary -= len; in dbc_kfifo_to_req()
50 static int dbc_start_tx(struct dbc_port *port) in dbc_start_tx() argument
51 __releases(&port->port_lock) in dbc_start_tx()
52 __acquires(&port->port_lock) in dbc_start_tx()
[all …]
/linux/drivers/scsi/libsas/
H A Dsas_port.c3 * Serial Attached SCSI (SAS) Port class
15 static bool phy_is_wideport_member(struct asd_sas_port *port, struct asd_sas_phy *phy) in phy_is_wideport_member() argument
19 if (memcmp(port->attached_sas_addr, phy->attached_sas_addr, in phy_is_wideport_member()
21 memcmp(port->sas_addr, phy->sas_addr, SAS_ADDR_SIZE) != 0)) in phy_is_wideport_member()
29 struct asd_sas_port *port = phy->port; in sas_resume_port() local
36 if (port->suspended) in sas_resume_port()
37 port->suspended = 0; in sas_resume_port()
43 /* if the port came back: in sas_resume_port()
47 list_for_each_entry_safe(dev, n, &port->dev_list, dev_list_node) { in sas_resume_port()
52 sas_unregister_dev(port, dev); in sas_resume_port()
[all …]
/linux/drivers/char/
H A Dvirtio_console.c44 /* Used for exporting per-port information to debugfs */
68 /* The hvc device associated with this console port */
155 /* Array of per-port IO virtqueues */
166 /* This struct holds the per-port data */
167 struct port { struct
168 /* Next port in the list, head is in the ports_device */
179 * port. Has to be a spinlock because it can be called from argument
187 /* The IO vqs for this port */ argument
190 /* File in the debugfs directory that exposes this port's information */ argument
195 * this port for accounting and debugging purposes. These argument
[all …]
/linux/drivers/tty/serial/
H A Dmilbeaut_usio.c65 static void mlb_usio_stop_tx(struct uart_port *port) in mlb_usio_stop_tx() argument
67 writew(readw(port->membase + MLB_USIO_REG_FCR) & ~MLB_USIO_FCR_FTIE, in mlb_usio_stop_tx()
68 port->membase + MLB_USIO_REG_FCR); in mlb_usio_stop_tx()
69 writeb(readb(port->membase + MLB_USIO_REG_SCR) & ~MLB_USIO_SCR_TBIE, in mlb_usio_stop_tx()
70 port->membase + MLB_USIO_REG_SCR); in mlb_usio_stop_tx()
73 static void mlb_usio_tx_chars(struct uart_port *port) in mlb_usio_tx_chars() argument
75 struct tty_port *tport = &port->state->port; in mlb_usio_tx_chars()
78 writew(readw(port->membase + MLB_USIO_REG_FCR) & ~MLB_USIO_FCR_FTIE, in mlb_usio_tx_chars()
79 port->membase + MLB_USIO_REG_FCR); in mlb_usio_tx_chars()
80 writeb(readb(port->membase + MLB_USIO_REG_SCR) & in mlb_usio_tx_chars()
[all …]
H A Dtimbuart.c25 struct uart_port port; member
35 static void timbuart_mctrl_check(struct uart_port *port, u32 isr, u32 *ier);
39 static void timbuart_stop_rx(struct uart_port *port) in timbuart_stop_rx() argument
42 u32 ier = ioread32(port->membase + TIMBUART_IER) & ~RXFLAGS; in timbuart_stop_rx()
43 iowrite32(ier, port->membase + TIMBUART_IER); in timbuart_stop_rx()
46 static void timbuart_stop_tx(struct uart_port *port) in timbuart_stop_tx() argument
49 u32 ier = ioread32(port->membase + TIMBUART_IER) & ~TXBAE; in timbuart_stop_tx()
50 iowrite32(ier, port->membase + TIMBUART_IER); in timbuart_stop_tx()
53 static void timbuart_start_tx(struct uart_port *port) in timbuart_start_tx() argument
56 container_of(port, struct timbuart_port, port); in timbuart_start_tx()
[all …]
H A Dbcm63xx_uart.c73 static inline unsigned int bcm_uart_readl(struct uart_port *port, in bcm_uart_readl() argument
76 return __raw_readl(port->membase + offset); in bcm_uart_readl()
79 static inline void bcm_uart_writel(struct uart_port *port, in bcm_uart_writel() argument
82 __raw_writel(value, port->membase + offset); in bcm_uart_writel()
88 static unsigned int bcm_uart_tx_empty(struct uart_port *port) in bcm_uart_tx_empty() argument
92 val = bcm_uart_readl(port, UART_IR_REG); in bcm_uart_tx_empty()
99 static void bcm_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in bcm_uart_set_mctrl() argument
103 val = bcm_uart_readl(port, UART_MCTL_REG); in bcm_uart_set_mctrl()
110 bcm_uart_writel(port, val, UART_MCTL_REG); in bcm_uart_set_mctrl()
112 val = bcm_uart_readl(port, UART_CTL_REG); in bcm_uart_set_mctrl()
[all …]
H A Dmeson_uart.c89 static void meson_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in meson_uart_set_mctrl() argument
93 static unsigned int meson_uart_get_mctrl(struct uart_port *port) in meson_uart_get_mctrl() argument
98 static unsigned int meson_uart_tx_empty(struct uart_port *port) in meson_uart_tx_empty() argument
102 val = readl(port->membase + AML_UART_STATUS); in meson_uart_tx_empty()
107 static void meson_uart_stop_tx(struct uart_port *port) in meson_uart_stop_tx() argument
111 val = readl(port->membase + AML_UART_CONTROL); in meson_uart_stop_tx()
113 writel(val, port->membase + AML_UART_CONTROL); in meson_uart_stop_tx()
116 static void meson_uart_stop_rx(struct uart_port *port) in meson_uart_stop_rx() argument
120 val = readl(port->membase + AML_UART_CONTROL); in meson_uart_stop_rx()
122 writel(val, port->membase + AML_UART_CONTROL); in meson_uart_stop_rx()
[all …]
H A Daltera_uart.c77 struct uart_port port; member
83 static u32 altera_uart_readl(struct uart_port *port, int reg) in altera_uart_readl() argument
85 return readl(port->membase + (reg << port->regshift)); in altera_uart_readl()
88 static void altera_uart_writel(struct uart_port *port, u32 dat, int reg) in altera_uart_writel() argument
90 writel(dat, port->membase + (reg << port->regshift)); in altera_uart_writel()
93 static unsigned int altera_uart_tx_empty(struct uart_port *port) in altera_uart_tx_empty() argument
95 return (altera_uart_readl(port, ALTERA_UART_STATUS_REG) & in altera_uart_tx_empty()
99 static unsigned int altera_uart_get_mctrl(struct uart_port *port) in altera_uart_get_mctrl() argument
101 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_get_mctrl()
104 sigs = (altera_uart_readl(port, ALTERA_UART_STATUS_REG) & in altera_uart_get_mctrl()
[all …]
H A Drda-uart.c117 struct uart_port port; member
121 #define to_rda_uart_port(port) container_of(port, struct rda_uart_port, port) argument
125 static inline void rda_uart_write(struct uart_port *port, u32 val, in rda_uart_write() argument
128 writel(val, port->membase + off); in rda_uart_write()
131 static inline u32 rda_uart_read(struct uart_port *port, unsigned int off) in rda_uart_read() argument
133 return readl(port->membase + off); in rda_uart_read()
136 static unsigned int rda_uart_tx_empty(struct uart_port *port) in rda_uart_tx_empty() argument
142 uart_port_lock_irqsave(port, &flags); in rda_uart_tx_empty()
144 val = rda_uart_read(port, RDA_UART_STATUS); in rda_uart_tx_empty()
147 uart_port_unlock_irqrestore(port, flags); in rda_uart_tx_empty()
[all …]
H A Desp32_acm.c48 static void esp32s3_acm_write(struct uart_port *port, unsigned long reg, u32 v) in esp32s3_acm_write() argument
50 writel(v, port->membase + reg); in esp32s3_acm_write()
53 static u32 esp32s3_acm_read(struct uart_port *port, unsigned long reg) in esp32s3_acm_read() argument
55 return readl(port->membase + reg); in esp32s3_acm_read()
58 static u32 esp32s3_acm_tx_fifo_free(struct uart_port *port) in esp32s3_acm_tx_fifo_free() argument
60 u32 status = esp32s3_acm_read(port, USB_SERIAL_JTAG_EP1_CONF_REG); in esp32s3_acm_tx_fifo_free()
65 static u32 esp32s3_acm_tx_fifo_cnt(struct uart_port *port) in esp32s3_acm_tx_fifo_cnt() argument
67 u32 status = esp32s3_acm_read(port, USB_SERIAL_JTAG_IN_EP1_ST_REG); in esp32s3_acm_tx_fifo_cnt()
72 static u32 esp32s3_acm_rx_fifo_cnt(struct uart_port *port) in esp32s3_acm_rx_fifo_cnt() argument
74 u32 status = esp32s3_acm_read(port, USB_SERIAL_JTAG_OUT_EP1_ST_REG); in esp32s3_acm_rx_fifo_cnt()
[all …]
H A Dsprd_serial.c131 struct uart_port port; member
144 static int sprd_start_dma_rx(struct uart_port *port);
145 static int sprd_tx_dma_config(struct uart_port *port);
159 static inline unsigned int serial_in(struct uart_port *port, in serial_in() argument
162 return readl_relaxed(port->membase + offset); in serial_in()
165 static inline void serial_out(struct uart_port *port, unsigned int offset, in serial_out() argument
168 writel_relaxed(value, port->membase + offset); in serial_out()
171 static unsigned int sprd_tx_empty(struct uart_port *port) in sprd_tx_empty() argument
173 if (serial_in(port, SPRD_STS1) & SPRD_TX_FIFO_CNT_MASK) in sprd_tx_empty()
179 static unsigned int sprd_get_mctrl(struct uart_port *port) in sprd_get_mctrl() argument
[all …]
H A Datmel_serial.c40 /* Revisit: We should calculate this based on the actual port settings */
57 static void atmel_start_rx(struct uart_port *port);
58 static void atmel_stop_rx(struct uart_port *port);
71 /* Use device name ttyS, major 4, minor 64-68. This is the usual serial port
104 * at91: 6 USARTs and one DBGU port (SAM9260)
110 * We wrap our port structure around the generic uart_port.
129 spinlock_t lock_tx; /* port lock */
130 spinlock_t lock_rx; /* port lock */
184 int (*prepare_rx)(struct uart_port *port);
185 int (*prepare_tx)(struct uart_port *port);
[all …]
H A Desp32_uart.c93 struct uart_port port; member
139 static const struct esp32_uart_variant *port_variant(struct uart_port *port) in port_variant() argument
141 return port->private_data; in port_variant()
144 static void esp32_uart_write(struct uart_port *port, unsigned long reg, u32 v) in esp32_uart_write() argument
146 writel(v, port->membase + reg); in esp32_uart_write()
149 static u32 esp32_uart_read(struct uart_port *port, unsigned long reg) in esp32_uart_read() argument
151 return readl(port->membase + reg); in esp32_uart_read()
154 static u32 esp32_uart_tx_fifo_cnt(struct uart_port *port) in esp32_uart_tx_fifo_cnt() argument
156 u32 status = esp32_uart_read(port, UART_STATUS_REG); in esp32_uart_tx_fifo_cnt()
158 return (status & port_variant(port)->txfifo_cnt_mask) >> UART_TXFIFO_CNT_SHIFT; in esp32_uart_tx_fifo_cnt()
[all …]
H A Dliteuart.c46 struct uart_port port; member
51 #define to_liteuart_port(port) container_of(port, struct liteuart_port, port) argument
71 static void liteuart_update_irq_reg(struct uart_port *port, bool set, u8 mask) in liteuart_update_irq_reg() argument
73 struct liteuart_port *uart = to_liteuart_port(port); in liteuart_update_irq_reg()
80 if (port->irq) in liteuart_update_irq_reg()
81 litex_write8(port->membase + OFF_EV_ENABLE, uart->irq_reg); in liteuart_update_irq_reg()
84 static void liteuart_stop_tx(struct uart_port *port) in liteuart_stop_tx() argument
86 liteuart_update_irq_reg(port, false, EV_TX); in liteuart_stop_tx()
89 static void liteuart_start_tx(struct uart_port *port) in liteuart_start_tx() argument
91 liteuart_update_irq_reg(port, true, EV_TX); in liteuart_start_tx()
[all …]
H A Ddigicolor-usart.c77 struct uart_port port; member
83 static bool digicolor_uart_tx_full(struct uart_port *port) in digicolor_uart_tx_full() argument
85 return !!(readb_relaxed(port->membase + UA_STATUS_FIFO) & in digicolor_uart_tx_full()
89 static bool digicolor_uart_rx_empty(struct uart_port *port) in digicolor_uart_rx_empty() argument
91 return !!(readb_relaxed(port->membase + UA_STATUS_FIFO) & in digicolor_uart_rx_empty()
95 static void digicolor_uart_stop_tx(struct uart_port *port) in digicolor_uart_stop_tx() argument
97 u8 int_enable = readb_relaxed(port->membase + UA_INT_ENABLE); in digicolor_uart_stop_tx()
100 writeb_relaxed(int_enable, port->membase + UA_INT_ENABLE); in digicolor_uart_stop_tx()
103 static void digicolor_uart_start_tx(struct uart_port *port) in digicolor_uart_start_tx() argument
105 u8 int_enable = readb_relaxed(port->membase + UA_INT_ENABLE); in digicolor_uart_start_tx()
[all …]
H A Dowl-uart.c76 struct uart_port port; member
84 static inline void owl_uart_write(struct uart_port *port, u32 val, unsigned int off) in owl_uart_write() argument
86 writel(val, port->membase + off); in owl_uart_write()
89 static inline u32 owl_uart_read(struct uart_port *port, unsigned int off) in owl_uart_read() argument
91 return readl(port->membase + off); in owl_uart_read()
94 static void owl_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in owl_uart_set_mctrl() argument
98 ctl = owl_uart_read(port, OWL_UART_CTL); in owl_uart_set_mctrl()
105 owl_uart_write(port, ctl, OWL_UART_CTL); in owl_uart_set_mctrl()
108 static unsigned int owl_uart_get_mctrl(struct uart_port *port) in owl_uart_get_mctrl() argument
113 ctl = owl_uart_read(port, OWL_UART_CTL); in owl_uart_get_mctrl()
[all …]
H A Dlpc32xx_hs.c88 struct uart_port port; member
97 static void wait_for_xmit_empty(struct uart_port *port) in wait_for_xmit_empty() argument
103 port->membase))) == 0) in wait_for_xmit_empty()
111 static void wait_for_xmit_ready(struct uart_port *port) in wait_for_xmit_ready() argument
117 port->membase))) < 32) in wait_for_xmit_ready()
125 static void lpc32xx_hsuart_console_putchar(struct uart_port *port, unsigned char ch) in lpc32xx_hsuart_console_putchar() argument
127 wait_for_xmit_ready(port); in lpc32xx_hsuart_console_putchar()
128 writel((u32)ch, LPC32XX_HSUART_FIFO(port->membase)); in lpc32xx_hsuart_console_putchar()
140 locked = uart_port_trylock_irqsave(&up->port, &flags); in lpc32xx_hsuart_console_write()
142 uart_port_lock_irqsave(&up->port, &flags); in lpc32xx_hsuart_console_write()
[all …]
/linux/drivers/tty/
H A Dvcc.c46 /* Microseconds that thread will delay waiting for a vcc port ref */
108 * vcc_table_add() - Add VCC port to the VCC table
109 * @port: pointer to the VCC port
111 * Return: index of the port in the VCC table on success,
114 static int vcc_table_add(struct vcc_port *port) in vcc_table_add() argument
122 vcc_table[i] = port; in vcc_table_add()
135 * vcc_table_remove() - Removes a VCC port from the VCC table
151 * vcc_get() - Gets a reference to VCC port
155 * Return: reference to the VCC port, if found
156 * NULL, if port not found
[all …]
/linux/drivers/usb/serial/
H A Dgeneric.c105 int usb_serial_generic_open(struct tty_struct *tty, struct usb_serial_port *port) in usb_serial_generic_open() argument
109 clear_bit(USB_SERIAL_THROTTLED, &port->flags); in usb_serial_generic_open()
111 if (port->bulk_in_size) in usb_serial_generic_open()
112 result = usb_serial_generic_submit_read_urbs(port, GFP_KERNEL); in usb_serial_generic_open()
118 void usb_serial_generic_close(struct usb_serial_port *port) in usb_serial_generic_close() argument
123 if (port->bulk_out_size) { in usb_serial_generic_close()
124 for (i = 0; i < ARRAY_SIZE(port->write_urbs); ++i) in usb_serial_generic_close()
125 usb_kill_urb(port->write_urbs[i]); in usb_serial_generic_close()
127 spin_lock_irqsave(&port->lock, flags); in usb_serial_generic_close()
128 kfifo_reset_out(&port->write_fifo); in usb_serial_generic_close()
[all …]
/linux/drivers/scsi/bfa/
H A Dbfa_port.c18 BFA_TRC_FILE(CNA, PORT);
21 bfa_port_stats_swap(struct bfa_port_s *port, union bfa_port_stats_u *stats) in bfa_port_stats_swap() argument
45 * @param[in] port - Pointer to the port module
51 bfa_port_enable_isr(struct bfa_port_s *port, bfa_status_t status) in bfa_port_enable_isr() argument
53 bfa_trc(port, status); in bfa_port_enable_isr()
54 port->endis_pending = BFA_FALSE; in bfa_port_enable_isr()
55 port->endis_cbfn(port->endis_cbarg, status); in bfa_port_enable_isr()
62 * @param[in] port - Pointer to the port module
68 bfa_port_disable_isr(struct bfa_port_s *port, bfa_status_t status) in bfa_port_disable_isr() argument
70 bfa_trc(port, status); in bfa_port_disable_isr()
[all …]
/linux/drivers/usb/gadget/function/
H A Du_serial.c3 * u_serial.c - utilities for USB gadget "serial port"/TTY support
39 * "serial port" functionality through the USB gadget stack. Each such
40 * port is exposed through a /dev/ttyGS* node.
42 * After this module has been loaded, the individual TTY port can be requested
46 * host issues a config change event. Data can only flow when the port is
49 * A given TTY port can be made available in multiple configurations.
56 * Configurations may expose more than one TTY port. For example, if
101 * The port structure holds info for each port, one for each minor number
105 struct tty_port port; member
129 bool suspended; /* port suspended */
[all …]
/linux/drivers/net/wan/
H A Dhd64572.c44 #define get_msci(port) ((port)->chan ? MSCI1_OFFSET : MSCI0_OFFSET) argument
45 #define get_dmac_rx(port) ((port)->chan ? DMAC1RX_OFFSET : DMAC0RX_OFFSET) argument
46 #define get_dmac_tx(port) ((port)->chan ? DMAC1TX_OFFSET : DMAC0TX_OFFSET) argument
62 static inline void enable_intr(port_t *port) in enable_intr() argument
65 sca_outl(sca_inl(IER0, port->card) | in enable_intr()
66 (port->chan ? 0x08002200 : 0x00080022), IER0, port->card); in enable_intr()
69 static inline void disable_intr(port_t *port) in disable_intr() argument
71 sca_outl(sca_inl(IER0, port->card) & in disable_intr()
72 (port->chan ? 0x00FF00FF : 0xFF00FF00), IER0, port->card); in disable_intr()
75 static inline u16 desc_abs_number(port_t *port, u16 desc, int transmit) in desc_abs_number() argument
[all …]
/linux/drivers/pci/controller/
H A Dpcie-xilinx-dma-pl.c62 /* Root Port Error Register definitions */
67 /* Root Port Interrupt Register definitions */
70 /* Root Port Status/control Register definitions */
102 * struct pl_dma_pcie - PCIe port information
133 static inline u32 pcie_read(struct pl_dma_pcie *port, u32 reg) in pcie_read() argument
135 if (port->variant->version == QDMA) in pcie_read()
136 return readl(port->reg_base + reg + QDMA_BRIDGE_BASE_OFF); in pcie_read()
138 return readl(port->reg_base + reg); in pcie_read()
141 static inline void pcie_write(struct pl_dma_pcie *port, u32 val, u32 reg) in pcie_write() argument
143 if (port->variant->version == QDMA) in pcie_write()
[all …]
/linux/drivers/parport/
H A Dieee1284_ops.c7 * the function pointers in port->ops); if not, they can just use these
35 size_t parport_ieee1284_write_compat (struct parport *port, in parport_ieee1284_write_compat() argument
43 struct pardevice *dev = port->physport->cad; in parport_ieee1284_write_compat()
47 if (port->irq != PARPORT_IRQ_NONE) { in parport_ieee1284_write_compat()
48 parport_enable_irq (port); in parport_ieee1284_write_compat()
52 port->physport->ieee1284.phase = IEEE1284_PH_FWD_DATA; in parport_ieee1284_write_compat()
53 parport_write_control (port, ctl); in parport_ieee1284_write_compat()
54 parport_data_forward (port); in parport_ieee1284_write_compat()
66 if (!parport_wait_peripheral (port, mask, val)) in parport_ieee1284_write_compat()
71 if ((parport_read_status (port) & in parport_ieee1284_write_compat()
[all …]

12345678910>>...208