Home
last modified time | relevance | path

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

12345678910>>...15

/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/af/
Dmbox.c18 void __otx2_mbox_reset(struct otx2_mbox *mbox, int devid) in __otx2_mbox_reset() argument
20 struct otx2_mbox_dev *mdev = &mbox->dev[devid]; in __otx2_mbox_reset()
36 void otx2_mbox_reset(struct otx2_mbox *mbox, int devid) in otx2_mbox_reset() argument
38 struct otx2_mbox_dev *mdev = &mbox->dev[devid]; in otx2_mbox_reset()
41 __otx2_mbox_reset(mbox, devid); in otx2_mbox_reset()
134 int devid, err; in otx2_mbox_init() local
142 for (devid = 0; devid < ndevs; devid++) { in otx2_mbox_init()
143 mdev = &mbox->dev[devid]; in otx2_mbox_init()
144 mdev->mbase = mbox->hwbase + (devid * MBOX_SIZE); in otx2_mbox_init()
148 otx2_mbox_reset(mbox, devid); in otx2_mbox_init()
[all …]
/linux-6.6.21/drivers/iommu/amd/
Diommu.c104 return p->devid; in get_acpihid_device_id()
143 u32 devid = get_acpihid_device_id(dev, NULL); in get_device_segment() local
145 seg = PCI_SBDF_TO_SEGID(devid); in get_device_segment()
152 void amd_iommu_set_rlookup_table(struct amd_iommu *iommu, u16 devid) in amd_iommu_set_rlookup_table() argument
156 pci_seg->rlookup_table[devid] = iommu; in amd_iommu_set_rlookup_table()
159 static struct amd_iommu *__rlookup_amd_iommu(u16 seg, u16 devid) in __rlookup_amd_iommu() argument
165 return pci_seg->rlookup_table[devid]; in __rlookup_amd_iommu()
173 int devid = get_device_sbdf_id(dev); in rlookup_amd_iommu() local
175 if (devid < 0) in rlookup_amd_iommu()
177 return __rlookup_amd_iommu(seg, PCI_SBDF_TO_DEVID(devid)); in rlookup_amd_iommu()
[all …]
Dinit.c106 u16 devid; member
124 u16 devid; member
144 u16 devid; member
297 PCI_BUS_NUM(iommu->devid), PCI_SLOT(iommu->devid), in get_global_efr()
298 PCI_FUNC(iommu->devid)); in get_global_efr()
592 if (dev->devid > last_devid) in find_last_devid_from_ivhd()
593 last_devid = dev->devid; in find_last_devid_from_ivhd()
1059 u16 devid, u8 bit) in __set_dev_entry_bit() argument
1064 dev_table[devid].data[i] |= (1UL << _bit); in __set_dev_entry_bit()
1067 static void set_dev_entry_bit(struct amd_iommu *iommu, u16 devid, u8 bit) in set_dev_entry_bit() argument
[all …]
Dquirks.c18 u32 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, (u32 *)&i->devid, 0); in ivrs_ioapic_quirk_cb()
Damd_iommu.h19 void amd_iommu_apply_erratum_63(struct amd_iommu *iommu, u16 devid);
23 void amd_iommu_set_rlookup_table(struct amd_iommu *iommu, u16 devid);
122 u16 devid = pci_dev_id(pdev); in get_pci_sbdf_id() local
124 return PCI_SEG_DEVID_TO_SBDF(seg, devid); in get_pci_sbdf_id()
137 int __init add_special_device(u8 type, u8 id, u32 *devid, bool cmd_line);
/linux-6.6.21/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()
/linux-6.6.21/sound/soc/codecs/
Dcirrus_legacy.h11 u8 devid[3]; in cirrus_read_device_id() local
14 ret = regmap_bulk_read(regmap, reg, devid, ARRAY_SIZE(devid)); in cirrus_read_device_id()
18 return ((devid[0] & 0xFF) << 12) | in cirrus_read_device_id()
19 ((devid[1] & 0xFF) << 4) | in cirrus_read_device_id()
20 ((devid[2] & 0xF0) >> 4); in cirrus_read_device_id()
/linux-6.6.21/drivers/acpi/
Dacpi_pnp.c338 const struct acpi_device_id *devid; in acpi_pnp_match() local
340 for (devid = acpi_pnp_device_ids; devid->id[0]; devid++) in acpi_pnp_match()
341 if (matching_id(idstr, (char *)devid->id)) { in acpi_pnp_match()
343 *matchid = devid; in acpi_pnp_match()
/linux-6.6.21/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()
/linux-6.6.21/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()
/linux-6.6.21/arch/mips/ath25/
Dar5312.c286 u32 scratch, devid, clock_ctl1; in ar5312_cpu_frequency() local
296 devid = ar5312_rst_reg_read(AR5312_REV); in ar5312_cpu_frequency()
297 devid = (devid & AR5312_REV_MAJ) >> AR5312_REV_MAJ_S; in ar5312_cpu_frequency()
298 if (devid == AR5312_REV_MAJ_AR2313) { in ar5312_cpu_frequency()
355 u32 devid; in ar5312_plat_mem_setup() local
371 devid = ar5312_rst_reg_read(AR5312_REV); in ar5312_plat_mem_setup()
372 devid >>= AR5312_REV_WMAC_MIN_S; in ar5312_plat_mem_setup()
373 devid &= AR5312_REV_CHIP; in ar5312_plat_mem_setup()
374 ath25_board.devid = (u16)devid; in ar5312_plat_mem_setup()
/linux-6.6.21/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()
/linux-6.6.21/fs/autofs/
Ddev-ioctl.c227 static int autofs_dev_ioctl_open_mountpoint(const char *name, dev_t devid) in autofs_dev_ioctl_open_mountpoint() argument
236 err = find_autofs_mount(name, &path, test_by_dev, &devid); in autofs_dev_ioctl_open_mountpoint()
263 dev_t devid; in autofs_dev_ioctl_openmount() local
268 if (!param->openmount.devid) in autofs_dev_ioctl_openmount()
274 devid = new_decode_dev(param->openmount.devid); in autofs_dev_ioctl_openmount()
277 fd = autofs_dev_ioctl_open_mountpoint(path, devid); in autofs_dev_ioctl_openmount()
426 dev_t devid; in autofs_dev_ioctl_requester() local
431 devid = sbi->sb->s_dev; in autofs_dev_ioctl_requester()
435 err = find_autofs_mount(param->path, &path, test_by_dev, &devid); in autofs_dev_ioctl_requester()
511 unsigned int devid, magic; in autofs_dev_ioctl_ismountpoint() local
[all …]
/linux-6.6.21/drivers/platform/x86/intel/pmc/
Dcore_ssram.c24 static const struct pmc_reg_map *pmc_core_find_regmap(struct pmc_info *list, u16 devid) in pmc_core_find_regmap() argument
27 if (devid == list->devid) in pmc_core_find_regmap()
71 u16 devid; in pmc_core_ssram_get_pmc() local
85 devid = readw(ssram + SSRAM_DEVID_OFFSET); in pmc_core_ssram_get_pmc()
90 map = pmc_core_find_regmap(pmcdev->regmap_list, devid); in pmc_core_ssram_get_pmc()
/linux-6.6.21/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()
/linux-6.6.21/drivers/gpu/drm/i915/
Dintel_device_info.c233 u16 devid = INTEL_DEVID(i915); in intel_device_info_subplatform_init() local
240 if (find_devid(devid, subplatform_ult_ids, in intel_device_info_subplatform_init()
245 } else if (find_devid(devid, subplatform_ulx_ids, in intel_device_info_subplatform_init()
253 } else if (find_devid(devid, subplatform_portf_ids, in intel_device_info_subplatform_init()
257 } else if (find_devid(devid, subplatform_uy_ids, in intel_device_info_subplatform_init()
260 } else if (find_devid(devid, subplatform_n_ids, in intel_device_info_subplatform_init()
263 } else if (find_devid(devid, subplatform_rpl_ids, in intel_device_info_subplatform_init()
266 if (find_devid(devid, subplatform_rplu_ids, in intel_device_info_subplatform_init()
269 } else if (find_devid(devid, subplatform_g10_ids, in intel_device_info_subplatform_init()
272 } else if (find_devid(devid, subplatform_g11_ids, in intel_device_info_subplatform_init()
[all …]
/linux-6.6.21/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) | \
/linux-6.6.21/drivers/base/
Dplatform-msi.c28 int devid; member
41 u32 devid = desc->dev->msi.data->platform_data->devid; in platform_msi_calc_hwirq() local
43 return (devid << (32 - DEV_ID_SHIFT)) | desc->msi_index; in platform_msi_calc_hwirq()
175 datap->devid = ida_simple_get(&platform_msi_devid_ida, in platform_msi_alloc_priv_data()
177 if (datap->devid < 0) { in platform_msi_alloc_priv_data()
178 err = datap->devid; in platform_msi_alloc_priv_data()
194 ida_simple_remove(&platform_msi_devid_ida, data->devid); in platform_msi_free_priv_data()
/linux-6.6.21/drivers/hwtracing/coresight/
Dcoresight-tmc-core.c223 static enum tmc_mem_intf_width tmc_get_memwidth(u32 devid) in tmc_get_memwidth() argument
236 switch (BMVAL(devid, 8, 10)) { in tmc_get_memwidth()
267 coresight_simple_reg32(devid, CORESIGHT_DEVID),
366 static int tmc_etr_setup_caps(struct device *parent, u32 devid, void *dev_caps) in tmc_etr_setup_caps() argument
378 if (!(devid & TMC_DEVID_NOSCAT) && tmc_etr_can_use_sg(parent)) in tmc_etr_setup_caps()
382 if (devid & TMC_DEVID_AXIAW_VALID) in tmc_etr_setup_caps()
383 dma_mask = ((devid >> TMC_DEVID_AXIAW_SHIFT) & in tmc_etr_setup_caps()
435 u32 devid; in tmc_probe() local
463 devid = readl_relaxed(drvdata->base + CORESIGHT_DEVID); in tmc_probe()
464 drvdata->config_type = BMVAL(devid, 6, 7); in tmc_probe()
[all …]
/linux-6.6.21/drivers/infiniband/hw/qib/
Dqib_pcie.c386 u16 devid; in qib_tune_pcie_coalesce() local
412 devid = parent->device; in qib_tune_pcie_coalesce()
413 if (devid >= 0x25e2 && devid <= 0x25fa) { in qib_tune_pcie_coalesce()
420 } else if (devid >= 0x65e2 && devid <= 0x65fa) { in qib_tune_pcie_coalesce()
424 } else if (devid >= 0x4021 && devid <= 0x402e) { in qib_tune_pcie_coalesce()
428 } else if (devid >= 0x3604 && devid <= 0x360a) { in qib_tune_pcie_coalesce()
/linux-6.6.21/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 …]
/linux-6.6.21/drivers/scsi/snic/
Dsnic_isr.c83 snic->msix[i].devid); in snic_free_intr()
108 snic->msix[SNIC_MSIX_WQ].devid = snic; in snic_request_intr()
114 snic->msix[SNIC_MSIX_IO_CMPL].devid = snic; in snic_request_intr()
120 snic->msix[SNIC_MSIX_ERR_NOTIFY].devid = snic; in snic_request_intr()
127 snic->msix[i].devid); in snic_request_intr()
/linux-6.6.21/drivers/mfd/
Dintel-lpss.c81 int devid; member
337 snprintf(devname, sizeof(devname), "%s.%d", cell->name, lpss->devid); in intel_lpss_register_clock()
408 lpss->devid = ida_simple_get(&intel_lpss_devid_ida, 0, 0, GFP_KERNEL); in intel_lpss_probe()
409 if (lpss->devid < 0) in intel_lpss_probe()
410 return lpss->devid; in intel_lpss_probe()
423 ret = mfd_add_devices(dev, lpss->devid, &intel_lpss_idma64_cell, in intel_lpss_probe()
430 ret = mfd_add_devices(dev, lpss->devid, lpss->cell, in intel_lpss_probe()
445 ida_simple_remove(&intel_lpss_devid_ida, lpss->devid); in intel_lpss_probe()
459 ida_simple_remove(&intel_lpss_devid_ida, lpss->devid); in intel_lpss_remove()

12345678910>>...15