Lines Matching refs:hdp
733 static int hpet_is_known(struct hpet_data *hdp) in hpet_is_known() argument
738 if (hpetp->hp_hpet_phys == hdp->hd_phys_address) in hpet_is_known()
841 int hpet_alloc(struct hpet_data *hdp) in hpet_alloc() argument
859 if (hpet_is_known(hdp)) { in hpet_alloc()
865 siz = sizeof(struct hpets) + ((hdp->hd_nirqs - 1) * in hpet_alloc()
874 hpetp->hp_hpet = hdp->hd_address; in hpet_alloc()
875 hpetp->hp_hpet_phys = hdp->hd_phys_address; in hpet_alloc()
877 hpetp->hp_ntimer = hdp->hd_nirqs; in hpet_alloc()
879 for (i = 0; i < hdp->hd_nirqs; i++) in hpet_alloc()
880 hpetp->hp_dev[i].hd_hdwirq = hdp->hd_irq[i]; in hpet_alloc()
910 hpetp->hp_which, hdp->hd_phys_address, in hpet_alloc()
913 printk(KERN_CONT "%s %d", i > 0 ? "," : "", hdp->hd_irq[i]); in hpet_alloc()
944 if (hdp->hd_state & (1 << i)) { in hpet_alloc()
970 struct hpet_data *hdp; in hpet_resources() local
974 hdp = data; in hpet_resources()
979 hdp->hd_phys_address = addr.address.minimum; in hpet_resources()
980 hdp->hd_address = ioremap(addr.address.minimum, addr.address.address_length); in hpet_resources()
982 if (hpet_is_known(hdp)) { in hpet_resources()
983 iounmap(hdp->hd_address); in hpet_resources()
991 hdp->hd_phys_address = fixmem32->address; in hpet_resources()
992 hdp->hd_address = ioremap(fixmem32->address, in hpet_resources()
995 if (hpet_is_known(hdp)) { in hpet_resources()
996 iounmap(hdp->hd_address); in hpet_resources()
1006 if (hdp->hd_nirqs >= HPET_MAX_TIMERS) in hpet_resources()
1014 hdp->hd_irq[hdp->hd_nirqs] = irq; in hpet_resources()
1015 hdp->hd_nirqs++; in hpet_resources()