Home
last modified time | relevance | path

Searched full:devid (Results 1 – 25 of 431) sorted by relevance

12345678910>>...18

/linux-6.12.1/scripts/mod/
Ddevicetable-offsets.c5 #define DEVID(devid) DEFINE(SIZE_##devid, sizeof(struct devid)) argument
6 #define DEVID_FIELD(devid, field) \ argument
7 DEFINE(OFF_##devid##_##field, offsetof(struct devid, field))
11 DEVID(usb_device_id); in main()
25 DEVID(hid_device_id); in main()
31 DEVID(ieee1394_device_id); in main()
38 DEVID(pci_device_id); in main()
47 DEVID(ccw_device_id); in main()
54 DEVID(ap_device_id); in main()
57 DEVID(css_device_id); in main()
[all …]
/linux-6.12.1/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.12.1/drivers/iommu/amd/
Diommu.c120 return p->devid; in get_acpihid_device_id()
159 u32 devid = get_acpihid_device_id(dev, NULL); in get_device_segment() local
161 seg = PCI_SBDF_TO_SEGID(devid); in get_device_segment()
168 void amd_iommu_set_rlookup_table(struct amd_iommu *iommu, u16 devid) in amd_iommu_set_rlookup_table() argument
172 pci_seg->rlookup_table[devid] = iommu; in amd_iommu_set_rlookup_table()
175 static struct amd_iommu *__rlookup_amd_iommu(u16 seg, u16 devid) in __rlookup_amd_iommu() argument
181 return pci_seg->rlookup_table[devid]; in __rlookup_amd_iommu()
189 int devid = get_device_sbdf_id(dev); in rlookup_amd_iommu() local
191 if (devid < 0) in rlookup_amd_iommu()
193 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
296 PCI_BUS_NUM(iommu->devid), PCI_SLOT(iommu->devid), in get_global_efr()
297 PCI_FUNC(iommu->devid)); in get_global_efr()
581 if (dev->devid > last_devid) in find_last_devid_from_ivhd()
582 last_devid = dev->devid; in find_last_devid_from_ivhd()
997 u16 devid, u8 bit) in __set_dev_entry_bit() argument
1002 dev_table[devid].data[i] |= (1UL << _bit); in __set_dev_entry_bit()
1005 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()
Dppr.c84 u16 devid = PPR_DEVID(raw[0]); in ppr_is_valid() local
89 iommu->pci_seg->id, PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid), in ppr_is_valid()
97 iommu->pci_seg->id, PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid), in ppr_is_valid()
110 u16 devid = PPR_DEVID(raw[0]); in iommu_call_iopf_notifier() local
118 PCI_BUS_NUM(devid), devid & 0xff); in iommu_call_iopf_notifier()
226 PCI_SEG_DEVID_TO_SBDF(iommu->pci_seg->id, iommu->devid)); in amd_iommu_iopf_init()
/linux-6.12.1/drivers/platform/x86/intel/pmt/
Dtelemetry.h26 * @start: starting devid to look from
28 * This functions can be used in a while loop predicate to retrieve the devid
35 * * devid - devid of the next present endpoint from start
42 * @devid: device id/handle of the telemetry endpoint
50 struct telem_endpoint *pmt_telem_register_endpoint(int devid);
61 * pmt_telem_get_endpoint_info() - Get info for an endpoint from its devid
62 * @devid: device id/handle of the telemetry endpoint
67 * * -ENXIO - telemetry endpoint not found for the devid
70 int pmt_telem_get_endpoint_info(int devid, struct telem_endpoint_info *info);
Dtelemetry.c158 struct telem_endpoint *pmt_telem_register_endpoint(int devid) in pmt_telem_register_endpoint() argument
161 unsigned long index = devid; in pmt_telem_register_endpoint()
183 int pmt_telem_get_endpoint_info(int devid, struct telem_endpoint_info *info) in pmt_telem_get_endpoint_info() argument
186 unsigned long index = devid; in pmt_telem_get_endpoint_info()
251 int devid = 0; in pmt_telem_find_and_register_endpoint() local
255 while ((devid = pmt_telem_get_next_endpoint(devid))) { in pmt_telem_find_and_register_endpoint()
258 err = pmt_telem_get_endpoint_info(devid, &ep_info); in pmt_telem_find_and_register_endpoint()
264 return pmt_telem_register_endpoint(devid); in pmt_telem_find_and_register_endpoint()
/linux-6.12.1/arch/sparc/include/asm/
Dsbi.h53 /* How to make devid from sbi no */
69 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
[all …]
/linux-6.12.1/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.12.1/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.12.1/fs/btrfs/
Draid-stripe-tree.c132 u64 devid = bioc->stripes[i].dev->devid; in btrfs_insert_one_raid_extent() local
140 btrfs_set_stack_raid_stride_devid(raid_stride, devid); in btrfs_insert_one_raid_extent()
263 u64 devid = btrfs_raid_stride_devid(leaf, stride); in btrfs_get_raid_extent_offset() local
266 if (devid != stripe->dev->devid) in btrfs_get_raid_extent_offset()
275 stripe->physical, devid); in btrfs_get_raid_extent_offset()
281 /* If we're here, we haven't found the requested devid in the stripe. */ in btrfs_get_raid_extent_offset()
288 "cannot find raid-stripe for logical [%llu, %llu] devid %llu, profile %s", in btrfs_get_raid_extent_offset()
289 logical, logical + *length, stripe->dev->devid, in btrfs_get_raid_extent_offset()
Ddev-replace.c72 struct btrfs_dev_lookup_args args = { .devid = BTRFS_DEV_REPLACE_DEVID }; in btrfs_init_dev_replace()
177 args.devid = src_devid; in btrfs_init_dev_replace()
190 "srcdev (devid %llu) is missing, need to run 'btrfs dev scan'?", in btrfs_init_dev_replace()
199 "tgtdev (devid %llu) is missing, need to run 'btrfs dev scan'?", in btrfs_init_dev_replace()
249 u64 devid = BTRFS_DEV_REPLACE_DEVID; in btrfs_init_dev_replace_tgtdev() local
293 device = btrfs_alloc_device(NULL, &devid, NULL, device_path); in btrfs_init_dev_replace_tgtdev()
422 dev_replace->srcdev->devid); in btrfs_run_dev_replace()
509 key.objectid = src_dev->devid; in mark_block_group_to_copy()
516 if (found_key.objectid != src_dev->devid) in mark_block_group_to_copy()
616 "cannot replace device %s (devid %llu) due to active swapfile", in btrfs_dev_replace_start()
[all …]
Dvolumes.c651 u64 devid; in btrfs_open_one_device() local
664 devid = btrfs_stack_device_id(&disk_super->dev_item); in btrfs_open_one_device()
665 if (devid != device->devid) in btrfs_open_one_device()
712 device->devid != BTRFS_DEV_REPLACE_DEVID) { in btrfs_open_one_device()
750 u64 devid = btrfs_stack_device_id(&disk_super->dev_item); in device_list_add() local
796 .devid = devid, in device_list_add()
825 device = btrfs_alloc_device(NULL, &devid, in device_list_add()
844 "BTRFS: device label %s devid %llu transid %llu %s (%d:%d) scanned by %s (%d)\n", in device_list_add()
845 disk_super->label, devid, found_transid, path, in device_list_add()
850 "BTRFS: device fsid %pU devid %llu transid %llu %s (%d:%d) scanned by %s (%d)\n", in device_list_add()
[all …]
/linux-6.12.1/drivers/gpu/drm/i915/
Dintel_device_info.c231 u16 devid = INTEL_DEVID(i915); in intel_device_info_subplatform_init() local
238 if (find_devid(devid, subplatform_ult_ids, in intel_device_info_subplatform_init()
241 } else if (find_devid(devid, subplatform_ulx_ids, in intel_device_info_subplatform_init()
248 } else if (find_devid(devid, subplatform_portf_ids, in intel_device_info_subplatform_init()
251 } else if (find_devid(devid, subplatform_uy_ids, in intel_device_info_subplatform_init()
254 } else if (find_devid(devid, subplatform_n_ids, in intel_device_info_subplatform_init()
257 } else if (find_devid(devid, subplatform_rpl_ids, in intel_device_info_subplatform_init()
260 if (find_devid(devid, subplatform_rplu_ids, in intel_device_info_subplatform_init()
263 } else if (find_devid(devid, subplatform_g10_ids, in intel_device_info_subplatform_init()
266 } else if (find_devid(devid, subplatform_g11_ids, in intel_device_info_subplatform_init()
[all …]
/linux-6.12.1/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.12.1/drivers/char/
Dscx200_gpio.c78 dev_t devid; in scx200_gpio_init() local
98 devid = MKDEV(major, 0); in scx200_gpio_init()
99 rc = register_chrdev_region(devid, MAX_PINS, "scx200_gpio"); in scx200_gpio_init()
101 rc = alloc_chrdev_region(&devid, 0, MAX_PINS, "scx200_gpio"); in scx200_gpio_init()
102 major = MAJOR(devid); in scx200_gpio_init()
110 cdev_add(&scx200_gpio_cdev, devid, MAX_PINS); in scx200_gpio_init()
/linux-6.12.1/tools/usb/usbip/libsrc/
Dvhci_driver.c52 int port, status, speed, devid; in parse_status() local
60 &devid, &sockfd, lbusid); in parse_status()
67 dbg("hub %s port %d status %d speed %d devid %x", 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
[all …]
/linux-6.12.1/drivers/scsi/snic/
Dsnic_isr.c83 snic->msix[i].devid); in snic_free_intr()
98 * Currently HW supports single WQ and CQ. So passing devid as snic. in snic_request_intr()
100 * to pass devid as corresponding WQ or CQ ptr and retrieve snic in snic_request_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.12.1/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.12.1/drivers/net/phy/
Dbcm87xx.c24 * broadcom,c45-reg-init = <devid reg mask value>,...;
26 * There may be one or more sets of <devid reg mask value>:
28 * devid: which sub-device to use.
53 u16 devid = be32_to_cpup(paddr++); in bcm87xx_of_reg_init() local
60 val = phy_read_mmd(phydev, devid, reg); in bcm87xx_of_reg_init()
69 ret = phy_write_mmd(phydev, devid, reg, val); in bcm87xx_of_reg_init()
/linux-6.12.1/fs/autofs/
Ddev-ioctl.c232 static int autofs_dev_ioctl_open_mountpoint(const char *name, dev_t devid) in autofs_dev_ioctl_open_mountpoint() argument
241 err = find_autofs_mount(name, &path, test_by_dev, &devid); in autofs_dev_ioctl_open_mountpoint()
268 dev_t devid; in autofs_dev_ioctl_openmount() local
273 if (!param->openmount.devid) in autofs_dev_ioctl_openmount()
279 devid = new_decode_dev(param->openmount.devid); in autofs_dev_ioctl_openmount()
282 fd = autofs_dev_ioctl_open_mountpoint(path, devid); in autofs_dev_ioctl_openmount()
512 dev_t devid; in autofs_dev_ioctl_requester() local
517 devid = sbi->sb->s_dev; in autofs_dev_ioctl_requester()
521 err = find_autofs_mount(param->path, &path, test_by_dev, &devid); in autofs_dev_ioctl_requester()
597 unsigned int devid, magic; in autofs_dev_ioctl_ismountpoint() local
[all …]
/linux-6.12.1/drivers/vfio/
Diommufd.c28 return vdev->ops->bind_iommufd(vdev, ictx, &df->devid); in vfio_df_iommufd_bind()
80 * Return devid for a device.
88 int devid; in vfio_iommufd_get_dev_id() local
98 devid = -ENOENT; in vfio_iommufd_get_dev_id()
100 devid = -ENODEV; in vfio_iommufd_get_dev_id()
104 return devid; in vfio_iommufd_get_dev_id()
/linux-6.12.1/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()
/linux-6.12.1/drivers/usb/usbip/
Dvhci_sysfs.c49 vdev->speed, vdev->devid); in port_show_vhci()
304 * @speed. @devid is embedded into a request to specify the remote device in a
314 __u32 port = 0, pdev_nr = 0, rhport = 0, devid = 0, speed = 0; in attach_store() local
327 * @devid: unique device identifier in a remote host in attach_store()
330 if (sscanf(buf, "%u %u %u %u", &port, &sockfd, &devid, &speed) != 4) in attach_store()
337 usbip_dbg_vhci_sysfs("sockfd(%u) devid(%u) speed(%u)\n", in attach_store()
338 sockfd, devid, speed); in attach_store()
418 dev_info(dev, "devid(%u) speed(%u) speed_str(%s)\n", in attach_store()
419 devid, speed, usb_speed_string(speed)); in attach_store()
421 vdev->devid = devid; in attach_store()

12345678910>>...18