Lines Matching refs:p
457 unsigned long *p; in gpiochip_allocate_mask() local
459 p = bitmap_alloc(gc->ngpio, GFP_KERNEL); in gpiochip_allocate_mask()
460 if (!p) in gpiochip_allocate_mask()
464 bitmap_fill(p, gc->ngpio); in gpiochip_allocate_mask()
466 return p; in gpiochip_allocate_mask()
469 static void gpiochip_free_mask(unsigned long **p) in gpiochip_free_mask() argument
471 bitmap_free(*p); in gpiochip_free_mask()
472 *p = NULL; in gpiochip_free_mask()
3917 struct gpiod_lookup *p; in gpiod_find() local
3923 for (p = &table->table[0]; p->key; p++) { in gpiod_find()
3927 if (p->idx != idx) in gpiod_find()
3931 if (p->con_id && (!con_id || strcmp(p->con_id, con_id))) in gpiod_find()
3934 if (p->chip_hwnum == U16_MAX) { in gpiod_find()
3935 desc = gpio_name_to_desc(p->key); in gpiod_find()
3937 *flags = p->flags; in gpiod_find()
3942 p->key); in gpiod_find()
3946 gc = find_chip_by_name(p->key); in gpiod_find()
3957 p->key); in gpiod_find()
3961 if (gc->ngpio <= p->chip_hwnum) { in gpiod_find()
3964 idx, p->chip_hwnum, gc->ngpio - 1, in gpiod_find()
3969 desc = gpiochip_get_desc(gc, p->chip_hwnum); in gpiod_find()
3970 *flags = p->flags; in gpiod_find()
3981 struct gpiod_lookup *p; in platform_gpio_count() local
3988 for (p = &table->table[0]; p->key; p++) { in platform_gpio_count()
3989 if ((con_id && p->con_id && !strcmp(con_id, p->con_id)) || in platform_gpio_count()
3990 (!con_id && !p->con_id)) in platform_gpio_count()