/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | clock.c | 78 return (mlx5_is_real_time_rq(mdev) || mlx5_is_real_time_sq(mdev)); in mlx5_real_time_mode() 121 struct mlx5_core_dev *mdev; in mlx5_ptp_getmaxphase() local 457 if (!MLX5_PPS_CAP(mdev)) in mlx5_extts_configure() 646 if (!MLX5_PPS_CAP(mdev)) in mlx5_perout_configure() 977 mlx5_core_warn(mdev, in mlx5_init_overflow_period() 991 if (!mdev->clock_info) { in mlx5_init_clock_info() 996 info = mdev->clock_info; in mlx5_init_clock_info() 1028 if (!MLX5_PPS_CAP(mdev)) in mlx5_init_pps() 1052 mlx5_init_pps(mdev); in mlx5_init_clock() 1055 &mdev->pdev->dev); in mlx5_init_clock() [all …]
|
H A D | clock.h | 36 static inline bool mlx5_is_real_time_rq(struct mlx5_core_dev *mdev) in mlx5_is_real_time_rq() argument 38 u8 rq_ts_format_cap = MLX5_CAP_GEN(mdev, rq_ts_format); in mlx5_is_real_time_rq() 45 static inline bool mlx5_is_real_time_sq(struct mlx5_core_dev *mdev) in mlx5_is_real_time_sq() argument 47 u8 sq_ts_format_cap = MLX5_CAP_GEN(mdev, sq_ts_format); in mlx5_is_real_time_sq() 57 void mlx5_init_clock(struct mlx5_core_dev *mdev); 58 void mlx5_cleanup_clock(struct mlx5_core_dev *mdev); 62 return mdev->clock.ptp ? ptp_clock_index(mdev->clock.ptp) : -1; in mlx5_clock_get_ptp_index() 90 static inline void mlx5_init_clock(struct mlx5_core_dev *mdev) {} in mlx5_init_clock() argument 91 static inline void mlx5_cleanup_clock(struct mlx5_core_dev *mdev) {} in mlx5_cleanup_clock() argument 112 return mlx5_is_real_time_rq(mdev) ? mlx5_real_time_cyc2time : in mlx5_rq_ts_translator() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
H A D | core.c | 112 err = mlx5_fpga_query(fdev->mdev, &query); in mlx5_fpga_device_load_check() 141 struct mlx5_core_dev *mdev = fdev->mdev; in mlx5_fpga_device_brb() local 179 struct mlx5_fpga_device *fdev = mdev->fpga; in mlx5_fpga_device_start() 188 err = mlx5_fpga_caps(fdev->mdev); in mlx5_fpga_device_start() 257 if (!MLX5_CAP_GEN(mdev, fpga)) { in mlx5_fpga_init() 262 mlx5_core_dbg(mdev, "Initializing FPGA\n"); in mlx5_fpga_init() 268 fdev->mdev = mdev; in mlx5_fpga_init() 269 mdev->fpga = fdev; in mlx5_fpga_init() 314 mlx5_fpga_device_stop(mdev); in mlx5_fpga_cleanup() 316 mdev->fpga = NULL; in mlx5_fpga_cleanup() [all …]
|
H A D | core.h | 46 struct mlx5_core_dev *mdev; member 63 mlx5_core_dbg((__adev)->mdev, "FPGA: %s:%d:(pid %d): " format, \ 75 mlx5_core_err_rl((__adev)->mdev, "FPGA: %s:%d: " \ 79 mlx5_core_info((__adev)->mdev, "FPGA: " format, ##__VA_ARGS__) 82 mlx5_core_info((__adev)->mdev, "FPGA: " format, ##__VA_ARGS__) 84 int mlx5_fpga_init(struct mlx5_core_dev *mdev); 85 void mlx5_fpga_cleanup(struct mlx5_core_dev *mdev); 86 int mlx5_fpga_device_start(struct mlx5_core_dev *mdev); 87 void mlx5_fpga_device_stop(struct mlx5_core_dev *mdev); 91 static inline int mlx5_fpga_init(struct mlx5_core_dev *mdev) in mlx5_fpga_init() argument [all …]
|
/openbmc/linux/drivers/vdpa/virtio_pci/ |
H A D | vp_vdpa.c | 61 return vp_vdpa->mdev; in vdpa_to_mdev() 66 return vp_vdpa->mdev; in vp_vdpa_to_mdev() 361 return mdev->id.device; in vp_vdpa_get_device_id() 476 struct virtio_pci_modern_device *mdev = vp_vdpa_mgtdev->mdev; in vp_vdpa_dev_add() local 495 vp_vdpa->mdev = mdev; in vp_vdpa_dev_add() 589 if (!mdev) { in vp_vdpa_probe() 600 vp_vdpa_mgtdev->mdev = mdev; in vp_vdpa_probe() 601 mdev->pci_dev = pdev; in vp_vdpa_probe() 636 kfree(mdev); in vp_vdpa_probe() 647 mdev = vp_vdpa_mgtdev->mdev; in vp_vdpa_remove() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | sdio.c | 35 queue_work(mdev->wq, &dev->pm.wake_work); in mt7663s_txrx_worker() 103 struct mt76_dev *mdev; in mt7663s_probe() local 112 if (!mdev) in mt7663s_probe() 132 dev_dbg(mdev->dev, "ASIC revision: %04x\n", mdev->rev); in mt7663s_probe() 135 mdev->sdio.intr_data = devm_kmalloc(mdev->dev, in mt7663s_probe() 138 if (!mdev->sdio.intr_data) { in mt7663s_probe() 147 ret = mt76s_alloc_tx(mdev); in mt7663s_probe() 190 mt7615_firmware_offload(mdev)) { in mt7663s_suspend() 200 err = mt7615_mcu_set_fw_ctrl(mdev); in mt7663s_suspend() 226 err = mt7615_mcu_set_drv_ctrl(mdev); in mt7663s_resume() [all …]
|
H A D | pci.c | 91 napi_disable(&mdev->tx_napi); in mt7615_pci_suspend() 94 mt76_for_each_q_rx(mdev, i) { in mt7615_pci_suspend() 95 napi_disable(&mdev->napi[i]); in mt7615_pci_suspend() 105 if (is_mt7663(mdev)) { in mt7615_pci_suspend() 129 mt76_for_each_q_rx(mdev, i) { in mt7615_pci_suspend() 130 napi_enable(&mdev->napi[i]); in mt7615_pci_suspend() 132 napi_enable(&mdev->tx_napi); in mt7615_pci_suspend() 168 mt76_for_each_q_rx(mdev, i) { in mt7615_pci_resume() 169 napi_enable(&mdev->napi[i]); in mt7615_pci_resume() 172 napi_enable(&mdev->tx_napi); in mt7615_pci_resume() [all …]
|
/openbmc/linux/drivers/w1/masters/ |
H A D | mxc_w1.c | 93 struct mxc_w1_device *mdev; in mxc_w1_probe() local 100 if (!mdev) in mxc_w1_probe() 104 if (IS_ERR(mdev->clk)) in mxc_w1_probe() 105 return PTR_ERR(mdev->clk); in mxc_w1_probe() 111 clkrate = clk_get_rate(mdev->clk); in mxc_w1_probe() 123 if (IS_ERR(mdev->regs)) { in mxc_w1_probe() 124 err = PTR_ERR(mdev->regs); in mxc_w1_probe() 134 mdev->bus_master.data = mdev; in mxc_w1_probe() 138 platform_set_drvdata(pdev, mdev); in mxc_w1_probe() 147 clk_disable_unprepare(mdev->clk); in mxc_w1_probe() [all …]
|
/openbmc/linux/include/linux/mlx5/ |
H A D | vport.h | 39 #define MLX5_VPORT_MANAGER(mdev) \ argument 40 (MLX5_CAP_GEN(mdev, vport_group_manager) && \ 41 (MLX5_CAP_GEN(mdev, port_type) == MLX5_CAP_PORT_TYPE_ETH) && \ 42 mlx5_core_is_pf(mdev)) 61 int mlx5_query_nic_vport_mac_address(struct mlx5_core_dev *mdev, 64 int mlx5_query_nic_vport_min_inline(struct mlx5_core_dev *mdev, 76 int mlx5_modify_nic_vport_node_guid(struct mlx5_core_dev *mdev, 103 int mlx5_query_nic_vport_promisc(struct mlx5_core_dev *mdev, 108 int mlx5_modify_nic_vport_promisc(struct mlx5_core_dev *mdev, 116 int mlx5_nic_vport_enable_roce(struct mlx5_core_dev *mdev); [all …]
|
H A D | device.h | 1260 #define MLX5_CAP_GEN(mdev, cap) \ argument 1269 #define MLX5_CAP_GEN_2(mdev, cap) \ argument 1278 #define MLX5_CAP_ETH(mdev, cap) \ argument 1286 #define MLX5_CAP_ROCE(mdev, cap) \ argument 1338 #define MLX5_CAP_ESW(mdev, cap) \ argument 1361 #define MLX5_CAP_ODP(mdev, cap)\ argument 1367 #define MLX5_CAP_QOS(mdev, cap)\ argument 1370 #define MLX5_CAP_DEBUG(mdev, cap)\ argument 1396 #define MLX5_CAP_FPGA(mdev, cap) \ argument 1408 #define MLX5_CAP_TLS(mdev, cap) \ argument [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | wq.c | 64 wq_ctrl->mdev = mdev; in mlx5_wq_cyc_create() 69 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_wq_cyc_create() 119 err = mlx5_frag_buf_alloc_node(mdev, in mlx5_wq_qp_create() 149 wq_ctrl->mdev = mdev; in mlx5_wq_qp_create() 154 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_wq_qp_create() 187 wq_ctrl->mdev = mdev; in mlx5_cqwq_create() 192 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_cqwq_create() 237 wq_ctrl->mdev = mdev; in mlx5_wq_ll_create() 242 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_wq_ll_create() 258 mlx5_frag_buf_free(wq_ctrl->mdev, &wq_ctrl->buf); in mlx5_wq_destroy() [all …]
|
H A D | uar.c | 63 if (MLX5_CAP_GEN(mdev, uar_4k)) in uars_per_sys_page() 73 if (MLX5_CAP_GEN(mdev, uar_4k)) in uar2pfn() 87 if (mlx5_cmd_free_uar(up->mdev, up->index)) in up_rel_func() 105 node = mdev->priv.numa_node; in alloc_uars_page() 110 up->mdev = mdev; in alloc_uars_page() 135 pfn = uar2pfn(mdev, up->index); in alloc_uars_page() 155 if (mlx5_cmd_free_uar(mdev, up->index)) in alloc_uars_page() 175 ret = alloc_uars_page(mdev, false); in mlx5_get_uars_page() 215 bfregs = &mdev->priv.bfregs; in alloc_bfreg() 225 up = alloc_uars_page(mdev, map_wc); in alloc_bfreg() [all …]
|
H A D | qos.c | 8 bool mlx5_qos_is_supported(struct mlx5_core_dev *mdev) in mlx5_qos_is_supported() argument 10 if (!MLX5_CAP_GEN(mdev, qos)) in mlx5_qos_is_supported() 12 if (!MLX5_CAP_QOS(mdev, nic_sq_scheduling)) in mlx5_qos_is_supported() 14 if (!MLX5_CAP_QOS(mdev, nic_bw_share)) in mlx5_qos_is_supported() 16 if (!MLX5_CAP_QOS(mdev, nic_rate_limit)) in mlx5_qos_is_supported() 21 int mlx5_qos_max_leaf_nodes(struct mlx5_core_dev *mdev) in mlx5_qos_max_leaf_nodes() argument 23 return 1 << MLX5_CAP_QOS(mdev, log_max_qos_nic_queue_group); in mlx5_qos_max_leaf_nodes() 26 int mlx5_qos_create_leaf_node(struct mlx5_core_dev *mdev, u32 parent_id, in mlx5_qos_create_leaf_node() argument 60 int mlx5_qos_create_root_node(struct mlx5_core_dev *mdev, u32 *id) in mlx5_qos_create_root_node() argument 65 int mlx5_qos_update_node(struct mlx5_core_dev *mdev, in mlx5_qos_update_node() argument [all …]
|
H A D | qos.h | 11 #define qos_err(mdev, fmt, ...) \ argument 12 mlx5_core_err(mdev, "QoS: " fmt, ##__VA_ARGS__) 13 #define qos_warn(mdev, fmt, ...) \ argument 14 mlx5_core_warn(mdev, "QoS: " fmt, ##__VA_ARGS__) 15 #define qos_dbg(mdev, fmt, ...) \ argument 18 bool mlx5_qos_is_supported(struct mlx5_core_dev *mdev); 19 int mlx5_qos_max_leaf_nodes(struct mlx5_core_dev *mdev); 21 int mlx5_qos_create_leaf_node(struct mlx5_core_dev *mdev, u32 parent_id, 25 int mlx5_qos_create_root_node(struct mlx5_core_dev *mdev, u32 *id); 26 int mlx5_qos_update_node(struct mlx5_core_dev *mdev, u32 bw_share, [all …]
|
/openbmc/linux/drivers/media/mc/ |
H A D | mc-dev-allocator.c | 30 struct media_device mdev; member 39 return container_of(mdev, struct media_device_instance, mdev); in to_media_device_instance() 52 media_device_cleanup(&mdi->mdev); in media_device_instance_release() 68 if (mdi->mdev.dev != dev) in __media_device_get() 81 return &mdi->mdev; in __media_device_get() 94 return &mdi->mdev; in __media_device_get() 101 struct media_device *mdev; in media_device_usb_allocate() local 105 if (!mdev) { in media_device_usb_allocate() 111 if (!mdev->dev) in media_device_usb_allocate() 115 return mdev; in media_device_usb_allocate() [all …]
|
/openbmc/linux/drivers/tty/serial/8250/ |
H A D | 8250_men_mcb.c | 64 dev_info(&mdev->dev, "%s on board %s\n", in men_lookup_uartclk() 65 dev_name(&mdev->dev), in men_lookup_uartclk() 66 mdev->bus->name); in men_lookup_uartclk() 73 else if (strstr(mdev->bus->name, "215")) in men_lookup_uartclk() 76 dev_info(&mdev->dev, in men_lookup_uartclk() 168 switch (mdev->id) { in init_serial_data() 195 data = devm_kzalloc(&mdev->dev, in serial_8250_men_mcb_probe() 201 res = init_serial_data(mdev, mem, data); in serial_8250_men_mcb_probe() 206 mdev->id, data->num_ports); in serial_8250_men_mcb_probe() 208 mcb_set_drvdata(mdev, data); in serial_8250_men_mcb_probe() [all …]
|
/openbmc/linux/drivers/mailbox/ |
H A D | omap-mailbox.c | 458 if (!mdev || !mdev->mboxes) in omap_mbox_register() 477 ret = devm_mbox_controller_register(mdev->dev, &mdev->controller); in omap_mbox_register() 492 if (!mdev || !mdev->mboxes) in omap_mbox_unregister() 605 mdev->irq_ctx[usr] = mbox_read_reg(mdev, reg); in omap_mbox_suspend() 621 mbox_write_reg(mdev, mdev->irq_ctx[usr], reg); in omap_mbox_resume() 671 if (WARN_ON(!mdev)) in omap_mbox_of_xlate() 759 mdev = devm_kzalloc(&pdev->dev, sizeof(*mdev), GFP_KERNEL); in omap_mbox_probe() 760 if (!mdev) in omap_mbox_probe() 769 if (!mdev->irq_ctx) in omap_mbox_probe() 825 mdev->mboxes = list; in omap_mbox_probe() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_cq.c | 51 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_create_cq() local 66 cq->vector = mdev->dev->caps.num_comp_vectors; in mlx4_en_create_cq() 74 set_dev_node(&mdev->dev->persist->pdev->dev, mdev->dev->numa_node); in mlx4_en_create_cq() 92 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_activate_cq() local 97 cq->dev = mdev->pndev[priv->port]; in mlx4_en_activate_cq() 109 err = mlx4_assign_eq(mdev->dev, priv->port, in mlx4_en_activate_cq() 119 irq = mlx4_eq_get_irq(mdev->dev, cq->vector); in mlx4_en_activate_cq() 168 mlx4_release_eq(mdev->dev, cq->vector); in mlx4_en_activate_cq() 175 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_destroy_cq() local 196 mlx4_cq_free(priv->mdev->dev, &cq->mcq); in mlx4_en_deactivate_cq() [all …]
|
H A D | en_netdev.c | 93 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_alloc_tx_queue_per_tc() local 480 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_vlan_rx_add_vid() local 510 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_vlan_rx_kill_vid() local 564 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_uc_steer_add() local 617 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_uc_steer_release() local 643 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_get_qp() local 682 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_put_qp() local 702 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_replace_mac() local 2227 dst->mdev = src->mdev; in mlx4_en_copy_priv() 2922 mdev->upper[i] = mdev->pndev[i] ? in mlx4_en_netdev_event() [all …]
|
/openbmc/linux/drivers/net/wireless/intersil/orinoco/ |
H A D | airport.c | 29 struct macio_dev *mdev; member 59 macio_get_of_node(mdev), 0, 0); in airport_suspend() 76 macio_get_of_node(mdev), 0, 1); in airport_resume() 106 macio_release_resource(mdev, 0); in airport_detach() 109 macio_get_of_node(mdev), 0, 0); in airport_detach() 112 macio_set_drvdata(mdev, NULL); in airport_detach() 156 if (macio_resource_count(mdev) < 1 || macio_irq_count(mdev) < 1) { in airport_attach() 171 card->mdev = mdev; in airport_attach() 179 macio_set_drvdata(mdev, priv); in airport_attach() 182 card->irq = macio_irq(mdev, 0); in airport_attach() [all …]
|
/openbmc/linux/include/linux/ |
H A D | virtio_pci_modern.h | 94 u64 vp_modern_get_features(struct virtio_pci_modern_device *mdev); 96 void vp_modern_set_features(struct virtio_pci_modern_device *mdev, 98 u32 vp_modern_generation(struct virtio_pci_modern_device *mdev); 99 u8 vp_modern_get_status(struct virtio_pci_modern_device *mdev); 100 void vp_modern_set_status(struct virtio_pci_modern_device *mdev, 102 u16 vp_modern_queue_vector(struct virtio_pci_modern_device *mdev, 104 u16 vp_modern_config_vector(struct virtio_pci_modern_device *mdev, 106 void vp_modern_queue_address(struct virtio_pci_modern_device *mdev, 115 u16 vp_modern_get_queue_size(struct virtio_pci_modern_device *mdev, 120 int vp_modern_probe(struct virtio_pci_modern_device *mdev); [all …]
|
/openbmc/linux/drivers/media/v4l2-core/ |
H A D | v4l2-mc.c | 33 if (!mdev) in v4l2_mc_create_media_graph() 283 struct media_device *mdev = vdev->entity.graph_obj.mdev; in v4l_enable_media_source() local 286 if (!mdev) in v4l_enable_media_source() 289 mutex_lock(&mdev->graph_mutex); in v4l_enable_media_source() 290 if (!mdev->enable_source) in v4l_enable_media_source() 303 struct media_device *mdev = vdev->entity.graph_obj.mdev; in v4l_disable_media_source() local 305 if (mdev) { in v4l_disable_media_source() 306 mutex_lock(&mdev->graph_mutex); in v4l_disable_media_source() 307 if (mdev->disable_source) in v4l_disable_media_source() 531 struct media_device *mdev = entity->graph_obj.mdev; in v4l2_pipeline_pm_use() local [all …]
|
/openbmc/linux/drivers/virtio/ |
H A D | virtio_pci_modern.c | 70 struct virtio_pci_modern_device *mdev = &vp_dev->mdev; in vp_get() local 108 struct virtio_pci_modern_device *mdev = &vp_dev->mdev; in vp_set() local 167 struct virtio_pci_modern_device *mdev = &vp_dev->mdev; in vp_reset() local 185 struct virtio_pci_modern_device *mdev = &vp_dev->mdev; in vp_active_vq() local 208 struct virtio_pci_modern_device *mdev = &vp_dev->mdev; in vp_modern_disable_vq_and_reset() local 247 struct virtio_pci_modern_device *mdev = &vp_dev->mdev; in vp_modern_enable_vq_after_reset() local 309 struct virtio_pci_modern_device *mdev = &vp_dev->mdev; in setup_vq() local 383 struct virtio_pci_modern_device *mdev = &vp_dev->mdev; in del_vq() local 537 struct virtio_pci_modern_device *mdev = &vp_dev->mdev; in virtio_pci_modern_probe() local 547 if (mdev->device) in virtio_pci_modern_probe() [all …]
|
/openbmc/linux/drivers/gpu/drm/mgag200/ |
H A D | mgag200_drv.c | 111 return mgag200_probe_vram(mdev->vram, resource_size(mdev->vram_res)); in mgag200_device_probe_vram() 131 mdev->rmmio_res = res; in mgag200_device_preinit() 134 if (!mdev->rmmio) in mgag200_device_preinit() 147 mdev->vram_res = res; in mgag200_device_preinit() 154 if (!mdev->vram) in mgag200_device_preinit() 168 mdev->info = info; in mgag200_device_init() 169 mdev->funcs = funcs; in mgag200_device_init() 217 struct mga_device *mdev; in mgag200_pci_probe() local 260 if (IS_ERR(mdev)) in mgag200_pci_probe() 261 return PTR_ERR(mdev); in mgag200_pci_probe() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
H A D | ipoib.c | 63 mlx5e_set_rq_type(mdev, params); in mlx5i_build_nic_params() 202 struct mlx5_core_dev *mdev = priv->mdev; in mlx5i_init_underlay_qp() local 258 struct mlx5_core_dev *mdev = priv->mdev; in mlx5i_uninit_underlay_qp() local 410 struct mlx5_core_dev *mdev = priv->mdev; in mlx5i_init_rx() local 583 struct mlx5_core_dev *mdev = epriv->mdev; in mlx5i_open() local 631 struct mlx5_core_dev *mdev = epriv->mdev; in mlx5i_close() local 659 struct mlx5_core_dev *mdev = epriv->mdev; in mlx5i_attach_mcast() local 683 struct mlx5_core_dev *mdev = epriv->mdev; in mlx5i_detach_mcast() local 734 struct mlx5_core_dev *mdev = priv->mdev; in mlx5_rdma_netdev_free() local 793 prof->init(mdev, netdev); in mlx5_rdma_setup_rn() [all …]
|