/freebsd/sys/dev/qat_c2xxx/ |
H A D | qat.c | 337 memcpy(&sc->sc_hw, qatp->qatp_hw, sizeof(struct qat_hw)); in qat_attach() 340 sc->sc_accel_mask = sc->sc_hw.qhw_get_accel_mask(sc); in qat_attach() 341 sc->sc_ae_mask = sc->sc_hw.qhw_get_ae_mask(sc); in qat_attach() 344 for (i = 0; i < sc->sc_hw.qhw_num_accel; i++) { in qat_attach() 349 for (i = 0; i < sc->sc_hw.qhw_num_engines; i++) { in qat_attach() 363 sc->sc_sku = sc->sc_hw.qhw_get_sku(sc); in qat_attach() 364 sc->sc_accel_cap = sc->sc_hw.qhw_get_accel_cap(sc); in qat_attach() 365 sc->sc_fw_uof_name = sc->sc_hw.qhw_get_fw_uof_name(sc); in qat_attach() 368 if (sc->sc_hw.qhw_sram_bar_id != NO_PCI_REG) { in qat_attach() 369 MPASS(sc->sc_hw.qhw_sram_bar_id == 0); in qat_attach() [all …]
|
H A D | qatvar.h | 789 struct qat_hw sc_hw; member 863 qat_bar_write_4(sc, sc->sc_hw.qhw_misc_bar_id, offset, value); in qat_misc_write_4() 870 return qat_bar_read_4(sc, sc->sc_hw.qhw_misc_bar_id, offset); in qat_misc_read_4() 899 qat_bar_write_4(sc, sc->sc_hw.qhw_etr_bar_id, offset, value); in qat_etr_write_4() 906 return qat_bar_read_4(sc, sc->sc_hw.qhw_etr_bar_id, offset); in qat_etr_read_4() 917 qat_misc_write_4(sc, sc->sc_hw.qhw_ae_local_offset + offset, in qat_ae_local_write_4() 928 return qat_misc_read_4(sc, sc->sc_hw.qhw_ae_local_offset + offset); in qat_ae_local_read_4() 938 qat_misc_write_4(sc, sc->sc_hw.qhw_ae_offset + offset, value); in qat_ae_xfer_write_4() 945 qat_misc_write_4(sc, sc->sc_hw.qhw_cap_global_offset + offset, value); in qat_cap_global_write_4() 952 return qat_misc_read_4(sc, sc->sc_hw.qhw_cap_global_offset + offset); in qat_cap_global_read_4() [all …]
|
H A D | qat_hw15.c | 223 ADMIN_RING_SIZE, sc->sc_hw.qhw_fw_req_size, in qat_adm_ring_init() 229 ADMIN_RING_SIZE, sc->sc_hw.qhw_fw_resp_size, in qat_adm_ring_init() 315 param = &tbl->firt_bulk_rings[sc->sc_hw.qhw_ring_sym_tx]; in qat_adm_ring_build_ring_table() 318 FW_INIT_RING_MASK_SET(tbl, sc->sc_hw.qhw_ring_sym_tx); in qat_adm_ring_build_ring_table()
|
H A D | qat_ae.c | 981 if (!sc->sc_hw.qhw_fw_auth) { in qat_ae_init() 1846 fw = firmware_get(sc->sc_hw.qhw_mof_fwname); in qat_aefw_load_mof() 1849 sc->sc_hw.qhw_mof_fwname); in qat_aefw_load_mof() 1874 fw = firmware_get(sc->sc_hw.qhw_mmp_fwname); in qat_aefw_load_mmp() 1877 sc->sc_hw.qhw_mmp_fwname); in qat_aefw_load_mmp() 2260 if ((uoh->uoh_cpu_type & sc->sc_hw.qhw_prod_type) == 0) in qat_aefw_uof_parse() 2336 if (ae_mode->sam_dev_type != sc->sc_hw.qhw_prod_type) in qat_aefw_suof_parse_image() 2781 if (sc->sc_hw.qhw_fw_auth) { in qat_aefw_load() 2835 if (sc->sc_hw.qhw_fw_auth) { in qat_aefw_start()
|
/freebsd/sys/dev/hid/ |
H A D | hidraw.c | 94 const struct hid_device_info *sc_hw; member 215 sc->sc_hw = hid_get_device_info(self); in hidraw_attach() 802 hdi->hdi_product = sc->sc_hw->idProduct; in hidraw_ioctl() 803 hdi->hdi_vendor = sc->sc_hw->idVendor; in hidraw_ioctl() 804 hdi->hdi_version = sc->sc_hw->idVersion; in hidraw_ioctl() 805 hdi->hdi_bustype = sc->sc_hw->idBus; in hidraw_ioctl() 806 strlcpy(hdi->hdi_name, sc->sc_hw->name, in hidraw_ioctl() 810 strlcpy(hdi->hdi_uniq, sc->sc_hw->serial, in hidraw_ioctl() 813 sc->sc_hw->idVersion >> 8, sc->sc_hw->idVersion & 0xff); in hidraw_ioctl() 817 *(int *)addr = sc->sc_hw->rdescsize; in hidraw_ioctl() [all …]
|
/freebsd/sys/dev/usb/input/ |
H A D | ums.c | 139 mousehw_t sc_hw; member 792 sc->sc_hw.buttons = MOUSE_MSC_MAXBUTTON; in ums_reset() 794 sc->sc_hw.buttons = sc->sc_buttons; in ums_reset() 796 sc->sc_hw.iftype = MOUSE_IF_USB; in ums_reset() 797 sc->sc_hw.type = MOUSE_MOUSE; in ums_reset() 798 sc->sc_hw.model = MOUSE_MODEL_GENERIC; in ums_reset() 799 sc->sc_hw.hwid = 0; in ums_reset() 1043 *(mousehw_t *)addr = sc->sc_hw; in ums_fifo_ioctl() 1067 sc->sc_hw.buttons = MOUSE_MSC_MAXBUTTON; in ums_fifo_ioctl() 1069 sc->sc_hw.buttons = sc->sc_buttons; in ums_fifo_ioctl() [all …]
|
H A D | usbhid.c | 124 struct hid_device_info sc_hw; member 341 nowrite = hid_test_quirk(&sc->sc_hw, HQ_NOWRITE); in usbhid_intr_setup() 802 usbhid_init_device_info(uaa, &sc->sc_hw); in usbhid_probe() 804 if (hid_test_quirk(&sc->sc_hw, HQ_HID_IGNORE)) in usbhid_probe() 826 usbhid_fill_device_info(uaa, &sc->sc_hw); in usbhid_attach() 843 device_set_ivars(child, &sc->sc_hw); in usbhid_attach()
|
H A D | wsp.c | 598 mousehw_t sc_hw; member 863 sc->sc_hw.buttons = 3; in wsp_attach() 864 sc->sc_hw.iftype = MOUSE_IF_USB; in wsp_attach() 865 sc->sc_hw.type = MOUSE_PAD; in wsp_attach() 866 sc->sc_hw.model = MOUSE_MODEL_GENERIC; in wsp_attach() 1560 *(mousehw_t *)addr = sc->sc_hw; in wsp_ioctl() 1577 sc->sc_hw.buttons = 3; in wsp_ioctl() 1601 sc->sc_hw.buttons = 3; in wsp_ioctl()
|
H A D | atp.c | 669 mousehw_t sc_hw; member 2269 sc->sc_hw.buttons = 3; in atp_attach() 2270 sc->sc_hw.iftype = MOUSE_IF_USB; in atp_attach() 2271 sc->sc_hw.type = MOUSE_PAD; in atp_attach() 2272 sc->sc_hw.model = MOUSE_MODEL_GENERIC; in atp_attach() 2273 sc->sc_hw.hwid = 0; in atp_attach() 2508 *(mousehw_t *)addr = sc->sc_hw; in atp_ioctl() 2525 sc->sc_hw.buttons = 3; in atp_ioctl() 2549 sc->sc_hw.buttons = 3; in atp_ioctl()
|
/freebsd/sys/dev/usb/controller/ |
H A D | uhci.c | 171 cb(bus, &sc->sc_hw.pframes_pc, &sc->sc_hw.pframes_pg, in uhci_iterate_hw_softc() 174 cb(bus, &sc->sc_hw.ls_ctl_start_pc, &sc->sc_hw.ls_ctl_start_pg, in uhci_iterate_hw_softc() 177 cb(bus, &sc->sc_hw.fs_ctl_start_pc, &sc->sc_hw.fs_ctl_start_pg, in uhci_iterate_hw_softc() 180 cb(bus, &sc->sc_hw.bulk_start_pc, &sc->sc_hw.bulk_start_pg, in uhci_iterate_hw_softc() 183 cb(bus, &sc->sc_hw.last_qh_pc, &sc->sc_hw.last_qh_pg, in uhci_iterate_hw_softc() 186 cb(bus, &sc->sc_hw.last_td_pc, &sc->sc_hw.last_td_pg, in uhci_iterate_hw_softc() 190 cb(bus, sc->sc_hw.isoc_start_pc + i, in uhci_iterate_hw_softc() 191 sc->sc_hw.isoc_start_pg + i, in uhci_iterate_hw_softc() 196 cb(bus, sc->sc_hw.intr_start_pc + i, in uhci_iterate_hw_softc() 197 sc->sc_hw.intr_start_pg + i, in uhci_iterate_hw_softc() [all …]
|
H A D | ohci.c | 142 usb_pc_cpu_invalidate(&sc->sc_hw.hcca_pc); in ohci_get_hcca() 152 cb(bus, &sc->sc_hw.hcca_pc, &sc->sc_hw.hcca_pg, in ohci_iterate_hw_softc() 155 cb(bus, &sc->sc_hw.ctrl_start_pc, &sc->sc_hw.ctrl_start_pg, in ohci_iterate_hw_softc() 158 cb(bus, &sc->sc_hw.bulk_start_pc, &sc->sc_hw.bulk_start_pg, in ohci_iterate_hw_softc() 161 cb(bus, &sc->sc_hw.isoc_start_pc, &sc->sc_hw.isoc_start_pg, in ohci_iterate_hw_softc() 165 cb(bus, sc->sc_hw.intr_start_pc + i, sc->sc_hw.intr_start_pg + i, in ohci_iterate_hw_softc() 246 usbd_get_page(&sc->sc_hw.hcca_pc, 0, &buf_res); in ohci_controller_init() 249 usbd_get_page(&sc->sc_hw.ctrl_start_pc, 0, &buf_res); in ohci_controller_init() 252 usbd_get_page(&sc->sc_hw.bulk_start_pc, 0, &buf_res); in ohci_controller_init() 339 ohci_init_ed(&sc->sc_hw.ctrl_start_pc); in ohci_init() [all …]
|
H A D | ehci.c | 154 cb(bus, &sc->sc_hw.pframes_pc, &sc->sc_hw.pframes_pg, in ehci_iterate_hw_softc() 157 cb(bus, &sc->sc_hw.terminate_pc, &sc->sc_hw.terminate_pg, in ehci_iterate_hw_softc() 160 cb(bus, &sc->sc_hw.async_start_pc, &sc->sc_hw.async_start_pg, in ehci_iterate_hw_softc() 164 cb(bus, sc->sc_hw.intr_start_pc + i, in ehci_iterate_hw_softc() 165 sc->sc_hw.intr_start_pg + i, in ehci_iterate_hw_softc() 170 cb(bus, sc->sc_hw.isoc_hs_start_pc + i, in ehci_iterate_hw_softc() 171 sc->sc_hw.isoc_hs_start_pg + i, in ehci_iterate_hw_softc() 176 cb(bus, sc->sc_hw.isoc_fs_start_pc + i, in ehci_iterate_hw_softc() 177 sc->sc_hw.isoc_fs_start_pg + i, in ehci_iterate_hw_softc() 245 usbd_get_page(&sc->sc_hw.pframes_pc, 0, &buf_res); in ehci_init_sub() [all …]
|
H A D | uhci.h | 204 struct uhci_hw_softc sc_hw; member
|
H A D | ohci.h | 225 struct ohci_hw_softc sc_hw; member
|
H A D | ehci.h | 316 struct ehci_hw_softc sc_hw; member
|
H A D | xhci.h | 495 struct xhci_hw_softc sc_hw; member
|