Lines Matching refs:sprom
466 maxpower = bcm->sprom.maxpower_aphy;
468 maxpower = bcm->sprom.maxpower_bgphy;
726 /* Enough buffer to hold a hexdump of the sprom data. */
729 static int sprom2hex(const u16 *sprom, char *dump)
735 "%04X", swab16(sprom[i]) & 0xFFFF);
741 static int hex2sprom(u16 *sprom, const char *dump, unsigned int len)
753 sprom[cnt++] = swab16((u16)parsed);
766 u16 *sprom;
773 sprom = kmalloc(BCM43xx_SPROM_SIZE * sizeof(*sprom),
775 if (!sprom)
782 err = bcm43xx_sprom_read(bcm, sprom);
786 data->data.length = sprom2hex(sprom, extra);
787 kfree(sprom);
799 u16 *sprom;
808 sprom = kmalloc(BCM43xx_SPROM_SIZE * sizeof(*sprom),
810 if (!sprom)
821 err = hex2sprom(sprom, input, len);
830 err = bcm43xx_sprom_write(bcm, sprom);
835 kfree(sprom);