/freebsd-11-stable/sys/dev/advansys/ |
H A D | advlib.h | 154 #define ADV_CONFIG_SCSIID(cfg) ((cfg >> ADV_CFG_LSW_SCSIID_SHIFT) & ADV_MAX_TID)
|
/freebsd-11-stable/sys/dev/alc/ |
H A D | if_alc.c | 4394 uint32_t cfg; local 4399 cfg = CSR_READ_4(sc, ALC_RXQ_CFG); 4401 cfg &= ~RXQ_CFG_ENB; 4402 cfg |= qcfg[1]; 4404 cfg |= RXQ_CFG_QUEUE0_ENB; 4405 CSR_WRITE_4(sc, ALC_RXQ_CFG, cfg); 4407 cfg = CSR_READ_4(sc, ALC_TXQ_CFG); 4408 cfg |= TXQ_CFG_ENB; 4409 CSR_WRITE_4(sc, ALC_TXQ_CFG, cfg);
|
/freebsd-11-stable/sys/dev/beri/virtio/ |
H A D | virtio_block.c | 102 struct virtio_blk_config *cfg; member in struct:beri_vtblk_softc 372 struct virtio_blk_config *cfg; local 391 cfg = sc->cfg; 392 cfg->capacity = htobe64(sc->mdio->md_mediasize / DEV_BSIZE); 393 cfg->size_max = 0; /* not negotiated */ 394 cfg->seg_max = htobe32(VTBLK_MAXSEGS); 395 cfg->blk_size = htobe32(DEV_BSIZE); 397 s = (uint32_t *)cfg; 516 sc->cfg [all...] |
/freebsd-11-stable/sys/dev/bhnd/bcma/ |
H A D | bcma_erom.c | 732 struct bcma_corecfg *cfg; local 740 cfg = NULL; 778 cfg = bcma_alloc_corecfg(core_index, core_unit, core.vendor, 780 if (cfg == NULL) 799 cfg->num_master_ports = core.num_mport; 800 cfg->num_dev_ports = 0; /* determined below */ 801 cfg->num_bridge_ports = 0; /* determined blow */ 802 cfg->num_wrapper_ports = core.num_mwrap + core.num_swrap; 825 STAILQ_INSERT_TAIL(&cfg->master_ports, mport, mp_link); 849 cfg [all...] |
H A D | bcma_subr.c | 59 struct bcma_corecfg *cfg; local 61 cfg = malloc(sizeof(*cfg), M_BHND, M_NOWAIT); 62 if (cfg == NULL) 65 cfg->core_info = (struct bhnd_core_info) { 73 STAILQ_INIT(&cfg->master_ports); 74 cfg->num_master_ports = 0; 76 STAILQ_INIT(&cfg->dev_ports); 77 cfg->num_dev_ports = 0; 79 STAILQ_INIT(&cfg 125 bcma_corecfg_get_port_list(struct bcma_corecfg *cfg, bhnd_port_type type) argument [all...] |
H A D | bcmavar.h | 69 struct bcma_sport_list *bcma_corecfg_get_port_list(struct bcma_corecfg *cfg,
|
/freebsd-11-stable/sys/dev/bhnd/bhndb/ |
H A D | bhndb.c | 89 const struct bhndb_hwcfg *cfg, 256 for (regw = r->cfg->register_windows; 453 * @param cfg The hardware configuration to use when mapping the ChipCommon 461 bhndb_read_chipid(struct bhndb_softc *sc, const struct bhndb_hwcfg *cfg, argument 478 cc_win = bhndb_regwin_find_best(cfg->register_windows, 523 const struct bhndb_hwcfg *cfg; local 534 cfg = BHNDB_BUS_GET_GENERIC_HWCFG(sc->parent_dev, sc->dev); 535 if ((error = bhndb_read_chipid(sc, cfg, &sc->chipid))) 539 sc->bus_res = bhndb_alloc_resources(dev, sc->parent_dev, cfg); 630 r = bhndb_alloc_resources(dev, sc->parent_dev, hw->cfg); [all...] |
H A D | bhndb.h | 128 const struct bhndb_hwcfg *cfg; /**< associated hardware configuration */ member in struct:bhndb_hw
|
H A D | bhndb_pci.c | 209 const struct bhndb_hwcfg *cfg; local 213 cfg = bres->cfg; 215 sprom_win = bhndb_regwin_find_type(cfg->register_windows, 299 const struct bhndb_hwcfg *cfg; local 307 cfg = bres->cfg; 325 win = bhndb_regwin_find_core(cfg->register_windows, sc->pci_devclass,
|
H A D | bhndb_pci_hwdata.c | 68 .cfg = &bhndb_pci_hwcfg_ ## _vers \
|
H A D | bhndb_private.h | 63 const struct bhndb_hwcfg *cfg); 174 const struct bhndb_hwcfg *cfg; /**< hardware configuration */ member in struct:bhndb_resources
|
H A D | bhndb_subr.c | 232 rspecs = br->cfg->resource_specs; 253 * bus resources from @p parent_dev according to @p cfg. 257 * @param cfg The hardware configuration to be used. 261 const struct bhndb_hwcfg *cfg) 283 r->cfg = cfg; 320 for (size_t i = 0; cfg->resource_specs[i].type != -1; i++) 333 r->res_spec[i] = cfg->resource_specs[i]; 375 r->dwa_count = bhndb_regwin_count(cfg->register_windows, 392 for (win = cfg 260 bhndb_alloc_resources(device_t dev, device_t parent_dev, const struct bhndb_hwcfg *cfg) argument [all...] |
/freebsd-11-stable/sys/dev/bhnd/cores/pci/ |
H A D | bhnd_pci_hostb.c | 504 uint16_t cfg; local 508 cfg = BHND_PCI_READ_2(sc, reg); 511 cfg |= BHND_PCIE_SRSH_ASPM_ENB; 513 cfg &= ~BHND_PCIE_SRSH_ASPM_ENB; 515 BHND_PCI_WRITE_2(sc, reg, cfg); 519 cfg = pcie_read_config(sc->pci_dev, PCIER_LINK_CTL, 2); 522 cfg |= PCIEM_LINK_CTL_ASPMC; 524 cfg &= ~PCIEM_LINK_CTL_ASPMC; 526 cfg &= ~PCIEM_LINK_CTL_ECPM; /* CLKREQ# */ 528 pcie_write_config(sc->pci_dev, PCIER_LINK_CTL, cfg, 545 uint16_t cfg; local [all...] |
/freebsd-11-stable/sys/dev/bhnd/siba/ |
H A D | siba.c | 112 dinfo->cfg[cfgidx] = BHND_BUS_ALLOC_RESOURCE(dev, dev, 116 if (dinfo->cfg[cfgidx] == NULL) { 156 const struct bhnd_core_info *cfg; local 159 cfg = &dinfo->core_id.core_info; 163 *result = cfg->vendor; 166 *result = cfg->device; 169 *result = cfg->hwrev; 172 *result = bhnd_core_class(cfg); 175 *result = (uintptr_t) bhnd_vendor_name(cfg->vendor); 178 *result = (uintptr_t) bhnd_core_name(cfg); [all...] |
H A D | siba_bhndb.c | 146 /* Suspend all references to the device's cfg register blocks */ 150 if (dinfo->cfg[i] == NULL) 154 SYS_RES_MEMORY, dinfo->cfg[i]->res); 195 if (dinfo->cfg[i] == NULL) 199 SYS_RES_MEMORY, dinfo->cfg[i]->res); 237 KASSERT(dinfo->cfg[0] != NULL, ("missing core config mapping")); 239 imcfg = bhnd_bus_read_4(dinfo->cfg[0], SIBA_CFG0_IMCONFIGLOW); 242 bhnd_bus_write_4(dinfo->cfg[0], SIBA_CFG0_IMCONFIGLOW, imcfg);
|
H A D | siba_subr.c | 124 for (u_int i = 0; i < nitems(dinfo->cfg); i++) { 125 dinfo->cfg[i] = NULL; 353 for (u_int i = 0; i < nitems(dinfo->cfg); i++) { 354 if (dinfo->cfg[i] == NULL) 358 dinfo->cfg[i]); 360 dinfo->cfg[i] = NULL;
|
H A D | sibavar.h | 147 struct bhnd_resource *cfg[SIBA_MAX_CFG]; /**< SIBA_CFG_* registers */ member in struct:siba_devinfo
|
/freebsd-11-stable/sys/dev/bwn/ |
H A D | if_bwn_pci.c | 131 bwn_pci_find_devcfg(device_t dev, const struct bwn_pci_devcfg **cfg, argument 142 if (cfg != NULL) 143 *cfg = dvc;
|
/freebsd-11-stable/sys/dev/cardbus/ |
H A D | cardbus.c | 74 static void cardbus_device_setup_regs(pcicfgregs *cfg); 151 cardbus_device_setup_regs(pcicfgregs *cfg) argument 153 device_t dev = cfg->dev; 163 cfg->intline = 165 pci_write_config(dev, PCIR_INTLINE, cfg->intline, 1); 206 if (dinfo->pci.cfg.mfdev) 215 dinfo->pci.cfg.dev = child; 221 pci_cfg_save(dinfo->pci.cfg.dev, &dinfo->pci, 0); 222 pci_cfg_restore(dinfo->pci.cfg.dev, &dinfo->pci); 223 cardbus_device_setup_regs(&dinfo->pci.cfg); 313 pcicfgregs *cfg; local [all...] |
H A D | cardbus_device.c | 116 minor = (device_get_unit(sc->sc_dev) << 8) + devi->pci.cfg.func; 119 "cardbus%d.%d.cis", unit, devi->pci.cfg.func); 120 if (devi->pci.cfg.func == 0)
|
/freebsd-11-stable/sys/dev/ce/ |
H A D | ceddk.c | 939 unsigned long cfg = c->config & ~TAU32_framing_mode_mask; local 949 cfg |= TAU32_unframed_2048; 952 cfg |= TAU32_unframed_1024; 955 cfg |= TAU32_unframed_512; 958 cfg |= TAU32_unframed_256; 961 cfg |= TAU32_unframed_128; 964 cfg |= TAU32_unframed_64; 974 req->Io.InterfaceConfig.Config = cfg; 979 c->config = cfg; 986 unsigned long cfg local 1013 unsigned long cfg = c->config & ~TAU32_line_mode_mask; local 1040 unsigned long cfg = c->config & ~TAU32_higain; local 1202 unsigned long cfg = c->config & ~TAU32_framing_mode_mask; local 1317 unsigned long cfg = c->config & ~TAU32_scrambler; local 1344 unsigned long cfg = c->config & ~TAU32_monitor; local 1392 unsigned long cfg[2]; local 1453 unsigned long cfg = c->config & ~TAU32_crc4_mf; local [all...] |
/freebsd-11-stable/sys/dev/ctau/ |
H A D | ctau.c | 556 if (b->opt.cfg == CFG_B) 566 if (b->opt.cfg == CFG_C) 588 if (b->opt.cfg == CFG_B) 651 if (b->opt.cfg != CFG_D) { 656 if (b->opt.cfg == CFG_A) { 712 if (b->opt.cfg == CFG_B) 714 else if (b->opt.cfg == CFG_C) 746 if (b->opt.cfg == CFG_A) 748 else if (b->opt.cfg == CFG_D) 829 switch (b->opt.cfg){ [all...] |
H A D | ctddk.c | 186 static void ct_e1_config (ct_board_t *b, unsigned char cfg) argument 188 if (cfg == b->opt.cfg) 191 if (cfg == CFG_B) 197 if (b->opt.cfg == CFG_B) { 203 b->opt.cfg = cfg; 210 static void ct_g703_config (ct_board_t *b, unsigned char cfg) argument 212 if (cfg == b->opt.cfg) 457 ct_set_config(ct_board_t *b, int cfg) argument [all...] |
H A D | ctddk.h | 265 unsigned char cfg; /* E1 configuration II/HI/K */ member in struct:__anon9541 552 int ct_set_config (ct_board_t *b, int cfg); 559 #define ct_get_config(b) ((b)->opt.cfg)
|
/freebsd-11-stable/sys/dev/cxgb/common/ |
H A D | cxgb_mc5.c | 482 u32 cfg = t3_read_reg(adapter, A_MC5_DB_CONFIG); local 487 mc5->part_type = (unsigned char) G_TMTYPE(cfg); 488 if (cfg & F_TMTYPEHI) 491 mc5->tcam_size = tcam_part_size[G_TMPARTSIZE(cfg)];
|