Lines Matching full:direction
210 * Only left/right direction should be used (under/over 0x8000) for
211 * forward/reverse motor direction (to keep calculation fast & simple).
213 static u16 ml_calculate_direction(u16 direction, u16 force, in ml_calculate_direction() argument
219 return direction; in ml_calculate_direction()
220 return (((u32)(direction >> 1) * force + in ml_calculate_direction()
251 i = new->direction * 360 / 0xffff; in ml_combine_effects()
273 effect->direction = ml_calculate_direction( in ml_combine_effects()
274 effect->direction, in ml_combine_effects()
276 new->direction, strong); in ml_combine_effects()
278 effect->direction = ml_calculate_direction( in ml_combine_effects()
279 effect->direction, in ml_combine_effects()
281 new->direction, weak); in ml_combine_effects()
283 effect->direction = 0; in ml_combine_effects()
299 effect->direction = ml_calculate_direction( in ml_combine_effects()
300 effect->direction, in ml_combine_effects()
302 new->direction, i); in ml_combine_effects()
304 effect->direction = 0; in ml_combine_effects()