/drivers/platform/chrome/ |
D | cros_ec_typec.c | 168 static int cros_typec_add_partner(struct cros_typec_data *typec, int port_num, in cros_typec_add_partner() argument 171 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_add_partner() 192 static void cros_typec_unregister_altmodes(struct cros_typec_data *typec, int port_num, in cros_typec_unregister_altmodes() argument 195 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_unregister_altmodes() 220 int port_num) in cros_typec_remove_partner() argument 222 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_remove_partner() 227 cros_typec_unregister_altmodes(typec, port_num, true); in cros_typec_remove_partner() 238 int port_num) in cros_typec_remove_cable() argument 240 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_remove_cable() 245 cros_typec_unregister_altmodes(typec, port_num, false); in cros_typec_remove_cable() [all …]
|
/drivers/media/pci/ddbridge/ |
D | ddbridge-hw.c | 100 .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/ |
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 …]
|
/drivers/infiniband/hw/usnic/ |
D | usnic_transport.c | 86 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 …]
|
D | usnic_ib_qp_grp.c | 207 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/ |
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 | 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 | 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 | 28 static inline bool rdma_rw_can_use_mr(struct ib_device *dev, u32 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, u32 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, u32 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 u32 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, u32 port_num, in rdma_rw_ctx_init() argument [all …]
|
D | mad.c | 116 __ib_get_mad_port(struct ib_device *device, u32 port_num) in __ib_get_mad_port() argument 121 if (entry->device == device && entry->port_num == port_num) in __ib_get_mad_port() 132 ib_get_mad_port(struct ib_device *device, u32 port_num) in ib_get_mad_port() argument 138 entry = __ib_get_mad_port(device, port_num); in ib_get_mad_port() 219 u32 port_num, in ib_register_mad_agent() argument 239 if ((qp_type == IB_QPT_SMI && !rdma_cap_ib_smi(device, port_num)) || in ib_register_mad_agent() 240 (qp_type == IB_QPT_GSI && !rdma_cap_ib_cm(device, port_num))) in ib_register_mad_agent() 347 port_priv = ib_get_mad_port(device, port_num); in ib_register_mad_agent() 350 __func__, port_num); in ib_register_mad_agent() 389 mad_agent_priv->agent.port_num = port_num; in ib_register_mad_agent() [all …]
|
/drivers/usb/gadget/function/ |
D | u_serial.c | 110 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 …]
|
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 …]
|
D | f_acm.c | 43 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/ |
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 …]
|
/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 …]
|
/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()
|
/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 …]
|
D | mad.c | 91 static void handle_client_rereg_event(struct mlx4_ib_dev *dev, u32 port_num); 92 static void handle_lid_change_event(struct mlx4_ib_dev *dev, u32 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, u32 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/ |
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 …]
|
/drivers/infiniband/sw/rdmavt/ |
D | vt.c | 119 static int rvt_query_port(struct ib_device *ibdev, u32 port_num, in rvt_query_port() argument 124 u32 port_index = ibport_num_to_idx(ibdev, port_num); in rvt_query_port() 139 return rdi->driver_f.query_port_state(rdi, port_num, props); in rvt_query_port() 151 static int rvt_modify_port(struct ib_device *ibdev, u32 port_num, in rvt_modify_port() argument 157 u32 port_index = ibport_num_to_idx(ibdev, port_num); in rvt_modify_port() 169 rdi->driver_f.cap_mask_chg(rdi, port_num); in rvt_modify_port() 171 ret = rdi->driver_f.shut_down_port(rdi, port_num); in rvt_modify_port() 187 static int rvt_query_pkey(struct ib_device *ibdev, u32 port_num, u16 index, in rvt_query_pkey() argument 199 port_index = ibport_num_to_idx(ibdev, port_num); in rvt_query_pkey() 217 static int rvt_query_gid(struct ib_device *ibdev, u32 port_num, in rvt_query_gid() argument [all …]
|
/drivers/soundwire/ |
D | stream.c | 72 addr1 = SDW_DPN_OFFSETCTRL2_B1(t_params->port_num); in _sdw_program_slave_port_params() 73 addr2 = SDW_DPN_BLOCKCTRL3_B1(t_params->port_num); in _sdw_program_slave_port_params() 74 addr3 = SDW_DPN_SAMPLECTRL2_B1(t_params->port_num); in _sdw_program_slave_port_params() 75 addr4 = SDW_DPN_HCTRL_B1(t_params->port_num); in _sdw_program_slave_port_params() 77 addr1 = SDW_DPN_OFFSETCTRL2_B0(t_params->port_num); in _sdw_program_slave_port_params() 78 addr2 = SDW_DPN_BLOCKCTRL3_B0(t_params->port_num); in _sdw_program_slave_port_params() 79 addr3 = SDW_DPN_SAMPLECTRL2_B0(t_params->port_num); in _sdw_program_slave_port_params() 80 addr4 = SDW_DPN_HCTRL_B0(t_params->port_num); in _sdw_program_slave_port_params() 142 t_params->port_num); in sdw_program_slave_port_params() 146 addr1 = SDW_DPN_PORTCTRL(t_params->port_num); in sdw_program_slave_port_params() [all …]
|