Lines Matching refs:sc_page_off
87 __sc->sc_node->nd_num, __sc->sc_page, __sc->sc_page_off , \
1325 sc->sc_page_off -= sizeof(struct o2net_handshake); in o2net_check_handshake()
1326 if (sc->sc_page_off) in o2net_check_handshake()
1327 memmove(hand, hand + 1, sc->sc_page_off); in o2net_check_handshake()
1346 if(sc->sc_page_off < sizeof(struct o2net_handshake)) { in o2net_advance_rx()
1347 data = page_address(sc->sc_page) + sc->sc_page_off; in o2net_advance_rx()
1348 datalen = sizeof(struct o2net_handshake) - sc->sc_page_off; in o2net_advance_rx()
1351 sc->sc_page_off += ret; in o2net_advance_rx()
1354 if (sc->sc_page_off == sizeof(struct o2net_handshake)) { in o2net_advance_rx()
1363 if (sc->sc_page_off < sizeof(struct o2net_msg)) { in o2net_advance_rx()
1364 data = page_address(sc->sc_page) + sc->sc_page_off; in o2net_advance_rx()
1365 datalen = sizeof(struct o2net_msg) - sc->sc_page_off; in o2net_advance_rx()
1368 sc->sc_page_off += ret; in o2net_advance_rx()
1372 if (sc->sc_page_off == sizeof(struct o2net_msg)) { in o2net_advance_rx()
1383 if (sc->sc_page_off < sizeof(struct o2net_msg)) { in o2net_advance_rx()
1391 msglog(hdr, "at page_off %zu\n", sc->sc_page_off); in o2net_advance_rx()
1394 if (sc->sc_page_off - sizeof(struct o2net_msg) < be16_to_cpu(hdr->data_len)) { in o2net_advance_rx()
1396 data = page_address(sc->sc_page) + sc->sc_page_off; in o2net_advance_rx()
1398 sc->sc_page_off; in o2net_advance_rx()
1401 sc->sc_page_off += ret; in o2net_advance_rx()
1406 if (sc->sc_page_off - sizeof(struct o2net_msg) == be16_to_cpu(hdr->data_len)) { in o2net_advance_rx()
1413 sc->sc_page_off = 0; in o2net_advance_rx()