Home
last modified time | relevance | path

Searched refs:num_devices (Results 1 – 25 of 33) 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()
254 num_devices--; in adf_devmgr_rm_dev()
369 *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.c314 int num_devices, const char *buf) in ccwgroup_create_dev() argument
320 if (num_devices < 1) in ccwgroup_create_dev()
323 gdev = kzalloc(struct_size(gdev, cdev, num_devices), GFP_KERNEL); in ccwgroup_create_dev()
331 gdev->count = num_devices; in ccwgroup_create_dev()
337 for (i = 0; i < num_devices && buf; i++) { in ccwgroup_create_dev()
364 if (i < num_devices) { in ccwgroup_create_dev()
369 if (i == num_devices && buf && strlen(buf) > 0) { 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.c750 while (smaster->num_devices) { in siox_master_unregister()
756 smaster->num_devices--; in siox_master_unregister()
796 smaster->busno, smaster->num_devices); in siox_device_add()
821 smaster->num_devices++; in siox_device_add()
859 if (!smaster->num_devices) { in siox_device_remove()
866 smaster->num_devices--; in siox_device_remove()
871 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
250 ndev->idx = num_devices++; in nitrox_add_to_devlist()
266 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()
1781 emc->num_devices = 2; in tegra210_emc_detect()
1783 emc->num_devices = 1; in tegra210_emc_detect()
/drivers/crypto/marvell/octeontx2/
Dotx2_cptvf_algs.h175 int num_queues, int num_devices);
/drivers/crypto/marvell/octeontx/
Dotx_cptvf_algs.h185 int num_queues, int num_devices);
/drivers/scsi/sym53c8xx_2/
Dsym_nvram.h66 u_char num_devices; /* 0x10 */ member
/drivers/md/
Ddm-table.c1588 unsigned *num_devices = data; in count_device() local
1590 (*num_devices)++; in count_device()
1604 unsigned i, num_devices; in dm_table_has_no_data_devices() local
1612 num_devices = 0; in dm_table_has_no_data_devices()
1613 ti->type->iterate_devices(ti, count_device, &num_devices); in dm_table_has_no_data_devices()
1614 if (num_devices) in dm_table_has_no_data_devices()
/drivers/spi/
Dspi-altera-platform.c126 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/scsi/mpi3mr/mpi/
Dmpi30_image.h136 u8 num_devices; member
/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.h193 uint32_t num_devices; /* Number of H-NUMA nodes */ member
Dkfd_topology.c874 sys_props.num_devices++; in kfd_topology_update_device_list()
1062 atomic_set(&topology_crat_proximity_domain, sys_props.num_devices-1); in kfd_topology_init()
1497 sys_props.num_devices--; in kfd_topology_remove_device()
/drivers/block/zram/
Dzram_drv.c48 static unsigned int num_devices = 1; variable
2109 while (num_devices != 0) { in zram_init()
2115 num_devices--; in zram_init()
2133 module_param(num_devices, uint, 0);
2134 MODULE_PARM_DESC(num_devices, "Number of pre-created zram devices");
/drivers/fpga/
Ddfl-n3000-nios.c434 pdata.num_devices = 1; in create_altera_spi_controller()

12