/linux-6.12.1/drivers/gpu/drm/ |
D | drm_bridge.c | 206 void drm_bridge_add(struct drm_bridge *bridge) in drm_bridge_add() argument 208 mutex_init(&bridge->hpd_mutex); in drm_bridge_add() 211 list_add_tail(&bridge->list, &bridge_list); in drm_bridge_add() 216 static void drm_bridge_remove_void(void *bridge) in drm_bridge_remove_void() argument 218 drm_bridge_remove(bridge); in drm_bridge_remove_void() 232 int devm_drm_bridge_add(struct device *dev, struct drm_bridge *bridge) in devm_drm_bridge_add() argument 234 drm_bridge_add(bridge); in devm_drm_bridge_add() 235 return devm_add_action_or_reset(dev, drm_bridge_remove_void, bridge); in devm_drm_bridge_add() 244 void drm_bridge_remove(struct drm_bridge *bridge) in drm_bridge_remove() argument 247 list_del_init(&bridge->list); in drm_bridge_remove() [all …]
|
/linux-6.12.1/drivers/char/agp/ |
D | backend.c | 70 struct agp_bridge_data *bridge; in agp_backend_acquire() local 72 bridge = agp_find_bridge(pdev); in agp_backend_acquire() 74 if (!bridge) in agp_backend_acquire() 77 if (atomic_read(&bridge->agp_in_use)) in agp_backend_acquire() 79 atomic_inc(&bridge->agp_in_use); in agp_backend_acquire() 80 return bridge; in agp_backend_acquire() 94 void agp_backend_release(struct agp_bridge_data *bridge) in agp_backend_release() argument 97 if (bridge) in agp_backend_release() 98 atomic_dec(&bridge->agp_in_use); in agp_backend_release() 139 static int agp_backend_initialize(struct agp_bridge_data *bridge) in agp_backend_initialize() argument [all …]
|
D | generic.c | 178 curr->bridge->driver->free_by_type(curr); in agp_free_memory() 182 if (curr->bridge->driver->agp_destroy_pages) { in agp_free_memory() 183 curr->bridge->driver->agp_destroy_pages(curr); in agp_free_memory() 187 curr->bridge->driver->agp_destroy_page( in agp_free_memory() 192 curr->bridge->driver->agp_destroy_page( in agp_free_memory() 218 struct agp_memory *agp_allocate_memory(struct agp_bridge_data *bridge, in agp_allocate_memory() argument 226 if (!bridge) in agp_allocate_memory() 229 cur_memory = atomic_read(&bridge->current_memory_agp); in agp_allocate_memory() 230 if ((cur_memory + page_count > bridge->max_memory_agp) || in agp_allocate_memory() 237 new->bridge = bridge; in agp_allocate_memory() [all …]
|
D | uninorth-agp.c | 228 static void uninorth_agp_enable(struct agp_bridge_data *bridge, u32 mode) in uninorth_agp_enable() argument 233 pci_read_config_dword(bridge->dev, in uninorth_agp_enable() 234 bridge->capndx + PCI_AGP_STATUS, in uninorth_agp_enable() 237 command = agp_collect_device_status(bridge, mode, status); in uninorth_agp_enable() 262 pci_write_config_dword(bridge->dev, in uninorth_agp_enable() 263 bridge->capndx + PCI_AGP_COMMAND, in uninorth_agp_enable() 265 pci_read_config_dword(bridge->dev, in uninorth_agp_enable() 266 bridge->capndx + PCI_AGP_COMMAND, in uninorth_agp_enable() 270 dev_err(&bridge->dev->dev, "can't write UniNorth AGP " in uninorth_agp_enable() 292 struct agp_bridge_data *bridge; in agp_uninorth_suspend() local [all …]
|
/linux-6.12.1/drivers/fpga/ |
D | fpga-bridge.c | 29 int fpga_bridge_enable(struct fpga_bridge *bridge) in fpga_bridge_enable() argument 31 dev_dbg(&bridge->dev, "enable\n"); in fpga_bridge_enable() 33 if (bridge->br_ops->enable_set) in fpga_bridge_enable() 34 return bridge->br_ops->enable_set(bridge, 1); in fpga_bridge_enable() 47 int fpga_bridge_disable(struct fpga_bridge *bridge) in fpga_bridge_disable() argument 49 dev_dbg(&bridge->dev, "disable\n"); in fpga_bridge_disable() 51 if (bridge->br_ops->enable_set) in fpga_bridge_disable() 52 return bridge->br_ops->enable_set(bridge, 0); in fpga_bridge_disable() 61 struct fpga_bridge *bridge; in __fpga_bridge_get() local 63 bridge = to_fpga_bridge(bridge_dev); in __fpga_bridge_get() [all …]
|
/linux-6.12.1/drivers/pci/ |
D | pci-bridge-emul.c | 318 pci_bridge_emul_read_ssid(struct pci_bridge_emul *bridge, int reg, u32 *value) in pci_bridge_emul_read_ssid() argument 323 ((bridge->pcie_start > bridge->ssid_start) ? (bridge->pcie_start << 8) : 0); in pci_bridge_emul_read_ssid() 327 *value = bridge->subsystem_vendor_id | in pci_bridge_emul_read_ssid() 328 (bridge->subsystem_id << 16); in pci_bridge_emul_read_ssid() 343 int pci_bridge_emul_init(struct pci_bridge_emul *bridge, in pci_bridge_emul_init() argument 346 BUILD_BUG_ON(sizeof(bridge->conf) != PCI_BRIDGE_CONF_END); in pci_bridge_emul_init() 353 bridge->conf.class_revision |= in pci_bridge_emul_init() 355 bridge->conf.header_type = PCI_HEADER_TYPE_BRIDGE; in pci_bridge_emul_init() 356 bridge->conf.cache_line_size = 0x10; in pci_bridge_emul_init() 357 bridge->conf.status = cpu_to_le16(PCI_STATUS_CAP_LIST); in pci_bridge_emul_init() [all …]
|
D | probe.c | 92 put_device(pci_bus->bridge); in release_pcibus_dev() 459 static void pci_read_bridge_windows(struct pci_dev *bridge) in pci_read_bridge_windows() argument 466 pci_read_config_dword(bridge, PCI_PRIMARY_BUS, &buses); in pci_read_bridge_windows() 470 pci_info(bridge, "PCI bridge to %pR%s\n", &res, in pci_read_bridge_windows() 471 bridge->transparent ? " (subtractive decode)" : ""); in pci_read_bridge_windows() 473 pci_read_config_word(bridge, PCI_IO_BASE, &io); in pci_read_bridge_windows() 475 pci_write_config_word(bridge, PCI_IO_BASE, 0xe0f0); in pci_read_bridge_windows() 476 pci_read_config_word(bridge, PCI_IO_BASE, &io); in pci_read_bridge_windows() 477 pci_write_config_word(bridge, PCI_IO_BASE, 0x0); in pci_read_bridge_windows() 480 bridge->io_window = 1; in pci_read_bridge_windows() [all …]
|
/linux-6.12.1/drivers/media/i2c/ |
D | st-mipid02.c | 229 static int mipid02_get_regulators(struct mipid02_dev *bridge) in mipid02_get_regulators() argument 234 bridge->supplies[i].supply = mipid02_supply_name[i]; in mipid02_get_regulators() 236 return devm_regulator_bulk_get(&bridge->i2c_client->dev, in mipid02_get_regulators() 238 bridge->supplies); in mipid02_get_regulators() 241 static void mipid02_apply_reset(struct mipid02_dev *bridge) in mipid02_apply_reset() argument 243 gpiod_set_value_cansleep(bridge->reset_gpio, 0); in mipid02_apply_reset() 245 gpiod_set_value_cansleep(bridge->reset_gpio, 1); in mipid02_apply_reset() 247 gpiod_set_value_cansleep(bridge->reset_gpio, 0); in mipid02_apply_reset() 251 static int mipid02_set_power_on(struct mipid02_dev *bridge) in mipid02_set_power_on() argument 253 struct i2c_client *client = bridge->i2c_client; in mipid02_set_power_on() [all …]
|
/linux-6.12.1/include/drm/ |
D | drm_bridge.h | 74 int (*attach)(struct drm_bridge *bridge, 85 void (*detach)(struct drm_bridge *bridge); 118 enum drm_mode_status (*mode_valid)(struct drm_bridge *bridge, 159 bool (*mode_fixup)(struct drm_bridge *bridge, 183 void (*disable)(struct drm_bridge *bridge); 207 void (*post_disable)(struct drm_bridge *bridge); 235 void (*mode_set)(struct drm_bridge *bridge, 261 void (*pre_enable)(struct drm_bridge *bridge); 286 void (*enable)(struct drm_bridge *bridge); 305 void (*atomic_pre_enable)(struct drm_bridge *bridge, [all …]
|
/linux-6.12.1/drivers/gpu/drm/bridge/ |
D | panel.c | 21 struct drm_bridge bridge; member 28 drm_bridge_to_panel_bridge(struct drm_bridge *bridge) in drm_bridge_to_panel_bridge() argument 30 return container_of(bridge, struct panel_bridge, bridge); in drm_bridge_to_panel_bridge() 60 static int panel_bridge_attach(struct drm_bridge *bridge, in panel_bridge_attach() argument 63 struct panel_bridge *panel_bridge = drm_bridge_to_panel_bridge(bridge); in panel_bridge_attach() 73 ret = drm_connector_init(bridge->dev, connector, in panel_bridge_attach() 81 drm_panel_bridge_set_orientation(connector, bridge); in panel_bridge_attach() 84 bridge->encoder); in panel_bridge_attach() 86 if (bridge->dev->registered) { in panel_bridge_attach() 95 static void panel_bridge_detach(struct drm_bridge *bridge) in panel_bridge_detach() argument [all …]
|
D | display-connector.c | 21 struct drm_bridge bridge; member 31 to_display_connector(struct drm_bridge *bridge) in to_display_connector() argument 33 return container_of(bridge, struct display_connector, bridge); in to_display_connector() 36 static int display_connector_attach(struct drm_bridge *bridge, in display_connector_attach() argument 43 display_connector_detect(struct drm_bridge *bridge) in display_connector_detect() argument 45 struct display_connector *conn = to_display_connector(bridge); in display_connector_detect() 54 if (conn->bridge.ddc && drm_probe_ddc(conn->bridge.ddc)) in display_connector_detect() 57 switch (conn->bridge.type) { in display_connector_detect() 84 static const struct drm_edid *display_connector_edid_read(struct drm_bridge *bridge, in display_connector_edid_read() argument 87 struct display_connector *conn = to_display_connector(bridge); in display_connector_edid_read() [all …]
|
D | ti-tpd12s015.c | 25 struct drm_bridge bridge; member 35 static inline struct tpd12s015_device *to_tpd12s015(struct drm_bridge *bridge) in to_tpd12s015() argument 37 return container_of(bridge, struct tpd12s015_device, bridge); in to_tpd12s015() 40 static int tpd12s015_attach(struct drm_bridge *bridge, in tpd12s015_attach() argument 43 struct tpd12s015_device *tpd = to_tpd12s015(bridge); in tpd12s015_attach() 49 ret = drm_bridge_attach(bridge->encoder, tpd->next_bridge, in tpd12s015_attach() 50 bridge, flags); in tpd12s015_attach() 62 static void tpd12s015_detach(struct drm_bridge *bridge) in tpd12s015_detach() argument 64 struct tpd12s015_device *tpd = to_tpd12s015(bridge); in tpd12s015_detach() 69 static enum drm_connector_status tpd12s015_detect(struct drm_bridge *bridge) in tpd12s015_detect() argument [all …]
|
/linux-6.12.1/drivers/staging/vme_user/ |
D | vme.c | 83 struct vme_bridge *bridge = find_bridge(resource); in vme_alloc_consistent() local 85 if (!bridge->alloc_consistent) { in vme_alloc_consistent() 86 dev_err(bridge->parent, in vme_alloc_consistent() 88 bridge->name); in vme_alloc_consistent() 92 return bridge->alloc_consistent(bridge->parent, size, dma); in vme_alloc_consistent() 108 struct vme_bridge *bridge = find_bridge(resource); in vme_free_consistent() local 110 if (!bridge->free_consistent) { in vme_free_consistent() 111 dev_err(bridge->parent, in vme_free_consistent() 113 bridge->name); in vme_free_consistent() 117 bridge->free_consistent(bridge->parent, size, vaddr, dma); in vme_free_consistent() [all …]
|
D | vme_fake.c | 96 struct fake_driver *bridge; in fake_VIRQ_tasklet() local 99 bridge = fake_bridge->driver_priv; in fake_VIRQ_tasklet() 101 vme_irq_handler(fake_bridge, bridge->int_level, bridge->int_statid); in fake_VIRQ_tasklet() 130 struct fake_driver *bridge; in fake_irq_generate() local 132 bridge = fake_bridge->driver_priv; in fake_irq_generate() 134 mutex_lock(&bridge->vme_int); in fake_irq_generate() 136 bridge->int_level = level; in fake_irq_generate() 138 bridge->int_statid = statid; in fake_irq_generate() 144 tasklet_schedule(&bridge->int_tasklet); in fake_irq_generate() 146 mutex_unlock(&bridge->vme_int); in fake_irq_generate() [all …]
|
D | vme_tsi148.c | 74 static u32 tsi148_DMA_irqhandler(struct tsi148_driver *bridge, in tsi148_DMA_irqhandler() argument 80 wake_up(&bridge->dma_queue[0]); in tsi148_DMA_irqhandler() 84 wake_up(&bridge->dma_queue[1]); in tsi148_DMA_irqhandler() 94 static u32 tsi148_LM_irqhandler(struct tsi148_driver *bridge, u32 stat) in tsi148_LM_irqhandler() argument 102 bridge->lm_callback[i](bridge->lm_data[i]); in tsi148_LM_irqhandler() 120 struct tsi148_driver *bridge; in tsi148_MB_irqhandler() local 122 bridge = tsi148_bridge->driver_priv; in tsi148_MB_irqhandler() 126 val = ioread32be(bridge->base + TSI148_GCSR_MBOX[i]); in tsi148_MB_irqhandler() 141 struct tsi148_driver *bridge; in tsi148_PERR_irqhandler() local 143 bridge = tsi148_bridge->driver_priv; in tsi148_PERR_irqhandler() [all …]
|
/linux-6.12.1/drivers/gpu/drm/display/ |
D | drm_bridge_connector.c | 112 struct drm_bridge *bridge; in drm_bridge_connector_hpd_notify() local 115 drm_for_each_bridge_in_chain(bridge_connector->encoder, bridge) { in drm_bridge_connector_hpd_notify() 116 if (bridge->funcs->hpd_notify) in drm_bridge_connector_hpd_notify() 117 bridge->funcs->hpd_notify(bridge, status); in drm_bridge_connector_hpd_notify() 211 struct drm_bridge *bridge; in drm_bridge_connector_debugfs_init() local 213 list_for_each_entry(bridge, &encoder->bridge_chain, chain_node) { in drm_bridge_connector_debugfs_init() 214 if (bridge->funcs->debugfs_init) in drm_bridge_connector_debugfs_init() 215 bridge->funcs->debugfs_init(bridge, root); in drm_bridge_connector_debugfs_init() 245 struct drm_bridge *bridge) in drm_bridge_connector_get_modes_edid() argument 255 drm_edid = drm_bridge_edid_read(bridge, connector); in drm_bridge_connector_get_modes_edid() [all …]
|
/linux-6.12.1/tools/testing/selftests/net/forwarding/ |
D | bridge_mdb.sh | 67 ip link add name br0 type bridge vlan_filtering 1 vlan_default_pvid 0 \ 69 bridge vlan add vid 10 dev br0 self 70 bridge vlan add vid 20 dev br0 self 75 bridge vlan add vid 10 dev $swp1 76 bridge vlan add vid 20 dev $swp1 80 bridge vlan add vid 10 dev $swp2 81 bridge vlan add vid 20 dev $swp2 92 bridge vlan del vid 20 dev $swp2 93 bridge vlan del vid 10 dev $swp2 97 bridge vlan del vid 20 dev $swp1 [all …]
|
D | bridge_locked_port.sh | 45 ip link add dev br0 type bridge vlan_filtering 1 50 bridge link set dev $swp1 learning off 102 bridge link set dev $swp1 locked on 107 bridge fdb add `mac_get $h1` dev $swp1 master static 112 bridge link set dev $swp1 locked off 113 bridge fdb del `mac_get $h1` dev $swp1 master static 127 bridge vlan add vid 100 dev $swp1 128 bridge vlan add vid 100 dev $swp2 133 bridge link set dev $swp1 locked on 137 bridge fdb add `mac_get $h1` dev $swp1 vlan 100 master static [all …]
|
D | bridge_vlan_mcast.sh | 40 ip link add dev br0 type bridge mcast_snooping 1 mcast_querier 1 vlan_filtering 1 52 bridge vlan add vid 10-11 dev $swp1 master 53 bridge vlan add vid 10-11 dev $swp2 master 55 ip link set dev br0 type bridge mcast_vlan_snooping 1 108 bridge -j mdb show dev br0 | 120 bridge -j mdb show dev br0 | 130 local goutput=`bridge -j vlan global show` 144 bridge vlan global set vid 10 dev br0 mcast_snooping 0 176 ip link set dev br0 type bridge mcast_stats_enabled 1 183 ip link set dev br0 type bridge mcast_stats_enabled 0 [all …]
|
/linux-6.12.1/drivers/pci/hotplug/ |
D | acpiphp_glue.c | 105 WARN_ON(context->bridge); in acpiphp_put_context() 110 static inline void get_bridge(struct acpiphp_bridge *bridge) in get_bridge() argument 112 kref_get(&bridge->ref); in get_bridge() 115 static inline void put_bridge(struct acpiphp_bridge *bridge) in put_bridge() argument 117 kref_put(&bridge->ref, free_bridge); in put_bridge() 152 struct acpiphp_bridge *bridge; in free_bridge() local 158 bridge = container_of(kref, struct acpiphp_bridge, ref); in free_bridge() 160 list_for_each_entry_safe(slot, next, &bridge->slots, node) { in free_bridge() 167 context = bridge->context; in free_bridge() 172 context->bridge = NULL; in free_bridge() [all …]
|
/linux-6.12.1/drivers/net/ethernet/intel/ice/ |
D | ice_eswitch_br.c | 273 ice_eswitch_br_fdb_find(struct ice_esw_br *bridge, const unsigned char *mac, in ice_eswitch_br_fdb_find() argument 281 return rhashtable_lookup_fast(&bridge->fdb_ht, &data, in ice_eswitch_br_fdb_find() 305 ice_esw_br_port_vlan_lookup(struct ice_esw_br *bridge, u16 vsi_idx, u16 vid) in ice_esw_br_port_vlan_lookup() argument 307 struct ice_pf *pf = bridge->br_offloads->pf; in ice_esw_br_port_vlan_lookup() 312 port = xa_load(&bridge->ports, vsi_idx); in ice_esw_br_port_vlan_lookup() 329 ice_eswitch_br_fdb_entry_delete(struct ice_esw_br *bridge, in ice_eswitch_br_fdb_entry_delete() argument 332 struct ice_pf *pf = bridge->br_offloads->pf; in ice_eswitch_br_fdb_entry_delete() 334 rhashtable_remove_fast(&bridge->fdb_ht, &fdb_entry->ht_node, in ice_eswitch_br_fdb_entry_delete() 358 ice_eswitch_br_fdb_entry_notify_and_cleanup(struct ice_esw_br *bridge, in ice_eswitch_br_fdb_entry_notify_and_cleanup() argument 365 ice_eswitch_br_fdb_entry_delete(bridge, entry); in ice_eswitch_br_fdb_entry_notify_and_cleanup() [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | bridge.c | 468 struct mlx5_esw_bridge *bridge) in mlx5_esw_bridge_egress_table_init() argument 537 bridge->egress_ft = egress_ft; in mlx5_esw_bridge_egress_table_init() 538 bridge->egress_vlan_fg = vlan_fg; in mlx5_esw_bridge_egress_table_init() 539 bridge->egress_qinq_fg = qinq_fg; in mlx5_esw_bridge_egress_table_init() 540 bridge->egress_mac_fg = mac_fg; in mlx5_esw_bridge_egress_table_init() 541 bridge->egress_miss_fg = miss_fg; in mlx5_esw_bridge_egress_table_init() 542 bridge->egress_miss_pkt_reformat = miss_pkt_reformat; in mlx5_esw_bridge_egress_table_init() 543 bridge->egress_miss_handle = miss_handle; in mlx5_esw_bridge_egress_table_init() 556 mlx5_esw_bridge_egress_table_cleanup(struct mlx5_esw_bridge *bridge) in mlx5_esw_bridge_egress_table_cleanup() argument 558 if (bridge->egress_miss_handle) in mlx5_esw_bridge_egress_table_cleanup() [all …]
|
/linux-6.12.1/drivers/pci/pcie/ |
D | err.c | 181 static void pci_walk_bridge(struct pci_dev *bridge, in pci_walk_bridge() argument 185 if (bridge->subordinate) in pci_walk_bridge() 186 pci_walk_bus(bridge->subordinate, cb, userdata); in pci_walk_bridge() 188 cb(bridge, userdata); in pci_walk_bridge() 196 struct pci_dev *bridge; in pcie_do_recovery() local 213 bridge = dev; in pcie_do_recovery() 215 bridge = pci_upstream_bridge(dev); in pcie_do_recovery() 217 pci_walk_bridge(bridge, pci_pm_runtime_get_sync, NULL); in pcie_do_recovery() 219 pci_dbg(bridge, "broadcast error_detected message\n"); in pcie_do_recovery() 221 pci_walk_bridge(bridge, report_frozen_detected, &status); in pcie_do_recovery() [all …]
|
/linux-6.12.1/drivers/pci/controller/ |
D | pci-host-common.c | 24 struct pci_host_bridge *bridge, const struct pci_ecam_ops *ops) in gen_pci_init() argument 37 bus = resource_list_first_type(&bridge->windows, IORESOURCE_BUS); in gen_pci_init() 55 struct pci_host_bridge *bridge; in pci_host_common_probe() local 63 bridge = devm_pci_alloc_host_bridge(dev, 0); in pci_host_common_probe() 64 if (!bridge) in pci_host_common_probe() 67 platform_set_drvdata(pdev, bridge); in pci_host_common_probe() 72 cfg = gen_pci_init(dev, bridge, ops); in pci_host_common_probe() 76 bridge->sysdata = cfg; in pci_host_common_probe() 77 bridge->ops = (struct pci_ops *)&ops->pci_ops; in pci_host_common_probe() 78 bridge->msi_domain = true; in pci_host_common_probe() [all …]
|
/linux-6.12.1/drivers/gpu/drm/msm/hdmi/ |
D | hdmi_bridge.c | 14 static void msm_hdmi_power_on(struct drm_bridge *bridge) in msm_hdmi_power_on() argument 16 struct drm_device *dev = bridge->dev; in msm_hdmi_power_on() 17 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); in msm_hdmi_power_on() 46 static void power_off(struct drm_bridge *bridge) in power_off() argument 48 struct drm_device *dev = bridge->dev; in power_off() 49 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); in power_off() 129 static void msm_hdmi_bridge_pre_enable(struct drm_bridge *bridge) in msm_hdmi_bridge_pre_enable() argument 131 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); in msm_hdmi_bridge_pre_enable() 139 msm_hdmi_power_on(bridge); in msm_hdmi_bridge_pre_enable() 155 static void msm_hdmi_bridge_post_disable(struct drm_bridge *bridge) in msm_hdmi_bridge_post_disable() argument [all …]
|