Lines Matching refs:i

88 	device->read_cnt += peer_req->i.size >> 9;  in drbd_endio_read_sec_final()
108 struct drbd_interval i; in drbd_endio_write_sec_final() local
117 i = peer_req->i; in drbd_endio_write_sec_final()
127 drbd_set_out_of_sync(peer_device, peer_req->i.sector, peer_req->i.size); in drbd_endio_write_sec_final()
131 device->writ_cnt += peer_req->i.size >> 9; in drbd_endio_write_sec_final()
157 drbd_rs_complete_io(device, i.sector); in drbd_endio_write_sec_final()
163 drbd_al_complete_io(device, &i); in drbd_endio_write_sec_final()
183 (unsigned long long)peer_req->i.sector); in drbd_peer_request_endio()
308 len = peer_req->i.size & (PAGE_SIZE - 1); in drbd_csum_ee()
356 sector_t sector = peer_req->i.sector; in w_e_send_csum()
357 unsigned int size = peer_req->i.size; in w_e_send_csum()
454 int i; in fifo_set() local
456 for (i = 0; i < fb->size; i++) in fifo_set()
457 fb->values[i] = value; in fifo_set()
475 int i; in fifo_add_val() local
477 for (i = 0; i < fb->size; i++) in fifo_add_val()
478 fb->values[i] += value; in fifo_add_val()
595 int i = 0; in make_resync_request() local
627 for (i = 0; i < number; i++) { in make_resync_request()
677 rollback_i = i; in make_resync_request()
678 while (i < number) { in make_resync_request()
703 i++; in make_resync_request()
723 i = rollback_i; in make_resync_request()
759 device->rs_in_flight += (i << (BM_BLOCK_SHIFT - 9)); in make_resync_request()
768 int number, i, size; in make_ov_request() local
779 for (i = 0; i < number; i++) { in make_ov_request()
786 stop_sector_reached = i > 0 in make_ov_request()
812 device->rs_in_flight += (i << (BM_BLOCK_SHIFT - 9)); in make_ov_request()
813 if (i == 0 || !stop_sector_reached) in make_ov_request()
962 int i; in drbd_resync_finished() local
963 for (i = UI_BITMAP ; i <= UI_HISTORY_END ; i++) in drbd_resync_finished()
964 _drbd_uuid_set(device, i, device->p_uuid[i]); in drbd_resync_finished()
980 int i; in drbd_resync_finished() local
981 for (i = UI_CURRENT ; i <= UI_HISTORY_END ; i++) in drbd_resync_finished()
982 device->p_uuid[i] = device->ldev->md.uuid[i]; in drbd_resync_finished()
1037 int i = PFN_UP(peer_req->i.size); in move_to_net_ee_or_free() local
1038 atomic_add(i, &device->pp_in_use_by_net); in move_to_net_ee_or_free()
1039 atomic_sub(i, &device->pp_in_use); in move_to_net_ee_or_free()
1071 (unsigned long long)peer_req->i.sector); in w_e_end_data_req()
1088 unsigned int len = peer_req->i.size; in all_zero()
1092 unsigned int i, words = l / sizeof(long); in all_zero() local
1096 for (i = 0; i < words; i++) { in all_zero()
1097 if (d[i]) { in all_zero()
1128 drbd_rs_complete_io(device, peer_req->i.sector); in w_e_end_rsdata_req()
1150 (unsigned long long)peer_req->i.sector); in w_e_end_rsdata_req()
1155 drbd_rs_failed_io(peer_device, peer_req->i.sector, peer_req->i.size); in w_e_end_rsdata_req()
1184 drbd_rs_complete_io(device, peer_req->i.sector); in w_e_end_csum_rs_req()
1206 drbd_set_in_sync(peer_device, peer_req->i.sector, peer_req->i.size); in w_e_end_csum_rs_req()
1208 device->rs_same_csum += peer_req->i.size >> BM_BLOCK_SHIFT; in w_e_end_csum_rs_req()
1236 sector_t sector = peer_req->i.sector; in w_e_end_ov_req()
1237 unsigned int size = peer_req->i.size; in w_e_end_ov_req()
1296 sector_t sector = peer_req->i.sector; in w_e_end_ov_reply()
1297 unsigned int size = peer_req->i.size; in w_e_end_ov_reply()
1311 drbd_rs_complete_io(device, peer_req->i.sector); in w_e_end_ov_reply()
1507 err = drbd_send_drequest(peer_device, P_DATA_REQUEST, req->i.sector, req->i.size, in w_send_read_req()
1524 drbd_al_begin_io(device, &req->i); in w_restart_disk_io()
1570 int i; in drbd_pause_after() local
1573 idr_for_each_entry(&drbd_devices, odev, i) { in drbd_pause_after()
1596 int i; in drbd_resume_next() local
1599 idr_for_each_entry(&drbd_devices, odev, i) { in drbd_resume_next()
1828 int i; in drbd_start_resync() local
1836 for (i = 0; i < DRBD_SYNC_MARKS; i++) { in drbd_start_resync()
1837 device->rs_mark_left[i] = tw; in drbd_start_resync()
1838 device->rs_mark_time[i] = now; in drbd_start_resync()
2006 unsigned int i = *cb_nr % DRBD_THREAD_DETAILS_HIST; in __update_timing_details() local
2007 struct drbd_thread_timing_details *td = tdp + i; in __update_timing_details()
2015 i = (i+1) % DRBD_THREAD_DETAILS_HIST; in __update_timing_details()
2016 td = tdp + i; in __update_timing_details()