Lines Matching refs:total_len

260 	u32 ix = 0, total_len = 0, addr = 0, chunk_len = 0, prevchunk_len = 0;  in mxl692_write_fw_block()  local
267 total_len = buffer[ix + 1] << 16 | buffer[ix + 2] << 8 | buffer[ix + 3]; in mxl692_write_fw_block()
268 total_len = (total_len + 3) & ~3; in mxl692_write_fw_block()
273 while ((total_len > 0) && (status == 0)) { in mxl692_write_fw_block()
275 chunk_len = (total_len < payload_max) ? total_len : payload_max; in mxl692_write_fw_block()
295 total_len -= chunk_len; in mxl692_write_fw_block()
312 int status = 0, total_len = 0; in mxl692_memwrite() local
315 total_len = size; in mxl692_memwrite()
316 total_len = (total_len + 3) & ~3; /* 4 byte alignment */ in mxl692_memwrite()
318 if (total_len > (MXL_EAGLE_MAX_I2C_PACKET_SIZE - MXL_EAGLE_I2C_MHEADER_SIZE)) in mxl692_memwrite()
324 *plocal_buf++ = total_len + sizeof(u32); in mxl692_memwrite()
329 memcpy(plocal_buf, buffer, total_len); in mxl692_memwrite()
331 convert_endian(sizeof(u32) + total_len, local_buf + 2); in mxl692_memwrite()
334 (total_len + MXL_EAGLE_I2C_MHEADER_SIZE)) < 0) { in mxl692_memwrite()
391 int status = 0, total_len = 0; in mxl692_opwrite() local
395 total_len = size; in mxl692_opwrite()
396 total_len = (total_len + 3) & ~3; /* 4 byte alignment */ in mxl692_opwrite()
398 if (total_len > (MXL_EAGLE_MAX_I2C_PACKET_SIZE - MXL_EAGLE_I2C_PHEADER_SIZE)) in mxl692_opwrite()
404 *plocal_buf++ = (u8)total_len; in mxl692_opwrite()
406 memcpy(plocal_buf, buffer, total_len); in mxl692_opwrite()
407 convert_endian(total_len, plocal_buf); in mxl692_opwrite()
410 (total_len + MXL_EAGLE_I2C_PHEADER_SIZE)) < 0) { in mxl692_opwrite()