Lines Matching refs:hdp
732 static int hpet_is_known(struct hpet_data *hdp) in hpet_is_known() argument
737 if (hpetp->hp_hpet_phys == hdp->hd_phys_address) in hpet_is_known()
840 int hpet_alloc(struct hpet_data *hdp) in hpet_alloc() argument
858 if (hpet_is_known(hdp)) { in hpet_alloc()
864 siz = sizeof(struct hpets) + ((hdp->hd_nirqs - 1) * in hpet_alloc()
873 hpetp->hp_hpet = hdp->hd_address; in hpet_alloc()
874 hpetp->hp_hpet_phys = hdp->hd_phys_address; in hpet_alloc()
876 hpetp->hp_ntimer = hdp->hd_nirqs; in hpet_alloc()
878 for (i = 0; i < hdp->hd_nirqs; i++) in hpet_alloc()
879 hpetp->hp_dev[i].hd_hdwirq = hdp->hd_irq[i]; in hpet_alloc()
909 hpetp->hp_which, hdp->hd_phys_address, in hpet_alloc()
912 printk(KERN_CONT "%s %d", i > 0 ? "," : "", hdp->hd_irq[i]); in hpet_alloc()
943 if (hdp->hd_state & (1 << i)) { in hpet_alloc()
969 struct hpet_data *hdp; in hpet_resources() local
973 hdp = data; in hpet_resources()
978 hdp->hd_phys_address = addr.address.minimum; in hpet_resources()
979 hdp->hd_address = ioremap(addr.address.minimum, addr.address.address_length); in hpet_resources()
981 if (hpet_is_known(hdp)) { in hpet_resources()
982 iounmap(hdp->hd_address); in hpet_resources()
990 hdp->hd_phys_address = fixmem32->address; in hpet_resources()
991 hdp->hd_address = ioremap(fixmem32->address, in hpet_resources()
994 if (hpet_is_known(hdp)) { in hpet_resources()
995 iounmap(hdp->hd_address); in hpet_resources()
1005 if (hdp->hd_nirqs >= HPET_MAX_TIMERS) in hpet_resources()
1013 hdp->hd_irq[hdp->hd_nirqs] = irq; in hpet_resources()
1014 hdp->hd_nirqs++; in hpet_resources()