Searched refs:mdev (Results 76 - 100 of 614) sorted by relevance

1234567891011>>

/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_dcbnl.c60 #define MLX5_DSCP_SUPPORTED(mdev) (MLX5_CAP_GEN(mdev, qcam_reg) && \
61 MLX5_CAP_QCAM_REG(mdev, qpts) && \
62 MLX5_CAP_QCAM_REG(mdev, qpdpm))
72 struct mlx5_core_dev *mdev = priv->mdev; local
76 err = mlx5_query_port_dcbx_param(mdev, param);
84 return mlx5_set_port_dcbx_param(mdev, param);
92 if (!MLX5_CAP_GEN(priv->mdev, dcbx))
110 struct mlx5_core_dev *mdev local
253 struct mlx5_core_dev *mdev = priv->mdev; local
346 struct mlx5_core_dev *mdev = priv->mdev; local
366 struct mlx5_core_dev *mdev = priv->mdev; local
552 struct mlx5_core_dev *mdev = priv->mdev; local
587 struct mlx5_core_dev *mdev = priv->mdev; local
625 struct mlx5_core_dev *mdev = priv->mdev; local
738 struct mlx5_core_dev *mdev = priv->mdev; local
828 struct mlx5_core_dev *mdev = priv->mdev; local
871 struct mlx5_core_dev *mdev = priv->mdev; local
910 struct mlx5_core_dev *mdev = priv->mdev; local
941 struct mlx5_core_dev *mdev = priv->mdev; local
1026 struct mlx5_core_dev *mdev = priv->mdev; local
1121 mlx5e_params_calc_trust_tx_min_inline_mode(struct mlx5_core_dev *mdev, struct mlx5e_params *params, u8 trust_state) argument
1183 struct mlx5_core_dev *mdev = priv->mdev; local
1221 struct mlx5_core_dev *mdev = priv->mdev; local
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Daso.c18 struct mlx5_core_dev *mdev; member in struct:mlx5_aso_cq
45 static int mlx5_aso_alloc_cq(struct mlx5_core_dev *mdev, int numa_node, argument
56 err = mlx5_cqwq_create(mdev, &param, cqc_data, &cq->wq, &cq->wq_ctrl);
70 cq->mdev = mdev;
78 struct mlx5_core_dev *mdev = cq->mdev; local
84 err = mlx5_comp_eqn_get(mdev, 0, &eqn);
103 MLX5_SET(cqc, cqc, uar_page, mdev->priv.uar->index);
108 err = mlx5_core_create_cq(mdev, mc
121 mlx5_aso_create_cq(struct mlx5_core_dev *mdev, int numa_node, struct mlx5_aso_cq *cq) argument
158 mlx5_aso_alloc_sq(struct mlx5_core_dev *mdev, int numa_node, void *sqc_data, struct mlx5_aso *sq) argument
178 create_aso_sq(struct mlx5_core_dev *mdev, int pdn, void *sqc_data, struct mlx5_aso *sq) argument
221 mlx5_aso_set_sq_rdy(struct mlx5_core_dev *mdev, u32 sqn) argument
242 mlx5_aso_create_sq_rdy(struct mlx5_core_dev *mdev, u32 pdn, void *sqc_data, struct mlx5_aso *sq) argument
269 mlx5_aso_create_sq(struct mlx5_core_dev *mdev, int numa_node, u32 pdn, struct mlx5_aso *sq) argument
308 mlx5_aso_create(struct mlx5_core_dev *mdev, u32 pdn) argument
[all...]
H A Dgeneve.c9 struct mlx5_core_dev *mdev; member in struct:mlx5_geneve
17 static int mlx5_geneve_tlv_option_create(struct mlx5_core_dev *mdev, argument
29 general_obj_types = MLX5_CAP_GEN_64(mdev, general_obj_types);
43 err = mlx5_cmd_exec(mdev, in, sizeof(in), out, sizeof(out));
51 static void mlx5_geneve_tlv_option_destroy(struct mlx5_core_dev *mdev, u16 obj_id) argument
60 mlx5_cmd_exec(mdev, in, sizeof(in), out, sizeof(out));
82 mlx5_core_warn(geneve->mdev,
93 res = mlx5_geneve_tlv_option_create(geneve->mdev,
98 mlx5_core_warn(geneve->mdev,
126 mlx5_geneve_tlv_option_destroy(geneve->mdev, genev
135 mlx5_geneve_create(struct mlx5_core_dev *mdev) argument
[all...]
/linux-master/drivers/media/v4l2-core/
H A Dv4l2-mc.c22 int v4l2_mc_create_media_graph(struct media_device *mdev) argument
33 if (!mdev)
36 media_device_for_each_entity(entity, mdev) {
67 dev_warn(mdev->dev, "Didn't find any I/O entity\n");
80 dev_warn(mdev->dev, "Didn't find a MEDIA_ENT_F_IO_V4L\n");
84 media_device_for_each_entity(entity, mdev) {
91 dev_warn(mdev->dev, "Failed to create a sensor link\n");
101 dev_warn(mdev->dev, "Decoder not found\n");
115 dev_warn(mdev->dev, "Couldn't get tuner and/or PLL pad(s): (%d, %d)\n",
123 dev_warn(mdev
283 struct media_device *mdev = vdev->entity.graph_obj.mdev; local
303 struct media_device *mdev = vdev->entity.graph_obj.mdev; local
546 struct media_device *mdev = entity->graph_obj.mdev; local
[all...]
/linux-master/include/media/
H A Dmedia-dev-allocator.h44 * @mdev: struct &media_device pointer
52 void media_device_delete(struct media_device *mdev, const char *module_name,
60 struct media_device *mdev, const char *module_name,
59 media_device_delete( struct media_device *mdev, const char *module_name, struct module *owner) argument
/linux-master/drivers/vfio/mdev/
H A Dmdev_private.h27 int mdev_create_sysfs_files(struct mdev_device *mdev);
28 void mdev_remove_sysfs_files(struct mdev_device *mdev);
/linux-master/drivers/infiniband/hw/mana/
H A Dwq.c12 struct mana_ib_dev *mdev = local
23 ibdev_dbg(&mdev->ib_dev,
32 ibdev_dbg(&mdev->ib_dev, "ucmd wq_buf_addr 0x%llx\n", ucmd.wq_buf_addr);
34 err = mana_ib_create_queue(mdev, ucmd.wq_buf_addr, ucmd.wq_buf_size, &wq->queue);
36 ibdev_dbg(&mdev->ib_dev,
63 struct mana_ib_dev *mdev; local
65 mdev = container_of(ib_dev, struct mana_ib_dev, ib_dev);
67 mana_ib_destroy_queue(mdev, &wq->queue);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dmod_hdr.h31 char *mlx5e_mod_hdr_alloc(struct mlx5_core_dev *mdev, int namespace,
37 mlx5e_mod_hdr_attach(struct mlx5_core_dev *mdev,
41 void mlx5e_mod_hdr_detach(struct mlx5_core_dev *mdev,
49 static inline int mlx5e_mod_hdr_max_actions(struct mlx5_core_dev *mdev, int namespace) argument
52 return MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, max_modify_header_actions);
54 return MLX5_CAP_FLOWTABLE_NIC_RX(mdev, max_modify_header_actions);
/linux-master/include/linux/mlx5/
H A Dfs_helpers.h41 static inline bool _mlx5_fs_is_outer_ipv_flow(struct mlx5_core_dev *mdev, argument
45 int match_ipv = MLX5_CAP_FLOWTABLE_NIC_RX(mdev,
79 mlx5_fs_is_outer_ipv4_flow(struct mlx5_core_dev *mdev, const u32 *match_c, argument
82 return _mlx5_fs_is_outer_ipv_flow(mdev, match_c, match_v,
87 mlx5_fs_is_outer_ipv6_flow(struct mlx5_core_dev *mdev, const u32 *match_c, argument
90 return _mlx5_fs_is_outer_ipv_flow(mdev, match_c, match_v,
H A Ddevice.h1261 #define MLX5_CAP_GEN(mdev, cap) \
1262 MLX5_GET(cmd_hca_cap, mdev->caps.hca[MLX5_CAP_GENERAL]->cur, cap)
1264 #define MLX5_CAP_GEN_64(mdev, cap) \
1265 MLX5_GET64(cmd_hca_cap, mdev->caps.hca[MLX5_CAP_GENERAL]->cur, cap)
1267 #define MLX5_CAP_GEN_MAX(mdev, cap) \
1268 MLX5_GET(cmd_hca_cap, mdev->caps.hca[MLX5_CAP_GENERAL]->max, cap)
1270 #define MLX5_CAP_GEN_2(mdev, cap) \
1271 MLX5_GET(cmd_hca_cap_2, mdev->caps.hca[MLX5_CAP_GENERAL_2]->cur, cap)
1273 #define MLX5_CAP_GEN_2_64(mdev, cap) \
1274 MLX5_GET64(cmd_hca_cap_2, mdev
[all...]
/linux-master/drivers/mcb/
H A Dmcb-parse.c42 struct mcb_device *mdev; local
50 mdev = mcb_alloc_dev(bus);
51 if (!mdev)
59 mdev->id = GDD_DEV(reg1);
60 mdev->rev = GDD_REV(reg1);
61 mdev->var = GDD_VAR(reg1);
62 mdev->bar = GDD_BAR(reg2);
63 mdev->group = GDD_GRP(reg2);
64 mdev->inst = GDD_INS(reg2);
71 if (mdev
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_offload.c17 u32 mlx5_ipsec_device_caps(struct mlx5_core_dev *mdev) argument
21 if (!MLX5_CAP_GEN(mdev, ipsec_offload))
24 if (!MLX5_CAP_GEN(mdev, log_max_dek))
27 if (!(MLX5_CAP_GEN_64(mdev, general_obj_types) &
31 if (!MLX5_CAP_FLOWTABLE_NIC_TX(mdev, ipsec_encrypt) ||
32 !MLX5_CAP_FLOWTABLE_NIC_RX(mdev, ipsec_decrypt))
35 if (!MLX5_CAP_IPSEC(mdev, ipsec_crypto_esp_aes_gcm_128_encrypt) ||
36 !MLX5_CAP_IPSEC(mdev, ipsec_crypto_esp_aes_gcm_128_decrypt))
39 if (MLX5_CAP_IPSEC(mdev, ipsec_crypto_offload) &&
40 MLX5_CAP_ETH(mdev, insert_traile
142 struct mlx5_core_dev *mdev = mlx5e_ipsec_sa2dev(sa_entry); local
188 struct mlx5_core_dev *mdev = mlx5e_ipsec_sa2dev(sa_entry); local
204 struct mlx5_core_dev *mdev = mlx5e_ipsec_sa2dev(sa_entry); local
232 struct mlx5_core_dev *mdev = mlx5e_ipsec_sa2dev(sa_entry); local
241 struct mlx5_core_dev *mdev = mlx5e_ipsec_sa2dev(sa_entry); local
513 struct mlx5_core_dev *mdev = ipsec->mdev; local
555 struct mlx5_core_dev *mdev = ipsec->mdev; local
593 struct mlx5_core_dev *mdev = ipsec->mdev; local
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/mt76x0/
H A Dpci.c171 struct mt76_dev *mdev; local
190 mdev = mt76_alloc_device(&pdev->dev, sizeof(*dev), &mt76x0e_ops,
192 if (!mdev)
195 dev = container_of(mdev, struct mt76x02_dev, mt76);
198 mt76_mmio_init(mdev, pcim_iomap_table(pdev)[0]);
200 mdev->rev = mt76_rr(dev, MT_ASIC_VERSION);
201 dev_info(mdev->dev, "ASIC revision: %08x\n", mdev->rev);
205 ret = devm_request_irq(mdev->dev, pdev->irq, mt76x02_irq_handler,
235 struct mt76_dev *mdev local
246 struct mt76_dev *mdev = pci_get_drvdata(pdev); local
272 struct mt76_dev *mdev = pci_get_drvdata(pdev); local
[all...]
/linux-master/drivers/gpu/drm/arm/display/komeda/
H A Dkomeda_drv.c19 struct komeda_dev *mdev; member in struct:komeda_drv
27 return mdrv ? mdrv->mdev : NULL;
40 komeda_dev_suspend(mdrv->mdev);
42 komeda_dev_destroy(mdrv->mdev);
66 mdrv->mdev = komeda_dev_create(dev);
67 if (IS_ERR(mdrv->mdev)) {
68 err = PTR_ERR(mdrv->mdev);
74 komeda_dev_resume(mdrv->mdev);
76 mdrv->kms = komeda_kms_attach(mdrv->mdev);
91 komeda_dev_suspend(mdrv->mdev);
[all...]
/linux-master/drivers/gpu/drm/mgag200/
H A Dmgag200_drv.c126 resource_size_t mgag200_device_probe_vram(struct mga_device *mdev) argument
128 return mgag200_probe_vram(mdev->vram, resource_size(mdev->vram_res));
131 int mgag200_device_preinit(struct mga_device *mdev) argument
133 struct drm_device *dev = &mdev->base;
148 mdev->rmmio_res = res;
150 mdev->rmmio = pcim_iomap(pdev, 1, 0);
151 if (!mdev->rmmio)
164 mdev->vram_res = res;
166 mdev
176 mgag200_device_init(struct mga_device *mdev, const struct mgag200_device_info *info, const struct mgag200_device_funcs *funcs) argument
233 struct mga_device *mdev; local
[all...]
H A Dmgag200_g200eh3.c101 static int mgag200_g200eh3_pipeline_init(struct mga_device *mdev) argument
103 struct drm_device *dev = &mdev->base;
104 struct drm_plane *primary_plane = &mdev->primary_plane;
105 struct drm_crtc *crtc = &mdev->crtc;
106 struct drm_encoder *encoder = &mdev->encoder;
107 struct mga_i2c_chan *i2c = &mdev->i2c;
108 struct drm_connector *connector = &mdev->connector;
144 ret = mgag200_i2c_init(mdev, i2c);
184 struct mga_device *mdev; local
189 mdev
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx4/
H A Den_resources.c44 struct mlx4_en_dev *mdev = priv->mdev; local
49 context->pd = cpu_to_be32(mdev->priv_pdn);
55 if (mdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_PORT_REMAP)
61 context->usr_page = cpu_to_be32(mlx4_to_hw_uar_index(mdev->dev,
62 mdev->priv_uar.index));
75 (mdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_LB_SRC_CHK) &&
77 MLX4_SINK_COUNTER_INDEX(mdev->dev)) {
88 (mdev->dev->caps.tunnel_offload_mode == MLX4_TUNNEL_OFFLOAD_MODE_VXLAN)) {
104 ret = mlx4_update_qp(priv->mdev
[all...]
/linux-master/drivers/infiniband/hw/mlx5/
H A Dmain.c109 int port_type_cap = MLX5_CAP_GEN(dev->mdev, port_type);
170 struct mlx5_core_dev *mdev; local
174 mdev = mlx5_ib_get_native_port_mdev(ibdev, port_num, NULL);
175 if (!mdev)
184 if (ndev->dev.parent == mdev->device)
200 struct net_device *lag_ndev = mlx5_lag_get_roce_netdev(mdev);
253 struct mlx5_core_dev *mdev; local
255 mdev = mlx5_ib_get_native_port_mdev(ibdev, port_num, NULL);
256 if (!mdev)
259 ndev = mlx5_lag_get_roce_netdev(mdev);
281 struct mlx5_core_dev *mdev = NULL; local
480 struct mlx5_core_dev *mdev; local
707 struct mlx5_core_dev *mdev = dev->mdev; local
739 struct mlx5_core_dev *mdev = dev->mdev; local
820 fill_esw_mgr_reg_c0(struct mlx5_core_dev *mdev, struct mlx5_ib_query_device_resp *resp) argument
837 struct mlx5_core_dev *mdev = dev->mdev; local
1334 struct mlx5_core_dev *mdev = dev->mdev; local
1423 struct mlx5_core_dev *mdev; local
1463 struct mlx5_core_dev *mdev = dev->mdev; local
1482 struct mlx5_core_dev *mdev; local
1553 struct mlx5_core_dev *mdev; local
2413 struct mlx5_ib_dev *mdev = to_mdev(pd->device); local
3014 struct mlx5_core_dev *mdev = dev->mdev; local
3045 struct mlx5_core_dev *mdev = dev->mdev; local
3710 struct mlx5_core_dev *mdev = dev->mdev; local
3771 struct mlx5_ib_dev *mdev = to_mdev(dev); local
3879 struct mlx5_core_dev *mdev = dev->mdev; local
3909 struct mlx5_core_dev *mdev = dev->mdev; local
3996 struct mlx5_core_dev *mdev = dev->mdev; local
4026 struct mlx5_core_dev *mdev = dev->mdev; local
4355 struct mlx5_core_dev *mdev = idev->mdev; local
4414 struct mlx5_core_dev *mdev = idev->mdev; local
[all...]
H A Dib_virt.c54 struct mlx5_core_dev *mdev = dev->mdev; local
62 err = mlx5_query_hca_vport_context(mdev, 1, 1, vf + 1, rep);
96 struct mlx5_core_dev *mdev = dev->mdev; local
98 struct mlx5_vf_context *vfs_ctx = mdev->priv.sriov.vfs_ctx;
111 err = mlx5_core_modify_hca_vport_context(mdev, 1, 1, vf + 1, in);
124 struct mlx5_core_dev *mdev; local
130 mdev = dev->mdev;
155 struct mlx5_core_dev *mdev = dev->mdev; local
179 struct mlx5_core_dev *mdev = dev->mdev; local
215 struct mlx5_core_dev *mdev = dev->mdev; local
[all...]
H A Dib_rep.c31 static void mlx5_ib_register_peer_vport_reps(struct mlx5_core_dev *mdev);
109 ibdev->mdev = lag_master;
137 struct mlx5_core_dev *mdev = mlx5_eswitch_get_core_dev(rep->esw); local
143 if (WARN_ON(!mdev))
149 if (mlx5_lag_is_shared_fdb(mdev) &&
150 !mlx5_lag_is_master(mdev)) {
151 if (rep->vport == MLX5_VPORT_UPLINK && !mlx5_lag_is_mpesw(mdev))
171 if (mlx5_lag_is_shared_fdb(mdev) && !mlx5_lag_is_master(mdev))
174 if (mlx5_lag_is_shared_fdb(mdev)) {
193 mlx5_ib_register_peer_vport_reps(struct mlx5_core_dev *mdev) argument
233 struct mlx5_core_dev *mdev = idev->mdev; local
244 struct mlx5_core_dev *mdev = idev->mdev; local
[all...]
/linux-master/drivers/media/mc/
H A Dmc-request.c64 struct media_device *mdev = req->mdev; local
66 dev_dbg(mdev->dev, "request: release %s\n", req->debug_str);
73 if (mdev->ops->req_free)
74 mdev->ops->req_free(req);
121 struct media_device *mdev = req->mdev; local
126 dev_dbg(mdev->dev, "request: queue %s\n", req->debug_str);
134 mutex_lock(&mdev->req_queue_mutex);
144 dev_dbg(mdev
190 struct media_device *mdev = req->mdev; local
247 media_request_get_by_fd(struct media_device *mdev, int request_fd) argument
288 media_request_alloc(struct media_device *mdev, int *alloc_fd) argument
[all...]
H A Dmc-entity.c63 struct media_device *mdev)
67 idx_max = ALIGN(mdev->entity_internal_idx_max + 1, BITS_PER_LONG);
98 dev_dbg(gobj->mdev->dev,
107 dev_dbg(gobj->mdev->dev,
118 dev_dbg(gobj->mdev->dev,
131 dev_dbg(gobj->mdev->dev,
142 void media_gobj_create(struct media_device *mdev, argument
146 BUG_ON(!mdev);
148 gobj->mdev = mdev;
62 media_entity_enum_init(struct media_entity_enum *ent_enum, struct media_device *mdev) argument
197 struct media_device *mdev = entity->graph_obj.mdev; local
328 media_graph_walk_init( struct media_graph *graph, struct media_device *mdev) argument
465 struct media_device *mdev; member in struct:media_pipeline_walk
774 struct media_device *mdev = pad->graph_obj.mdev; local
920 struct media_device *mdev = pad->graph_obj.mdev; local
957 struct media_device *mdev = pad->graph_obj.mdev; local
967 struct media_device *mdev = pad->graph_obj.mdev; local
1196 media_create_pad_links(const struct media_device *mdev, const u32 source_function, struct media_entity *source, const u16 source_pad, const u32 sink_function, struct media_entity *sink, const u16 sink_pad, u32 flags, const bool allow_both_undefined) argument
1275 struct media_device *mdev = entity->graph_obj.mdev; local
1314 struct media_device *mdev; local
1530 media_interface_init(struct media_device *mdev, struct media_interface *intf, u32 gobj_type, u32 intf_type, u32 flags) argument
1544 media_devnode_create(struct media_device *mdev, u32 type, u32 flags, u32 major, u32 minor) argument
1604 struct media_device *mdev = link->graph_obj.mdev; local
1628 struct media_device *mdev = intf->graph_obj.mdev; local
[all...]
/linux-master/drivers/input/mouse/
H A Dmaplemouse.c24 struct maple_device *mdev; member in struct:dc_mouse
53 maple_getcond_callback(mse->mdev, dc_mouse_callback, HZ/50,
63 maple_getcond_callback(mse->mdev, dc_mouse_callback, 0,
70 struct maple_device *mdev = to_maple_dev(dev); local
89 mse->mdev = mdev;
98 input_dev->name = mdev->product_name;
104 mdev->driver = mdrv;
105 maple_set_drvdata(mdev, mse);
119 struct maple_device *mdev local
[all...]
/linux-master/drivers/mailbox/
H A Domap-mailbox.c94 unsigned int mbox_read_reg(struct omap_mbox_device *mdev, size_t ofs) argument
96 return __raw_readl(mdev->mbox_base + ofs);
100 void mbox_write_reg(struct omap_mbox_device *mdev, u32 val, size_t ofs) argument
102 __raw_writel(val, mdev->mbox_base + ofs);
256 struct omap_mbox_device *mdev = mbox->parent; local
259 mutex_lock(&mdev->cfg_lock);
260 pm_runtime_get_sync(mdev->dev);
263 pm_runtime_put_sync(mdev->dev);
264 mutex_unlock(&mdev->cfg_lock);
271 struct omap_mbox_device *mdev local
336 struct omap_mbox_device *mdev = dev_get_drvdata(dev); local
360 struct omap_mbox_device *mdev = dev_get_drvdata(dev); local
414 struct omap_mbox_device *mdev; local
446 struct omap_mbox_device *mdev; local
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/mt7921/
H A Dpci_mcu.c22 mt7921_mcu_send_message(struct mt76_dev *mdev, struct sk_buff *skb, argument
25 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76);
29 ret = mt76_connac2_mcu_fill_message(mdev, skb, cmd, seq);
33 mdev->mcu.timeout = 3 * HZ;
38 return mt76_tx_queue_skb_raw(dev, mdev->q_mcu[txq], skb, 0);

Completed in 195 milliseconds

1234567891011>>