Searched refs:srqc (Results 1 – 2 of 2) sorted by relevance
/linux-6.1.9/drivers/infiniband/hw/mlx5/ |
D | srq_cmd.c | 40 static void set_srqc(void *srqc, struct mlx5_srq_attr *in) in set_srqc() argument 42 MLX5_SET(srqc, srqc, wq_signature, !!(in->flags in set_srqc() 44 MLX5_SET(srqc, srqc, log_page_size, in->log_page_size); in set_srqc() 45 MLX5_SET(srqc, srqc, log_rq_stride, in->wqe_shift); in set_srqc() 46 MLX5_SET(srqc, srqc, log_srq_size, in->log_size); in set_srqc() 47 MLX5_SET(srqc, srqc, page_offset, in->page_offset); in set_srqc() 48 MLX5_SET(srqc, srqc, lwm, in->lwm); in set_srqc() 49 MLX5_SET(srqc, srqc, pd, in->pd); in set_srqc() 50 MLX5_SET64(srqc, srqc, dbr_addr, in->db_record); in set_srqc() 51 MLX5_SET(srqc, srqc, xrcd, in->xrcd); in set_srqc() [all …]
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/ |
D | resource_tracker.c | 2712 static int srq_get_mtt_addr(struct mlx4_srq_context *srqc) in srq_get_mtt_addr() argument 2714 return be32_to_cpu(srqc->mtt_base_addr_l) & 0xfffffff8; in srq_get_mtt_addr() 3598 static int srq_get_mtt_size(struct mlx4_srq_context *srqc) in srq_get_mtt_size() argument 3600 int log_srq_size = (be32_to_cpu(srqc->state_logsize_srqn) >> 24) & 0xf; in srq_get_mtt_size() 3601 int log_rq_stride = srqc->logstride & 7; in srq_get_mtt_size() 3602 int page_shift = (srqc->log_page_size & 0x3f) + 12; in srq_get_mtt_size() 3620 struct mlx4_srq_context *srqc = inbox->buf; in mlx4_SW2HW_SRQ_wrapper() local 3621 int mtt_base = srq_get_mtt_addr(srqc) / dev->caps.mtt_entry_sz; in mlx4_SW2HW_SRQ_wrapper() 3623 if (srqn != (be32_to_cpu(srqc->state_logsize_srqn) & 0xffffff)) in mlx4_SW2HW_SRQ_wrapper() 3632 err = check_mtt_range(dev, slave, mtt_base, srq_get_mtt_size(srqc), in mlx4_SW2HW_SRQ_wrapper()
|