Lines Matching refs:callback
40 spi_slave_hd_callback_config_t callback; member
210 …memcpy((uint8_t*)&host->callback, (uint8_t*)&config->cb_config, sizeof(spi_slave_hd_callback_confi… in spi_slave_hd_init()
212 if (host->callback.cb_buffer_tx!=NULL) event |= SPI_EV_BUF_TX; in spi_slave_hd_init()
213 if (host->callback.cb_buffer_rx!=NULL) event |= SPI_EV_BUF_RX; in spi_slave_hd_init()
214 if (host->callback.cb_cmd9!=NULL) event |= SPI_EV_CMD9; in spi_slave_hd_init()
215 if (host->callback.cb_cmdA!=NULL) event |= SPI_EV_CMDA; in spi_slave_hd_init()
278 cb(host->callback.arg, &event, &cb_awoken); in intr_check_clear_callback()
286 spi_slave_hd_callback_config_t *callback = &host->callback; in spi_slave_hd_intr_segment() local
291 awoken |= intr_check_clear_callback(host, SPI_EV_BUF_TX, callback->cb_buffer_tx); in spi_slave_hd_intr_segment()
292 awoken |= intr_check_clear_callback(host, SPI_EV_BUF_RX, callback->cb_buffer_rx); in spi_slave_hd_intr_segment()
293 awoken |= intr_check_clear_callback(host, SPI_EV_CMD9, callback->cb_cmd9); in spi_slave_hd_intr_segment()
294 awoken |= intr_check_clear_callback(host, SPI_EV_CMDA, callback->cb_cmdA); in spi_slave_hd_intr_segment()
310 if (callback->cb_sent) { in spi_slave_hd_intr_segment()
316 ret_queue = callback->cb_sent(callback->arg, &ev, &cb_awoken); in spi_slave_hd_intr_segment()
329 if (callback->cb_recv) { in spi_slave_hd_intr_segment()
335 ret_queue = callback->cb_recv(callback->arg, &ev, &cb_awoken); in spi_slave_hd_intr_segment()
353 if (callback->cb_send_dma_ready) { in spi_slave_hd_intr_segment()
359 callback->cb_send_dma_ready(callback->arg, &ev, &cb_awoken); in spi_slave_hd_intr_segment()
369 if (callback->cb_recv_dma_ready) { in spi_slave_hd_intr_segment()
375 callback->cb_recv_dma_ready(callback->arg, &ev, &cb_awoken); in spi_slave_hd_intr_segment()
398 spi_slave_hd_callback_config_t *callback = &host->callback; in spi_slave_hd_intr_append() local
424 if (callback->cb_sent) { in spi_slave_hd_intr_append()
430 ret_queue = callback->cb_sent(callback->arg, &ev, &cb_awoken); in spi_slave_hd_intr_append()
456 if (callback->cb_recv) { in spi_slave_hd_intr_append()
462 ret_queue = callback->cb_recv(callback->arg, &ev, &cb_awoken); in spi_slave_hd_intr_append()