Home
last modified time | relevance | path

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

/drivers/char/
Draw.c40 static int max_raw_minors = MAX_RAW_MINORS; variable
42 module_param(max_raw_minors, int, 0);
43 MODULE_PARM_DESC(max_raw_minors, "Maximum number of raw devices (1-65536)");
134 if (number <= 0 || number >= max_raw_minors) in bind_set()
193 if (number <= 0 || number >= max_raw_minors) in bind_get()
319 if (max_raw_minors < 1 || max_raw_minors > 65536) { in raw_init()
322 max_raw_minors = MAX_RAW_MINORS; in raw_init()
325 raw_devices = vzalloc(array_size(max_raw_minors, in raw_init()
333 ret = register_chrdev_region(dev, max_raw_minors, "raw"); in raw_init()
338 ret = cdev_add(&raw_cdev, dev, max_raw_minors); in raw_init()
[all …]