Lines Matching refs:array_info

2668 				  struct gpio_array *array_info,  in gpiod_get_array_value_complex()  argument
2678 if (array_info && array_info->desc == desc_array && in gpiod_get_array_value_complex()
2679 array_size <= array_info->size && in gpiod_get_array_value_complex()
2680 (void *)array_info == desc_array + array_info->size) { in gpiod_get_array_value_complex()
2682 WARN_ON(array_info->chip->can_sleep); in gpiod_get_array_value_complex()
2684 ret = gpio_chip_get_multiple(array_info->chip, in gpiod_get_array_value_complex()
2685 array_info->get_mask, in gpiod_get_array_value_complex()
2690 if (!raw && !bitmap_empty(array_info->invert_mask, array_size)) in gpiod_get_array_value_complex()
2692 array_info->invert_mask, array_size); in gpiod_get_array_value_complex()
2694 i = find_first_zero_bit(array_info->get_mask, array_size); in gpiod_get_array_value_complex()
2698 array_info = NULL; in gpiod_get_array_value_complex()
2739 if (array_info) in gpiod_get_array_value_complex()
2740 i = find_next_zero_bit(array_info->get_mask, in gpiod_get_array_value_complex()
2765 if (array_info) in gpiod_get_array_value_complex()
2766 j = find_next_zero_bit(array_info->get_mask, i, in gpiod_get_array_value_complex()
2842 struct gpio_array *array_info, in gpiod_get_raw_array_value() argument
2848 desc_array, array_info, in gpiod_get_raw_array_value()
2868 struct gpio_array *array_info, in gpiod_get_array_value() argument
2874 desc_array, array_info, in gpiod_get_array_value()
2965 struct gpio_array *array_info, in gpiod_set_array_value_complex() argument
2975 if (array_info && array_info->desc == desc_array && in gpiod_set_array_value_complex()
2976 array_size <= array_info->size && in gpiod_set_array_value_complex()
2977 (void *)array_info == desc_array + array_info->size) { in gpiod_set_array_value_complex()
2979 WARN_ON(array_info->chip->can_sleep); in gpiod_set_array_value_complex()
2981 if (!raw && !bitmap_empty(array_info->invert_mask, array_size)) in gpiod_set_array_value_complex()
2983 array_info->invert_mask, array_size); in gpiod_set_array_value_complex()
2985 gpio_chip_set_multiple(array_info->chip, array_info->set_mask, in gpiod_set_array_value_complex()
2988 i = find_first_zero_bit(array_info->set_mask, array_size); in gpiod_set_array_value_complex()
2992 array_info = NULL; in gpiod_set_array_value_complex()
3034 if (!raw && !(array_info && in gpiod_set_array_value_complex()
3035 test_bit(i, array_info->invert_mask)) && in gpiod_set_array_value_complex()
3054 if (array_info) in gpiod_set_array_value_complex()
3055 i = find_next_zero_bit(array_info->set_mask, in gpiod_set_array_value_complex()
3147 struct gpio_array *array_info, in gpiod_set_raw_array_value() argument
3153 desc_array, array_info, value_bitmap); in gpiod_set_raw_array_value()
3172 struct gpio_array *array_info, in gpiod_set_array_value() argument
3178 desc_array, array_info, in gpiod_set_array_value()
3485 struct gpio_array *array_info, in gpiod_get_raw_array_value_cansleep() argument
3492 desc_array, array_info, in gpiod_get_raw_array_value_cansleep()
3511 struct gpio_array *array_info, in gpiod_get_array_value_cansleep() argument
3518 desc_array, array_info, in gpiod_get_array_value_cansleep()
3573 struct gpio_array *array_info, in gpiod_set_raw_array_value_cansleep() argument
3580 array_info, value_bitmap); in gpiod_set_raw_array_value_cansleep()
3615 struct gpio_array *array_info, in gpiod_set_array_value_cansleep() argument
3622 desc_array, array_info, in gpiod_set_array_value_cansleep()
4238 struct gpio_array *array_info = NULL; in gpiod_get_array() local
4271 struct_size(array_info, invert_mask, in gpiod_get_array()
4283 array_info = (void *)(descs->desc + count); in gpiod_get_array()
4284 array_info->get_mask = array_info->invert_mask + in gpiod_get_array()
4286 array_info->set_mask = array_info->get_mask + in gpiod_get_array()
4289 array_info->desc = descs->desc; in gpiod_get_array()
4290 array_info->size = count; in gpiod_get_array()
4291 array_info->chip = gc; in gpiod_get_array()
4292 bitmap_set(array_info->get_mask, descs->ndescs, in gpiod_get_array()
4294 bitmap_set(array_info->set_mask, descs->ndescs, in gpiod_get_array()
4296 descs->info = array_info; in gpiod_get_array()
4299 if (array_info && array_info->chip != gc) { in gpiod_get_array()
4300 __clear_bit(descs->ndescs, array_info->get_mask); in gpiod_get_array()
4301 __clear_bit(descs->ndescs, array_info->set_mask); in gpiod_get_array()
4307 else if (array_info && in gpiod_get_array()
4314 if (bitmap_full(array_info->get_mask, descs->ndescs)) { in gpiod_get_array()
4315 array_info = NULL; in gpiod_get_array()
4318 array_info->get_mask); in gpiod_get_array()
4320 array_info->set_mask); in gpiod_get_array()
4322 } else if (array_info) { in gpiod_get_array()
4327 array_info->set_mask); in gpiod_get_array()
4331 array_info->invert_mask); in gpiod_get_array()
4336 if (array_info) in gpiod_get_array()
4339 array_info->chip->label, array_info->size, in gpiod_get_array()
4340 *array_info->get_mask, *array_info->set_mask, in gpiod_get_array()
4341 *array_info->invert_mask); in gpiod_get_array()