/linux-4.19.296/drivers/i2c/busses/ |
D | i2c-aspeed.c | 160 static int aspeed_i2c_reset(struct aspeed_i2c_bus *bus); 162 static int aspeed_i2c_recover_bus(struct aspeed_i2c_bus *bus) in aspeed_i2c_recover_bus() argument 168 spin_lock_irqsave(&bus->lock, flags); in aspeed_i2c_recover_bus() 169 command = readl(bus->base + ASPEED_I2C_CMD_REG); in aspeed_i2c_recover_bus() 175 dev_dbg(bus->dev, "SCL hung (state %x), attempting recovery\n", in aspeed_i2c_recover_bus() 178 reinit_completion(&bus->cmd_complete); in aspeed_i2c_recover_bus() 179 writel(ASPEED_I2CD_M_STOP_CMD, bus->base + ASPEED_I2C_CMD_REG); in aspeed_i2c_recover_bus() 180 spin_unlock_irqrestore(&bus->lock, flags); in aspeed_i2c_recover_bus() 183 &bus->cmd_complete, bus->adap.timeout); in aspeed_i2c_recover_bus() 185 spin_lock_irqsave(&bus->lock, flags); in aspeed_i2c_recover_bus() [all …]
|
D | i2c-cros-ec-tunnel.c | 182 struct ec_i2c_device *bus = adap->algo_data; in ec_i2c_xfer() local 183 struct device *dev = bus->dev; in ec_i2c_xfer() 184 const u16 bus_num = bus->remote_bus; in ec_i2c_xfer() 220 result = cros_ec_cmd_xfer_status(bus->ec, msg); in ec_i2c_xfer() 252 struct ec_i2c_device *bus = NULL; in ec_i2c_probe() local 261 bus = devm_kzalloc(dev, sizeof(*bus), GFP_KERNEL); in ec_i2c_probe() 262 if (bus == NULL) in ec_i2c_probe() 270 bus->remote_bus = remote_bus; in ec_i2c_probe() 272 bus->ec = ec; in ec_i2c_probe() 273 bus->dev = dev; in ec_i2c_probe() [all …]
|
/linux-4.19.296/drivers/base/ |
D | bus.c | 41 static struct bus_type *bus_get(struct bus_type *bus) in bus_get() argument 43 if (bus) { in bus_get() 44 kset_get(&bus->p->subsys); in bus_get() 45 return bus; in bus_get() 50 static void bus_put(struct bus_type *bus) in bus_put() argument 52 if (bus) in bus_put() 53 kset_put(&bus->p->subsys); in bus_put() 109 ret = bus_attr->show(subsys_priv->bus, buf); in bus_attr_show() 121 ret = bus_attr->store(subsys_priv->bus, buf, count); in bus_attr_store() 130 int bus_create_file(struct bus_type *bus, struct bus_attribute *attr) in bus_create_file() argument [all …]
|
/linux-4.19.296/drivers/soundwire/ |
D | bus.c | 18 int sdw_add_bus_master(struct sdw_bus *bus) in sdw_add_bus_master() argument 23 if (!bus->dev) { in sdw_add_bus_master() 28 if (!bus->ops) { in sdw_add_bus_master() 29 dev_err(bus->dev, "SoundWire Bus ops are not set"); in sdw_add_bus_master() 33 mutex_init(&bus->msg_lock); in sdw_add_bus_master() 34 mutex_init(&bus->bus_lock); in sdw_add_bus_master() 35 INIT_LIST_HEAD(&bus->slaves); in sdw_add_bus_master() 36 INIT_LIST_HEAD(&bus->m_rt_list); in sdw_add_bus_master() 38 if (bus->ops->read_prop) { in sdw_add_bus_master() 39 ret = bus->ops->read_prop(bus); in sdw_add_bus_master() [all …]
|
D | stream.c | 55 static int _sdw_program_slave_port_params(struct sdw_bus *bus, in _sdw_program_slave_port_params() argument 64 if (bus->params.next_bank) { in _sdw_program_slave_port_params() 79 dev_err(bus->dev, "DPN_OffsetCtrl2 register write failed"); in _sdw_program_slave_port_params() 86 dev_err(bus->dev, "DPN_BlockCtrl3 register write failed"); in _sdw_program_slave_port_params() 105 dev_err(bus->dev, "DPN_SampleCtrl2 register write failed"); in _sdw_program_slave_port_params() 116 dev_err(bus->dev, "DPN_HCtrl register write failed"); in _sdw_program_slave_port_params() 121 static int sdw_program_slave_port_params(struct sdw_bus *bus, in sdw_program_slave_port_params() argument 142 if (bus->params.next_bank) { in sdw_program_slave_port_params() 218 ret = _sdw_program_slave_port_params(bus, s_rt->slave, in sdw_program_slave_port_params() 229 static int sdw_program_master_port_params(struct sdw_bus *bus, in sdw_program_master_port_params() argument [all …]
|
D | slave.c | 16 static int sdw_slave_add(struct sdw_bus *bus, in sdw_slave_add() argument 28 slave->dev.parent = bus->dev; in sdw_slave_add() 33 bus->link_id, id->mfg_id, id->part_id, in sdw_slave_add() 37 slave->dev.bus = &sdw_bus_type; in sdw_slave_add() 38 slave->bus = bus; in sdw_slave_add() 42 mutex_lock(&bus->bus_lock); in sdw_slave_add() 43 list_add_tail(&slave->node, &bus->slaves); in sdw_slave_add() 44 mutex_unlock(&bus->bus_lock); in sdw_slave_add() 48 dev_err(bus->dev, "Failed to add slave: ret %d\n", ret); in sdw_slave_add() 54 mutex_lock(&bus->bus_lock); in sdw_slave_add() [all …]
|
/linux-4.19.296/drivers/pci/ |
D | remove.c | 47 void pci_remove_bus(struct pci_bus *bus) in pci_remove_bus() argument 49 pci_proc_detach_bus(bus); in pci_remove_bus() 52 list_del(&bus->node); in pci_remove_bus() 53 pci_bus_release_busn_res(bus); in pci_remove_bus() 55 pci_remove_legacy_files(bus); in pci_remove_bus() 57 if (bus->ops->remove_bus) in pci_remove_bus() 58 bus->ops->remove_bus(bus); in pci_remove_bus() 60 pcibios_remove_bus(bus); in pci_remove_bus() 61 device_unregister(&bus->dev); in pci_remove_bus() 67 struct pci_bus *bus = dev->subordinate; in pci_stop_bus_device() local [all …]
|
D | bus.c | 47 void pci_bus_add_resource(struct pci_bus *bus, struct resource *res, in pci_bus_add_resource() argument 54 dev_err(&bus->dev, "can't add %pR resource\n", res); in pci_bus_add_resource() 60 list_add_tail(&bus_res->list, &bus->resources); in pci_bus_add_resource() 63 struct resource *pci_bus_resource_n(const struct pci_bus *bus, int n) in pci_bus_resource_n() argument 68 return bus->resource[n]; in pci_bus_resource_n() 71 list_for_each_entry(bus_res, &bus->resources, list) { in pci_bus_resource_n() 79 void pci_bus_remove_resources(struct pci_bus *bus) in pci_bus_remove_resources() argument 85 bus->resource[i] = NULL; in pci_bus_remove_resources() 87 list_for_each_entry_safe(bus_res, tmp, &bus->resources, list) { in pci_bus_remove_resources() 136 static void pci_clip_resource_to_region(struct pci_bus *bus, in pci_clip_resource_to_region() argument [all …]
|
D | probe.c | 291 pcibios_bus_to_resource(dev->bus, res, ®ion); in __pci_read_base() 292 pcibios_resource_to_bus(dev->bus, &inverted_region, res); in __pci_read_base() 437 pcibios_bus_to_resource(dev->bus, res, ®ion); in pci_read_bridge_io() 459 pcibios_bus_to_resource(dev->bus, res, ®ion); in pci_read_bridge_mmio() 512 pcibios_bus_to_resource(dev->bus, res, ®ion); in pci_read_bridge_mmio_pref() 683 void pcie_update_link_speed(struct pci_bus *bus, u16 linksta) in pcie_update_link_speed() argument 685 bus->cur_bus_speed = pcie_link_speed[linksta & PCI_EXP_LNKSTA_CLS]; in pcie_update_link_speed() 720 static void pci_set_bus_speed(struct pci_bus *bus) in pci_set_bus_speed() argument 722 struct pci_dev *bridge = bus->self; in pci_set_bus_speed() 732 bus->max_bus_speed = agp_speed(agpstat & 8, agpstat & 7); in pci_set_bus_speed() [all …]
|
D | search.c | 33 struct pci_bus *bus; in pci_for_each_dma_alias() local 36 ret = fn(pdev, PCI_DEVID(pdev->bus->number, pdev->devfn), data); in pci_for_each_dma_alias() 48 ret = fn(pdev, PCI_DEVID(pdev->bus->number, devfn), in pci_for_each_dma_alias() 55 for (bus = pdev->bus; !pci_is_root_bus(bus); bus = bus->parent) { in pci_for_each_dma_alias() 59 if (!bus->self) in pci_for_each_dma_alias() 62 tmp = bus->self; in pci_for_each_dma_alias() 92 PCI_DEVID(tmp->bus->number, in pci_for_each_dma_alias() 105 PCI_DEVID(tmp->bus->number, in pci_for_each_dma_alias() 115 static struct pci_bus *pci_do_find_bus(struct pci_bus *bus, unsigned char busnr) in pci_do_find_bus() argument 120 if (bus->number == busnr) in pci_do_find_bus() [all …]
|
D | xen-pcifront.c | 33 struct pci_bus *bus; member 68 unsigned int domain, unsigned int bus, in pcifront_init_sd() argument 178 static int pcifront_bus_read(struct pci_bus *bus, unsigned int devfn, in pcifront_bus_read() argument 184 .domain = pci_domain_nr(bus), in pcifront_bus_read() 185 .bus = bus->number, in pcifront_bus_read() 190 struct pcifront_sd *sd = bus->sysdata; in pcifront_bus_read() 196 pci_domain_nr(bus), bus->number, PCI_SLOT(devfn), in pcifront_bus_read() 217 static int pcifront_bus_write(struct pci_bus *bus, unsigned int devfn, in pcifront_bus_write() argument 222 .domain = pci_domain_nr(bus), in pcifront_bus_write() 223 .bus = bus->number, in pcifront_bus_write() [all …]
|
D | access.c | 37 (struct pci_bus *bus, unsigned int devfn, int pos, type *value) \ 44 res = bus->ops->read(bus, devfn, pos, len, &data); \ 52 (struct pci_bus *bus, unsigned int devfn, int pos, type value) \ 58 res = bus->ops->write(bus, devfn, pos, len, value); \ 77 int pci_generic_config_read(struct pci_bus *bus, unsigned int devfn, in pci_generic_config_read() argument 82 addr = bus->ops->map_bus(bus, devfn, where); in pci_generic_config_read() 99 int pci_generic_config_write(struct pci_bus *bus, unsigned int devfn, in pci_generic_config_write() argument 104 addr = bus->ops->map_bus(bus, devfn, where); in pci_generic_config_write() 119 int pci_generic_config_read32(struct pci_bus *bus, unsigned int devfn, in pci_generic_config_read32() argument 124 addr = bus->ops->map_bus(bus, devfn, where & ~0x3); in pci_generic_config_read32() [all …]
|
/linux-4.19.296/drivers/bus/ |
D | mips_cdmm.c | 223 drv->drv.bus = &mips_cdmm_bustype; in BUILD_PERCPU_HELPER() 289 struct mips_cdmm_bus *bus, **bus_p; in mips_cdmm_get_bus() local 304 bus = *bus_p; in mips_cdmm_get_bus() 306 if (unlikely(!bus)) { in mips_cdmm_get_bus() 307 bus = kzalloc(sizeof(*bus), GFP_ATOMIC); in mips_cdmm_get_bus() 308 if (unlikely(!bus)) in mips_cdmm_get_bus() 309 bus = ERR_PTR(-ENOMEM); in mips_cdmm_get_bus() 311 *bus_p = bus; in mips_cdmm_get_bus() 314 return bus; in mips_cdmm_get_bus() 356 static int mips_cdmm_setup(struct mips_cdmm_bus *bus) in mips_cdmm_setup() argument [all …]
|
/linux-4.19.296/include/sound/ |
D | i2c.h | 28 struct snd_i2c_bus *bus; /* I2C bus */ member 40 void (*start)(struct snd_i2c_bus *bus); /* transfer start */ 41 void (*stop)(struct snd_i2c_bus *bus); /* transfer stop */ 42 …void (*direction)(struct snd_i2c_bus *bus, int clock, int data); /* set line direction (0 = write… 43 void (*setlines)(struct snd_i2c_bus *bus, int clock, int data); 44 int (*getclock)(struct snd_i2c_bus *bus); 45 int (*getdata)(struct snd_i2c_bus *bus, int ack); 51 int (*probeaddr)(struct snd_i2c_bus *bus, unsigned short addr); 73 void (*private_free)(struct snd_i2c_bus *bus); 80 int snd_i2c_device_create(struct snd_i2c_bus *bus, const char *name, [all …]
|
D | hdaudio_ext.h | 7 int snd_hdac_ext_bus_init(struct hdac_bus *bus, struct device *dev, 12 void snd_hdac_ext_bus_exit(struct hdac_bus *bus); 13 int snd_hdac_ext_bus_device_init(struct hdac_bus *bus, int addr, 16 void snd_hdac_ext_bus_device_remove(struct hdac_bus *bus); 31 int snd_hdac_ext_bus_get_ml_capabilities(struct hdac_bus *bus); 32 struct hdac_ext_link *snd_hdac_ext_bus_get_link(struct hdac_bus *bus, 81 void snd_hdac_ext_stream_init(struct hdac_bus *bus, 84 int snd_hdac_ext_stream_init_all(struct hdac_bus *bus, int start_idx, 86 void snd_hdac_stream_free_all(struct hdac_bus *bus); 87 void snd_hdac_link_free_all(struct hdac_bus *bus); [all …]
|
D | hda_component.h | 10 int snd_hdac_set_codec_wakeup(struct hdac_bus *bus, bool enable); 11 int snd_hdac_display_power(struct hdac_bus *bus, bool enable); 16 int snd_hdac_acomp_init(struct hdac_bus *bus, 20 int snd_hdac_acomp_exit(struct hdac_bus *bus); 21 int snd_hdac_acomp_register_notifier(struct hdac_bus *bus, 24 static inline int snd_hdac_set_codec_wakeup(struct hdac_bus *bus, bool enable) in snd_hdac_set_codec_wakeup() argument 28 static inline int snd_hdac_display_power(struct hdac_bus *bus, bool enable) in snd_hdac_display_power() argument 43 static inline int snd_hdac_acomp_init(struct hdac_bus *bus, in snd_hdac_acomp_init() argument 50 static inline int snd_hdac_acomp_exit(struct hdac_bus *bus) in snd_hdac_acomp_exit() argument 54 static inline int snd_hdac_acomp_register_notifier(struct hdac_bus *bus, in snd_hdac_acomp_register_notifier() argument
|
/linux-4.19.296/drivers/misc/mei/ |
D | bus.c | 46 struct mei_device *bus; in __mei_cl_send() local 53 bus = cl->dev; in __mei_cl_send() 55 mutex_lock(&bus->device_lock); in __mei_cl_send() 56 if (bus->dev_state != MEI_DEV_ENABLED) { in __mei_cl_send() 77 while (cl->tx_cb_queued >= bus->tx_queue_limit) { in __mei_cl_send() 78 mutex_unlock(&bus->device_lock); in __mei_cl_send() 82 mutex_lock(&bus->device_lock); in __mei_cl_send() 107 mutex_unlock(&bus->device_lock); in __mei_cl_send() 126 struct mei_device *bus; in __mei_cl_recv() local 135 bus = cl->dev; in __mei_cl_recv() [all …]
|
/linux-4.19.296/drivers/xen/ |
D | pci.c | 62 .add.seg = pci_domain_nr(pci_dev->bus), in xen_add_device() 63 .add.bus = pci_dev->bus->number, in xen_add_device() 75 add->physfn.bus = physfn->bus->number; in xen_add_device() 79 if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) in xen_add_device() 86 handle = ACPI_HANDLE(physfn->bus->bridge); in xen_add_device() 94 for (pbus = pci_dev->bus; pbus; pbus = pbus->parent) { in xen_add_device() 124 if (pci_domain_nr(pci_dev->bus)) in xen_add_device() 129 .bus = pci_dev->bus->number, in xen_add_device() 132 .physfn.bus = physfn->bus->number, in xen_add_device() 140 else if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) { in xen_add_device() [all …]
|
/linux-4.19.296/drivers/pci/controller/ |
D | pci-thunder-ecam.c | 29 static int handle_ea_bar(u32 e0, int bar, struct pci_bus *bus, in handle_ea_bar() argument 43 addr = bus->ops->map_bus(bus, devfn, bar); /* BAR 0 */ in handle_ea_bar() 58 addr = bus->ops->map_bus(bus, devfn, bar); /* BAR 0 */ in handle_ea_bar() 74 addr = bus->ops->map_bus(bus, devfn, bar + 4); /* BAR 1 */ in handle_ea_bar() 86 static int thunder_ecam_p2_config_read(struct pci_bus *bus, unsigned int devfn, in thunder_ecam_p2_config_read() argument 89 struct pci_config_window *cfg = bus->sysdata; in thunder_ecam_p2_config_read() 103 return pci_generic_config_read(bus, devfn, where, size, val); in thunder_ecam_p2_config_read() 106 addr = bus->ops->map_bus(bus, devfn, where_a); in thunder_ecam_p2_config_read() 127 static int thunder_ecam_config_read(struct pci_bus *bus, unsigned int devfn, in thunder_ecam_config_read() argument 137 addr = bus->ops->map_bus(bus, devfn, 0xc); in thunder_ecam_config_read() [all …]
|
/linux-4.19.296/drivers/pci/hotplug/ |
D | cpci_hotplug_pci.c | 40 hs_cap = pci_bus_find_capability(slot->bus, in cpci_get_attention_status() 46 if (pci_bus_read_config_word(slot->bus, in cpci_get_attention_status() 60 hs_cap = pci_bus_find_capability(slot->bus, in cpci_set_attention_status() 65 if (pci_bus_read_config_word(slot->bus, in cpci_set_attention_status() 74 if (pci_bus_write_config_word(slot->bus, in cpci_set_attention_status() 87 hs_cap = pci_bus_find_capability(slot->bus, in cpci_get_hs_csr() 92 if (pci_bus_read_config_word(slot->bus, in cpci_get_hs_csr() 106 hs_cap = pci_bus_find_capability(slot->bus, in cpci_check_and_clear_ins() 111 if (pci_bus_read_config_word(slot->bus, in cpci_check_and_clear_ins() 118 if (pci_bus_write_config_word(slot->bus, in cpci_check_and_clear_ins() [all …]
|
D | acpiphp_glue.c | 49 static void acpiphp_sanitize_bus(struct pci_bus *bus); 192 struct pci_bus *bus; in acpiphp_post_dock_fixup() local 198 bus = context->func.slot->bus; in acpiphp_post_dock_fixup() 199 if (!bus->self) in acpiphp_post_dock_fixup() 205 pci_read_config_dword(bus->self, PCI_PRIMARY_BUS, &buses); in acpiphp_post_dock_fixup() 207 if (((buses >> 8) & 0xff) != bus->busn_res.start) { in acpiphp_post_dock_fixup() 209 | ((unsigned int)(bus->primary) << 0) in acpiphp_post_dock_fixup() 210 | ((unsigned int)(bus->busn_res.start) << 8) in acpiphp_post_dock_fixup() 211 | ((unsigned int)(bus->busn_res.end) << 16); in acpiphp_post_dock_fixup() 212 pci_write_config_dword(bus->self, PCI_PRIMARY_BUS, buses); in acpiphp_post_dock_fixup() [all …]
|
/linux-4.19.296/drivers/pci/pcie/ |
D | aer_inject.c | 32 u8 bus; member 47 unsigned int bus; member 63 struct pci_bus *bus; member 75 unsigned int bus, unsigned int devfn, in aer_error_init() argument 80 err->bus = bus; in aer_error_init() 86 static struct aer_error *__find_aer_error(u32 domain, unsigned int bus, in __find_aer_error() argument 93 bus == err->bus && in __find_aer_error() 103 int domain = pci_domain_nr(dev->bus); in __find_aer_error_by_dev() 106 return __find_aer_error(domain, dev->bus->number, dev->devfn); in __find_aer_error_by_dev() 110 static struct pci_ops *__find_pci_bus_ops(struct pci_bus *bus) in __find_pci_bus_ops() argument [all …]
|
/linux-4.19.296/drivers/misc/cxl/ |
D | vphb.c | 25 static int cxl_pci_probe_mode(struct pci_bus *bus) in cxl_pci_probe_mode() argument 49 phb = pci_bus_to_host(dev->bus); in cxl_pci_enable_device_hook() 86 static resource_size_t cxl_pci_window_alignment(struct pci_bus *bus, in cxl_pci_window_alignment() argument 97 static int cxl_pcie_cfg_record(u8 bus, u8 devfn) in cxl_pcie_cfg_record() argument 99 return (bus << 8) + devfn; in cxl_pcie_cfg_record() 102 static inline struct cxl_afu *pci_bus_to_afu(struct pci_bus *bus) in pci_bus_to_afu() argument 104 struct pci_controller *phb = bus ? pci_bus_to_host(bus) : NULL; in pci_bus_to_afu() 119 static inline int cxl_pcie_config_info(struct pci_bus *bus, unsigned int devfn, in cxl_pcie_config_info() argument 124 record = cxl_pcie_cfg_record(bus->number, devfn); in cxl_pcie_config_info() 132 static int cxl_pcie_read_config(struct pci_bus *bus, unsigned int devfn, in cxl_pcie_read_config() argument [all …]
|
/linux-4.19.296/drivers/xen/xen-pciback/ |
D | passthrough.c | 22 unsigned int bus, in __xen_pcibk_get_pci_dev() argument 32 if (domain == (unsigned int)pci_domain_nr(dev_entry->dev->bus) in __xen_pcibk_get_pci_dev() 33 && bus == (unsigned int)dev_entry->dev->bus->number in __xen_pcibk_get_pci_dev() 51 unsigned int domain, bus, devfn; in __xen_pcibk_add_pci_dev() local 64 domain = (unsigned int)pci_domain_nr(dev->bus); in __xen_pcibk_add_pci_dev() 65 bus = (unsigned int)dev->bus->number; in __xen_pcibk_add_pci_dev() 67 err = publish_cb(pdev, domain, bus, devfn, devid); in __xen_pcibk_add_pci_dev() 125 unsigned int domain, bus; in __xen_pcibk_publish_pci_roots() local 134 dev = dev_entry->dev->bus->self; in __xen_pcibk_publish_pci_roots() 135 for (; !found && dev != NULL; dev = dev->bus->self) { in __xen_pcibk_publish_pci_roots() [all …]
|
/linux-4.19.296/include/linux/ |
D | pci-acpi.h | 34 struct pci_bus *pbus = pdev->bus; in acpi_find_root_bridge_handle() 84 void acpi_pci_add_bus(struct pci_bus *bus); 85 void acpi_pci_remove_bus(struct pci_bus *bus); 89 void acpi_pci_slot_enumerate(struct pci_bus *bus); 90 void acpi_pci_slot_remove(struct pci_bus *bus); 93 static inline void acpi_pci_slot_enumerate(struct pci_bus *bus) { } in acpi_pci_slot_enumerate() argument 94 static inline void acpi_pci_slot_remove(struct pci_bus *bus) { } in acpi_pci_slot_remove() argument 99 void acpiphp_enumerate_slots(struct pci_bus *bus); 100 void acpiphp_remove_slots(struct pci_bus *bus); 104 static inline void acpiphp_enumerate_slots(struct pci_bus *bus) { } in acpiphp_enumerate_slots() argument [all …]
|