Lines Matching refs:tot_len
321 u_long add, current_len, tot_len, target_len, my_data; in lpddr2_nvm_write() local
332 tot_len = 0; in lpddr2_nvm_write()
334 while (tot_len < target_len) { in lpddr2_nvm_write()
336 my_data = write_buf[tot_len]; in lpddr2_nvm_write()
337 my_data += (write_buf[tot_len+1]) << 8; in lpddr2_nvm_write()
339 my_data += (write_buf[tot_len+2]) << 16; in lpddr2_nvm_write()
340 my_data += (write_buf[tot_len+3]) << 24; in lpddr2_nvm_write()
348 tot_len += pcm_data->bus_width; in lpddr2_nvm_write()
350 current_len = min(target_len - tot_len, in lpddr2_nvm_write()
353 0x00, add, current_len, write_buf + tot_len); in lpddr2_nvm_write()
358 tot_len += current_len; in lpddr2_nvm_write()
363 *retlen = tot_len; in lpddr2_nvm_write()