Home
last modified time | relevance | path

Searched refs:kpad (Results 1 - 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/drivers/input/keyboard/
H A Dadp5588-keys.c76 struct adp5588_kpad *kpad = gpiochip_get_data(chip); in adp5588_gpio_get_value() local
77 unsigned int bank = ADP5588_BANK(kpad->gpiomap[off]); in adp5588_gpio_get_value()
78 unsigned int bit = ADP5588_BIT(kpad->gpiomap[off]); in adp5588_gpio_get_value()
81 mutex_lock(&kpad->gpio_lock); in adp5588_gpio_get_value()
83 if (kpad->dir[bank] & bit) in adp5588_gpio_get_value()
84 val = kpad->dat_out[bank]; in adp5588_gpio_get_value()
86 val = adp5588_read(kpad->client, GPIO_DAT_STAT1 + bank); in adp5588_gpio_get_value()
88 mutex_unlock(&kpad->gpio_lock); in adp5588_gpio_get_value()
96 struct adp5588_kpad *kpad = gpiochip_get_data(chip); in adp5588_gpio_set_value() local
97 unsigned int bank = ADP5588_BANK(kpad in adp5588_gpio_set_value()
115 struct adp5588_kpad *kpad = gpiochip_get_data(chip); adp5588_gpio_direction_input() local
133 struct adp5588_kpad *kpad = gpiochip_get_data(chip); adp5588_gpio_direction_output() local
157 adp5588_build_gpiomap(struct adp5588_kpad *kpad, const struct adp5588_kpad_platform_data *pdata) adp5588_build_gpiomap() argument
182 adp5588_gpio_add(struct adp5588_kpad *kpad) adp5588_gpio_add() argument
236 adp5588_gpio_remove(struct adp5588_kpad *kpad) adp5588_gpio_remove() argument
257 adp5588_gpio_add(struct adp5588_kpad *kpad) adp5588_gpio_add() argument
262 adp5588_gpio_remove(struct adp5588_kpad *kpad) adp5588_gpio_remove() argument
267 adp5588_report_events(struct adp5588_kpad *kpad, int ev_cnt) adp5588_report_events() argument
294 struct adp5588_kpad *kpad = container_of(work, adp5588_work() local
316 struct adp5588_kpad *kpad = handle; adp5588_irq() local
393 adp5588_report_switch_state(struct adp5588_kpad *kpad) adp5588_report_switch_state() argument
434 struct adp5588_kpad *kpad; adp5588_probe() local
603 struct adp5588_kpad *kpad = i2c_get_clientdata(client); adp5588_remove() local
618 struct adp5588_kpad *kpad = dev_get_drvdata(dev); adp5588_suspend() local
632 struct adp5588_kpad *kpad = dev_get_drvdata(dev); adp5588_resume() local
[all...]
H A Dadp5589-keys.c390 struct adp5589_kpad *kpad = gpiochip_get_data(chip); in adp5589_gpio_get_value() local
391 unsigned int bank = kpad->var->bank(kpad->gpiomap[off]); in adp5589_gpio_get_value()
392 unsigned int bit = kpad->var->bit(kpad->gpiomap[off]); in adp5589_gpio_get_value()
394 return !!(adp5589_read(kpad->client, in adp5589_gpio_get_value()
395 kpad->var->reg(ADP5589_GPI_STATUS_A) + bank) & in adp5589_gpio_get_value()
402 struct adp5589_kpad *kpad = gpiochip_get_data(chip); in adp5589_gpio_set_value() local
403 unsigned int bank = kpad->var->bank(kpad in adp5589_gpio_set_value()
421 struct adp5589_kpad *kpad = gpiochip_get_data(chip); adp5589_gpio_direction_input() local
441 struct adp5589_kpad *kpad = gpiochip_get_data(chip); adp5589_gpio_direction_output() local
466 adp5589_build_gpiomap(struct adp5589_kpad *kpad, const struct adp5589_kpad_platform_data *pdata) adp5589_build_gpiomap() argument
498 adp5589_gpio_add(struct adp5589_kpad *kpad) adp5589_gpio_add() argument
553 adp5589_gpio_remove(struct adp5589_kpad *kpad) adp5589_gpio_remove() argument
574 adp5589_gpio_add(struct adp5589_kpad *kpad) adp5589_gpio_add() argument
579 adp5589_gpio_remove(struct adp5589_kpad *kpad) adp5589_gpio_remove() argument
584 adp5589_report_switches(struct adp5589_kpad *kpad, int key, int key_val) adp5589_report_switches() argument
599 adp5589_report_events(struct adp5589_kpad *kpad, int ev_cnt) adp5589_report_events() argument
620 struct adp5589_kpad *kpad = handle; adp5589_irq() local
642 adp5589_get_evcode(struct adp5589_kpad *kpad, unsigned short key) adp5589_get_evcode() argument
655 adp5589_setup(struct adp5589_kpad *kpad) adp5589_setup() argument
820 adp5589_report_switch_state(struct adp5589_kpad *kpad) adp5589_report_switch_state() argument
860 adp5589_keypad_add(struct adp5589_kpad *kpad, unsigned int revid) adp5589_keypad_add() argument
982 adp5589_keypad_remove(struct adp5589_kpad *kpad) adp5589_keypad_remove() argument
993 struct adp5589_kpad *kpad; adp5589_probe() local
1070 struct adp5589_kpad *kpad = i2c_get_clientdata(client); adp5589_remove() local
1083 struct adp5589_kpad *kpad = dev_get_drvdata(dev); adp5589_suspend() local
1099 struct adp5589_kpad *kpad = dev_get_drvdata(dev); adp5589_resume() local
[all...]
/kernel/linux/linux-6.6/drivers/input/keyboard/
H A Dadp5588-keys.c219 struct adp5588_kpad *kpad = gpiochip_get_data(chip); in adp5588_gpio_get_value() local
220 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() local
240 unsigned int bank = ADP5588_BANK(kpad in adp5588_gpio_set_value()
258 struct adp5588_kpad *kpad = gpiochip_get_data(chip); adp5588_gpio_set_config() local
292 struct adp5588_kpad *kpad = gpiochip_get_data(chip); adp5588_gpio_direction_input() local
310 struct adp5588_kpad *kpad = gpiochip_get_data(chip); adp5588_gpio_direction_output() local
337 adp5588_build_gpiomap(struct adp5588_kpad *kpad) adp5588_build_gpiomap() argument
361 struct adp5588_kpad *kpad = gpiochip_get_data(gc); adp5588_irq_bus_lock() local
369 struct adp5588_kpad *kpad = gpiochip_get_data(gc); adp5588_irq_bus_sync_unlock() local
385 struct adp5588_kpad *kpad = gpiochip_get_data(gc); adp5588_irq_mask() local
396 struct adp5588_kpad *kpad = gpiochip_get_data(gc); adp5588_irq_unmask() local
425 adp5588_gpio_add(struct adp5588_kpad *kpad) adp5588_gpio_add() argument
488 adp5588_gpio_irq_handle(struct adp5588_kpad *kpad, int key_val, int key_press) adp5588_gpio_irq_handle() argument
524 adp5588_report_events(struct adp5588_kpad *kpad, int ev_cnt) adp5588_report_events() argument
553 struct adp5588_kpad *kpad = handle; adp5588_hard_irq() local
562 struct adp5588_kpad *kpad = handle; adp5588_thread_irq() local
599 adp5588_setup(struct adp5588_kpad *kpad) adp5588_setup() argument
645 adp5588_fw_parse(struct adp5588_kpad *kpad) adp5588_fw_parse() argument
718 struct adp5588_kpad *kpad; adp5588_probe() local
[all...]
H A Dadp5589-keys.c391 struct adp5589_kpad *kpad = gpiochip_get_data(chip); in adp5589_gpio_get_value() local
392 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() local
404 unsigned int bank = kpad->var->bank(kpad in adp5589_gpio_set_value()
422 struct adp5589_kpad *kpad = gpiochip_get_data(chip); adp5589_gpio_direction_input() local
442 struct adp5589_kpad *kpad = gpiochip_get_data(chip); adp5589_gpio_direction_output() local
467 adp5589_build_gpiomap(struct adp5589_kpad *kpad, const struct adp5589_kpad_platform_data *pdata) adp5589_build_gpiomap() argument
499 adp5589_gpio_add(struct adp5589_kpad *kpad) adp5589_gpio_add() argument
542 adp5589_gpio_add(struct adp5589_kpad *kpad) adp5589_gpio_add() argument
548 adp5589_report_switches(struct adp5589_kpad *kpad, int key, int key_val) adp5589_report_switches() argument
563 adp5589_report_events(struct adp5589_kpad *kpad, int ev_cnt) adp5589_report_events() argument
584 struct adp5589_kpad *kpad = handle; adp5589_irq() local
606 adp5589_get_evcode(struct adp5589_kpad *kpad, unsigned short key) adp5589_get_evcode() argument
619 adp5589_setup(struct adp5589_kpad *kpad) adp5589_setup() argument
784 adp5589_report_switch_state(struct adp5589_kpad *kpad) adp5589_report_switch_state() argument
824 adp5589_keypad_add(struct adp5589_kpad *kpad, unsigned int revid) adp5589_keypad_add() argument
940 struct adp5589_kpad *kpad = i2c_get_clientdata(client); adp5589_clear_config() local
948 struct adp5589_kpad *kpad; adp5589_probe() local
1022 struct adp5589_kpad *kpad = i2c_get_clientdata(client); adp5589_suspend() local
1033 struct adp5589_kpad *kpad = i2c_get_clientdata(client); adp5589_resume() local
[all...]
/kernel/linux/linux-5.10/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 in media_device_get_topology()
[all...]
/kernel/linux/linux-6.6/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 in media_device_get_topology()
[all...]

Completed in 7 milliseconds