Home
last modified time | relevance | path

Searched refs:bf_reg_size (Results 1 – 7 of 7) sorted by relevance

/drivers/net/ethernet/mellanox/mlx4/
Dpd.c223 bf->buf_size = dev->caps.bf_reg_size / 2; in mlx4_bf_alloc()
224 bf->reg = uar->bf_map + idx * dev->caps.bf_reg_size; in mlx4_bf_alloc()
255 idx = (bf->reg - bf->uar->bf_map) / dev->caps.bf_reg_size; in mlx4_bf_free()
Dfw.h98 int bf_reg_size; member
Dfw.c947 dev_cap->bf_reg_size = 1 << (field & 0x1f); in mlx4_QUERY_DEV_CAP()
949 if ((1 << (field & 0x3f)) > (PAGE_SIZE / dev_cap->bf_reg_size)) in mlx4_QUERY_DEV_CAP()
953 dev_cap->bf_reg_size = 0; in mlx4_QUERY_DEV_CAP()
1132 if (dev_cap->bf_reg_size > 0) in mlx4_dev_cap_dump()
1134 dev_cap->bf_reg_size, dev_cap->bf_regs_per_page); in mlx4_dev_cap_dump()
Dmain.c505 dev->caps.bf_reg_size = dev_cap->bf_reg_size; in mlx4_dev_cap()
722 (dev->caps.bf_reg_size ? MLX4_RESERVE_ETH_BF_QP : 0) | in mlx4_dev_cap()
1078 dev->caps.bf_reg_size) in mlx4_slave_cap()
1887 if (!dev->caps.bf_reg_size) in map_bf_area()
/drivers/net/ethernet/mellanox/mlx5/core/
Duar.c280 unsigned int bf_reg_size; in addr_to_dbi_in_syspage() local
282 bf_reg_size = 1 << MLX5_CAP_GEN(dev, log_bf_reg_size); in addr_to_dbi_in_syspage()
285 bfreg_idx = (((uintptr_t)bfreg->map % MLX5_ADAPTER_PAGE_SIZE) - MLX5_BF_OFFSET) / bf_reg_size; in addr_to_dbi_in_syspage()
/drivers/infiniband/hw/mlx4/
Dmain.c1104 resp_v3.bf_reg_size = dev->dev->caps.bf_reg_size; in mlx4_ib_alloc_ucontext()
1109 resp.bf_reg_size = dev->dev->caps.bf_reg_size; in mlx4_ib_alloc_ucontext()
1161 if (dev->dev->caps.bf_reg_size == 0) in mlx4_ib_mmap()
/drivers/infiniband/hw/mlx5/
Dmain.c1776 resp->bf_reg_size = 1 << MLX5_CAP_GEN(dev->mdev, in set_ucontext_resp()