Home
last modified time | relevance | path

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

12345678910>>...16

/Linux-v6.6/drivers/platform/chrome/
Dcros_ec_typec.c123 static int cros_typec_add_partner(struct cros_typec_data *typec, int port_num, in cros_typec_add_partner() argument
126 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_add_partner()
147 static void cros_typec_unregister_altmodes(struct cros_typec_data *typec, int port_num, in cros_typec_unregister_altmodes() argument
150 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_unregister_altmodes()
191 int port_num) in cros_typec_remove_partner() argument
193 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_remove_partner()
198 cros_typec_unregister_altmodes(typec, port_num, true); in cros_typec_remove_partner()
218 int port_num) in cros_typec_remove_cable() argument
220 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_remove_cable()
225 cros_typec_unregister_altmodes(typec, port_num, false); in cros_typec_remove_cable()
[all …]
Dcros_typec_vdm.c20 void cros_typec_handle_vdm_attention(struct cros_typec_data *typec, int port_num) in cros_typec_handle_vdm_attention() argument
24 .port = port_num, in cros_typec_handle_vdm_attention()
35 dev_warn(typec->dev, "Failed VDM response fetch, port: %d\n", port_num); in cros_typec_handle_vdm_attention()
41 dev_dbg(typec->dev, "Received VDM Attention header: %x, port: %d\n", hdr, port_num); in cros_typec_handle_vdm_attention()
43 amode = typec_match_altmode(typec->ports[port_num]->port_altmode, in cros_typec_handle_vdm_attention()
48 svid, port_num); in cros_typec_handle_vdm_attention()
59 void cros_typec_handle_vdm_response(struct cros_typec_data *typec, int port_num) in cros_typec_handle_vdm_response() argument
63 .port = port_num, in cros_typec_handle_vdm_response()
73 dev_warn(typec->dev, "Failed VDM response fetch, port: %d\n", port_num); in cros_typec_handle_vdm_response()
79 dev_dbg(typec->dev, "Received VDM header: %x, port: %d\n", hdr, port_num); in cros_typec_handle_vdm_response()
[all …]
Dcros_typec_switch.c23 int port_num; member
36 static int cros_typec_cmd_mux_set(struct cros_typec_switch_data *sdata, int port_num, u8 index, in cros_typec_cmd_mux_set() argument
40 .port = port_num, in cros_typec_cmd_mux_set()
70 static int cros_typec_send_clear_event(struct cros_typec_switch_data *sdata, int port_num, in cros_typec_send_clear_event() argument
74 .port = port_num, in cros_typec_send_clear_event()
82 static bool cros_typec_check_event(struct cros_typec_switch_data *sdata, int port_num, u32 mask) in cros_typec_check_event() argument
86 .port = port_num, in cros_typec_check_event()
93 dev_warn(sdata->dev, "EC_CMD_TYPEC_STATUS failed for port: %d\n", port_num); in cros_typec_check_event()
108 static int cros_typec_configure_mux(struct cros_typec_switch_data *sdata, int port_num, int index, in cros_typec_configure_mux() argument
127 ret = cros_typec_send_clear_event(sdata, port_num, event_mask); in cros_typec_configure_mux()
[all …]
/Linux-v6.6/drivers/net/dsa/qca/
Dqca8k-leds.c22 qca8k_get_enable_led_reg(int port_num, int led_num, struct qca8k_led_pattern_en *reg_info) in qca8k_get_enable_led_reg() argument
24 switch (port_num) { in qca8k_get_enable_led_reg()
34 reg_info->shift = QCA8K_LED_PHY123_PATTERN_EN_SHIFT(port_num, led_num); in qca8k_get_enable_led_reg()
48 qca8k_get_control_led_reg(int port_num, int led_num, struct qca8k_led_pattern_en *reg_info) in qca8k_get_control_led_reg() argument
56 if (port_num == 4) in qca8k_get_control_led_reg()
102 qca8k_get_enable_led_reg(led->port_num, led->led_num, &reg_info); in qca8k_led_brightness_set()
142 if (led->port_num == 0 || led->port_num == 4) { in qca8k_led_brightness_set()
171 qca8k_get_enable_led_reg(led->port_num, led->led_num, &reg_info); in qca8k_led_brightness_get()
179 if (led->port_num == 0 || led->port_num == 4) { in qca8k_led_brightness_get()
212 qca8k_get_enable_led_reg(led->port_num, led->led_num, &reg_info); in qca8k_cled_blink_set()
[all …]
/Linux-v6.6/drivers/media/pci/ddbridge/
Dddbridge-hw.c91 .port_num = 4,
99 .port_num = 4,
107 .port_num = 2,
115 .port_num = 4,
127 .port_num = 4,
135 .port_num = 3,
143 .port_num = 4,
151 .port_num = 4,
162 .port_num = 4,
173 .port_num = 4,
[all …]
/Linux-v6.6/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 …]
/Linux-v6.6/drivers/infiniband/hw/usnic/
Dusnic_transport.c85 u16 usnic_transport_rsrv_port(enum usnic_transport_type type, u16 port_num) in usnic_transport_rsrv_port() argument
89 if (!port_num) { in usnic_transport_rsrv_port()
90 port_num = bitmap_find_next_zero_area(roce_bitmap, in usnic_transport_rsrv_port()
95 roce_next_port = (port_num & 4095) + 1; in usnic_transport_rsrv_port()
96 } else if (test_bit(port_num, roce_bitmap)) { in usnic_transport_rsrv_port()
102 bitmap_set(roce_bitmap, port_num, 1); in usnic_transport_rsrv_port()
110 usnic_dbg("Allocating port %hu for %s\n", port_num, in usnic_transport_rsrv_port()
112 return port_num; in usnic_transport_rsrv_port()
118 void usnic_transport_unrsrv_port(enum usnic_transport_type type, u16 port_num) in usnic_transport_unrsrv_port() argument
122 if (!port_num) { in usnic_transport_unrsrv_port()
[all …]
/Linux-v6.6/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 …]
Dsysfs.c72 u32 port_num; member
79 unsigned int index, unsigned int port_num, char *buf);
81 unsigned int index, unsigned int port_num,
88 unsigned int index, unsigned int port_num, char *buf);
90 unsigned int index, unsigned int port_num,
115 return port_attr->show(p->ibdev, p->port_num, port_attr, buf); in port_attr_show()
128 return port_attr->store(p->ibdev, p->port_num, port_attr, buf, count); in port_attr_store()
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()
170 static ssize_t hw_stat_port_show(struct ib_device *ibdev, u32 port_num, in hw_stat_port_show() argument
[all …]
Dsmi.c44 static enum smi_action __smi_handle_dr_smp_send(bool is_switch, u32 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, u32 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, u32 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, u32 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 ib_get_cached_subnet_prefix(dev, pp->port_num, subnet_prefix); in get_pkey_and_subnet_prefix()
196 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
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 u32 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 u32 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 …]
Drw.c29 static inline bool rdma_rw_can_use_mr(struct ib_device *dev, u32 port_num) in rdma_rw_can_use_mr() argument
31 if (rdma_protocol_iwarp(dev, port_num)) in rdma_rw_can_use_mr()
46 static inline bool rdma_rw_io_needs_mr(struct ib_device *dev, u32 port_num, in rdma_rw_io_needs_mr() argument
50 if (rdma_protocol_iwarp(dev, port_num)) in rdma_rw_io_needs_mr()
91 static int rdma_rw_init_one_mr(struct ib_qp *qp, u32 port_num, in rdma_rw_init_one_mr() argument
115 if (rdma_protocol_iwarp(qp->device, port_num)) in rdma_rw_init_one_mr()
125 u32 port_num, struct scatterlist *sg, u32 sg_cnt, u32 offset, in rdma_rw_init_mr_wrs() argument
144 ret = rdma_rw_init_one_mr(qp, port_num, reg, sg, sg_cnt, in rdma_rw_init_mr_wrs()
165 } else if (!rdma_cap_read_inv(qp->device, port_num)) { in rdma_rw_init_mr_wrs()
292 int rdma_rw_ctx_init(struct rdma_rw_ctx *ctx, struct ib_qp *qp, u32 port_num, in rdma_rw_ctx_init() argument
[all …]
/Linux-v6.6/drivers/usb/gadget/function/
Du_serial.c111 u8 port_num; member
265 pr_vdebug("ttyGS%d: tx len=%d, %3ph ...\n", port->port_num, len, req->buf); in gs_start_tx()
384 pr_vdebug("ttyGS%d: shutdown\n", port->port_num); in gs_rx_push()
390 port->port_num, req->status); in gs_rx_push()
419 port->port_num, count, req->actual); in gs_rx_push()
598 int port_num = tty->index; in gs_open() local
602 mutex_lock(&ports[port_num].lock); in gs_open()
603 port = ports[port_num].port; in gs_open()
625 port_num, tty, file); in gs_open()
645 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()
272 return gserial_set_console(to_f_serial_opts(item)->port_num, in f_serial_console_store()
278 return gserial_get_console(to_f_serial_opts(item)->port_num, page); in f_serial_console_show()
287 return sprintf(page, "%u\n", to_f_serial_opts(item)->port_num); in f_serial_port_num_show()
290 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 …]
/Linux-v6.6/drivers/infiniband/hw/mlx5/
Dcong.c292 static int mlx5_ib_get_cc_params(struct mlx5_ib_dev *dev, u32 port_num, in mlx5_ib_get_cc_params() argument
303 mdev = mlx5_ib_get_native_port_mdev(dev, port_num + 1, NULL); in mlx5_ib_get_cc_params()
325 mlx5_ib_put_native_port_mdev(dev, port_num + 1); in mlx5_ib_get_cc_params()
329 static int mlx5_ib_set_cc_params(struct mlx5_ib_dev *dev, u32 port_num, in mlx5_ib_set_cc_params() argument
341 mdev = mlx5_ib_get_native_port_mdev(dev, port_num + 1, NULL); in mlx5_ib_set_cc_params()
367 mlx5_ib_put_native_port_mdev(dev, port_num + 1); in mlx5_ib_set_cc_params()
391 ret = mlx5_ib_set_cc_params(param->dev, param->port_num, offset, var); in set_param()
404 ret = mlx5_ib_get_cc_params(param->dev, param->port_num, offset, &var); in get_param()
422 void mlx5_ib_cleanup_cong_debugfs(struct mlx5_ib_dev *dev, u32 port_num) in mlx5_ib_cleanup_cong_debugfs() argument
425 !dev->port[port_num].dbg_cc_params || in mlx5_ib_cleanup_cong_debugfs()
[all …]
/Linux-v6.6/drivers/infiniband/hw/qib/
Dqib_sysfs.c42 u32 port_num; in qib_get_pportdata_kobj() local
43 struct ib_device *ibdev = ib_port_sysfs_get_ibdev_kobj(kobj, &port_num); in qib_get_pportdata_kobj()
46 return &dd->pport[port_num - 1]; in qib_get_pportdata_kobj()
52 static ssize_t hrtbt_enable_show(struct ib_device *ibdev, u32 port_num, in hrtbt_enable_show() argument
56 struct qib_pportdata *ppd = &dd->pport[port_num - 1]; in hrtbt_enable_show()
61 static ssize_t hrtbt_enable_store(struct ib_device *ibdev, u32 port_num, in hrtbt_enable_store() argument
66 struct qib_pportdata *ppd = &dd->pport[port_num - 1]; in hrtbt_enable_store()
88 static ssize_t loopback_store(struct ib_device *ibdev, u32 port_num, in loopback_store() argument
93 struct qib_pportdata *ppd = &dd->pport[port_num - 1]; in loopback_store()
104 static ssize_t led_override_store(struct ib_device *ibdev, u32 port_num, in led_override_store() argument
[all …]
/Linux-v6.6/include/rdma/
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);
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,
Dib_verbs.h157 u32 port_num; member
760 u32 port_num; member
943 u32 port_num; member
1032 u32 port_num; /* valid only for DR SMPs on switches */ member
1187 u32 port_num; member
1306 u32 port_num; member
1429 u32 port_num; /* valid for DR SMPs on switch only */ member
1747 u32 port_num; member
2235 u32 port_num; member
2266 int (*initialize_rdma_netdev)(struct ib_device *device, u32 port_num,
[all …]
/Linux-v6.6/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 …]
/Linux-v6.6/drivers/infiniband/hw/hfi1/
Dipoib_main.c67 priv->port_num); in hfi1_ipoib_dev_open()
122 struct hfi1_ibport *ibp = to_iport(priv->device, priv->port_num); in hfi1_ipoib_mcast_attach()
152 struct hfi1_ibport *ibp = to_iport(priv->device, priv->port_num); in hfi1_ipoib_mcast_detach()
187 priv->port_num, in hfi1_ipoib_set_id()
193 u32 port_num, in hfi1_ipoib_setup_rn() argument
208 rn->port_num = port_num; in hfi1_ipoib_setup_rn()
215 priv->port_num = port_num; in hfi1_ipoib_setup_rn()
218 ib_query_pkey(device, port_num, priv->pkey_index, &priv->pkey); in hfi1_ipoib_setup_rn()
242 u32 port_num, in hfi1_ipoib_rn_get_params() argument
254 if (!port_num || port_num > dd->num_pports) in hfi1_ipoib_rn_get_params()
/Linux-v6.6/drivers/infiniband/hw/mlx4/
Dsysfs.c202 int add_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num, in add_sysfs_port_mcg_attr() argument
205 struct mlx4_ib_iov_port *port = &device->iov_ports[port_num - 1]; in add_sysfs_port_mcg_attr()
215 void del_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num, in del_sysfs_port_mcg_attr() argument
218 struct mlx4_ib_iov_port *port = &device->iov_ports[port_num - 1]; in del_sysfs_port_mcg_attr()
223 static int add_port_entries(struct mlx4_ib_dev *device, int port_num) in add_port_entries() argument
233 ret = __mlx4_ib_query_port(&device->ib_dev, port_num, &attr, 1); in add_port_entries()
237 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()
[all …]
/Linux-v6.6/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 …]

12345678910>>...16