Searched refs:mtu_to_enum (Results 1 – 6 of 6) sorted by relevance
265 static int mtu_to_enum(u32 mtu) in mtu_to_enum() function303 pmtu = mtu_to_enum(dd->pport[pidx].ibmtu); in qib_get_pmtu_from_attr()311 return mtu_to_enum(mtu); in qib_mtu_to_path_mtu()
796 return mtu_to_enum(mtu, OPA_MTU_8192); in mtu_to_path_mtu()836 return mtu_to_enum(dd->pport[pidx].ibmtu, IB_MTU_2048); in get_pmtu_from_attr()
1396 props->max_mtu = mtu_to_enum((!valid_ib_mtu(hfi1_max_mtu) ? in query_port()1399 mtu_to_enum(ppd->ibmtu, IB_MTU_4096); in query_port()
848 mtu = mtu_to_enum(dd->vld[i].mtu, HFI1_DEFAULT_ACTIVE_MTU); in __subn_get_opa_portinfo()855 mtu = mtu_to_enum(dd->vld[15].mtu, 2048); in __subn_get_opa_portinfo()912 pi->mtucap = mtu_to_enum(hfi1_max_mtu, IB_MTU_4096); in __subn_get_opa_portinfo()
1200 int mtu_to_enum(u32 mtu, int default_if_bad) in mtu_to_enum() function
1870 int mtu_to_enum(u32 mtu, int default_if_bad);