Home
last modified time | relevance | path

Searched refs:mhi_dev (Results 1 – 16 of 16) sorted by relevance

/linux/net/qrtr/
H A Dmhi.c15 struct mhi_device *mhi_dev; member
20 static void qcom_mhi_qrtr_dl_callback(struct mhi_device *mhi_dev, in qcom_mhi_qrtr_dl_callback() argument
23 struct qrtr_mhi_dev *qdev = dev_get_drvdata(&mhi_dev->dev); in qcom_mhi_qrtr_dl_callback()
31 devm_kfree(&mhi_dev->dev, mhi_res->buf_addr); in qcom_mhi_qrtr_dl_callback()
41 rc = mhi_queue_buf(mhi_dev, DMA_FROM_DEVICE, mhi_res->buf_addr, in qcom_mhi_qrtr_dl_callback()
42 mhi_dev->mhi_cntrl->buffer_len, MHI_EOT); in qcom_mhi_qrtr_dl_callback()
44 dev_err(&mhi_dev->dev, "Failed to recycle the buffer: %d\n", rc); in qcom_mhi_qrtr_dl_callback()
48 static void qcom_mhi_qrtr_ul_callback(struct mhi_device *mhi_dev, in qcom_mhi_qrtr_ul_callback() argument
71 rc = mhi_queue_skb(qdev->mhi_dev, DMA_TO_DEVICE, skb, skb->len, in qcom_mhi_qrtr_send()
86 static int qcom_mhi_qrtr_queue_dl_buffers(struct mhi_device *mhi_dev) in qcom_mhi_qrtr_queue_dl_buffers() argument
[all …]
/linux/drivers/accel/qaic/
H A Dqaic_timesync.c79 struct mhi_device *mhi_dev; member
113 static void qaic_timesync_ul_xfer_cb(struct mhi_device *mhi_dev, struct mhi_result *mhi_result) in qaic_timesync_ul_xfer_cb() argument
115 struct mqts_dev *mqtsdev = dev_get_drvdata(&mhi_dev->dev); in qaic_timesync_ul_xfer_cb()
123 static void qaic_timesync_dl_xfer_cb(struct mhi_device *mhi_dev, struct mhi_result *mhi_result) in qaic_timesync_dl_xfer_cb() argument
125 struct mqts_dev *mqtsdev = dev_get_drvdata(&mhi_dev->dev); in qaic_timesync_dl_xfer_cb()
160 ret = mhi_queue_buf(mqtsdev->mhi_dev, DMA_TO_DEVICE, sync_msg, sizeof(*sync_msg), MHI_EOT); in qaic_timesync_timer()
174 void qaic_mqts_ch_stop_timer(struct mhi_device *mhi_dev) in qaic_mqts_ch_stop_timer() argument
176 struct mqts_dev *mqtsdev = dev_get_drvdata(&mhi_dev->dev); in qaic_mqts_ch_stop_timer()
181 static int qaic_timesync_probe(struct mhi_device *mhi_dev, const struct mhi_device_id *id) in qaic_timesync_probe() argument
183 struct qaic_device *qdev = pci_get_drvdata(to_pci_dev(mhi_dev->mhi_cntrl->cntrl_dev)); in qaic_timesync_probe()
[all …]
H A Dsahara.c162 struct mhi_device *mhi_dev; member
238 dev_err(&context->mhi_dev->dev, "image id %d is not valid as %d is active\n", in sahara_find_image()
244 dev_err(&context->mhi_dev->dev, "request for unknown image: %d\n", image_id); in sahara_find_image()
255 &context->mhi_dev->dev); in sahara_find_image()
257 dev_dbg(&context->mhi_dev->dev, "request for image id %d / file %s failed %d\n", in sahara_find_image()
285 ret = mhi_queue_buf(context->mhi_dev, DMA_TO_DEVICE, context->tx[0], in sahara_send_reset()
288 dev_err(&context->mhi_dev->dev, "Unable to send reset response %d\n", ret); in sahara_send_reset()
295 dev_dbg(&context->mhi_dev->dev, in sahara_hello()
304 dev_err(&context->mhi_dev->dev, "Malformed hello packet - length %d\n", in sahara_hello()
309 dev_err(&context->mhi_dev->dev, "Unsupported hello packet - version %d\n", in sahara_hello()
[all …]
H A Dqaic_control.c1485 void qaic_mhi_ul_xfer_cb(struct mhi_device *mhi_dev, struct mhi_result *mhi_result) in qaic_mhi_ul_xfer_cb() argument
1493 void qaic_mhi_dl_xfer_cb(struct mhi_device *mhi_dev, struct mhi_result *mhi_result) in qaic_mhi_dl_xfer_cb() argument
1495 struct qaic_device *qdev = dev_get_drvdata(&mhi_dev->dev); in qaic_mhi_dl_xfer_cb()
/linux/drivers/bus/mhi/ep/
H A Dmain.c30 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ep_send_event()
165 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ep_process_cmd_ring()
230 if (!(ch_id % 2) && !mhi_chan->mhi_dev) { in mhi_ep_process_cmd_ring()
260 mhi_chan->xfer_cb(mhi_chan->mhi_dev, &result); in mhi_ep_process_cmd_ring()
294 mhi_chan->xfer_cb(mhi_chan->mhi_dev, &result); in mhi_ep_process_cmd_ring()
327 bool mhi_ep_queue_is_empty(struct mhi_ep_device *mhi_dev, enum dma_data_direction dir) in mhi_ep_queue_is_empty() argument
329 struct mhi_ep_chan *mhi_chan = (dir == DMA_FROM_DEVICE) ? mhi_dev->dl_chan : in mhi_ep_queue_is_empty()
330 mhi_dev->ul_chan; in mhi_ep_queue_is_empty()
331 struct mhi_ep_cntrl *mhi_cntrl = mhi_dev->mhi_cntrl; in mhi_ep_queue_is_empty()
340 struct mhi_ep_device *mhi_dev = buf_info->mhi_dev; in mhi_ep_read_completion() local
[all …]
H A Dsm.c32 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ep_set_mhi_state()
61 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ep_set_m0_state()
102 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ep_set_m3_state()
130 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ep_set_ready_state()
H A Dring.c32 struct device *dev = &mhi_cntrl->mhi_dev->dev; in __mhi_ep_cache_ring()
109 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ep_ring_add_element()
181 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ep_ring_start()
H A Dinternal.h159 struct mhi_ep_device *mhi_dev; member
162 void (*xfer_cb)(struct mhi_ep_device *mhi_dev, struct mhi_result *result);
/linux/drivers/net/wwan/
H A Dmhi_wwan_ctrl.c19 struct mhi_device *mhi_dev; member
80 struct mhi_device *mhi_dev = mhiwwan->mhi_dev; in mhi_wwan_ctrl_refill_work() local
98 if (mhi_queue_skb(mhi_dev, DMA_FROM_DEVICE, skb, mhiwwan->mtu, MHI_EOT)) { in mhi_wwan_ctrl_refill_work()
99 dev_err(&mhi_dev->dev, "Failed to queue buffer\n"); in mhi_wwan_ctrl_refill_work()
112 ret = mhi_prepare_for_transfer(mhiwwan->mhi_dev); in mhi_wwan_ctrl_start()
117 mhiwwan->rx_budget = mhi_get_free_desc_count(mhiwwan->mhi_dev, DMA_FROM_DEVICE); in mhi_wwan_ctrl_start()
138 mhi_unprepare_from_transfer(mhiwwan->mhi_dev); in mhi_wwan_ctrl_stop()
154 ret = mhi_queue_skb(mhiwwan->mhi_dev, DMA_TO_DEVICE, skb, skb->len, MHI_EOT); in mhi_wwan_ctrl_tx()
155 if (mhi_queue_is_full(mhiwwan->mhi_dev, DMA_TO_DEVICE)) in mhi_wwan_ctrl_tx()
168 static void mhi_ul_xfer_cb(struct mhi_device *mhi_dev, in mhi_ul_xfer_cb() argument
[all …]
H A Dmhi_wwan_mbim.c422 static void mhi_mbim_dl_callback(struct mhi_device *mhi_dev, in mhi_mbim_dl_callback() argument
425 struct mhi_mbim_context *mbim = dev_get_drvdata(&mhi_dev->dev); in mhi_mbim_dl_callback()
429 free_desc_count = mhi_get_free_desc_count(mhi_dev, DMA_FROM_DEVICE); in mhi_mbim_dl_callback()
485 static void mhi_mbim_ul_callback(struct mhi_device *mhi_dev, in mhi_mbim_ul_callback() argument
488 struct mhi_mbim_context *mbim = dev_get_drvdata(&mhi_dev->dev); in mhi_mbim_ul_callback()
606 static int mhi_mbim_probe(struct mhi_device *mhi_dev, const struct mhi_device_id *id) in mhi_mbim_probe() argument
608 struct mhi_controller *cntrl = mhi_dev->mhi_cntrl; in mhi_mbim_probe()
612 mbim = devm_kzalloc(&mhi_dev->dev, sizeof(*mbim), GFP_KERNEL); in mhi_mbim_probe()
617 dev_set_drvdata(&mhi_dev->dev, mbim); in mhi_mbim_probe()
618 mbim->mdev = mhi_dev; in mhi_mbim_probe()
[all …]
/linux/drivers/bus/mhi/host/
H A Dinit.c84 struct mhi_device *mhi_dev = to_mhi_device(dev); in serial_number_show() local
85 struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl; in serial_number_show()
96 struct mhi_device *mhi_dev = to_mhi_device(dev); in oem_pk_hash_show() local
97 struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl; in oem_pk_hash_show()
121 struct mhi_device *mhi_dev = to_mhi_device(dev); in soc_reset_store() local
122 struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl; in soc_reset_store()
133 struct mhi_device *mhi_dev = to_mhi_device(dev); in trigger_edl_store() local
134 struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl; in trigger_edl_store()
159 ATTRIBUTE_GROUPS(mhi_dev);
475 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_init_mmio()
[all …]
H A Ddebugfs.c105 if (!mhi_chan->mhi_dev) in mhi_debugfs_channels_show()
133 struct mhi_device *mhi_dev; in mhi_device_info_show() local
138 mhi_dev = to_mhi_device(dev); in mhi_device_info_show()
141 mhi_dev->name, mhi_dev->dev_type ? "Controller" : "Transfer", in mhi_device_info_show()
142 mhi_dev->dev_wake); in mhi_device_info_show()
145 if (mhi_dev->dev_type == MHI_DEVICE_XFER) in mhi_device_info_show()
147 mhi_dev->ul_chan_id, mhi_dev->dl_chan_id); in mhi_device_info_show()
164 mhi_device_info_show(&mhi_cntrl->mhi_dev->dev, m); in mhi_debugfs_devices_show()
165 device_for_each_child(&mhi_cntrl->mhi_dev->dev, m, mhi_device_info_show); in mhi_debugfs_devices_show()
235 struct mhi_device *mhi_dev = mhi_cntrl->mhi_dev; in mhi_debugfs_device_wake_show() local
[all …]
H A Dboot.c28 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_rddm_prepare()
73 struct device *dev = &mhi_cntrl->mhi_dev->dev; in __mhi_download_rddm_in_panic()
160 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_download_rddm_image()
182 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_fw_load_error_dump()
214 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_fw_load_bhie()
261 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_fw_load_bhi()
477 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_fw_load_handler()
620 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_download_amss_image()
/linux/drivers/net/
H A Dmhi_net.c168 static void mhi_net_dl_callback(struct mhi_device *mhi_dev, in mhi_net_dl_callback() argument
171 struct mhi_net_dev *mhi_netdev = dev_get_drvdata(&mhi_dev->dev); in mhi_net_dl_callback()
175 free_desc_count = mhi_get_free_desc_count(mhi_dev, DMA_FROM_DEVICE); in mhi_net_dl_callback()
235 static void mhi_net_ul_callback(struct mhi_device *mhi_dev, in mhi_net_ul_callback() argument
238 struct mhi_net_dev *mhi_netdev = dev_get_drvdata(&mhi_dev->dev); in mhi_net_ul_callback()
303 static int mhi_net_newlink(struct mhi_device *mhi_dev, struct net_device *ndev) in mhi_net_newlink() argument
310 dev_set_drvdata(&mhi_dev->dev, mhi_netdev); in mhi_net_newlink()
312 mhi_netdev->mdev = mhi_dev; in mhi_net_newlink()
314 mhi_netdev->mru = mhi_dev->mhi_cntrl->mru; in mhi_net_newlink()
321 err = mhi_prepare_for_transfer(mhi_dev); in mhi_net_newlink()
[all …]
/linux/include/linux/
H A Dmhi.h392 struct mhi_device *mhi_dev; member
525 int (*probe)(struct mhi_device *mhi_dev,
527 void (*remove)(struct mhi_device *mhi_dev);
528 void (*ul_xfer_cb)(struct mhi_device *mhi_dev,
530 void (*dl_xfer_cb)(struct mhi_device *mhi_dev,
532 void (*status_cb)(struct mhi_device *mhi_dev, enum mhi_callback mhi_cb);
608 void mhi_notify(struct mhi_device *mhi_dev, enum mhi_callback cb_reason);
616 int mhi_get_free_desc_count(struct mhi_device *mhi_dev,
734 int mhi_device_get_sync(struct mhi_device *mhi_dev);
740 void mhi_device_put(struct mhi_device *mhi_dev);
[all …]
/linux/drivers/net/wireless/ath/ath11k/
H A Dpci.c49 return mhi_device_get_sync(ab_pci->mhi_ctrl->mhi_dev); in ath11k_pci_bus_wake_up()
56 mhi_device_put(ab_pci->mhi_ctrl->mhi_dev); in ath11k_pci_bus_release()