Home
last modified time | relevance | path

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

12345678910>>...251

/openbmc/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c275 * @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 …]
/openbmc/linux/drivers/tty/
H A Dtty_port.c3 * 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 …]
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 …]
/openbmc/linux/drivers/mmc/core/
H A Dsdio_uart.c22 * 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 …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/qemu/hw/net/rocker/
H A Drocker_fp.c44 char *fp_port_get_name(FpPort *port) in fp_port_get_name() argument
46 return port->name; in fp_port_get_name()
49 bool fp_port_get_link_up(FpPort *port) in fp_port_get_link_up() argument
51 return !qemu_get_queue(port->nic)->link_down; in fp_port_get_link_up()
54 RockerPort *fp_port_get_info(FpPort *port) in fp_port_get_info() argument
58 value->name = g_strdup(port->name); in fp_port_get_info()
59 value->enabled = port->enabled; in fp_port_get_info()
60 value->link_up = fp_port_get_link_up(port); in fp_port_get_info()
61 value->speed = port->speed; in fp_port_get_info()
62 value->duplex = port->duplex; in fp_port_get_info()
[all …]
/openbmc/linux/drivers/net/bonding/
H A Dbond_3ad.c34 /* 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 …]
/openbmc/linux/drivers/tty/serial/
H A Dmpc52xx_uart.c75 #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 …]
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 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 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 …]
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 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 spin_lock_irqsave(&port->lock, flags); in rda_uart_tx_empty()
144 val = rda_uart_read(port, RDA_UART_STATUS); in rda_uart_tx_empty()
147 spin_unlock_irqrestore(&port->lock, flags); in rda_uart_tx_empty()
[all …]
H A Dsprd_serial.c122 struct uart_port port; member
134 static int sprd_start_dma_rx(struct uart_port *port);
135 static int sprd_tx_dma_config(struct uart_port *port);
137 static inline unsigned int serial_in(struct uart_port *port, in serial_in() argument
140 return readl_relaxed(port->membase + offset); in serial_in()
143 static inline void serial_out(struct uart_port *port, unsigned int offset, in serial_out() argument
146 writel_relaxed(value, port->membase + offset); in serial_out()
149 static unsigned int sprd_tx_empty(struct uart_port *port) in sprd_tx_empty() argument
151 if (serial_in(port, SPRD_STS1) & SPRD_TX_FIFO_CNT_MASK) in sprd_tx_empty()
157 static unsigned int sprd_get_mctrl(struct uart_port *port) in sprd_get_mctrl() argument
[all …]
H A Damba-pl010.c49 * We wrap our port structure around the generic uart_port.
52 struct uart_port port; member
59 static void pl010_stop_tx(struct uart_port *port) in pl010_stop_tx() argument
62 container_of(port, struct uart_amba_port, port); in pl010_stop_tx()
65 cr = readb(uap->port.membase + UART010_CR); in pl010_stop_tx()
67 writel(cr, uap->port.membase + UART010_CR); in pl010_stop_tx()
70 static void pl010_start_tx(struct uart_port *port) in pl010_start_tx() argument
73 container_of(port, struct uart_amba_port, port); in pl010_start_tx()
76 cr = readb(uap->port.membase + UART010_CR); in pl010_start_tx()
78 writel(cr, uap->port.membase + UART010_CR); in pl010_start_tx()
[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 …]
/openbmc/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 …]
/openbmc/linux/drivers/tty/serial/8250/
H A D8250_core.c122 struct uart_port *port; in serial8250_interrupt() local
125 port = &up->port; in serial8250_interrupt()
127 if (port->handle_irq(port)) { in serial8250_interrupt()
181 h = &irq_lists[up->port.irq % NR_IRQ_HASH]; in serial_link_irq_chain()
184 if (i->irq == up->port.irq) in serial_link_irq_chain()
194 i->irq = up->port.irq; in serial_link_irq_chain()
210 ret = request_irq(up->port.irq, serial8250_interrupt, in serial_link_irq_chain()
211 up->port.irqflags, up->port.name, i); in serial_link_irq_chain()
226 h = &irq_lists[up->port.irq % NR_IRQ_HASH]; in serial_unlink_irq_chain()
229 if (i->irq == up->port.irq) in serial_unlink_irq_chain()
[all …]
/openbmc/linux/drivers/gpio/
H A Dgpio-mxc.c123 #define GPIO_DR (port->hwdata->dr_reg)
124 #define GPIO_GDIR (port->hwdata->gdir_reg)
125 #define GPIO_PSR (port->hwdata->psr_reg)
126 #define GPIO_ICR1 (port->hwdata->icr1_reg)
127 #define GPIO_ICR2 (port->hwdata->icr2_reg)
128 #define GPIO_IMR (port->hwdata->imr_reg)
129 #define GPIO_ISR (port->hwdata->isr_reg)
130 #define GPIO_EDGE_SEL (port->hwdata->edge_sel_reg)
132 #define GPIO_INT_LOW_LEV (port->hwdata->low_level)
133 #define GPIO_INT_HIGH_LEV (port->hwdata->high_level)
[all …]
/openbmc/u-boot/arch/x86/include/asm/arch-quark/
H A Dmsg_port.h38 * msg_port_setup - set up the message port control register
41 * @port: port number on the message bus
42 * @reg: register number within a port
44 void msg_port_setup(int op, int port, int reg);
47 * msg_port_read - read a message port register using normal opcode
49 * @port: port number on the message bus
50 * @reg: register number within a port
52 * @return: message port register value
54 u32 msg_port_read(u8 port, u32 reg);
57 * msg_port_write - write a message port register using normal opcode
[all …]
/openbmc/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 …]
/openbmc/linux/drivers/usb/serial/
H A Dgeneric.c106 int usb_serial_generic_open(struct tty_struct *tty, struct usb_serial_port *port) in usb_serial_generic_open() argument
110 clear_bit(USB_SERIAL_THROTTLED, &port->flags); in usb_serial_generic_open()
112 if (port->bulk_in_size) in usb_serial_generic_open()
113 result = usb_serial_generic_submit_read_urbs(port, GFP_KERNEL); in usb_serial_generic_open()
119 void usb_serial_generic_close(struct usb_serial_port *port) in usb_serial_generic_close() argument
124 if (port->bulk_out_size) { in usb_serial_generic_close()
125 for (i = 0; i < ARRAY_SIZE(port->write_urbs); ++i) in usb_serial_generic_close()
126 usb_kill_urb(port->write_urbs[i]); in usb_serial_generic_close()
128 spin_lock_irqsave(&port->lock, flags); in usb_serial_generic_close()
129 kfifo_reset_out(&port->write_fifo); in usb_serial_generic_close()
[all …]
/openbmc/linux/drivers/usb/gadget/function/
H A Du_serial.c3 * u_serial.c - utilities for USB gadget "serial port"/TTY support
37 * "serial port" functionality through the USB gadget stack. Each such
38 * port is exposed through a /dev/ttyGS* node.
40 * After this module has been loaded, the individual TTY port can be requested
44 * host issues a config change event. Data can only flow when the port is
47 * A given TTY port can be made available in multiple configurations.
54 * Configurations may expose more than one TTY port. For example, if
99 * The port structure holds info for each port, one for each minor number
103 struct tty_port port; member
127 bool suspended; /* port suspended */
[all …]
/openbmc/linux/drivers/char/
H A Dvirtio_console.c43 /* Used for exporting per-port information to debugfs */
67 /* The hvc device associated with this console port */
154 /* Array of per-port IO virtqueues */
165 /* This struct holds the per-port data */
166 struct port { struct
167 /* Next port in the list, head is in the ports_device */
178 * port. Has to be a spinlock because it can be called from argument
186 /* The IO vqs for this port */ argument
189 /* File in the debugfs directory that exposes this port's information */ argument
194 * this port for accounting and debugging purposes. These argument
[all …]

12345678910>>...251