Lines Matching refs:hdp
727 static int hpet_is_known(struct hpet_data *hdp) in hpet_is_known() argument
732 if (hpetp->hp_hpet_phys == hdp->hd_phys_address) in hpet_is_known()
835 int hpet_alloc(struct hpet_data *hdp) in hpet_alloc() argument
852 if (hpet_is_known(hdp)) { in hpet_alloc()
858 hpetp = kzalloc(struct_size(hpetp, hp_dev, hdp->hd_nirqs), in hpet_alloc()
865 hpetp->hp_hpet = hdp->hd_address; in hpet_alloc()
866 hpetp->hp_hpet_phys = hdp->hd_phys_address; in hpet_alloc()
868 hpetp->hp_ntimer = hdp->hd_nirqs; in hpet_alloc()
870 for (i = 0; i < hdp->hd_nirqs; i++) in hpet_alloc()
871 hpetp->hp_dev[i].hd_hdwirq = hdp->hd_irq[i]; in hpet_alloc()
901 hpetp->hp_which, hdp->hd_phys_address, in hpet_alloc()
904 printk(KERN_CONT "%s %d", i > 0 ? "," : "", hdp->hd_irq[i]); in hpet_alloc()
935 if (hdp->hd_state & (1 << i)) { in hpet_alloc()
961 struct hpet_data *hdp; in hpet_resources() local
965 hdp = data; in hpet_resources()
970 hdp->hd_phys_address = addr.address.minimum; in hpet_resources()
971 hdp->hd_address = ioremap(addr.address.minimum, addr.address.address_length); in hpet_resources()
972 if (!hdp->hd_address) in hpet_resources()
975 if (hpet_is_known(hdp)) { in hpet_resources()
976 iounmap(hdp->hd_address); in hpet_resources()
984 hdp->hd_phys_address = fixmem32->address; in hpet_resources()
985 hdp->hd_address = ioremap(fixmem32->address, in hpet_resources()
987 if (!hdp->hd_address) in hpet_resources()
990 if (hpet_is_known(hdp)) { in hpet_resources()
991 iounmap(hdp->hd_address); in hpet_resources()
1001 if (hdp->hd_nirqs >= HPET_MAX_TIMERS) in hpet_resources()
1009 hdp->hd_irq[hdp->hd_nirqs] = irq; in hpet_resources()
1010 hdp->hd_nirqs++; in hpet_resources()