Lines Matching refs:arr
464 const struct kparam_array *arr = kp->arr; in param_array_set() local
467 return param_array(kp->mod, kp->name, val, 1, arr->max, arr->elem, in param_array_set()
468 arr->elemsize, arr->ops->set, kp->level, in param_array_set()
469 arr->num ?: &temp_num); in param_array_set()
475 const struct kparam_array *arr = kp->arr; in param_array_get() local
478 for (i = off = 0; i < (arr->num ? *arr->num : arr->max); i++) { in param_array_get()
482 p.arg = arr->elem + arr->elemsize * i; in param_array_get()
484 ret = arr->ops->get(buffer + off, &p); in param_array_get()
496 const struct kparam_array *arr = arg; in param_array_free() local
498 if (arr->ops->free) in param_array_free()
499 for (i = 0; i < (arr->num ? *arr->num : arr->max); i++) in param_array_free()
500 arr->ops->free(arr->elem + arr->elemsize * i); in param_array_free()