Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/block/drbd/drbd_bitmap.c bm_clear_surplus() -> bm_map_pidx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | b | 4096-ptr_max |
| PARAM_VALUE | 0 | b->bm_lock.rlock.dep_map->name | 0-255 |
| BUF_SIZE | 0 | b->bm_pages | (-1)-s32max |
| DATA_SOURCE | 0 | b | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | irq | ||
| LOCK2 | 0 | &b->bm_lock | |
| TYPE_LOCK | (struct drbd_bitmap)->bm_lock |
drivers/block/drbd/drbd_bitmap.c bm_memset() -> bm_map_pidx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | b | 4096-ptr_max |
| PARAM_VALUE | 0 | b->bm_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | b->bm_number_of_pages | 1-u64max |
| BUF_SIZE | 0 | b->bm_pages | (-1)-s32max |
| CAPPED_DATA | 1 | idx | 1 |
| DATA_SOURCE | 0 | b | $0 |
| DATA_SOURCE | 1 | idx | r bm_word_to_page_idx |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | irq | ||
| LOCK2 | 0 | &b->bm_lock | |
| TYPE_LOCK | (struct drbd_bitmap)->bm_lock |
drivers/block/drbd/drbd_bitmap.c bm_set_surplus() -> bm_map_pidx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | b | 4096-ptr_max |
| PARAM_VALUE | 0 | b->bm_bits | 0-2305843009213693950 |
| PARAM_VALUE | 0 | b->bm_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | b->bm_pages | 1-u64max |
| CAPPED_DATA | 0 | b->bm_number_of_pages | 1 |
| CAPPED_DATA | 1 | idx | 1 |
| DATA_SOURCE | 0 | b | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | irq | ||
| LOCK2 | 0 | &b->bm_lock | |
| HALF_LOCKED2 | &adm_ctx->resource->adm_mutex | ||
| TYPE_LOCK | (struct drbd_bitmap)->bm_lock |
drivers/block/drbd/drbd_bitmap.c drbd_bm_count_bits() -> bm_map_pidx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | b | 4096-ptr_max |
| PARAM_VALUE | 0 | b->bm_number_of_pages | 1-u64max |
| CAPPED_DATA | 1 | idx | 1 |
| DATA_SOURCE | 1 | idx | r bm_bit_to_page_idx |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | idx | 0-s32max[c] |
| USER_DATA | 1 | idx | 0-s32max[c] |
| LOCK2 | flags | ||
| LOCK2 | 0 | &b->bm_lock | |
| HALF_LOCKED2 | &resource->req_lock | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct drbd_bitmap)->bm_lock |
drivers/block/drbd/drbd_bitmap.c drbd_bm_e_weight() -> bm_map_pidx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | b | 4096-ptr_max |
| PARAM_VALUE | 0 | b->bm_number_of_pages | 1-u64max |
| PARAM_VALUE | 0 | b->bm_words | 1-u64max |
| CAPPED_DATA | 1 | idx | 1 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | idx | 0-8192[c] |
| USER_DATA | 1 | idx | 0-8192[c] |
| LOCK2 | &device->al_lock | ||
| LOCK2 | flags | ||
| LOCK2 | 0 | &b->bm_lock | |
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct drbd_bitmap)->bm_lock | ||
| TYPE_LOCK | (struct drbd_device)->al_lock |
drivers/block/drbd/drbd_bitmap.c drbd_bm_get_lel() -> bm_map_pidx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | b->bm_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | b->bm_number_of_pages | 1-u64max |
| PARAM_VALUE | 0 | b->bm_words | 1-u64max |
| BUF_SIZE | 0 | b | 0 |
| CAPPED_DATA | 1 | idx | 1 |
| BIT_INFO | 0 | b | 0x0,0x0 |
| PREEMPT_ADD | <- disables preempt | ||
| LOCK2 | &sock->mutex | ||
| LOCK2 | irq | ||
| LOCK2 | 0 | &b->bm_lock | |
| TYPE_LOCK | (struct drbd_bitmap)->bm_lock | ||
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_bitmap.c drbd_bm_merge_lel() -> bm_map_pidx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | b->bm_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | b->bm_number_of_pages | 1-u64max |
| BUF_SIZE | 0 | b | 0 |
| CAPPED_DATA | 1 | idx | 1 |
| DATA_SOURCE | 1 | idx | r bm_word_to_page_idx |
| BIT_INFO | 0 | b | 0x0,0x0 |
| PREEMPT_ADD | <- disables preempt | ||
| LOCK2 | irq | ||
| LOCK2 | 0 | &b->bm_lock | |
| TYPE_LOCK | (struct drbd_bitmap)->bm_lock |
drivers/block/drbd/drbd_bitmap.c drbd_bm_test_bit() -> bm_map_pidx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | b | 4096-ptr_max |
| PARAM_VALUE | 0 | b->bm_bits | 1-9223372036854775807 |
| PARAM_VALUE | 0 | b->bm_number_of_pages | 1-u64max |
| CAPPED_DATA | 0 | b->bm_bits | 1 |
| CAPPED_DATA | 1 | idx | 1 |
| PREEMPT_ADD | <- disables preempt | ||
| LOCK2 | flags | ||
| LOCK2 | 0 | &b->bm_lock | |
| TYPE_LOCK | (struct drbd_bitmap)->bm_lock |