Home
last modified time | relevance | path

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

12345678910>>...15

/kernel/linux/linux-5.10/drivers/platform/chrome/
Dcros_ec_typec.c145 static int cros_typec_add_partner(struct cros_typec_data *typec, int port_num, in cros_typec_add_partner() argument
148 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_add_partner()
170 int port_num) in cros_typec_remove_partner() argument
172 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_remove_partner()
206 int port_num) in cros_typec_register_port_altmodes() argument
208 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_register_port_altmodes()
236 u32 port_num = 0; in cros_typec_init_ports() local
252 if (fwnode_property_read_u32(fwnode, port_prop, &port_num)) { in cros_typec_init_ports()
258 if (port_num >= typec->num_ports) { in cros_typec_init_ports()
264 dev_dbg(dev, "Registering port %d\n", port_num); in cros_typec_init_ports()
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/ddbridge/
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 …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/usnic/
Dusnic_transport.c86 u16 usnic_transport_rsrv_port(enum usnic_transport_type type, u16 port_num) in usnic_transport_rsrv_port() argument
90 if (!port_num) { in usnic_transport_rsrv_port()
91 port_num = bitmap_find_next_zero_area(roce_bitmap, 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()
119 void usnic_transport_unrsrv_port(enum usnic_transport_type type, u16 port_num) in usnic_transport_unrsrv_port() argument
123 if (!port_num) { in usnic_transport_unrsrv_port()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
Dmthca_mad.c50 static int mthca_update_rate(struct mthca_dev *dev, u8 port_num) in mthca_update_rate() argument
59 ret = ib_query_port(&dev->ib_dev, port_num, tprops); in mthca_update_rate()
63 port_num); in mthca_update_rate()
67 dev->rate[port_num - 1] = tprops->active_speed * 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()
86 ah_attr.type = rdma_ah_find_type(&dev->ib_dev, port_num); in update_sm_ah()
89 rdma_ah_set_port_num(&ah_attr, port_num); in update_sm_ah()
91 new_ah = rdma_create_ah(dev->send_agent[port_num - 1][0]->qp->pd, in update_sm_ah()
97 if (dev->sm_ah[port_num - 1]) in update_sm_ah()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/core/
Dagent.c57 __ib_get_agent_port(const struct ib_device *device, int port_num) in __ib_get_agent_port() argument
63 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()
[all …]
Dsmi.c44 static enum smi_action __smi_handle_dr_smp_send(bool is_switch, int port_num, in __smi_handle_dr_smp_send() argument
62 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, int port_num) in smi_handle_dr_smp_send() argument
132 return __smi_handle_dr_smp_send(is_switch, port_num, in smi_handle_dr_smp_send()
142 bool is_switch, int port_num) in opa_smi_handle_dr_smp_send() argument
144 return __smi_handle_dr_smp_send(is_switch, port_num, in opa_smi_handle_dr_smp_send()
155 static enum smi_action __smi_handle_dr_smp_recv(bool is_switch, int port_num, in __smi_handle_dr_smp_recv() argument
[all …]
Dsecurity.c52 spin_lock(&dev->port_data[pp->port_num].pkey_list_lock); in get_pkey_idx_qp_list()
53 list_for_each_entry (tmp_pkey, &dev->port_data[pp->port_num].pkey_list, in get_pkey_idx_qp_list()
60 spin_unlock(&dev->port_data[pp->port_num].pkey_list_lock); in get_pkey_idx_qp_list()
71 ret = ib_get_cached_pkey(dev, pp->port_num, pp->pkey_index, pkey); in get_pkey_and_subnet_prefix()
75 ret = ib_get_cached_subnet_prefix(dev, pp->port_num, subnet_prefix); in get_pkey_and_subnet_prefix()
196 u8 port_num, in check_pkey_qps() argument
205 port_num, in check_pkey_qps()
248 u8 port_num = pp->port_num; in port_pkey_list_insert() local
265 spin_lock(&dev->port_data[port_num].pkey_list_lock); in port_pkey_list_insert()
270 &dev->port_data[port_num].pkey_list, in port_pkey_list_insert()
[all …]
Dcache.c129 event.element.port_num = port; in dispatch_gid_change_event()
240 u8 port_num = entry->attr.port_num; in free_gid_entry_locked() local
241 struct ib_gid_table *table = rdma_gid_table(device, port_num); in free_gid_entry_locked()
244 port_num, entry->attr.index, entry->attr.gid.raw); in free_gid_entry_locked()
285 u8 port_num = entry->attr.port_num; in free_gid_work() local
286 struct ib_gid_table *table = rdma_gid_table(device, port_num); in free_gid_work()
327 __func__, entry->attr.port_num, entry->attr.index, in store_gid_entry()
358 __func__, attr->port_num, attr->index); in add_roce_gid()
361 if (rdma_cap_roce_gid_table(attr->device, attr->port_num)) { in add_roce_gid()
366 __func__, attr->port_num, attr->index); in add_roce_gid()
[all …]
Dsysfs.c65 u8 port_num; member
97 u8 port_num; member
164 ret = ib_query_port(p->ibdev, p->port_num, &attr); in state_show()
179 ret = ib_query_port(p->ibdev, p->port_num, &attr); in lid_show()
193 ret = ib_query_port(p->ibdev, p->port_num, &attr); in lid_mask_count_show()
206 ret = ib_query_port(p->ibdev, p->port_num, &attr); in sm_lid_show()
219 ret = ib_query_port(p->ibdev, p->port_num, &attr); in sm_sl_show()
232 ret = ib_query_port(p->ibdev, p->port_num, &attr); in cap_mask_show()
247 ret = ib_query_port(p->ibdev, p->port_num, &attr); in rate_show()
317 ret = ib_query_port(p->ibdev, p->port_num, &attr); in phys_state_show()
[all …]
Drw.c28 static inline bool rdma_rw_can_use_mr(struct ib_device *dev, u8 port_num) in rdma_rw_can_use_mr() argument
30 if (rdma_protocol_iwarp(dev, port_num)) in rdma_rw_can_use_mr()
45 static inline bool rdma_rw_io_needs_mr(struct ib_device *dev, u8 port_num, in rdma_rw_io_needs_mr() argument
49 if (rdma_protocol_iwarp(dev, port_num)) in rdma_rw_io_needs_mr()
90 static int rdma_rw_init_one_mr(struct ib_qp *qp, u8 port_num, in rdma_rw_init_one_mr() argument
114 if (rdma_protocol_iwarp(qp->device, port_num)) in rdma_rw_init_one_mr()
124 u8 port_num, struct scatterlist *sg, u32 sg_cnt, u32 offset, in rdma_rw_init_mr_wrs() argument
143 ret = rdma_rw_init_one_mr(qp, port_num, reg, sg, sg_cnt, in rdma_rw_init_mr_wrs()
164 } else if (!rdma_cap_read_inv(qp->device, port_num)) { in rdma_rw_init_mr_wrs()
311 int rdma_rw_ctx_init(struct rdma_rw_ctx *ctx, struct ib_qp *qp, u8 port_num, in rdma_rw_ctx_init() argument
[all …]
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
Du_serial.c107 u8 port_num; member
262 port->port_num, len, *((u8 *)req->buf), in gs_start_tx()
382 pr_vdebug("ttyGS%d: shutdown\n", port->port_num); in gs_rx_push()
388 port->port_num, req->status); in gs_rx_push()
417 port->port_num, count, req->actual); in gs_rx_push()
592 int port_num = tty->index; in gs_open() local
596 mutex_lock(&ports[port_num].lock); in gs_open()
597 port = ports[port_num].port; in gs_open()
619 port_num, tty, file); in gs_open()
639 pr_debug("gs_open: start ttyGS%d\n", port->port_num); in gs_open()
[all …]
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);
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()
280 return gserial_get_console(to_f_serial_opts(item)->port_num, page); in f_serial_console_show()
289 return sprintf(page, "%u\n", to_f_serial_opts(item)->port_num); in f_serial_port_num_show()
292 CONFIGFS_ATTR_RO(f_serial_, port_num);
[all …]
Df_obex.c34 u8 port_num; member
199 "reset obex ttyGS%d control\n", obex->port_num); in obex_set_alt()
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()
253 dev_dbg(&cdev->gadget->dev, "obex ttyGS%d disable\n", obex->port_num); in obex_disable()
269 obex->port_num, status); in obex_connect()
282 obex->port_num, status); in obex_disconnect()
369 obex->port_num, in obex_bind()
[all …]
Df_acm.c43 u8 port_num; member
313 acm->port_num, req->status); in acm_complete_set_line_coding()
320 acm->port_num, req->actual); in acm_complete_set_line_coding()
406 acm->port_num, ctrl->bRequestType, ctrl->bRequest, in acm_setup()
413 acm->port_num, value); in acm_setup()
443 "reset acm ttyGS%d\n", acm->port_num); in acm_set_alt()
448 "activate acm ttyGS%d\n", acm->port_num); in acm_set_alt()
458 gserial_connect(&acm->port, acm->port_num); in acm_set_alt()
471 dev_dbg(&cdev->gadget->dev, "acm ttyGS%d deactivated\n", acm->port_num); in acm_disable()
526 acm->port_num, status); in acm_cdc_notify()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dcong.c270 static int mlx5_ib_get_cc_params(struct mlx5_ib_dev *dev, u8 port_num, in mlx5_ib_get_cc_params() argument
281 mdev = mlx5_ib_get_native_port_mdev(dev, port_num + 1, NULL); in mlx5_ib_get_cc_params()
303 mlx5_ib_put_native_port_mdev(dev, port_num + 1); in mlx5_ib_get_cc_params()
307 static int mlx5_ib_set_cc_params(struct mlx5_ib_dev *dev, u8 port_num, in mlx5_ib_set_cc_params() argument
319 mdev = mlx5_ib_get_native_port_mdev(dev, port_num + 1, NULL); in mlx5_ib_set_cc_params()
345 mlx5_ib_put_native_port_mdev(dev, port_num + 1); in mlx5_ib_set_cc_params()
369 ret = mlx5_ib_set_cc_params(param->dev, param->port_num, offset, var); in set_param()
382 ret = mlx5_ib_get_cc_params(param->dev, param->port_num, offset, &var); in get_param()
400 void mlx5_ib_cleanup_cong_debugfs(struct mlx5_ib_dev *dev, u8 port_num) in mlx5_ib_cleanup_cong_debugfs() argument
403 !dev->port[port_num].dbg_cc_params || in mlx5_ib_cleanup_cong_debugfs()
[all …]
/kernel/linux/linux-5.10/include/rdma/
Dib_cache.h13 int rdma_query_gid(struct ib_device *device, u8 port_num, int index,
26 struct ib_device *device, const union ib_gid *gid, u8 port_num,
46 u8 port_num,
62 u8 port_num,
78 u8 port_num,
92 u8 port_num,
105 u8 port_num,
110 u8 port_num, int index);
Drw.h45 int rdma_rw_ctx_init(struct rdma_rw_ctx *ctx, struct ib_qp *qp, u8 port_num,
48 void rdma_rw_ctx_destroy(struct rdma_rw_ctx *ctx, struct ib_qp *qp, u8 port_num,
53 u8 port_num, struct scatterlist *sg, u32 sg_cnt,
58 u8 port_num, struct scatterlist *sg, u32 sg_cnt,
63 u8 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, u8 port_num,
67 unsigned int rdma_rw_mr_factor(struct ib_device *device, u8 port_num,
Dib_verbs.h154 u8 port_num; member
738 u8 port_num; member
921 u8 port_num; member
1008 u8 port_num; /* valid only for DR SMPs on switches */ member
1163 u8 port_num; member
1280 u8 port_num; member
1401 u8 port_num; /* valid for DR SMPs on switch only */ member
1708 u8 port_num; member
2194 u8 port_num; member
2223 int (*initialize_rdma_netdev)(struct ib_device *device, u8 port_num,
[all …]
/kernel/linux/linux-5.10/arch/mips/include/asm/octeon/
Dcvmx-pip.h292 static inline void cvmx_pip_config_port(uint64_t port_num, in cvmx_pip_config_port() argument
296 cvmx_write_csr(CVMX_PIP_PRT_CFGX(port_num), port_cfg.u64); in cvmx_pip_config_port()
297 cvmx_write_csr(CVMX_PIP_PRT_TAGX(port_num), port_tag_cfg.u64); in cvmx_pip_config_port()
367 static inline void cvmx_pip_get_port_status(uint64_t port_num, uint64_t clear, in cvmx_pip_get_port_status() 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()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dipoib_main.c58 priv->port_num); in hfi1_ipoib_dev_open()
130 struct hfi1_ibport *ibp = to_iport(priv->device, priv->port_num); in hfi1_ipoib_mcast_attach()
160 struct hfi1_ibport *ibp = to_iport(priv->device, priv->port_num); in hfi1_ipoib_mcast_detach()
200 priv->port_num, in hfi1_ipoib_set_id()
206 u8 port_num, in hfi1_ipoib_setup_rn() argument
220 rn->port_num = port_num; in hfi1_ipoib_setup_rn()
227 priv->port_num = port_num; in hfi1_ipoib_setup_rn()
232 ib_query_pkey(device, port_num, priv->pkey_index, &priv->pkey); in hfi1_ipoib_setup_rn()
255 u8 port_num, in hfi1_ipoib_rn_get_params() argument
267 if (!port_num || port_num > dd->num_pports) in hfi1_ipoib_rn_get_params()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dsysfs.c200 int add_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num, in add_sysfs_port_mcg_attr() argument
203 struct mlx4_ib_iov_port *port = &device->iov_ports[port_num - 1]; in add_sysfs_port_mcg_attr()
213 void del_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num, in del_sysfs_port_mcg_attr() argument
216 struct mlx4_ib_iov_port *port = &device->iov_ports[port_num - 1]; in del_sysfs_port_mcg_attr()
221 static int add_port_entries(struct mlx4_ib_dev *device, int port_num) in add_port_entries() argument
231 ret = __mlx4_ib_query_port(&device->ib_dev, port_num, &attr, 1); in add_port_entries()
235 port = &device->iov_ports[port_num - 1]; in add_port_entries()
237 port->num = port_num; in add_port_entries()
251 sprintf(buff, "%d", port_num); in add_port_entries()
350 port_num, ret); in add_port_entries()
[all …]
Dmad.c91 static void handle_client_rereg_event(struct mlx4_ib_dev *dev, u8 port_num);
92 static void handle_lid_change_event(struct mlx4_ib_dev *dev, u8 port_num);
93 static void __propagate_pkey_ev(struct mlx4_ib_dev *dev, int port_num,
189 static void update_sm_ah(struct mlx4_ib_dev *dev, u8 port_num, u16 lid, u8 sl) in update_sm_ah() argument
195 if (!dev->send_agent[port_num - 1][0]) in update_sm_ah()
199 ah_attr.type = rdma_ah_find_type(&dev->ib_dev, port_num); in update_sm_ah()
202 rdma_ah_set_port_num(&ah_attr, port_num); in update_sm_ah()
204 new_ah = rdma_create_ah(dev->send_agent[port_num - 1][0]->qp->pd, in update_sm_ah()
210 if (dev->sm_ah[port_num - 1]) in update_sm_ah()
211 rdma_destroy_ah(dev->sm_ah[port_num - 1], 0); in update_sm_ah()
[all …]
/kernel/linux/linux-5.10/drivers/rapidio/
Drio-scan.c593 int port_num; in rio_enum_peer() local
614 for (port_num = 0; in rio_enum_peer()
615 port_num < RIO_GET_TOTAL_PORTS(rdev->swpinfo); in rio_enum_peer()
616 port_num++) { in rio_enum_peer()
617 if (sw_inport == port_num) { in rio_enum_peer()
620 hopcount, port_num); in rio_enum_peer()
621 rdev->rswitch->port_ok |= (1 << port_num); in rio_enum_peer()
627 if (rio_sport_is_active(rdev, port_num)) { in rio_enum_peer()
630 port_num); in rio_enum_peer()
633 hopcount, port_num); in rio_enum_peer()
[all …]
/kernel/linux/linux-5.10/include/trace/events/
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;
172 __entry->dev_index, __entry->port_num, __entry->qp_num,
193 __field(u8, port_num)
212 __entry->port_num = qp_info->port_priv->port_num;
228 qp_info->port_priv->port_num,
238 __entry->dev_index, __entry->port_num, __entry->qp_num,
[all …]

12345678910>>...15