Home
last modified time | relevance | path

Searched refs:mdev (Results 1 – 25 of 541) sorted by relevance

12345678910>>...22

/linux/drivers/infiniband/hw/mthca/
H A Dmthca_main.c136 static int mthca_tune_pci(struct mthca_dev *mdev) in mthca_tune_pci() argument
142 if (pci_find_capability(mdev->pdev, PCI_CAP_ID_PCIX)) { in mthca_tune_pci()
143 if (pcix_set_mmrbc(mdev->pdev, pcix_get_max_mmrbc(mdev->pdev))) { in mthca_tune_pci()
144 mthca_err(mdev, "Couldn't set PCI-X max read count, " in mthca_tune_pci()
148 } else if (!(mdev->mthca_flags & MTHCA_FLAG_PCIE)) in mthca_tune_pci()
149 mthca_info(mdev, "No PCI-X capability, not setting RBC.\n"); in mthca_tune_pci()
151 if (pci_is_pcie(mdev->pdev)) { in mthca_tune_pci()
152 if (pcie_set_readrq(mdev->pdev, 4096)) { in mthca_tune_pci()
153 mthca_err(mdev, "Couldn't write PCI Express read request, " in mthca_tune_pci()
157 } else if (mdev->mthca_flags & MTHCA_FLAG_PCIE) in mthca_tune_pci()
[all …]
H A Dmthca_reset.c41 int mthca_reset(struct mthca_dev *mdev) in mthca_reset() argument
69 if (!(mdev->mthca_flags & MTHCA_FLAG_PCIE)) { in mthca_reset()
72 while ((bridge = pci_get_device(mdev->pdev->vendor, in mthca_reset()
73 mdev->pdev->device + 2, in mthca_reset()
76 bridge->subordinate == mdev->pdev->bus) { in mthca_reset()
77 mthca_dbg(mdev, "Found bridge: %s\n", in mthca_reset()
89 mthca_warn(mdev, "No bridge found for %s\n", in mthca_reset()
90 pci_name(mdev->pdev)); in mthca_reset()
105 if (pci_read_config_dword(mdev->pdev, i * 4, hca_header + i)) { in mthca_reset()
107 mthca_err(mdev, "Couldn't save HCA " in mthca_reset()
[all …]
/linux/drivers/sh/maple/
H A Dmaple.c139 struct maple_device *mdev; in maple_release_device() local
142 mdev = to_maple_dev(dev); in maple_release_device()
143 mq = mdev->mq; in maple_release_device()
146 kfree(mdev); in maple_release_device()
157 int maple_add_packet(struct maple_device *mdev, u32 function, u32 command, in maple_add_packet() argument
172 mdev->mq->command = command; in maple_add_packet()
173 mdev->mq->length = length; in maple_add_packet()
176 mdev->mq->sendbuf = sendbuf; in maple_add_packet()
179 list_add_tail(&mdev->mq->list, &maple_waitq); in maple_add_packet()
186 static struct mapleq *maple_allocq(struct maple_device *mdev) in maple_allocq() argument
[all …]
/linux/drivers/staging/most/video/
H A Dvideo.c51 struct most_video_dev *mdev; member
58 static inline bool data_ready(struct most_video_dev *mdev) in data_ready() argument
60 return !list_empty(&mdev->pending_mbos); in data_ready()
63 static inline struct mbo *get_top_mbo(struct most_video_dev *mdev) in get_top_mbo() argument
65 return list_first_entry(&mdev->pending_mbos, struct mbo, list); in get_top_mbo()
72 struct most_video_dev *mdev = video_drvdata(filp); in comp_vdev_open() local
86 if (!atomic_inc_and_test(&mdev->access_ref)) { in comp_vdev_open()
87 v4l2_err(&mdev->v4l2_dev, "too many clients\n"); in comp_vdev_open()
92 fh->mdev = mdev; in comp_vdev_open()
98 ret = most_start_channel(mdev->iface, mdev->ch_idx, &comp); in comp_vdev_open()
[all …]
/linux/sound/core/seq/oss/
H A Dseq_oss_midi.c58 …t send_midi_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, struct seq_oss_midi *mdev);
92 struct seq_oss_midi *mdev; in get_mdev() local
96 mdev = midi_devs[dev]; in get_mdev()
97 if (mdev) in get_mdev()
98 snd_use_lock_use(&mdev->use_lock); in get_mdev()
100 return mdev; in get_mdev()
110 struct seq_oss_midi *mdev; in find_slot() local
115 mdev = midi_devs[i]; in find_slot()
116 if (mdev && mdev->client == client && mdev->port == port) { in find_slot()
118 snd_use_lock_use(&mdev->use_lock); in find_slot()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_clock.c43 struct mlx4_en_dev *mdev = in mlx4_en_read_clock() local
45 struct mlx4_dev *dev = mdev->dev; in mlx4_en_read_clock()
61 u64 mlx4_en_get_hwtstamp(struct mlx4_en_dev *mdev, u64 timestamp) in mlx4_en_get_hwtstamp() argument
67 seq = read_seqbegin(&mdev->clock_lock); in mlx4_en_get_hwtstamp()
68 nsec = timecounter_cyc2time(&mdev->clock, timestamp); in mlx4_en_get_hwtstamp()
69 } while (read_seqretry(&mdev->clock_lock, seq)); in mlx4_en_get_hwtstamp()
74 void mlx4_en_fill_hwtstamps(struct mlx4_en_dev *mdev, in mlx4_en_fill_hwtstamps() argument
79 hwts->hwtstamp = mlx4_en_get_hwtstamp(mdev, timestamp); in mlx4_en_fill_hwtstamps()
88 void mlx4_en_remove_timestamp(struct mlx4_en_dev *mdev) in mlx4_en_remove_timestamp() argument
90 if (mdev->ptp_clock) { in mlx4_en_remove_timestamp()
[all …]
H A Den_main.c96 level, DRV_NAME, dev_name(&priv->mdev->pdev->dev), in en_print()
117 if (mlx4_is_mfunc(priv->mdev->dev) && in mlx4_en_update_loopback_state()
124 if (mlx4_is_mfunc(priv->mdev->dev) || priv->validate_loopback) in mlx4_en_update_loopback_state()
127 mutex_lock(&priv->mdev->state_lock); in mlx4_en_update_loopback_state()
128 if ((priv->mdev->dev->caps.flags2 & in mlx4_en_update_loopback_state()
145 mlx4_warn(priv->mdev, "failed to change mcast loopback\n"); in mlx4_en_update_loopback_state()
147 mutex_unlock(&priv->mdev->state_lock); in mlx4_en_update_loopback_state()
150 static void mlx4_en_get_profile(struct mlx4_en_dev *mdev) in mlx4_en_get_profile() argument
152 struct mlx4_en_profile *params = &mdev->profile; in mlx4_en_get_profile()
160 if (params->udp_rss && !(mdev->dev->caps.flags in mlx4_en_get_profile()
[all …]
/linux/drivers/most/
H A Dmost_usb.c77 struct most_dev *mdev; member
238 struct most_dev *mdev = to_mdev(iface); in hdm_poison_channel() local
243 dev_warn(&mdev->usb_device->dev, "Channel ID out of range.\n"); in hdm_poison_channel()
247 lock = mdev->channel_lock + channel; in hdm_poison_channel()
249 mdev->is_channel_healthy[channel] = false; in hdm_poison_channel()
252 cancel_work_sync(&mdev->clear_work[channel].ws); in hdm_poison_channel()
254 mutex_lock(&mdev->io_mutex); in hdm_poison_channel()
255 usb_kill_anchored_urbs(&mdev->busy_urbs[channel]); in hdm_poison_channel()
256 if (mdev->padding_active[channel]) in hdm_poison_channel()
257 mdev->padding_active[channel] = false; in hdm_poison_channel()
[all …]
/linux/drivers/mtd/maps/
H A Dvmu-flash.c24 struct maple_device *mdev; member
60 struct maple_device *mdev; in ofs_to_block() local
66 mdev = mpart->mdev; in ofs_to_block()
67 card = maple_get_drvdata(mdev); in ofs_to_block()
91 struct maple_device *mdev; in vmu_blockread() local
94 mdev = mq->dev; in vmu_blockread()
95 card = maple_get_drvdata(mdev); in vmu_blockread()
114 struct maple_device *mdev; in maple_vmu_read_block() local
121 mdev = mpart->mdev; in maple_vmu_read_block()
123 card = maple_get_drvdata(mdev); in maple_vmu_read_block()
[all …]
/linux/drivers/crypto/intel/qat/qat_common/
H A Dqat_mig_dev.c15 struct qat_mig_dev *mdev; in qat_vfmig_create() local
27 mdev = kmalloc(sizeof(*mdev), GFP_KERNEL); in qat_vfmig_create()
28 if (!mdev) in qat_vfmig_create()
31 mdev->vf_id = vf_id; in qat_vfmig_create()
32 mdev->parent_accel_dev = accel_dev; in qat_vfmig_create()
34 return mdev; in qat_vfmig_create()
38 int qat_vfmig_init(struct qat_mig_dev *mdev) in qat_vfmig_init() argument
40 struct adf_accel_dev *accel_dev = mdev->parent_accel_dev; in qat_vfmig_init()
42 return GET_VFMIG_OPS(accel_dev)->init(mdev); in qat_vfmig_init()
46 void qat_vfmig_cleanup(struct qat_mig_dev *mdev) in qat_vfmig_cleanup() argument
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dparams.c13 static u8 mlx5e_mpwrq_min_page_shift(struct mlx5_core_dev *mdev) in mlx5e_mpwrq_min_page_shift() argument
15 u8 min_page_shift = MLX5_CAP_GEN_2(mdev, log_min_mkey_entity_size); in mlx5e_mpwrq_min_page_shift()
20 u8 mlx5e_mpwrq_page_shift(struct mlx5_core_dev *mdev, struct mlx5e_xsk_param *xsk) in mlx5e_mpwrq_page_shift() argument
23 u8 min_page_shift = mlx5e_mpwrq_min_page_shift(mdev); in mlx5e_mpwrq_page_shift()
33 mlx5e_mpwrq_umr_mode(struct mlx5_core_dev *mdev, struct mlx5e_xsk_param *xsk) in mlx5e_mpwrq_umr_mode() argument
44 u8 page_shift = mlx5e_mpwrq_page_shift(mdev, xsk); in mlx5e_mpwrq_umr_mode()
102 u8 mlx5e_mpwrq_log_wqe_sz(struct mlx5_core_dev *mdev, u8 page_shift, in mlx5e_mpwrq_log_wqe_sz() argument
110 max_wqe_size = mlx5e_get_max_sq_aligned_wqebbs(mdev) * MLX5_SEND_WQE_BB; in mlx5e_mpwrq_log_wqe_sz()
120 u8 mlx5e_mpwrq_pages_per_wqe(struct mlx5_core_dev *mdev, u8 page_shift, in mlx5e_mpwrq_pages_per_wqe() argument
123 u8 log_wqe_sz = mlx5e_mpwrq_log_wqe_sz(mdev, page_shift, umr_mode); in mlx5e_mpwrq_pages_per_wqe()
[all …]
H A Dparams.h59 u8 mlx5e_mpwrq_page_shift(struct mlx5_core_dev *mdev, struct mlx5e_xsk_param *xsk);
61 mlx5e_mpwrq_umr_mode(struct mlx5_core_dev *mdev, struct mlx5e_xsk_param *xsk);
63 u8 mlx5e_mpwrq_log_wqe_sz(struct mlx5_core_dev *mdev, u8 page_shift,
65 u8 mlx5e_mpwrq_pages_per_wqe(struct mlx5_core_dev *mdev, u8 page_shift,
67 u16 mlx5e_mpwrq_umr_wqe_sz(struct mlx5_core_dev *mdev, u8 page_shift,
69 u8 mlx5e_mpwrq_umr_wqebbs(struct mlx5_core_dev *mdev, u8 page_shift,
71 u8 mlx5e_mpwrq_mtts_per_wqe(struct mlx5_core_dev *mdev, u8 page_shift,
73 u32 mlx5e_mpwrq_max_num_entries(struct mlx5_core_dev *mdev,
75 u8 mlx5e_mpwrq_max_log_rq_pkts(struct mlx5_core_dev *mdev, u8 page_shift,
80 bool slow_pci_heuristic(struct mlx5_core_dev *mdev);
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_common.c40 void mlx5e_mkey_set_relaxed_ordering(struct mlx5_core_dev *mdev, void *mkc) in mlx5e_mkey_set_relaxed_ordering() argument
42 bool ro_write = MLX5_CAP_GEN(mdev, relaxed_ordering_write); in mlx5e_mkey_set_relaxed_ordering()
43 bool ro_read = MLX5_CAP_GEN(mdev, relaxed_ordering_read) || in mlx5e_mkey_set_relaxed_ordering()
44 (pcie_relaxed_ordering_enabled(mdev->pdev) && in mlx5e_mkey_set_relaxed_ordering()
45 MLX5_CAP_GEN(mdev, relaxed_ordering_read_pci_enabled)); in mlx5e_mkey_set_relaxed_ordering()
51 int mlx5e_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, u32 *mkey) in mlx5e_create_mkey() argument
66 mlx5e_mkey_set_relaxed_ordering(mdev, mkc); in mlx5e_create_mkey()
71 err = mlx5_core_create_mkey(mdev, mkey, in, inlen); in mlx5e_create_mkey()
77 int mlx5e_create_tis(struct mlx5_core_dev *mdev, void *in, u32 *tisn) in mlx5e_create_tis() argument
81 MLX5_SET(tisc, tisc, transport_domain, mdev->mlx5e_res.hw_objs.td.tdn); in mlx5e_create_tis()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/
H A Ddriver.c28 struct mlx5_core_dev *mdev; in mlx5_sf_dev_probe() local
36 mdev = devlink_priv(devlink); in mlx5_sf_dev_probe()
37 mdev->device = &adev->dev; in mlx5_sf_dev_probe()
38 mdev->pdev = sf_dev->parent_mdev->pdev; in mlx5_sf_dev_probe()
39 mdev->bar_addr = sf_dev->bar_base_addr; in mlx5_sf_dev_probe()
40 mdev->iseg_base = sf_dev->bar_base_addr; in mlx5_sf_dev_probe()
41 mdev->coredev_type = MLX5_COREDEV_SF; in mlx5_sf_dev_probe()
42 mdev->priv.parent_mdev = sf_dev->parent_mdev; in mlx5_sf_dev_probe()
43 mdev->priv.adev_idx = adev->id; in mlx5_sf_dev_probe()
44 sf_dev->mdev = mdev; in mlx5_sf_dev_probe()
[all …]
/linux/net/mctp/
H A Ddevice.c33 struct mctp_dev *mdev = rcu_dereference(dev->mctp_ptr); in __mctp_dev_get() local
38 if (mdev) in __mctp_dev_get()
39 if (!refcount_inc_not_zero(&mdev->refs)) in __mctp_dev_get()
41 return mdev; in __mctp_dev_get()
62 struct mctp_dev *mdev, mctp_eid_t eid, in mctp_fill_addrinfo() argument
78 hdr->ifa_index = mdev->dev->ifindex; in mctp_fill_addrinfo()
95 static int mctp_dump_dev_addrinfo(struct mctp_dev *mdev, struct sk_buff *skb, in mctp_dump_dev_addrinfo() argument
104 for (; mcb->a_idx < mdev->num_addrs; mcb->a_idx++) { in mctp_dump_dev_addrinfo()
105 rc = mctp_fill_addrinfo(skb, mdev, mdev->addrs[mcb->a_idx], in mctp_dump_dev_addrinfo()
121 struct mctp_dev *mdev; in mctp_dump_addrinfo() local
[all …]
/linux/drivers/virtio/
H A Dvirtio_pci_modern_dev.c22 vp_modern_map_capability(struct virtio_pci_modern_device *mdev, int off, in vp_modern_map_capability() argument
26 struct pci_dev *dev = mdev->pci_dev; in vp_modern_map_capability()
40 if (bar >= PCI_STD_NUM_BARS || !(mdev->modern_bars & (1 << bar))) { in vp_modern_map_capability()
223 int vp_modern_probe(struct virtio_pci_modern_device *mdev) in vp_modern_probe() argument
225 struct pci_dev *pci_dev = mdev->pci_dev; in vp_modern_probe()
233 if (mdev->device_id_check) { in vp_modern_probe()
234 devid = mdev->device_id_check(pci_dev); in vp_modern_probe()
237 mdev->id.device = devid; in vp_modern_probe()
247 mdev->id.device = pci_dev->subsystem_device; in vp_modern_probe()
250 mdev->id.device = pci_dev->device - 0x1040; in vp_modern_probe()
[all …]
/linux/drivers/media/mc/
H A Dmc-device.c81 static struct media_entity *find_entity(struct media_device *mdev, u32 id) in find_entity() argument
88 media_device_for_each_entity(entity, mdev) { in find_entity()
98 static long media_device_enum_entities(struct media_device *mdev, void *arg) in media_device_enum_entities() argument
103 ent = find_entity(mdev, entd->id); in media_device_enum_entities()
151 static long media_device_enum_links(struct media_device *mdev, void *arg) in media_device_enum_links() argument
156 entity = find_entity(mdev, links->entity); in media_device_enum_links()
200 static long media_device_setup_link(struct media_device *mdev, void *arg) in media_device_setup_link() argument
209 source = find_entity(mdev, linkd->source.entity); in media_device_setup_link()
210 sink = find_entity(mdev, linkd->sink.entity); in media_device_setup_link()
230 static long media_device_get_topology(struct media_device *mdev, void *arg) in media_device_get_topology() argument
[all …]
/linux/drivers/mailbox/
H A Dmailbox-sti.c36 #define MBOX_BASE(mdev, inst) ((mdev)->base + ((inst) * 4)) argument
81 struct sti_mbox_device *mdev; member
89 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_channel_is_enabled() local
93 return mdev->enabled[instance] & BIT(channel); in sti_mbox_channel_is_enabled()
122 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_enable_channel() local
126 void __iomem *base = MBOX_BASE(mdev, instance); in sti_mbox_enable_channel()
128 spin_lock_irqsave(&mdev->lock, flags); in sti_mbox_enable_channel()
129 mdev->enabled[instance] |= BIT(channel); in sti_mbox_enable_channel()
131 spin_unlock_irqrestore(&mdev->lock, flags); in sti_mbox_enable_channel()
137 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_disable_channel() local
[all …]
/linux/drivers/dma/qcom/
H A Dhidma_mgmt_sys.c14 struct hidma_mgmt_dev *mdev; member
22 int (*get)(struct hidma_mgmt_dev *mdev);
23 int (*set)(struct hidma_mgmt_dev *mdev, u64 val);
27 static int get_##name(struct hidma_mgmt_dev *mdev) \
29 return mdev->name; \
31 static int set_##name(struct hidma_mgmt_dev *mdev, u64 val) \
36 tmp = mdev->name; \
37 mdev->name = val; \
38 rc = hidma_mgmt_setup(mdev); \
40 mdev->name = tmp; \
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dclock.c80 static bool mlx5_real_time_mode(struct mlx5_core_dev *mdev) in mlx5_real_time_mode() argument
82 return (mlx5_is_real_time_rq(mdev) || mlx5_is_real_time_sq(mdev)); in mlx5_real_time_mode()
85 static bool mlx5_npps_real_time_supported(struct mlx5_core_dev *mdev) in mlx5_npps_real_time_supported() argument
87 return (mlx5_real_time_mode(mdev) && in mlx5_npps_real_time_supported()
88 MLX5_CAP_MCAM_FEATURE(mdev, npps_period) && in mlx5_npps_real_time_supported()
89 MLX5_CAP_MCAM_FEATURE(mdev, out_pulse_duration_ns)); in mlx5_npps_real_time_supported()
92 static bool mlx5_modify_mtutc_allowed(struct mlx5_core_dev *mdev) in mlx5_modify_mtutc_allowed() argument
94 return MLX5_CAP_MCAM_FEATURE(mdev, ptpcyc2realtime_modify); in mlx5_modify_mtutc_allowed()
125 struct mlx5_core_dev *mdev; in mlx5_ptp_getmaxphase() local
127 mdev = container_of(clock, struct mlx5_core_dev, clock); in mlx5_ptp_getmaxphase()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Dmbox.c20 struct otx2_mbox_dev *mdev = &mbox->dev[devid]; in __otx2_mbox_reset() local
22 void *hw_mbase = mdev->hwbase; in __otx2_mbox_reset()
27 mdev->msg_size = 0; in __otx2_mbox_reset()
28 mdev->rsp_size = 0; in __otx2_mbox_reset()
38 struct otx2_mbox_dev *mdev = &mbox->dev[devid]; in otx2_mbox_reset() local
40 spin_lock(&mdev->mbox_lock); in otx2_mbox_reset()
42 spin_unlock(&mdev->mbox_lock); in otx2_mbox_reset()
133 struct otx2_mbox_dev *mdev; in otx2_mbox_init() local
143 mdev = &mbox->dev[devid]; in otx2_mbox_init()
144 mdev->mbase = mbox->hwbase + (devid * MBOX_SIZE); in otx2_mbox_init()
[all …]
/linux/include/media/
H A Dmedia-device.h69 struct media_request *(*req_alloc)(struct media_device *mdev);
217 void media_device_init(struct media_device *mdev);
227 void media_device_cleanup(struct media_device *mdev);
270 int __must_check __media_device_register(struct media_device *mdev,
282 #define media_device_register(mdev) __media_device_register(mdev, THIS_MODULE) argument
292 void media_device_unregister(struct media_device *mdev);
330 int __must_check media_device_register_entity(struct media_device *mdev,
367 void media_device_register_entity_notify(struct media_device *mdev,
378 void media_device_unregister_entity_notify(struct media_device *mdev,
382 #define media_device_for_each_entity(entity, mdev) \ argument
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7921/
H A Dsdio.c29 struct mt76_dev *mdev = container_of(sdio, struct mt76_dev, sdio); in mt7921s_txrx_worker() local
30 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921s_txrx_worker()
33 queue_work(mdev->wq, &dev->pm.wake_work); in mt7921s_txrx_worker()
127 struct mt76_dev *mdev; in mt7921s_probe() local
136 mdev = mt76_alloc_device(&func->dev, sizeof(*dev), ops, &drv_ops); in mt7921s_probe()
137 if (!mdev) in mt7921s_probe()
140 dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921s_probe()
145 ret = mt76s_init(mdev, func, &mt7921s_ops); in mt7921s_probe()
149 ret = mt76s_hw_init(mdev, func, MT76_CONNAC2_SDIO); in mt7921s_probe()
153 mdev->rev = (mt76_rr(dev, MT_HW_CHIPID) << 16) | in mt7921s_probe()
[all …]
/linux/drivers/vdpa/virtio_pci/
H A Dvp_vdpa.c36 struct virtio_pci_modern_device *mdev; member
48 struct virtio_pci_modern_device *mdev; member
61 return vp_vdpa->mdev; in vdpa_to_mdev()
66 return vp_vdpa->mdev; in vp_vdpa_to_mdev()
78 struct virtio_pci_modern_device *mdev = vdpa_to_mdev(vdpa); in vp_vdpa_set_driver_features() local
80 vp_modern_set_features(mdev, features); in vp_vdpa_set_driver_features()
87 struct virtio_pci_modern_device *mdev = vdpa_to_mdev(vdpa); in vp_vdpa_get_driver_features() local
89 return vp_modern_get_driver_features(mdev); in vp_vdpa_get_driver_features()
94 struct virtio_pci_modern_device *mdev = vdpa_to_mdev(vdpa); in vp_vdpa_get_status() local
96 return vp_modern_get_status(mdev); in vp_vdpa_get_status()
[all …]
/linux/drivers/vfio/mdev/
H A Dmdev_core.c27 static void mdev_device_remove_common(struct mdev_device *mdev) in mdev_device_remove_common() argument
29 struct mdev_parent *parent = mdev->type->parent; in mdev_device_remove_common()
31 mdev_remove_sysfs_files(mdev); in mdev_device_remove_common()
32 device_del(&mdev->dev); in mdev_device_remove_common()
35 put_device(&mdev->dev); in mdev_device_remove_common()
112 struct mdev_device *mdev = to_mdev_device(dev); in mdev_device_release() local
113 struct mdev_parent *parent = mdev->type->parent; in mdev_device_release()
116 list_del(&mdev->next); in mdev_device_release()
122 kobject_put(&mdev->type->kobj); in mdev_device_release()
124 dev_dbg(&mdev->dev, "MDEV: destroying\n"); in mdev_device_release()
[all …]

12345678910>>...22