/linux-6.12.1/drivers/gpu/drm/xe/ |
D | xe_guc_relay.c | 211 struct relay_transaction *txn; in __relay_get_transaction() local 227 txn = mempool_alloc(&relay->pool, incoming ? GFP_ATOMIC : GFP_KERNEL); in __relay_get_transaction() 228 if (!txn) in __relay_get_transaction() 231 txn->incoming = incoming; in __relay_get_transaction() 232 txn->remote = remote; in __relay_get_transaction() 233 txn->rid = rid; in __relay_get_transaction() 234 txn->offset = remote ? in __relay_get_transaction() 235 prepare_pf2guc(incoming ? txn->response_buf : txn->request_buf, remote, rid) : in __relay_get_transaction() 236 prepare_vf2guc(incoming ? txn->response_buf : txn->request_buf, rid); in __relay_get_transaction() 238 relay_assert(relay, txn->offset); in __relay_get_transaction() [all …]
|
/linux-6.12.1/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() 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 …]
|
D | qcom-ngd-ctrl.c | 351 struct qmi_txn txn; in qcom_slim_qmi_send_select_inst_req() local 354 rc = qmi_txn_init(ctrl->qmi.handle, &txn, in qcom_slim_qmi_send_select_inst_req() 357 dev_err(ctrl->dev, "QMI TXN init fail: %d\n", rc); in qcom_slim_qmi_send_select_inst_req() 361 rc = qmi_send_request(ctrl->qmi.handle, NULL, &txn, in qcom_slim_qmi_send_select_inst_req() 367 qmi_txn_cancel(&txn); in qcom_slim_qmi_send_select_inst_req() 371 rc = qmi_txn_wait(&txn, SLIMBUS_QMI_RESP_TOUT); in qcom_slim_qmi_send_select_inst_req() 373 dev_err(ctrl->dev, "QMI TXN wait fail: %d\n", rc); in qcom_slim_qmi_send_select_inst_req() 388 struct qmi_txn *txn, const void *data) in qcom_slim_qmi_power_resp_cb() argument 397 complete(&txn->completion); in qcom_slim_qmi_power_resp_cb() 404 struct qmi_txn txn; in qcom_slim_qmi_send_power_request() local [all …]
|
D | stream.c | 132 DEFINE_SLIM_LDEST_TXN(txn, mc, 6, stream->dev->laddr, &msg); in slim_connect_port_channel() 135 txn.mc = SLIM_MSG_MC_CONNECT_SINK; in slim_connect_port_channel() 142 return slim_do_transfer(sdev->ctrl, &txn); in slim_connect_port_channel() 152 DEFINE_SLIM_LDEST_TXN(txn, mc, 5, stream->dev->laddr, &msg); in slim_disconnect_port() 158 return slim_do_transfer(sdev->ctrl, &txn); in slim_disconnect_port() 168 DEFINE_SLIM_LDEST_TXN(txn, mc, 5, stream->dev->laddr, &msg); in slim_deactivate_remove_channel() 172 ret = slim_do_transfer(sdev->ctrl, &txn); in slim_deactivate_remove_channel() 176 txn.mc = SLIM_MSG_MC_NEXT_REMOVE_CHANNEL; in slim_deactivate_remove_channel() 179 return slim_do_transfer(sdev->ctrl, &txn); in slim_deactivate_remove_channel() 279 DEFINE_SLIM_LDEST_TXN(txn, mc, 8, stream->dev->laddr, &msg); in slim_define_channel_content() [all …]
|
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() 335 u8 la = txn->la; in qcom_xfer_msg() 338 txn->rl--; in qcom_xfer_msg() 344 pbuf = slim_alloc_txbuf(ctrl, txn, &done); in qcom_xfer_msg() 356 if (txn->dt == SLIM_MSG_DEST_LOGICALADDR) { in qcom_xfer_msg() 357 *head = SLIM_MSG_ASM_FIRST_WORD(txn->rl, txn->mt, in qcom_xfer_msg() 358 txn->mc, 0, la); in qcom_xfer_msg() [all …]
|
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()
|
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-6.12.1/drivers/soc/qcom/ |
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 …]
|
D | pdr_interface.c | 125 struct qmi_txn txn; in pdr_register_listener() local 128 ret = qmi_txn_init(&pdr->notifier_hdl, &txn, in pdr_register_listener() 138 &txn, SERVREG_REGISTER_LISTENER_REQ, in pdr_register_listener() 143 qmi_txn_cancel(&txn); in pdr_register_listener() 147 ret = qmi_txn_wait(&txn, 5 * HZ); in pdr_register_listener() 149 pr_err("PDR: %s register listener txn wait failed: %d\n", in pdr_register_listener() 252 struct qmi_txn txn; in pdr_send_indack_msg() local 255 ret = qmi_txn_init(&pdr->notifier_hdl, &txn, servreg_set_ack_resp_ei, in pdr_send_indack_msg() 264 &txn, SERVREG_SET_ACK_REQ, in pdr_send_indack_msg() 270 qmi_txn_cancel(&txn); in pdr_send_indack_msg() [all …]
|
D | qcom_pd_mapper.c | 151 struct qmi_txn *txn, in qcom_pdm_get_domain_list() argument 204 ret = qmi_send_response(qmi, sq, txn, SERVREG_GET_DOMAIN_LIST_REQ, in qcom_pdm_get_domain_list() 217 struct qmi_txn *txn, in qcom_pdm_pfr() argument 229 ret = qmi_send_response(qmi, sq, txn, SERVREG_LOC_PFR_REQ, in qcom_pdm_pfr()
|
/linux-6.12.1/drivers/net/wireless/ath/ath10k/ |
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 …]
|
/linux-6.12.1/drivers/sbus/char/ |
D | uctrl.c | 261 static void uctrl_do_txn(struct uctrl_driver *driver, struct uctrl_txn *txn) in uctrl_do_txn() argument 272 incnt = txn->inbits; in uctrl_do_txn() 273 outcnt = txn->outbits; in uctrl_do_txn() 274 byte = (txn->opcode << 8); in uctrl_do_txn() 279 byte = (txn->inbuf[bytecnt] << 8); in uctrl_do_txn() 292 txn->outbuf[bytecnt] = (byte >> 8); in uctrl_do_txn() 301 struct uctrl_txn txn; in uctrl_get_event_status() local 304 txn.opcode = READ_EVENT_STATUS; in uctrl_get_event_status() 305 txn.inbits = 0; in uctrl_get_event_status() 306 txn.outbits = 2; in uctrl_get_event_status() [all …]
|
/linux-6.12.1/drivers/gpu/drm/omapdrm/ |
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 …]
|
/linux-6.12.1/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-6.12.1/drivers/net/wireless/ath/ath11k/ |
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 …]
|
/linux-6.12.1/drivers/net/wireless/ath/ath12k/ |
D | qmi.c | 2073 struct qmi_txn txn; in ath12k_qmi_host_cap_send() local 2116 ret = qmi_txn_init(&ab->qmi.handle, &txn, in ath12k_qmi_host_cap_send() 2121 ret = qmi_send_request(&ab->qmi.handle, NULL, &txn, in ath12k_qmi_host_cap_send() 2126 qmi_txn_cancel(&txn); in ath12k_qmi_host_cap_send() 2131 ret = qmi_txn_wait(&txn, msecs_to_jiffies(ATH12K_QMI_WLANFW_TIMEOUT_MS)); in ath12k_qmi_host_cap_send() 2150 struct qmi_txn txn; in ath12k_qmi_phy_cap_send() local 2153 ret = qmi_txn_init(&ab->qmi.handle, &txn, in ath12k_qmi_phy_cap_send() 2158 ret = qmi_send_request(&ab->qmi.handle, NULL, &txn, in ath12k_qmi_phy_cap_send() 2163 qmi_txn_cancel(&txn); in ath12k_qmi_phy_cap_send() 2168 ret = qmi_txn_wait(&txn, msecs_to_jiffies(ATH12K_QMI_WLANFW_TIMEOUT_MS)); in ath12k_qmi_phy_cap_send() [all …]
|
/linux-6.12.1/drivers/gpu/drm/xe/tests/ |
D | xe_guc_relay_test.c | 182 struct relay_transaction *txn; in pf_txn_reports_error() local 184 txn = __relay_get_transaction(relay, false, TEST_VFID, TEST_RID, in pf_txn_reports_error() 186 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, txn); in pf_txn_reports_error() 190 KUNIT_EXPECT_EQ(test, -ECOMM, relay_send_transaction(relay, txn)); in pf_txn_reports_error() 192 relay_release_transaction(relay, txn); in pf_txn_reports_error() 198 struct relay_transaction *txn; in pf_txn_sends_pf2guc() local 200 txn = __relay_get_transaction(relay, false, TEST_VFID, TEST_RID, in pf_txn_sends_pf2guc() 202 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, txn); in pf_txn_sends_pf2guc() 206 KUNIT_ASSERT_EQ(test, 0, relay_send_transaction(relay, txn)); in pf_txn_sends_pf2guc() 208 relay_release_transaction(relay, txn); in pf_txn_sends_pf2guc()
|
/linux-6.12.1/drivers/net/ipa/ |
D | ipa_qmi.c | 177 struct qmi_txn *txn, in ipa_server_indication_register() argument 191 ret = qmi_send_response(qmi, sq, txn, IPA_QMI_INDICATION_REGISTER, in ipa_server_indication_register() 206 struct qmi_txn *txn, in ipa_server_driver_init_complete() argument 220 ret = qmi_send_response(qmi, sq, txn, IPA_QMI_DRIVER_INIT_COMPLETE, in ipa_server_driver_init_complete() 254 struct qmi_txn *txn, const void *decoded) in ipa_client_init_driver() argument 256 txn->result = 0; /* IPA_QMI_INIT_DRIVER request was successful */ in ipa_client_init_driver() 257 complete(&txn->completion); in ipa_client_init_driver() 407 struct qmi_txn txn; in ipa_client_init_driver_work() local 418 ret = qmi_txn_init(qmi, &txn, NULL, NULL); in ipa_client_init_driver_work() 426 ret = qmi_send_request(qmi, &ipa_qmi->modem_sq, &txn, in ipa_client_init_driver_work() [all …]
|
/linux-6.12.1/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() 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 …]
|
/linux-6.12.1/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-6.12.1/drivers/edac/ |
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()
|
/linux-6.12.1/Documentation/devicetree/bindings/phy/ |
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)
|
/linux-6.12.1/Documentation/devicetree/bindings/usb/ |
D | da8xx-usb.txt | 24 and "txN" for transmit endpoints. N specifies the endpoint number.
|
/linux-6.12.1/Documentation/devicetree/bindings/spi/ |
D | omap-spi.yaml | 72 "rxN" and "txN" for RX and TX requests, respectively. Where N
|
/linux-6.12.1/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()
|