Lines Matching defs:mapping
1662 * data->sf_tach_to_pwm: (tach to pwm mapping bits)
1679 int mapping;
1681 /* extract the relevant mapping */
1682 mapping = (data->sf_tach_to_pwm >> (nr * 2)) & 0x03;
1684 /* if there's a mapping and it's enabled */
1685 if (mapping && ((data->sfc2 >> nr) & 0x01))
1686 rc = mapping;
1697 /* insert the new mapping and write it out */
1872 int mapping = lm93_read_byte(client, LM93_REG_SF_TACH_TO_PWM);
1875 /* collapse the mapping into a mask of enable bits */
1876 mapping = (mapping >> pwm) & 0x55;
1877 mask = mapping & 0x01;
1878 mask |= (mapping & 0x04) >> 1;
1879 mask |= (mapping & 0x10) >> 2;
1880 mask |= (mapping & 0x40) >> 3;