Home
last modified time | relevance | path

Searched refs:cur_msg (Results 1 – 20 of 20) sorted by relevance

/openbmc/linux/drivers/i2c/busses/
H A Di2c-hisi.c237 struct i2c_msg *cur_msg; in hisi_i2c_read_rx_fifo() local
241 cur_msg = ctlr->msgs + ctlr->msg_rx_idx; in hisi_i2c_read_rx_fifo()
243 if (!(cur_msg->flags & I2C_M_RD)) { in hisi_i2c_read_rx_fifo()
250 ctlr->buf_rx_idx < cur_msg->len) { in hisi_i2c_read_rx_fifo()
251 cur_msg->buf[ctlr->buf_rx_idx++] = readl(ctlr->iobase + HISI_I2C_RXDATA); in hisi_i2c_read_rx_fifo()
255 if (ctlr->buf_rx_idx == cur_msg->len) { in hisi_i2c_read_rx_fifo()
271 struct i2c_msg *cur_msg; in hisi_i2c_xfer_msg() local
275 cur_msg = ctlr->msgs + ctlr->msg_tx_idx; in hisi_i2c_xfer_msg()
284 ctlr->buf_tx_idx < cur_msg->len && max_write) { in hisi_i2c_xfer_msg()
293 if (ctlr->buf_tx_idx == cur_msg->len - 1 && last_msg) in hisi_i2c_xfer_msg()
[all …]
/openbmc/linux/drivers/char/ipmi/
H A Dipmi_powernv.c32 struct ipmi_smi_msg *cur_msg; member
76 if (smi->cur_msg) { in ipmi_powernv_send()
98 smi->cur_msg = msg; in ipmi_powernv_send()
123 if (!smi->cur_msg) { in ipmi_powernv_recv()
129 msg = smi->cur_msg; in ipmi_powernv_recv()
147 smi->cur_msg = NULL; in ipmi_powernv_recv()
172 smi->cur_msg = NULL; in ipmi_powernv_recv()
/openbmc/linux/drivers/spi/
H A Dspi-ep93xx.c182 struct spi_transfer *xfer = host->cur_msg->state; in ep93xx_do_write()
200 struct spi_transfer *xfer = host->cur_msg->state; in ep93xx_do_read()
229 struct spi_transfer *xfer = host->cur_msg->state; in ep93xx_spi_read_write()
276 struct spi_transfer *xfer = host->cur_msg->state; in ep93xx_spi_dma_prepare()
452 host->cur_msg->status = -EIO; in ep93xx_spi_interrupt()
496 host->cur_msg->state = xfer; in ep93xx_spi_transfer_one()
H A Dspi-pl022.c377 struct spi_message *cur_msg; member
479 last_transfer = list_last_entry(&pl022->cur_msg->transfers, in giveback()
509 if (next_msg && next_msg->spi != pl022->cur_msg->spi) in giveback()
511 if (!next_msg || pl022->cur_msg->state == STATE_ERROR) in giveback()
518 pl022->cur_msg = NULL; in giveback()
771 struct spi_message *msg = pl022->cur_msg; in next_transfer()
803 struct spi_message *msg = pl022->cur_msg; in dma_callback()
1249 struct spi_message *msg = pl022->cur_msg; in pl022_interrupt_handler()
1378 message = pl022->cur_msg; in pump_transfers()
1451 pl022->cur_msg->state = STATE_ERROR; in do_interrupt_dma_transfer()
[all …]
H A Dspi-pxa2xx-dma.c23 struct spi_message *msg = drv_data->controller->cur_msg; in pxa2xx_spi_dma_transfer_complete()
67 spi_get_ctldata(drv_data->controller->cur_msg->spi); in pxa2xx_spi_dma_prepare_one()
H A Dspi-dw-dma.c274 dev_err(&dws->host->cur_msg->spi->dev, in dw_spi_dma_wait()
659 if (dws->host->cur_msg->status == -EINPROGRESS) { in dw_spi_dma_transfer()
665 if (xfer->rx_buf && dws->host->cur_msg->status == -EINPROGRESS) in dw_spi_dma_transfer()
H A Dspi-pxa2xx.c586 if (drv_data->controller->cur_msg) { in reset_sccr1()
587 chip = spi_get_ctldata(drv_data->controller->cur_msg->spi); in reset_sccr1()
627 drv_data->controller->cur_msg->status = err; in int_error_stop()
766 if (!drv_data->controller->cur_msg) { in ssp_int()
917 spi_get_ctldata(drv_data->controller->cur_msg->spi); in pxa2xx_ssp_get_clk_div()
947 struct spi_message *message = controller->cur_msg; in pxa2xx_spi_transfer_one()
H A Dspi-lantiq-ssc.c696 if (spi->host->cur_msg) in lantiq_ssc_err_interrupt()
697 spi->host->cur_msg->status = -EIO; in lantiq_ssc_err_interrupt()
782 if (spi->host->cur_msg) in lantiq_ssc_bussy_work()
783 spi->host->cur_msg->status = -EIO; in lantiq_ssc_bussy_work()
H A Dspi-mux.c90 struct spi_message *m = ctlr->cur_msg; in spi_mux_complete_cb()
H A Dspi-fsl-dspi.c220 struct spi_message *cur_msg; member
463 struct spi_message *message = dspi->cur_msg; in dspi_dma_xfer()
812 struct spi_message *msg = dspi->cur_msg; in dspi_fifo_write()
934 dspi->cur_msg = message; in dspi_transfer_one_message()
945 &dspi->cur_msg->transfers)) { in dspi_transfer_one_message()
H A Dspi-pic32.c228 if (pic32s->host->cur_msg) in pic32_err_stop()
229 pic32s->host->cur_msg->status = -EIO; in pic32_err_stop()
253 if (!pic32s->host->cur_msg) { in pic32_spi_fault_irq()
H A Dspi-hisi-kunpeng.c344 if (!host->cur_msg) in hisi_spi_irq()
350 host->cur_msg->status = -EIO; in hisi_spi_irq()
H A Dspi-meson-spicc.c588 if (!spicc->master->cur_msg) in meson_spicc_pow2_recalc_rate()
600 if (!spicc->master->cur_msg) in meson_spicc_pow2_determine_rate()
612 if (!spicc->master->cur_msg) in meson_spicc_pow2_set_rate()
H A Dspi-dw-core.c203 if (dws->host->cur_msg) in dw_spi_check_status()
204 dws->host->cur_msg->status = ret; in dw_spi_check_status()
258 if (!host->cur_msg) { in dw_spi_irq()
H A Dspi-geni-qcom.c439 spi->cur_msg->status = -EIO; in spi_gsi_callback_result()
447 spi->cur_msg->status = 0; in spi_gsi_callback_result()
506 if (!list_is_last(&xfer->transfer_list, &spi->cur_msg->transfers)) in setup_gsi_xfer()
H A Dspi.c1766 if (ctlr->cur_msg) in __spi_pump_messages()
1810 ctlr->cur_msg = msg; in __spi_pump_messages()
1822 ctlr->cur_msg = NULL; in __spi_pump_messages()
2020 mesg = ctlr->cur_msg; in spi_finalize_current_message()
2079 ctlr->cur_msg = NULL; in spi_start_queue()
4189 ctlr->cur_msg = msg; in __spi_transfer_message_noqueue()
4193 ctlr->cur_msg = NULL; in __spi_transfer_message_noqueue()
H A Dspi-atmel.c1380 if ((!host->cur_msg->is_dma_mapped) in atmel_spi_one_transfer()
1460 if (!host->cur_msg->is_dma_mapped in atmel_spi_one_transfer()
H A Dspi-qcom-qspi.c446 &host->cur_msg->transfers); in qcom_qspi_transfer_one()
/openbmc/linux/drivers/w1/
H A Dw1_netlink.c29 struct w1_netlink_msg *cur_msg; /* currently message being processed */ member
147 memcpy(block->msg, block->cur_msg, sizeof(*block->msg)); in w1_netlink_queue_cmd()
458 node->block->cur_msg = node->msg; in w1_process_cb()
/openbmc/linux/include/linux/spi/
H A Dspi.h671 struct spi_message *cur_msg; member
1636 return list_is_last(&xfer->transfer_list, &ctlr->cur_msg->transfers); in spi_transfer_is_last()