/Linux-v5.15/drivers/slimbus/ |
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() 63 int slim_alloc_txn_tid(struct slim_controller *ctrl, struct slim_msg_txn *txn) in slim_alloc_txn_tid() argument 69 ret = idr_alloc_cyclic(&ctrl->tid_idr, txn, 1, in slim_alloc_txn_tid() 75 txn->tid = ret; in slim_alloc_txn_tid() [all …]
|
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() 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() 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 408 rc = qmi_txn_init(ctrl->qmi.handle, &txn, in qcom_slim_qmi_send_power_request() 411 rc = qmi_send_request(ctrl->qmi.handle, NULL, &txn, in qcom_slim_qmi_send_power_request() [all …]
|
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() 270 DEFINE_SLIM_LDEST_TXN(txn, mc, 8, stream->dev->laddr, &msg); in slim_define_channel_content() [all …]
|
D | sched.c | 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()
|
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 …]
|
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);
|
/Linux-v5.15/drivers/soc/qcom/ |
D | qmi_interface.c | 307 int qmi_txn_init(struct qmi_handle *qmi, struct qmi_txn *txn, in qmi_txn_init() argument 312 memset(txn, 0, sizeof(*txn)); in qmi_txn_init() 314 mutex_init(&txn->lock); in qmi_txn_init() 315 init_completion(&txn->completion); in qmi_txn_init() 316 txn->qmi = qmi; in qmi_txn_init() 317 txn->ei = ei; in qmi_txn_init() 318 txn->dest = c_struct; in qmi_txn_init() 321 ret = idr_alloc_cyclic(&qmi->txns, txn, 0, U16_MAX, GFP_KERNEL); in qmi_txn_init() 325 txn->id = ret; in qmi_txn_init() 343 int qmi_txn_wait(struct qmi_txn *txn, unsigned long timeout) in qmi_txn_wait() argument [all …]
|
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() 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() 301 struct qmi_txn *txn, const void *data) in pdr_indication_cb() argument [all …]
|
/Linux-v5.15/drivers/sbus/char/ |
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 …]
|
/Linux-v5.15/drivers/net/wireless/ath/ath10k/ |
D | qmi.c | 121 struct qmi_txn txn; in ath10k_qmi_msa_mem_info_send_sync_msg() local 128 ret = qmi_txn_init(&qmi->qmi_hdl, &txn, in ath10k_qmi_msa_mem_info_send_sync_msg() 133 ret = qmi_send_request(&qmi->qmi_hdl, NULL, &txn, in ath10k_qmi_msa_mem_info_send_sync_msg() 138 qmi_txn_cancel(&txn); in ath10k_qmi_msa_mem_info_send_sync_msg() 143 ret = qmi_txn_wait(&txn, ATH10K_QMI_TIMEOUT * HZ); in ath10k_qmi_msa_mem_info_send_sync_msg() 198 struct qmi_txn txn; in ath10k_qmi_msa_ready_send_sync_msg() local 201 ret = qmi_txn_init(&qmi->qmi_hdl, &txn, in ath10k_qmi_msa_ready_send_sync_msg() 206 ret = qmi_send_request(&qmi->qmi_hdl, NULL, &txn, in ath10k_qmi_msa_ready_send_sync_msg() 211 qmi_txn_cancel(&txn); in ath10k_qmi_msa_ready_send_sync_msg() 216 ret = qmi_txn_wait(&txn, ATH10K_QMI_TIMEOUT * HZ); in ath10k_qmi_msa_ready_send_sync_msg() [all …]
|
/Linux-v5.15/drivers/gpu/drm/omapdrm/ |
D | omap_dmm_tiler.c | 216 static void *alloc_dma(struct dmm_txn *txn, size_t sz, dma_addr_t *pa) in alloc_dma() argument 219 struct refill_engine *engine = txn->engine_handle; in alloc_dma() 222 txn->current_pa = round_up(txn->current_pa, 16); in alloc_dma() 223 txn->current_va = (void *)round_up((long)txn->current_va, 16); in alloc_dma() 225 ptr = txn->current_va; in alloc_dma() 226 *pa = txn->current_pa; in alloc_dma() 228 txn->current_pa += sz; in alloc_dma() 229 txn->current_va += sz; in alloc_dma() 231 BUG_ON((txn->current_va - engine->refill_va) > REFILL_BUFFER_SIZE); in alloc_dma() 314 struct dmm_txn *txn = NULL; in dmm_txn_init() local [all …]
|
D | omap_dmm_priv.h | 147 struct dmm_txn txn; member
|
/Linux-v5.15/samples/qmi/ |
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 …]
|
/Linux-v5.15/include/linux/soc/qcom/ |
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);
|
/Linux-v5.15/drivers/net/ipa/ |
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() 410 struct qmi_txn txn; in ipa_client_init_driver_work() local 421 ret = qmi_txn_init(qmi, &txn, NULL, NULL); in ipa_client_init_driver_work() 429 ret = qmi_send_request(qmi, &ipa_qmi->modem_sq, &txn, in ipa_client_init_driver_work() [all …]
|
/Linux-v5.15/drivers/net/wireless/ath/ath11k/ |
D | qmi.c | 1517 struct qmi_txn txn = {}; in ath11k_qmi_host_cap_send() local 1561 ret = qmi_txn_init(&ab->qmi.handle, &txn, in ath11k_qmi_host_cap_send() 1566 ret = qmi_send_request(&ab->qmi.handle, NULL, &txn, in ath11k_qmi_host_cap_send() 1575 ret = qmi_txn_wait(&txn, msecs_to_jiffies(ATH11K_QMI_WLANFW_TIMEOUT_MS)); in ath11k_qmi_host_cap_send() 1595 struct qmi_txn txn; in ath11k_qmi_fw_ind_register_send() local 1624 ret = qmi_txn_init(handle, &txn, in ath11k_qmi_fw_ind_register_send() 1631 ret = qmi_send_request(&ab->qmi.handle, NULL, &txn, in ath11k_qmi_fw_ind_register_send() 1641 ret = qmi_txn_wait(&txn, msecs_to_jiffies(ATH11K_QMI_WLANFW_TIMEOUT_MS)); in ath11k_qmi_fw_ind_register_send() 1665 struct qmi_txn txn = {}; in ath11k_qmi_respond_fw_mem_request() local 1701 ret = qmi_txn_init(&ab->qmi.handle, &txn, in ath11k_qmi_respond_fw_mem_request() [all …]
|
/Linux-v5.15/drivers/remoteproc/ |
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() 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() 396 ret = qmi_send_request(&sysmon->qmi, &sysmon->ssctl, &txn, in ssctl_send_event() 401 qmi_txn_cancel(&txn); in ssctl_send_event() [all …]
|
/Linux-v5.15/drivers/staging/fwserial/ |
D | fwserial.c | 84 struct fwtty_transaction *txn); 217 struct fwtty_transaction *txn = cb_data; in fwtty_common_callback() local 218 struct fwtty_port *port = txn->port; in fwtty_common_callback() 222 if (txn->callback) in fwtty_common_callback() 223 txn->callback(card, rcode, payload, len, txn); in fwtty_common_callback() 224 kmem_cache_free(fwtty_txn_cache, txn); in fwtty_common_callback() 232 struct fwtty_transaction *txn; in fwtty_send_data_async() local 235 txn = kmem_cache_alloc(fwtty_txn_cache, GFP_ATOMIC); in fwtty_send_data_async() 236 if (!txn) in fwtty_send_data_async() 239 txn->callback = callback; in fwtty_send_data_async() [all …]
|
/Linux-v5.15/drivers/edac/ |
D | armada_xp_edac.c | 410 uint32_t cnt, src, txn, err, attr_cap, addr_cap, way_cap; in aurora_l2_check() local 436 txn = (attr_cap & AURORA_ERR_ATTR_TXN_MSK) >> AURORA_ERR_ATTR_TXN_OFF; in aurora_l2_check() 437 switch (txn) { in aurora_l2_check()
|
/Linux-v5.15/drivers/dma/ |
D | sa11x0-dma.c | 178 struct sa11x0_dma_desc *txn = sa11x0_dma_next_desc(c); in sa11x0_dma_start_sg() local 185 if (txn && txn->ddar == txd->ddar) { in sa11x0_dma_start_sg() 186 txd = txn; in sa11x0_dma_start_sg() 187 sa11x0_dma_start_desc(p, txn); in sa11x0_dma_start_sg()
|
/Linux-v5.15/arch/x86/events/intel/ |
D | ds.c | 1411 u64 txn = (tsx_tuning & PEBS_HSW_TSX_FLAGS) >> 32; in intel_get_tsx_transaction() local 1414 if ((txn & PERF_TXN_TRANSACTION) && (ax & 1)) in intel_get_tsx_transaction() 1415 txn |= ((ax >> 24) & 0xff) << PERF_TXN_ABORT_SHIFT; in intel_get_tsx_transaction() 1416 return txn; in intel_get_tsx_transaction() 1576 data->txn = intel_get_tsx_transaction(pebs->tsx_tuning, in setup_pebs_fixed_sample_data() 1719 data->txn = intel_get_tsx_transaction(meminfo->tsx_tuning, in setup_pebs_adaptive_sample_data()
|
/Linux-v5.15/include/linux/ |
D | perf_event.h | 1008 u64 txn; member 1058 data->txn = 0; in perf_sample_data_init()
|
/Linux-v5.15/tools/perf/util/ |
D | intel-pt.c | 2104 u64 txn = (u8)(items->tsx_aux_info >> 32); in intel_pt_synth_pebs_sample() local 2107 if (txn & PERF_TXN_TRANSACTION && ax & 1) in intel_pt_synth_pebs_sample() 2108 txn |= ((ax >> 24) & 0xff) << PERF_TXN_ABORT_SHIFT; in intel_pt_synth_pebs_sample() 2109 sample.transaction = txn; in intel_pt_synth_pebs_sample()
|
/Linux-v5.15/fs/ext4/ |
D | super.c | 439 static void ext4_journal_commit_callback(journal_t *journal, transaction_t *txn) in ext4_journal_commit_callback() argument 446 BUG_ON(txn->t_state == T_FINISHED); in ext4_journal_commit_callback() 448 ext4_process_freed_data(sb, txn->t_tid); in ext4_journal_commit_callback() 451 while (!list_empty(&txn->t_private_list)) { in ext4_journal_commit_callback() 452 jce = list_entry(txn->t_private_list.next, in ext4_journal_commit_callback()
|
/Linux-v5.15/Documentation/driver-api/dmaengine/ |
D | provider.rst | 557 ``dmaengine_desc_clear_reuse()`` and submitting for last txn
|