Lines Matching refs:pe
174 struct pe_reg *pe; in pe_ioctl() local
201 pe = (struct pe_reg *)dmp->b_rptr; in pe_ioctl()
209 if ((dmp->b_wptr - dmp->b_rptr) != sizeof (*pe)) { in pe_ioctl()
215 pe->addr &= (uint32_t)~3; in pe_ioctl()
217 pe->pe_mask32 = 0xFFFFFFFF; in pe_ioctl()
219 if (pe->addr == 0x950) in pe_ioctl()
220 pe->pe_reg_val = reg = t1_sge_get_ptimeout(chp); in pe_ioctl()
222 pe->pe_reg_val = reg = t1_read_reg_4(chp, pe->addr); in pe_ioctl()
225 iocp->ioc_count = sizeof (*pe); in pe_ioctl()
231 if ((dmp->b_wptr - dmp->b_rptr) != sizeof (*pe)) { in pe_ioctl()
236 if (pe->addr == 0x950) in pe_ioctl()
237 t1_sge_set_ptimeout(chp, pe->pe_reg_val); in pe_ioctl()
239 if (pe->pe_mask32 != 0xffffffff) { in pe_ioctl()
240 reg = t1_read_reg_4(chp, pe->addr); in pe_ioctl()
241 pe->pe_reg_val |= (reg & ~pe->pe_mask32); in pe_ioctl()
244 t1_write_reg_4(chp, pe->addr, pe->pe_reg_val); in pe_ioctl()
255 if ((dmp->b_wptr - dmp->b_rptr) != sizeof (*pe)) { in pe_ioctl()
261 pe->addr &= (uint32_t)~3; in pe_ioctl()
263 pe->pe_mask32 = 0xFFFFFFFF; in pe_ioctl()
264 pe->pe_reg_val = reg = pci_config_get32(chp->ch_hpci, pe->addr); in pe_ioctl()
266 iocp->ioc_count = sizeof (*pe); in pe_ioctl()
272 if ((dmp->b_wptr - dmp->b_rptr) != sizeof (*pe)) { in pe_ioctl()
277 if (pe->pe_mask32 != 0xffffffff) { in pe_ioctl()
278 reg = pci_config_get32(chp->ch_hpci, pe->addr); in pe_ioctl()
279 pe->pe_reg_val |= (reg & ~pe->pe_mask32); in pe_ioctl()
282 pci_config_put32(chp->ch_hpci, pe->addr, pe->pe_reg_val); in pe_ioctl()