Lines Matching refs:hdp
731 static int hpet_is_known(struct hpet_data *hdp) in hpet_is_known() argument
736 if (hpetp->hp_hpet_phys == hdp->hd_phys_address) in hpet_is_known()
839 int hpet_alloc(struct hpet_data *hdp) in hpet_alloc() argument
857 if (hpet_is_known(hdp)) { in hpet_alloc()
863 siz = sizeof(struct hpets) + ((hdp->hd_nirqs - 1) * in hpet_alloc()
872 hpetp->hp_hpet = hdp->hd_address; in hpet_alloc()
873 hpetp->hp_hpet_phys = hdp->hd_phys_address; in hpet_alloc()
875 hpetp->hp_ntimer = hdp->hd_nirqs; in hpet_alloc()
877 for (i = 0; i < hdp->hd_nirqs; i++) in hpet_alloc()
878 hpetp->hp_dev[i].hd_hdwirq = hdp->hd_irq[i]; in hpet_alloc()
908 hpetp->hp_which, hdp->hd_phys_address, in hpet_alloc()
911 printk(KERN_CONT "%s %d", i > 0 ? "," : "", hdp->hd_irq[i]); in hpet_alloc()
942 if (hdp->hd_state & (1 << i)) { in hpet_alloc()
968 struct hpet_data *hdp; in hpet_resources() local
972 hdp = data; in hpet_resources()
977 hdp->hd_phys_address = addr.address.minimum; in hpet_resources()
978 hdp->hd_address = ioremap(addr.address.minimum, addr.address.address_length); in hpet_resources()
980 if (hpet_is_known(hdp)) { in hpet_resources()
981 iounmap(hdp->hd_address); in hpet_resources()
989 hdp->hd_phys_address = fixmem32->address; in hpet_resources()
990 hdp->hd_address = ioremap(fixmem32->address, in hpet_resources()
993 if (hpet_is_known(hdp)) { in hpet_resources()
994 iounmap(hdp->hd_address); in hpet_resources()
1004 if (hdp->hd_nirqs >= HPET_MAX_TIMERS) in hpet_resources()
1012 hdp->hd_irq[hdp->hd_nirqs] = irq; in hpet_resources()
1013 hdp->hd_nirqs++; in hpet_resources()