Home
last modified time | relevance | path

Searched refs:piosize (Results 1 – 2 of 2) sorted by relevance

/drivers/infiniband/hw/qib/
Dqib_driver.c615 u32 piosize; in qib_set_mtu() local
629 piosize = ppd->ibmaxlen; in qib_set_mtu()
632 if (arg >= (piosize - QIB_PIO_MAXIBHDR)) { in qib_set_mtu()
634 if (piosize != ppd->init_ibmaxlen) { in qib_set_mtu()
635 if (arg > piosize && arg <= ppd->init_ibmaxlen) in qib_set_mtu()
636 piosize = ppd->init_ibmaxlen - 2 * sizeof(u32); in qib_set_mtu()
637 ppd->ibmaxlen = piosize; in qib_set_mtu()
640 piosize = arg + QIB_PIO_MAXIBHDR - 2 * sizeof(u32); in qib_set_mtu()
641 ppd->ibmaxlen = piosize; in qib_set_mtu()
/drivers/infiniband/hw/ipath/
Dipath_driver.c2131 u32 piosize; in ipath_set_mtu() local
2152 piosize = dd->ipath_ibmaxlen; in ipath_set_mtu()
2155 if (arg >= (piosize - IPATH_PIO_MAXIBHDR)) { in ipath_set_mtu()
2157 if (piosize != dd->ipath_init_ibmaxlen) { in ipath_set_mtu()
2158 if (arg > piosize && arg <= dd->ipath_init_ibmaxlen) in ipath_set_mtu()
2159 piosize = dd->ipath_init_ibmaxlen; in ipath_set_mtu()
2160 dd->ipath_ibmaxlen = piosize; in ipath_set_mtu()
2164 piosize = arg + IPATH_PIO_MAXIBHDR; in ipath_set_mtu()
2166 "(mtu 0x%x)\n", dd->ipath_ibmaxlen, piosize, in ipath_set_mtu()
2168 dd->ipath_ibmaxlen = piosize; in ipath_set_mtu()
[all …]