/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/ |
H A 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 in b43_ppr_load_max_from_sprom() [all...] |
H A 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_inde in b43_led_get_sprominfo() [all...] |
H A 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 in b43_phy_ht_tx_power_ctl_setup() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/b43/ |
H A 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 in b43_ppr_load_max_from_sprom() [all...] |
H A 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_inde in b43_led_get_sprominfo() [all...] |
/kernel/linux/linux-5.10/drivers/ssb/ |
H A 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() 66 /* Common sprom device-attribute show-handler */ 68 int (*sprom_read)(struct ssb_bus *bus, u16 *sprom)) in ssb_attr_sprom_show() 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() 67 ssb_attr_sprom_show(struct ssb_bus *bus, char *buf, int (*sprom_read)(struct ssb_bus *bus, u16 *sprom)) ssb_attr_sprom_show() argument 99 ssb_attr_sprom_store(struct ssb_bus *bus, const char *buf, size_t count, int (*sprom_check_crc)(const u16 *sprom, size_t size), int (*sprom_write)(struct ssb_bus *bus, const u16 *sprom)) ssb_attr_sprom_store() argument 104 u16 *sprom; ssb_attr_sprom_store() local [all...] |
H A 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 in ssb_pcmcia_do_get_invariants() 700 struct ssb_sprom *sprom = &iv->sprom; ssb_pcmcia_get_invariants() local [all...] |
H A 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 in ssb_sdio_get_invariants() [all...] |
/kernel/linux/linux-6.6/drivers/ssb/ |
H A 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() 66 /* Common sprom device-attribute show-handler */ 68 int (*sprom_read)(struct ssb_bus *bus, u16 *sprom)) in ssb_attr_sprom_show() 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() 67 ssb_attr_sprom_show(struct ssb_bus *bus, char *buf, int (*sprom_read)(struct ssb_bus *bus, u16 *sprom)) ssb_attr_sprom_show() argument 99 ssb_attr_sprom_store(struct ssb_bus *bus, const char *buf, size_t count, int (*sprom_check_crc)(const u16 *sprom, size_t size), int (*sprom_write)(struct ssb_bus *bus, const u16 *sprom)) ssb_attr_sprom_store() argument 104 u16 *sprom; ssb_attr_sprom_store() local [all...] |
H A 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 in ssb_pcmcia_do_get_invariants() 700 struct ssb_sprom *sprom = &iv->sprom; ssb_pcmcia_get_invariants() local [all...] |
H A 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 in ssb_sdio_get_invariants() [all...] |
/kernel/linux/linux-5.10/drivers/bcma/ |
H A 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[word in bcma_sprom_check_crc() 157 bcma_sprom_valid(struct bcma_bus *bus, const u16 *sprom, size_t words) bcma_sprom_valid() argument 221 bcma_sprom_extract_r8(struct bcma_bus *bus, const u16 *sprom) bcma_sprom_extract_r8() argument 580 u16 *sprom; bcma_sprom_get() local [all...] |
/kernel/linux/linux-6.6/drivers/bcma/ |
H A 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[word in bcma_sprom_check_crc() 157 bcma_sprom_valid(struct bcma_bus *bus, const u16 *sprom, size_t words) bcma_sprom_valid() argument 221 bcma_sprom_extract_r8(struct bcma_bus *bus, const u16 *sprom) bcma_sprom_extract_r8() argument 580 u16 *sprom; bcma_sprom_get() local [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43legacy/ |
H A 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[ in b43legacy_leds_init() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/b43legacy/ |
H A 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[ in b43legacy_leds_init() [all...] |
/kernel/linux/linux-5.10/drivers/firmware/broadcom/ |
H A D | bcm47xx_sprom.c | 174 /* This is one-function-only macro, it uses local "sprom" variable! */ 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 in bcm47xx_fill_sprom_path_r45() 510 bcm47xx_fill_sprom_ethernet(struct ssb_sprom *sprom, const char *prefix, bool fallback) bcm47xx_fill_sprom_ethernet() argument 555 bcm47xx_fill_board_data(struct ssb_sprom *sprom, const char *prefix, bool fallback) bcm47xx_fill_board_data() argument 564 bcm47xx_fill_sprom(struct ssb_sprom *sprom, const char *prefix, bool fallback) bcm47xx_fill_sprom() argument [all...] |
/kernel/linux/linux-6.6/drivers/firmware/broadcom/ |
H A D | bcm47xx_sprom.c | 174 /* This is one-function-only macro, it uses local "sprom" variable! */ 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 in bcm47xx_fill_sprom_path_r45() 510 bcm47xx_fill_sprom_ethernet(struct ssb_sprom *sprom, const char *prefix, bool fallback) bcm47xx_fill_sprom_ethernet() argument 555 bcm47xx_fill_board_data(struct ssb_sprom *sprom, const char *prefix, bool fallback) bcm47xx_fill_board_data() argument 564 bcm47xx_fill_sprom(struct ssb_sprom *sprom, const char *prefix, bool fallback) bcm47xx_fill_sprom() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A 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()
|
H A 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()
|
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A 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()
|
H A D | led.c | 59 struct ssb_sprom *sprom = &wl->wlc->hw->d11core->bus->sprom; in brcms_led_register() local 60 u8 *leds[] = { &sprom->gpio0, in brcms_led_register() 61 &sprom->gpio1, in brcms_led_register() 62 &sprom->gpio2, in brcms_led_register() 63 &sprom->gpio3 }; in brcms_led_register()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/ |
H A 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 in bgmac_probe() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/ |
H A D | bgmac-bcma.c | 127 struct ssb_sprom *sprom = &core->bus->sprom; in bgmac_probe() local 151 mac = sprom->et0mac; in bgmac_probe() 154 mac = sprom->et1mac; in bgmac_probe() 157 mac = sprom->et2mac; in bgmac_probe() 179 bgmac->phyaddr = sprom->et0phyaddr; in bgmac_probe() 182 bgmac->phyaddr = sprom->et1phyaddr; in bgmac_probe() 185 bgmac->phyaddr = sprom->et2phyaddr; in bgmac_probe() 220 bgmac->has_robosw = !!(sprom->boardflags_lo & BGMAC_BFL_ENETROBO); in bgmac_probe() 224 if (sprom in bgmac_probe() [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A 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-6.6/include/linux/ |
H A 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
|