Lines Matching refs:pset

61 static void local_test_start(spi_device_handle_t *spi, int freq, const spitest_param_set_t* pset, s…  in local_test_start()  argument
69 assert(!pset->master_iomux || !pset->slave_iomux); in local_test_start()
70 if (pset->slave_iomux) { in local_test_start()
85 buscfg.quadhd_io_num = (!pset->master_iomux && !pset->slave_iomux ? UNCONNECTED_PIN : -1); in local_test_start()
86 devcfg.mode = pset->mode; in local_test_start()
88 if (pset->dup == HALF_DUPLEX_MISO) { in local_test_start()
91 } else if (pset->dup == HALF_DUPLEX_MOSI) { in local_test_start()
99 devcfg.input_delay_ns = pset->slave_tv_ns; in local_test_start()
101 if (pset->master_limit != 0 && freq > pset->master_limit) devcfg.flags |= SPI_DEVICE_NO_DUMMY; in local_test_start()
104 slvcfg.mode = pset->mode; in local_test_start()
107 int dma_chan = (pset->master_dma_chan == 0) ? 0 : SPI_DMA_CH_AUTO; in local_test_start()
113 int slave_dma_chan = (pset->slave_dma_chan == 0) ? 0 : SPI_DMA_CH_AUTO; in local_test_start()
117 if (pset->master_iomux) { in local_test_start()
122 } else if (pset->slave_iomux) { in local_test_start()
148 const spitest_param_set_t *pset = arg1; in local_test_loop() local
151 spitest_init_transactions(pset, context); in local_test_loop()
152 const int *timing_speed_array = pset->freq_list; in local_test_loop()
154 ESP_LOGI(MASTER_TAG, "****************** %s ***************", pset->pset_name); in local_test_loop()
158 if (pset->freq_limit && freq > pset->freq_limit) break; in local_test_loop()
162 bool check_master_data = (pset->dup!=HALF_DUPLEX_MOSI && in local_test_loop()
163 (pset->master_limit==0 || freq <= pset->master_limit)); in local_test_loop()
166 bool check_slave_data = (pset->dup!=HALF_DUPLEX_MISO); in local_test_loop()
169 local_test_start(&spi, freq, pset, context); in local_test_loop()
171 for (int k = 0; k < pset->test_size; k++) { in local_test_loop()
184 int len = get_trans_len(pset->dup, t); in local_test_loop()
684 static void test_master_start(spi_device_handle_t *spi, int freq, const spitest_param_set_t* pset, … in test_master_start() argument
692 if (!pset->master_iomux) buspset.quadhd_io_num = UNCONNECTED_PIN; in test_master_start()
695 devpset.mode = pset->mode; in test_master_start()
697 if (pset->dup==HALF_DUPLEX_MISO) { in test_master_start()
700 } else if (pset->dup == HALF_DUPLEX_MOSI) { in test_master_start()
708 devpset.input_delay_ns = pset->slave_tv_ns; in test_master_start()
710 if (pset->master_limit != 0 && freq > pset->master_limit) devpset.flags |= SPI_DEVICE_NO_DUMMY; in test_master_start()
712 int dma_chan = (pset->master_dma_chan == 0) ? 0 : SPI_DMA_CH_AUTO; in test_master_start()
717 for (int i = 0; i < pset->test_size; i ++) { in test_master_start()
726 if (pset->dup!=HALF_DUPLEX_MISO) { in test_master_start()
818 static void timing_slave_start(int speed, const spitest_param_set_t* pset, spitest_context_t *conte… in timing_slave_start() argument
826 if (!pset->slave_iomux) slv_buscfg.quadhd_io_num = UNCONNECTED_PIN; in timing_slave_start()
829 slvcfg.mode = pset->mode; in timing_slave_start()
833 int slave_dma_chan = (pset->slave_dma_chan == 0) ? 0 : SPI_DMA_CH_AUTO; in timing_slave_start()
837 for (int i = 0; i < pset->test_size; i++) { in timing_slave_start()
838 if (pset->dup==FULL_DUPLEX) { in timing_slave_start()
840 } else if (pset->dup==HALF_DUPLEX_MISO) { in timing_slave_start()
848 const spitest_param_set_t *pset = (spitest_param_set_t*)arg1; in test_slave_loop() local
850 ESP_LOGI(SLAVE_TAG, "****************** %s ***************", pset->pset_name); in test_slave_loop()
851 spitest_init_transactions(pset, context); in test_slave_loop()
853 const int *timing_speed_array = pset->freq_list; in test_slave_loop()
857 if (pset->freq_limit != 0 && freq > pset->freq_limit) break; in test_slave_loop()
861 timing_slave_start(freq, pset, context); in test_slave_loop()
864 for (int i = 0; i < pset->test_size; i ++) { in test_slave_loop()
872 for( int i= 0; i < pset->test_size; i ++ ) { in test_slave_loop()
879 int len = get_trans_len(pset->dup, t); in test_slave_loop()
888 bool check_slave_data = (pset->dup!=HALF_DUPLEX_MISO); in test_slave_loop()