Lines Matching defs:mdev

145 static struct page *drbd_pp_first_pages_or_try_alloc(struct drbd_conf *mdev, int number)  in drbd_pp_first_pages_or_try_alloc()
190 static void reclaim_net_ee(struct drbd_conf *mdev, struct list_head *to_be_freed) in reclaim_net_ee()
208 static void drbd_kick_lo_and_reclaim_net(struct drbd_conf *mdev) in drbd_kick_lo_and_reclaim_net()
233 static struct page *drbd_pp_alloc(struct drbd_conf *mdev, unsigned number, bool retry) in drbd_pp_alloc()
275 static void drbd_pp_free(struct drbd_conf *mdev, struct page *page, int is_net) in drbd_pp_free()
312 struct drbd_epoch_entry *drbd_alloc_ee(struct drbd_conf *mdev, in drbd_alloc_ee()
353 void drbd_free_some_ee(struct drbd_conf *mdev, struct drbd_epoch_entry *e, int is_net) in drbd_free_some_ee()
363 int drbd_release_ee(struct drbd_conf *mdev, struct list_head *list) in drbd_release_ee()
391 static int drbd_process_done_ee(struct drbd_conf *mdev) in drbd_process_done_ee()
420 void _drbd_wait_ee_list_empty(struct drbd_conf *mdev, struct list_head *head) in _drbd_wait_ee_list_empty()
435 void drbd_wait_ee_list_empty(struct drbd_conf *mdev, struct list_head *head) in drbd_wait_ee_list_empty()
444 static int drbd_accept(struct drbd_conf *mdev, const char **what, in drbd_accept()
474 static int drbd_recv_short(struct drbd_conf *mdev, struct socket *sock, in drbd_recv_short()
497 static int drbd_recv(struct drbd_conf *mdev, void *buf, size_t size) in drbd_recv()
569 static struct socket *drbd_try_connect(struct drbd_conf *mdev) in drbd_try_connect()
647 static struct socket *drbd_wait_for_connect(struct drbd_conf *mdev) in drbd_wait_for_connect()
696 static int drbd_send_fp(struct drbd_conf *mdev, in drbd_send_fp()
704 static enum drbd_packets drbd_recv_fp(struct drbd_conf *mdev, struct socket *sock) in drbd_recv_fp()
722 static int drbd_socket_okay(struct drbd_conf *mdev, struct socket **sock) in drbd_socket_okay()
749 static int drbd_connect(struct drbd_conf *mdev) in drbd_connect()
922 static int drbd_recv_header(struct drbd_conf *mdev, enum drbd_packets *cmd, unsigned int *packet_si… in drbd_recv_header()
952 static void drbd_flush(struct drbd_conf *mdev) in drbd_flush()
976 static enum finish_epoch drbd_may_finish_epoch(struct drbd_conf *mdev, in drbd_may_finish_epoch()
1047 void drbd_bump_write_ordering(struct drbd_conf *mdev, enum write_ordering_e wo) __must_hold(local) in drbd_bump_write_ordering()
1084 int drbd_submit_ee(struct drbd_conf *mdev, struct drbd_epoch_entry *e, in drbd_submit_ee()
1159 static int receive_Barrier(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned int data_size) in receive_Barrier()
1233 read_in_block(struct drbd_conf *mdev, u64 id, sector_t sector, int data_size) __must_hold(local) in read_in_block()
1319 static int drbd_drain_block(struct drbd_conf *mdev, int data_size) in drbd_drain_block()
1348 static int recv_dless_read(struct drbd_conf *mdev, struct drbd_request *req, in recv_dless_read()
1410 static int e_end_resync_block(struct drbd_conf *mdev, struct drbd_work *w, int unused) in e_end_resync_block()
1432 static int recv_resync_read(struct drbd_conf *mdev, sector_t sector, int data_size) __releases(loca… in recv_resync_read()
1468 static int receive_DataReply(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned int data_size) in receive_DataReply()
1499 static int receive_RSDataReply(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned int data_siz… in receive_RSDataReply()
1530 static int e_end_block(struct drbd_conf *mdev, struct drbd_work *w, int cancel) in e_end_block()
1568 static int e_send_discard_ack(struct drbd_conf *mdev, struct drbd_work *w, int unused) in e_send_discard_ack()
1607 static int drbd_wait_peer_seq(struct drbd_conf *mdev, const u32 packet_seq) in drbd_wait_peer_seq()
1642 static unsigned long wire_flags_to_bio(struct drbd_conf *mdev, u32 dpf) in wire_flags_to_bio()
1651 static int receive_Data(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned int data_size) in receive_Data()
1883 int drbd_rs_should_slow_down(struct drbd_conf *mdev, sector_t sector) in drbd_rs_should_slow_down()
1939 static int receive_DataRequest(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned int digest_s… in receive_DataRequest()
2125 static int drbd_asb_recover_0p(struct drbd_conf *mdev) __must_hold(local) in drbd_asb_recover_0p()
2197 static int drbd_asb_recover_1p(struct drbd_conf *mdev) __must_hold(local) in drbd_asb_recover_1p()
2246 static int drbd_asb_recover_2p(struct drbd_conf *mdev) __must_hold(local) in drbd_asb_recover_2p()
2287 static void drbd_uuid_dump(struct drbd_conf *mdev, char *text, u64 *uuid, in drbd_uuid_dump()
2316 static int drbd_uuid_compare(struct drbd_conf *mdev, int *rule_nr) __must_hold(local) in drbd_uuid_compare()
2499 static enum drbd_conns drbd_sync_handshake(struct drbd_conf *mdev, enum drbd_role peer_role, in drbd_sync_handshake()
2664 static int receive_protocol(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned int data_size) in receive_protocol()
2741 struct crypto_hash *drbd_crypto_alloc_digest_safe(const struct drbd_conf *mdev, in drbd_crypto_alloc_digest_safe()
2763 static int receive_SyncParam(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned int packet_siz… in receive_SyncParam()
2915 static void warn_if_differ_considerably(struct drbd_conf *mdev, in warn_if_differ_considerably()
2927 static int receive_sizes(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned int data_size) in receive_sizes()
3030 static int receive_uuids(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned int data_size) in receive_uuids()
3124 static int receive_req_state(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned int data_size) in receive_req_state()
3150 static int receive_state(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned int data_size) in receive_state()
3302 static int receive_sync_uuid(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned int data_size) in receive_sync_uuid()
3337 receive_bitmap_plain(struct drbd_conf *mdev, unsigned int data_size, in receive_bitmap_plain()
3374 recv_bm_rle_bits(struct drbd_conf *mdev, in recv_bm_rle_bits()
3439 decode_bitmap_c(struct drbd_conf *mdev, in decode_bitmap_c()
3455 void INFO_bm_xfer_stats(struct drbd_conf *mdev, in INFO_bm_xfer_stats()
3497 static int receive_bitmap(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned int data_size) in receive_bitmap()
3588 static int receive_skip(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned int data_size) in receive_skip()
3607 static int receive_UnplugRemote(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned int data_si… in receive_UnplugRemote()
3616 static int receive_out_of_sync(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned int data_siz… in receive_out_of_sync()
3678 static void drbdd(struct drbd_conf *mdev) in drbdd()
3729 void drbd_flush_workqueue(struct drbd_conf *mdev) in drbd_flush_workqueue()
3739 void drbd_free_tl_hash(struct drbd_conf *mdev) in drbd_free_tl_hash()
3769 static void drbd_disconnect(struct drbd_conf *mdev) in drbd_disconnect()
3901 static int drbd_send_handshake(struct drbd_conf *mdev) in drbd_send_handshake()
3933 static int drbd_do_handshake(struct drbd_conf *mdev) in drbd_do_handshake()
3995 static int drbd_do_auth(struct drbd_conf *mdev) in drbd_do_auth()
4010 static int drbd_do_auth(struct drbd_conf *mdev) in drbd_do_auth()
4157 struct drbd_conf *mdev = thi->mdev; in drbdd_init() local
4192 static int got_RqSReply(struct drbd_conf *mdev, struct p_header80 *h) in got_RqSReply()
4210 static int got_Ping(struct drbd_conf *mdev, struct p_header80 *h) in got_Ping()
4216 static int got_PingAck(struct drbd_conf *mdev, struct p_header80 *h) in got_PingAck()
4226 static int got_IsInSync(struct drbd_conf *mdev, struct p_header80 *h) in got_IsInSync()
4251 static struct drbd_request *_ack_id_to_req(struct drbd_conf *mdev, in _ack_id_to_req()
4276 static int validate_req_change_req_state(struct drbd_conf *mdev, in validate_req_change_req_state()
4300 static int got_BlockAck(struct drbd_conf *mdev, struct p_header80 *h) in got_BlockAck()
4340 static int got_NegAck(struct drbd_conf *mdev, struct p_header80 *h) in got_NegAck()
4384 static int got_NegDReply(struct drbd_conf *mdev, struct p_header80 *h) in got_NegDReply()
4397 static int got_NegRSDReply(struct drbd_conf *mdev, struct p_header80 *h) in got_NegRSDReply()
4428 static int got_BarrierAck(struct drbd_conf *mdev, struct p_header80 *h) in got_BarrierAck()
4444 static int got_OVResult(struct drbd_conf *mdev, struct p_header80 *h) in got_OVResult()
4488 static int got_skip(struct drbd_conf *mdev, struct p_header80 *h) in got_skip()
4528 struct drbd_conf *mdev = thi->mdev; in drbd_asender() local