Lines Matching full:hdp

716 static int hpet_is_known(struct hpet_data *hdp)  in hpet_is_known()  argument
721 if (hpetp->hp_hpet_phys == hdp->hd_phys_address) in hpet_is_known()
803 int hpet_alloc(struct hpet_data *hdp) in hpet_alloc() argument
820 if (hpet_is_known(hdp)) { in hpet_alloc()
826 hpetp = kzalloc(struct_size(hpetp, hp_dev, hdp->hd_nirqs), in hpet_alloc()
833 hpetp->hp_hpet = hdp->hd_address; in hpet_alloc()
834 hpetp->hp_hpet_phys = hdp->hd_phys_address; in hpet_alloc()
836 hpetp->hp_ntimer = hdp->hd_nirqs; in hpet_alloc()
838 for (i = 0; i < hdp->hd_nirqs; i++) in hpet_alloc()
839 hpetp->hp_dev[i].hd_hdwirq = hdp->hd_irq[i]; in hpet_alloc()
869 hpetp->hp_which, hdp->hd_phys_address, in hpet_alloc()
872 printk(KERN_CONT "%s %u", i > 0 ? "," : "", hdp->hd_irq[i]); in hpet_alloc()
903 if (hdp->hd_state & (1 << i)) { in hpet_alloc()
918 struct hpet_data *hdp; in hpet_resources() local
922 hdp = data; in hpet_resources()
927 hdp->hd_phys_address = addr.address.minimum; in hpet_resources()
928 hdp->hd_address = ioremap(addr.address.minimum, addr.address.address_length); in hpet_resources()
929 if (!hdp->hd_address) in hpet_resources()
932 if (hpet_is_known(hdp)) { in hpet_resources()
933 iounmap(hdp->hd_address); in hpet_resources()
941 hdp->hd_phys_address = fixmem32->address; in hpet_resources()
942 hdp->hd_address = ioremap(fixmem32->address, in hpet_resources()
944 if (!hdp->hd_address) in hpet_resources()
947 if (hpet_is_known(hdp)) { in hpet_resources()
948 iounmap(hdp->hd_address); in hpet_resources()
958 if (hdp->hd_nirqs >= HPET_MAX_TIMERS) in hpet_resources()
967 hdp->hd_irq[hdp->hd_nirqs] = irq; in hpet_resources()
968 hdp->hd_nirqs++; in hpet_resources()