Searched refs:mhi_dev (Results 1 – 12 of 12) sorted by relevance
/linux/drivers/net/wwan/ |
A D | mhi_wwan_ctrl.c | 20 struct mhi_device *mhi_dev; member 81 struct mhi_device *mhi_dev = mhiwwan->mhi_dev; in mhi_wwan_ctrl_refill_work() local 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() 139 mhi_unprepare_from_transfer(mhiwwan->mhi_dev); in mhi_wwan_ctrl_stop() 169 static void mhi_ul_xfer_cb(struct mhi_device *mhi_dev, in mhi_ul_xfer_cb() argument 217 struct mhi_controller *cntrl = mhi_dev->mhi_cntrl; in mhi_wwan_ctrl_probe() 225 mhiwwan->mhi_dev = mhi_dev; in mhi_wwan_ctrl_probe() 231 if (mhi_dev->dl_chan) in mhi_wwan_ctrl_probe() 233 if (mhi_dev->ul_chan) in mhi_wwan_ctrl_probe() [all …]
|
A D | mhi_wwan_mbim.c | 411 static void mhi_mbim_dl_callback(struct mhi_device *mhi_dev, in mhi_mbim_dl_callback() argument 596 struct mhi_controller *cntrl = mhi_dev->mhi_cntrl; in mhi_mbim_probe() 605 dev_set_drvdata(&mhi_dev->dev, mbim); in mhi_mbim_probe() 606 mbim->mdev = mhi_dev; in mhi_mbim_probe() 607 mbim->mru = mhi_dev->mhi_cntrl->mru ? mhi_dev->mhi_cntrl->mru : MHI_DEFAULT_MRU; in mhi_mbim_probe() 612 err = mhi_prepare_for_transfer(mhi_dev); in mhi_mbim_probe() 623 static void mhi_mbim_remove(struct mhi_device *mhi_dev) in mhi_mbim_remove() argument 626 struct mhi_controller *cntrl = mhi_dev->mhi_cntrl; in mhi_mbim_remove() 628 mhi_unprepare_from_transfer(mhi_dev); in mhi_mbim_remove() 630 wwan_unregister_ops(&cntrl->mhi_dev->dev); in mhi_mbim_remove() [all …]
|
/linux/drivers/bus/mhi/core/ |
A D | main.c | 323 mhi_dev->name); in mhi_destroy_device() 337 mhi_dev->ul_chan : mhi_dev->dl_chan; in mhi_get_free_desc_count() 393 mhi_chan->mhi_dev = mhi_dev; in mhi_create_devices() 408 mhi_chan->mhi_dev = mhi_dev; in mhi_create_devices() 419 if (mhi_dev->dl_chan && mhi_dev->dl_chan->wake_capable) in mhi_create_devices() 453 struct mhi_device *mhi_dev = mhi_chan->mhi_dev; in mhi_irq_handler() local 455 if (mhi_dev) in mhi_irq_handler() 1250 mhi_dev->ul_chan : mhi_dev->dl_chan; in mhi_queue_is_full() 1620 mhi_chan = dir ? mhi_dev->dl_chan : mhi_dev->ul_chan; in mhi_prepare_for_transfer() 1633 mhi_chan = dir ? mhi_dev->dl_chan : mhi_dev->ul_chan; in mhi_prepare_for_transfer() [all …]
|
A D | init.c | 989 mhi_dev->name = dev_name(&mhi_dev->dev); in mhi_register_controller() 998 mhi_cntrl->mhi_dev = mhi_dev; in mhi_register_controller() 1022 struct mhi_device *mhi_dev = mhi_cntrl->mhi_dev; in mhi_unregister_controller() local 1169 mhi_dev->ul_chan->mhi_dev = NULL; in mhi_release_device() 1172 mhi_dev->dl_chan->mhi_dev = NULL; in mhi_release_device() 1174 kfree(mhi_dev); in mhi_release_device() 1182 mhi_dev = kzalloc(sizeof(*mhi_dev), GFP_KERNEL); in mhi_alloc_device() 1183 if (!mhi_dev) in mhi_alloc_device() 1265 ret = mhi_drv->probe(mhi_dev, mhi_dev->id); in mhi_driver_probe() 1299 mhi_chan = dir ? mhi_dev->ul_chan : mhi_dev->dl_chan; in mhi_driver_remove() [all …]
|
A D | debugfs.c | 104 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() 234 struct mhi_device *mhi_dev = mhi_cntrl->mhi_dev; in mhi_debugfs_device_wake_show() local 254 struct mhi_device *mhi_dev = mhi_cntrl->mhi_dev; in mhi_debugfs_device_wake_write() local 262 ret = mhi_device_get_sync(mhi_dev); in mhi_debugfs_device_wake_write() [all …]
|
A D | pm.c | 158 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ready_state_transition() 247 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_pm_m0_transition() 320 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_pm_m1_transition() 356 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_pm_m3_transition() 377 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_pm_mission_mode_transition() 875 if (itr->mhi_dev) in mhi_pm_suspend() 911 if (itr->mhi_dev) in __mhi_pm_resume() 912 mhi_notify(itr->mhi_dev, MHI_CB_LPM_EXIT); in __mhi_pm_resume() 1236 mhi_dev->dev_wake++; in mhi_device_get() 1253 mhi_dev->dev_wake++; in mhi_device_get_sync() [all …]
|
A D | boot.c | 28 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_rddm_prepare() 67 struct device *dev = &mhi_cntrl->mhi_dev->dev; in __mhi_download_rddm_in_panic() 158 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_download_rddm_image() 183 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_fw_load_bhie() 234 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_fw_load_bhi() 392 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_fw_load_handler() 517 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_download_amss_image()
|
A D | internal.h | 570 struct mhi_device *mhi_dev; member 571 void (*xfer_cb)(struct mhi_device *mhi_dev, struct mhi_result *result); 645 pm_wakeup_event(&mhi_cntrl->mhi_dev->dev, 0); in mhi_trigger_resume()
|
/linux/net/qrtr/ |
A D | mhi.c | 16 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() 75 static int qcom_mhi_qrtr_probe(struct mhi_device *mhi_dev, in qcom_mhi_qrtr_probe() argument 82 rc = mhi_prepare_for_transfer(mhi_dev); in qcom_mhi_qrtr_probe() 90 qdev->mhi_dev = mhi_dev; in qcom_mhi_qrtr_probe() 91 qdev->dev = &mhi_dev->dev; in qcom_mhi_qrtr_probe() 94 dev_set_drvdata(&mhi_dev->dev, qdev); in qcom_mhi_qrtr_probe() 104 static void qcom_mhi_qrtr_remove(struct mhi_device *mhi_dev) in qcom_mhi_qrtr_remove() argument 109 mhi_unprepare_from_transfer(mhi_dev); in qcom_mhi_qrtr_remove() [all …]
|
/linux/include/linux/ |
A D | mhi.h | 377 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, 615 int mhi_get_free_desc_count(struct mhi_device *mhi_dev, 716 void mhi_device_get(struct mhi_device *mhi_dev); 723 int mhi_device_get_sync(struct mhi_device *mhi_dev); 729 void mhi_device_put(struct mhi_device *mhi_dev); 740 int mhi_prepare_for_transfer(struct mhi_device *mhi_dev); [all …]
|
/linux/drivers/net/ |
A D | mhi_net.c | 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() 342 mhi_unprepare_from_transfer(mhi_dev); in mhi_net_dellink() 346 dev_set_drvdata(&mhi_dev->dev, NULL); in mhi_net_dellink() 349 static int mhi_net_probe(struct mhi_device *mhi_dev, in mhi_net_probe() argument 361 SET_NETDEV_DEV(ndev, &mhi_dev->dev); in mhi_net_probe() 363 err = mhi_net_newlink(mhi_dev, ndev); in mhi_net_probe() 372 static void mhi_net_remove(struct mhi_device *mhi_dev) in mhi_net_remove() argument [all …]
|
/linux/drivers/net/wireless/ath/ath11k/ |
A D | pci.c | 187 mhi_device_get_sync(ab_pci->mhi_ctrl->mhi_dev); in ath11k_pci_write32() 211 mhi_device_put(ab_pci->mhi_ctrl->mhi_dev); in ath11k_pci_write32() 224 mhi_device_get_sync(ab_pci->mhi_ctrl->mhi_dev); in ath11k_pci_read32() 248 mhi_device_put(ab_pci->mhi_ctrl->mhi_dev); in ath11k_pci_read32()
|
Completed in 39 milliseconds