Lines Matching refs:sc_page_off

86 	    __sc->sc_node->nd_num, __sc->sc_page, __sc->sc_page_off ,	\
1321 sc->sc_page_off -= sizeof(struct o2net_handshake); in o2net_check_handshake()
1322 if (sc->sc_page_off) in o2net_check_handshake()
1323 memmove(hand, hand + 1, sc->sc_page_off); in o2net_check_handshake()
1342 if(sc->sc_page_off < sizeof(struct o2net_handshake)) { in o2net_advance_rx()
1343 data = page_address(sc->sc_page) + sc->sc_page_off; in o2net_advance_rx()
1344 datalen = sizeof(struct o2net_handshake) - sc->sc_page_off; in o2net_advance_rx()
1347 sc->sc_page_off += ret; in o2net_advance_rx()
1350 if (sc->sc_page_off == sizeof(struct o2net_handshake)) { in o2net_advance_rx()
1359 if (sc->sc_page_off < sizeof(struct o2net_msg)) { in o2net_advance_rx()
1360 data = page_address(sc->sc_page) + sc->sc_page_off; in o2net_advance_rx()
1361 datalen = sizeof(struct o2net_msg) - sc->sc_page_off; in o2net_advance_rx()
1364 sc->sc_page_off += ret; in o2net_advance_rx()
1368 if (sc->sc_page_off == sizeof(struct o2net_msg)) { in o2net_advance_rx()
1379 if (sc->sc_page_off < sizeof(struct o2net_msg)) { in o2net_advance_rx()
1387 msglog(hdr, "at page_off %zu\n", sc->sc_page_off); in o2net_advance_rx()
1390 if (sc->sc_page_off - sizeof(struct o2net_msg) < be16_to_cpu(hdr->data_len)) { in o2net_advance_rx()
1392 data = page_address(sc->sc_page) + sc->sc_page_off; in o2net_advance_rx()
1394 sc->sc_page_off; in o2net_advance_rx()
1397 sc->sc_page_off += ret; in o2net_advance_rx()
1402 if (sc->sc_page_off - sizeof(struct o2net_msg) == be16_to_cpu(hdr->data_len)) { in o2net_advance_rx()
1409 sc->sc_page_off = 0; in o2net_advance_rx()