/openbmc/qemu/hw/pci-bridge/ |
H A D | pci_bridge_dev.c | 59 PCIBridgeDev *bridge_dev = PCI_BRIDGE_DEV(dev); in pci_bridge_dev_realize() local 65 if (bridge_dev->flags & (1 << PCI_BRIDGE_DEV_F_SHPC_REQ)) { in pci_bridge_dev_realize() 67 memory_region_init(&bridge_dev->bar, OBJECT(dev), "shpc-bar", in pci_bridge_dev_realize() 75 bridge_dev->msi = ON_OFF_AUTO_OFF; in pci_bridge_dev_realize() 78 err = slotid_cap_init(dev, 0, bridge_dev->chassis_nr, 0, errp); in pci_bridge_dev_realize() 83 if (bridge_dev->msi != ON_OFF_AUTO_OFF) { in pci_bridge_dev_realize() 90 if (err && bridge_dev->msi == ON_OFF_AUTO_ON) { in pci_bridge_dev_realize() 97 assert(!local_err || bridge_dev->msi == ON_OFF_AUTO_AUTO); in pci_bridge_dev_realize() 122 shpc_cleanup(dev, &bridge_dev->bar); in pci_bridge_dev_realize() 130 PCIBridgeDev *bridge_dev = PCI_BRIDGE_DEV(dev); in pci_bridge_dev_exitfn() local [all …]
|
H A D | pcie_pci_bridge.c | 101 PCIEPCIBridge *bridge_dev = PCIE_PCI_BRIDGE_DEV(d); in pcie_pci_bridge_exit() local 103 shpc_cleanup(d, &bridge_dev->shpc_bar); in pcie_pci_bridge_exit()
|
/openbmc/linux/drivers/fpga/ |
H A D | fpga-bridge.c | 63 bridge = to_fpga_bridge(bridge_dev); in __fpga_bridge_get() 95 struct device *bridge_dev; in of_fpga_bridge_get() local 97 bridge_dev = class_find_device_by_of_node(&fpga_bridge_class, np); in of_fpga_bridge_get() 98 if (!bridge_dev) in of_fpga_bridge_get() 101 bridge = __fpga_bridge_get(bridge_dev, info); in of_fpga_bridge_get() 103 put_device(bridge_dev); in of_fpga_bridge_get() 127 struct device *bridge_dev; in fpga_bridge_get() local 129 bridge_dev = class_find_device(&fpga_bridge_class, NULL, dev, in fpga_bridge_get() 131 if (!bridge_dev) in fpga_bridge_get() 134 bridge = __fpga_bridge_get(bridge_dev, info); in fpga_bridge_get() [all …]
|
/openbmc/linux/drivers/char/agp/ |
H A D | intel-gtt.c | 66 struct pci_dev *bridge_dev; member 350 pci_read_config_word(intel_private.bridge_dev, in intel_gtt_stolen_size() 426 dev_info(&intel_private.bridge_dev->dev, in intel_gtt_stolen_size() 456 pci_read_config_word(intel_private.bridge_dev, in i965_gtt_total_entries() 525 pci_read_config_dword(intel_private.bridge_dev, in intel_gtt_mappable_entries() 536 pci_read_config_word(intel_private.bridge_dev, in intel_gtt_mappable_entries() 622 dev_info(&intel_private.bridge_dev->dev, in intel_gtt_init() 751 pci_read_config_word(intel_private.bridge_dev, in intel_gmch_enable_gtt() 757 pci_read_config_word(intel_private.bridge_dev, in intel_gmch_enable_gtt() 1457 if (intel_private.bridge_dev) in intel_gmch_remove() [all …]
|
H A D | sworks-agp.c | 450 struct pci_dev *bridge_dev; in agp_serverworks_probe() local 474 bridge_dev = pci_get_domain_bus_and_slot(pci_domain_nr(pdev->bus), in agp_serverworks_probe() 477 if (!bridge_dev) { in agp_serverworks_probe() 482 serverworks_private.svrwrks_dev = bridge_dev; in agp_serverworks_probe()
|
/openbmc/linux/drivers/net/ethernet/qualcomm/rmnet/ |
H A D | rmnet_config.c | 93 struct net_device *bridge_dev, *real_dev, *rmnet_dev; in rmnet_unregister_bridge() local 103 bridge_dev = port->dev; in rmnet_unregister_bridge() 110 bridge_dev = port->bridge_ep; in rmnet_unregister_bridge() 116 netdev_upper_dev_unlink(bridge_dev, rmnet_dev); in rmnet_unregister_bridge() 117 rmnet_unregister_real_device(bridge_dev); in rmnet_unregister_bridge() 193 struct net_device *real_dev, *bridge_dev; in rmnet_dellink() local 204 bridge_dev = real_port->bridge_ep; in rmnet_dellink() 205 if (bridge_dev) { in rmnet_dellink() 206 bridge_port = rmnet_get_port_rtnl(bridge_dev); in rmnet_dellink()
|
H A D | rmnet_handlers.c | 183 rmnet_bridge_handler(struct sk_buff *skb, struct net_device *bridge_dev) in rmnet_bridge_handler() argument 188 if (bridge_dev) { in rmnet_bridge_handler() 189 skb->dev = bridge_dev; in rmnet_bridge_handler()
|
/openbmc/linux/net/dsa/ |
H A D | dsa.h | 34 unsigned int dsa_bridge_num_get(const struct net_device *bridge_dev, int max); 35 void dsa_bridge_num_put(const struct net_device *bridge_dev,
|
H A D | port.c | 662 struct net_device *bridge_dev; in dsa_port_lag_join() local 674 bridge_dev = netdev_master_upper_dev_get(lag_dev); in dsa_port_lag_join() 675 if (!bridge_dev || !netif_is_bridge_master(bridge_dev)) in dsa_port_lag_join() 678 err = dsa_port_bridge_join(dp, bridge_dev, extack); in dsa_port_lag_join() 1445 if (bridge_dev) { in dsa_port_change_master() 1446 dsa_port_pre_bridge_leave(dp, bridge_dev); in dsa_port_change_master() 1447 dsa_port_bridge_leave(dp, bridge_dev); in dsa_port_change_master() 1485 if (bridge_dev) { in dsa_port_change_master() 1486 err = dsa_port_bridge_join(dp, bridge_dev, extack); in dsa_port_change_master() 1519 if (bridge_dev) { in dsa_port_change_master() [all …]
|
H A D | dsa.c | 129 static int dsa_bridge_num_find(const struct net_device *bridge_dev) in dsa_bridge_num_find() argument 136 bridge = dsa_tree_bridge_find(dst, bridge_dev); in dsa_bridge_num_find() 144 unsigned int dsa_bridge_num_get(const struct net_device *bridge_dev, int max) in dsa_bridge_num_get() argument 146 unsigned int bridge_num = dsa_bridge_num_find(bridge_dev); in dsa_bridge_num_get() 170 void dsa_bridge_num_put(const struct net_device *bridge_dev, in dsa_bridge_num_put() argument
|
/openbmc/linux/drivers/net/dsa/ocelot/ |
H A D | felix.c | 793 if (IS_ERR(bridge_dev)) in felix_fdb_add() 794 return PTR_ERR(bridge_dev); in felix_fdb_add() 814 if (IS_ERR(bridge_dev)) in felix_fdb_del() 815 return PTR_ERR(bridge_dev); in felix_fdb_del() 834 if (IS_ERR(bridge_dev)) in felix_lag_fdb_add() 835 return PTR_ERR(bridge_dev); in felix_lag_fdb_add() 847 if (IS_ERR(bridge_dev)) in felix_lag_fdb_del() 848 return PTR_ERR(bridge_dev); in felix_lag_fdb_del() 860 if (IS_ERR(bridge_dev)) in felix_mdb_add() 861 return PTR_ERR(bridge_dev); in felix_mdb_add() [all …]
|
/openbmc/qemu/hw/xen/ |
H A D | xen_pt_graphics.c | 382 struct PCIDevice *bridge_dev; in type_init() local 401 bridge_dev = pci_create_simple(bus, PCI_DEVFN(0x1f, 0), in type_init() 407 if (!bridge_dev) { in type_init() 411 pci_config_set_device_id(bridge_dev->config, pch_dev_id); in type_init() 412 pci_config_set_revision(bridge_dev->config, pch_rev_id); in type_init()
|
/openbmc/linux/drivers/net/ethernet/mscc/ |
H A D | ocelot_net.c | 1259 struct net_device *bridge_dev, in ocelot_switchdev_sync() argument 1270 ageing_time = br_get_ageing_time(bridge_dev); in ocelot_switchdev_sync() 1274 br_vlan_enabled(bridge_dev), in ocelot_switchdev_sync() 1294 const struct net_device *bridge_dev) in ocelot_bridge_num_get() argument 1310 const struct net_device *bridge_dev, in ocelot_bridge_num_put() argument 1401 struct net_device *bridge_dev; in ocelot_netdevice_lag_join() local 1411 if (!bridge_dev || !netif_is_bridge_master(bridge_dev)) in ocelot_netdevice_lag_join() 1428 struct net_device *bridge_dev; in ocelot_netdevice_pre_lag_leave() local 1431 if (!bridge_dev || !netif_is_bridge_master(bridge_dev)) in ocelot_netdevice_pre_lag_leave() 1443 struct net_device *bridge_dev; in ocelot_netdevice_lag_leave() local [all …]
|
/openbmc/qemu/hw/pci/ |
H A D | pci_bridge.c | 154 PCIDevice *bridge_dev = PCI_DEVICE(bridge); in pci_bridge_init_alias() local 155 pcibus_t base = pci_bridge_get_base(bridge_dev, type); in pci_bridge_init_alias() 156 pcibus_t limit = pci_bridge_get_limit(bridge_dev, type); in pci_bridge_init_alias()
|
H A D | pcie.c | 1065 void pcie_sync_bridge_lnk(PCIDevice *bridge_dev) in pcie_sync_bridge_lnk() argument 1067 PCIBridge *br = PCI_BRIDGE(bridge_dev); in pcie_sync_bridge_lnk() 1070 uint8_t *exp_cap = bridge_dev->config + bridge_dev->exp.exp_cap; in pcie_sync_bridge_lnk()
|
/openbmc/linux/drivers/pci/controller/dwc/ |
H A D | pci-keystone.c | 529 struct device *bridge_dev; in ks_pcie_quirk() local 581 bridge_dev = pci_get_host_bridge_device(dev); in ks_pcie_quirk() 582 if (!bridge_dev || !bridge_dev->parent) in ks_pcie_quirk() 585 ks_pcie = dev_get_drvdata(bridge_dev->parent); in ks_pcie_quirk()
|
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-switch.h | 103 struct net_device *bridge_dev; member
|
H A D | dpaa2-switch.c | 55 struct net_device *bridge_dev) in dpaa2_switch_port_set_fdb() argument 65 if (!bridge_dev) { in dpaa2_switch_port_set_fdb() 74 port_priv->fdb->bridge_dev = NULL; in dpaa2_switch_port_set_fdb() 80 port_priv->fdb->bridge_dev = NULL; in dpaa2_switch_port_set_fdb() 93 netdev_for_each_lower_dev(bridge_dev, other_dev, iter) { in dpaa2_switch_port_set_fdb() 112 port_priv->fdb->bridge_dev = NULL; in dpaa2_switch_port_set_fdb() 119 port_priv->fdb->bridge_dev = bridge_dev; in dpaa2_switch_port_set_fdb() 2454 skb->offload_fwd_mark = !!(port_priv->fdb->bridge_dev); in dpaa2_switch_rx() 3150 fdb->bridge_dev = NULL; in dpaa2_switch_port_init()
|
/openbmc/linux/include/net/ |
H A D | dsa.h | 767 const struct net_device *bridge_dev) in dsa_port_offloads_bridge_dev() argument 772 return dsa_port_bridge_dev_get(dp) == bridge_dev; in dsa_port_offloads_bridge_dev() 797 const struct net_device *bridge_dev) in dsa_tree_offloads_bridge_dev() argument 802 if (dsa_port_offloads_bridge_dev(dp, bridge_dev)) in dsa_tree_offloads_bridge_dev()
|
/openbmc/linux/drivers/net/ethernet/rocker/ |
H A D | rocker_ofdpa.c | 198 struct net_device *bridge_dev; member 276 return ofdpa_port->bridge_dev && in ofdpa_port_is_slave() 277 !strcmp(ofdpa_port->bridge_dev->rtnl_link_ops->kind, kind); in ofdpa_port_is_slave() 2596 ofdpa_port->bridge_dev = bridge; in ofdpa_port_bridge_join() 2618 ofdpa_port->bridge_dev->ifindex); in ofdpa_port_bridge_leave() 2623 ofdpa_port->bridge_dev = NULL; in ofdpa_port_bridge_leave() 2640 ofdpa_port->bridge_dev = master; in ofdpa_port_ovs_changed()
|
/openbmc/linux/drivers/video/fbdev/intelfb/ |
H A D | intelfbhw.c | 176 struct pci_dev *bridge_dev; in intelfbhw_get_memory() local 184 bridge_dev = pci_get_domain_bus_and_slot(pci_domain_nr(pdev->bus), 0, in intelfbhw_get_memory() 186 if (!bridge_dev) { in intelfbhw_get_memory() 193 pci_read_config_word(bridge_dev, INTEL_GMCH_CTRL, &tmp); in intelfbhw_get_memory() 194 pci_dev_put(bridge_dev); in intelfbhw_get_memory()
|