Home
last modified time | relevance | path

Searched refs:qmi (Results 1 – 25 of 36) sorted by relevance

12

/openbmc/linux/drivers/soc/qcom/
H A Dqmi_interface.c18 static struct socket *qmi_sock_create(struct qmi_handle *qmi,
32 static void qmi_recv_new_server(struct qmi_handle *qmi, in qmi_recv_new_server() argument
36 struct qmi_ops *ops = &qmi->ops; in qmi_recv_new_server()
57 ret = ops->new_server(qmi, svc); in qmi_recv_new_server()
61 list_add(&svc->list_node, &qmi->lookup_results); in qmi_recv_new_server()
73 static void qmi_recv_del_server(struct qmi_handle *qmi, in qmi_recv_del_server() argument
76 struct qmi_ops *ops = &qmi->ops; in qmi_recv_del_server()
80 list_for_each_entry_safe(svc, tmp, &qmi->lookup_results, list_node) { in qmi_recv_del_server()
87 ops->del_server(qmi, svc); in qmi_recv_del_server()
103 static void qmi_recv_bye(struct qmi_handle *qmi, in qmi_recv_bye() argument
[all …]
H A Dpdr_interface.c72 static int pdr_locator_new_server(struct qmi_handle *qmi, in pdr_locator_new_server() argument
75 struct pdr_handle *pdr = container_of(qmi, struct pdr_handle, in pdr_locator_new_server()
99 static void pdr_locator_del_server(struct qmi_handle *qmi, in pdr_locator_del_server() argument
102 struct pdr_handle *pdr = container_of(qmi, struct pdr_handle, in pdr_locator_del_server()
196 static int pdr_notifier_new_server(struct qmi_handle *qmi, in pdr_notifier_new_server() argument
199 struct pdr_handle *pdr = container_of(qmi, struct pdr_handle, in pdr_notifier_new_server()
220 static void pdr_notifier_del_server(struct qmi_handle *qmi, in pdr_notifier_del_server() argument
223 struct pdr_handle *pdr = container_of(qmi, struct pdr_handle, in pdr_notifier_del_server()
299 static void pdr_indication_cb(struct qmi_handle *qmi, in pdr_indication_cb() argument
303 struct pdr_handle *pdr = container_of(qmi, struct pdr_handle, in pdr_indication_cb()
/openbmc/linux/drivers/net/wireless/ath/ath10k/
H A Dqmi.c32 static int ath10k_qmi_map_msa_permission(struct ath10k_qmi *qmi, in ath10k_qmi_map_msa_permission() argument
36 struct ath10k *ar = qmi->ar; in ath10k_qmi_map_msa_permission()
64 static int ath10k_qmi_unmap_msa_permission(struct ath10k_qmi *qmi, in ath10k_qmi_unmap_msa_permission() argument
68 struct ath10k *ar = qmi->ar; in ath10k_qmi_unmap_msa_permission()
88 static int ath10k_qmi_setup_msa_permissions(struct ath10k_qmi *qmi) in ath10k_qmi_setup_msa_permissions() argument
93 if (qmi->msa_fixed_perm) in ath10k_qmi_setup_msa_permissions()
96 for (i = 0; i < qmi->nr_mem_region; i++) { in ath10k_qmi_setup_msa_permissions()
97 ret = ath10k_qmi_map_msa_permission(qmi, &qmi->mem_region[i]); in ath10k_qmi_setup_msa_permissions()
106 ath10k_qmi_unmap_msa_permission(qmi, &qmi->mem_region[i]); in ath10k_qmi_setup_msa_permissions()
110 static void ath10k_qmi_remove_msa_permission(struct ath10k_qmi *qmi) in ath10k_qmi_remove_msa_permission() argument
[all …]
H A DMakefile39 ath10k_snoc-y += qmi.o \
H A Dsnoc.h80 struct ath10k_qmi *qmi; member
/openbmc/linux/drivers/net/wireless/ath/ath11k/
H A Dqmi.c1719 req.mem_cfg_mode = ab->qmi.target_mem_mode; in ath11k_qmi_host_cap_send()
1737 req.cal_done = ab->qmi.cal_done; in ath11k_qmi_host_cap_send()
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()
1794 struct qmi_handle *handle = &ab->qmi.handle; in ath11k_qmi_fw_ind_register_send()
1838 ret = qmi_send_request(&ab->qmi.handle, NULL, &txn, in ath11k_qmi_fw_ind_register_send()
1890 ab->qmi.target_mem_delayed) { in ath11k_qmi_respond_fw_mem_request()
1893 ab->qmi.mem_seg_count); in ath11k_qmi_respond_fw_mem_request()
1897 req->mem_seg_len = ab->qmi.mem_seg_count; in ath11k_qmi_respond_fw_mem_request()
1900 req->mem_seg[i].addr = ab->qmi.target_mem[i].paddr; in ath11k_qmi_respond_fw_mem_request()
[all …]
H A Dcore.c883 if (ab->qmi.target.bdf_ext[0] != '\0') in ath11k_core_check_cc_code_bdfext()
931 strlen(smbios->bdf_ext), sizeof(ab->qmi.target.bdf_ext)); in ath11k_core_check_cc_code_bdfext()
941 copied = strscpy(ab->qmi.target.bdf_ext, smbios->bdf_ext + strlen(magic), in ath11k_core_check_cc_code_bdfext()
942 sizeof(ab->qmi.target.bdf_ext)); in ath11k_core_check_cc_code_bdfext()
951 ATH11K_SMBIOS_BDF_EXT_TYPE, ab->qmi.target.bdf_ext); in ath11k_core_check_cc_code_bdfext()
956 ab->qmi.target.bdf_ext[0] = '\0'; in ath11k_core_check_smbios()
959 if (ab->qmi.target.bdf_ext[0] == '\0') in ath11k_core_check_smbios()
967 size_t max_len = sizeof(ab->qmi.target.bdf_ext); in ath11k_core_check_dt()
980 if (strscpy(ab->qmi.target.bdf_ext, variant, max_len) < 0) in ath11k_core_check_dt()
995 if (with_variant && ab->qmi.target.bdf_ext[0] != '\0') in __ath11k_core_create_board_name()
[all …]
H A DMakefile11 qmi.o \
H A Dahb.c424 struct ath11k_qmi_ce_cfg *cfg = &ab->qmi.ce_cfg; in ath11k_ahb_init_qmi_ce_config()
430 ab->qmi.service_ins_id = ab->hw_params.qmi_service_ins_id; in ath11k_ahb_init_qmi_ce_config()
1240 cancel_work_sync(&ab->qmi.event_work); in ath11k_ahb_remove_prepare()
H A Dpci.c373 struct ath11k_qmi_ce_cfg *cfg = &ab->qmi.ce_cfg; in ath11k_pci_init_qmi_ce_config()
380 ab->qmi.service_ins_id = ab->hw_params.qmi_service_ins_id; in ath11k_pci_init_qmi_ce_config()
/openbmc/linux/include/linux/soc/qcom/
H A Dqmi.h147 int (*new_server)(struct qmi_handle *qmi, struct qmi_service *svc);
148 void (*del_server)(struct qmi_handle *qmi, struct qmi_service *svc);
149 void (*net_reset)(struct qmi_handle *qmi);
150 void (*msg_handler)(struct qmi_handle *qmi, struct sockaddr_qrtr *sq,
152 void (*bye)(struct qmi_handle *qmi, unsigned int node);
153 void (*del_client)(struct qmi_handle *qmi,
168 struct qmi_handle *qmi; member
195 void (*fn)(struct qmi_handle *qmi, struct sockaddr_qrtr *sq,
240 int qmi_add_lookup(struct qmi_handle *qmi, unsigned int service,
242 int qmi_add_server(struct qmi_handle *qmi, unsigned int service,
[all …]
/openbmc/linux/drivers/net/ipa/
H A Dipa_qmi.c86 struct ipa *ipa = container_of(ipa_qmi, struct ipa, qmi); in ipa_server_init_complete()
87 struct qmi_handle *qmi = &ipa_qmi->server_handle; in ipa_server_init_complete() local
95 ret = qmi_send_indication(qmi, sq, IPA_QMI_INIT_COMPLETE, in ipa_server_init_complete()
148 ipa = container_of(ipa_qmi, struct ipa, qmi); in ipa_qmi_ready()
155 static void ipa_server_bye(struct qmi_handle *qmi, unsigned int node) in ipa_server_bye() argument
159 ipa_qmi = container_of(qmi, struct ipa_qmi, server_handle); in ipa_server_bye()
179 static void ipa_server_indication_register(struct qmi_handle *qmi, in ipa_server_indication_register() argument
189 ipa_qmi = container_of(qmi, struct ipa_qmi, server_handle); in ipa_server_indication_register()
190 ipa = container_of(ipa_qmi, struct ipa, qmi); in ipa_server_indication_register()
195 ret = qmi_send_response(qmi, sq, txn, IPA_QMI_INDICATION_REGISTER, in ipa_server_indication_register()
[all …]
H A Dipa.h137 struct ipa_qmi qmi; member
/openbmc/linux/drivers/net/wireless/ath/ath12k/
H A Dqmi.c1932 req.mem_cfg_mode = ab->qmi.target_mem_mode; in ath12k_qmi_host_cap_send()
1943 req.cal_done = ab->qmi.cal_done; in ath12k_qmi_host_cap_send()
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()
2004 struct qmi_handle *handle = &ab->qmi.handle; in ath12k_qmi_fw_ind_register_send()
2039 ret = qmi_send_request(&ab->qmi.handle, NULL, &txn, in ath12k_qmi_fw_ind_register_send()
2089 if (ab->qmi.target_mem_delayed) { in ath12k_qmi_respond_fw_mem_request()
2092 ab->qmi.mem_seg_count); in ath12k_qmi_respond_fw_mem_request()
2096 req->mem_seg_len = ab->qmi.mem_seg_count; in ath12k_qmi_respond_fw_mem_request()
2098 req->mem_seg[i].addr = ab->qmi.target_mem[i].paddr; in ath12k_qmi_respond_fw_mem_request()
[all …]
H A Dcore.c92 if (ab->qmi.target.bdf_ext[0] != '\0') in ath12k_core_create_board_name()
94 ab->qmi.target.bdf_ext); in ath12k_core_create_board_name()
99 ab->qmi.target.chip_id, in ath12k_core_create_board_name()
100 ab->qmi.target.board_id, variant); in ath12k_core_create_board_name()
559 ath12k_ce_get_shadow_config(ab, &ab->qmi.ce_cfg.shadow_reg_v3, in ath12k_core_start_firmware()
560 &ab->qmi.ce_cfg.shadow_reg_v3_len); in ath12k_core_start_firmware()
H A DMakefile11 qmi.o \
H A Dce.c831 ath12k_ce_get_shadow_config(ab, &ab->qmi.ce_cfg.shadow_reg_v3, in ath12k_ce_init_pipes()
832 &ab->qmi.ce_cfg.shadow_reg_v3_len); in ath12k_ce_init_pipes()
/openbmc/linux/samples/qmi/
H A Dqmi_sample_client.c304 struct qmi_handle *qmi = file->private_data; 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()
336 static void ping_pong_cb(struct qmi_handle *qmi, struct sockaddr_qrtr *sq, in ping_pong_cb() argument
372 struct qmi_handle *qmi = file->private_data; in data_write() local
394 ret = qmi_txn_init(qmi, &txn, test_data_resp_msg_v01_ei, resp); in data_write()
398 ret = qmi_send_request(qmi, NULL, &txn, in data_write()
444 struct qmi_handle qmi; member
464 ret = qmi_handle_init(&sample->qmi, TEST_DATA_REQ_MAX_MSG_LEN_V01, in qmi_sample_probe()
471 ret = kernel_connect(sample->qmi.sock, (struct sockaddr *)sq, in qmi_sample_probe()
[all …]
/openbmc/linux/drivers/slimbus/
H A Dqcom-ngd-ctrl.c123 struct qmi_handle qmi; member
152 struct qcom_slim_ngd_qmi qmi; member
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()
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()
467 (struct sockaddr *)&ctrl->qmi.svc_info, in qcom_slim_qmi_init()
468 sizeof(ctrl->qmi.svc_info), 0); in qcom_slim_qmi_init()
484 ctrl->qmi.handle = handle; in qcom_slim_qmi_init()
495 ctrl->qmi.handle = NULL; in qcom_slim_qmi_init()
[all …]
/openbmc/linux/drivers/remoteproc/
H A Dqcom_sysmon.c49 struct qmi_handle qmi; member
289 static void sysmon_ind_cb(struct qmi_handle *qmi, struct sockaddr_qrtr *sq, in sysmon_ind_cb() argument
292 struct qcom_sysmon *sysmon = container_of(qmi, struct qcom_sysmon, qmi); in sysmon_ind_cb()
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()
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()
421 static int ssctl_new_server(struct qmi_handle *qmi, struct qmi_service *svc) in ssctl_new_server() argument
423 struct qcom_sysmon *sysmon = container_of(qmi, struct qcom_sysmon, qmi); in ssctl_new_server()
458 static void ssctl_del_server(struct qmi_handle *qmi, struct qmi_service *svc) in ssctl_del_server() argument
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-class-net-qmi1 What: /sys/class/net/<iface>/qmi/raw_ip
25 What: /sys/class/net/<iface>/qmi/add_mux
42 What: /sys/class/net/<iface>/qmi/del_mux
62 What: /sys/class/net/<iface>/qmi/pass_through
/openbmc/u-boot/drivers/net/fm/
H A Dfm.c338 static void fm_init_qmi(struct fm_qmi_common *qmi) in fm_init_qmi() argument
341 out_be32(&qmi->fmqm_eien, FMQM_EIEN_DISABLE_ALL); in fm_init_qmi()
343 out_be32(&qmi->fmqm_eie, FMQM_EIE_CLEAR_ALL); in fm_init_qmi()
346 out_be32(&qmi->fmqm_ien, FMQM_IEN_DISABLE_ALL); in fm_init_qmi()
348 out_be32(&qmi->fmqm_ie, FMQM_IE_CLEAR_ALL); in fm_init_qmi()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-connectivity/modemmanager/
H A Dmodemmanager_1.22.0.bb22 PACKAGECONFIG ??= "vala mbim qmi \
35 PACKAGECONFIG[qmi] = "-Dqmi=true,-Dqmi=false,libqmi"
/openbmc/linux/samples/
H A DMakefile18 obj-$(CONFIG_SAMPLE_QMI_CLIENT) += qmi/
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-connectivity/libqmi/
H A Dlibqmi_1.34.0.bb16 SRC_URI = "git://gitlab.freedesktop.org/mobile-broadband/libqmi.git;protocol=https;branch=qmi-1-34"

12