Lines Matching refs:position
406 u16 rambase, position, crc = 0; in nxt2002_load_firmware() local
425 for (position = 0; position < fw->size; position++) { in nxt2002_load_firmware()
429 buf[0] = ((rambase + position) >> 8); in nxt2002_load_firmware()
430 buf[1] = (rambase + position) & 0xFF; in nxt2002_load_firmware()
439 nxt200x_writebytes(state, chunkpos, &fw->data[position-3], 4); in nxt2002_load_firmware()
441 crc = nxt200x_crc(crc, fw->data[position]); in nxt2002_load_firmware()
443 if ((written == 255) || (position+1 == fw->size)) { in nxt2002_load_firmware()
446 &fw->data[position-(written %4) + 1], in nxt2002_load_firmware()
473 u16 rambase, position, crc=0; in nxt2004_load_firmware() local
486 for (position = 0; position < fw->size; position++) { in nxt2004_load_firmware()
487 crc = nxt200x_crc(crc, fw->data[position]); in nxt2004_load_firmware()
496 for (position = 0; position < fw->size;) { in nxt2004_load_firmware()
497 nxt200x_writebytes(state, 0x2C, &fw->data[position], in nxt2004_load_firmware()
498 fw->size-position > 255 ? 255 : fw->size-position); in nxt2004_load_firmware()
499 position += (fw->size-position > 255 ? 255 : fw->size-position); in nxt2004_load_firmware()