Lines Matching defs:device
42 static KbdintDevice *device;
57 device = devices[0]; /* we always use the 1st device for protocol 1 */
58 if (device == NULL)
60 if ((authctxt->kbdintctxt = device->init_ctx(authctxt)) == NULL)
62 if (device->query(authctxt->kbdintctxt, &name, &info,
64 device->free_ctx(authctxt->kbdintctxt);
87 if (device == NULL)
92 switch (device->respond(authctxt->kbdintctxt, 1, resp)) {
97 if ((device->query(authctxt->kbdintctxt, &name, &info,
101 device->respond(authctxt->kbdintctxt, 0, resp) == 0)
112 device->free_ctx(authctxt->kbdintctxt);
120 device->free_ctx(authctxt->kbdintctxt);