| /drivers/infiniband/hw/mthca/ |
| A D | mthca_main.c | 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() 418 mdev->limits.reserved_mtts = ALIGN(mdev->limits.reserved_mtts * mdev->limits.mtt_seg_size, in mthca_init_icm() 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() 1039 mthca_pd_free(mdev, &mdev->driver_pd); in __mthca_init_one() 1086 mthca_pd_free(mdev, &mdev->driver_pd); in __mthca_remove_one() [all …]
|
| A D | mthca_reset.c | 41 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 …]
|
| /drivers/gpu/drm/arm/display/komeda/ |
| A D | komeda_dev.c | 32 mdev->funcs->dump_register(mdev, sf); in komeda_register_show() 216 mdev->funcs = komeda_identify(mdev->reg_base, &mdev->chip); in komeda_dev_create() 228 mdev->funcs->init_format_table(mdev); in komeda_dev_create() 230 err = mdev->funcs->enum_resources(mdev); in komeda_dev_create() 250 mdev->iommu = iommu_get_domain_for_dev(mdev->dev); in komeda_dev_create() 318 mdev->funcs->enable_irq(mdev); in komeda_dev_resume() 320 if (mdev->iommu && mdev->funcs->connect_iommu) in komeda_dev_resume() 321 if (mdev->funcs->connect_iommu(mdev)) in komeda_dev_resume() 329 if (mdev->iommu && mdev->funcs->disconnect_iommu) in komeda_dev_suspend() 330 if (mdev->funcs->disconnect_iommu(mdev)) in komeda_dev_suspend() [all …]
|
| /drivers/sh/maple/ |
| A D | maple.c | 207 mdev->port, mdev->unit); in maple_allocq() 218 mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); in maple_alloc_dev() 219 if (!mdev) in maple_alloc_dev() 225 mdev->mq = maple_allocq(mdev); in maple_alloc_dev() 366 mdev->product_name, function, mdev->port, mdev->unit); in maple_attach_driver() 430 mdev->when = jiffies + mdev->interval; in setup_maple_commands() 550 if (!mdev->can_unload(mdev)) { in maple_response_none() 558 mdev->port, mdev->unit); in maple_response_none() 606 mdev->fileerr_handler(mdev, recvbuf); in maple_response_fileerr() 610 "file error 0x%X\n", mdev->port, mdev->unit, in maple_response_fileerr() [all …]
|
| /drivers/staging/most/video/ |
| A D | video.c | 92 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 419 mdev->vdev->lock = &mdev->lock; in comp_register_videodev() [all …]
|
| /drivers/most/ |
| A D | most_usb.c | 585 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 …]
|
| /drivers/net/ethernet/mellanox/mlx4/ |
| A D | en_clock.c | 43 struct mlx4_en_dev *mdev = in mlx4_en_read_clock() local 90 if (mdev->ptp_clock) { in mlx4_en_remove_timestamp() 92 mdev->ptp_clock = NULL; in mlx4_en_remove_timestamp() 139 mdev->cycles.mult = mult; in mlx4_en_phc_adjfine() 208 timecounter_init(&mdev->clock, &mdev->cycles, ns); in mlx4_en_phc_settime() 270 if (mdev->ptp_clock) in mlx4_en_init_timestamp() 275 memset(&mdev->cycles, 0, sizeof(mdev->cycles)); in mlx4_en_init_timestamp() 279 mdev->cycles.mult = in mlx4_en_init_timestamp() 281 mdev->nominal_c_mult = mdev->cycles.mult; in mlx4_en_init_timestamp() 284 timecounter_init(&mdev->clock, &mdev->cycles, in mlx4_en_init_timestamp() [all …]
|
| A D | en_main.c | 261 kfree(mdev); in mlx4_en_remove() 274 mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); in mlx4_en_probe() 275 if (!mdev) { in mlx4_en_probe() 296 mdev->dev = dev; in mlx4_en_probe() 305 err = mlx4_mr_alloc(mdev->dev, mdev->priv_pdn, 0, ~0ull, in mlx4_en_probe() 307 &mdev->mr); in mlx4_en_probe() 312 err = mlx4_mr_enable(mdev->dev, &mdev->mr); in mlx4_en_probe() 324 mdev->port_cnt++; in mlx4_en_probe() 353 if (mlx4_en_init_netdev(mdev, i, &mdev->profile.prof[i])) in mlx4_en_probe() 370 if (mdev->uar_map) in mlx4_en_probe() [all …]
|
| /drivers/mtd/maps/ |
| A D | vmu-flash.c | 66 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 …]
|
| /drivers/dma/ |
| A D | altera-msgdma.c | 347 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() 630 msgdma_free_desc_list(mdev, &mdev->active_list); in msgdma_free_descriptors() 631 msgdma_free_desc_list(mdev, &mdev->pending_list); in msgdma_free_descriptors() 632 msgdma_free_desc_list(mdev, &mdev->done_list); in msgdma_free_descriptors() 761 if (!mdev) in msgdma_dev_remove() 764 devm_free_irq(mdev->dev, mdev->irq, mdev); in msgdma_dev_remove() 818 mdev = devm_kzalloc(&pdev->dev, sizeof(*mdev), GFP_NOWAIT); in msgdma_probe() [all …]
|
| /drivers/net/ethernet/mellanox/mlx5/core/en/ |
| A D | params.c | 434 return MLX5_MPWRQ_DEF_LOG_STRIDE_SZ(mdev); in mlx5e_mpwqe_get_log_stride_size() 599 mlx5e_set_rq_type(mdev, params); in mlx5e_build_rq_params() 600 mlx5e_init_rq_type_params(mdev, params); in mlx5e_build_rq_params() 868 mlx5e_build_common_cq_param(mdev, param); in mlx5e_build_rx_cq_param() 902 mlx5_core_err(mdev, in mlx5e_build_rq_param() 928 mlx5e_choose_lro_timeout(mdev, in mlx5e_build_rq_param() 981 mlx5e_build_common_cq_param(mdev, param); in mlx5e_build_tx_cq_param() 1007 mlx5e_build_sq_param_common(mdev, param); in mlx5e_build_sq_param() 1023 mlx5e_build_common_cq_param(mdev, param); in mlx5e_build_ico_cq_param() 1193 if (mlx5e_is_ktls_rx(mdev)) in mlx5e_build_async_icosq_log_wq_sz() [all …]
|
| A D | params.h | 79 bool slow_pci_heuristic(struct mlx5_core_dev *mdev); 89 bool mlx5e_rx_is_linear_skb(struct mlx5_core_dev *mdev, 98 u32 mlx5e_shampo_hd_per_wqe(struct mlx5_core_dev *mdev, 101 u32 mlx5e_shampo_hd_per_wq(struct mlx5_core_dev *mdev, 112 u16 mlx5e_get_rq_headroom(struct mlx5_core_dev *mdev, 119 int mlx5e_build_rq_param(struct mlx5_core_dev *mdev, 127 void mlx5e_build_sq_param(struct mlx5_core_dev *mdev, 130 void mlx5e_build_tx_cq_param(struct mlx5_core_dev *mdev, 133 void mlx5e_build_xdpsq_param(struct mlx5_core_dev *mdev, 137 int mlx5e_build_channel_param(struct mlx5_core_dev *mdev, [all …]
|
| /drivers/net/ethernet/mellanox/mlx5/core/ |
| A D | en_common.c | 83 if (mlx5_lag_is_lacp_owner(mdev)) in mlx5e_create_tis() 91 mlx5_core_destroy_tis(mdev, tisn); in mlx5e_destroy_tis() 105 return MLX5_CAP_GEN(mdev, lag_tx_port_affinity) && mlx5e_get_num_lag_ports(mdev) > 1; in mlx5_lag_should_assign_affinity() 184 mdev->mlx5e_res.dek_priv = mlx5_crypto_dek_init(mdev); in mlx5e_create_mdev_resources() 188 mdev->mlx5e_res.dek_priv = NULL; in mlx5e_create_mdev_resources() 194 mlx5_free_bfreg(mdev, &res->bfreg); in mlx5e_create_mdev_resources() 200 mlx5_core_dealloc_pd(mdev, res->pdn); in mlx5e_create_mdev_resources() 209 mdev->mlx5e_res.dek_priv = NULL; in mlx5e_destroy_mdev_resources() 212 mlx5_free_bfreg(mdev, &res->bfreg); in mlx5e_destroy_mdev_resources() 215 mlx5_core_dealloc_pd(mdev, res->pdn); in mlx5e_destroy_mdev_resources() [all …]
|
| A D | wc.c | 23 struct mlx5_core_dev *mdev; member 65 cq->mdev = mdev; in mlx5_wc_create_cqwq() 73 struct mlx5_core_dev *mdev = cq->mdev; in create_wc_cq() local 313 struct mlx5_core_dev *mdev = cq->mdev; in mlx5_wc_poll_cq() local 356 err = mlx5_wc_create_sq(mdev, sq); in mlx5_core_test_wc() 378 mlx5_free_bfreg(mdev, &sq->bfreg); in mlx5_core_test_wc() 391 if (!MLX5_CAP_GEN(mdev, bf)) { in mlx5_wc_support_get() 408 if (mlx5_core_is_sf(mdev)) { in mlx5_wc_support_get() 409 parent = mdev->priv.parent_mdev; in mlx5_wc_support_get() 427 mlx5_core_test_wc(mdev); in mlx5_wc_support_get() [all …]
|
| /drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| A D | clock.c | 134 return (mlx5_is_real_time_rq(mdev) || mlx5_is_real_time_sq(mdev)); in mlx5_real_time_mode() 383 struct mlx5_core_dev *mdev = clock_state->mdev; in mlx5_pps_out() local 1090 struct mlx5_core_dev *mdev = clock_state->mdev; in mlx5_pps_event() local 1315 mdev->clock = NULL; in mlx5_clock_free() 1328 cpriv->mdev = mdev; in mlx5_clock_alloc() 1400 if (mdev == cpriv->mdev) in mlx5_shared_clock_unregister() 1449 mlx5_eq_notifier_register(mdev, &mdev->clock_state->pps_nb); in mlx5_clock_load() 1459 if (mdev == cpriv->mdev && mdev != cpriv->event_mdev) in mlx5_clock_load() 1494 mlx5_eq_notifier_unregister(mdev, &mdev->clock_state->pps_nb); in mlx5_clock_unload() 1516 clock_state->mdev = mdev; in mlx5_init_clock() [all …]
|
| /drivers/crypto/intel/qat/qat_common/ |
| A D | qat_mig_dev.c | 15 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 42 return GET_VFMIG_OPS(accel_dev)->init(mdev); in qat_vfmig_init() 62 int qat_vfmig_open(struct qat_mig_dev *mdev) in qat_vfmig_open() argument 74 GET_VFMIG_OPS(accel_dev)->close(mdev); in qat_vfmig_close() [all …]
|
| /drivers/virtio/ |
| A D | virtio_pci_modern_dev.c | 300 mdev->common = vp_modern_map_capability(mdev, common, in vp_modern_probe() 305 if (!mdev->common) in vp_modern_probe() 307 mdev->isr = vp_modern_map_capability(mdev, isr, sizeof(u8), 1, in vp_modern_probe() 310 if (!mdev->isr) in vp_modern_probe() 334 mdev->notify_base = vp_modern_map_capability(mdev, notify, in vp_modern_probe() 349 mdev->device = vp_modern_map_capability(mdev, device, 0, 4, in vp_modern_probe() 353 if (!mdev->device) in vp_modern_probe() 360 if (mdev->notify_base) in vp_modern_probe() 380 if (mdev->device) in vp_modern_remove() 382 if (mdev->notify_base) in vp_modern_remove() [all …]
|
| /drivers/net/ethernet/mellanox/mlx5/core/sf/dev/ |
| A D | driver.c | 37 mdev->device = &adev->dev; in mlx5_sf_dev_probe() 44 sf_dev->mdev = mdev; in mlx5_sf_dev_probe() 56 mdev->iseg = ioremap(mdev->iseg_base, sizeof(*mdev->iseg)); in mlx5_sf_dev_probe() 57 if (!mdev->iseg) { in mlx5_sf_dev_probe() 83 iounmap(mdev->iseg); in mlx5_sf_dev_probe() 85 mlx5_mdev_uninit(mdev); in mlx5_sf_dev_probe() 94 struct mlx5_core_dev *mdev = sf_dev->mdev; in mlx5_sf_dev_remove() local 103 mlx5_uninit_one(mdev); in mlx5_sf_dev_remove() 104 iounmap(mdev->iseg); in mlx5_sf_dev_remove() 105 mlx5_mdev_uninit(mdev); in mlx5_sf_dev_remove() [all …]
|
| /drivers/media/mc/ |
| A D | mc-device.c | 377 if (!mdev->ops || !mdev->ops->req_validate || !mdev->ops->req_queue) in media_device_request_alloc() 577 struct media_device *mdev = entity->graph_obj.mdev; in __media_device_unregister_entity() local 620 entity->graph_obj.mdev = mdev; in media_device_register_entity() 671 struct media_device *mdev = entity->graph_obj.mdev; in media_device_unregister_entity() local 697 media_set_bus_info(mdev->bus_info, sizeof(mdev->bus_info), in media_device_init() 842 strscpy(mdev->model, name, sizeof(mdev->model)); in media_device_pci_init() 869 strscpy(mdev->model, board_name, sizeof(mdev->model)); in __media_device_usb_init() 871 strscpy(mdev->model, udev->product, sizeof(mdev->model)); in __media_device_usb_init() 873 strscpy(mdev->model, "unknown model", sizeof(mdev->model)); in __media_device_usb_init() 875 strscpy(mdev->serial, udev->serial, sizeof(mdev->serial)); in __media_device_usb_init() [all …]
|
| /drivers/mailbox/ |
| A D | mailbox-sti.c | 36 #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() 419 mdev = devm_kzalloc(&pdev->dev, sizeof(*mdev), GFP_KERNEL); in sti_mbox_probe() 420 if (!mdev) in sti_mbox_probe() [all …]
|
| /drivers/dma/qcom/ |
| A D | hidma_mgmt_sys.c | 29 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 …]
|
| /drivers/net/wireless/mediatek/mt76/mt7921/ |
| A D | sdio.c | 127 struct mt76_dev *mdev; in mt7921s_probe() local 137 if (!mdev) in mt7921s_probe() 153 atomic_set(&mdev->bus_hung, false); in mt7921s_probe() 157 dev_dbg(mdev->dev, "ASIC revision: %04x\n", mdev->rev); in mt7921s_probe() 160 mdev->sdio.intr_data = devm_kmalloc(mdev->dev, in mt7921s_probe() 163 if (!mdev->sdio.intr_data) { in mt7921s_probe() 176 ret = mt76s_alloc_tx(mdev); in mt7921s_probe() 212 struct mt76_dev *mdev = &dev->mt76; in mt7921s_suspend() local 238 mt76_tx_status_check(mdev, true); in mt7921s_suspend() 266 mt76_worker_enable(&mdev->tx_worker); in mt7921s_suspend() [all …]
|
| /drivers/vdpa/virtio_pci/ |
| A D | vp_vdpa.c | 61 return vp_vdpa->mdev; in vdpa_to_mdev() 66 return vp_vdpa->mdev; in vp_vdpa_to_mdev() 389 return mdev->id.device; in vp_vdpa_get_device_id() 506 struct virtio_pci_modern_device *mdev = vp_vdpa_mgtdev->mdev; in vp_vdpa_dev_add() local 525 vp_vdpa->mdev = mdev; in vp_vdpa_dev_add() 619 if (!mdev) { in vp_vdpa_probe() 634 vp_vdpa_mgtdev->mdev = mdev; in vp_vdpa_probe() 635 mdev->pci_dev = pdev; in vp_vdpa_probe() 670 kfree(mdev); in vp_vdpa_probe() 681 mdev = vp_vdpa_mgtdev->mdev; in vp_vdpa_remove() [all …]
|
| /drivers/vfio/mdev/ |
| A D | mdev_core.c | 32 device_del(&mdev->dev); in mdev_device_remove_common() 35 put_device(&mdev->dev); in mdev_device_remove_common() 116 list_del(&mdev->next); in mdev_device_release() 125 kfree(mdev); in mdev_device_release() 157 mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); in mdev_device_create() 158 if (!mdev) { in mdev_device_create() 168 mdev->type = type; in mdev_device_create() 198 mdev->active = true; in mdev_device_create() 220 if (tmp == mdev) in mdev_device_remove() 224 if (tmp != mdev) { in mdev_device_remove() [all …]
|
| /drivers/net/ethernet/marvell/octeontx2/af/ |
| A D | mbox.c | 30 mdev->msg_size = 0; in __otx2_mbox_reset() 31 mdev->rsp_size = 0; in __otx2_mbox_reset() 239 mdev->hwbase = mdev->mbase; in otx2_mbox_init() 287 if (mdev->num_msgs == mdev->msgs_acked) in otx2_mbox_wait_for_rsp() 302 if (mdev->num_msgs == mdev->msgs_acked) in otx2_mbox_busy_poll_for_rsp() 337 mdev->msg_size = 0; in otx2_mbox_msg_send_data() 338 mdev->rsp_size = 0; in otx2_mbox_msg_send_data() 421 mdev->num_msgs++; in otx2_mbox_alloc_msg_rsp() 423 msghdr = mdev->mbase + mbox->tx_start + msgs_offset + mdev->msg_size; in otx2_mbox_alloc_msg_rsp() 454 if (mdev->num_msgs != mdev->msgs_acked) in otx2_mbox_get_rsp() [all …]
|