Lines Matching refs:cwrite
144 sends an spi command to a device. It first sends cwrite bits from
156 static int execute_spi_command (int v, int cwrite, int cread)
169 ssp_configuration.device, cwrite, cread,
181 if (cwrite) {
182 for (cwrite = (cwrite + 7)/8; cwrite-- > 0; ) {
183 CPLD_SPID = (v >> (8*cwrite)) & 0xff;
218 while (cwrite--) {
221 | ((v >> cwrite) & CPLD_SPI_TX);