Home
last modified time | relevance | path

Searched refs:bus_dev (Results 1 – 20 of 20) sorted by relevance

/openbmc/linux/drivers/hwmon/occ/
H A Dsysfs.c178 sysfs_notify(&occ->bus_dev->kobj, NULL, name); in occ_sysfs_poll_done()
184 sysfs_notify(&occ->bus_dev->kobj, NULL, name); in occ_sysfs_poll_done()
190 sysfs_notify(&occ->bus_dev->kobj, NULL, name); in occ_sysfs_poll_done()
196 sysfs_notify(&occ->bus_dev->kobj, NULL, name); in occ_sysfs_poll_done()
202 sysfs_notify(&occ->bus_dev->kobj, NULL, name); in occ_sysfs_poll_done()
208 sysfs_notify(&occ->bus_dev->kobj, NULL, name); in occ_sysfs_poll_done()
214 sysfs_notify(&occ->bus_dev->kobj, NULL, name); in occ_sysfs_poll_done()
220 sysfs_notify(&occ->bus_dev->kobj, NULL, name); in occ_sysfs_poll_done()
225 sysfs_notify(&occ->bus_dev->kobj, NULL, name); in occ_sysfs_poll_done()
230 sysfs_notify(&occ->bus_dev->kobj, NULL, name); in occ_sysfs_poll_done()
[all …]
H A Dp9_sbe.c96 sysfs_notify(&occ->bus_dev->kobj, NULL, in p9_sbe_occ_send_cmd()
147 occ->bus_dev = &pdev->dev; in p9_sbe_occ_probe()
159 rc = device_create_bin_file(occ->bus_dev, &bin_attr_ffdc); in p9_sbe_occ_probe()
161 dev_warn(occ->bus_dev, in p9_sbe_occ_probe()
175 device_remove_bin_file(occ->bus_dev, &bin_attr_ffdc); in p9_sbe_occ_remove()
H A Dcommon.c780 struct device *dev = occ->bus_dev; in occ_setup_sensor_attrs()
1104 dev_info(occ->bus_dev, "OCC found, code level: %.16s\n", in occ_parse_poll_response()
1116 dev_warn(occ->bus_dev, "exceeded response buffer\n"); in occ_parse_poll_response()
1120 dev_dbg(occ->bus_dev, " %04x..%04x: %.4s (%d sensors)\n", in occ_parse_poll_response()
1136 dev_warn(occ->bus_dev, "sensor not supported %.4s\n", in occ_parse_poll_response()
1146 dev_dbg(occ->bus_dev, "Max resp size: %u+%zd=%zd\n", size, in occ_parse_poll_response()
1168 dev_err(occ->bus_dev, in occ_active()
1180 dev_err(occ->bus_dev, in occ_active()
1185 occ->hwmon = hwmon_device_register_with_groups(occ->bus_dev, in occ_active()
1191 dev_err(occ->bus_dev, in occ_active()
[all …]
H A Dcommon.h92 struct device *bus_dev; member
H A Dp8_i2c.c220 occ->bus_dev = &client->dev; in p8_i2c_occ_probe()
/openbmc/linux/arch/sparc/kernel/
H A Dpci_common.c109 static int sun4u_read_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, in sun4u_read_pci_cfg() argument
112 struct pci_pbm_info *pbm = bus_dev->sysdata; in sun4u_read_pci_cfg()
113 unsigned char bus = bus_dev->number; in sun4u_read_pci_cfg()
130 if (!bus_dev->number && !PCI_SLOT(devfn)) in sun4u_read_pci_cfg()
216 struct pci_pbm_info *pbm = bus_dev->sysdata; in sun4u_write_pci_cfg()
217 unsigned char bus = bus_dev->number; in sun4u_write_pci_cfg()
220 if (!bus_dev->number && !PCI_SLOT(devfn)) in sun4u_write_pci_cfg()
261 struct pci_pbm_info *pbm = bus_dev->sysdata; in sun4v_read_pci_cfg()
263 unsigned int bus = bus_dev->number; in sun4v_read_pci_cfg()
294 struct pci_pbm_info *pbm = bus_dev->sysdata; in sun4v_write_pci_cfg()
[all …]
H A Dpci_sun4v.c261 struct pci_bus *bus_dev) in dma_4v_iotsb_bind() argument
269 list_for_each_entry(pdev, &bus_dev->devices, bus_list) { in dma_4v_iotsb_bind()
275 bus = bus_dev->number; in dma_4v_iotsb_bind()
/openbmc/linux/drivers/interconnect/samsung/
H A Dexynos.c108 struct device *bus_dev = pdev->dev.parent; in exynos_generic_icc_probe() local
126 provider->dev = bus_dev; in exynos_generic_icc_probe()
138 bus_dev->of_node); in exynos_generic_icc_probe()
139 if (of_property_read_u32(bus_dev->of_node, "samsung,data-clock-ratio", in exynos_generic_icc_probe()
149 ret = dev_pm_qos_add_request(bus_dev, &priv->qos_req, in exynos_generic_icc_probe()
154 icc_parent_node = exynos_icc_get_parent(bus_dev->of_node); in exynos_generic_icc_probe()
/openbmc/linux/drivers/bus/fsl-mc/
H A Dfsl-mc-msi.c183 struct device *bus_dev; in fsl_mc_find_msi_domain() local
188 bus_dev = root_dprc_dev->parent; in fsl_mc_find_msi_domain()
190 if (bus_dev->of_node) { in fsl_mc_find_msi_domain()
201 msi_domain = of_msi_get_domain(bus_dev, in fsl_mc_find_msi_domain()
202 bus_dev->of_node, in fsl_mc_find_msi_domain()
/openbmc/linux/drivers/parport/
H A Dshare.c378 struct device *dev = get_device(&port->bus_dev); in parport_get_port()
386 device_unregister(&port->bus_dev); in parport_del_port()
401 put_device(&port->bus_dev); in parport_put_port()
492 tmp->bus_dev.bus = &parport_bus_type; in parport_register_port()
493 tmp->bus_dev.release = free_port; in parport_register_port()
494 dev_set_name(&tmp->bus_dev, name); in parport_register_port()
495 tmp->bus_dev.type = &parport_device_type; in parport_register_port()
503 ret = device_register(&tmp->bus_dev); in parport_register_port()
505 put_device(&tmp->bus_dev); in parport_register_port()
756 par_dev->dev.parent = &port->bus_dev; in parport_register_dev_model()
H A Dparport_ip32.c593 parport_ip32_dma.buf = dma_map_single(&p->bus_dev, addr, count, dir); in parport_ip32_dma_start()
678 dma_unmap_single(&p->bus_dev, parport_ip32_dma.buf, in parport_ip32_dma_stop()
/openbmc/linux/arch/arm64/kernel/
H A Dpci.c85 struct device *bus_dev; in pcibios_root_bridge_prepare() local
102 bus_dev = &bridge->bus->dev; in pcibios_root_bridge_prepare()
105 set_dev_node(bus_dev, acpi_get_node(acpi_device_handle(adev))); in pcibios_root_bridge_prepare()
/openbmc/linux/drivers/net/fddi/
H A Ddefxx.c434 struct device *bdev = bp->bus_dev; in dfx_get_bars()
569 bp->bus_dev = bdev; in dfx_register()
724 struct device *bdev = bp->bus_dev; in dfx_bus_init()
883 struct device *bdev = bp->bus_dev; in dfx_bus_uninit()
1043 struct device *bdev = bp->bus_dev; in dfx_driver_init()
3153 bp->bus_dev, in dfx_rcv_queue_process()
3158 bp->bus_dev, in dfx_rcv_queue_process()
3193 bp->bus_dev, in dfx_rcv_queue_process()
3513 dma_unmap_single(bp->bus_dev, in dfx_xmt_done()
3574 dma_unmap_single(bp->bus_dev, in dfx_rcv_flush()
[all …]
H A Ddefxx.h1779 struct device *bus_dev; member
/openbmc/linux/arch/loongarch/pci/
H A Dacpi.c30 struct device *bus_dev = &bridge->bus->dev; in pcibios_root_bridge_prepare() local
37 set_dev_node(bus_dev, pa_to_nid(cfg->res.start)); in pcibios_root_bridge_prepare()
/openbmc/linux/include/linux/
H A Dparport.h200 struct device bus_dev; /* to link with the bus */ member
251 #define to_parport_dev(n) container_of(n, struct parport, bus_dev)
/openbmc/u-boot/cmd/
H A Dsf.c88 struct udevice *new, *bus_dev; in do_spi_flash_probe() local
124 ret = spi_find_bus_and_cs(bus, cs, &bus_dev, &new); in do_spi_flash_probe()
/openbmc/linux/arch/alpha/kernel/
H A Dcore_cia.c90 mk_conf_addr(struct pci_bus *bus_dev, unsigned int device_fn, int where, in mk_conf_addr() argument
93 u8 bus = bus_dev->number; in mk_conf_addr()
/openbmc/linux/tools/testing/nvdimm/test/
H A Dnfit.c730 static void smart_notify(struct device *bus_dev, in smart_notify() argument
750 device_lock(bus_dev); in smart_notify()
752 device_unlock(bus_dev); in smart_notify()
761 struct device *bus_dev, struct device *dimm_dev) in nfit_test_cmd_smart_set_threshold() argument
770 smart_notify(bus_dev, dimm_dev, smart, thresh); in nfit_test_cmd_smart_set_threshold()
780 struct device *bus_dev, struct device *dimm_dev) in nfit_test_cmd_smart_inject() argument
811 smart_notify(bus_dev, dimm_dev, smart, thresh); in nfit_test_cmd_smart_inject()
/openbmc/linux/drivers/acpi/nfit/
H A Dcore.c3039 struct device *bus_dev; in acpi_nfit_desc_init_scrub_attr() local
3044 bus_dev = to_nvdimm_bus_dev(acpi_desc->nvdimm_bus); in acpi_nfit_desc_init_scrub_attr()
3045 nfit = sysfs_get_dirent(bus_dev->kobj.sd, "nfit"); in acpi_nfit_desc_init_scrub_attr()
3305 struct device *bus_dev = to_nvdimm_bus_dev(acpi_desc->nvdimm_bus); in acpi_nfit_shutdown() local
3325 device_lock(bus_dev); in acpi_nfit_shutdown()
3326 device_unlock(bus_dev); in acpi_nfit_shutdown()