/freebsd-11-stable/sys/arm/xscale/ixp425/ |
H A D | ixp425.c | 488 const struct hwvtrans *hw; local 490 hw = gethwvtrans(hwbase, size); 491 if (hw == NULL) 493 *vbase = hwbase - hw->hwbase + hw->vbase;
|
/freebsd-11-stable/sys/arm/ti/ |
H A D | ti_hwmods.c | 109 struct hwmod *hw; local 121 for (hw = ti_hwmods; hw->name != NULL; ++hw) { 122 if (strcmp(hw->name, name) == 0) { 123 clk = hw->clock_id;
|
/freebsd-11-stable/sys/dev/ncv/ |
H A D | ncr53c500.c | 158 ncvhw_select_register_0(struct resource *res, struct ncv_hw *hw) argument 161 bus_write_1(res, cr0_cfg4, hw->hw_cfg4); 165 ncvhw_select_register_1(struct resource *res, struct ncv_hw *hw) argument 168 bus_write_1(res, cr1_cfg5, hw->hw_cfg5); 201 ncvhw_check(struct resource *res, struct ncv_hw *hw) argument 205 ncvhw_select_register_0(res, hw); 225 ncvhw_reset(res, hw); 226 ncvhw_init(res, hw); 229 ncvhw_select_register_0(res, hw); 253 ncvhw_reset(struct resource *res, struct ncv_hw *hw) argument 271 ncvhw_init(struct resource *res, struct ncv_hw *hw) argument [all...] |
/freebsd-11-stable/sys/dev/ct/ |
H A D | bshw_machdep.c | 87 struct bshw *hw = bs->sc_hw; local 89 if (hw->hw_sregaddr == 0) 92 ct_cr_write_1(chp, hw->hw_sregaddr + ti->ti_id, cti->cti_syncreg); 93 if (hw->hw_flags & BSHW_DOUBLE_DMACHAN) 95 ct_cr_write_1(chp, hw->hw_sregaddr + ti->ti_id + 8, 106 struct bshw *hw = bs->sc_hw; local 112 if (hw->hw_dma_init != NULL && ((*hw->hw_dma_init)(ct)) != 0) 120 offs = hw->hw_sregaddr; 126 if ((hw [all...] |
H A D | ct_isa.c | 113 struct bshw *hw; local 134 if ((hw = ct_find_hw(dev)) == NULL) 136 if (ct_space_map(dev, hw, &port_res, &mem_res) != 0) 173 struct bshw *hw; local 178 hw = ct_find_hw(dev); 179 if (ct_space_map(dev, hw, &ct->port_res, &ct->mem_res) != 0) { 230 bs->sc_hw = hw; 313 ct_space_map(device_t dev, struct bshw *hw, argument 326 if ((hw->hw_flags & BSHW_SMFIFO) == 0 || isa_get_maddr(dev) == -1)
|
/freebsd-11-stable/sys/dev/mse/ |
H A D | mse.c | 339 *(mousehw_t *)addr = sc->hw;
|
H A D | mse_cbus.c | 186 sc->hw = mse_types[i].m_hw;
|
H A D | msevar.h | 73 mousehw_t hw; member in struct:mse_softc
|
/freebsd-11-stable/sys/dev/wpi/ |
H A D | if_wpi.c | 30 * Once the firmware is loaded, the driver/hw then 2160 uint32_t hw; local 2165 hw = le32toh(sc->shared->next) & 0xfff; 2166 hw = (hw == 0) ? WPI_RX_RING_COUNT - 1 : hw - 1; 2168 while (sc->rxq.cur != hw) {
|
/freebsd-11-stable/sys/dev/malo/ |
H A D | if_malohal.c | 541 * Return "hw specs". Note this must be the first cmd MUST be done after 545 malo_hal_gethwspecs(struct malo_hal *mh, struct malo_hal_hwspec *hw) argument 558 IEEE80211_ADDR_COPY(hw->macaddr, cmd->permaddr); 559 hw->wcbbase[0] = le32toh(cmd->wcbbase0) & 0x0000ffff; 560 hw->wcbbase[1] = le32toh(cmd->wcbbase1) & 0x0000ffff; 561 hw->wcbbase[2] = le32toh(cmd->wcbbase2) & 0x0000ffff; 562 hw->wcbbase[3] = le32toh(cmd->wcbbase3) & 0x0000ffff; 563 hw->rxdesc_read = le32toh(cmd->rxpdrd_ptr)& 0x0000ffff; 564 hw->rxdesc_write = le32toh(cmd->rxpdwr_ptr)& 0x0000ffff; 565 hw [all...] |
/freebsd-11-stable/sys/dev/qlxgb/ |
H A D | qla_def.h | 192 qla_hw_t hw; member in struct:qla_host
|
H A D | qla_hw.c | 109 if (ha->hw.dma_buf.flags.context) { 110 qla_free_dmabuf(ha, &ha->hw.dma_buf.context); 111 ha->hw.dma_buf.flags.context = 0; 114 if (ha->hw.dma_buf.flags.sds_ring) { 115 for (i = 0; i < ha->hw.num_sds_rings; i++) 116 qla_free_dmabuf(ha, &ha->hw.dma_buf.sds_ring[i]); 117 ha->hw.dma_buf.flags.sds_ring = 0; 120 if (ha->hw.dma_buf.flags.rds_ring) { 121 for (i = 0; i < ha->hw.num_rds_rings; i++) 122 qla_free_dmabuf(ha, &ha->hw 269 qla_hw_t *hw; local 493 qla_hw_t *hw = &ha->hw; local 930 qla_hw_t *hw = &ha->hw; local 1226 qla_hw_t *hw = &ha->hw; local 1332 qla_hw_t *hw = &ha->hw; local 1699 qla_hw_t *hw = &ha->hw; local 1788 qla_hw_t *hw = &ha->hw; local 1810 qla_hw_t *hw = &ha->hw; local [all...] |
H A D | qla_hw.h | 201 uint16_t vlan_tci; /* VLAN TCI when hw tagging is enabled*/ 801 WRITE_REG32(ha, ((ha->hw.rx_cntxt_rsp)->rds_rsp[i].producer_reg +\ 805 WRITE_REG32(ha, (ha->hw.tx_prod_reg + 0x1b2000), val) 808 WRITE_REG32(ha, ((ha->hw.rx_cntxt_rsp)->sds_rsp[i].consumer_reg +\ 821 rsp_sds = &((ha->hw.rx_cntxt_rsp)->sds_rsp[sds_index]);\ 828 rsp_sds = &((ha->hw.rx_cntxt_rsp)->sds_rsp[sds_index]);\
|
H A D | qla_inline.h | 126 return (ha->hw.mac_addr); 148 ha->hw.mac_addr[5] = macp[0]; 149 ha->hw.mac_addr[4] = macp[1]; 153 ha->hw.mac_addr[3] = macp[0]; 154 ha->hw.mac_addr[2] = macp[1]; 155 ha->hw.mac_addr[1] = macp[2]; 156 ha->hw.mac_addr[0] = macp[3]; 160 ha->hw.mac_addr[5] = macp[0]; 161 ha->hw.mac_addr[4] = macp[1]; 162 ha->hw [all...] |
H A D | qla_isr.c | 63 sdsp = &ha->hw.sds[sds_idx]; 165 rxj_next = ha->hw.rxj_next; 179 ha->hw.rxj_in, rxb->handle, rxb->paddr, 181 ha->hw.rxj_in++; 182 if (ha->hw.rxj_in == NUM_RX_JUMBO_DESCRIPTORS) 183 ha->hw.rxj_in = 0; 184 ha->hw.rxj_next++; 185 if (ha->hw.rxj_next == NUM_RX_JUMBO_DESCRIPTORS) 186 ha->hw.rxj_next = 0; 190 __func__, ha->hw 266 qla_hw_t *hw; local 383 qla_hw_t *hw; local [all...] |
/freebsd-11-stable/sys/dev/ata/ |
H A D | ata-lowlevel.c | 70 ch->hw.begin_transaction = ata_begin_transaction; 71 ch->hw.end_transaction = ata_end_transaction; 72 ch->hw.status = ata_generic_status; 73 ch->hw.softreset = NULL; 74 ch->hw.command = ata_generic_command; 75 ch->hw.tf_read = ata_tf_read; 76 ch->hw.tf_write = ata_tf_write; 77 ch->hw.pm_read = NULL; 78 ch->hw.pm_write = NULL; 108 if (ch->hw [all...] |
H A D | ata-pci.c | 478 ch->hw.status = ata_pci_status;
|
H A D | ata-sata.c | 86 if (ch->hw.pm_read != NULL) 87 return (ch->hw.pm_read(ch->dev, port, reg, val)); 99 if (ch->hw.pm_write != NULL) 100 return (ch->hw.pm_write(ch->dev, port, reg, val)); 293 if (ch->hw.pm_read(dev, ATA_PM, 0, &pm_chipid)) { 299 if (ch->hw.pm_read(dev, ATA_PM, 1, &pm_revision)) { 305 if (ch->hw.pm_read(dev, ATA_PM, 2, &pm_ports)) { 352 signature = ch->hw.softreset(dev, port);
|
/freebsd-11-stable/sys/dev/ata/chipsets/ |
H A D | ata-acard.c | 119 ch->hw.status = ata_acard_status;
|
H A D | ata-nvidia.c | 264 ch->hw.status = ata_nvidia_status;
|
H A D | ata-serverworks.c | 209 ch->hw.tf_read = ata_serverworks_tf_read; 210 ch->hw.tf_write = ata_serverworks_tf_write; 237 ch->hw.status = ata_serverworks_status;
|
H A D | ata-via.c | 254 ch->hw.status = ata_via_status; 410 ch->hw.status = ata_via_sata_status; 411 ch->hw.pm_read = ata_via_sata_scr_read; 412 ch->hw.pm_write = ata_via_sata_scr_write;
|
/freebsd-11-stable/sys/dev/mwl/ |
H A D | mwlhal.c | 552 * Return "hw specs". Note this must be the first 558 mwl_hal_gethwspecs(struct mwl_hal *mh0, struct mwl_hal_hwspec *hw) argument 571 IEEE80211_ADDR_COPY(hw->macAddr, pCmd->PermanentAddr); 572 hw->wcbBase[0] = le32toh(pCmd->WcbBase0) & 0x0000ffff; 573 hw->wcbBase[1] = le32toh(pCmd->WcbBase1[0]) & 0x0000ffff; 574 hw->wcbBase[2] = le32toh(pCmd->WcbBase1[1]) & 0x0000ffff; 575 hw->wcbBase[3] = le32toh(pCmd->WcbBase1[2]) & 0x0000ffff; 576 hw->rxDescRead = le32toh(pCmd->RxPdRdPtr)& 0x0000ffff; 577 hw->rxDescWrite = le32toh(pCmd->RxPdWrPtr)& 0x0000ffff; 578 hw [all...] |
/freebsd-11-stable/sys/dev/nxge/xgehal/ |
H A D | xgehal-mgmtaux.c | 263 xge_hal_mgmt_hw_stats_t hw; local 265 status = xge_hal_mgmt_hw_stats(devh, &hw, 271 __HAL_AUX_ENTRY("tmac_data_octets", hw.tmac_data_octets, "%u"); 272 __HAL_AUX_ENTRY("tmac_frms", hw.tmac_frms, "%u"); 274 hw.tmac_drop_frms, "%llu"); 275 __HAL_AUX_ENTRY("tmac_bcst_frms", hw.tmac_bcst_frms, "%u"); 276 __HAL_AUX_ENTRY("tmac_mcst_frms", hw.tmac_mcst_frms, "%u"); 278 hw.tmac_pause_ctrl_frms, "%llu"); 279 __HAL_AUX_ENTRY("tmac_ucst_frms", hw.tmac_ucst_frms, "%u"); 280 __HAL_AUX_ENTRY("tmac_ttl_octets", hw 404 xge_hal_mgmt_hw_stats_t hw; local 700 xge_hal_mgmt_hw_stats_t hw; local 826 xge_hal_mgmt_hw_stats_t hw; local [all...] |
/freebsd-11-stable/sys/dev/bhnd/bhndb/ |
H A D | bhndb.c | 66 TUNABLE_ULONG("hw.bhndb.debug", &bhndb_debug); 76 const struct bhndb_hw *hw); 86 const struct bhndb_hw **hw); 186 * Return true if @p devlist matches the @p hw specification. 190 * @param hw The hardware description to be matched against. 193 bhndb_hw_matches(device_t *devlist, int num_devs, const struct bhndb_hw *hw) argument 195 for (u_int i = 0; i < hw->num_hw_reqs; i++) { 200 match = &hw->hw_reqs[i]; 423 * @param[out] hw On success, the matched hardware specification. 431 const struct bhndb_hw **hw) 430 bhndb_find_hwspec(struct bhndb_softc *sc, device_t *devs, int ndevs, const struct bhndb_hw **hw) argument 588 const struct bhndb_hw *hw; local [all...] |