Lines Matching full:sio

2234 	u8		sio;  in tlan_finish_reset()  local
2302 sio = tlan_dio_read8(dev->base_addr, TLAN_NET_SIO); in tlan_finish_reset()
2303 sio |= TLAN_NET_SIO_MINTEN; in tlan_finish_reset()
2304 tlan_dio_write8(dev->base_addr, TLAN_NET_SIO, sio); in tlan_finish_reset()
2828 * the TLAN SIO register.
2836 u16 sio, tmp; in __tlan_mii_read_reg() local
2846 sio = dev->base_addr + TLAN_DIO_DATA + TLAN_NET_SIO; in __tlan_mii_read_reg()
2850 minten = tlan_get_bit(TLAN_NET_SIO_MINTEN, sio); in __tlan_mii_read_reg()
2852 tlan_clear_bit(TLAN_NET_SIO_MINTEN, sio); in __tlan_mii_read_reg()
2860 tlan_clear_bit(TLAN_NET_SIO_MTXEN, sio); /* change direction */ in __tlan_mii_read_reg()
2862 tlan_clear_bit(TLAN_NET_SIO_MCLK, sio); /* clock idle bit */ in __tlan_mii_read_reg()
2863 tlan_set_bit(TLAN_NET_SIO_MCLK, sio); in __tlan_mii_read_reg()
2864 tlan_clear_bit(TLAN_NET_SIO_MCLK, sio); /* wait 300ns */ in __tlan_mii_read_reg()
2866 nack = tlan_get_bit(TLAN_NET_SIO_MDATA, sio); /* check for ACK */ in __tlan_mii_read_reg()
2867 tlan_set_bit(TLAN_NET_SIO_MCLK, sio); /* finish ACK */ in __tlan_mii_read_reg()
2870 tlan_clear_bit(TLAN_NET_SIO_MCLK, sio); in __tlan_mii_read_reg()
2871 tlan_set_bit(TLAN_NET_SIO_MCLK, sio); in __tlan_mii_read_reg()
2877 tlan_clear_bit(TLAN_NET_SIO_MCLK, sio); in __tlan_mii_read_reg()
2878 if (tlan_get_bit(TLAN_NET_SIO_MDATA, sio)) in __tlan_mii_read_reg()
2880 tlan_set_bit(TLAN_NET_SIO_MCLK, sio); in __tlan_mii_read_reg()
2885 tlan_clear_bit(TLAN_NET_SIO_MCLK, sio); /* idle cycle */ in __tlan_mii_read_reg()
2886 tlan_set_bit(TLAN_NET_SIO_MCLK, sio); in __tlan_mii_read_reg()
2889 tlan_set_bit(TLAN_NET_SIO_MINTEN, sio); in __tlan_mii_read_reg()
2927 u16 sio; in tlan_mii_send_data() local
2934 sio = base_port + TLAN_DIO_DATA + TLAN_NET_SIO; in tlan_mii_send_data()
2935 tlan_set_bit(TLAN_NET_SIO_MTXEN, sio); in tlan_mii_send_data()
2938 tlan_clear_bit(TLAN_NET_SIO_MCLK, sio); in tlan_mii_send_data()
2939 (void) tlan_get_bit(TLAN_NET_SIO_MCLK, sio); in tlan_mii_send_data()
2941 tlan_set_bit(TLAN_NET_SIO_MDATA, sio); in tlan_mii_send_data()
2943 tlan_clear_bit(TLAN_NET_SIO_MDATA, sio); in tlan_mii_send_data()
2944 tlan_set_bit(TLAN_NET_SIO_MCLK, sio); in tlan_mii_send_data()
2945 (void) tlan_get_bit(TLAN_NET_SIO_MCLK, sio); in tlan_mii_send_data()
2970 u16 sio; in tlan_mii_sync() local
2973 sio = base_port + TLAN_DIO_DATA + TLAN_NET_SIO; in tlan_mii_sync()
2975 tlan_clear_bit(TLAN_NET_SIO_MTXEN, sio); in tlan_mii_sync()
2977 tlan_clear_bit(TLAN_NET_SIO_MCLK, sio); in tlan_mii_sync()
2978 tlan_set_bit(TLAN_NET_SIO_MCLK, sio); in tlan_mii_sync()
3002 * via the TLAN SIO register.
3009 u16 sio; in __tlan_mii_write_reg() local
3016 sio = dev->base_addr + TLAN_DIO_DATA + TLAN_NET_SIO; in __tlan_mii_write_reg()
3020 minten = tlan_get_bit(TLAN_NET_SIO_MINTEN, sio); in __tlan_mii_write_reg()
3022 tlan_clear_bit(TLAN_NET_SIO_MINTEN, sio); in __tlan_mii_write_reg()
3032 tlan_clear_bit(TLAN_NET_SIO_MCLK, sio); /* idle cycle */ in __tlan_mii_write_reg()
3033 tlan_set_bit(TLAN_NET_SIO_MCLK, sio); in __tlan_mii_write_reg()
3036 tlan_set_bit(TLAN_NET_SIO_MINTEN, sio); in __tlan_mii_write_reg()
3083 u16 sio; in tlan_ee_send_start() local
3086 sio = io_base + TLAN_DIO_DATA + TLAN_NET_SIO; in tlan_ee_send_start()
3088 tlan_set_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_send_start()
3089 tlan_set_bit(TLAN_NET_SIO_EDATA, sio); in tlan_ee_send_start()
3090 tlan_set_bit(TLAN_NET_SIO_ETXEN, sio); in tlan_ee_send_start()
3091 tlan_clear_bit(TLAN_NET_SIO_EDATA, sio); in tlan_ee_send_start()
3092 tlan_clear_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_send_start()
3125 u16 sio; in tlan_ee_send_byte() local
3128 sio = io_base + TLAN_DIO_DATA + TLAN_NET_SIO; in tlan_ee_send_byte()
3133 tlan_set_bit(TLAN_NET_SIO_EDATA, sio); in tlan_ee_send_byte()
3135 tlan_clear_bit(TLAN_NET_SIO_EDATA, sio); in tlan_ee_send_byte()
3136 tlan_set_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_send_byte()
3137 tlan_clear_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_send_byte()
3139 tlan_clear_bit(TLAN_NET_SIO_ETXEN, sio); in tlan_ee_send_byte()
3140 tlan_set_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_send_byte()
3141 err = tlan_get_bit(TLAN_NET_SIO_EDATA, sio); in tlan_ee_send_byte()
3142 tlan_clear_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_send_byte()
3143 tlan_set_bit(TLAN_NET_SIO_ETXEN, sio); in tlan_ee_send_byte()
3147 tlan_clear_bit(TLAN_NET_SIO_EDATA, sio); in tlan_ee_send_byte()
3148 tlan_set_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_send_byte()
3149 tlan_set_bit(TLAN_NET_SIO_EDATA, sio); in tlan_ee_send_byte()
3186 u16 sio; in tlan_ee_receive_byte() local
3189 sio = io_base + TLAN_DIO_DATA + TLAN_NET_SIO; in tlan_ee_receive_byte()
3193 tlan_clear_bit(TLAN_NET_SIO_ETXEN, sio); in tlan_ee_receive_byte()
3195 tlan_set_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_receive_byte()
3196 if (tlan_get_bit(TLAN_NET_SIO_EDATA, sio)) in tlan_ee_receive_byte()
3198 tlan_clear_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_receive_byte()
3201 tlan_set_bit(TLAN_NET_SIO_ETXEN, sio); in tlan_ee_receive_byte()
3203 tlan_clear_bit(TLAN_NET_SIO_EDATA, sio); /* ack = 0 */ in tlan_ee_receive_byte()
3204 tlan_set_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_receive_byte()
3205 tlan_clear_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_receive_byte()
3207 tlan_set_bit(TLAN_NET_SIO_EDATA, sio); /* no ack = 1 (?) */ in tlan_ee_receive_byte()
3208 tlan_set_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_receive_byte()
3209 tlan_clear_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_receive_byte()
3211 tlan_clear_bit(TLAN_NET_SIO_EDATA, sio); in tlan_ee_receive_byte()
3212 tlan_set_bit(TLAN_NET_SIO_ECLOK, sio); in tlan_ee_receive_byte()
3213 tlan_set_bit(TLAN_NET_SIO_EDATA, sio); in tlan_ee_receive_byte()