| /kernel/linux/linux-6.6/drivers/usb/typec/tcpm/ |
| D | tcpm.c | 275 * @min_volt: Actual min voltage at the local port 276 * @req_min_volt: Requested min voltage to the port partner 277 * @max_volt: Actual max voltage at the local port 278 * @req_max_volt: Requested max voltage to the port partner 279 * @max_curr: Actual max current at the local port 280 * @req_max_curr: Requested max current of the port partner 281 * @req_out_volt: Requested output voltage to the port partner 282 * @req_op_curr: Requested operating current to the port partner 427 /* Requested current / voltage to the port partner */ 430 /* Actual current / voltage limit of the local port */ [all …]
|
| /kernel/linux/linux-5.10/drivers/usb/typec/tcpm/ |
| D | tcpm.c | 222 * @min_volt: Actual min voltage at the local port 223 * @req_min_volt: Requested min voltage to the port partner 224 * @max_volt: Actual max voltage at the local port 225 * @req_max_volt: Requested max voltage to the port partner 226 * @max_curr: Actual max current at the local port 227 * @req_max_curr: Requested max current of the port partner 228 * @req_out_volt: Requested output voltage to the port partner 229 * @req_op_curr: Requested operating current to the port partner 344 /* Requested current / voltage to the port partner */ 347 /* Actual current / voltage limit of the local port */ [all …]
|
| /kernel/linux/linux-5.10/drivers/tty/serial/ |
| D | vr41xx_siu.c | 55 #define siu_read(port, offset) readb((port)->membase + (offset)) argument 56 #define siu_write(port, offset, value) writeb((value), (port)->membase + (offset)) argument 60 struct uart_port *port; in vr41xx_select_siu_interface() local 64 port = &siu_uart_ports[0]; in vr41xx_select_siu_interface() 66 spin_lock_irqsave(&port->lock, flags); in vr41xx_select_siu_interface() 68 irsel = siu_read(port, SIUIRSEL); in vr41xx_select_siu_interface() 73 siu_write(port, SIUIRSEL, irsel); in vr41xx_select_siu_interface() 75 spin_unlock_irqrestore(&port->lock, flags); in vr41xx_select_siu_interface() 81 struct uart_port *port; in vr41xx_use_irda() local 85 port = &siu_uart_ports[0]; in vr41xx_use_irda() [all …]
|
| D | mvebu-uart.c | 108 /* Driver data, a structure for each UART port */ 128 struct uart_port *port; member 138 static struct mvebu_uart *to_mvuart(struct uart_port *port) in to_mvuart() argument 140 return (struct mvebu_uart *)port->private_data; in to_mvuart() 143 #define IS_EXTENDED(port) (to_mvuart(port)->data->is_ext) argument 145 #define UART_RBR(port) (to_mvuart(port)->data->regs.rbr) argument 146 #define UART_TSH(port) (to_mvuart(port)->data->regs.tsh) argument 147 #define UART_CTRL(port) (to_mvuart(port)->data->regs.ctrl) argument 148 #define UART_INTR(port) (to_mvuart(port)->data->regs.intr) argument 150 #define CTRL_TX_RDY_INT(port) (to_mvuart(port)->data->flags.ctrl_tx_rdy_int) argument [all …]
|
| D | timbuart.c | 25 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 …]
|
| D | milbeaut_usio.c | 65 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 circ_buf *xmit = &port->state->xmit; 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 …]
|
| D | bcm63xx_uart.c | 73 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 …]
|
| D | meson_uart.c | 83 static void meson_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in meson_uart_set_mctrl() argument 87 static unsigned int meson_uart_get_mctrl(struct uart_port *port) in meson_uart_get_mctrl() argument 92 static unsigned int meson_uart_tx_empty(struct uart_port *port) in meson_uart_tx_empty() argument 96 val = readl(port->membase + AML_UART_STATUS); in meson_uart_tx_empty() 101 static void meson_uart_stop_tx(struct uart_port *port) in meson_uart_stop_tx() argument 105 val = readl(port->membase + AML_UART_CONTROL); in meson_uart_stop_tx() 107 writel(val, port->membase + AML_UART_CONTROL); in meson_uart_stop_tx() 110 static void meson_uart_stop_rx(struct uart_port *port) in meson_uart_stop_rx() argument 114 val = readl(port->membase + AML_UART_CONTROL); in meson_uart_stop_rx() 116 writel(val, port->membase + AML_UART_CONTROL); in meson_uart_stop_rx() [all …]
|
| D | mpc52xx_uart.c | 73 #define PSC(port) ((struct mpc52xx_psc __iomem *)((port)->membase)) argument 78 static irqreturn_t mpc5xxx_uart_process_int(struct uart_port *port); 85 void (*fifo_init)(struct uart_port *port); 86 int (*raw_rx_rdy)(struct uart_port *port); 87 int (*raw_tx_rdy)(struct uart_port *port); 88 int (*rx_rdy)(struct uart_port *port); 89 int (*tx_rdy)(struct uart_port *port); 90 int (*tx_empty)(struct uart_port *port); 91 void (*stop_rx)(struct uart_port *port); 92 void (*start_tx)(struct uart_port *port); [all …]
|
| /kernel/linux/linux-6.6/drivers/tty/ |
| D | tty_port.c | 3 * Tty port functions 23 static size_t tty_port_default_receive_buf(struct tty_port *port, const u8 *p, in tty_port_default_receive_buf() argument 29 tty = READ_ONCE(port->itty); in tty_port_default_receive_buf() 44 static void tty_port_default_lookahead_buf(struct tty_port *port, const u8 *p, in tty_port_default_lookahead_buf() argument 50 tty = READ_ONCE(port->itty); in tty_port_default_lookahead_buf() 64 static void tty_port_default_wakeup(struct tty_port *port) in tty_port_default_wakeup() argument 66 struct tty_struct *tty = tty_port_tty_get(port); in tty_port_default_wakeup() 83 * @port: tty_port to initialize 85 * Initializes the state of struct tty_port. When a port was initialized using 86 * this function, one has to destroy the port by tty_port_destroy(). Either [all …]
|
| /kernel/linux/linux-5.10/drivers/net/bonding/ |
| D | bond_3ad.c | 34 /* Port Variables definitions used by the State Machines (43.4.7 in the 49 /* Port Key definitions 53 * Port key | User key (10 bits) | Speed (5 bits) | Duplex| 93 static int ad_lacpdu_send(struct port *port); 94 static int ad_marker_send(struct port *port, struct bond_marker *marker); 95 static void ad_mux_machine(struct port *port, bool *update_slave_arr); 96 static void ad_rx_machine(struct lacpdu *lacpdu, struct port *port); 97 static void ad_tx_machine(struct port *port); 98 static void ad_periodic_machine(struct port *port); 99 static void ad_port_selection_logic(struct port *port, bool *update_slave_arr); [all …]
|
| /kernel/linux/linux-5.10/drivers/tty/ |
| D | tty_port.c | 3 * Tty port functions 23 static int tty_port_default_receive_buf(struct tty_port *port, in tty_port_default_receive_buf() argument 31 tty = READ_ONCE(port->itty); in tty_port_default_receive_buf() 46 static void tty_port_default_wakeup(struct tty_port *port) in tty_port_default_wakeup() argument 48 struct tty_struct *tty = tty_port_tty_get(port); in tty_port_default_wakeup() 62 void tty_port_init(struct tty_port *port) in tty_port_init() argument 64 memset(port, 0, sizeof(*port)); in tty_port_init() 65 tty_buffer_init(port); in tty_port_init() 66 init_waitqueue_head(&port->open_wait); in tty_port_init() 67 init_waitqueue_head(&port->delta_msr_wait); in tty_port_init() [all …]
|
| D | vcc.c | 52 /* Microseconds that thread will delay waiting for a vcc port ref */ 116 * vcc_table_add() - Add VCC port to the VCC table 117 * @port: pointer to the VCC port 119 * Return: index of the port in the VCC table on success, 122 static int vcc_table_add(struct vcc_port *port) in vcc_table_add() argument 130 vcc_table[i] = port; in vcc_table_add() 143 * vcc_table_remove() - Removes a VCC port from the VCC table 159 * vcc_get() - Gets a reference to VCC port 163 * Return: reference to the VCC port, if found 164 * NULL, if port not found [all …]
|
| /kernel/linux/linux-6.6/drivers/mmc/core/ |
| D | sdio_uart.c | 22 * concurrent access to the same port. 65 struct tty_port port; member 87 static int sdio_uart_add_port(struct sdio_uart_port *port) in sdio_uart_add_port() argument 91 mutex_init(&port->func_lock); in sdio_uart_add_port() 92 spin_lock_init(&port->write_lock); in sdio_uart_add_port() 93 if (kfifo_alloc(&port->xmit_fifo, FIFO_SIZE, GFP_KERNEL)) in sdio_uart_add_port() 99 port->index = index; in sdio_uart_add_port() 100 sdio_uart_table[index] = port; in sdio_uart_add_port() 112 struct sdio_uart_port *port; in sdio_uart_port_get() local 118 port = sdio_uart_table[index]; in sdio_uart_port_get() [all …]
|
| /kernel/linux/linux-5.10/drivers/mmc/core/ |
| D | sdio_uart.c | 22 * concurrent access to the same port. 64 struct tty_port port; member 86 static int sdio_uart_add_port(struct sdio_uart_port *port) in sdio_uart_add_port() argument 90 mutex_init(&port->func_lock); in sdio_uart_add_port() 91 spin_lock_init(&port->write_lock); in sdio_uart_add_port() 92 if (kfifo_alloc(&port->xmit_fifo, FIFO_SIZE, GFP_KERNEL)) in sdio_uart_add_port() 98 port->index = index; in sdio_uart_add_port() 99 sdio_uart_table[index] = port; in sdio_uart_add_port() 111 struct sdio_uart_port *port; in sdio_uart_port_get() local 117 port = sdio_uart_table[index]; in sdio_uart_port_get() [all …]
|
| /kernel/linux/linux-6.6/drivers/scsi/libsas/ |
| D | sas_port.c | 3 * 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 …]
|
| /kernel/linux/linux-5.10/drivers/scsi/libsas/ |
| D | sas_port.c | 3 * 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/bonding/ |
| D | bond_3ad.c | 34 /* Port Variables definitions used by the State Machines (43.4.7 in the 49 /* Port Key definitions 53 * Port key | User key (10 bits) | Speed (5 bits) | Duplex| 97 static int ad_lacpdu_send(struct port *port); 98 static int ad_marker_send(struct port *port, struct bond_marker *marker); 99 static void ad_mux_machine(struct port *port, bool *update_slave_arr); 100 static void ad_rx_machine(struct lacpdu *lacpdu, struct port *port); 101 static void ad_tx_machine(struct port *port); 102 static void ad_periodic_machine(struct port *port, struct bond_params *bond_params); 103 static void ad_port_selection_logic(struct port *port, bool *update_slave_arr); [all …]
|
| /kernel/linux/linux-6.6/drivers/usb/host/ |
| D | xhci-dbgtty.c | 28 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 …]
|
| /kernel/linux/linux-5.10/drivers/usb/host/ |
| D | xhci-dbgtty.c | 28 dbc_send_packet(struct dbc_port *port, char *packet, unsigned int size) in dbc_send_packet() argument 32 len = kfifo_len(&port->write_fifo); in dbc_send_packet() 36 size = kfifo_out(&port->write_fifo, packet, size); in dbc_send_packet() 40 static int dbc_start_tx(struct dbc_port *port) in dbc_start_tx() argument 41 __releases(&port->port_lock) in dbc_start_tx() 42 __acquires(&port->port_lock) in dbc_start_tx() 48 struct list_head *pool = &port->write_pool; in dbc_start_tx() 52 len = dbc_send_packet(port, req->buf, DBC_MAX_PACKET); in dbc_start_tx() 60 spin_unlock(&port->port_lock); in dbc_start_tx() 62 spin_lock(&port->port_lock); in dbc_start_tx() [all …]
|
| /kernel/linux/linux-6.6/drivers/tty/serial/ |
| D | mpc52xx_uart.c | 75 #define PSC(port) ((struct mpc52xx_psc __iomem *)((port)->membase)) argument 80 static irqreturn_t mpc5xxx_uart_process_int(struct uart_port *port); 87 void (*fifo_init)(struct uart_port *port); 88 unsigned int (*raw_rx_rdy)(struct uart_port *port); 89 unsigned int (*raw_tx_rdy)(struct uart_port *port); 90 unsigned int (*rx_rdy)(struct uart_port *port); 91 unsigned int (*tx_rdy)(struct uart_port *port); 92 unsigned int (*tx_empty)(struct uart_port *port); 93 void (*stop_rx)(struct uart_port *port); 94 void (*start_tx)(struct uart_port *port); [all …]
|
| D | timbuart.c | 25 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 …]
|
| D | milbeaut_usio.c | 65 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 circ_buf *xmit = &port->state->xmit; 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 …]
|
| D | bcm63xx_uart.c | 73 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 …]
|
| /kernel/linux/linux-5.10/drivers/tty/serial/8250/ |
| D | 8250_core.c | 122 struct uart_port *port; in serial8250_interrupt() local 125 port = &up->port; in serial8250_interrupt() 127 if (port->handle_irq(port)) { in serial8250_interrupt() 182 h = &irq_lists[up->port.irq % NR_IRQ_HASH]; in serial_link_irq_chain() 186 if (i->irq == up->port.irq) in serial_link_irq_chain() 197 i->irq = up->port.irq; in serial_link_irq_chain() 213 ret = request_irq(up->port.irq, serial8250_interrupt, in serial_link_irq_chain() 214 up->port.irqflags, up->port.name, i); in serial_link_irq_chain() 234 h = &irq_lists[up->port.irq % NR_IRQ_HASH]; in serial_unlink_irq_chain() 238 if (i->irq == up->port.irq) in serial_unlink_irq_chain() [all …]
|