Home
last modified time | relevance | path

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

/drivers/crypto/qat/qat_common/
Dadf_dev_mgr.c55 static uint32_t num_devices; variable
120 num_devices--; in adf_clean_vf_map()
173 if (num_devices == ADF_MAX_DEVICES) { in adf_devmgr_add_dev()
197 accel_dev->accel_id = num_devices++; in adf_devmgr_add_dev()
240 accel_dev->accel_id = num_devices++; in adf_devmgr_add_dev()
274 num_devices--; in adf_devmgr_rm_dev()
389 *num = num_devices - adf_get_num_dettached_vfs(); in adf_devmgr_get_num_dev()
Dadf_ctl_drv.c378 uint32_t num_devices = 0; in adf_ctl_ioctl_get_num_devices() local
380 adf_devmgr_get_num_dev(&num_devices); in adf_ctl_ioctl_get_num_devices()
381 if (copy_to_user((void __user *)arg, &num_devices, sizeof(num_devices))) in adf_ctl_ioctl_get_num_devices()
/drivers/s390/cio/
Dccwgroup.c319 int num_devices, const char *buf) in ccwgroup_create_dev() argument
325 gdev = kzalloc(sizeof(*gdev) + num_devices * sizeof(gdev->cdev[0]), in ccwgroup_create_dev()
334 gdev->count = num_devices; in ccwgroup_create_dev()
340 for (i = 0; i < num_devices && buf; i++) { in ccwgroup_create_dev()
367 if (i < num_devices) { in ccwgroup_create_dev()
372 if (i == num_devices && buf && strlen(buf) > 0) { in ccwgroup_create_dev()
397 for (i = 0; i < num_devices; i++) in ccwgroup_create_dev()
/drivers/spi/
Dspi-gpio.c412 int num_devices; in spi_gpio_probe() local
427 num_devices = 1; in spi_gpio_probe()
429 num_devices = SPI_N_CHIPSEL; in spi_gpio_probe()
436 (sizeof(unsigned long) * num_devices)); in spi_gpio_probe()
451 master->num_chipselect = num_devices; in spi_gpio_probe()
Dspi-xilinx.c490 for (i = 0; i < pdata->num_devices; i++) in xilinx_spi_probe()
/drivers/mfd/
Dtimberdale.c81 .num_devices = ARRAY_SIZE(timberdale_i2c_board_info)
89 .num_devices = ARRAY_SIZE(timberdale_i2c_board_info)
743 timberdale_xspi_platform_data.num_devices = in timb_probe()
749 timberdale_xspi_platform_data.num_devices = in timb_probe()
/drivers/md/
Ddm-table.c1257 unsigned *num_devices = data; in count_device() local
1259 (*num_devices)++; in count_device()
1273 unsigned i = 0, num_devices = 0; in dm_table_has_no_data_devices() local
1281 ti->type->iterate_devices(ti, count_device, &num_devices); in dm_table_has_no_data_devices()
1282 if (num_devices) in dm_table_has_no_data_devices()
Ddm-raid.c760 __le32 num_devices; /* Number of devices in this array. (Max 64) */ member
827 sb->num_devices = cpu_to_le32(mddev->raid_disks); in super_sync()
944 (le32_to_cpu(sb->num_devices) != mddev->raid_disks)) { in super_init_validation()
/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.h156 uint32_t num_devices; /* Number of H-NUMA nodes */ member
Dkfd_topology.c398 sys_props.num_devices--; in kfd_release_topology_device()
429 sys_props.num_devices++; in kfd_create_topology_device()
/drivers/scsi/sym53c8xx_2/
Dsym_nvram.h79 u_char num_devices; /* 0x10 */ member
/drivers/block/zram/
Dzram_drv.c44 static unsigned int num_devices = 1; variable
1418 while (num_devices != 0) { in zram_init()
1424 num_devices--; in zram_init()
1442 module_param(num_devices, uint, 0);
1443 MODULE_PARM_DESC(num_devices, "Number of pre-created zram devices");
/drivers/i2c/busses/
Di2c-ocores.c505 for (i = 0; i < pdata->num_devices; i++) in ocores_i2c_probe()
Di2c-xiic.c788 for (i = 0; i < pdata->num_devices; i++) in xiic_i2c_probe()
/drivers/block/
Dpktcdvd.c2879 ctrl_cmd->num_devices = MAX_WRITERS; in pkt_get_status()