Home
last modified time | relevance | path

Searched refs:kpad (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/input/keyboard/
H A Dadp5588-keys.c373 if (kpad->int_en[i] ^ kpad->irq_mask[i]) { in adp5588_irq_bus_sync_unlock()
374 kpad->int_en[i] = kpad->irq_mask[i]; in adp5588_irq_bus_sync_unlock()
431 kpad->gc.ngpio = adp5588_build_gpiomap(kpad); in adp5588_gpio_add()
437 kpad->gc.parent = &kpad->client->dev; in adp5588_gpio_add()
446 kpad->gc.label = kpad->client->name; in adp5588_gpio_add()
463 kpad->dat_out[i] = adp5588_read(kpad->client, in adp5588_gpio_add()
657 kpad->rows, kpad->cols); in adp5588_fw_parse()
662 kpad->keycode, kpad->input); in adp5588_fw_parse()
666 kpad->row_shift = get_count_order(kpad->cols); in adp5588_fw_parse()
700 if (kpad->unlock_keys[i] >= kpad->cols * kpad->rows) { in adp5588_fw_parse()
[all …]
H A Dadp5589-keys.c393 unsigned int bit = kpad->var->bit(kpad->gpiomap[off]); in adp5589_gpio_get_value()
412 unsigned int bit = kpad->var->bit(kpad->gpiomap[off]); in adp5589_gpio_set_value()
431 unsigned int bit = kpad->var->bit(kpad->gpiomap[off]); in adp5589_gpio_direction_input()
451 unsigned int bit = kpad->var->bit(kpad->gpiomap[off]); in adp5589_gpio_direction_output()
517 kpad->gc.ngpio = adp5589_build_gpiomap(kpad, pdata); in adp5589_gpio_add()
530 kpad->gc.label = kpad->client->name; in adp5589_gpio_add()
535 error = devm_gpiochip_add_data(dev, &kpad->gc, kpad); in adp5589_gpio_add()
540 kpad->dat_out[i] = adp5589_read(kpad->client, kpad->var->reg( in adp5589_gpio_add()
542 kpad->dir[i] = adp5589_read(kpad->client, kpad->var->reg( in adp5589_gpio_add()
972 if (!kpad) in adp5589_probe()
[all …]
/openbmc/linux/drivers/media/mc/
H A Dmc-device.c143 static void media_device_kpad_to_upad(const struct media_pad *kpad, in media_device_kpad_to_upad() argument
146 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() local
323 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 …]