Home
last modified time | relevance | path

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

12345678910>>...12

/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 …]
/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 …]
/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 …]
/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 …]
Dusnic_ib_qp_grp.c207 uint16_t port_num; in create_roce_custom_flow() local
216 port_num = trans_spec->usnic_roce.port_num; in create_roce_custom_flow()
219 port_num = usnic_transport_rsrv_port(trans_type, port_num); in create_roce_custom_flow()
220 if (port_num == 0) in create_roce_custom_flow()
224 usnic_fwd_init_usnic_filter(&filter, port_num); in create_roce_custom_flow()
243 qp_flow->usnic_roce.port_num = port_num; in create_roce_custom_flow()
250 usnic_transport_unrsrv_port(trans_type, port_num); in create_roce_custom_flow()
258 qp_flow->usnic_roce.port_num); in release_roce_custom_flow()
275 uint16_t port_num; in create_udp_flow() local
286 err = usnic_transport_sock_get_addr(sock, &proto, &addr, &port_num); in create_udp_flow()
[all …]
/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 …]
Dmad.c64 u8 pnum = qp_info->port_priv->port_num; in create_mad_addr_info()
121 __ib_get_mad_port(struct ib_device *device, int port_num) in __ib_get_mad_port() argument
126 if (entry->device == device && entry->port_num == port_num) in __ib_get_mad_port()
137 ib_get_mad_port(struct ib_device *device, int port_num) in ib_get_mad_port() argument
143 entry = __ib_get_mad_port(device, port_num); in ib_get_mad_port()
225 u8 port_num, in ib_register_mad_agent() argument
245 if ((qp_type == IB_QPT_SMI && !rdma_cap_ib_smi(device, port_num)) || in ib_register_mad_agent()
246 (qp_type == IB_QPT_GSI && !rdma_cap_ib_cm(device, port_num))) in ib_register_mad_agent()
353 port_priv = ib_get_mad_port(device, port_num); in ib_register_mad_agent()
356 __func__, port_num); in ib_register_mad_agent()
[all …]
Duverbs_std_types_device.c141 struct ib_device *ib_dev, u8 port_num) in copy_port_attr_to_resp() argument
153 if (rdma_is_grh_required(ib_dev, port_num)) in copy_port_attr_to_resp()
156 if (rdma_cap_opa_ah(ib_dev, port_num)) { in copy_port_attr_to_resp()
173 resp->link_layer = rdma_port_get_link_layer(ib_dev, port_num); in copy_port_attr_to_resp()
184 u8 port_num; in UVERBS_HANDLER() local
195 ret = uverbs_get_const(&port_num, attrs, in UVERBS_HANDLER()
200 ret = ib_query_port(ib_dev, port_num, &attr); in UVERBS_HANDLER()
204 copy_port_attr_to_resp(&attr, &resp.legacy_resp, ib_dev, port_num); in UVERBS_HANDLER()
376 u32 port_num; in UVERBS_HANDLER() local
385 ret = uverbs_get_const(&port_num, attrs, in UVERBS_HANDLER()
[all …]
/drivers/usb/gadget/function/
Du_serial.c110 u8 port_num; member
264 pr_vdebug("ttyGS%d: tx len=%d, %3ph ...\n", port->port_num, len, req->buf); in gs_start_tx()
383 pr_vdebug("ttyGS%d: shutdown\n", port->port_num); in gs_rx_push()
389 port->port_num, req->status); in gs_rx_push()
418 port->port_num, count, req->actual); in gs_rx_push()
597 int port_num = tty->index; in gs_open() local
601 mutex_lock(&ports[port_num].lock); in gs_open()
602 port = ports[port_num].port; in gs_open()
624 port_num, tty, file); in gs_open()
644 pr_debug("gs_open: start ttyGS%d\n", port->port_num); in gs_open()
[all …]
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 …]
/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 …]
Dgsi.c94 const u8 port_num = attr->port_num; in mlx5_ib_create_gsi() local
121 if (dev->devr.ports[port_num - 1].gsi) { in mlx5_ib_create_gsi()
123 port_num); in mlx5_ib_create_gsi()
131 gsi->port_num = port_num; in mlx5_ib_create_gsi()
169 dev->devr.ports[attr->port_num - 1].gsi = gsi; in mlx5_ib_create_gsi()
189 const int port_num = gsi->port_num; in mlx5_ib_destroy_gsi() local
201 dev->devr.ports[port_num - 1].gsi = NULL; in mlx5_ib_destroy_gsi()
253 attr.port_num = gsi->port_num; in modify_to_rts()
295 ret = ib_query_pkey(device, gsi->port_num, pkey_index, &pkey); in setup_qp()
298 gsi->port_num, qp_index); in setup_qp()
[all …]
/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()
194 priv->port_num, in hfi1_ipoib_set_id()
200 u8 port_num, in hfi1_ipoib_setup_rn() argument
214 rn->port_num = port_num; in hfi1_ipoib_setup_rn()
221 priv->port_num = port_num; in hfi1_ipoib_setup_rn()
224 ib_query_pkey(device, port_num, priv->pkey_index, &priv->pkey); in hfi1_ipoib_setup_rn()
248 u8 port_num, in hfi1_ipoib_rn_get_params() argument
260 if (!port_num || port_num > dd->num_pports) in hfi1_ipoib_rn_get_params()
/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 …]
/drivers/rapidio/
Drio-scan.c597 int port_num; in rio_enum_peer() local
618 for (port_num = 0; in rio_enum_peer()
619 port_num < RIO_GET_TOTAL_PORTS(rdev->swpinfo); in rio_enum_peer()
620 port_num++) { in rio_enum_peer()
621 if (sw_inport == port_num) { in rio_enum_peer()
624 hopcount, port_num); in rio_enum_peer()
625 rdev->rswitch->port_ok |= (1 << port_num); in rio_enum_peer()
631 if (rio_sport_is_active(rdev, port_num)) { in rio_enum_peer()
634 port_num); in rio_enum_peer()
637 hopcount, port_num); in rio_enum_peer()
[all …]
/drivers/infiniband/sw/rdmavt/
Dvt.c154 static int rvt_query_port(struct ib_device *ibdev, u8 port_num, in rvt_query_port() argument
159 int port_index = ibport_num_to_idx(ibdev, port_num); in rvt_query_port()
177 return rdi->driver_f.query_port_state(rdi, port_num, props); in rvt_query_port()
189 static int rvt_modify_port(struct ib_device *ibdev, u8 port_num, in rvt_modify_port() argument
195 int port_index = ibport_num_to_idx(ibdev, port_num); in rvt_modify_port()
210 rdi->driver_f.cap_mask_chg(rdi, port_num); in rvt_modify_port()
212 ret = rdi->driver_f.shut_down_port(rdi, port_num); in rvt_modify_port()
228 static int rvt_query_pkey(struct ib_device *ibdev, u8 port_num, u16 index, in rvt_query_pkey() argument
240 port_index = ibport_num_to_idx(ibdev, port_num); in rvt_query_pkey()
260 static int rvt_query_gid(struct ib_device *ibdev, u8 port_num, in rvt_query_gid() argument
[all …]
/drivers/soundwire/
Dstream.c71 addr1 = SDW_DPN_OFFSETCTRL2_B1(t_params->port_num); in _sdw_program_slave_port_params()
72 addr2 = SDW_DPN_BLOCKCTRL3_B1(t_params->port_num); in _sdw_program_slave_port_params()
73 addr3 = SDW_DPN_SAMPLECTRL2_B1(t_params->port_num); in _sdw_program_slave_port_params()
74 addr4 = SDW_DPN_HCTRL_B1(t_params->port_num); in _sdw_program_slave_port_params()
76 addr1 = SDW_DPN_OFFSETCTRL2_B0(t_params->port_num); in _sdw_program_slave_port_params()
77 addr2 = SDW_DPN_BLOCKCTRL3_B0(t_params->port_num); in _sdw_program_slave_port_params()
78 addr3 = SDW_DPN_SAMPLECTRL2_B0(t_params->port_num); in _sdw_program_slave_port_params()
79 addr4 = SDW_DPN_HCTRL_B0(t_params->port_num); in _sdw_program_slave_port_params()
138 t_params->port_num); in sdw_program_slave_port_params()
142 addr1 = SDW_DPN_PORTCTRL(t_params->port_num); in sdw_program_slave_port_params()
[all …]

12345678910>>...12