Home
last modified time | relevance | path

Searched refs:devid (Results 1 – 25 of 346) sorted by relevance

12345678910>>...14

/kernel/linux/linux-5.10/drivers/iommu/amd/
Diommu.c132 return p->devid; in get_acpihid_device_id()
140 int devid; in get_device_id() local
143 devid = get_pci_device_id(dev); in get_device_id()
145 devid = get_acpihid_device_id(dev, NULL); in get_device_id()
147 return devid; in get_device_id()
186 static struct iommu_dev_data *alloc_dev_data(u16 devid) in alloc_dev_data() argument
195 dev_data->devid = devid; in alloc_dev_data()
202 static struct iommu_dev_data *search_dev_data(u16 devid) in search_dev_data() argument
212 if (dev_data->devid == devid) in search_dev_data()
221 u16 devid = pci_dev_id(pdev); in clone_alias() local
[all …]
Dinit.c109 u16 devid; member
127 u16 devid; member
145 u16 devid; member
287 static inline void update_last_devid(u16 devid) in update_last_devid() argument
289 if (devid > amd_iommu_last_bdf) in update_last_devid()
290 amd_iommu_last_bdf = devid; in update_last_devid()
584 update_last_devid(dev->devid); in find_last_devid_from_ivhd()
920 static void set_dev_entry_bit(u16 devid, u8 bit) in set_dev_entry_bit() argument
925 amd_iommu_dev_table[devid].data[i] |= (1UL << _bit); in set_dev_entry_bit()
928 static int get_dev_entry_bit(u16 devid, u8 bit) in get_dev_entry_bit() argument
[all …]
Diommu_v2.c53 u16 devid; member
72 u16 devid; member
88 u16 devid; in device_id() local
90 devid = pdev->bus->number; in device_id()
91 devid = (devid << 8) | pdev->devfn; in device_id()
93 return devid; in device_id()
96 static struct device_state *__get_device_state(u16 devid) in __get_device_state() argument
101 if (dev_state->devid == devid) in __get_device_state()
108 static struct device_state *get_device_state(u16 devid) in get_device_state() argument
114 dev_state = __get_device_state(devid); in get_device_state()
[all …]
Dquirks.c18 u16 devid; member
30 { .id = 4, .devid = 0xa0 },
31 { .id = 5, .devid = 0x2 },
36 { .id = 4, .devid = 0xa0 },
41 { .id = 32, .devid = 0xa0 },
51 for (i = d->driver_data; i->id != 0 && i->devid != 0; i++) in ivrs_ioapic_quirk_cb()
52 add_special_device(IVHD_SPECIAL_IOAPIC, i->id, (u16 *)&i->devid, 0); in ivrs_ioapic_quirk_cb()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/
Dmbox.c21 void __otx2_mbox_reset(struct otx2_mbox *mbox, int devid) in __otx2_mbox_reset() argument
23 void *hw_mbase = mbox->hwbase + (devid * MBOX_SIZE); in __otx2_mbox_reset()
24 struct otx2_mbox_dev *mdev = &mbox->dev[devid]; in __otx2_mbox_reset()
39 void otx2_mbox_reset(struct otx2_mbox *mbox, int devid) in otx2_mbox_reset() argument
41 struct otx2_mbox_dev *mdev = &mbox->dev[devid]; in otx2_mbox_reset()
44 __otx2_mbox_reset(mbox, devid); in otx2_mbox_reset()
63 int devid; in otx2_mbox_init() local
134 for (devid = 0; devid < ndevs; devid++) { in otx2_mbox_init()
135 mdev = &mbox->dev[devid]; in otx2_mbox_init()
136 mdev->mbase = mbox->hwbase + (devid * MBOX_SIZE); in otx2_mbox_init()
[all …]
/kernel/linux/linux-5.10/arch/sparc/include/asm/
Dsbi.h69 static inline int acquire_sbi(int devid, int mask) in acquire_sbi() argument
74 "r" (ECSR_DEV_BASE(devid) | SBI_INTR_STATE), in acquire_sbi()
79 static inline void release_sbi(int devid, int mask) in release_sbi() argument
83 "r" (ECSR_DEV_BASE(devid) | SBI_INTR_STATE), in release_sbi()
87 static inline void set_sbi_tid(int devid, int targetid) in set_sbi_tid() argument
91 "r" (ECSR_DEV_BASE(devid) | SBI_INTR_TID), in set_sbi_tid()
95 static inline int get_sbi_ctl(int devid, int cfgno) in get_sbi_ctl() argument
101 "r" ((ECSR_DEV_BASE(devid) | SBI_CFG0) + (cfgno<<2)), in get_sbi_ctl()
106 static inline void set_sbi_ctl(int devid, int cfgno, int cfg) in set_sbi_ctl() argument
110 "r" ((ECSR_DEV_BASE(devid) | SBI_CFG0) + (cfgno<<2)), in set_sbi_ctl()
/kernel/linux/linux-5.10/drivers/acpi/
Dacpi_pnp.c340 const struct acpi_device_id *devid; in acpi_pnp_match() local
342 for (devid = acpi_pnp_device_ids; devid->id[0]; devid++) in acpi_pnp_match()
343 if (matching_id(idstr, (char *)devid->id)) { in acpi_pnp_match()
345 *matchid = devid; in acpi_pnp_match()
/kernel/linux/linux-5.10/drivers/xen/xen-pciback/
Dconf_space_quirks.c37 if (match_one_device(&tmp_quirk->devid, dev) != NULL) in xen_pcibk_find_quirk()
106 quirk->devid.vendor = dev->vendor; in xen_pcibk_config_quirks_init()
107 quirk->devid.device = dev->device; in xen_pcibk_config_quirks_init()
108 quirk->devid.subvendor = dev->subsystem_vendor; in xen_pcibk_config_quirks_init()
109 quirk->devid.subdevice = dev->subsystem_device; in xen_pcibk_config_quirks_init()
110 quirk->devid.class = 0; in xen_pcibk_config_quirks_init()
111 quirk->devid.class_mask = 0; in xen_pcibk_config_quirks_init()
112 quirk->devid.driver_data = 0UL; in xen_pcibk_config_quirks_init()
/kernel/linux/linux-5.10/drivers/char/
Dscx200_gpio.c79 dev_t devid; in scx200_gpio_init() local
99 devid = MKDEV(major, 0); in scx200_gpio_init()
100 rc = register_chrdev_region(devid, MAX_PINS, "scx200_gpio"); in scx200_gpio_init()
102 rc = alloc_chrdev_region(&devid, 0, MAX_PINS, "scx200_gpio"); in scx200_gpio_init()
103 major = MAJOR(devid); in scx200_gpio_init()
111 cdev_add(&scx200_gpio_cdev, devid, MAX_PINS); in scx200_gpio_init()
Dpc8736x_gpio.c258 dev_t devid; in pc8736x_gpio_init() local
307 devid = MKDEV(major, 0); in pc8736x_gpio_init()
308 rc = register_chrdev_region(devid, PC8736X_GPIO_CT, DEVNAME); in pc8736x_gpio_init()
310 rc = alloc_chrdev_region(&devid, 0, PC8736X_GPIO_CT, DEVNAME); in pc8736x_gpio_init()
311 major = MAJOR(devid); in pc8736x_gpio_init()
327 cdev_add(&pc8736x_gpio_cdev, devid, PC8736X_GPIO_CT); in pc8736x_gpio_init()
/kernel/linux/linux-5.10/arch/mips/ath25/
Dar5312.c287 u32 scratch, devid, clock_ctl1; in ar5312_cpu_frequency() local
297 devid = ar5312_rst_reg_read(AR5312_REV); in ar5312_cpu_frequency()
298 devid = (devid & AR5312_REV_MAJ) >> AR5312_REV_MAJ_S; in ar5312_cpu_frequency()
299 if (devid == AR5312_REV_MAJ_AR2313) { in ar5312_cpu_frequency()
356 u32 devid; in ar5312_plat_mem_setup() local
372 devid = ar5312_rst_reg_read(AR5312_REV); in ar5312_plat_mem_setup()
373 devid >>= AR5312_REV_WMAC_MIN_S; in ar5312_plat_mem_setup()
374 devid &= AR5312_REV_CHIP; in ar5312_plat_mem_setup()
375 ath25_board.devid = (u16)devid; in ar5312_plat_mem_setup()
/kernel/linux/linux-5.10/drivers/ata/
Dpata_it8213.c145 int devid = adev->devno; in it8213_set_dmamode() local
173 udma_enable |= (1 << devid); in it8213_set_dmamode()
177 udma_timing &= ~(3 << (4 * devid)); in it8213_set_dmamode()
178 udma_timing |= u_speed << (4 * devid); in it8213_set_dmamode()
183 ideconf &= ~(0x1001 << devid); in it8213_set_dmamode()
184 ideconf |= u_clock << devid; in it8213_set_dmamode()
209 if (devid) { /* Slave */ in it8213_set_dmamode()
225 udma_enable &= ~(1 << devid); in it8213_set_dmamode()
Dlibata-pmp.c263 u16 devid = sata_pmp_gscr_devid(gscr); in sata_pmp_configure() local
295 if (vendor == 0x1095 && (devid == 0x3726 || devid == 0x3826)) { in sata_pmp_configure()
316 sata_pmp_spec_rev_str(gscr), vendor, devid, in sata_pmp_configure()
382 u16 devid = sata_pmp_gscr_devid(gscr); in sata_pmp_quirks() local
385 if (vendor == 0x1095 && (devid == 0x3726 || devid == 0x3826)) { in sata_pmp_quirks()
404 } else if (vendor == 0x1095 && devid == 0x4723) { in sata_pmp_quirks()
416 } else if (vendor == 0x1095 && devid == 0x4726) { in sata_pmp_quirks()
438 } else if (vendor == 0x1095 && (devid == 0x5723 || devid == 0x5733 || in sata_pmp_quirks()
439 devid == 0x5734 || devid == 0x5744)) { in sata_pmp_quirks()
449 } else if (vendor == 0x197b && (devid == 0x2352 || devid == 0x0325)) { in sata_pmp_quirks()
[all …]
Dpata_rdc.c177 int devid = adev->devno + 2 * ap->port_no; in rdc_set_dmamode() local
213 udma_enable |= (1 << devid); in rdc_set_dmamode()
217 udma_timing &= ~(3 << (4 * devid)); in rdc_set_dmamode()
218 udma_timing |= u_speed << (4 * devid); in rdc_set_dmamode()
223 ideconf &= ~(0x1001 << devid); in rdc_set_dmamode()
224 ideconf |= u_clock << devid; in rdc_set_dmamode()
266 udma_enable &= ~(1 << devid); in rdc_set_dmamode()
Dpata_efar.c164 int devid = adev->devno + 2 * ap->port_no; in efar_set_dmamode() local
184 udma_enable |= (1 << devid); in efar_set_dmamode()
188 udma_timing &= ~(7 << (4 * devid)); in efar_set_dmamode()
189 udma_timing |= udma << (4 * devid); in efar_set_dmamode()
230 udma_enable &= ~(1 << devid); in efar_set_dmamode()
/kernel/linux/linux-5.10/fs/autofs/
Ddev-ioctl.c226 static int autofs_dev_ioctl_open_mountpoint(const char *name, dev_t devid) in autofs_dev_ioctl_open_mountpoint() argument
235 err = find_autofs_mount(name, &path, test_by_dev, &devid); in autofs_dev_ioctl_open_mountpoint()
262 dev_t devid; in autofs_dev_ioctl_openmount() local
267 if (!param->openmount.devid) in autofs_dev_ioctl_openmount()
273 devid = new_decode_dev(param->openmount.devid); in autofs_dev_ioctl_openmount()
276 fd = autofs_dev_ioctl_open_mountpoint(path, devid); in autofs_dev_ioctl_openmount()
425 dev_t devid; in autofs_dev_ioctl_requester() local
430 devid = sbi->sb->s_dev; in autofs_dev_ioctl_requester()
434 err = find_autofs_mount(param->path, &path, test_by_dev, &devid); in autofs_dev_ioctl_requester()
510 unsigned int devid, magic; in autofs_dev_ioctl_ismountpoint() local
[all …]
/kernel/linux/linux-5.10/tools/usb/usbip/libsrc/
Dvhci_driver.c52 int port, status, speed, devid; in parse_status() local
60 &devid, &sockfd, lbusid); in parse_status()
68 hub, port, status, speed, devid); in parse_status()
83 idev->devid = devid; in parse_status()
85 idev->busnum = (devid >> 16); in parse_status()
86 idev->devnum = (devid & 0x0000ffff); in parse_status()
357 int usbip_vhci_attach_device2(uint8_t port, int sockfd, uint32_t devid, in usbip_vhci_attach_device2() argument
366 port, sockfd, devid, speed); in usbip_vhci_attach_device2()
394 int devid = get_devid(busnum, devnum); in usbip_vhci_attach_device() local
396 return usbip_vhci_attach_device2(port, sockfd, devid, speed); in usbip_vhci_attach_device()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
Dt4_pci_id_tbl.h83 #define CH_PCI_ID_TABLE_FENTRY(devid) \ argument
84 CH_PCI_ID_TABLE_ENTRY((devid) | \
87 #define CH_PCI_ID_TABLE_FENTRY(devid) \ argument
88 CH_PCI_ID_TABLE_ENTRY((devid) | \
90 CH_PCI_ID_TABLE_ENTRY((devid) | \
/kernel/linux/linux-5.10/drivers/base/
Dplatform-msi.c28 int devid; member
41 u32 devid; in platform_msi_calc_hwirq() local
43 devid = desc->platform.msi_priv_data->devid; in platform_msi_calc_hwirq()
45 return (devid << (32 - DEV_ID_SHIFT)) | desc->platform.msi_index; in platform_msi_calc_hwirq()
222 datap->devid = ida_simple_get(&platform_msi_devid_ida, in platform_msi_alloc_priv_data()
224 if (datap->devid < 0) { in platform_msi_alloc_priv_data()
225 int err = datap->devid; in platform_msi_alloc_priv_data()
238 ida_simple_remove(&platform_msi_devid_ida, data->devid); in platform_msi_free_priv_data()
/kernel/linux/linux-5.10/drivers/hwtracing/coresight/
Dcoresight-tmc-core.c218 static enum tmc_mem_intf_width tmc_get_memwidth(u32 devid) in tmc_get_memwidth() argument
231 switch (BMVAL(devid, 8, 10)) { in tmc_get_memwidth()
266 coresight_tmc_reg(devid, CORESIGHT_DEVID);
381 static int tmc_etr_setup_caps(struct device *parent, u32 devid, void *dev_caps) in tmc_etr_setup_caps() argument
393 if (!(devid & TMC_DEVID_NOSCAT) && tmc_etr_can_use_sg(parent)) in tmc_etr_setup_caps()
397 if (devid & TMC_DEVID_AXIAW_VALID) in tmc_etr_setup_caps()
398 dma_mask = ((devid >> TMC_DEVID_AXIAW_SHIFT) & in tmc_etr_setup_caps()
435 u32 devid; in tmc_probe() local
462 devid = readl_relaxed(drvdata->base + CORESIGHT_DEVID); in tmc_probe()
463 drvdata->config_type = BMVAL(devid, 6, 7); in tmc_probe()
[all …]
/kernel/linux/linux-5.10/drivers/power/supply/
Dlp8727_charger.c92 enum lp8727_dev_id devid; member
182 u8 devid = LP8727_ID_NONE; in lp8727_id_detection() local
187 devid = LP8727_ID_TA; in lp8727_id_detection()
193 devid = LP8727_ID_DEDICATED_CHG; in lp8727_id_detection()
196 devid = LP8727_ID_USB_CHG; in lp8727_id_detection()
199 devid = LP8727_ID_USB_DS; in lp8727_id_detection()
204 devid = LP8727_ID_NONE; in lp8727_id_detection()
209 pchg->devid = devid; in lp8727_id_detection()
315 val->intval = lp8727_is_charger_attached(psy->desc->name, pchg->devid); in lp8727_charger_get_property()
343 if (!lp8727_is_charger_attached(psy->desc->name, pchg->devid)) { in lp8727_battery_get_property()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/
Dqib_pcie.c401 u16 devid; in qib_tune_pcie_coalesce() local
427 devid = parent->device; in qib_tune_pcie_coalesce()
428 if (devid >= 0x25e2 && devid <= 0x25fa) { in qib_tune_pcie_coalesce()
435 } else if (devid >= 0x65e2 && devid <= 0x65fa) { in qib_tune_pcie_coalesce()
439 } else if (devid >= 0x4021 && devid <= 0x402e) { in qib_tune_pcie_coalesce()
443 } else if (devid >= 0x3604 && devid <= 0x360a) { in qib_tune_pcie_coalesce()
/kernel/linux/linux-5.10/drivers/scsi/snic/
Dsnic_isr.c97 snic->msix[i].devid); in snic_free_intr()
122 snic->msix[SNIC_MSIX_WQ].devid = snic; in snic_request_intr()
128 snic->msix[SNIC_MSIX_IO_CMPL].devid = snic; in snic_request_intr()
134 snic->msix[SNIC_MSIX_ERR_NOTIFY].devid = snic; in snic_request_intr()
141 snic->msix[i].devid); in snic_request_intr()
/kernel/linux/linux-5.10/drivers/mfd/
Dintel-lpss.c81 int devid; member
336 snprintf(devname, sizeof(devname), "%s.%d", cell->name, lpss->devid); in intel_lpss_register_clock()
406 lpss->devid = ida_simple_get(&intel_lpss_devid_ida, 0, 0, GFP_KERNEL); in intel_lpss_probe()
407 if (lpss->devid < 0) in intel_lpss_probe()
408 return lpss->devid; in intel_lpss_probe()
421 ret = mfd_add_devices(dev, lpss->devid, &intel_lpss_idma64_cell, in intel_lpss_probe()
428 ret = mfd_add_devices(dev, lpss->devid, lpss->cell, in intel_lpss_probe()
443 ida_simple_remove(&intel_lpss_devid_ida, lpss->devid); in intel_lpss_probe()
457 ida_simple_remove(&intel_lpss_devid_ida, lpss->devid); in intel_lpss_remove()
/kernel/linux/linux-5.10/fs/btrfs/
Dvolumes.c656 u64 devid; in btrfs_open_one_device() local
669 devid = btrfs_stack_device_id(&disk_super->dev_item); in btrfs_open_one_device()
670 if (devid != device->devid) in btrfs_open_one_device()
705 device->devid != BTRFS_DEV_REPLACE_DEVID) { in btrfs_open_one_device()
819 u64 devid = btrfs_stack_device_id(&disk_super->dev_item); in device_list_add() local
857 device = btrfs_find_device(fs_devices, devid, in device_list_add()
888 device = btrfs_alloc_device(NULL, &devid, in device_list_add()
913 disk_super->label, devid, found_transid, path, in device_list_add()
918 disk_super->fsid, devid, found_transid, path, in device_list_add()
984 path, devid, found_transid, in device_list_add()
[all …]

12345678910>>...14