| /linux/drivers/usb/typec/tcpm/ |
| H A D | tcpm.c | 309 * @min_volt: Actual min voltage at the local port 310 * @req_min_volt: Requested min voltage to the port partner 311 * @max_volt: Actual max voltage at the local port 312 * @req_max_volt: Requested max voltage to the port partner 313 * @max_curr: Actual max current at the local port 314 * @req_max_curr: Requested max current of the port partner 315 * @req_out_volt: Requested output voltage to the port partner 316 * @req_op_curr: Requested operating current to the port partner 351 * @req_op_curr_ma: Requested operating current to the port partner acting as source 352 * @req_out_volt_mv: Requested output voltage to the port partner acting as source [all …]
|
| /linux/drivers/net/bonding/ |
| H A 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| 95 static int ad_lacpdu_send(struct port *port); 96 static int ad_marker_send(struct port *port, struct bond_marker *marker); 97 static void ad_mux_machine(struct port *port, bool *update_slave_arr); 98 static void ad_rx_machine(struct lacpdu *lacpdu, struct port *port); 99 static void ad_tx_machine(struct port *port); 100 static void ad_periodic_machine(struct port *port); 101 static void ad_port_selection_logic(struct port *port, bool *update_slave_arr); [all …]
|
| /linux/drivers/mmc/core/ |
| H A 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 …]
|
| /linux/drivers/scsi/libsas/ |
| H A 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 …]
|
| /linux/drivers/tty/serial/ |
| H A 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 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 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 …]
|
| H A D | meson_uart.c | 89 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 D | altera_uart.c | 77 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 D | rda-uart.c | 117 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 D | liteuart.c | 46 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 D | digicolor-usart.c | 77 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 D | altera_jtaguart.c | 51 static unsigned int altera_jtaguart_tx_space(struct uart_port *port, u32 *ctlp) in altera_jtaguart_tx_space() argument 53 u32 ctl = readl(port->membase + ALTERA_JTAGUART_CONTROL_REG); in altera_jtaguart_tx_space() 61 static unsigned int altera_jtaguart_tx_empty(struct uart_port *port) in altera_jtaguart_tx_empty() argument 63 return altera_jtaguart_tx_space(port, NULL) ? TIOCSER_TEMT : 0; in altera_jtaguart_tx_empty() 66 static unsigned int altera_jtaguart_get_mctrl(struct uart_port *port) in altera_jtaguart_get_mctrl() argument 71 static void altera_jtaguart_set_mctrl(struct uart_port *port, unsigned int sigs) in altera_jtaguart_set_mctrl() argument 75 static void altera_jtaguart_start_tx(struct uart_port *port) in altera_jtaguart_start_tx() argument 77 port->read_status_mask |= ALTERA_JTAGUART_CONTROL_WE_MSK; in altera_jtaguart_start_tx() 78 writel(port->read_status_mask, in altera_jtaguart_start_tx() 79 port->membase + ALTERA_JTAGUART_CONTROL_REG); in altera_jtaguart_start_tx() [all …]
|
| H A D | owl-uart.c | 76 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 D | lpc32xx_hs.c | 88 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 D | vcc.c | 46 /* 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/scsi/bfa/ |
| H A D | bfa_port.c | 18 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 …]
|
| H A D | bfa_fcs_lport.c | 17 BFA_TRC_FILE(FCS, PORT); 47 static void bfa_fcs_lport_send_ls_rjt(struct bfa_fcs_lport_s *port, 50 static void bfa_fcs_lport_plogi(struct bfa_fcs_lport_s *port, 52 static void bfa_fcs_lport_online_actions(struct bfa_fcs_lport_s *port); 53 static void bfa_fcs_lport_offline_actions(struct bfa_fcs_lport_s *port); 54 static void bfa_fcs_lport_unknown_init(struct bfa_fcs_lport_s *port); 55 static void bfa_fcs_lport_unknown_online(struct bfa_fcs_lport_s *port); 56 static void bfa_fcs_lport_unknown_offline(struct bfa_fcs_lport_s *port); 57 static void bfa_fcs_lport_deleted(struct bfa_fcs_lport_s *port); 58 static void bfa_fcs_lport_echo(struct bfa_fcs_lport_s *port, [all …]
|
| /linux/drivers/char/ |
| H A D | virtio_console.c | 44 /* Used for exporting per-port information to debugfs */ 68 /* The hvc device associated with this console port */ 155 /* Array of per-port IO virtqueues */ 172 /* This struct holds the per-port data */ 173 struct port { struct 174 /* Next port in the list, head is in the ports_device */ 185 * port. Has to be a spinlock because it can be called from argument 193 /* The IO vqs for this port */ argument 196 /* File in the debugfs directory that exposes this port's information */ argument 201 * this port for accounting and debugging purposes. These argument [all …]
|
| /linux/drivers/net/wan/ |
| H A D | hd64572.c | 44 #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/net/phy/ |
| H A D | phy_port.c | 20 struct phy_port *port; in phy_port_alloc() local 22 port = kzalloc_obj(*port); in phy_port_alloc() 23 if (!port) in phy_port_alloc() 26 linkmode_zero(port->supported); in phy_port_alloc() 27 INIT_LIST_HEAD(&port->head); in phy_port_alloc() 29 return port; in phy_port_alloc() 35 * @port: The port to destroy 37 void phy_port_destroy(struct phy_port *port) in phy_port_destroy() argument 39 kfree(port); in phy_port_destroy() 45 * @dn: device_node representation of the port, following the [all …]
|
| /linux/drivers/media/pci/saa7164/ |
| H A D | saa7164-encoder.c | 36 /* Take the encoder configuration form the port struct and 39 static void saa7164_encoder_configure(struct saa7164_port *port) in saa7164_encoder_configure() argument 41 struct saa7164_dev *dev = port->dev; in saa7164_encoder_configure() 44 port->encoder_params.width = port->width; in saa7164_encoder_configure() 45 port->encoder_params.height = port->height; in saa7164_encoder_configure() 46 port->encoder_params.is_50hz = in saa7164_encoder_configure() 47 (port->encodernorm.id & V4L2_STD_625_50) != 0; in saa7164_encoder_configure() 50 saa7164_api_initialize_dif(port); in saa7164_encoder_configure() 53 saa7164_api_configure_dif(port, port->encodernorm.id); in saa7164_encoder_configure() 56 saa7164_api_set_audio_std(port); in saa7164_encoder_configure() [all …]
|
| /linux/drivers/pci/controller/ |
| H A D | pcie-xilinx-dma-pl.c | 62 /* 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 …]
|
| H A D | pcie-xilinx-cpm.c | 72 /* Root Port Error FIFO Read Register definitions */ 77 /* Root Port Status/control Register definitions */ 105 * struct xilinx_cpm_pcie - PCIe port information 130 static u32 pcie_read(struct xilinx_cpm_pcie *port, u32 reg) in pcie_read() argument 132 return readl_relaxed(port->reg_base + reg); in pcie_read() 135 static void pcie_write(struct xilinx_cpm_pcie *port, in pcie_write() argument 138 writel_relaxed(val, port->reg_base + reg); in pcie_write() 141 static bool cpm_pcie_link_up(struct xilinx_cpm_pcie *port) in cpm_pcie_link_up() argument 143 return (pcie_read(port, XILINX_CPM_PCIE_REG_PSCR) & in cpm_pcie_link_up() 147 static void cpm_pcie_clear_err_interrupts(struct xilinx_cpm_pcie *port) in cpm_pcie_clear_err_interrupts() argument [all …]
|
| /linux/drivers/parport/ |
| H A D | ieee1284_ops.c | 7 * 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 …]
|
| /linux/sound/core/seq/ |
| H A D | seq_ports.c | 24 NOTE: the current implementation of the port structure as a linked list is 26 subscribers of a port we first need to find the address of the port 36 dynamicly kmalloced. When a port is added or deleted we can simply allocate 43 /* return pointer to port structure - port is locked if found */ 47 struct snd_seq_client_port *port; in snd_seq_port_use_ptr() local 52 list_for_each_entry_rcu(port, &client->ports_list_head, list) { in snd_seq_port_use_ptr() 53 if (port->addr.port in snd_seq_port_use_ptr() 69 struct snd_seq_client_port *port, *found; snd_seq_port_query_nearest() local 114 snd_seq_create_port(struct snd_seq_client * client,int port,struct snd_seq_client_port ** port_ret) snd_seq_create_port() argument 206 clear_subscriber_list(struct snd_seq_client * client,struct snd_seq_client_port * port,struct snd_seq_port_subs_info * grp,int is_src) clear_subscriber_list() argument 241 port_delete(struct snd_seq_client * client,struct snd_seq_client_port * port) port_delete() argument 263 snd_seq_delete_port(struct snd_seq_client * client,int port) snd_seq_delete_port() argument 289 struct snd_seq_client_port *port, *tmp; snd_seq_delete_all_ports() local 315 snd_seq_set_port_info(struct snd_seq_client_port * port,struct snd_seq_port_info * info) snd_seq_set_port_info() argument 361 snd_seq_get_port_info(struct snd_seq_client_port * port,struct snd_seq_port_info * info) snd_seq_get_port_info() argument 417 subscribe_port(struct snd_seq_client * client,struct snd_seq_client_port * port,struct snd_seq_port_subs_info * grp,struct snd_seq_port_subscribe * info,int send_ack) subscribe_port() argument 442 unsubscribe_port(struct snd_seq_client * client,struct snd_seq_client_port * port,struct snd_seq_port_subs_info * grp,struct snd_seq_port_subscribe * info,int send_ack) unsubscribe_port() argument 485 check_and_subscribe_port(struct snd_seq_client * client,struct snd_seq_client_port * port,struct snd_seq_subscribers * subs,bool is_src,bool exclusive,bool ack) check_and_subscribe_port() argument 530 __delete_and_unsubscribe_port(struct snd_seq_client * client,struct snd_seq_client_port * port,struct snd_seq_subscribers * subs,bool is_src,bool ack) __delete_and_unsubscribe_port() argument 552 delete_and_unsubscribe_port(struct snd_seq_client * client,struct snd_seq_client_port * port,struct snd_seq_subscribers * subs,bool is_src,bool ack) delete_and_unsubscribe_port() argument 706 snd_seq_event_port_detach(int client,int port) snd_seq_event_port_detach() argument [all...] |