Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/i2c/busses/
Di2c-hisi.c236 struct i2c_msg *cur_msg; in hisi_i2c_read_rx_fifo() local
240 cur_msg = ctlr->msgs + ctlr->msg_rx_idx; in hisi_i2c_read_rx_fifo()
242 if (!(cur_msg->flags & I2C_M_RD)) { in hisi_i2c_read_rx_fifo()
249 ctlr->buf_rx_idx < cur_msg->len) { in hisi_i2c_read_rx_fifo()
250 cur_msg->buf[ctlr->buf_rx_idx++] = readl(ctlr->iobase + HISI_I2C_RXDATA); in hisi_i2c_read_rx_fifo()
254 if (ctlr->buf_rx_idx == cur_msg->len) { in hisi_i2c_read_rx_fifo()
270 struct i2c_msg *cur_msg; in hisi_i2c_xfer_msg() local
274 cur_msg = ctlr->msgs + ctlr->msg_tx_idx; in hisi_i2c_xfer_msg()
283 ctlr->buf_tx_idx < cur_msg->len && max_write) { in hisi_i2c_xfer_msg()
292 if (ctlr->buf_tx_idx == cur_msg->len - 1 && last_msg) in hisi_i2c_xfer_msg()
[all …]
/Linux-v5.15/drivers/char/ipmi/
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()
/Linux-v5.15/drivers/spi/
Dspi-ep93xx.c182 struct spi_transfer *xfer = master->cur_msg->state; in ep93xx_do_write()
200 struct spi_transfer *xfer = master->cur_msg->state; in ep93xx_do_read()
229 struct spi_transfer *xfer = master->cur_msg->state; in ep93xx_spi_read_write()
276 struct spi_transfer *xfer = master->cur_msg->state; in ep93xx_spi_dma_prepare()
452 master->cur_msg->status = -EIO; in ep93xx_spi_interrupt()
496 master->cur_msg->state = xfer; in ep93xx_spi_transfer_one()
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 …]
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()
Dspi-dw-dma.c219 dev_err(&dws->master->cur_msg->spi->dev, in dw_spi_dma_wait()
604 if (dws->master->cur_msg->status == -EINPROGRESS) { in dw_spi_dma_transfer()
610 if (xfer->rx_buf && dws->master->cur_msg->status == -EINPROGRESS) in dw_spi_dma_transfer()
Dspi-lantiq-ssc.c695 if (spi->master->cur_msg) in lantiq_ssc_err_interrupt()
696 spi->master->cur_msg->status = -EIO; in lantiq_ssc_err_interrupt()
781 if (spi->master->cur_msg) in lantiq_ssc_bussy_work()
782 spi->master->cur_msg->status = -EIO; in lantiq_ssc_bussy_work()
Dspi-fsl-dspi.c219 struct spi_message *cur_msg; member
462 struct spi_message *message = dspi->cur_msg; in dspi_dma_xfer()
812 struct spi_message *msg = dspi->cur_msg; in dspi_fifo_write()
915 dspi->cur_msg = message; in dspi_transfer_one_message()
921 &dspi->cur_msg->transfers)) { in dspi_transfer_one_message()
Dspi-mux.c90 struct spi_message *m = ctlr->cur_msg; in spi_mux_complete_cb()
Dspi-hisi-kunpeng.c344 if (!master->cur_msg) in hisi_spi_irq()
350 master->cur_msg->status = -EIO; in hisi_spi_irq()
Dspi-pic32.c228 if (pic32s->master->cur_msg) in pic32_err_stop()
229 pic32s->master->cur_msg->status = -EIO; in pic32_err_stop()
253 if (!pic32s->master->cur_msg) { in pic32_spi_fault_irq()
Dspi-pxa2xx.c600 if (drv_data->controller->cur_msg) { in reset_sccr1()
601 chip = spi_get_ctldata(drv_data->controller->cur_msg->spi); in reset_sccr1()
641 drv_data->controller->cur_msg->status = err; in int_error_stop()
780 if (!drv_data->controller->cur_msg) { in ssp_int()
931 spi_get_ctldata(drv_data->controller->cur_msg->spi); in pxa2xx_ssp_get_clk_div()
961 struct spi_message *message = controller->cur_msg; in pxa2xx_spi_transfer_one()
Dspi-dw-core.c207 if (dws->master->cur_msg) in dw_spi_check_status()
208 dws->master->cur_msg->status = ret; in dw_spi_check_status()
262 if (!master->cur_msg) { in dw_spi_irq()
Dspi.c1444 if (ctlr->cur_msg) { in __spi_pump_messages()
1501 ctlr->cur_msg = msg; in __spi_pump_messages()
1772 mesg = ctlr->cur_msg; in spi_finalize_current_message()
1804 ctlr->cur_msg = NULL; in spi_finalize_current_message()
1830 ctlr->cur_msg = NULL; in spi_start_queue()
Dspi-qcom-qspi.c290 &master->cur_msg->transfers); in qcom_qspi_transfer_one()
Dspi-atmel.c1304 if ((!master->cur_msg->is_dma_mapped) in atmel_spi_one_transfer()
1384 if (!master->cur_msg->is_dma_mapped in atmel_spi_one_transfer()
Dspi-mt65xx.c627 if (!master->can_dma(master, master->cur_msg->spi, trans)) { in mtk_spi_interrupt()
/Linux-v5.15/drivers/w1/
Dw1_netlink.c29 struct w1_netlink_msg *cur_msg; /* currently message being processed */ member
145 memcpy(block->msg, block->cur_msg, sizeof(*block->msg)); in w1_netlink_queue_cmd()
456 node->block->cur_msg = node->msg; in w1_process_cb()
/Linux-v5.15/include/linux/spi/
Dspi.h610 struct spi_message *cur_msg; member
1505 return list_is_last(&xfer->transfer_list, &ctlr->cur_msg->transfers); in spi_transfer_is_last()