Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/accel/ivpu/ivpu_ms.c copy_samples_to_user() -> copy_leftover_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ms | 4096-ptr_max |
| PARAM_VALUE | 0 | ms->mask | 1-u64max |
| PARAM_VALUE | 1 | user_ptr | 1-u64max |
| PARAM_VALUE | 2 | user_size | 1-u64max |
| PARAM_VALUE | 3 | user_bytes_copied | 4096-ptr_max |
| PARAM_VALUE | 3 | *user_bytes_copied | 0 |
| CAPPED_DATA | 0 | ms->mask | 1 |
| DATA_SOURCE | 0 | ms | $1 |
| DATA_SOURCE | 1 | user_ptr | $2 |
| DATA_SOURCE | 2 | user_size | $3 |
| DATA_SOURCE | 3 | user_bytes_copied | $4 |
| USER_DATA | 0 | ms->mask | 1-u64max[c] |
| USER_DATA | 2 | user_size | 1-u64max[u] |
| LOCK2 | &file_priv->ms_lock | ||
| TYPE_LOCK | (struct ivpu_file_priv)->ms_lock |
drivers/accel/ivpu/ivpu_ms.c copy_samples_to_user() -> copy_leftover_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ms | 4096-ptr_max |
| PARAM_VALUE | 0 | ms->mask | 1-u64max |
| PARAM_VALUE | 1 | user_ptr | 1-u64max |
| PARAM_VALUE | 2 | user_size | 1-u64max |
| PARAM_VALUE | 3 | user_bytes_copied | 4096-ptr_max |
| PARAM_VALUE | 3 | *user_bytes_copied | 0-s32max |
| CAPPED_DATA | 0 | ms->mask | 1 |
| DATA_SOURCE | 0 | ms | $1 |
| DATA_SOURCE | 1 | user_ptr | $2 |
| DATA_SOURCE | 2 | user_size | $3 |
| DATA_SOURCE | 3 | user_bytes_copied | $4 |
| PARAM_COMPARE | 3 | *user_bytes_copied | != $2 |
| NOSPEC | 0 | ms->mask | |
| USER_DATA | 0 | ms->leftover_addr | 4096-ptr_max[c][u] |
| USER_DATA | 0 | ms->mask | 1-u64max[c] |
| USER_DATA | 2 | user_size | 1-u64max[u] |
| USER_DATA | 3 | *user_bytes_copied | 1-s32max[c][u] |
| LOCK2 | &file_priv->ms_lock | ||
| TYPE_LOCK | (struct ivpu_file_priv)->ms_lock |