Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/hid/usbhid/hid-pidff.c pidff_set() -> pidff_rescale()

Type Parameter Key Value
PARAM_VALUE 1 max u16max
DATA_SOURCE 0 i $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 i 0-u16max
HALF_LOCKED2 &evdev->mutex
HALF_LOCKED2 _T->lock

drivers/hid/usbhid/hid-pidff.c pidff_set_effect_direction() -> pidff_rescale()

Type Parameter Key Value
PARAM_VALUE 1 max u16max
USER_DATA 0 i 0-u16max
LOCK2 &evdev->mutex
LOCK2 _T->lock
TYPE_LOCK (struct evdev)->mutex

drivers/hid/usbhid/hid-pidff.c pidff_set_effect_direction() -> pidff_rescale()

Type Parameter Key Value
PARAM_VALUE 1 max u16max
PARAM_VALUE 2 field 4096-ptr_max
USER_DATA 0 i 0-u16max
LOCK2 &evdev->mutex
LOCK2 _T->lock
TYPE_LOCK (struct evdev)->mutex

drivers/hid/usbhid/hid-pidff.c pidff_set_envelope_report() -> pidff_rescale()

Type Parameter Key Value
PARAM_VALUE 0 i 0-s16max
PARAM_VALUE 1 max s16max
FUZZY_MAX 0 i s16max
USER_DATA 0 i 0-s16max
LOCK2 &evdev->mutex
LOCK2 _T->lock
TYPE_LOCK (struct evdev)->mutex

drivers/hid/usbhid/hid-pidff.c pidff_set_envelope_report() -> pidff_rescale()

Type Parameter Key Value
PARAM_VALUE 0 i 0-s16max
PARAM_VALUE 1 max s16max
FUZZY_MAX 0 i s16max
USER_DATA 0 i 0-s16max
LOCK2 &evdev->mutex
LOCK2 _T->lock
TYPE_LOCK (struct evdev)->mutex

drivers/hid/usbhid/hid-pidff.c pidff_set_signed() -> pidff_rescale()

Type Parameter Key Value
PARAM_VALUE 0 i 1-s16max
PARAM_VALUE 1 max s16min
PARAM_VALUE 2 field 4096-ptr_max
PARAM_VALUE 2 field->logical_minimum 0-s32max
FUZZY_MAX 2 field->logical_minimum 0
USER_DATA 0 i 1-s16max
LOCK2 &evdev->mutex
LOCK2 _T->lock
TYPE_LOCK (struct evdev)->mutex

drivers/hid/usbhid/hid-pidff.c pidff_set_signed() -> pidff_rescale()

Type Parameter Key Value
PARAM_VALUE 0 i 0-s16max
PARAM_VALUE 1 max s16max
PARAM_VALUE 2 field 4096-ptr_max
PARAM_VALUE 2 field->logical_minimum 0-s32max
DATA_SOURCE 0 i $1
FUZZY_MAX 0 i 0
FUZZY_MAX 2 field->logical_minimum 0
USER_DATA 0 i 0-s16max
LOCK2 &evdev->mutex
LOCK2 _T->lock
TYPE_LOCK (struct evdev)->mutex