Lines Matching refs:sio

2233 	u8		sio;  in tlan_finish_reset()  local
2301 sio = tlan_dio_read8(dev->base_addr, TLAN_NET_SIO); in tlan_finish_reset()
2302 sio |= TLAN_NET_SIO_MINTEN; in tlan_finish_reset()
2303 tlan_dio_write8(dev->base_addr, TLAN_NET_SIO, sio); in tlan_finish_reset()
2825 u16 sio, tmp; in tlan_mii_read_reg() local
2834 sio = dev->base_addr + TLAN_DIO_DATA + TLAN_NET_SIO; in tlan_mii_read_reg()
2841 minten = tlan_get_bit(TLAN_NET_SIO_MINTEN, sio); in tlan_mii_read_reg()
2843 tlan_clear_bit(TLAN_NET_SIO_MINTEN, sio); in tlan_mii_read_reg()
2851 tlan_clear_bit(TLAN_NET_SIO_MTXEN, sio); /* change direction */ in tlan_mii_read_reg()
2853 tlan_clear_bit(TLAN_NET_SIO_MCLK, sio); /* clock idle bit */ in tlan_mii_read_reg()
2854 tlan_set_bit(TLAN_NET_SIO_MCLK, sio); in tlan_mii_read_reg()
2855 tlan_clear_bit(TLAN_NET_SIO_MCLK, sio); /* wait 300ns */ in tlan_mii_read_reg()
2857 nack = tlan_get_bit(TLAN_NET_SIO_MDATA, sio); /* check for ACK */ in tlan_mii_read_reg()
2858 tlan_set_bit(TLAN_NET_SIO_MCLK, sio); /* finish ACK */ in tlan_mii_read_reg()
2861 tlan_clear_bit(TLAN_NET_SIO_MCLK, sio); in tlan_mii_read_reg()
2862 tlan_set_bit(TLAN_NET_SIO_MCLK, sio); in tlan_mii_read_reg()
2868 tlan_clear_bit(TLAN_NET_SIO_MCLK, sio); in tlan_mii_read_reg()
2869 if (tlan_get_bit(TLAN_NET_SIO_MDATA, sio)) in tlan_mii_read_reg()
2871 tlan_set_bit(TLAN_NET_SIO_MCLK, sio); in tlan_mii_read_reg()
2876 tlan_clear_bit(TLAN_NET_SIO_MCLK, sio); /* idle cycle */ in tlan_mii_read_reg()
2877 tlan_set_bit(TLAN_NET_SIO_MCLK, sio); in tlan_mii_read_reg()
2880 tlan_set_bit(TLAN_NET_SIO_MINTEN, sio); in tlan_mii_read_reg()
2914 u16 sio; in tlan_mii_send_data() local
2921 sio = base_port + TLAN_DIO_DATA + TLAN_NET_SIO; in tlan_mii_send_data()
2922 tlan_set_bit(TLAN_NET_SIO_MTXEN, sio); in tlan_mii_send_data()
2925 tlan_clear_bit(TLAN_NET_SIO_MCLK, sio); in tlan_mii_send_data()
2926 (void) tlan_get_bit(TLAN_NET_SIO_MCLK, sio); in tlan_mii_send_data()
2928 tlan_set_bit(TLAN_NET_SIO_MDATA, sio); in tlan_mii_send_data()
2930 tlan_clear_bit(TLAN_NET_SIO_MDATA, sio); in tlan_mii_send_data()
2931 tlan_set_bit(TLAN_NET_SIO_MCLK, sio); in tlan_mii_send_data()
2932 (void) tlan_get_bit(TLAN_NET_SIO_MCLK, sio); in tlan_mii_send_data()
2957 u16 sio; in tlan_mii_sync() local
2960 sio = base_port + TLAN_DIO_DATA + TLAN_NET_SIO; in tlan_mii_sync()
2962 tlan_clear_bit(TLAN_NET_SIO_MTXEN, sio); in tlan_mii_sync()
2964 tlan_clear_bit(TLAN_NET_SIO_MCLK, sio); in tlan_mii_sync()
2965 tlan_set_bit(TLAN_NET_SIO_MCLK, sio); in tlan_mii_sync()
2996 u16 sio; in tlan_mii_write_reg() local
3002 sio = dev->base_addr + TLAN_DIO_DATA + TLAN_NET_SIO; in tlan_mii_write_reg()
3009 minten = tlan_get_bit(TLAN_NET_SIO_MINTEN, sio); in tlan_mii_write_reg()
3011 tlan_clear_bit(TLAN_NET_SIO_MINTEN, sio); in tlan_mii_write_reg()
3021 tlan_clear_bit(TLAN_NET_SIO_MCLK, sio); /* idle cycle */ in tlan_mii_write_reg()
3022 tlan_set_bit(TLAN_NET_SIO_MCLK, sio); in tlan_mii_write_reg()
3025 tlan_set_bit(TLAN_NET_SIO_MINTEN, sio); in tlan_mii_write_reg()
3066 u16 sio; in tlan_ee_send_start() local
3069 sio = io_base + TLAN_DIO_DATA + TLAN_NET_SIO; in tlan_ee_send_start()
3071 tlan_set_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_send_start()
3072 tlan_set_bit(TLAN_NET_SIO_EDATA, sio); in tlan_ee_send_start()
3073 tlan_set_bit(TLAN_NET_SIO_ETXEN, sio); in tlan_ee_send_start()
3074 tlan_clear_bit(TLAN_NET_SIO_EDATA, sio); in tlan_ee_send_start()
3075 tlan_clear_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_send_start()
3108 u16 sio; in tlan_ee_send_byte() local
3111 sio = io_base + TLAN_DIO_DATA + TLAN_NET_SIO; in tlan_ee_send_byte()
3116 tlan_set_bit(TLAN_NET_SIO_EDATA, sio); in tlan_ee_send_byte()
3118 tlan_clear_bit(TLAN_NET_SIO_EDATA, sio); in tlan_ee_send_byte()
3119 tlan_set_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_send_byte()
3120 tlan_clear_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_send_byte()
3122 tlan_clear_bit(TLAN_NET_SIO_ETXEN, sio); in tlan_ee_send_byte()
3123 tlan_set_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_send_byte()
3124 err = tlan_get_bit(TLAN_NET_SIO_EDATA, sio); in tlan_ee_send_byte()
3125 tlan_clear_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_send_byte()
3126 tlan_set_bit(TLAN_NET_SIO_ETXEN, sio); in tlan_ee_send_byte()
3130 tlan_clear_bit(TLAN_NET_SIO_EDATA, sio); in tlan_ee_send_byte()
3131 tlan_set_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_send_byte()
3132 tlan_set_bit(TLAN_NET_SIO_EDATA, sio); in tlan_ee_send_byte()
3169 u16 sio; in tlan_ee_receive_byte() local
3172 sio = io_base + TLAN_DIO_DATA + TLAN_NET_SIO; in tlan_ee_receive_byte()
3176 tlan_clear_bit(TLAN_NET_SIO_ETXEN, sio); in tlan_ee_receive_byte()
3178 tlan_set_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_receive_byte()
3179 if (tlan_get_bit(TLAN_NET_SIO_EDATA, sio)) in tlan_ee_receive_byte()
3181 tlan_clear_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_receive_byte()
3184 tlan_set_bit(TLAN_NET_SIO_ETXEN, sio); in tlan_ee_receive_byte()
3186 tlan_clear_bit(TLAN_NET_SIO_EDATA, sio); /* ack = 0 */ in tlan_ee_receive_byte()
3187 tlan_set_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_receive_byte()
3188 tlan_clear_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_receive_byte()
3190 tlan_set_bit(TLAN_NET_SIO_EDATA, sio); /* no ack = 1 (?) */ in tlan_ee_receive_byte()
3191 tlan_set_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_receive_byte()
3192 tlan_clear_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_receive_byte()
3194 tlan_clear_bit(TLAN_NET_SIO_EDATA, sio); in tlan_ee_receive_byte()
3195 tlan_set_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_receive_byte()
3196 tlan_set_bit(TLAN_NET_SIO_EDATA, sio); in tlan_ee_receive_byte()