Lines Matching refs:to_move
151 int to_move, ret, sum = 0; in MoveToREPData() local
162 to_move = MIN(data_size, remain_size - sizeof(rephdr)); in MoveToREPData()
163 to_move = MIN(to_move, MAX_REP_LEN); in MoveToREPData()
164 if (to_move <= 0) in MoveToREPData()
168 remain_size -= to_move; in MoveToREPData()
169 data_size -= to_move; in MoveToREPData()
177 rep.msg_len = to_move; in MoveToREPData()
183 memcpy(ip, GetDataPoint(src_buff), to_move); in MoveToREPData()
184 AddDataLen(dest_buff, to_move); in MoveToREPData()
185 sum += to_move; in MoveToREPData()
188 ret = RemoveDataFromBuffer(src_buff, to_move); in MoveToREPData()
189 assert(to_move == ret); in MoveToREPData()
197 int to_move, ret; in MoveData() local
201 to_move = GetDataSizeRBuffer(src_buff); in MoveData()
204 to_move = MIN(to_move, len); in MoveData()
206 to_move = MIN(GetDataSizeRBuffer(src_buff), to_move); in MoveData()
207 if(to_move <= 0) in MoveData()
212 memcpy(ip, GetDataPoint(src_buff), to_move); in MoveData()
213 AddDataLen(dest_buff, to_move); in MoveData()
216 ret = RemoveDataFromBuffer(src_buff, to_move); in MoveData()
217 assert(to_move == ret); in MoveData()