Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch.c78 port_priv->fdb = fdb; in dpaa2_switch_port_set_fdb()
265 port_priv->vlans[port_priv->pvid] &= ~ETHSW_VLAN_PVID; in dpaa2_switch_port_set_pvid()
267 port_priv->pvid = pvid; in dpaa2_switch_port_set_pvid()
356 if (!netif_running(port_priv->netdev) || state == port_priv->stp_state) in dpaa2_switch_port_set_stp_state()
501 port_priv->idx, in dpaa2_switch_port_get_stats()
508 port_priv->idx, in dpaa2_switch_port_get_stats()
515 port_priv->idx, in dpaa2_switch_port_get_stats()
522 port_priv->idx, in dpaa2_switch_port_get_stats()
529 port_priv->idx, in dpaa2_switch_port_get_stats()
537 port_priv->idx, in dpaa2_switch_port_get_stats()
[all …]
H A Ddpaa2-switch-ethtool.c65 mutex_lock(&port_priv->mac_lock); 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()
78 port_priv->idx, in dpaa2_switch_get_link_ksettings()
109 mutex_lock(&port_priv->mac_lock); in dpaa2_switch_set_link_ksettings()
118 mutex_unlock(&port_priv->mac_lock); in dpaa2_switch_set_link_ksettings()
125 port_priv->idx); in dpaa2_switch_set_link_ksettings()
144 port_priv->idx, in dpaa2_switch_set_link_ksettings()
150 port_priv->idx); in dpaa2_switch_set_link_ksettings()
198 port_priv->idx, in dpaa2_switch_ethtool_get_stats()
[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.c407 struct ethsw_port_priv *port_priv; in dpaa2_switch_block_add_mirror() local
427 port_priv = ethsw->ports[port]; in dpaa2_switch_block_add_mirror()
433 !(port_priv->vlans[vlan] & ETHSW_VLAN_MEMBER)) { in dpaa2_switch_block_add_mirror()
820 struct ethsw_port_priv *port_priv) in dpaa2_switch_block_offload_mirror() argument
822 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_block_offload_mirror()
829 port_priv->idx, &tmp->cfg); in dpaa2_switch_block_offload_mirror()
840 port_priv->idx, &tmp->cfg); in dpaa2_switch_block_offload_mirror()
846 struct ethsw_port_priv *port_priv) in dpaa2_switch_block_unoffload_mirror() argument
848 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_block_unoffload_mirror()
855 port_priv->idx, &tmp->cfg); in dpaa2_switch_block_unoffload_mirror()
[all …]
/linux/drivers/net/ethernet/adi/
H A Dadin1110.c305 if (!port_priv->nr) { in adin1110_read_fifo()
364 port_priv->rx_packets++; in adin1110_read_fifo()
421 port_priv->tx_packets++; in adin1110_write_fifo()
545 if (!port_priv->nr) in adin1110_port_rx_ready()
637 if (!port_priv->nr) in adin1110_write_mac_address()
707 if (!port_priv->nr) in adin1110_port_rules()
803 if (!port_priv->nr) in adin1110_set_promisc_mode()
864 priv = port_priv->priv; in adin1110_rx_mode_work()
1455 port_priv = switchdev_work->port_priv; in adin1110_switchdev_event_work()
1497 switchdev_work->port_priv = port_priv; in adin1110_switchdev_event()
[all …]
/linux/drivers/infiniband/core/
H A Dagent.c105 if (!port_priv) { in agent_send_response()
110 agent = port_priv->agent[qpn]; in agent_send_response()
166 port_priv = kzalloc(sizeof *port_priv, GFP_KERNEL); in ib_agent_port_open()
167 if (!port_priv) { in ib_agent_port_open()
203 if (port_priv->agent[0]) in ib_agent_port_open()
206 kfree(port_priv); in ib_agent_port_open()
218 if (port_priv == NULL) { in ib_agent_port_close()
223 list_del(&port_priv->port_list); in ib_agent_port_close()
226 if (port_priv->agent[1]) in ib_agent_port_close()
228 if (port_priv->agent[0]) in ib_agent_port_close()
[all …]
H A Dmad.c497 port_priv = mad_agent_priv->qp_info->port_priv; in unregister_mad_agent()
1284 port_priv = agent_priv->qp_info->port_priv; in add_nonoui_reg_req()
1348 port_priv = agent_priv->qp_info->port_priv; in add_oui_reg_req()
1450 port_priv = agent_priv->qp_info->port_priv; in remove_mad_reg_req()
2100 port_priv->device, 0, port_priv->port_num, wc, in ib_mad_recv_done()
2791 ret = ib_find_pkey(port_priv->device, port_priv->port_num, in ib_mad_port_start()
2883 qp_info->port_priv = port_priv; in init_mad_qp()
2952 port_priv = kzalloc(sizeof *port_priv, GFP_KERNEL); in ib_mad_port_open()
2959 init_mad_qp(port_priv, &port_priv->qp_info[0]); in ib_mad_port_open()
2960 init_mad_qp(port_priv, &port_priv->qp_info[1]); in ib_mad_port_open()
[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
/linux/drivers/usb/serial/
H A Dquatech2.c291 port_priv->device_port); in qt2_set_termios()
660 port_priv = kzalloc(sizeof(*port_priv), GFP_KERNEL); in qt2_port_probe()
661 if (!port_priv) in qt2_port_probe()
666 port_priv->port = port; in qt2_port_probe()
673 if (!port_priv->write_urb) in qt2_port_probe()
679 port_priv->write_buffer, in qt2_port_probe()
689 kfree(port_priv); in qt2_port_probe()
700 kfree(port_priv); in qt2_port_remove()
795 if (!port_priv) in qt2_update_msr()
826 if (!port_priv) in qt2_update_lsr()
[all …]
H A Df81534.c589 port_priv->shadow_clk); in f81534_set_port_config()
673 port_priv->shadow_lcr); in f81534_break_ctl()
719 port_priv->shadow_mcr = tmp; in f81534_update_mctrl()
1014 port_priv->shadow_msr = msr; in f81534_msr_changed()
1060 port_priv->shadow_msr = msr; in f81534_read_msr()
1304 port = port_priv->port; in f81534_lsr_worker()
1361 port_priv = devm_kzalloc(&port->dev, sizeof(*port_priv), GFP_KERNEL); in f81534_port_probe()
1362 if (!port_priv) in f81534_port_probe()
1380 port_priv->phy_num = ret; in f81534_port_probe()
1381 port_priv->port = port; in f81534_port_probe()
[all …]
H A Dcp210x.c870 port_priv->lsr = *ch; in cp210x_process_char()
881 port_priv->lsr = *ch; in cp210x_process_char()
1186 port_priv->dtr = true; in cp210x_set_flow_control()
1202 if (port_priv->dtr) in cp210x_set_flow_control()
1210 if (port_priv->rts) in cp210x_set_flow_control()
1217 if (port_priv->rts) in cp210x_set_flow_control()
1381 if (port_priv->dtr) in cp210x_tiocmset_port()
1387 if (port_priv->rts) in cp210x_tiocmset_port()
2006 port_priv = kzalloc(sizeof(*port_priv), GFP_KERNEL); in cp210x_port_probe()
2007 if (!port_priv) in cp210x_port_probe()
[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()
943 if (port_priv) { in f81232_suspend()
944 flush_work(&port_priv->interrupt_work); in f81232_suspend()
[all …]
H A Ddigi_acceleport.c509 struct digi_port *port_priv = usb_get_serial_port_data(port); in digi_set_modem_signals() local
517 port_priv->dp_port_num, modem_signals); in digi_set_modem_signals()
520 spin_lock(&port_priv->dp_port_lock); in digi_set_modem_signals()
523 spin_unlock(&port_priv->dp_port_lock); in digi_set_modem_signals()
530 spin_lock(&port_priv->dp_port_lock); in digi_set_modem_signals()
533 data[1] = port_priv->dp_port_num; in digi_set_modem_signals()
538 data[5] = port_priv->dp_port_num; in digi_set_modem_signals()
548 port_priv->dp_modem_signals &= ~(TIOCM_DTR | TIOCM_RTS); in digi_set_modem_signals()
549 port_priv->dp_modem_signals |= in digi_set_modem_signals()
552 spin_unlock(&port_priv->dp_port_lock); in digi_set_modem_signals()
/linux/drivers/net/can/usb/
H A Df81604.c1131 struct f81604_port_priv *port_priv; in f81604_probe() local
1133 netdev = alloc_candev(sizeof(*port_priv), 1); in f81604_probe()
1141 port_priv = netdev_priv(netdev); in f81604_probe()
1144 init_usb_anchor(&port_priv->urbs_anchor); in f81604_probe()
1146 port_priv->intf = intf; in f81604_probe()
1147 port_priv->dev = dev; in f81604_probe()
1148 port_priv->netdev = netdev; in f81604_probe()
1149 port_priv->can.clock.freq = F81604_CAN_CLOCK; in f81604_probe()
1152 port_priv->can.termination_const_cnt = in f81604_probe()
1156 port_priv->can.do_set_mode = f81604_set_mode; in f81604_probe()
[all …]
/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
/linux/drivers/net/ethernet/toshiba/
H A Dps3_gelic_wireless.h291 return port_priv(port); in port_wl()
H A Dps3_gelic_net.h350 static inline void *port_priv(struct gelic_port *port) in port_priv() function
/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;
/linux/drivers/media/usb/cx231xx/
H A Dcx231xx.h558 void *port_priv; member