Home
last modified time | relevance | path

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

/drivers/s390/cio/
Dccwgroup.c312 int num_devices, const char *buf) in ccwgroup_create_dev() argument
318 gdev = kzalloc(sizeof(*gdev) + num_devices * sizeof(gdev->cdev[0]), in ccwgroup_create_dev()
326 gdev->count = num_devices; in ccwgroup_create_dev()
332 for (i = 0; i < num_devices && buf; i++) { in ccwgroup_create_dev()
359 if (i < num_devices) { in ccwgroup_create_dev()
364 if (i == num_devices && strlen(buf) > 0) { in ccwgroup_create_dev()
389 for (i = 0; i < num_devices; i++) in ccwgroup_create_dev()
/drivers/block/zram/
Dzram_drv.c44 static unsigned int num_devices = 1; variable
1231 if (num_devices > max_num_devices) { in zram_init()
1233 num_devices); in zram_init()
1244 zram_devices = kzalloc(num_devices * sizeof(struct zram), GFP_KERNEL); in zram_init()
1250 for (dev_id = 0; dev_id < num_devices; dev_id++) { in zram_init()
1256 pr_info("Created %u device(s)\n", num_devices); in zram_init()
1266 destroy_devices(num_devices); in zram_exit()
1272 module_param(num_devices, uint, 0);
1273 MODULE_PARM_DESC(num_devices, "Number of zram devices");
/drivers/mfd/
Dtimberdale.c81 .num_devices = ARRAY_SIZE(timberdale_i2c_board_info)
89 .num_devices = ARRAY_SIZE(timberdale_i2c_board_info)
744 timberdale_xspi_platform_data.num_devices = in timb_probe()
750 timberdale_xspi_platform_data.num_devices = in timb_probe()
/drivers/md/
Ddm-table.c1227 unsigned *num_devices = data; in count_device() local
1229 (*num_devices)++; in count_device()
1243 unsigned i = 0, num_devices = 0; in dm_table_has_no_data_devices() local
1251 ti->type->iterate_devices(ti, count_device, &num_devices); in dm_table_has_no_data_devices()
1252 if (num_devices) in dm_table_has_no_data_devices()
Ddm-raid.c763 __le32 num_devices; /* Number of devices in this array. (Max 64) */ member
831 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/scsi/sym53c8xx_2/
Dsym_nvram.h79 u_char num_devices; /* 0x10 */ member
/drivers/video/omap2/dss/
Dsdi.c280 for (i = 0; i < pdata->num_devices; ++i) { in sdi_find_dssdev()
Ddpi.c619 for (i = 0; i < pdata->num_devices; ++i) { in dpi_find_dssdev()
Dvenc.c738 for (i = 0; i < pdata->num_devices; ++i) { in venc_find_dssdev()
Dhdmi.c966 for (i = 0; i < pdata->num_devices; ++i) { in hdmi_find_dssdev()
Drfbi.c961 for (i = 0; i < pdata->num_devices; ++i) { in rfbi_find_dssdev()
Ddsi.c5379 for (i = 0; i < pdata->num_devices; ++i) { in dsi_find_dssdev()
/drivers/i2c/busses/
Di2c-ocores.c436 for (i = 0; i < pdata->num_devices; i++) in ocores_i2c_probe()
Di2c-xiic.c751 for (i = 0; i < pdata->num_devices; i++) in xiic_i2c_probe()
/drivers/spi/
Dspi-xilinx.c509 for (i = 0; i < pdata->num_devices; i++) in xilinx_spi_probe()
/drivers/block/
Dpktcdvd.c2893 ctrl_cmd->num_devices = MAX_WRITERS; in pkt_get_status()