Lines Matching full:props

54 			    struct ib_port_modify *props)  in c4iw_modify_port()  argument
292 c4iw_query_device(struct ib_device *ibdev, struct ib_device_attr *props, in c4iw_query_device() argument
298 CTR3(KTR_IW_CXGBE, "%s ibdev %p, props %p", __func__, ibdev, props); in c4iw_query_device()
303 memset(props, 0, sizeof *props); in c4iw_query_device()
304 memcpy(&props->sys_image_guid, sc->port[0]->vi[0].hw_addr, in c4iw_query_device()
306 props->hw_ver = sc->params.chipid; in c4iw_query_device()
307 props->fw_ver = sc->params.fw_vers; in c4iw_query_device()
308 props->device_cap_flags = dev->device_cap_flags; in c4iw_query_device()
309 props->page_size_cap = T4_PAGESIZE_MASK; in c4iw_query_device()
310 props->vendor_id = pci_get_vendor(sc->dev); in c4iw_query_device()
311 props->vendor_part_id = pci_get_device(sc->dev); in c4iw_query_device()
312 props->max_mr_size = T4_MAX_MR_SIZE; in c4iw_query_device()
313 props->max_qp = sc->vres.qp.size / 2; in c4iw_query_device()
314 props->max_qp_wr = dev->rdev.hw_queue.t4_max_qp_depth; in c4iw_query_device()
315 props->max_sge = T4_MAX_RECV_SGE; in c4iw_query_device()
316 props->max_sge_rd = 1; in c4iw_query_device()
317 props->max_res_rd_atom = sc->params.max_ird_adapter; in c4iw_query_device()
318 props->max_qp_rd_atom = min(sc->params.max_ordird_qp, in c4iw_query_device()
320 props->max_qp_init_rd_atom = props->max_qp_rd_atom; in c4iw_query_device()
321 props->max_cq = sc->vres.qp.size; in c4iw_query_device()
322 props->max_cqe = dev->rdev.hw_queue.t4_max_cq_depth; in c4iw_query_device()
323 props->max_mr = c4iw_num_stags(&dev->rdev); in c4iw_query_device()
324 props->max_pd = T4_MAX_NUM_PD; in c4iw_query_device()
325 props->local_ca_ack_delay = 0; in c4iw_query_device()
326 props->max_fast_reg_page_list_len = t4_max_fr_depth(&dev->rdev, use_dsgl); in c4iw_query_device()
335 c4iw_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *props) in c4iw_query_port() argument
342 CTR4(KTR_IW_CXGBE, "%s ibdev %p, port %d, props %p", __func__, ibdev, in c4iw_query_port()
343 port, props); in c4iw_query_port()
352 memset(props, 0, sizeof(struct ib_port_attr)); in c4iw_query_port()
353 props->max_mtu = IB_MTU_4096; in c4iw_query_port()
355 props->active_mtu = IB_MTU_4096; in c4iw_query_port()
357 props->active_mtu = IB_MTU_2048; in c4iw_query_port()
359 props->active_mtu = IB_MTU_1024; in c4iw_query_port()
361 props->active_mtu = IB_MTU_512; in c4iw_query_port()
363 props->active_mtu = IB_MTU_256; in c4iw_query_port()
364 props->state = pi->link_cfg.link_ok ? IB_PORT_ACTIVE : IB_PORT_DOWN; in c4iw_query_port()
365 props->port_cap_flags = in c4iw_query_port()
371 props->gid_tbl_len = 1; in c4iw_query_port()
372 props->pkey_tbl_len = 1; in c4iw_query_port()
373 props->active_width = 2; in c4iw_query_port()
374 props->active_speed = 2; in c4iw_query_port()
375 props->max_msg_sz = -1; in c4iw_query_port()