Lines Matching refs:peripheral
461 struct gpi_spi_config peripheral = {}; in setup_gsi_xfer() local
465 config.peripheral_config = &peripheral; in setup_gsi_xfer()
466 config.peripheral_size = sizeof(peripheral); in setup_gsi_xfer()
467 peripheral.set_config = true; in setup_gsi_xfer()
476 peripheral.cmd = SPI_DUPLEX; in setup_gsi_xfer()
478 peripheral.cmd = SPI_TX; in setup_gsi_xfer()
479 peripheral.rx_len = 0; in setup_gsi_xfer()
481 peripheral.cmd = SPI_RX; in setup_gsi_xfer()
483 peripheral.rx_len = ((xfer->len << 3) / mas->cur_bits_per_word); in setup_gsi_xfer()
487 peripheral.rx_len = (xfer->len / bytes_per_word); in setup_gsi_xfer()
491 peripheral.loopback_en = !!(spi_slv->mode & SPI_LOOP); in setup_gsi_xfer()
492 peripheral.clock_pol_high = !!(spi_slv->mode & SPI_CPOL); in setup_gsi_xfer()
493 peripheral.data_pol_high = !!(spi_slv->mode & SPI_CPHA); in setup_gsi_xfer()
494 peripheral.cs = spi_get_chipselect(spi_slv, 0); in setup_gsi_xfer()
495 peripheral.pack_en = true; in setup_gsi_xfer()
496 peripheral.word_len = xfer->bits_per_word - MIN_WORD_LEN; in setup_gsi_xfer()
499 &peripheral.clk_src, &peripheral.clk_div); in setup_gsi_xfer()
507 peripheral.fragmentation = FRAGMENTATION; in setup_gsi_xfer()
510 if (peripheral.cmd & SPI_RX) { in setup_gsi_xfer()
535 if (peripheral.cmd & SPI_RX) in setup_gsi_xfer()
539 if (peripheral.cmd & SPI_RX) in setup_gsi_xfer()