• Home
  • Raw
  • Download

Lines Matching refs:num

164 		 unsigned num,  in parse_args()  argument
188 ret = parse_one(param, val, doing, params, num, in parse_args()
249 unsigned int num; in param_set_uint_minmax() local
254 ret = kstrtouint(val, 0, &num); in param_set_uint_minmax()
257 if (num < min || num > max) in param_set_uint_minmax()
259 *((unsigned int *)kp->arg) = num; in param_set_uint_minmax()
420 unsigned int *num) in param_array() argument
431 *num = 0; in param_array()
436 if (*num == max) { in param_array()
452 (*num)++; in param_array()
455 if (*num < min) { in param_array()
469 arr->num ?: &temp_num); in param_array_set()
478 for (i = off = 0; i < (arr->num ? *arr->num : arr->max); i++) { in param_array_get()
499 for (i = 0; i < (arr->num ? *arr->num : arr->max); i++) in param_array_free()
549 unsigned int num; member
653 sizeof(mk->mp->attrs[0]) * (mk->mp->num + 1), in add_sysfs_param()
661 sizeof(mk->mp->grp.attrs[0]) * (mk->mp->num + 2), in add_sysfs_param()
668 memset(&mk->mp->attrs[mk->mp->num], 0, sizeof(mk->mp->attrs[0])); in add_sysfs_param()
669 sysfs_attr_init(&mk->mp->attrs[mk->mp->num].mattr.attr); in add_sysfs_param()
670 mk->mp->attrs[mk->mp->num].param = kp; in add_sysfs_param()
671 mk->mp->attrs[mk->mp->num].mattr.show = param_attr_show; in add_sysfs_param()
674 mk->mp->attrs[mk->mp->num].mattr.store = param_attr_store; in add_sysfs_param()
676 mk->mp->attrs[mk->mp->num].mattr.store = NULL; in add_sysfs_param()
677 mk->mp->attrs[mk->mp->num].mattr.attr.name = (char *)name; in add_sysfs_param()
678 mk->mp->attrs[mk->mp->num].mattr.attr.mode = kp->perm; in add_sysfs_param()
679 mk->mp->num++; in add_sysfs_param()
682 for (i = 0; i < mk->mp->num; i++) in add_sysfs_param()
684 mk->mp->grp.attrs[mk->mp->num] = NULL; in add_sysfs_param()
752 void destroy_params(const struct kernel_param *params, unsigned num) in destroy_params() argument
756 for (i = 0; i < num; i++) in destroy_params()