Lines Matching +full:addr +full:- +full:mode

1 // SPDX-License-Identifier: GPL-2.0-or-later
38 static void slic_write(struct spi_device *spi, u16 addr, in slic_write() argument
43 addr = bitrev16(addr) >> 1; in slic_write()
45 temp[0] = (u8)((addr >> 8) & 0x7f); in slic_write()
46 temp[1] = (u8)(addr & 0xfe); in slic_write()
49 /* write spi addr and value */ in slic_write()
53 static u8 slic_read(struct spi_device *spi, u16 addr) in slic_read() argument
58 addr = bitrev16(addr) >> 1; in slic_read()
59 temp[0] = (u8)(((addr >> 8) & 0x7f) | 0x80); in slic_read()
60 temp[1] = (u8)(addr & 0xfe); in slic_read()
82 /* Receive E1 Mode, Framer Disabled */ in ds26522_e1_spec_config()
85 /* Transmit E1 Mode, Framer Disable */ in ds26522_e1_spec_config()
88 /* Receive E1 Mode Framer Enable */ in ds26522_e1_spec_config()
92 /* Transmit E1 Mode Framer Enable */ in ds26522_e1_spec_config()
100 /* RSYSCLK=2.048MHz, RSYNC-Output */ in ds26522_e1_spec_config()
107 /* TSYSCLK=2.048MHz, TSYNC-Output */ in ds26522_e1_spec_config()
117 /* Receive E1 Mode Framer Enable & init Done */ in ds26522_e1_spec_config()
121 /* Transmit E1 Mode Framer Enable & init Done */ in ds26522_e1_spec_config()
125 /* Configure LIU E1 mode */ in ds26522_e1_spec_config()
128 /* E1 Mode default 75 ohm w/Transmit Impedance Matlinking */ in ds26522_e1_spec_config()
132 /* E1 Mode default 75 ohm Long Haul w/Receive Impedance Matlinking */ in ds26522_e1_spec_config()
142 u16 addr; in slic_ds26522_init_configure() local
174 for (addr = DS26522_RF_ADDR_START; addr <= DS26522_RF_ADDR_END; in slic_ds26522_init_configure()
175 addr++) in slic_ds26522_init_configure()
176 slic_write(spi, addr, 0); in slic_ds26522_init_configure()
178 for (addr = DS26522_TF_ADDR_START; addr <= DS26522_TF_ADDR_END; in slic_ds26522_init_configure()
179 addr++) in slic_ds26522_init_configure()
180 slic_write(spi, addr, 0); in slic_ds26522_init_configure()
182 for (addr = DS26522_LIU_ADDR_START; addr <= DS26522_LIU_ADDR_END; in slic_ds26522_init_configure()
183 addr++) in slic_ds26522_init_configure()
184 slic_write(spi, addr, 0); in slic_ds26522_init_configure()
186 for (addr = DS26522_BERT_ADDR_START; addr <= DS26522_BERT_ADDR_END; in slic_ds26522_init_configure()
187 addr++) in slic_ds26522_init_configure()
188 slic_write(spi, addr, 0); in slic_ds26522_init_configure()
208 spi->bits_per_word = 8; in slic_ds26522_probe()