Lines Matching defs:sc
18 #define SMSC_LOCK(sc) k_mutex_lock(&(sc)->lock, K_FOREVER) argument
19 #define SMSC_UNLOCK(sc) k_mutex_unlock(&(sc)->lock) argument
78 struct smsc_data sc; member
89 static ALWAYS_INLINE void smsc_select_bank(struct smsc_data *sc, uint16_t bank) in smsc_select_bank()
94 static ALWAYS_INLINE unsigned int smsc_current_bank(struct smsc_data *sc) in smsc_current_bank()
99 static void smsc_mmu_wait(struct smsc_data *sc) in smsc_mmu_wait()
107 static ALWAYS_INLINE uint8_t smsc_read_1(struct smsc_data *sc, int offset) in smsc_read_1()
112 static ALWAYS_INLINE uint16_t smsc_read_2(struct smsc_data *sc, int offset) in smsc_read_2()
117 static ALWAYS_INLINE void smsc_read_multi_2(struct smsc_data *sc, int offset, uint16_t *datap, in smsc_read_multi_2()
125 static ALWAYS_INLINE void smsc_write_1(struct smsc_data *sc, int offset, uint8_t val) in smsc_write_1()
130 static ALWAYS_INLINE void smsc_write_2(struct smsc_data *sc, int offset, uint16_t val) in smsc_write_2()
135 static ALWAYS_INLINE void smsc_write_multi_2(struct smsc_data *sc, int offset, uint16_t *datap, in smsc_write_multi_2()
143 static uint32_t smsc_mii_bitbang_read(struct smsc_data *sc) in smsc_mii_bitbang_read()
157 static void smsc_mii_bitbang_write(struct smsc_data *sc, uint16_t val) in smsc_mii_bitbang_write()
167 static void smsc_miibus_sync(struct smsc_data *sc) in smsc_miibus_sync()
181 static void smsc_miibus_sendbits(struct smsc_data *sc, uint32_t data, int nbits) in smsc_miibus_sendbits()
202 static int smsc_miibus_readreg(struct smsc_data *sc, int phy, int reg) in smsc_miibus_readreg()
251 static void smsc_miibus_writereg(struct smsc_data *sc, int phy, int reg, uint16_t val) in smsc_miibus_writereg()
273 static void smsc_reset(struct smsc_data *sc) in smsc_reset()
320 static void smsc_enable(struct smsc_data *sc) in smsc_enable()
351 static int smsc_check(struct smsc_data *sc) in smsc_check()
383 struct smsc_data *sc = &data->sc; in smsc_recv_pkt() local
476 static int smsc_send_pkt(struct smsc_data *sc, uint8_t *buf, uint16_t len) in smsc_send_pkt()
555 struct smsc_data *sc = CONTAINER_OF(item, struct smsc_data, isr_work); in smsc_isr_task() local
637 static int smsc_init(struct smsc_data *sc) in smsc_init()
702 struct smsc_data *sc = &data->sc; in eth_tx() local
724 struct smsc_data *sc = &data->sc; in eth_smsc_set_config() local
755 struct smsc_data *sc = &data->sc; in eth_initialize() local
788 struct smsc_data *sc = &data->sc; in eth_smsc_isr() local
806 struct smsc_data *sc = &data->sc; in eth_init() local
864 struct smsc_data *sc = ð_data->sc; in mdio_smsc_read() local
876 struct smsc_data *sc = ð_data->sc; in mdio_smsc_write() local