Lines Matching refs:attr
123 int siw_query_device(struct ib_device *base_dev, struct ib_device_attr *attr,
131 memset(attr, 0, sizeof(*attr));
134 attr->atomic_cap = 0;
135 attr->device_cap_flags = IB_DEVICE_MEM_MGT_EXTENSIONS;
136 attr->kernel_cap_flags = IBK_ALLOW_USER_UNREG;
137 attr->max_cq = sdev->attrs.max_cq;
138 attr->max_cqe = sdev->attrs.max_cqe;
139 attr->max_fast_reg_page_list_len = SIW_MAX_SGE_PBL;
140 attr->max_mr = sdev->attrs.max_mr;
141 attr->max_mw = sdev->attrs.max_mw;
142 attr->max_mr_size = ~0ull;
143 attr->max_pd = sdev->attrs.max_pd;
144 attr->max_qp = sdev->attrs.max_qp;
145 attr->max_qp_init_rd_atom = sdev->attrs.max_ird;
146 attr->max_qp_rd_atom = sdev->attrs.max_ord;
147 attr->max_qp_wr = sdev->attrs.max_qp_wr;
148 attr->max_recv_sge = sdev->attrs.max_sge;
149 attr->max_res_rd_atom = sdev->attrs.max_qp * sdev->attrs.max_ird;
150 attr->max_send_sge = sdev->attrs.max_sge;
151 attr->max_sge_rd = sdev->attrs.max_sge_rd;
152 attr->max_srq = sdev->attrs.max_srq;
153 attr->max_srq_sge = sdev->attrs.max_srq_sge;
154 attr->max_srq_wr = sdev->attrs.max_srq_wr;
155 attr->page_size_cap = PAGE_SIZE;
156 attr->vendor_id = SIW_VENDOR_ID;
157 attr->vendor_part_id = sdev->vendor_part_id;
159 addrconf_addr_eui48((u8 *)&attr->sys_image_guid,
166 struct ib_port_attr *attr)
171 memset(attr, 0, sizeof(*attr));
173 rv = ib_get_eth_speed(base_dev, port, &attr->active_speed,
174 &attr->active_width);
175 attr->gid_tbl_len = 1;
176 attr->max_msg_sz = -1;
177 attr->max_mtu = ib_mtu_int_to_enum(sdev->netdev->mtu);
178 attr->active_mtu = ib_mtu_int_to_enum(sdev->netdev->mtu);
179 attr->phys_state = sdev->state == IB_PORT_ACTIVE ?
181 attr->port_cap_flags = IB_PORT_CM_SUP | IB_PORT_DEVICE_MGMT_SUP;
182 attr->state = sdev->state;
186 * attr->lid = 0;
187 * attr->bad_pkey_cntr = 0;
188 * attr->qkey_viol_cntr = 0;
189 * attr->sm_lid = 0;
190 * attr->lmc = 0;
191 * attr->max_vl_num = 0;
192 * attr->sm_sl = 0;
193 * attr->subnet_timeout = 0;
194 * attr->init_type_repy = 0;
202 struct ib_port_attr attr;
203 int rv = siw_query_port(base_dev, port, &attr);
208 port_immutable->gid_tbl_len = attr.gid_tbl_len;
541 int siw_verbs_modify_qp(struct ib_qp *base_qp, struct ib_qp_attr *attr,
560 if (attr->qp_access_flags & IB_ACCESS_REMOTE_READ)
562 if (attr->qp_access_flags & IB_ACCESS_REMOTE_WRITE)
564 if (attr->qp_access_flags & IB_ACCESS_MW_BIND)
569 ib_qp_state_to_string[attr->qp_state]);
571 new_attrs.state = ib_qp_state_to_siw_qp_state[attr->qp_state];
1127 * @attr: Initial CQ attributes
1131 int siw_create_cq(struct ib_cq *base_cq, const struct ib_cq_init_attr *attr,
1136 int rv, size = attr->cqe;
1138 if (attr->flags)
1595 struct ib_srq_attr *attrs = &init_attrs->attr;