Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/md/bcache/bset.c bch_bset_insert() -> bset_byte_offset()

Type Parameter Key Value
PARAM_VALUE 0 b 4096-ptr_max
PARAM_VALUE 0 b->set 4096-u64max
DATA_SOURCE 0 b $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &b->write_lock
HALF_LOCKED2 &b->io_mutex
HALF_LOCKED2 &n->io_mutex
HALF_LOCKED2 &n2->io_mutex
HALF_LOCKED2 &n2->write_lock
HALF_LOCKED2 b
TYPE_LOCK (struct btree)->write_lock

drivers/md/bcache/bset.c bset_sector_offset() -> bset_byte_offset()

Type Parameter Key Value
PARAM_VALUE 0 b 4096-ptr_max
PARAM_VALUE 0 b->set 4096-ptr_max
BUF_SIZE 0 b (-1),216
BUF_SIZE 0 b (-1),216
DATA_SOURCE 0 b $0
DATA_SOURCE 1 i $1
STR_LEN 0 b (-1),7,9
STR_LEN 0 b (-1),7,9
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &console_sem

drivers/md/bcache/btree.c bch_btree_keys_u64s_remaining() -> bset_byte_offset()

Type Parameter Key Value
PARAM_VALUE 0 b 4096-ptr_max
DATA_SOURCE 0 b $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &b->write_lock
HALF_LOCKED2 &b->io_mutex
HALF_LOCKED2 &n->io_mutex
HALF_LOCKED2 &n1->io_mutex
HALF_LOCKED2 b
TYPE_LOCK (struct btree)->write_lock

drivers/md/bcache/btree.c bch_btree_keys_u64s_remaining() -> bset_byte_offset()

Type Parameter Key Value
PARAM_VALUE 0 b 4096-ptr_max
PARAM_VALUE 1 i 4096-ptr_max
DATA_SOURCE 0 b $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &b->write_lock
HALF_LOCKED2 &b->io_mutex
HALF_LOCKED2 &n->io_mutex
HALF_LOCKED2 &n1->io_mutex
HALF_LOCKED2 b
TYPE_LOCK (struct btree)->write_lock

drivers/md/bcache/btree.c bset_sector_offset() -> bset_byte_offset()

Type Parameter Key Value
PARAM_VALUE 0 b 4096-ptr_max
DATA_SOURCE 0 b $0
DATA_SOURCE 1 i $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &b->io_mutex