Searched refs:cur_msg (Results 1 – 16 of 16) sorted by relevance
/drivers/i2c/busses/ |
D | i2c-efm32.c | 144 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 …]
|
D | i2c-bfin-twi.c | 53 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 …]
|
/drivers/char/ipmi/ |
D | ipmi_powernv.c | 37 struct ipmi_smi_msg *cur_msg; member 81 if (smi->cur_msg) { in ipmi_powernv_send() 103 smi->cur_msg = msg; in ipmi_powernv_send() 128 if (!smi->cur_msg) { in ipmi_powernv_recv() 134 msg = smi->cur_msg; in ipmi_powernv_recv() 152 smi->cur_msg = NULL; in ipmi_powernv_recv() 177 smi->cur_msg = NULL; in ipmi_powernv_recv()
|
/drivers/spi/ |
D | spi-bfin-sport.c | 78 struct spi_message *cur_msg; member 270 struct spi_message *msg = drv_data->cur_msg; in bfin_sport_spi_next_transfer() 296 msg = drv_data->cur_msg; in bfin_sport_spi_giveback() 298 drv_data->cur_msg = NULL; in bfin_sport_spi_giveback() 349 message = drv_data->cur_msg; in bfin_sport_spi_pump_transfers() 495 if (drv_data->cur_msg) { in bfin_sport_spi_pump_messages() 504 drv_data->cur_msg = next_msg; in bfin_sport_spi_pump_messages() 507 drv_data->cur_chip = spi_get_ctldata(drv_data->cur_msg->spi); in bfin_sport_spi_pump_messages() 509 list_del_init(&drv_data->cur_msg->queue); in bfin_sport_spi_pump_messages() 512 drv_data->cur_msg->state = START_STATE; in bfin_sport_spi_pump_messages() [all …]
|
D | spi-bfin5xx.c | 80 struct spi_message *cur_msg; member 332 struct spi_message *msg = drv_data->cur_msg; in bfin_spi_next_transfer() 356 msg = drv_data->cur_msg; in bfin_spi_giveback() 357 drv_data->cur_msg = NULL; in bfin_spi_giveback() 381 struct spi_message *msg = drv_data->cur_msg; in bfin_spi_pio_irq_handler() 483 struct spi_message *msg = drv_data->cur_msg; in bfin_spi_dma_irq_handler() 565 message = drv_data->cur_msg; in bfin_spi_pump_transfers() 886 if (drv_data->cur_msg) { in bfin_spi_pump_messages() 892 drv_data->cur_msg = list_entry(drv_data->queue.next, in bfin_spi_pump_messages() 896 drv_data->cur_chip = spi_get_ctldata(drv_data->cur_msg->spi); in bfin_spi_pump_messages() [all …]
|
D | spi-adi-v3.c | 66 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()
|
D | spi-pxa2xx.c | 340 cs = drv_data->master->cur_msg->spi->chip_select; in lpss_ssp_select_cs() 380 spi_get_ctldata(drv_data->master->cur_msg->spi); in cs_assert() 404 spi_get_ctldata(drv_data->master->cur_msg->spi); in cs_deassert() 534 struct spi_message *msg = drv_data->master->cur_msg; in pxa2xx_spi_next_transfer() 555 msg = drv_data->master->cur_msg; in giveback() 606 spi_get_ctldata(drv_data->master->cur_msg->spi); in reset_sccr1() 638 drv_data->master->cur_msg->state = ERROR_STATE; in int_error_stop() 651 drv_data->master->cur_msg->actual_length += drv_data->len - in int_transfer_complete() 659 drv_data->master->cur_msg->state = pxa2xx_spi_next_transfer(drv_data); in int_transfer_complete() 774 if (!drv_data->master->cur_msg) { in ssp_int() [all …]
|
D | spi-pl022.c | 382 struct spi_message *cur_msg; member 492 last_transfer = list_last_entry(&pl022->cur_msg->transfers, in giveback() 523 if (next_msg && next_msg->spi != pl022->cur_msg->spi) in giveback() 525 if (!next_msg || pl022->cur_msg->state == STATE_ERROR) in giveback() 532 pl022->cur_msg = NULL; in giveback() 785 struct spi_message *msg = pl022->cur_msg; in next_transfer() 817 struct spi_message *msg = pl022->cur_msg; in dma_callback() 1262 struct spi_message *msg = pl022->cur_msg; in pl022_interrupt_handler() 1391 message = pl022->cur_msg; in pump_transfers() 1465 pl022->cur_msg->state = STATE_ERROR; in do_interrupt_dma_transfer() [all …]
|
D | spi-pxa2xx-dma.c | 26 struct spi_message *msg = drv_data->master->cur_msg; in pxa2xx_spi_dma_transfer_complete() 80 spi_get_ctldata(drv_data->master->cur_msg->spi); in pxa2xx_spi_dma_prepare_one()
|
D | spi-fsl-dspi.c | 152 struct spi_message *cur_msg; member 389 dspi->cur_msg = message; in dspi_transfer_one_message() 394 &dspi->cur_msg->transfers) || transfer->cs_change) in dspi_transfer_one_message() 523 struct spi_message *msg = dspi->cur_msg; in dspi_interrupt()
|
D | spi.c | 1116 if (master->cur_msg) { in __spi_pump_messages() 1168 master->cur_msg = in __spi_pump_messages() 1171 list_del_init(&master->cur_msg->queue); in __spi_pump_messages() 1206 trace_spi_message_start(master->cur_msg); in __spi_pump_messages() 1209 ret = master->prepare_message(master, master->cur_msg); in __spi_pump_messages() 1213 master->cur_msg->status = ret; in __spi_pump_messages() 1220 ret = spi_map_msg(master, master->cur_msg); in __spi_pump_messages() 1222 master->cur_msg->status = ret; in __spi_pump_messages() 1227 ret = master->transfer_one_message(master, master->cur_msg); in __spi_pump_messages() 1326 mesg = master->cur_msg; in spi_finalize_current_message() [all …]
|
D | spi-pic32.c | 236 if (pic32s->master->cur_msg) in pic32_err_stop() 237 pic32s->master->cur_msg->status = -EIO; in pic32_err_stop() 261 if (!pic32s->master->cur_msg) { in pic32_spi_fault_irq()
|
D | spi-dw.c | 222 dws->master->cur_msg->status = -EIO; in int_error_stop() 262 if (!master->cur_msg) { in dw_spi_irq()
|
D | spi-dw-mid.c | 110 dws->master->cur_msg->status = -EIO; in dma_transfer()
|
D | spi-mt65xx.c | 442 if (!master->can_dma(master, master->cur_msg->spi, trans)) { in mtk_spi_interrupt()
|
/drivers/w1/ |
D | w1_netlink.c | 48 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()
|