Home
last modified time | relevance | path

Searched refs:dev (Results 76 – 100 of 5879) sorted by relevance

12345678910>>...236

/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/
H A Dmt7615.h158 struct mt7615_dev *dev; member
207 #define mt7615_mcu_add_tx_ba(dev, ...) (dev)->mcu_ops->add_tx_ba((dev), __VA_ARGS__) argument
208 #define mt7615_mcu_add_rx_ba(dev, ...) (dev)->mcu_ops->add_rx_ba((dev), __VA_ARGS__) argument
212 #define mt7615_mcu_add_beacon(dev, ...) (dev)->mcu_ops->add_beacon_offload((dev), __VA_ARGS__) argument
213 #define mt7615_mcu_set_pm(dev, ...) (dev)->mcu_ops->set_pm_state((dev), __VA_ARGS__) argument
214 #define mt7615_mcu_set_drv_ctrl(dev) (dev)->mcu_ops->set_drv_ctrl((dev)) argument
215 #define mt7615_mcu_set_fw_ctrl(dev) (dev)->mcu_ops->set_fw_ctrl((dev)) argument
216 #define mt7615_mcu_set_sta_decap_offload(dev, ...) (dev)->mcu_ops->set_sta_decap_offload((dev), __V… argument
417 if (is_mt7663(&dev->mt76) && mt7615_firmware_offload(dev)) in mt7615_wtbl_size()
424 mt76_connac_mutex_acquire(&(dev)->mt76, &(dev)->pm)
[all …]
H A Dusb.c92 mt76u_stop_tx(&dev->mt76); in mt7663u_stop()
103 struct mt7615_dev *dev; in mt7663u_init_work() local
106 if (mt7663u_mcu_init(dev)) in mt7663u_init_work()
109 mt7615_init_work(dev); in mt7663u_init_work()
137 struct mt7615_dev *dev; in mt7663u_probe() local
148 mdev = mt76_alloc_device(&usb_intf->dev, sizeof(*dev), ops, &drv_ops); in mt7663u_probe()
160 dev->ops = ops; in mt7663u_probe()
197 mt76_free_device(&dev->mt76); in mt7663u_probe()
210 mt7663u_cleanup(dev); in mt7663u_disconnect()
232 mt76u_stop_rx(&dev->mt76); in mt7663u_suspend()
[all …]
H A Dusb_sdio.c89 mt76_wr(dev, MT_WTBL_RIUCR1, in mt7663_usb_sdio_set_rates()
94 mt76_wr(dev, MT_WTBL_RIUCR2, in mt7663_usb_sdio_set_rates()
135 struct mt7615_dev *dev; in mt7663_usb_sdio_rate_work() local
160 mt7615_mutex_acquire(dev); in mt7663_usb_sdio_tx_status_data()
161 mt7615_mac_sta_poll(dev); in mt7663_usb_sdio_tx_status_data()
162 mt7615_mutex_release(dev); in mt7663_usb_sdio_tx_status_data()
301 rcu_assign_pointer(dev->mt76.wcid[idx], &dev->mt76.global_wcid); in mt7663_usb_sdio_init_hardware()
313 mt7615_init_device(dev); in mt7663_usb_sdio_register_device()
323 if (dev->mt76.usb.sg_en) in mt7663_usb_sdio_register_device()
343 mt7615_init_txpower(dev, &dev->mphy.sband_2g.sband); in mt7663_usb_sdio_register_device()
[all …]
H A Dmmio.c88 struct mt7615_dev *dev = from_tasklet(dev, t, mt76.irq_tasklet); in mt7615_irq_tasklet() local
98 trace_dev_irq(&dev->mt76, intr, dev->mt76.mmio.irqmask); in mt7615_irq_tasklet()
129 dev->reset_state = mcu_int; in mt7615_irq_tasklet()
130 queue_work(dev->mt76.wq, &dev->reset_work); in mt7615_irq_tasklet()
131 wake_up(&dev->reset_wait); in mt7615_irq_tasklet()
188 struct mt7615_dev *dev; in mt7615_mmio_probe() local
204 dev->reg_map = map; in mt7615_mmio_probe()
205 dev->ops = ops; in mt7615_mmio_probe()
210 dev->bus_ops = dev->mt76.bus; in mt7615_mmio_probe()
211 bus_ops = devm_kmemdup(dev->mt76.dev, dev->bus_ops, sizeof(*bus_ops), in mt7615_mmio_probe()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt76x0/
H A Dusb_mcu.c30 dev_dbg(dev->mt76.dev, "loading FW - ILM %u + IVB %u\n", in mt76x0u_upload_firmware()
39 dev_dbg(dev->mt76.dev, "loading FW - DLM %u\n", dlm_len); in mt76x0u_upload_firmware()
54 dev_err(dev->mt76.dev, "Firmware failed to start\n"); in mt76x0u_upload_firmware()
59 dev_dbg(dev->mt76.dev, "Firmware running!\n"); in mt76x0u_upload_firmware()
75 err = firmware_request_nowarn(fw, MT7610E_FIRMWARE, dev->mt76.dev); in mt76x0_get_firmware()
77 dev_info(dev->mt76.dev, "%s not found, switching to %s", in mt76x0_get_firmware()
80 dev->mt76.dev); in mt76x0_get_firmware()
118 dev_dbg(dev->mt76.dev, in mt76x0u_load_firmware()
125 mt76_wr(dev, 0x1004, 0x2c); in mt76x0u_load_firmware()
130 mt76x02u_mcu_fw_reset(dev); in mt76x0u_load_firmware()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmt792x_mac.c41 struct mt792x_dev *dev = phy->dev; in mt792x_mac_set_timeing() local
83 struct mt792x_dev *dev = phy->dev; in mt792x_mac_update_mib_stats() local
198 struct mt792x_dev *dev = phy->dev; in mt792x_mac_reset_counters() local
228 struct mt792x_dev *dev = container_of(mphy->dev, struct mt792x_dev, mt76); in mt792x_phy_update_channel() local
259 struct mt792x_dev *dev = container_of(mphy->dev, struct mt792x_dev, mt76); in mt792x_update_channel() local
276 if (!dev->hw_init_done) in mt792x_reset()
285 queue_work(dev->mt76.wq, &dev->reset_work); in mt792x_reset()
325 mphy = dev->phy.mt76; in mt792x_pm_wake_work()
360 mphy = dev->phy.mt76; in mt792x_pm_power_save_work()
365 dev->fw_assert) in mt792x_pm_power_save_work()
[all …]
H A Dmt76.h1002 #define __mt76_rr(dev, ...) (dev)->bus->rr((dev), __VA_ARGS__) argument
1003 #define __mt76_wr(dev, ...) (dev)->bus->wr((dev), __VA_ARGS__) argument
1004 #define __mt76_rmw(dev, ...) (dev)->bus->rmw((dev), __VA_ARGS__) argument
1005 #define __mt76_wr_copy(dev, ...) (dev)->bus->write_copy((dev), __VA_ARGS__) argument
1006 #define __mt76_rr_copy(dev, ...) (dev)->bus->read_copy((dev), __VA_ARGS__) argument
1011 #define mt76_rr(dev, ...) (dev)->mt76.bus->rr(&((dev)->mt76), __VA_ARGS__) argument
1012 #define mt76_wr(dev, ...) (dev)->mt76.bus->wr(&((dev)->mt76), __VA_ARGS__) argument
1013 #define mt76_rmw(dev, ...) (dev)->mt76.bus->rmw(&((dev)->mt76), __VA_ARGS__) argument
1016 #define mt76_wr_rp(dev, ...) (dev)->mt76.bus->wr_rp(&((dev)->mt76), __VA_ARGS__) argument
1017 #define mt76_rd_rp(dev, ...) (dev)->mt76.bus->rd_rp(&((dev)->mt76), __VA_ARGS__) argument
[all …]
H A Dmt76x02_phy.c100 mt76_wr(dev, MT_TX_PWR_CFG_0, in mt76x02_phy_set_txpower()
103 mt76_wr(dev, MT_TX_PWR_CFG_1, in mt76x02_phy_set_txpower()
106 mt76_wr(dev, MT_TX_PWR_CFG_2, in mt76x02_phy_set_txpower()
109 mt76_wr(dev, MT_TX_PWR_CFG_3, in mt76x02_phy_set_txpower()
112 mt76_wr(dev, MT_TX_PWR_CFG_4, in mt76x02_phy_set_txpower()
114 mt76_wr(dev, MT_TX_PWR_CFG_7, in mt76x02_phy_set_txpower()
187 dev->cal.agc_lowest_gain = dev->cal.agc_gain_adjust >= limit; in mt76x02_phy_adjust_vga_gain()
195 dev->cal.agc_gain_init[0] = mt76_get_field(dev, MT_BBP(AGC, 8), in mt76x02_init_agc_gain()
197 dev->cal.agc_gain_init[1] = mt76_get_field(dev, MT_BBP(AGC, 9), in mt76x02_init_agc_gain()
199 memcpy(dev->cal.agc_gain_cur, dev->cal.agc_gain_init, in mt76x02_init_agc_gain()
[all …]
/freebsd/sys/dev/drm2/
H A DdrmP.h590 struct drm_device *dev; member
886 struct drm_device *dev,
935 struct drm_device *dev; member
1144 return dev->driver->bus->get_irq(dev); in drm_dev_to_irq()
1465 struct drm_device *dev = obj->dev; in drm_gem_object_unreference_unlocked() local
1466 DRM_LOCK(dev); in drm_gem_object_unreference_unlocked()
1468 DRM_UNLOCK(dev); in drm_gem_object_unreference_unlocked()
1618 #define DRM_LOCK_ASSERT(dev) sx_assert(&(dev)->dev_struct_lock, SA_XLOCKED) argument
1619 #define DRM_UNLOCK_ASSERT(dev) sx_assert(&(dev)->dev_struct_lock, SA_UNLOCKED) argument
1654 DRM_UNLOCK(dev); \
[all …]
/freebsd/sys/arm64/rockchip/
H A Drk3568_pcie.c89 device_t dev; member
136 rk3568_pcie_init_soc(device_t dev) in rk3568_pcie_init_soc() argument
212 if ((err = pci_dw_init(dev))) in rk3568_pcie_init_soc()
231 rk3568_pcie_detach(device_t dev) in rk3568_pcie_detach() argument
267 rk3568_pcie_attach(device_t dev) in rk3568_pcie_attach() argument
272 sc->dev = dev; in rk3568_pcie_attach()
273 sc->node = ofw_bus_get_node(dev); in rk3568_pcie_attach()
365 return (bus_generic_attach(dev)); in rk3568_pcie_attach()
367 rk3568_pcie_detach(dev); in rk3568_pcie_attach()
372 rk3568_pcie_probe(device_t dev) in rk3568_pcie_probe() argument
[all …]
/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_pd.c81 if (mlx4_is_mfunc(dev)) { in mlx4_xrcd_alloc()
106 if (mlx4_is_mfunc(dev)) { in mlx4_xrcd_free()
114 __mlx4_xrcd_free(dev, xrcdn); in mlx4_xrcd_free()
124 dev->caps.reserved_pds, 0); in mlx4_init_pd_table()
153 if (mlx4_is_slave(dev)) in mlx4_uar_alloc()
235 mlx4_uar_free(dev, uar); in mlx4_bf_alloc()
263 mlx4_uar_free(dev, bf->uar); in mlx4_bf_free()
276 mlx4_dbg(dev, "uar_page_shift = %d\n", dev->uar_page_shift); in mlx4_init_uar_table()
277 mlx4_dbg(dev, "Effective reserved_uars=%d\n", dev->caps.reserved_uars); in mlx4_init_uar_table()
287 dev->caps.num_uars, dev->caps.num_uars - 1, in mlx4_init_uar_table()
[all …]
/freebsd/sys/dev/ocs_fc/
H A Docs_pci.c85 ocs_pci_probe(device_t dev) in ocs_pci_probe() argument
195 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
204 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
218 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
223 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
228 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
233 if (0 == resource_int_value(device_get_name(ocs->dev), device_get_unit(ocs->dev), in ocs_setup_params()
523 ocs->dev = dev; in ocs_pci_attach()
534 pci_get_bus(dev), pci_get_slot(dev), pci_get_function(dev)); in ocs_pci_attach()
578 pci_get_class(dev), in ocs_pci_attach()
[all …]
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_eq.c248 dev->priv.eq_table.cb(dev, eqe->type, &eqe->data)) { in mlx5_eq_int()
294 if (dev->event) in mlx5_eq_int()
295 dev->event(dev, port_subtype_event(eqe->sub_type), in mlx5_eq_int()
311 if (dev->event) in mlx5_eq_int()
312 dev->event(dev, in mlx5_eq_int()
356 dev->event(dev, in mlx5_eq_int()
403 struct mlx5_core_dev *dev = eq->dev; in mlx5_msix_handler() local
471 eq->dev = dev; in mlx5_create_map_eq()
773 mlx5_eq_int(dev, &dev->priv.eq_table.cmd_eq); in mlx5_poll_interrupts()
774 mlx5_eq_int(dev, &dev->priv.eq_table.async_eq); in mlx5_poll_interrupts()
[all …]
H A Dmlx5_fw.c59 memcpy(dev->board_id, in mlx5_query_board_id()
116 return mlx5_query_qcam_reg(dev, dev->caps.qcam, in mlx5_get_qcam_reg()
123 return mlx5_query_pcam_reg(dev, dev->caps.pcam, in mlx5_get_pcam_reg()
130 return mlx5_query_mcam_reg(dev, dev->caps.mcam, in mlx5_get_mcam_reg()
149 if (MLX5_CAP_GEN(dev, pg)) { in mlx5_query_hca_caps()
161 if (MLX5_CAP_GEN(dev, roce)) { in mlx5_query_hca_caps()
207 if (MLX5_CAP_GEN(dev, qos)) { in mlx5_query_hca_caps()
214 err = mlx5_get_qcam_reg(dev); in mlx5_query_hca_caps()
220 err = mlx5_get_mcam_reg(dev); in mlx5_query_hca_caps()
614 .psid = dev->board_id, in mlx5_firmware_flash()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dmmio.c426 dev->bus_ops->rmw(&dev->mt76, l1_remap, in mt7915_reg_map_l1()
430 dev->bus_ops->rr(&dev->mt76, l1_remap); in mt7915_reg_map_l1()
443 dev->bus_ops->rmw(&dev->mt76, MT_HIF_REMAP_L2, in mt7915_reg_map_l2()
448 dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L2); in mt7915_reg_map_l2()
476 dev_err(dev->mt76.dev, "err: reg_map is null\n"); in __mt7915_reg_addr()
498 if (dev_is_pci(dev->mt76.dev) && in __mt7915_reg_addr()
725 wed->wlan.base = devm_ioremap(dev->mt76.dev, in mt7915_mmio_wed_init()
799 dev->mt76.dma_dev = wed->dev; in mt7915_mmio_wed_init()
845 dev->bus_ops = dev->mt76.bus; in mt7915_mmio_init()
846 bus_ops = devm_kmemdup(dev->mt76.dev, dev->bus_ops, sizeof(*bus_ops), in mt7915_mmio_init()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Ddma-mapping.h121 if (!dev->dma_priv || !dma_supported(dev, dma_mask)) in dma_set_mask()
131 if (!dev->dma_priv || !dma_supported(dev, dma_mask)) in dma_set_coherent_mask()
142 r = dma_set_mask(dev, dma_mask); in dma_set_mask_and_coherent()
144 dma_set_coherent_mask(dev, dma_mask); in dma_set_mask_and_coherent()
176 linux_dma_unmap(dev, dma_addr, size); in dma_free_coherent()
220 linuxkpi_dma_sync(dev, dma, size, op); in dma_sync_single_for_cpu()
233 linuxkpi_dma_sync(dev, dma, size, op); in dma_sync_single_for_cpu()
263 linuxkpi_dma_sync(dev, dma, size, op); in dma_sync_single_for_device()
314 if (!dma_mapping_error(dev, dma)) in _dma_map_single_attrs()
326 linux_dma_unmap(dev, dma, size); in _dma_unmap_single_attrs()
[all …]
/freebsd/usr.sbin/bhyve/
H A Dtpm_device.c114 if (dev->ppi != NULL && dev->ppi->deinit != NULL) in tpm_device_destroy()
115 dev->ppi->deinit(dev->ppi_sc); in tpm_device_destroy()
116 if (dev->intf != NULL && dev->intf->deinit != NULL) in tpm_device_destroy()
117 dev->intf->deinit(dev->intf_sc); in tpm_device_destroy()
118 if (dev->emul != NULL && dev->emul->deinit != NULL) in tpm_device_destroy()
119 dev->emul->deinit(dev->emul_sc); in tpm_device_destroy()
152 dev = calloc(1, sizeof(*dev)); in tpm_device_create()
160 error = acpi_device_create(&dev->acpi_dev, dev, dev->vm_ctx, in tpm_device_create()
180 error = dev->emul->init(&dev->emul_sc, nvl); in tpm_device_create()
200 error = dev->intf->init(&dev->intf_sc, dev->emul, dev->emul_sc, in tpm_device_create()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7603/
H A Deeprom.c51 dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, len, GFP_KERNEL); in mt7603_efuse_init()
52 dev->mt76.otp.size = len; in mt7603_efuse_init()
53 if (!dev->mt76.otp.data) in mt7603_efuse_init()
56 buf = dev->mt76.otp.data; in mt7603_efuse_init()
104 struct device_node *np = dev->mt76.dev->of_node; in mt7603_apply_cal_free_data()
115 if (is_mt7628(dev)) in mt7603_apply_cal_free_data()
165 if (dev->mt76.otp.data) { in mt7603_eeprom_init()
167 mt7603_apply_cal_free_data(dev, dev->mt76.otp.data); in mt7603_eeprom_init()
169 memcpy(dev->mt76.eeprom.data, dev->mt76.otp.data, in mt7603_eeprom_init()
178 dev->mphy.antenna_mask = 3; in mt7603_eeprom_init()
[all …]
/freebsd/sys/dev/mlx5/mlx5_lib/
H A Dmlx5_gid.c42 ida_init(&dev->roce.reserved_gids.ida); in mlx5_init_reserved_gids()
43 dev->roce.reserved_gids.start = tblsz; in mlx5_init_reserved_gids()
44 dev->roce.reserved_gids.count = 0; in mlx5_init_reserved_gids()
50 dev->roce.reserved_gids.start = 0; in mlx5_cleanup_reserved_gids()
51 dev->roce.reserved_gids.count = 0; in mlx5_cleanup_reserved_gids()
74 dev->roce.reserved_gids.count, in mlx5_core_reserve_gids()
75 dev->roce.reserved_gids.start); in mlx5_core_reserve_gids()
88 dev->roce.reserved_gids.count, in mlx5_core_unreserve_gids()
89 dev->roce.reserved_gids.start); in mlx5_core_unreserve_gids()
95 dev->roce.reserved_gids.count; in mlx5_core_reserved_gid_alloc()
[all …]
/freebsd/sys/dev/agp/
H A Dagp_via.c65 agp_via_match(device_t dev) in agp_via_match() argument
71 if (agp_find_caps(dev) == 0) in agp_via_match()
143 agp_via_probe(device_t dev) in agp_via_probe() argument
149 desc = agp_via_match(dev); in agp_via_probe()
159 agp_via_attach(device_t dev) in agp_via_attach() argument
170 capid = pci_read_config(dev, agp_find_caps(dev) + AGP_CAPID, 4); in agp_via_attach()
192 if (AGP_SET_APERTURE(dev, AGP_GET_APERTURE(dev) / 2)) { in agp_via_attach()
193 agp_generic_detach(dev); in agp_via_attach()
223 agp_via_detach(device_t dev) in agp_via_detach() argument
227 agp_free_cdev(dev); in agp_via_detach()
[all …]
H A Dagp_apple.c68 agp_apple_probe(device_t dev) in agp_apple_probe() argument
78 if (agp_find_caps(dev) == 0) in agp_apple_probe()
85 switch (pci_get_devid(dev)) { in agp_apple_probe()
110 agp_apple_attach(device_t dev) in agp_apple_attach() argument
118 switch (pci_get_devid(dev)) { in agp_apple_attach()
147 agp_generic_detach(dev); in agp_apple_attach()
157 AGP_FLUSH_TLB(dev); in agp_apple_attach()
163 agp_apple_detach(device_t dev) in agp_apple_detach() argument
167 agp_free_cdev(dev); in agp_apple_detach()
179 AGP_SET_APERTURE(dev, 0); in agp_apple_detach()
[all …]
/freebsd/sys/dev/etherswitch/arswitch/
H A Darswitch_reg.c88 arswitch_readreg16(device_t dev, int addr) in arswitch_readreg16() argument
92 arswitch_split_setpage(dev, addr, &phy, &reg); in arswitch_readreg16()
145 sc = device_get_softc(dev); in arswitch_reg_write32()
150 r = MDIO_WRITEREG(device_get_parent(dev), in arswitch_reg_write32()
152 r |= MDIO_WRITEREG(device_get_parent(dev), in arswitch_reg_write32()
155 r = MDIO_WRITEREG(device_get_parent(dev), in arswitch_reg_write32()
157 r |= MDIO_WRITEREG(device_get_parent(dev), in arswitch_reg_write32()
165 arswitch_readreg(device_t dev, int addr) in arswitch_readreg() argument
190 arswitch_readreg_lsb(device_t dev, int addr) in arswitch_readreg_lsb() argument
193 return (arswitch_readreg16(dev, addr)); in arswitch_readreg_lsb()
[all …]
/freebsd/sys/dev/dpaa2/
H A Ddpaa2_mac.c102 dpaa2_mac_probe(device_t dev) in dpaa2_mac_probe() argument
110 dpaa2_mac_attach(device_t dev) in dpaa2_mac_attach() argument
113 device_t child = dev; in dpaa2_mac_attach()
123 sc->dev = dev; in dpaa2_mac_attach()
174 error = dpaa2_mac_setup_irq(dev); in dpaa2_mac_attach()
194 dpaa2_mac_detach(device_t dev) in dpaa2_mac_detach() argument
204 dpaa2_mac_setup_irq(device_t dev) in dpaa2_mac_setup_irq() argument
207 device_t child = dev; in dpaa2_mac_setup_irq()
290 val = pci_msi_count(sc->dev); in dpaa2_mac_setup_msi()
310 device_t dev = sc->dev; in dpaa2_mac_intr() local
[all …]
/freebsd/sys/dev/pci/
H A Dpci_private.h59 int pci_attach(device_t dev);
60 int pci_attach_common(device_t dev);
61 int pci_detach(device_t dev);
62 int pci_rescan_method(device_t dev);
64 int pci_ea_is_enabled(device_t dev, int rid);
65 int pci_print_child(device_t dev, device_t child);
66 void pci_probe_nomatch(device_t dev, device_t child);
71 int pci_setup_intr(device_t dev, device_t child,
74 int pci_teardown_intr(device_t dev, device_t child,
142 int pci_resume(device_t dev);
[all …]
/freebsd/sys/dev/mthca/
H A Dmthca_memfree.c81 dma_free_coherent(&dev->pdev->dev, chunk->mem[i].length, in mthca_free_icm_coherent()
173 ret = mthca_alloc_icm_coherent(&dev->pdev->dev, in mthca_alloc_icm()
555 mthca_UNMAP_ICM(dev, mthca_uarc_virt(dev, uar, i), 1); in mthca_cleanup_user_db_tab()
634 mthca_uarc_virt(dev, &dev->driver_uar, i)); in mthca_alloc_db()
636 dma_free_coherent(&dev->pdev->dev, MTHCA_ICM_PAGE_SIZE, in mthca_alloc_db()
681 mthca_UNMAP_ICM(dev, mthca_uarc_virt(dev, &dev->driver_uar, i), 1); in mthca_free_db()
683 dma_free_coherent(&dev->pdev->dev, MTHCA_ICM_PAGE_SIZE, in mthca_free_db()
705 dev->db_tab = kmalloc(sizeof *dev->db_tab, GFP_KERNEL); in mthca_init_db_tab()
713 dev->db_tab->min_group2 = dev->db_tab->npages - 1; in mthca_init_db_tab()
715 dev->db_tab->page = kmalloc(dev->db_tab->npages * in mthca_init_db_tab()
[all …]

12345678910>>...236