• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/mlx4/mlx4_ib/

Lines Matching refs:props

440 				struct ib_device_attr *props,
482 memset(props, 0, sizeof *props);
486 props->fw_ver = dev->dev->caps.fw_ver;
487 props->device_cap_flags = IB_DEVICE_CHANGE_PHY_PORT |
493 props->device_cap_flags |= IB_DEVICE_BAD_PKEY_CNTR;
495 props->device_cap_flags |= IB_DEVICE_BAD_QKEY_CNTR;
497 props->device_cap_flags |= IB_DEVICE_AUTO_PATH_MIG;
499 props->device_cap_flags |= IB_DEVICE_UD_AV_PORT_ENFORCE;
501 props->device_cap_flags |= IB_DEVICE_UD_IP_CSUM;
505 props->device_cap_flags |= IB_DEVICE_UD_TSO;
507 props->device_cap_flags |= IB_DEVICE_LOCAL_DMA_LKEY;
511 props->device_cap_flags |= IB_DEVICE_MEM_MGT_EXTENSIONS;
513 props->device_cap_flags |= IB_DEVICE_XRC;
515 props->device_cap_flags |= IB_DEVICE_MEM_WINDOW;
518 props->device_cap_flags |= IB_DEVICE_MEM_WINDOW_TYPE_2B;
520 props->device_cap_flags |= IB_DEVICE_MEM_WINDOW_TYPE_2A;
523 props->device_cap_flags |= IB_DEVICE_MANAGED_FLOW_STEERING;
525 props->device_cap_flags |= IB_DEVICE_RAW_IP_CSUM;
527 props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) &
529 props->vendor_part_id = dev->dev->persist->pdev->device;
530 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32));
531 memcpy(&props->sys_image_guid, out_mad->data + 4, 8);
533 props->max_mr_size = ~0ull;
534 props->page_size_cap = dev->dev->caps.page_size_cap;
535 props->max_qp = dev->dev->quotas.qp;
536 props->max_qp_wr = dev->dev->caps.max_wqes - MLX4_IB_SQ_MAX_SPARE;
537 props->max_sge = min(dev->dev->caps.max_sq_sg,
539 props->max_sge_rd = MLX4_MAX_SGE_RD;
540 props->max_cq = dev->dev->quotas.cq;
541 props->max_cqe = dev->dev->caps.max_cqes;
542 props->max_mr = dev->dev->quotas.mpt;
543 props->max_pd = dev->dev->caps.num_pds - dev->dev->caps.reserved_pds;
544 props->max_qp_rd_atom = dev->dev->caps.max_qp_dest_rdma;
545 props->max_qp_init_rd_atom = dev->dev->caps.max_qp_init_rdma;
546 props->max_res_rd_atom = props->max_qp_rd_atom * props->max_qp;
547 props->max_srq = dev->dev->quotas.srq;
548 props->max_srq_wr = dev->dev->caps.max_srq_wqes - 1;
549 props->max_srq_sge = dev->dev->caps.max_srq_sge;
550 props->max_fast_reg_page_list_len = MLX4_MAX_FAST_REG_PAGES;
551 props->local_ca_ack_delay = dev->dev->caps.local_ca_ack_delay;
552 props->atomic_cap = dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_ATOMIC ?
554 props->masked_atomic_cap = props->atomic_cap;
555 props->max_pkeys = dev->dev->caps.pkey_table_len[1];
556 props->max_mcast_grp = dev->dev->caps.num_mgms + dev->dev->caps.num_amgms;
557 props->max_mcast_qp_attach = dev->dev->caps.num_qp_per_mgm;
558 props->max_total_mcast_qp_attach = props->max_mcast_qp_attach *
559 props->max_mcast_grp;
560 props->max_map_per_fmr = dev->dev->caps.max_fmr_maps;
561 props->hca_core_clock = dev->dev->caps.hca_core_clock * 1000UL;
562 props->timestamp_mask = 0xFFFFFFFFFFFFULL;
597 struct ib_port_attr *props, int netw_view)
623 props->lid = be16_to_cpup((__be16 *) (out_mad->data + 16));
624 props->lmc = out_mad->data[34] & 0x7;
625 props->sm_lid = be16_to_cpup((__be16 *) (out_mad->data + 18));
626 props->sm_sl = out_mad->data[36] & 0xf;
627 props->state = out_mad->data[32] & 0xf;
628 props->phys_state = out_mad->data[33] >> 4;
629 props->port_cap_flags = be32_to_cpup((__be32 *) (out_mad->data + 20));
631 props->gid_tbl_len = out_mad->data[50];
633 props->gid_tbl_len = to_mdev(ibdev)->dev->caps.gid_table_len[port];
634 props->max_msg_sz = to_mdev(ibdev)->dev->caps.max_msg_sz;
635 props->pkey_tbl_len = to_mdev(ibdev)->dev->caps.pkey_table_len[port];
636 props->bad_pkey_cntr = be16_to_cpup((__be16 *) (out_mad->data + 46));
637 props->qkey_viol_cntr = be16_to_cpup((__be16 *) (out_mad->data + 48));
638 props->active_width = out_mad->data[31] & 0xf;
639 props->active_speed = out_mad->data[35] >> 4;
640 props->max_mtu = out_mad->data[41] & 0xf;
641 props->active_mtu = out_mad->data[36] >> 4;
642 props->subnet_timeout = out_mad->data[51] & 0x1f;
643 props->max_vl_num = out_mad->data[37] >> 4;
644 props->init_type_reply = out_mad->data[41] >> 4;
647 if (props->port_cap_flags & IB_PORT_EXTENDED_SPEEDS_SUP) {
652 props->active_speed = IB_SPEED_FDR;
655 props->active_speed = IB_SPEED_EDR;
661 if (props->active_speed == IB_SPEED_QDR) {
673 props->active_speed = IB_SPEED_FDR10;
677 if (props->state == IB_PORT_DOWN)
678 props->active_speed = IB_SPEED_SDR;
692 struct ib_port_attr *props, int netw_view)
713 props->active_width = (((u8 *)mailbox->buf)[5] == 0x40) ?
715 props->active_speed = IB_SPEED_QDR;
716 props->port_cap_flags = IB_PORT_CM_SUP | IB_PORT_IP_BASED_GIDS;
717 props->gid_tbl_len = mdev->dev->caps.gid_table_len[port];
718 props->max_msg_sz = mdev->dev->caps.max_msg_sz;
719 props->pkey_tbl_len = 1;
720 props->max_mtu = IB_MTU_4096;
721 props->max_vl_num = 2;
722 props->state = IB_PORT_DOWN;
723 props->phys_state = state_to_phys_state(props->state);
724 props->active_mtu = IB_MTU_256;
738 props->active_mtu = tmp ? min(props->max_mtu, tmp) : IB_MTU_256;
740 props->state = (netif_running(ndev) && netif_carrier_ok(ndev)) ?
742 props->phys_state = state_to_phys_state(props->state);
751 struct ib_port_attr *props, int netw_view)
755 memset(props, 0, sizeof *props);
758 ib_link_query_port(ibdev, port, props, netw_view) :
759 eth_link_query_port(ibdev, port, props, netw_view);
765 struct ib_port_attr *props)
768 return __mlx4_ib_query_port(ibdev, port, props, 0);
949 struct ib_device_modify *props)
964 memcpy(ibdev->node_desc, props->node_desc, IB_DEVICE_NODE_DESC_MAX);
975 memcpy(mailbox->buf, props->node_desc, IB_DEVICE_NODE_DESC_MAX);
1011 struct ib_port_modify *props)
1032 cap_mask = (attr.port_cap_flags | props->set_port_cap_mask) &
1033 ~props->clr_port_cap_mask;