Home
last modified time | relevance | path

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

12345678910>>...22

/linux/drivers/infiniband/hw/mthca/
A Dmthca_main.c221 mdev->limits.max_srq_sge = mthca_max_srq_sge(mdev); in mthca_dev_lim()
352 mthca_alloc_icm(mdev, mdev->fw.arbel.fw_pages, in mthca_load_fw()
359 err = mthca_MAP_FA(mdev, mdev->fw.arbel.fw_icm); in mthca_load_fw()
376 mthca_free_icm(mdev, mdev->fw.arbel.fw_icm, 0); in mthca_load_fw()
551 mthca_free_icm(mdev, mdev->fw.arbel.aux_icm, 0); in mthca_init_icm()
571 mthca_free_icm(mdev, mdev->fw.arbel.aux_icm, 0); in mthca_free_icms()
638 mthca_free_icm(mdev, mdev->fw.arbel.fw_icm, 0); in mthca_init_arbel()
655 mthca_free_icm(mdev, mdev->fw.arbel.fw_icm, 0); in mthca_close_hca()
1043 mthca_pd_free(mdev, &mdev->driver_pd); in __mthca_init_one()
1090 mthca_pd_free(mdev, &mdev->driver_pd); in __mthca_remove_one()
[all …]
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()
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()
107 mthca_err(mdev, "Couldn't save HCA " in mthca_reset()
114 hca_pcie_cap = pci_pcie_cap(mdev->pdev); in mthca_reset()
128 mthca_err(mdev, "Couldn't save HCA bridge " in mthca_reset()
[all …]
/linux/drivers/gpu/drm/arm/display/komeda/
A Dkomeda_dev.c34 mdev->funcs->dump_register(mdev, sf); in komeda_register_show()
220 mdev->funcs = komeda_identify(mdev->reg_base, &mdev->chip); in komeda_dev_create()
232 mdev->funcs->init_format_table(mdev); in komeda_dev_create()
234 err = mdev->funcs->enum_resources(mdev); in komeda_dev_create()
254 mdev->iommu = iommu_get_domain_for_dev(mdev->dev); in komeda_dev_create()
326 mdev->funcs->enable_irq(mdev); in komeda_dev_resume()
328 if (mdev->iommu && mdev->funcs->connect_iommu) in komeda_dev_resume()
329 if (mdev->funcs->connect_iommu(mdev)) in komeda_dev_resume()
337 if (mdev->iommu && mdev->funcs->disconnect_iommu) in komeda_dev_suspend()
338 if (mdev->funcs->disconnect_iommu(mdev)) in komeda_dev_suspend()
[all …]
/linux/drivers/sh/maple/
A Dmaple.c206 mdev->port, mdev->unit); in maple_allocq()
217 mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); in maple_alloc_dev()
218 if (!mdev) in maple_alloc_dev()
224 mdev->mq = maple_allocq(mdev); in maple_alloc_dev()
365 mdev->product_name, function, mdev->port, mdev->unit); in maple_attach_driver()
429 mdev->when = jiffies + mdev->interval; in setup_maple_commands()
549 if (!mdev->can_unload(mdev)) { in maple_response_none()
557 mdev->port, mdev->unit); in maple_response_none()
605 mdev->fileerr_handler(mdev, recvbuf); in maple_response_fileerr()
609 "file error 0x%X\n", mdev->port, mdev->unit, in maple_response_fileerr()
[all …]
/linux/drivers/staging/most/video/
A Dvideo.c92 fh->mdev = mdev; in comp_vdev_open()
119 struct most_video_dev *mdev = fh->mdev; in comp_vdev_close() local
155 struct most_video_dev *mdev = fh->mdev; in comp_vdev_read() local
204 struct most_video_dev *mdev = fh->mdev; in comp_vdev_poll() local
246 struct most_video_dev *mdev = fh->mdev; in vidioc_querycap() local
280 struct most_video_dev *mdev = fh->mdev; in vidioc_try_fmt_vid_cap() local
289 struct most_video_dev *mdev = fh->mdev; in vidioc_s_fmt_vid_cap() local
304 struct most_video_dev *mdev = fh->mdev; in vidioc_enum_input() local
321 struct most_video_dev *mdev = fh->mdev; in vidioc_g_input() local
420 mdev->vdev->lock = &mdev->lock; in comp_register_videodev()
[all …]
/linux/sound/core/seq/oss/
A Dseq_oss_midi.c101 if (mdev) in get_mdev()
120 if (mdev && mdev->client == client && mdev->port == port) { in find_slot()
156 if (mdev) { in snd_seq_oss_midi_check_new_port()
165 mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); in snd_seq_oss_midi_check_new_port()
166 if (!mdev) in snd_seq_oss_midi_check_new_port()
177 strscpy(mdev->name, pinfo->name, sizeof(mdev->name)); in snd_seq_oss_midi_check_new_port()
206 midi_devs[mdev->seq_device] = mdev; in snd_seq_oss_midi_check_new_port()
325 if (!mdev) in snd_seq_oss_midi_open()
329 if (mdev->opened && mdev->devinfo != dp) { in snd_seq_oss_midi_open()
394 if (! mdev->opened || mdev->devinfo != dp) { in snd_seq_oss_midi_close()
[all …]
/linux/drivers/most/
A Dmost_usb.c585 mdev->clear_work[channel].mdev = mdev; in hdm_configure_channel()
719 mdev->on_netinfo(&mdev->iface, link, hw_addr); in wq_netinfo()
731 struct most_dev *mdev = clear_work->mdev; in wq_clear_halt() local
959 mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); in hdm_probe()
960 if (!mdev) in hdm_probe()
977 mdev->iface.dev = &mdev->dev; in hdm_probe()
986 mdev->iface.description = mdev->description; in hdm_probe()
996 mdev->dev.init_name = mdev->description; in hdm_probe()
1007 mdev->iface.channel_vector = mdev->cap; in hdm_probe()
1063 mdev->dci = kzalloc(sizeof(*mdev->dci), GFP_KERNEL); in hdm_probe()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
A Den_clock.c43 struct mlx4_en_dev *mdev = in mlx4_en_read_clock() local
85 if (mdev->ptp_clock) { in mlx4_en_remove_timestamp()
87 mdev->ptp_clock = NULL; in mlx4_en_remove_timestamp()
210 timecounter_init(&mdev->clock, &mdev->cycles, ns); in mlx4_en_phc_settime()
272 if (mdev->ptp_clock) in mlx4_en_init_timestamp()
277 memset(&mdev->cycles, 0, sizeof(mdev->cycles)); in mlx4_en_init_timestamp()
281 mdev->cycles.mult = in mlx4_en_init_timestamp()
283 mdev->nominal_c_mult = mdev->cycles.mult; in mlx4_en_init_timestamp()
286 timecounter_init(&mdev->clock, &mdev->cycles, in mlx4_en_init_timestamp()
294 mdev->ptp_clock = ptp_clock_register(&mdev->ptp_clock_info, in mlx4_en_init_timestamp()
[all …]
A Den_main.c247 kfree(mdev); in mlx4_en_remove()
258 if (mlx4_en_init_netdev(mdev, i, &mdev->profile.prof[i])) in mlx4_en_activate()
277 mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); in mlx4_en_add()
278 if (!mdev) in mlx4_en_add()
293 mdev->dev = dev; in mlx4_en_add()
302 if (mlx4_mr_alloc(mdev->dev, mdev->priv_pdn, 0, ~0ull, in mlx4_en_add()
308 if (mlx4_mr_enable(mdev->dev, &mdev->mr)) { in mlx4_en_add()
319 mdev->port_cnt++; in mlx4_en_add()
336 return mdev; in mlx4_en_add()
341 if (mdev->uar_map) in mlx4_en_add()
[all …]
/linux/drivers/mtd/maps/
A Dvmu-flash.c66 mdev = mpart->mdev; in ofs_to_block()
121 mdev = mpart->mdev; in maple_vmu_read_block()
236 mdev = mpart->mdev; in maple_vmu_write_block()
259 mdev->port, mdev->unit); in maple_vmu_write_block()
313 mdev = mpart->mdev; in vmu_flash_read_char()
362 mdev = mpart->mdev; in vmu_flash_read()
428 mdev = mpart->mdev; in vmu_flash_write()
546 mpart->mdev = mdev; in vmu_queryblocks()
738 mdev->port, mdev->unit); in vmu_file_error()
743 mdev->port, mdev->unit); in vmu_file_error()
[all …]
/linux/drivers/dma/
A Daltera-msgdma.c347 dev_dbg(mdev->dev, "mdev %p descs are not available\n", mdev); in msgdma_prep_memcpy()
410 dev_dbg(mdev->dev, "mdev %p descs are not available\n", mdev); in msgdma_prep_slave_sg()
553 if (!mdev->idle) in msgdma_start_transfer()
561 list_splice_tail_init(&mdev->pending_list, &mdev->active_list); in msgdma_start_transfer()
627 msgdma_free_desc_list(mdev, &mdev->active_list); in msgdma_free_descriptors()
628 msgdma_free_desc_list(mdev, &mdev->pending_list); in msgdma_free_descriptors()
629 msgdma_free_desc_list(mdev, &mdev->done_list); in msgdma_free_descriptors()
757 if (!mdev) in msgdma_dev_remove()
760 devm_free_irq(mdev->dev, mdev->irq, mdev); in msgdma_dev_remove()
814 mdev = devm_kzalloc(&pdev->dev, sizeof(*mdev), GFP_NOWAIT); in msgdma_probe()
[all …]
/linux/net/mctp/
A Ddevice.c168 if (!mdev) in mctp_rtm_newaddr()
175 if (memchr(mdev->addrs, addr->s_addr, mdev->num_addrs)) in mctp_rtm_newaddr()
181 memcpy(tmp_addrs, mdev->addrs, mdev->num_addrs); in mctp_rtm_newaddr()
230 if (!mdev) in mctp_rtm_deladdr()
287 mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); in mctp_add_dev()
288 if (!mdev) in mctp_add_dev()
311 if (!mdev) in mctp_fill_link_af()
326 if (!mdev) in mctp_get_link_af_size()
349 if (!mdev) in mctp_set_link_af()
378 if (!mdev) in mctp_unregister()
[all …]
/linux/drivers/virtio/
A Dvirtio_pci_modern_dev.c277 mdev->common = vp_modern_map_capability(mdev, common, in vp_modern_probe()
281 if (!mdev->common) in vp_modern_probe()
283 mdev->isr = vp_modern_map_capability(mdev, isr, sizeof(u8), 1, in vp_modern_probe()
286 if (!mdev->isr) in vp_modern_probe()
310 mdev->notify_base = vp_modern_map_capability(mdev, notify, in vp_modern_probe()
325 mdev->device = vp_modern_map_capability(mdev, device, 0, 4, in vp_modern_probe()
329 if (!mdev->device) in vp_modern_probe()
336 if (mdev->notify_base) in vp_modern_probe()
355 if (mdev->device) in vp_modern_remove()
357 if (mdev->notify_base) in vp_modern_remove()
[all …]
/linux/drivers/media/mc/
A Dmc-device.c378 if (!mdev->ops || !mdev->ops->req_validate || !mdev->ops->req_queue) in media_device_request_alloc()
581 struct media_device *mdev = entity->graph_obj.mdev; in __media_device_unregister_entity() local
631 entity->graph_obj.mdev = mdev; in media_device_register_entity()
683 struct media_device *mdev = entity->graph_obj.mdev; in media_device_unregister_entity() local
861 strscpy(mdev->model, name, sizeof(mdev->model)); in media_device_pci_init()
863 strscpy(mdev->model, pci_name(pci_dev), sizeof(mdev->model)); in media_device_pci_init()
888 strscpy(mdev->model, board_name, sizeof(mdev->model)); in __media_device_usb_init()
890 strscpy(mdev->model, udev->product, sizeof(mdev->model)); in __media_device_usb_init()
892 strscpy(mdev->model, "unknown model", sizeof(mdev->model)); in __media_device_usb_init()
894 strscpy(mdev->serial, udev->serial, sizeof(mdev->serial)); in __media_device_usb_init()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/accel/
A Dtls.h41 int mlx5_ktls_create_key(struct mlx5_core_dev *mdev,
48 return MLX5_CAP_GEN(mdev, tls_tx); in mlx5_accel_is_ktls_tx()
53 return MLX5_CAP_GEN(mdev, tls_rx); in mlx5_accel_is_ktls_rx()
58 if (!mlx5_accel_is_ktls_tx(mdev) && in mlx5_accel_is_ktls_device()
59 !mlx5_accel_is_ktls_rx(mdev)) in mlx5_accel_is_ktls_device()
62 if (!MLX5_CAP_GEN(mdev, log_max_dek)) in mlx5_accel_is_ktls_device()
65 return MLX5_CAP_TLS(mdev, tls_1_2_aes_gcm_128); in mlx5_accel_is_ktls_device()
74 return MLX5_CAP_TLS(mdev, tls_1_2_aes_gcm_128); in mlx5e_ktls_type_check()
88 mlx5_ktls_create_key(struct mlx5_core_dev *mdev, in mlx5_ktls_create_key() argument
97 mlx5e_ktls_type_check(struct mlx5_core_dev *mdev, in mlx5e_ktls_type_check() argument
[all …]
A Dipsec.c41 void mlx5_accel_ipsec_init(struct mlx5_core_dev *mdev) in mlx5_accel_ipsec_init() argument
46 ipsec_ops = (mlx5_ipsec_offload_ops(mdev)) ? in mlx5_accel_ipsec_init()
47 mlx5_ipsec_offload_ops(mdev) : in mlx5_accel_ipsec_init()
48 mlx5_fpga_ipsec_ops(mdev); in mlx5_accel_ipsec_init()
51 mlx5_core_dbg(mdev, "IPsec ops is not supported\n"); in mlx5_accel_ipsec_init()
55 err = ipsec_ops->init(mdev); in mlx5_accel_ipsec_init()
61 mdev->ipsec_ops = ipsec_ops; in mlx5_accel_ipsec_init()
71 ipsec_ops->cleanup(mdev); in mlx5_accel_ipsec_cleanup()
81 return ipsec_ops->device_caps(mdev); in mlx5_accel_ipsec_device_caps()
92 return ipsec_ops->counters_count(mdev); in mlx5_accel_ipsec_counters_count()
[all …]
/linux/drivers/gpu/drm/mgag200/
A Dmgag200_drv.c69 switch (mdev->type) { in mgag200_regs_init()
246 mdev->model.g200.pclk_min, mdev->model.g200.pclk_max, in mgag200_g200_init_refclk()
273 if (IS_ERR(mdev)) in mgag200_device_create()
274 return mdev; in mgag200_device_create()
275 dev = &mdev->base; in mgag200_device_create()
279 mdev->flags = flags; in mgag200_device_create()
280 mdev->type = type; in mgag200_device_create()
286 if (mdev->type == G200_PCI || mdev->type == G200_AGP) in mgag200_device_create()
299 return mdev; in mgag200_device_create()
352 if (IS_ERR(mdev)) in mgag200_pci_probe()
[all …]
/linux/drivers/mailbox/
A Dmailbox-sti.c36 #define MBOX_BASE(mdev, inst) ((mdev)->base + ((inst) * 4)) argument
89 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_channel_is_enabled() local
122 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_enable_channel() local
137 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_disable_channel() local
152 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_clear_irq() local
254 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_tx_is_ready() local
277 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_send_data() local
370 chan_info->mdev = mdev; in sti_mbox_xlate()
421 mdev = devm_kzalloc(&pdev->dev, sizeof(*mdev), GFP_KERNEL); in sti_mbox_probe()
422 if (!mdev) in sti_mbox_probe()
[all …]
/linux/drivers/dma/qcom/
A Dhidma_mgmt_sys.c29 return mdev->name; \
36 tmp = mdev->name; \
37 mdev->name = val; \
40 mdev->name = tmp; \
80 tmp = mdev->weight[i]; in set_weight()
148 mdev = chattr->mdev; in show_values_channel()
167 mdev = chattr->mdev; in set_values_channel()
223 chattr->mdev = mdev; in create_sysfs_entry_channel()
241 required = sizeof(*mdev->chroots) * mdev->dma_channels; in hidma_mgmt_init_sys()
242 mdev->chroots = devm_kmalloc(&mdev->pdev->dev, required, GFP_KERNEL); in hidma_mgmt_init_sys()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/af/
A Dmbox.c27 mdev->msg_size = 0; in __otx2_mbox_reset()
28 mdev->rsp_size = 0; in __otx2_mbox_reset()
145 mdev->hwbase = mdev->mbase; in otx2_mbox_init()
191 if (mdev->num_msgs == mdev->msgs_acked) in otx2_mbox_wait_for_rsp()
206 if (mdev->num_msgs == mdev->msgs_acked) in otx2_mbox_busy_poll_for_rsp()
236 mdev->msg_size = 0; in otx2_mbox_msg_send()
237 mdev->rsp_size = 0; in otx2_mbox_msg_send()
279 mdev->num_msgs++; in otx2_mbox_alloc_msg_rsp()
281 msghdr = mdev->mbase + mbox->tx_start + msgs_offset + mdev->msg_size; in otx2_mbox_alloc_msg_rsp()
307 if (mdev->num_msgs != mdev->msgs_acked) in otx2_mbox_get_rsp()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dparams.c170 return MLX5_MPWRQ_DEF_LOG_STRIDE_SZ(mdev); in mlx5e_mpwqe_get_log_stride_size()
318 if (mlx5_fpga_is_ipsec_device(mdev)) in mlx5e_striding_rq_possible()
367 if (!slow_pci_heuristic(mdev) && in mlx5e_build_rq_params()
372 mlx5e_set_rq_type(mdev, params); in mlx5e_build_rq_params()
373 mlx5e_init_rq_type_params(mdev, params); in mlx5e_build_rq_params()
400 if (mlx5_fpga_is_ipsec_device(mdev)) in mlx5e_build_rq_frags_info()
513 mlx5e_build_common_cq_param(mdev, param); in mlx5e_build_rx_cq_param()
544 mlx5_core_err(mdev, in mlx5e_build_rq_param()
617 mlx5e_build_common_cq_param(mdev, param); in mlx5e_build_tx_cq_param()
642 !!MLX5_IPSEC_DEV(mdev); in mlx5e_build_sq_param()
[all …]
/linux/include/media/
A Dmedia-device.h206 mdev->entity_internal_idx_max + 1); in media_entity_enum_init()
223 void media_device_init(struct media_device *mdev);
233 void media_device_cleanup(struct media_device *mdev);
291 #define media_device_register(mdev) __media_device_register(mdev, THIS_MODULE) argument
395 #define media_device_for_each_intf(intf, mdev) \ argument
399 #define media_device_for_each_pad(pad, mdev) \ argument
403 #define media_device_for_each_link(link, mdev) \ argument
415 void media_device_pci_init(struct media_device *mdev,
457 struct media_device *mdev, in media_device_register_entity_notify() argument
463 struct media_device *mdev, in media_device_unregister_entity_notify() argument
[all …]
/linux/drivers/vfio/mdev/
A Dmdev_core.c95 device_del(&mdev->dev); in mdev_device_remove_common()
104 put_device(&mdev->dev); in mdev_device_remove_common()
111 if (mdev) in mdev_device_remove_cb()
251 kfree(mdev); in mdev_device_release()
271 mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); in mdev_device_create()
272 if (!mdev) { in mdev_device_create()
282 mdev->type = type; in mdev_device_create()
320 mdev->active = true; in mdev_device_create()
345 if (tmp == mdev) in mdev_device_remove()
349 if (tmp != mdev) { in mdev_device_remove()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/
A Ddriver.c13 struct mlx5_core_dev *mdev; in mlx5_sf_dev_probe() local
21 mdev = devlink_priv(devlink); in mlx5_sf_dev_probe()
22 mdev->device = &adev->dev; in mlx5_sf_dev_probe()
28 mdev->priv.adev_idx = adev->id; in mlx5_sf_dev_probe()
29 sf_dev->mdev = mdev; in mlx5_sf_dev_probe()
37 mdev->iseg = ioremap(mdev->iseg_base, sizeof(*mdev->iseg)); in mlx5_sf_dev_probe()
38 if (!mdev->iseg) { in mlx5_sf_dev_probe()
44 err = mlx5_init_one(mdev); in mlx5_sf_dev_probe()
53 iounmap(mdev->iseg); in mlx5_sf_dev_probe()
55 mlx5_mdev_uninit(mdev); in mlx5_sf_dev_probe()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7921/
A Dsdio.c116 struct mt76_dev *mdev; in mt7921s_probe() local
121 if (!mdev) in mt7921s_probe()
139 dev_dbg(mdev->dev, "ASIC revision: %04x\n", mdev->rev); in mt7921s_probe()
142 mdev->sdio.intr_data = devm_kmalloc(mdev->dev, in mt7921s_probe()
145 if (!mdev->sdio.intr_data) { in mt7921s_probe()
151 mdev->sdio.xmit_buf[i] = devm_kmalloc(mdev->dev, in mt7921s_probe()
154 if (!mdev->sdio.xmit_buf[i]) { in mt7921s_probe()
168 ret = mt76s_alloc_tx(mdev); in mt7921s_probe()
205 struct mt76_dev *mdev = &dev->mt76; in mt7921s_suspend() local
237 mt76_tx_status_check(mdev, true); in mt7921s_suspend()
[all …]

Completed in 55 milliseconds

12345678910>>...22