/openbmc/linux/drivers/slimbus/ |
H A D | messaging.c | 26 struct slim_msg_txn *txn; in slim_msg_response() local 31 txn = idr_find(&ctrl->tid_idr, tid); in slim_msg_response() 34 if (txn == NULL) in slim_msg_response() 37 msg = txn->msg; in slim_msg_response() 44 slim_free_txn_tid(ctrl, txn); in slim_msg_response() 46 if (txn->comp) in slim_msg_response() 47 complete(txn->comp); in slim_msg_response() 49 /* Remove runtime-pm vote now that response was received for TID txn */ in slim_msg_response() 56 * slim_alloc_txn_tid() - Allocate a tid to txn 59 * @txn: transaction to be allocated with tid. [all …]
|
H A D | qcom-ngd-ctrl.c | 352 struct qmi_txn txn; in qcom_slim_qmi_send_select_inst_req() local 355 rc = qmi_txn_init(ctrl->qmi.handle, &txn, in qcom_slim_qmi_send_select_inst_req() 358 dev_err(ctrl->dev, "QMI TXN init fail: %d\n", rc); in qcom_slim_qmi_send_select_inst_req() 362 rc = qmi_send_request(ctrl->qmi.handle, NULL, &txn, in qcom_slim_qmi_send_select_inst_req() 368 qmi_txn_cancel(&txn); in qcom_slim_qmi_send_select_inst_req() 372 rc = qmi_txn_wait(&txn, SLIMBUS_QMI_RESP_TOUT); in qcom_slim_qmi_send_select_inst_req() 374 dev_err(ctrl->dev, "QMI TXN wait fail: %d\n", rc); in qcom_slim_qmi_send_select_inst_req() 389 struct qmi_txn *txn, const void *data) in qcom_slim_qmi_power_resp_cb() argument 398 complete(&txn->completion); in qcom_slim_qmi_power_resp_cb() 405 struct qmi_txn txn; in qcom_slim_qmi_send_power_request() local [all …]
|
H A D | stream.c | 130 DEFINE_SLIM_LDEST_TXN(txn, mc, 6, stream->dev->laddr, &msg); in slim_connect_port_channel() 133 txn.mc = SLIM_MSG_MC_CONNECT_SINK; in slim_connect_port_channel() 140 return slim_do_transfer(sdev->ctrl, &txn); in slim_connect_port_channel() 150 DEFINE_SLIM_LDEST_TXN(txn, mc, 5, stream->dev->laddr, &msg); in slim_disconnect_port() 156 return slim_do_transfer(sdev->ctrl, &txn); in slim_disconnect_port() 166 DEFINE_SLIM_LDEST_TXN(txn, mc, 5, stream->dev->laddr, &msg); in slim_deactivate_remove_channel() 170 ret = slim_do_transfer(sdev->ctrl, &txn); in slim_deactivate_remove_channel() 174 txn.mc = SLIM_MSG_MC_NEXT_REMOVE_CHANNEL; in slim_deactivate_remove_channel() 177 return slim_do_transfer(sdev->ctrl, &txn); in slim_deactivate_remove_channel() 277 DEFINE_SLIM_LDEST_TXN(txn, mc, 8, stream->dev->laddr, &msg); in slim_define_channel_content() [all …]
|
H A D | sched.c | 23 * For entering clock-pause, -EBUSY is returned if a message txn in pending. 32 DEFINE_SLIM_BCAST_TXN(txn, SLIM_MSG_MC_BEGIN_RECONFIGURATION, in slim_ctrl_clk_pause() 92 ret = slim_do_transfer(ctrl, &txn); in slim_ctrl_clk_pause() 96 txn.mc = SLIM_MSG_MC_NEXT_PAUSE_CLOCK; in slim_ctrl_clk_pause() 97 txn.rl = 4; in slim_ctrl_clk_pause() 100 ret = slim_do_transfer(ctrl, &txn); in slim_ctrl_clk_pause() 104 txn.mc = SLIM_MSG_MC_RECONFIGURE_NOW; in slim_ctrl_clk_pause() 105 txn.rl = 3; in slim_ctrl_clk_pause() 108 ret = slim_do_transfer(ctrl, &txn); in slim_ctrl_clk_pause()
|
H A D | qcom-ctrl.c | 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() [all …]
|
H A D | slimbus.h | 431 int slim_do_transfer(struct slim_controller *ctrl, struct slim_msg_txn *txn); 433 int slim_alloc_txn_tid(struct slim_controller *ctrl, struct slim_msg_txn *txn); 434 void slim_free_txn_tid(struct slim_controller *ctrl, struct slim_msg_txn *txn);
|
/openbmc/linux/drivers/soc/qcom/ |
H A D | qmi_interface.c | 295 * @txn: transaction context 308 int qmi_txn_init(struct qmi_handle *qmi, struct qmi_txn *txn, in qmi_txn_init() argument 313 memset(txn, 0, sizeof(*txn)); in qmi_txn_init() 315 mutex_init(&txn->lock); in qmi_txn_init() 316 init_completion(&txn->completion); in qmi_txn_init() 317 txn->qmi = qmi; in qmi_txn_init() 318 txn->ei = ei; in qmi_txn_init() 319 txn->dest = c_struct; in qmi_txn_init() 322 ret = idr_alloc_cyclic(&qmi->txns, txn, 0, U16_MAX, GFP_KERNEL); in qmi_txn_init() 326 txn->id = ret; in qmi_txn_init() [all …]
|
H A D | pdr_interface.c | 124 struct qmi_txn txn; in pdr_register_listener() local 127 ret = qmi_txn_init(&pdr->notifier_hdl, &txn, in pdr_register_listener() 137 &txn, SERVREG_REGISTER_LISTENER_REQ, in pdr_register_listener() 142 qmi_txn_cancel(&txn); in pdr_register_listener() 146 ret = qmi_txn_wait(&txn, 5 * HZ); in pdr_register_listener() 148 pr_err("PDR: %s register listener txn wait failed: %d\n", in pdr_register_listener() 251 struct qmi_txn txn; in pdr_send_indack_msg() local 254 ret = qmi_txn_init(&pdr->notifier_hdl, &txn, servreg_set_ack_resp_ei, in pdr_send_indack_msg() 263 &txn, SERVREG_SET_ACK_REQ, in pdr_send_indack_msg() 269 qmi_txn_cancel(&txn); in pdr_send_indack_msg() [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-blockjob-txn.c | 80 int rc, int *result, JobTxn *txn) in test_block_job_start() argument 96 s = block_job_create(job_id, &test_block_job_driver, txn, bs, in test_block_job_start() 112 JobTxn *txn; in test_single_job() local 115 txn = job_txn_new(); in test_single_job() 116 job = test_block_job_start(1, true, expected, &result, txn); in test_single_job() 130 job_txn_unref(txn); in test_single_job() 152 JobTxn *txn; in test_pair_jobs() local 156 txn = job_txn_new(); in test_pair_jobs() 157 job1 = test_block_job_start(1, true, expected1, &result1, txn); in test_pair_jobs() 158 job2 = test_block_job_start(2, true, expected2, &result2, txn); in test_pair_jobs() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath10k/ |
H A D | qmi.c | 127 struct qmi_txn txn; in ath10k_qmi_msa_mem_info_send_sync_msg() local 134 ret = qmi_txn_init(&qmi->qmi_hdl, &txn, in ath10k_qmi_msa_mem_info_send_sync_msg() 139 ret = qmi_send_request(&qmi->qmi_hdl, NULL, &txn, in ath10k_qmi_msa_mem_info_send_sync_msg() 144 qmi_txn_cancel(&txn); in ath10k_qmi_msa_mem_info_send_sync_msg() 149 ret = qmi_txn_wait(&txn, ATH10K_QMI_TIMEOUT * HZ); in ath10k_qmi_msa_mem_info_send_sync_msg() 204 struct qmi_txn txn; in ath10k_qmi_msa_ready_send_sync_msg() local 207 ret = qmi_txn_init(&qmi->qmi_hdl, &txn, in ath10k_qmi_msa_ready_send_sync_msg() 212 ret = qmi_send_request(&qmi->qmi_hdl, NULL, &txn, in ath10k_qmi_msa_ready_send_sync_msg() 217 qmi_txn_cancel(&txn); in ath10k_qmi_msa_ready_send_sync_msg() 222 ret = qmi_txn_wait(&txn, ATH10K_QMI_TIMEOUT * HZ); in ath10k_qmi_msa_ready_send_sync_msg() [all …]
|
/openbmc/linux/drivers/sbus/char/ |
H A D | uctrl.c | 262 static void uctrl_do_txn(struct uctrl_driver *driver, struct uctrl_txn *txn) in uctrl_do_txn() argument 273 incnt = txn->inbits; in uctrl_do_txn() 274 outcnt = txn->outbits; in uctrl_do_txn() 275 byte = (txn->opcode << 8); in uctrl_do_txn() 280 byte = (txn->inbuf[bytecnt] << 8); in uctrl_do_txn() 293 txn->outbuf[bytecnt] = (byte >> 8); in uctrl_do_txn() 302 struct uctrl_txn txn; in uctrl_get_event_status() local 305 txn.opcode = READ_EVENT_STATUS; in uctrl_get_event_status() 306 txn.inbits = 0; in uctrl_get_event_status() 307 txn.outbits = 2; in uctrl_get_event_status() [all …]
|
/openbmc/qemu/ |
H A D | job.c | 89 /* Is this txn being cancelled? */ 116 JobTxn *txn = g_new0(JobTxn, 1); in job_txn_new() local 117 QLIST_INIT(&txn->jobs); in job_txn_new() 118 txn->refcnt = 1; in job_txn_new() 119 return txn; in job_txn_new() 123 static void job_txn_ref_locked(JobTxn *txn) in job_txn_ref_locked() argument 125 txn->refcnt++; in job_txn_ref_locked() 128 void job_txn_unref_locked(JobTxn *txn) in job_txn_unref_locked() argument 130 if (txn && --txn->refcnt == 0) { in job_txn_unref_locked() 131 g_free(txn); in job_txn_unref_locked() [all …]
|
/openbmc/linux/drivers/gpu/drm/omapdrm/ |
H A D | omap_dmm_tiler.c | 208 /* simple allocator to grab next 16 byte aligned memory from txn */ 209 static void *alloc_dma(struct dmm_txn *txn, size_t sz, dma_addr_t *pa) in alloc_dma() argument 212 struct refill_engine *engine = txn->engine_handle; in alloc_dma() 215 txn->current_pa = round_up(txn->current_pa, 16); in alloc_dma() 216 txn->current_va = (void *)round_up((long)txn->current_va, 16); in alloc_dma() 218 ptr = txn->current_va; in alloc_dma() 219 *pa = txn->current_pa; in alloc_dma() 221 txn->current_pa += sz; in alloc_dma() 222 txn->current_va += sz; in alloc_dma() 224 BUG_ON((txn->current_va - engine->refill_va) > REFILL_BUFFER_SIZE); in alloc_dma() [all …]
|
/openbmc/linux/samples/qmi/ |
H A D | qmi_sample_client.c | 306 struct qmi_txn txn; in ping_write() local 311 ret = qmi_txn_init(qmi, &txn, NULL, NULL); in ping_write() 315 ret = qmi_send_request(qmi, NULL, &txn, in ping_write() 320 qmi_txn_cancel(&txn); in ping_write() 324 ret = qmi_txn_wait(&txn, 5 * HZ); in ping_write() 337 struct qmi_txn *txn, const void *data) in ping_pong_cb() argument 341 if (!txn) { in ping_pong_cb() 347 txn->result = -ENXIO; in ping_pong_cb() 349 txn->result = -EINVAL; in ping_pong_cb() 351 complete(&txn->completion); in ping_pong_cb() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath11k/ |
H A D | qmi.c | 1711 struct qmi_txn txn; in ath11k_qmi_host_cap_send() local 1760 ret = qmi_txn_init(&ab->qmi.handle, &txn, in ath11k_qmi_host_cap_send() 1765 ret = qmi_send_request(&ab->qmi.handle, NULL, &txn, in ath11k_qmi_host_cap_send() 1770 qmi_txn_cancel(&txn); in ath11k_qmi_host_cap_send() 1775 ret = qmi_txn_wait(&txn, msecs_to_jiffies(ATH11K_QMI_WLANFW_TIMEOUT_MS)); in ath11k_qmi_host_cap_send() 1795 struct qmi_txn txn; in ath11k_qmi_fw_ind_register_send() local 1831 ret = qmi_txn_init(handle, &txn, in ath11k_qmi_fw_ind_register_send() 1838 ret = qmi_send_request(&ab->qmi.handle, NULL, &txn, in ath11k_qmi_fw_ind_register_send() 1843 qmi_txn_cancel(&txn); in ath11k_qmi_fw_ind_register_send() 1849 ret = qmi_txn_wait(&txn, msecs_to_jiffies(ATH11K_QMI_WLANFW_TIMEOUT_MS)); in ath11k_qmi_fw_ind_register_send() [all …]
|
/openbmc/linux/drivers/net/ipa/ |
H A D | ipa_qmi.c | 181 struct qmi_txn *txn, in ipa_server_indication_register() argument 195 ret = qmi_send_response(qmi, sq, txn, IPA_QMI_INDICATION_REGISTER, in ipa_server_indication_register() 210 struct qmi_txn *txn, in ipa_server_driver_init_complete() argument 224 ret = qmi_send_response(qmi, sq, txn, IPA_QMI_DRIVER_INIT_COMPLETE, in ipa_server_driver_init_complete() 258 struct qmi_txn *txn, const void *decoded) in ipa_client_init_driver() argument 260 txn->result = 0; /* IPA_QMI_INIT_DRIVER request was successful */ in ipa_client_init_driver() 261 complete(&txn->completion); in ipa_client_init_driver() 411 struct qmi_txn txn; in ipa_client_init_driver_work() local 422 ret = qmi_txn_init(qmi, &txn, NULL, NULL); in ipa_client_init_driver_work() 430 ret = qmi_send_request(qmi, &ipa_qmi->modem_sq, &txn, in ipa_client_init_driver_work() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath12k/ |
H A D | qmi.c | 1924 struct qmi_txn txn = {}; in ath12k_qmi_host_cap_send() local 1970 ret = qmi_txn_init(&ab->qmi.handle, &txn, in ath12k_qmi_host_cap_send() 1975 ret = qmi_send_request(&ab->qmi.handle, NULL, &txn, in ath12k_qmi_host_cap_send() 1980 qmi_txn_cancel(&txn); in ath12k_qmi_host_cap_send() 1985 ret = qmi_txn_wait(&txn, msecs_to_jiffies(ATH12K_QMI_WLANFW_TIMEOUT_MS)); in ath12k_qmi_host_cap_send() 2005 struct qmi_txn txn; in ath12k_qmi_fw_ind_register_send() local 2034 ret = qmi_txn_init(handle, &txn, in ath12k_qmi_fw_ind_register_send() 2039 ret = qmi_send_request(&ab->qmi.handle, NULL, &txn, in ath12k_qmi_fw_ind_register_send() 2044 qmi_txn_cancel(&txn); in ath12k_qmi_fw_ind_register_send() 2050 ret = qmi_txn_wait(&txn, msecs_to_jiffies(ATH12K_QMI_WLANFW_TIMEOUT_MS)); in ath12k_qmi_fw_ind_register_send() [all …]
|
/openbmc/linux/include/linux/soc/qcom/ |
H A D | qmi.h | 196 struct qmi_txn *txn, const void *decoded); 251 struct qmi_txn *txn, int msg_id, size_t len, 254 struct qmi_txn *txn, int msg_id, size_t len, 267 int qmi_txn_init(struct qmi_handle *qmi, struct qmi_txn *txn, 269 int qmi_txn_wait(struct qmi_txn *txn, unsigned long timeout); 270 void qmi_txn_cancel(struct qmi_txn *txn);
|
/openbmc/linux/drivers/remoteproc/ |
H A D | qcom_sysmon.c | 290 struct qmi_txn *txn, const void *data) in sysmon_ind_cb() argument 333 struct qmi_txn txn; in ssctl_request_shutdown() local 339 ret = qmi_txn_init(&sysmon->qmi, &txn, ssctl_shutdown_resp_ei, &resp); in ssctl_request_shutdown() 341 dev_err(sysmon->dev, "failed to allocate QMI txn\n"); in ssctl_request_shutdown() 345 ret = qmi_send_request(&sysmon->qmi, &sysmon->ssctl, &txn, in ssctl_request_shutdown() 349 qmi_txn_cancel(&txn); in ssctl_request_shutdown() 353 ret = qmi_txn_wait(&txn, 5 * HZ); in ssctl_request_shutdown() 379 struct qmi_txn txn; in ssctl_send_event() local 383 ret = qmi_txn_init(&sysmon->qmi, &txn, ssctl_subsys_event_resp_ei, &resp); in ssctl_send_event() 385 dev_err(sysmon->dev, "failed to allocate QMI txn\n"); in ssctl_send_event() [all …]
|
/openbmc/linux/drivers/edac/ |
H A D | armada_xp_edac.c | 403 uint32_t cnt, src, txn, err, attr_cap, addr_cap, way_cap; in aurora_l2_check() local 429 txn = (attr_cap & AURORA_ERR_ATTR_TXN_MSK) >> AURORA_ERR_ATTR_TXN_OFF; in aurora_l2_check() 430 switch (txn) { in aurora_l2_check() 432 len += scnprintf(msg+len, size-len, "txn=Data-Read "); in aurora_l2_check() 435 len += scnprintf(msg+len, size-len, "txn=Isn-Read "); in aurora_l2_check() 438 len += scnprintf(msg+len, size-len, "txn=Clean-Flush "); in aurora_l2_check() 441 len += scnprintf(msg+len, size-len, "txn=Eviction "); in aurora_l2_check() 445 "txn=Read-Modify-Write "); in aurora_l2_check()
|
/openbmc/linux/Documentation/devicetree/bindings/phy/ |
H A D | phy-miphy365x.txt | 36 - st,pcie-tx-pol-inv : Bool property to invert the polarity PCIe Tx (Txn/Txp) 37 - st,sata-tx-pol-inv : Bool property to invert the polarity SATA Tx (Txn/Txp)
|
/openbmc/qemu/include/block/ |
H A D | blockjob_int.h | 96 * @txn: The transaction this job belongs to, if any. %NULL otherwise. 116 JobTxn *txn, BlockDriverState *bs, uint64_t perm,
|
/openbmc/qemu/include/qemu/ |
H A D | job.h | 181 JobTxn *txn; member 371 void job_txn_unref(JobTxn *txn); 377 void job_txn_unref_locked(JobTxn *txn); 385 * @txn: The transaction this job belongs to, if any. %NULL otherwise. 392 void *job_create(const char *job_id, const JobDriver *driver, JobTxn *txn,
|
/openbmc/linux/Documentation/devicetree/bindings/usb/ |
H A D | da8xx-usb.txt | 24 and "txN" for transmit endpoints. N specifies the endpoint number.
|
/openbmc/linux/Documentation/devicetree/bindings/spi/ |
H A D | omap-spi.yaml | 72 "rxN" and "txN" for RX and TX requests, respectively. Where N
|