/linux-6.1.9/drivers/platform/chrome/ |
D | cros_ec_typec.c | 187 static int cros_typec_add_partner(struct cros_typec_data *typec, int port_num, in cros_typec_add_partner() argument 190 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_add_partner() 211 static void cros_typec_unregister_altmodes(struct cros_typec_data *typec, int port_num, in cros_typec_unregister_altmodes() argument 214 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_unregister_altmodes() 255 int port_num) in cros_typec_remove_partner() argument 257 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_remove_partner() 262 cros_typec_unregister_altmodes(typec, port_num, true); in cros_typec_remove_partner() 282 int port_num) in cros_typec_remove_cable() argument 284 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_remove_cable() 289 cros_typec_unregister_altmodes(typec, port_num, false); in cros_typec_remove_cable() [all …]
|
D | cros_typec_switch.c | 23 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() 65 static int cros_typec_send_clear_event(struct cros_typec_switch_data *sdata, int port_num, in cros_typec_send_clear_event() argument 69 .port = port_num, in cros_typec_send_clear_event() 77 static bool cros_typec_check_event(struct cros_typec_switch_data *sdata, int port_num, u32 mask) in cros_typec_check_event() argument 81 .port = port_num, in cros_typec_check_event() 88 dev_warn(sdata->dev, "EC_CMD_TYPEC_STATUS failed for port: %d\n", port_num); in cros_typec_check_event() 103 static int cros_typec_configure_mux(struct cros_typec_switch_data *sdata, int port_num, int index, in cros_typec_configure_mux() argument 122 ret = cros_typec_send_clear_event(sdata, port_num, event_mask); in cros_typec_configure_mux() [all …]
|
/linux-6.1.9/drivers/media/pci/ddbridge/ |
D | ddbridge-hw.c | 91 .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-6.1.9/drivers/infiniband/hw/mthca/ |
D | mthca_mad.c | 50 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-6.1.9/drivers/infiniband/hw/usnic/ |
D | usnic_transport.c | 85 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-6.1.9/drivers/infiniband/core/ |
D | agent.c | 57 __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 …]
|
D | sysfs.c | 72 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 …]
|
D | smi.c | 44 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 …]
|
D | security.c | 52 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 …]
|
D | cache.c | 129 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 …]
|
D | rw.c | 29 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-6.1.9/drivers/usb/gadget/function/ |
D | u_serial.c | 107 u8 port_num; member 261 pr_vdebug("ttyGS%d: tx len=%d, %3ph ...\n", port->port_num, len, req->buf); in gs_start_tx() 380 pr_vdebug("ttyGS%d: shutdown\n", port->port_num); in gs_rx_push() 386 port->port_num, req->status); in gs_rx_push() 415 port->port_num, count, req->actual); in gs_rx_push() 590 int port_num = tty->index; in gs_open() local 594 mutex_lock(&ports[port_num].lock); in gs_open() 595 port = ports[port_num].port; in gs_open() 617 port_num, tty, file); in gs_open() 637 pr_debug("gs_open: start ttyGS%d\n", port->port_num); in gs_open() [all …]
|
D | u_serial.h | 19 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);
|
D | f_serial.c | 30 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 …]
|
D | f_obex.c | 34 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-6.1.9/drivers/infiniband/hw/mlx5/ |
D | cong.c | 270 static int mlx5_ib_get_cc_params(struct mlx5_ib_dev *dev, u32 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, u32 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, u32 port_num) in mlx5_ib_cleanup_cong_debugfs() argument 403 !dev->port[port_num].dbg_cc_params || in mlx5_ib_cleanup_cong_debugfs() [all …]
|
D | gsi.c | 94 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() 273 ret = ib_query_pkey(device, gsi->port_num, pkey_index, &pkey); in setup_qp() 276 gsi->port_num, qp_index); in setup_qp() [all …]
|
/linux-6.1.9/drivers/infiniband/hw/qib/ |
D | qib_sysfs.c | 42 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-6.1.9/include/rdma/ |
D | ib_cache.h | 13 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);
|
D | rw.h | 45 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,
|
D | ib_verbs.h | 157 u32 port_num; member 756 u32 port_num; member 939 u32 port_num; member 1026 u32 port_num; /* valid only for DR SMPs on switches */ member 1181 u32 port_num; member 1300 u32 port_num; member 1421 u32 port_num; /* valid for DR SMPs on switch only */ member 1737 u32 port_num; member 2224 u32 port_num; member 2255 int (*initialize_rdma_netdev)(struct ib_device *device, u32 port_num, [all …]
|
/linux-6.1.9/arch/mips/include/asm/octeon/ |
D | cvmx-pip.h | 292 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-6.1.9/drivers/infiniband/hw/hfi1/ |
D | ipoib_main.c | 67 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-6.1.9/drivers/infiniband/hw/mlx4/ |
D | sysfs.c | 202 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-6.1.9/drivers/rapidio/ |
D | rio-scan.c | 597 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 …]
|