Home
last modified time | relevance | path

Searched refs:port_num (Results 1 – 25 of 355) sorted by relevance

12345678910>>...15

/linux/drivers/platform/chrome/
A Dcros_ec_typec.c308 u32 port_num = 0; in cros_typec_init_ports() local
361 port_num); in cros_typec_init_ports()
394 int port_num, in cros_typec_enable_tbt() argument
446 int port_num, in cros_typec_enable_dp() argument
487 int port_num, in cros_typec_enable_usb4() argument
572 port_num); in cros_typec_configure_mux()
626 port_num); in cros_typec_set_port_params_v1()
637 .port = port_num, in cros_typec_get_mux_info()
823 port_num); in cros_typec_handle_sop_disc()
944 if (port_num < 0 || port_num >= typec->num_ports) { in cros_typec_port_update()
[all …]
/linux/drivers/media/pci/ddbridge/
A Dddbridge-hw.c100 .port_num = 4,
108 .port_num = 4,
116 .port_num = 2,
124 .port_num = 4,
136 .port_num = 4,
144 .port_num = 3,
152 .port_num = 4,
160 .port_num = 4,
171 .port_num = 4,
182 .port_num = 4,
[all …]
/linux/drivers/infiniband/hw/mthca/
A Dmthca_mad.c63 port_num); in mthca_update_rate()
76 u8 port_num, u16 lid, u8 sl) in update_sm_ah() argument
82 if (!dev->send_agent[port_num - 1][0]) in update_sm_ah()
89 rdma_ah_set_port_num(&ah_attr, port_num); in update_sm_ah()
97 if (dev->sm_ah[port_num - 1]) in update_sm_ah()
99 dev->sm_ah[port_num - 1] = new_ah; in update_sm_ah()
108 u8 port_num, in smp_snoop() argument
123 update_sm_ah(to_mdev(ibdev), port_num, in smp_snoop()
128 event.element.port_num = port_num; in smp_snoop()
144 event.element.port_num = port_num; in smp_snoop()
[all …]
/linux/drivers/infiniband/hw/usnic/
A Dusnic_transport.c90 if (!port_num) { in usnic_transport_rsrv_port()
96 roce_next_port = (port_num & 4095) + 1; in usnic_transport_rsrv_port()
97 } else if (test_bit(port_num, roce_bitmap)) { in usnic_transport_rsrv_port()
103 bitmap_set(roce_bitmap, port_num, 1); in usnic_transport_rsrv_port()
111 usnic_dbg("Allocating port %hu for %s\n", port_num, in usnic_transport_rsrv_port()
113 return port_num; in usnic_transport_rsrv_port()
123 if (!port_num) { in usnic_transport_unrsrv_port()
129 if (!test_bit(port_num, roce_bitmap)) { in usnic_transport_unrsrv_port()
131 port_num, in usnic_transport_unrsrv_port()
135 bitmap_clear(roce_bitmap, port_num, 1); in usnic_transport_unrsrv_port()
[all …]
/linux/drivers/usb/gadget/function/
A Du_serial.c107 u8 port_num; member
590 int port_num = tty->index; in gs_open() local
595 port = ports[port_num].port; in gs_open()
617 port_num, tty, file); in gs_open()
789 port->port_num, tty, room); in gs_write_room()
835 port->port_num, duration); in gs_break_ctl()
1144 if (ports[port_num].port) { in gs_port_alloc()
1166 port->port_num = port_num; in gs_port_alloc()
1221 int port_num; in gserial_alloc_line_no_console() local
1228 for (port_num = 0; port_num < MAX_U_SERIAL_PORTS; port_num++) { in gserial_alloc_line_no_console()
[all …]
A Df_serial.c30 u8 port_num; member
155 "reset generic ttyGS%d\n", gser->port_num); in gser_set_alt()
160 "activate generic ttyGS%d\n", gser->port_num); in gser_set_alt()
168 gserial_connect(&gser->port, gser->port_num); in gser_set_alt()
178 "generic ttyGS%d deactivated\n", gser->port_num); in gser_disable()
240 gser->port_num, in gser_bind()
274 return gserial_set_console(to_f_serial_opts(item)->port_num, in f_serial_console_store()
292 CONFIGFS_ATTR_RO(f_serial_, port_num);
313 gserial_free_line(opts->port_num); in gser_free_inst()
327 ret = gserial_alloc_line(&opts->port_num); in gser_alloc_inst()
[all …]
A Df_obex.c34 u8 port_num; member
207 "reset obex ttyGS%d\n", obex->port_num); in obex_set_alt()
213 "init obex ttyGS%d\n", obex->port_num); in obex_set_alt()
226 "activate obex ttyGS%d\n", obex->port_num); in obex_set_alt()
227 gserial_connect(&obex->port, obex->port_num); in obex_set_alt()
269 obex->port_num, status); in obex_connect()
282 obex->port_num, status); in obex_disconnect()
369 obex->port_num, in obex_bind()
403 CONFIGFS_ATTR_RO(f_obex_, port_num);
421 gserial_free_line(opts->port_num); in obex_free_inst()
[all …]
A Du_serial.h19 u8 port_num; member
63 ssize_t gserial_set_console(unsigned char port_num, const char *page, size_t count);
64 ssize_t gserial_get_console(unsigned char port_num, char *page);
69 int gserial_connect(struct gserial *, u8 port_num);
75 int gser_bind_config(struct usb_configuration *c, u8 port_num);
76 int obex_bind_config(struct usb_configuration *c, u8 port_num);
/linux/drivers/infiniband/core/
A Dagent.c63 entry->agent[1]->port_num == port_num) in __ib_get_agent_port()
70 ib_get_agent_port(const struct ib_device *device, int port_num) in ib_get_agent_port() argument
76 entry = __ib_get_agent_port(device, port_num); in ib_get_agent_port()
83 int port_num, int qpn, size_t resp_mad_len, bool opa) in agent_send_response() argument
94 port_priv = ib_get_agent_port(device, port_num); in agent_send_response()
102 ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num); in agent_send_response()
129 mad_send_wr->send_wr.port_num = port_num; in agent_send_response()
150 int ib_agent_port_open(struct ib_device *device, int port_num) in ib_agent_port_open() argument
163 if (rdma_cap_ib_smi(device, port_num)) { in ib_agent_port_open()
206 port_priv = __ib_get_agent_port(device, port_num); in ib_agent_port_close()
[all …]
A Dsysfs.c72 u32 port_num; member
132 u32 *port_num) in ib_port_sysfs_get_ibdev_kobj() argument
136 *port_num = port->port_num; in ib_port_sysfs_get_ibdev_kobj()
179 port->port_num, buf); in hw_stat_port_show()
192 port->port_num, buf, count); in hw_stat_port_store()
513 u32 port_num, in show_port_gid_attr_gid_type() argument
790 int port_num) in get_counter_table() argument
1044 port->port_num, in setup_hw_port_stats()
1086 u32 port_num) in ib_get_hw_stats_port() argument
1212 p->port_num = port_num; in setup_port()
[all …]
A Dsmi.c62 port_num ? IB_SMI_HANDLE : IB_SMI_DISCARD); in __smi_handle_dr_smp_send()
73 port_num ? IB_SMI_HANDLE : IB_SMI_DISCARD); in __smi_handle_dr_smp_send()
94 port_num ? IB_SMI_HANDLE : IB_SMI_DISCARD); in __smi_handle_dr_smp_send()
104 port_num ? IB_SMI_HANDLE : IB_SMI_DISCARD); in __smi_handle_dr_smp_send()
130 bool is_switch, u32 port_num) in smi_handle_dr_smp_send() argument
142 bool is_switch, u32 port_num) in opa_smi_handle_dr_smp_send() argument
179 return_path[*hop_ptr] = port_num; in __smi_handle_dr_smp_recv()
188 return_path[*hop_ptr] = port_num; in __smi_handle_dr_smp_recv()
206 port_num ? IB_SMI_HANDLE : IB_SMI_DISCARD); in __smi_handle_dr_smp_recv()
241 u32 port_num, int phys_port_cnt) in smi_handle_dr_smp_recv() argument
[all …]
A Dsecurity.c196 u32 port_num, in check_pkey_qps() argument
205 port_num, in check_pkey_qps()
248 u32 port_num = pp->port_num; in port_pkey_list_insert() local
343 new_pps->main.port_num = qp_attr->port_num; in get_new_pps()
345 new_pps->main.port_num = qp_pps->main.port_num; in get_new_pps()
362 new_pps->alt.port_num = qp_pps->alt.port_num; in get_new_pps()
541 u32 port_num, in ib_security_cache_change() argument
550 port_num, in ib_security_cache_change()
652 u32 port_num, in ib_security_pkey_access() argument
706 agent->port_num); in ib_mad_agent_security_setup()
[all …]
A Dcache.c129 event.element.port_num = port; in dispatch_gid_change_event()
240 u32 port_num = entry->attr.port_num; in free_gid_entry_locked() local
285 u32 port_num = entry->attr.port_num; in free_gid_work() local
358 __func__, attr->port_num, attr->index); in add_roce_gid()
576 attr->port_num = port; in __ib_cache_gid_add()
1046 u32 port_num, in ib_get_cached_pkey() argument
1254 u32 port_num, i; in rdma_query_gid_table() local
1258 rdma_for_each_port(device, port_num) { in rdma_query_gid_table()
1274 entries->port_num = gid_attr->port_num; in rdma_query_gid_table()
1352 u32 port_num = entry->attr.port_num; in rdma_read_gid_attr_ndev_rcu() local
[all …]
/linux/drivers/infiniband/hw/mlx5/
A Dcong.c303 mlx5_ib_put_native_port_mdev(dev, port_num + 1); in mlx5_ib_get_cc_params()
345 mlx5_ib_put_native_port_mdev(dev, port_num + 1); in mlx5_ib_set_cc_params()
403 !dev->port[port_num].dbg_cc_params || in mlx5_ib_cleanup_cong_debugfs()
404 !dev->port[port_num].dbg_cc_params->root) in mlx5_ib_cleanup_cong_debugfs()
408 kfree(dev->port[port_num].dbg_cc_params); in mlx5_ib_cleanup_cong_debugfs()
409 dev->port[port_num].dbg_cc_params = NULL; in mlx5_ib_cleanup_cong_debugfs()
434 dev->port[port_num].dbg_cc_params = dbg_cc_params; in mlx5_ib_init_cong_debugfs()
442 dbg_cc_params->params[i].port_num = port_num; in mlx5_ib_init_cong_debugfs()
451 mlx5_ib_put_native_port_mdev(dev, port_num + 1); in mlx5_ib_init_cong_debugfs()
456 mlx5_ib_cleanup_cong_debugfs(dev, port_num); in mlx5_ib_init_cong_debugfs()
[all …]
A Dgsi.c94 const u8 port_num = attr->port_num; in mlx5_ib_create_gsi() local
119 if (dev->devr.ports[port_num - 1].gsi) { in mlx5_ib_create_gsi()
121 port_num); in mlx5_ib_create_gsi()
129 gsi->port_num = port_num; in mlx5_ib_create_gsi()
156 dev->devr.ports[attr->port_num - 1].gsi = gsi; in mlx5_ib_create_gsi()
172 const int port_num = gsi->port_num; in mlx5_ib_destroy_gsi() local
182 dev->devr.ports[port_num - 1].gsi = NULL; in mlx5_ib_destroy_gsi()
231 attr.port_num = gsi->port_num; in modify_to_rts()
276 gsi->port_num, qp_index); in setup_qp()
282 gsi->port_num, qp_index); in setup_qp()
[all …]
/linux/drivers/infiniband/hw/qib/
A Dqib_sysfs.c42 u32 port_num; in qib_get_pportdata_kobj() local
46 return &dd->pport[port_num - 1]; in qib_get_pportdata_kobj()
56 struct qib_pportdata *ppd = &dd->pport[port_num - 1]; in hrtbt_enable_show()
66 struct qib_pportdata *ppd = &dd->pport[port_num - 1]; in hrtbt_enable_store()
93 struct qib_pportdata *ppd = &dd->pport[port_num - 1]; in loopback_store()
109 struct qib_pportdata *ppd = &dd->pport[port_num - 1]; in led_override_store()
124 static ssize_t status_show(struct ib_device *ibdev, u32 port_num, in status_show() argument
128 struct qib_pportdata *ppd = &dd->pport[port_num - 1]; in status_show()
159 struct qib_pportdata *ppd = &dd->pport[port_num - 1]; in status_str_show()
314 struct qib_ibport *qibp = &dd->pport[port_num - 1].ibport_data; in sl2vl_attr_show()
[all …]
/linux/arch/mips/include/asm/octeon/
A Dcvmx-pip.h292 static inline void cvmx_pip_config_port(uint64_t port_num, in cvmx_pip_config_port() argument
389 stat0.u64 = cvmx_read_csr(CVMX_PIP_STAT0_PRTX(port_num)); in cvmx_pip_get_port_status()
390 stat1.u64 = cvmx_read_csr(CVMX_PIP_STAT1_PRTX(port_num)); in cvmx_pip_get_port_status()
391 stat2.u64 = cvmx_read_csr(CVMX_PIP_STAT2_PRTX(port_num)); in cvmx_pip_get_port_status()
392 stat3.u64 = cvmx_read_csr(CVMX_PIP_STAT3_PRTX(port_num)); in cvmx_pip_get_port_status()
393 stat4.u64 = cvmx_read_csr(CVMX_PIP_STAT4_PRTX(port_num)); in cvmx_pip_get_port_status()
394 stat5.u64 = cvmx_read_csr(CVMX_PIP_STAT5_PRTX(port_num)); in cvmx_pip_get_port_status()
395 stat6.u64 = cvmx_read_csr(CVMX_PIP_STAT6_PRTX(port_num)); in cvmx_pip_get_port_status()
400 cvmx_read_csr(CVMX_PIP_STAT_INB_PKTSX(port_num)); in cvmx_pip_get_port_status()
402 cvmx_read_csr(CVMX_PIP_STAT_INB_OCTSX(port_num)); in cvmx_pip_get_port_status()
[all …]
/linux/include/rdma/
A Dib_cache.h13 int rdma_query_gid(struct ib_device *device, u32 port_num, int index,
26 struct ib_device *device, const union ib_gid *gid, u32 port_num,
46 u32 port_num,
62 u32 port_num,
78 u32 port_num,
92 u32 port_num,
105 u32 port_num,
110 u32 port_num, int index);
A Drw.h45 int rdma_rw_ctx_init(struct rdma_rw_ctx *ctx, struct ib_qp *qp, u32 port_num,
49 u32 port_num, struct scatterlist *sg, u32 sg_cnt,
53 u32 port_num, struct scatterlist *sg, u32 sg_cnt,
58 u32 port_num, struct scatterlist *sg, u32 sg_cnt,
63 u32 port_num, struct ib_cqe *cqe, struct ib_send_wr *chain_wr);
64 int rdma_rw_ctx_post(struct rdma_rw_ctx *ctx, struct ib_qp *qp, u32 port_num,
67 unsigned int rdma_rw_mr_factor(struct ib_device *device, u32 port_num,
A Dib_verbs.h157 u32 port_num; member
742 u32 port_num; member
925 u32 port_num; member
1167 u32 port_num; member
1286 u32 port_num; member
1719 u32 port_num; member
2206 u32 port_num; member
3058 u32 port_num) in rdma_is_grh_required() argument
3079 u32 port_num) in rdma_protocol_roce_udp_encap() argument
3086 u32 port_num) in rdma_protocol_roce_eth_encap() argument
[all …]
/linux/drivers/infiniband/hw/hfi1/
A Dipoib_main.c58 priv->port_num); in hfi1_ipoib_dev_open()
113 struct hfi1_ibport *ibp = to_iport(priv->device, priv->port_num); in hfi1_ipoib_mcast_attach()
143 struct hfi1_ibport *ibp = to_iport(priv->device, priv->port_num); in hfi1_ipoib_mcast_detach()
183 priv->port_num, in hfi1_ipoib_set_id()
189 u32 port_num, in hfi1_ipoib_setup_rn() argument
204 rn->port_num = port_num; in hfi1_ipoib_setup_rn()
211 priv->port_num = port_num; in hfi1_ipoib_setup_rn()
216 ib_query_pkey(device, port_num, priv->pkey_index, &priv->pkey); in hfi1_ipoib_setup_rn()
239 u32 port_num, in hfi1_ipoib_rn_get_params() argument
251 if (!port_num || port_num > dd->num_pports) in hfi1_ipoib_rn_get_params()
/linux/drivers/infiniband/hw/mlx4/
A Dsysfs.c237 port = &device->iov_ports[port_num - 1]; in add_port_entries()
239 port->num = port_num; in add_port_entries()
253 sprintf(buff, "%d", port_num); in add_port_entries()
352 port_num, ret); in add_port_entries()
374 u8 port_num; member
473 p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1] in store_port_pkey()
546 p->port_num)); in sysfs_show_smi_enabled()
558 p->port_num)); in sysfs_show_enable_smi_admin()
638 p->port_num = port_num; in add_port()
643 "%d", port_num); in add_port()
[all …]
A Dmad.c210 if (dev->sm_ah[port_num - 1]) in update_sm_ah()
212 dev->sm_ah[port_num - 1] = new_ah; in update_sm_ah()
241 update_sm_ah(dev, port_num, in smp_snoop()
322 port_num, jj, sl2vl64.sl8[jj]); in smp_snoop()
356 slave, port_num, ix, err); in __propagate_pkey_ev()
659 wr.port_num = port; in mlx4_ib_send_to_slave()
1164 port_num, in handle_slaves_guid_change()
1167 port_num, in handle_slaves_guid_change()
1285 event.element.port_num = port_num; in mlx4_ib_dispatch_event()
1436 wr.port_num = port; in mlx4_ib_send_to_wire()
[all …]
/linux/drivers/rapidio/
A Drio-scan.c593 int port_num; in rio_enum_peer() local
614 for (port_num = 0; in rio_enum_peer()
616 port_num++) { in rio_enum_peer()
630 port_num); in rio_enum_peer()
637 port_num, 0); in rio_enum_peer()
652 port_num, in rio_enum_peer()
656 port_num; in rio_enum_peer()
729 u8 port_num, route_port; in rio_disc_peer() local
749 for (port_num = 0; in rio_disc_peer()
751 port_num++) { in rio_disc_peer()
[all …]
/linux/include/trace/events/
A Dib_mad.h32 __field(u8, port_num)
57 __entry->port_num = wr->mad_agent_priv->agent.port_num;
93 __entry->dev_index, __entry->port_num, __entry->qp_num,
126 __field(u8, port_num)
146 __entry->port_num = wr->mad_agent_priv->agent.port_num;
193 __field(u8, port_num)
212 __entry->port_num = qp_info->port_priv->port_num;
228 qp_info->port_priv->port_num,
258 __field(u8, port_num)
265 __entry->port_num = agent->agent.port_num;
[all …]

Completed in 98 milliseconds

12345678910>>...15