/linux/drivers/rpmsg/ |
H A D | rpmsg_core.c | 131 void rpmsg_destroy_ept(struct rpmsg_endpoint *ept) in rpmsg_destroy_ept() argument 133 if (ept && ept->ops) in rpmsg_destroy_ept() 134 ept->ops->destroy_ept(ept); in rpmsg_destroy_ept() 156 int rpmsg_send(struct rpmsg_endpoint *ept, void *data, int len) in rpmsg_send() argument 158 if (WARN_ON(!ept)) in rpmsg_send() 160 if (!ept->ops->send) in rpmsg_send() 163 return ept->ops->send(ept, data, len); in rpmsg_send() 185 int rpmsg_sendto(struct rpmsg_endpoint *ept, void *data, int len, u32 dst) in rpmsg_sendto() argument 187 if (WARN_ON(!ept)) in rpmsg_sendto() 189 if (!ept->ops->sendto) in rpmsg_sendto() [all …]
|
H A D | virtio_rpmsg_bus.c | 140 static void virtio_rpmsg_destroy_ept(struct rpmsg_endpoint *ept); 141 static int virtio_rpmsg_send(struct rpmsg_endpoint *ept, void *data, int len); 142 static int virtio_rpmsg_sendto(struct rpmsg_endpoint *ept, void *data, int len, 144 static int virtio_rpmsg_send_offchannel(struct rpmsg_endpoint *ept, u32 src, 146 static int virtio_rpmsg_trysend(struct rpmsg_endpoint *ept, void *data, int len); 147 static int virtio_rpmsg_trysendto(struct rpmsg_endpoint *ept, void *data, 149 static int virtio_rpmsg_trysend_offchannel(struct rpmsg_endpoint *ept, u32 src, 151 static ssize_t virtio_rpmsg_get_mtu(struct rpmsg_endpoint *ept); 199 struct rpmsg_endpoint *ept = container_of(kref, struct rpmsg_endpoint, in __ept_release() local 205 kfree(ept); in __ept_release() [all …]
|
H A D | mtk_rpmsg.c | 56 struct rpmsg_endpoint ept; member 61 #define to_mtk_rpmsg_endpoint(r) container_of(r, struct mtk_rpmsg_endpoint, ept) 67 struct rpmsg_endpoint *ept = container_of(kref, struct rpmsg_endpoint, in __mtk_ept_release() local 69 kfree(to_mtk_rpmsg_endpoint(ept)); in __mtk_ept_release() 75 struct rpmsg_endpoint *ept = &mept->ept; in mtk_rpmsg_ipi_handler() local 78 ret = (*ept->cb)(ept->rpdev, data, len, ept->priv, ept->addr); in mtk_rpmsg_ipi_handler() 80 dev_warn(&ept->rpdev->dev, "rpmsg handler return error = %d", in mtk_rpmsg_ipi_handler() 90 struct rpmsg_endpoint *ept; in __mtk_create_ept() local 99 ept = &mept->ept; in __mtk_create_ept() 100 kref_init(&ept->refcount); in __mtk_create_ept() [all …]
|
H A D | rpmsg_internal.h | 66 void (*destroy_ept)(struct rpmsg_endpoint *ept); 68 int (*send)(struct rpmsg_endpoint *ept, void *data, int len); 69 int (*sendto)(struct rpmsg_endpoint *ept, void *data, int len, u32 dst); 70 int (*send_offchannel)(struct rpmsg_endpoint *ept, u32 src, u32 dst, 73 int (*trysend)(struct rpmsg_endpoint *ept, void *data, int len); 74 int (*trysendto)(struct rpmsg_endpoint *ept, void *data, int len, u32 dst); 75 int (*trysend_offchannel)(struct rpmsg_endpoint *ept, u32 src, u32 dst, 77 __poll_t (*poll)(struct rpmsg_endpoint *ept, struct file *filp, 79 int (*set_flow_control)(struct rpmsg_endpoint *ept, bool pause, u32 dst); 80 ssize_t (*get_mtu)(struct rpmsg_endpoint *ept);
|
H A D | rpmsg_char.c | 66 struct rpmsg_endpoint *ept; member 83 if (eptdev->ept) { in rpmsg_chrdev_eptdev_destroy() 86 rpmsg_destroy_ept(eptdev->ept); in rpmsg_chrdev_eptdev_destroy() 87 eptdev->ept = NULL; in rpmsg_chrdev_eptdev_destroy() 138 struct rpmsg_endpoint *ept; in rpmsg_eptdev_open() local 143 if (eptdev->ept) { in rpmsg_eptdev_open() 160 ept = eptdev->default_ept; in rpmsg_eptdev_open() 162 ept = rpmsg_create_ept(rpdev, rpmsg_ept_cb, eptdev, eptdev->chinfo); in rpmsg_eptdev_open() 164 if (!ept) { in rpmsg_eptdev_open() 171 ept->flow_cb = rpmsg_ept_flow_cb; in rpmsg_eptdev_open() [all …]
|
H A D | qcom_smd.c | 167 struct rpmsg_endpoint ept; member 174 #define to_smd_endpoint(e) container_of(e, struct qcom_smd_endpoint, ept) 416 struct rpmsg_endpoint *ept = &channel->qsept->ept; in qcom_smd_channel_set_callback() local 420 ept->cb = cb; in qcom_smd_channel_set_callback() 544 struct rpmsg_endpoint *ept = &channel->qsept->ept; in qcom_smd_channel_recv_single() local 561 ret = ept->cb(ept->rpdev, ptr, len, ept->priv, RPMSG_ADDR_ANY); in qcom_smd_channel_recv_single() 896 struct rpmsg_endpoint *ept = container_of(kref, struct rpmsg_endpoint, in __ept_release() local 898 kfree(to_smd_endpoint(ept)); in __ept_release() 909 struct rpmsg_endpoint *ept; in qcom_smd_create_ept() local 929 ept = &qsept->ept; in qcom_smd_create_ept() [all …]
|
H A D | rpmsg_ns.c | 93 rpdev->ept = ns_ept; in rpmsg_ns_probe()
|
/linux/include/linux/ |
H A D | rpmsg.h | 59 struct rpmsg_endpoint *ept; member 185 int rpmsg_send(struct rpmsg_endpoint *ept, void *data, int len); 186 int rpmsg_sendto(struct rpmsg_endpoint *ept, void *data, int len, u32 dst); 187 int rpmsg_send_offchannel(struct rpmsg_endpoint *ept, u32 src, u32 dst, 190 int rpmsg_trysend(struct rpmsg_endpoint *ept, void *data, int len); 191 int rpmsg_trysendto(struct rpmsg_endpoint *ept, void *data, int len, u32 dst); 192 int rpmsg_trysend_offchannel(struct rpmsg_endpoint *ept, u32 src, u32 dst, 195 __poll_t rpmsg_poll(struct rpmsg_endpoint *ept, struct file *filp, 198 ssize_t rpmsg_get_mtu(struct rpmsg_endpoint *ept); 200 int rpmsg_set_flow_control(struct rpmsg_endpoint *ept, bool pause, u32 dst); [all …]
|
/linux/arch/x86/kvm/vmx/ |
H A D | capabilities.h | 70 u32 ept; member 294 return vmx_capability.ept & VMX_EPT_EXECUTE_ONLY_BIT; in cpu_has_vmx_ept_execute_only() 299 return vmx_capability.ept & VMX_EPT_PAGE_WALK_4_BIT; in cpu_has_vmx_ept_4levels() 304 return vmx_capability.ept & VMX_EPT_PAGE_WALK_5_BIT; in cpu_has_vmx_ept_5levels() 309 return vmx_capability.ept & VMX_EPTP_WB_BIT; in cpu_has_vmx_ept_mt_wb() 314 return vmx_capability.ept & VMX_EPT_2MB_PAGE_BIT; in cpu_has_vmx_ept_2m_page() 319 return vmx_capability.ept & VMX_EPT_1GB_PAGE_BIT; in cpu_has_vmx_ept_1g_page() 333 return vmx_capability.ept & VMX_EPT_AD_BIT; in cpu_has_vmx_ept_ad_bits() 338 return vmx_capability.ept & VMX_EPT_EXTENT_CONTEXT_BIT; in cpu_has_vmx_invept_context() 343 return vmx_capability.ept & VMX_EPT_EXTENT_GLOBAL_BIT; in cpu_has_vmx_invept_global()
|
/linux/drivers/net/wwan/ |
H A D | rpmsg_wwan_ctrl.c | 14 struct rpmsg_endpoint *ept; member 41 rpwwan->ept = rpmsg_create_ept(rpwwan->rpdev, rpmsg_wwan_ctrl_callback, in rpmsg_wwan_ctrl_start() 43 if (!rpwwan->ept) in rpmsg_wwan_ctrl_start() 53 rpmsg_destroy_ept(rpwwan->ept); in rpmsg_wwan_ctrl_stop() 54 rpwwan->ept = NULL; in rpmsg_wwan_ctrl_stop() 62 ret = rpmsg_trysend(rpwwan->ept, skb->data, skb->len); in rpmsg_wwan_ctrl_tx() 75 ret = rpmsg_send(rpwwan->ept, skb->data, skb->len); in rpmsg_wwan_ctrl_tx_blocking() 88 return rpmsg_poll(rpwwan->ept, filp, wait); in rpmsg_wwan_ctrl_tx_poll()
|
/linux/arch/x86/kernel/cpu/ |
H A D | feat_ctl.c | 27 u32 supported, funcs, ept, vpid, ign, low, high; in init_vmx_capabilities() local 59 rdmsr_safe(MSR_IA32_VMX_EPT_VPID_CAP, &ept, &vpid); in init_vmx_capabilities() 69 if (ept & VMX_EPT_EXECUTE_ONLY_BIT) in init_vmx_capabilities() 71 if (ept & VMX_EPT_AD_BIT) in init_vmx_capabilities() 73 if (ept & VMX_EPT_1GB_PAGE_BIT) in init_vmx_capabilities() 75 if (ept & VMX_EPT_PAGE_WALK_5_BIT) in init_vmx_capabilities()
|
/linux/drivers/platform/chrome/ |
H A D | cros_ec_rpmsg.c | 49 struct rpmsg_endpoint *ept; member 97 ret = rpmsg_send(ec_rpmsg->ept, ec_dev->dout, len); in cros_ec_pkt_xfer_rpmsg() 242 ec_rpmsg->ept = cros_ec_rpmsg_create_ept(rpdev); in cros_ec_rpmsg_probe() 243 if (!ec_rpmsg->ept) in cros_ec_rpmsg_probe() 248 rpmsg_destroy_ept(ec_rpmsg->ept); in cros_ec_rpmsg_probe() 267 rpmsg_destroy_ept(ec_rpmsg->ept); in cros_ec_rpmsg_remove()
|
/linux/drivers/soc/qcom/ |
H A D | pmic_glink.c | 29 struct rpmsg_endpoint *ept; member 123 if (!pg->ept) { in pmic_glink_send() 128 ret = rpmsg_send(pg->ept, data, len); in pmic_glink_send() 210 if (pg->pdr_state == SERVREG_SERVICE_STATE_UP && pg->ept) in pmic_glink_state_notify_clients() 213 if (pg->pdr_state == SERVREG_SERVICE_STATE_DOWN || !pg->ept) in pmic_glink_state_notify_clients() 251 pg->ept = rpdev->ept; in pmic_glink_rpmsg_probe() 270 pg->ept = NULL; in pmic_glink_rpmsg_remove()
|
H A D | pmic_pdcharger_ulog.c | 50 return rpmsg_send(pg->rpdev->ept, data, len); in pmic_pdcharger_ulog_write_async()
|
H A D | smd-rpm.c | 207 rpm->rpm_channel = rpdev->ept; in qcom_smd_rpm_probe()
|
/linux/drivers/remoteproc/ |
H A D | qcom_sysmon.c | 39 struct rpmsg_endpoint *ept; member 96 ret = rpmsg_send(sysmon->ept, req, len); in sysmon_send_event() 132 ret = rpmsg_send(sysmon->ept, req, strlen(req) + 1); in sysmon_request_shutdown() 525 else if (sysmon->ept) in sysmon_start() 560 else if (sysmon->ept) in sysmon_stop() 601 else if (sysmon->ept) in sysmon_notify() 773 rpdev->ept->priv = sysmon; in sysmon_probe() 774 sysmon->ept = rpdev->ept; in sysmon_probe() 787 struct qcom_sysmon *sysmon = rpdev->ept->priv; in sysmon_remove() 789 sysmon->ept = NULL; in sysmon_remove()
|
/linux/drivers/cdx/controller/ |
H A D | cdx_rpmsg.c | 40 ret = rpmsg_send(cdx_mcdi->ept, send_buf, hdr_len + sdu_len); in cdx_rpmsg_send() 135 cdx_mcdi->ept = rpmsg_create_ept(rpdev, cdx_rpmsg_cb, NULL, chinfo); in cdx_rpmsg_probe() 136 if (!cdx_mcdi->ept) { in cdx_rpmsg_probe() 158 rpmsg_destroy_ept(cdx_mcdi->ept); in cdx_rpmsg_remove()
|
H A D | mcdi.h | 78 struct rpmsg_endpoint *ept; member
|
/linux/samples/rpmsg/ |
H A D | rpmsg_client_sample.c | 44 ret = rpmsg_send(rpdev->ept, MSG, strlen(MSG)); in rpmsg_sample_cb() 66 ret = rpmsg_send(rpdev->ept, MSG, strlen(MSG)); in rpmsg_sample_probe()
|
/linux/drivers/tty/ |
H A D | rpmsg_tty.c | 86 msg_max_size = rpmsg_get_mtu(rpdev->ept); in rpmsg_tty_write() 96 ret = rpmsg_trysend(rpdev->ept, (void *)buf, msg_size); in rpmsg_tty_write() 110 size = rpmsg_get_mtu(cport->rpdev->ept); in rpmsg_tty_write_room()
|
/linux/Documentation/staging/ |
H A D | rpmsg.rst | 71 int rpmsg_send(struct rpmsg_endpoint *ept, void *data, int len); 91 int rpmsg_sendto(struct rpmsg_endpoint *ept, void *data, int len, u32 dst); 115 int rpmsg_send_offchannel(struct rpmsg_endpoint *ept, u32 src, u32 dst, 140 int rpmsg_trysend(struct rpmsg_endpoint *ept, void *data, int len); 157 int rpmsg_trysendto(struct rpmsg_endpoint *ept, void *data, int len, u32 dst) 178 int rpmsg_trysend_offchannel(struct rpmsg_endpoint *ept, u32 src, u32 dst, 237 void rpmsg_destroy_ept(struct rpmsg_endpoint *ept); 291 err = rpmsg_send(rpdev->ept, "hello!", 6);
|
/linux/drivers/media/platform/st/sti/delta/ |
H A D | delta-ipc.c | 185 ret = rpmsg_send(rpmsg_device->ept, &msg, sizeof(msg)); in delta_ipc_open() 284 ret = rpmsg_send(rpmsg_device->ept, &msg, sizeof(msg)); in delta_ipc_set_stream() 398 ret = rpmsg_send(rpmsg_device->ept, &msg, sizeof(msg)); in delta_ipc_decode() 464 ret = rpmsg_send(rpmsg_device->ept, &msg, sizeof(msg)); in delta_ipc_close()
|
/linux/arch/mips/include/asm/fw/cfe/ |
H A D | cfe_api.h | 93 int cfe_init(uint64_t handle, uint64_t ept);
|
/linux/net/qrtr/ |
H A D | smd.c | 68 qdev->channel = rpdev->ept; in qcom_smd_qrtr_probe()
|
/linux/arch/mips/fw/cfe/ |
H A D | cfe_api.c | 43 int cfe_init(u64 handle, u64 ept) in cfe_init() argument 45 cfe_dispfunc = NATIVE_FROM_XPTR(ept); in cfe_init()
|