Lines Matching refs:nbuttons
200 for (i = 0; i < ddata->pdata->nbuttons; i++) { in gpio_keys_attr_show_helper()
254 for (i = 0; i < ddata->pdata->nbuttons; i++) { in gpio_keys_attr_store_helper()
269 for (i = 0; i < ddata->pdata->nbuttons; i++) { in gpio_keys_attr_store_helper()
647 for (i = 0; i < ddata->pdata->nbuttons; i++) { in gpio_keys_report_state()
695 int nbuttons; in gpio_keys_get_devtree_pdata() local
697 nbuttons = device_get_child_node_count(dev); in gpio_keys_get_devtree_pdata()
698 if (nbuttons == 0) in gpio_keys_get_devtree_pdata()
702 sizeof(*pdata) + nbuttons * sizeof(*button), in gpio_keys_get_devtree_pdata()
710 pdata->nbuttons = nbuttons; in gpio_keys_get_devtree_pdata()
777 ddata = devm_kzalloc(dev, struct_size(ddata, data, pdata->nbuttons), in gpio_keys_probe()
785 pdata->nbuttons, sizeof(ddata->keymap[0]), in gpio_keys_probe()
816 input->keycodemax = pdata->nbuttons; in gpio_keys_probe()
822 for (i = 0; i < pdata->nbuttons; i++) { in gpio_keys_probe()
919 for (i = 0; i < ddata->pdata->nbuttons; i++) { in gpio_keys_enable_wakeup()
948 for (i = 0; i < ddata->pdata->nbuttons; i++) { in gpio_keys_disable_wakeup()