capdev 83 drivers/input/misc/atmel_captouch.c static int atmel_read(struct atmel_captouch_device *capdev, capdev 86 drivers/input/misc/atmel_captouch.c struct i2c_client *client = capdev->client; capdev 91 drivers/input/misc/atmel_captouch.c if (len > sizeof(capdev->xfer_buf) - 2) capdev 94 drivers/input/misc/atmel_captouch.c capdev->xfer_buf[0] = reg; capdev 95 drivers/input/misc/atmel_captouch.c capdev->xfer_buf[1] = len; capdev 99 drivers/input/misc/atmel_captouch.c msg[0].buf = capdev->xfer_buf; capdev 104 drivers/input/misc/atmel_captouch.c msg[1].buf = capdev->xfer_buf; capdev 111 drivers/input/misc/atmel_captouch.c if (capdev->xfer_buf[0] != reg) { capdev 114 drivers/input/misc/atmel_captouch.c capdev->xfer_buf[0], reg); capdev 118 drivers/input/misc/atmel_captouch.c memcpy(data, &capdev->xfer_buf[2], len); capdev 130 drivers/input/misc/atmel_captouch.c struct atmel_captouch_device *capdev = data; capdev 131 drivers/input/misc/atmel_captouch.c struct device *dev = &capdev->client->dev; capdev 137 drivers/input/misc/atmel_captouch.c error = atmel_read(capdev, REG_KEY_STATE, &new_btn, 1); capdev 145 drivers/input/misc/atmel_captouch.c changed_btn = new_btn ^ capdev->prev_btn; capdev 146 drivers/input/misc/atmel_captouch.c capdev->prev_btn = new_btn; capdev 148 drivers/input/misc/atmel_captouch.c for (i = 0; i < capdev->num_btn; i++) { capdev 150 drivers/input/misc/atmel_captouch.c input_report_key(capdev->input, capdev 151 drivers/input/misc/atmel_captouch.c capdev->keycodes[i], capdev 155 drivers/input/misc/atmel_captouch.c input_sync(capdev->input); capdev 167 drivers/input/misc/atmel_captouch.c struct atmel_captouch_device *capdev; capdev 181 drivers/input/misc/atmel_captouch.c capdev = devm_kzalloc(dev, sizeof(*capdev), GFP_KERNEL); capdev 182 drivers/input/misc/atmel_captouch.c if (!capdev) capdev 185 drivers/input/misc/atmel_captouch.c capdev->client = client; capdev 187 drivers/input/misc/atmel_captouch.c err = atmel_read(capdev, REG_KEY_STATE, capdev 188 drivers/input/misc/atmel_captouch.c &capdev->prev_btn, sizeof(capdev->prev_btn)); capdev 194 drivers/input/misc/atmel_captouch.c capdev->input = devm_input_allocate_device(dev); capdev 195 drivers/input/misc/atmel_captouch.c if (!capdev->input) { capdev 200 drivers/input/misc/atmel_captouch.c capdev->input->id.bustype = BUS_I2C; capdev 201 drivers/input/misc/atmel_captouch.c capdev->input->id.product = 0x880A; capdev 202 drivers/input/misc/atmel_captouch.c capdev->input->id.version = 0; capdev 203 drivers/input/misc/atmel_captouch.c capdev->input->name = "ATMegaXX Capacitive Button Controller"; capdev 204 drivers/input/misc/atmel_captouch.c __set_bit(EV_KEY, capdev->input->evbit); capdev 213 drivers/input/misc/atmel_captouch.c __set_bit(EV_REP, capdev->input->evbit); capdev 215 drivers/input/misc/atmel_captouch.c capdev->num_btn = of_property_count_u32_elems(node, "linux,keymap"); capdev 216 drivers/input/misc/atmel_captouch.c if (capdev->num_btn > MAX_NUM_OF_BUTTONS) capdev 217 drivers/input/misc/atmel_captouch.c capdev->num_btn = MAX_NUM_OF_BUTTONS; capdev 220 drivers/input/misc/atmel_captouch.c capdev->keycodes, capdev 221 drivers/input/misc/atmel_captouch.c capdev->num_btn); capdev 228 drivers/input/misc/atmel_captouch.c for (i = 0; i < capdev->num_btn; i++) capdev 229 drivers/input/misc/atmel_captouch.c __set_bit(capdev->keycodes[i], capdev->input->keybit); capdev 231 drivers/input/misc/atmel_captouch.c capdev->input->keycode = capdev->keycodes; capdev 232 drivers/input/misc/atmel_captouch.c capdev->input->keycodesize = sizeof(capdev->keycodes[0]); capdev 233 drivers/input/misc/atmel_captouch.c capdev->input->keycodemax = capdev->num_btn; capdev 235 drivers/input/misc/atmel_captouch.c err = input_register_device(capdev->input); capdev 242 drivers/input/misc/atmel_captouch.c "atmel_captouch", capdev); capdev 32 drivers/staging/greybus/Documentation/firmware/authenticate.c char *capdev; capdev 41 drivers/staging/greybus/Documentation/firmware/authenticate.c capdev = argv[1]; capdev 43 drivers/staging/greybus/Documentation/firmware/authenticate.c printf("Opening %s authentication device\n", capdev); capdev 45 drivers/staging/greybus/Documentation/firmware/authenticate.c fd = open(capdev, O_RDWR); capdev 47 drivers/staging/greybus/Documentation/firmware/authenticate.c printf("Failed to open: %s\n", capdev); capdev 56 drivers/staging/greybus/Documentation/firmware/authenticate.c printf("Failed to get UID: %s (%d)\n", capdev, ret); capdev 68 drivers/staging/greybus/Documentation/firmware/authenticate.c printf("Failed to get IMS certificate: %s (%d)\n", capdev, ret); capdev 82 drivers/staging/greybus/Documentation/firmware/authenticate.c printf("Failed to authenticate module: %s (%d)\n", capdev, ret);