hp_sdc 111 drivers/input/serio/hp_sdc.c static hp_i8042_sdc hp_sdc; /* All driver state is kept in here. */ hp_sdc 119 drivers/input/serio/hp_sdc.c write_lock_irqsave(&hp_sdc.ibf_lock, flags); hp_sdc 120 drivers/input/serio/hp_sdc.c status = sdc_readb(hp_sdc.status_io); hp_sdc 122 drivers/input/serio/hp_sdc.c hp_sdc.ibf = 0; hp_sdc 123 drivers/input/serio/hp_sdc.c write_unlock_irqrestore(&hp_sdc.ibf_lock, flags); hp_sdc 130 drivers/input/serio/hp_sdc.c return sdc_readb(hp_sdc.data_io); hp_sdc 137 drivers/input/serio/hp_sdc.c write_lock_irqsave(&hp_sdc.ibf_lock, flags); hp_sdc 138 drivers/input/serio/hp_sdc.c hp_sdc.ibf = 1; hp_sdc 140 drivers/input/serio/hp_sdc.c hp_sdc.wi = 0xff; hp_sdc 141 drivers/input/serio/hp_sdc.c sdc_writeb(val, hp_sdc.status_io); hp_sdc 142 drivers/input/serio/hp_sdc.c write_unlock_irqrestore(&hp_sdc.ibf_lock, flags); hp_sdc 149 drivers/input/serio/hp_sdc.c write_lock_irqsave(&hp_sdc.ibf_lock, flags); hp_sdc 150 drivers/input/serio/hp_sdc.c hp_sdc.ibf = 1; hp_sdc 151 drivers/input/serio/hp_sdc.c sdc_writeb(val, hp_sdc.data_io); hp_sdc 152 drivers/input/serio/hp_sdc.c write_unlock_irqrestore(&hp_sdc.ibf_lock, flags); hp_sdc 164 drivers/input/serio/hp_sdc.c lock = &hp_sdc.ibf_lock; hp_sdc 167 drivers/input/serio/hp_sdc.c if (!hp_sdc.ibf) { hp_sdc 173 drivers/input/serio/hp_sdc.c while (sdc_readb(hp_sdc.status_io) & HP_SDC_STATUS_IBF) hp_sdc 175 drivers/input/serio/hp_sdc.c hp_sdc.ibf = 0; hp_sdc 185 drivers/input/serio/hp_sdc.c read_lock(&hp_sdc.rtq_lock); hp_sdc 186 drivers/input/serio/hp_sdc.c if (hp_sdc.rcurr < 0) { hp_sdc 187 drivers/input/serio/hp_sdc.c read_unlock(&hp_sdc.rtq_lock); hp_sdc 190 drivers/input/serio/hp_sdc.c curr = hp_sdc.tq[hp_sdc.rcurr]; hp_sdc 191 drivers/input/serio/hp_sdc.c read_unlock(&hp_sdc.rtq_lock); hp_sdc 195 drivers/input/serio/hp_sdc.c hp_sdc.rqty -= 2; hp_sdc 196 drivers/input/serio/hp_sdc.c hp_sdc.rtime = ktime_get(); hp_sdc 198 drivers/input/serio/hp_sdc.c if (hp_sdc.rqty <= 0) { hp_sdc 211 drivers/input/serio/hp_sdc.c write_lock(&hp_sdc.rtq_lock); hp_sdc 212 drivers/input/serio/hp_sdc.c hp_sdc.rcurr = -1; hp_sdc 213 drivers/input/serio/hp_sdc.c hp_sdc.rqty = 0; hp_sdc 214 drivers/input/serio/hp_sdc.c write_unlock(&hp_sdc.rtq_lock); hp_sdc 215 drivers/input/serio/hp_sdc.c tasklet_schedule(&hp_sdc.task); hp_sdc 238 drivers/input/serio/hp_sdc.c read_lock(&hp_sdc.hook_lock); hp_sdc 239 drivers/input/serio/hp_sdc.c if (hp_sdc.timer != NULL) hp_sdc 240 drivers/input/serio/hp_sdc.c hp_sdc.timer(irq, dev_id, status, data); hp_sdc 241 drivers/input/serio/hp_sdc.c read_unlock(&hp_sdc.hook_lock); hp_sdc 250 drivers/input/serio/hp_sdc.c read_lock(&hp_sdc.hook_lock); hp_sdc 251 drivers/input/serio/hp_sdc.c if (hp_sdc.hil != NULL) hp_sdc 252 drivers/input/serio/hp_sdc.c hp_sdc.hil(irq, dev_id, status, data); hp_sdc 253 drivers/input/serio/hp_sdc.c read_unlock(&hp_sdc.hook_lock); hp_sdc 257 drivers/input/serio/hp_sdc.c read_lock(&hp_sdc.hook_lock); hp_sdc 258 drivers/input/serio/hp_sdc.c if (hp_sdc.pup != NULL) hp_sdc 259 drivers/input/serio/hp_sdc.c hp_sdc.pup(irq, dev_id, status, data); hp_sdc 262 drivers/input/serio/hp_sdc.c read_unlock(&hp_sdc.hook_lock); hp_sdc 266 drivers/input/serio/hp_sdc.c read_lock(&hp_sdc.hook_lock); hp_sdc 267 drivers/input/serio/hp_sdc.c if (hp_sdc.cooked != NULL) hp_sdc 268 drivers/input/serio/hp_sdc.c hp_sdc.cooked(irq, dev_id, status, data); hp_sdc 269 drivers/input/serio/hp_sdc.c read_unlock(&hp_sdc.hook_lock); hp_sdc 286 drivers/input/serio/hp_sdc.c read_lock(&hp_sdc.hook_lock); hp_sdc 287 drivers/input/serio/hp_sdc.c if (hp_sdc.timer != NULL) hp_sdc 288 drivers/input/serio/hp_sdc.c hp_sdc.timer(irq, dev_id, status, 0); hp_sdc 289 drivers/input/serio/hp_sdc.c read_unlock(&hp_sdc.hook_lock); hp_sdc 306 drivers/input/serio/hp_sdc.c write_lock_irq(&hp_sdc.rtq_lock); hp_sdc 308 drivers/input/serio/hp_sdc.c if (hp_sdc.rcurr >= 0) { hp_sdc 311 drivers/input/serio/hp_sdc.c if (ktime_after(now, ktime_add_us(hp_sdc.rtime, hp_sdc 316 drivers/input/serio/hp_sdc.c curr = hp_sdc.tq[hp_sdc.rcurr]; hp_sdc 322 drivers/input/serio/hp_sdc.c ktime_us_delta(now, hp_sdc.rtime)); hp_sdc 323 drivers/input/serio/hp_sdc.c curr->idx += hp_sdc.rqty; hp_sdc 324 drivers/input/serio/hp_sdc.c hp_sdc.rqty = 0; hp_sdc 341 drivers/input/serio/hp_sdc.c hp_sdc.rcurr = -1; hp_sdc 344 drivers/input/serio/hp_sdc.c write_unlock_irq(&hp_sdc.rtq_lock); hp_sdc 356 drivers/input/serio/hp_sdc.c write_lock(&hp_sdc.lock); hp_sdc 360 drivers/input/serio/hp_sdc.c if (hp_sdc.ibf) { hp_sdc 362 drivers/input/serio/hp_sdc.c if (hp_sdc.ibf) hp_sdc 368 drivers/input/serio/hp_sdc.c if (hp_sdc.wcurr < 0) hp_sdc 369 drivers/input/serio/hp_sdc.c hp_sdc.wcurr = 0; hp_sdc 370 drivers/input/serio/hp_sdc.c read_lock_irq(&hp_sdc.rtq_lock); hp_sdc 371 drivers/input/serio/hp_sdc.c if (hp_sdc.rcurr == hp_sdc.wcurr) hp_sdc 372 drivers/input/serio/hp_sdc.c hp_sdc.wcurr++; hp_sdc 373 drivers/input/serio/hp_sdc.c read_unlock_irq(&hp_sdc.rtq_lock); hp_sdc 374 drivers/input/serio/hp_sdc.c if (hp_sdc.wcurr >= HP_SDC_QUEUE_LEN) hp_sdc 375 drivers/input/serio/hp_sdc.c hp_sdc.wcurr = 0; hp_sdc 376 drivers/input/serio/hp_sdc.c curridx = hp_sdc.wcurr; hp_sdc 378 drivers/input/serio/hp_sdc.c if (hp_sdc.tq[curridx] != NULL) hp_sdc 381 drivers/input/serio/hp_sdc.c while (++curridx != hp_sdc.wcurr) { hp_sdc 386 drivers/input/serio/hp_sdc.c read_lock_irq(&hp_sdc.rtq_lock); hp_sdc 387 drivers/input/serio/hp_sdc.c if (hp_sdc.rcurr == curridx) { hp_sdc 388 drivers/input/serio/hp_sdc.c read_unlock_irq(&hp_sdc.rtq_lock); hp_sdc 391 drivers/input/serio/hp_sdc.c read_unlock_irq(&hp_sdc.rtq_lock); hp_sdc 392 drivers/input/serio/hp_sdc.c if (hp_sdc.tq[curridx] != NULL) hp_sdc 395 drivers/input/serio/hp_sdc.c if (curridx == hp_sdc.wcurr) { /* There's nothing queued to do. */ hp_sdc 398 drivers/input/serio/hp_sdc.c hp_sdc.wcurr = curridx; hp_sdc 403 drivers/input/serio/hp_sdc.c if (hp_sdc.set_im) { hp_sdc 404 drivers/input/serio/hp_sdc.c hp_sdc_status_out8(hp_sdc.im | HP_SDC_CMD_SET_IM); hp_sdc 405 drivers/input/serio/hp_sdc.c hp_sdc.set_im = 0; hp_sdc 409 drivers/input/serio/hp_sdc.c if (hp_sdc.wcurr == -1) hp_sdc 412 drivers/input/serio/hp_sdc.c curr = hp_sdc.tq[curridx]; hp_sdc 416 drivers/input/serio/hp_sdc.c hp_sdc.tq[curridx] = NULL; hp_sdc 418 drivers/input/serio/hp_sdc.c hp_sdc.wcurr++; hp_sdc 419 drivers/input/serio/hp_sdc.c if (hp_sdc.wcurr >= HP_SDC_QUEUE_LEN) hp_sdc 420 drivers/input/serio/hp_sdc.c hp_sdc.wcurr = 0; hp_sdc 430 drivers/input/serio/hp_sdc.c hp_sdc.tq[curridx] = NULL; hp_sdc 432 drivers/input/serio/hp_sdc.c hp_sdc.wcurr++; hp_sdc 433 drivers/input/serio/hp_sdc.c if (hp_sdc.wcurr >= HP_SDC_QUEUE_LEN) hp_sdc 434 drivers/input/serio/hp_sdc.c hp_sdc.wcurr = 0; hp_sdc 486 drivers/input/serio/hp_sdc.c w7[0] = (mask & 1) ? curr->seq[++idx] : hp_sdc.r7[0]; hp_sdc 487 drivers/input/serio/hp_sdc.c w7[1] = (mask & 2) ? curr->seq[++idx] : hp_sdc.r7[1]; hp_sdc 488 drivers/input/serio/hp_sdc.c w7[2] = (mask & 4) ? curr->seq[++idx] : hp_sdc.r7[2]; hp_sdc 489 drivers/input/serio/hp_sdc.c w7[3] = (mask & 8) ? curr->seq[++idx] : hp_sdc.r7[3]; hp_sdc 491 drivers/input/serio/hp_sdc.c if (hp_sdc.wi > 0x73 || hp_sdc.wi < 0x70 || hp_sdc 492 drivers/input/serio/hp_sdc.c w7[hp_sdc.wi - 0x70] == hp_sdc.r7[hp_sdc.wi - 0x70]) { hp_sdc 496 drivers/input/serio/hp_sdc.c while (i < 4 && w7[i] == hp_sdc.r7[i]) hp_sdc 501 drivers/input/serio/hp_sdc.c hp_sdc.wi = 0x70 + i; hp_sdc 514 drivers/input/serio/hp_sdc.c hp_sdc_data_out8(w7[hp_sdc.wi - 0x70]); hp_sdc 515 drivers/input/serio/hp_sdc.c hp_sdc.r7[hp_sdc.wi - 0x70] = w7[hp_sdc.wi - 0x70]; hp_sdc 516 drivers/input/serio/hp_sdc.c hp_sdc.wi++; /* write index register autoincrements */ hp_sdc 520 drivers/input/serio/hp_sdc.c while ((i < 4) && w7[i] == hp_sdc.r7[i]) hp_sdc 533 drivers/input/serio/hp_sdc.c read_lock_irq(&hp_sdc.rtq_lock); hp_sdc 534 drivers/input/serio/hp_sdc.c if (hp_sdc.rcurr >= 0) { hp_sdc 535 drivers/input/serio/hp_sdc.c read_unlock_irq(&hp_sdc.rtq_lock); hp_sdc 538 drivers/input/serio/hp_sdc.c read_unlock_irq(&hp_sdc.rtq_lock); hp_sdc 550 drivers/input/serio/hp_sdc.c hp_sdc.rqty = curr->seq[curr->idx]; hp_sdc 551 drivers/input/serio/hp_sdc.c hp_sdc.rtime = ktime_get(); hp_sdc 554 drivers/input/serio/hp_sdc.c write_lock_irq(&hp_sdc.rtq_lock); hp_sdc 555 drivers/input/serio/hp_sdc.c hp_sdc.rcurr = curridx; hp_sdc 556 drivers/input/serio/hp_sdc.c write_unlock_irq(&hp_sdc.rtq_lock); hp_sdc 573 drivers/input/serio/hp_sdc.c hp_sdc.tq[curridx] = NULL; hp_sdc 579 drivers/input/serio/hp_sdc.c hp_sdc.wcurr++; hp_sdc 580 drivers/input/serio/hp_sdc.c if (hp_sdc.wcurr >= HP_SDC_QUEUE_LEN) hp_sdc 581 drivers/input/serio/hp_sdc.c hp_sdc.wcurr = 0; hp_sdc 586 drivers/input/serio/hp_sdc.c if (!hp_sdc.ibf && limit++ < 20) hp_sdc 590 drivers/input/serio/hp_sdc.c if (hp_sdc.wcurr >= 0) hp_sdc 591 drivers/input/serio/hp_sdc.c tasklet_schedule(&hp_sdc.task); hp_sdc 592 drivers/input/serio/hp_sdc.c write_unlock(&hp_sdc.lock); hp_sdc 609 drivers/input/serio/hp_sdc.c if (hp_sdc.tq[i] == this) hp_sdc 617 drivers/input/serio/hp_sdc.c if (hp_sdc.tq[i] == NULL) { hp_sdc 618 drivers/input/serio/hp_sdc.c hp_sdc.tq[i] = this; hp_sdc 619 drivers/input/serio/hp_sdc.c tasklet_schedule(&hp_sdc.task); hp_sdc 635 drivers/input/serio/hp_sdc.c write_lock_irqsave(&hp_sdc.lock, flags); hp_sdc 637 drivers/input/serio/hp_sdc.c write_unlock_irqrestore(&hp_sdc.lock,flags); hp_sdc 647 drivers/input/serio/hp_sdc.c write_lock_irqsave(&hp_sdc.lock, flags); hp_sdc 652 drivers/input/serio/hp_sdc.c if (hp_sdc.tq[i] == this) hp_sdc 653 drivers/input/serio/hp_sdc.c hp_sdc.tq[i] = NULL; hp_sdc 655 drivers/input/serio/hp_sdc.c write_unlock_irqrestore(&hp_sdc.lock, flags); hp_sdc 664 drivers/input/serio/hp_sdc.c if (callback == NULL || hp_sdc.dev == NULL) hp_sdc 667 drivers/input/serio/hp_sdc.c write_lock_irq(&hp_sdc.hook_lock); hp_sdc 668 drivers/input/serio/hp_sdc.c if (hp_sdc.timer != NULL) { hp_sdc 669 drivers/input/serio/hp_sdc.c write_unlock_irq(&hp_sdc.hook_lock); hp_sdc 673 drivers/input/serio/hp_sdc.c hp_sdc.timer = callback; hp_sdc 675 drivers/input/serio/hp_sdc.c hp_sdc.im &= ~HP_SDC_IM_FH; hp_sdc 676 drivers/input/serio/hp_sdc.c hp_sdc.im &= ~HP_SDC_IM_PT; hp_sdc 677 drivers/input/serio/hp_sdc.c hp_sdc.im &= ~HP_SDC_IM_TIMERS; hp_sdc 678 drivers/input/serio/hp_sdc.c hp_sdc.set_im = 1; hp_sdc 679 drivers/input/serio/hp_sdc.c write_unlock_irq(&hp_sdc.hook_lock); hp_sdc 681 drivers/input/serio/hp_sdc.c tasklet_schedule(&hp_sdc.task); hp_sdc 688 drivers/input/serio/hp_sdc.c if (callback == NULL || hp_sdc.dev == NULL) hp_sdc 691 drivers/input/serio/hp_sdc.c write_lock_irq(&hp_sdc.hook_lock); hp_sdc 692 drivers/input/serio/hp_sdc.c if (hp_sdc.hil != NULL) { hp_sdc 693 drivers/input/serio/hp_sdc.c write_unlock_irq(&hp_sdc.hook_lock); hp_sdc 697 drivers/input/serio/hp_sdc.c hp_sdc.hil = callback; hp_sdc 698 drivers/input/serio/hp_sdc.c hp_sdc.im &= ~(HP_SDC_IM_HIL | HP_SDC_IM_RESET); hp_sdc 699 drivers/input/serio/hp_sdc.c hp_sdc.set_im = 1; hp_sdc 700 drivers/input/serio/hp_sdc.c write_unlock_irq(&hp_sdc.hook_lock); hp_sdc 702 drivers/input/serio/hp_sdc.c tasklet_schedule(&hp_sdc.task); hp_sdc 709 drivers/input/serio/hp_sdc.c if (callback == NULL || hp_sdc.dev == NULL) hp_sdc 712 drivers/input/serio/hp_sdc.c write_lock_irq(&hp_sdc.hook_lock); hp_sdc 713 drivers/input/serio/hp_sdc.c if (hp_sdc.cooked != NULL) { hp_sdc 714 drivers/input/serio/hp_sdc.c write_unlock_irq(&hp_sdc.hook_lock); hp_sdc 719 drivers/input/serio/hp_sdc.c hp_sdc.cooked = callback; hp_sdc 720 drivers/input/serio/hp_sdc.c hp_sdc.im &= ~(HP_SDC_IM_HIL | HP_SDC_IM_RESET); hp_sdc 721 drivers/input/serio/hp_sdc.c hp_sdc.set_im = 1; hp_sdc 722 drivers/input/serio/hp_sdc.c write_unlock_irq(&hp_sdc.hook_lock); hp_sdc 724 drivers/input/serio/hp_sdc.c tasklet_schedule(&hp_sdc.task); hp_sdc 731 drivers/input/serio/hp_sdc.c write_lock_irq(&hp_sdc.hook_lock); hp_sdc 732 drivers/input/serio/hp_sdc.c if ((callback != hp_sdc.timer) || hp_sdc 733 drivers/input/serio/hp_sdc.c (hp_sdc.timer == NULL)) { hp_sdc 734 drivers/input/serio/hp_sdc.c write_unlock_irq(&hp_sdc.hook_lock); hp_sdc 739 drivers/input/serio/hp_sdc.c hp_sdc.timer = NULL; hp_sdc 740 drivers/input/serio/hp_sdc.c hp_sdc.im |= HP_SDC_IM_TIMERS; hp_sdc 741 drivers/input/serio/hp_sdc.c hp_sdc.im |= HP_SDC_IM_FH; hp_sdc 742 drivers/input/serio/hp_sdc.c hp_sdc.im |= HP_SDC_IM_PT; hp_sdc 743 drivers/input/serio/hp_sdc.c hp_sdc.set_im = 1; hp_sdc 744 drivers/input/serio/hp_sdc.c write_unlock_irq(&hp_sdc.hook_lock); hp_sdc 745 drivers/input/serio/hp_sdc.c tasklet_schedule(&hp_sdc.task); hp_sdc 752 drivers/input/serio/hp_sdc.c write_lock_irq(&hp_sdc.hook_lock); hp_sdc 753 drivers/input/serio/hp_sdc.c if ((callback != hp_sdc.hil) || hp_sdc 754 drivers/input/serio/hp_sdc.c (hp_sdc.hil == NULL)) { hp_sdc 755 drivers/input/serio/hp_sdc.c write_unlock_irq(&hp_sdc.hook_lock); hp_sdc 759 drivers/input/serio/hp_sdc.c hp_sdc.hil = NULL; hp_sdc 761 drivers/input/serio/hp_sdc.c if(hp_sdc.cooked == NULL) { hp_sdc 762 drivers/input/serio/hp_sdc.c hp_sdc.im |= (HP_SDC_IM_HIL | HP_SDC_IM_RESET); hp_sdc 763 drivers/input/serio/hp_sdc.c hp_sdc.set_im = 1; hp_sdc 765 drivers/input/serio/hp_sdc.c write_unlock_irq(&hp_sdc.hook_lock); hp_sdc 766 drivers/input/serio/hp_sdc.c tasklet_schedule(&hp_sdc.task); hp_sdc 773 drivers/input/serio/hp_sdc.c write_lock_irq(&hp_sdc.hook_lock); hp_sdc 774 drivers/input/serio/hp_sdc.c if ((callback != hp_sdc.cooked) || hp_sdc 775 drivers/input/serio/hp_sdc.c (hp_sdc.cooked == NULL)) { hp_sdc 776 drivers/input/serio/hp_sdc.c write_unlock_irq(&hp_sdc.hook_lock); hp_sdc 780 drivers/input/serio/hp_sdc.c hp_sdc.cooked = NULL; hp_sdc 782 drivers/input/serio/hp_sdc.c if(hp_sdc.hil == NULL) { hp_sdc 783 drivers/input/serio/hp_sdc.c hp_sdc.im |= (HP_SDC_IM_HIL | HP_SDC_IM_RESET); hp_sdc 784 drivers/input/serio/hp_sdc.c hp_sdc.set_im = 1; hp_sdc 786 drivers/input/serio/hp_sdc.c write_unlock_irq(&hp_sdc.hook_lock); hp_sdc 787 drivers/input/serio/hp_sdc.c tasklet_schedule(&hp_sdc.task); hp_sdc 796 drivers/input/serio/hp_sdc.c tasklet_schedule(&hp_sdc.task); hp_sdc 798 drivers/input/serio/hp_sdc.c mod_timer(&hp_sdc.kicker, jiffies + HZ); hp_sdc 835 drivers/input/serio/hp_sdc.c rwlock_init(&hp_sdc.lock); hp_sdc 836 drivers/input/serio/hp_sdc.c rwlock_init(&hp_sdc.ibf_lock); hp_sdc 837 drivers/input/serio/hp_sdc.c rwlock_init(&hp_sdc.rtq_lock); hp_sdc 838 drivers/input/serio/hp_sdc.c rwlock_init(&hp_sdc.hook_lock); hp_sdc 840 drivers/input/serio/hp_sdc.c hp_sdc.timer = NULL; hp_sdc 841 drivers/input/serio/hp_sdc.c hp_sdc.hil = NULL; hp_sdc 842 drivers/input/serio/hp_sdc.c hp_sdc.pup = NULL; hp_sdc 843 drivers/input/serio/hp_sdc.c hp_sdc.cooked = NULL; hp_sdc 844 drivers/input/serio/hp_sdc.c hp_sdc.im = HP_SDC_IM_MASK; /* Mask maskable irqs */ hp_sdc 845 drivers/input/serio/hp_sdc.c hp_sdc.set_im = 1; hp_sdc 846 drivers/input/serio/hp_sdc.c hp_sdc.wi = 0xff; hp_sdc 847 drivers/input/serio/hp_sdc.c hp_sdc.r7[0] = 0xff; hp_sdc 848 drivers/input/serio/hp_sdc.c hp_sdc.r7[1] = 0xff; hp_sdc 849 drivers/input/serio/hp_sdc.c hp_sdc.r7[2] = 0xff; hp_sdc 850 drivers/input/serio/hp_sdc.c hp_sdc.r7[3] = 0xff; hp_sdc 851 drivers/input/serio/hp_sdc.c hp_sdc.ibf = 1; hp_sdc 853 drivers/input/serio/hp_sdc.c memset(&hp_sdc.tq, 0, sizeof(hp_sdc.tq)); hp_sdc 855 drivers/input/serio/hp_sdc.c hp_sdc.wcurr = -1; hp_sdc 856 drivers/input/serio/hp_sdc.c hp_sdc.rcurr = -1; hp_sdc 857 drivers/input/serio/hp_sdc.c hp_sdc.rqty = 0; hp_sdc 859 drivers/input/serio/hp_sdc.c hp_sdc.dev_err = -ENODEV; hp_sdc 862 drivers/input/serio/hp_sdc.c if (!hp_sdc.base_io) hp_sdc 866 drivers/input/serio/hp_sdc.c if (!hp_sdc.irq) hp_sdc 869 drivers/input/serio/hp_sdc.c hp_sdc.dev_err = -EBUSY; hp_sdc 873 drivers/input/serio/hp_sdc.c if (request_region(hp_sdc.data_io, 2, hp_sdc_driver.name)) hp_sdc 878 drivers/input/serio/hp_sdc.c if (request_irq(hp_sdc.irq, &hp_sdc_isr, IRQF_SHARED, hp_sdc 879 drivers/input/serio/hp_sdc.c "HP SDC", &hp_sdc)) hp_sdc 883 drivers/input/serio/hp_sdc.c if (request_irq(hp_sdc.nmi, &hp_sdc_nmisr, IRQF_SHARED, hp_sdc 884 drivers/input/serio/hp_sdc.c "HP SDC NMI", &hp_sdc)) hp_sdc 888 drivers/input/serio/hp_sdc.c hp_sdc.base_io, hp_sdc.irq, hp_sdc.nmi); hp_sdc 893 drivers/input/serio/hp_sdc.c tasklet_init(&hp_sdc.task, hp_sdc_tasklet, 0); hp_sdc 909 drivers/input/serio/hp_sdc.c timer_setup(&hp_sdc.kicker, hp_sdc_kicker, 0); hp_sdc 910 drivers/input/serio/hp_sdc.c hp_sdc.kicker.expires = jiffies + HZ; hp_sdc 911 drivers/input/serio/hp_sdc.c add_timer(&hp_sdc.kicker); hp_sdc 913 drivers/input/serio/hp_sdc.c hp_sdc.dev_err = 0; hp_sdc 916 drivers/input/serio/hp_sdc.c free_irq(hp_sdc.irq, &hp_sdc); hp_sdc 918 drivers/input/serio/hp_sdc.c release_region(hp_sdc.data_io, 2); hp_sdc 921 drivers/input/serio/hp_sdc.c errstr, (void *)hp_sdc.base_io, hp_sdc.irq, hp_sdc.nmi); hp_sdc 922 drivers/input/serio/hp_sdc.c hp_sdc.dev = NULL; hp_sdc 924 drivers/input/serio/hp_sdc.c return hp_sdc.dev_err; hp_sdc 940 drivers/input/serio/hp_sdc.c if (hp_sdc.dev != NULL) hp_sdc 943 drivers/input/serio/hp_sdc.c hp_sdc.dev = d; hp_sdc 944 drivers/input/serio/hp_sdc.c hp_sdc.irq = d->irq; hp_sdc 945 drivers/input/serio/hp_sdc.c hp_sdc.nmi = d->aux_irq; hp_sdc 946 drivers/input/serio/hp_sdc.c hp_sdc.base_io = d->hpa.start; hp_sdc 947 drivers/input/serio/hp_sdc.c hp_sdc.data_io = d->hpa.start + 0x800; hp_sdc 948 drivers/input/serio/hp_sdc.c hp_sdc.status_io = d->hpa.start + 0x801; hp_sdc 967 drivers/input/serio/hp_sdc.c if (!hp_sdc.dev) hp_sdc 970 drivers/input/serio/hp_sdc.c write_lock_irq(&hp_sdc.lock); hp_sdc 974 drivers/input/serio/hp_sdc.c sdc_writeb(HP_SDC_CMD_SET_IM | HP_SDC_IM_MASK, hp_sdc.status_io); hp_sdc 979 drivers/input/serio/hp_sdc.c free_irq(hp_sdc.nmi, &hp_sdc); hp_sdc 980 drivers/input/serio/hp_sdc.c free_irq(hp_sdc.irq, &hp_sdc); hp_sdc 981 drivers/input/serio/hp_sdc.c write_unlock_irq(&hp_sdc.lock); hp_sdc 983 drivers/input/serio/hp_sdc.c del_timer_sync(&hp_sdc.kicker); hp_sdc 985 drivers/input/serio/hp_sdc.c tasklet_kill(&hp_sdc.task); hp_sdc 1008 drivers/input/serio/hp_sdc.c hp_sdc.dev = NULL; hp_sdc 1009 drivers/input/serio/hp_sdc.c hp_sdc.dev_err = 0; hp_sdc 1019 drivers/input/serio/hp_sdc.c hp_sdc.irq = 1; hp_sdc 1020 drivers/input/serio/hp_sdc.c hp_sdc.nmi = 7; hp_sdc 1021 drivers/input/serio/hp_sdc.c hp_sdc.base_io = (unsigned long) 0xf0428000; hp_sdc 1022 drivers/input/serio/hp_sdc.c hp_sdc.data_io = (unsigned long) hp_sdc.base_io + 1; hp_sdc 1023 drivers/input/serio/hp_sdc.c hp_sdc.status_io = (unsigned long) hp_sdc.base_io + 3; hp_sdc 1024 drivers/input/serio/hp_sdc.c if (!probe_kernel_read(&i, (unsigned char *)hp_sdc.data_io, 1)) hp_sdc 1025 drivers/input/serio/hp_sdc.c hp_sdc.dev = (void *)1; hp_sdc 1026 drivers/input/serio/hp_sdc.c hp_sdc.dev_err = hp_sdc_init(); hp_sdc 1028 drivers/input/serio/hp_sdc.c if (hp_sdc.dev == NULL) { hp_sdc 1030 drivers/input/serio/hp_sdc.c return hp_sdc.dev_err; hp_sdc 1058 drivers/input/serio/hp_sdc.c hp_sdc.r11 = tq_init_seq[4]; hp_sdc 1059 drivers/input/serio/hp_sdc.c if (hp_sdc.r11 & HP_SDC_CFG_NEW) { hp_sdc 1073 drivers/input/serio/hp_sdc.c hp_sdc.r7e = tq_init_seq[4]; hp_sdc 1074 drivers/input/serio/hp_sdc.c HP_SDC_XTD_REV_STRINGS(hp_sdc.r7e & HP_SDC_XTD_REV, str) hp_sdc 1076 drivers/input/serio/hp_sdc.c if (hp_sdc.r7e & HP_SDC_XTD_BEEPER) hp_sdc 1078 drivers/input/serio/hp_sdc.c if (hp_sdc.r7e & HP_SDC_XTD_BBRTC) hp_sdc 1096 drivers/input/serio/hp_sdc.c (hp_sdc.r11 & HP_SDC_CFG_REV) ? "3300" : "2564/3087");