/linux-6.1.9/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-switch.c | 29 static u16 dpaa2_switch_port_get_fdb_id(struct ethsw_port_priv *port_priv) in dpaa2_switch_port_get_fdb_id() argument 31 return port_priv->fdb->fdb_id; in dpaa2_switch_port_get_fdb_id() 55 static u16 dpaa2_switch_port_set_fdb(struct ethsw_port_priv *port_priv, in dpaa2_switch_port_set_fdb() argument 67 fdb = dpaa2_switch_fdb_get_unused(port_priv->ethsw_data); in dpaa2_switch_port_set_fdb() 75 port_priv->fdb->bridge_dev = NULL; in dpaa2_switch_port_set_fdb() 79 port_priv->fdb = fdb; in dpaa2_switch_port_set_fdb() 80 port_priv->fdb->in_use = true; in dpaa2_switch_port_set_fdb() 81 port_priv->fdb->bridge_dev = NULL; in dpaa2_switch_port_set_fdb() 98 if (other_dev == port_priv->netdev) in dpaa2_switch_port_set_fdb() 112 port_priv->fdb->in_use = false; in dpaa2_switch_port_set_fdb() [all …]
|
D | dpaa2-switch-ethtool.c | 37 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 if (dpaa2_switch_port_is_type_phy(port_priv)) in dpaa2_switch_get_link_ksettings() 66 return phylink_ethtool_ksettings_get(port_priv->mac->phylink, in dpaa2_switch_get_link_ksettings() 69 err = dpsw_if_get_link_state(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_get_link_ksettings() 70 port_priv->ethsw_data->dpsw_handle, in dpaa2_switch_get_link_ksettings() 71 port_priv->idx, in dpaa2_switch_get_link_ksettings() 96 struct ethsw_port_priv *port_priv = netdev_priv(netdev); in dpaa2_switch_set_link_ksettings() local 97 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_set_link_ksettings() [all …]
|
D | dpaa2-switch.h | 231 dpaa2_switch_port_is_type_phy(struct ethsw_port_priv *port_priv) in dpaa2_switch_port_is_type_phy() argument 233 if (port_priv->mac && in dpaa2_switch_port_is_type_phy() 234 (port_priv->mac->attr.link_type == DPMAC_LINK_TYPE_PHY || in dpaa2_switch_port_is_type_phy() 235 port_priv->mac->attr.link_type == DPMAC_LINK_TYPE_BACKPLANE)) in dpaa2_switch_port_is_type_phy() 241 static inline bool dpaa2_switch_port_has_mac(struct ethsw_port_priv *port_priv) in dpaa2_switch_port_has_mac() argument 243 return port_priv->mac ? true : false; in dpaa2_switch_port_has_mac() 254 typedef int dpaa2_switch_fdb_cb_t(struct ethsw_port_priv *port_priv, 276 struct ethsw_port_priv *port_priv); 279 struct ethsw_port_priv *port_priv);
|
D | dpaa2-switch-flower.c | 403 struct ethsw_port_priv *port_priv; in dpaa2_switch_block_add_mirror() local 423 port_priv = ethsw->ports[port]; in dpaa2_switch_block_add_mirror() 429 !(port_priv->vlans[vlan] & ETHSW_VLAN_MEMBER)) { in dpaa2_switch_block_add_mirror() 813 struct ethsw_port_priv *port_priv) in dpaa2_switch_block_offload_mirror() argument 815 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_block_offload_mirror() 822 port_priv->idx, &tmp->cfg); in dpaa2_switch_block_offload_mirror() 833 port_priv->idx, &tmp->cfg); in dpaa2_switch_block_offload_mirror() 839 struct ethsw_port_priv *port_priv) in dpaa2_switch_block_unoffload_mirror() argument 841 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_block_unoffload_mirror() 848 port_priv->idx, &tmp->cfg); in dpaa2_switch_block_unoffload_mirror() [all …]
|
/linux-6.1.9/drivers/net/ethernet/adi/ |
D | adin1110.c | 169 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 …]
|
/linux-6.1.9/drivers/infiniband/core/ |
D | agent.c | 85 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 …]
|
D | mad.c | 95 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 …]
|
D | mad_rmpp.c | 99 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()
|
D | mad_priv.h | 187 struct ib_mad_port_private *port_priv; member
|
/linux-6.1.9/drivers/usb/serial/ |
D | quatech2.c | 215 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() 290 status = qt2_set_port_config(dev, port_priv->device_port, baud, in qt2_set_termios() 299 port_priv->device_port); in qt2_set_termios() 302 0, port_priv->device_port); in qt2_set_termios() 311 x, port_priv->device_port); in qt2_set_termios() 314 0, port_priv->device_port); in qt2_set_termios() [all …]
|
D | f81534.c | 329 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 …]
|
D | cp210x.c | 641 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_read_reg_block() local 647 port_priv->bInterfaceNumber, buf, bufsize, in cp210x_read_reg_block() 695 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_write_u16_reg() local 700 port_priv->bInterfaceNumber, NULL, 0, in cp210x_write_u16_reg() 718 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_write_reg_block() local 723 port_priv->bInterfaceNumber, buf, bufsize, in cp210x_write_reg_block() 772 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_open() local 792 port_priv->event_mode = false; in cp210x_open() 799 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_close() local 809 port_priv->event_mode = false; in cp210x_close() [all …]
|
D | f81232.c | 669 struct f81232_private *port_priv = usb_get_serial_port_data(port); in f81232_tiocmget() local 675 mutex_lock(&port_priv->lock); in f81232_tiocmget() 676 mcr = port_priv->modem_control; in f81232_tiocmget() 677 msr = port_priv->modem_status; in f81232_tiocmget() 678 mutex_unlock(&port_priv->lock); in f81232_tiocmget() 746 struct f81232_private *port_priv = usb_get_serial_port_data(port); in f81232_close() local 751 flush_work(&port_priv->interrupt_work); in f81232_close() 752 flush_work(&port_priv->lsr_work); in f81232_close() 933 struct f81232_private *port_priv = usb_get_serial_port_data(port); in f81232_suspend() local 941 if (port_priv) { in f81232_suspend() [all …]
|
D | digi_acceleport.c | 511 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()
|
/linux-6.1.9/drivers/media/pci/cx23885/ |
D | cimax2.c | 383 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()
|
D | cx23885.h | 300 void *port_priv; member
|
/linux-6.1.9/drivers/net/ethernet/toshiba/ |
D | ps3_gelic_wireless.h | 291 return port_priv(port); in port_wl()
|
D | ps3_gelic_net.h | 343 static inline void *port_priv(struct gelic_port *port) in port_priv() function
|
/linux-6.1.9/include/trace/events/ |
D | ib_mad.h | 209 __entry->dev_index = qp_info->port_priv->device->index; 210 __entry->port_num = qp_info->port_priv->port_num;
|
/linux-6.1.9/drivers/media/usb/cx231xx/ |
D | cx231xx.h | 555 void *port_priv; member
|