Lines Matching refs:hdp
692 static int hpet_is_known(struct hpet_data *hdp)
697 if (hpetp->hp_hpet_phys == hdp->hd_phys_address)
779 int hpet_alloc(struct hpet_data *hdp)
796 if (hpet_is_known(hdp)) {
802 hpetp = kzalloc(struct_size(hpetp, hp_dev, hdp->hd_nirqs),
809 hpetp->hp_hpet = hdp->hd_address;
810 hpetp->hp_hpet_phys = hdp->hd_phys_address;
812 hpetp->hp_ntimer = hdp->hd_nirqs;
814 for (i = 0; i < hdp->hd_nirqs; i++)
815 hpetp->hp_dev[i].hd_hdwirq = hdp->hd_irq[i];
845 hpetp->hp_which, hdp->hd_phys_address,
848 printk(KERN_CONT "%s %d", i > 0 ? "," : "", hdp->hd_irq[i]);
879 if (hdp->hd_state & (1 << i)) {
894 struct hpet_data *hdp;
898 hdp = data;
903 hdp->hd_phys_address = addr.address.minimum;
904 hdp->hd_address = ioremap(addr.address.minimum, addr.address.address_length);
905 if (!hdp->hd_address)
908 if (hpet_is_known(hdp)) {
909 iounmap(hdp->hd_address);
917 hdp->hd_phys_address = fixmem32->address;
918 hdp->hd_address = ioremap(fixmem32->address,
920 if (!hdp->hd_address)
923 if (hpet_is_known(hdp)) {
924 iounmap(hdp->hd_address);
934 if (hdp->hd_nirqs >= HPET_MAX_TIMERS)
943 hdp->hd_irq[hdp->hd_nirqs] = irq;
944 hdp->hd_nirqs++;