Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/i2c/busses/
Di2c-efm32.c144 struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; in efm32_i2c_send_next_msg() local
147 efm32_i2c_write32(ddata, REG_TXDATA, cur_msg->addr << 1 | in efm32_i2c_send_next_msg()
148 (cur_msg->flags & I2C_M_RD ? 1 : 0)); in efm32_i2c_send_next_msg()
153 struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; in efm32_i2c_send_next_byte() local
155 if (ddata->current_word >= cur_msg->len) { in efm32_i2c_send_next_byte()
168 cur_msg->buf[ddata->current_word++]); in efm32_i2c_send_next_byte()
174 struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; in efm32_i2c_recv_next_byte() local
176 cur_msg->buf[ddata->current_word] = efm32_i2c_read32(ddata, REG_RXDATA); in efm32_i2c_recv_next_byte()
178 if (ddata->current_word >= cur_msg->len) { in efm32_i2c_recv_next_byte()
199 struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; in efm32_i2c_irq() local
[all …]
Di2c-bfin-twi.c53 iface->cur_msg + 1 < iface->msg_num) { in bfin_twi_handle_interrupt()
54 if (iface->pmsg[iface->cur_msg + 1].flags & in bfin_twi_handle_interrupt()
101 iface->cur_msg + 1 < iface->msg_num) { in bfin_twi_handle_interrupt()
102 if (iface->pmsg[iface->cur_msg + 1].flags & I2C_M_RD) in bfin_twi_handle_interrupt()
190 iface->cur_msg + 1 < iface->msg_num) { in bfin_twi_handle_interrupt()
191 iface->cur_msg++; in bfin_twi_handle_interrupt()
192 iface->transPtr = iface->pmsg[iface->cur_msg].buf; in bfin_twi_handle_interrupt()
194 iface->pmsg[iface->cur_msg].len; in bfin_twi_handle_interrupt()
197 iface->pmsg[iface->cur_msg].addr); in bfin_twi_handle_interrupt()
198 if (iface->pmsg[iface->cur_msg].flags & I2C_M_RD) in bfin_twi_handle_interrupt()
[all …]
/linux-4.1.27/drivers/char/ipmi/
Dipmi_powernv.c36 struct ipmi_smi_msg *cur_msg; member
80 if (smi->cur_msg) { in ipmi_powernv_send()
102 smi->cur_msg = msg; in ipmi_powernv_send()
127 if (!smi->cur_msg) { in ipmi_powernv_recv()
133 msg = smi->cur_msg; in ipmi_powernv_recv()
169 smi->cur_msg = NULL; in ipmi_powernv_recv()
/linux-4.1.27/drivers/spi/
Dspi-bfin-sport.c80 struct spi_message *cur_msg; member
272 struct spi_message *msg = drv_data->cur_msg; in bfin_sport_spi_next_transfer()
298 msg = drv_data->cur_msg; in bfin_sport_spi_giveback()
300 drv_data->cur_msg = NULL; in bfin_sport_spi_giveback()
351 message = drv_data->cur_msg; in bfin_sport_spi_pump_transfers()
500 if (drv_data->cur_msg) { in bfin_sport_spi_pump_messages()
509 drv_data->cur_msg = next_msg; in bfin_sport_spi_pump_messages()
512 drv_data->cur_chip = spi_get_ctldata(drv_data->cur_msg->spi); in bfin_sport_spi_pump_messages()
514 list_del_init(&drv_data->cur_msg->queue); in bfin_sport_spi_pump_messages()
517 drv_data->cur_msg->state = START_STATE; in bfin_sport_spi_pump_messages()
[all …]
Dspi-pxa2xx-pxadma.c50 struct spi_message *msg = drv_data->cur_msg; in pxa2xx_spi_map_dma_buffers()
107 if (!drv_data->cur_msg->is_dma_mapped) { in pxa2xx_spi_unmap_dma_buffers()
108 dev = &drv_data->cur_msg->spi->dev; in pxa2xx_spi_unmap_dma_buffers()
158 drv_data->cur_msg->state = ERROR_STATE; in pxa2xx_spi_dma_error_stop()
164 struct spi_message *msg = drv_data->cur_msg; in pxa2xx_spi_dma_transfer_complete()
Dspi-bfin5xx.c82 struct spi_message *cur_msg; member
334 struct spi_message *msg = drv_data->cur_msg; in bfin_spi_next_transfer()
358 msg = drv_data->cur_msg; in bfin_spi_giveback()
359 drv_data->cur_msg = NULL; in bfin_spi_giveback()
383 struct spi_message *msg = drv_data->cur_msg; in bfin_spi_pio_irq_handler()
485 struct spi_message *msg = drv_data->cur_msg; in bfin_spi_dma_irq_handler()
567 message = drv_data->cur_msg; in bfin_spi_pump_transfers()
892 if (drv_data->cur_msg) { in bfin_spi_pump_messages()
898 drv_data->cur_msg = list_entry(drv_data->queue.next, in bfin_spi_pump_messages()
902 drv_data->cur_chip = spi_get_ctldata(drv_data->cur_msg->spi); in bfin_spi_pump_messages()
[all …]
Dspi-adi-v3.c66 struct spi_message *cur_msg; member
370 struct spi_message *msg = drv->cur_msg; in adi_spi_next_transfer()
442 struct spi_message *msg = drv_data->cur_msg; in adi_spi_dma_xfer()
532 struct spi_message *msg = drv_data->cur_msg; in adi_spi_pio_xfer()
567 msg = drv_data->cur_msg; in adi_spi_pump_transfers()
624 drv_data->cur_msg = m; in adi_spi_transfer_one_message()
625 drv_data->cur_chip = spi_get_ctldata(drv_data->cur_msg->spi); in adi_spi_transfer_one_message()
629 drv_data->cur_transfer = list_entry(drv_data->cur_msg->transfers.next, in adi_spi_transfer_one_message()
771 struct spi_message *msg = drv_data->cur_msg; in adi_spi_rx_dma_isr()
Dspi-pxa2xx.c409 struct spi_message *msg = drv_data->cur_msg; in pxa2xx_spi_next_transfer()
429 msg = drv_data->cur_msg; in giveback()
430 drv_data->cur_msg = NULL; in giveback()
498 drv_data->cur_msg->state = ERROR_STATE; in int_error_stop()
511 drv_data->cur_msg->actual_length += drv_data->len - in int_transfer_complete()
519 drv_data->cur_msg->state = pxa2xx_spi_next_transfer(drv_data); in int_transfer_complete()
634 if (!drv_data->cur_msg) { in ssp_int()
823 message = drv_data->cur_msg; in pump_transfers()
1013 drv_data->cur_msg = msg; in pxa2xx_spi_transfer_one_message()
1015 drv_data->cur_msg->state = START_STATE; in pxa2xx_spi_transfer_one_message()
[all …]
Dspi.c793 if (master->cur_msg) { in __spi_pump_messages()
845 master->cur_msg = in __spi_pump_messages()
848 list_del_init(&master->cur_msg->queue); in __spi_pump_messages()
879 trace_spi_message_start(master->cur_msg); in __spi_pump_messages()
882 ret = master->prepare_message(master, master->cur_msg); in __spi_pump_messages()
886 master->cur_msg->status = ret; in __spi_pump_messages()
893 ret = spi_map_msg(master, master->cur_msg); in __spi_pump_messages()
895 master->cur_msg->status = ret; in __spi_pump_messages()
900 ret = master->transfer_one_message(master, master->cur_msg); in __spi_pump_messages()
990 mesg = master->cur_msg; in spi_finalize_current_message()
[all …]
Dspi-pl022.c389 struct spi_message *cur_msg; member
499 last_transfer = list_last_entry(&pl022->cur_msg->transfers, in giveback()
530 if (next_msg && next_msg->spi != pl022->cur_msg->spi) in giveback()
532 if (!next_msg || pl022->cur_msg->state == STATE_ERROR) in giveback()
539 pl022->cur_msg = NULL; in giveback()
792 struct spi_message *msg = pl022->cur_msg; in next_transfer()
824 struct spi_message *msg = pl022->cur_msg; in dma_callback()
1257 struct spi_message *msg = pl022->cur_msg; in pl022_interrupt_handler()
1386 message = pl022->cur_msg; in pump_transfers()
1460 pl022->cur_msg->state = STATE_ERROR; in do_interrupt_dma_transfer()
[all …]
Dspi-fsl-dspi.c120 struct spi_message *cur_msg; member
341 dspi->cur_msg = message; in dspi_transfer_one_message()
345 == &dspi->cur_msg->transfers) in dspi_transfer_one_message()
464 struct spi_message *msg = dspi->cur_msg; in dspi_interrupt()
Dspi-pxa2xx.h71 struct spi_message *cur_msg; member
Dspi-dw.c225 dws->master->cur_msg->status = -EIO; in int_error_stop()
265 if (!master->cur_msg) { in dw_spi_irq()
Dspi-dw-mid.c110 dws->master->cur_msg->status = -EIO; in dma_transfer()
Dspi-pxa2xx-dma.c105 struct spi_message *msg = drv_data->cur_msg; in pxa2xx_spi_dma_transfer_complete()
/linux-4.1.27/include/linux/i2c/
Dbfin_twi.h69 int cur_msg; member
/linux-4.1.27/include/linux/spi/
Dspi.h422 struct spi_message *cur_msg; member
1053 return list_is_last(&xfer->transfer_list, &master->cur_msg->transfers); in spi_transfer_is_last()
/linux-4.1.27/drivers/w1/
Dw1_netlink.c48 struct w1_netlink_msg *cur_msg; /* currently message being processed */ member
164 memcpy(block->msg, block->cur_msg, sizeof(*block->msg)); in w1_netlink_queue_cmd()
475 node->block->cur_msg = node->msg; in w1_process_cb()