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