| /kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/hive_isp_css_include/device_access/ |
| D | device_access.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 Copyright (c) 2010 - 2015, Intel Corporation. 30 * The device base address. This offset must be added 33 * "store" is a transfer to the device 34 * "load" is a transfer from the device 41 * - hrt_address a type that can hold the (sub)system address range 46 * a pointer because a (say) 64-bit host can be simulated in a 32-bit 72 /*! Read an 8-bit value from a device register or memory in the device 74 \param addr[in] Local address 76 \return device[addr] [all …]
|
| /kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/hive_isp_css_include/device_access/ |
| D | device_access.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 Copyright (c) 2010 - 2015, Intel Corporation. 30 * The device base address. This offset must be added 33 * "store" is a transfer to the device 34 * "load" is a transfer from the device 41 * - hrt_address a type that can hold the (sub)system address range 46 * a pointer because a (say) 64-bit host can be simulated in a 32-bit 72 /*! Read an 8-bit value from a device register or memory in the device 74 \param addr[in] Local address 76 \return device[addr] [all …]
|
| /kernel/linux/linux-5.10/net/core/ |
| D | dev_addr_lists.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * net/core/dev_addr_lists.c - Functions for handling net device lists 6 * This file contains functions for working with unicast, multicast and device 20 const unsigned char *addr, int addr_len, in __hw_addr_create_ex() argument 32 return -ENOMEM; in __hw_addr_create_ex() 33 memcpy(ha->addr, addr, addr_len); in __hw_addr_create_ex() 34 ha->type = addr_type; in __hw_addr_create_ex() 35 ha->refcount = 1; in __hw_addr_create_ex() 36 ha->global_use = global; in __hw_addr_create_ex() 37 ha->synced = sync ? 1 : 0; in __hw_addr_create_ex() [all …]
|
| /kernel/linux/linux-6.6/net/core/ |
| D | dev_addr_lists.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * net/core/dev_addr_lists.c - Functions for handling net device lists 6 * This file contains functions for working with unicast, multicast and device 24 struct rb_node **ins_point = &list->tree.rb_node, *parent = NULL; in __hw_addr_insert() 31 diff = memcmp(new->addr, ha->addr, addr_len); in __hw_addr_insert() 33 diff = memcmp(&new->type, &ha->type, sizeof(new->type)); in __hw_addr_insert() 37 ins_point = &parent->rb_left; in __hw_addr_insert() 39 ins_point = &parent->rb_right; in __hw_addr_insert() 41 return -EEXIST; in __hw_addr_insert() 44 rb_link_node_rcu(&new->node, parent, ins_point); in __hw_addr_insert() [all …]
|
| /kernel/linux/linux-6.6/drivers/peci/ |
| D | device.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright (c) 2018-2021 Intel Corporation 6 #include <linux/peci-cpu.h> 12 * PECI device can be removed using sysfs, but the removal can also happen as 14 * Mutex is used to protect PECI device from being double-deleted. 19 static int peci_get_revision(struct peci_device *device, u8 *revision) in peci_get_revision() argument 24 req = peci_xfer_get_dib(device); in peci_get_revision() 29 * PECI device may be in a state where it is unable to return a proper in peci_get_revision() 37 return -EIO; in peci_get_revision() 47 static int peci_get_cpu_id(struct peci_device *device, u32 *cpu_id) in peci_get_cpu_id() argument [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| D | shadowramin.c | 33 struct nvkm_device *device = bios->subdev.device; in pramin_read() local 37 *(u32 *)&bios->data[i] = nvkm_rd32(device, 0x700000 + i); in pramin_read() 48 struct nvkm_device *device = priv->bios->subdev.device; in pramin_fini() local 49 nvkm_wr32(device, 0x001700, priv->bar0); in pramin_fini() 57 struct nvkm_subdev *subdev = &bios->subdev; in pramin_init() 58 struct nvkm_device *device = subdev->device; in pramin_init() local 60 u64 addr = 0; in pramin_init() local 63 if (device->card_type < NV_50) in pramin_init() 67 if (device->card_type >= GA100) in pramin_init() 68 addr = device->chipset == 0x170; /*XXX: find the fuse reg for this */ in pramin_init() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
| D | ga100.c | 38 return (chan->cgrp->runl->doorbell << 16) | chan->id; in ga100_chan_doorbell_handle() 44 struct nvkm_runl *runl = chan->cgrp->runl; in ga100_chan_stop() 46 nvkm_wr32(runl->fifo->engine.subdev.device, runl->chan + (chan->id * 4), 0x00000003); in ga100_chan_stop() 52 struct nvkm_runl *runl = chan->cgrp->runl; in ga100_chan_start() 53 struct nvkm_device *device = runl->fifo->engine.subdev.device; in ga100_chan_start() local 56 nvkm_wr32(device, runl->chan + (chan->id * 4), 0x00000002); in ga100_chan_start() 57 nvkm_wr32(device, runl->addr + 0x0090, (gfid << 16) | chan->id); /* INTERNAL_DOORBELL. */ in ga100_chan_start() 63 struct nvkm_runl *runl = chan->cgrp->runl; in ga100_chan_unbind() 65 nvkm_wr32(runl->fifo->engine.subdev.device, runl->chan + (chan->id * 4), 0xffffffff); in ga100_chan_unbind() 73 nvkm_kmap(chan->inst); in ga100_chan_ramfc_write() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| D | shadowramin.c | 33 struct nvkm_device *device = bios->subdev.device; in pramin_read() local 37 *(u32 *)&bios->data[i] = nvkm_rd32(device, 0x700000 + i); in pramin_read() 48 struct nvkm_device *device = priv->bios->subdev.device; in pramin_fini() local 49 nvkm_wr32(device, 0x001700, priv->bar0); in pramin_fini() 57 struct nvkm_subdev *subdev = &bios->subdev; in pramin_init() 58 struct nvkm_device *device = subdev->device; in pramin_init() local 60 u64 addr = 0; in pramin_init() local 63 if (device->card_type < NV_50) in pramin_init() 67 if (device->card_type >= GM100) in pramin_init() 68 addr = nvkm_rd32(device, 0x021c04); in pramin_init() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/phy/ |
| D | mdio_bus.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <linux/device.h> 42 #include "mdio-boardinfo.h" 47 mdiodev->reset_gpio = gpiod_get_optional(&mdiodev->dev, in mdiobus_register_gpiod() 49 if (IS_ERR(mdiodev->reset_gpio)) in mdiobus_register_gpiod() 50 return PTR_ERR(mdiodev->reset_gpio); in mdiobus_register_gpiod() 52 if (mdiodev->reset_gpio) in mdiobus_register_gpiod() 53 gpiod_set_consumer_name(mdiodev->reset_gpio, "PHY reset"); in mdiobus_register_gpiod() 62 reset = reset_control_get_optional_exclusive(&mdiodev->dev, "phy"); in mdiobus_register_reset() 66 mdiodev->reset_ctrl = reset; in mdiobus_register_reset() [all …]
|
| /kernel/linux/linux-6.6/include/trace/events/ |
| D | habanalabs.h | 1 /* SPDX-License-Identifier: GPL-2.0 3 * Copyright 2016-2021 HabanaLabs, Ltd. 17 TP_PROTO(struct device *dev, u64 virt_addr, u64 phys_addr, u32 page_size, bool flush_pte), 31 __entry->virt_addr = virt_addr; 32 __entry->phys_addr = phys_addr; 33 __entry->page_size = page_size; 34 __entry->flush_pte = flush_pte; 39 __entry->virt_addr, 40 __entry->phys_addr, 41 __entry->page_size, [all …]
|
| /kernel/linux/linux-5.10/lib/ |
| D | devres.c | 1 // SPDX-License-Identifier: GPL-2.0 15 void devm_ioremap_release(struct device *dev, void *res) in devm_ioremap_release() 20 static int devm_ioremap_match(struct device *dev, void *res, void *match_data) in devm_ioremap_match() 25 static void __iomem *__devm_ioremap(struct device *dev, resource_size_t offset, in __devm_ioremap() 29 void __iomem **ptr, *addr = NULL; in __devm_ioremap() local 37 addr = ioremap(offset, size); in __devm_ioremap() 40 addr = ioremap_uc(offset, size); in __devm_ioremap() 43 addr = ioremap_wc(offset, size); in __devm_ioremap() 47 if (addr) { in __devm_ioremap() 48 *ptr = addr; in __devm_ioremap() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/huawei/hinic/ |
| D | hinic_hw_if.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <linux/device.h> 20 #define VALID_MSIX_IDX(attr, msix_index) ((msix_index) < (attr)->num_irqs) 27 * hinic_msix_attr_set - set message attribute for msix entry 28 * @hwif: the HW interface of a pci function device 36 * Return 0 - Success, negative - Failure 43 u32 msix_ctrl, addr; in hinic_msix_attr_set() local 45 if (!VALID_MSIX_IDX(&hwif->attr, msix_index)) in hinic_msix_attr_set() 46 return -EINVAL; in hinic_msix_attr_set() 54 addr = HINIC_CSR_MSIX_CTRL_ADDR(msix_index); in hinic_msix_attr_set() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
| D | hinic_hw_if.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <linux/device.h> 20 #define VALID_MSIX_IDX(attr, msix_index) ((msix_index) < (attr)->num_irqs) 27 * hinic_msix_attr_set - set message attribute for msix entry 28 * @hwif: the HW interface of a pci function device 36 * Return 0 - Success, negative - Failure 43 u32 msix_ctrl, addr; in hinic_msix_attr_set() local 45 if (!VALID_MSIX_IDX(&hwif->attr, msix_index)) in hinic_msix_attr_set() 46 return -EINVAL; in hinic_msix_attr_set() 54 addr = HINIC_CSR_MSIX_CTRL_ADDR(msix_index); in hinic_msix_attr_set() [all …]
|
| /kernel/linux/linux-6.6/lib/ |
| D | devres.c | 1 // SPDX-License-Identifier: GPL-2.0 16 void devm_ioremap_release(struct device *dev, void *res) in devm_ioremap_release() 21 static int devm_ioremap_match(struct device *dev, void *res, void *match_data) in devm_ioremap_match() 26 static void __iomem *__devm_ioremap(struct device *dev, resource_size_t offset, in __devm_ioremap() 30 void __iomem **ptr, *addr = NULL; in __devm_ioremap() local 39 addr = ioremap(offset, size); in __devm_ioremap() 42 addr = ioremap_uc(offset, size); in __devm_ioremap() 45 addr = ioremap_wc(offset, size); in __devm_ioremap() 48 addr = ioremap_np(offset, size); in __devm_ioremap() 52 if (addr) { in __devm_ioremap() [all …]
|
| /kernel/linux/linux-5.10/include/linux/mtd/ |
| D | spinand.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2016-2017 Micron Technology, Inc. 13 #include <linux/device.h> 17 #include <linux/spi/spi-mem.h> 53 #define SPINAND_BLK_ERASE_OP(addr) \ argument 55 SPI_MEM_OP_ADDR(3, addr, 1), \ 59 #define SPINAND_PAGE_READ_OP(addr) \ argument 61 SPI_MEM_OP_ADDR(3, addr, 1), \ 65 #define SPINAND_PAGE_READ_FROM_CACHE_OP(fast, addr, ndummy, buf, len) \ argument 67 SPI_MEM_OP_ADDR(2, addr, 1), \ [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/ |
| D | stmmac_mdio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 STMMAC Ethernet Driver -- MDIO bus implementation 6 Copyright (C) 2007-2009 STMicroelectronics Ltd 54 tmp = readl(priv->ioaddr + XGMAC_MDIO_C22P); in stmmac_xgmac2_c45_format() 56 writel(tmp, priv->ioaddr + XGMAC_MDIO_C22P); in stmmac_xgmac2_c45_format() 67 if (priv->synopsys_id < DWXGMAC_CORE_2_20) { in stmmac_xgmac2_c22_format() 68 /* Until ver 2.20 XGMAC does not support C22 addr >= 4. Those in stmmac_xgmac2_c22_format() 71 tmp = readl(priv->ioaddr + XGMAC_MDIO_C22P); in stmmac_xgmac2_c22_format() 76 writel(tmp, priv->ioaddr + XGMAC_MDIO_C22P); in stmmac_xgmac2_c22_format() 81 static int stmmac_xgmac2_mdio_read(struct stmmac_priv *priv, u32 addr, in stmmac_xgmac2_mdio_read() argument [all …]
|
| /kernel/linux/linux-6.6/drivers/net/dsa/mv88e6xxx/ |
| D | trace.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 11 #include <linux/device.h> 17 TP_PROTO(const struct device *dev, int spid, u16 portvec, 18 const unsigned char *addr, u16 fid), 20 TP_ARGS(dev, spid, portvec, addr, fid), 26 __array(unsigned char, addr, ETH_ALEN) 32 __entry->spid = spid; 33 __entry->portvec = portvec; 34 memcpy(__entry->addr, addr, ETH_ALEN); 35 __entry->fid = fid; [all …]
|
| /kernel/linux/linux-6.6/include/linux/mtd/ |
| D | spinand.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2016-2017 Micron Technology, Inc. 13 #include <linux/device.h> 17 #include <linux/spi/spi-mem.h> 53 #define SPINAND_BLK_ERASE_OP(addr) \ argument 55 SPI_MEM_OP_ADDR(3, addr, 1), \ 59 #define SPINAND_PAGE_READ_OP(addr) \ argument 61 SPI_MEM_OP_ADDR(3, addr, 1), \ 65 #define SPINAND_PAGE_READ_FROM_CACHE_OP(fast, addr, ndummy, buf, len) \ argument 67 SPI_MEM_OP_ADDR(2, addr, 1), \ [all …]
|
| /kernel/linux/linux-5.10/drivers/spmi/ |
| D | spmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. 16 #include <dt-bindings/spmi/spmi.h> 23 static void spmi_dev_release(struct device *dev) in spmi_dev_release() 33 static void spmi_ctrl_release(struct device *dev) in spmi_ctrl_release() 36 ida_simple_remove(&ctrl_ida, ctrl->nr); in spmi_ctrl_release() 44 static int spmi_device_match(struct device *dev, struct device_driver *drv) in spmi_device_match() 49 if (drv->name) in spmi_device_match() 50 return strncmp(dev_name(dev), drv->name, in spmi_device_match() 57 * spmi_device_add() - add a device previously constructed via spmi_device_alloc() [all …]
|
| /kernel/linux/linux-6.6/drivers/media/usb/em28xx/ |
| D | em28xx-i2c.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // em28xx-i2c.c - driver for Empia EM2800/EM2820/2840 USB video capture devices 20 #include <media/v4l2-common.h> 23 /* ----------------------------------------------------------- */ 35 dev_printk(KERN_DEBUG, &dev->intf->dev, \ 41 * 35ms is the maximum time a SMBUS device could wait when 54 switch (dev->i2c_speed & 0x03) { in em28xx_i2c_timeout() 71 * send up to 4 bytes to the em2800 i2c device 73 static int em2800_i2c_send_bytes(struct em28xx *dev, u8 addr, u8 *buf, u16 len) in em2800_i2c_send_bytes() argument 80 return -EOPNOTSUPP; in em2800_i2c_send_bytes() [all …]
|
| /kernel/linux/linux-6.6/drivers/spmi/ |
| D | spmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. 16 #include <dt-bindings/spmi/spmi.h> 23 static void spmi_dev_release(struct device *dev) in spmi_dev_release() 34 static void spmi_ctrl_release(struct device *dev) in spmi_ctrl_release() 38 ida_free(&ctrl_ida, ctrl->nr); in spmi_ctrl_release() 46 static int spmi_device_match(struct device *dev, struct device_driver *drv) in spmi_device_match() 51 if (drv->name) in spmi_device_match() 52 return strncmp(dev_name(dev), drv->name, in spmi_device_match() 59 * spmi_device_add() - add a device previously constructed via spmi_device_alloc() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/usb/em28xx/ |
| D | em28xx-i2c.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // em28xx-i2c.c - driver for Empia EM2800/EM2820/2840 USB video capture devices 29 #include "tuner-xc2028.h" 30 #include <media/v4l2-common.h> 33 /* ----------------------------------------------------------- */ 45 dev_printk(KERN_DEBUG, &dev->intf->dev, \ 51 * 35ms is the maximum time a SMBUS device could wait when 64 switch (dev->i2c_speed & 0x03) { in em28xx_i2c_timeout() 81 * send up to 4 bytes to the em2800 i2c device 83 static int em2800_i2c_send_bytes(struct em28xx *dev, u8 addr, u8 *buf, u16 len) in em2800_i2c_send_bytes() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/net/phy/ |
| D | mdio_bus.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <linux/device.h> 41 #include "mdio-boardinfo.h" 46 mdiodev->reset_gpio = gpiod_get_optional(&mdiodev->dev, in mdiobus_register_gpiod() 48 if (IS_ERR(mdiodev->reset_gpio)) in mdiobus_register_gpiod() 49 return PTR_ERR(mdiodev->reset_gpio); in mdiobus_register_gpiod() 51 if (mdiodev->reset_gpio) in mdiobus_register_gpiod() 52 gpiod_set_consumer_name(mdiodev->reset_gpio, "PHY reset"); in mdiobus_register_gpiod() 61 reset = reset_control_get_optional_exclusive(&mdiodev->dev, "phy"); in mdiobus_register_reset() 65 mdiodev->reset_ctrl = reset; in mdiobus_register_reset() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
| D | busnv50.c | 31 u32 addr; member 39 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv50_i2c_bus_drive_scl() local 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() 49 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv50_i2c_bus_drive_sda() local 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() 59 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv50_i2c_bus_sense_scl() local [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
| D | busnv50.c | 31 u32 addr; member 39 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv50_i2c_bus_drive_scl() local 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() 49 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv50_i2c_bus_drive_sda() local 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() 59 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv50_i2c_bus_sense_scl() local [all …]
|