/openbmc/linux/drivers/infiniband/hw/mthca/ |
H A D | mthca_main.c | 221 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() 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 …]
|
H 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 …]
|
/openbmc/linux/drivers/gpu/drm/arm/display/komeda/ |
H A D | komeda_dev.c | 34 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 …]
|
/openbmc/linux/drivers/sh/maple/ |
H A D | maple.c | 206 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 …]
|
/openbmc/linux/drivers/staging/most/video/ |
H 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 …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H 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 …]
|
H 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 …]
|
/openbmc/linux/sound/core/seq/oss/ |
H A D | seq_oss_midi.c | 102 if (mdev) in get_mdev() 121 if (mdev && mdev->client == client && mdev->port == port) { in find_slot() 157 if (mdev) { in snd_seq_oss_midi_check_new_port() 166 mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); in snd_seq_oss_midi_check_new_port() 167 if (!mdev) in snd_seq_oss_midi_check_new_port() 179 strscpy(mdev->name, pinfo->name, sizeof(mdev->name)); in snd_seq_oss_midi_check_new_port() 208 midi_devs[mdev->seq_device] = mdev; in snd_seq_oss_midi_check_new_port() 330 if (!mdev) in snd_seq_oss_midi_open() 335 if (mdev->opened && mdev->devinfo != dp) { in snd_seq_oss_midi_open() 405 if (!mdev->opened || mdev->devinfo != dp) in snd_seq_oss_midi_close() [all …]
|
/openbmc/linux/drivers/dma/ |
H 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() 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 …]
|
/openbmc/linux/drivers/most/ |
H 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 …]
|
/openbmc/linux/drivers/mtd/maps/ |
H 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 …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/ |
H A D | driver.c | 14 struct mlx5_core_dev *mdev; in mlx5_sf_dev_probe() local 23 mdev->device = &adev->dev; in mlx5_sf_dev_probe() 30 sf_dev->mdev = mdev; in mlx5_sf_dev_probe() 42 mdev->iseg = ioremap(mdev->iseg_base, sizeof(*mdev->iseg)); in mlx5_sf_dev_probe() 43 if (!mdev->iseg) { in mlx5_sf_dev_probe() 61 iounmap(mdev->iseg); in mlx5_sf_dev_probe() 63 mlx5_mdev_uninit(mdev); in mlx5_sf_dev_probe() 72 struct mlx5_core_dev *mdev = sf_dev->mdev; in mlx5_sf_dev_remove() local 81 mlx5_uninit_one(mdev); in mlx5_sf_dev_remove() 82 iounmap(mdev->iseg); in mlx5_sf_dev_remove() [all …]
|
/openbmc/linux/net/mctp/ |
H A D | device.c | 38 if (mdev) in __mctp_dev_get() 41 return mdev; in __mctp_dev_get() 223 if (!mdev) in mctp_rtm_newaddr() 236 memcpy(tmp_addrs, mdev->addrs, mdev->num_addrs); in mctp_rtm_newaddr() 286 if (!mdev) in mctp_rtm_deladdr() 315 if (mdev && refcount_dec_and_test(&mdev->refs)) { in mctp_dev_put() 346 mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); in mctp_add_dev() 347 if (!mdev) in mctp_add_dev() 370 if (!mdev) in mctp_fill_link_af() 385 if (!mdev) in mctp_get_link_af_size() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | params.c | 427 return MLX5_MPWRQ_DEF_LOG_STRIDE_SZ(mdev); in mlx5e_mpwqe_get_log_stride_size() 663 mlx5e_set_rq_type(mdev, params); in mlx5e_build_rq_params() 664 mlx5e_init_rq_type_params(mdev, params); in mlx5e_build_rq_params() 930 mlx5e_build_common_cq_param(mdev, param); in mlx5e_build_rx_cq_param() 964 mlx5_core_err(mdev, in mlx5e_build_rq_param() 1041 mlx5e_build_common_cq_param(mdev, param); in mlx5e_build_tx_cq_param() 1067 mlx5e_build_sq_param_common(mdev, param); in mlx5e_build_sq_param() 1083 mlx5e_build_common_cq_param(mdev, param); in mlx5e_build_ico_cq_param() 1239 if (mlx5e_is_ktls_rx(mdev)) in mlx5e_build_async_icosq_log_wq_sz() 1252 mlx5e_build_sq_param_common(mdev, param); in mlx5e_build_icosq_param() [all …]
|
H A D | params.h | 73 u32 mlx5e_mpwrq_max_num_entries(struct mlx5_core_dev *mdev, 85 bool slow_pci_heuristic(struct mlx5_core_dev *mdev); 95 bool mlx5e_rx_is_linear_skb(struct mlx5_core_dev *mdev, 110 u32 mlx5e_shampo_hd_per_wqe(struct mlx5_core_dev *mdev, 113 u32 mlx5e_shampo_hd_per_wq(struct mlx5_core_dev *mdev, 123 u16 mlx5e_get_rq_headroom(struct mlx5_core_dev *mdev, 130 int mlx5e_build_rq_param(struct mlx5_core_dev *mdev, 140 void mlx5e_build_sq_param(struct mlx5_core_dev *mdev, 143 void mlx5e_build_tx_cq_param(struct mlx5_core_dev *mdev, 146 void mlx5e_build_xdpsq_param(struct mlx5_core_dev *mdev, [all …]
|
/openbmc/linux/drivers/virtio/ |
H A D | virtio_pci_modern_dev.c | 292 mdev->common = vp_modern_map_capability(mdev, common, in vp_modern_probe() 296 if (!mdev->common) in vp_modern_probe() 298 mdev->isr = vp_modern_map_capability(mdev, isr, sizeof(u8), 1, in vp_modern_probe() 301 if (!mdev->isr) in vp_modern_probe() 325 mdev->notify_base = vp_modern_map_capability(mdev, notify, in vp_modern_probe() 340 mdev->device = vp_modern_map_capability(mdev, device, 0, 4, in vp_modern_probe() 344 if (!mdev->device) in vp_modern_probe() 351 if (mdev->notify_base) in vp_modern_probe() 371 if (mdev->device) in vp_modern_remove() 373 if (mdev->notify_base) in vp_modern_remove() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_common.c | 82 err = mlx5_core_alloc_pd(mdev, &res->pdn); in mlx5e_create_mdev_resources() 109 mdev->mlx5e_res.dek_priv = mlx5_crypto_dek_init(mdev); in mlx5e_create_mdev_resources() 110 if (IS_ERR(mdev->mlx5e_res.dek_priv)) { in mlx5e_create_mdev_resources() 113 mdev->mlx5e_res.dek_priv = NULL; in mlx5e_create_mdev_resources() 119 mlx5_core_destroy_mkey(mdev, res->mkey); in mlx5e_create_mdev_resources() 123 mlx5_core_dealloc_pd(mdev, res->pdn); in mlx5e_create_mdev_resources() 132 mdev->mlx5e_res.dek_priv = NULL; in mlx5e_destroy_mdev_resources() 133 mlx5_free_bfreg(mdev, &res->bfreg); in mlx5e_destroy_mdev_resources() 134 mlx5_core_destroy_mkey(mdev, res->mkey); in mlx5e_destroy_mdev_resources() 136 mlx5_core_dealloc_pd(mdev, res->pdn); in mlx5e_destroy_mdev_resources() [all …]
|
/openbmc/linux/drivers/media/mc/ |
H A D | mc-device.c | 378 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 624 entity->graph_obj.mdev = mdev; in media_device_register_entity() 675 struct media_device *mdev = entity->graph_obj.mdev; in media_device_unregister_entity() local 701 media_set_bus_info(mdev->bus_info, sizeof(mdev->bus_info), in media_device_init() 846 strscpy(mdev->model, name, sizeof(mdev->model)); in media_device_pci_init() 873 strscpy(mdev->model, board_name, sizeof(mdev->model)); in __media_device_usb_init() 875 strscpy(mdev->model, udev->product, sizeof(mdev->model)); in __media_device_usb_init() 877 strscpy(mdev->model, "unknown model", sizeof(mdev->model)); in __media_device_usb_init() 879 strscpy(mdev->serial, udev->serial, sizeof(mdev->serial)); in __media_device_usb_init() [all …]
|
/openbmc/linux/drivers/dma/qcom/ |
H 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 …]
|
/openbmc/linux/drivers/mailbox/ |
H 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() 421 mdev = devm_kzalloc(&pdev->dev, sizeof(*mdev), GFP_KERNEL); in sti_mbox_probe() 422 if (!mdev) in sti_mbox_probe() [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | mbox.c | 27 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() 194 if (mdev->num_msgs == mdev->msgs_acked) in otx2_mbox_wait_for_rsp() 209 if (mdev->num_msgs == mdev->msgs_acked) in otx2_mbox_busy_poll_for_rsp() 240 mdev->msg_size = 0; in otx2_mbox_msg_send_data() 241 mdev->rsp_size = 0; in otx2_mbox_msg_send_data() 321 mdev->num_msgs++; in otx2_mbox_alloc_msg_rsp() 323 msghdr = mdev->mbase + mbox->tx_start + msgs_offset + mdev->msg_size; in otx2_mbox_alloc_msg_rsp() 349 if (mdev->num_msgs != mdev->msgs_acked) in otx2_mbox_get_rsp() [all …]
|
/openbmc/linux/include/media/ |
H A D | media-device.h | 217 void media_device_init(struct media_device *mdev); 227 void media_device_cleanup(struct media_device *mdev); 282 #define media_device_register(mdev) __media_device_register(mdev, THIS_MODULE) argument 382 #define media_device_for_each_entity(entity, mdev) \ argument 386 #define media_device_for_each_intf(intf, mdev) \ argument 390 #define media_device_for_each_pad(pad, mdev) \ argument 394 #define media_device_for_each_link(link, mdev) \ argument 406 void media_device_pci_init(struct media_device *mdev, 448 struct media_device *mdev, in media_device_register_entity_notify() argument 453 struct media_device *mdev, in media_device_unregister_entity_notify() argument [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7921/ |
H A D | sdio.c | 126 struct mt76_dev *mdev; in mt7921s_probe() local 136 if (!mdev) in mt7921s_probe() 154 dev_dbg(mdev->dev, "ASIC revision: %04x\n", mdev->rev); in mt7921s_probe() 157 mdev->sdio.intr_data = devm_kmalloc(mdev->dev, in mt7921s_probe() 160 if (!mdev->sdio.intr_data) { in mt7921s_probe() 173 ret = mt76s_alloc_tx(mdev); in mt7921s_probe() 209 struct mt76_dev *mdev = &dev->mt76; in mt7921s_suspend() local 233 mt76_tx_status_check(mdev, true); in mt7921s_suspend() 261 mt76_worker_enable(&mdev->tx_worker); in mt7921s_suspend() 283 struct mt76_dev *mdev = &dev->mt76; in mt7921s_resume() local [all …]
|
/openbmc/linux/drivers/vfio/mdev/ |
H 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 …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt76x2/ |
H A D | pci.c | 37 struct mt76_dev *mdev; in mt76x2e_probe() local 56 if (!mdev) in mt76x2e_probe() 64 dev_info(mdev->dev, "ASIC revision: %08x\n", mdev->rev); in mt76x2e_probe() 104 mt76_unregister_device(mdev); in mt76x2e_remove() 106 mt76_free_device(mdev); in mt76x2e_remove() 115 napi_disable(&mdev->tx_napi); in mt76x2e_suspend() 119 mt76_for_each_q_rx(mdev, i) in mt76x2e_suspend() 131 mt76_for_each_q_rx(mdev, i) in mt76x2e_suspend() 132 napi_enable(&mdev->napi[i]); in mt76x2e_suspend() 133 napi_enable(&mdev->tx_napi); in mt76x2e_suspend() [all …]
|