Lines Matching refs:ix
205 u32 ix, div_size; in mxl692_checksum() local
212 for (ix = 0; ix < div_size; ix++) in mxl692_checksum()
213 cur_cksum += be32_to_cpu(buf[ix]); in mxl692_checksum()
224 u32 ix, temp; in mxl692_validate_fw_header() local
244 for (ix = 16; ix < buf_len; ix++) in mxl692_validate_fw_header()
245 temp_cksum += buffer[ix]; in mxl692_validate_fw_header()
260 u32 ix = 0, total_len = 0, addr = 0, chunk_len = 0, prevchunk_len = 0; in mxl692_write_fw_block() local
264 ix = *index; in mxl692_write_fw_block()
266 if (buffer[ix] == 0x53) { in mxl692_write_fw_block()
267 total_len = buffer[ix + 1] << 16 | buffer[ix + 2] << 8 | buffer[ix + 3]; in mxl692_write_fw_block()
269 addr = buffer[ix + 4] << 24 | buffer[ix + 5] << 16 | in mxl692_write_fw_block()
270 buffer[ix + 6] << 8 | buffer[ix + 7]; in mxl692_write_fw_block()
271 ix += MXL_EAGLE_FW_SEGMENT_HEADER_SIZE; in mxl692_write_fw_block()
286 memcpy(plocal_buf, &buffer[ix], chunk_len); in mxl692_write_fw_block()
296 ix += chunk_len; in mxl692_write_fw_block()
298 *index = ix; in mxl692_write_fw_block()
425 u32 ix = 0; in mxl692_opread() local
435 for (ix = 0; ix < size; ix += 4) { in mxl692_opread()
436 if (mxl692_i2c_read(dev, buffer + ix, 4) < 0) { in mxl692_opread()
437 dev_dbg(&dev->i2c_client->dev, "ix=%d size=%d\n", ix, size); in mxl692_opread()
579 u32 ix, reg_val = 0x1; in mxl692_fwdownload() local
595 ix = 16; in mxl692_fwdownload()
596 status = mxl692_write_fw_block(dev, firmware_buf, buf_len, &ix); /* DRAM */ in mxl692_fwdownload()
600 status = mxl692_write_fw_block(dev, firmware_buf, buf_len, &ix); /* IRAM */ in mxl692_fwdownload()