/linux-6.6.21/drivers/gpu/drm/ttm/tests/ |
D | ttm_kunit_helpers.c | 29 struct ttm_test_devices *devs, in ttm_bo_kunit_init() argument 39 bo->bdev = devs->ttm_dev; in ttm_bo_kunit_init() 47 struct ttm_test_devices *devs; in ttm_test_devices_basic() local 49 devs = kunit_kzalloc(test, sizeof(*devs), GFP_KERNEL); in ttm_test_devices_basic() 50 KUNIT_ASSERT_NOT_NULL(test, devs); in ttm_test_devices_basic() 52 devs->dev = drm_kunit_helper_alloc_device(test); in ttm_test_devices_basic() 53 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, devs->dev); in ttm_test_devices_basic() 55 devs->drm = __drm_kunit_helper_alloc_drm_device(test, devs->dev, in ttm_test_devices_basic() 56 sizeof(*devs->drm), 0, in ttm_test_devices_basic() 58 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, devs->drm); in ttm_test_devices_basic() [all …]
|
D | ttm_pool_test.c | 19 struct ttm_test_devices *devs; member 37 priv->devs = ttm_test_devices_basic(test); in ttm_pool_test_init() 47 ttm_test_devices_put(test, priv->devs); in ttm_pool_test_fini() 60 bo = ttm_bo_kunit_init(test, priv->devs, size); in ttm_tt_kunit_init() 78 struct ttm_test_devices *devs = priv->devs; in ttm_pool_pre_populated() local 90 ttm_pool_init(pool, devs->dev, NUMA_NO_NODE, true, false); in ttm_pool_pre_populated() 138 struct ttm_test_devices *devs = priv->devs; in ttm_pool_alloc_basic() local 154 ttm_pool_init(pool, devs->dev, NUMA_NO_NODE, params->use_dma_alloc, in ttm_pool_alloc_basic() 157 KUNIT_ASSERT_PTR_EQ(test, pool->dev, devs->dev); in ttm_pool_alloc_basic() 199 struct ttm_test_devices *devs = priv->devs; in ttm_pool_alloc_basic_dma_addr() local [all …]
|
D | ttm_kunit_helpers.h | 29 struct ttm_test_devices *devs, 35 void ttm_test_devices_put(struct kunit *test, struct ttm_test_devices *devs);
|
/linux-6.6.21/sound/isa/cs423x/ |
D | cs4236.c | 104 { .id = "CSC0d32", .devs = { { "CSC0000" }, { "CSC0010" }, { "PNPb006" } } }, 106 { .id = "CSC1a32", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } }, 108 { .id = "CSC4232", .devs = { { "CSC0000" }, { "CSC0002" }, { "CSC0003" } } }, 110 { .id = "CSC4236", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } }, 112 { .id = "CSC7532", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSCb006" } } }, 114 { .id = "CSC7632", .devs = { { "CSC0000" }, { "CSC0010" }, { "PNPb006" } } }, 116 { .id = "CSCf032", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } }, 118 { .id = "CSCe825", .devs = { { "CSC0100" }, { "CSC0110" }, { "CSC010f" } } }, 120 { .id = "CSC0225", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } }, 122 { .id = "CSC0225", .devs = { { "CSC0100" }, { "CSC0110" }, { "CSC0103" } } }, [all …]
|
/linux-6.6.21/fs/crypto/ |
D | inline_crypt.c | 27 struct block_device **devs; in fscrypt_get_devices() local 30 devs = sb->s_cop->get_devices(sb, num_devs); in fscrypt_get_devices() 31 if (devs) in fscrypt_get_devices() 32 return devs; in fscrypt_get_devices() 34 devs = kmalloc(sizeof(*devs), GFP_KERNEL); in fscrypt_get_devices() 35 if (!devs) in fscrypt_get_devices() 37 devs[0] = sb->s_bdev; in fscrypt_get_devices() 39 return devs; in fscrypt_get_devices() 73 struct block_device **devs, in fscrypt_log_blk_crypto_impl() argument 81 blk_crypto_config_supported_natively(devs[i], cfg)) { in fscrypt_log_blk_crypto_impl() [all …]
|
/linux-6.6.21/sound/isa/sb/ |
D | sb16.c | 128 { .id = "CTL0024", .devs = { { "CTL0031" } } }, 130 { .id = "CTL0025", .devs = { { "CTL0031" } } }, 132 { .id = "CTL0026", .devs = { { "CTL0031" } } }, 134 { .id = "CTL0027", .devs = { { "CTL0031" } } }, 136 { .id = "CTL0028", .devs = { { "CTL0031" } } }, 138 { .id = "CTL0029", .devs = { { "CTL0031" } } }, 140 { .id = "CTL002a", .devs = { { "CTL0031" } } }, 143 { .id = "CTL002b", .devs = { { "CTL0031" } } }, 145 { .id = "CTL002c", .devs = { { "CTL0031" } } }, 147 { .id = "CTL0051", .devs = { { "CTL0001" } } }, [all …]
|
/linux-6.6.21/drivers/comedi/drivers/ |
D | comedi_bond.c | 56 struct bonded_device **devs; member 68 struct bonded_device **devs; in bonding_dio_insn_bits() local 79 devs = devpriv->devs; in bonding_dio_insn_bits() 81 struct bonded_device *bdev = *devs++; in bonding_dio_insn_bits() 132 struct bonded_device **devs; in bonding_dio_insn_config() local 137 devs = devpriv->devs; in bonding_dio_insn_config() 138 for (bdev = *devs++; chan >= bdev->nchans; bdev = *devs++) in bonding_dio_insn_config() 187 struct bonded_device **devs; in do_dev_config() local 242 devs = krealloc(devpriv->devs, in do_dev_config() 243 (devpriv->ndevs + 1) * sizeof(*devs), in do_dev_config() [all …]
|
/linux-6.6.21/drivers/watchdog/ |
D | cpwd.c | 91 } devs[WD_NUMDEVS]; member 210 (p->devs[index].intr_mask); in cpwd_toggleintr() 226 cpwd_writew(WD_BLIMIT, p->devs[index].regs + WD_LIMIT); in cpwd_resetbrokentimer() 246 if (p->devs[id].runstatus & WD_STAT_BSTOP) { in cpwd_brokentimer() 264 if (cpwd_readb(p->devs[index].regs + WD_STATUS) & WD_S_RUNNING) in cpwd_pingtimer() 265 cpwd_readw(p->devs[index].regs + WD_DCNTR); in cpwd_pingtimer() 274 if (cpwd_readb(p->devs[index].regs + WD_STATUS) & WD_S_RUNNING) { in cpwd_stoptimer() 278 p->devs[index].runstatus |= WD_STAT_BSTOP; in cpwd_stoptimer() 294 p->devs[index].runstatus &= ~WD_STAT_BSTOP; in cpwd_starttimer() 296 p->devs[index].runstatus &= ~WD_STAT_SVCD; in cpwd_starttimer() [all …]
|
/linux-6.6.21/drivers/gpu/host1x/ |
D | context.c | 29 cdl->devs = NULL; in host1x_memory_context_list_init() 38 cdl->devs = kcalloc(cdl->len, sizeof(*cdl->devs), GFP_KERNEL); in host1x_memory_context_list_init() 39 if (!cdl->devs) in host1x_memory_context_list_init() 43 ctx = &cdl->devs[i]; in host1x_memory_context_list_init() 98 device_unregister(&cdl->devs[i].dev); in host1x_memory_context_list_init() 100 kfree(cdl->devs); in host1x_memory_context_list_init() 101 cdl->devs = NULL; in host1x_memory_context_list_init() 112 device_unregister(&cdl->devs[i].dev); in host1x_memory_context_list_free() 114 kfree(cdl->devs); in host1x_memory_context_list_free() 132 struct host1x_memory_context *cd = &cdl->devs[i]; in host1x_memory_context_alloc()
|
/linux-6.6.21/drivers/md/ |
D | raid10.c | 109 int size = offsetof(struct r10bio, devs[conf->geo.raid_disks]); in r10bio_pool_alloc() 167 r10_bio->devs[j].bio = bio; in r10buf_pool_alloc() 174 r10_bio->devs[j].repl_bio = bio; in r10buf_pool_alloc() 181 struct bio *rbio = r10_bio->devs[j].repl_bio; in r10buf_pool_alloc() 188 bio = r10_bio->devs[j].bio; in r10buf_pool_alloc() 216 if (r10_bio->devs[j].bio) in r10buf_pool_alloc() 217 bio_uninit(r10_bio->devs[j].bio); in r10buf_pool_alloc() 218 kfree(r10_bio->devs[j].bio); in r10buf_pool_alloc() 219 if (r10_bio->devs[j].repl_bio) in r10buf_pool_alloc() 220 bio_uninit(r10_bio->devs[j].repl_bio); in r10buf_pool_alloc() [all …]
|
/linux-6.6.21/tools/net/ynl/samples/ |
D | devlink.c | 11 struct devlink_get_list *devs; in main() local 18 devs = devlink_get_dump(ys); in main() 19 if (!devs) in main() 22 ynl_dump_foreach(devs, d) { in main() 48 devlink_get_list_free(devs); in main() 55 devlink_get_list_free(devs); in main()
|
D | netdev.c | 51 struct netdev_dev_get_list *devs; in main() local 87 devs = netdev_dev_get_dump(ys); in main() 88 if (!devs) in main() 91 ynl_dump_foreach(devs, d) in main() 93 netdev_dev_get_list_free(devs); in main()
|
/linux-6.6.21/sound/isa/ad1816a/ |
D | ad1816a.c | 49 { .id = "ADS7150", .devs = { { .id = "ADS7150" }, { .id = "ADS7151" } } }, 51 { .id = "ADS7180", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } }, 53 { .id = "ADS7181", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } }, 55 { .id = "AZT1022", .devs = { { .id = "AZT1018" }, { .id = "AZT2002" } } }, 57 { .id = "LWC1061", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } }, 59 { .id = "MDK1605", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } }, 61 { .id = "SMM7180", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } }, 63 { .id = "TER1112", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } }, 65 { .id = "TER1112", .devs = { { .id = "TER1100" }, { .id = "TER1101" } } }, 67 { .id = "TER1411", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } }, [all …]
|
/linux-6.6.21/fs/erofs/ |
D | super.c | 185 if (!sbi->devs->flatdev && !dif->path) { in erofs_init_device() 200 } else if (!sbi->devs->flatdev) { in erofs_init_device() 233 if (sbi->devs->extra_devices && in erofs_scan_devices() 234 ondisk_extradevs != sbi->devs->extra_devices) { in erofs_scan_devices() 236 ondisk_extradevs, sbi->devs->extra_devices); in erofs_scan_devices() 242 if (!sbi->devs->extra_devices && !erofs_is_fscache_mode(sb)) in erofs_scan_devices() 243 sbi->devs->flatdev = true; in erofs_scan_devices() 247 down_read(&sbi->devs->rwsem); in erofs_scan_devices() 248 if (sbi->devs->extra_devices) { in erofs_scan_devices() 249 idr_for_each_entry(&sbi->devs->tree, dif, id) { in erofs_scan_devices() [all …]
|
D | data.c | 204 struct erofs_dev_context *devs = EROFS_SB(sb)->devs; in erofs_map_dev() local 214 down_read(&devs->rwsem); in erofs_map_dev() 215 dif = idr_find(&devs->tree, map->m_deviceid - 1); in erofs_map_dev() 217 up_read(&devs->rwsem); in erofs_map_dev() 220 if (devs->flatdev) { in erofs_map_dev() 222 up_read(&devs->rwsem); in erofs_map_dev() 229 up_read(&devs->rwsem); in erofs_map_dev() 230 } else if (devs->extra_devices && !devs->flatdev) { in erofs_map_dev() 231 down_read(&devs->rwsem); in erofs_map_dev() 232 idr_for_each_entry(&devs->tree, dif, id) { in erofs_map_dev() [all …]
|
/linux-6.6.21/sound/isa/ |
D | als100.c | 62 .devs = { { "@@@0001" }, { "@X@0001" }, { "@H@0001" } }, 66 .devs = { { "@@@0001" }, { "@X@0001" }, { "@H@0001" } }, 70 .devs = { { "@@@0001" }, { "@X@0001" }, { "@H@0001" } }, 74 .devs = { { "@@@1001" }, { "@X@1001" }, { "@H@1001" } }, 78 .devs = { { "@@@2001" }, { "@X@2001" }, { "@H@2001" } }, 82 .devs = { { "@@@0020" }, { "@X@0020" }, { "@H@0001" } }, 86 .devs = { { "@@@0020" }, { "@X@0020" }, { "@H@0020" } }, 90 .devs = { { "@@@2001" }, { "@X@2001" }, { "@H@2001" } }, 104 acard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_card_als100_pnp() 108 acard->devmpu = pnp_request_card_device(card, id->devs[1].id, acard->dev); in snd_card_als100_pnp() [all …]
|
D | azt2320.c | 67 { .id = "AZT1008", .devs = { { "AZT1008" }, { "AZT2001" }, } }, 69 { .id = "AZT2320", .devs = { { "AZT0001" }, { "AZT0002" }, } }, 71 { .id = "AZT3000", .devs = { { "AZT1003" }, { "AZT2001" }, } }, 73 { .id = "AZT3002", .devs = { { "AZT1004" }, { "AZT2001" }, } }, 75 { .id = "AZT3005", .devs = { { "AZT1003" }, { "AZT2001" }, } }, 77 { .id = "AZT3011", .devs = { { "AZT1003" }, { "AZT2001" }, } }, 92 acard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_card_azt2320_pnp() 96 acard->devmpu = pnp_request_card_device(card, id->devs[1].id, NULL); in snd_card_azt2320_pnp()
|
/linux-6.6.21/Documentation/admin-guide/device-mapper/ |
D | striped.rst | 11 Parameters: <num devs> <chunk size> [<dev path> <offset>]+ 12 <num devs>: 39 my @devs = @ARGV; 46 $min_dev_size = `blockdev --getsz $devs[0]`; 48 my $this_size = `blockdev --getsz $devs[$i]`; 58 $table .= " $devs[$i] 0";
|
/linux-6.6.21/drivers/char/agp/ |
D | ali-agp.c | 304 struct agp_device_ids *devs = ali_agp_device_ids; in agp_ali_probe() local 314 for (j = 0; devs[j].chipset_name; j++) { in agp_ali_probe() 315 if (pdev->device == devs[j].device_id) in agp_ali_probe() 340 devs[j].chipset_name = "M1631"; in agp_ali_probe() 343 devs[j].chipset_name = "M1632"; in agp_ali_probe() 346 devs[j].chipset_name = "M1641"; in agp_ali_probe() 349 devs[j].chipset_name = "M1621"; in agp_ali_probe() 352 devs[j].chipset_name = "M1647"; in agp_ali_probe() 355 devs[j].chipset_name = "M1651"; in agp_ali_probe() 365 dev_info(&pdev->dev, "ALi %s chipset\n", devs[j].chipset_name); in agp_ali_probe()
|
/linux-6.6.21/drivers/infiniband/hw/usnic/ |
D | usnic_uiom.c | 456 INIT_LIST_HEAD(&pd->devs); in usnic_uiom_alloc_pd() 489 list_add_tail(&uiom_dev->link, &pd->devs); in usnic_uiom_attach_dev_to_pd() 508 list_for_each_entry(uiom_dev, &pd->devs, link) { in usnic_uiom_detach_dev_from_pd() 532 struct device **devs; in usnic_uiom_get_dev_list() local 536 devs = kcalloc(pd->dev_cnt + 1, sizeof(*devs), GFP_ATOMIC); in usnic_uiom_get_dev_list() 537 if (!devs) { in usnic_uiom_get_dev_list() 538 devs = ERR_PTR(-ENOMEM); in usnic_uiom_get_dev_list() 542 list_for_each_entry(uiom_dev, &pd->devs, link) { in usnic_uiom_get_dev_list() 543 devs[i++] = uiom_dev->dev; in usnic_uiom_get_dev_list() 547 return devs; in usnic_uiom_get_dev_list() [all …]
|
/linux-6.6.21/drivers/char/tpm/ |
D | tpm2-space.c | 583 struct tpm_chip *chip = container_of(dev, struct tpm_chip, devs); in tpm_devs_release() 595 cdev_device_del(&chip->cdevs, &chip->devs); in tpm_devs_remove() 596 put_device(&chip->devs); in tpm_devs_remove() 607 device_initialize(&chip->devs); in tpm_devs_add() 608 chip->devs.parent = chip->dev.parent; in tpm_devs_add() 609 chip->devs.class = &tpmrm_class; in tpm_devs_add() 617 chip->devs.release = tpm_devs_release; in tpm_devs_add() 618 chip->devs.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num + TPM_NUM_DEVICES); in tpm_devs_add() 622 rc = dev_set_name(&chip->devs, "tpmrm%d", chip->dev_num); in tpm_devs_add() 626 rc = cdev_device_add(&chip->cdevs, &chip->devs); in tpm_devs_add() [all …]
|
/linux-6.6.21/drivers/vdpa/solidrun/ |
D | snet_main.c | 613 if (!cfg->devs) in snet_free_cfg() 618 if (!cfg->devs[i]) in snet_free_cfg() 621 kfree(cfg->devs[i]); in snet_free_cfg() 624 kfree(cfg->devs); in snet_free_cfg() 724 cfg->devs = kcalloc(cfg->devices_num, sizeof(void *), GFP_KERNEL); in psnet_read_cfg() 725 if (!cfg->devs) in psnet_read_cfg() 730 cfg->devs[i] = kzalloc(sizeof(*cfg->devs[i]), GFP_KERNEL); in psnet_read_cfg() 731 if (!cfg->devs[i]) { in psnet_read_cfg() 736 cfg->devs[i]->virtio_id = psnet_read32(psnet, off); in psnet_read_cfg() 738 cfg->devs[i]->vq_num = psnet_read32(psnet, off); in psnet_read_cfg() [all …]
|
/linux-6.6.21/drivers/nvdimm/ |
D | namespace_devs.c | 1528 struct device *dev, **devs; in create_namespace_io() local 1535 devs = kcalloc(2, sizeof(struct device *), GFP_KERNEL); in create_namespace_io() 1536 if (!devs) { in create_namespace_io() 1550 devs[0] = dev; in create_namespace_io() 1551 return devs; in create_namespace_io() 1886 struct nd_namespace_label *nd_label, struct device **devs, in add_namespace_resource() argument 1894 uuid_t *uuid = namespace_to_uuid(devs[i]); in add_namespace_resource() 1930 struct device *dev, **devs = NULL; in scan_labels() local 1949 i = add_namespace_resource(nd_region, nd_label, devs, count); in scan_labels() 1957 memcpy(__devs, devs, sizeof(dev) * count); in scan_labels() [all …]
|
/linux-6.6.21/drivers/macintosh/ |
D | macio-adb.c | 70 static int macio_adb_autopoll(int devs); 136 static int macio_adb_autopoll(int devs) in macio_adb_autopoll() argument 141 out_8(&adb->active_hi.r, devs >> 8); in macio_adb_autopoll() 142 out_8(&adb->active_lo.r, devs); in macio_adb_autopoll() 143 out_8(&adb->autopoll.r, devs? APE: 0); in macio_adb_autopoll()
|
/linux-6.6.21/arch/arm/mach-rpc/ |
D | riscpc.c | 184 static struct platform_device *devs[] __initdata = { variable 199 return platform_add_devices(devs, ARRAY_SIZE(devs)); in rpc_init()
|