Home
last modified time | relevance | path

Searched refs:bridge (Results 1 – 25 of 415) sorted by relevance

12345678910>>...17

/drivers/gpu/drm/
Ddrm_bridge.c164 void drm_bridge_add(struct drm_bridge *bridge) in drm_bridge_add() argument
166 mutex_init(&bridge->hpd_mutex); in drm_bridge_add()
169 list_add_tail(&bridge->list, &bridge_list); in drm_bridge_add()
174 static void drm_bridge_remove_void(void *bridge) in drm_bridge_remove_void() argument
176 drm_bridge_remove(bridge); in drm_bridge_remove_void()
190 int devm_drm_bridge_add(struct device *dev, struct drm_bridge *bridge) in devm_drm_bridge_add() argument
192 drm_bridge_add(bridge); in devm_drm_bridge_add()
193 return devm_add_action_or_reset(dev, drm_bridge_remove_void, bridge); in devm_drm_bridge_add()
202 void drm_bridge_remove(struct drm_bridge *bridge) in drm_bridge_remove() argument
205 list_del_init(&bridge->list); in drm_bridge_remove()
[all …]
Ddrm_bridge_connector.c101 struct drm_bridge *bridge; in drm_bridge_connector_hpd_notify() local
104 drm_for_each_bridge_in_chain(bridge_connector->encoder, bridge) { in drm_bridge_connector_hpd_notify()
105 if (bridge->funcs->hpd_notify) in drm_bridge_connector_hpd_notify()
106 bridge->funcs->hpd_notify(bridge, status); in drm_bridge_connector_hpd_notify()
225 struct drm_bridge *bridge; in drm_bridge_connector_debugfs_init() local
227 list_for_each_entry(bridge, &encoder->bridge_chain, chain_node) { in drm_bridge_connector_debugfs_init()
228 if (bridge->funcs->debugfs_init) in drm_bridge_connector_debugfs_init()
229 bridge->funcs->debugfs_init(bridge, root); in drm_bridge_connector_debugfs_init()
248 struct drm_bridge *bridge) in drm_bridge_connector_get_modes_edid() argument
258 edid = bridge->funcs->get_edid(bridge, connector); in drm_bridge_connector_get_modes_edid()
[all …]
/drivers/char/agp/
Dbackend.c70 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 …]
Dgeneric.c178 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 …]
Duninorth-agp.c227 static void uninorth_agp_enable(struct agp_bridge_data *bridge, u32 mode) in uninorth_agp_enable() argument
232 pci_read_config_dword(bridge->dev, in uninorth_agp_enable()
233 bridge->capndx + PCI_AGP_STATUS, in uninorth_agp_enable()
236 command = agp_collect_device_status(bridge, mode, status); in uninorth_agp_enable()
261 pci_write_config_dword(bridge->dev, in uninorth_agp_enable()
262 bridge->capndx + PCI_AGP_COMMAND, in uninorth_agp_enable()
264 pci_read_config_dword(bridge->dev, in uninorth_agp_enable()
265 bridge->capndx + PCI_AGP_COMMAND, in uninorth_agp_enable()
269 dev_err(&bridge->dev->dev, "can't write UniNorth AGP " in uninorth_agp_enable()
291 struct agp_bridge_data *bridge; in agp_uninorth_suspend() local
[all …]
/drivers/fpga/
Dfpga-bridge.c29 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 && 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 && 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
64 bridge = to_fpga_bridge(dev); in __fpga_bridge_get()
[all …]
/drivers/pci/
Dpci-bridge-emul.c318 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 …]
Dprobe.c93 put_device(pci_bus->bridge); in release_pcibus_dev()
348 static void pci_read_bridge_windows(struct pci_dev *bridge) in pci_read_bridge_windows() argument
353 pci_read_config_word(bridge, PCI_IO_BASE, &io); in pci_read_bridge_windows()
355 pci_write_config_word(bridge, PCI_IO_BASE, 0xe0f0); in pci_read_bridge_windows()
356 pci_read_config_word(bridge, PCI_IO_BASE, &io); in pci_read_bridge_windows()
357 pci_write_config_word(bridge, PCI_IO_BASE, 0x0); in pci_read_bridge_windows()
360 bridge->io_window = 1; in pci_read_bridge_windows()
367 if (bridge->vendor == PCI_VENDOR_ID_DEC && bridge->device == 0x0001) in pci_read_bridge_windows()
370 pci_read_config_dword(bridge, PCI_PREF_MEMORY_BASE, &pmem); in pci_read_bridge_windows()
372 pci_write_config_dword(bridge, PCI_PREF_MEMORY_BASE, in pci_read_bridge_windows()
[all …]
Dsetup-bus.c508 struct pci_dev *bridge = bus->self; in pci_setup_cardbus() local
512 pci_info(bridge, "CardBus bridge to %pR\n", in pci_setup_cardbus()
516 pcibios_resource_to_bus(bridge->bus, &region, res); in pci_setup_cardbus()
522 pci_info(bridge, " bridge window %pR\n", res); in pci_setup_cardbus()
523 pci_write_config_dword(bridge, PCI_CB_IO_BASE_0, in pci_setup_cardbus()
525 pci_write_config_dword(bridge, PCI_CB_IO_LIMIT_0, in pci_setup_cardbus()
530 pcibios_resource_to_bus(bridge->bus, &region, res); in pci_setup_cardbus()
532 pci_info(bridge, " bridge window %pR\n", res); in pci_setup_cardbus()
533 pci_write_config_dword(bridge, PCI_CB_IO_BASE_1, in pci_setup_cardbus()
535 pci_write_config_dword(bridge, PCI_CB_IO_LIMIT_1, in pci_setup_cardbus()
[all …]
/drivers/media/i2c/
Dst-mipid02.c241 static int mipid02_read_reg(struct mipid02_dev *bridge, u16 reg, u8 *val) in mipid02_read_reg() argument
243 struct i2c_client *client = bridge->i2c_client; in mipid02_read_reg()
271 static int mipid02_write_reg(struct mipid02_dev *bridge, u16 reg, u8 val) in mipid02_write_reg() argument
273 struct i2c_client *client = bridge->i2c_client; in mipid02_write_reg()
297 static int mipid02_get_regulators(struct mipid02_dev *bridge) in mipid02_get_regulators() argument
302 bridge->supplies[i].supply = mipid02_supply_name[i]; in mipid02_get_regulators()
304 return devm_regulator_bulk_get(&bridge->i2c_client->dev, in mipid02_get_regulators()
306 bridge->supplies); in mipid02_get_regulators()
309 static void mipid02_apply_reset(struct mipid02_dev *bridge) in mipid02_apply_reset() argument
311 gpiod_set_value_cansleep(bridge->reset_gpio, 0); in mipid02_apply_reset()
[all …]
/drivers/gpu/drm/bridge/
Dpanel.c19 struct drm_bridge bridge; member
26 drm_bridge_to_panel_bridge(struct drm_bridge *bridge) in drm_bridge_to_panel_bridge() argument
28 return container_of(bridge, struct panel_bridge, bridge); in drm_bridge_to_panel_bridge()
58 static int panel_bridge_attach(struct drm_bridge *bridge, in panel_bridge_attach() argument
61 struct panel_bridge *panel_bridge = drm_bridge_to_panel_bridge(bridge); in panel_bridge_attach()
68 if (!bridge->encoder) { in panel_bridge_attach()
76 ret = drm_connector_init(bridge->dev, connector, in panel_bridge_attach()
85 bridge->encoder); in panel_bridge_attach()
87 if (bridge->dev->registered) { in panel_bridge_attach()
96 static void panel_bridge_detach(struct drm_bridge *bridge) in panel_bridge_detach() argument
[all …]
Ddisplay-connector.c22 struct drm_bridge bridge; member
32 to_display_connector(struct drm_bridge *bridge) in to_display_connector() argument
34 return container_of(bridge, struct display_connector, bridge); in to_display_connector()
37 static int display_connector_attach(struct drm_bridge *bridge, in display_connector_attach() argument
44 display_connector_detect(struct drm_bridge *bridge) in display_connector_detect() argument
46 struct display_connector *conn = to_display_connector(bridge); in display_connector_detect()
55 if (conn->bridge.ddc && drm_probe_ddc(conn->bridge.ddc)) in display_connector_detect()
58 switch (conn->bridge.type) { in display_connector_detect()
85 static struct edid *display_connector_get_edid(struct drm_bridge *bridge, in display_connector_get_edid() argument
88 struct display_connector *conn = to_display_connector(bridge); in display_connector_get_edid()
[all …]
Dti-tpd12s015.c25 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 …]
Dnxp-ptn3460.c31 struct drm_bridge bridge; member
40 bridge_to_ptn3460(struct drm_bridge *bridge) in bridge_to_ptn3460() argument
42 return container_of(bridge, struct ptn3460_bridge, bridge); in bridge_to_ptn3460()
115 static void ptn3460_pre_enable(struct drm_bridge *bridge) in ptn3460_pre_enable() argument
117 struct ptn3460_bridge *ptn_bridge = bridge_to_ptn3460(bridge); in ptn3460_pre_enable()
143 static void ptn3460_disable(struct drm_bridge *bridge) in ptn3460_disable() argument
145 struct ptn3460_bridge *ptn_bridge = bridge_to_ptn3460(bridge); in ptn3460_disable()
157 static struct edid *ptn3460_get_edid(struct drm_bridge *bridge, in ptn3460_get_edid() argument
160 struct ptn3460_bridge *ptn_bridge = bridge_to_ptn3460(bridge); in ptn3460_get_edid()
166 ptn3460_pre_enable(&ptn_bridge->bridge); in ptn3460_get_edid()
[all …]
Dlvds-codec.c22 struct drm_bridge bridge; member
31 static inline struct lvds_codec *to_lvds_codec(struct drm_bridge *bridge) in to_lvds_codec() argument
33 return container_of(bridge, struct lvds_codec, bridge); in to_lvds_codec()
36 static int lvds_codec_attach(struct drm_bridge *bridge, in lvds_codec_attach() argument
39 struct lvds_codec *lvds_codec = to_lvds_codec(bridge); in lvds_codec_attach()
41 return drm_bridge_attach(bridge->encoder, lvds_codec->panel_bridge, in lvds_codec_attach()
42 bridge, flags); in lvds_codec_attach()
45 static void lvds_codec_enable(struct drm_bridge *bridge) in lvds_codec_enable() argument
47 struct lvds_codec *lvds_codec = to_lvds_codec(bridge); in lvds_codec_enable()
61 static void lvds_codec_disable(struct drm_bridge *bridge) in lvds_codec_disable() argument
[all …]
/drivers/staging/vme_user/
Dvme_fake.c96 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 …]
Dvme.c84 struct vme_bridge *bridge; in vme_alloc_consistent() local
91 bridge = find_bridge(resource); in vme_alloc_consistent()
92 if (!bridge) { in vme_alloc_consistent()
97 if (!bridge->parent) { in vme_alloc_consistent()
98 printk(KERN_ERR "Dev entry NULL for bridge %s\n", bridge->name); in vme_alloc_consistent()
102 if (!bridge->alloc_consistent) { in vme_alloc_consistent()
104 bridge->name); in vme_alloc_consistent()
108 return bridge->alloc_consistent(bridge->parent, size, dma); in vme_alloc_consistent()
124 struct vme_bridge *bridge; in vme_free_consistent() local
131 bridge = find_bridge(resource); in vme_free_consistent()
[all …]
Dvme_tsi148.c75 static u32 tsi148_DMA_irqhandler(struct tsi148_driver *bridge, in tsi148_DMA_irqhandler() argument
81 wake_up(&bridge->dma_queue[0]); in tsi148_DMA_irqhandler()
85 wake_up(&bridge->dma_queue[1]); in tsi148_DMA_irqhandler()
95 static u32 tsi148_LM_irqhandler(struct tsi148_driver *bridge, u32 stat) in tsi148_LM_irqhandler() argument
103 bridge->lm_callback[i](bridge->lm_data[i]); in tsi148_LM_irqhandler()
121 struct tsi148_driver *bridge; in tsi148_MB_irqhandler() local
123 bridge = tsi148_bridge->driver_priv; in tsi148_MB_irqhandler()
127 val = ioread32be(bridge->base + TSI148_GCSR_MBOX[i]); in tsi148_MB_irqhandler()
142 struct tsi148_driver *bridge; in tsi148_PERR_irqhandler() local
144 bridge = tsi148_bridge->driver_priv; in tsi148_PERR_irqhandler()
[all …]
/drivers/pci/hotplug/
Dacpiphp_glue.c105 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 …]
/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dbridge.c553 struct mlx5_esw_bridge *bridge) in mlx5_esw_bridge_egress_table_init() argument
622 bridge->egress_ft = egress_ft; in mlx5_esw_bridge_egress_table_init()
623 bridge->egress_vlan_fg = vlan_fg; in mlx5_esw_bridge_egress_table_init()
624 bridge->egress_qinq_fg = qinq_fg; in mlx5_esw_bridge_egress_table_init()
625 bridge->egress_mac_fg = mac_fg; in mlx5_esw_bridge_egress_table_init()
626 bridge->egress_miss_fg = miss_fg; in mlx5_esw_bridge_egress_table_init()
627 bridge->egress_miss_pkt_reformat = miss_pkt_reformat; in mlx5_esw_bridge_egress_table_init()
628 bridge->egress_miss_handle = miss_handle; in mlx5_esw_bridge_egress_table_init()
641 mlx5_esw_bridge_egress_table_cleanup(struct mlx5_esw_bridge *bridge) in mlx5_esw_bridge_egress_table_cleanup() argument
643 if (bridge->egress_miss_handle) in mlx5_esw_bridge_egress_table_cleanup()
[all …]
/drivers/gpu/drm/msm/hdmi/
Dhdmi_bridge.c14 void msm_hdmi_bridge_destroy(struct drm_bridge *bridge) in msm_hdmi_bridge_destroy() argument
16 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); in msm_hdmi_bridge_destroy()
19 drm_bridge_remove(bridge); in msm_hdmi_bridge_destroy()
22 static void msm_hdmi_power_on(struct drm_bridge *bridge) in msm_hdmi_power_on() argument
24 struct drm_device *dev = bridge->dev; in msm_hdmi_power_on()
25 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); in msm_hdmi_power_on()
54 static void power_off(struct drm_bridge *bridge) in power_off() argument
56 struct drm_device *dev = bridge->dev; in power_off()
57 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); in power_off()
137 static void msm_hdmi_bridge_pre_enable(struct drm_bridge *bridge) in msm_hdmi_bridge_pre_enable() argument
[all …]
/drivers/gpu/drm/msm/dp/
Ddp_drm.c21 static enum drm_connector_status dp_bridge_detect(struct drm_bridge *bridge) in dp_bridge_detect() argument
25 dp = to_dp_bridge(bridge)->dp_display; in dp_bridge_detect()
34 static int dp_bridge_atomic_check(struct drm_bridge *bridge, in dp_bridge_atomic_check() argument
41 dp = to_dp_bridge(bridge)->dp_display; in dp_bridge_atomic_check()
57 if (bridge->ops & DRM_BRIDGE_OP_HPD) in dp_bridge_atomic_check()
70 static int dp_bridge_get_modes(struct drm_bridge *bridge, struct drm_connector *connector) in dp_bridge_get_modes() argument
78 dp = to_dp_bridge(bridge)->dp_display; in dp_bridge_get_modes()
112 struct drm_bridge *bridge; in dp_bridge_init() local
120 bridge = &dp_bridge->bridge; in dp_bridge_init()
121 bridge->funcs = &dp_bridge_ops; in dp_bridge_init()
[all …]
/drivers/net/ethernet/marvell/prestera/
Dprestera_switchdev.c52 struct prestera_bridge *bridge; member
82 struct prestera_bridge *bridge; member
100 struct prestera_bridge *bridge; in prestera_bridge_find() local
102 list_for_each_entry(bridge, &sw->swdev->bridge_list, head) in prestera_bridge_find()
103 if (bridge->dev == br_dev) in prestera_bridge_find()
104 return bridge; in prestera_bridge_find()
110 __prestera_bridge_port_find(const struct prestera_bridge *bridge, in __prestera_bridge_port_find() argument
115 list_for_each_entry(br_port, &bridge->port_list, head) in __prestera_bridge_port_find()
127 struct prestera_bridge *bridge; in prestera_bridge_port_find() local
132 bridge = prestera_bridge_find(sw, br_dev); in prestera_bridge_port_find()
[all …]
/drivers/media/pci/intel/ipu3/
Dcio2-bridge.c129 struct cio2_bridge *bridge, in cio2_bridge_create_fwnode_properties() argument
164 bridge->data_lanes, in cio2_bridge_create_fwnode_properties()
178 bridge->data_lanes, in cio2_bridge_create_fwnode_properties()
198 static void cio2_bridge_create_connection_swnodes(struct cio2_bridge *bridge, in cio2_bridge_create_connection_swnodes() argument
214 &bridge->cio2_hid_node); in cio2_bridge_create_connection_swnodes()
248 static void cio2_bridge_unregister_sensors(struct cio2_bridge *bridge) in cio2_bridge_unregister_sensors() argument
253 for (i = 0; i < bridge->n_sensors; i++) { in cio2_bridge_unregister_sensors()
254 sensor = &bridge->sensors[i]; in cio2_bridge_unregister_sensors()
263 struct cio2_bridge *bridge, in cio2_bridge_connect_sensor() argument
276 if (bridge->n_sensors >= CIO2_NUM_PORTS) { in cio2_bridge_connect_sensor()
[all …]
/drivers/pci/pcie/
Derr.c174 static void pci_walk_bridge(struct pci_dev *bridge, in pci_walk_bridge() argument
178 if (bridge->subordinate) in pci_walk_bridge()
179 pci_walk_bus(bridge->subordinate, cb, userdata); in pci_walk_bridge()
181 cb(bridge, userdata); in pci_walk_bridge()
189 struct pci_dev *bridge; in pcie_do_recovery() local
206 bridge = dev; in pcie_do_recovery()
208 bridge = pci_upstream_bridge(dev); in pcie_do_recovery()
210 pci_dbg(bridge, "broadcast error_detected message\n"); in pcie_do_recovery()
212 pci_walk_bridge(bridge, report_frozen_detected, &status); in pcie_do_recovery()
213 if (reset_subordinates(bridge) != PCI_ERS_RESULT_RECOVERED) { in pcie_do_recovery()
[all …]

12345678910>>...17