Lines Matching refs:words
76 size_t words) in bcma_sprom_read() argument
79 for (i = 0; i < words; i++) in bcma_sprom_read()
127 static u8 bcma_sprom_crc(const u16 *sprom, size_t words) in bcma_sprom_crc() argument
132 for (word = 0; word < words - 1; word++) { 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()
158 size_t words) in bcma_sprom_valid() argument
163 err = bcma_sprom_check_crc(sprom, words); in bcma_sprom_valid()
167 revision = sprom[words - 1] & SSB_SPROM_REVISION_REV; in bcma_sprom_valid()
621 size_t words = sprom_sizes[i]; in bcma_sprom_get() local
623 sprom = kcalloc(words, sizeof(u16), GFP_KERNEL); in bcma_sprom_get()
627 bcma_sprom_read(bus, offset, sprom, words); in bcma_sprom_get()
628 err = bcma_sprom_valid(bus, sprom, words); in bcma_sprom_get()