Home
last modified time | relevance | path

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

1234567

/freebsd/sys/dev/mthca/
H A Dmthca_main.c222 mdev->limits.max_srq_sge = mthca_max_srq_sge(mdev); in mthca_dev_lim()
353 mthca_alloc_icm(mdev, mdev->fw.arbel.fw_pages, in mthca_load_fw()
360 err = mthca_MAP_FA(mdev, mdev->fw.arbel.fw_icm); in mthca_load_fw()
377 mthca_free_icm(mdev, mdev->fw.arbel.fw_icm, 0); in mthca_load_fw()
552 mthca_free_icm(mdev, mdev->fw.arbel.aux_icm, 0); in mthca_init_icm()
572 mthca_free_icm(mdev, mdev->fw.arbel.aux_icm, 0); in mthca_free_icms()
639 mthca_free_icm(mdev, mdev->fw.arbel.fw_icm, 0); in mthca_init_arbel()
656 mthca_free_icm(mdev, mdev->fw.arbel.fw_icm, 0); in mthca_close_hca()
1057 mthca_pd_free(mdev, &mdev->driver_pd); in __mthca_init_one()
1104 mthca_pd_free(mdev, &mdev->driver_pd); in __mthca_remove_one()
[all …]
H A Dmthca_reset.c41 int mthca_reset(struct mthca_dev *mdev) in mthca_reset() argument
73 if (!(mdev->mthca_flags & MTHCA_FLAG_PCIE)) { in mthca_reset()
78 mdev->pdev->device + 2, in mthca_reset()
81 bridge->subordinate == mdev->pdev->bus) { in mthca_reset()
82 mthca_dbg(mdev, "Found bridge: %s\n", in mthca_reset()
94 mthca_warn(mdev, "No bridge found for %s\n", in mthca_reset()
95 pci_name(mdev->pdev)); in mthca_reset()
118 mthca_err(mdev, "Couldn't save HCA " in mthca_reset()
142 mthca_err(mdev, "Couldn't save HCA bridge " in mthca_reset()
150 mthca_err(mdev, "Couldn't locate HCA bridge " in mthca_reset()
[all …]
/freebsd/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_main.c164 kfree(mdev); in mlx4_en_remove()
175 if (mlx4_en_init_netdev(mdev, i, &mdev->profile.prof[i])) in mlx4_en_activate()
185 mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); in mlx4_en_add()
186 if (!mdev) in mlx4_en_add()
201 mdev->dev = dev; in mlx4_en_add()
211 if (mlx4_mr_alloc(mdev->dev, mdev->priv_pdn, 0, ~0ull, in mlx4_en_add()
217 if (mlx4_mr_enable(mdev->dev, &mdev->mr)) { in mlx4_en_add()
231 mdev->port_cnt++; in mlx4_en_add()
248 return mdev; in mlx4_en_add()
253 if (mdev->uar_map) in mlx4_en_add()
[all …]
H A Dmlx4_en_cq.c57 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_create_cq() local
88 cq->vector = mdev->dev->caps.num_comp_vectors; in mlx4_en_create_cq()
91 err = mlx4_alloc_hwq_res(mdev->dev, &cq->wqres, in mlx4_en_create_cq()
116 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_activate_cq() local
121 cq->dev = mdev->pndev[priv->port]; in mlx4_en_activate_cq()
133 err = mlx4_assign_eq(mdev->dev, priv->port, in mlx4_en_activate_cq()
177 mlx4_release_eq(mdev->dev, cq->vector); in mlx4_en_activate_cq()
178 cq->vector = mdev->dev->caps.num_comp_vectors; in mlx4_en_activate_cq()
184 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_destroy_cq() local
210 mlx4_cq_free(priv->mdev->dev, &cq->mcq); in mlx4_en_deactivate_cq()
[all …]
H A Dmlx4_en_netdev.c406 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_vlan_rx_add_vid() local
433 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_vlan_rx_kill_vid() local
478 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_uc_steer_add() local
530 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_uc_steer_release() local
556 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_get_qp() local
592 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_put_qp() local
1013 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_do_set_rx_mode() local
1641 mdev = priv->mdev; in mlx4_en_open()
1968 mdev = priv->mdev; in mlx4_en_ioctl()
2180 priv->mdev = mdev; in mlx4_en_init_netdev()
[all …]
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_fwdump.c59 mdev->dump_data = NULL; in mlx5_fwdump_destroy_dd()
79 mlx5_core_warn(mdev, in mlx5_fwdump_prep()
89 mlx5_core_warn(mdev, in mlx5_fwdump_prep()
115 mlx5_core_warn(mdev, in mlx5_fwdump_prep()
172 mlx5_core_err(mdev, in mlx5_fwdump_prep()
177 mdev->dump_size = mlx5_fwdump_getsize(mdev->dump_rege); in mlx5_fwdump_prep()
178 mdev->dump_data = malloc(mdev->dump_size * sizeof(uint32_t), in mlx5_fwdump_prep()
204 mlx5_core_warn(mdev, in mlx5_fwdump()
240 msleep(&mdev->dump_copyout, &mdev->dump_lock, 0, "mlx5fwc", 0); in mlx5_fwdump_clean()
255 msleep(&mdev->dump_copyout, &mdev->dump_lock, in mlx5_fwdump_reset()
[all …]
H A Dmlx5_vsc.c35 device_t dev = mdev->pdev->dev.bsddev; in mlx5_vsc_lock()
36 int vsc_addr = mdev->vsc_addr; in mlx5_vsc_lock()
75 device_t dev = mdev->pdev->dev.bsddev; in mlx5_vsc_unlock()
76 int vsc_addr = mdev->vsc_addr; in mlx5_vsc_unlock()
90 int vsc_addr = mdev->vsc_addr; in mlx5_vsc_wait_on_flag()
112 int vsc_addr = mdev->vsc_addr; in mlx5_vsc_set_space()
135 int vsc_addr = mdev->vsc_addr; in mlx5_vsc_write()
149 err = mlx5_vsc_wait_on_flag(mdev, 0); in mlx5_vsc_write()
159 int vsc_addr = mdev->vsc_addr; in mlx5_vsc_read()
185 int vsc_addr = mdev->vsc_addr; in mlx5_vsc_lock_addr_space()
[all …]
H A Dmlx5_wq.c73 err = mlx5_db_alloc(mdev, &wq_ctrl->db); in mlx5_wq_cyc_create()
89 wq_ctrl->mdev = mdev; in mlx5_wq_cyc_create()
94 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_wq_cyc_create()
110 err = mlx5_db_alloc(mdev, &wq_ctrl->db); in mlx5_cqwq_create()
126 wq_ctrl->mdev = mdev; in mlx5_cqwq_create()
131 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_cqwq_create()
148 err = mlx5_db_alloc(mdev, &wq_ctrl->db); in mlx5_wq_ll_create()
171 wq_ctrl->mdev = mdev; in mlx5_wq_ll_create()
176 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_wq_ll_create()
183 mlx5_buf_free(wq_ctrl->mdev, &wq_ctrl->buf); in mlx5_wq_destroy()
[all …]
H A Dmlx5_uar.c62 if (MLX5_CAP_GEN(mdev, uar_4k)) in uars_per_sys_page()
72 if (MLX5_CAP_GEN(mdev, uar_4k)) in uar2pfn()
86 if (mlx5_cmd_free_uar(up->mdev, up->index)) in up_rel_func()
107 up->mdev = mdev; in alloc_uars_page()
126 err = mlx5_cmd_alloc_uar(mdev, &up->index); in alloc_uars_page()
132 pfn = uar2pfn(mdev, up->index); in alloc_uars_page()
152 if (mlx5_cmd_free_uar(mdev, up->index)) in alloc_uars_page()
172 ret = alloc_uars_page(mdev, false); in mlx5_get_uars_page()
212 bfregs = &mdev->priv.bfregs; in alloc_bfreg()
222 up = alloc_uars_page(mdev, map_wc); in alloc_bfreg()
[all …]
H A Dmlx5_vport.c122 return (MLX5_CAP_GEN(mdev, max_qp_cnt) - in mlx5_vport_max_q_counter_allocator()
139 if (mdev->num_q_counter_allocated[client_id] > in mlx5_vport_alloc_q_counter()
152 mdev->num_q_counter_allocated[client_id]++; in mlx5_vport_alloc_q_counter()
174 mdev->num_q_counter_allocated[client_id]--; in mlx5_vport_dealloc_q_counter()
231 switch (MLX5_CAP_ETH(mdev, wqe_inline_mode)) { in mlx5_query_min_inline()
518 if (!MLX5_CAP_GEN(mdev, vport_group_manager)) in mlx5_modify_nic_vport_node_guid()
557 if (!MLX5_CAP_GEN(mdev, vport_group_manager)) in mlx5_modify_nic_vport_port_guid()
1065 if (MLX5_CAP_GEN(mdev, num_ports) == 2) in mlx5_query_hca_vport_context()
1530 if (MLX5_CAP_GEN(mdev, disable_local_lb_mc)) in mlx5_nic_vport_update_local_lb()
1534 if (MLX5_CAP_GEN(mdev, disable_local_lb_uc)) in mlx5_nic_vport_update_local_lb()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7921/
H A Dsdio.c126 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()
282 struct mt76_dev *mdev = &dev->mt76; in mt7921s_resume() local
[all …]
H A Dpci.c272 struct mt76_dev *mdev; in mt7921_pci_probe() local
311 if (!mdev) { in mt7921_pci_probe()
316 pci_set_drvdata(pdev, mdev); in mt7921_pci_probe()
351 dev_info(mdev->dev, "ASIC revision: %04x\n", mdev->rev); in mt7921_pci_probe()
424 napi_disable(&mdev->tx_napi); in mt7921_pci_suspend()
427 mt76_for_each_q_rx(mdev, i) { in mt7921_pci_suspend()
453 mt76_for_each_q_rx(mdev, i) { in mt7921_pci_suspend()
454 napi_enable(&mdev->napi[i]); in mt7921_pci_suspend()
456 napi_enable(&mdev->tx_napi); in mt7921_pci_suspend()
500 mt76_for_each_q_rx(mdev, i) { in mt7921_pci_resume()
[all …]
/freebsd/sys/dev/mlx5/
H A Dvport.h41 int mlx5_vport_query_q_counter(struct mlx5_core_dev *mdev,
54 int mlx5_nic_vport_query_local_lb(struct mlx5_core_dev *mdev,
58 int mlx5_nic_vport_modify_local_lb(struct mlx5_core_dev *mdev,
67 int mlx5_query_vport_mtu(struct mlx5_core_dev *mdev, int *mtu);
68 int mlx5_set_vport_mtu(struct mlx5_core_dev *mdev, int mtu);
72 int mlx5_query_nic_vport_promisc(struct mlx5_core_dev *mdev,
78 int mlx5_modify_nic_vport_promisc(struct mlx5_core_dev *mdev,
88 int mlx5_query_nic_vport_min_inline(struct mlx5_core_dev *mdev,
123 int mlx5_nic_vport_enable_roce(struct mlx5_core_dev *mdev);
124 int mlx5_nic_vport_disable_roce(struct mlx5_core_dev *mdev);
[all …]
H A Ddevice.h1026 #define MLX5_CAP_GEN(mdev, cap) \ argument
1035 #define MLX5_CAP_GEN_2(mdev, cap) \ argument
1038 #define MLX5_CAP_ETH(mdev, cap) \ argument
1046 #define MLX5_CAP_ROCE(mdev, cap) \ argument
1052 #define MLX5_CAP_ATOMIC(mdev, cap) \ argument
1096 #define MLX5_CAP_ESW(mdev, cap) \ argument
1104 #define MLX5_CAP_ODP(mdev, cap)\ argument
1126 #define MLX5_CAP_DEBUG(mdev, cap) \ argument
1134 #define MLX5_CAP_QOS(mdev, cap) \ argument
1160 #define MLX5_CAP_FPGA(mdev, cap) \ argument
[all …]
H A Dport.h202 int mlx5_max_tc(struct mlx5_core_dev *mdev);
203 int mlx5_query_port_tc_rate_limit(struct mlx5_core_dev *mdev,
206 int mlx5_modify_port_tc_rate_limit(struct mlx5_core_dev *mdev,
209 int mlx5_query_port_prio_tc(struct mlx5_core_dev *mdev,
211 int mlx5_set_port_prio_tc(struct mlx5_core_dev *mdev, int prio_index,
214 int mlx5_query_port_tc_group(struct mlx5_core_dev *mdev,
219 int mlx5_set_trust_state(struct mlx5_core_dev *mdev, u8 trust_state);
224 int mlx5_query_dscp2prio(struct mlx5_core_dev *mdev, u8 *dscp2prio);
230 int mlx5e_port_linkspeed(struct mlx5_core_dev *mdev, u32 *speed);
234 int mlx5e_port_query_pbmc(struct mlx5_core_dev *mdev, void *out);
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt76x2/
H A Dpci.c37 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 …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/
H A Dsdio.c35 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 Dpci.c91 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 …]
/freebsd/sys/dev/mlx5/mlx5_fpga/
H A Dcore.h59 struct mlx5_core_dev *mdev; member
97 dev_warn_ratelimited(&(__adev)->mdev->pdev->dev, "FPGA: %s:%d: " \
104 dev_info(&(__adev)->mdev->pdev->dev, "FPGA: " format, ##__VA_ARGS__)
106 int mlx5_fpga_init(struct mlx5_core_dev *mdev);
107 void mlx5_fpga_cleanup(struct mlx5_core_dev *mdev);
108 int mlx5_fpga_device_start(struct mlx5_core_dev *mdev);
109 void mlx5_fpga_device_stop(struct mlx5_core_dev *mdev);
114 static inline int mlx5_fpga_init(struct mlx5_core_dev *mdev) in mlx5_fpga_init() argument
119 static inline void mlx5_fpga_cleanup(struct mlx5_core_dev *mdev) in mlx5_fpga_cleanup() argument
123 static inline int mlx5_fpga_device_start(struct mlx5_core_dev *mdev) in mlx5_fpga_device_start() argument
[all …]
H A Dmlx5fpga_core.c153 err = mlx5_fpga_query(fdev->mdev, &query); in mlx5_fpga_device_load_check()
184 struct mlx5_core_dev *mdev = fdev->mdev; in mlx5_fpga_device_brb() local
207 struct mlx5_fpga_device *fdev = mdev->fpga; in mlx5_fpga_device_start()
220 err = mlx5_fpga_caps(fdev->mdev); in mlx5_fpga_device_start()
335 if (!MLX5_CAP_GEN(mdev, fpga)) { in mlx5_fpga_init()
346 fdev->mdev = mdev; in mlx5_fpga_init()
347 mdev->fpga = fdev; in mlx5_fpga_init()
371 fpga_id = MLX5_CAP_FPGA(mdev, fpga_id); in mlx5_fpga_device_stop()
426 mlx5_fpga_device_stop(mdev); in mlx5_fpga_cleanup()
433 mdev->fpga = NULL; in mlx5_fpga_cleanup()
[all …]
H A Dipsec.h40 void *mlx5_fpga_ipsec_sa_cmd_exec(struct mlx5_core_dev *mdev,
44 u32 mlx5_fpga_ipsec_device_caps(struct mlx5_core_dev *mdev);
45 unsigned int mlx5_fpga_ipsec_counters_count(struct mlx5_core_dev *mdev);
49 int mlx5_fpga_ipsec_init(struct mlx5_core_dev *mdev);
50 void mlx5_fpga_ipsec_cleanup(struct mlx5_core_dev *mdev);
54 static inline void *mlx5_fpga_ipsec_sa_cmd_exec(struct mlx5_core_dev *mdev, in mlx5_fpga_ipsec_sa_cmd_exec() argument
65 static inline u32 mlx5_fpga_ipsec_device_caps(struct mlx5_core_dev *mdev) in mlx5_fpga_ipsec_device_caps() argument
71 mlx5_fpga_ipsec_counters_count(struct mlx5_core_dev *mdev) in mlx5_fpga_ipsec_counters_count() argument
76 static inline int mlx5_fpga_ipsec_counters_read(struct mlx5_core_dev *mdev, in mlx5_fpga_ipsec_counters_read() argument
82 static inline int mlx5_fpga_ipsec_init(struct mlx5_core_dev *mdev) in mlx5_fpga_ipsec_init() argument
[all …]
H A Dmlx5fpga_sdk.c141 if (!fdev->mdev) in mlx5_fpga_mem_read_i2c()
173 if (!fdev->mdev) in mlx5_fpga_mem_write_i2c()
327 struct mlx5_core_dev *mdev = fdev->mdev; in mlx5_fpga_device_reload_cmd() local
350 err = mlx5_fpga_device_start(mdev); in mlx5_fpga_device_reload_cmd()
367 struct mlx5_core_dev *mdev = fdev->mdev; in mlx5_fpga_device_reload() local
398 mlx5_unregister_device(mdev); in mlx5_fpga_device_reload()
400 mlx5_fpga_device_stop(mdev); in mlx5_fpga_device_reload()
446 err = mlx5_register_device(mdev); in mlx5_fpga_device_reload()
459 mlx5_fpga_device_stop(mdev); in mlx5_fpga_device_reload()
529 return &fdev->mdev->pdev->dev; in mlx5_fpga_dev()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt76x0/
H A Dpci.c167 struct mt76_dev *mdev; in mt76x0e_probe() local
188 if (!mdev) in mt76x0e_probe()
197 dev_info(mdev->dev, "ASIC revision: %08x\n", mdev->rev); in mt76x0e_probe()
234 mt76_unregister_device(mdev); in mt76x0e_remove()
236 mt76_free_device(mdev); in mt76x0e_remove()
251 napi_disable(&mdev->tx_napi); in mt76x0e_suspend()
253 mt76_for_each_q_rx(mdev, i) in mt76x0e_suspend()
254 napi_disable(&mdev->napi[i]); in mt76x0e_suspend()
281 mt76_for_each_q_rx(mdev, i) { in mt76x0e_resume()
283 napi_enable(&mdev->napi[i]); in mt76x0e_resume()
[all …]
/freebsd/sys/dev/mlx5/mlx5_accel/
H A Dipsec.h65 #define MLX5_IPSEC_DEV(mdev) (mlx5_accel_ipsec_device_caps(mdev) & \ argument
102 void *mlx5_accel_ipsec_sa_cmd_exec(struct mlx5_core_dev *mdev,
113 u32 mlx5_accel_ipsec_device_caps(struct mlx5_core_dev *mdev);
115 unsigned int mlx5_accel_ipsec_counters_count(struct mlx5_core_dev *mdev);
116 int mlx5_accel_ipsec_counters_read(struct mlx5_core_dev *mdev, u64 *counters,
119 int mlx5_accel_ipsec_init(struct mlx5_core_dev *mdev);
120 void mlx5_accel_ipsec_cleanup(struct mlx5_core_dev *mdev);
124 #define MLX5_IPSEC_DEV(mdev) false argument
126 static inline int mlx5_accel_ipsec_init(struct mlx5_core_dev *mdev) in mlx5_accel_ipsec_init() argument
131 static inline void mlx5_accel_ipsec_cleanup(struct mlx5_core_dev *mdev) in mlx5_accel_ipsec_cleanup() argument
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/
H A Dmmio.c198 static int mt7996_mmio_init(struct mt76_dev *mdev, in mt7996_mmio_init() argument
205 dev = container_of(mdev, struct mt7996_dev, mt76); in mt7996_mmio_init()
231 dev_dbg(mdev->dev, "ASIC revision: %04x\n", mdev->rev); in mt7996_mmio_init()
239 struct mt76_dev *mdev = &dev->mt76; in mt7996_dual_hif_set_irq_mask() local
242 spin_lock_irqsave(&mdev->mmio.irq_lock, flags); in mt7996_dual_hif_set_irq_mask()
244 mdev->mmio.irqmask &= ~clear; in mt7996_dual_hif_set_irq_mask()
245 mdev->mmio.irqmask |= set; in mt7996_dual_hif_set_irq_mask()
350 struct mt76_dev *mdev; in mt7996_mmio_probe() local
354 if (!mdev) in mt7996_mmio_probe()
357 dev = container_of(mdev, struct mt7996_dev, mt76); in mt7996_mmio_probe()
[all …]

1234567