Home
last modified time | relevance | path

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

/drivers/staging/zram/
Dzram_drv.c43 static unsigned int num_devices; variable
784 return num_devices; in zram_get_num_devices()
791 if (num_devices > max_num_devices) { in zram_init()
793 num_devices); in zram_init()
805 if (!num_devices) { in zram_init()
807 num_devices = 1; in zram_init()
811 pr_info("Creating %u devices ...\n", num_devices); in zram_init()
812 zram_devices = kzalloc(num_devices * sizeof(struct zram), GFP_KERNEL); in zram_init()
818 for (dev_id = 0; dev_id < num_devices; dev_id++) { in zram_init()
841 for (i = 0; i < num_devices; i++) { in zram_exit()
[all …]
Dzram.txt22 modprobe zram num_devices=4
24 (num_devices parameter is optional. Default: 1)
/drivers/s390/cio/
Dccwgroup.c310 struct ccw_driver *cdrv, int num_devices, in ccwgroup_create_from_string() argument
318 gdev = kzalloc(sizeof(*gdev) + num_devices * sizeof(gdev->cdev[0]), in ccwgroup_create_from_string()
327 gdev->count = num_devices; in ccwgroup_create_from_string()
334 for (i = 0; i < num_devices && curr_buf; i++) { in ccwgroup_create_from_string()
364 if (i < num_devices && !curr_buf) { in ccwgroup_create_from_string()
369 if (i == num_devices && strlen(curr_buf) > 0) { in ccwgroup_create_from_string()
387 for (i = 0; i < num_devices; i++) in ccwgroup_create_from_string()
/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/video/omap2/dss/
Dcore.c190 for (i = 0; i < pdata->num_devices; ++i) { in omap_dss_probe()
227 for (i = 0; i < pdata->num_devices; ++i) in omap_dss_remove()
/drivers/scsi/sym53c8xx_2/
Dsym_nvram.h79 u_char num_devices; /* 0x10 */ member
/drivers/md/
Ddm-raid.c570 __le32 num_devices; /* Number of devices in this array. (Max 64) */ member
636 sb->num_devices = cpu_to_le32(mddev->raid_disks); in super_sync()
736 (le32_to_cpu(sb->num_devices) != mddev->raid_disks)) { in super_init_validation()
/drivers/i2c/busses/
Di2c-ocores.c344 for (i = 0; i < pdata->num_devices; i++) in ocores_i2c_probe()
Di2c-xiic.c750 for (i = 0; i < pdata->num_devices; i++) in xiic_i2c_probe()
/drivers/spi/
Dspi-xilinx.c513 for (i = 0; i < pdata->num_devices; i++) in xilinx_spi_probe()
/drivers/block/
Dpktcdvd.c2988 ctrl_cmd->num_devices = MAX_WRITERS; in pkt_get_status()