Lines Matching refs:txn
303 struct slim_msg_txn *txn, in slim_alloc_txbuf() argument
326 struct slim_msg_txn *txn) in qcom_xfer_msg() argument
330 void *pbuf = slim_alloc_txbuf(ctrl, txn, &done); in qcom_xfer_msg()
331 unsigned long ms = txn->rl + HZ; in qcom_xfer_msg()
334 u8 la = txn->la; in qcom_xfer_msg()
337 txn->rl--; in qcom_xfer_msg()
343 pbuf = slim_alloc_txbuf(ctrl, txn, &done); in qcom_xfer_msg()
355 if (txn->dt == SLIM_MSG_DEST_LOGICALADDR) { in qcom_xfer_msg()
356 *head = SLIM_MSG_ASM_FIRST_WORD(txn->rl, txn->mt, in qcom_xfer_msg()
357 txn->mc, 0, la); in qcom_xfer_msg()
360 *head = SLIM_MSG_ASM_FIRST_WORD(txn->rl, txn->mt, in qcom_xfer_msg()
361 txn->mc, 1, la); in qcom_xfer_msg()
365 if (slim_tid_txn(txn->mt, txn->mc)) in qcom_xfer_msg()
366 *(puc++) = txn->tid; in qcom_xfer_msg()
368 if (slim_ec_txn(txn->mt, txn->mc)) { in qcom_xfer_msg()
369 *(puc++) = (txn->ec & 0xFF); in qcom_xfer_msg()
370 *(puc++) = (txn->ec >> 8) & 0xFF; in qcom_xfer_msg()
373 if (txn->msg && txn->msg->wbuf) in qcom_xfer_msg()
374 memcpy(puc, txn->msg->wbuf, txn->msg->num_bytes); in qcom_xfer_msg()
376 qcom_slim_queue_tx(ctrl, head, txn->rl, MGR_TX_MSG); in qcom_xfer_msg()
380 dev_err(ctrl->dev, "TX timed out:MC:0x%x,mt:0x%x", txn->mc, in qcom_xfer_msg()
381 txn->mt); in qcom_xfer_msg()
401 DEFINE_SLIM_EDEST_TXN(txn, SLIM_MSG_MC_ASSIGN_LOGICAL_ADDRESS, in qcom_set_laddr()
413 ret = slim_do_transfer(&ctrl->ctrl, &txn); in qcom_set_laddr()