srqc 40 drivers/infiniband/hw/mlx5/srq_cmd.c static void set_srqc(void *srqc, struct mlx5_srq_attr *in) srqc 42 drivers/infiniband/hw/mlx5/srq_cmd.c MLX5_SET(srqc, srqc, wq_signature, !!(in->flags srqc 44 drivers/infiniband/hw/mlx5/srq_cmd.c MLX5_SET(srqc, srqc, log_page_size, in->log_page_size); srqc 45 drivers/infiniband/hw/mlx5/srq_cmd.c MLX5_SET(srqc, srqc, log_rq_stride, in->wqe_shift); srqc 46 drivers/infiniband/hw/mlx5/srq_cmd.c MLX5_SET(srqc, srqc, log_srq_size, in->log_size); srqc 47 drivers/infiniband/hw/mlx5/srq_cmd.c MLX5_SET(srqc, srqc, page_offset, in->page_offset); srqc 48 drivers/infiniband/hw/mlx5/srq_cmd.c MLX5_SET(srqc, srqc, lwm, in->lwm); srqc 49 drivers/infiniband/hw/mlx5/srq_cmd.c MLX5_SET(srqc, srqc, pd, in->pd); srqc 50 drivers/infiniband/hw/mlx5/srq_cmd.c MLX5_SET64(srqc, srqc, dbr_addr, in->db_record); srqc 51 drivers/infiniband/hw/mlx5/srq_cmd.c MLX5_SET(srqc, srqc, xrcd, in->xrcd); srqc 52 drivers/infiniband/hw/mlx5/srq_cmd.c MLX5_SET(srqc, srqc, cqn, in->cqn); srqc 68 drivers/infiniband/hw/mlx5/srq_cmd.c static void get_srqc(void *srqc, struct mlx5_srq_attr *in) srqc 70 drivers/infiniband/hw/mlx5/srq_cmd.c if (MLX5_GET(srqc, srqc, wq_signature)) srqc 72 drivers/infiniband/hw/mlx5/srq_cmd.c in->log_page_size = MLX5_GET(srqc, srqc, log_page_size); srqc 73 drivers/infiniband/hw/mlx5/srq_cmd.c in->wqe_shift = MLX5_GET(srqc, srqc, log_rq_stride); srqc 74 drivers/infiniband/hw/mlx5/srq_cmd.c in->log_size = MLX5_GET(srqc, srqc, log_srq_size); srqc 75 drivers/infiniband/hw/mlx5/srq_cmd.c in->page_offset = MLX5_GET(srqc, srqc, page_offset); srqc 76 drivers/infiniband/hw/mlx5/srq_cmd.c in->lwm = MLX5_GET(srqc, srqc, lwm); srqc 77 drivers/infiniband/hw/mlx5/srq_cmd.c in->pd = MLX5_GET(srqc, srqc, pd); srqc 78 drivers/infiniband/hw/mlx5/srq_cmd.c in->db_record = MLX5_GET64(srqc, srqc, dbr_addr); srqc 100 drivers/infiniband/hw/mlx5/srq_cmd.c void *srqc; srqc 113 drivers/infiniband/hw/mlx5/srq_cmd.c srqc = MLX5_ADDR_OF(create_srq_in, create_in, srq_context_entry); srqc 116 drivers/infiniband/hw/mlx5/srq_cmd.c set_srqc(srqc, in); srqc 168 drivers/infiniband/hw/mlx5/srq_cmd.c void *srqc; srqc 183 drivers/infiniband/hw/mlx5/srq_cmd.c srqc = MLX5_ADDR_OF(query_srq_out, srq_out, srq_context_entry); srqc 184 drivers/infiniband/hw/mlx5/srq_cmd.c get_srqc(srqc, out); srqc 185 drivers/infiniband/hw/mlx5/srq_cmd.c if (MLX5_GET(srqc, srqc, state) != MLX5_SRQC_STATE_GOOD) srqc 2711 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int srq_get_mtt_addr(struct mlx4_srq_context *srqc) srqc 2713 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c return be32_to_cpu(srqc->mtt_base_addr_l) & 0xfffffff8; srqc 3597 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int srq_get_mtt_size(struct mlx4_srq_context *srqc) srqc 3599 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int log_srq_size = (be32_to_cpu(srqc->state_logsize_srqn) >> 24) & 0xf; srqc 3600 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int log_rq_stride = srqc->logstride & 7; srqc 3601 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int page_shift = (srqc->log_page_size & 0x3f) + 12; srqc 3619 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c struct mlx4_srq_context *srqc = inbox->buf; srqc 3620 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int mtt_base = srq_get_mtt_addr(srqc) / dev->caps.mtt_entry_sz; srqc 3622 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (srqn != (be32_to_cpu(srqc->state_logsize_srqn) & 0xffffff)) srqc 3631 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = check_mtt_range(dev, slave, mtt_base, srq_get_mtt_size(srqc),