Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/block/zram/zram_drv.c decompress_bdev_page() -> get_slot_comp_priority()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | zram | 4096-ptr_max |
| PARAM_VALUE | 0 | zram->table | 4096-ptr_max |
| DATA_SOURCE | 0 | zram | $0 |
| DATA_SOURCE | 1 | index | $2 |
drivers/block/zram/zram_drv.c read_block_state() -> get_slot_comp_priority()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | zram | 4096-ptr_max |
| PARAM_VALUE | 0 | zram->table | 4096-ptr_max |
| BUF_SIZE | 0 | zram | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | zram | s32min-(-2),1-s32max |
| UNITS | 1 | index | unit_page |
| LOCK2 | _T->lock |
drivers/block/zram/zram_drv.c read_compressed_page() -> get_slot_comp_priority()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | zram | 4096-ptr_max |
| PARAM_VALUE | 0 | zram->table | 4096-ptr_max |
| BUF_SIZE | 0 | zram | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | zram | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | zram | $0 |
| DATA_SOURCE | 1 | index | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | index | unit_page |
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/block/zram/zram_drv.c scan_slots_for_recompress() -> get_slot_comp_priority()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | zram | 4096-ptr_max |
| PARAM_VALUE | 0 | zram->table | 4096-ptr_max |
| PARAM_VALUE | 1 | index | 0 |
| BUF_SIZE | 0 | zram | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | zram | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | zram | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | index | unit_page |
| LOCK2 | &of->mutex | ||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |