Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch.c28 static u16 dpaa2_switch_port_get_fdb_id(struct ethsw_port_priv *port_priv) in dpaa2_switch_port_get_fdb_id() argument
30 return port_priv->fdb->fdb_id; in dpaa2_switch_port_get_fdb_id()
54 static u16 dpaa2_switch_port_set_fdb(struct ethsw_port_priv *port_priv, in dpaa2_switch_port_set_fdb() argument
66 fdb = dpaa2_switch_fdb_get_unused(port_priv->ethsw_data); in dpaa2_switch_port_set_fdb()
74 port_priv->fdb->bridge_dev = NULL; in dpaa2_switch_port_set_fdb()
78 port_priv->fdb = fdb; in dpaa2_switch_port_set_fdb()
79 port_priv->fdb->in_use = true; in dpaa2_switch_port_set_fdb()
80 port_priv->fdb->bridge_dev = NULL; in dpaa2_switch_port_set_fdb()
97 if (other_dev == port_priv->netdev) in dpaa2_switch_port_set_fdb()
111 port_priv->fdb->in_use = false; in dpaa2_switch_port_set_fdb()
[all …]
H A Ddpaa2-switch-ethtool.c37 struct ethsw_port_priv *port_priv = netdev_priv(netdev); in dpaa2_switch_get_drvinfo() local
43 err = dpsw_get_api_version(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_get_drvinfo()
61 struct ethsw_port_priv *port_priv = netdev_priv(netdev); in dpaa2_switch_get_link_ksettings() local
65 mutex_lock(&port_priv->mac_lock); in dpaa2_switch_get_link_ksettings()
67 if (dpaa2_switch_port_is_type_phy(port_priv)) { in dpaa2_switch_get_link_ksettings()
68 err = phylink_ethtool_ksettings_get(port_priv->mac->phylink, in dpaa2_switch_get_link_ksettings()
70 mutex_unlock(&port_priv->mac_lock); in dpaa2_switch_get_link_ksettings()
74 mutex_unlock(&port_priv->mac_lock); in dpaa2_switch_get_link_ksettings()
76 err = dpsw_if_get_link_state(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_get_link_ksettings()
77 port_priv->ethsw_data->dpsw_handle, in dpaa2_switch_get_link_ksettings()
[all …]
H A Ddpaa2-switch.h233 dpaa2_switch_port_is_type_phy(struct ethsw_port_priv *port_priv) in dpaa2_switch_port_is_type_phy() argument
235 return dpaa2_mac_is_type_phy(port_priv->mac); in dpaa2_switch_port_is_type_phy()
238 static inline bool dpaa2_switch_port_has_mac(struct ethsw_port_priv *port_priv) in dpaa2_switch_port_has_mac() argument
240 return port_priv->mac ? true : false; in dpaa2_switch_port_has_mac()
251 typedef int dpaa2_switch_fdb_cb_t(struct ethsw_port_priv *port_priv,
273 struct ethsw_port_priv *port_priv);
276 struct ethsw_port_priv *port_priv);
H A Ddpaa2-switch-flower.c404 struct ethsw_port_priv *port_priv; in dpaa2_switch_block_add_mirror() local
424 port_priv = ethsw->ports[port]; in dpaa2_switch_block_add_mirror()
430 !(port_priv->vlans[vlan] & ETHSW_VLAN_MEMBER)) { in dpaa2_switch_block_add_mirror()
814 struct ethsw_port_priv *port_priv) in dpaa2_switch_block_offload_mirror() argument
816 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_block_offload_mirror()
823 port_priv->idx, &tmp->cfg); in dpaa2_switch_block_offload_mirror()
834 port_priv->idx, &tmp->cfg); in dpaa2_switch_block_offload_mirror()
840 struct ethsw_port_priv *port_priv) in dpaa2_switch_block_unoffload_mirror() argument
842 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_block_unoffload_mirror()
849 port_priv->idx, &tmp->cfg); in dpaa2_switch_block_unoffload_mirror()
[all …]
/openbmc/linux/drivers/net/ethernet/adi/
H A Dadin1110.c169 struct adin1110_port_priv *port_priv; member
293 static int adin1110_read_fifo(struct adin1110_port_priv *port_priv) in adin1110_read_fifo() argument
295 struct adin1110_priv *priv = port_priv->priv; in adin1110_read_fifo()
305 if (!port_priv->nr) { in adin1110_read_fifo()
338 rxb = netdev_alloc_skb(port_priv->netdev, round_len + header_len); in adin1110_read_fifo()
355 rxb->protocol = eth_type_trans(rxb, port_priv->netdev); in adin1110_read_fifo()
357 if ((port_priv->flags & IFF_ALLMULTI && rxb->pkt_type == PACKET_MULTICAST) || in adin1110_read_fifo()
358 (port_priv->flags & IFF_BROADCAST && rxb->pkt_type == PACKET_BROADCAST)) in adin1110_read_fifo()
359 rxb->offload_fwd_mark = port_priv->priv->forwarding; in adin1110_read_fifo()
363 port_priv->rx_bytes += frame_size - ADIN1110_FRAME_HEADER_LEN; in adin1110_read_fifo()
[all …]
/openbmc/linux/drivers/usb/serial/
H A Dquatech2.c207 static inline int update_mctrl(struct qt2_port_private *port_priv, in update_mctrl() argument
210 struct usb_serial_port *port = port_priv->port; in update_mctrl()
228 status = qt2_setregister(dev, port_priv->device_port, UART_MCR, in update_mctrl()
260 struct qt2_port_private *port_priv; in qt2_set_termios() local
267 port_priv = usb_get_serial_port_data(port); in qt2_set_termios()
282 status = qt2_set_port_config(dev, port_priv->device_port, baud, in qt2_set_termios()
291 port_priv->device_port); in qt2_set_termios()
294 0, port_priv->device_port); in qt2_set_termios()
303 x, port_priv->device_port); in qt2_set_termios()
306 0, port_priv->device_port); in qt2_set_termios()
[all …]
H A Df81534.c329 struct f81534_port_private *port_priv = usb_get_serial_port_data(port); in f81534_set_port_register() local
332 reg + port_priv->phy_num * F81534_UART_OFFSET, data); in f81534_set_port_register()
338 struct f81534_port_private *port_priv = usb_get_serial_port_data(port); in f81534_get_port_register() local
341 reg + port_priv->phy_num * F81534_UART_OFFSET, data); in f81534_get_port_register()
473 struct f81534_port_private *port_priv = usb_get_serial_port_data(port); in f81534_prepare_write_buffer() local
474 int phy_num = port_priv->phy_num; in f81534_prepare_write_buffer()
502 struct f81534_port_private *port_priv = usb_get_serial_port_data(port); in f81534_submit_writer() local
518 if (!test_and_clear_bit(F81534_TX_EMPTY_BIT, &port_priv->tx_empty)) in f81534_submit_writer()
527 set_bit(F81534_TX_EMPTY_BIT, &port_priv->tx_empty); in f81534_submit_writer()
559 struct f81534_port_private *port_priv = usb_get_serial_port_data(port); in f81534_set_port_config() local
[all …]
H A Dcp210x.c648 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_read_reg_block()
654 port_priv->bInterfaceNumber, buf, bufsize, in cp210x_read_reg_block()
702 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_write_u16_reg()
707 port_priv->bInterfaceNumber, NULL, 0, in cp210x_write_u16_reg()
725 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_write_reg_block()
730 port_priv->bInterfaceNumber, buf, bufsize, in cp210x_write_reg_block()
779 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_open()
799 port_priv->event_mode = false; in cp210x_open()
806 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_close()
816 port_priv in cp210x_close()
647 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); cp210x_read_reg_block() local
701 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); cp210x_write_u16_reg() local
724 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); cp210x_write_reg_block() local
778 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); cp210x_open() local
805 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); cp210x_close() local
839 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); cp210x_process_char() local
899 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); cp210x_process_read_urb() local
929 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); cp210x_get_tx_queue_byte_count() local
1088 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); cp210x_enable_event_mode() local
1109 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); cp210x_disable_event_mode() local
1140 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); cp210x_set_flow_control() local
1339 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); cp210x_tiocmset_port() local
2005 struct cp210x_port_private *port_priv; cp210x_port_probe() local
2021 struct cp210x_port_private *port_priv; cp210x_port_remove() local
[all...]
H A Df81232.c671 struct f81232_private *port_priv = usb_get_serial_port_data(port); in f81232_tiocmget() local
677 mutex_lock(&port_priv->lock); in f81232_tiocmget()
678 mcr = port_priv->modem_control; in f81232_tiocmget()
679 msr = port_priv->modem_status; in f81232_tiocmget()
680 mutex_unlock(&port_priv->lock); in f81232_tiocmget()
748 struct f81232_private *port_priv = usb_get_serial_port_data(port); in f81232_close() local
753 flush_work(&port_priv->interrupt_work); in f81232_close()
754 flush_work(&port_priv->lsr_work); in f81232_close()
935 struct f81232_private *port_priv = usb_get_serial_port_data(port); in f81232_suspend() local
943 if (port_priv) { in f81232_suspend()
[all …]
H A Ddigi_acceleport.c511 struct digi_port *port_priv = usb_get_serial_port_data(port); in digi_set_modem_signals() local
519 port_priv->dp_port_num, modem_signals); in digi_set_modem_signals()
522 spin_lock(&port_priv->dp_port_lock); in digi_set_modem_signals()
525 spin_unlock(&port_priv->dp_port_lock); in digi_set_modem_signals()
532 spin_lock(&port_priv->dp_port_lock); in digi_set_modem_signals()
535 data[1] = port_priv->dp_port_num; in digi_set_modem_signals()
540 data[5] = port_priv->dp_port_num; in digi_set_modem_signals()
550 port_priv->dp_modem_signals &= ~(TIOCM_DTR | TIOCM_RTS); in digi_set_modem_signals()
551 port_priv->dp_modem_signals |= in digi_set_modem_signals()
554 spin_unlock(&port_priv->dp_port_lock); in digi_set_modem_signals()
/openbmc/linux/drivers/infiniband/core/
H A 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 …]
H A Dmad.c95 struct ib_mad_port_private *port_priv,
107 static bool ib_mad_send_error(struct ib_mad_port_private *port_priv,
228 struct ib_mad_port_private *port_priv; in ib_register_mad_agent() local
347 port_priv = ib_get_mad_port(device, port_num); in ib_register_mad_agent()
348 if (!port_priv) { in ib_register_mad_agent()
358 if (!port_priv->qp_info[qpn].qp) { in ib_register_mad_agent()
381 mad_agent_priv->qp_info = &port_priv->qp_info[qpn]; in ib_register_mad_agent()
388 mad_agent_priv->agent.qp = port_priv->qp_info[qpn].qp; in ib_register_mad_agent()
424 spin_lock_irq(&port_priv->reg_lock); in ib_register_mad_agent()
428 class = port_priv->version[mad_reg_req-> in ib_register_mad_agent()
[all …]
H A Dmad_rmpp.c99 flush_workqueue(agent->qp_info->port_priv->wq); in ib_cancel_rmpp_recvs()
431 bool opa = rdma_cap_opa_mad(rmpp_recv->agent->qp_info->port_priv->device, in get_mad_len()
432 rmpp_recv->agent->qp_info->port_priv->port_num); in get_mad_len()
463 queue_delayed_work(rmpp_recv->agent->qp_info->port_priv->wq, in complete_rmpp()
556 queue_delayed_work(agent->qp_info->port_priv->wq, in start_rmpp()
H A Dmad_priv.h187 struct ib_mad_port_private *port_priv; member
/openbmc/linux/drivers/net/can/usb/
H A Df81604.c1102 struct f81604_port_priv *port_priv = netdev_priv(netdev); in f81604_set_termination() local
1106 return __f81604_set_termination(port_priv->dev, netdev->dev_port, in f81604_set_termination()
1135 struct f81604_port_priv *port_priv; in f81604_probe() local
1137 netdev = alloc_candev(sizeof(*port_priv), 1); in f81604_probe()
1145 port_priv = netdev_priv(netdev); in f81604_probe()
1147 INIT_WORK(&port_priv->clear_reg_work, f81604_clear_reg_work); in f81604_probe()
1148 init_usb_anchor(&port_priv->urbs_anchor); in f81604_probe()
1150 port_priv->intf = intf; in f81604_probe()
1151 port_priv->dev = dev; in f81604_probe()
1152 port_priv->netdev = netdev; in f81604_probe()
[all …]
/openbmc/linux/drivers/media/pci/cx23885/
H A 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()
H A Dcx23885.h300 void *port_priv; member
/openbmc/linux/drivers/net/ethernet/toshiba/
H A Dps3_gelic_wireless.h291 return port_priv(port); in port_wl()
H A Dps3_gelic_net.h344 static inline void *port_priv(struct gelic_port *port) in port_priv() function
/openbmc/linux/include/trace/events/
H A Dib_mad.h209 __entry->dev_index = qp_info->port_priv->device->index;
210 __entry->port_num = qp_info->port_priv->port_num;
/openbmc/linux/drivers/media/usb/cx231xx/
H A Dcx231xx.h555 void *port_priv; member