Lines Matching refs:cpu_to_be32

581 	h->magic   = cpu_to_be32(DRBD_MAGIC);  in prepare_header80()
591 h->length = cpu_to_be32(size); in prepare_header95()
598 h->magic = cpu_to_be32(DRBD_MAGIC_100); in prepare_header100()
601 h->length = cpu_to_be32(size); in prepare_header100()
755 p->resync_rate = cpu_to_be32(dc->resync_rate); in drbd_send_sync_param()
756 p->c_plan_ahead = cpu_to_be32(dc->c_plan_ahead); in drbd_send_sync_param()
757 p->c_delay_target = cpu_to_be32(dc->c_delay_target); in drbd_send_sync_param()
758 p->c_fill_target = cpu_to_be32(dc->c_fill_target); in drbd_send_sync_param()
759 p->c_max_rate = cpu_to_be32(dc->c_max_rate); in drbd_send_sync_param()
762 p->resync_rate = cpu_to_be32(DRBD_RESYNC_RATE_DEF); in drbd_send_sync_param()
763 p->c_plan_ahead = cpu_to_be32(DRBD_C_PLAN_AHEAD_DEF); in drbd_send_sync_param()
764 p->c_delay_target = cpu_to_be32(DRBD_C_DELAY_TARGET_DEF); in drbd_send_sync_param()
765 p->c_fill_target = cpu_to_be32(DRBD_C_FILL_TARGET_DEF); in drbd_send_sync_param()
766 p->c_max_rate = cpu_to_be32(DRBD_C_MAX_RATE_DEF); in drbd_send_sync_param()
804 p->protocol = cpu_to_be32(nc->wire_protocol); in __drbd_send_protocol()
805 p->after_sb_0p = cpu_to_be32(nc->after_sb_0p); in __drbd_send_protocol()
806 p->after_sb_1p = cpu_to_be32(nc->after_sb_1p); in __drbd_send_protocol()
807 p->after_sb_2p = cpu_to_be32(nc->after_sb_2p); in __drbd_send_protocol()
808 p->two_primaries = cpu_to_be32(nc->two_primaries); in __drbd_send_protocol()
814 p->conn_flags = cpu_to_be32(cf); in __drbd_send_protocol()
961 p->max_bio_size = cpu_to_be32(max_bio_size); in drbd_send_sizes()
980 p->state = cpu_to_be32(peer_device->device->state.i); /* Within the send mutex */ in drbd_send_current_state()
1003 p->state = cpu_to_be32(state.i); /* Within the send mutex */ in drbd_send_state()
1016 p->mask = cpu_to_be32(mask.i); in drbd_send_state_req()
1017 p->val = cpu_to_be32(val.i); in drbd_send_state_req()
1032 p->mask = cpu_to_be32(mask.i); in conn_send_state_req()
1033 p->val = cpu_to_be32(val.i); in conn_send_state_req()
1045 p->retcode = cpu_to_be32(retcode); in drbd_send_sr_reply()
1059 p->retcode = cpu_to_be32(retcode); in conn_send_sr_reply()
1303 p->set_size = cpu_to_be32(set_size); in drbd_send_b_ack()
1331 p->seq_num = cpu_to_be32(atomic_inc_return(&peer_device->device->packet_seq)); in _drbd_send_ack()
1343 _drbd_send_ack(peer_device, cmd, dp->sector, cpu_to_be32(data_size), in drbd_send_ack_dp()
1364 cpu_to_be32(peer_req->i.size), in drbd_send_ack()
1375 cpu_to_be32(blksize), in drbd_send_ack_ex()
1391 p->blksize = cpu_to_be32(size); in drbd_send_drequest()
1409 p->blksize = cpu_to_be32(size); in drbd_send_drequest_csum()
1424 p->blksize = cpu_to_be32(size); in drbd_send_ov_request()
1637 p->seq_num = cpu_to_be32(atomic_inc_return(&device->packet_seq)); in drbd_send_dblock()
1651 p->dp_flags = cpu_to_be32(dp_flags); in drbd_send_dblock()
1655 t->size = cpu_to_be32(req->i.size); in drbd_send_dblock()
1748 p->blksize = cpu_to_be32(req->i.size); in drbd_send_out_of_sync()
3065 buffer->flags = cpu_to_be32(device->ldev->md.flags); in drbd_md_write()
3066 buffer->magic = cpu_to_be32(DRBD_MD_MAGIC_84_UNCLEAN); in drbd_md_write()
3068 buffer->md_size_sect = cpu_to_be32(device->ldev->md.md_size_sect); in drbd_md_write()
3069 buffer->al_offset = cpu_to_be32(device->ldev->md.al_offset); in drbd_md_write()
3070 buffer->al_nr_extents = cpu_to_be32(device->act_log->nr_elements); in drbd_md_write()
3071 buffer->bm_bytes_per_bit = cpu_to_be32(BM_BLOCK_SIZE); in drbd_md_write()
3074 buffer->bm_offset = cpu_to_be32(device->ldev->md.bm_offset); in drbd_md_write()
3075 buffer->la_peer_max_bio_size = cpu_to_be32(device->peer_max_bio_size); in drbd_md_write()
3077 buffer->al_stripes = cpu_to_be32(device->ldev->md.al_stripes); in drbd_md_write()
3078 buffer->al_stripe_size_4k = cpu_to_be32(device->ldev->md.al_stripe_size_4k); in drbd_md_write()