Lines Matching defs:offset
75 static void bcma_sprom_read(struct bcma_bus *bus, u16 offset, u16 *sprom,
80 sprom[i] = bcma_read16(bus->drv_cc.core, offset + (i * 2));
183 #define SPOFF(offset) ((offset) / sizeof(u16))
204 static s8 sprom_extract_antgain(const u16 *in, u16 offset, u16 mask, u16 shift)
209 v = in[SPOFF(offset)];
559 * offset where SPROM data is located.
561 * On error, returns 0; byte offset otherwise.
566 u32 offset;
572 /* obtain bit offset from otplayout register */
573 offset = (bcma_read32(cc, BCMA_CC_OTPL) & BCMA_CC_OTPL_GURGN_OFFSET);
574 return BCMA_CC_SPROM + (offset >> 3);
579 u16 offset = BCMA_CC_SPROM;
601 /* determine offset */
602 offset = bcma_sprom_onchip_offset(bus);
604 if (!offset || !sprom_onchip) {
619 bcma_debug(bus, "SPROM offset 0x%x\n", offset);
627 bcma_sprom_read(bus, offset, sprom, words);