Lines Matching refs:port_num
659 u8 port_num, in ib_query_port() argument
665 if (port_num < rdma_start_port(device) || port_num > rdma_end_port(device)) in ib_query_port()
669 err = device->query_port(device, port_num, port_attr); in ib_query_port()
673 if (rdma_port_get_link_layer(device, port_num) != IB_LINK_LAYER_INFINIBAND) in ib_query_port()
676 err = ib_query_gid(device, port_num, 0, &gid, NULL); in ib_query_port()
697 u8 port_num, int index, union ib_gid *gid, in ib_query_gid() argument
700 if (rdma_cap_roce_gid_table(device, port_num)) in ib_query_gid()
701 return ib_get_cached_gid(device, port_num, index, gid, attr); in ib_query_gid()
706 return device->query_gid(device, port_num, index, gid); in ib_query_gid()
786 u8 port_num, u16 index, u16 *pkey) in ib_query_pkey() argument
788 return device->query_pkey(device, port_num, index, pkey); in ib_query_pkey()
825 u8 port_num, int port_modify_mask, in ib_modify_port() argument
831 if (port_num < rdma_start_port(device) || port_num > rdma_end_port(device)) in ib_modify_port()
834 return device->modify_port(device, port_num, port_modify_mask, in ib_modify_port()
852 u8 *port_num, u16 *index) in ib_find_gid() argument
861 *port_num = port; in ib_find_gid()
874 *port_num = port; in ib_find_gid()
895 u8 port_num, u16 pkey, u16 *index) in ib_find_pkey() argument
901 for (i = 0; i < device->port_immutable[port_num].pkey_tbl_len; ++i) { in ib_find_pkey()
902 ret = ib_query_pkey(device, port_num, i, &tmp_pkey); in ib_find_pkey()