/drivers/i2c/busses/ |
D | i2c-aspeed.c | 158 static int aspeed_i2c_reset(struct aspeed_i2c_bus *bus); 160 static int aspeed_i2c_recover_bus(struct aspeed_i2c_bus *bus) in aspeed_i2c_recover_bus() argument 166 spin_lock_irqsave(&bus->lock, flags); in aspeed_i2c_recover_bus() 167 command = readl(bus->base + ASPEED_I2C_CMD_REG); in aspeed_i2c_recover_bus() 173 dev_dbg(bus->dev, "SCL hung (state %x), attempting recovery\n", in aspeed_i2c_recover_bus() 176 reinit_completion(&bus->cmd_complete); in aspeed_i2c_recover_bus() 177 writel(ASPEED_I2CD_M_STOP_CMD, bus->base + ASPEED_I2C_CMD_REG); in aspeed_i2c_recover_bus() 178 spin_unlock_irqrestore(&bus->lock, flags); in aspeed_i2c_recover_bus() 181 &bus->cmd_complete, bus->adap.timeout); in aspeed_i2c_recover_bus() 183 spin_lock_irqsave(&bus->lock, flags); in aspeed_i2c_recover_bus() [all …]
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | sdio.c | 655 static bool data_ok(struct brcmf_sdio *bus) in data_ok() argument 657 return (u8)(bus->tx_max - bus->tx_seq) != 0 && in data_ok() 658 ((u8)(bus->tx_max - bus->tx_seq) & 0x80) == 0; in data_ok() 665 static int r_sdreg32(struct brcmf_sdio *bus, u32 *regvar, u32 offset) in r_sdreg32() argument 670 core = brcmf_chip_get_core(bus->ci, BCMA_CORE_SDIO_DEV); in r_sdreg32() 671 *regvar = brcmf_sdiod_regrl(bus->sdiodev, core->base + offset, &ret); in r_sdreg32() 676 static int w_sdreg32(struct brcmf_sdio *bus, u32 regval, u32 reg_offset) in w_sdreg32() argument 681 core = brcmf_chip_get_core(bus->ci, BCMA_CORE_SDIO_DEV); in w_sdreg32() 682 brcmf_sdiod_regwl(bus->sdiodev, core->base + reg_offset, regval, &ret); in w_sdreg32() 688 brcmf_sdio_kso_control(struct brcmf_sdio *bus, bool on) in brcmf_sdio_kso_control() argument [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
D | bit.c | 32 nvkm_i2c_drive_scl(struct nvkm_i2c_bus *bus, int state) in nvkm_i2c_drive_scl() argument 34 bus->func->drive_scl(bus, state); in nvkm_i2c_drive_scl() 38 nvkm_i2c_drive_sda(struct nvkm_i2c_bus *bus, int state) in nvkm_i2c_drive_sda() argument 40 bus->func->drive_sda(bus, state); in nvkm_i2c_drive_sda() 44 nvkm_i2c_sense_scl(struct nvkm_i2c_bus *bus) in nvkm_i2c_sense_scl() argument 46 return bus->func->sense_scl(bus); in nvkm_i2c_sense_scl() 50 nvkm_i2c_sense_sda(struct nvkm_i2c_bus *bus) in nvkm_i2c_sense_sda() argument 52 return bus->func->sense_sda(bus); in nvkm_i2c_sense_sda() 56 nvkm_i2c_delay(struct nvkm_i2c_bus *bus, u32 nsec) in nvkm_i2c_delay() argument 62 nvkm_i2c_raise_scl(struct nvkm_i2c_bus *bus) in nvkm_i2c_raise_scl() argument [all …]
|
D | bus.c | 35 struct nvkm_i2c_bus *bus = container_of(adap, typeof(*bus), i2c); in nvkm_i2c_bus_pre_xfer() local 36 return nvkm_i2c_bus_acquire(bus); in nvkm_i2c_bus_pre_xfer() 42 struct nvkm_i2c_bus *bus = container_of(adap, typeof(*bus), i2c); in nvkm_i2c_bus_post_xfer() local 43 return nvkm_i2c_bus_release(bus); in nvkm_i2c_bus_post_xfer() 49 struct nvkm_i2c_bus *bus = data; in nvkm_i2c_bus_setscl() local 50 bus->func->drive_scl(bus, state); in nvkm_i2c_bus_setscl() 56 struct nvkm_i2c_bus *bus = data; in nvkm_i2c_bus_setsda() local 57 bus->func->drive_sda(bus, state); in nvkm_i2c_bus_setsda() 63 struct nvkm_i2c_bus *bus = data; in nvkm_i2c_bus_getscl() local 64 return bus->func->sense_scl(bus); in nvkm_i2c_bus_getscl() [all …]
|
D | busnv50.c | 38 struct nv50_i2c_bus *bus = nv50_i2c_bus(base); in nv50_i2c_bus_drive_scl() local 39 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv50_i2c_bus_drive_scl() 40 if (state) bus->data |= 0x01; in nv50_i2c_bus_drive_scl() 41 else bus->data &= 0xfe; in nv50_i2c_bus_drive_scl() 42 nvkm_wr32(device, bus->addr, bus->data); in nv50_i2c_bus_drive_scl() 48 struct nv50_i2c_bus *bus = nv50_i2c_bus(base); in nv50_i2c_bus_drive_sda() local 49 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv50_i2c_bus_drive_sda() 50 if (state) bus->data |= 0x02; in nv50_i2c_bus_drive_sda() 51 else bus->data &= 0xfd; in nv50_i2c_bus_drive_sda() 52 nvkm_wr32(device, bus->addr, bus->data); in nv50_i2c_bus_drive_sda() [all …]
|
/drivers/net/phy/ |
D | sfp-bus.c | 30 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_port() argument 72 dev_warn(bus->sfp_dev, "SFP: unknown connector id 0x%02x\n", in sfp_parse_port() 82 phy_interface_t sfp_parse_interface(struct sfp_bus *bus, in sfp_parse_interface() argument 112 dev_err(bus->sfp_dev, in sfp_parse_interface() 121 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_support() argument 164 dev_warn(bus->sfp_dev, in sfp_parse_support() 202 dev_warn(bus->sfp_dev, in sfp_parse_support() 215 static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus) in sfp_get_upstream_ops() argument 217 return bus->registered ? bus->upstream_ops : NULL; in sfp_get_upstream_ops() 253 struct sfp_bus *bus = container_of(kref, struct sfp_bus, kref); in sfp_bus_release() local [all …]
|
D | mdio_bus.c | 51 if (mdiodev->bus->mdio_map[mdiodev->addr]) in mdiobus_register_device() 54 mdiodev->bus->mdio_map[mdiodev->addr] = mdiodev; in mdiobus_register_device() 62 if (mdiodev->bus->mdio_map[mdiodev->addr] != mdiodev) in mdiobus_unregister_device() 65 mdiodev->bus->mdio_map[mdiodev->addr] = NULL; in mdiobus_unregister_device() 71 struct phy_device *mdiobus_get_phy(struct mii_bus *bus, int addr) in mdiobus_get_phy() argument 73 struct mdio_device *mdiodev = bus->mdio_map[addr]; in mdiobus_get_phy() 85 bool mdiobus_is_registered_device(struct mii_bus *bus, int addr) in mdiobus_is_registered_device() argument 87 return bus->mdio_map[addr]; in mdiobus_is_registered_device() 101 struct mii_bus *bus; in mdiobus_alloc_size() local 102 size_t aligned_size = ALIGN(sizeof(*bus), NETDEV_ALIGN); in mdiobus_alloc_size() [all …]
|
/drivers/ssb/ |
D | driver_gpio.c | 28 struct ssb_bus *bus = gpiochip_get_data(chip); in ssb_gpio_to_irq() local 30 if (bus->bustype == SSB_BUSTYPE_SSB) in ssb_gpio_to_irq() 31 return irq_find_mapping(bus->irq_domain, gpio); in ssb_gpio_to_irq() 43 struct ssb_bus *bus = gpiochip_get_data(chip); in ssb_gpio_chipco_get_value() local 45 return !!ssb_chipco_gpio_in(&bus->chipco, 1 << gpio); in ssb_gpio_chipco_get_value() 51 struct ssb_bus *bus = gpiochip_get_data(chip); in ssb_gpio_chipco_set_value() local 53 ssb_chipco_gpio_out(&bus->chipco, 1 << gpio, value ? 1 << gpio : 0); in ssb_gpio_chipco_set_value() 59 struct ssb_bus *bus = gpiochip_get_data(chip); in ssb_gpio_chipco_direction_input() local 61 ssb_chipco_gpio_outen(&bus->chipco, 1 << gpio, 0); in ssb_gpio_chipco_direction_input() 68 struct ssb_bus *bus = gpiochip_get_data(chip); in ssb_gpio_chipco_direction_output() local [all …]
|
D | scan.c | 160 static u32 scan_read32(struct ssb_bus *bus, u8 current_coreidx, in scan_read32() argument 165 switch (bus->bustype) { in scan_read32() 173 ssb_pcmcia_switch_segment(bus, 1); in scan_read32() 176 ssb_pcmcia_switch_segment(bus, 0); in scan_read32() 177 lo = readw(bus->mmio + offset); in scan_read32() 178 hi = readw(bus->mmio + offset + 2); in scan_read32() 182 return ssb_sdio_scan_read32(bus, offset); in scan_read32() 184 return readl(bus->mmio + offset); in scan_read32() 187 static int scan_switchcore(struct ssb_bus *bus, u8 coreidx) in scan_switchcore() argument 189 switch (bus->bustype) { in scan_switchcore() [all …]
|
D | sdio.c | 104 static inline struct device *ssb_sdio_dev(struct ssb_bus *bus) in ssb_sdio_dev() argument 106 return &bus->host_sdio->dev; in ssb_sdio_dev() 110 static int ssb_sdio_writeb(struct ssb_bus *bus, unsigned int addr, u8 val) in ssb_sdio_writeb() argument 114 sdio_writeb(bus->host_sdio, val, addr, &error); in ssb_sdio_writeb() 116 dev_dbg(ssb_sdio_dev(bus), "%08X <- %02x, error %d\n", in ssb_sdio_writeb() 124 static u8 ssb_sdio_readb(struct ssb_bus *bus, unsigned int addr) 129 val = sdio_readb(bus->host_sdio, addr, &error); 131 dev_dbg(ssb_sdio_dev(bus), "%08X -> %02x, error %d\n", 140 static int ssb_sdio_set_sbaddr_window(struct ssb_bus *bus, u32 address) in ssb_sdio_set_sbaddr_window() argument 144 error = ssb_sdio_writeb(bus, SBSDIO_FUNC1_SBADDRLOW, in ssb_sdio_set_sbaddr_window() [all …]
|
D | embedded.c | 23 int ssb_watchdog_timer_set(struct ssb_bus *bus, u32 ticks) in ssb_watchdog_timer_set() argument 25 if (ssb_chipco_available(&bus->chipco)) { in ssb_watchdog_timer_set() 26 ssb_chipco_watchdog_timer_set(&bus->chipco, ticks); in ssb_watchdog_timer_set() 29 if (ssb_extif_available(&bus->extif)) { in ssb_watchdog_timer_set() 30 ssb_extif_watchdog_timer_set(&bus->extif, ticks); in ssb_watchdog_timer_set() 37 int ssb_watchdog_register(struct ssb_bus *bus) in ssb_watchdog_register() argument 42 if (ssb_chipco_available(&bus->chipco)) { in ssb_watchdog_register() 43 wdt.driver_data = &bus->chipco; in ssb_watchdog_register() 46 wdt.max_timer_ms = bus->chipco.max_timer_ms; in ssb_watchdog_register() 47 } else if (ssb_extif_available(&bus->extif)) { in ssb_watchdog_register() [all …]
|
D | pcmcia.c | 71 static int ssb_pcmcia_cfg_write(struct ssb_bus *bus, u8 offset, u8 value) in ssb_pcmcia_cfg_write() argument 75 res = pcmcia_write_config_byte(bus->host_pcmcia, offset, value); in ssb_pcmcia_cfg_write() 83 static int ssb_pcmcia_cfg_read(struct ssb_bus *bus, u8 offset, u8 *value) in ssb_pcmcia_cfg_read() argument 87 res = pcmcia_read_config_byte(bus->host_pcmcia, offset, value); in ssb_pcmcia_cfg_read() 94 int ssb_pcmcia_switch_coreidx(struct ssb_bus *bus, in ssb_pcmcia_switch_coreidx() argument 106 err = ssb_pcmcia_cfg_write(bus, SSB_PCMCIA_ADDRESS0, in ssb_pcmcia_switch_coreidx() 110 err = ssb_pcmcia_cfg_write(bus, SSB_PCMCIA_ADDRESS1, in ssb_pcmcia_switch_coreidx() 114 err = ssb_pcmcia_cfg_write(bus, SSB_PCMCIA_ADDRESS2, in ssb_pcmcia_switch_coreidx() 121 err = ssb_pcmcia_cfg_read(bus, SSB_PCMCIA_ADDRESS0, &val); in ssb_pcmcia_switch_coreidx() 125 err = ssb_pcmcia_cfg_read(bus, SSB_PCMCIA_ADDRESS1, &val); in ssb_pcmcia_switch_coreidx() [all …]
|
D | main.c | 58 struct ssb_bus *bus; in ssb_pci_dev_to_bus() local 61 list_for_each_entry(bus, &buses, list) { in ssb_pci_dev_to_bus() 62 if (bus->bustype == SSB_BUSTYPE_PCI && in ssb_pci_dev_to_bus() 63 bus->host_pci == pdev) in ssb_pci_dev_to_bus() 66 bus = NULL; in ssb_pci_dev_to_bus() 70 return bus; in ssb_pci_dev_to_bus() 77 struct ssb_bus *bus; in ssb_pcmcia_dev_to_bus() local 80 list_for_each_entry(bus, &buses, list) { in ssb_pcmcia_dev_to_bus() 81 if (bus->bustype == SSB_BUSTYPE_PCMCIA && in ssb_pcmcia_dev_to_bus() 82 bus->host_pcmcia == pdev) in ssb_pcmcia_dev_to_bus() [all …]
|
D | ssb_private.h | 48 extern int ssb_pci_switch_core(struct ssb_bus *bus, 50 extern int ssb_pci_switch_coreidx(struct ssb_bus *bus, 52 extern int ssb_pci_xtal(struct ssb_bus *bus, u32 what, 54 extern int ssb_pci_get_invariants(struct ssb_bus *bus, 56 extern void ssb_pci_exit(struct ssb_bus *bus); 57 extern int ssb_pci_init(struct ssb_bus *bus); 62 static inline int ssb_pci_switch_core(struct ssb_bus *bus, in ssb_pci_switch_core() argument 67 static inline int ssb_pci_switch_coreidx(struct ssb_bus *bus, in ssb_pci_switch_coreidx() argument 72 static inline int ssb_pci_xtal(struct ssb_bus *bus, u32 what, in ssb_pci_xtal() argument 77 static inline void ssb_pci_exit(struct ssb_bus *bus) in ssb_pci_exit() argument [all …]
|
/drivers/devfreq/ |
D | exynos-bus.c | 50 static int exynos_bus_##ops(struct exynos_bus *bus) \ 54 for (i = 0; i < bus->edev_count; i++) { \ 55 if (!bus->edev[i]) \ 57 ret = devfreq_event_##ops(bus->edev[i]); \ 68 static int exynos_bus_get_event(struct exynos_bus *bus, in exynos_bus_get_event() argument 75 for (i = 0; i < bus->edev_count; i++) { in exynos_bus_get_event() 76 if (!bus->edev[i]) in exynos_bus_get_event() 79 ret = devfreq_event_get_event(bus->edev[i], &event_data); in exynos_bus_get_event() 100 struct exynos_bus *bus = dev_get_drvdata(dev); in exynos_bus_target() local 116 old_freq = bus->curr_freq; in exynos_bus_target() [all …]
|
/drivers/bcma/ |
D | main.c | 79 static u16 bcma_cc_core_id(struct bcma_bus *bus) in bcma_cc_core_id() argument 81 if (bus->chipinfo.id == BCMA_CHIP_ID_BCM4706) in bcma_cc_core_id() 86 struct bcma_device *bcma_find_core_unit(struct bcma_bus *bus, u16 coreid, in bcma_find_core_unit() argument 91 list_for_each_entry(core, &bus->cores, list) { in bcma_find_core_unit() 113 bcma_warn(core->bus, "Timeout waiting for register 0x%04X!\n", reg); in bcma_wait_value() 191 bcma_debug(core->bus, "bcma_of_get_irq() failed with rc=%d\n", in bcma_of_get_irq() 215 struct bcma_bus *bus = core->bus; in bcma_core_irq() local 218 switch (bus->hosttype) { in bcma_core_irq() 220 return bus->host_pci->irq; in bcma_core_irq() 222 if (bus->drv_mips.core && num == 0) { in bcma_core_irq() [all …]
|
D | driver_mips.c | 36 return dev->bus->chipinfo.id == BCMA_CHIP_ID_BCM47162 && in bcma_core_mips_bcm47162a0_quirk() 37 dev->bus->chipinfo.rev == 0 && dev->id.id == BCMA_CORE_MIPS_74K; in bcma_core_mips_bcm47162a0_quirk() 43 return (dev->bus->chipinfo.id == BCMA_CHIP_ID_BCM5357 || in bcma_core_mips_bcm5357b0_quirk() 44 dev->bus->chipinfo.id == BCMA_CHIP_ID_BCM4749) && in bcma_core_mips_bcm5357b0_quirk() 45 dev->bus->chipinfo.pkg == 11 && in bcma_core_mips_bcm5357b0_quirk() 101 struct bcma_device *mdev = dev->bus->drv_mips.core; in bcma_core_mips_irq() 120 struct bcma_bus *bus = dev->bus; in bcma_core_mips_set_irq() local 121 struct bcma_device *mdev = bus->drv_mips.core; in bcma_core_mips_set_irq() 151 list_for_each_entry(core, &bus->cores, list) { in bcma_core_mips_set_irq() 163 bcma_debug(bus, "set_irq: core 0x%04x, irq %d => %d\n", in bcma_core_mips_set_irq() [all …]
|
D | host_pci.c | 16 int win2 = core->bus->host_is_pcie2 ? in bcma_host_pci_switch_core() 19 pci_write_config_dword(core->bus->host_pci, BCMA_PCI_BAR0_WIN, in bcma_host_pci_switch_core() 21 pci_write_config_dword(core->bus->host_pci, win2, core->wrap); in bcma_host_pci_switch_core() 22 core->bus->mapped_core = core; in bcma_host_pci_switch_core() 23 bcma_debug(core->bus, "Switched to core: 0x%X\n", core->id.id); in bcma_host_pci_switch_core() 37 if (core->bus->mapped_core != core) in bcma_host_pci_provide_access_to_core() 45 return ioread8(core->bus->mmio + offset); in bcma_host_pci_read8() 51 return ioread16(core->bus->mmio + offset); in bcma_host_pci_read16() 57 return ioread32(core->bus->mmio + offset); in bcma_host_pci_read32() 64 iowrite8(value, core->bus->mmio + offset); in bcma_host_pci_write8() [all …]
|
/drivers/net/wireless/quantenna/qtnfmac/ |
D | bus.h | 71 static inline void *get_bus_priv(struct qtnf_bus *bus) in get_bus_priv() argument 73 if (WARN(!bus, "qtnfmac: invalid bus pointer")) in get_bus_priv() 76 return &bus->bus_priv; in get_bus_priv() 81 static inline int qtnf_bus_preinit(struct qtnf_bus *bus) in qtnf_bus_preinit() argument 83 if (!bus->bus_ops->preinit) in qtnf_bus_preinit() 85 return bus->bus_ops->preinit(bus); in qtnf_bus_preinit() 88 static inline void qtnf_bus_stop(struct qtnf_bus *bus) in qtnf_bus_stop() argument 90 if (!bus->bus_ops->stop) in qtnf_bus_stop() 92 bus->bus_ops->stop(bus); in qtnf_bus_stop() 95 static inline int qtnf_bus_data_tx(struct qtnf_bus *bus, struct sk_buff *skb) in qtnf_bus_data_tx() argument [all …]
|
/drivers/base/ |
D | bus.c | 43 static struct bus_type *bus_get(struct bus_type *bus) in bus_get() argument 45 if (bus) { in bus_get() 46 kset_get(&bus->p->subsys); in bus_get() 47 return bus; in bus_get() 52 static void bus_put(struct bus_type *bus) in bus_put() argument 54 if (bus) in bus_put() 55 kset_put(&bus->p->subsys); in bus_put() 111 ret = bus_attr->show(subsys_priv->bus, buf); in bus_attr_show() 123 ret = bus_attr->store(subsys_priv->bus, buf, count); in bus_attr_store() 132 int bus_create_file(struct bus_type *bus, struct bus_attribute *attr) in bus_create_file() argument [all …]
|
/drivers/media/pci/cx23885/ |
D | cx23885-i2c.c | 50 struct cx23885_i2c *bus = i2c_adap->algo_data; in i2c_slave_did_ack() local 51 struct cx23885_dev *dev = bus->dev; in i2c_slave_did_ack() 52 return cx_read(bus->reg_stat) & 0x01; in i2c_slave_did_ack() 57 struct cx23885_i2c *bus = i2c_adap->algo_data; in i2c_is_busy() local 58 struct cx23885_dev *dev = bus->dev; in i2c_is_busy() 59 return cx_read(bus->reg_stat) & 0x02 ? 1 : 0; in i2c_is_busy() 81 struct cx23885_i2c *bus = i2c_adap->algo_data; in i2c_sendbytes() local 82 struct cx23885_dev *dev = bus->dev; in i2c_sendbytes() 94 cx_write(bus->reg_addr, msg->addr << 25); in i2c_sendbytes() 95 cx_write(bus->reg_ctrl, bus->i2c_period | (1 << 2)); in i2c_sendbytes() [all …]
|
/drivers/pci/ |
D | of.c | 22 if (!dev->bus->dev.of_node) in pci_set_of_node() 24 dev->dev.of_node = of_pci_find_child_device(dev->bus->dev.of_node, in pci_set_of_node() 34 void pci_set_bus_of_node(struct pci_bus *bus) in pci_set_bus_of_node() argument 36 if (bus->self == NULL) in pci_set_bus_of_node() 37 bus->dev.of_node = pcibios_get_phb_of_node(bus); in pci_set_bus_of_node() 39 bus->dev.of_node = of_node_get(bus->self->dev.of_node); in pci_set_bus_of_node() 42 void pci_release_bus_of_node(struct pci_bus *bus) in pci_release_bus_of_node() argument 44 of_node_put(bus->dev.of_node); in pci_release_bus_of_node() 45 bus->dev.of_node = NULL; in pci_release_bus_of_node() 48 struct device_node * __weak pcibios_get_phb_of_node(struct pci_bus *bus) in pcibios_get_phb_of_node() argument [all …]
|
/drivers/video/fbdev/via/ |
D | via_aux.c | 30 struct via_aux_bus *bus; in via_aux_probe() local 35 bus = kmalloc(sizeof(*bus), GFP_KERNEL); in via_aux_probe() 36 if (!bus) in via_aux_probe() 39 bus->adap = adap; in via_aux_probe() 40 INIT_LIST_HEAD(&bus->drivers); in via_aux_probe() 42 via_aux_edid_probe(bus); in via_aux_probe() 43 via_aux_vt1636_probe(bus); in via_aux_probe() 44 via_aux_vt1632_probe(bus); in via_aux_probe() 45 via_aux_vt1631_probe(bus); in via_aux_probe() 46 via_aux_vt1625_probe(bus); in via_aux_probe() [all …]
|
/drivers/gpu/drm/i915/ |
D | intel_i2c.c | 147 static u32 get_reserved(struct intel_gmbus *bus) in get_reserved() argument 149 struct drm_i915_private *dev_priv = bus->dev_priv; in get_reserved() 154 reserved = I915_READ_NOTRACE(bus->gpio_reg) & in get_reserved() 163 struct intel_gmbus *bus = data; in get_clock() local 164 struct drm_i915_private *dev_priv = bus->dev_priv; in get_clock() 165 u32 reserved = get_reserved(bus); in get_clock() 166 I915_WRITE_NOTRACE(bus->gpio_reg, reserved | GPIO_CLOCK_DIR_MASK); in get_clock() 167 I915_WRITE_NOTRACE(bus->gpio_reg, reserved); in get_clock() 168 return (I915_READ_NOTRACE(bus->gpio_reg) & GPIO_CLOCK_VAL_IN) != 0; in get_clock() 173 struct intel_gmbus *bus = data; in get_data() local [all …]
|
/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 …]
|