Home
last modified time | relevance | path

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

/linux/net/qrtr/
H A Dmhi.c16 struct mhi_device *mhi_dev; member
21 static void qcom_mhi_qrtr_dl_callback(struct mhi_device *mhi_dev, in qcom_mhi_qrtr_dl_callback() argument
24 struct qrtr_mhi_dev *qdev = dev_get_drvdata(&mhi_dev->dev); in qcom_mhi_qrtr_dl_callback()
37 static void qcom_mhi_qrtr_ul_callback(struct mhi_device *mhi_dev, in qcom_mhi_qrtr_ul_callback() argument
60 rc = mhi_queue_skb(qdev->mhi_dev, DMA_TO_DEVICE, skb, skb->len, in qcom_mhi_qrtr_send()
75 static int qcom_mhi_qrtr_probe(struct mhi_device *mhi_dev, in qcom_mhi_qrtr_probe() argument
81 qdev = devm_kzalloc(&mhi_dev->dev, sizeof(*qdev), GFP_KERNEL); in qcom_mhi_qrtr_probe()
85 qdev->mhi_dev = mhi_dev; in qcom_mhi_qrtr_probe()
86 qdev->dev = &mhi_dev->dev; in qcom_mhi_qrtr_probe()
89 dev_set_drvdata(&mhi_dev->dev, qdev); in qcom_mhi_qrtr_probe()
[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 static int qaic_timesync_probe(struct mhi_device *mhi_dev, const struct mhi_device_id *id) in qaic_timesync_probe() argument
176 struct qaic_device *qdev = pci_get_drvdata(to_pci_dev(mhi_dev->mhi_cntrl->cntrl_dev)); in qaic_timesync_probe()
188 mqtsdev->mhi_dev = mhi_dev; in qaic_timesync_probe()
199 ret = mhi_prepare_for_transfer(mhi_dev); in qaic_timesync_probe()
[all …]
H A Dsahara.c162 struct mhi_device *mhi_dev; member
199 dev_err(&context->mhi_dev->dev, "image id %d is not valid as %d is active\n", in sahara_find_image()
205 dev_err(&context->mhi_dev->dev, "request for unknown image: %d\n", image_id); in sahara_find_image()
216 &context->mhi_dev->dev); in sahara_find_image()
218 dev_dbg(&context->mhi_dev->dev, "request for image id %d / file %s failed %d\n", in sahara_find_image()
244 ret = mhi_queue_buf(context->mhi_dev, DMA_TO_DEVICE, context->tx[0], in sahara_send_reset()
247 dev_err(&context->mhi_dev->dev, "Unable to send reset response %d\n", ret); in sahara_send_reset()
254 dev_dbg(&context->mhi_dev->dev, in sahara_hello()
263 dev_err(&context->mhi_dev->dev, "Malformed hello packet - length %d\n", in sahara_hello()
268 dev_err(&context->mhi_dev->dev, "Unsupported hello packet - version %d\n", in sahara_hello()
[all …]
H A Dqaic_drv.c280 static int qaic_mhi_probe(struct mhi_device *mhi_dev, const struct mhi_device_id *id) in qaic_mhi_probe() argument
297 qdev = pci_get_drvdata(to_pci_dev(mhi_dev->mhi_cntrl->cntrl_dev)); in qaic_mhi_probe()
299 dev_set_drvdata(&mhi_dev->dev, qdev); in qaic_mhi_probe()
300 qdev->cntl_ch = mhi_dev; in qaic_mhi_probe()
326 static void qaic_mhi_remove(struct mhi_device *mhi_dev) in qaic_mhi_remove() argument
H A Dqaic.h277 void qaic_mhi_ul_xfer_cb(struct mhi_device *mhi_dev, struct mhi_result *mhi_result);
279 void qaic_mhi_dl_xfer_cb(struct mhi_device *mhi_dev, struct mhi_result *mhi_result);
H A Dqaic_control.c1438 void qaic_mhi_ul_xfer_cb(struct mhi_device *mhi_dev, struct mhi_result *mhi_result) in qaic_mhi_ul_xfer_cb() argument
1446 void qaic_mhi_dl_xfer_cb(struct mhi_device *mhi_dev, struct mhi_result *mhi_result) in qaic_mhi_dl_xfer_cb() argument
1448 struct qaic_device *qdev = dev_get_drvdata(&mhi_dev->dev); in qaic_mhi_dl_xfer_cb()
/linux/drivers/bus/mhi/ep/
H A Dmain.c31 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ep_send_event()
166 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ep_process_cmd_ring()
231 if (!(ch_id % 2) && !mhi_chan->mhi_dev) { in mhi_ep_process_cmd_ring()
259 mhi_chan->xfer_cb(mhi_chan->mhi_dev, &result); in mhi_ep_process_cmd_ring()
293 mhi_chan->xfer_cb(mhi_chan->mhi_dev, &result); in mhi_ep_process_cmd_ring()
326 bool mhi_ep_queue_is_empty(struct mhi_ep_device *mhi_dev, enum dma_data_direction dir) in mhi_ep_queue_is_empty() argument
328 struct mhi_ep_chan *mhi_chan = (dir == DMA_FROM_DEVICE) ? mhi_dev->dl_chan : in mhi_ep_queue_is_empty()
329 mhi_dev->ul_chan; in mhi_ep_queue_is_empty()
330 struct mhi_ep_cntrl *mhi_cntrl = mhi_dev->mhi_cntrl; in mhi_ep_queue_is_empty()
339 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()
177 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.c20 struct mhi_device *mhi_dev; member
81 struct mhi_device *mhi_dev = mhiwwan->mhi_dev; in mhi_wwan_ctrl_refill_work() local
99 if (mhi_queue_skb(mhi_dev, DMA_FROM_DEVICE, skb, mhiwwan->mtu, MHI_EOT)) { in mhi_wwan_ctrl_refill_work()
100 dev_err(&mhi_dev->dev, "Failed to queue buffer\n"); in mhi_wwan_ctrl_refill_work()
113 ret = mhi_prepare_for_transfer(mhiwwan->mhi_dev); in mhi_wwan_ctrl_start()
118 mhiwwan->rx_budget = mhi_get_free_desc_count(mhiwwan->mhi_dev, DMA_FROM_DEVICE); in mhi_wwan_ctrl_start()
139 mhi_unprepare_from_transfer(mhiwwan->mhi_dev); in mhi_wwan_ctrl_stop()
155 ret = mhi_queue_skb(mhiwwan->mhi_dev, DMA_TO_DEVICE, skb, skb->len, MHI_EOT); in mhi_wwan_ctrl_tx()
156 if (mhi_queue_is_full(mhiwwan->mhi_dev, DMA_TO_DEVICE)) in mhi_wwan_ctrl_tx()
169 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.c85 struct mhi_device *mhi_dev = to_mhi_device(dev); in serial_number_show() local
86 struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl; in serial_number_show()
97 struct mhi_device *mhi_dev = to_mhi_device(dev); in oem_pk_hash_show() local
98 struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl; in oem_pk_hash_show()
122 struct mhi_device *mhi_dev = to_mhi_device(dev); in soc_reset_store() local
123 struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl; in soc_reset_store()
134 struct mhi_device *mhi_dev = to_mhi_device(dev); in trigger_edl_store() local
135 struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl; in trigger_edl_store()
160 ATTRIBUTE_GROUPS(mhi_dev);
197 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_init_irq_setup()
[all …]
H A Ddebugfs.c104 if (!mhi_chan->mhi_dev) in mhi_debugfs_channels_show()
132 struct mhi_device *mhi_dev; in mhi_device_info_show() local
137 mhi_dev = to_mhi_device(dev); in mhi_device_info_show()
140 mhi_dev->name, mhi_dev->dev_type ? "Controller" : "Transfer", in mhi_device_info_show()
141 mhi_dev->dev_wake); in mhi_device_info_show()
144 if (mhi_dev->dev_type == MHI_DEVICE_XFER) in mhi_device_info_show()
146 mhi_dev->ul_chan_id, mhi_dev->dl_chan_id); in mhi_device_info_show()
163 mhi_device_info_show(&mhi_cntrl->mhi_dev->dev, m); in mhi_debugfs_devices_show()
164 device_for_each_child(&mhi_cntrl->mhi_dev->dev, m, mhi_device_info_show); in mhi_debugfs_devices_show()
234 struct mhi_device *mhi_dev = mhi_cntrl->mhi_dev; in mhi_debugfs_device_wake_show() local
[all …]
H A Dpm.c142 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_set_mhi_state()
174 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ready_state_transition()
266 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_pm_m0_transition()
340 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_pm_m1_transition()
376 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_pm_m3_transition()
397 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_pm_mission_mode_transition()
418 device_for_each_child(&mhi_cntrl->mhi_dev->dev, &current_ee, in mhi_pm_mission_mode_transition()
479 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_pm_disable_transition()
542 device_for_each_child(&mhi_cntrl->mhi_dev->dev, NULL, mhi_destroy_device); in mhi_pm_disable_transition()
604 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_pm_sys_error_transition()
[all …]
H A Dpci_generic.c1129 ret = mhi_device_get_sync(mhi_cntrl->mhi_dev); in mhi_pci_generic_edl_trigger()
1135 pm_wakeup_event(&mhi_cntrl->mhi_dev->dev, 0); in mhi_pci_generic_edl_trigger()
1151 mhi_device_put(mhi_cntrl->mhi_dev); in mhi_pci_generic_edl_trigger()
/linux/include/linux/
H A Dmhi.h373 struct mhi_device *mhi_dev; member
520 int (*probe)(struct mhi_device *mhi_dev,
522 void (*remove)(struct mhi_device *mhi_dev);
523 void (*ul_xfer_cb)(struct mhi_device *mhi_dev,
525 void (*dl_xfer_cb)(struct mhi_device *mhi_dev,
527 void (*status_cb)(struct mhi_device *mhi_dev, enum mhi_callback mhi_cb);
602 void mhi_notify(struct mhi_device *mhi_dev, enum mhi_callback cb_reason);
610 int mhi_get_free_desc_count(struct mhi_device *mhi_dev,
727 void mhi_device_get(struct mhi_device *mhi_dev);
734 int mhi_device_get_sync(struct mhi_device *mhi_dev);
[all …]
H A Dmhi_ep.h63 struct mhi_ep_device *mhi_dev; member
123 struct mhi_ep_device *mhi_dev; member
217 void (*ul_xfer_cb)(struct mhi_ep_device *mhi_dev,
219 void (*dl_xfer_cb)(struct mhi_ep_device *mhi_dev,
294 bool mhi_ep_queue_is_empty(struct mhi_ep_device *mhi_dev, enum dma_data_direction dir);
303 int mhi_ep_queue_skb(struct mhi_ep_device *mhi_dev, struct sk_buff *skb);
/linux/drivers/net/
H A Dmhi_net.c169 static void mhi_net_dl_callback(struct mhi_device *mhi_dev, in mhi_net_dl_callback() argument
172 struct mhi_net_dev *mhi_netdev = dev_get_drvdata(&mhi_dev->dev); in mhi_net_dl_callback()
176 free_desc_count = mhi_get_free_desc_count(mhi_dev, DMA_FROM_DEVICE); in mhi_net_dl_callback()
236 static void mhi_net_ul_callback(struct mhi_device *mhi_dev, in mhi_net_ul_callback() argument
239 struct mhi_net_dev *mhi_netdev = dev_get_drvdata(&mhi_dev->dev); in mhi_net_ul_callback()
304 static int mhi_net_newlink(struct mhi_device *mhi_dev, struct net_device *ndev) in mhi_net_newlink() argument
311 dev_set_drvdata(&mhi_dev->dev, mhi_netdev); in mhi_net_newlink()
313 mhi_netdev->mdev = mhi_dev; in mhi_net_newlink()
315 mhi_netdev->mru = mhi_dev->mhi_cntrl->mru; in mhi_net_newlink()
322 err = mhi_prepare_for_transfer(mhi_dev); in mhi_net_newlink()
[all …]