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