Home
last modified time | relevance | path

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

12345678

/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.c183 curr->bridge->driver->free_by_type(curr); in agp_free_memory()
187 if (curr->bridge->driver->agp_destroy_pages) { in agp_free_memory()
188 curr->bridge->driver->agp_destroy_pages(curr); in agp_free_memory()
192 curr->bridge->driver->agp_destroy_page( in agp_free_memory()
197 curr->bridge->driver->agp_destroy_page( in agp_free_memory()
222 struct agp_memory *agp_allocate_memory(struct agp_bridge_data *bridge, in agp_allocate_memory() argument
230 if (!bridge) in agp_allocate_memory()
233 cur_memory = atomic_read(&bridge->current_memory_agp); in agp_allocate_memory()
234 if ((cur_memory + page_count > bridge->max_memory_agp) || in agp_allocate_memory()
241 new->bridge = bridge; in agp_allocate_memory()
[all …]
Dsgi-agp.c41 static struct page *sgi_tioca_alloc_page(struct agp_bridge_data *bridge) in sgi_tioca_alloc_page() argument
46 (struct tioca_kernel *)bridge->dev_private_data; in sgi_tioca_alloc_page()
65 tioca_tlbflush(mem->bridge->dev_private_data); in sgi_tioca_tlbflush()
73 sgi_tioca_mask_memory(struct agp_bridge_data *bridge, dma_addr_t addr, in sgi_tioca_mask_memory() argument
79 static void sgi_tioca_agp_enable(struct agp_bridge_data *bridge, u32 mode) in sgi_tioca_agp_enable() argument
81 tioca_fastwrite_enable(bridge->dev_private_data); in sgi_tioca_agp_enable()
110 static int sgi_tioca_create_gatt_table(struct agp_bridge_data *bridge) in sgi_tioca_create_gatt_table() argument
113 (struct tioca_kernel *)bridge->dev_private_data; in sgi_tioca_create_gatt_table()
115 bridge->gatt_table_real = (u32 *) info->ca_gfxgart; in sgi_tioca_create_gatt_table()
116 bridge->gatt_table = bridge->gatt_table_real; in sgi_tioca_create_gatt_table()
[all …]
Duninorth-agp.c226 static void uninorth_agp_enable(struct agp_bridge_data *bridge, u32 mode) in uninorth_agp_enable() argument
231 pci_read_config_dword(bridge->dev, in uninorth_agp_enable()
232 bridge->capndx + PCI_AGP_STATUS, in uninorth_agp_enable()
235 command = agp_collect_device_status(bridge, mode, status); in uninorth_agp_enable()
260 pci_write_config_dword(bridge->dev, in uninorth_agp_enable()
261 bridge->capndx + PCI_AGP_COMMAND, in uninorth_agp_enable()
263 pci_read_config_dword(bridge->dev, in uninorth_agp_enable()
264 bridge->capndx + PCI_AGP_COMMAND, in uninorth_agp_enable()
268 dev_err(&bridge->dev->dev, "can't write UniNorth AGP " in uninorth_agp_enable()
290 struct agp_bridge_data *bridge; in agp_uninorth_suspend() local
[all …]
Dagp.h167 #define A_IDX8(bridge) (A_SIZE_8((bridge)->driver->aperture_sizes) + i) argument
168 #define A_IDX16(bridge) (A_SIZE_16((bridge)->driver->aperture_sizes) + i) argument
169 #define A_IDX32(bridge) (A_SIZE_32((bridge)->driver->aperture_sizes) + i) argument
184 void agp_put_bridge(struct agp_bridge_data *bridge);
185 int agp_add_bridge(struct agp_bridge_data *bridge);
186 void agp_remove_bridge(struct agp_bridge_data *bridge);
193 void agp_generic_enable(struct agp_bridge_data *bridge, u32 mode);
194 int agp_generic_create_gatt_table(struct agp_bridge_data *bridge);
195 int agp_generic_free_gatt_table(struct agp_bridge_data *bridge);
201 struct page *agp_generic_alloc_page(struct agp_bridge_data *bridge);
[all …]
Dvia-agp.c429 static void check_via_agp3 (struct agp_bridge_data *bridge) in check_via_agp3() argument
433 pci_read_config_byte(bridge->dev, VIA_AGPSEL, &reg); in check_via_agp3()
436 bridge->driver = &via_agp3_driver; in check_via_agp3()
443 struct agp_bridge_data *bridge; in agp_via_probe() local
454 bridge = agp_alloc_bridge(); in agp_via_probe()
455 if (!bridge) in agp_via_probe()
458 bridge->dev = pdev; in agp_via_probe()
459 bridge->capndx = cap_ptr; in agp_via_probe()
460 bridge->driver = &via_driver; in agp_via_probe()
469 check_via_agp3(bridge); in agp_via_probe()
[all …]
Dsis-agp.c75 static void sis_delayed_enable(struct agp_bridge_data *bridge, u32 mode) in sis_delayed_enable() argument
85 command = agp_collect_device_status(bridge, mode, command); in sis_delayed_enable()
104 if (device->device == bridge->dev->device) { in sis_delayed_enable()
156 static void sis_get_driver(struct agp_bridge_data *bridge) in sis_get_driver() argument
161 if (bridge->dev->device==sis_broken_chipsets[i]) in sis_get_driver()
184 struct agp_bridge_data *bridge; in agp_sis_probe() local
194 bridge = agp_alloc_bridge(); in agp_sis_probe()
195 if (!bridge) in agp_sis_probe()
198 bridge->driver = &sis_driver; in agp_sis_probe()
199 bridge->dev = pdev; in agp_sis_probe()
[all …]
/drivers/gpu/drm/
Ddrm_bridge.c71 int drm_bridge_add(struct drm_bridge *bridge) in drm_bridge_add() argument
74 list_add_tail(&bridge->list, &bridge_list); in drm_bridge_add()
86 void drm_bridge_remove(struct drm_bridge *bridge) in drm_bridge_remove() argument
89 list_del_init(&bridge->list); in drm_bridge_remove()
109 int drm_bridge_attach(struct drm_device *dev, struct drm_bridge *bridge) in drm_bridge_attach() argument
111 if (!dev || !bridge) in drm_bridge_attach()
114 if (bridge->dev) in drm_bridge_attach()
117 bridge->dev = dev; in drm_bridge_attach()
119 if (bridge->funcs->attach) in drm_bridge_attach()
120 return bridge->funcs->attach(bridge); in drm_bridge_attach()
[all …]
/drivers/vme/bridges/
Dvme_fake.c100 struct fake_driver *bridge; in fake_VIRQ_tasklet() local
103 bridge = fake_bridge->driver_priv; in fake_VIRQ_tasklet()
105 vme_irq_handler(fake_bridge, bridge->int_level, bridge->int_statid); in fake_VIRQ_tasklet()
134 struct fake_driver *bridge; in fake_irq_generate() local
136 bridge = fake_bridge->driver_priv; in fake_irq_generate()
138 mutex_lock(&bridge->vme_int); in fake_irq_generate()
140 bridge->int_level = level; in fake_irq_generate()
142 bridge->int_statid = statid; in fake_irq_generate()
148 tasklet_schedule(&bridge->int_tasklet); in fake_irq_generate()
150 mutex_unlock(&bridge->vme_int); in fake_irq_generate()
[all …]
Dvme_ca91cx42.c59 static u32 ca91cx42_DMA_irqhandler(struct ca91cx42_driver *bridge) in ca91cx42_DMA_irqhandler() argument
61 wake_up(&bridge->dma_queue); in ca91cx42_DMA_irqhandler()
66 static u32 ca91cx42_LM_irqhandler(struct ca91cx42_driver *bridge, u32 stat) in ca91cx42_LM_irqhandler() argument
74 bridge->lm_callback[i](bridge->lm_data[i]); in ca91cx42_LM_irqhandler()
83 static u32 ca91cx42_MB_irqhandler(struct ca91cx42_driver *bridge, int mbox_mask) in ca91cx42_MB_irqhandler() argument
85 wake_up(&bridge->mbox_queue); in ca91cx42_MB_irqhandler()
90 static u32 ca91cx42_IACK_irqhandler(struct ca91cx42_driver *bridge) in ca91cx42_IACK_irqhandler() argument
92 wake_up(&bridge->iack_queue); in ca91cx42_IACK_irqhandler()
100 struct ca91cx42_driver *bridge; in ca91cx42_VERR_irqhandler() local
102 bridge = ca91cx42_bridge->driver_priv; in ca91cx42_VERR_irqhandler()
[all …]
Dvme_tsi148.c79 static u32 tsi148_DMA_irqhandler(struct tsi148_driver *bridge, in tsi148_DMA_irqhandler() argument
85 wake_up(&bridge->dma_queue[0]); in tsi148_DMA_irqhandler()
89 wake_up(&bridge->dma_queue[1]); in tsi148_DMA_irqhandler()
99 static u32 tsi148_LM_irqhandler(struct tsi148_driver *bridge, u32 stat) in tsi148_LM_irqhandler() argument
107 bridge->lm_callback[i](bridge->lm_data[i]); in tsi148_LM_irqhandler()
125 struct tsi148_driver *bridge; in tsi148_MB_irqhandler() local
127 bridge = tsi148_bridge->driver_priv; in tsi148_MB_irqhandler()
131 val = ioread32be(bridge->base + TSI148_GCSR_MBOX[i]); in tsi148_MB_irqhandler()
146 struct tsi148_driver *bridge; in tsi148_PERR_irqhandler() local
148 bridge = tsi148_bridge->driver_priv; in tsi148_PERR_irqhandler()
[all …]
/drivers/vme/
Dvme.c86 struct vme_bridge *bridge; in vme_alloc_consistent() local
93 bridge = find_bridge(resource); in vme_alloc_consistent()
94 if (bridge == NULL) { in vme_alloc_consistent()
99 if (bridge->parent == NULL) { in vme_alloc_consistent()
100 printk(KERN_ERR "Dev entry NULL for bridge %s\n", bridge->name); in vme_alloc_consistent()
104 if (bridge->alloc_consistent == NULL) { in vme_alloc_consistent()
106 bridge->name); in vme_alloc_consistent()
110 return bridge->alloc_consistent(bridge->parent, size, dma); in vme_alloc_consistent()
120 struct vme_bridge *bridge; in vme_free_consistent() local
127 bridge = find_bridge(resource); in vme_free_consistent()
[all …]
/drivers/pci/hotplug/
Dacpiphp_glue.c119 WARN_ON(context->bridge); in acpiphp_put_context()
124 static inline void get_bridge(struct acpiphp_bridge *bridge) in get_bridge() argument
126 kref_get(&bridge->ref); in get_bridge()
129 static inline void put_bridge(struct acpiphp_bridge *bridge) in put_bridge() argument
131 kref_put(&bridge->ref, free_bridge); in put_bridge()
158 struct acpiphp_bridge *bridge; in free_bridge() local
164 bridge = container_of(kref, struct acpiphp_bridge, ref); in free_bridge()
166 list_for_each_entry_safe(slot, next, &bridge->slots, node) { in free_bridge()
173 context = bridge->context; in free_bridge()
178 context->bridge = NULL; in free_bridge()
[all …]
/drivers/gpu/drm/msm/edp/
Dedp_bridge.c22 void edp_bridge_destroy(struct drm_bridge *bridge) in edp_bridge_destroy() argument
26 static void edp_bridge_pre_enable(struct drm_bridge *bridge) in edp_bridge_pre_enable() argument
28 struct edp_bridge *edp_bridge = to_edp_bridge(bridge); in edp_bridge_pre_enable()
35 static void edp_bridge_enable(struct drm_bridge *bridge) in edp_bridge_enable() argument
40 static void edp_bridge_disable(struct drm_bridge *bridge) in edp_bridge_disable() argument
45 static void edp_bridge_post_disable(struct drm_bridge *bridge) in edp_bridge_post_disable() argument
47 struct edp_bridge *edp_bridge = to_edp_bridge(bridge); in edp_bridge_post_disable()
54 static void edp_bridge_mode_set(struct drm_bridge *bridge, in edp_bridge_mode_set() argument
58 struct drm_device *dev = bridge->dev; in edp_bridge_mode_set()
60 struct edp_bridge *edp_bridge = to_edp_bridge(bridge); in edp_bridge_mode_set()
[all …]
/drivers/bus/
Dvexpress-config.c86 struct vexpress_config_bridge *bridge = dev_get_drvdata(dev->parent); in vexpress_config_devres_release() local
89 bridge->ops->regmap_exit(regmap, bridge->context); in vexpress_config_devres_release()
94 struct vexpress_config_bridge *bridge; in devm_regmap_init_vexpress_config() local
101 bridge = dev_get_drvdata(dev->parent); in devm_regmap_init_vexpress_config()
102 if (WARN_ON(!bridge)) in devm_regmap_init_vexpress_config()
110 regmap = (bridge->ops->regmap_init)(dev, bridge->context); in devm_regmap_init_vexpress_config()
127 struct vexpress_config_bridge *bridge; in vexpress_config_bridge_register() local
142 bridge = devm_kmalloc(dev, sizeof(*bridge), GFP_KERNEL); in vexpress_config_bridge_register()
143 if (!bridge) { in vexpress_config_bridge_register()
148 bridge->ops = ops; in vexpress_config_bridge_register()
[all …]
/drivers/gpu/drm/msm/hdmi/
Dhdmi_bridge.c26 void msm_hdmi_bridge_destroy(struct drm_bridge *bridge) in msm_hdmi_bridge_destroy() argument
30 static void msm_hdmi_power_on(struct drm_bridge *bridge) in msm_hdmi_power_on() argument
32 struct drm_device *dev = bridge->dev; in msm_hdmi_power_on()
33 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); in msm_hdmi_power_on()
64 static void power_off(struct drm_bridge *bridge) in power_off() argument
66 struct drm_device *dev = bridge->dev; in power_off()
67 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); in power_off()
89 static void msm_hdmi_bridge_pre_enable(struct drm_bridge *bridge) in msm_hdmi_bridge_pre_enable() argument
91 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); in msm_hdmi_bridge_pre_enable()
99 msm_hdmi_power_on(bridge); in msm_hdmi_bridge_pre_enable()
[all …]
/drivers/pci/host/
Dpci-mvebu.c156 struct mvebu_sw_pci_bridge bridge; member
420 if (port->bridge.iolimit < port->bridge.iobase || in mvebu_pcie_handle_iobase_change()
421 port->bridge.iolimitupper < port->bridge.iobaseupper || in mvebu_pcie_handle_iobase_change()
422 !(port->bridge.command & PCI_COMMAND_IO)) { in mvebu_pcie_handle_iobase_change()
441 desired.remap = ((port->bridge.iobase & 0xF0) << 8) | in mvebu_pcie_handle_iobase_change()
442 (port->bridge.iobaseupper << 16); in mvebu_pcie_handle_iobase_change()
444 desired.size = ((0xFFF | ((port->bridge.iolimit & 0xF0) << 8) | in mvebu_pcie_handle_iobase_change()
445 (port->bridge.iolimitupper << 16)) - in mvebu_pcie_handle_iobase_change()
458 if (port->bridge.memlimit < port->bridge.membase || in mvebu_pcie_handle_membase_change()
459 !(port->bridge.command & PCI_COMMAND_MEMORY)) { in mvebu_pcie_handle_membase_change()
[all …]
/drivers/pci/
Dsetup-bus.c527 struct pci_dev *bridge = bus->self; in pci_setup_cardbus() local
531 dev_info(&bridge->dev, "CardBus bridge to %pR\n", in pci_setup_cardbus()
535 pcibios_resource_to_bus(bridge->bus, &region, res); in pci_setup_cardbus()
541 dev_info(&bridge->dev, " bridge window %pR\n", res); in pci_setup_cardbus()
542 pci_write_config_dword(bridge, PCI_CB_IO_BASE_0, in pci_setup_cardbus()
544 pci_write_config_dword(bridge, PCI_CB_IO_LIMIT_0, in pci_setup_cardbus()
549 pcibios_resource_to_bus(bridge->bus, &region, res); in pci_setup_cardbus()
551 dev_info(&bridge->dev, " bridge window %pR\n", res); in pci_setup_cardbus()
552 pci_write_config_dword(bridge, PCI_CB_IO_BASE_1, in pci_setup_cardbus()
554 pci_write_config_dword(bridge, PCI_CB_IO_LIMIT_1, in pci_setup_cardbus()
[all …]
Dhost-bridge.c23 return to_pci_host_bridge(root_bus->bridge); in pci_find_host_bridge()
29 struct device *bridge = root_bus->bridge; in pci_get_host_bridge_device() local
31 kobject_get(&bridge->kobj); in pci_get_host_bridge_device()
32 return bridge; in pci_get_host_bridge_device()
40 void pci_set_host_bridge_release(struct pci_host_bridge *bridge, in pci_set_host_bridge_release() argument
44 bridge->release_fn = release_fn; in pci_set_host_bridge_release()
45 bridge->release_data = release_data; in pci_set_host_bridge_release()
52 struct pci_host_bridge *bridge = pci_find_host_bridge(bus); in pcibios_resource_to_bus() local
56 resource_list_for_each_entry(window, &bridge->windows) { in pcibios_resource_to_bus()
77 struct pci_host_bridge *bridge = pci_find_host_bridge(bus); in pcibios_bus_to_resource() local
[all …]
/drivers/infiniband/hw/mthca/
Dmthca_reset.c47 struct pci_dev *bridge = NULL; in mthca_reset() local
72 while ((bridge = pci_get_device(mdev->pdev->vendor, in mthca_reset()
74 bridge)) != NULL) { in mthca_reset()
75 if (bridge->hdr_type == PCI_HEADER_TYPE_BRIDGE && in mthca_reset()
76 bridge->subordinate == mdev->pdev->bus) { in mthca_reset()
78 pci_name(bridge)); in mthca_reset()
83 if (!bridge) { in mthca_reset()
118 if (bridge) { in mthca_reset()
130 if (pci_read_config_dword(bridge, i * 4, bridge_header + i)) { in mthca_reset()
137 bridge_pcix_cap = pci_find_capability(bridge, PCI_CAP_ID_PCIX); in mthca_reset()
[all …]
/drivers/gpu/drm/bridge/
Dnxp-ptn3460.c42 struct drm_bridge bridge; member
52 bridge_to_ptn3460(struct drm_bridge *bridge) in bridge_to_ptn3460() argument
54 return container_of(bridge, struct ptn3460_bridge, bridge); in bridge_to_ptn3460()
127 static void ptn3460_pre_enable(struct drm_bridge *bridge) in ptn3460_pre_enable() argument
129 struct ptn3460_bridge *ptn_bridge = bridge_to_ptn3460(bridge); in ptn3460_pre_enable()
160 static void ptn3460_enable(struct drm_bridge *bridge) in ptn3460_enable() argument
162 struct ptn3460_bridge *ptn_bridge = bridge_to_ptn3460(bridge); in ptn3460_enable()
170 static void ptn3460_disable(struct drm_bridge *bridge) in ptn3460_disable() argument
172 struct ptn3460_bridge *ptn_bridge = bridge_to_ptn3460(bridge); in ptn3460_disable()
188 static void ptn3460_post_disable(struct drm_bridge *bridge) in ptn3460_post_disable() argument
[all …]
Ddumb-vga-dac.c22 struct drm_bridge bridge; member
29 drm_bridge_to_dumb_vga(struct drm_bridge *bridge) in drm_bridge_to_dumb_vga() argument
31 return container_of(bridge, struct dumb_vga, bridge); in drm_bridge_to_dumb_vga()
102 static int dumb_vga_attach(struct drm_bridge *bridge) in dumb_vga_attach() argument
104 struct dumb_vga *vga = drm_bridge_to_dumb_vga(bridge); in dumb_vga_attach()
107 if (!bridge->encoder) { in dumb_vga_attach()
114 ret = drm_connector_init(bridge->dev, &vga->connector, in dumb_vga_attach()
122 bridge->encoder); in dumb_vga_attach()
183 vga->bridge.funcs = &dumb_vga_bridge_funcs; in dumb_vga_probe()
184 vga->bridge.of_node = pdev->dev.of_node; in dumb_vga_probe()
[all …]
Dsii902x.c86 struct drm_bridge bridge; member
91 static inline struct sii902x *bridge_to_sii902x(struct drm_bridge *bridge) in bridge_to_sii902x() argument
93 return container_of(bridge, struct sii902x, bridge); in bridge_to_sii902x()
225 static void sii902x_bridge_disable(struct drm_bridge *bridge) in sii902x_bridge_disable() argument
227 struct sii902x *sii902x = bridge_to_sii902x(bridge); in sii902x_bridge_disable()
234 static void sii902x_bridge_enable(struct drm_bridge *bridge) in sii902x_bridge_enable() argument
236 struct sii902x *sii902x = bridge_to_sii902x(bridge); in sii902x_bridge_enable()
245 static void sii902x_bridge_mode_set(struct drm_bridge *bridge, in sii902x_bridge_mode_set() argument
249 struct sii902x *sii902x = bridge_to_sii902x(bridge); in sii902x_bridge_mode_set()
290 static int sii902x_bridge_attach(struct drm_bridge *bridge) in sii902x_bridge_attach() argument
[all …]
DKconfig11 tristate "Analogix ANX78XX bridge"
43 tristate "NXP PTN3460 DP/LVDS bridge"
48 NXP PTN3460 eDP-LVDS bridge chip driver.
51 tristate "Parade eDP/LVDS bridge"
58 Parade eDP-LVDS bridge chip driver.
61 tristate "Silicon Image sii902x RGB/HDMI bridge"
66 Silicon Image sii902x bridge chip driver.
69 tristate "Toshiba TC358767 eDP bridge"
75 Toshiba TC358767 eDP bridge chip driver.
77 source "drivers/gpu/drm/bridge/analogix/Kconfig"
[all …]
Dparade-ps8622.c56 struct drm_bridge bridge; member
71 bridge_to_ps8622(struct drm_bridge *bridge) in bridge_to_ps8622() argument
73 return container_of(bridge, struct ps8622_bridge, bridge); in bridge_to_ps8622()
361 static void ps8622_pre_enable(struct drm_bridge *bridge) in ps8622_pre_enable() argument
363 struct ps8622_bridge *ps8622 = bridge_to_ps8622(bridge); in ps8622_pre_enable()
411 static void ps8622_enable(struct drm_bridge *bridge) in ps8622_enable() argument
413 struct ps8622_bridge *ps8622 = bridge_to_ps8622(bridge); in ps8622_enable()
421 static void ps8622_disable(struct drm_bridge *bridge) in ps8622_disable() argument
423 struct ps8622_bridge *ps8622 = bridge_to_ps8622(bridge); in ps8622_disable()
432 static void ps8622_post_disable(struct drm_bridge *bridge) in ps8622_post_disable() argument
[all …]

12345678