Home
last modified time | relevance | path

Searched refs:port_priv (Results 1 – 17 of 17) sorted by relevance

/Linux-v5.4/drivers/staging/fsl-dpaa2/ethsw/
Dethsw.c48 static int ethsw_port_set_pvid(struct ethsw_port_priv *port_priv, u16 pvid) in ethsw_port_set_pvid() argument
50 struct ethsw_core *ethsw = port_priv->ethsw_data; in ethsw_port_set_pvid()
51 struct net_device *netdev = port_priv->netdev; in ethsw_port_set_pvid()
57 port_priv->idx, &tci_cfg); in ethsw_port_set_pvid()
70 port_priv->idx); in ethsw_port_set_pvid()
78 port_priv->idx, &tci_cfg); in ethsw_port_set_pvid()
85 port_priv->vlans[port_priv->pvid] &= ~ETHSW_VLAN_PVID; in ethsw_port_set_pvid()
86 port_priv->vlans[pvid] |= ETHSW_VLAN_PVID; in ethsw_port_set_pvid()
87 port_priv->pvid = pvid; in ethsw_port_set_pvid()
93 port_priv->idx); in ethsw_port_set_pvid()
[all …]
Dethsw-ethtool.c35 struct ethsw_port_priv *port_priv = netdev_priv(netdev); in ethsw_get_drvinfo() local
41 err = dpsw_get_api_version(port_priv->ethsw_data->mc_io, 0, in ethsw_get_drvinfo()
59 struct ethsw_port_priv *port_priv = netdev_priv(netdev); in ethsw_get_link_ksettings() local
63 err = dpsw_if_get_link_state(port_priv->ethsw_data->mc_io, 0, in ethsw_get_link_ksettings()
64 port_priv->ethsw_data->dpsw_handle, in ethsw_get_link_ksettings()
65 port_priv->idx, in ethsw_get_link_ksettings()
90 struct ethsw_port_priv *port_priv = netdev_priv(netdev); in ethsw_set_link_ksettings() local
91 struct ethsw_core *ethsw = port_priv->ethsw_data; in ethsw_set_link_ksettings()
101 port_priv->idx); in ethsw_set_link_ksettings()
118 err = dpsw_if_set_link_cfg(port_priv->ethsw_data->mc_io, 0, in ethsw_set_link_ksettings()
[all …]
/Linux-v5.4/drivers/infiniband/core/
Dagent.c85 struct ib_agent_port_private *port_priv; in agent_send_response() local
92 port_priv = ib_get_agent_port(device, 0); in agent_send_response()
94 port_priv = ib_get_agent_port(device, port_num); in agent_send_response()
96 if (!port_priv) { in agent_send_response()
101 agent = port_priv->agent[qpn]; in agent_send_response()
152 struct ib_agent_port_private *port_priv; in ib_agent_port_open() local
157 port_priv = kzalloc(sizeof *port_priv, GFP_KERNEL); in ib_agent_port_open()
158 if (!port_priv) { in ib_agent_port_open()
165 port_priv->agent[0] = ib_register_mad_agent(device, port_num, in ib_agent_port_open()
169 if (IS_ERR(port_priv->agent[0])) { in ib_agent_port_open()
[all …]
Dmad.c63 struct ib_device *dev = qp_info->port_priv->device; in create_mad_addr_info()
64 u8 pnum = qp_info->port_priv->port_num; in create_mad_addr_info()
101 struct ib_mad_port_private *port_priv,
113 static bool ib_mad_send_error(struct ib_mad_port_private *port_priv,
235 struct ib_mad_port_private *port_priv; in ib_register_mad_agent() local
354 port_priv = ib_get_mad_port(device, port_num); in ib_register_mad_agent()
355 if (!port_priv) { in ib_register_mad_agent()
365 if (!port_priv->qp_info[qpn].qp) { in ib_register_mad_agent()
388 mad_agent_priv->qp_info = &port_priv->qp_info[qpn]; in ib_register_mad_agent()
395 mad_agent_priv->agent.qp = port_priv->qp_info[qpn].qp; in ib_register_mad_agent()
[all …]
Dmad_rmpp.c106 flush_workqueue(agent->qp_info->port_priv->wq); in ib_cancel_rmpp_recvs()
440 bool opa = rdma_cap_opa_mad(rmpp_recv->agent->qp_info->port_priv->device, in get_mad_len()
441 rmpp_recv->agent->qp_info->port_priv->port_num); in get_mad_len()
472 queue_delayed_work(rmpp_recv->agent->qp_info->port_priv->wq, in complete_rmpp()
565 queue_delayed_work(agent->qp_info->port_priv->wq, in start_rmpp()
Dmad_priv.h188 struct ib_mad_port_private *port_priv; member
/Linux-v5.4/drivers/usb/serial/
Dquatech2.c215 static inline int update_mctrl(struct qt2_port_private *port_priv, in update_mctrl() argument
218 struct usb_serial_port *port = port_priv->port; in update_mctrl()
236 status = qt2_setregister(dev, port_priv->device_port, UART_MCR, in update_mctrl()
268 struct qt2_port_private *port_priv; in qt2_set_termios() local
275 port_priv = usb_get_serial_port_data(port); in qt2_set_termios()
304 status = qt2_set_port_config(dev, port_priv->device_port, baud, in qt2_set_termios()
313 port_priv->device_port); in qt2_set_termios()
316 0, port_priv->device_port); in qt2_set_termios()
325 x, port_priv->device_port); in qt2_set_termios()
328 0, port_priv->device_port); in qt2_set_termios()
[all …]
Df81534.c331 struct f81534_port_private *port_priv = usb_get_serial_port_data(port); in f81534_set_port_register() local
334 reg + port_priv->phy_num * F81534_UART_OFFSET, data); in f81534_set_port_register()
340 struct f81534_port_private *port_priv = usb_get_serial_port_data(port); in f81534_get_port_register() local
343 reg + port_priv->phy_num * F81534_UART_OFFSET, data); in f81534_get_port_register()
475 struct f81534_port_private *port_priv = usb_get_serial_port_data(port); in f81534_prepare_write_buffer() local
476 int phy_num = port_priv->phy_num; in f81534_prepare_write_buffer()
504 struct f81534_port_private *port_priv = usb_get_serial_port_data(port); in f81534_submit_writer() local
520 if (!test_and_clear_bit(F81534_TX_EMPTY_BIT, &port_priv->tx_empty)) in f81534_submit_writer()
529 set_bit(F81534_TX_EMPTY_BIT, &port_priv->tx_empty); in f81534_submit_writer()
564 struct f81534_port_private *port_priv = usb_get_serial_port_data(port); in f81534_set_port_config() local
[all …]
Dcp210x.c528 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_read_reg_block() local
544 port_priv->bInterfaceNumber, dmabuf, bufsize, in cp210x_read_reg_block()
656 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_write_u16_reg() local
661 port_priv->bInterfaceNumber, NULL, 0, in cp210x_write_u16_reg()
679 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_write_reg_block() local
689 port_priv->bInterfaceNumber, dmabuf, bufsize, in cp210x_write_reg_block()
762 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_detect_swapped_line_ctl() local
780 port_priv->has_swapped_line_ctl = true; in cp210x_detect_swapped_line_ctl()
793 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_get_line_ctl() local
801 if (port_priv->has_swapped_line_ctl) in cp210x_get_line_ctl()
[all …]
Df81232.c605 struct f81232_private *port_priv = usb_get_serial_port_data(port); in f81232_tiocmget() local
611 mutex_lock(&port_priv->lock); in f81232_tiocmget()
612 mcr = port_priv->modem_control; in f81232_tiocmget()
613 msr = port_priv->modem_status; in f81232_tiocmget()
614 mutex_unlock(&port_priv->lock); in f81232_tiocmget()
664 struct f81232_private *port_priv = usb_get_serial_port_data(port); in f81232_close() local
669 flush_work(&port_priv->interrupt_work); in f81232_close()
670 flush_work(&port_priv->lsr_work); in f81232_close()
764 struct f81232_private *port_priv = usb_get_serial_port_data(port); in f81232_suspend() local
772 if (port_priv) { in f81232_suspend()
[all …]
Ddigi_acceleport.c532 struct digi_port *port_priv = usb_get_serial_port_data(port); in digi_set_modem_signals() local
541 port_priv->dp_port_num, modem_signals); in digi_set_modem_signals()
544 spin_lock(&port_priv->dp_port_lock); in digi_set_modem_signals()
547 spin_unlock(&port_priv->dp_port_lock); in digi_set_modem_signals()
554 spin_lock(&port_priv->dp_port_lock); in digi_set_modem_signals()
557 data[1] = port_priv->dp_port_num; in digi_set_modem_signals()
562 data[5] = port_priv->dp_port_num; in digi_set_modem_signals()
572 port_priv->dp_modem_signals &= ~(TIOCM_DTR | TIOCM_RTS); in digi_set_modem_signals()
573 port_priv->dp_modem_signals |= in digi_set_modem_signals()
576 spin_unlock(&port_priv->dp_port_lock); in digi_set_modem_signals()
/Linux-v5.4/drivers/media/pci/cx23885/
Dcimax2.c383 state = port->port_priv; in netup_ci_slot_status()
390 state = port->port_priv; in netup_ci_slot_status()
461 port->port_priv = state; in netup_ci_init()
524 state = (struct netup_ci_state *)port->port_priv; in netup_ci_exit()
Dcx23885.h299 void *port_priv; member
/Linux-v5.4/include/trace/events/
Dib_mad.h211 __entry->dev_index = qp_info->port_priv->device->index;
212 __entry->port_num = qp_info->port_priv->port_num;
227 ib_query_pkey(qp_info->port_priv->device,
228 qp_info->port_priv->port_num,
/Linux-v5.4/drivers/net/ethernet/toshiba/
Dps3_gelic_wireless.h291 return port_priv(port); in port_wl()
Dps3_gelic_net.h343 static inline void *port_priv(struct gelic_port *port) in port_priv() function
/Linux-v5.4/drivers/media/usb/cx231xx/
Dcx231xx.h574 void *port_priv; member