Home | History | Annotate | Download | only in pci

Lines Matching defs:ph

124 	struct piix_handle *ph;
126 ph = malloc(sizeof(*ph), M_DEVBUF, M_NOWAIT);
127 if (ph == NULL)
130 ph->ph_iot = iot;
131 ph->ph_pc = pc;
132 ph->ph_tag = tag;
135 &ph->ph_elcr_ioh) != 0) {
136 free(ph, M_DEVBUF);
141 piix_pir_dump(ph);
144 *phandp = ph;
151 struct piix_handle *ph = v;
153 if (ph == NULL)
156 bus_space_unmap(ph->ph_iot, ph->ph_elcr_ioh, PIIX_REG_ELCR_SIZE);
233 struct piix_handle *ph = v;
244 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, cfgreg);
257 struct piix_handle *ph = v;
268 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, cfgreg);
272 pci_conf_write(ph->ph_pc, ph->ph_tag, cfgreg, reg);
280 struct piix_handle *ph = v;
290 elcr = bus_space_read_1(ph->ph_iot, ph->ph_elcr_ioh, off);
302 struct piix_handle *ph = v;
312 elcr = bus_space_read_1(ph->ph_iot, ph->ph_elcr_ioh, off);
317 bus_space_write_1(ph->ph_iot, ph->ph_elcr_ioh, off, elcr);
324 piix_pir_dump(struct piix_handle *ph)
327 pcireg_t irqs = pci_conf_read(ph->ph_pc, ph->ph_tag, PIIX_CFG_PIRQ);
330 elcr[0] = bus_space_read_1(ph->ph_iot, ph->ph_elcr_ioh, 0);
331 elcr[1] = bus_space_read_1(ph->ph_iot, ph->ph_elcr_ioh, 1);
352 ich_pir_dump(struct piix_handle *ph)
355 pcireg_t irqs = pci_conf_read(ph->ph_pc, ph->ph_tag, PIIX_CFG_PIRQ2);