/Linux-v6.1/drivers/bus/mhi/ep/ |
D | main.c | 31 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ep_send_event() 118 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ep_process_cmd_ring() 174 if (!(ch_id % 2) && !mhi_chan->mhi_dev) { in mhi_ep_process_cmd_ring() 201 mhi_chan->xfer_cb(mhi_chan->mhi_dev, &result); in mhi_ep_process_cmd_ring() 233 mhi_chan->xfer_cb(mhi_chan->mhi_dev, &result); in mhi_ep_process_cmd_ring() 265 bool mhi_ep_queue_is_empty(struct mhi_ep_device *mhi_dev, enum dma_data_direction dir) in mhi_ep_queue_is_empty() argument 267 struct mhi_ep_chan *mhi_chan = (dir == DMA_FROM_DEVICE) ? mhi_dev->dl_chan : in mhi_ep_queue_is_empty() 268 mhi_dev->ul_chan; in mhi_ep_queue_is_empty() 269 struct mhi_ep_cntrl *mhi_cntrl = mhi_dev->mhi_cntrl; in mhi_ep_queue_is_empty() 282 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ep_read_channel() [all …]
|
D | sm.c | 32 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() 100 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ep_set_m3_state() 126 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ep_set_ready_state()
|
D | ring.c | 32 struct device *dev = &mhi_cntrl->mhi_dev->dev; in __mhi_ep_cache_ring() 104 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ep_ring_add_element() 163 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ep_ring_start()
|
D | internal.h | 156 struct mhi_ep_device *mhi_dev; member 159 void (*xfer_cb)(struct mhi_ep_device *mhi_dev, struct mhi_result *result);
|
/Linux-v6.1/drivers/net/wwan/ |
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 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 …]
|
D | mhi_wwan_mbim.c | 411 static void mhi_mbim_dl_callback(struct mhi_device *mhi_dev, in mhi_mbim_dl_callback() argument 414 struct mhi_mbim_context *mbim = dev_get_drvdata(&mhi_dev->dev); in mhi_mbim_dl_callback() 418 free_desc_count = mhi_get_free_desc_count(mhi_dev, DMA_FROM_DEVICE); in mhi_mbim_dl_callback() 474 static void mhi_mbim_ul_callback(struct mhi_device *mhi_dev, in mhi_mbim_ul_callback() argument 477 struct mhi_mbim_context *mbim = dev_get_drvdata(&mhi_dev->dev); in mhi_mbim_ul_callback() 595 static int mhi_mbim_probe(struct mhi_device *mhi_dev, const struct mhi_device_id *id) in mhi_mbim_probe() argument 597 struct mhi_controller *cntrl = mhi_dev->mhi_cntrl; in mhi_mbim_probe() 601 mbim = devm_kzalloc(&mhi_dev->dev, sizeof(*mbim), GFP_KERNEL); in mhi_mbim_probe() 606 dev_set_drvdata(&mhi_dev->dev, mbim); in mhi_mbim_probe() 607 mbim->mdev = mhi_dev; in mhi_mbim_probe() [all …]
|
/Linux-v6.1/net/qrtr/ |
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() 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-v6.1/drivers/bus/mhi/host/ |
D | main.c | 277 struct mhi_device *mhi_dev; in mhi_destroy_device() local 284 mhi_dev = to_mhi_device(dev); in mhi_destroy_device() 285 mhi_cntrl = mhi_dev->mhi_cntrl; in mhi_destroy_device() 288 if (mhi_dev->dev_type == MHI_DEVICE_CONTROLLER) in mhi_destroy_device() 291 ul_chan = mhi_dev->ul_chan; in mhi_destroy_device() 292 dl_chan = mhi_dev->dl_chan; in mhi_destroy_device() 313 put_device(&ul_chan->mhi_dev->dev); in mhi_destroy_device() 320 put_device(&dl_chan->mhi_dev->dev); in mhi_destroy_device() 323 dev_dbg(&mhi_cntrl->mhi_dev->dev, "destroy device for chan:%s\n", in mhi_destroy_device() 324 mhi_dev->name); in mhi_destroy_device() [all …]
|
D | init.c | 86 struct mhi_device *mhi_dev = to_mhi_device(dev); in serial_number_show() local 87 struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl; in serial_number_show() 98 struct mhi_device *mhi_dev = to_mhi_device(dev); in oem_pk_hash_show() local 99 struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl; in oem_pk_hash_show() 115 struct mhi_device *mhi_dev = to_mhi_device(dev); in soc_reset_store() local 116 struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl; in soc_reset_store() 129 ATTRIBUTE_GROUPS(mhi_dev); 166 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_init_irq_setup() 446 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_init_mmio() 896 struct mhi_device *mhi_dev; in mhi_register_controller() local [all …]
|
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() 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 …]
|
D | pm.c | 132 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_set_mhi_state() 164 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ready_state_transition() 251 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_pm_m0_transition() 324 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_pm_m1_transition() 360 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_pm_m3_transition() 381 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_pm_mission_mode_transition() 402 device_for_each_child(&mhi_cntrl->mhi_dev->dev, ¤t_ee, in mhi_pm_mission_mode_transition() 462 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_pm_disable_transition() 513 device_for_each_child(&mhi_cntrl->mhi_dev->dev, NULL, mhi_destroy_device); in mhi_pm_disable_transition() 574 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_pm_sys_error_transition() [all …]
|
D | boot.c | 28 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() 162 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_download_rddm_image() 186 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_fw_load_bhie() 238 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_fw_load_bhi() 395 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_fw_load_handler() 520 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_download_amss_image()
|
D | internal.h | 231 struct mhi_device *mhi_dev; member 232 void (*xfer_cb)(struct mhi_device *mhi_dev, struct mhi_result *result); 306 pm_wakeup_event(&mhi_cntrl->mhi_dev->dev, 0); in mhi_trigger_resume()
|
/Linux-v6.1/include/linux/ |
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, 532 void (*status_cb)(struct mhi_device *mhi_dev, enum mhi_callback mhi_cb); 607 void mhi_notify(struct mhi_device *mhi_dev, enum mhi_callback cb_reason); 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); [all …]
|
D | mhi_ep.h | 100 struct mhi_ep_device *mhi_dev; member 189 void (*ul_xfer_cb)(struct mhi_ep_device *mhi_dev, 191 void (*dl_xfer_cb)(struct mhi_ep_device *mhi_dev, 266 bool mhi_ep_queue_is_empty(struct mhi_ep_device *mhi_dev, enum dma_data_direction dir); 275 int mhi_ep_queue_skb(struct mhi_ep_device *mhi_dev, struct sk_buff *skb);
|
/Linux-v6.1/drivers/net/ |
D | mhi_net.c | 169 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 …]
|
/Linux-v6.1/drivers/net/wireless/ath/ath11k/ |
D | pci.c | 43 return mhi_device_get_sync(ab_pci->mhi_ctrl->mhi_dev); in ath11k_pci_bus_wake_up() 50 mhi_device_put(ab_pci->mhi_ctrl->mhi_dev); in ath11k_pci_bus_release()
|