Lines Matching refs:kk
396 int kk;
398 for (kk = 0; kk < mlxCallbackInterrupt.numInterruptProcesses; ++kk) {
399 if (mlxCallbackInterrupt.processInterruptCb[kk] == func) {
420 int kk, jj;
422 for (kk = 0; kk < mlxCallbackInterrupt.numInterruptProcesses; ++kk) {
423 if (mlxCallbackInterrupt.processInterruptCb[kk] == func) {
425 for (jj = kk + 1; jj < mlxCallbackInterrupt.numInterruptProcesses;
444 int kk;
445 for (kk = 0; kk < mlxCallbackInterrupt.numInterruptProcesses; ++kk) {
446 if (mlxCallbackInterrupt.processInterruptCb[kk])
447 mlxCallbackInterrupt.processInterruptCb[kk] (&inv_obj);
776 int kk;
816 for (kk = 0; kk < 9; ++kk) {
817 cal[kk] = scale * orientation[kk];
818 inv_obj.accel_cal[kk] = (long)(cal[kk] * (float)(1L << 30));
922 int kk;
945 for (kk = 0; kk < 9; ++kk) {
946 inv_obj.gyro_cal[kk] = (long)(scale * orientation[kk] * (1L << 30));
947 inv_obj.gyro_orient[kk] = (long)((double)orientation[kk] * (1L << 30));
1070 int kk;
1080 for (kk = 0; kk < 9; ++kk) {
1081 cal[kk] = scale * orientation[kk];
1082 inv_obj.compass_cal[kk] = (long)(cal[kk] * (float)(1L << 30));
1092 int_fast8_t kk;
1099 for (kk = 0; kk < 9; ++kk) {
1101 if (orientation[kk] == 1)
1103 else if (orientation[kk] == -1)
1107 inv_set_mpu_memory(keyList[kk], 4, reg);
1558 uint_fast8_t kk;
1561 kk = 0;
1563 regs[kk++] = DINAC3;
1564 regs[kk++] = DINA90 + 14;
1565 regs[kk++] = DINAA0 + 9;
1566 regs[kk++] = DINA3E;
1567 regs[kk++] = DINA5E;
1568 regs[kk++] = DINA7E;
1570 regs[kk++] = DINAC2;
1571 regs[kk++] = DINAA0 + 9;
1572 regs[kk++] = DINA90 + 9;
1573 regs[kk++] = DINAF8 + 2;
1578 regs[kk++] = DINACB;
1580 regs[kk++] = DINA54;
1581 regs[kk++] = DINA50;
1582 regs[kk++] = DINA50;
1583 regs[kk++] = DINA50;
1584 regs[kk++] = DINA50;
1585 regs[kk++] = DINA50;
1586 regs[kk++] = DINA50;
1587 regs[kk++] = DINA50;
1589 regs[kk++] = DINACD;
1592 regs[kk++] = DINACB;
1594 regs[kk++] = DINACF;
1596 regs[kk++] = DINA7C;
1597 regs[kk++] = DINA78;
1598 regs[kk++] = DINA78;
1599 regs[kk++] = DINA78;
1600 regs[kk++] = DINA78;
1601 regs[kk++] = DINA78;
1602 regs[kk++] = DINA78;
1603 regs[kk++] = DINA78;
1606 regs[kk++] = DINA2C;
1607 regs[kk++] = DINA28;
1608 regs[kk++] = DINA28;
1609 regs[kk++] = DINA28;
1610 regs[kk++] = DINA28;
1611 regs[kk++] = DINA28;
1612 regs[kk++] = DINA28;
1613 regs[kk++] = DINA28;
1615 regs[kk++] = DINACD;
1617 regs[kk++] = DINACB;
1620 regs[kk++] = DINA2C;
1621 regs[kk++] = DINA28;
1622 regs[kk++] = DINA28;
1623 regs[kk++] = DINA28;
1624 regs[kk++] = DINA28;
1625 regs[kk++] = DINA28;
1626 regs[kk++] = DINA28;
1627 regs[kk++] = DINA28;
1628 regs[kk++] = DINACB;
1629 regs[kk++] = DINACF;
1632 regs[kk++] = DINACF;
1633 regs[kk++] = DINACD;
1635 regs[kk++] = DINA7C;
1636 regs[kk++] = DINA78;
1637 regs[kk++] = DINA78;
1638 regs[kk++] = DINA78;
1639 regs[kk++] = DINA78;
1640 regs[kk++] = DINA78;
1641 regs[kk++] = DINA78;
1642 regs[kk++] = DINA78;
1645 regs[kk++] = DINACD;
1647 regs[kk++] = DINA54;
1648 regs[kk++] = DINA50;
1649 kk++] = DINA50;
1650 regs[kk++] = DINA50;
1651 regs[kk++] = DINA50;
1652 regs[kk++] = DINA50;
1653 regs[kk++] = DINA50;
1654 regs[kk++] = DINA50;
1656 regs[kk++] = DINACF;
1660 regs[kk++] = DINA90 + 7;
1661 regs[kk++] = DINAF8 + 3;
1662 regs[kk++] = DINAA0 + 9;
1663 regs[kk++] = DINA0E;
1664 regs[kk++] = DINA0E;
1665 regs[kk++] = DINA0E;
1667 regs[kk++] = DINAF8 + 1; // filler
1669 result = inv_set_mpu_memory(KEY_FCFG_FSCALE, kk, regs);
1829 int kk;
1851 for (kk = 0; kk < 3; ++kk) {
1852 s[kk] = atc[kk] & 0x3f;
1853 if (s[kk] > 32)
1854 s[kk] = s[kk] - 64;
1855 s[kk] *= 2516582L;
1858 for (kk = 0; kk < 3; ++kk) {
1859 s2[kk] = mldlCfg->pdata->orientation[kk * 3] * s[0] +
1860 mldlCfg->pdata->orientation[kk * 3 + 1] * s[1] +
1861 mldlCfg->pdata->orientation[kk * 3 + 2] * s[2];