Lines Matching refs:bdev
48 struct gpio_keys_polled_dev *bdev = input_get_drvdata(input); in gpio_keys_button_event() local
54 __set_bit(button->code, bdev->rel_axis_seen); in gpio_keys_button_event()
59 __set_bit(button->code, bdev->abs_axis_seen); in gpio_keys_button_event()
89 struct gpio_keys_polled_dev *bdev = input_get_drvdata(input); in gpio_keys_polled_poll() local
90 const struct gpio_keys_platform_data *pdata = bdev->pdata; in gpio_keys_polled_poll()
93 memset(bdev->rel_axis_seen, 0, sizeof(bdev->rel_axis_seen)); in gpio_keys_polled_poll()
94 memset(bdev->abs_axis_seen, 0, sizeof(bdev->abs_axis_seen)); in gpio_keys_polled_poll()
97 struct gpio_keys_button_data *bdata = &bdev->data[i]; in gpio_keys_polled_poll()
110 if (!test_bit(i, bdev->rel_axis_seen)) in gpio_keys_polled_poll()
115 if (!test_bit(i, bdev->abs_axis_seen)) in gpio_keys_polled_poll()
124 struct gpio_keys_polled_dev *bdev = input_get_drvdata(input); in gpio_keys_polled_open() local
125 const struct gpio_keys_platform_data *pdata = bdev->pdata; in gpio_keys_polled_open()
128 pdata->enable(bdev->dev); in gpio_keys_polled_open()
135 struct gpio_keys_polled_dev *bdev = input_get_drvdata(input); in gpio_keys_polled_close() local
136 const struct gpio_keys_platform_data *pdata = bdev->pdata; in gpio_keys_polled_close()
139 pdata->disable(bdev->dev); in gpio_keys_polled_close()
233 struct gpio_keys_polled_dev *bdev; in gpio_keys_polled_probe() local
249 bdev = devm_kzalloc(dev, struct_size(bdev, data, pdata->nbuttons), in gpio_keys_polled_probe()
251 if (!bdev) { in gpio_keys_polled_probe()
262 input_set_drvdata(input, bdev); in gpio_keys_polled_probe()
281 struct gpio_keys_button_data *bdata = &bdev->data[i]; in gpio_keys_polled_probe()
346 bdev->input = input; in gpio_keys_polled_probe()
347 bdev->dev = dev; in gpio_keys_polled_probe()
348 bdev->pdata = pdata; in gpio_keys_polled_probe()
368 &bdev->data[i]); in gpio_keys_polled_probe()