Home
last modified time | relevance | path

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

12345678910>>...30

/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_bridge.c102 void drm_bridge_add(struct drm_bridge *bridge) in drm_bridge_add() argument
104 mutex_init(&bridge->hpd_mutex); in drm_bridge_add()
107 list_add_tail(&bridge->list, &bridge_list); in drm_bridge_add()
117 void drm_bridge_remove(struct drm_bridge *bridge) in drm_bridge_remove() argument
120 list_del_init(&bridge->list); in drm_bridge_remove()
123 mutex_destroy(&bridge->hpd_mutex); in drm_bridge_remove()
130 struct drm_bridge *bridge = drm_priv_to_bridge(obj); in drm_bridge_atomic_duplicate_priv_state() local
133 state = bridge->funcs->atomic_duplicate_state(bridge); in drm_bridge_atomic_duplicate_priv_state()
142 struct drm_bridge *bridge = drm_priv_to_bridge(obj); in drm_bridge_atomic_destroy_priv_state() local
144 bridge->funcs->atomic_destroy_state(bridge, state); in drm_bridge_atomic_destroy_priv_state()
[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()
233 struct drm_bridge *bridge) in drm_bridge_connector_get_modes_edid() argument
243 edid = bridge->funcs->get_edid(bridge, connector); in drm_bridge_connector_get_modes_edid()
264 struct drm_bridge *bridge; in drm_bridge_connector_get_modes() local
270 bridge = bridge_connector->bridge_edid; in drm_bridge_connector_get_modes()
271 if (bridge) in drm_bridge_connector_get_modes()
272 return drm_bridge_connector_get_modes_edid(connector, bridge); in drm_bridge_connector_get_modes()
[all …]
/kernel/linux/linux-5.10/drivers/char/agp/
Dbackend.c69 struct agp_bridge_data *bridge; in agp_backend_acquire() local
71 bridge = agp_find_bridge(pdev); in agp_backend_acquire()
73 if (!bridge) in agp_backend_acquire()
76 if (atomic_read(&bridge->agp_in_use)) in agp_backend_acquire()
78 atomic_inc(&bridge->agp_in_use); in agp_backend_acquire()
79 return bridge; in agp_backend_acquire()
92 void agp_backend_release(struct agp_bridge_data *bridge) in agp_backend_release() argument
95 if (bridge) in agp_backend_release()
96 atomic_dec(&bridge->agp_in_use); in agp_backend_release()
137 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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/media/i2c/
Dst-mipid02.c218 static int mipid02_read_reg(struct mipid02_dev *bridge, u16 reg, u8 *val) in mipid02_read_reg() argument
220 struct i2c_client *client = bridge->i2c_client; in mipid02_read_reg()
248 static int mipid02_write_reg(struct mipid02_dev *bridge, u16 reg, u8 val) in mipid02_write_reg() argument
250 struct i2c_client *client = bridge->i2c_client; in mipid02_write_reg()
274 static int mipid02_get_regulators(struct mipid02_dev *bridge) in mipid02_get_regulators() argument
279 bridge->supplies[i].supply = mipid02_supply_name[i]; in mipid02_get_regulators()
281 return devm_regulator_bulk_get(&bridge->i2c_client->dev, in mipid02_get_regulators()
283 bridge->supplies); in mipid02_get_regulators()
286 static void mipid02_apply_reset(struct mipid02_dev *bridge) in mipid02_apply_reset() argument
288 gpiod_set_value_cansleep(bridge->reset_gpio, 0); in mipid02_apply_reset()
[all …]
/kernel/linux/linux-5.10/include/drm/
Ddrm_bridge.h71 int (*attach)(struct drm_bridge *bridge,
82 void (*detach)(struct drm_bridge *bridge);
115 enum drm_mode_status (*mode_valid)(struct drm_bridge *bridge,
156 bool (*mode_fixup)(struct drm_bridge *bridge,
175 void (*disable)(struct drm_bridge *bridge);
194 void (*post_disable)(struct drm_bridge *bridge);
222 void (*mode_set)(struct drm_bridge *bridge,
243 void (*pre_enable)(struct drm_bridge *bridge);
263 void (*enable)(struct drm_bridge *bridge);
288 void (*atomic_pre_enable)(struct drm_bridge *bridge,
[all …]
/kernel/linux/linux-5.10/drivers/vme/bridges/
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_ca91cx42.c55 static u32 ca91cx42_DMA_irqhandler(struct ca91cx42_driver *bridge) in ca91cx42_DMA_irqhandler() argument
57 wake_up(&bridge->dma_queue); in ca91cx42_DMA_irqhandler()
62 static u32 ca91cx42_LM_irqhandler(struct ca91cx42_driver *bridge, u32 stat) in ca91cx42_LM_irqhandler() argument
70 bridge->lm_callback[i](bridge->lm_data[i]); in ca91cx42_LM_irqhandler()
79 static u32 ca91cx42_MB_irqhandler(struct ca91cx42_driver *bridge, int mbox_mask) in ca91cx42_MB_irqhandler() argument
81 wake_up(&bridge->mbox_queue); in ca91cx42_MB_irqhandler()
86 static u32 ca91cx42_IACK_irqhandler(struct ca91cx42_driver *bridge) in ca91cx42_IACK_irqhandler() argument
88 wake_up(&bridge->iack_queue); in ca91cx42_IACK_irqhandler()
96 struct ca91cx42_driver *bridge; in ca91cx42_VERR_irqhandler() local
98 bridge = ca91cx42_bridge->driver_priv; in ca91cx42_VERR_irqhandler()
[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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/
Dpanel.c17 struct drm_bridge bridge; member
24 drm_bridge_to_panel_bridge(struct drm_bridge *bridge) in drm_bridge_to_panel_bridge() argument
26 return container_of(bridge, struct panel_bridge, bridge); in drm_bridge_to_panel_bridge()
56 static int panel_bridge_attach(struct drm_bridge *bridge, in panel_bridge_attach() argument
59 struct panel_bridge *panel_bridge = drm_bridge_to_panel_bridge(bridge); in panel_bridge_attach()
66 if (!bridge->encoder) { in panel_bridge_attach()
74 ret = drm_connector_init(bridge->dev, connector, in panel_bridge_attach()
83 bridge->encoder); in panel_bridge_attach()
88 static void panel_bridge_detach(struct drm_bridge *bridge) in panel_bridge_detach() argument
90 struct panel_bridge *panel_bridge = drm_bridge_to_panel_bridge(bridge); in panel_bridge_detach()
[all …]
Ddisplay-connector.c19 struct drm_bridge bridge; member
26 to_display_connector(struct drm_bridge *bridge) in to_display_connector() argument
28 return container_of(bridge, struct display_connector, bridge); in to_display_connector()
31 static int display_connector_attach(struct drm_bridge *bridge, in display_connector_attach() argument
38 display_connector_detect(struct drm_bridge *bridge) in display_connector_detect() argument
40 struct display_connector *conn = to_display_connector(bridge); in display_connector_detect()
49 if (conn->bridge.ddc && drm_probe_ddc(conn->bridge.ddc)) in display_connector_detect()
52 switch (conn->bridge.type) { in display_connector_detect()
79 static struct edid *display_connector_get_edid(struct drm_bridge *bridge, in display_connector_get_edid() argument
82 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 …]
/kernel/linux/linux-5.10/drivers/pci/
Dpci-bridge-emul.c282 int pci_bridge_emul_init(struct pci_bridge_emul *bridge, in pci_bridge_emul_init() argument
285 BUILD_BUG_ON(sizeof(bridge->conf) != PCI_BRIDGE_CONF_END); in pci_bridge_emul_init()
287 bridge->conf.class_revision |= cpu_to_le32(PCI_CLASS_BRIDGE_PCI << 16); in pci_bridge_emul_init()
288 bridge->conf.header_type = PCI_HEADER_TYPE_BRIDGE; in pci_bridge_emul_init()
289 bridge->conf.cache_line_size = 0x10; in pci_bridge_emul_init()
290 bridge->conf.status = cpu_to_le16(PCI_STATUS_CAP_LIST); in pci_bridge_emul_init()
291 bridge->pci_regs_behavior = kmemdup(pci_regs_behavior, in pci_bridge_emul_init()
294 if (!bridge->pci_regs_behavior) in pci_bridge_emul_init()
297 if (bridge->has_pcie) { in pci_bridge_emul_init()
298 bridge->conf.capabilities_pointer = PCI_CAP_PCIE_START; in pci_bridge_emul_init()
[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 …]
/kernel/linux/linux-5.10/drivers/vme/
Dvme.c89 struct vme_bridge *bridge; in vme_alloc_consistent() local
96 bridge = find_bridge(resource); in vme_alloc_consistent()
97 if (!bridge) { in vme_alloc_consistent()
102 if (!bridge->parent) { in vme_alloc_consistent()
103 printk(KERN_ERR "Dev entry NULL for bridge %s\n", bridge->name); in vme_alloc_consistent()
107 if (!bridge->alloc_consistent) { in vme_alloc_consistent()
109 bridge->name); in vme_alloc_consistent()
113 return bridge->alloc_consistent(bridge->parent, size, dma); in vme_alloc_consistent()
129 struct vme_bridge *bridge; in vme_free_consistent() local
136 bridge = find_bridge(resource); in vme_free_consistent()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/edp/
Dedp_bridge.c14 void edp_bridge_destroy(struct drm_bridge *bridge) in edp_bridge_destroy() argument
18 static void edp_bridge_pre_enable(struct drm_bridge *bridge) in edp_bridge_pre_enable() argument
20 struct edp_bridge *edp_bridge = to_edp_bridge(bridge); in edp_bridge_pre_enable()
27 static void edp_bridge_enable(struct drm_bridge *bridge) in edp_bridge_enable() argument
32 static void edp_bridge_disable(struct drm_bridge *bridge) in edp_bridge_disable() argument
37 static void edp_bridge_post_disable(struct drm_bridge *bridge) in edp_bridge_post_disable() argument
39 struct edp_bridge *edp_bridge = to_edp_bridge(bridge); in edp_bridge_post_disable()
46 static void edp_bridge_mode_set(struct drm_bridge *bridge, in edp_bridge_mode_set() argument
50 struct drm_device *dev = bridge->dev; in edp_bridge_mode_set()
52 struct edp_bridge *edp_bridge = to_edp_bridge(bridge); in edp_bridge_mode_set()
[all …]
/kernel/linux/linux-5.10/drivers/pci/pcie/
Derr.c162 static void pci_walk_bridge(struct pci_dev *bridge, in pci_walk_bridge() argument
166 if (bridge->subordinate) in pci_walk_bridge()
167 pci_walk_bus(bridge->subordinate, cb, userdata); in pci_walk_bridge()
169 cb(bridge, userdata); in pci_walk_bridge()
177 struct pci_dev *bridge; in pcie_do_recovery() local
192 bridge = dev; in pcie_do_recovery()
194 bridge = pci_upstream_bridge(dev); in pcie_do_recovery()
196 pci_dbg(bridge, "broadcast error_detected message\n"); in pcie_do_recovery()
198 pci_walk_bridge(bridge, report_frozen_detected, &status); in pcie_do_recovery()
199 if (reset_subordinates(bridge) != PCI_ERS_RESULT_RECOVERED) { in pcie_do_recovery()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/hdmi/
Dhdmi_bridge.c13 void msm_hdmi_bridge_destroy(struct drm_bridge *bridge) in msm_hdmi_bridge_destroy() argument
15 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); in msm_hdmi_bridge_destroy()
20 static void msm_hdmi_power_on(struct drm_bridge *bridge) in msm_hdmi_power_on() argument
22 struct drm_device *dev = bridge->dev; in msm_hdmi_power_on()
23 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); in msm_hdmi_power_on()
56 static void power_off(struct drm_bridge *bridge) in power_off() argument
58 struct drm_device *dev = bridge->dev; in power_off()
59 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); in power_off()
143 static void msm_hdmi_bridge_pre_enable(struct drm_bridge *bridge) in msm_hdmi_bridge_pre_enable() argument
145 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); in msm_hdmi_bridge_pre_enable()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/fpga/
Daltera-hps2fpga-bridge.txt4 - regs : base address and size for AXI bridge module
6 "altr,socfpga-lwhps2fpga-bridge",
7 "altr,socfpga-hps2fpga-bridge", or
8 "altr,socfpga-fpga2hps-bridge"
9 - resets : Phandle and reset specifier for this bridge's reset
12 See Documentation/devicetree/bindings/fpga/fpga-bridge.txt for generic bindings.
15 fpga_bridge0: fpga-bridge@ff400000 {
16 compatible = "altr,socfpga-lwhps2fpga-bridge";
20 bridge-enable = <0>;
23 fpga_bridge1: fpga-bridge@ff500000 {
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/
Dprestera_switchdev.c49 struct prestera_bridge *bridge; member
113 static int prestera_bridge_vlan_port_count(struct prestera_bridge *bridge, in prestera_bridge_vlan_port_count() argument
120 list_for_each_entry(br_port, &bridge->port_list, head) { in prestera_bridge_vlan_port_count()
195 port_count = prestera_bridge_vlan_port_count(br_port->bridge, vid); in prestera_port_vlan_bridge_leave()
231 struct prestera_bridge *bridge; in prestera_bridge_create() local
240 bridge = kzalloc(sizeof(*bridge), GFP_KERNEL); in prestera_bridge_create()
241 if (!bridge) in prestera_bridge_create()
249 kfree(bridge); in prestera_bridge_create()
253 bridge->bridge_id = bridge_id; in prestera_bridge_create()
256 bridge->vlan_enabled = vlan_enabled; in prestera_bridge_create()
[all …]
/kernel/linux/linux-5.10/arch/sparc/kernel/
Dleon_pci.c29 struct pci_host_bridge *bridge; in leon_pci_init() local
32 bridge = pci_alloc_host_bridge(0); in leon_pci_init()
33 if (!bridge) in leon_pci_init()
42 list_splice_init(&resources, &bridge->windows); in leon_pci_init()
43 bridge->dev.parent = &ofdev->dev; in leon_pci_init()
44 bridge->sysdata = info; in leon_pci_init()
45 bridge->busnr = 0; in leon_pci_init()
46 bridge->ops = info->ops; in leon_pci_init()
47 bridge->swizzle_irq = pci_common_swizzle; in leon_pci_init()
48 bridge->map_irq = info->map_irq; in leon_pci_init()
[all …]

12345678910>>...30