Home
last modified time | relevance | path

Searched refs:SPOFF (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/bcma/
H A Dsprom.c183 #define SPOFF(offset) ((offset) / sizeof(u16)) macro
186 bus->sprom._field = ((sprom[SPOFF(_offset)] & (_mask)) >> (_shift))
189 bus->sprom._field = ((((u32)sprom[SPOFF((_offset)+2)] << 16 | \
190 sprom[SPOFF(_offset)]) & (_mask)) >> (_shift))
209 v = in[SPOFF(offset)]; in sprom_extract_antgain()
233 v = sprom[SPOFF(SSB_SPROM8_IL0MAC) + i]; in bcma_sprom_extract_r8()
/openbmc/linux/drivers/ssb/
H A Dpci.c169 #define SPOFF(offset) ((offset) / sizeof(u16)) macro
172 out->_outvar = ((in[SPOFF(_offset)] & (_mask)) >> (_shift))
174 out->_outvar = ((((u32)in[SPOFF((_offset)+2)] << 16 | \
175 in[SPOFF(_offset)]) & (_mask)) >> (_shift))
333 v = in[SPOFF(offset)]; in sprom_extract_antgain()
374 sprom_get_mac(out->il0mac, &in[SPOFF(loc[0])]); in sprom_extract_r123()
376 sprom_get_mac(out->et0mac, &in[SPOFF(loc[1])]); in sprom_extract_r123()
377 sprom_get_mac(out->et1mac, &in[SPOFF(loc[2])]); in sprom_extract_r123()
486 sprom_get_mac(out->il0mac, &in[SPOFF(il0mac_offset)]); in sprom_extract_r45()
606 sprom_get_mac(out->il0mac, &in[SPOFF(SSB_SPROM8_IL0MAC)]); in sprom_extract_r8()