port_num          292 arch/mips/include/asm/octeon/cvmx-pip.h static inline void cvmx_pip_config_port(uint64_t port_num,
port_num          296 arch/mips/include/asm/octeon/cvmx-pip.h 	cvmx_write_csr(CVMX_PIP_PRT_CFGX(port_num), port_cfg.u64);
port_num          297 arch/mips/include/asm/octeon/cvmx-pip.h 	cvmx_write_csr(CVMX_PIP_PRT_TAGX(port_num), port_tag_cfg.u64);
port_num          367 arch/mips/include/asm/octeon/cvmx-pip.h static inline void cvmx_pip_get_port_status(uint64_t port_num, uint64_t clear,
port_num          389 arch/mips/include/asm/octeon/cvmx-pip.h 	stat0.u64 = cvmx_read_csr(CVMX_PIP_STAT0_PRTX(port_num));
port_num          390 arch/mips/include/asm/octeon/cvmx-pip.h 	stat1.u64 = cvmx_read_csr(CVMX_PIP_STAT1_PRTX(port_num));
port_num          391 arch/mips/include/asm/octeon/cvmx-pip.h 	stat2.u64 = cvmx_read_csr(CVMX_PIP_STAT2_PRTX(port_num));
port_num          392 arch/mips/include/asm/octeon/cvmx-pip.h 	stat3.u64 = cvmx_read_csr(CVMX_PIP_STAT3_PRTX(port_num));
port_num          393 arch/mips/include/asm/octeon/cvmx-pip.h 	stat4.u64 = cvmx_read_csr(CVMX_PIP_STAT4_PRTX(port_num));
port_num          394 arch/mips/include/asm/octeon/cvmx-pip.h 	stat5.u64 = cvmx_read_csr(CVMX_PIP_STAT5_PRTX(port_num));
port_num          395 arch/mips/include/asm/octeon/cvmx-pip.h 	stat6.u64 = cvmx_read_csr(CVMX_PIP_STAT6_PRTX(port_num));
port_num          396 arch/mips/include/asm/octeon/cvmx-pip.h 	stat7.u64 = cvmx_read_csr(CVMX_PIP_STAT7_PRTX(port_num));
port_num          397 arch/mips/include/asm/octeon/cvmx-pip.h 	stat8.u64 = cvmx_read_csr(CVMX_PIP_STAT8_PRTX(port_num));
port_num          398 arch/mips/include/asm/octeon/cvmx-pip.h 	stat9.u64 = cvmx_read_csr(CVMX_PIP_STAT9_PRTX(port_num));
port_num          400 arch/mips/include/asm/octeon/cvmx-pip.h 	    cvmx_read_csr(CVMX_PIP_STAT_INB_PKTSX(port_num));
port_num          402 arch/mips/include/asm/octeon/cvmx-pip.h 	    cvmx_read_csr(CVMX_PIP_STAT_INB_OCTSX(port_num));
port_num          404 arch/mips/include/asm/octeon/cvmx-pip.h 	    cvmx_read_csr(CVMX_PIP_STAT_INB_ERRSX(port_num));
port_num          578 arch/mips/include/asm/octeon/cvmx-pko.h static inline void cvmx_pko_get_port_status(uint64_t port_num, uint64_t clear,
port_num          586 arch/mips/include/asm/octeon/cvmx-pko.h 	pko_reg_read_idx.s.index = port_num;
port_num          592 arch/mips/include/asm/octeon/cvmx-pko.h 		pko_mem_count0.s.count = port_num;
port_num          599 arch/mips/include/asm/octeon/cvmx-pko.h 		pko_mem_count1.s.count = port_num;
port_num          605 arch/mips/include/asm/octeon/cvmx-pko.h 		pko_reg_read_idx.s.index = cvmx_pko_get_base_queue(port_num);
port_num          611 arch/mips/include/asm/octeon/cvmx-pko.h 		pko_reg_read_idx.s.index = cvmx_pko_get_base_queue(port_num);
port_num          272 arch/s390/include/asm/diag.h 	u32	port_num;
port_num          158 arch/um/drivers/port_kern.c void *port_data(int port_num)
port_num          168 arch/um/drivers/port_kern.c 		if (port->port == port_num)
port_num          177 arch/um/drivers/port_kern.c 	fd = port_listen_fd(port_num);
port_num          180 arch/um/drivers/port_kern.c 		       port_num, -fd);
port_num          186 arch/um/drivers/port_kern.c 		printk(KERN_ERR "Failed to get IRQ for port %d\n", port_num);
port_num          194 arch/um/drivers/port_kern.c 		  .port 	 	= port_num,
port_num          145 drivers/char/lp.c static int port_num[LP_NO];
port_num          951 drivers/char/lp.c 	port_num[nr] = port->number;
port_num          971 drivers/char/lp.c 			if (port_num[i] == -1)
port_num         1003 drivers/char/lp.c 		if (port_num[n] == port->number) {
port_num         1004 drivers/char/lp.c 			port_num[n] = -1;
port_num         1043 drivers/char/lp.c 		port_num[i] = -1;
port_num           97 drivers/dma/ti/cppi41.c 	unsigned int port_num;
port_num          693 drivers/dma/ti/cppi41.c 			WARN_ON((pd0 & 0x1f) != c->port_num);
port_num          803 drivers/dma/ti/cppi41.c 		cchan->port_num = i >> 1;
port_num          958 drivers/dma/ti/cppi41.c 	if (cchan->port_num != num[INFO_PORT])
port_num          971 drivers/dma/ti/cppi41.c 	if (WARN_ON(cchan->port_num >= ARRAY_SIZE(am335x_usb_queues_rx)))
port_num          974 drivers/dma/ti/cppi41.c 	cchan->q_num = queues[cchan->port_num].submit;
port_num          975 drivers/dma/ti/cppi41.c 	cchan->q_comp_num = queues[cchan->port_num].complete;
port_num           90 drivers/fpga/dfl-pci.c 	int port_num, bar, i, ret = 0;
port_num          123 drivers/fpga/dfl-pci.c 		port_num = FIELD_GET(FME_CAP_NUM_PORTS, v);
port_num          125 drivers/fpga/dfl-pci.c 		WARN_ON(port_num > MAX_DFL_FPGA_PORT_NUM);
port_num          127 drivers/fpga/dfl-pci.c 		for (i = 0; i < port_num; i++) {
port_num          275 drivers/gpu/drm/drm_dp_mst_topology.c 		buf[idx] = (req->u.port_num.port_number & 0xf) << 4;
port_num          365 drivers/gpu/drm/drm_dp_mst_topology.c 		buf[idx] = (req->u.port_num.port_number & 0xf) << 4;
port_num          735 drivers/gpu/drm/drm_dp_mst_topology.c static int build_dpcd_write(struct drm_dp_sideband_msg_tx *msg, u8 port_num, u32 offset, u8 num_bytes, u8 *bytes)
port_num          740 drivers/gpu/drm/drm_dp_mst_topology.c 	req.u.dpcd_write.port_number = port_num;
port_num          758 drivers/gpu/drm/drm_dp_mst_topology.c static int build_enum_path_resources(struct drm_dp_sideband_msg_tx *msg, int port_num)
port_num          763 drivers/gpu/drm/drm_dp_mst_topology.c 	req.u.port_num.port_number = port_num;
port_num          769 drivers/gpu/drm/drm_dp_mst_topology.c static int build_allocate_payload(struct drm_dp_sideband_msg_tx *msg, int port_num,
port_num          777 drivers/gpu/drm/drm_dp_mst_topology.c 	req.u.allocate_payload.port_number = port_num;
port_num          789 drivers/gpu/drm/drm_dp_mst_topology.c 				  int port_num, bool power_up)
port_num          798 drivers/gpu/drm/drm_dp_mst_topology.c 	req.u.port_num.port_number = port_num;
port_num         1421 drivers/gpu/drm/drm_dp_mst_topology.c static struct drm_dp_mst_port *drm_dp_get_port(struct drm_dp_mst_branch *mstb, u8 port_num)
port_num         1427 drivers/gpu/drm/drm_dp_mst_topology.c 		if (port->port_num == port_num) {
port_num         1453 drivers/gpu/drm/drm_dp_mst_topology.c 	rad[idx] |= port->port_num << shift;
port_num         1572 drivers/gpu/drm/drm_dp_mst_topology.c 		int port_num = (mstb->rad[i / 2] >> shift) & 0xf;
port_num         1573 drivers/gpu/drm/drm_dp_mst_topology.c 		snprintf(temp, sizeof(temp), "-%d", port_num);
port_num         1638 drivers/gpu/drm/drm_dp_mst_topology.c 		port->port_num = port_msg->port_number;
port_num         1696 drivers/gpu/drm/drm_dp_mst_topology.c 		build_mst_prop_path(mstb, port->port_num, proppath,
port_num         1712 drivers/gpu/drm/drm_dp_mst_topology.c 		    port->port_num >= DP_MST_LOGICAL_PORT_0) {
port_num         1779 drivers/gpu/drm/drm_dp_mst_topology.c 		int port_num = (rad[i / 2] >> shift) & 0xf;
port_num         1782 drivers/gpu/drm/drm_dp_mst_topology.c 			if (port->port_num == port_num) {
port_num         1911 drivers/gpu/drm/drm_dp_mst_topology.c static int build_dpcd_read(struct drm_dp_sideband_msg_tx *msg, u8 port_num, u32 offset, u8 num_bytes)
port_num         1916 drivers/gpu/drm/drm_dp_mst_topology.c 	req.u.dpcd_read.port_number = port_num;
port_num         2172 drivers/gpu/drm/drm_dp_mst_topology.c 	len = build_enum_path_resources(txmsg, port->port_num);
port_num         2181 drivers/gpu/drm/drm_dp_mst_topology.c 			if (port->port_num != txmsg->reply.u.path_resources.port_number)
port_num         2215 drivers/gpu/drm/drm_dp_mst_topology.c 					int *port_num)
port_num         2231 drivers/gpu/drm/drm_dp_mst_topology.c 			*port_num = found_port->port_num;
port_num         2249 drivers/gpu/drm/drm_dp_mst_topology.c 	int len, ret, port_num;
port_num         2253 drivers/gpu/drm/drm_dp_mst_topology.c 	port_num = port->port_num;
port_num         2258 drivers/gpu/drm/drm_dp_mst_topology.c 							       &port_num);
port_num         2274 drivers/gpu/drm/drm_dp_mst_topology.c 	len = build_allocate_payload(txmsg, port_num,
port_num         2318 drivers/gpu/drm/drm_dp_mst_topology.c 	len = build_power_updown_phy(txmsg, port->port_num, power_up);
port_num         2555 drivers/gpu/drm/drm_dp_mst_topology.c 	len = build_dpcd_read(txmsg, port->port_num, offset, size);
port_num         2567 drivers/gpu/drm/drm_dp_mst_topology.c 			  mstb, port->port_num, offset, size);
port_num         2608 drivers/gpu/drm/drm_dp_mst_topology.c 	len = build_dpcd_write(txmsg, port->port_num, offset, size, bytes);
port_num         3100 drivers/gpu/drm/drm_dp_mst_topology.c 		if (port->port_num >= 8 && !port->cached_edid) {
port_num         3621 drivers/gpu/drm/drm_dp_mst_topology.c 		seq_printf(m, "%sport: %d: input: %d: pdt: %d, ddps: %d ldps: %d, sdp: %d/%d, %p, conn: %p\n", prefix, port->port_num, port->input, port->pdt, port->ddps, port->ldps, port->num_sdp_streams, port->num_sdp_stream_sinks, port, port->connector);
port_num         3684 drivers/gpu/drm/drm_dp_mst_topology.c 				   port->port_num, port->vcpi.vcpi,
port_num         4063 drivers/gpu/drm/drm_dp_mst_topology.c 	msg.u.i2c_read.port_number = port->port_num;
port_num          347 drivers/gpu/drm/i915/gvt/display.c static void clean_virtual_dp_monitor(struct intel_vgpu *vgpu, int port_num)
port_num          349 drivers/gpu/drm/i915/gvt/display.c 	struct intel_vgpu_port *port = intel_vgpu_port(vgpu, port_num);
port_num          358 drivers/gpu/drm/i915/gvt/display.c static int setup_virtual_dp_monitor(struct intel_vgpu *vgpu, int port_num,
port_num          361 drivers/gpu/drm/i915/gvt/display.c 	struct intel_vgpu_port *port = intel_vgpu_port(vgpu, port_num);
port_num           70 drivers/gpu/drm/i915/gvt/hypercall.h 	int (*set_edid)(void *vgpu, int port_num);
port_num          608 drivers/gpu/drm/i915/gvt/kvmgt.c static int kvmgt_set_edid(void *p_vgpu, int port_num)
port_num          611 drivers/gpu/drm/i915/gvt/kvmgt.c 	struct intel_vgpu_port *port = intel_vgpu_port(vgpu, port_num);
port_num          325 drivers/gpu/drm/i915/gvt/mpt.h 						int port_num)
port_num          330 drivers/gpu/drm/i915/gvt/mpt.h 	return intel_gvt_host.mpt->set_edid(vgpu, port_num);
port_num          605 drivers/gpu/drm/omapdrm/dss/dpi.c 	u32 port_num = 0;
port_num          608 drivers/gpu/drm/omapdrm/dss/dpi.c 	of_property_read_u32(port, "reg", &port_num);
port_num          609 drivers/gpu/drm/omapdrm/dss/dpi.c 	dpi->id = port_num <= 2 ? port_num : 0;
port_num          611 drivers/gpu/drm/omapdrm/dss/dpi.c 	switch (port_num) {
port_num          628 drivers/gpu/drm/omapdrm/dss/dpi.c 	out->of_ports = BIT(port_num);
port_num           57 drivers/infiniband/core/agent.c __ib_get_agent_port(const struct ib_device *device, int port_num)
port_num           63 drivers/infiniband/core/agent.c 		    entry->agent[1]->port_num == port_num)
port_num           70 drivers/infiniband/core/agent.c ib_get_agent_port(const struct ib_device *device, int port_num)
port_num           76 drivers/infiniband/core/agent.c 	entry = __ib_get_agent_port(device, port_num);
port_num           83 drivers/infiniband/core/agent.c 			 int port_num, int qpn, size_t resp_mad_len, bool opa)
port_num           94 drivers/infiniband/core/agent.c 		port_priv = ib_get_agent_port(device, port_num);
port_num          102 drivers/infiniband/core/agent.c 	ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num);
port_num          129 drivers/infiniband/core/agent.c 		mad_send_wr->send_wr.port_num = port_num;
port_num          150 drivers/infiniband/core/agent.c int ib_agent_port_open(struct ib_device *device, int port_num)
port_num          163 drivers/infiniband/core/agent.c 	if (rdma_cap_ib_smi(device, port_num)) {
port_num          165 drivers/infiniband/core/agent.c 		port_priv->agent[0] = ib_register_mad_agent(device, port_num,
port_num          176 drivers/infiniband/core/agent.c 	port_priv->agent[1] = ib_register_mad_agent(device, port_num,
port_num          200 drivers/infiniband/core/agent.c int ib_agent_port_close(struct ib_device *device, int port_num)
port_num          206 drivers/infiniband/core/agent.c 	port_priv = __ib_get_agent_port(device, port_num);
port_num          209 drivers/infiniband/core/agent.c 		dev_err(&device->dev, "Port %d not found\n", port_num);
port_num           43 drivers/infiniband/core/agent.h extern int ib_agent_port_open(struct ib_device *device, int port_num);
port_num           45 drivers/infiniband/core/agent.h extern int ib_agent_port_close(struct ib_device *device, int port_num);
port_num           49 drivers/infiniband/core/agent.h 				int port_num, int qpn, size_t resp_mad_len, bool opa);
port_num          129 drivers/infiniband/core/cache.c 	event.element.port_num	= port;
port_num          236 drivers/infiniband/core/cache.c 	u8 port_num = entry->attr.port_num;
port_num          237 drivers/infiniband/core/cache.c 	struct ib_gid_table *table = rdma_gid_table(device, port_num);
port_num          240 drivers/infiniband/core/cache.c 		port_num, entry->attr.index, entry->attr.gid.raw);
port_num          281 drivers/infiniband/core/cache.c 	u8 port_num = entry->attr.port_num;
port_num          282 drivers/infiniband/core/cache.c 	struct ib_gid_table *table = rdma_gid_table(device, port_num);
port_num          323 drivers/infiniband/core/cache.c 		__func__, entry->attr.port_num, entry->attr.index,
port_num          354 drivers/infiniband/core/cache.c 			__func__, attr->port_num, attr->index);
port_num          357 drivers/infiniband/core/cache.c 	if (rdma_cap_roce_gid_table(attr->device, attr->port_num)) {
port_num          362 drivers/infiniband/core/cache.c 				__func__, attr->port_num, attr->index);
port_num          433 drivers/infiniband/core/cache.c 		del_gid(attr->device, attr->port_num, table, attr->index);
port_num          447 drivers/infiniband/core/cache.c 	if (rdma_protocol_roce(attr->device, attr->port_num)) {
port_num          572 drivers/infiniband/core/cache.c 	attr->port_num = port;
port_num          955 drivers/infiniband/core/cache.c int rdma_query_gid(struct ib_device *device, u8 port_num,
port_num          962 drivers/infiniband/core/cache.c 	if (!rdma_is_port_valid(device, port_num))
port_num          965 drivers/infiniband/core/cache.c 	table = rdma_gid_table(device, port_num);
port_num         1031 drivers/infiniband/core/cache.c 		       u8                port_num,
port_num         1039 drivers/infiniband/core/cache.c 	if (!rdma_is_port_valid(device, port_num))
port_num         1044 drivers/infiniband/core/cache.c 	cache = device->port_data[port_num].cache.pkey;
port_num         1058 drivers/infiniband/core/cache.c 				u8                port_num,
port_num         1063 drivers/infiniband/core/cache.c 	if (!rdma_is_port_valid(device, port_num))
port_num         1067 drivers/infiniband/core/cache.c 	*sn_pfx = device->port_data[port_num].cache.subnet_prefix;
port_num         1075 drivers/infiniband/core/cache.c 			u8                port_num,
port_num         1085 drivers/infiniband/core/cache.c 	if (!rdma_is_port_valid(device, port_num))
port_num         1090 drivers/infiniband/core/cache.c 	cache = device->port_data[port_num].cache.pkey;
port_num         1116 drivers/infiniband/core/cache.c 			      u8                port_num,
port_num         1125 drivers/infiniband/core/cache.c 	if (!rdma_is_port_valid(device, port_num))
port_num         1130 drivers/infiniband/core/cache.c 	cache = device->port_data[port_num].cache.pkey;
port_num         1148 drivers/infiniband/core/cache.c 		      u8                port_num,
port_num         1154 drivers/infiniband/core/cache.c 	if (!rdma_is_port_valid(device, port_num))
port_num         1158 drivers/infiniband/core/cache.c 	*lmc = device->port_data[port_num].cache.lmc;
port_num         1166 drivers/infiniband/core/cache.c 			     u8                  port_num,
port_num         1172 drivers/infiniband/core/cache.c 	if (!rdma_is_port_valid(device, port_num))
port_num         1176 drivers/infiniband/core/cache.c 	*port_state = device->port_data[port_num].cache.port_state;
port_num         1200 drivers/infiniband/core/cache.c rdma_get_gid_attr(struct ib_device *device, u8 port_num, int index)
port_num         1206 drivers/infiniband/core/cache.c 	if (!rdma_is_port_valid(device, port_num))
port_num         1209 drivers/infiniband/core/cache.c 	table = rdma_gid_table(device, port_num);
port_num         1282 drivers/infiniband/core/cache.c 	u8 port_num = entry->attr.port_num;
port_num         1287 drivers/infiniband/core/cache.c 	table = rdma_gid_table(device, port_num);
port_num         1367 drivers/infiniband/core/cache.c 	gid_attr.port_num = port;
port_num         1472 drivers/infiniband/core/cache.c 	ret = ib_cache_update(work->event.device, work->event.element.port_num,
port_num          215 drivers/infiniband/core/cm.c 	u8 port_num;
port_num          393 drivers/infiniband/core/cm.c 				  mad_recv_wc->recv_buf.grh, port->port_num);
port_num          473 drivers/infiniband/core/cm.c 				      port->port_num, wc,
port_num          488 drivers/infiniband/core/cm.c 				       port->port_num, wc,
port_num          523 drivers/infiniband/core/cm.c 				port = cm_dev->port[attr->port_num - 1];
port_num          542 drivers/infiniband/core/cm.c 				port = cm_dev->port[attr->port_num - 1];
port_num          568 drivers/infiniband/core/cm.c 	ret = ib_find_cached_pkey(cm_dev->ib_device, port->port_num,
port_num          584 drivers/infiniband/core/cm.c 	ret = ib_init_ah_attr_from_path(cm_dev->ib_device, port->port_num, path,
port_num         1538 drivers/infiniband/core/cm.c static void cm_path_set_rec_type(struct ib_device *ib_device, u8 port_num,
port_num         1541 drivers/infiniband/core/cm.c 	if (ib_is_opa_gid(gid) && rdma_cap_opa_ah(ib_device, port_num))
port_num         1633 drivers/infiniband/core/cm.c 	u8 port_num = work->port->port_num;
port_num         1638 drivers/infiniband/core/cm.c 	ret = ib_get_cached_pkey(ib_dev, port_num, pkey_index, &pkey);
port_num         1641 drivers/infiniband/core/cm.c 				     port_num, pkey_index, ret);
port_num         1661 drivers/infiniband/core/cm.c 	u8 port_num = work->port->port_num;
port_num         1663 drivers/infiniband/core/cm.c 	if (rdma_cap_opa_ah(dev, port_num) &&
port_num         1667 drivers/infiniband/core/cm.c 		if (rdma_query_gid(dev, port_num, 0, &sgid)) {
port_num         1688 drivers/infiniband/core/cm.c 	param->port = cm_id_priv->av.port->port_num;
port_num         1986 drivers/infiniband/core/cm.c 			       work->port->port_num)) {
port_num         1991 drivers/infiniband/core/cm.c 				     work->port->port_num,
port_num         2009 drivers/infiniband/core/cm.c 				     work->port->port_num, 0,
port_num         3228 drivers/infiniband/core/cm.c 			       work->port->port_num))
port_num         3241 drivers/infiniband/core/cm.c 			     work->port->port_num,
port_num         3387 drivers/infiniband/core/cm.c 			       work->port->port_num))
port_num         3545 drivers/infiniband/core/cm.c 	param->port = work->port->port_num;
port_num         4098 drivers/infiniband/core/cm.c 		qp_attr->port_num = cm_id_priv->av.port->port_num;
port_num         4144 drivers/infiniband/core/cm.c 			qp_attr->alt_port_num = cm_id_priv->alt_av.port->port_num;
port_num         4205 drivers/infiniband/core/cm.c 			qp_attr->alt_port_num = cm_id_priv->alt_av.port->port_num;
port_num         4292 drivers/infiniband/core/cm.c 						   port->port_num,
port_num         4354 drivers/infiniband/core/cm.c 		port->port_num = i;
port_num         4404 drivers/infiniband/core/cm.c 		ib_modify_port(ib_device, port->port_num, 0, &port_modify);
port_num         4441 drivers/infiniband/core/cm.c 		ib_modify_port(ib_device, port->port_num, 0, &port_modify);
port_num          109 drivers/infiniband/core/cma.c 	if (rdma_ib_or_roce(id->device, id->port_num))
port_num          112 drivers/infiniband/core/cma.c 	if (rdma_protocol_iwarp(id->device, id->port_num))
port_num          122 drivers/infiniband/core/cma.c 	if (rdma_ib_or_roce(id->device, id->port_num))
port_num          125 drivers/infiniband/core/cma.c 	if (rdma_protocol_iwarp(id->device, id->port_num))
port_num          245 drivers/infiniband/core/cma.c 	u8				port_num;
port_num          509 drivers/infiniband/core/cma.c 		cma_dev->default_gid_type[id_priv->id.port_num -
port_num          575 drivers/infiniband/core/cma.c 					     id_priv->id.port_num, &rec.mgid,
port_num          687 drivers/infiniband/core/cma.c 				id_priv->id.port_num = port;
port_num          737 drivers/infiniband/core/cma.c 	id_priv->id.port_num = req->port;
port_num          770 drivers/infiniband/core/cma.c 	port = listen_id_priv->id.port_num;
port_num          775 drivers/infiniband/core/cma.c 		id_priv->id.port_num = port;
port_num          784 drivers/infiniband/core/cma.c 			    listen_id_priv->id.port_num == port)
port_num          791 drivers/infiniband/core/cma.c 				id_priv->id.port_num = port;
port_num          842 drivers/infiniband/core/cma.c 					id_priv->id.port_num = p;
port_num          851 drivers/infiniband/core/cma.c 					id_priv->id.port_num = p;
port_num          961 drivers/infiniband/core/cma.c 	qp_init_attr->port_num = id->port_num;
port_num         1082 drivers/infiniband/core/cma.c 	if (rdma_cap_eth_ah(id_priv->id.device, id_priv->id.port_num))
port_num         1087 drivers/infiniband/core/cma.c 	ret = ib_find_cached_pkey(id_priv->id.device, id_priv->id.port_num,
port_num         1092 drivers/infiniband/core/cma.c 	qp_attr->port_num = id_priv->id.port_num;
port_num         1116 drivers/infiniband/core/cma.c 	if (rdma_cap_ib_cm(id->device, id->port_num)) {
port_num         1125 drivers/infiniband/core/cma.c 	} else if (rdma_cap_iw_cm(id->device, id->port_num)) {
port_num         1132 drivers/infiniband/core/cma.c 		qp_attr->port_num = id_priv->id.port_num;
port_num         1580 drivers/infiniband/core/cma.c 	const int port_num = id->port_num ?: rdma_start_port(device);
port_num         1582 drivers/infiniband/core/cma.c 	return rdma_protocol_roce(device, port_num);
port_num         1604 drivers/infiniband/core/cma.c 		return (!id->port_num || id->port_num == req->port) &&
port_num         1735 drivers/infiniband/core/cma.c 	if (rdma_cap_ib_sa(id_priv->id.device, id_priv->id.port_num)) {
port_num         1826 drivers/infiniband/core/cma.c 				      id_priv->id.port_num)) {
port_num         2251 drivers/infiniband/core/cma.c 	if (rdma_protocol_roce(cm_id->device, cm_id->port_num)) {
port_num         2587 drivers/infiniband/core/cma.c 	if (rdma_cap_opa_ah(id_priv->id.device, id_priv->id.port_num))
port_num         2621 drivers/infiniband/core/cma.c 					       id_priv->id.port_num, &path_rec,
port_num         2764 drivers/infiniband/core/cma.c 						    id_priv->id.port_num);
port_num         2797 drivers/infiniband/core/cma.c 	if (rdma_protocol_roce(id->device, id->port_num)) {
port_num         2857 drivers/infiniband/core/cma.c 	u8 default_roce_tos = id_priv->cma_dev->default_roce_tos[id_priv->id.port_num -
port_num         2930 drivers/infiniband/core/cma.c 	if (rdma_cap_ib_sa(id->device, id->port_num))
port_num         2932 drivers/infiniband/core/cma.c 	else if (rdma_protocol_roce(id->device, id->port_num))
port_num         2934 drivers/infiniband/core/cma.c 	else if (rdma_protocol_iwarp(id->device, id->port_num))
port_num         3017 drivers/infiniband/core/cma.c 	id_priv->id.port_num = p;
port_num         3707 drivers/infiniband/core/cma.c 					  id_priv->id.port_num,
port_num         3927 drivers/infiniband/core/cma.c 	if (rdma_cap_ib_cm(id->device, id->port_num)) {
port_num         3932 drivers/infiniband/core/cma.c 	} else if (rdma_cap_iw_cm(id->device, id->port_num))
port_num         4042 drivers/infiniband/core/cma.c 	if (rdma_cap_ib_cm(id->device, id->port_num)) {
port_num         4058 drivers/infiniband/core/cma.c 	} else if (rdma_cap_iw_cm(id->device, id->port_num))
port_num         4105 drivers/infiniband/core/cma.c 	if (rdma_cap_ib_cm(id->device, id->port_num)) {
port_num         4113 drivers/infiniband/core/cma.c 	} else if (rdma_cap_iw_cm(id->device, id->port_num)) {
port_num         4132 drivers/infiniband/core/cma.c 	if (rdma_cap_ib_cm(id->device, id->port_num)) {
port_num         4139 drivers/infiniband/core/cma.c 	} else if (rdma_cap_iw_cm(id->device, id->port_num)) {
port_num         4185 drivers/infiniband/core/cma.c 			id_priv->cma_dev->default_gid_type[id_priv->id.port_num -
port_num         4190 drivers/infiniband/core/cma.c 					       id_priv->id.port_num,
port_num         4258 drivers/infiniband/core/cma.c 	ret = ib_sa_get_mcmember_rec(id_priv->id.device, id_priv->id.port_num,
port_num         4276 drivers/infiniband/core/cma.c 					     id_priv->id.port_num))) {
port_num         4280 drivers/infiniband/core/cma.c 			id_priv->id.port_num);
port_num         4298 drivers/infiniband/core/cma.c 						id_priv->id.port_num, &rec,
port_num         4371 drivers/infiniband/core/cma.c 	gid_type = id_priv->cma_dev->default_gid_type[id_priv->id.port_num -
port_num         4448 drivers/infiniband/core/cma.c 	if (rdma_protocol_roce(id->device, id->port_num)) {
port_num         4453 drivers/infiniband/core/cma.c 	} else if (rdma_cap_ib_mcast(id->device, id->port_num)) {
port_num         4492 drivers/infiniband/core/cma.c 			if (rdma_cap_ib_mcast(id->device, id->port_num)) {
port_num         4495 drivers/infiniband/core/cma.c 			} else if (rdma_protocol_roce(id->device, id->port_num)) {
port_num           46 drivers/infiniband/core/cma_configfs.c 	unsigned int		port_num;
port_num          112 drivers/infiniband/core/cma_configfs.c 	gid_type = cma_get_default_gid_type(cma_dev, group->port_num);
port_num          136 drivers/infiniband/core/cma_configfs.c 	ret = cma_set_default_gid_type(cma_dev, group->port_num, gid_type);
port_num          156 drivers/infiniband/core/cma_configfs.c 	tos = cma_get_default_roce_tos(cma_dev, group->port_num);
port_num          178 drivers/infiniband/core/cma_configfs.c 	ret = cma_set_default_roce_tos(cma_dev, group->port_num, tos);
port_num          223 drivers/infiniband/core/cma_configfs.c 		ports[i].port_num = i + 1;
port_num          217 drivers/infiniband/core/core_priv.h 				u8                port_num,
port_num          224 drivers/infiniband/core/core_priv.h 			      u8 port_num,
port_num          249 drivers/infiniband/core/core_priv.h 					    u8 port_num,
port_num          397 drivers/infiniband/core/core_priv.h int ib_port_register_module_stat(struct ib_device *device, u8 port_num,
port_num         1978 drivers/infiniband/core/device.c 			   u8 port_num,
port_num         1987 drivers/infiniband/core/device.c 	netdev = ib_device_get_netdev(device, port_num);
port_num         2014 drivers/infiniband/core/device.c 	err = device->ops.query_port(device, port_num, port_attr);
port_num         2022 drivers/infiniband/core/device.c 			   u8 port_num,
port_num         2030 drivers/infiniband/core/device.c 	err = device->ops.query_port(device, port_num, port_attr);
port_num         2034 drivers/infiniband/core/device.c 	if (rdma_port_get_link_layer(device, port_num) !=
port_num         2038 drivers/infiniband/core/device.c 	err = device->ops.query_gid(device, port_num, 0, &gid);
port_num         2056 drivers/infiniband/core/device.c 		  u8 port_num,
port_num         2059 drivers/infiniband/core/device.c 	if (!rdma_is_port_valid(device, port_num))
port_num         2062 drivers/infiniband/core/device.c 	if (rdma_protocol_iwarp(device, port_num))
port_num         2063 drivers/infiniband/core/device.c 		return iw_query_port(device, port_num, port_attr);
port_num         2065 drivers/infiniband/core/device.c 		return __ib_query_port(device, port_num, port_attr);
port_num         2347 drivers/infiniband/core/device.c 		  u8 port_num, u16 index, u16 *pkey)
port_num         2349 drivers/infiniband/core/device.c 	if (!rdma_is_port_valid(device, port_num))
port_num         2352 drivers/infiniband/core/device.c 	return device->ops.query_pkey(device, port_num, index, pkey);
port_num         2389 drivers/infiniband/core/device.c 		   u8 port_num, int port_modify_mask,
port_num         2394 drivers/infiniband/core/device.c 	if (!rdma_is_port_valid(device, port_num))
port_num         2398 drivers/infiniband/core/device.c 		rc = device->ops.modify_port(device, port_num,
port_num         2401 drivers/infiniband/core/device.c 	else if (rdma_protocol_roce(device, port_num) &&
port_num         2421 drivers/infiniband/core/device.c 		u8 *port_num, u16 *index)
port_num         2437 drivers/infiniband/core/device.c 				*port_num = port;
port_num         2458 drivers/infiniband/core/device.c 		 u8 port_num, u16 pkey, u16 *index)
port_num         2464 drivers/infiniband/core/device.c 	for (i = 0; i < device->port_data[port_num].immutable.pkey_tbl_len;
port_num         2466 drivers/infiniband/core/device.c 		ret = ib_query_pkey(device, port_num, i, &tmp_pkey);
port_num           64 drivers/infiniband/core/mad.c 	u8 pnum = qp_info->port_priv->port_num;
port_num          122 drivers/infiniband/core/mad.c __ib_get_mad_port(struct ib_device *device, int port_num)
port_num          127 drivers/infiniband/core/mad.c 		if (entry->device == device && entry->port_num == port_num)
port_num          138 drivers/infiniband/core/mad.c ib_get_mad_port(struct ib_device *device, int port_num)
port_num          144 drivers/infiniband/core/mad.c 	entry = __ib_get_mad_port(device, port_num);
port_num          226 drivers/infiniband/core/mad.c 					   u8 port_num,
port_num          246 drivers/infiniband/core/mad.c 	if ((qp_type == IB_QPT_SMI && !rdma_cap_ib_smi(device, port_num)) ||
port_num          247 drivers/infiniband/core/mad.c 	    (qp_type == IB_QPT_GSI && !rdma_cap_ib_cm(device, port_num)))
port_num          354 drivers/infiniband/core/mad.c 	port_priv = ib_get_mad_port(device, port_num);
port_num          357 drivers/infiniband/core/mad.c 				    __func__, port_num);
port_num          396 drivers/infiniband/core/mad.c 	mad_agent_priv->agent.port_num = port_num;
port_num          537 drivers/infiniband/core/mad.c 					   u8 port_num,
port_num          561 drivers/infiniband/core/mad.c 	port_priv = ib_get_mad_port(device, port_num);
port_num          580 drivers/infiniband/core/mad.c 	mad_snoop_priv->agent.port_num = port_num;
port_num          761 drivers/infiniband/core/mad.c 		u16 pkey_index, u8 port_num, struct ib_wc *wc)
port_num          774 drivers/infiniband/core/mad.c 	wc->port_num = port_num;
port_num          795 drivers/infiniband/core/mad.c 	return rdma_max_mad_size(port_priv->device, port_priv->port_num);
port_num          820 drivers/infiniband/core/mad.c 	u8 port_num;
port_num          827 drivers/infiniband/core/mad.c 				    mad_agent_priv->qp_info->port_priv->port_num);
port_num          831 drivers/infiniband/core/mad.c 		port_num = send_wr->port_num;
port_num          833 drivers/infiniband/core/mad.c 		port_num = mad_agent_priv->agent.port_num;
port_num          851 drivers/infiniband/core/mad.c 						port_num) == IB_SMI_DISCARD) {
port_num          875 drivers/infiniband/core/mad.c 		     smi_handle_dr_smp_send(smp, rdma_cap_ib_switch(device), port_num) ==
port_num          906 drivers/infiniband/core/mad.c 		     send_wr->port_num, &mad_wc);
port_num          915 drivers/infiniband/core/mad.c 	ret = device->ops.process_mad(device, 0, port_num, &mad_wc, NULL,
port_num          940 drivers/infiniband/core/mad.c 					    mad_agent_priv->agent.port_num);
port_num         1066 drivers/infiniband/core/mad.c 	opa = rdma_cap_opa_mad(mad_agent->device, mad_agent->port_num);
port_num         1845 drivers/infiniband/core/mad.c 			   &mad_agent->agent, port_priv->port_num);
port_num         1916 drivers/infiniband/core/mad.c 	u8 port_num = mad_agent_priv->agent.port_num;
port_num         1939 drivers/infiniband/core/mad.c 			if (ib_get_cached_lmc(device, port_num, &lmc))
port_num         1948 drivers/infiniband/core/mad.c 			if (rdma_query_gid(device, port_num,
port_num         2098 drivers/infiniband/core/mad.c 				     int port_num,
port_num         2109 drivers/infiniband/core/mad.c 				   port_num,
port_num         2121 drivers/infiniband/core/mad.c 					   port_num) == IB_SMI_DISCARD)
port_num         2185 drivers/infiniband/core/mad.c 	       int port_num,
port_num         2196 drivers/infiniband/core/mad.c 				   port_num,
port_num         2208 drivers/infiniband/core/mad.c 					   port_num) == IB_SMI_DISCARD)
port_num         2241 drivers/infiniband/core/mad.c 	   int port_num,
port_num         2250 drivers/infiniband/core/mad.c 		return handle_opa_smi(port_priv, qp_info, wc, port_num, recv,
port_num         2253 drivers/infiniband/core/mad.c 	return handle_ib_smi(port_priv, qp_info, wc, port_num, recv, response);
port_num         2265 drivers/infiniband/core/mad.c 	int port_num;
port_num         2286 drivers/infiniband/core/mad.c 			       qp_info->port_priv->port_num);
port_num         2327 drivers/infiniband/core/mad.c 		port_num = wc->port_num;
port_num         2329 drivers/infiniband/core/mad.c 		port_num = port_priv->port_num;
port_num         2333 drivers/infiniband/core/mad.c 		if (handle_smi(port_priv, qp_info, wc, port_num, recv,
port_num         2342 drivers/infiniband/core/mad.c 			port_priv->device, 0, port_priv->port_num, wc,
port_num         2357 drivers/infiniband/core/mad.c 						    port_num,
port_num         2377 drivers/infiniband/core/mad.c 				    port_priv->device, port_num,
port_num         2757 drivers/infiniband/core/mad.c 			       mad_agent_priv->qp_info->port_priv->port_num);
port_num         2785 drivers/infiniband/core/mad.c 				     recv_mad_agent->agent.port_num, &wc);
port_num         3045 drivers/infiniband/core/mad.c 	ret = ib_find_pkey(port_priv->device, port_priv->port_num,
port_num         3162 drivers/infiniband/core/mad.c 	qp_init_attr.port_num = qp_info->port_priv->port_num;
port_num         3196 drivers/infiniband/core/mad.c 			    int port_num)
port_num         3204 drivers/infiniband/core/mad.c 	if (WARN_ON(rdma_max_mad_size(device, port_num) < IB_MGMT_MAD_SIZE))
port_num         3207 drivers/infiniband/core/mad.c 	if (WARN_ON(rdma_cap_opa_mad(device, port_num) &&
port_num         3208 drivers/infiniband/core/mad.c 		    rdma_max_mad_size(device, port_num) < OPA_MGMT_MAD_SIZE))
port_num         3217 drivers/infiniband/core/mad.c 	port_priv->port_num = port_num;
port_num         3223 drivers/infiniband/core/mad.c 	has_smi = rdma_cap_ib_smi(device, port_num);
port_num         3251 drivers/infiniband/core/mad.c 	snprintf(name, sizeof name, "ib_mad%d", port_num);
port_num         3297 drivers/infiniband/core/mad.c static int ib_mad_port_close(struct ib_device *device, int port_num)
port_num         3303 drivers/infiniband/core/mad.c 	port_priv = __ib_get_mad_port(device, port_num);
port_num         3306 drivers/infiniband/core/mad.c 		dev_err(&device->dev, "Port %d not found\n", port_num);
port_num          202 drivers/infiniband/core/mad_priv.h 	int port_num;
port_num          164 drivers/infiniband/core/mad_rmpp.c 				  recv_wc->recv_buf.grh, agent->port_num);
port_num          298 drivers/infiniband/core/mad_rmpp.c 					     agent->agent.port_num);
port_num          441 drivers/infiniband/core/mad_rmpp.c 				    rmpp_recv->agent->qp_info->port_priv->port_num);
port_num           66 drivers/infiniband/core/multicast.c 	u8			port_num;
port_num          337 drivers/infiniband/core/multicast.c 				       port->port_num, IB_MGMT_METHOD_SET,
port_num          356 drivers/infiniband/core/multicast.c 				       port->port_num, IB_SA_METHOD_DELETE, &rec,
port_num          393 drivers/infiniband/core/multicast.c 				   group->port->port_num,
port_num          523 drivers/infiniband/core/multicast.c 				 group->port->port_num, be16_to_cpu(rec->pkey),
port_num          608 drivers/infiniband/core/multicast.c 		     struct ib_device *device, u8 port_num,
port_num          638 drivers/infiniband/core/multicast.c 	member->group = acquire_group(&dev->port[port_num - dev->start_port],
port_num          693 drivers/infiniband/core/multicast.c int ib_sa_get_mcmember_rec(struct ib_device *device, u8 port_num,
port_num          706 drivers/infiniband/core/multicast.c 	port = &dev->port[port_num - dev->start_port];
port_num          734 drivers/infiniband/core/multicast.c int ib_init_ah_from_mcmember(struct ib_device *device, u8 port_num,
port_num          745 drivers/infiniband/core/multicast.c 	if (rdma_protocol_ib(device, port_num))
port_num          747 drivers/infiniband/core/multicast.c 	else if (!rdma_protocol_roce(device, port_num))
port_num          751 drivers/infiniband/core/multicast.c 					  gid_type, port_num, ndev);
port_num          756 drivers/infiniband/core/multicast.c 	ah_attr->type = rdma_ah_find_type(device, port_num);
port_num          760 drivers/infiniband/core/multicast.c 	rdma_ah_set_port_num(ah_attr, port_num);
port_num          799 drivers/infiniband/core/multicast.c 	if (!rdma_cap_ib_mcast(dev->device, event->element.port_num))
port_num          802 drivers/infiniband/core/multicast.c 	index = event->element.port_num - dev->start_port;
port_num          838 drivers/infiniband/core/multicast.c 		port->port_num = dev->start_port + i;
port_num          439 drivers/infiniband/core/nldev.c 	if (port && port != qp_attr.port_num)
port_num          443 drivers/infiniband/core/nldev.c 	if (qp_attr.port_num &&
port_num          444 drivers/infiniband/core/nldev.c 	    nla_put_u32(msg, RDMA_NLDEV_ATTR_PORT_INDEX, qp_attr.port_num))
port_num          495 drivers/infiniband/core/nldev.c 	if (port && port != cm_id->port_num)
port_num          498 drivers/infiniband/core/nldev.c 	if (cm_id->port_num &&
port_num          499 drivers/infiniband/core/nldev.c 	    nla_put_u32(msg, RDMA_NLDEV_ATTR_PORT_INDEX, cm_id->port_num))
port_num           43 drivers/infiniband/core/opa_smi.h 				       int port_num, int phys_port_cnt);
port_num           47 drivers/infiniband/core/opa_smi.h 					      bool is_switch, int port_num);
port_num           73 drivers/infiniband/core/roce_gid_mgmt.c 	bool (*is_supported)(const struct ib_device *device, u8 port_num);
port_num           27 drivers/infiniband/core/rw.c static inline bool rdma_rw_can_use_mr(struct ib_device *dev, u8 port_num)
port_num           29 drivers/infiniband/core/rw.c 	if (rdma_protocol_iwarp(dev, port_num))
port_num           44 drivers/infiniband/core/rw.c static inline bool rdma_rw_io_needs_mr(struct ib_device *dev, u8 port_num,
port_num           47 drivers/infiniband/core/rw.c 	if (rdma_protocol_iwarp(dev, port_num) && dir == DMA_FROM_DEVICE)
port_num           85 drivers/infiniband/core/rw.c static int rdma_rw_init_one_mr(struct ib_qp *qp, u8 port_num,
port_num          109 drivers/infiniband/core/rw.c 	if (rdma_protocol_iwarp(qp->device, port_num))
port_num          119 drivers/infiniband/core/rw.c 		u8 port_num, struct scatterlist *sg, u32 sg_cnt, u32 offset,
port_num          138 drivers/infiniband/core/rw.c 		ret = rdma_rw_init_one_mr(qp, port_num, reg, sg, sg_cnt,
port_num          159 drivers/infiniband/core/rw.c 		} else if (!rdma_cap_read_inv(qp->device, port_num)) {
port_num          303 drivers/infiniband/core/rw.c int rdma_rw_ctx_init(struct rdma_rw_ctx *ctx, struct ib_qp *qp, u8 port_num,
port_num          333 drivers/infiniband/core/rw.c 	if (rdma_rw_io_needs_mr(qp->device, port_num, dir, sg_cnt)) {
port_num          334 drivers/infiniband/core/rw.c 		ret = rdma_rw_init_mr_wrs(ctx, qp, port_num, sg, sg_cnt,
port_num          372 drivers/infiniband/core/rw.c 		u8 port_num, struct scatterlist *sg, u32 sg_cnt,
port_num          433 drivers/infiniband/core/rw.c 	if (rdma_protocol_iwarp(qp->device, port_num))
port_num          500 drivers/infiniband/core/rw.c 		u8 port_num, struct ib_cqe *cqe, struct ib_send_wr *chain_wr)
port_num          558 drivers/infiniband/core/rw.c int rdma_rw_ctx_post(struct rdma_rw_ctx *ctx, struct ib_qp *qp, u8 port_num,
port_num          563 drivers/infiniband/core/rw.c 	first_wr = rdma_rw_ctx_wrs(ctx, qp, port_num, cqe, chain_wr);
port_num          577 drivers/infiniband/core/rw.c void rdma_rw_ctx_destroy(struct rdma_rw_ctx *ctx, struct ib_qp *qp, u8 port_num,
port_num          616 drivers/infiniband/core/rw.c 		u8 port_num, struct scatterlist *sg, u32 sg_cnt,
port_num          643 drivers/infiniband/core/rw.c unsigned int rdma_rw_mr_factor(struct ib_device *device, u8 port_num,
port_num          648 drivers/infiniband/core/rw.c 	if (rdma_rw_can_use_mr(device, port_num))
port_num          660 drivers/infiniband/core/rw.c 	WARN_ON_ONCE(attr->port_num == 0);
port_num          676 drivers/infiniband/core/rw.c 	    rdma_rw_can_use_mr(dev, attr->port_num))
port_num          699 drivers/infiniband/core/rw.c 	} else if (rdma_rw_can_use_mr(dev, attr->port_num)) {
port_num           52 drivers/infiniband/core/sa.h 			     struct ib_device *device, u8 port_num, u8 method,
port_num           98 drivers/infiniband/core/sa_query.c 	u8                   port_num;
port_num          765 drivers/infiniband/core/sa_query.c 	header->port_num = query->port->port_num;
port_num         1201 drivers/infiniband/core/sa_query.c static u8 get_src_path_mask(struct ib_device *device, u8 port_num)
port_num         1212 drivers/infiniband/core/sa_query.c 	port  = &sa_dev->port[port_num - sa_dev->start_port];
port_num         1220 drivers/infiniband/core/sa_query.c static int init_ah_attr_grh_fields(struct ib_device *device, u8 port_num,
port_num         1229 drivers/infiniband/core/sa_query.c 						 port_num, NULL);
port_num         1258 drivers/infiniband/core/sa_query.c int ib_init_ah_attr_from_path(struct ib_device *device, u8 port_num,
port_num         1266 drivers/infiniband/core/sa_query.c 	ah_attr->type = rdma_ah_find_type(device, port_num);
port_num         1268 drivers/infiniband/core/sa_query.c 	rdma_ah_set_port_num(ah_attr, port_num);
port_num         1285 drivers/infiniband/core/sa_query.c 				      get_src_path_mask(device, port_num));
port_num         1289 drivers/infiniband/core/sa_query.c 		ret = init_ah_attr_grh_fields(device, port_num,
port_num         1416 drivers/infiniband/core/sa_query.c 					 u8 port_num)
port_num         1426 drivers/infiniband/core/sa_query.c 	port = &sa_dev->port[port_num - sa_dev->start_port];
port_num         1454 drivers/infiniband/core/sa_query.c 				 u8 port_num,
port_num         1459 drivers/infiniband/core/sa_query.c 	if (ib_query_port(device, port_num, &port_attr))
port_num         1462 drivers/infiniband/core/sa_query.c 	if (ib_sa_opa_pathrecord_support(client, device, port_num))
port_num         1543 drivers/infiniband/core/sa_query.c 		       struct ib_device *device, u8 port_num,
port_num         1568 drivers/infiniband/core/sa_query.c 	port  = &sa_dev->port[port_num - sa_dev->start_port];
port_num         1577 drivers/infiniband/core/sa_query.c 		status = opa_pr_query_possible(client, device, port_num, rec);
port_num         1697 drivers/infiniband/core/sa_query.c 			    struct ib_device *device, u8 port_num, u8 method,
port_num         1717 drivers/infiniband/core/sa_query.c 	port  = &sa_dev->port[port_num - sa_dev->start_port];
port_num         1793 drivers/infiniband/core/sa_query.c 			     struct ib_device *device, u8 port_num,
port_num         1814 drivers/infiniband/core/sa_query.c 	port  = &sa_dev->port[port_num - sa_dev->start_port];
port_num         1885 drivers/infiniband/core/sa_query.c 			      struct ib_device *device, u8 port_num,
port_num         1911 drivers/infiniband/core/sa_query.c 	port  = &sa_dev->port[port_num - sa_dev->start_port];
port_num         1962 drivers/infiniband/core/sa_query.c 				    u8 port_num)
port_num         1972 drivers/infiniband/core/sa_query.c 	port  = &sa_dev->port[port_num - sa_dev->start_port];
port_num         2074 drivers/infiniband/core/sa_query.c 						 port->port_num) ?
port_num         2225 drivers/infiniband/core/sa_query.c 	if (ib_query_port(port->agent->device, port->port_num, &port_attr)) {
port_num         2238 drivers/infiniband/core/sa_query.c 	if (ib_find_pkey(port->agent->device, port->port_num,
port_num         2244 drivers/infiniband/core/sa_query.c 					 port->port_num);
port_num         2247 drivers/infiniband/core/sa_query.c 	rdma_ah_set_port_num(&ah_attr, port->port_num);
port_num         2250 drivers/infiniband/core/sa_query.c 					    port->port_num);
port_num         2298 drivers/infiniband/core/sa_query.c 		u8 port_num = event->element.port_num - sa_dev->start_port;
port_num         2299 drivers/infiniband/core/sa_query.c 		struct ib_sa_port *port = &sa_dev->port[port_num];
port_num         2301 drivers/infiniband/core/sa_query.c 		if (!rdma_cap_ib_sa(handler->device, port->port_num))
port_num         2324 drivers/infiniband/core/sa_query.c 		queue_work(ib_wq, &sa_dev->port[port_num].update_task);
port_num         2350 drivers/infiniband/core/sa_query.c 		sa_dev->port[i].port_num = i + s;
port_num           52 drivers/infiniband/core/security.c 	spin_lock(&dev->port_data[pp->port_num].pkey_list_lock);
port_num           53 drivers/infiniband/core/security.c 	list_for_each_entry (tmp_pkey, &dev->port_data[pp->port_num].pkey_list,
port_num           60 drivers/infiniband/core/security.c 	spin_unlock(&dev->port_data[pp->port_num].pkey_list_lock);
port_num           71 drivers/infiniband/core/security.c 	ret = ib_get_cached_pkey(dev, pp->port_num, pp->pkey_index, pkey);
port_num           75 drivers/infiniband/core/security.c 	ret = ib_get_cached_subnet_prefix(dev, pp->port_num, subnet_prefix);
port_num          196 drivers/infiniband/core/security.c 				  u8 port_num,
port_num          205 drivers/infiniband/core/security.c 				port_num,
port_num          248 drivers/infiniband/core/security.c 	u8 port_num = pp->port_num;
port_num          265 drivers/infiniband/core/security.c 		spin_lock(&dev->port_data[port_num].pkey_list_lock);
port_num          270 drivers/infiniband/core/security.c 				    &dev->port_data[port_num].pkey_list,
port_num          285 drivers/infiniband/core/security.c 				 &dev->port_data[port_num].pkey_list);
port_num          287 drivers/infiniband/core/security.c 		spin_unlock(&dev->port_data[port_num].pkey_list_lock);
port_num          343 drivers/infiniband/core/security.c 		new_pps->main.port_num = qp_attr->port_num;
port_num          345 drivers/infiniband/core/security.c 		new_pps->main.port_num = qp_pps->main.port_num;
port_num          358 drivers/infiniband/core/security.c 		new_pps->alt.port_num = qp_attr->alt_port_num;
port_num          362 drivers/infiniband/core/security.c 		new_pps->alt.port_num = qp_pps->alt.port_num;
port_num          541 drivers/infiniband/core/security.c 			      u8 port_num,
port_num          546 drivers/infiniband/core/security.c 	list_for_each_entry (pkey, &device->port_data[port_num].pkey_list,
port_num          550 drivers/infiniband/core/security.c 			       port_num,
port_num          587 drivers/infiniband/core/security.c 		   rdma_protocol_ib(real_qp->device, qp_attr->port_num) &&
port_num          652 drivers/infiniband/core/security.c 				   u8 port_num,
port_num          660 drivers/infiniband/core/security.c 	if (!rdma_protocol_ib(dev, port_num))
port_num          663 drivers/infiniband/core/security.c 	ret = ib_get_cached_pkey(dev, port_num, pkey_index, &pkey);
port_num          667 drivers/infiniband/core/security.c 	ret = ib_get_cached_subnet_prefix(dev, port_num, &subnet_prefix);
port_num          685 drivers/infiniband/core/security.c 				dev_name(&ag->device->dev), ag->port_num));
port_num          694 drivers/infiniband/core/security.c 	if (!rdma_protocol_ib(agent->device, agent->port_num))
port_num          709 drivers/infiniband/core/security.c 						agent->port_num);
port_num          726 drivers/infiniband/core/security.c 	if (!rdma_protocol_ib(agent->device, agent->port_num))
port_num          740 drivers/infiniband/core/security.c 	if (!rdma_protocol_ib(map->agent.device, map->agent.port_num))
port_num          750 drivers/infiniband/core/security.c 				       map->agent.port_num,
port_num           44 drivers/infiniband/core/smi.c static enum smi_action __smi_handle_dr_smp_send(bool is_switch, int port_num,
port_num           62 drivers/infiniband/core/smi.c 				port_num ? IB_SMI_HANDLE : IB_SMI_DISCARD);
port_num           73 drivers/infiniband/core/smi.c 				port_num ? IB_SMI_HANDLE : IB_SMI_DISCARD);
port_num           94 drivers/infiniband/core/smi.c 				port_num ? IB_SMI_HANDLE : IB_SMI_DISCARD);
port_num          104 drivers/infiniband/core/smi.c 				port_num ? IB_SMI_HANDLE : IB_SMI_DISCARD);
port_num          130 drivers/infiniband/core/smi.c 				       bool is_switch, int port_num)
port_num          132 drivers/infiniband/core/smi.c 	return __smi_handle_dr_smp_send(is_switch, port_num,
port_num          142 drivers/infiniband/core/smi.c 				       bool is_switch, int port_num)
port_num          144 drivers/infiniband/core/smi.c 	return __smi_handle_dr_smp_send(is_switch, port_num,
port_num          155 drivers/infiniband/core/smi.c static enum smi_action __smi_handle_dr_smp_recv(bool is_switch, int port_num,
port_num          179 drivers/infiniband/core/smi.c 			return_path[*hop_ptr] = port_num;
port_num          188 drivers/infiniband/core/smi.c 				return_path[*hop_ptr] = port_num;
port_num          206 drivers/infiniband/core/smi.c 				port_num ? IB_SMI_HANDLE : IB_SMI_DISCARD);
port_num          241 drivers/infiniband/core/smi.c 				       int port_num, int phys_port_cnt)
port_num          243 drivers/infiniband/core/smi.c 	return __smi_handle_dr_smp_recv(is_switch, port_num, phys_port_cnt,
port_num          257 drivers/infiniband/core/smi.c 					   int port_num, int phys_port_cnt)
port_num          259 drivers/infiniband/core/smi.c 	return __smi_handle_dr_smp_recv(is_switch, port_num, phys_port_cnt,
port_num           55 drivers/infiniband/core/smi.h 				       int port_num, int phys_port_cnt);
port_num           59 drivers/infiniband/core/smi.h 					      bool is_switch, int port_num);
port_num           65 drivers/infiniband/core/sysfs.c 	u8                     port_num;
port_num           97 drivers/infiniband/core/sysfs.c 	u8			port_num;
port_num          164 drivers/infiniband/core/sysfs.c 	ret = ib_query_port(p->ibdev, p->port_num, &attr);
port_num          179 drivers/infiniband/core/sysfs.c 	ret = ib_query_port(p->ibdev, p->port_num, &attr);
port_num          193 drivers/infiniband/core/sysfs.c 	ret = ib_query_port(p->ibdev, p->port_num, &attr);
port_num          206 drivers/infiniband/core/sysfs.c 	ret = ib_query_port(p->ibdev, p->port_num, &attr);
port_num          219 drivers/infiniband/core/sysfs.c 	ret = ib_query_port(p->ibdev, p->port_num, &attr);
port_num          232 drivers/infiniband/core/sysfs.c 	ret = ib_query_port(p->ibdev, p->port_num, &attr);
port_num          247 drivers/infiniband/core/sysfs.c 	ret = ib_query_port(p->ibdev, p->port_num, &attr);
port_num          317 drivers/infiniband/core/sysfs.c 	ret = ib_query_port(p->ibdev, p->port_num, &attr);
port_num          328 drivers/infiniband/core/sysfs.c 	switch (rdma_port_get_link_layer(p->ibdev, p->port_num)) {
port_num          388 drivers/infiniband/core/sysfs.c 	gid_attr = rdma_get_gid_attr(p->ibdev, p->port_num, tab_attr->index);
port_num          405 drivers/infiniband/core/sysfs.c 	gid_attr = rdma_get_gid_attr(p->ibdev, p->port_num, tab_attr->index);
port_num          447 drivers/infiniband/core/sysfs.c 	ret = ib_query_pkey(p->ibdev, p->port_num, tab_attr->index, &pkey);
port_num          472 drivers/infiniband/core/sysfs.c static int get_perf_mad(struct ib_device *dev, int port_num, __be16 attr,
port_num          498 drivers/infiniband/core/sysfs.c 		in_mad->data[41] = port_num;	/* PortSelect field */
port_num          501 drivers/infiniband/core/sysfs.c 				  port_num, NULL, NULL,
port_num          528 drivers/infiniband/core/sysfs.c 	ret = get_perf_mad(p->ibdev, p->port_num, tab_attr->attr_id, &data,
port_num          779 drivers/infiniband/core/sysfs.c 						 int port_num)
port_num          783 drivers/infiniband/core/sysfs.c 	if (get_perf_mad(dev, port_num, IB_PMA_CLASS_PORT_INFO,
port_num          799 drivers/infiniband/core/sysfs.c 			   u8 port_num, int index)
port_num          805 drivers/infiniband/core/sysfs.c 	ret = dev->ops.get_hw_stats(dev, stats, port_num, index);
port_num          814 drivers/infiniband/core/sysfs.c static ssize_t print_hw_stat(struct ib_device *dev, int port_num,
port_num          817 drivers/infiniband/core/sysfs.c 	u64 v = rdma_counter_get_hwstat_value(dev, port_num, index);
port_num          832 drivers/infiniband/core/sysfs.c 	if (!hsa->port_num) {
port_num          842 drivers/infiniband/core/sysfs.c 	ret = update_hw_stats(dev, stats, hsa->port_num, hsa->index);
port_num          845 drivers/infiniband/core/sysfs.c 	ret = print_hw_stat(dev, hsa->port_num, stats, hsa->index, buf);
port_num          861 drivers/infiniband/core/sysfs.c 	if (!hsa->port_num) {
port_num          896 drivers/infiniband/core/sysfs.c 	if (!hsa->port_num) {
port_num          925 drivers/infiniband/core/sysfs.c static struct attribute *alloc_hsa(int index, u8 port_num, const char *name)
port_num          938 drivers/infiniband/core/sysfs.c 	hsa->port_num = port_num;
port_num          943 drivers/infiniband/core/sysfs.c static struct attribute *alloc_hsa_lifespan(char *name, u8 port_num)
port_num          956 drivers/infiniband/core/sysfs.c 	hsa->port_num = port_num;
port_num          962 drivers/infiniband/core/sysfs.c 			   u8 port_num)
port_num          968 drivers/infiniband/core/sysfs.c 	stats = device->ops.alloc_hw_stats(device, port_num);
port_num          986 drivers/infiniband/core/sysfs.c 	ret = device->ops.get_hw_stats(device, stats, port_num,
port_num          997 drivers/infiniband/core/sysfs.c 		hsag->attrs[i] = alloc_hsa(i, port_num, stats->names[i]);
port_num         1005 drivers/infiniband/core/sysfs.c 	hsag->attrs[i] = alloc_hsa_lifespan("lifespan", port_num);
port_num         1017 drivers/infiniband/core/sysfs.c 			device->port_data[port_num].hw_stats = stats;
port_num         1039 drivers/infiniband/core/sysfs.c static int add_port(struct ib_core_device *coredev, int port_num)
port_num         1048 drivers/infiniband/core/sysfs.c 	ret = ib_query_port(device, port_num, &attr);
port_num         1057 drivers/infiniband/core/sysfs.c 	p->port_num   = port_num;
port_num         1061 drivers/infiniband/core/sysfs.c 				   "%d", port_num);
port_num         1082 drivers/infiniband/core/sysfs.c 		p->pma_table = get_counter_table(device, port_num);
port_num         1138 drivers/infiniband/core/sysfs.c 		ret = device->ops.init_port(device, port_num, &p->kobj);
port_num         1148 drivers/infiniband/core/sysfs.c 	if (device->ops.alloc_hw_stats && port_num && is_full_dev)
port_num         1149 drivers/infiniband/core/sysfs.c 		setup_hw_stats(device, p, port_num);
port_num         1320 drivers/infiniband/core/sysfs.c 			device->port_data[port->port_num].hw_stats = NULL;
port_num         1394 drivers/infiniband/core/sysfs.c int ib_port_register_module_stat(struct ib_device *device, u8 port_num,
port_num         1404 drivers/infiniband/core/sysfs.c 		if (port->port_num != port_num)
port_num          872 drivers/infiniband/core/ucma.c 	resp.port_num = ctx->cm_id->port_num;
port_num          874 drivers/infiniband/core/ucma.c 	if (rdma_cap_ib_sa(ctx->cm_id->device, ctx->cm_id->port_num))
port_num          876 drivers/infiniband/core/ucma.c 	else if (rdma_protocol_roce(ctx->cm_id->device, ctx->cm_id->port_num))
port_num          878 drivers/infiniband/core/ucma.c 	else if (rdma_protocol_iwarp(ctx->cm_id->device, ctx->cm_id->port_num))
port_num          898 drivers/infiniband/core/ucma.c 	resp->port_num = cm_id->port_num;
port_num         1304 drivers/infiniband/core/ucma.c 	if (rdma_cap_opa_ah(ctx->cm_id->device, ctx->cm_id->port_num)) {
port_num          104 drivers/infiniband/core/user_mad.c 	u8                     port_num;
port_num          252 drivers/infiniband/core/user_mad.c 	if (rdma_cap_opa_mad(agent->device, agent->port_num))
port_num          266 drivers/infiniband/core/user_mad.c 		ret = ib_init_ah_attr_from_wc(agent->device, agent->port_num,
port_num          533 drivers/infiniband/core/user_mad.c 					 file->port->port_num);
port_num          537 drivers/infiniband/core/user_mad.c 	rdma_ah_set_port_num(&ah_attr, file->port->port_num);
port_num          725 drivers/infiniband/core/user_mad.c 	agent = ib_register_mad_agent(file->port->ib_dev, file->port->port_num,
port_num          841 drivers/infiniband/core/user_mad.c 	agent = ib_register_mad_agent(file->port->ib_dev, file->port->port_num,
port_num         1091 drivers/infiniband/core/user_mad.c 	ret = ib_modify_port(port->ib_dev, port->port_num, 0, &props);
port_num         1117 drivers/infiniband/core/user_mad.c 		ret = ib_modify_port(port->ib_dev, port->port_num, 0, &props);
port_num         1206 drivers/infiniband/core/user_mad.c 	return sprintf(buf, "%d\n", port->port_num);
port_num         1262 drivers/infiniband/core/user_mad.c static int ib_umad_init_port(struct ib_device *device, int port_num,
port_num         1285 drivers/infiniband/core/user_mad.c 	port->port_num = port_num;
port_num          320 drivers/infiniband/core/uverbs.h 			    struct ib_device *ib_dev, u8 port_num);
port_num          395 drivers/infiniband/core/uverbs_cmd.c 	ret = ib_query_port(ib_dev, cmd.port_num, &attr);
port_num          400 drivers/infiniband/core/uverbs_cmd.c 	copy_port_attr_to_resp(&attr, &resp, ib_dev, cmd.port_num);
port_num         1154 drivers/infiniband/core/uverbs_cmd.c 	if (rdma_cap_opa_ah(ib_dev, wc->port_num))
port_num         1160 drivers/infiniband/core/uverbs_cmd.c 	tmp.port_num		= wc->port_num;
port_num         1644 drivers/infiniband/core/uverbs_cmd.c 	uverb_attr->port_num          = rdma_ah_get_port_num(rdma_attr);
port_num         1697 drivers/infiniband/core/uverbs_cmd.c 	resp.port_num               = attr->port_num;
port_num         1741 drivers/infiniband/core/uverbs_cmd.c 	rdma_attr->type = rdma_ah_find_type(dev, uverb_attr->port_num);
port_num         1756 drivers/infiniband/core/uverbs_cmd.c 	rdma_ah_set_port_num(rdma_attr, uverb_attr->port_num);
port_num         1779 drivers/infiniband/core/uverbs_cmd.c 	    !rdma_is_port_valid(qp->device, cmd->base.port_num)) {
port_num         1785 drivers/infiniband/core/uverbs_cmd.c 		if (!rdma_is_port_valid(qp->device, cmd->base.dest.port_num)) {
port_num         1806 drivers/infiniband/core/uverbs_cmd.c 			if (cmd->base.dest.port_num != qp->real_qp->port) {
port_num         1826 drivers/infiniband/core/uverbs_cmd.c 			    cmd->base.port_num != cmd->base.dest.port_num) {
port_num         1833 drivers/infiniband/core/uverbs_cmd.c 				cmd->base.port_num = cmd->base.dest.port_num;
port_num         1840 drivers/infiniband/core/uverbs_cmd.c 	    !rdma_is_port_valid(qp->device, cmd->base.alt_dest.port_num) ||
port_num         1841 drivers/infiniband/core/uverbs_cmd.c 	    cmd->base.alt_port_num != cmd->base.alt_dest.port_num)) {
port_num         1883 drivers/infiniband/core/uverbs_cmd.c 		attr->port_num = cmd->base.port_num;
port_num         2410 drivers/infiniband/core/uverbs_cmd.c 	if (!rdma_is_port_valid(ib_dev, cmd.attr.port_num)) {
port_num         2421 drivers/infiniband/core/uverbs_cmd.c 	attr.type = rdma_ah_find_type(ib_dev, cmd.attr.port_num);
port_num         2427 drivers/infiniband/core/uverbs_cmd.c 	rdma_ah_set_port_num(&attr, cmd.attr.port_num);
port_num          540 drivers/infiniband/core/uverbs_main.c 	ib_uverbs_async_handler(file, event->element.port_num, event->event,
port_num         1337 drivers/infiniband/core/uverbs_main.c 	event.element.port_num = 0;
port_num           50 drivers/infiniband/core/uverbs_marshall.c 	if (ib_query_port(dev, opa->port_num, &port_attr)) {
port_num           91 drivers/infiniband/core/uverbs_marshall.c 	dst->port_num		   = rdma_ah_get_port_num(src);
port_num          126 drivers/infiniband/core/uverbs_marshall.c 	dst->port_num		= src->port_num;
port_num          134 drivers/infiniband/core/uverbs_std_types_device.c 			    struct ib_device *ib_dev, u8 port_num)
port_num          146 drivers/infiniband/core/uverbs_std_types_device.c 	if (rdma_is_grh_required(ib_dev, port_num))
port_num          149 drivers/infiniband/core/uverbs_std_types_device.c 	if (rdma_cap_opa_ah(ib_dev, port_num)) {
port_num          165 drivers/infiniband/core/uverbs_std_types_device.c 	resp->link_layer = rdma_port_get_link_layer(ib_dev, port_num);
port_num          176 drivers/infiniband/core/uverbs_std_types_device.c 	u8 port_num;
port_num          187 drivers/infiniband/core/uverbs_std_types_device.c 	ret = uverbs_get_const(&port_num, attrs,
port_num          192 drivers/infiniband/core/uverbs_std_types_device.c 	ret = ib_query_port(ib_dev, port_num, &attr);
port_num          196 drivers/infiniband/core/uverbs_std_types_device.c 	copy_port_attr_to_resp(&attr, &resp.legacy_resp, ib_dev, port_num);
port_num          228 drivers/infiniband/core/verbs.c enum rdma_link_layer rdma_port_get_link_layer(struct ib_device *device, u8 port_num)
port_num          232 drivers/infiniband/core/verbs.c 		return device->ops.get_link_layer(device, port_num);
port_num          411 drivers/infiniband/core/verbs.c 	if (!rdma_is_port_valid(device, ah_attr->port_num))
port_num          414 drivers/infiniband/core/verbs.c 	if ((rdma_is_grh_required(device, ah_attr->port_num) ||
port_num          425 drivers/infiniband/core/verbs.c 		    ah_attr->grh.sgid_attr->port_num != ah_attr->port_num)
port_num          457 drivers/infiniband/core/verbs.c 		rdma_get_gid_attr(device, ah_attr->port_num, grh->sgid_index);
port_num          636 drivers/infiniband/core/verbs.c 						     u8 port_num,
port_num          641 drivers/infiniband/core/verbs.c 	if (rdma_protocol_ib(device, port_num))
port_num          679 drivers/infiniband/core/verbs.c get_sgid_attr_from_eth(struct ib_device *device, u8 port_num,
port_num          686 drivers/infiniband/core/verbs.c 	return rdma_find_gid_by_filter(device, sgid, port_num, find_gid_index,
port_num          766 drivers/infiniband/core/verbs.c int ib_init_ah_attr_from_wc(struct ib_device *device, u8 port_num,
port_num          782 drivers/infiniband/core/verbs.c 	ah_attr->type = rdma_ah_find_type(device, port_num);
port_num          783 drivers/infiniband/core/verbs.c 	if (rdma_cap_eth_ah(device, port_num)) {
port_num          787 drivers/infiniband/core/verbs.c 			net_type = ib_get_net_type_by_grh(device, port_num, grh);
port_num          796 drivers/infiniband/core/verbs.c 	rdma_ah_set_port_num(ah_attr, port_num);
port_num          798 drivers/infiniband/core/verbs.c 	if (rdma_protocol_roce(device, port_num)) {
port_num          805 drivers/infiniband/core/verbs.c 		sgid_attr = get_sgid_attr_from_eth(device, port_num,
port_num          834 drivers/infiniband/core/verbs.c 				device, &dgid, IB_GID_TYPE_IB, port_num, NULL);
port_num          836 drivers/infiniband/core/verbs.c 			sgid_attr = rdma_get_gid_attr(device, port_num, 0);
port_num          897 drivers/infiniband/core/verbs.c 				   const struct ib_grh *grh, u8 port_num)
port_num          903 drivers/infiniband/core/verbs.c 	ret = ib_init_ah_attr_from_wc(pd->device, port_num, wc, grh, &ah_attr);
port_num         1620 drivers/infiniband/core/verbs.c 	u8 port = attr_mask & IB_QP_PORT ? attr->port_num : qp->port;
port_num         1649 drivers/infiniband/core/verbs.c 				       attr->alt_ah_attr.port_num) &&
port_num         1690 drivers/infiniband/core/verbs.c 		rdma_counter_bind_qp_auto(qp, attr->port_num);
port_num         1697 drivers/infiniband/core/verbs.c 		qp->port = attr->port_num;
port_num         1732 drivers/infiniband/core/verbs.c int ib_get_eth_speed(struct ib_device *dev, u8 port_num, u8 *speed, u8 *width)
port_num         1739 drivers/infiniband/core/verbs.c 	if (rdma_port_get_link_layer(dev, port_num) != IB_LINK_LAYER_ETHERNET)
port_num         1742 drivers/infiniband/core/verbs.c 	netdev = ib_device_get_netdev(dev, port_num);
port_num         2157 drivers/infiniband/core/verbs.c 			if (rdma_port_get_link_layer(qp->device, attr.port_num) !=
port_num         2779 drivers/infiniband/core/verbs.c struct net_device *rdma_alloc_netdev(struct ib_device *device, u8 port_num,
port_num         2791 drivers/infiniband/core/verbs.c 	rc = device->ops.rdma_netdev_get_params(device, port_num, type,
port_num         2805 drivers/infiniband/core/verbs.c int rdma_init_netdev(struct ib_device *device, u8 port_num,
port_num         2817 drivers/infiniband/core/verbs.c 	rc = device->ops.rdma_netdev_get_params(device, port_num, type,
port_num         2822 drivers/infiniband/core/verbs.c 	return params.initialize_rdma_netdev(device, port_num,
port_num          238 drivers/infiniband/hw/bnxt_re/hw_counters.c 						u8 port_num)
port_num          242 drivers/infiniband/hw/bnxt_re/hw_counters.c 	if (!port_num)
port_num          100 drivers/infiniband/hw/bnxt_re/hw_counters.h 						u8 port_num);
port_num          213 drivers/infiniband/hw/bnxt_re/ib_verbs.c int bnxt_re_query_port(struct ib_device *ibdev, u8 port_num,
port_num          253 drivers/infiniband/hw/bnxt_re/ib_verbs.c int bnxt_re_get_port_immutable(struct ib_device *ibdev, u8 port_num,
port_num          258 drivers/infiniband/hw/bnxt_re/ib_verbs.c 	if (bnxt_re_query_port(ibdev, port_num, &port_attr))
port_num          278 drivers/infiniband/hw/bnxt_re/ib_verbs.c int bnxt_re_query_pkey(struct ib_device *ibdev, u8 port_num,
port_num          290 drivers/infiniband/hw/bnxt_re/ib_verbs.c int bnxt_re_query_gid(struct ib_device *ibdev, u8 port_num,
port_num          398 drivers/infiniband/hw/bnxt_re/ib_verbs.c 					    u8 port_num)
port_num         3048 drivers/infiniband/hw/bnxt_re/ib_verbs.c 	wc->port_num = 1;
port_num         3176 drivers/infiniband/hw/bnxt_re/ib_verbs.c 			wc->port_num = 1;
port_num          151 drivers/infiniband/hw/bnxt_re/ib_verbs.h int bnxt_re_query_port(struct ib_device *ibdev, u8 port_num,
port_num          153 drivers/infiniband/hw/bnxt_re/ib_verbs.h int bnxt_re_get_port_immutable(struct ib_device *ibdev, u8 port_num,
port_num          156 drivers/infiniband/hw/bnxt_re/ib_verbs.h int bnxt_re_query_pkey(struct ib_device *ibdev, u8 port_num,
port_num          160 drivers/infiniband/hw/bnxt_re/ib_verbs.h int bnxt_re_query_gid(struct ib_device *ibdev, u8 port_num,
port_num          163 drivers/infiniband/hw/bnxt_re/ib_verbs.h 					    u8 port_num);
port_num         1043 drivers/infiniband/hw/bnxt_re/main.c 				   u8 port_num, enum ib_event_type event)
port_num         1055 drivers/infiniband/hw/bnxt_re/main.c 		ib_event.element.port_num = port_num;
port_num          251 drivers/infiniband/hw/cxgb3/iwch.c 		event.element.port_num = portnum;
port_num         1106 drivers/infiniband/hw/cxgb3/iwch_provider.c 					      u8 port_num)
port_num         1111 drivers/infiniband/hw/cxgb3/iwch_provider.c 	if (port_num != 0)
port_num         1174 drivers/infiniband/hw/cxgb3/iwch_provider.c static int iwch_port_immutable(struct ib_device *ibdev, u8 port_num,
port_num         1182 drivers/infiniband/hw/cxgb3/iwch_provider.c 	err = ib_query_port(ibdev, port_num, &attr);
port_num          387 drivers/infiniband/hw/cxgb4/provider.c 					      u8 port_num)
port_num          391 drivers/infiniband/hw/cxgb4/provider.c 	if (port_num != 0)
port_num          429 drivers/infiniband/hw/cxgb4/provider.c static int c4iw_port_immutable(struct ib_device *ibdev, u8 port_num,
port_num          437 drivers/infiniband/hw/cxgb4/provider.c 	err = ib_query_port(ibdev, port_num, &attr);
port_num          144 drivers/infiniband/hw/efa/efa.h int efa_get_port_immutable(struct ib_device *ibdev, u8 port_num,
port_num          158 drivers/infiniband/hw/efa/efa.h 					 u8 port_num);
port_num          159 drivers/infiniband/hw/efa/efa.h struct rdma_hw_stats *efa_alloc_hw_stats(struct ib_device *ibdev, u8 port_num);
port_num          161 drivers/infiniband/hw/efa/efa.h 		     u8 port_num, int index);
port_num          382 drivers/infiniband/hw/efa/efa_verbs.c 	qp_attr->port_num = 1;
port_num          808 drivers/infiniband/hw/efa/efa_verbs.c 	if ((qp_attr_mask & IB_QP_PORT) && qp_attr->port_num != 1) {
port_num         1514 drivers/infiniband/hw/efa/efa_verbs.c int efa_get_port_immutable(struct ib_device *ibdev, u8 port_num,
port_num         1520 drivers/infiniband/hw/efa/efa_verbs.c 	err = ib_query_port(ibdev, port_num, &attr);
port_num         1755 drivers/infiniband/hw/efa/efa_verbs.c struct rdma_hw_stats *efa_alloc_hw_stats(struct ib_device *ibdev, u8 port_num)
port_num         1763 drivers/infiniband/hw/efa/efa_verbs.c 		     u8 port_num, int index)
port_num         1804 drivers/infiniband/hw/efa/efa_verbs.c 					 u8 port_num)
port_num         10772 drivers/infiniband/hw/hfi1/chip.c 			event.element.port_num = ppd->port;
port_num          447 drivers/infiniband/hw/hfi1/driver.c 	struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num         2047 drivers/infiniband/hw/hfi1/hfi.h int hfi1_create_port_files(struct ib_device *ibdev, u8 port_num,
port_num          136 drivers/infiniband/hw/hfi1/intr.c 	event.element.port_num = ppd->port;
port_num          117 drivers/infiniband/hw/hfi1/mad.c 	event.element.port_num = port;
port_num          300 drivers/infiniband/hw/hfi1/mad.c 	u8 port_num = ppd->port;
port_num          303 drivers/infiniband/hw/hfi1/mad.c 	attr.type = rdma_ah_find_type(&dd->verbs_dev.rdi.ibdev, port_num);
port_num          518 drivers/infiniband/hw/hfi1/mad.c void hfi1_cap_mask_chg(struct rvt_dev_info *rdi, u8 port_num)
port_num          523 drivers/infiniband/hw/hfi1/mad.c 	struct hfi1_ibport *ibp = &dd->pport[port_num - 1].ibport_data;
port_num         1403 drivers/infiniband/hw/hfi1/mad.c 	event.element.port_num = port;
port_num         2324 drivers/infiniband/hw/hfi1/mad.c 	__u8 port_num;
port_num         2332 drivers/infiniband/hw/hfi1/mad.c 	__u8 port_num;
port_num         2736 drivers/infiniband/hw/hfi1/mad.c 	u8 port_num = req->port_num;
port_num         2752 drivers/infiniband/hw/hfi1/mad.c 	if (nports != 1 || (port_num && port_num != port) ||
port_num         2761 drivers/infiniband/hw/hfi1/mad.c 	if (port_num)
port_num         2762 drivers/infiniband/hw/hfi1/mad.c 		rsp->port_num = port_num;
port_num         2764 drivers/infiniband/hw/hfi1/mad.c 		rsp->port_num = port;
port_num         2991 drivers/infiniband/hw/hfi1/mad.c 	u8 port_num;
port_num         3024 drivers/infiniband/hw/hfi1/mad.c 	port_num = find_first_bit((unsigned long *)&port_mask,
port_num         3027 drivers/infiniband/hw/hfi1/mad.c 	if (port_num != port) {
port_num         3202 drivers/infiniband/hw/hfi1/mad.c 	u8 port_num;
port_num         3239 drivers/infiniband/hw/hfi1/mad.c 	port_num = find_first_bit((unsigned long *)&port_mask,
port_num         3242 drivers/infiniband/hw/hfi1/mad.c 	if (port_num != port) {
port_num         3249 drivers/infiniband/hw/hfi1/mad.c 	ibp = to_iport(ibdev, port_num);
port_num         3253 drivers/infiniband/hw/hfi1/mad.c 	rsp->port_number = port_num;
port_num         3255 drivers/infiniband/hw/hfi1/mad.c 	pma_get_opa_port_ectrs(ibdev, rsp, port_num);
port_num         3381 drivers/infiniband/hw/hfi1/mad.c 	u8 port_num;
port_num         3411 drivers/infiniband/hw/hfi1/mad.c 	port_num = find_first_bit((unsigned long *)&port_mask,
port_num         3414 drivers/infiniband/hw/hfi1/mad.c 	if (port_num != port) {
port_num         3631 drivers/infiniband/hw/hfi1/mad.c 	u8 port_num;
port_num         3653 drivers/infiniband/hw/hfi1/mad.c 	port_num = find_first_bit((unsigned long *)&port_mask,
port_num         3656 drivers/infiniband/hw/hfi1/mad.c 	if (port_num != port) {
port_num         4539 drivers/infiniband/hw/hfi1/mad.c 		u32 port_num = be32_to_cpu(smp->attr_mod);
port_num         4551 drivers/infiniband/hw/hfi1/mad.c 		    port_num && port_num <= ibdev->phys_port_cnt &&
port_num         4552 drivers/infiniband/hw/hfi1/mad.c 		    port != port_num)
port_num         4553 drivers/infiniband/hw/hfi1/mad.c 			(void)check_mkey(to_iport(ibdev, port_num),
port_num         4636 drivers/infiniband/hw/hfi1/mad.c 		u32 port_num = be32_to_cpu(smp->attr_mod);
port_num         4648 drivers/infiniband/hw/hfi1/mad.c 		    port_num && port_num <= ibdev->phys_port_cnt &&
port_num         4649 drivers/infiniband/hw/hfi1/mad.c 		    port != port_num)
port_num         4650 drivers/infiniband/hw/hfi1/mad.c 			(void)check_mkey(to_iport(ibdev, port_num),
port_num          111 drivers/infiniband/hw/hfi1/mad.h 			u8	port_num;	/* where violation happened */
port_num          273 drivers/infiniband/hw/hfi1/qp.c 	ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num          321 drivers/infiniband/hw/hfi1/qp.c 	struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num          382 drivers/infiniband/hw/hfi1/qp.c 		to_iport(qp->ibqp.device, qp->port_num);
port_num          518 drivers/infiniband/hw/hfi1/qp.c 				to_iport(qp->ibqp.device, qp->port_num);
port_num          833 drivers/infiniband/hw/hfi1/qp.c 	qp->port_num = rdma_ah_get_port_num(&qp->alt_ah_attr);
port_num          863 drivers/infiniband/hw/hfi1/qp.c 	ibp = &dd->pport[qp->port_num - 1].ibport_data;
port_num          876 drivers/infiniband/hw/hfi1/qp.c 	int mtu, pidx = qp->port_num - 1;
port_num          936 drivers/infiniband/hw/hfi1/qp.c 		to_iport(qp->ibqp.device, qp->port_num);
port_num          940 drivers/infiniband/hw/hfi1/qp.c 	if (qp->port_num != ppd->port ||
port_num          707 drivers/infiniband/hw/hfi1/qsfp.c int get_cable_info(struct hfi1_devdata *dd, u32 port_num, u32 addr, u32 len,
port_num          714 drivers/infiniband/hw/hfi1/qsfp.c 	if (port_num > dd->num_pports || port_num < 1) {
port_num          716 drivers/infiniband/hw/hfi1/qsfp.c 			    __func__, port_num);
port_num          721 drivers/infiniband/hw/hfi1/qsfp.c 	ppd = dd->pport + (port_num - 1);
port_num          229 drivers/infiniband/hw/hfi1/qsfp.h int get_cable_info(struct hfi1_devdata *dd, u32 port_num, u32 addr,
port_num         1627 drivers/infiniband/hw/hfi1/rc.c 					to_iport(qp->ibqp.device, qp->port_num);
port_num         1658 drivers/infiniband/hw/hfi1/rc.c 	ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num         3006 drivers/infiniband/hw/hfi1/rc.c 		wc.port_num = 0;
port_num          149 drivers/infiniband/hw/hfi1/ruc.c 		    ppd_from_ibp(ibp)->port != qp->port_num)
port_num          541 drivers/infiniband/hw/hfi1/ruc.c 	ps.ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num          656 drivers/infiniband/hw/hfi1/sysfs.c int hfi1_create_port_files(struct ib_device *ibdev, u8 port_num,
port_num          663 drivers/infiniband/hw/hfi1/sysfs.c 	if (!port_num || port_num > dd->num_pports) {
port_num          666 drivers/infiniband/hw/hfi1/sysfs.c 			   port_num);
port_num          669 drivers/infiniband/hw/hfi1/sysfs.c 	ppd = &dd->pport[port_num - 1];
port_num          676 drivers/infiniband/hw/hfi1/sysfs.c 			   ret, port_num);
port_num          690 drivers/infiniband/hw/hfi1/sysfs.c 			   ret, port_num);
port_num          700 drivers/infiniband/hw/hfi1/sysfs.c 			   ret, port_num);
port_num          710 drivers/infiniband/hw/hfi1/sysfs.c 			   ret, port_num);
port_num          720 drivers/infiniband/hw/hfi1/sysfs.c 			   ret, port_num);
port_num          728 drivers/infiniband/hw/hfi1/sysfs.c 			   ret, port_num);
port_num          734 drivers/infiniband/hw/hfi1/sysfs.c 		    port_num);
port_num          618 drivers/infiniband/hw/hfi1/tid_rdma.c 	ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num         1982 drivers/infiniband/hw/hfi1/tid_rdma.c 	struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num         2225 drivers/infiniband/hw/hfi1/tid_rdma.c 	struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num         2683 drivers/infiniband/hw/hfi1/tid_rdma.c 	ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num         3648 drivers/infiniband/hw/hfi1/tid_rdma.c 	struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num         4553 drivers/infiniband/hw/hfi1/tid_rdma.c 							qp->port_num));
port_num         5342 drivers/infiniband/hw/hfi1/tid_rdma.c 	ps.ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num         5407 drivers/infiniband/hw/hfi1/tid_rdma.c 		to_iport(qp->ibqp.device, qp->port_num);
port_num          477 drivers/infiniband/hw/hfi1/uc.c 		wc.port_num = 0;
port_num           75 drivers/infiniband/hw/hfi1/ud.c 	struct hfi1_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num);
port_num          256 drivers/infiniband/hw/hfi1/ud.c 	wc.port_num = qp->port_num;
port_num          273 drivers/infiniband/hw/hfi1/ud.c 	ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num          317 drivers/infiniband/hw/hfi1/ud.c 	ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num          389 drivers/infiniband/hw/hfi1/ud.c 	ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num          516 drivers/infiniband/hw/hfi1/ud.c 	ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num         1062 drivers/infiniband/hw/hfi1/ud.c 	wc.port_num = qp->port_num;
port_num         1410 drivers/infiniband/hw/hfi1/verbs.c static int query_port(struct rvt_dev_info *rdi, u8 port_num,
port_num         1415 drivers/infiniband/hw/hfi1/verbs.c 	struct hfi1_pportdata *ppd = &dd->pport[port_num - 1];
port_num         1486 drivers/infiniband/hw/hfi1/verbs.c static int shut_down_port(struct rvt_dev_info *rdi, u8 port_num)
port_num         1490 drivers/infiniband/hw/hfi1/verbs.c 	struct hfi1_pportdata *ppd = &dd->pport[port_num - 1];
port_num         1695 drivers/infiniband/hw/hfi1/verbs.c 					    u8 port_num)
port_num         1732 drivers/infiniband/hw/hfi1/verbs.c 	if (!port_num)
port_num          328 drivers/infiniband/hw/hfi1/verbs.h void hfi1_cap_mask_chg(struct rvt_dev_info *rdi, u8 port_num);
port_num          160 drivers/infiniband/hw/hfi1/vnic.h 				      u8 port_num,
port_num          795 drivers/infiniband/hw/hfi1/vnic_main.c 				      u8 port_num,
port_num          810 drivers/infiniband/hw/hfi1/vnic_main.c 	if (!port_num || (port_num > dd->num_pports))
port_num          816 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 		attr.port_num		= port + 1;
port_num         2729 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 	u8 port_num;
port_num         2926 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 		port = (attr_mask & IB_QP_PORT) ? (attr->port_num - 1) :
port_num         2950 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 		port_num = rdma_ah_get_port_num(&attr->ah_attr);
port_num         2955 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 						  port_num - 1,
port_num         3300 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 		hr_qp->port = attr->port_num - 1;
port_num         3424 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 	qp_attr->port_num = hr_qp->port + 1;
port_num         3551 drivers/infiniband/hw/hns/hns_roce_hw_v1.c 	qp_attr->port_num = hr_qp->port + 1;
port_num         2943 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		wc->port_num = roce_get_field(cqe->byte_32,
port_num         3680 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	u8 port_num;
port_num         3825 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	port = (attr_mask & IB_QP_PORT) ? (attr->port_num - 1) : hr_qp->port;
port_num         3843 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	port_num = rdma_ah_get_port_num(&attr->ah_attr);
port_num         3847 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		       hns_get_gid_index(hr_dev, port_num - 1,
port_num         4073 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	ib_port = (attr_mask & IB_QP_PORT) ? attr->port_num : hr_qp->port + 1;
port_num         4380 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		hr_qp->port = attr->port_num - 1;
port_num         4610 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	qp_attr->port_num = hr_qp->port + 1;
port_num         6548 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	event.element.port_num = 1;
port_num           79 drivers/infiniband/hw/hns/hns_roce_main.c 	u8 port = attr->port_num - 1;
port_num           94 drivers/infiniband/hw/hns/hns_roce_main.c 	u8 port = attr->port_num - 1;
port_num          226 drivers/infiniband/hw/hns/hns_roce_main.c static int hns_roce_query_port(struct ib_device *ib_dev, u8 port_num,
port_num          236 drivers/infiniband/hw/hns/hns_roce_main.c 	assert(port_num > 0);
port_num          237 drivers/infiniband/hw/hns/hns_roce_main.c 	port = port_num - 1;
port_num          274 drivers/infiniband/hw/hns/hns_roce_main.c 						    u8 port_num)
port_num          304 drivers/infiniband/hw/hns/hns_roce_main.c static int hns_roce_modify_port(struct ib_device *ib_dev, u8 port_num, int mask,
port_num          382 drivers/infiniband/hw/hns/hns_roce_main.c static int hns_roce_port_immutable(struct ib_device *ib_dev, u8 port_num,
port_num          388 drivers/infiniband/hw/hns/hns_roce_main.c 	ret = ib_query_port(ib_dev, port_num, &attr);
port_num         1057 drivers/infiniband/hw/hns/hns_roce_qp.c 		hr_qp->port = init_attr->port_num - 1;
port_num         1112 drivers/infiniband/hw/hns/hns_roce_qp.c 	p = attr_mask & IB_QP_PORT ? (attr->port_num - 1) : hr_qp->port;
port_num         1135 drivers/infiniband/hw/hns/hns_roce_qp.c 	    (attr->port_num == 0 || attr->port_num > hr_dev->caps.num_ports)) {
port_num         1138 drivers/infiniband/hw/hns/hns_roce_qp.c 			attr->port_num);
port_num         1143 drivers/infiniband/hw/hns/hns_roce_qp.c 		p = attr_mask & IB_QP_PORT ? (attr->port_num - 1) : hr_qp->port;
port_num          772 drivers/infiniband/hw/i40iw/i40iw_verbs.c 	attr->port_num = 1;
port_num          779 drivers/infiniband/hw/i40iw/i40iw_verbs.c 	init_attr->port_num = 1;
port_num         2449 drivers/infiniband/hw/i40iw/i40iw_verbs.c static int i40iw_port_immutable(struct ib_device *ibdev, u8 port_num,
port_num         2457 drivers/infiniband/hw/i40iw/i40iw_verbs.c 	err = ib_query_port(ibdev, port_num, &attr);
port_num         2548 drivers/infiniband/hw/i40iw/i40iw_verbs.c 						  u8 port_num)
port_num         2579 drivers/infiniband/hw/i40iw/i40iw_verbs.c 			      u8 port_num, int index)
port_num         2744 drivers/infiniband/hw/i40iw/i40iw_verbs.c 	event.element.port_num = 1;
port_num          197 drivers/infiniband/hw/mlx4/ah.c 	int port_num = be32_to_cpu(ah->av.ib.port_pd) >> 24;
port_num          214 drivers/infiniband/hw/mlx4/ah.c 	rdma_ah_set_port_num(ah_attr, port_num);
port_num           76 drivers/infiniband/hw/mlx4/alias_GUID.c 					 u8 port_num, u8 *p_data)
port_num           81 drivers/infiniband/hw/mlx4/alias_GUID.c 	int port_index = port_num - 1;
port_num           87 drivers/infiniband/hw/mlx4/alias_GUID.c 				   ports_guid[port_num - 1].
port_num           89 drivers/infiniband/hw/mlx4/alias_GUID.c 	pr_debug("port: %d, guid_indexes: 0x%llx\n", port_num, guid_indexes);
port_num          187 drivers/infiniband/hw/mlx4/alias_GUID.c 					  int block_num, u8 port_num,
port_num          204 drivers/infiniband/hw/mlx4/alias_GUID.c 	rec = &dev->sriov.alias_guid.ports_guid[port_num - 1].
port_num          207 drivers/infiniband/hw/mlx4/alias_GUID.c 				   ports_guid[port_num - 1].
port_num          209 drivers/infiniband/hw/mlx4/alias_GUID.c 	pr_debug("port: %d, guid_indexes: 0x%llx\n", port_num, guid_indexes);
port_num          221 drivers/infiniband/hw/mlx4/alias_GUID.c 		slave_port = mlx4_phys_to_slave_port(dev->dev, slave_id, port_num);
port_num          226 drivers/infiniband/hw/mlx4/alias_GUID.c 		form_cache_ag = get_cached_alias_guid(dev, port_num,
port_num          255 drivers/infiniband/hw/mlx4/alias_GUID.c 		mlx4_gen_guid_change_eqe(dev->dev, slave_id, port_num);
port_num          259 drivers/infiniband/hw/mlx4/alias_GUID.c 			prev_state = mlx4_get_slave_port_state(dev->dev, slave_id, port_num);
port_num          260 drivers/infiniband/hw/mlx4/alias_GUID.c 			new_state = set_and_calc_slave_port_state(dev->dev, slave_id, port_num,
port_num          265 drivers/infiniband/hw/mlx4/alias_GUID.c 				 slave_id, port_num, prev_state, new_state, gen_event);
port_num          268 drivers/infiniband/hw/mlx4/alias_GUID.c 					 slave_id, port_num);
port_num          270 drivers/infiniband/hw/mlx4/alias_GUID.c 							       port_num, MLX4_PORT_CHANGE_SUBTYPE_ACTIVE);
port_num          273 drivers/infiniband/hw/mlx4/alias_GUID.c 			set_and_calc_slave_port_state(dev->dev, slave_id, port_num,
port_num          278 drivers/infiniband/hw/mlx4/alias_GUID.c 					 slave_id, port_num);
port_num          281 drivers/infiniband/hw/mlx4/alias_GUID.c 							       port_num,
port_num           91 drivers/infiniband/hw/mlx4/mad.c static void handle_client_rereg_event(struct mlx4_ib_dev *dev, u8 port_num);
port_num           92 drivers/infiniband/hw/mlx4/mad.c static void handle_lid_change_event(struct mlx4_ib_dev *dev, u8 port_num);
port_num           93 drivers/infiniband/hw/mlx4/mad.c static void __propagate_pkey_ev(struct mlx4_ib_dev *dev, int port_num,
port_num          189 drivers/infiniband/hw/mlx4/mad.c static void update_sm_ah(struct mlx4_ib_dev *dev, u8 port_num, u16 lid, u8 sl)
port_num          195 drivers/infiniband/hw/mlx4/mad.c 	if (!dev->send_agent[port_num - 1][0])
port_num          199 drivers/infiniband/hw/mlx4/mad.c 	ah_attr.type = rdma_ah_find_type(&dev->ib_dev, port_num);
port_num          202 drivers/infiniband/hw/mlx4/mad.c 	rdma_ah_set_port_num(&ah_attr, port_num);
port_num          204 drivers/infiniband/hw/mlx4/mad.c 	new_ah = rdma_create_ah(dev->send_agent[port_num - 1][0]->qp->pd,
port_num          210 drivers/infiniband/hw/mlx4/mad.c 	if (dev->sm_ah[port_num - 1])
port_num          211 drivers/infiniband/hw/mlx4/mad.c 		rdma_destroy_ah(dev->sm_ah[port_num - 1], 0);
port_num          212 drivers/infiniband/hw/mlx4/mad.c 	dev->sm_ah[port_num - 1] = new_ah;
port_num          220 drivers/infiniband/hw/mlx4/mad.c static void smp_snoop(struct ib_device *ibdev, u8 port_num, const struct ib_mad *mad,
port_num          241 drivers/infiniband/hw/mlx4/mad.c 			update_sm_ah(dev, port_num,
port_num          246 drivers/infiniband/hw/mlx4/mad.c 				handle_client_rereg_event(dev, port_num);
port_num          249 drivers/infiniband/hw/mlx4/mad.c 				handle_lid_change_event(dev, port_num);
port_num          256 drivers/infiniband/hw/mlx4/mad.c 				mlx4_ib_dispatch_event(dev, port_num,
port_num          271 drivers/infiniband/hw/mlx4/mad.c 				    dev->pkeys.phys_pkey_cache[port_num - 1][i + bn*32]) {
port_num          273 drivers/infiniband/hw/mlx4/mad.c 					dev->pkeys.phys_pkey_cache[port_num - 1][i + bn*32] =
port_num          279 drivers/infiniband/hw/mlx4/mad.c 				 port_num, bn, pkey_change_bitmap);
port_num          282 drivers/infiniband/hw/mlx4/mad.c 				mlx4_ib_dispatch_event(dev, port_num,
port_num          285 drivers/infiniband/hw/mlx4/mad.c 					__propagate_pkey_ev(dev, port_num, bn,
port_num          295 drivers/infiniband/hw/mlx4/mad.c 				mlx4_ib_dispatch_event(dev, port_num,
port_num          301 drivers/infiniband/hw/mlx4/mad.c 				mlx4_ib_update_cache_on_guid_change(dev, bn, port_num,
port_num          303 drivers/infiniband/hw/mlx4/mad.c 				mlx4_ib_notify_slaves_on_guid_change(dev, bn, port_num,
port_num          322 drivers/infiniband/hw/mlx4/mad.c 						 port_num, jj, sl2vl64.sl8[jj]);
port_num          324 drivers/infiniband/hw/mlx4/mad.c 				atomic64_set(&dev->sl2vl[port_num - 1], sl2vl64.sl64);
port_num          333 drivers/infiniband/hw/mlx4/mad.c static void __propagate_pkey_ev(struct mlx4_ib_dev *dev, int port_num,
port_num          350 drivers/infiniband/hw/mlx4/mad.c 			     ix < dev->dev->caps.pkey_table_len[port_num]; ix++) {
port_num          351 drivers/infiniband/hw/mlx4/mad.c 				if (dev->pkeys.virt2phys_pkey[slave][port_num - 1]
port_num          353 drivers/infiniband/hw/mlx4/mad.c 					err = mlx4_gen_pkey_eqe(dev->dev, slave, port_num);
port_num          356 drivers/infiniband/hw/mlx4/mad.c 						 slave, port_num, ix, err);
port_num          383 drivers/infiniband/hw/mlx4/mad.c static void forward_trap(struct mlx4_ib_dev *dev, u8 port_num, const struct ib_mad *mad)
port_num          387 drivers/infiniband/hw/mlx4/mad.c 	struct ib_mad_agent *agent = dev->send_agent[port_num - 1][qpn];
port_num          405 drivers/infiniband/hw/mlx4/mad.c 		if ((send_buf->ah = dev->sm_ah[port_num - 1]))
port_num          641 drivers/infiniband/hw/mlx4/mad.c 	wr.port_num = port;
port_num          802 drivers/infiniband/hw/mlx4/mad.c static int ib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,
port_num          813 drivers/infiniband/hw/mlx4/mad.c 			 port_num,
port_num          834 drivers/infiniband/hw/mlx4/mad.c 		forward_trap(to_mdev(ibdev), port_num, in_mad);
port_num          864 drivers/infiniband/hw/mlx4/mad.c 	    !ib_query_port(ibdev, port_num, &pattr))
port_num          871 drivers/infiniband/hw/mlx4/mad.c 			   port_num, in_wc, in_grh, in_mad, out_mad);
port_num          876 drivers/infiniband/hw/mlx4/mad.c 		smp_snoop(ibdev, port_num, in_mad, prev_lid);
port_num          937 drivers/infiniband/hw/mlx4/mad.c static int iboe_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,
port_num          953 drivers/infiniband/hw/mlx4/mad.c 	mutex_lock(&dev->counters_table[port_num - 1].mutex);
port_num          955 drivers/infiniband/hw/mlx4/mad.c 			    &dev->counters_table[port_num - 1].counters_list,
port_num          967 drivers/infiniband/hw/mlx4/mad.c 	mutex_unlock(&dev->counters_table[port_num - 1].mutex);
port_num          985 drivers/infiniband/hw/mlx4/mad.c int mlx4_ib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,
port_num          994 drivers/infiniband/hw/mlx4/mad.c 	enum rdma_link_layer link = rdma_port_get_link_layer(ibdev, port_num);
port_num         1009 drivers/infiniband/hw/mlx4/mad.c 			return iboe_process_mad(ibdev, mad_flags, port_num, in_wc,
port_num         1012 drivers/infiniband/hw/mlx4/mad.c 		return ib_process_mad(ibdev, mad_flags, port_num, in_wc,
port_num         1017 drivers/infiniband/hw/mlx4/mad.c 		return iboe_process_mad(ibdev, mad_flags, port_num, in_wc,
port_num         1086 drivers/infiniband/hw/mlx4/mad.c static void handle_lid_change_event(struct mlx4_ib_dev *dev, u8 port_num)
port_num         1088 drivers/infiniband/hw/mlx4/mad.c 	mlx4_ib_dispatch_event(dev, port_num, IB_EVENT_LID_CHANGE);
port_num         1091 drivers/infiniband/hw/mlx4/mad.c 		mlx4_gen_slaves_port_mgt_ev(dev->dev, port_num,
port_num         1095 drivers/infiniband/hw/mlx4/mad.c static void handle_client_rereg_event(struct mlx4_ib_dev *dev, u8 port_num)
port_num         1099 drivers/infiniband/hw/mlx4/mad.c 		mlx4_ib_invalidate_all_guid_record(dev, port_num);
port_num         1102 drivers/infiniband/hw/mlx4/mad.c 			mlx4_ib_mcg_port_cleanup(&dev->sriov.demux[port_num - 1], 0);
port_num         1103 drivers/infiniband/hw/mlx4/mad.c 			mlx4_gen_slaves_port_mgt_ev(dev->dev, port_num,
port_num         1120 drivers/infiniband/hw/mlx4/mad.c 			mlx4_ib_sl2vl_update(dev, port_num);
port_num         1122 drivers/infiniband/hw/mlx4/mad.c 			mlx4_sched_ib_sl2vl_update_work(dev, port_num);
port_num         1124 drivers/infiniband/hw/mlx4/mad.c 	mlx4_ib_dispatch_event(dev, port_num, IB_EVENT_CLIENT_REREGISTER);
port_num         1127 drivers/infiniband/hw/mlx4/mad.c static void propagate_pkey_ev(struct mlx4_ib_dev *dev, int port_num,
port_num         1130 drivers/infiniband/hw/mlx4/mad.c 	__propagate_pkey_ev(dev, port_num, GET_BLK_PTR_FROM_EQE(eqe),
port_num         1134 drivers/infiniband/hw/mlx4/mad.c static void handle_slaves_guid_change(struct mlx4_ib_dev *dev, u8 port_num,
port_num         1166 drivers/infiniband/hw/mlx4/mad.c 				 port_num, NULL, NULL, in_mad, out_mad)) {
port_num         1172 drivers/infiniband/hw/mlx4/mad.c 						    port_num,
port_num         1175 drivers/infiniband/hw/mlx4/mad.c 						     port_num,
port_num         1287 drivers/infiniband/hw/mlx4/mad.c void mlx4_ib_dispatch_event(struct mlx4_ib_dev *dev, u8 port_num,
port_num         1293 drivers/infiniband/hw/mlx4/mad.c 	event.element.port_num	= port_num;
port_num         1440 drivers/infiniband/hw/mlx4/mad.c 	wr.port_num = port;
port_num         1831 drivers/infiniband/hw/mlx4/mad.c 	qp_init_attr.init_attr.port_num = ctx->port;
port_num         1854 drivers/infiniband/hw/mlx4/mad.c 	attr.port_num = ctx->port;
port_num           84 drivers/infiniband/hw/mlx4/main.c 						    u8 port_num);
port_num          132 drivers/infiniband/hw/mlx4/main.c static struct net_device *mlx4_ib_get_netdev(struct ib_device *device, u8 port_num)
port_num          138 drivers/infiniband/hw/mlx4/main.c 	dev = mlx4_get_protocol_dev(ibdev->dev, MLX4_PROT_ETH, port_num);
port_num          163 drivers/infiniband/hw/mlx4/main.c 				  u8 port_num)
port_num          181 drivers/infiniband/hw/mlx4/main.c 		       MLX4_SET_PORT_GID_TABLE << 8 | port_num,
port_num          196 drivers/infiniband/hw/mlx4/main.c 				     u8 port_num)
port_num          226 drivers/infiniband/hw/mlx4/main.c 		       MLX4_SET_PORT_ROCE_ADDR << 8 | port_num,
port_num          241 drivers/infiniband/hw/mlx4/main.c 			       u8 port_num)
port_num          244 drivers/infiniband/hw/mlx4/main.c 		return mlx4_ib_update_gids_v1_v2(gids, ibdev, port_num);
port_num          246 drivers/infiniband/hw/mlx4/main.c 	return mlx4_ib_update_gids_v1(gids, ibdev, port_num);
port_num          267 drivers/infiniband/hw/mlx4/main.c 	if (!rdma_cap_roce_gid_table(attr->device, attr->port_num))
port_num          270 drivers/infiniband/hw/mlx4/main.c 	if (attr->port_num > MLX4_MAX_PORTS)
port_num          276 drivers/infiniband/hw/mlx4/main.c 	port_gid_table = &iboe->gids[attr->port_num - 1];
port_num          328 drivers/infiniband/hw/mlx4/main.c 		ret = mlx4_ib_update_gids(gids, ibdev, attr->port_num);
port_num          351 drivers/infiniband/hw/mlx4/main.c 	if (!rdma_cap_roce_gid_table(attr->device, attr->port_num))
port_num          354 drivers/infiniband/hw/mlx4/main.c 	if (attr->port_num > MLX4_MAX_PORTS)
port_num          357 drivers/infiniband/hw/mlx4/main.c 	port_gid_table = &iboe->gids[attr->port_num - 1];
port_num          388 drivers/infiniband/hw/mlx4/main.c 		ret = mlx4_ib_update_gids(gids, ibdev, attr->port_num);
port_num          403 drivers/infiniband/hw/mlx4/main.c 	u8 port_num = attr->port_num;
port_num          405 drivers/infiniband/hw/mlx4/main.c 	if (port_num > MLX4_MAX_PORTS)
port_num          409 drivers/infiniband/hw/mlx4/main.c 		port_num = 1;
port_num          411 drivers/infiniband/hw/mlx4/main.c 	if (!rdma_cap_roce_gid_table(&ibdev->ib_dev, port_num))
port_num          415 drivers/infiniband/hw/mlx4/main.c 	port_gid_table = &iboe->gids[port_num - 1];
port_num          649 drivers/infiniband/hw/mlx4/main.c mlx4_ib_port_link_layer(struct ib_device *device, u8 port_num)
port_num          653 drivers/infiniband/hw/mlx4/main.c 	return dev->caps.port_mask[port_num] == MLX4_PORT_TYPE_IB ?
port_num         2118 drivers/infiniband/hw/mlx4/main.c 						    u8 port_num)
port_num         2123 drivers/infiniband/hw/mlx4/main.c 	if (!diag[!!port_num].name)
port_num         2126 drivers/infiniband/hw/mlx4/main.c 	return rdma_alloc_hw_stats_struct(diag[!!port_num].name,
port_num         2127 drivers/infiniband/hw/mlx4/main.c 					  diag[!!port_num].num_counters,
port_num         2373 drivers/infiniband/hw/mlx4/main.c 			ibev.element.port_num = port;
port_num         2484 drivers/infiniband/hw/mlx4/main.c static int mlx4_port_immutable(struct ib_device *ibdev, u8 port_num,
port_num         2491 drivers/infiniband/hw/mlx4/main.c 	if (mlx4_ib_port_link_layer(ibdev, port_num) == IB_LINK_LAYER_INFINIBAND) {
port_num         2506 drivers/infiniband/hw/mlx4/main.c 	err = ib_query_port(ibdev, port_num, &attr);
port_num         3193 drivers/infiniband/hw/mlx4/main.c 	ibev.element.port_num = 1;
port_num         3345 drivers/infiniband/hw/mlx4/main.c 	ibev.element.port_num = mlx4_is_bonded(ibdev->dev) ? 1 : (u8)p;
port_num          246 drivers/infiniband/hw/mlx4/mcg.c 	wc.port_num = ctx->port;
port_num          789 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_process_mad(struct ib_device *ibdev, int mad_flags,	u8 port_num,
port_num          837 drivers/infiniband/hw/mlx4/mlx4_ib.h void mlx4_ib_dispatch_event(struct mlx4_ib_dev *dev, u8 port_num,
port_num          870 drivers/infiniband/hw/mlx4/mlx4_ib.h 					  u8 port_num, u8 *p_data);
port_num          873 drivers/infiniband/hw/mlx4/mlx4_ib.h 					 int block_num, u8 port_num,
port_num          876 drivers/infiniband/hw/mlx4/mlx4_ib.h int add_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num,
port_num          878 drivers/infiniband/hw/mlx4/mlx4_ib.h void del_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num,
port_num         1523 drivers/infiniband/hw/mlx4/qp.c 			attr->port_num - 1;
port_num         1527 drivers/infiniband/hw/mlx4/qp.c 		return dev->dev->caps.spec_qps[attr->port_num - 1].qp0_proxy;
port_num         1529 drivers/infiniband/hw/mlx4/qp.c 		return dev->dev->caps.spec_qps[attr->port_num - 1].qp1_proxy;
port_num         1632 drivers/infiniband/hw/mlx4/qp.c 		qp->port	= init_attr->port_num;
port_num         1658 drivers/infiniband/hw/mlx4/qp.c 		int is_eth = rdma_cap_eth_ah(&dev->ib_dev, init_attr->port_num);
port_num         2029 drivers/infiniband/hw/mlx4/qp.c static int bringup_rss_rwqs(struct ib_rwq_ind_table *ind_tbl, u8 port_num,
port_num         2047 drivers/infiniband/hw/mlx4/qp.c 		if ((wq->rss_usecnt > 0) && (wq->port != port_num)) {
port_num         2052 drivers/infiniband/hw/mlx4/qp.c 		wq->port = port_num;
port_num         2265 drivers/infiniband/hw/mlx4/qp.c 			mlx4_set_sched(&context->pri_path, attr->port_num);
port_num         2315 drivers/infiniband/hw/mlx4/qp.c 		u8 port_num = mlx4_is_bonded(dev->dev) ? 1 :
port_num         2316 drivers/infiniband/hw/mlx4/qp.c 			attr_mask & IB_QP_PORT ? attr->port_num : qp->port;
port_num         2320 drivers/infiniband/hw/mlx4/qp.c 			rdma_cap_eth_ah(&dev->ib_dev, port_num) &&
port_num         2332 drivers/infiniband/hw/mlx4/qp.c 				  port_num, vlan, smac))
port_num         2571 drivers/infiniband/hw/mlx4/qp.c 		qp->port = attr->port_num;
port_num         2768 drivers/infiniband/hw/mlx4/qp.c 				attr->port_num = mlx4_ib_bond_next_port(dev);
port_num         2778 drivers/infiniband/hw/mlx4/qp.c 	    (attr->port_num == 0 || attr->port_num > dev->num_ports)) {
port_num         2781 drivers/infiniband/hw/mlx4/qp.c 			 ibqp->qp_num, attr->port_num, cur_state,
port_num         2787 drivers/infiniband/hw/mlx4/qp.c 	    (rdma_port_get_link_layer(&dev->ib_dev, attr->port_num) !=
port_num         2792 drivers/infiniband/hw/mlx4/qp.c 		int p = attr_mask & IB_QP_PORT ? attr->port_num : qp->port;
port_num         2826 drivers/infiniband/hw/mlx4/qp.c 		err = bringup_rss_rwqs(ibqp->rwq_ind_tbl, attr->port_num,
port_num         2839 drivers/infiniband/hw/mlx4/qp.c 		attr->port_num = 1;
port_num         2996 drivers/infiniband/hw/mlx4/qp.c static u8 sl_to_vl(struct mlx4_ib_dev *dev, u8 sl, int port_num)
port_num         3003 drivers/infiniband/hw/mlx4/qp.c 	tmp_vltab.sl64 = atomic64_read(&dev->sl2vl[port_num - 1]);
port_num         3012 drivers/infiniband/hw/mlx4/qp.c static int fill_gid_by_hw_index(struct mlx4_ib_dev *ibdev, u8 port_num,
port_num         3020 drivers/infiniband/hw/mlx4/qp.c 	port_gid_table = &iboe->gids[port_num - 1];
port_num         3993 drivers/infiniband/hw/mlx4/qp.c 	u8 port_num = path->sched_queue & 0x40 ? 2 : 1;
port_num         3996 drivers/infiniband/hw/mlx4/qp.c 	if (port_num == 0 || port_num > dev->caps.num_ports)
port_num         3998 drivers/infiniband/hw/mlx4/qp.c 	ah_attr->type = rdma_ah_find_type(&ibdev->ib_dev, port_num);
port_num         4005 drivers/infiniband/hw/mlx4/qp.c 	rdma_ah_set_port_num(ah_attr, port_num);
port_num         4071 drivers/infiniband/hw/mlx4/qp.c 		qp_attr->port_num = qp->port;
port_num         4073 drivers/infiniband/hw/mlx4/qp.c 		qp_attr->port_num = context.pri_path.sched_queue & 0x40 ? 2 : 1;
port_num         4234 drivers/infiniband/hw/mlx4/qp.c 		attr.port_num = qp->port;
port_num          200 drivers/infiniband/hw/mlx4/sysfs.c int add_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num,
port_num          203 drivers/infiniband/hw/mlx4/sysfs.c 	struct mlx4_ib_iov_port *port = &device->iov_ports[port_num - 1];
port_num          213 drivers/infiniband/hw/mlx4/sysfs.c void del_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num,
port_num          216 drivers/infiniband/hw/mlx4/sysfs.c 	struct mlx4_ib_iov_port *port = &device->iov_ports[port_num - 1];
port_num          221 drivers/infiniband/hw/mlx4/sysfs.c static int add_port_entries(struct mlx4_ib_dev *device, int port_num)
port_num          231 drivers/infiniband/hw/mlx4/sysfs.c 	ret = __mlx4_ib_query_port(&device->ib_dev, port_num, &attr, 1);
port_num          235 drivers/infiniband/hw/mlx4/sysfs.c 	port = &device->iov_ports[port_num - 1];
port_num          237 drivers/infiniband/hw/mlx4/sysfs.c 	port->num = port_num;
port_num          251 drivers/infiniband/hw/mlx4/sysfs.c 	sprintf(buff, "%d", port_num);
port_num          350 drivers/infiniband/hw/mlx4/sysfs.c 	       port_num, ret);
port_num          372 drivers/infiniband/hw/mlx4/sysfs.c 	u8                     port_num;
port_num          446 drivers/infiniband/hw/mlx4/sysfs.c 	if (p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1][tab_attr->index] >=
port_num          447 drivers/infiniband/hw/mlx4/sysfs.c 	    (p->dev->dev->caps.pkey_table_len[p->port_num]))
port_num          452 drivers/infiniband/hw/mlx4/sysfs.c 			      [p->port_num - 1][tab_attr->index]);
port_num          469 drivers/infiniband/hw/mlx4/sysfs.c 		idx = p->dev->dev->phys_caps.pkey_phys_table_len[p->port_num] - 1;
port_num          471 drivers/infiniband/hw/mlx4/sysfs.c 		 idx >= p->dev->dev->caps.pkey_table_len[p->port_num] ||
port_num          475 drivers/infiniband/hw/mlx4/sysfs.c 	p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1]
port_num          477 drivers/infiniband/hw/mlx4/sysfs.c 	mlx4_sync_pkey_table(p->dev->dev, p->slave, p->port_num,
port_num          479 drivers/infiniband/hw/mlx4/sysfs.c 	err = mlx4_gen_pkey_eqe(p->dev->dev, p->slave, p->port_num);
port_num          482 drivers/infiniband/hw/mlx4/sysfs.c 		       " port %d, index %d\n", p->slave, p->port_num, idx);
port_num          547 drivers/infiniband/hw/mlx4/sysfs.c 	if (mlx4_vf_smi_enabled(p->dev->dev, p->slave, p->port_num))
port_num          563 drivers/infiniband/hw/mlx4/sysfs.c 	if (mlx4_vf_get_enable_smi_admin(p->dev->dev, p->slave, p->port_num))
port_num          583 drivers/infiniband/hw/mlx4/sysfs.c 	if (mlx4_vf_set_enable_smi_admin(p->dev->dev, p->slave, p->port_num, enable))
port_num          590 drivers/infiniband/hw/mlx4/sysfs.c 	int is_eth = rdma_port_get_link_layer(&p->dev->ib_dev, p->port_num) ==
port_num          625 drivers/infiniband/hw/mlx4/sysfs.c 	int is_eth = rdma_port_get_link_layer(&p->dev->ib_dev, p->port_num) ==
port_num          635 drivers/infiniband/hw/mlx4/sysfs.c static int add_port(struct mlx4_ib_dev *dev, int port_num, int slave)
port_num          640 drivers/infiniband/hw/mlx4/sysfs.c 	int is_eth = rdma_port_get_link_layer(&dev->ib_dev, port_num) ==
port_num          648 drivers/infiniband/hw/mlx4/sysfs.c 	p->port_num = port_num;
port_num          653 drivers/infiniband/hw/mlx4/sysfs.c 				   "%d", port_num);
port_num          661 drivers/infiniband/hw/mlx4/sysfs.c 				  dev->dev->caps.pkey_table_len[port_num]);
port_num          694 drivers/infiniband/hw/mlx4/sysfs.c 	for (i = 0; i < dev->dev->caps.pkey_table_len[port_num]; ++i)
port_num          250 drivers/infiniband/hw/mlx5/cong.c static int mlx5_ib_get_cc_params(struct mlx5_ib_dev *dev, u8 port_num,
port_num          261 drivers/infiniband/hw/mlx5/cong.c 	mdev = mlx5_ib_get_native_port_mdev(dev, port_num + 1, NULL);
port_num          283 drivers/infiniband/hw/mlx5/cong.c 	mlx5_ib_put_native_port_mdev(dev, port_num + 1);
port_num          287 drivers/infiniband/hw/mlx5/cong.c static int mlx5_ib_set_cc_params(struct mlx5_ib_dev *dev, u8 port_num,
port_num          299 drivers/infiniband/hw/mlx5/cong.c 	mdev = mlx5_ib_get_native_port_mdev(dev, port_num + 1, NULL);
port_num          325 drivers/infiniband/hw/mlx5/cong.c 	mlx5_ib_put_native_port_mdev(dev, port_num + 1);
port_num          349 drivers/infiniband/hw/mlx5/cong.c 	ret = mlx5_ib_set_cc_params(param->dev, param->port_num, offset, var);
port_num          362 drivers/infiniband/hw/mlx5/cong.c 	ret = mlx5_ib_get_cc_params(param->dev, param->port_num, offset, &var);
port_num          380 drivers/infiniband/hw/mlx5/cong.c void mlx5_ib_cleanup_cong_debugfs(struct mlx5_ib_dev *dev, u8 port_num)
port_num          383 drivers/infiniband/hw/mlx5/cong.c 	    !dev->port[port_num].dbg_cc_params ||
port_num          384 drivers/infiniband/hw/mlx5/cong.c 	    !dev->port[port_num].dbg_cc_params->root)
port_num          387 drivers/infiniband/hw/mlx5/cong.c 	debugfs_remove_recursive(dev->port[port_num].dbg_cc_params->root);
port_num          388 drivers/infiniband/hw/mlx5/cong.c 	kfree(dev->port[port_num].dbg_cc_params);
port_num          389 drivers/infiniband/hw/mlx5/cong.c 	dev->port[port_num].dbg_cc_params = NULL;
port_num          392 drivers/infiniband/hw/mlx5/cong.c void mlx5_ib_init_cong_debugfs(struct mlx5_ib_dev *dev, u8 port_num)
port_num          402 drivers/infiniband/hw/mlx5/cong.c 	mdev = mlx5_ib_get_native_port_mdev(dev, port_num + 1, NULL);
port_num          414 drivers/infiniband/hw/mlx5/cong.c 	dev->port[port_num].dbg_cc_params = dbg_cc_params;
port_num          422 drivers/infiniband/hw/mlx5/cong.c 		dbg_cc_params->params[i].port_num = port_num;
port_num          431 drivers/infiniband/hw/mlx5/cong.c 	mlx5_ib_put_native_port_mdev(dev, port_num + 1);
port_num          436 drivers/infiniband/hw/mlx5/cong.c 	mlx5_ib_cleanup_cong_debugfs(dev, port_num);
port_num          437 drivers/infiniband/hw/mlx5/cong.c 	mlx5_ib_put_native_port_mdev(dev, port_num + 1);
port_num           45 drivers/infiniband/hw/mlx5/gsi.c 	u8 port_num;
port_num          121 drivers/infiniband/hw/mlx5/gsi.c 	const u8 port_num = init_attr->port_num;
port_num          128 drivers/infiniband/hw/mlx5/gsi.c 	if (port_num > ARRAY_SIZE(dev->devr.ports) || port_num < 1) {
port_num          131 drivers/infiniband/hw/mlx5/gsi.c 			     port_num);
port_num          157 drivers/infiniband/hw/mlx5/gsi.c 	if (dev->devr.ports[port_num - 1].gsi) {
port_num          159 drivers/infiniband/hw/mlx5/gsi.c 			     port_num);
port_num          169 drivers/infiniband/hw/mlx5/gsi.c 	gsi->port_num = port_num;
port_num          195 drivers/infiniband/hw/mlx5/gsi.c 	dev->devr.ports[init_attr->port_num - 1].gsi = gsi;
port_num          217 drivers/infiniband/hw/mlx5/gsi.c 	const int port_num = gsi->port_num;
port_num          231 drivers/infiniband/hw/mlx5/gsi.c 	dev->devr.ports[port_num - 1].gsi = NULL;
port_num          284 drivers/infiniband/hw/mlx5/gsi.c 	attr.port_num = gsi->port_num;
port_num          321 drivers/infiniband/hw/mlx5/gsi.c 	ret = ib_query_pkey(device, gsi->port_num, qp_index, &pkey);
port_num          324 drivers/infiniband/hw/mlx5/gsi.c 			     gsi->port_num, qp_index);
port_num          330 drivers/infiniband/hw/mlx5/gsi.c 			    gsi->port_num, qp_index);
port_num          339 drivers/infiniband/hw/mlx5/gsi.c 			    gsi->port_num, qp_index);
port_num           46 drivers/infiniband/hw/mlx5/mad.c static bool can_do_mad_ifc(struct mlx5_ib_dev *dev, u8 port_num,
port_num           52 drivers/infiniband/hw/mlx5/mad.c 	return dev->mdev->port_caps[port_num - 1].has_smi;
port_num           77 drivers/infiniband/hw/mlx5/mad.c static int process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,
port_num          114 drivers/infiniband/hw/mlx5/mad.c 			   port_num, in_wc, in_grh, in_mad, out_mad);
port_num          203 drivers/infiniband/hw/mlx5/mad.c static int process_pma_cmd(struct mlx5_ib_dev *dev, u8 port_num,
port_num          212 drivers/infiniband/hw/mlx5/mad.c 	mdev = mlx5_ib_get_native_port_mdev(dev, port_num, &mdev_port_num);
port_num          268 drivers/infiniband/hw/mlx5/mad.c 		mlx5_ib_put_native_port_mdev(dev, port_num);
port_num          272 drivers/infiniband/hw/mlx5/mad.c int mlx5_ib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,
port_num          292 drivers/infiniband/hw/mlx5/mad.c 		ret = process_pma_cmd(dev, port_num, in_mad, out_mad);
port_num          294 drivers/infiniband/hw/mlx5/mad.c 		ret =  process_mad(ibdev, mad_flags, port_num, in_wc, in_grh,
port_num          138 drivers/infiniband/hw/mlx5/main.c mlx5_ib_port_link_layer(struct ib_device *device, u8 port_num)
port_num          147 drivers/infiniband/hw/mlx5/main.c 			  u8 port_num,
port_num          154 drivers/infiniband/hw/mlx5/main.c 	ret = ibdev->ops.query_port(ibdev, port_num, &attr);
port_num          162 drivers/infiniband/hw/mlx5/main.c 					   u8 *port_num)
port_num          179 drivers/infiniband/hw/mlx5/main.c 			*port_num = i + 1;
port_num          193 drivers/infiniband/hw/mlx5/main.c 	u8 port_num = roce->native_port_num;
port_num          198 drivers/infiniband/hw/mlx5/main.c 	mdev = mlx5_ib_get_native_port_mdev(ibdev, port_num, NULL);
port_num          233 drivers/infiniband/hw/mlx5/main.c 			roce = mlx5_get_rep_roce(ibdev, ndev, &port_num);
port_num          241 drivers/infiniband/hw/mlx5/main.c 			if (get_port_state(&ibdev->ib_dev, port_num,
port_num          257 drivers/infiniband/hw/mlx5/main.c 			ibev.element.port_num = port_num;
port_num          267 drivers/infiniband/hw/mlx5/main.c 	mlx5_ib_put_native_port_mdev(ibdev, port_num);
port_num          272 drivers/infiniband/hw/mlx5/main.c 					     u8 port_num)
port_num          278 drivers/infiniband/hw/mlx5/main.c 	mdev = mlx5_ib_get_native_port_mdev(ibdev, port_num, NULL);
port_num          288 drivers/infiniband/hw/mlx5/main.c 	read_lock(&ibdev->port[port_num - 1].roce.netdev_lock);
port_num          289 drivers/infiniband/hw/mlx5/main.c 	ndev = ibdev->port[port_num - 1].roce.netdev;
port_num          292 drivers/infiniband/hw/mlx5/main.c 	read_unlock(&ibdev->port[port_num - 1].roce.netdev_lock);
port_num          295 drivers/infiniband/hw/mlx5/main.c 	mlx5_ib_put_native_port_mdev(ibdev, port_num);
port_num          338 drivers/infiniband/hw/mlx5/main.c void mlx5_ib_put_native_port_mdev(struct mlx5_ib_dev *ibdev, u8 port_num)
port_num          341 drivers/infiniband/hw/mlx5/main.c 							  port_num);
port_num          348 drivers/infiniband/hw/mlx5/main.c 	port = &ibdev->port[port_num - 1];
port_num          351 drivers/infiniband/hw/mlx5/main.c 	mpi = ibdev->port[port_num - 1].mp.mpi;
port_num          482 drivers/infiniband/hw/mlx5/main.c static int mlx5_query_port_roce(struct ib_device *device, u8 port_num,
port_num          497 drivers/infiniband/hw/mlx5/main.c 	mdev = mlx5_ib_get_native_port_mdev(dev, port_num, &mdev_port_num);
port_num          505 drivers/infiniband/hw/mlx5/main.c 		port_num = 1;
port_num          547 drivers/infiniband/hw/mlx5/main.c 	ndev = mlx5_ib_get_netdev(device, port_num);
port_num          574 drivers/infiniband/hw/mlx5/main.c 		mlx5_ib_put_native_port_mdev(dev, port_num);
port_num          578 drivers/infiniband/hw/mlx5/main.c static int set_roce_addr(struct mlx5_ib_dev *dev, u8 port_num,
port_num          615 drivers/infiniband/hw/mlx5/main.c 				      port_num);
port_num          621 drivers/infiniband/hw/mlx5/main.c 	return set_roce_addr(to_mdev(attr->device), attr->port_num,
port_num          628 drivers/infiniband/hw/mlx5/main.c 	return set_roce_addr(to_mdev(attr->device), attr->port_num,
port_num         1519 drivers/infiniband/hw/mlx5/main.c static int set_port_caps_atomic(struct mlx5_ib_dev *dev, u8 port_num, u32 mask,
port_num         1527 drivers/infiniband/hw/mlx5/main.c 	mdev = mlx5_ib_get_native_port_mdev(dev, port_num, &mdev_port_num);
port_num         1548 drivers/infiniband/hw/mlx5/main.c 	mlx5_ib_put_native_port_mdev(dev, port_num);
port_num         4567 drivers/infiniband/hw/mlx5/main.c 	ibev->element.port_num = port;
port_num         4627 drivers/infiniband/hw/mlx5/main.c 		ibev.element.port_num  = (u8)(unsigned long)work->param;
port_num         4643 drivers/infiniband/hw/mlx5/main.c 	if (!rdma_is_port_valid(&ibdev->ib_dev, ibev.element.port_num)) {
port_num         4644 drivers/infiniband/hw/mlx5/main.c 		mlx5_ib_warn(ibdev, "warning: event on port %d\n",  ibev.element.port_num);
port_num         4840 drivers/infiniband/hw/mlx5/main.c 	init_attr->port_num = 1;
port_num         4855 drivers/infiniband/hw/mlx5/main.c 	attr->port_num = 1;
port_num         5120 drivers/infiniband/hw/mlx5/main.c static int mlx5_port_immutable(struct ib_device *ibdev, u8 port_num,
port_num         5125 drivers/infiniband/hw/mlx5/main.c 	enum rdma_link_layer ll = mlx5_ib_port_link_layer(ibdev, port_num);
port_num         5129 drivers/infiniband/hw/mlx5/main.c 	err = ib_query_port(ibdev, port_num, &attr);
port_num         5134 drivers/infiniband/hw/mlx5/main.c 		err = mlx5_query_hca_vport_context(dev->mdev, 0, port_num, 0,
port_num         5149 drivers/infiniband/hw/mlx5/main.c static int mlx5_port_rep_immutable(struct ib_device *ibdev, u8 port_num,
port_num         5157 drivers/infiniband/hw/mlx5/main.c 	err = ib_query_port(ibdev, port_num, &attr);
port_num         5221 drivers/infiniband/hw/mlx5/main.c static int mlx5_add_netdev_notifier(struct mlx5_ib_dev *dev, u8 port_num)
port_num         5225 drivers/infiniband/hw/mlx5/main.c 	dev->port[port_num].roce.nb.notifier_call = mlx5_netdev_event;
port_num         5226 drivers/infiniband/hw/mlx5/main.c 	err = register_netdevice_notifier(&dev->port[port_num].roce.nb);
port_num         5228 drivers/infiniband/hw/mlx5/main.c 		dev->port[port_num].roce.nb.notifier_call = NULL;
port_num         5235 drivers/infiniband/hw/mlx5/main.c static void mlx5_remove_netdev_notifier(struct mlx5_ib_dev *dev, u8 port_num)
port_num         5237 drivers/infiniband/hw/mlx5/main.c 	if (dev->port[port_num].roce.nb.notifier_call) {
port_num         5238 drivers/infiniband/hw/mlx5/main.c 		unregister_netdevice_notifier(&dev->port[port_num].roce.nb);
port_num         5239 drivers/infiniband/hw/mlx5/main.c 		dev->port[port_num].roce.nb.notifier_call = NULL;
port_num         5483 drivers/infiniband/hw/mlx5/main.c 						   u8 port_num)
port_num         5486 drivers/infiniband/hw/mlx5/main.c 						   &dev->port[port_num].cnts;
port_num         5498 drivers/infiniband/hw/mlx5/main.c u16 mlx5_ib_get_counters_id(struct mlx5_ib_dev *dev, u8 port_num)
port_num         5500 drivers/infiniband/hw/mlx5/main.c 	const struct mlx5_ib_counters *cnts = get_counters(dev, port_num);
port_num         5506 drivers/infiniband/hw/mlx5/main.c 						    u8 port_num)
port_num         5512 drivers/infiniband/hw/mlx5/main.c 	if ((is_switchdev && port_num) || (!is_switchdev && !port_num))
port_num         5515 drivers/infiniband/hw/mlx5/main.c 	cnts = get_counters(dev, port_num - 1);
port_num         5580 drivers/infiniband/hw/mlx5/main.c 				u8 port_num, int index)
port_num         5583 drivers/infiniband/hw/mlx5/main.c 	const struct mlx5_ib_counters *cnts = get_counters(dev, port_num - 1);
port_num         5607 drivers/infiniband/hw/mlx5/main.c 		mdev = mlx5_ib_get_native_port_mdev(dev, port_num,
port_num         5623 drivers/infiniband/hw/mlx5/main.c 		mlx5_ib_put_native_port_mdev(dev, port_num);
port_num         5697 drivers/infiniband/hw/mlx5/main.c static int mlx5_ib_rn_get_params(struct ib_device *device, u8 port_num,
port_num         5832 drivers/infiniband/hw/mlx5/main.c 	u8 port_num = mlx5_core_native_port_num(mpi->mdev) - 1;
port_num         5833 drivers/infiniband/hw/mlx5/main.c 	struct mlx5_ib_port *port = &ibdev->port[port_num];
port_num         5840 drivers/infiniband/hw/mlx5/main.c 	mlx5_ib_cleanup_cong_debugfs(ibdev, port_num);
port_num         5854 drivers/infiniband/hw/mlx5/main.c 	mlx5_remove_netdev_notifier(ibdev, port_num);
port_num         5878 drivers/infiniband/hw/mlx5/main.c 	mlx5_ib_dbg(ibdev, "unaffiliated port %d\n", port_num + 1);
port_num         5884 drivers/infiniband/hw/mlx5/main.c 			    port_num + 1);
port_num         5886 drivers/infiniband/hw/mlx5/main.c 	ibdev->port[port_num].roce.last_port_state = IB_PORT_DOWN;
port_num         5892 drivers/infiniband/hw/mlx5/main.c 	u8 port_num = mlx5_core_native_port_num(mpi->mdev) - 1;
port_num         5897 drivers/infiniband/hw/mlx5/main.c 	spin_lock(&ibdev->port[port_num].mp.mpi_lock);
port_num         5898 drivers/infiniband/hw/mlx5/main.c 	if (ibdev->port[port_num].mp.mpi) {
port_num         5900 drivers/infiniband/hw/mlx5/main.c 			    port_num + 1);
port_num         5901 drivers/infiniband/hw/mlx5/main.c 		spin_unlock(&ibdev->port[port_num].mp.mpi_lock);
port_num         5905 drivers/infiniband/hw/mlx5/main.c 	ibdev->port[port_num].mp.mpi = mpi;
port_num         5908 drivers/infiniband/hw/mlx5/main.c 	spin_unlock(&ibdev->port[port_num].mp.mpi_lock);
port_num         5918 drivers/infiniband/hw/mlx5/main.c 	err = mlx5_add_netdev_notifier(ibdev, port_num);
port_num         5921 drivers/infiniband/hw/mlx5/main.c 			    port_num + 1);
port_num         5928 drivers/infiniband/hw/mlx5/main.c 	mlx5_ib_init_cong_debugfs(ibdev, port_num);
port_num         5939 drivers/infiniband/hw/mlx5/main.c 	int port_num = mlx5_core_native_port_num(dev->mdev) - 1;
port_num         5941 drivers/infiniband/hw/mlx5/main.c 							  port_num + 1);
port_num         5963 drivers/infiniband/hw/mlx5/main.c 		if (i == port_num) {
port_num         6009 drivers/infiniband/hw/mlx5/main.c 	int port_num = mlx5_core_native_port_num(dev->mdev) - 1;
port_num         6011 drivers/infiniband/hw/mlx5/main.c 							  port_num + 1);
port_num         6021 drivers/infiniband/hw/mlx5/main.c 			if (i == port_num) {
port_num         6460 drivers/infiniband/hw/mlx5/main.c 	u8 port_num;
port_num         6470 drivers/infiniband/hw/mlx5/main.c 	port_num = mlx5_core_native_port_num(dev->mdev) - 1;
port_num         6473 drivers/infiniband/hw/mlx5/main.c 	return mlx5_add_netdev_notifier(dev, port_num);
port_num         6478 drivers/infiniband/hw/mlx5/main.c 	u8 port_num = mlx5_core_native_port_num(dev->mdev) - 1;
port_num         6480 drivers/infiniband/hw/mlx5/main.c 	mlx5_remove_netdev_notifier(dev, port_num);
port_num          762 drivers/infiniband/hw/mlx5/mlx5_ib.h 	u8			port_num;
port_num         1181 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,
port_num         1310 drivers/infiniband/hw/mlx5/mlx5_ib.h void mlx5_ib_cleanup_cong_debugfs(struct mlx5_ib_dev *dev, u8 port_num);
port_num         1311 drivers/infiniband/hw/mlx5/mlx5_ib.h void mlx5_ib_init_cong_debugfs(struct mlx5_ib_dev *dev, u8 port_num);
port_num         1337 drivers/infiniband/hw/mlx5/mlx5_ib.h 				  u8 port_num);
port_num         1480 drivers/infiniband/hw/mlx5/mlx5_ib.h u16 mlx5_ib_get_counters_id(struct mlx5_ib_dev *dev, u8 port_num);
port_num         2169 drivers/infiniband/hw/mlx5/qp.c 		qp->port = init_attr->port_num;
port_num         3359 drivers/infiniband/hw/mlx5/qp.c 				    u8 port_num, struct ib_udata *udata)
port_num         3375 drivers/infiniband/hw/mlx5/qp.c 				1, &dev->port[port_num].roce.tx_port_affinity) %
port_num         3540 drivers/infiniband/hw/mlx5/qp.c 		context->pri_path.port = attr->port_num;
port_num         3544 drivers/infiniband/hw/mlx5/qp.c 				    attr_mask & IB_QP_PORT ? attr->port_num : qp->port,
port_num         3615 drivers/infiniband/hw/mlx5/qp.c 		u8 port_num = (attr_mask & IB_QP_PORT ? attr->port_num :
port_num         3620 drivers/infiniband/hw/mlx5/qp.c 			port_num = 0;
port_num         3625 drivers/infiniband/hw/mlx5/qp.c 			set_id = mlx5_ib_get_counters_id(dev, port_num);
port_num         3660 drivers/infiniband/hw/mlx5/qp.c 			raw_qp_param.port = attr->port_num;
port_num         3706 drivers/infiniband/hw/mlx5/qp.c 		qp->port = attr->port_num;
port_num         3821 drivers/infiniband/hw/mlx5/qp.c 		if (attr->port_num == 0 ||
port_num         3822 drivers/infiniband/hw/mlx5/qp.c 		    attr->port_num > MLX5_CAP_GEN(dev->mdev, num_ports)) {
port_num         3824 drivers/infiniband/hw/mlx5/qp.c 				    attr->port_num, dev->num_ports);
port_num         3842 drivers/infiniband/hw/mlx5/qp.c 		MLX5_SET(dctc, dctc, port, attr->port_num);
port_num         3844 drivers/infiniband/hw/mlx5/qp.c 		set_id = mlx5_ib_get_counters_id(dev, attr->port_num - 1);
port_num         3944 drivers/infiniband/hw/mlx5/qp.c 		port = attr_mask & IB_QP_PORT ? attr->port_num : qp->port;
port_num         3968 drivers/infiniband/hw/mlx5/qp.c 	    (attr->port_num == 0 ||
port_num         3969 drivers/infiniband/hw/mlx5/qp.c 	     attr->port_num > dev->num_ports)) {
port_num         3971 drivers/infiniband/hw/mlx5/qp.c 			    attr->port_num, dev->num_ports);
port_num         3976 drivers/infiniband/hw/mlx5/qp.c 		port = attr_mask & IB_QP_PORT ? attr->port_num : qp->port;
port_num         5671 drivers/infiniband/hw/mlx5/qp.c 	qp_attr->port_num = context->pri_path.port;
port_num         5739 drivers/infiniband/hw/mlx5/qp.c 		qp_attr->port_num = MLX5_GET(dctc, dctc, port);
port_num         5788 drivers/infiniband/hw/mlx5/qp.c 		qp_attr->port_num = 1;
port_num          296 drivers/infiniband/hw/mthca/mthca_av.c 	u8 port_num = be32_to_cpu(ah->av->port_pd) >> 24;
port_num          306 drivers/infiniband/hw/mthca/mthca_av.c 	rdma_ah_set_port_num(attr, port_num);
port_num          309 drivers/infiniband/hw/mthca/mthca_av.c 						 port_num));
port_num           96 drivers/infiniband/hw/mthca/mthca_catas.c 	event.element.port_num = 0;
port_num          581 drivers/infiniband/hw/mthca/mthca_dev.h 		      u8 port_num,
port_num          255 drivers/infiniband/hw/mthca/mthca_eq.c 	record.element.port_num = port;
port_num           50 drivers/infiniband/hw/mthca/mthca_mad.c static int mthca_update_rate(struct mthca_dev *dev, u8 port_num)
port_num           59 drivers/infiniband/hw/mthca/mthca_mad.c 	ret = ib_query_port(&dev->ib_dev, port_num, tprops);
port_num           63 drivers/infiniband/hw/mthca/mthca_mad.c 			 port_num);
port_num           67 drivers/infiniband/hw/mthca/mthca_mad.c 	dev->rate[port_num - 1] = tprops->active_speed *
port_num           76 drivers/infiniband/hw/mthca/mthca_mad.c 			 u8 port_num, u16 lid, u8 sl)
port_num           82 drivers/infiniband/hw/mthca/mthca_mad.c 	if (!dev->send_agent[port_num - 1][0])
port_num           86 drivers/infiniband/hw/mthca/mthca_mad.c 	ah_attr.type = rdma_ah_find_type(&dev->ib_dev, port_num);
port_num           89 drivers/infiniband/hw/mthca/mthca_mad.c 	rdma_ah_set_port_num(&ah_attr, port_num);
port_num           91 drivers/infiniband/hw/mthca/mthca_mad.c 	new_ah = rdma_create_ah(dev->send_agent[port_num - 1][0]->qp->pd,
port_num           97 drivers/infiniband/hw/mthca/mthca_mad.c 	if (dev->sm_ah[port_num - 1])
port_num           98 drivers/infiniband/hw/mthca/mthca_mad.c 		rdma_destroy_ah(dev->sm_ah[port_num - 1], 0);
port_num           99 drivers/infiniband/hw/mthca/mthca_mad.c 	dev->sm_ah[port_num - 1] = new_ah;
port_num          108 drivers/infiniband/hw/mthca/mthca_mad.c 		      u8 port_num,
port_num          122 drivers/infiniband/hw/mthca/mthca_mad.c 			mthca_update_rate(to_mdev(ibdev), port_num);
port_num          123 drivers/infiniband/hw/mthca/mthca_mad.c 			update_sm_ah(to_mdev(ibdev), port_num,
port_num          128 drivers/infiniband/hw/mthca/mthca_mad.c 			event.element.port_num = port_num;
port_num          144 drivers/infiniband/hw/mthca/mthca_mad.c 			event.element.port_num = port_num;
port_num          165 drivers/infiniband/hw/mthca/mthca_mad.c 			 u8 port_num,
port_num          170 drivers/infiniband/hw/mthca/mthca_mad.c 	struct ib_mad_agent *agent = dev->send_agent[port_num - 1][qpn];
port_num          188 drivers/infiniband/hw/mthca/mthca_mad.c 		if ((send_buf->ah = dev->sm_ah[port_num - 1]))
port_num          201 drivers/infiniband/hw/mthca/mthca_mad.c 		      u8 port_num,
port_num          222 drivers/infiniband/hw/mthca/mthca_mad.c 		forward_trap(to_mdev(ibdev), port_num, in_mad);
port_num          259 drivers/infiniband/hw/mthca/mthca_mad.c 	    !ib_query_port(ibdev, port_num, &pattr))
port_num          265 drivers/infiniband/hw/mthca/mthca_mad.c 			    port_num, in_wc, in_grh, in_mad, out_mad);
port_num          274 drivers/infiniband/hw/mthca/mthca_mad.c 		smp_snoop(ibdev, port_num, in_mad, prev_lid);
port_num          558 drivers/infiniband/hw/mthca/mthca_provider.c 				      qp->ibqp.qp_num, init_attr->port_num,
port_num         1116 drivers/infiniband/hw/mthca/mthca_provider.c static int mthca_port_immutable(struct ib_device *ibdev, u8 port_num,
port_num         1124 drivers/infiniband/hw/mthca/mthca_provider.c 	err = ib_query_port(ibdev, port_num, &attr);
port_num          401 drivers/infiniband/hw/mthca/mthca_qp.c 	u8 port_num = (be32_to_cpu(path->port_pkey) >> 24) & 0x3;
port_num          405 drivers/infiniband/hw/mthca/mthca_qp.c 	if (port_num == 0 || port_num > dev->limits.num_ports)
port_num          407 drivers/infiniband/hw/mthca/mthca_qp.c 	ah_attr->type = rdma_ah_find_type(&dev->ib_dev, port_num);
port_num          408 drivers/infiniband/hw/mthca/mthca_qp.c 	rdma_ah_set_port_num(ah_attr, port_num);
port_num          416 drivers/infiniband/hw/mthca/mthca_qp.c 						 port_num));
port_num          486 drivers/infiniband/hw/mthca/mthca_qp.c 	qp_attr->port_num   =
port_num          641 drivers/infiniband/hw/mthca/mthca_qp.c 				cpu_to_be32(attr->port_num << 24);
port_num          661 drivers/infiniband/hw/mthca/mthca_qp.c 				   attr_mask & IB_QP_PORT ? attr->port_num : qp->port))
port_num          807 drivers/infiniband/hw/mthca/mthca_qp.c 		qp->port = attr->port_num;
port_num          896 drivers/infiniband/hw/mthca/mthca_qp.c 	    (attr->port_num == 0 || attr->port_num > dev->limits.num_ports)) {
port_num          897 drivers/infiniband/hw/mthca/mthca_qp.c 		mthca_dbg(dev, "Port number (%u) is invalid\n", attr->port_num);
port_num          252 drivers/infiniband/hw/ocrdma/ocrdma_ah.c 		       u8 port_num,
port_num           61 drivers/infiniband/hw/ocrdma/ocrdma_ah.h 		       u8 port_num,
port_num          750 drivers/infiniband/hw/ocrdma/ocrdma_hw.c 		ib_evt.element.port_num = 1;
port_num           80 drivers/infiniband/hw/ocrdma/ocrdma_main.c 					      u8 port_num)
port_num           85 drivers/infiniband/hw/ocrdma/ocrdma_main.c static int ocrdma_port_immutable(struct ib_device *ibdev, u8 port_num,
port_num           97 drivers/infiniband/hw/ocrdma/ocrdma_main.c 	err = ib_query_port(ibdev, port_num, &attr);
port_num          391 drivers/infiniband/hw/ocrdma/ocrdma_main.c 	port_event.element.port_num = 1;
port_num          402 drivers/infiniband/hw/ocrdma/ocrdma_main.c 	err_event.element.port_num = 1;
port_num         1532 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c 	qp_attr->port_num = 1;
port_num           61 drivers/infiniband/hw/ocrdma/ocrdma_verbs.h ocrdma_query_protocol(struct ib_device *device, u8 port_num);
port_num           56 drivers/infiniband/hw/qedr/main.c static void qedr_ib_dispatch_event(struct qedr_dev *dev, u8 port_num,
port_num           62 drivers/infiniband/hw/qedr/main.c 	ibev.element.port_num = port_num;
port_num           69 drivers/infiniband/hw/qedr/main.c 					    u8 port_num)
port_num           84 drivers/infiniband/hw/qedr/main.c static int qedr_roce_port_immutable(struct ib_device *ibdev, u8 port_num,
port_num           90 drivers/infiniband/hw/qedr/main.c 	err = qedr_query_port(ibdev, port_num, &attr);
port_num          103 drivers/infiniband/hw/qedr/main.c static int qedr_iw_port_immutable(struct ib_device *ibdev, u8 port_num,
port_num          109 drivers/infiniband/hw/qedr/main.c 	err = qedr_query_port(ibdev, port_num, &attr);
port_num         2423 drivers/infiniband/hw/qedr/verbs.c 	qp_attr->port_num = 1;
port_num         4133 drivers/infiniband/hw/qedr/verbs.c 		     u8 port_num,
port_num           95 drivers/infiniband/hw/qedr/verbs.h 		     u8 port_num, const struct ib_wc *in_wc,
port_num          101 drivers/infiniband/hw/qedr/verbs.h int qedr_port_immutable(struct ib_device *ibdev, u8 port_num,
port_num         1398 drivers/infiniband/hw/qib/qib.h int qib_create_port_files(struct ib_device *ibdev, u8 port_num,
port_num           78 drivers/infiniband/hw/qib/qib_intr.c 	event.element.port_num = ppd->port;
port_num          206 drivers/infiniband/hw/qib/qib_mad.c void qib_cap_mask_chg(struct rvt_dev_info *rdi, u8 port_num)
port_num          210 drivers/infiniband/hw/qib/qib_mad.c 	struct qib_ibport *ibp = &dd->pport[port_num - 1].ibport_data;
port_num          464 drivers/infiniband/hw/qib/qib_mad.c 	u32 port_num = be32_to_cpu(smp->attr_mod);
port_num          466 drivers/infiniband/hw/qib/qib_mad.c 	if (port_num == 0)
port_num          467 drivers/infiniband/hw/qib/qib_mad.c 		port_num = port;
port_num          469 drivers/infiniband/hw/qib/qib_mad.c 		if (port_num > ibdev->phys_port_cnt) {
port_num          474 drivers/infiniband/hw/qib/qib_mad.c 		if (port_num != port) {
port_num          475 drivers/infiniband/hw/qib/qib_mad.c 			ibp = to_iport(ibdev, port_num);
port_num          486 drivers/infiniband/hw/qib/qib_mad.c 	ppd = dd->pport + (port_num - 1);
port_num          671 drivers/infiniband/hw/qib/qib_mad.c 	u32 port_num = be32_to_cpu(smp->attr_mod);
port_num          673 drivers/infiniband/hw/qib/qib_mad.c 	if (port_num == 0)
port_num          674 drivers/infiniband/hw/qib/qib_mad.c 		port_num = port;
port_num          676 drivers/infiniband/hw/qib/qib_mad.c 		if (port_num > ibdev->phys_port_cnt)
port_num          679 drivers/infiniband/hw/qib/qib_mad.c 		if (port_num != port)
port_num          685 drivers/infiniband/hw/qib/qib_mad.c 	ppd = dd->pport + (port_num - 1);
port_num          688 drivers/infiniband/hw/qib/qib_mad.c 	event.element.port_num = port;
port_num         1033 drivers/infiniband/hw/qib/qib_mad.c 		event.element.port_num = port;
port_num         1878 drivers/infiniband/hw/qib/qib_mad.c 		u32 port_num = be32_to_cpu(smp->attr_mod);
port_num         1890 drivers/infiniband/hw/qib/qib_mad.c 		    port_num && port_num <= ibdev->phys_port_cnt &&
port_num         1891 drivers/infiniband/hw/qib/qib_mad.c 		    port != port_num)
port_num         1892 drivers/infiniband/hw/qib/qib_mad.c 			(void) check_mkey(to_iport(ibdev, port_num), smp, 0);
port_num          294 drivers/infiniband/hw/qib/qib_qp.c 	int mtu, pmtu, pidx = qp->port_num - 1;
port_num          600 drivers/infiniband/hw/qib/qib_rc.c 	struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num          838 drivers/infiniband/hw/qib/qib_rc.c 	ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num         1026 drivers/infiniband/hw/qib/qib_rc.c 	ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num         1498 drivers/infiniband/hw/qib/qib_rc.c 	struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num         1886 drivers/infiniband/hw/qib/qib_rc.c 		wc.port_num = 0;
port_num           50 drivers/infiniband/hw/qib/qib_ruc.c 	qp->port_num = rdma_ah_get_port_num(&qp->alt_ah_attr);
port_num          160 drivers/infiniband/hw/qib/qib_ruc.c 		    ppd_from_ibp(ibp)->port != qp->port_num)
port_num          210 drivers/infiniband/hw/qib/qib_ruc.c 	struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num          266 drivers/infiniband/hw/qib/qib_ruc.c 	struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num          741 drivers/infiniband/hw/qib/qib_sysfs.c int qib_create_port_files(struct ib_device *ibdev, u8 port_num,
port_num          748 drivers/infiniband/hw/qib/qib_sysfs.c 	if (!port_num || port_num > dd->num_pports) {
port_num          751 drivers/infiniband/hw/qib/qib_sysfs.c 			port_num);
port_num          755 drivers/infiniband/hw/qib/qib_sysfs.c 	ppd = &dd->pport[port_num - 1];
port_num          762 drivers/infiniband/hw/qib/qib_sysfs.c 			ret, port_num);
port_num          772 drivers/infiniband/hw/qib/qib_sysfs.c 			ret, port_num);
port_num          782 drivers/infiniband/hw/qib/qib_sysfs.c 			ret, port_num);
port_num          795 drivers/infiniband/hw/qib/qib_sysfs.c 		 ret, port_num);
port_num          806 drivers/infiniband/hw/qib/qib_sysfs.c 		 ret, port_num);
port_num          815 drivers/infiniband/hw/qib/qib_sysfs.c 		 ret, port_num);
port_num          821 drivers/infiniband/hw/qib/qib_sysfs.c 		dd->unit, port_num);
port_num          401 drivers/infiniband/hw/qib/qib_uc.c 		wc.port_num = 0;
port_num           53 drivers/infiniband/hw/qib/qib_ud.c 	struct qib_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num);
port_num          212 drivers/infiniband/hw/qib/qib_ud.c 	wc.port_num = qp->port_num;
port_num          272 drivers/infiniband/hw/qib/qib_ud.c 	ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num          575 drivers/infiniband/hw/qib/qib_ud.c 	wc.port_num = qp->port_num;
port_num          683 drivers/infiniband/hw/qib/qib_verbs.c 		if (qp->port_num != ppd->port)
port_num          778 drivers/infiniband/hw/qib/qib_verbs.c 	struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num);
port_num          912 drivers/infiniband/hw/qib/qib_verbs.c 	struct qib_pportdata *ppd = dd->pport + qp->port_num - 1;
port_num         1192 drivers/infiniband/hw/qib/qib_verbs.c static int qib_query_port(struct rvt_dev_info *rdi, u8 port_num,
port_num         1197 drivers/infiniband/hw/qib/qib_verbs.c 	struct qib_pportdata *ppd = &dd->pport[port_num - 1];
port_num         1277 drivers/infiniband/hw/qib/qib_verbs.c static int qib_shut_down_port(struct rvt_dev_info *rdi, u8 port_num)
port_num         1281 drivers/infiniband/hw/qib/qib_verbs.c 	struct qib_pportdata *ppd = &dd->pport[port_num - 1];
port_num         1346 drivers/infiniband/hw/qib/qib_verbs.c 	u8 port_num = ppd->port;
port_num         1349 drivers/infiniband/hw/qib/qib_verbs.c 	attr.type = rdma_ah_find_type(&dd->verbs_dev.rdi.ibdev, port_num);
port_num         1351 drivers/infiniband/hw/qib/qib_verbs.c 	rdma_ah_set_port_num(&attr, port_num);
port_num         1691 drivers/infiniband/hw/qib/qib_verbs.c 		to_iport(qp->ibqp.device, qp->port_num);
port_num          243 drivers/infiniband/hw/qib/qib_verbs.h void qib_cap_mask_chg(struct rvt_dev_info *rdi, u8 port_num);
port_num          246 drivers/infiniband/hw/qib/qib_verbs.h int qib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,
port_num           56 drivers/infiniband/hw/usnic/usnic_abi.h 			uint16_t	port_num;
port_num           93 drivers/infiniband/hw/usnic/usnic_debugfs.c 					qp_flow->usnic_roce.port_num);
port_num          151 drivers/infiniband/hw/usnic/usnic_ib_main.c 		ib_event.element.port_num = 1;
port_num          164 drivers/infiniband/hw/usnic/usnic_ib_main.c 			ib_event.element.port_num = 1;
port_num          174 drivers/infiniband/hw/usnic/usnic_ib_main.c 			ib_event.element.port_num = 1;
port_num          196 drivers/infiniband/hw/usnic/usnic_ib_main.c 			ib_event.element.port_num = 1;
port_num          261 drivers/infiniband/hw/usnic/usnic_ib_main.c 		ib_event.element.port_num = 1;
port_num          271 drivers/infiniband/hw/usnic/usnic_ib_main.c 		ib_event.element.port_num = 1;
port_num          306 drivers/infiniband/hw/usnic/usnic_ib_main.c static int usnic_port_immutable(struct ib_device *ibdev, u8 port_num,
port_num          314 drivers/infiniband/hw/usnic/usnic_ib_main.c 	err = ib_query_port(ibdev, port_num, &attr);
port_num          207 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 	uint16_t port_num;
port_num          216 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 	port_num = trans_spec->usnic_roce.port_num;
port_num          219 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 	port_num = usnic_transport_rsrv_port(trans_type, port_num);
port_num          220 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 	if (port_num == 0)
port_num          224 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 	usnic_fwd_init_usnic_filter(&filter, port_num);
port_num          243 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 	qp_flow->usnic_roce.port_num = port_num;
port_num          250 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 	usnic_transport_unrsrv_port(trans_type, port_num);
port_num          258 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 					qp_flow->usnic_roce.port_num);
port_num          275 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 	uint16_t port_num;
port_num          286 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 	err = usnic_transport_sock_get_addr(sock, &proto, &addr, &port_num);
port_num          297 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 	usnic_fwd_init_udp_filter(&filter, addr, port_num);
port_num          641 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 	uint16_t port_num = 0;
port_num          645 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 		*id = qp_flow->usnic_roce.port_num;
port_num          650 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 							&port_num);
port_num          658 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 		*id = port_num;
port_num           73 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.h 			uint16_t	port_num;
port_num          270 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 						u8 port_num)
port_num          574 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 	if ((attr_mask & IB_QP_PORT) && attr->port_num != 1) {
port_num           40 drivers/infiniband/hw/usnic/usnic_ib_verbs.h 						u8 port_num);
port_num           86 drivers/infiniband/hw/usnic/usnic_transport.c u16 usnic_transport_rsrv_port(enum usnic_transport_type type, u16 port_num)
port_num           90 drivers/infiniband/hw/usnic/usnic_transport.c 		if (!port_num) {
port_num           91 drivers/infiniband/hw/usnic/usnic_transport.c 			port_num = bitmap_find_next_zero_area(roce_bitmap,
port_num           96 drivers/infiniband/hw/usnic/usnic_transport.c 			roce_next_port = (port_num & 4095) + 1;
port_num           97 drivers/infiniband/hw/usnic/usnic_transport.c 		} else if (test_bit(port_num, roce_bitmap)) {
port_num          103 drivers/infiniband/hw/usnic/usnic_transport.c 		bitmap_set(roce_bitmap, port_num, 1);
port_num          111 drivers/infiniband/hw/usnic/usnic_transport.c 	usnic_dbg("Allocating port %hu for %s\n", port_num,
port_num          113 drivers/infiniband/hw/usnic/usnic_transport.c 	return port_num;
port_num          119 drivers/infiniband/hw/usnic/usnic_transport.c void usnic_transport_unrsrv_port(enum usnic_transport_type type, u16 port_num)
port_num          123 drivers/infiniband/hw/usnic/usnic_transport.c 		if (!port_num) {
port_num          129 drivers/infiniband/hw/usnic/usnic_transport.c 		if (!test_bit(port_num, roce_bitmap)) {
port_num          131 drivers/infiniband/hw/usnic/usnic_transport.c 					port_num,
port_num          135 drivers/infiniband/hw/usnic/usnic_transport.c 		bitmap_clear(roce_bitmap, port_num, 1);
port_num          136 drivers/infiniband/hw/usnic/usnic_transport.c 		usnic_dbg("Freeing port %hu for %s\n", port_num,
port_num          141 drivers/infiniband/hw/usnic/usnic_transport.c 		usnic_err("Freeing invalid port %hu for %d\n", port_num, type);
port_num           50 drivers/infiniband/hw/usnic/usnic_transport.h u16 usnic_transport_rsrv_port(enum usnic_transport_type type, u16 port_num);
port_num           51 drivers/infiniband/hw/usnic/usnic_transport.h void usnic_transport_unrsrv_port(enum usnic_transport_type type, u16 port_num);
port_num          364 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c 	wc->port_num = cqe->port_num;
port_num          393 drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h 	u8 port_num;
port_num          404 drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h 	u8 port_num;
port_num          124 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c static int pvrdma_port_immutable(struct ib_device *ibdev, u8 port_num,
port_num          136 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c 	err = ib_query_port(ibdev, port_num, &attr);
port_num          399 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c 	ib_event.element.port_num = port;
port_num          285 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c 	rdma_ah_set_port_num(dst, src->port_num);
port_num          298 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c 	dst->port_num = rdma_ah_get_port_num(src);
port_num          229 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 		if (init_attr->port_num == 0 ||
port_num          230 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 		    init_attr->port_num > pd->device->phys_port_cnt ||
port_num          383 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	qp->port = init_attr->port_num;
port_num          499 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 		if (attr->port_num == 0 ||
port_num          500 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 		    attr->port_num > ibqp->device->phys_port_cnt) {
port_num          552 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	cmd->attrs.port_num = attr->port_num;
port_num          970 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	attr->port_num = resp->attrs.port_num;
port_num          997 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	init_attr->port_num = qp->port;
port_num          140 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c 	cmd->port_num = port;
port_num          218 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c 	cmd->port_num = port;
port_num          518 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c 	u8 port_num = rdma_ah_get_port_num(ah_attr);
port_num          531 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c 	ah->av.port_pd = to_vpd(ibah->pd)->pd_handle | (port_num << 24);
port_num          235 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h 	u8				port_num;
port_num          351 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h 	u8			port_num;
port_num           66 drivers/infiniband/sw/rdmavt/ah.c 	int port_num = rdma_ah_get_port_num(ah_attr);
port_num           72 drivers/infiniband/sw/rdmavt/ah.c 	err = ib_query_port(ibdev, port_num, &port_attr);
port_num           75 drivers/infiniband/sw/rdmavt/ah.c 	if (port_num < 1 ||
port_num           76 drivers/infiniband/sw/rdmavt/ah.c 	    port_num > ibdev->phys_port_cnt)
port_num          135 drivers/infiniband/sw/rdmavt/cq.c 		uqueue[head].port_num = entry->port_num;
port_num           70 drivers/infiniband/sw/rdmavt/mad.c int rvt_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,
port_num           82 drivers/infiniband/sw/rdmavt/mad.c 	if (ibport_num_to_idx(ibdev, port_num) < 0)
port_num           53 drivers/infiniband/sw/rdmavt/mad.h int rvt_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,
port_num          284 drivers/infiniband/sw/rdmavt/mcast.c 	struct rvt_ibport *ibp = rdi->ports[qp->port_num - 1];
port_num          347 drivers/infiniband/sw/rdmavt/mcast.c 	struct rvt_ibport *ibp = rdi->ports[qp->port_num - 1];
port_num          532 drivers/infiniband/sw/rdmavt/qp.c 		     enum ib_qp_type type, u8 port_num)
port_num          539 drivers/infiniband/sw/rdmavt/qp.c 		return rdi->driver_f.alloc_qpn(rdi, qpt, type, port_num);
port_num          545 drivers/infiniband/sw/rdmavt/qp.c 		n = 1 << (ret + 2 * (port_num - 1));
port_num          770 drivers/infiniband/sw/rdmavt/qp.c 	struct rvt_ibport *rvp = rdi->ports[qp->port_num - 1];
port_num         1105 drivers/infiniband/sw/rdmavt/qp.c 		if (init_attr->port_num == 0 ||
port_num         1106 drivers/infiniband/sw/rdmavt/qp.c 		    init_attr->port_num > ibpd->device->phys_port_cnt)
port_num         1204 drivers/infiniband/sw/rdmavt/qp.c 				init_attr->port_num);
port_num         1210 drivers/infiniband/sw/rdmavt/qp.c 		qp->port_num = init_attr->port_num;
port_num         1418 drivers/infiniband/sw/rdmavt/qp.c 	struct rvt_ibport *rvp = rdi->ports[qp->port_num - 1];
port_num         1465 drivers/infiniband/sw/rdmavt/qp.c 	opa_ah = rdma_cap_opa_ah(ibqp->device, qp->port_num);
port_num         1518 drivers/infiniband/sw/rdmavt/qp.c 		    attr->port_num == 0 ||
port_num         1519 drivers/infiniband/sw/rdmavt/qp.c 		    attr->port_num > ibqp->device->phys_port_cnt)
port_num         1606 drivers/infiniband/sw/rdmavt/qp.c 		qp->port_num = attr->port_num;
port_num         1640 drivers/infiniband/sw/rdmavt/qp.c 			qp->port_num = rdma_ah_get_port_num(&qp->alt_ah_attr);
port_num         1788 drivers/infiniband/sw/rdmavt/qp.c 	attr->port_num = qp->port_num;
port_num         1807 drivers/infiniband/sw/rdmavt/qp.c 	init_attr->port_num = qp->port_num;
port_num         2659 drivers/infiniband/sw/rdmavt/qp.c 		struct rvt_ibport *rvp = rdi->ports[qp->port_num - 1];
port_num         2982 drivers/infiniband/sw/rdmavt/qp.c 	rvp = rdi->ports[sqp->port_num - 1];
port_num         3185 drivers/infiniband/sw/rdmavt/qp.c 	wc.port_num = 1;
port_num          156 drivers/infiniband/sw/rdmavt/vt.c static int rvt_query_port(struct ib_device *ibdev, u8 port_num,
port_num          161 drivers/infiniband/sw/rdmavt/vt.c 	int port_index = ibport_num_to_idx(ibdev, port_num);
port_num          179 drivers/infiniband/sw/rdmavt/vt.c 	return rdi->driver_f.query_port_state(rdi, port_num, props);
port_num          191 drivers/infiniband/sw/rdmavt/vt.c static int rvt_modify_port(struct ib_device *ibdev, u8 port_num,
port_num          197 drivers/infiniband/sw/rdmavt/vt.c 	int port_index = ibport_num_to_idx(ibdev, port_num);
port_num          212 drivers/infiniband/sw/rdmavt/vt.c 		rdi->driver_f.cap_mask_chg(rdi, port_num);
port_num          214 drivers/infiniband/sw/rdmavt/vt.c 		ret = rdi->driver_f.shut_down_port(rdi, port_num);
port_num          230 drivers/infiniband/sw/rdmavt/vt.c static int rvt_query_pkey(struct ib_device *ibdev, u8 port_num, u16 index,
port_num          242 drivers/infiniband/sw/rdmavt/vt.c 	port_index = ibport_num_to_idx(ibdev, port_num);
port_num          262 drivers/infiniband/sw/rdmavt/vt.c static int rvt_query_gid(struct ib_device *ibdev, u8 port_num,
port_num          274 drivers/infiniband/sw/rdmavt/vt.c 	port_index = ibport_num_to_idx(ibdev, port_num);
port_num          312 drivers/infiniband/sw/rdmavt/vt.c static int rvt_get_port_immutable(struct ib_device *ibdev, u8 port_num,
port_num          319 drivers/infiniband/sw/rdmavt/vt.c 	port_index = ibport_num_to_idx(ibdev, port_num);
port_num          325 drivers/infiniband/sw/rdmavt/vt.c 	err = ib_query_port(ibdev, port_num, &attr);
port_num           99 drivers/infiniband/sw/rdmavt/vt.h static inline int ibport_num_to_idx(struct ib_device *ibdev, u8 port_num)
port_num          104 drivers/infiniband/sw/rdmavt/vt.h 	port_index = port_num - 1; /* IB ports start at 1 our arrays at 0 */
port_num           62 drivers/infiniband/sw/rxe/rxe_av.c void rxe_av_from_attr(u8 port_num, struct rxe_av *av,
port_num           73 drivers/infiniband/sw/rxe/rxe_av.c 	av->port_num = port_num;
port_num           89 drivers/infiniband/sw/rxe/rxe_av.c 	rdma_ah_set_port_num(attr, av->port_num);
port_num           50 drivers/infiniband/sw/rxe/rxe_hdr.h 	u8			port_num;	/* port pkt received on */
port_num           71 drivers/infiniband/sw/rxe/rxe_hw_counters.c 					    u8 port_num)
port_num           75 drivers/infiniband/sw/rxe/rxe_hw_counters.c 	if (!port_num)
port_num           60 drivers/infiniband/sw/rxe/rxe_hw_counters.h 					    u8 port_num);
port_num           42 drivers/infiniband/sw/rxe/rxe_loc.h void rxe_av_from_attr(u8 port_num, struct rxe_av *av,
port_num          148 drivers/infiniband/sw/rxe/rxe_loc.h enum rdma_link_layer rxe_link_layer(struct rxe_dev *rxe, unsigned int port_num);
port_num          149 drivers/infiniband/sw/rxe/rxe_loc.h const char *rxe_parent_name(struct rxe_dev *rxe, unsigned int port_num);
port_num          215 drivers/infiniband/sw/rxe/rxe_net.c 	pkt->port_num = 1;
port_num          466 drivers/infiniband/sw/rxe/rxe_net.c 	const int port_num = 1;
port_num          468 drivers/infiniband/sw/rxe/rxe_net.c 	attr = rdma_get_gid_attr(&rxe->ib_dev, port_num, av->grh.sgid_index);
port_num          505 drivers/infiniband/sw/rxe/rxe_net.c 	pkt->port_num	= port_num;
port_num          518 drivers/infiniband/sw/rxe/rxe_net.c const char *rxe_parent_name(struct rxe_dev *rxe, unsigned int port_num)
port_num          523 drivers/infiniband/sw/rxe/rxe_net.c enum rdma_link_layer rxe_link_layer(struct rxe_dev *rxe, unsigned int port_num)
port_num          554 drivers/infiniband/sw/rxe/rxe_net.c 	ev.element.port_num = 1;
port_num           90 drivers/infiniband/sw/rxe/rxe_qp.c 	int port_num = init->port_num;
port_num          101 drivers/infiniband/sw/rxe/rxe_qp.c 		if (!rdma_is_port_valid(&rxe->ib_dev, port_num)) {
port_num          102 drivers/infiniband/sw/rxe/rxe_qp.c 			pr_warn("invalid port = %d\n", port_num);
port_num          109 drivers/infiniband/sw/rxe/rxe_qp.c 			pr_warn("SMI QP exists for port %d\n", port_num);
port_num          114 drivers/infiniband/sw/rxe/rxe_qp.c 			pr_warn("GSI QP exists for port %d\n", port_num);
port_num          194 drivers/infiniband/sw/rxe/rxe_qp.c 		qp->attr.port_num	= init->port_num;
port_num          200 drivers/infiniband/sw/rxe/rxe_qp.c 		qp->attr.port_num	= init->port_num;
port_num          406 drivers/infiniband/sw/rxe/rxe_qp.c 	init->port_num			= 1;
port_num          436 drivers/infiniband/sw/rxe/rxe_qp.c 		if (!rdma_is_port_valid(&rxe->ib_dev, attr->port_num)) {
port_num          437 drivers/infiniband/sw/rxe/rxe_qp.c 			pr_warn("invalid port %d\n", attr->port_num);
port_num          627 drivers/infiniband/sw/rxe/rxe_qp.c 		qp->attr.port_num = attr->port_num;
port_num          162 drivers/infiniband/sw/rxe/rxe_recv.c 	if (unlikely(pkt->port_num != qp->attr.port_num)) {
port_num          164 drivers/infiniband/sw/rxe/rxe_recv.c 				    pkt->port_num, qp->attr.port_num);
port_num          892 drivers/infiniband/sw/rxe/rxe_resp.c 			uwc->port_num		= qp->attr.port_num;
port_num          934 drivers/infiniband/sw/rxe/rxe_resp.c 			wc->port_num		= qp->attr.port_num;
port_num           56 drivers/infiniband/sw/rxe/rxe_verbs.c 			  u8 port_num, struct ib_port_attr *attr)
port_num           68 drivers/infiniband/sw/rxe/rxe_verbs.c 	rc = ib_get_eth_speed(dev, port_num, &attr->active_speed,
port_num           84 drivers/infiniband/sw/rxe/rxe_verbs.c 			  u8 port_num, u16 index, u16 *pkey)
port_num          121 drivers/infiniband/sw/rxe/rxe_verbs.c 			   u8 port_num, int mask, struct ib_port_modify *attr)
port_num          138 drivers/infiniband/sw/rxe/rxe_verbs.c 					       u8 port_num)
port_num          142 drivers/infiniband/sw/rxe/rxe_verbs.c 	return rxe_link_layer(rxe, port_num);
port_num          160 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_port_immutable(struct ib_device *dev, u8 port_num,
port_num          168 drivers/infiniband/sw/rxe/rxe_verbs.c 	err = ib_query_port(dev, port_num, &attr);
port_num         1859 drivers/infiniband/sw/siw/siw_verbs.c 	event.element.port_num = port;
port_num         1133 drivers/infiniband/ulp/ipoib/ipoib_cm.c 	qp_attr.port_num = priv->port;
port_num          101 drivers/infiniband/ulp/ipoib/ipoib_verbs.c 	qp_attr.port_num = priv->port;
port_num          273 drivers/infiniband/ulp/ipoib/ipoib_verbs.c 	if (record->element.port_num != priv->port)
port_num          277 drivers/infiniband/ulp/ipoib/ipoib_verbs.c 		  dev_name(&record->device->dev), record->element.port_num);
port_num           58 drivers/infiniband/ulp/iser/iser_verbs.c 		dev_name(&event->device->dev), event->element.port_num);
port_num         1496 drivers/infiniband/ulp/isert/ib_isert.c 				conn->cm_id->port_num, se_cmd->t_data_sg,
port_num         1500 drivers/infiniband/ulp/isert/ib_isert.c 		rdma_rw_ctx_destroy(&cmd->rw, conn->qp, conn->cm_id->port_num,
port_num         2123 drivers/infiniband/ulp/isert/ib_isert.c 	u8 port_num = conn->cm_id->port_num;
port_num         2149 drivers/infiniband/ulp/isert/ib_isert.c 		ret = rdma_rw_ctx_signature_init(&cmd->rw, conn->qp, port_num,
port_num         2154 drivers/infiniband/ulp/isert/ib_isert.c 		ret = rdma_rw_ctx_init(&cmd->rw, conn->qp, port_num,
port_num         2167 drivers/infiniband/ulp/isert/ib_isert.c 	ret = rdma_rw_ctx_post(&cmd->rw, conn->qp, port_num, cqe, chain_wr);
port_num          172 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h 	__be32  port_num;
port_num          105 drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h 	u32  port_num;
port_num          202 drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h 	u8 port_num;
port_num          298 drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h 					     u8 port_num, u8 vport_num);
port_num          139 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c 	u8 port_num[OPA_VESW_MAX_NUM_DEF_PORT] = { 0 };
port_num          172 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c 			port_num[port_count++] = i;
port_num          183 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c 		adapter->flow_tbl[i] = port_count ? port_num[i % port_count] :
port_num          324 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c 					     u8 port_num, u8 vport_num)
port_num          331 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c 	netdev = ibdev->ops.alloc_rdma_netdev(ibdev, port_num,
port_num          349 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c 	rn->port_num = port_num;
port_num          352 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c 	adapter->port_num = port_num;
port_num          110 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c 	u8                              port_num;
port_num          206 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c 	adapter = opa_vnic_add_netdev(cport->ibdev, port->port_num, vport_num);
port_num          637 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c 				  mad_wc->recv_buf.grh, mad_agent->port_num);
port_num          701 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c vema_get_port(struct opa_vnic_ctrl_port *cport, u8 port_num)
port_num          705 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c 	if (port_num > cport->num_ports)
port_num          708 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c 	return port + (port_num - 1);
port_num          763 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c 	ah_attr.type = rdma_ah_find_type(ibp, port->port_num);
port_num          766 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c 	rdma_ah_set_port_num(&ah_attr, port->port_num);
port_num          865 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c 	if (record->element.port_num != port->port_num)
port_num          870 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c 	      record->element.port_num);
port_num          942 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c 		port->port_num = i;
port_num           68 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema_iface.c 	trap_data.veswportnum = info->vport.port_num;
port_num           69 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema_iface.c 	trap_data.opaportnum = adapter->port_num;
port_num           98 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema_iface.c 	cntrs->veswport_num = cpu_to_be32(adapter->port_num);
port_num          137 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema_iface.c 	cntrs->veswport_num = cpu_to_be32(adapter->port_num);
port_num          234 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema_iface.c 	info->port_num = cpu_to_be32(src->port_num);
port_num          281 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema_iface.c 	dst->port_num = be32_to_cpu(info->port_num);
port_num          300 drivers/infiniband/ulp/srp/ib_srp.c 	attr->port_num        = target->srp_host->port;
port_num          140 drivers/infiniband/ulp/srpt/ib_srpt.c 	u8 port_num;
port_num          151 drivers/infiniband/ulp/srpt/ib_srpt.c 		port_num = event->element.port_num - 1;
port_num          152 drivers/infiniband/ulp/srpt/ib_srpt.c 		if (port_num < sdev->device->phys_port_cnt) {
port_num          153 drivers/infiniband/ulp/srpt/ib_srpt.c 			sport = &sdev->port[port_num];
port_num          158 drivers/infiniband/ulp/srpt/ib_srpt.c 			     event->event, port_num + 1,
port_num          169 drivers/infiniband/ulp/srpt/ib_srpt.c 		port_num = event->element.port_num - 1;
port_num          170 drivers/infiniband/ulp/srpt/ib_srpt.c 		if (port_num < sdev->device->phys_port_cnt) {
port_num          171 drivers/infiniband/ulp/srpt/ib_srpt.c 			sport = &sdev->port[port_num];
port_num          176 drivers/infiniband/ulp/srpt/ib_srpt.c 			     event->event, port_num + 1,
port_num          484 drivers/infiniband/ulp/srpt/ib_srpt.c 				  mad_wc->recv_buf.grh, mad_agent->port_num);
port_num         1123 drivers/infiniband/ulp/srpt/ib_srpt.c 	attr->port_num = ch->sport->port;
port_num         1823 drivers/infiniband/ulp/srpt/ib_srpt.c 	qp_init->port_num = ch->sport->port;
port_num         2155 drivers/infiniband/ulp/srpt/ib_srpt.c 			    u8 port_num, __be16 pkey,
port_num         2159 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_port *sport = &sdev->port[port_num - 1];
port_num         2181 drivers/infiniband/ulp/srpt/ib_srpt.c 		port_num, &sport->gid, be16_to_cpu(pkey));
port_num         2209 drivers/infiniband/ulp/srpt/ib_srpt.c 			dev_name(&sport->sdev->device->dev), port_num);
port_num         2374 drivers/infiniband/ulp/srpt/ib_srpt.c 			dev_name(&sdev->device->dev), port_num);
port_num         2556 drivers/infiniband/ulp/srpt/ib_srpt.c 	return srpt_cm_req_recv(sdev, NULL, cm_id, cm_id->port_num,
port_num          341 drivers/media/pci/ddbridge/ddbridge-core.c 	for (i = 0; i < dev->port_num; i++) {
port_num          378 drivers/media/pci/ddbridge/ddbridge-core.c 	for (i = 0; i < dev->port_num; i++) {
port_num         1361 drivers/media/pci/ddbridge/ddbridge-core.c 		for (i = 0; i < dev->port_num; i++) {
port_num         1369 drivers/media/pci/ddbridge/ddbridge-core.c 	for (i = 0; i < dev->port_num; i++) {
port_num         1430 drivers/media/pci/ddbridge/ddbridge-core.c 	for (i = 0; i < dev->link[0].info->port_num; i++) {
port_num         2060 drivers/media/pci/ddbridge/ddbridge-core.c 	if (dev->port_num) {
port_num         2068 drivers/media/pci/ddbridge/ddbridge-core.c 	numports = dev->port_num;
port_num         2070 drivers/media/pci/ddbridge/ddbridge-core.c 	for (i = 0; i < dev->port_num; i++) {
port_num         2099 drivers/media/pci/ddbridge/ddbridge-core.c 	for (i = 0; i < dev->port_num; i++) {
port_num         2379 drivers/media/pci/ddbridge/ddbridge-core.c 		for (i = 0; i < info->port_num; i++, p++) {
port_num         2452 drivers/media/pci/ddbridge/ddbridge-core.c 	dev->port_num = p;
port_num         2460 drivers/media/pci/ddbridge/ddbridge-core.c 	for (i = 0; i < dev->port_num; i++) {
port_num         2749 drivers/media/pci/ddbridge/ddbridge-core.c 	return sprintf(buf, "%d\n", dev->port_num);
port_num          100 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 4,
port_num          108 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 4,
port_num          116 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 2,
port_num          124 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 4,
port_num          136 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 4,
port_num          144 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 3,
port_num          152 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 4,
port_num          160 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 4,
port_num          171 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 4,
port_num          182 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 4,
port_num          192 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 3,
port_num          200 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 4,
port_num          208 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 3,
port_num          216 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 4,
port_num          226 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 4,
port_num          236 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 3,
port_num          246 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 4,
port_num          258 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 4,
port_num          270 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 4,
port_num          282 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 4,
port_num          294 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 4,
port_num          308 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 4,
port_num          318 drivers/media/pci/ddbridge/ddbridge-hw.c 	.port_num = 4,
port_num          119 drivers/media/pci/ddbridge/ddbridge.h 	u8    port_num;
port_num          331 drivers/media/pci/ddbridge/ddbridge.h 	u32                      port_num;
port_num         1522 drivers/media/platform/s5p-mfc/s5p_mfc.c 	.port_num	= MFC_NUM_PORTS,
port_num         1547 drivers/media/platform/s5p-mfc/s5p_mfc.c 	.port_num	= MFC_NUM_PORTS_V6,
port_num         1576 drivers/media/platform/s5p-mfc/s5p_mfc.c 	.port_num	= MFC_NUM_PORTS_V7,
port_num         1600 drivers/media/platform/s5p-mfc/s5p_mfc.c 	.port_num	= MFC_NUM_PORTS_V8,
port_num         1610 drivers/media/platform/s5p-mfc/s5p_mfc.c 	.port_num	= MFC_NUM_PORTS_V8,
port_num         1635 drivers/media/platform/s5p-mfc/s5p_mfc.c 	.port_num       = MFC_NUM_PORTS_V10,
port_num          227 drivers/media/platform/s5p-mfc/s5p_mfc_common.h 	unsigned int port_num;
port_num          762 drivers/media/platform/s5p-mfc/s5p_mfc_common.h 				(dev->variant->port_num ? 1 : 0) : 0) : 0)
port_num          763 drivers/media/platform/s5p-mfc/s5p_mfc_common.h #define IS_TWOPORT(dev)		(dev->variant->port_num == 2 ? 1 : 0)
port_num         7570 drivers/message/fusion/mptbase.c 		u8 port_num = (u8)(evData0 >> 8);
port_num         7576 drivers/message/fusion/mptbase.c 		    phy_num, port_num, port_width, primitive);
port_num         7612 drivers/message/fusion/mptbase.c 		u8 port_num = (u8)(evData0 >> 8);
port_num         7618 drivers/message/fusion/mptbase.c 			    port_num, result);
port_num         7622 drivers/message/fusion/mptbase.c 			    port_num);
port_num         7626 drivers/message/fusion/mptbase.c 			    port_num);
port_num         7630 drivers/message/fusion/mptbase.c 			    port_num);
port_num         7634 drivers/message/fusion/mptbase.c 			    port_num);
port_num         7638 drivers/message/fusion/mptbase.c 			    port_num, status);
port_num          386 drivers/net/dsa/bcm_sf2.c 	unsigned int port_num;
port_num          391 drivers/net/dsa/bcm_sf2.c 		if (of_property_read_u32(port, "reg", &port_num))
port_num          404 drivers/net/dsa/bcm_sf2.c 			priv->int_phy_mask |= 1 << port_num;
port_num          407 drivers/net/dsa/bcm_sf2.c 			priv->moca_port = port_num;
port_num          410 drivers/net/dsa/bcm_sf2.c 			priv->brcm_tag_mask |= 1 << port_num;
port_num          213 drivers/net/dsa/bcm_sf2_cfp.c 				   unsigned int port_num,
port_num          225 drivers/net/dsa/bcm_sf2_cfp.c 		      BIT(port_num + DST_MAP_IB_SHIFT) |
port_num          231 drivers/net/dsa/bcm_sf2_cfp.c 	if (src_port == port_num)
port_num          334 drivers/net/dsa/bcm_sf2_cfp.c 				     unsigned int port_num,
port_num          447 drivers/net/dsa/bcm_sf2_cfp.c 	ret = bcm_sf2_cfp_act_pol_set(priv, rule_index, port, port_num,
port_num          598 drivers/net/dsa/bcm_sf2_cfp.c 				     unsigned int port_num,
port_num          732 drivers/net/dsa/bcm_sf2_cfp.c 	ret = bcm_sf2_cfp_act_pol_set(priv, rule_index[0], port, port_num,
port_num          794 drivers/net/dsa/bcm_sf2_cfp.c 	ret = bcm_sf2_cfp_act_pol_set(priv, rule_index[1], port, port_num,
port_num          826 drivers/net/dsa/bcm_sf2_cfp.c 	unsigned int queue_num, port_num;
port_num          839 drivers/net/dsa/bcm_sf2_cfp.c 	port_num = ring_cookie / SF2_NUM_EGRESS_QUEUES;
port_num          842 drivers/net/dsa/bcm_sf2_cfp.c 	    !(dsa_is_user_port(ds, port_num) ||
port_num          843 drivers/net/dsa/bcm_sf2_cfp.c 	      dsa_is_cpu_port(ds, port_num)) ||
port_num          844 drivers/net/dsa/bcm_sf2_cfp.c 	    port_num >= priv->hw_params.num_ports)
port_num          851 drivers/net/dsa/bcm_sf2_cfp.c 	if (port_num >= 7)
port_num          852 drivers/net/dsa/bcm_sf2_cfp.c 		port_num -= 1;
port_num          857 drivers/net/dsa/bcm_sf2_cfp.c 		ret = bcm_sf2_cfp_ipv4_rule_set(priv, port, port_num,
port_num          862 drivers/net/dsa/bcm_sf2_cfp.c 		ret = bcm_sf2_cfp_ipv6_rule_set(priv, port, port_num,
port_num          219 drivers/net/ethernet/chelsio/cxgb4/cudbg_entity.h 	u8 port_num;
port_num         2163 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c 		tcam->port_num = DATAPORTNUM_G(data2);
port_num         1702 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		u8 lookup_type = 0, port_num = 0;
port_num         1737 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 			port_num = DATAPORTNUM_G(data2);
port_num         1824 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 					   port_num,
port_num         1845 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 					   lookup_type ? 'I' : 'O', port_num,
port_num          626 drivers/net/ethernet/emulex/benet/be.h 	u32 port_num;
port_num          387 drivers/net/ethernet/emulex/benet/be_cmds.c 	    evt->physical_port == adapter->port_num)
port_num         2133 drivers/net/ethernet/emulex/benet/be_cmds.c 		adapter->port_num = le32_to_cpu(resp->phys_port);
port_num         2219 drivers/net/ethernet/emulex/benet/be_cmds.c int be_cmd_set_beacon_state(struct be_adapter *adapter, u8 port_num,
port_num         2239 drivers/net/ethernet/emulex/benet/be_cmds.c 	req->port_num = port_num;
port_num         2252 drivers/net/ethernet/emulex/benet/be_cmds.c int be_cmd_get_beacon_state(struct be_adapter *adapter, u8 port_num, u32 *state)
port_num         2271 drivers/net/ethernet/emulex/benet/be_cmds.c 	req->port_num = port_num;
port_num         3238 drivers/net/ethernet/emulex/benet/be_cmds.c int be_cmd_set_loopback(struct be_adapter *adapter, u8 port_num,
port_num         3263 drivers/net/ethernet/emulex/benet/be_cmds.c 	req->src_port = port_num;
port_num         3264 drivers/net/ethernet/emulex/benet/be_cmds.c 	req->dest_port = port_num;
port_num         3285 drivers/net/ethernet/emulex/benet/be_cmds.c int be_cmd_loopback_test(struct be_adapter *adapter, u32 port_num,
port_num         3314 drivers/net/ethernet/emulex/benet/be_cmds.c 	req->src_port = cpu_to_le32(port_num);
port_num         3315 drivers/net/ethernet/emulex/benet/be_cmds.c 	req->dest_port = cpu_to_le32(port_num);
port_num         4489 drivers/net/ethernet/emulex/benet/be_cmds.c 			if (nic->link_param == adapter->port_num) {
port_num         1233 drivers/net/ethernet/emulex/benet/be_cmds.h 	u8  port_num;
port_num         1241 drivers/net/ethernet/emulex/benet/be_cmds.h 	u8  port_num;
port_num         2425 drivers/net/ethernet/emulex/benet/be_cmds.h int be_cmd_set_beacon_state(struct be_adapter *adapter, u8 port_num, u8 beacon,
port_num         2427 drivers/net/ethernet/emulex/benet/be_cmds.h int be_cmd_get_beacon_state(struct be_adapter *adapter, u8 port_num,
port_num         2444 drivers/net/ethernet/emulex/benet/be_cmds.h int be_cmd_loopback_test(struct be_adapter *adapter, u32 port_num,
port_num         2451 drivers/net/ethernet/emulex/benet/be_cmds.h int be_cmd_set_loopback(struct be_adapter *adapter, u8 port_num,
port_num          672 drivers/net/ethernet/emulex/benet/be_ethtool.c 	cmd->base.phy_address = adapter->port_num;
port_num          423 drivers/net/ethernet/emulex/benet/be_main.c 					&rxf_stats->port[adapter->port_num];
port_num          453 drivers/net/ethernet/emulex/benet/be_main.c 	if (adapter->port_num)
port_num          472 drivers/net/ethernet/emulex/benet/be_main.c 					&rxf_stats->port[adapter->port_num];
port_num          518 drivers/net/ethernet/emulex/benet/be_main.c 					&rxf_stats->port[adapter->port_num];
port_num         3233 drivers/net/ethernet/emulex/benet/be_main.c 		if (unlikely(rxcp->port != adapter->port_num &&
port_num         4346 drivers/net/ethernet/emulex/benet/be_main.c 	if (BE2_chip(adapter) || use_sriov ||  (adapter->port_num > 1) ||
port_num          259 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c 	u8 port_num;
port_num          274 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c 	ret = hns_mac_get_inner_port_num(mac_cb, handle->vf_id, &port_num);
port_num          278 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c 	ret = hns_mac_set_multi(mac_cb, port_num, mac_addr, true);
port_num          163 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_mac_get_inner_port_num(struct hns_mac_cb *mac_cb, u8 vmid, u8 *port_num)
port_num          231 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 	*port_num = tmp_port;
port_num          257 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 						 &mac_entry.port_num);
port_num          298 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 	ret = hns_mac_get_inner_port_num(mac_cb, vf_id, &mac_entry.port_num);
port_num          318 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 	ret = hns_mac_get_inner_port_num(mac_cb, vf_id, &mac_entry.port_num);
port_num          326 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 		      u32 port_num, char *addr, bool enable)
port_num          336 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 		mac_entry.port_num = port_num;
port_num          357 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 	u8 port_num;
port_num          358 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 	int ret = hns_mac_get_inner_port_num(mac_cb, vfn, &port_num);
port_num          363 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 	return hns_dsaf_clr_mac_mc_port(dsaf_dev, mac_cb->mac_id, port_num);
port_num          384 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 				     u32 port_num, u16 vlan_id, bool enable)
port_num          398 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 		mac_entry.port_num = port_num;
port_num          421 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 	u8 port_num;
port_num          434 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 		ret = hns_mac_get_inner_port_num(mac_cb, vmid, &port_num);
port_num          437 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 		mac_entry.port_num = port_num;
port_num          434 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h 		      u32 port_num, char *addr, bool enable);
port_num          461 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h 			       u8 vmid, u8 *port_num);
port_num         1659 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 	mac_data.tbl_ucast_out_port = mac_entry->port_num;
port_num         1714 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 	if (mac_entry->port_num != mac_data.tbl_ucast_out_port)
port_num         1724 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 				   u8 port_num, u8 *mask, u8 *addr)
port_num         1729 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 		memcpy(mask, dsaf_dev->mac_cb[port_num]->mc_mask, ETH_ALEN);
port_num         1813 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 	if (mac_entry->port_num < DSAF_SERVICE_NW_NUM) {
port_num         1814 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 		mskid = mac_entry->port_num;
port_num         1815 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 	} else if (mac_entry->port_num >= DSAF_BASE_INNER_PORT_NUM) {
port_num         1816 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 		mskid = mac_entry->port_num -
port_num         1821 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 			dsaf_dev->ae_dev.name, mac_entry->port_num,
port_num         1980 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 	if (mac_entry->port_num < DSAF_SERVICE_NW_NUM) {
port_num         1981 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 		mskid = mac_entry->port_num;
port_num         1982 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 	} else if (mac_entry->port_num >= DSAF_BASE_INNER_PORT_NUM) {
port_num         1983 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 		mskid = mac_entry->port_num -
port_num         1988 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 			dsaf_dev->ae_dev.name, mac_entry->port_num,
port_num         2015 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 			     u8 port_num)
port_num         2053 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 			mac_entry.port_num = port_num;
port_num         2070 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 				mac_entry.port_num = mac_id;
port_num         2767 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 	u8 port_num;
port_num         2787 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 	(void)hns_mac_get_inner_port_num(mac_cb, 0, &port_num);
port_num         2788 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 	tbl_tcam_ucast.tbl_ucast_out_port = port_num;
port_num         2833 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 	mskid = hns_dsaf_get_port_id(port_num);
port_num         2837 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 			dsaf_dev->ae_dev.name, port_num,
port_num          171 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h 	u8 port_num; /*output port num*/
port_num          463 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h 			     u8 mac_id, u8 port_num);
port_num          375 drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c 	int port_num = hns_rcb_common_get_port_num(rcb_common);
port_num          386 drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c 	for (i = 0; i < port_num; i++) {
port_num          529 drivers/net/ethernet/ibm/ehea/ehea_phyp.c u64 ehea_h_query_ehea_port(const u64 adapter_handle, const u16 port_num,
port_num          538 drivers/net/ethernet/ibm/ehea/ehea_phyp.c 		  | EHEA_BMASK_SET(H_MEHEAPORT_PN, port_num);
port_num          549 drivers/net/ethernet/ibm/ehea/ehea_phyp.c u64 ehea_h_modify_ehea_port(const u64 adapter_handle, const u16 port_num,
port_num          559 drivers/net/ethernet/ibm/ehea/ehea_phyp.c 		  | EHEA_BMASK_SET(H_MEHEAPORT_PN, port_num);
port_num          573 drivers/net/ethernet/ibm/ehea/ehea_phyp.c u64 ehea_h_reg_dereg_bcmc(const u64 adapter_handle, const u16 port_num,
port_num          580 drivers/net/ethernet/ibm/ehea/ehea_phyp.c 	r5_port_num = EHEA_BMASK_SET(H_REGBCMC_PN, port_num);
port_num          410 drivers/net/ethernet/ibm/ehea/ehea_phyp.h u64 ehea_h_query_ehea_port(const u64 adapter_handle, const u16 port_num,
port_num          414 drivers/net/ethernet/ibm/ehea/ehea_phyp.h u64 ehea_h_modify_ehea_port(const u64 adapter_handle, const u16 port_num,
port_num          423 drivers/net/ethernet/ibm/ehea/ehea_phyp.h u64 ehea_h_reg_dereg_bcmc(const u64 adapter_handle, const u16 port_num,
port_num         4660 drivers/net/ethernet/intel/i40e/i40e_common.c 	u8 port_num = (u8)hw->func_caps.mdio_port_num;
port_num         4669 drivers/net/ethernet/intel/i40e/i40e_common.c 	wr32(hw, I40E_GLGEN_MSCA(port_num), command);
port_num         4671 drivers/net/ethernet/intel/i40e/i40e_common.c 		command = rd32(hw, I40E_GLGEN_MSCA(port_num));
port_num         4684 drivers/net/ethernet/intel/i40e/i40e_common.c 		command = rd32(hw, I40E_GLGEN_MSRWD(port_num));
port_num         4705 drivers/net/ethernet/intel/i40e/i40e_common.c 	u8 port_num = (u8)hw->func_caps.mdio_port_num;
port_num         4710 drivers/net/ethernet/intel/i40e/i40e_common.c 	wr32(hw, I40E_GLGEN_MSRWD(port_num), command);
port_num         4718 drivers/net/ethernet/intel/i40e/i40e_common.c 	wr32(hw, I40E_GLGEN_MSCA(port_num), command);
port_num         4720 drivers/net/ethernet/intel/i40e/i40e_common.c 		command = rd32(hw, I40E_GLGEN_MSCA(port_num));
port_num         4748 drivers/net/ethernet/intel/i40e/i40e_common.c 	u8 port_num = hw->func_caps.mdio_port_num;
port_num         4757 drivers/net/ethernet/intel/i40e/i40e_common.c 	wr32(hw, I40E_GLGEN_MSCA(port_num), command);
port_num         4759 drivers/net/ethernet/intel/i40e/i40e_common.c 		command = rd32(hw, I40E_GLGEN_MSCA(port_num));
port_num         4782 drivers/net/ethernet/intel/i40e/i40e_common.c 	wr32(hw, I40E_GLGEN_MSCA(port_num), command);
port_num         4784 drivers/net/ethernet/intel/i40e/i40e_common.c 		command = rd32(hw, I40E_GLGEN_MSCA(port_num));
port_num         4794 drivers/net/ethernet/intel/i40e/i40e_common.c 		command = rd32(hw, I40E_GLGEN_MSRWD(port_num));
port_num         4822 drivers/net/ethernet/intel/i40e/i40e_common.c 	u8 port_num = hw->func_caps.mdio_port_num;
port_num         4831 drivers/net/ethernet/intel/i40e/i40e_common.c 	wr32(hw, I40E_GLGEN_MSCA(port_num), command);
port_num         4833 drivers/net/ethernet/intel/i40e/i40e_common.c 		command = rd32(hw, I40E_GLGEN_MSCA(port_num));
port_num         4848 drivers/net/ethernet/intel/i40e/i40e_common.c 	wr32(hw, I40E_GLGEN_MSRWD(port_num), command);
port_num         4858 drivers/net/ethernet/intel/i40e/i40e_common.c 	wr32(hw, I40E_GLGEN_MSCA(port_num), command);
port_num         4860 drivers/net/ethernet/intel/i40e/i40e_common.c 		command = rd32(hw, I40E_GLGEN_MSCA(port_num));
port_num         4955 drivers/net/ethernet/intel/i40e/i40e_common.c 	u8 port_num = hw->func_caps.mdio_port_num;
port_num         4956 drivers/net/ethernet/intel/i40e/i40e_common.c 	u32 reg_val = rd32(hw, I40E_GLGEN_MDIO_I2C_SEL(port_num));
port_num         4979 drivers/net/ethernet/intel/i40e/i40e_common.c 	u8 port_num;
port_num         4982 drivers/net/ethernet/intel/i40e/i40e_common.c 	port_num = (u8)(i & I40E_PFGEN_PORTNUM_PORT_NUM_MASK);
port_num         4983 drivers/net/ethernet/intel/i40e/i40e_common.c 	phy_addr = i40e_get_phy_address(hw, port_num);
port_num         5046 drivers/net/ethernet/intel/i40e/i40e_common.c 	u8 port_num;
port_num         5059 drivers/net/ethernet/intel/i40e/i40e_common.c 		port_num = (u8)(i & I40E_PFGEN_PORTNUM_PORT_NUM_MASK);
port_num         5060 drivers/net/ethernet/intel/i40e/i40e_common.c 		phy_addr = i40e_get_phy_address(hw, port_num);
port_num         5080 drivers/net/ethernet/intel/i40e/i40e_common.c 	u8 port_num;
port_num         5092 drivers/net/ethernet/intel/i40e/i40e_common.c 		port_num = (u8)(i & I40E_PFGEN_PORTNUM_PORT_NUM_MASK);
port_num         5093 drivers/net/ethernet/intel/i40e/i40e_common.c 		phy_addr = i40e_get_phy_address(hw, port_num);
port_num         5118 drivers/net/ethernet/intel/i40e/i40e_common.c 	u8 port_num;
port_num         5135 drivers/net/ethernet/intel/i40e/i40e_common.c 	port_num = (u8)(i & I40E_PFGEN_PORTNUM_PORT_NUM_MASK);
port_num         5136 drivers/net/ethernet/intel/i40e/i40e_common.c 	phy_addr = i40e_get_phy_address(hw, port_num);
port_num          660 drivers/net/ethernet/intel/ice/ice_adminq_cmd.h 	u8 port_num;
port_num         1162 drivers/net/ethernet/intel/ice/ice_common.c 	ICE_CTX_STORE(ice_tlan_ctx, port_num,			3,	57),
port_num         2498 drivers/net/ethernet/intel/ice/ice_common.c ice_aq_set_event_mask(struct ice_hw *hw, u8 port_num, u16 mask,
port_num         2508 drivers/net/ethernet/intel/ice/ice_common.c 	cmd->lport_num = port_num;
port_num          112 drivers/net/ethernet/intel/ice/ice_common.h ice_aq_set_event_mask(struct ice_hw *hw, u8 port_num, u16 mask,
port_num          421 drivers/net/ethernet/intel/ice/ice_lan_tx_rx.h 	u8 port_num;
port_num          123 drivers/net/ethernet/intel/ice/ice_lib.c 	tlan_ctx->port_num = vsi->port_info->lport;
port_num          384 drivers/net/ethernet/intel/ice/ice_sched.c 	cmd->port_num = lport;
port_num          376 drivers/net/ethernet/intel/igc/igc.h 	u8 port_num;
port_num         4174 drivers/net/ethernet/intel/igc/igc_main.c 	adapter->port_num = hw->bus.func;
port_num         3766 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c 	fw_cmd.port_num = hw->bus.func;
port_num         2759 drivers/net/ethernet/intel/ixgbe/ixgbe_type.h 	u8 port_num;
port_num         2770 drivers/net/ethernet/intel/ixgbe/ixgbe_type.h 	u8 port_num;
port_num         2783 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c 	fw_cmd.port_num = (u8)hw->bus.func;
port_num          369 drivers/net/ethernet/marvell/mv643xx_eth.c 	int port_num;
port_num         1281 drivers/net/ethernet/marvell/mv643xx_eth.c 	return rdl(mp, MIB_COUNTERS(mp->port_num) + offset);
port_num         1818 drivers/net/ethernet/marvell/mv643xx_eth.c 		int off = UNICAST_TABLE(mp->port_num) + i;
port_num         1890 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrl(mp, SPECIAL_MCAST_TABLE(mp->port_num) + i * sizeof(u32),
port_num         1892 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrl(mp, OTHER_MCAST_TABLE(mp->port_num) + i * sizeof(u32),
port_num         1901 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrl(mp, SPECIAL_MCAST_TABLE(mp->port_num) + i * sizeof(u32),
port_num         1903 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrl(mp, OTHER_MCAST_TABLE(mp->port_num) + i * sizeof(u32),
port_num         2906 drivers/net/ethernet/marvell/mv643xx_eth.c 	int addr_shift = 5 * mp->port_num;
port_num         2921 drivers/net/ethernet/marvell/mv643xx_eth.c 	return (data >> (5 * mp->port_num)) & 0x1f;
port_num         3108 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->port_num = pd->port_number;
port_num         3204 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrl(mp, WINDOW_PROTECT(mp->port_num), mp->shared->win_protect);
port_num         3218 drivers/net/ethernet/marvell/mv643xx_eth.c 		      mp->port_num, dev->dev_addr);
port_num          193 drivers/net/ethernet/marvell/pxa168_eth.c 	int port_num;		/* User Ethernet port number    */
port_num         1473 drivers/net/ethernet/marvell/pxa168_eth.c 		pep->port_num = pep->pd->port_number;
port_num         1483 drivers/net/ethernet/marvell/pxa168_eth.c 				     &pep->port_num);
port_num         1497 drivers/net/ethernet/marvell/pxa168_eth.c 	BUG_ON(pep->port_num > 2);
port_num          684 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c static int mlx5_rdma_setup_rn(struct ib_device *ibdev, u8 port_num,
port_num          124 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c 			   const u8 *mac, bool vlan, u16 vlan_id, u8 port_num)
port_num          152 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c 		MLX5_SET(set_roce_address_in, in, vhca_port_num, port_num);
port_num          112 drivers/net/ethernet/mellanox/mlx5/core/port.c 	u8			port_num;
port_num          120 drivers/net/ethernet/mellanox/mlx5/core/port.c int mlx5_set_port_caps(struct mlx5_core_dev *dev, u8 port_num, u32 caps)
port_num          127 drivers/net/ethernet/mellanox/mlx5/core/port.c 	in.port_num = port_num;
port_num          401 drivers/net/ethernet/mellanox/mlx5/core/port.c 			     u8 port_num, void *out, size_t sz)
port_num          412 drivers/net/ethernet/mellanox/mlx5/core/port.c 	MLX5_SET(ppcnt_reg, in, local_port, port_num);
port_num           31 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c 	u16 port_num;
port_num          636 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c 	MLX5_SET(qpc, qpc, primary_address_path.vhca_port_num, attr->port_num);
port_num          666 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c 	rtr_attr.port_num	= port;
port_num          531 drivers/net/ethernet/mellanox/mlx5/core/vport.c 			     u8 port_num, u16  vf_num, u16 gid_index,
port_num          579 drivers/net/ethernet/mellanox/mlx5/core/vport.c 		MLX5_SET(query_hca_vport_gid_in, in, port_num, port_num);
port_num          597 drivers/net/ethernet/mellanox/mlx5/core/vport.c 			      u8 port_num, u16 vf_num, u16 pkey_index,
port_num          644 drivers/net/ethernet/mellanox/mlx5/core/vport.c 		MLX5_SET(query_hca_vport_pkey_in, in, port_num, port_num);
port_num          662 drivers/net/ethernet/mellanox/mlx5/core/vport.c 				 u8 other_vport, u8 port_num,
port_num          692 drivers/net/ethernet/mellanox/mlx5/core/vport.c 		MLX5_SET(query_hca_vport_context_in, in, port_num, port_num);
port_num          971 drivers/net/ethernet/mellanox/mlx5/core/vport.c 				  int vf, u8 port_num, void *out,
port_num          998 drivers/net/ethernet/mellanox/mlx5/core/vport.c 		MLX5_SET(query_vport_counter_in, in, port_num, port_num);
port_num         1033 drivers/net/ethernet/mellanox/mlx5/core/vport.c 				       u8 other_vport, u8 port_num,
port_num         1063 drivers/net/ethernet/mellanox/mlx5/core/vport.c 		MLX5_SET(modify_hca_vport_context_in, in, port_num, port_num);
port_num         1264 drivers/net/ethernet/pensando/ionic/ionic_if.h 	u8     port_num;
port_num         1341 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	u16	port_num;
port_num         1349 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	u16	port_num;
port_num          761 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 		np_cfg[pci_func].port_num = nic_info.phys_port;
port_num          931 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 		pci_cfg[i].port_num = pci_info[i].default_port;
port_num          762 drivers/net/ethernet/sfc/ef10.c 	efx->port_num = rc;
port_num         2393 drivers/net/ethernet/sfc/efx.c 	if (snprintf(name, len, "p%u", efx->port_num) >= len)
port_num          771 drivers/net/ethernet/sfc/falcon/net_driver.h 	unsigned int port_num;
port_num          911 drivers/net/ethernet/sfc/falcon/net_driver.h 	return efx->port_num;
port_num         1521 drivers/net/ethernet/sfc/mcdi.c 	int port_num = efx_port_num(efx);
port_num         1541 drivers/net/ethernet/sfc/mcdi.c 				port_num ?
port_num         1555 drivers/net/ethernet/sfc/mcdi.c 		if (port_num)
port_num          941 drivers/net/ethernet/sfc/net_driver.h 	unsigned int port_num;
port_num         1102 drivers/net/ethernet/sfc/net_driver.h 	return efx->port_num;
port_num          280 drivers/net/ethernet/sfc/siena.c 	efx->port_num = EFX_OWORD_FIELD(reg, FRF_CZ_CS_PORT_NUM) - 1;
port_num          107 drivers/net/ethernet/tehuti/tehuti.c 		nic->port_num == 1 ? "" : ", 2-Port");
port_num          633 drivers/net/ethernet/tehuti/tehuti.c 	return (offset > (u32) (BDX_REGS_SIZE / priv->nic->port_num)) ?
port_num         1963 drivers/net/ethernet/tehuti/tehuti.c 		nic->port_num = 2;
port_num         1965 drivers/net/ethernet/tehuti/tehuti.c 		nic->port_num = 1;
port_num         1984 drivers/net/ethernet/tehuti/tehuti.c 	for (port = 0; port < nic->port_num; port++) {
port_num         2406 drivers/net/ethernet/tehuti/tehuti.c 	for (port = 0; port < nic->port_num; port++) {
port_num          116 drivers/net/ethernet/tehuti/tehuti.h 	int port_num;
port_num          111 drivers/net/ethernet/ti/cpsw_ale.c DEFINE_ALE_FIELD1(port_num,		66)
port_num          696 drivers/net/ethernet/ti/netcp_ethss.c 	int				port_num;  /* actual port number */
port_num         2097 drivers/net/ethernet/ti/netcp_ethss.c 		cpsw_ale_control_set(gbe_dev->ale, slave->port_num,
port_num         2109 drivers/net/ethernet/ti/netcp_ethss.c 		cpsw_ale_control_set(gbe_dev->ale, slave->port_num,
port_num         2265 drivers/net/ethernet/ti/netcp_ethss.c 	cpsw_ale_control_set(gbe_dev->ale, slave->port_num,
port_num         2268 drivers/net/ethernet/ti/netcp_ethss.c 			   1 << slave->port_num, 0, 0);
port_num         2312 drivers/net/ethernet/ti/netcp_ethss.c 	cpsw_ale_control_set(priv->ale, slave->port_num,
port_num         2315 drivers/net/ethernet/ti/netcp_ethss.c 			   1 << slave->port_num, 0, 0, ALE_MCAST_FWD_2);
port_num         2902 drivers/net/ethernet/ti/netcp_ethss.c 	int port_num = slave->port_num;
port_num         2918 drivers/net/ethernet/ti/netcp_ethss.c 		gbe_intf->tx_pipe.switch_to_port = port_num;
port_num         3022 drivers/net/ethernet/ti/netcp_ethss.c 	slave->port_num = gbe_get_slave_port(gbe_dev, slave->slave_num);
port_num          239 drivers/nvme/host/fc.c 	ida_simple_remove(&nvme_fc_local_port_cnt, lport->localport.port_num);
port_num          403 drivers/nvme/host/fc.c 	newrec->localport.port_num = idx;
port_num          512 drivers/nvme/host/fc.c 	ida_simple_remove(&lport->endp_cnt, rport->remoteport.port_num);
port_num          712 drivers/nvme/host/fc.c 	newrec->remoteport.port_num = idx;
port_num          599 drivers/nvme/target/fc.c 				assoc->tgtport->fc_target_port.port_num,
port_num         1053 drivers/nvme/target/fc.c 	newrec->fc_target_port.port_num = idx;
port_num         1111 drivers/nvme/target/fc.c 			tgtport->fc_target_port.port_num);
port_num          507 drivers/nvme/target/rdma.c 				queue->cm_id->port_num, rsp->req.sg,
port_num          566 drivers/nvme/target/rdma.c 				cm_id->port_num, NULL, &rsp->send_wr);
port_num          591 drivers/nvme/target/rdma.c 			queue->cm_id->port_num, rsp->req.sg,
port_num          678 drivers/nvme/target/rdma.c 	ret = rdma_rw_ctx_init(&rsp->rw, cm_id->qp, cm_id->port_num,
port_num          746 drivers/nvme/target/rdma.c 				queue->cm_id->port_num, &rsp->read_cqe, NULL))
port_num          595 drivers/rapidio/rio-scan.c 		int port_num;
port_num          616 drivers/rapidio/rio-scan.c 		for (port_num = 0;
port_num          617 drivers/rapidio/rio-scan.c 		     port_num < RIO_GET_TOTAL_PORTS(rdev->swpinfo);
port_num          618 drivers/rapidio/rio-scan.c 		     port_num++) {
port_num          619 drivers/rapidio/rio-scan.c 			if (sw_inport == port_num) {
port_num          622 drivers/rapidio/rio-scan.c 					      hopcount, port_num);
port_num          623 drivers/rapidio/rio-scan.c 				rdev->rswitch->port_ok |= (1 << port_num);
port_num          629 drivers/rapidio/rio-scan.c 			if (rio_sport_is_active(rdev, port_num)) {
port_num          632 drivers/rapidio/rio-scan.c 				    port_num);
port_num          635 drivers/rapidio/rio-scan.c 					      hopcount, port_num);
port_num          636 drivers/rapidio/rio-scan.c 				rdev->rswitch->port_ok |= (1 << port_num);
port_num          639 drivers/rapidio/rio-scan.c 						port_num, 0);
port_num          642 drivers/rapidio/rio-scan.c 						  rdev, port_num) < 0)
port_num          654 drivers/rapidio/rio-scan.c 								    port_num,
port_num          658 drivers/rapidio/rio-scan.c 								port_num;
port_num          669 drivers/rapidio/rio-scan.c 					rio_set_port_lockout(rdev, port_num, 1);
port_num          671 drivers/rapidio/rio-scan.c 				rdev->rswitch->port_ok &= ~(1 << port_num);
port_num          731 drivers/rapidio/rio-scan.c 	u8 port_num, route_port;
port_num          751 drivers/rapidio/rio-scan.c 		for (port_num = 0;
port_num          752 drivers/rapidio/rio-scan.c 		     port_num < RIO_GET_TOTAL_PORTS(rdev->swpinfo);
port_num          753 drivers/rapidio/rio-scan.c 		     port_num++) {
port_num          754 drivers/rapidio/rio-scan.c 			if (RIO_GET_PORT_NUM(rdev->swpinfo) == port_num)
port_num          757 drivers/rapidio/rio-scan.c 			if (rio_sport_is_active(rdev, port_num)) {
port_num          760 drivers/rapidio/rio-scan.c 				    port_num);
port_num          771 drivers/rapidio/rio-scan.c 					if (route_port == port_num)
port_num          779 drivers/rapidio/rio-scan.c 					hopcount + 1, rdev, port_num) < 0)
port_num          900 drivers/rapidio/rio.c 			  u8 hopcount, u8 port_num)
port_num          911 drivers/rapidio/rio.c 		 "%d, port_num = %d)\n", local, destid, hopcount, port_num);
port_num          922 drivers/rapidio/rio.c 			ext_ftr_ptr + RIO_PORT_N_CTL_CSR(port_num, rmap),
port_num          934 drivers/rapidio/rio.c 			ext_ftr_ptr + RIO_PORT_N_CTL_CSR(port_num, rmap),
port_num           42 drivers/rapidio/rio.h 				 u8 hopcount, u8 port_num);
port_num          288 drivers/s390/net/ctcm_mpc.c static struct net_device *ctcmpc_get_dev(int port_num)
port_num          294 drivers/s390/net/ctcm_mpc.c 	sprintf(device, "%s%i", MPC_DEVICE_NAME, port_num);
port_num          327 drivers/s390/net/ctcm_mpc.c int ctc_mpc_alloc_channel(int port_num, void (*callback)(int, int))
port_num          333 drivers/s390/net/ctcm_mpc.c 	dev = ctcmpc_get_dev(port_num);
port_num          340 drivers/s390/net/ctcm_mpc.c 	grp->port_num = port_num;
port_num          378 drivers/s390/net/ctcm_mpc.c 				grp->allochanfunc(grp->port_num,
port_num          397 drivers/s390/net/ctcm_mpc.c void ctc_mpc_establish_connectivity(int port_num,
port_num          405 drivers/s390/net/ctcm_mpc.c 	dev = ctcmpc_get_dev(port_num);
port_num          418 drivers/s390/net/ctcm_mpc.c 	grp->port_num = port_num;
port_num          429 drivers/s390/net/ctcm_mpc.c 				grp->estconnfunc(grp->port_num, 0,
port_num          448 drivers/s390/net/ctcm_mpc.c 			grp->estconnfunc(grp->port_num, -1, 0);
port_num          480 drivers/s390/net/ctcm_mpc.c 				grp->estconnfunc(grp->port_num, -1, 0);
port_num          494 drivers/s390/net/ctcm_mpc.c 				grp->estconnfunc(grp->port_num, -1, 0);
port_num          517 drivers/s390/net/ctcm_mpc.c void ctc_mpc_dealloc_ch(int port_num)
port_num          523 drivers/s390/net/ctcm_mpc.c 	dev = ctcmpc_get_dev(port_num);
port_num          551 drivers/s390/net/ctcm_mpc.c void ctc_mpc_flow_control(int port_num, int flowc)
port_num          559 drivers/s390/net/ctcm_mpc.c 	dev = ctcmpc_get_dev(port_num);
port_num          847 drivers/s390/net/ctcm_mpc.c 			grp->estconnfunc(grp->port_num, 1,
port_num          912 drivers/s390/net/ctcm_mpc.c 		grp->estconnfunc(grp->port_num, 0,
port_num          916 drivers/s390/net/ctcm_mpc.c 		grp->allochanfunc(grp->port_num, grp->group_max_buflen);
port_num         2088 drivers/s390/net/ctcm_mpc.c 			grp->estconnfunc(grp->port_num, -1, 0);
port_num           27 drivers/s390/net/ctcm_mpc.h 		void (*callback)(int port_num, int max_write_size));
port_num           30 drivers/s390/net/ctcm_mpc.h 		void (*callback)(int port_num, int rc, int max_write_size));
port_num          166 drivers/s390/net/ctcm_mpc.h 	int	port_num;
port_num         2165 drivers/scsi/lpfc/lpfc_nvme.c 				 localport->port_num, localport,
port_num          598 drivers/scsi/mpt3sas/mpt3sas_base.h 	u8	port_num;
port_num          223 drivers/scsi/mpt3sas/mpt3sas_ctl.c 					 pcie_device->port_num);
port_num         2381 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			pcie_device->port_num);
port_num         2818 drivers/scsi/mpt3sas/mpt3sas_scsih.c 				pcie_device->port_num);
port_num         4974 drivers/scsi/mpt3sas/mpt3sas_scsih.c 				 (u64)pcie_device->wwid, pcie_device->port_num);
port_num         6903 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	pcie_device->port_num = pcie_device_pg0.PortNum;
port_num          436 drivers/scsi/qla4xxx/ql4_83xx.c 	int port_num;
port_num          466 drivers/scsi/qla4xxx/ql4_83xx.c 		device_map[i].port_num = func_nibble & 0xC;
port_num          655 drivers/scsi/qla4xxx/ql4_def.h 	uint16_t port_num;
port_num          977 drivers/scsi/qla4xxx/ql4_fw.h 	uint16_t port_num;	/* 14-15 network port for this PCI function */
port_num         1545 drivers/scsi/qla4xxx/ql4_mbx.c 		if (ha->port_num == 1)
port_num         1597 drivers/scsi/qla4xxx/ql4_mbx.c 		if (ha->port_num == 1)
port_num         1670 drivers/scsi/qla4xxx/ql4_mbx.c 		if (ha->port_num == 1)
port_num         4087 drivers/scsi/qla4xxx/ql4_nx.c 	ha->port_num = sys_info->port_num;
port_num         4095 drivers/scsi/qla4xxx/ql4_nx.c 	ha->phy_port_num = sys_info->port_num;
port_num          624 drivers/scsi/qla4xxx/ql4_os.c 		if (ha->port_num == 1)
port_num          878 drivers/scsi/qla4xxx/ql4_os.c 		if (ha->port_num == 1)
port_num         5944 drivers/scsi/qla4xxx/ql4_os.c 		if (ha->port_num == 0)
port_num         5946 drivers/scsi/qla4xxx/ql4_os.c 		else if (ha->port_num == 1)
port_num         8346 drivers/scsi/qla4xxx/ql4_os.c 		if (ha->port_num == 1)
port_num          817 drivers/soundwire/bus.c 	int port_num, stat, ret, count = 0;
port_num          883 drivers/soundwire/bus.c 				port_num = bit + 3;
port_num          885 drivers/soundwire/bus.c 						port_num,
port_num          886 drivers/soundwire/bus.c 						&port_status[port_num]);
port_num          895 drivers/soundwire/bus.c 				port_num = bit + 10;
port_num          897 drivers/soundwire/bus.c 						port_num,
port_num          898 drivers/soundwire/bus.c 						&port_status[port_num]);
port_num          140 drivers/soundwire/bus.h 					    unsigned int port_num);
port_num         1070 drivers/soundwire/cadence_master.c 	int num = t_params->port_num;
port_num         1123 drivers/soundwire/cadence_master.c 		dpn_chnen_off = CDNS_DPN_B1_CH_EN(enable_ch->port_num);
port_num         1125 drivers/soundwire/cadence_master.c 		dpn_chnen_off = CDNS_DPN_B0_CH_EN(enable_ch->port_num);
port_num           68 drivers/soundwire/stream.c 		addr1 = SDW_DPN_OFFSETCTRL2_B1(t_params->port_num);
port_num           69 drivers/soundwire/stream.c 		addr2 = SDW_DPN_BLOCKCTRL3_B1(t_params->port_num);
port_num           70 drivers/soundwire/stream.c 		addr3 = SDW_DPN_SAMPLECTRL2_B1(t_params->port_num);
port_num           71 drivers/soundwire/stream.c 		addr4 = SDW_DPN_HCTRL_B1(t_params->port_num);
port_num           73 drivers/soundwire/stream.c 		addr1 = SDW_DPN_OFFSETCTRL2_B0(t_params->port_num);
port_num           74 drivers/soundwire/stream.c 		addr2 = SDW_DPN_BLOCKCTRL3_B0(t_params->port_num);
port_num           75 drivers/soundwire/stream.c 		addr3 = SDW_DPN_SAMPLECTRL2_B0(t_params->port_num);
port_num           76 drivers/soundwire/stream.c 		addr4 = SDW_DPN_HCTRL_B0(t_params->port_num);
port_num          138 drivers/soundwire/stream.c 					  t_params->port_num);
port_num          142 drivers/soundwire/stream.c 	addr1 = SDW_DPN_PORTCTRL(t_params->port_num);
port_num          143 drivers/soundwire/stream.c 	addr2 = SDW_DPN_BLOCKCTRL1(t_params->port_num);
port_num          146 drivers/soundwire/stream.c 		addr3 = SDW_DPN_SAMPLECTRL1_B1(t_params->port_num);
port_num          147 drivers/soundwire/stream.c 		addr4 = SDW_DPN_OFFSETCTRL1_B1(t_params->port_num);
port_num          148 drivers/soundwire/stream.c 		addr5 = SDW_DPN_BLOCKCTRL2_B1(t_params->port_num);
port_num          149 drivers/soundwire/stream.c 		addr6 = SDW_DPN_LANECTRL_B1(t_params->port_num);
port_num          152 drivers/soundwire/stream.c 		addr3 = SDW_DPN_SAMPLECTRL1_B0(t_params->port_num);
port_num          153 drivers/soundwire/stream.c 		addr4 = SDW_DPN_OFFSETCTRL1_B0(t_params->port_num);
port_num          154 drivers/soundwire/stream.c 		addr5 = SDW_DPN_BLOCKCTRL2_B0(t_params->port_num);
port_num          155 drivers/soundwire/stream.c 		addr6 = SDW_DPN_LANECTRL_B0(t_params->port_num);
port_num          166 drivers/soundwire/stream.c 			t_params->port_num);
port_num          175 drivers/soundwire/stream.c 			t_params->port_num);
port_num          185 drivers/soundwire/stream.c 			t_params->port_num);
port_num          194 drivers/soundwire/stream.c 			t_params->port_num);
port_num          204 drivers/soundwire/stream.c 				t_params->port_num);
port_num          215 drivers/soundwire/stream.c 				t_params->port_num);
port_num          226 drivers/soundwire/stream.c 				t_params->port_num);
port_num          323 drivers/soundwire/stream.c 			ret, t_params->port_num);
port_num          337 drivers/soundwire/stream.c 	enable_ch.port_num = p_rt->num;
port_num          349 drivers/soundwire/stream.c 				ret, t_params->port_num);
port_num          523 drivers/soundwire/stream.c 				t_params->port_num);
port_num         1397 drivers/soundwire/stream.c 					    unsigned int port_num)
port_num         1412 drivers/soundwire/stream.c 		if (dpn_prop[i].num == port_num)
port_num         1256 drivers/staging/octeon/octeon-stubs.h static inline void cvmx_pip_get_port_status(uint64_t port_num, uint64_t clear,
port_num         1260 drivers/staging/octeon/octeon-stubs.h static inline void cvmx_pko_get_port_status(uint64_t port_num, uint64_t clear,
port_num          353 drivers/staging/vc04_services/bcm2835-camera/mmal-msg.h 	u32 port_num;
port_num          235 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 		 msg->u.event_to_host.port_num,
port_num          532 drivers/target/iscsi/cxgbit/cxgbit_main.c 			   u8 dcb_priority, u16 port_num)
port_num          556 drivers/target/iscsi/cxgbit/cxgbit_main.c 		if (local_port != port_num)
port_num         1354 drivers/tty/serial/icom.c static void icom_port_active(struct icom_port *icom_port, struct icom_adapter *icom_adapter, int port_num)
port_num         1359 drivers/tty/serial/icom.c 		    0x4004 + 2 - 2 * port_num;
port_num         1373 drivers/tty/serial/icom.c 	int port_num;
port_num         1375 drivers/tty/serial/icom.c 	for (port_num = 0; port_num < icom_adapter->numb_ports; port_num++) {
port_num         1377 drivers/tty/serial/icom.c 		icom_port = &icom_adapter->port_info[port_num];
port_num         1380 drivers/tty/serial/icom.c 			icom_port_active(icom_port, icom_adapter, port_num);
port_num          251 drivers/tty/synclink_gt.c 	int port_num;    /* port instance number */
port_num         3551 drivers/tty/synclink_gt.c static struct slgt_info *alloc_dev(int adapter_num, int port_num, struct pci_dev *pdev)
port_num         3559 drivers/tty/synclink_gt.c 			driver_name, adapter_num, port_num));
port_num         3576 drivers/tty/synclink_gt.c 		info->port_num = port_num;
port_num         3737 drivers/tty/synclink_gt.c 		if (info->port_num == 0)
port_num         3821 drivers/tty/synclink_gt.c 		reg_addr += (info->port_num) * 32; \
port_num         3823 drivers/tty/synclink_gt.c 		reg_addr += (info->port_num) * 16;
port_num          227 drivers/tty/synclinkmp.c 	int port_num;
port_num         2057 drivers/tty/synclinkmp.c 	unsigned char timer = (info->port_num & 1) ? TIMER2 : TIMER0;
port_num         3351 drivers/tty/synclinkmp.c 	info->port_array[0]->last_mem_alloc = (SCA_MEM_SIZE/4) * info->port_num;
port_num         3673 drivers/tty/synclinkmp.c 	sprintf(info->device_name,"ttySLM%dp%d",info->adapter_num,info->port_num);
port_num         3722 drivers/tty/synclinkmp.c static SLMP_INFO *alloc_dev(int adapter_num, int port_num, struct pci_dev *pdev)
port_num         3731 drivers/tty/synclinkmp.c 			__FILE__,__LINE__, adapter_num, port_num);
port_num         3746 drivers/tty/synclinkmp.c 		info->port_num = port_num;
port_num         3923 drivers/tty/synclinkmp.c 		if ( info->port_num == 0 ) {
port_num         4017 drivers/tty/synclinkmp.c 		info->port_array[0]->ctrlreg_value |= (BIT0 << (info->port_num * 2));
port_num         4440 drivers/tty/synclinkmp.c 	info->port_array[0]->ctrlreg_value |= (BIT0 << (info->port_num * 2));
port_num         4617 drivers/tty/synclinkmp.c 		info->port_array[0]->ctrlreg_value |= (BIT0 << (info->port_num * 2));
port_num         4619 drivers/tty/synclinkmp.c 		info->port_array[0]->ctrlreg_value &= ~(BIT0 << (info->port_num * 2));
port_num         4739 drivers/tty/synclinkmp.c 	testbit = BIT1 << (info->port_num * 2); // Port 0..3 RI is GPDATA<1,3,5,7>
port_num         4743 drivers/tty/synclinkmp.c 	testbit = BIT0 << (info->port_num * 2); // Port 0..3 DSR is GPDATA<0,2,4,6>
port_num         4764 drivers/tty/synclinkmp.c 	EnableBit = BIT1 << (info->port_num*2);
port_num         5077 drivers/tty/synclinkmp.c 	unsigned char timer = (info->port_num & 1) ? TIMER2 : TIMER0;
port_num         5089 drivers/tty/synclinkmp.c 	write_reg(info, IER2, (unsigned char)((info->port_num & 1) ? BIT6 : BIT4));
port_num         5524 drivers/tty/synclinkmp.c 	if (info->port_num > 1) \
port_num         5526 drivers/tty/synclinkmp.c 	if ( info->port_num & 1) { \
port_num         2283 drivers/usb/core/hcd.c int usb_bus_start_enum(struct usb_bus *bus, unsigned port_num)
port_num         2293 drivers/usb/core/hcd.c 	if (port_num && hcd->driver->start_port_reset)
port_num         2294 drivers/usb/core/hcd.c 		status = hcd->driver->start_port_reset(hcd, port_num);
port_num           43 drivers/usb/gadget/function/f_acm.c 	u8				port_num;
port_num          313 drivers/usb/gadget/function/f_acm.c 			acm->port_num, req->status);
port_num          320 drivers/usb/gadget/function/f_acm.c 			acm->port_num, req->actual);
port_num          406 drivers/usb/gadget/function/f_acm.c 			acm->port_num, ctrl->bRequestType, ctrl->bRequest,
port_num          413 drivers/usb/gadget/function/f_acm.c 					acm->port_num, value);
port_num          441 drivers/usb/gadget/function/f_acm.c 				"reset acm ttyGS%d\n", acm->port_num);
port_num          446 drivers/usb/gadget/function/f_acm.c 				"activate acm ttyGS%d\n", acm->port_num);
port_num          456 drivers/usb/gadget/function/f_acm.c 		gserial_connect(&acm->port, acm->port_num);
port_num          469 drivers/usb/gadget/function/f_acm.c 	dev_dbg(&cdev->gadget->dev, "acm ttyGS%d deactivated\n", acm->port_num);
port_num          524 drivers/usb/gadget/function/f_acm.c 				acm->port_num, status);
port_num          540 drivers/usb/gadget/function/f_acm.c 			acm->port_num, acm->serial_state);
port_num          693 drivers/usb/gadget/function/f_acm.c 		acm->port_num,
port_num          750 drivers/usb/gadget/function/f_acm.c 	acm->port_num = opts->port_num;
port_num          776 drivers/usb/gadget/function/f_acm.c 	return sprintf(page, "%u\n", to_f_serial_opts(item)->port_num);
port_num          779 drivers/usb/gadget/function/f_acm.c CONFIGFS_ATTR_RO(f_acm_, port_num);
port_num          797 drivers/usb/gadget/function/f_acm.c 	gserial_free_line(opts->port_num);
port_num          810 drivers/usb/gadget/function/f_acm.c 	ret = gserial_alloc_line(&opts->port_num);
port_num           34 drivers/usb/gadget/function/f_obex.c 	u8				port_num;
port_num          199 drivers/usb/gadget/function/f_obex.c 			"reset obex ttyGS%d control\n", obex->port_num);
port_num          207 drivers/usb/gadget/function/f_obex.c 				"reset obex ttyGS%d\n", obex->port_num);
port_num          213 drivers/usb/gadget/function/f_obex.c 				"init obex ttyGS%d\n", obex->port_num);
port_num          226 drivers/usb/gadget/function/f_obex.c 				"activate obex ttyGS%d\n", obex->port_num);
port_num          227 drivers/usb/gadget/function/f_obex.c 			gserial_connect(&obex->port, obex->port_num);
port_num          253 drivers/usb/gadget/function/f_obex.c 	dev_dbg(&cdev->gadget->dev, "obex ttyGS%d disable\n", obex->port_num);
port_num          269 drivers/usb/gadget/function/f_obex.c 			obex->port_num, status);
port_num          282 drivers/usb/gadget/function/f_obex.c 			obex->port_num, status);
port_num          369 drivers/usb/gadget/function/f_obex.c 		obex->port_num,
port_num          400 drivers/usb/gadget/function/f_obex.c 	return sprintf(page, "%u\n", to_f_serial_opts(item)->port_num);
port_num          403 drivers/usb/gadget/function/f_obex.c CONFIGFS_ATTR_RO(f_obex_, port_num);
port_num          421 drivers/usb/gadget/function/f_obex.c 	gserial_free_line(opts->port_num);
port_num          435 drivers/usb/gadget/function/f_obex.c 	ret = gserial_alloc_line(&opts->port_num);
port_num          471 drivers/usb/gadget/function/f_obex.c 	obex->port_num = opts->port_num;
port_num           30 drivers/usb/gadget/function/f_serial.c 	u8				port_num;
port_num          155 drivers/usb/gadget/function/f_serial.c 			"reset generic ttyGS%d\n", gser->port_num);
port_num          160 drivers/usb/gadget/function/f_serial.c 			"activate generic ttyGS%d\n", gser->port_num);
port_num          168 drivers/usb/gadget/function/f_serial.c 	gserial_connect(&gser->port, gser->port_num);
port_num          178 drivers/usb/gadget/function/f_serial.c 		"generic ttyGS%d deactivated\n", gser->port_num);
port_num          240 drivers/usb/gadget/function/f_serial.c 		gser->port_num,
port_num          271 drivers/usb/gadget/function/f_serial.c 	return sprintf(page, "%u\n", to_f_serial_opts(item)->port_num);
port_num          274 drivers/usb/gadget/function/f_serial.c CONFIGFS_ATTR_RO(f_serial_, port_num);
port_num          292 drivers/usb/gadget/function/f_serial.c 	gserial_free_line(opts->port_num);
port_num          306 drivers/usb/gadget/function/f_serial.c 	ret = gserial_alloc_line(&opts->port_num);
port_num          342 drivers/usb/gadget/function/f_serial.c 	gser->port_num = opts->port_num;
port_num          106 drivers/usb/gadget/function/u_serial.c 	u8			port_num;
port_num          259 drivers/usb/gadget/function/u_serial.c 			  port->port_num, len, *((u8 *)req->buf),
port_num          379 drivers/usb/gadget/function/u_serial.c 			pr_vdebug("ttyGS%d: shutdown\n", port->port_num);
port_num          385 drivers/usb/gadget/function/u_serial.c 				port->port_num, req->status);
port_num          414 drivers/usb/gadget/function/u_serial.c 					  port->port_num, count, req->actual);
port_num          589 drivers/usb/gadget/function/u_serial.c 	int		port_num = tty->index;
port_num          594 drivers/usb/gadget/function/u_serial.c 		mutex_lock(&ports[port_num].lock);
port_num          595 drivers/usb/gadget/function/u_serial.c 		port = ports[port_num].port;
port_num          617 drivers/usb/gadget/function/u_serial.c 		mutex_unlock(&ports[port_num].lock);
port_num          649 drivers/usb/gadget/function/u_serial.c 				port->port_num, tty, file);
port_num          671 drivers/usb/gadget/function/u_serial.c 		pr_debug("gs_open: start ttyGS%d\n", port->port_num);
port_num          678 drivers/usb/gadget/function/u_serial.c 	pr_debug("gs_open: ttyGS%d (%p,%p)\n", port->port_num, tty, file);
port_num          714 drivers/usb/gadget/function/u_serial.c 	pr_debug("gs_close: ttyGS%d (%p,%p) ...\n", port->port_num, tty, file);
port_num          752 drivers/usb/gadget/function/u_serial.c 			port->port_num, tty, file);
port_num          765 drivers/usb/gadget/function/u_serial.c 			port->port_num, tty, count);
port_num          785 drivers/usb/gadget/function/u_serial.c 		port->port_num, tty, ch, __builtin_return_address(0));
port_num          799 drivers/usb/gadget/function/u_serial.c 	pr_vdebug("gs_flush_chars: (%d,%p)\n", port->port_num, tty);
port_num          819 drivers/usb/gadget/function/u_serial.c 		port->port_num, tty, room);
port_num          835 drivers/usb/gadget/function/u_serial.c 		port->port_num, tty, chars);
port_num          852 drivers/usb/gadget/function/u_serial.c 		pr_vdebug("ttyGS%d: unthrottle\n", port->port_num);
port_num          865 drivers/usb/gadget/function/u_serial.c 			port->port_num, duration);
port_num          945 drivers/usb/gadget/function/u_serial.c static int gs_console_connect(int port_num)
port_num          951 drivers/usb/gadget/function/u_serial.c 	if (port_num != gserial_cons.index) {
port_num          953 drivers/usb/gadget/function/u_serial.c 		       __func__, port_num);
port_num          957 drivers/usb/gadget/function/u_serial.c 	port = ports[port_num].port;
port_num          970 drivers/usb/gadget/function/u_serial.c 	pr_vdebug("port[%d] console connect!\n", port_num);
port_num         1115 drivers/usb/gadget/function/u_serial.c static int gs_console_connect(int port_num)
port_num         1135 drivers/usb/gadget/function/u_serial.c gs_port_alloc(unsigned port_num, struct usb_cdc_line_coding *coding)
port_num         1140 drivers/usb/gadget/function/u_serial.c 	mutex_lock(&ports[port_num].lock);
port_num         1141 drivers/usb/gadget/function/u_serial.c 	if (ports[port_num].port) {
port_num         1163 drivers/usb/gadget/function/u_serial.c 	port->port_num = port_num;
port_num         1166 drivers/usb/gadget/function/u_serial.c 	ports[port_num].port = port;
port_num         1168 drivers/usb/gadget/function/u_serial.c 	mutex_unlock(&ports[port_num].lock);
port_num         1192 drivers/usb/gadget/function/u_serial.c void gserial_free_line(unsigned char port_num)
port_num         1196 drivers/usb/gadget/function/u_serial.c 	mutex_lock(&ports[port_num].lock);
port_num         1197 drivers/usb/gadget/function/u_serial.c 	if (WARN_ON(!ports[port_num].port)) {
port_num         1198 drivers/usb/gadget/function/u_serial.c 		mutex_unlock(&ports[port_num].lock);
port_num         1201 drivers/usb/gadget/function/u_serial.c 	port = ports[port_num].port;
port_num         1202 drivers/usb/gadget/function/u_serial.c 	ports[port_num].port = NULL;
port_num         1203 drivers/usb/gadget/function/u_serial.c 	mutex_unlock(&ports[port_num].lock);
port_num         1206 drivers/usb/gadget/function/u_serial.c 	tty_unregister_device(gs_tty_driver, port_num);
port_num         1216 drivers/usb/gadget/function/u_serial.c 	int				port_num;
port_num         1223 drivers/usb/gadget/function/u_serial.c 	for (port_num = 0; port_num < MAX_U_SERIAL_PORTS; port_num++) {
port_num         1224 drivers/usb/gadget/function/u_serial.c 		ret = gs_port_alloc(port_num, &coding);
port_num         1236 drivers/usb/gadget/function/u_serial.c 	tty_dev = tty_port_register_device(&ports[port_num].port->port,
port_num         1237 drivers/usb/gadget/function/u_serial.c 			gs_tty_driver, port_num, NULL);
port_num         1241 drivers/usb/gadget/function/u_serial.c 				__func__, port_num, PTR_ERR(tty_dev));
port_num         1244 drivers/usb/gadget/function/u_serial.c 		mutex_lock(&ports[port_num].lock);
port_num         1245 drivers/usb/gadget/function/u_serial.c 		port = ports[port_num].port;
port_num         1246 drivers/usb/gadget/function/u_serial.c 		ports[port_num].port = NULL;
port_num         1247 drivers/usb/gadget/function/u_serial.c 		mutex_unlock(&ports[port_num].lock);
port_num         1251 drivers/usb/gadget/function/u_serial.c 	*line_num = port_num;
port_num         1279 drivers/usb/gadget/function/u_serial.c int gserial_connect(struct gserial *gser, u8 port_num)
port_num         1285 drivers/usb/gadget/function/u_serial.c 	if (port_num >= MAX_U_SERIAL_PORTS)
port_num         1288 drivers/usb/gadget/function/u_serial.c 	port = ports[port_num].port;
port_num         1290 drivers/usb/gadget/function/u_serial.c 		pr_err("serial line %d not allocated.\n", port_num);
port_num         1294 drivers/usb/gadget/function/u_serial.c 		pr_err("serial line %d is in use.\n", port_num);
port_num         1325 drivers/usb/gadget/function/u_serial.c 		pr_debug("gserial_connect: start ttyGS%d\n", port->port_num);
port_num         1334 drivers/usb/gadget/function/u_serial.c 	status = gs_console_connect(port_num);
port_num           19 drivers/usb/gadget/function/u_serial.h 	u8 port_num;
port_num           61 drivers/usb/gadget/function/u_serial.h int gserial_connect(struct gserial *, u8 port_num);
port_num           65 drivers/usb/gadget/function/u_serial.h int gser_bind_config(struct usb_configuration *c, u8 port_num);
port_num           66 drivers/usb/gadget/function/u_serial.h int obex_bind_config(struct usb_configuration *c, u8 port_num);
port_num         2892 drivers/usb/host/u132-hcd.c static int u132_start_port_reset(struct usb_hcd *hcd, unsigned port_num)
port_num         1097 drivers/usb/host/xhci-mem.c 	u32			port_num;
port_num         1144 drivers/usb/host/xhci-mem.c 	port_num = xhci_find_real_port_number(xhci, udev);
port_num         1145 drivers/usb/host/xhci-mem.c 	if (!port_num)
port_num         1147 drivers/usb/host/xhci-mem.c 	slot_ctx->dev_info2 |= cpu_to_le32(ROOT_HUB_PORT(port_num));
port_num         1153 drivers/usb/host/xhci-mem.c 	dev->real_port = port_num;
port_num         1154 drivers/usb/host/xhci-mem.c 	xhci_dbg(xhci, "Set root hub portnum to %d\n", port_num);
port_num         1164 drivers/usb/host/xhci-mem.c 		dev->bw_table = &xhci->rh_bw[port_num - 1].bw_table;
port_num         1169 drivers/usb/host/xhci-mem.c 		rh_bw = &xhci->rh_bw[port_num - 1];
port_num         4388 drivers/usb/host/xhci.c 	unsigned int	port_num;
port_num         4407 drivers/usb/host/xhci.c 	port_num = udev->portnum - 1;
port_num         4408 drivers/usb/host/xhci.c 	pm_addr = ports[port_num]->addr + PORTPMSC;
port_num         4410 drivers/usb/host/xhci.c 	hlpm_addr = ports[port_num]->addr + PORTHLPMC;
port_num         4413 drivers/usb/host/xhci.c 			enable ? "enable" : "disable", port_num + 1);
port_num          118 drivers/usb/misc/cypress_cy7c63.c 			  int port_num, int write_id)
port_num          126 drivers/usb/misc/cypress_cy7c63.c 	dev_dbg(&cyp->udev->dev, "WRITE_PORT%d called\n", port_num);
port_num          164 drivers/usb/misc/cypress_cy7c63.c 			 char *buf, int port_num, int read_id)
port_num          171 drivers/usb/misc/cypress_cy7c63.c 	dev_dbg(&cyp->udev->dev, "READ_PORT%d called\n", port_num);
port_num          177 drivers/usb/misc/cypress_cy7c63.c 	return sprintf(buf, "%d", cyp->port[port_num]);
port_num          133 drivers/usb/musb/cppi_dma.h 	u8 port_num;
port_num          352 drivers/usb/musb/musb_cppi41.c 	port = cppi41_channel->port_num;
port_num          377 drivers/usb/musb/musb_cppi41.c 	port = cppi41_channel->port_num;
port_num          401 drivers/usb/musb/musb_cppi41.c 	port = cppi41_channel->port_num;
port_num          440 drivers/usb/musb/musb_cppi41.c 				RNDIS_REG(cppi41_channel->port_num), len);
port_num          450 drivers/usb/musb/musb_cppi41.c 					RNDIS_REG(cppi41_channel->port_num), 0);
port_num          620 drivers/usb/musb/musb_cppi41.c 	tdbit = 1 << cppi41_channel->port_num;
port_num          710 drivers/usb/musb/musb_cppi41.c 		cppi41_channel->port_num = port;
port_num          304 drivers/usb/musb/musb_trace.h 		__entry->port = ch->port_num;
port_num         1229 drivers/usb/serial/digi_acceleport.c static int digi_port_init(struct usb_serial_port *port, unsigned port_num)
port_num         1238 drivers/usb/serial/digi_acceleport.c 	priv->dp_port_num = port_num;
port_num         2900 drivers/usb/serial/keyspan.c 	int port_num;
port_num         2935 drivers/usb/serial/keyspan.c 	port_num = port->port_number;
port_num         2938 drivers/usb/serial/keyspan.c 	endp = d_details->indat_endpoints[port_num];
port_num         2947 drivers/usb/serial/keyspan.c 	endp = d_details->outdat_endpoints[port_num];
port_num         2957 drivers/usb/serial/keyspan.c 					d_details->inack_endpoints[port_num],
port_num         2964 drivers/usb/serial/keyspan.c 					d_details->outcont_endpoints[port_num],
port_num          210 drivers/usb/serial/mos7840.c 	int port_num;		/*Actual port number in the device(1,2,etc) */
port_num          472 drivers/usb/serial/mos7840.c 		mos7840_port->MsrLsr, mos7840_port->port_num);
port_num         1060 drivers/usb/serial/mos7840.c 	dev_dbg(&port->dev, "port's number in the device is %d\n", mos7840_port->port_num);
port_num         2123 drivers/usb/serial/mos7840.c 	mos7840_port->port_num = pnum + 1;
port_num         2125 drivers/usb/serial/mos7840.c 	dev_dbg(&port->dev, "mos7840_port->port_num = %d\n", mos7840_port->port_num);
port_num         2127 drivers/usb/serial/mos7840.c 	if (mos7840_port->port_num == 1) {
port_num         2132 drivers/usb/serial/mos7840.c 		u8 phy_num = mos7840_port->port_num;
port_num         2222 drivers/usb/serial/mos7840.c 	if ((mos7840_port->port_num != 1) && (serial->num_ports == 2)) {
port_num         2226 drivers/usb/serial/mos7840.c 					((__u16)mos7840_port->port_num)), Data);
port_num         2228 drivers/usb/serial/mos7840.c 				(__u16)(ZLP_REG1 + ((__u16) mos7840_port->port_num)));
port_num         2238 drivers/usb/serial/mos7840.c 					((__u16)mos7840_port->port_num) - 0x1), Data);
port_num         2240 drivers/usb/serial/mos7840.c 				(__u16)(ZLP_REG1 + ((__u16) mos7840_port->port_num) - 0x1));
port_num          191 drivers/usb/typec/ucsi/ucsi_ccg.c 	int port_num;
port_num          590 drivers/usb/typec/ucsi/ucsi_ccg.c 		cmd.data = (uc->port_num == 1) ?
port_num         1131 drivers/usb/typec/ucsi/ucsi_ccg.c 	uc->port_num = 1;
port_num         1134 drivers/usb/typec/ucsi/ucsi_ccg.c 		uc->port_num++;
port_num          228 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c 	dssdev->port_num = 1;
port_num          271 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 	dssdev->port_num = 1;
port_num          403 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	r = dss_dpi_select_source(out->port_num, out->manager->id);
port_num          612 drivers/video/fbdev/omap2/omapfb/dss/dpi.c static enum omap_channel dpi_get_channel(int port_num)
port_num          624 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 		switch (port_num) {
port_num          738 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	u32 port_num;
port_num          740 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	r = of_property_read_u32(port, "reg", &port_num);
port_num          742 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 		port_num = 0;
port_num          744 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	switch (port_num) {
port_num          760 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	out->dispc_channel = dpi_get_channel(port_num);
port_num          761 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	out->port_num = port_num;
port_num          137 drivers/video/fbdev/omap2/omapfb/dss/output.c 		if (out->dev->of_node == src_node && out->port_num == reg) {
port_num          336 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	out->port_num = 1;
port_num         1687 fs/cifs/smbdirect.c 	qp_attr.port_num = ~0;
port_num         1709 fs/cifs/smbdirect.c 		info->id->device, info->id->port_num, &port_immutable);
port_num           82 include/drm/drm_dp_mst_helper.h 	u8 port_num;
port_num          344 include/drm/drm_dp_mst_helper.h 		struct drm_dp_port_number_req port_num;
port_num         1764 include/linux/lsm_hooks.h 					u8 port_num);
port_num         1002 include/linux/mlx5/driver.h 			     u8 port_num, void *out, size_t sz);
port_num         1022 include/linux/mlx5/driver.h 			   const u8 *mac, bool vlan, u16 vlan_id, u8 port_num);
port_num         2404 include/linux/mlx5/mlx5_ifc.h 	u8         port_num[0x1];
port_num         2433 include/linux/mlx5/mlx5_ifc.h 	u8         port_num[0x4];
port_num         4350 include/linux/mlx5/mlx5_ifc.h 	u8	   port_num[0x4];
port_num         4965 include/linux/mlx5/mlx5_ifc.h 	u8         port_num[0x4];
port_num         5001 include/linux/mlx5/mlx5_ifc.h 	u8         port_num[0x4];
port_num         5028 include/linux/mlx5/mlx5_ifc.h 	u8         port_num[0x4];
port_num         6171 include/linux/mlx5/mlx5_ifc.h 	u8         port_num[0x4];
port_num          130 include/linux/mlx5/port.h int mlx5_set_port_caps(struct mlx5_core_dev *dev, u8 port_num, u32 caps);
port_num           89 include/linux/mlx5/vport.h 			     u8 port_num, u16  vf_num, u16 gid_index,
port_num           92 include/linux/mlx5/vport.h 			      u8 port_num, u16 vf_num, u16 pkey_index,
port_num           95 include/linux/mlx5/vport.h 				 u8 other_vport, u8 port_num,
port_num          130 include/linux/mlx5/vport.h 				  int vf, u8 port_num, void *out,
port_num          133 include/linux/mlx5/vport.h 				       u8 other_vport, u8 port_num,
port_num          207 include/linux/nvme-fc-driver.h 	u32 port_num;
port_num          250 include/linux/nvme-fc-driver.h 	u32 port_num;
port_num          668 include/linux/nvme-fc-driver.h 	u32 port_num;
port_num         1548 include/linux/security.h int security_ib_endport_manage_subnet(void *sec, const char *name, u8 port_num);
port_num         1557 include/linux/security.h static inline int security_ib_endport_manage_subnet(void *sec, const char *dev_name, u8 port_num)
port_num          633 include/linux/soundwire/sdw.h 	unsigned int port_num;
port_num          652 include/linux/soundwire/sdw.h 	unsigned int port_num;
port_num          327 include/linux/usb/hcd.h 	int	(*start_port_reset)(struct usb_hcd *, unsigned port_num);
port_num          114 include/linux/usb/otg.h extern int usb_bus_start_enum(struct usb_bus *bus, unsigned port_num);
port_num           40 include/rdma/ib_cache.h int rdma_query_gid(struct ib_device *device, u8 port_num, int index,
port_num           52 include/rdma/ib_cache.h 	struct ib_device *device, const union ib_gid *gid, u8 port_num,
port_num           72 include/rdma/ib_cache.h 		       u8                   port_num,
port_num           88 include/rdma/ib_cache.h 			u8                   port_num,
port_num          104 include/rdma/ib_cache.h 			      u8                   port_num,
port_num          118 include/rdma/ib_cache.h 		      u8                port_num,
port_num          131 include/rdma/ib_cache.h 			      u8                port_num,
port_num          136 include/rdma/ib_cache.h 					    u8 port_num, int index);
port_num          415 include/rdma/ib_mad.h 			u8	port_num;	/* where violation happened */
port_num          621 include/rdma/ib_mad.h 	u8			port_num;
port_num          715 include/rdma/ib_mad.h 					   u8 port_num,
port_num          746 include/rdma/ib_mad.h 					   u8 port_num,
port_num          453 include/rdma/ib_sa.h 		       u8 port_num, struct sa_path_rec *rec,
port_num          461 include/rdma/ib_sa.h 			    struct ib_device *device, u8 port_num, u8 method,
port_num          507 include/rdma/ib_sa.h 					     struct ib_device *device, u8 port_num,
port_num          536 include/rdma/ib_sa.h int ib_sa_get_mcmember_rec(struct ib_device *device, u8 port_num,
port_num          543 include/rdma/ib_sa.h int ib_init_ah_from_mcmember(struct ib_device *device, u8 port_num,
port_num          549 include/rdma/ib_sa.h int ib_init_ah_attr_from_path(struct ib_device *device, u8 port_num,
port_num          568 include/rdma/ib_sa.h 			      struct ib_device *device, u8 port_num,
port_num          579 include/rdma/ib_sa.h 				    u8 port_num);
port_num          174 include/rdma/ib_verbs.h 	u8			port_num;
port_num          725 include/rdma/ib_verbs.h 		u8		port_num;
port_num          902 include/rdma/ib_verbs.h 	u8			port_num;
port_num          988 include/rdma/ib_verbs.h 	u8			port_num;	/* valid only for DR SMPs on switches */
port_num         1139 include/rdma/ib_verbs.h 	u8			port_num;
port_num         1256 include/rdma/ib_verbs.h 	u8			port_num;
port_num         1375 include/rdma/ib_verbs.h 	u8			port_num;   /* valid for DR SMPs on switch only */
port_num         1679 include/rdma/ib_verbs.h 	u8			port_num;
port_num         2188 include/rdma/ib_verbs.h 	u8                 port_num;
port_num         2216 include/rdma/ib_verbs.h 	int (*initialize_rdma_netdev)(struct ib_device *device, u8 port_num,
port_num         2278 include/rdma/ib_verbs.h 			   u8 port_num, const struct ib_wc *in_wc,
port_num         2291 include/rdma/ib_verbs.h 	int (*query_port)(struct ib_device *device, u8 port_num,
port_num         2293 include/rdma/ib_verbs.h 	int (*modify_port)(struct ib_device *device, u8 port_num,
port_num         2302 include/rdma/ib_verbs.h 	int (*get_port_immutable)(struct ib_device *device, u8 port_num,
port_num         2305 include/rdma/ib_verbs.h 					       u8 port_num);
port_num         2314 include/rdma/ib_verbs.h 	struct net_device *(*get_netdev)(struct ib_device *device, u8 port_num);
port_num         2322 include/rdma/ib_verbs.h 		struct ib_device *device, u8 port_num, enum rdma_netdev_t type,
port_num         2326 include/rdma/ib_verbs.h 	int (*rdma_netdev_get_params)(struct ib_device *device, u8 port_num,
port_num         2334 include/rdma/ib_verbs.h 	int (*query_gid)(struct ib_device *device, u8 port_num, int index,
port_num         2359 include/rdma/ib_verbs.h 	int (*query_pkey)(struct ib_device *device, u8 port_num, u16 index,
port_num         2489 include/rdma/ib_verbs.h 						u8 port_num);
port_num         2508 include/rdma/ib_verbs.h 	int (*init_port)(struct ib_device *device, u8 port_num,
port_num         2906 include/rdma/ib_verbs.h 		  u8 port_num, struct ib_port_attr *port_attr);
port_num         2909 include/rdma/ib_verbs.h 					       u8 port_num);
port_num         2969 include/rdma/ib_verbs.h 					u8 port_num)
port_num         2971 include/rdma/ib_verbs.h 	return device->port_data[port_num].immutable.core_cap_flags &
port_num         2975 include/rdma/ib_verbs.h static inline bool rdma_protocol_ib(const struct ib_device *device, u8 port_num)
port_num         2977 include/rdma/ib_verbs.h 	return device->port_data[port_num].immutable.core_cap_flags &
port_num         2981 include/rdma/ib_verbs.h static inline bool rdma_protocol_roce(const struct ib_device *device, u8 port_num)
port_num         2983 include/rdma/ib_verbs.h 	return device->port_data[port_num].immutable.core_cap_flags &
port_num         2987 include/rdma/ib_verbs.h static inline bool rdma_protocol_roce_udp_encap(const struct ib_device *device, u8 port_num)
port_num         2989 include/rdma/ib_verbs.h 	return device->port_data[port_num].immutable.core_cap_flags &
port_num         2993 include/rdma/ib_verbs.h static inline bool rdma_protocol_roce_eth_encap(const struct ib_device *device, u8 port_num)
port_num         2995 include/rdma/ib_verbs.h 	return device->port_data[port_num].immutable.core_cap_flags &
port_num         2999 include/rdma/ib_verbs.h static inline bool rdma_protocol_iwarp(const struct ib_device *device, u8 port_num)
port_num         3001 include/rdma/ib_verbs.h 	return device->port_data[port_num].immutable.core_cap_flags &
port_num         3005 include/rdma/ib_verbs.h static inline bool rdma_ib_or_roce(const struct ib_device *device, u8 port_num)
port_num         3007 include/rdma/ib_verbs.h 	return rdma_protocol_ib(device, port_num) ||
port_num         3008 include/rdma/ib_verbs.h 		rdma_protocol_roce(device, port_num);
port_num         3011 include/rdma/ib_verbs.h static inline bool rdma_protocol_raw_packet(const struct ib_device *device, u8 port_num)
port_num         3013 include/rdma/ib_verbs.h 	return device->port_data[port_num].immutable.core_cap_flags &
port_num         3017 include/rdma/ib_verbs.h static inline bool rdma_protocol_usnic(const struct ib_device *device, u8 port_num)
port_num         3019 include/rdma/ib_verbs.h 	return device->port_data[port_num].immutable.core_cap_flags &
port_num         3035 include/rdma/ib_verbs.h static inline bool rdma_cap_ib_mad(const struct ib_device *device, u8 port_num)
port_num         3037 include/rdma/ib_verbs.h 	return device->port_data[port_num].immutable.core_cap_flags &
port_num         3060 include/rdma/ib_verbs.h static inline bool rdma_cap_opa_mad(struct ib_device *device, u8 port_num)
port_num         3062 include/rdma/ib_verbs.h 	return device->port_data[port_num].immutable.core_cap_flags &
port_num         3086 include/rdma/ib_verbs.h static inline bool rdma_cap_ib_smi(const struct ib_device *device, u8 port_num)
port_num         3088 include/rdma/ib_verbs.h 	return device->port_data[port_num].immutable.core_cap_flags &
port_num         3107 include/rdma/ib_verbs.h static inline bool rdma_cap_ib_cm(const struct ib_device *device, u8 port_num)
port_num         3109 include/rdma/ib_verbs.h 	return device->port_data[port_num].immutable.core_cap_flags &
port_num         3125 include/rdma/ib_verbs.h static inline bool rdma_cap_iw_cm(const struct ib_device *device, u8 port_num)
port_num         3127 include/rdma/ib_verbs.h 	return device->port_data[port_num].immutable.core_cap_flags &
port_num         3146 include/rdma/ib_verbs.h static inline bool rdma_cap_ib_sa(const struct ib_device *device, u8 port_num)
port_num         3148 include/rdma/ib_verbs.h 	return device->port_data[port_num].immutable.core_cap_flags &
port_num         3169 include/rdma/ib_verbs.h static inline bool rdma_cap_ib_mcast(const struct ib_device *device, u8 port_num)
port_num         3171 include/rdma/ib_verbs.h 	return rdma_cap_ib_sa(device, port_num);
port_num         3187 include/rdma/ib_verbs.h static inline bool rdma_cap_af_ib(const struct ib_device *device, u8 port_num)
port_num         3189 include/rdma/ib_verbs.h 	return device->port_data[port_num].immutable.core_cap_flags &
port_num         3209 include/rdma/ib_verbs.h static inline bool rdma_cap_eth_ah(const struct ib_device *device, u8 port_num)
port_num         3211 include/rdma/ib_verbs.h 	return device->port_data[port_num].immutable.core_cap_flags &
port_num         3224 include/rdma/ib_verbs.h static inline bool rdma_cap_opa_ah(struct ib_device *device, u8 port_num)
port_num         3226 include/rdma/ib_verbs.h 	return (device->port_data[port_num].immutable.core_cap_flags &
port_num         3242 include/rdma/ib_verbs.h static inline size_t rdma_max_mad_size(const struct ib_device *device, u8 port_num)
port_num         3244 include/rdma/ib_verbs.h 	return device->port_data[port_num].immutable.max_mad_size;
port_num         3261 include/rdma/ib_verbs.h 					   u8 port_num)
port_num         3263 include/rdma/ib_verbs.h 	return rdma_protocol_roce(device, port_num) &&
port_num         3270 include/rdma/ib_verbs.h static inline bool rdma_cap_read_inv(struct ib_device *dev, u32 port_num)
port_num         3276 include/rdma/ib_verbs.h 	return rdma_protocol_iwarp(dev, port_num);
port_num         3313 include/rdma/ib_verbs.h 		  u8 port_num, u16 index, u16 *pkey);
port_num         3320 include/rdma/ib_verbs.h 		   u8 port_num, int port_modify_mask,
port_num         3324 include/rdma/ib_verbs.h 		u8 *port_num, u16 *index);
port_num         3327 include/rdma/ib_verbs.h 		 u8 port_num, u16 pkey, u16 *index);
port_num         3434 include/rdma/ib_verbs.h int ib_init_ah_attr_from_wc(struct ib_device *device, u8 port_num,
port_num         3451 include/rdma/ib_verbs.h 				   const struct ib_grh *grh, u8 port_num);
port_num         4359 include/rdma/ib_verbs.h int ib_get_eth_speed(struct ib_device *dev, u8 port_num, u8 *speed, u8 *width);
port_num         4427 include/rdma/ib_verbs.h static inline void rdma_ah_set_port_num(struct rdma_ah_attr *attr, u8 port_num)
port_num         4429 include/rdma/ib_verbs.h 	attr->port_num = port_num;
port_num         4434 include/rdma/ib_verbs.h 	return attr->port_num;
port_num         4530 include/rdma/ib_verbs.h 						       u8 port_num)
port_num         4532 include/rdma/ib_verbs.h 	if (rdma_protocol_roce(dev, port_num))
port_num         4534 include/rdma/ib_verbs.h 	if (rdma_protocol_ib(dev, port_num)) {
port_num         4535 include/rdma/ib_verbs.h 		if (rdma_cap_opa_ah(dev, port_num))
port_num         4602 include/rdma/ib_verbs.h struct net_device *rdma_alloc_netdev(struct ib_device *device, u8 port_num,
port_num         4607 include/rdma/ib_verbs.h int rdma_init_netdev(struct ib_device *device, u8 port_num,
port_num          136 include/rdma/rdma_cm.h 	u8			 port_num;
port_num          354 include/rdma/rdma_vt.h 	int (*query_port_state)(struct rvt_dev_info *rdi, u8 port_num,
port_num          360 include/rdma/rdma_vt.h 	int (*shut_down_port)(struct rvt_dev_info *rdi, u8 port_num);
port_num          363 include/rdma/rdma_vt.h 	void (*cap_mask_chg)(struct rvt_dev_info *rdi, u8 port_num);
port_num          383 include/rdma/rdma_vt.h 			 enum ib_qp_type type, u8 port_num);
port_num          355 include/rdma/rdmavt_qp.h 	u8 port_num;
port_num          986 include/rdma/rdmavt_qp.h 	return rdi->ports[qp->port_num - 1];
port_num           45 include/rdma/rw.h int rdma_rw_ctx_init(struct rdma_rw_ctx *ctx, struct ib_qp *qp, u8 port_num,
port_num           48 include/rdma/rw.h void rdma_rw_ctx_destroy(struct rdma_rw_ctx *ctx, struct ib_qp *qp, u8 port_num,
port_num           53 include/rdma/rw.h 		u8 port_num, struct scatterlist *sg, u32 sg_cnt,
port_num           58 include/rdma/rw.h 		u8 port_num, struct scatterlist *sg, u32 sg_cnt,
port_num           63 include/rdma/rw.h 		u8 port_num, struct ib_cqe *cqe, struct ib_send_wr *chain_wr);
port_num           64 include/rdma/rw.h int rdma_rw_ctx_post(struct rdma_rw_ctx *ctx, struct ib_qp *qp, u8 port_num,
port_num           67 include/rdma/rw.h unsigned int rdma_rw_mr_factor(struct ib_device *device, u8 port_num,
port_num           32 include/trace/events/ib_mad.h 		__field(u8,             port_num)
port_num           57 include/trace/events/ib_mad.h 		__entry->port_num = wr->mad_agent_priv->agent.port_num;
port_num           93 include/trace/events/ib_mad.h 		__entry->dev_index, __entry->port_num, __entry->qp_num,
port_num          126 include/trace/events/ib_mad.h 		__field(u8,             port_num)
port_num          146 include/trace/events/ib_mad.h 		__entry->port_num = wr->mad_agent_priv->agent.port_num;
port_num          172 include/trace/events/ib_mad.h 		__entry->dev_index, __entry->port_num, __entry->qp_num,
port_num          193 include/trace/events/ib_mad.h 		__field(u8,             port_num)
port_num          212 include/trace/events/ib_mad.h 		__entry->port_num = qp_info->port_priv->port_num;
port_num          228 include/trace/events/ib_mad.h 			      qp_info->port_priv->port_num,
port_num          238 include/trace/events/ib_mad.h 		__entry->dev_index, __entry->port_num, __entry->qp_num,
port_num          258 include/trace/events/ib_mad.h 		__field(u8,             port_num)
port_num          265 include/trace/events/ib_mad.h 		__entry->port_num = agent->agent.port_num;
port_num          279 include/trace/events/ib_mad.h 		__entry->dev_index, __entry->port_num,
port_num           22 include/trace/events/ib_umad.h 		__field(u8, port_num)
port_num           54 include/trace/events/ib_umad.h 		__entry->port_num = file->port->port_num;
port_num           92 include/trace/events/ib_umad.h 		__entry->dev_index, __entry->port_num,
port_num          279 include/uapi/rdma/ib_user_verbs.h 	__u8  port_num;
port_num          477 include/uapi/rdma/ib_user_verbs.h 	__u8 port_num;
port_num          519 include/uapi/rdma/ib_user_verbs.h 	__u8  port_num;
port_num          552 include/uapi/rdma/ib_user_verbs.h 	__u8	port_num;
port_num          668 include/uapi/rdma/ib_user_verbs.h 	__u8  port_num;
port_num          701 include/uapi/rdma/ib_user_verbs.h 	__u8  port_num;
port_num          732 include/uapi/rdma/ib_user_verbs.h 	__u8  port_num;
port_num          205 include/uapi/rdma/rdma_netlink.h 	__u8 port_num;
port_num          165 include/uapi/rdma/rdma_user_cm.h 	__u8 port_num;
port_num          171 include/uapi/rdma/rdma_user_cm.h 	__u8  port_num;
port_num           59 include/uapi/rdma/rdma_user_rxe.h 	__u8			port_num;
port_num          292 include/uapi/rdma/vmw_pvrdma-abi.h 	__u8 port_num;
port_num          681 include/video/omapfb_dss.h 	int port_num;
port_num          301 net/core/utils.c static int inet4_pton(const char *src, u16 port_num,
port_num          315 net/core/utils.c 	addr4->sin_port = htons(port_num);
port_num          320 net/core/utils.c static int inet6_pton(struct net *net, const char *src, u16 port_num,
port_num          354 net/core/utils.c 	addr6->sin6_port = htons(port_num);
port_num          372 net/core/utils.c 	u16 port_num;
port_num          376 net/core/utils.c 		if (kstrtou16(port, 0, &port_num))
port_num          379 net/core/utils.c 		port_num = 0;
port_num          384 net/core/utils.c 		ret = inet4_pton(src, port_num, addr);
port_num          387 net/core/utils.c 		ret = inet6_pton(net, src, port_num, addr);
port_num          390 net/core/utils.c 		ret = inet4_pton(src, port_num, addr);
port_num          392 net/core/utils.c 			ret = inet6_pton(net, src, port_num, addr);
port_num           52 net/smc/smc_ib.c 	qp_attr.port_num = lnk->ibport;
port_num          269 net/smc/smc_ib.c 		port_idx = ibevent->element.port_num - 1;
port_num          418 net/sunrpc/xprtrdma/svc_rdma_transport.c 	newxprt->sc_port_num = newxprt->sc_cm_id->port_num;
port_num          471 net/sunrpc/xprtrdma/svc_rdma_transport.c 	qp_attr.port_num = newxprt->sc_port_num;
port_num          508 net/sunrpc/xprtrdma/verbs.c 	ep->rep_attr.port_num = ~0;
port_num           47 samples/bpf/ibumad_kern.c 	u8 port_num;
port_num         2206 security/security.c int security_ib_endport_manage_subnet(void *sec, const char *dev_name, u8 port_num)
port_num         2208 security/security.c 	return call_int_hook(ib_endport_manage_subnet, 0, sec, dev_name, port_num);
port_num         6640 security/selinux/hooks.c 					    u8 port_num)
port_num         6648 security/selinux/hooks.c 	err = security_ib_endport_sid(&selinux_state, dev_name, port_num,
port_num         6656 security/selinux/hooks.c 	ibendport.port = port_num;
port_num          288 security/selinux/include/security.h 			    const char *dev_name, u8 port_num, u32 *out_sid);
port_num         2352 security/selinux/ss/services.c 			    const char *dev_name, u8 port_num, u32 *out_sid)
port_num         2366 security/selinux/ss/services.c 		if (c->u.ibendport.port == port_num &&
port_num          185 sound/pci/hda/patch_hdmi.c 	int port_num;
port_num         2683 sound/pci/hda/patch_hdmi.c 	if (!spec->port_num) {
port_num         2694 sound/pci/hda/patch_hdmi.c 	for (i = 0; i < spec->port_num; i++) {
port_num         2708 sound/pci/hda/patch_hdmi.c 	if (!spec->port_num) {
port_num         2716 sound/pci/hda/patch_hdmi.c 	if (port < 1 || port > spec->port_num)
port_num         2828 sound/pci/hda/patch_hdmi.c 				 const int *port_map, int port_num)
port_num         2841 sound/pci/hda/patch_hdmi.c 	spec->port_num = port_num;
port_num          127 sound/soc/codecs/hdac_hdmi.c 	int port_num;
port_num         1574 sound/soc/codecs/hdac_hdmi.c 	if (!hdmi->drv_data->port_num)
port_num         1581 sound/soc/codecs/hdac_hdmi.c 	for (i = 0; i < hdmi->drv_data->port_num; i++) {
port_num         1601 sound/soc/codecs/hdac_hdmi.c 	if (!hdmi->drv_data->port_num) {
port_num         1604 sound/soc/codecs/hdac_hdmi.c 	} else if (port < hdmi->drv_data->port_num) {
port_num         2031 sound/soc/codecs/hdac_hdmi.c 	.port_num = ARRAY_SIZE(icl_pin2port_map),
port_num         2996 sound/soc/codecs/wcd9335.c 	int port_num = 0;
port_num         3004 sound/soc/codecs/wcd9335.c 			port_num = ch->port - WCD9335_RX_START;
port_num         3005 sound/soc/codecs/wcd9335.c 			reg = WCD9335_SLIM_PGD_PORT_INT_EN0 + (port_num / 8);
port_num         3007 sound/soc/codecs/wcd9335.c 			port_num = ch->port;
port_num         3008 sound/soc/codecs/wcd9335.c 			reg = WCD9335_SLIM_PGD_PORT_INT_TX_EN0 + (port_num / 8);
port_num         3012 sound/soc/codecs/wcd9335.c 		if (!(val & BIT(port_num % 8)))
port_num         3014 sound/soc/codecs/wcd9335.c 					val | BIT(port_num % 8));