Lines Matching defs:host
33 struct spi_controller *host;
182 static int sc18is602_transfer_one(struct spi_controller *host,
185 struct sc18is602 *hw = spi_controller_get_devdata(host);
216 spi_finalize_current_message(host);
244 struct spi_controller *host;
250 host = devm_spi_alloc_host(dev, sizeof(struct sc18is602));
251 if (!host)
254 hw = spi_controller_get_devdata(host);
263 hw->host = host;
276 host->num_chipselect = 4;
280 host->num_chipselect = 2;
295 host->bus_num = np ? -1 : client->adapter->nr;
296 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST;
297 host->bits_per_word_mask = SPI_BPW_MASK(8);
298 host->setup = sc18is602_setup;
299 host->transfer_one_message = sc18is602_transfer_one;
300 host->max_transfer_size = sc18is602_max_transfer_size;
301 host->max_message_size = sc18is602_max_transfer_size;
302 host->dev.of_node = np;
303 host->min_speed_hz = hw->freq / 128;
304 host->max_speed_hz = hw->freq / 4;
306 return devm_spi_register_controller(dev, host);