Searched refs:kpad (Results 1 – 3 of 3) sorted by relevance
219 struct adp5588_kpad *kpad = gpiochip_get_data(chip); in adp5588_gpio_get_value() local220 unsigned int bank = ADP5588_BANK(kpad->gpiomap[off]); in adp5588_gpio_get_value()221 unsigned int bit = ADP5588_BIT(kpad->gpiomap[off]); in adp5588_gpio_get_value()224 mutex_lock(&kpad->gpio_lock); in adp5588_gpio_get_value()226 if (kpad->dir[bank] & bit) in adp5588_gpio_get_value()227 val = kpad->dat_out[bank]; in adp5588_gpio_get_value()229 val = adp5588_read(kpad->client, GPIO_DAT_STAT1 + bank); in adp5588_gpio_get_value()231 mutex_unlock(&kpad->gpio_lock); in adp5588_gpio_get_value()239 struct adp5588_kpad *kpad = gpiochip_get_data(chip); in adp5588_gpio_set_value() local240 unsigned int bank = ADP5588_BANK(kpad->gpiomap[off]); in adp5588_gpio_set_value()[all …]
391 struct adp5589_kpad *kpad = gpiochip_get_data(chip); in adp5589_gpio_get_value() local392 unsigned int bank = kpad->var->bank(kpad->gpiomap[off]); in adp5589_gpio_get_value()393 unsigned int bit = kpad->var->bit(kpad->gpiomap[off]); in adp5589_gpio_get_value()395 return !!(adp5589_read(kpad->client, in adp5589_gpio_get_value()396 kpad->var->reg(ADP5589_GPI_STATUS_A) + bank) & in adp5589_gpio_get_value()403 struct adp5589_kpad *kpad = gpiochip_get_data(chip); in adp5589_gpio_set_value() local404 unsigned int bank = kpad->var->bank(kpad->gpiomap[off]); in adp5589_gpio_set_value()405 unsigned int bit = kpad->var->bit(kpad->gpiomap[off]); in adp5589_gpio_set_value()407 mutex_lock(&kpad->gpio_lock); in adp5589_gpio_set_value()410 kpad->dat_out[bank] |= bit; in adp5589_gpio_set_value()[all …]
143 static void media_device_kpad_to_upad(const struct media_pad *kpad, in media_device_kpad_to_upad() argument146 upad->entity = media_entity_id(kpad->entity); in media_device_kpad_to_upad()147 upad->index = kpad->index; in media_device_kpad_to_upad()148 upad->flags = kpad->flags; in media_device_kpad_to_upad()239 struct media_v2_pad kpad, __user *upad; in media_device_get_topology() local323 memset(&kpad, 0, sizeof(kpad)); in media_device_get_topology()326 kpad.id = pad->graph_obj.id; in media_device_get_topology()327 kpad.entity_id = pad->entity->graph_obj.id; in media_device_get_topology()328 kpad.flags = pad->flags; in media_device_get_topology()329 kpad.index = pad->index; in media_device_get_topology()[all …]