Lines Matching refs:expect
415 if (!expect(device, !(peer_req->flags & EE_CALL_AL_COMPLETE_IO))) {
1878 if (!expect(peer_device, data_size == 0))
1882 if (!expect(peer_device, data_size == 0))
1887 if (!expect(peer_device, IS_ALIGNED(ds, 512)))
1890 if (!expect(peer_device, ds <= (DRBD_MAX_BBIO_SECTORS << 9)))
1892 } else if (!expect(peer_device, ds <= DRBD_MAX_BIO_SIZE))
1988 int digest_size, err, expect;
2010 expect = min_t(int, data_size, bvec.bv_len);
2011 err = drbd_recv_all_warn(peer_device->connection, mapped, expect);
2015 data_size -= expect;
2225 /* we expect it to be marked out of sync anyways...
3921 /* we expect NUL terminated string */
3927 /* we still expect NUL terminated strings */
5284 const int expect = sizeof(struct p_connection_features);
5302 if (pi.size != expect) {
5304 expect, pi.size);
5309 err = drbd_recv_all_warn(connection, p, expect);
5971 int expect = header_size;
5991 rv = drbd_recv_short(connection->meta.socket, buf, expect-received, 0);
6043 if (received == expect && cmd == NULL) {
6052 expect = header_size + cmd->pkt_size;
6053 if (pi.size != expect - header_size) {
6059 if (received == expect) {
6077 expect = header_size;