Home
last modified time | relevance | path

Searched refs:ib_port (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.4/drivers/infiniband/core/
Dsysfs.c48 struct ib_port;
51 struct ib_port *port;
56 struct ib_port { struct
70 ssize_t (*show)(struct ib_port *, struct port_attribute *, char *buf); argument
71 ssize_t (*store)(struct ib_port *, struct port_attribute *,
105 struct ib_port *p = container_of(kobj, struct ib_port, kobj); in port_attr_show()
119 struct ib_port *p = container_of(kobj, struct ib_port, kobj); in port_attr_store()
136 struct ib_port *p = container_of(kobj, struct gid_attr_group, in gid_attr_show()
149 static ssize_t state_show(struct ib_port *p, struct port_attribute *unused, in state_show()
173 static ssize_t lid_show(struct ib_port *p, struct port_attribute *unused, in lid_show()
[all …]
/Linux-v5.4/net/smc/
Dsmc_pnet.c67 u8 ib_port; member
202 int ib_port = new_pnetelem->ib_port; in smc_pnet_enter() local
205 if (smc_pnet_match(ib_dev->pnetid[ib_port - 1], pnet_null)) { in smc_pnet_enter()
206 memcpy(ib_dev->pnetid[ib_port - 1], in smc_pnet_enter()
208 ib_dev->pnetid_by_user[ib_port - 1] = true; in smc_pnet_enter()
369 pnetelem->ib_port = nla_get_u8(tb[SMC_PNETID_IBPORT]); in smc_pnet_fill_entry()
370 if (pnetelem->ib_port < 1 || in smc_pnet_fill_entry()
371 pnetelem->ib_port > SMC_MAX_PORTS) in smc_pnet_fill_entry()
399 nla_put_u8(msg, SMC_PNETID_IBPORT, pnetelem->ib_port)) in smc_pnet_set_nla()
524 tmp_entry.ib_port = ibport + 1; in _smc_pnet_dump()
[all …]
Dsmc_core.h243 u8 ib_port; member
Dsmc_core.c247 lnk->ibport = ini->ib_port; in smc_lgr_create()
249 ini->ib_dev->pattr[ini->ib_port - 1].active_mtu; in smc_lgr_create()
Dsmc_clc.c422 memcpy(&pclc.lcl.mac, &ini->ib_dev->mac[ini->ib_port - 1], in smc_clc_send_proposal()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dswitchx2.c222 u8 ib_port) in mlxsw_sx_port_ib_port_set() argument
229 mlxsw_reg_plib_ib_port_set(plib_pl, ib_port); in mlxsw_sx_port_ib_port_set()
Dreg.h5098 MLXSW_ITEM32(reg, plib, ib_port, 0x00, 0, 8);
/Linux-v5.4/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c4066 u8 ib_port; in hns_roce_v2_set_path() local
4070 ib_port = (attr_mask & IB_QP_PORT) ? attr->port_num : hr_qp->port + 1; in hns_roce_v2_set_path()
4071 hr_port = ib_port - 1; in hns_roce_v2_set_path()
4072 is_roce_protocol = rdma_cap_eth_ah(&hr_dev->ib_dev, ib_port) && in hns_roce_v2_set_path()
/Linux-v5.4/include/linux/mlx5/
Dmlx5_ifc.h8611 u8 ib_port[0x8]; member