Lines Matching refs:pKbd

60     KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
61 BsdKbdPrivPtr priv = (BsdKbdPrivPtr) pKbd->private;
63 if (pKbd->isConsole) {
64 switch (pKbd->consType) {
84 KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
98 switch (pKbd->consType) {
121 KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
124 switch (pKbd->consType) {
159 KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
161 BsdKbdPrivPtr priv = (BsdKbdPrivPtr) pKbd->private;
168 if (pKbd->isConsole) {
169 switch (pKbd->consType) {
195 switch (pKbd->consType) {
199 if (pKbd->CustomKeycodes)
223 switch (pKbd->consType) {
226 if ((pKbd->wsKbdDev[0] != 0) && (pInfo->fd == -1)) {
227 xf86Msg(X_INFO, "opening %s\n", pKbd->wsKbdDev);
228 pInfo->fd = open(pKbd->wsKbdDev, O_RDONLY | O_NONBLOCK | O_EXCL);
230 xf86Msg(X_ERROR, "cannot open \"%s\"\n", pKbd->wsKbdDev);
246 KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
247 BsdKbdPrivPtr priv = (BsdKbdPrivPtr) pKbd->private;
252 if (pKbd->isConsole) {
253 switch (pKbd->consType) {
274 switch (pKbd->consType) {
277 if ((pKbd->wsKbdDev[0] != 0) && (pInfo->fd != -1)) {
278 xf86Msg(X_INFO, "closing %s\n", pKbd->wsKbdDev);
293 KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
299 switch (pKbd->consType) {
333 KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
338 pKbd->PostEvent(pInfo, rBuf[i] & 0x7f,
348 KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
360 pKbd->PostEvent(pInfo, (unsigned int)(events[i].value),
378 KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
414 pKbd->isConsole = TRUE;
415 pKbd->consType = xf86Info.consType;
416 pKbd->wsKbdDev[0] = 0;
424 pKbd->isConsole = FALSE;
425 strncpy(pKbd->wsKbdDev, s, 256);
426 pKbd->consType = xf86Info.consType;
432 pKbd->consType = WSCONS;
436 if (ioctl(pInfo->fd, WSKBDIO_GTYPE, &(pKbd->wsKbdType)) == -1) {
441 switch (pKbd->wsKbdType) {
453 pKbd->wsKbdType = WSKBD_TYPE_USB;
499 pInfo->name, pKbd->wsKbdType);
511 KbdDevPtr pKbd = pInfo->private;
513 pKbd->KbdInit = KbdInit;
514 pKbd->KbdOn = KbdOn;
515 pKbd->KbdOff = KbdOff;
516 pKbd->Bell = SoundBell;
517 pKbd->SetLeds = SetKbdLeds;
518 pKbd->GetLeds = GetKbdLeds;
520 pKbd->KbdGetMapping = KbdGetMappingFromWsksym;
522 pKbd->KbdGetMapping = KbdGetMapping;
525 pKbd->RemapScanCode = NULL;
527 pKbd->OpenKeyboard = OpenKeyboard;
529 pKbd->private = calloc(sizeof(BsdKbdPrivRec), 1);
530 if (pKbd->private == NULL) {