/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() 62 ret, dev->ib_dev.name, port_num); in mthca_update_rate() 66 dev->rate[port_num - 1] = tprops->active_speed * in mthca_update_rate() 75 u8 port_num, u16 lid, u8 sl) in update_sm_ah() argument 81 if (!dev->send_agent[port_num - 1][0]) in update_sm_ah() 87 ah_attr.port_num = port_num; in update_sm_ah() 89 new_ah = ib_create_ah(dev->send_agent[port_num - 1][0]->qp->pd, in update_sm_ah() 95 if (dev->sm_ah[port_num - 1]) in update_sm_ah() 96 ib_destroy_ah(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() 245 qp_flow->usnic_roce.port_num = port_num; in create_roce_custom_flow() 252 usnic_transport_unrsrv_port(trans_type, port_num); in create_roce_custom_flow() 260 qp_flow->usnic_roce.port_num); in release_roce_custom_flow() 277 uint16_t port_num; in create_udp_flow() local 288 err = usnic_transport_sock_get_addr(sock, &proto, &addr, &port_num); in create_udp_flow() [all …]
|
/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 164 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, 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 …]
|
D | sysfs.c | 63 u8 port_num; member 95 u8 port_num; member 148 ret = ib_query_port(p->ibdev, p->port_num, &attr); in state_show() 163 ret = ib_query_port(p->ibdev, p->port_num, &attr); in lid_show() 177 ret = ib_query_port(p->ibdev, p->port_num, &attr); in lid_mask_count_show() 190 ret = ib_query_port(p->ibdev, p->port_num, &attr); in sm_lid_show() 203 ret = ib_query_port(p->ibdev, p->port_num, &attr); in sm_sl_show() 216 ret = ib_query_port(p->ibdev, p->port_num, &attr); in cap_mask_show() 231 ret = ib_query_port(p->ibdev, p->port_num, &attr); in rate_show() 278 ret = ib_query_port(p->ibdev, p->port_num, &attr); in phys_state_show() [all …]
|
D | device.c | 659 u8 port_num, in ib_query_port() argument 665 if (port_num < rdma_start_port(device) || port_num > rdma_end_port(device)) in ib_query_port() 669 err = device->query_port(device, port_num, port_attr); in ib_query_port() 673 if (rdma_port_get_link_layer(device, port_num) != IB_LINK_LAYER_INFINIBAND) in ib_query_port() 676 err = ib_query_gid(device, port_num, 0, &gid, NULL); in ib_query_port() 697 u8 port_num, int index, union ib_gid *gid, in ib_query_gid() argument 700 if (rdma_cap_roce_gid_table(device, port_num)) in ib_query_gid() 701 return ib_get_cached_gid(device, port_num, index, gid, attr); in ib_query_gid() 706 return device->query_gid(device, port_num, index, gid); in ib_query_gid() 786 u8 port_num, u16 index, u16 *pkey) in ib_query_pkey() argument [all …]
|
D | cache.c | 55 u8 port_num; member 122 event.element.port_num = port; in dispatch_gid_change_event() 856 u8 port_num, in ib_get_cached_gid() argument 864 struct ib_gid_table *table = ports_table[port_num - rdma_start_port(device)]; in ib_get_cached_gid() 866 if (port_num < rdma_start_port(device) || port_num > rdma_end_port(device)) in ib_get_cached_gid() 870 res = __ib_cache_gid_get(device, port_num, index, gid, gid_attr); in ib_get_cached_gid() 881 u8 *port_num, in ib_find_cached_gid() argument 884 return ib_cache_gid_find(device, gid, gid_type, ndev, port_num, index); in ib_find_cached_gid() 890 u8 port_num, in ib_find_gid_by_filter() argument 897 if (!rdma_cap_roce_gid_table(device, port_num) && filter) in ib_find_gid_by_filter() [all …]
|
D | rw.c | 34 static inline bool rdma_rw_can_use_mr(struct ib_device *dev, u8 port_num) in rdma_rw_can_use_mr() argument 36 if (rdma_protocol_iwarp(dev, port_num)) in rdma_rw_can_use_mr() 51 static inline bool rdma_rw_io_needs_mr(struct ib_device *dev, u8 port_num, in rdma_rw_io_needs_mr() argument 54 if (rdma_protocol_iwarp(dev, port_num) && dir == DMA_FROM_DEVICE) in rdma_rw_io_needs_mr() 68 static int rdma_rw_init_one_mr(struct ib_qp *qp, u8 port_num, in rdma_rw_init_one_mr() argument 98 if (rdma_protocol_iwarp(qp->device, port_num)) in rdma_rw_init_one_mr() 108 u8 port_num, struct scatterlist *sg, u32 sg_cnt, u32 offset, in rdma_rw_init_mr_wrs() argument 126 ret = rdma_rw_init_one_mr(qp, port_num, reg, sg, sg_cnt, in rdma_rw_init_mr_wrs() 147 } else if (!rdma_cap_read_inv(qp->device, port_num)) { in rdma_rw_init_mr_wrs() 276 int rdma_rw_ctx_init(struct rdma_rw_ctx *ctx, struct ib_qp *qp, u8 port_num, in rdma_rw_ctx_init() argument [all …]
|
D | mad.c | 92 __ib_get_mad_port(struct ib_device *device, int port_num) in __ib_get_mad_port() argument 97 if (entry->device == device && entry->port_num == port_num) in __ib_get_mad_port() 108 ib_get_mad_port(struct ib_device *device, int port_num) in ib_get_mad_port() argument 114 entry = __ib_get_mad_port(device, port_num); in ib_get_mad_port() 194 u8 port_num, in ib_register_mad_agent() argument 317 port_priv = ib_get_mad_port(device, port_num); in ib_register_mad_agent() 357 mad_agent_priv->agent.port_num = port_num; in ib_register_mad_agent() 481 u8 port_num, in ib_register_mad_snoop() argument 504 port_priv = ib_get_mad_port(device, port_num); in ib_register_mad_snoop() 523 mad_snoop_priv->agent.port_num = port_num; in ib_register_mad_snoop() [all …]
|
D | multicast.c | 66 u8 port_num; member 337 port->port_num, IB_MGMT_METHOD_SET, in send_join() 356 port->port_num, IB_SA_METHOD_DELETE, &rec, in send_leave() 393 group->port->port_num, in process_group_error() 523 group->port->port_num, be16_to_cpu(rec->pkey), in join_handler() 608 struct ib_device *device, u8 port_num, in ib_sa_join_multicast() argument 638 member->group = acquire_group(&dev->port[port_num - dev->start_port], in ib_sa_join_multicast() 693 int ib_sa_get_mcmember_rec(struct ib_device *device, u8 port_num, in ib_sa_get_mcmember_rec() argument 706 port = &dev->port[port_num - dev->start_port]; in ib_sa_get_mcmember_rec() 719 int ib_init_ah_from_mcmember(struct ib_device *device, u8 port_num, in ib_init_ah_from_mcmember() argument [all …]
|
/drivers/usb/gadget/function/ |
D | u_serial.c | 116 u8 port_num; member 407 port->port_num, len, *((u8 *)req->buf), in gs_start_tx() 526 pr_vdebug("ttyGS%d: shutdown\n", port->port_num); in gs_rx_push() 532 port->port_num, req->status); in gs_rx_push() 561 port->port_num, count, req->actual); in gs_rx_push() 592 port->port_num); in gs_rx_push() 742 int port_num = tty->index; in gs_open() local 747 mutex_lock(&ports[port_num].lock); in gs_open() 748 port = ports[port_num].port; in gs_open() 770 mutex_unlock(&ports[port_num].lock); in gs_open() [all …]
|
D | f_obex.c | 38 u8 port_num; member 203 "reset obex ttyGS%d control\n", obex->port_num); in obex_set_alt() 211 "reset obex ttyGS%d\n", obex->port_num); in obex_set_alt() 217 "init obex ttyGS%d\n", obex->port_num); in obex_set_alt() 230 "activate obex ttyGS%d\n", obex->port_num); in obex_set_alt() 231 gserial_connect(&obex->port, obex->port_num); in obex_set_alt() 257 dev_dbg(&cdev->gadget->dev, "obex ttyGS%d disable\n", obex->port_num); in obex_disable() 273 obex->port_num, status); in obex_connect() 286 obex->port_num, status); in obex_disconnect() 373 obex->port_num, in obex_bind() [all …]
|
D | f_serial.c | 33 u8 port_num; member 158 "reset generic ttyGS%d\n", gser->port_num); in gser_set_alt() 163 "activate generic ttyGS%d\n", gser->port_num); in gser_set_alt() 171 gserial_connect(&gser->port, gser->port_num); in gser_set_alt() 181 "generic ttyGS%d deactivated\n", gser->port_num); in gser_disable() 243 gser->port_num, in gser_bind() 274 return sprintf(page, "%u\n", to_f_serial_opts(item)->port_num); in f_serial_port_num_show() 277 CONFIGFS_ATTR_RO(f_serial_, port_num); 295 gserial_free_line(opts->port_num); in gser_free_inst() 309 ret = gserial_alloc_line(&opts->port_num); in gser_alloc_inst() [all …]
|
D | f_acm.c | 46 u8 port_num; member 316 acm->port_num, req->status); in acm_complete_set_line_coding() 323 acm->port_num, req->actual); in acm_complete_set_line_coding() 409 acm->port_num, ctrl->bRequestType, ctrl->bRequest, in acm_setup() 416 acm->port_num, value); in acm_setup() 444 "reset acm ttyGS%d\n", acm->port_num); in acm_set_alt() 449 "activate acm ttyGS%d\n", acm->port_num); in acm_set_alt() 459 gserial_connect(&acm->port, acm->port_num); in acm_set_alt() 472 dev_dbg(&cdev->gadget->dev, "acm ttyGS%d deactivated\n", acm->port_num); in acm_disable() 527 acm->port_num, status); in acm_cdc_notify() [all …]
|
D | u_serial.h | 22 u8 port_num; member 64 int gserial_connect(struct gserial *, u8 port_num); 68 int gser_bind_config(struct usb_configuration *c, u8 port_num); 69 int obex_bind_config(struct usb_configuration *c, u8 port_num);
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_msg.h | 44 port_num, magic, \ argument 57 "d"(port_num), \ 88 port_num, magic, bp, \ argument 104 "d"(port_num), \ 113 port_num, magic, bp, \ argument 129 "d"(port_num), \ 142 port_num, magic, bp, \ argument 158 "d"(port_num), \ 167 port_num, magic, bp, \ argument 183 "d"(port_num), \
|
/drivers/infiniband/sw/rxe/ |
D | rxe_av.c | 41 if (attr->port_num != 1) { in rxe_av_chk_attr() 42 pr_info("invalid port_num = %d\n", attr->port_num); in rxe_av_chk_attr() 59 int rxe_av_from_attr(struct rxe_dev *rxe, u8 port_num, in rxe_av_from_attr() argument 64 av->port_num = port_num; in rxe_av_from_attr() 72 attr->port_num = av->port_num; in rxe_av_to_attr()
|
/drivers/infiniband/hw/mlx5/ |
D | gsi.c | 45 u8 port_num; member 121 const u8 port_num = init_attr->port_num; in mlx5_ib_gsi_create_qp() local 128 if (port_num > ARRAY_SIZE(dev->devr.ports) || port_num < 1) { in mlx5_ib_gsi_create_qp() 131 port_num); in mlx5_ib_gsi_create_qp() 157 if (dev->devr.ports[port_num - 1].gsi) { in mlx5_ib_gsi_create_qp() 159 port_num); in mlx5_ib_gsi_create_qp() 169 gsi->port_num = port_num; in mlx5_ib_gsi_create_qp() 195 dev->devr.ports[init_attr->port_num - 1].gsi = gsi; in mlx5_ib_gsi_create_qp() 217 const int port_num = gsi->port_num; in mlx5_ib_gsi_destroy_qp() local 231 dev->devr.ports[port_num - 1].gsi = NULL; in mlx5_ib_gsi_destroy_qp() [all …]
|
/drivers/infiniband/hw/mlx4/ |
D | sysfs.c | 200 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 230 ret = __mlx4_ib_query_port(&device->ib_dev, port_num, &attr, 1); in add_port_entries() 234 port = &device->iov_ports[port_num - 1]; in add_port_entries() 236 port->num = port_num; in add_port_entries() 250 sprintf(buff, "%d", port_num); in add_port_entries() 349 port_num, ret); in add_port_entries() [all …]
|
D | mad.c | 89 static void handle_client_rereg_event(struct mlx4_ib_dev *dev, u8 port_num); 90 static void handle_lid_change_event(struct mlx4_ib_dev *dev, u8 port_num); 91 static void __propagate_pkey_ev(struct mlx4_ib_dev *dev, int port_num, 187 static void update_sm_ah(struct mlx4_ib_dev *dev, u8 port_num, u16 lid, u8 sl) in update_sm_ah() argument 193 if (!dev->send_agent[port_num - 1][0]) in update_sm_ah() 199 ah_attr.port_num = port_num; in update_sm_ah() 201 new_ah = ib_create_ah(dev->send_agent[port_num - 1][0]->qp->pd, in update_sm_ah() 207 if (dev->sm_ah[port_num - 1]) in update_sm_ah() 208 ib_destroy_ah(dev->sm_ah[port_num - 1]); in update_sm_ah() 209 dev->sm_ah[port_num - 1] = new_ah; in update_sm_ah() [all …]
|
D | alias_GUID.c | 76 u8 port_num, u8 *p_data) in mlx4_ib_update_cache_on_guid_change() argument 81 int port_index = port_num - 1; in mlx4_ib_update_cache_on_guid_change() 87 ports_guid[port_num - 1]. in mlx4_ib_update_cache_on_guid_change() 89 pr_debug("port: %d, guid_indexes: 0x%llx\n", port_num, guid_indexes); in mlx4_ib_update_cache_on_guid_change() 187 int block_num, u8 port_num, in mlx4_ib_notify_slaves_on_guid_change() argument 204 rec = &dev->sriov.alias_guid.ports_guid[port_num - 1]. in mlx4_ib_notify_slaves_on_guid_change() 207 ports_guid[port_num - 1]. in mlx4_ib_notify_slaves_on_guid_change() 209 pr_debug("port: %d, guid_indexes: 0x%llx\n", port_num, guid_indexes); in mlx4_ib_notify_slaves_on_guid_change() 221 slave_port = mlx4_phys_to_slave_port(dev->dev, slave_id, port_num); in mlx4_ib_notify_slaves_on_guid_change() 226 form_cache_ag = get_cached_alias_guid(dev, port_num, in mlx4_ib_notify_slaves_on_guid_change() [all …]
|
D | ah.c | 48 ah->av.ib.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24)); in create_ib_ah() 91 ret = ib_get_cached_gid(pd->device, ah_attr->port_num, in create_iboe_ah() 104 ah->av.eth.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24)); in create_iboe_ah() 105 ret = mlx4_ib_gid_index_to_real_index(ibdev, ah_attr->port_num, ah_attr->grh.sgid_index); in create_iboe_ah() 141 if (rdma_port_get_link_layer(pd->device, ah_attr->port_num) == IB_LINK_LAYER_ETHERNET) { in mlx4_ib_create_ah() 170 ah_attr->port_num = be32_to_cpu(ah->av.ib.port_pd) >> 24; in mlx4_ib_query_ah() 171 ll = rdma_port_get_link_layer(ibah->device, ah_attr->port_num); in mlx4_ib_query_ah()
|
/drivers/rapidio/ |
D | rio-scan.c | 599 int port_num; in rio_enum_peer() local 620 for (port_num = 0; in rio_enum_peer() 621 port_num < RIO_GET_TOTAL_PORTS(rdev->swpinfo); in rio_enum_peer() 622 port_num++) { in rio_enum_peer() 623 if (sw_inport == port_num) { in rio_enum_peer() 626 hopcount, port_num); in rio_enum_peer() 627 rdev->rswitch->port_ok |= (1 << port_num); in rio_enum_peer() 633 if (rio_sport_is_active(rdev, port_num)) { in rio_enum_peer() 636 port_num); in rio_enum_peer() 639 hopcount, port_num); in rio_enum_peer() [all …]
|
/drivers/infiniband/sw/rdmavt/ |
D | vt.c | 157 static int rvt_query_port(struct ib_device *ibdev, u8 port_num, in rvt_query_port() argument 162 int port_index = ibport_num_to_idx(ibdev, port_num); in rvt_query_port() 180 return rdi->driver_f.query_port_state(rdi, port_num, props); in rvt_query_port() 192 static int rvt_modify_port(struct ib_device *ibdev, u8 port_num, in rvt_modify_port() argument 198 int port_index = ibport_num_to_idx(ibdev, port_num); in rvt_modify_port() 208 rdi->driver_f.cap_mask_chg(rdi, port_num); in rvt_modify_port() 210 ret = rdi->driver_f.shut_down_port(rdi, port_num); in rvt_modify_port() 225 static int rvt_query_pkey(struct ib_device *ibdev, u8 port_num, u16 index, in rvt_query_pkey() argument 237 port_index = ibport_num_to_idx(ibdev, port_num); in rvt_query_pkey() 257 static int rvt_query_gid(struct ib_device *ibdev, u8 port_num, in rvt_query_gid() argument [all …]
|