Home
last modified time | relevance | path

Searched refs:device_t (Results 1 – 25 of 2188) sorted by relevance

12345678910>>...88

/freebsd/sys/dev/bhnd/
H A Dbhndvar.h55 struct bhnd_core_clkctl *bhnd_alloc_core_clkctl(device_t dev,
56 device_t pmu_dev, struct bhnd_resource *r,
64 int bhnd_generic_attach(device_t dev);
65 int bhnd_generic_detach(device_t dev);
66 int bhnd_generic_shutdown(device_t dev);
67 int bhnd_generic_resume(device_t dev);
68 int bhnd_generic_suspend(device_t dev);
70 int bhnd_generic_get_probe_order(device_t dev,
71 device_t child);
73 int bhnd_generic_alloc_pmu(device_t dev,
[all …]
H A Dbhnd.h451 device_t bhnd_bus_match_child(device_t bus,
454 device_t bhnd_bus_find_child(device_t bus,
457 int bhnd_bus_get_children(device_t bus,
458 device_t **devlistp, int *devcountp,
461 void bhnd_bus_free_children(device_t *devlist);
463 int bhnd_bus_probe_children(device_t bus);
465 int bhnd_sort_devices(device_t *devlist,
468 device_t bhnd_find_bridge_root(device_t dev,
502 bool bhnd_device_matches(device_t dev,
505 const struct bhnd_device *bhnd_device_lookup(device_t dev,
[all …]
/freebsd/sys/dev/ntb/
H A Dntb.h34 int ntb_register_device(device_t ntb);
35 int ntb_unregister_device(device_t ntb);
36 int ntb_child_location(device_t dev, device_t child, struct sbuf *sb);
37 int ntb_print_child(device_t dev, device_t child);
38 bus_dma_tag_t ntb_get_dma_tag(device_t bus, device_t child);
47 void ntb_link_event(device_t ntb);
62 void ntb_db_event(device_t ntb, uint32_t vec);
72 int ntb_port_number(device_t ntb);
82 int ntb_peer_port_count(device_t ntb);
94 int ntb_peer_port_number(device_t ntb, int pidx);
[all …]
/freebsd/sys/dev/pci/
H A Dpci_if.m35 null_msi_count(device_t dev, device_t child)
41 null_msix_bar(device_t dev, device_t child)
46 static device_t
47 null_create_iov_child(device_t bus, device_t pf, uint16_t rid,
72 device_t dev;
73 device_t child;
79 device_t dev;
80 device_t child;
87 device_t dev;
88 device_t child;
[all …]
H A Dpcib_private.h44 device_t hr_pcib;
48 int pcib_host_res_init(device_t pcib,
50 int pcib_host_res_free(device_t pcib,
55 device_t dev, int type, int *rid, rman_res_t start,
58 device_t dev, struct resource *r, rman_res_t start,
87 device_t dev;
99 device_t dev;
100 device_t child;
141 struct resource *pci_domain_alloc_bus(int domain, device_t dev, int *rid,
143 int pci_domain_adjust_bus(int domain, device_t dev,
[all …]
H A Dhostb_pci.c44 pci_hostb_probe(device_t dev) in pci_hostb_probe()
69 pci_hostb_attach(device_t dev) in pci_hostb_attach()
87 pci_hostb_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) in pci_hostb_read_ivar()
94 pci_hostb_write_ivar(device_t dev, device_t child, int which, uintptr_t value) in pci_hostb_write_ivar()
101 pci_hostb_alloc_resource(device_t dev, device_t child, int type, int *rid, in pci_hostb_alloc_resource()
109 pci_hostb_release_resource(device_t dev, device_t child, struct resource *r) in pci_hostb_release_resource()
118 pci_hostb_read_config(device_t dev, device_t child, int reg, int width) in pci_hostb_read_config()
125 pci_hostb_write_config(device_t dev, device_t child, int reg, in pci_hostb_write_config()
133 pci_hostb_enable_busmaster(device_t dev, device_t child) in pci_hostb_enable_busmaster()
142 pci_hostb_disable_busmaster(device_t dev, device_t child) in pci_hostb_disable_busmaster()
[all …]
H A Dpci_private.h117 void pci_add_children(device_t dev, int domain, int busno);
118 void pci_add_child(device_t bus, struct pci_devinfo *dinfo);
119 device_t pci_add_iov_child(device_t bus, device_t pf, uint16_t rid,
121 void pci_add_resources(device_t bus, device_t dev, int force,
123 void pci_add_resources_ea(device_t bus, device_t dev, int alloc_iov);
124 int pci_attach_common(device_t dev);
125 int pci_ea_is_enabled(device_t dev, int rid);
126 struct pci_devinfo *pci_read_device(device_t pcib, device_t bus, int d, int b,
136 void pci_cfg_restore(device_t, struct pci_devinfo *);
141 void pci_cfg_save(device_t, struct pci_devinfo *, int);
[all …]
H A Dvga_pci.c61 device_t vga_msi_child; /* Child driver using MSI. */
69 static struct resource *vga_pci_alloc_resource(device_t dev, device_t child,
72 static int vga_pci_release_resource(device_t dev, device_t child,
80 vga_pci_is_boot_display(device_t dev) in vga_pci_is_boot_display()
83 device_t pcib; in vga_pci_is_boot_display()
144 vga_pci_reset(device_t dev) in vga_pci_reset()
162 vga_pci_map_bios(device_t dev, size_t *size) in vga_pci_map_bios()
166 device_t pcib; in vga_pci_map_bios()
272 vga_pci_unmap_bios(device_t dev, void *bios) in vga_pci_unmap_bios()
314 vga_pci_repost(device_t dev) in vga_pci_repost()
[all …]
H A Dpcivar.h180 device_t dev; /* device which owns this */
325 const struct pci_device_table *pci_match_device(device_t child,
402 pci_read_config(device_t dev, int reg, int width) in PCI_ACCESSOR()
408 pci_write_config(device_t dev, int reg, uint32_t val, int width) in pci_write_config()
446 pci_enable_busmaster(device_t dev) in PCIB_ACCESSOR()
452 pci_disable_busmaster(device_t dev) in pci_disable_busmaster()
458 pci_enable_io(device_t dev, int space) in pci_enable_io()
464 pci_disable_io(device_t dev, int space) in pci_disable_io()
470 pci_get_vpd_ident(device_t dev, const char **identptr) in pci_get_vpd_ident()
476 pci_get_vpd_readonly(device_t dev, const char *kw, const char **vptr) in pci_get_vpd_readonly()
[all …]
/freebsd/sys/sys/
H A Dbus.h176 device_t *result);
383 device_t bus, device_t child,
388 device_t bus, device_t child,
391 device_t bus, device_t child,
395 device_t bus, device_t child,
400 device_t bus, device_t child,
410 extern device_t root_bus;
420 int bus_generic_activate_resource(device_t dev, device_t child,
422 device_t
423 bus_generic_add_child(device_t dev, u_int order, const char *name,
[all …]
H A Dintr.h84 device_t isrc_dev; /* where isrc is mapped */
103 int intr_isrc_register(struct intr_irqsrc *, device_t, u_int, const char *, ...)
113 struct intr_pic *intr_pic_register(device_t, intptr_t);
114 int intr_pic_deregister(device_t, intptr_t);
115 int intr_pic_claim_root(device_t, intptr_t, intr_irq_filter_t *, void *,
117 int intr_pic_add_handler(device_t, struct intr_pic *,
121 device_t intr_irq_root_device(uint32_t);
125 int intr_activate_irq(device_t, struct resource *);
126 int intr_deactivate_irq(device_t, struct resource *);
128 int intr_setup_irq(device_t, struct resource *, driver_filter_t, driver_intr_t,
[all …]
/freebsd/sys/dev/dpaa2/
H A Ddpaa2_cmd_if.m46 panic_on_mc(device_t dev)
53 bypass_mng_get_version(device_t dev, device_t child, struct dpaa2_cmd *cmd,
63 bypass_mng_get_soc_version(device_t dev, device_t child, struct dpaa2_cmd *cmd,
73 bypass_mng_get_container_id(device_t dev, device_t child, struct dpaa2_cmd *cmd,
83 bypass_rc_open(device_t dev, device_t child, struct dpaa2_cmd *cmd, uint32_t cont_id,
93 bypass_rc_close(device_t dev, device_t child, struct dpaa2_cmd *cmd)
102 bypass_rc_get_obj_count(device_t dev, device_t child, struct dpaa2_cmd *cmd,
112 bypass_rc_get_obj(device_t dev, device_t child, struct dpaa2_cmd *cmd, uint32_t obj_idx,
122 bypass_rc_get_obj_descriptor(device_t dev, device_t child, struct dpaa2_cmd *cmd,
132 bypass_rc_get_attributes(device_t dev, device_t child, struct dpaa2_cmd *cmd,
[all …]
H A Ddpaa2_mc.h81 device_t dev;
82 device_t rcdev;
101 device_t msi_owner;
105 device_t child;
120 device_t dev;
154 device_t pdev;
155 device_t dev;
177 int dpaa2_mc_attach(device_t dev);
178 int dpaa2_mc_detach(device_t dev);
182 struct rman *dpaa2_mc_rman(device_t mcdev, int type, u_int flags);
[all …]
/freebsd/sys/dev/pccbb/
H A Dpccbbvar.h56 device_t dev;
84 device_t cbdev;
110 int cbb_activate_resource(device_t brdev, device_t child,
112 struct resource *cbb_alloc_resource(device_t brdev, device_t child,
115 void cbb_child_detached(device_t brdev, device_t child);
116 int cbb_child_present(device_t parent, device_t child);
117 int cbb_deactivate_resource(device_t brdev, device_t child,
119 int cbb_detach(device_t brdev);
121 void cbb_driver_added(device_t brdev, driver_t *driver);
123 int cbb_pcic_set_memory_offset(device_t brdev, device_t child, int rid,
[all …]
/freebsd/sys/dev/iicbus/
H A Diiconf.h64 device_t bus; /* The iicbus being requested. */
65 device_t dev; /* The device requesting the bus. */
124 extern int iicbus_request_bus(device_t, device_t, int);
125 extern int iicbus_release_bus(device_t, device_t);
126 extern device_t iicbus_alloc_bus(device_t);
128 extern void iicbus_intr(device_t, int, char *);
130 extern int iicbus_null_repeated_start(device_t, u_char);
131 extern int iicbus_null_callback(device_t, int, caddr_t);
137 extern int iicbus_started(device_t);
138 extern int iicbus_start(device_t, u_char, int);
[all …]
/freebsd/sys/dev/puc/
H A Dpuc_bfe.h48 device_t sc_dev;
81 int puc_bfe_attach(device_t);
82 int puc_bfe_detach(device_t);
83 int puc_bfe_probe(device_t, const struct puc_cfg *);
85 int puc_bus_child_location(device_t, device_t, struct sbuf *sb);
86 int puc_bus_child_pnpinfo(device_t, device_t, struct sbuf *sb);
87 struct resource *puc_bus_alloc_resource(device_t, device_t, int, int *,
89 int puc_bus_get_resource(device_t, device_t, int, int, rman_res_t *, rman_res_t *);
90 int puc_bus_print_child(device_t, device_t);
91 int puc_bus_read_ivar(device_t, device_t, int, uintptr_t *);
[all …]
/freebsd/sys/dev/acpica/
H A Dacpi_container.c39 static int acpi_syscont_probe(device_t);
40 static int acpi_syscont_attach(device_t);
41 static int acpi_syscont_alloc_msi(device_t, device_t,
43 static int acpi_syscont_release_msi(device_t bus, device_t dev,
45 static int acpi_syscont_alloc_msix(device_t bus, device_t dev,
47 static int acpi_syscont_release_msix(device_t bus, device_t dev,
49 static int acpi_syscont_map_msi(device_t bus, device_t dev,
89 acpi_syscont_probe(device_t dev) in acpi_syscont_probe()
103 acpi_syscont_attach(device_t dev) in acpi_syscont_attach()
112 acpi_syscont_alloc_msi(device_t bus, device_t dev, int count, int maxcount, in acpi_syscont_alloc_msi()
[all …]
/freebsd/sys/powerpc/psim/
H A Diobus.c67 static int iobus_probe(device_t);
68 static int iobus_attach(device_t);
69 static int iobus_print_child(device_t dev, device_t child);
70 static void iobus_probe_nomatch(device_t, device_t);
71 static int iobus_read_ivar(device_t, device_t, int, uintptr_t *);
72 static int iobus_write_ivar(device_t, device_t, int, uintptr_t);
73 static struct rman *iobus_get_rman(device_t, int, u_int);
74 static struct resource *iobus_alloc_resource(device_t, device_t, int, int *,
77 static int iobus_adjust_resource(device_t, device_t, struct resource *,
79 static int iobus_activate_resource(device_t, device_t, struct resource *);
[all …]
/freebsd/sys/x86/include/
H A Dlegacyvar.h49 int legacy_pcib_maxslots(device_t dev);
50 uint32_t legacy_pcib_read_config(device_t dev, u_int bus, u_int slot,
52 int legacy_pcib_read_ivar(device_t dev, device_t child, int which,
54 void legacy_pcib_write_config(device_t dev, u_int bus, u_int slot,
56 int legacy_pcib_write_ivar(device_t dev, device_t child, int which,
58 struct resource *legacy_pcib_alloc_resource(device_t dev, device_t child,
61 int legacy_pcib_adjust_resource(device_t dev, device_t child,
63 int legacy_pcib_release_resource(device_t dev, device_t child,
65 int legacy_pcib_activate_resource(device_t dev, device_t child,
67 int legacy_pcib_deactivate_resource(device_t dev, device_t child,
[all …]
/freebsd/sys/dev/ata/
H A Data-pci.h43 device_t dev;
57 int (*chipinit)(device_t);
58 int (*chipdeinit)(device_t);
59 int (*suspend)(device_t);
60 int (*resume)(device_t);
61 int (*ch_attach)(device_t);
62 int (*ch_detach)(device_t);
63 int (*ch_suspend)(device_t);
64 int (*ch_resume)(device_t);
65 void (*reset)(device_t);
[all …]
/freebsd/sys/x86/x86/
H A Dlegacy.c63 static int legacy_probe(device_t);
64 static int legacy_attach(device_t);
65 static int legacy_print_child(device_t, device_t);
66 static device_t legacy_add_child(device_t bus, u_int order, const char *name,
68 static int legacy_read_ivar(device_t, device_t, int, uintptr_t *);
69 static int legacy_write_ivar(device_t, device_t, int, uintptr_t);
104 legacy_probe(device_t dev) in legacy_probe()
118 legacy_pci_cfgregopen(device_t dev) in legacy_pci_cfgregopen()
153 legacy_attach(device_t dev) in legacy_attach()
155 device_t child; in legacy_attach()
[all …]
/freebsd/sys/dev/ppc/
H A Dppcvar.h31 int ppc_probe(device_t dev, int rid);
32 int ppc_attach(device_t dev);
33 int ppc_detach(device_t dev);
34 int ppc_read_ivar(device_t bus, device_t dev, int index, uintptr_t *val);
35 int ppc_write_ivar(device_t bus, device_t dev, int index, uintptr_t val);
37 int ppc_read(device_t, char *, int, int);
38 int ppc_write(device_t, char *, int, int);
40 u_char ppc_io(device_t, int, u_char *, int, u_char);
41 int ppc_exec_microseq(device_t, struct ppb_microseq **);
43 struct resource *ppc_alloc_resource(device_t bus, device_t child, int type,
[all …]
/freebsd/sys/arm64/cavium/
H A Dthunder_pcie_pem.c123 static int thunder_pem_activate_resource(device_t, device_t, struct resource *);
124 static int thunder_pem_adjust_resource(device_t, device_t,
126 static struct resource * thunder_pem_alloc_resource(device_t, device_t, int,
128 static int thunder_pem_alloc_msi(device_t, device_t, int, int, int *);
129 static int thunder_pem_release_msi(device_t, device_t, int, int *);
130 static int thunder_pem_alloc_msix(device_t, device_t, int *);
131 static int thunder_pem_release_msix(device_t, device_t, int);
132 static int thunder_pem_map_msi(device_t, device_t, int, uint64_t *, uint32_t *);
133 static int thunder_pem_get_id(device_t, device_t, enum pci_id_type,
135 static int thunder_pem_attach(device_t);
[all …]
H A Dthunder_pcie_pem_fdt.c59 static int thunder_pem_fdt_probe(device_t);
60 static int thunder_pem_fdt_alloc_msix(device_t, device_t, int *);
61 static int thunder_pem_fdt_release_msix(device_t, device_t, int);
62 static int thunder_pem_fdt_alloc_msi(device_t, device_t, int, int, int *);
63 static int thunder_pem_fdt_release_msi(device_t, device_t, int, int *);
64 static int thunder_pem_fdt_map_msi(device_t, device_t, int, uint64_t *,
66 static int thunder_pem_fdt_get_id(device_t, device_t, enum pci_id_type,
92 thunder_pem_fdt_probe(device_t dev) in thunder_pem_fdt_probe()
107 thunder_pem_fdt_alloc_msi(device_t pci, device_t child, int count, int maxcount, in thunder_pem_fdt_alloc_msi()
122 thunder_pem_fdt_release_msi(device_t pci, device_t child, int count, int *irqs) in thunder_pem_fdt_release_msi()
[all …]
/freebsd/sys/dev/gpio/
H A Dgpiobusvar.h89 device_t sc_busdev; /* bus device */
90 device_t sc_owner; /* bus owner */
91 device_t sc_dev; /* driver device */
98 device_t dev; /* gpio device */
131 gpio_map_gpios(device_t bus, phandle_t dev, phandle_t gparent, int gcells, in gpio_map_gpios()
137 device_t ofw_gpiobus_add_fdt_child(device_t, const char *, phandle_t);
138 int ofw_gpiobus_parse_gpios(device_t, char *, struct gpiobus_pin **);
139 void ofw_gpiobus_register_provider(device_t);
140 void ofw_gpiobus_unregister_provider(device_t);
143 int gpio_pin_get_by_ofw_name(device_t consumer, phandle_t node,
[all …]

12345678910>>...88