Lines Matching defs:hdp
682 static int hpet_is_known(struct hpet_data *hdp)
687 if (hpetp->hp_hpet_phys == hdp->hd_phys_address)
790 int hpet_alloc(struct hpet_data *hdp)
808 if (hpet_is_known(hdp)) {
814 siz = sizeof(struct hpets) + ((hdp->hd_nirqs - 1) *
823 hpetp->hp_hpet = hdp->hd_address;
824 hpetp->hp_hpet_phys = hdp->hd_phys_address;
826 hpetp->hp_ntimer = hdp->hd_nirqs;
828 for (i = 0; i < hdp->hd_nirqs; i++)
829 hpetp->hp_dev[i].hd_hdwirq = hdp->hd_irq[i];
859 hpetp->hp_which, hdp->hd_phys_address,
862 printk("%s %d", i > 0 ? "," : "", hdp->hd_irq[i]);
893 if (hdp->hd_state & (1 << i)) {
921 struct hpet_data *hdp;
925 hdp = data;
930 hdp->hd_phys_address = addr.minimum;
931 hdp->hd_address = ioremap(addr.minimum, addr.address_length);
933 if (hpet_is_known(hdp)) {
934 iounmap(hdp->hd_address);
944 hdp->hd_phys_address = fixmem32->address;
945 hdp->hd_address = ioremap(fixmem32->address,
948 if (hpet_is_known(hdp)) {
949 iounmap(hdp->hd_address);
964 hdp->hd_irq[hdp->hd_nirqs] = irq;
965 hdp->hd_nirqs++;