/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/ |
D | ppr.c | 72 struct ssb_sprom *sprom = dev->dev->bus_sprom; in b43_ppr_load_max_from_sprom() local 82 maxpwr = min(sprom->core_pwr_info[0].maxpwr_2g, in b43_ppr_load_max_from_sprom() 83 sprom->core_pwr_info[1].maxpwr_2g); in b43_ppr_load_max_from_sprom() 84 sprom_ofdm_po = sprom->ofdm2gpo; in b43_ppr_load_max_from_sprom() 85 sprom_mcs_po = sprom->mcs2gpo; in b43_ppr_load_max_from_sprom() 86 extra_cdd_po = (sprom->cddpo >> 0) & 0xf; in b43_ppr_load_max_from_sprom() 87 extra_stbc_po = (sprom->stbcpo >> 0) & 0xf; in b43_ppr_load_max_from_sprom() 90 maxpwr = min(sprom->core_pwr_info[0].maxpwr_5gl, in b43_ppr_load_max_from_sprom() 91 sprom->core_pwr_info[1].maxpwr_5gl); in b43_ppr_load_max_from_sprom() 92 sprom_ofdm_po = sprom->ofdm5glpo; in b43_ppr_load_max_from_sprom() [all …]
|
D | leds.c | 205 u8 sprom[4]; in b43_led_get_sprominfo() local 207 sprom[0] = dev->dev->bus_sprom->gpio0; in b43_led_get_sprominfo() 208 sprom[1] = dev->dev->bus_sprom->gpio1; in b43_led_get_sprominfo() 209 sprom[2] = dev->dev->bus_sprom->gpio2; in b43_led_get_sprominfo() 210 sprom[3] = dev->dev->bus_sprom->gpio3; in b43_led_get_sprominfo() 212 if ((sprom[0] & sprom[1] & sprom[2] & sprom[3]) == 0xff) { in b43_led_get_sprominfo() 241 if (sprom[led_index] == 0xff) in b43_led_get_sprominfo() 244 *behaviour = sprom[led_index] & B43_LED_BEHAVIOUR; in b43_led_get_sprominfo() 245 *activelow = !!(sprom[led_index] & B43_LED_ACTIVELOW); in b43_led_get_sprominfo()
|
D | phy_lp.c | 76 struct ssb_sprom *sprom = dev->dev->bus_sprom; in lpphy_read_band_sprom() local 83 lpphy->tx_isolation_med_band = sprom->tri2g; in lpphy_read_band_sprom() 84 lpphy->bx_arch = sprom->bxa2g; in lpphy_read_band_sprom() 85 lpphy->rx_pwr_offset = sprom->rxpo2g; in lpphy_read_band_sprom() 86 lpphy->rssi_vf = sprom->rssismf2g; in lpphy_read_band_sprom() 87 lpphy->rssi_vc = sprom->rssismc2g; in lpphy_read_band_sprom() 88 lpphy->rssi_gs = sprom->rssisav2g; in lpphy_read_band_sprom() 89 lpphy->txpa[0] = sprom->pa0b0; in lpphy_read_band_sprom() 90 lpphy->txpa[1] = sprom->pa0b1; in lpphy_read_band_sprom() 91 lpphy->txpa[2] = sprom->pa0b2; in lpphy_read_band_sprom() [all …]
|
D | phy_ht.c | 624 struct ssb_sprom *sprom = dev->dev->bus_sprom; in b43_phy_ht_tx_power_ctl_setup() local 635 target[c] = sprom->core_pwr_info[c].maxpwr_2g; in b43_phy_ht_tx_power_ctl_setup() 636 a1[c] = sprom->core_pwr_info[c].pa_2g[0]; in b43_phy_ht_tx_power_ctl_setup() 637 b0[c] = sprom->core_pwr_info[c].pa_2g[1]; in b43_phy_ht_tx_power_ctl_setup() 638 b1[c] = sprom->core_pwr_info[c].pa_2g[2]; in b43_phy_ht_tx_power_ctl_setup() 642 target[c] = sprom->core_pwr_info[c].maxpwr_5gl; in b43_phy_ht_tx_power_ctl_setup() 643 a1[c] = sprom->core_pwr_info[c].pa_5gl[0]; in b43_phy_ht_tx_power_ctl_setup() 644 b0[c] = sprom->core_pwr_info[c].pa_5gl[1]; in b43_phy_ht_tx_power_ctl_setup() 645 b1[c] = sprom->core_pwr_info[c].pa_5gl[2]; in b43_phy_ht_tx_power_ctl_setup() 649 target[c] = sprom->core_pwr_info[c].maxpwr_5g; in b43_phy_ht_tx_power_ctl_setup() [all …]
|
D | tables_nphy.c | 3482 struct ssb_sprom *sprom = dev->dev->bus_sprom; in b43_nphy_tables_init_rev7_volatile() local 3493 antswlut = sprom->fem.ghz5.antswlut; in b43_nphy_tables_init_rev7_volatile() 3495 antswlut = sprom->fem.ghz2.antswlut; in b43_nphy_tables_init_rev7_volatile() 3553 struct ssb_sprom *sprom = dev->dev->bus_sprom; in b43_nphy_tables_init_rev3() local 3557 antswlut = sprom->fem.ghz5.antswlut; in b43_nphy_tables_init_rev3() 3559 antswlut = sprom->fem.ghz2.antswlut; in b43_nphy_tables_init_rev3() 3689 struct ssb_sprom *sprom = dev->dev->bus_sprom; in b43_nphy_get_tx_gain_table() local 3704 return sprom->fem.ghz5.extpa_gain == 3 ? in b43_nphy_get_tx_gain_table() 3718 if (sprom->fem.ghz2.extpa_gain == 3) in b43_nphy_get_tx_gain_table()
|
D | bus.c | 109 dev->board_rev = core->bus->sprom.board_rev; in b43_bus_dev_bcma_init() 115 dev->bus_sprom = &core->bus->sprom; in b43_bus_dev_bcma_init() 208 dev->board_rev = sdev->bus->sprom.board_rev; in b43_bus_dev_ssb_init() 214 dev->bus_sprom = &sdev->bus->sprom; in b43_bus_dev_ssb_init()
|
D | tables_phy_lcn.c | 687 struct ssb_sprom *sprom = dev->dev->bus_sprom; in b43_phy_lcn_tables_init() local 692 if (sprom->boardflags_lo & B43_BFL_FEM) in b43_phy_lcn_tables_init() 700 if (sprom->boardflags_lo & B43_BFL_FEM && in b43_phy_lcn_tables_init() 701 !(sprom->boardflags_hi & B43_BFH_FEM_BT)) in b43_phy_lcn_tables_init()
|
D | phy_n.c | 1125 struct ssb_sprom *sprom = dev->dev->bus_sprom; in b43_radio_2056_setup() local 1145 if (sprom->boardflags2_lo & B43_BFL2_GPLL_WAR && in b43_radio_2056_setup() 1158 if (sprom->boardflags2_hi & B43_BFH2_GPLL_WAR2 && in b43_radio_2056_setup() 1165 if (sprom->boardflags2_lo & B43_BFL2_APLL_WAR && in b43_radio_2056_setup() 1438 struct ssb_sprom *sprom = dev->dev->bus_sprom; in b43_radio_init2055_post() local 1441 if (sprom->revision < 4) in b43_radio_init2055_post() 1447 !(sprom->boardflags2_lo & B43_BFL2_RXBB_INT_REG_DIS); in b43_radio_init2055_post() 2491 struct ssb_sprom *sprom = dev->dev->bus_sprom; in b43_nphy_gain_ctl_workarounds_rev3() local 2503 ext_lna = ghz5 ? sprom->boardflags_hi & B43_BFH_EXTLNA_5GHZ : in b43_nphy_gain_ctl_workarounds_rev3() 2504 sprom->boardflags_lo & B43_BFL_EXTLNA; in b43_nphy_gain_ctl_workarounds_rev3() [all …]
|
/kernel/linux/linux-5.10/drivers/ssb/ |
D | sprom.c | 23 static int sprom2hex(const u16 *sprom, char *buf, size_t buf_len, in sprom2hex() argument 30 "%04X", swab16(sprom[i]) & 0xFFFF); in sprom2hex() 36 static int hex2sprom(u16 *sprom, const char *dump, size_t len, in hex2sprom() argument 60 sprom[cnt++] = swab16((u16)parsed); in hex2sprom() 68 int (*sprom_read)(struct ssb_bus *bus, u16 *sprom)) in ssb_attr_sprom_show() argument 70 u16 *sprom; in ssb_attr_sprom_show() local 75 sprom = kcalloc(sprom_size_words, sizeof(u16), GFP_KERNEL); in ssb_attr_sprom_show() 76 if (!sprom) in ssb_attr_sprom_show() 86 err = sprom_read(bus, sprom); in ssb_attr_sprom_show() 90 count = sprom2hex(sprom, buf, PAGE_SIZE, sprom_size_words); in ssb_attr_sprom_show() [all …]
|
D | pcmcia.c | 525 static int ssb_pcmcia_sprom_read_all(struct ssb_bus *bus, u16 *sprom) in ssb_pcmcia_sprom_read_all() argument 530 err = ssb_pcmcia_sprom_read(bus, i, &sprom[i]); in ssb_pcmcia_sprom_read_all() 539 static int ssb_pcmcia_sprom_write_all(struct ssb_bus *bus, const u16 *sprom) in ssb_pcmcia_sprom_write_all() argument 562 err = ssb_pcmcia_sprom_write(bus, i, sprom[i]); in ssb_pcmcia_sprom_write_all() 583 static int ssb_pcmcia_sprom_check_crc(const u16 *sprom, size_t size) in ssb_pcmcia_sprom_check_crc() argument 600 struct ssb_sprom *sprom = priv; in ssb_pcmcia_get_mac() local 608 memcpy(sprom->il0mac, &tuple->TupleData[2], ETH_ALEN); in ssb_pcmcia_get_mac() 617 struct ssb_sprom *sprom = &iv->sprom; in ssb_pcmcia_do_get_invariants() local 633 sprom->board_rev = tuple->TupleData[1]; in ssb_pcmcia_do_get_invariants() 639 sprom->pa0b0 = tuple->TupleData[1] | in ssb_pcmcia_do_get_invariants() [all …]
|
D | sdio.c | 474 struct ssb_sprom *sprom = &iv->sprom; in ssb_sdio_get_invariants() local 480 memset(sprom, 0xFF, sizeof(*sprom)); in ssb_sdio_get_invariants() 481 sprom->boardflags_lo = 0; in ssb_sdio_get_invariants() 482 sprom->boardflags_hi = 0; in ssb_sdio_get_invariants() 495 memcpy(sprom->il0mac, mac, ETH_ALEN); in ssb_sdio_get_invariants() 496 memcpy(sprom->et1mac, mac, ETH_ALEN); in ssb_sdio_get_invariants() 507 sprom->revision = tuple->data[1]; in ssb_sdio_get_invariants() 519 sprom->board_rev = tuple->data[1]; in ssb_sdio_get_invariants() 525 sprom->pa0b0 = tuple->data[1] | in ssb_sdio_get_invariants() 527 sprom->pa0b1 = tuple->data[3] | in ssb_sdio_get_invariants() [all …]
|
D | pci.c | 241 static u8 ssb_sprom_crc(const u16 *sprom, u16 size) in ssb_sprom_crc() argument 247 crc = ssb_crc8(crc, sprom[word] & 0x00FF); in ssb_sprom_crc() 248 crc = ssb_crc8(crc, (sprom[word] & 0xFF00) >> 8); in ssb_sprom_crc() 250 crc = ssb_crc8(crc, sprom[size - 1] & 0x00FF); in ssb_sprom_crc() 256 static int sprom_check_crc(const u16 *sprom, size_t size) in sprom_check_crc() argument 262 crc = ssb_sprom_crc(sprom, size); in sprom_check_crc() 263 tmp = sprom[size - 1] & SSB_SPROM_REVISION_CRC; in sprom_check_crc() 271 static int sprom_do_read(struct ssb_bus *bus, u16 *sprom) in sprom_do_read() argument 276 sprom[i] = ioread16(bus->mmio + bus->sprom_offset + (i * 2)); in sprom_do_read() 281 static int sprom_do_write(struct ssb_bus *bus, const u16 *sprom) in sprom_do_write() argument [all …]
|
D | ssb_private.h | 149 int (*sprom_read)(struct ssb_bus *bus, u16 *sprom)); 153 int (*sprom_check_crc)(const u16 *sprom, size_t size), 154 int (*sprom_write)(struct ssb_bus *bus, const u16 *sprom));
|
/kernel/linux/linux-5.10/drivers/bcma/ |
D | sprom.c | 64 bus->sprom.revision); in bcma_fill_sprom_with_fallback() 75 static void bcma_sprom_read(struct bcma_bus *bus, u16 offset, u16 *sprom, in bcma_sprom_read() argument 80 sprom[i] = bcma_read16(bus->drv_cc.core, offset + (i * 2)); in bcma_sprom_read() 127 static u8 bcma_sprom_crc(const u16 *sprom, size_t words) in bcma_sprom_crc() argument 133 crc = bcma_crc8(crc, sprom[word] & 0x00FF); in bcma_sprom_crc() 134 crc = bcma_crc8(crc, (sprom[word] & 0xFF00) >> 8); in bcma_sprom_crc() 136 crc = bcma_crc8(crc, sprom[words - 1] & 0x00FF); in bcma_sprom_crc() 142 static int bcma_sprom_check_crc(const u16 *sprom, size_t words) in bcma_sprom_check_crc() argument 148 crc = bcma_sprom_crc(sprom, words); in bcma_sprom_check_crc() 149 tmp = sprom[words - 1] & SSB_SPROM_REVISION_CRC; in bcma_sprom_check_crc() [all …]
|
D | driver_chipcommon.c | 221 if (cc->core->bus->sprom.leddc_on_time && in bcma_core_chipcommon_init() 222 cc->core->bus->sprom.leddc_off_time) { in bcma_core_chipcommon_init() 223 leddc_on = cc->core->bus->sprom.leddc_on_time; in bcma_core_chipcommon_init() 224 leddc_off = cc->core->bus->sprom.leddc_off_time; in bcma_core_chipcommon_init()
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43legacy/ |
D | leds.c | 179 u8 sprom[4]; in b43legacy_leds_init() local 184 sprom[0] = bus->sprom.gpio0; in b43legacy_leds_init() 185 sprom[1] = bus->sprom.gpio1; in b43legacy_leds_init() 186 sprom[2] = bus->sprom.gpio2; in b43legacy_leds_init() 187 sprom[3] = bus->sprom.gpio3; in b43legacy_leds_init() 190 if (sprom[i] == 0xFF) { in b43legacy_leds_init() 217 behaviour = sprom[i] & B43legacy_LED_BEHAVIOUR; in b43legacy_leds_init() 218 activelow = !!(sprom[i] & B43legacy_LED_ACTIVELOW); in b43legacy_leds_init()
|
D | phy.c | 386 (dev->dev->bus->sprom.board_rev == 0x0017)) in b43legacy_phy_setupg() 402 (dev->dev->bus->sprom.board_rev == 0x0017)) in b43legacy_phy_setupg() 417 if (dev->dev->bus->sprom.boardflags_lo & B43legacy_BFL_PACTRL) in b43legacy_phy_inita() 519 if (dev->dev->bus->sprom.boardflags_lo & B43legacy_BFL_RSSI) { in b43legacy_phy_initb4() 677 if (dev->dev->bus->sprom.boardflags_lo & 0x8000) { in b43legacy_phy_initb6() 775 if (dev->dev->bus->sprom.boardflags_lo & in b43legacy_phy_initb6() 899 if (dev->dev->bus->sprom.boardflags_lo & B43legacy_BFL_EXTLNA) { in b43legacy_calc_loopback_gain() 1054 if (dev->dev->bus->sprom.boardflags_lo & in b43legacy_phy_initg() 1069 if (!(dev->dev->bus->sprom.boardflags_lo & B43legacy_BFL_RSSI)) { in b43legacy_phy_initg() 1817 max_pwr = dev->dev->bus->sprom.maxpwr_bg; in b43legacy_phy_xmitpower() [all …]
|
/kernel/linux/linux-5.10/drivers/firmware/broadcom/ |
D | bcm47xx_sprom.c | 176 if (_revmask & BIT(sprom->revision)) \ 177 nvram_read_ ## _type(_prefix, NULL, _name, &sprom->_val, \ 188 static void bcm47xx_sprom_fill_auto(struct ssb_sprom *sprom, in bcm47xx_sprom_fill_auto() argument 409 static void bcm47xx_fill_sprom_path_r4589(struct ssb_sprom *sprom, in bcm47xx_fill_sprom_path_r4589() argument 415 for (i = 0; i < ARRAY_SIZE(sprom->core_pwr_info); i++) { in bcm47xx_fill_sprom_path_r4589() 418 pwr_info = &sprom->core_pwr_info[i]; in bcm47xx_fill_sprom_path_r4589() 460 static void bcm47xx_fill_sprom_path_r45(struct ssb_sprom *sprom, in bcm47xx_fill_sprom_path_r45() argument 466 for (i = 0; i < ARRAY_SIZE(sprom->core_pwr_info); i++) { in bcm47xx_fill_sprom_path_r45() 469 pwr_info = &sprom->core_pwr_info[i]; in bcm47xx_fill_sprom_path_r45() 510 static void bcm47xx_fill_sprom_ethernet(struct ssb_sprom *sprom, in bcm47xx_fill_sprom_ethernet() argument [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | led.c | 58 struct ssb_sprom *sprom = &wl->wlc->hw->d11core->bus->sprom; in brcms_led_register() local 59 u8 *leds[] = { &sprom->gpio0, in brcms_led_register() 60 &sprom->gpio1, in brcms_led_register() 61 &sprom->gpio2, in brcms_led_register() 62 &sprom->gpio3 }; in brcms_led_register()
|
D | antsel.c | 112 struct ssb_sprom *sprom = &wlc->hw->d11core->bus->sprom; in brcms_c_antsel_attach() local 122 asi->antsel_antswitch = sprom->antswitch; in brcms_c_antsel_attach() 132 if ((sprom->ant_available_bg == 7) || in brcms_c_antsel_attach() 133 (sprom->ant_available_a == 7)) { in brcms_c_antsel_attach() 136 sprom->ant_available_bg == 3 || in brcms_c_antsel_attach() 137 sprom->ant_available_a == 3) { in brcms_c_antsel_attach() 151 (sprom->ant_available_bg == 7) && in brcms_c_antsel_attach() 152 (sprom->ant_available_a == 0)) { in brcms_c_antsel_attach()
|
D | stf.c | 372 struct ssb_sprom *sprom = &wlc->hw->d11core->bus->sprom; in brcms_c_stf_phy_chain_calc() local 375 wlc->stf->hw_txchain = sprom->txchain; in brcms_c_stf_phy_chain_calc() 376 wlc->stf->hw_rxchain = sprom->rxchain; in brcms_c_stf_phy_chain_calc()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/ |
D | bgmac-bcma.c | 115 struct ssb_sprom *sprom = &core->bus->sprom; in bgmac_probe() local 138 mac = sprom->et0mac; in bgmac_probe() 141 mac = sprom->et1mac; in bgmac_probe() 144 mac = sprom->et2mac; in bgmac_probe() 167 bgmac->phyaddr = sprom->et0phyaddr; in bgmac_probe() 170 bgmac->phyaddr = sprom->et1phyaddr; in bgmac_probe() 173 bgmac->phyaddr = sprom->et2phyaddr; in bgmac_probe() 208 bgmac->has_robosw = !!(sprom->boardflags_lo & BGMAC_BFL_ENETROBO); in bgmac_probe() 212 if (sprom->boardflags_lo & BGMAC_BFL_ENETADM) in bgmac_probe()
|
/kernel/linux/linux-5.10/include/linux/ |
D | bcm47xx_sprom.h | 15 void bcm47xx_fill_sprom(struct ssb_sprom *sprom, const char *prefix, 19 static inline void bcm47xx_fill_sprom(struct ssb_sprom *sprom, in bcm47xx_fill_sprom() argument
|
/kernel/linux/linux-5.10/include/linux/ssb/ |
D | ssb_driver_gige.h | 77 return !!(dev->dev->bus->sprom.boardflags_lo & in ssb_gige_have_roboswitch() 108 memcpy(macaddr, dev->dev->bus->sprom.et0mac, 6); in ssb_gige_get_macaddr() 119 return dev->dev->bus->sprom.et0phyaddr; in ssb_gige_get_phyaddr()
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
D | phy_n.c | 14378 struct ssb_sprom *sprom = &pi->d11core->bus->sprom; in wlc_phy_txpwr_srom_read_ppr_nphy() local 14383 bw40po = sprom->bw40po; in wlc_phy_txpwr_srom_read_ppr_nphy() 14389 cddpo = sprom->cddpo; in wlc_phy_txpwr_srom_read_ppr_nphy() 14395 stbcpo = sprom->stbcpo; in wlc_phy_txpwr_srom_read_ppr_nphy() 14401 bwduppo = sprom->bwduppo; in wlc_phy_txpwr_srom_read_ppr_nphy() 14412 sprom->core_pwr_info[0].maxpwr_2g; in wlc_phy_txpwr_srom_read_ppr_nphy() 14414 sprom->core_pwr_info[1].maxpwr_2g; in wlc_phy_txpwr_srom_read_ppr_nphy() 14416 sprom->core_pwr_info[0].pa_2g[0]; in wlc_phy_txpwr_srom_read_ppr_nphy() 14418 sprom->core_pwr_info[1].pa_2g[0]; in wlc_phy_txpwr_srom_read_ppr_nphy() 14420 sprom->core_pwr_info[0].pa_2g[1]; in wlc_phy_txpwr_srom_read_ppr_nphy() [all …]
|