Lines Matching refs:txn
272 static void uctrl_do_txn(struct uctrl_txn *txn) in uctrl_do_txn() argument
284 incnt = txn->inbits; in uctrl_do_txn()
285 outcnt = txn->outbits; in uctrl_do_txn()
286 byte = (txn->opcode << 8); in uctrl_do_txn()
291 byte = (txn->inbuf[bytecnt] << 8); in uctrl_do_txn()
304 txn->outbuf[bytecnt] = (byte >> 8); in uctrl_do_txn()
314 struct uctrl_txn txn; in uctrl_get_event_status() local
317 txn.opcode = READ_EVENT_STATUS; in uctrl_get_event_status()
318 txn.inbits = 0; in uctrl_get_event_status()
319 txn.outbits = 2; in uctrl_get_event_status()
320 txn.inbuf = 0; in uctrl_get_event_status()
321 txn.outbuf = outbits; in uctrl_get_event_status()
323 uctrl_do_txn(&txn); in uctrl_get_event_status()
334 struct uctrl_txn txn; in uctrl_get_external_status() local
338 txn.opcode = READ_EXTERNAL_STATUS; in uctrl_get_external_status()
339 txn.inbits = 0; in uctrl_get_external_status()
340 txn.outbits = 2; in uctrl_get_external_status()
341 txn.inbuf = 0; in uctrl_get_external_status()
342 txn.outbuf = outbits; in uctrl_get_external_status()
344 uctrl_do_txn(&txn); in uctrl_get_external_status()