Lines Matching defs:port_num
654 * @port_num:Port number to query
661 u8 port_num,
667 if (port_num < rdma_start_port(device) || port_num > rdma_end_port(device))
671 err = device->query_port(device, port_num, port_attr);
675 if (rdma_port_get_link_layer(device, port_num) != IB_LINK_LAYER_INFINIBAND)
678 err = ib_query_gid(device, port_num, 0, &gid, NULL);
690 * @port_num:Port number to query
699 u8 port_num, int index, union ib_gid *gid,
702 if (rdma_cap_roce_gid_table(device, port_num))
703 return ib_get_cached_gid(device, port_num, index, gid, attr);
708 return device->query_gid(device, port_num, index, gid);
803 * @port_num:Port number to query
810 u8 port_num, u16 index, u16 *pkey)
812 return device->query_pkey(device, port_num, index, pkey);
840 * @port_num: The number of the port to modify.
849 u8 port_num, int port_modify_mask,
855 if (port_num < rdma_start_port(device) || port_num > rdma_end_port(device))
858 return device->modify_port(device, port_num, port_modify_mask,
870 * @port_num: The port number of the device where the GID value was found.
876 u8 *port_num, u16 *index)
885 *port_num = port;
898 *port_num = port;
914 * @port_num: The port number of the device to search for the PKey.
919 u8 port_num, u16 pkey, u16 *index)
925 for (i = 0; i < device->port_immutable[port_num].pkey_tbl_len; ++i) {
926 ret = ib_query_pkey(device, port_num, i, &tmp_pkey);