Lines Matching refs:total_len

251 	u32 ix = 0, total_len = 0, addr = 0, chunk_len = 0, prevchunk_len = 0;  in mxl692_write_fw_block()  local
258 total_len = buffer[ix + 1] << 16 | buffer[ix + 2] << 8 | buffer[ix + 3]; in mxl692_write_fw_block()
259 total_len = (total_len + 3) & ~3; in mxl692_write_fw_block()
264 while ((total_len > 0) && (status == 0)) { in mxl692_write_fw_block()
266 chunk_len = (total_len < payload_max) ? total_len : payload_max; in mxl692_write_fw_block()
286 total_len -= chunk_len; in mxl692_write_fw_block()
303 int status = 0, total_len = 0; in mxl692_memwrite() local
306 total_len = size; in mxl692_memwrite()
307 total_len = (total_len + 3) & ~3; /* 4 byte alignment */ in mxl692_memwrite()
309 if (total_len > (MXL_EAGLE_MAX_I2C_PACKET_SIZE - MXL_EAGLE_I2C_MHEADER_SIZE)) in mxl692_memwrite()
315 *plocal_buf++ = total_len + sizeof(u32); in mxl692_memwrite()
320 memcpy(plocal_buf, buffer, total_len); in mxl692_memwrite()
322 convert_endian(sizeof(u32) + total_len, local_buf + 2); in mxl692_memwrite()
325 (total_len + MXL_EAGLE_I2C_MHEADER_SIZE)) < 0) { in mxl692_memwrite()
382 int status = 0, total_len = 0; in mxl692_opwrite() local
386 total_len = size; in mxl692_opwrite()
387 total_len = (total_len + 3) & ~3; /* 4 byte alignment */ in mxl692_opwrite()
389 if (total_len > (MXL_EAGLE_MAX_I2C_PACKET_SIZE - MXL_EAGLE_I2C_PHEADER_SIZE)) in mxl692_opwrite()
395 *plocal_buf++ = (u8)total_len; in mxl692_opwrite()
397 memcpy(plocal_buf, buffer, total_len); in mxl692_opwrite()
398 convert_endian(total_len, plocal_buf); in mxl692_opwrite()
401 (total_len + MXL_EAGLE_I2C_PHEADER_SIZE)) < 0) { in mxl692_opwrite()