| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | mbox.c | 21 void __otx2_mbox_reset(struct otx2_mbox *mbox, int devid) in __otx2_mbox_reset() argument 23 struct otx2_mbox_dev *mdev = &mbox->dev[devid]; in __otx2_mbox_reset() 41 void otx2_mbox_reset(struct otx2_mbox *mbox, int devid) in otx2_mbox_reset() argument 43 struct otx2_mbox_dev *mdev = &mbox->dev[devid]; in otx2_mbox_reset() 46 __otx2_mbox_reset(mbox, devid); in otx2_mbox_reset() 228 int devid, err; in otx2_mbox_init() local 236 for (devid = 0; devid < ndevs; devid++) { in otx2_mbox_init() 237 mdev = &mbox->dev[devid]; in otx2_mbox_init() 238 mdev->mbase = mbox->hwbase + (devid * MBOX_SIZE); in otx2_mbox_init() 242 otx2_mbox_reset(mbox, devid); in otx2_mbox_init() [all …]
|
| /linux/drivers/iommu/amd/ |
| H A D | debugfs.c | 145 u16 devid; in devid_write() local 167 devid = PCI_DEVID(bus, PCI_DEVFN(slot, func)); in devid_write() 173 if (devid > pci_seg->last_bdf) { in devid_write() 177 iommu = pci_seg->rlookup_table[devid]; in devid_write() 190 sbdf = PCI_SEG_DEVID_TO_SBDF(seg, devid); in devid_write() 199 u16 devid; in devid_show() local 202 devid = PCI_SBDF_TO_DEVID(sbdf); in devid_show() 204 PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid)); in devid_show() 210 DEFINE_SHOW_STORE_ATTRIBUTE(devid); 212 static void dump_dte(struct seq_file *m, struct amd_iommu_pci_seg *pci_seg, u16 devid) in dump_dte() argument [all …]
|
| H A D | quirks.c | 18 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()
|
| H A D | ppr.c | 84 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()
|
| H A D | amd_iommu.h | 25 void amd_iommu_set_rlookup_table(struct amd_iommu *iommu, u16 devid); 147 u16 devid = pci_dev_id(pdev); in get_pci_sbdf_id() local 149 return PCI_SEG_DEVID_TO_SBDF(seg, devid); in get_pci_sbdf_id() 175 int __init add_special_device(u8 type, u8 id, u32 *devid, bool cmd_line); 182 struct dev_table_entry *amd_iommu_get_ivhd_dte_flags(u16 segid, u16 devid); 187 struct iommu_dev_data *search_dev_data(struct amd_iommu *iommu, u16 devid);
|
| /linux/drivers/platform/x86/intel/pmt/ |
| H A D | telemetry.h | 26 * @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);
|
| H A D | telemetry.c | 166 struct telem_endpoint *pmt_telem_register_endpoint(int devid) in pmt_telem_register_endpoint() argument 169 unsigned long index = devid; in pmt_telem_register_endpoint() 191 int pmt_telem_get_endpoint_info(int devid, struct telem_endpoint_info *info) in pmt_telem_get_endpoint_info() argument 194 unsigned long index = devid; in pmt_telem_get_endpoint_info() 340 int devid = 0; in pmt_telem_find_and_register_endpoint() local 344 while ((devid = pmt_telem_get_next_endpoint(devid))) { in pmt_telem_find_and_register_endpoint() 347 err = pmt_telem_get_endpoint_info(devid, &ep_info); in pmt_telem_find_and_register_endpoint() 353 return pmt_telem_register_endpoint(devid); in pmt_telem_find_and_register_endpoint()
|
| /linux/sound/soc/codecs/ |
| H A D | cirrus_legacy.h | 11 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/drivers/xen/xen-pciback/ |
| H A D | conf_space_quirks.c | 37 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/drivers/gpu/drm/i915/ |
| H A D | intel_device_info.c | 235 u16 devid = INTEL_DEVID(i915); in intel_device_info_subplatform_init() local 242 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() 252 } else if (find_devid(devid, subplatform_portf_ids, in intel_device_info_subplatform_init() 255 } else if (find_devid(devid, subplatform_uy_ids, in intel_device_info_subplatform_init() 258 } else if (find_devid(devid, subplatform_n_ids, in intel_device_info_subplatform_init() 261 } else if (find_devid(devid, subplatform_rpl_ids, in intel_device_info_subplatform_init() 264 if (find_devid(devid, subplatform_rplu_ids, in intel_device_info_subplatform_init() 267 } else if (find_devid(devid, subplatform_g10_ids, in intel_device_info_subplatform_init() 270 } else if (find_devid(devid, subplatform_g11_ids, in intel_device_info_subplatform_init() [all …]
|
| /linux/drivers/dma/ |
| H A D | cv1800b-dmamux.c | 104 unsigned int chid, devid, cpuid; in cv1800_dmamux_route_allocate() local 112 devid = dma_spec->args[0]; in cv1800_dmamux_route_allocate() 116 if (devid > MAX_DMA_MAPPING_ID) { in cv1800_dmamux_route_allocate() 117 dev_err(&pdev->dev, "invalid device id: %u\n", devid); in cv1800_dmamux_route_allocate() 134 if (test_bit(devid, dmamux->mapped_peripherals)) { in cv1800_dmamux_route_allocate() 136 if (map->peripheral == devid && map->cpu == cpuid) in cv1800_dmamux_route_allocate() 151 set_bit(devid, dmamux->mapped_peripherals); in cv1800_dmamux_route_allocate() 156 map->peripheral = devid; in cv1800_dmamux_route_allocate() 161 DMAMUX_CH_SET(chid, devid)); in cv1800_dmamux_route_allocate() 172 chid, devid, cpuid); in cv1800_dmamux_route_allocate()
|
| /linux/Documentation/ABI/testing/ |
| H A D | debugfs-amd-iommu | 63 What: /sys/kernel/debug/iommu/amd/devid 76 $ echo 0000:01:00.0 > /sys/kernel/debug/iommu/amd/devid 77 $ cat /sys/kernel/debug/iommu/amd/devid 86 $ echo 01:00.0 > /sys/kernel/debug/iommu/amd/devid 87 $ cat /sys/kernel/debug/iommu/amd/devid 98 for the device ID provided in /sys/kernel/debug/iommu/amd/devid. 114 for the device ID provided in /sys/kernel/debug/iommu/amd/devid.
|
| /linux/arch/mips/ath25/ |
| H A D | ar5312.c | 286 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/drivers/regulator/ |
| H A D | rt6160-regulator.c | 49 uint8_t devid; member 237 unsigned int devid; in rt6160_probe() local 263 ret = regmap_read(priv->regmap, RT6160_REG_DEVID, &devid); in rt6160_probe() 267 devid = devid & RT6160_VID_MASK; in rt6160_probe() 269 switch (devid) { in rt6160_probe() 274 dev_err(&i2c->dev, "VID not correct [0x%02x]\n", devid); in rt6160_probe() 278 priv->devid = devid; in rt6160_probe() 283 if (priv->devid == RT6166_VENDOR_ID) in rt6160_probe()
|
| /linux/tools/usb/usbip/libsrc/ |
| H A D | vhci_driver.c | 52 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/drivers/char/ |
| H A D | scx200_gpio.c | 78 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/drivers/scsi/snic/ |
| H A D | snic_isr.c | 83 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/fs/btrfs/ |
| H A D | dev-replace.c | 72 struct btrfs_dev_lookup_args args = { .devid = BTRFS_DEV_REPLACE_DEVID }; in btrfs_init_dev_replace() 173 args.devid = src_devid; in btrfs_init_dev_replace() 185 "srcdev (devid %llu) is missing, need to run 'btrfs dev scan'?", in btrfs_init_dev_replace() 193 "tgtdev (devid %llu) is missing, need to run 'btrfs dev scan'?", in btrfs_init_dev_replace() 241 u64 devid = BTRFS_DEV_REPLACE_DEVID; in btrfs_init_dev_replace_tgtdev() local 285 device = btrfs_alloc_device(NULL, &devid, NULL, device_path); in btrfs_init_dev_replace_tgtdev() 413 dev_replace->srcdev->devid); in btrfs_run_dev_replace() 495 key.objectid = src_dev->devid; in mark_block_group_to_copy() 502 if (found_key.objectid != src_dev->devid) in mark_block_group_to_copy() 602 "cannot replace device %s (devid %llu) due to active swapfile", in btrfs_dev_replace_start() [all …]
|
| H A D | volumes.c | 654 u64 devid; in btrfs_open_one_device() local 667 devid = btrfs_stack_device_id(&disk_super->dev_item); in btrfs_open_one_device() 668 if (devid != device->devid) in btrfs_open_one_device() 715 device->devid != BTRFS_DEV_REPLACE_DEVID) { in btrfs_open_one_device() 789 u64 devid = btrfs_stack_device_id(&disk_super->dev_item); in device_list_add() local 835 .devid = devid, in device_list_add() 864 device = btrfs_alloc_device(NULL, &devid, in device_list_add() 883 "BTRFS: device label %s devid %llu transid %llu %s (%d:%d) scanned by %s (%d)\n", in device_list_add() 884 disk_super->label, devid, found_transid, path, in device_list_add() 889 "BTRFS: device fsid %pU devid %llu transid %llu %s (%d:%d) scanned by %s (%d)\n", in device_list_add() [all …]
|
| H A D | raid-stripe-tree.c | 316 u64 devid = bioc->stripes[i].dev->devid; in btrfs_insert_one_raid_extent() local 320 btrfs_set_stack_raid_stride_devid(raid_stride, devid); in btrfs_insert_one_raid_extent() 446 u64 devid = btrfs_raid_stride_devid(leaf, stride); in btrfs_get_raid_extent_offset() local 449 if (devid != stripe->dev->devid) in btrfs_get_raid_extent_offset() 458 stripe->physical, devid); in btrfs_get_raid_extent_offset() 463 /* If we're here, we haven't found the requested devid in the stripe. */ in btrfs_get_raid_extent_offset() 470 "cannot find raid-stripe for logical [%llu, %llu] devid %llu, profile %s", in btrfs_get_raid_extent_offset() 471 logical, logical + *length, stripe->dev->devid, in btrfs_get_raid_extent_offset()
|
| /linux/drivers/power/supply/ |
| H A D | lp8727_charger.c | 92 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/drivers/ata/ |
| H A D | pata_it8213.c | 145 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/drivers/usb/usbip/ |
| H A D | vhci_sysfs.c | 49 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()
|
| H A D | vhci_tx.c | 18 usbip_dbg_vhci_tx("URB, local devnum %u, remote devid %u\n", in setup_cmd_submit_pdu() 19 usb_pipedevice(urb->pipe), vdev->devid); in setup_cmd_submit_pdu() 23 pdup->base.devid = vdev->devid; in setup_cmd_submit_pdu() 209 pdu_header.base.devid = vdev->devid; in vhci_send_cmd_unlink()
|
| /linux/fs/btrfs/tests/ |
| H A D | raid-stripe-tree-tests.c | 22 u64 devid) in btrfs_device_by_devid() argument 27 if (dev->devid == devid) in btrfs_device_by_devid() 72 test_err("cannot find device with devid %d", i); in test_punch_hole_3extents() 93 test_err("cannot find device with devid %d", i); in test_punch_hole_3extents() 114 test_err("cannot find device with devid %d", i); in test_punch_hole_3extents() 248 test_err("cannot find device with devid %d", i); in test_delete_two_extents() 269 test_err("cannot find device with devid %d", i); in test_delete_two_extents() 290 test_err("cannot find device with devid %d", i); in test_delete_two_extents() 391 test_err("cannot find device with devid %d", i); in test_punch_hole() 531 test_err("cannot find device with devid %d", i); in test_front_delete_prev_item() [all …]
|