Home
last modified time | relevance | path

Searched refs:num_devices (Results 1 – 25 of 28) sorted by relevance

12

/drivers/crypto/qat/qat_common/
Dadf_dev_mgr.c11 static u32 num_devices; variable
78 num_devices--; in adf_clean_vf_map()
145 if (num_devices == ADF_MAX_DEVICES) { in adf_devmgr_add_dev()
174 num_devices++; in adf_devmgr_add_dev()
218 num_devices++; in adf_devmgr_add_dev()
253 num_devices--; in adf_devmgr_rm_dev()
368 *num = num_devices - adf_get_num_dettached_vfs(); in adf_devmgr_get_num_dev()
Dadf_ctl_drv.c333 u32 num_devices = 0; in adf_ctl_ioctl_get_num_devices() local
335 adf_devmgr_get_num_dev(&num_devices); in adf_ctl_ioctl_get_num_devices()
336 if (copy_to_user((void __user *)arg, &num_devices, sizeof(num_devices))) in adf_ctl_ioctl_get_num_devices()
/drivers/crypto/virtio/
Dvirtio_crypto_mgr.c15 static uint32_t num_devices; variable
38 if (num_devices == VIRTIO_CRYPTO_MAX_DEVICES) { in virtcrypto_devmgr_add_dev()
56 vcrypto_dev->dev_id = num_devices++; in virtcrypto_devmgr_add_dev()
80 num_devices--; in virtcrypto_devmgr_rm_dev()
/drivers/s390/cio/
Dccwgroup.c320 int num_devices, const char *buf) in ccwgroup_create_dev() argument
326 if (num_devices < 1) in ccwgroup_create_dev()
329 gdev = kzalloc(struct_size(gdev, cdev, num_devices), GFP_KERNEL); in ccwgroup_create_dev()
337 gdev->count = num_devices; in ccwgroup_create_dev()
343 for (i = 0; i < num_devices && buf; i++) { in ccwgroup_create_dev()
370 if (i < num_devices) { in ccwgroup_create_dev()
375 if (i == num_devices && buf && strlen(buf) > 0) { in ccwgroup_create_dev()
406 for (i = 0; i < num_devices; i++) in ccwgroup_create_dev()
/drivers/tee/optee/
Ddevice.c111 u32 shm_size = 0, idx, num_devices = 0; in __optee_enumerate_devices() local
156 num_devices = shm_size / sizeof(uuid_t); in __optee_enumerate_devices()
158 for (idx = 0; idx < num_devices; idx++) { in __optee_enumerate_devices()
/drivers/siox/
Dsiox-core.c746 while (smaster->num_devices) { in siox_master_unregister()
752 smaster->num_devices--; in siox_master_unregister()
792 smaster->busno, smaster->num_devices); in siox_device_add()
817 smaster->num_devices++; in siox_device_add()
855 if (!smaster->num_devices) { in siox_device_remove()
862 smaster->num_devices--; in siox_device_remove()
867 if (!smaster->num_devices) in siox_device_remove()
Dsiox.h25 unsigned int num_devices; member
/drivers/mfd/
Dtimberdale.c69 .num_devices = ARRAY_SIZE(timberdale_i2c_board_info)
77 .num_devices = ARRAY_SIZE(timberdale_i2c_board_info)
730 timberdale_xspi_platform_data.num_devices = in timb_probe()
736 timberdale_xspi_platform_data.num_devices = in timb_probe()
Dtqmx86.c85 .num_devices = ARRAY_SIZE(tqmx86_i2c_devices),
/drivers/crypto/cavium/nitrox/
Dnitrox_main.c36 static unsigned int num_devices; variable
259 ndev->idx = num_devices++; in nitrox_add_to_devlist()
275 num_devices--; in nitrox_remove_from_devlist()
/drivers/net/ethernet/mellanox/mlxfw/
Dmlxfw_mfa2_format.h25 __be16 num_devices; member
Dmlxfw_mfa2.c304 mfa2_file->dev_count = be16_to_cpu(pd->num_devices); in mlxfw_mfa2_file_init()
/drivers/memory/tegra/
Dtegra210-emc-cc-r21021.c262 if (emc->num_devices < 2) in update_clock_tree_delay()
678 emc_dbg(emc, INFO, "DRAM dev #: %u\n", emc->num_devices); in tegra210_emc_r21021_set_clock()
1280 if (emc->num_devices > 1) { in tegra210_emc_r21021_set_clock()
1294 if (emc->num_devices < 2) in tegra210_emc_r21021_set_clock()
1395 if (emc->num_devices <= 1) in tegra210_emc_r21021_set_clock()
1431 if (emc->num_devices < 2) { in tegra210_emc_r21021_set_clock()
1545 if (emc->num_devices > 1) { in tegra210_emc_r21021_set_clock()
1560 if (emc->num_devices > 1) { in tegra210_emc_r21021_set_clock()
Dtegra210-emc-core.c597 for (i = 0; i < emc->num_devices; i++) { in tegra210_emc_get_temperature()
1785 emc->num_devices = 2; in tegra210_emc_detect()
1787 emc->num_devices = 1; in tegra210_emc_detect()
Dtegra210-emc.h907 unsigned int num_devices; member
/drivers/crypto/marvell/octeontx/
Dotx_cptvf_algs.h185 int num_queues, int num_devices);
Dotx_cptvf_algs.c1651 int num_queues, int num_devices) in otx_cpt_crypto_init() argument
1670 if (atomic_read(&se_devices.count) == num_devices && in otx_cpt_crypto_init()
/drivers/scsi/sym53c8xx_2/
Dsym_nvram.h66 u_char num_devices; /* 0x10 */ member
/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.h191 uint32_t num_devices; /* Number of H-NUMA nodes */ member
Dkfd_topology.c870 sys_props.num_devices++; in kfd_topology_update_device_list()
1058 atomic_set(&topology_crat_proximity_domain, sys_props.num_devices-1); in kfd_topology_init()
1441 sys_props.num_devices--; in kfd_topology_remove_device()
/drivers/md/
Ddm-table.c1635 unsigned *num_devices = data; in count_device() local
1637 (*num_devices)++; in count_device()
1651 unsigned i, num_devices; in dm_table_has_no_data_devices() local
1659 num_devices = 0; in dm_table_has_no_data_devices()
1660 ti->type->iterate_devices(ti, count_device, &num_devices); in dm_table_has_no_data_devices()
1661 if (num_devices) in dm_table_has_no_data_devices()
/drivers/block/zram/
Dzram_drv.c48 static unsigned int num_devices = 1; variable
2141 while (num_devices != 0) { in zram_init()
2147 num_devices--; in zram_init()
2165 module_param(num_devices, uint, 0);
2166 MODULE_PARM_DESC(num_devices, "Number of pre-created zram devices");
/drivers/spi/
Dspi-altera.c332 for (i = 0; i < pdata->num_devices; i++) { in altera_spi_probe()
Dspi-xilinx.c497 for (i = 0; i < pdata->num_devices; i++) in xilinx_spi_probe()
/drivers/i2c/busses/
Di2c-ocores.c736 for (i = 0; i < pdata->num_devices; i++) in ocores_i2c_probe()

12