Lines Matching refs:ioctl
227 bcma_read_ioctl(device_t dev, device_t child, uint16_t *ioctl)
236 *ioctl = (value & BCMA_DMP_IOCTRL_MASK);
245 uint32_t ioctl;
255 ioctl = bhnd_bus_read_4(r, BCMA_DMP_IOCTRL);
256 ioctl &= ~(BCMA_DMP_IOCTRL_MASK & mask);
257 ioctl |= (value & mask);
259 bhnd_bus_write_4(r, BCMA_DMP_IOCTRL, ioctl);
272 uint16_t ioctl;
287 error = bhnd_read_ioctl(child, &ioctl);
289 device_printf(child, "error reading HW ioctl register: %d\n",
294 if (!(ioctl & BHND_IOCTL_CLK_EN))
301 bcma_reset_hw(device_t dev, device_t child, uint16_t ioctl,
316 if (ioctl & clkflags)
334 if ((error = bhnd_write_ioctl(child, ioctl | clkflags, UINT16_MAX)))
350 bcma_suspend_hw(device_t dev, device_t child, uint16_t ioctl)
364 if (ioctl & clkflags)
380 if ((error = bhnd_write_ioctl(child, ioctl, ~clkflags)))