Lines Matching defs:pInfo

60 static int KbdPreInit(InputDriverPtr drv, InputInfoPtr pInfo, int flags);
64 static void PostKbdEvent(InputInfoPtr pInfo, unsigned int key, Bool down);
66 static void InitKBD(InputInfoPtr pInfo, Bool init);
67 static void UpdateLeds(InputInfoPtr pInfo);
136 KbdPreInit(InputDriverPtr drv, InputInfoPtr pInfo, int flags)
144 pInfo->type_name = XI_KEYBOARD;
145 pInfo->device_control = KbdProc;
150 pInfo->read_input = NULL;
151 pInfo->control_proc = NULL;
152 pInfo->switch_mode = NULL;
153 pInfo->fd = -1;
154 pInfo->dev = NULL;
157 xf86CollectInputOptions(pInfo, defaults);
158 xf86ProcessCommonOptions(pInfo, pInfo->options);
165 pInfo->private = pKbd;
168 if (!xf86OSKbdPreInit(pInfo)) {
173 if (!pKbd->OpenKeyboard(pInfo)) {
178 if ((s = xf86SetStrOption(pInfo->options, "XLeds", NULL))) {
194 xkb_rules = xf86SetStrOption(pInfo->options, "XkbRules", NULL);
195 xkb_model = xf86SetStrOption(pInfo->options, "XkbModel", NULL);
196 xkb_layout = xf86SetStrOption(pInfo->options, "XkbLayout", NULL);
197 xkb_variant = xf86SetStrOption(pInfo->options, "XkbVariant", NULL);
198 xkb_options = xf86SetStrOption(pInfo->options, "XkbOptions", NULL);
200 pKbd->CustomKeycodes = xf86SetBoolOption(pInfo->options, "CustomKeycodes",
210 InputInfoPtr pInfo = (InputInfoPtr) dev->public.devicePrivate;
211 KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
212 pKbd->Bell(pInfo, percent, ((KeybdCtrl*) ctrl)->bell_pitch,
217 UpdateLeds(InputInfoPtr pInfo)
219 KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
229 pKbd->SetLeds(pInfo, pKbd->leds);
236 InputInfoPtr pInfo = (InputInfoPtr) device->public.devicePrivate;
237 KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
261 pKbd->SetLeds(pInfo, pKbd->leds);
265 InitKBD(InputInfoPtr pInfo, Bool init)
267 KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
272 pKbd->keyLeds = pKbd->GetLeds(pInfo);
273 UpdateLeds(pInfo);
278 pKbd->keyLeds = pKbd->GetLeds(pInfo);
279 UpdateLeds(pInfo);
282 pKbd->PostEvent(pInfo, KEY_CapsLock, TRUE);
283 pKbd->PostEvent(pInfo, KEY_CapsLock, FALSE);
287 pKbd->PostEvent(pInfo, KEY_NumLock, TRUE);
288 pKbd->PostEvent(pInfo, KEY_NumLock, FALSE);
297 InputInfoPtr pInfo = device->public.devicePrivate;
298 KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
306 ret = pKbd->KbdInit(pInfo, what);
310 pKbd->KbdGetMapping(pInfo, &keySyms, modMap);
354 xf86CheckStrOption(pInfo->options, "Device", NULL);
366 InitKBD(pInfo, TRUE);
375 if ((ret = pKbd->KbdOn(pInfo, what)) != Success)
381 if (pInfo->fd >= 0) {
382 xf86FlushInput(pInfo->fd);
384 xf86AddEnabledDevice(pInfo);
386 AddEnabledDevice(pInfo->fd);
391 InitKBD(pInfo, FALSE);
400 if (pInfo->fd != -1) {
402 xf86RemoveEnabledDevice(pInfo);
404 RemoveEnabledDevice(pInfo->fd);
407 pKbd->KbdOff(pInfo, what);
416 pKbd->KbdOff(pInfo, what);
427 PostKbdEvent(InputInfoPtr pInfo, unsigned int scanCode, Bool down)
431 KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
433 DeviceIntPtr device = pInfo->dev;
448 if (pKbd->RemapScanCode(pInfo, (int*) &scanCode))