Home
last modified time | relevance | path

Searched +full:bus +full:- +full:err (Results 1 – 25 of 1076) sorted by relevance

12345678910>>...44

/linux-6.12.1/drivers/ssb/
Dpcmcia.c3 * PCMCIA-Hostbus related functions
6 * Copyright 2007-2008 Michael Buesch <m@bues.ch>
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()
77 return -EBUSY; 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()
89 return -EBUSY; in ssb_pcmcia_cfg_read()
94 int ssb_pcmcia_switch_coreidx(struct ssb_bus *bus, in ssb_pcmcia_switch_coreidx() argument
97 int err; in ssb_pcmcia_switch_coreidx() local
[all …]
Dmain.c20 #include <linux/dma-mapping.h>
33 /* Temporary list of yet-to-be-attached buses */
44 /* There are differences in the codeflow, if the bus is
60 struct ssb_bus *bus; in ssb_pci_dev_to_bus() local
63 list_for_each_entry(bus, &buses, list) { in ssb_pci_dev_to_bus()
64 if (bus->bustype == SSB_BUSTYPE_PCI && in ssb_pci_dev_to_bus()
65 bus->host_pci == pdev) in ssb_pci_dev_to_bus()
68 bus = NULL; in ssb_pci_dev_to_bus()
72 return bus; in ssb_pci_dev_to_bus()
79 struct ssb_bus *bus; in ssb_pcmcia_dev_to_bus() local
[all …]
Dsprom.c5 * Copyright (C) 2005-2008 Michael Buesch <m@bues.ch>
6 * Copyright (C) 2005 Martin Langer <martin-langer@gmx.de>
29 pos += scnprintf(buf + pos, buf_len - pos - 1, in sprom2hex()
31 pos += scnprintf(buf + pos, buf_len - pos - 1, "\n"); in sprom2hex()
40 int err, cnt = 0; in hex2sprom() local
45 c = dump[len - 1]; in hex2sprom()
48 len--; in hex2sprom()
52 return -EINVAL; in hex2sprom()
57 err = kstrtoul(tmp, 16, &parsed); in hex2sprom()
58 if (err) in hex2sprom()
[all …]
Ddriver_gpio.c6 * Copyright 2012, Hauke Mehrtens <hauke@hauke-m.de>
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()
33 return -EINVAL; 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
[all …]
Dpci.c2 * Sonics Silicon Backplane PCI-Hostbus related functions.
4 * Copyright (C) 2005-2006 Michael Buesch <m@bues.ch>
5 * Copyright (C) 2005 Martin Langer <martin-langer@gmx.de>
32 int ssb_pci_switch_coreidx(struct ssb_bus *bus, u8 coreidx) in ssb_pci_switch_coreidx() argument
34 int err; in ssb_pci_switch_coreidx() local
39 err = pci_write_config_dword(bus->host_pci, SSB_BAR0_WIN, in ssb_pci_switch_coreidx()
42 if (err) in ssb_pci_switch_coreidx()
44 err = pci_read_config_dword(bus->host_pci, SSB_BAR0_WIN, in ssb_pci_switch_coreidx()
46 if (err) in ssb_pci_switch_coreidx()
48 cur_core = (cur_core - SSB_ENUM_BASE) in ssb_pci_switch_coreidx()
[all …]
/linux-6.12.1/drivers/bcma/
Dmain.c3 * Bus subsystem
23 /* contains the number the next bus should get. */
37 return sprintf(buf, "0x%03X\n", core->id.manuf); in manuf_show()
44 return sprintf(buf, "0x%03X\n", core->id.id); in id_show()
51 return sprintf(buf, "0x%02X\n", core->id.rev); in rev_show()
58 return sprintf(buf, "0x%X\n", core->id.class); in class_show()
80 static u16 bcma_cc_core_id(struct bcma_bus *bus) in bcma_cc_core_id() argument
82 if (bus->chipinfo.id == BCMA_CHIP_ID_BCM4706) in bcma_cc_core_id()
87 struct bcma_device *bcma_find_core_unit(struct bcma_bus *bus, u16 coreid, in bcma_find_core_unit() argument
92 list_for_each_entry(core, &bus->cores, list) { in bcma_find_core_unit()
[all …]
Dhost_pci.c16 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()
20 core->addr); 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()
30 switch (core->id.id) { in bcma_host_pci_provide_access_to_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()
[all …]
/linux-6.12.1/sound/i2c/
Di2c.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * (c) 1998 Gerd Knorr <kraxel@cs.tu-berlin.de>
25 static int snd_i2c_bit_probeaddr(struct snd_i2c_bus *bus,
34 static int snd_i2c_bus_free(struct snd_i2c_bus *bus) in snd_i2c_bus_free() argument
39 if (snd_BUG_ON(!bus)) in snd_i2c_bus_free()
40 return -EINVAL; in snd_i2c_bus_free()
41 while (!list_empty(&bus->devices)) { in snd_i2c_bus_free()
42 device = snd_i2c_device(bus->devices.next); in snd_i2c_bus_free()
45 if (bus->master) in snd_i2c_bus_free()
46 list_del(&bus->buses); in snd_i2c_bus_free()
[all …]
Dcs8427.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Routines for control of the CS8427 via i2c bus
48 int err; in snd_cs8427_reg_write() local
53 err = snd_i2c_sendbytes(device, buf, 2); in snd_cs8427_reg_write()
54 if (err != 2) { in snd_cs8427_reg_write()
55 dev_err(device->bus->card->dev, in snd_cs8427_reg_write()
57 buf[0], buf[1], err); in snd_cs8427_reg_write()
58 return err < 0 ? err : -EIO; in snd_cs8427_reg_write()
67 int err; in snd_cs8427_reg_read() local
70 err = snd_i2c_sendbytes(device, &reg, 1); in snd_cs8427_reg_read()
[all …]
Dtea6330t.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Routines for control of the TEA6330T circuit via i2c bus
16 MODULE_DESCRIPTION("Routines for control of the TEA6330T circuit via i2c bus");
27 #define TEA6330T_FCH 0x10 /* select fader channels - front or rear */
30 #define TEA6330T_EQN 0x40 /* equalizer switchover (0=equalizer-on) */
35 struct snd_i2c_bus *bus; member
45 int snd_tea6330t_detect(struct snd_i2c_bus *bus, int equalizer) in snd_tea6330t_detect() argument
49 snd_i2c_lock(bus); in snd_tea6330t_detect()
50 res = snd_i2c_probeaddr(bus, TEA6330T_ADDR); in snd_tea6330t_detect()
51 snd_i2c_unlock(bus); in snd_tea6330t_detect()
[all …]
/linux-6.12.1/drivers/pmdomain/bcm/
Dbcm-pmb.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 #include <dt-bindings/soc/bcm-pmb.h>
80 u8 bus; member
90 static int bcm_pmb_bpcm_read(struct bcm_pmb *pmb, int bus, u8 device, in bcm_pmb_bpcm_read() argument
93 void __iomem *base = pmb->base + bus * 0x20; in bcm_pmb_bpcm_read()
95 int err; in bcm_pmb_bpcm_read() local
97 spin_lock_irqsave(&pmb->lock, flags); in bcm_pmb_bpcm_read()
98 err = bpcm_rd(base, device, offset, val); in bcm_pmb_bpcm_read()
99 spin_unlock_irqrestore(&pmb->lock, flags); in bcm_pmb_bpcm_read()
101 if (!err) in bcm_pmb_bpcm_read()
[all …]
/linux-6.12.1/drivers/pci/
Dxen-pcifront.c1 // SPDX-License-Identifier: GPL-2.0
27 #include <asm/xen/swiotlb-xen.h>
29 #define INVALID_EVTCHN (-1)
33 struct pci_bus *bus; member
64 return sd->pdev; in pcifront_get_pdev()
68 unsigned int domain, unsigned int bus, in pcifront_init_sd() argument
72 sd->sd.node = first_online_node; in pcifront_init_sd()
73 sd->sd.domain = domain; in pcifront_init_sd()
74 sd->pdev = pdev; in pcifront_init_sd()
104 if (test_bit(_XEN_PCIB_active, (unsigned long *)&pdev->sh_info->flags) in schedule_pcifront_aer_op()
[all …]
/linux-6.12.1/drivers/pci/pcie/
Daer_inject.c1 // SPDX-License-Identifier: GPL-2.0
8 * user space helper tool aer-inject, which can be gotten from:
9 * https://github.com/intel/aer-inject.git
35 u8 bus; member
50 unsigned int bus; member
66 struct pci_bus *bus; member
77 static void aer_error_init(struct aer_error *err, u32 domain, in aer_error_init() argument
78 unsigned int bus, unsigned int devfn, in aer_error_init() argument
81 INIT_LIST_HEAD(&err->list); in aer_error_init()
82 err->domain = domain; in aer_error_init()
[all …]
/linux-6.12.1/drivers/net/phy/
Dmdio_bus.c1 // SPDX-License-Identifier: GPL-2.0+
2 /* MDIO Bus interface
40 #include "mdio-boardinfo.h"
45 mdiodev->reset_gpio = gpiod_get_optional(&mdiodev->dev, in mdiobus_register_gpiod()
47 if (IS_ERR(mdiodev->reset_gpio)) in mdiobus_register_gpiod()
48 return PTR_ERR(mdiodev->reset_gpio); in mdiobus_register_gpiod()
50 if (mdiodev->reset_gpio) in mdiobus_register_gpiod()
51 gpiod_set_consumer_name(mdiodev->reset_gpio, "PHY reset"); in mdiobus_register_gpiod()
60 reset = reset_control_get_optional_exclusive(&mdiodev->dev, "phy"); in mdiobus_register_reset()
64 mdiodev->reset_ctrl = reset; in mdiobus_register_reset()
[all …]
/linux-6.12.1/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dsdio.c1 // SPDX-License-Identifier: ISC
72 __le32 buf; /* Can't be pointer on (64-bit) hosts */
112 #include "bus.h"
117 #define TXHI (TXQLEN - 256) /* turn on flow control above TXHI */
118 #define TXLOW (TXHI - 256) /* turn off flow control below TXLOW */
146 /* 1: isolate internal sdio signals, put external pads in tri-state; requires
147 * sdio bus power cycle to clear (rev 9) */
151 /* Force SD->SB reset mapping (rev 11) */
222 #define I_BUSPWR (1 << 17) /* SDIO Bus Power Change (rev 9) */
247 #define SFC_ABORTALL (1 << 3) /* Abort all in-progress frames */
[all …]
Dcommon.c1 // SPDX-License-Identifier: ISC
14 #include "bus.h"
68 MODULE_PARM_DESC(iapp, "Enable partial support for the obsoleted Inter-Access Point Protocol");
82 struct brcmf_pub *drvr = ifp->drvr; in brcmf_c_set_joinpref_default()
84 int err; in brcmf_c_set_joinpref_default() local
96 err = brcmf_fil_iovar_data_set(ifp, "join_pref", join_pref_params, in brcmf_c_set_joinpref_default()
98 if (err) in brcmf_c_set_joinpref_default()
99 bphy_err(drvr, "Set join_pref error (%d)\n", err); in brcmf_c_set_joinpref_default()
106 s32 err; in brcmf_c_download() local
109 dload_buf->flag = cpu_to_le16(flag); in brcmf_c_download()
[all …]
/linux-6.12.1/drivers/xen/xen-pciback/
Dpci_stub.c2 * PCI Stub Driver - Grabs devices in backend to be exported later
46 unsigned char bus; member
58 struct xen_pcibk_device *pdev;/* non-NULL if struct pci_dev is in use */
80 dev_dbg(&dev->dev, "pcistub_device_alloc\n"); in pcistub_device_alloc()
86 psdev->dev = pci_dev_get(dev); in pcistub_device_alloc()
87 if (!psdev->dev) { in pcistub_device_alloc()
92 kref_init(&psdev->kref); in pcistub_device_alloc()
93 spin_lock_init(&psdev->lock); in pcistub_device_alloc()
95 psdev->gsi = -1; in pcistub_device_alloc()
119 dev = psdev->dev; in pcistub_device_release()
[all …]
Dxenbus.c1 // SPDX-License-Identifier: GPL-2.0
3 * PCI Backend Xenbus Setup - handles setup with frontend and xend
20 #define INVALID_EVTCHN_IRQ (-1)
26 " 0 - (default) Hide the true PCI topology and makes the frontend\n"\
27 " there is a single PCI bus with only the exported devices on it.\n"\
28 " For example, a device at 03:05.0 will be re-assigned to 00:00.0\n"\
29 " while second device at 02:1a.1 will be re-assigned to 00:01.1.\n"\
30 " 1 - Passthrough provides a real view of the PCI topology to the\n"\
35 " bus/slot locations.");
44 dev_dbg(&xdev->dev, "allocated pdev @ 0x%p\n", pdev); in alloc_pdev()
[all …]
/linux-6.12.1/drivers/net/dsa/mv88e6xxx/
Dphy.c1 // SPDX-License-Identifier: GPL-2.0-or-later
16 int mv88e6165_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, in mv88e6165_phy_read() argument
22 int mv88e6165_phy_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, in mv88e6165_phy_write() argument
31 struct mii_bus *bus; in mv88e6xxx_phy_read() local
33 bus = mv88e6xxx_default_mdio_bus(chip); in mv88e6xxx_phy_read()
34 if (!bus) in mv88e6xxx_phy_read()
35 return -EOPNOTSUPP; in mv88e6xxx_phy_read()
37 if (!chip->info->ops->phy_read) in mv88e6xxx_phy_read()
38 return -EOPNOTSUPP; in mv88e6xxx_phy_read()
40 return chip->info->ops->phy_read(chip, bus, addr, reg, val); in mv88e6xxx_phy_read()
[all …]
/linux-6.12.1/drivers/net/ethernet/freescale/enetc/
Denetc_pci_mdio.c1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
9 #define ENETC_MDIO_BUS_NAME ENETC_MDIO_DEV_NAME " Bus"
16 struct device *dev = &pdev->dev; in enetc_pci_mdio_probe()
19 struct mii_bus *bus; in enetc_pci_mdio_probe() local
20 int err; in enetc_pci_mdio_probe() local
25 err = -ENXIO; in enetc_pci_mdio_probe()
31 err = PTR_ERR(hw); in enetc_pci_mdio_probe()
35 bus = devm_mdiobus_alloc_size(dev, sizeof(*mdio_priv)); in enetc_pci_mdio_probe()
36 if (!bus) { in enetc_pci_mdio_probe()
37 err = -ENOMEM; in enetc_pci_mdio_probe()
[all …]
/linux-6.12.1/drivers/net/mdio/
Dmdio-thunder.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2009-2016 Cavium, Inc.
15 #include "mdio-cavium.h"
28 int err; in thunder_mdiobus_pci_probe() local
31 nexus = devm_kzalloc(&pdev->dev, sizeof(*nexus), GFP_KERNEL); in thunder_mdiobus_pci_probe()
33 return -ENOMEM; in thunder_mdiobus_pci_probe()
37 err = pcim_enable_device(pdev); in thunder_mdiobus_pci_probe()
38 if (err) { in thunder_mdiobus_pci_probe()
39 dev_err(&pdev->dev, "Failed to enable PCI device\n"); in thunder_mdiobus_pci_probe()
41 return err; in thunder_mdiobus_pci_probe()
[all …]
/linux-6.12.1/sound/hda/
Dhdac_bus.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * HD-audio core bus driver
24 * snd_hdac_bus_init - initialize a HD-audio bas bus
25 * @bus: the pointer to bus object
27 * @ops: bus verb operators
31 int snd_hdac_bus_init(struct hdac_bus *bus, struct device *dev, in snd_hdac_bus_init() argument
34 memset(bus, 0, sizeof(*bus)); in snd_hdac_bus_init()
35 bus->dev = dev; in snd_hdac_bus_init()
37 bus->ops = ops; in snd_hdac_bus_init()
39 bus->ops = &default_ops; in snd_hdac_bus_init()
[all …]
/linux-6.12.1/drivers/xen/xenbus/
Dxenbus_probe.c5 * Copyright (C) 2005 Mike Wray, Hewlett-Packard
41 #include <linux/err.h>
60 #include <xen/xen-ops.h>
68 static int xs_init_irq = -1;
77 (xen_store_interface->connection == XENSTORE_CONNECTED))
90 for (; *arr->devicetype != '\0'; arr++) { in match_device()
91 if (!strcmp(arr->devicetype, dev->devicetype)) in match_device()
101 if (!drv->ids) in xenbus_match()
104 return match_device(drv->ids, to_xenbus_device(_dev)) != NULL; in xenbus_match()
111 kfree(dev->otherend); in free_otherend_details()
[all …]
/linux-6.12.1/drivers/net/ethernet/freescale/
Dfec_mpc52xx_phy.c2 * Driver for the MPC5200 Fast Ethernet Controller - MDIO bus driver
29 static int mpc52xx_fec_mdio_transfer(struct mii_bus *bus, int phy_id, in mpc52xx_fec_mdio_transfer() argument
32 struct mpc52xx_fec_mdio_priv *priv = bus->priv; in mpc52xx_fec_mdio_transfer()
33 struct mpc52xx_fec __iomem *fec = priv->regs; in mpc52xx_fec_mdio_transfer()
39 out_be32(&fec->ievent, FEC_IEVENT_MII); in mpc52xx_fec_mdio_transfer()
40 out_be32(&fec->mii_data, value); in mpc52xx_fec_mdio_transfer()
43 while (!(in_be32(&fec->ievent) & FEC_IEVENT_MII) && --tries) in mpc52xx_fec_mdio_transfer()
47 return -ETIMEDOUT; in mpc52xx_fec_mdio_transfer()
50 in_be32(&fec->mii_data) & FEC_MII_DATA_DATAMSK : 0; in mpc52xx_fec_mdio_transfer()
53 static int mpc52xx_fec_mdio_read(struct mii_bus *bus, int phy_id, int reg) in mpc52xx_fec_mdio_read() argument
[all …]
/linux-6.12.1/drivers/pci/hotplug/
Dcpcihp_generic.c1 // SPDX-License-Identifier: GPL-2.0+
32 #define MY_NAME THIS_MODULE->name
41 #define err(format, arg...) printk(KERN_ERR "%s: " format "\n", MY_NAME, ## arg) macro
50 static struct pci_bus *bus; variable
68 return -EINVAL; in validate_parameters()
72 return -EINVAL; in validate_parameters()
76 err("Invalid hotplug bus bridge device bus number"); in validate_parameters()
77 return -EINVAL; in validate_parameters()
82 err("Invalid hotplug bus bridge device"); in validate_parameters()
83 return -EINVAL; in validate_parameters()
[all …]

12345678910>>...44