Skip to content

Commit

Permalink
blk: missing size -> capacity rename
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan-Velickovic <i.velickovic@unsw.edu.au>
  • Loading branch information
Ivan-Velickovic committed Oct 10, 2024
1 parent b40c3e3 commit 8a06603
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions blk/components/virt.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ void init(void)
for (int i = 0; i < BLK_NUM_CLIENTS; i++) {
blk_req_queue_t *curr_req = blk_virt_cli_req_queue(blk_client_req_queue, i);
blk_resp_queue_t *curr_resp = blk_virt_cli_resp_queue(blk_client_resp_queue, i);
uint32_t queue_size = blk_virt_cli_queue_size(i);
blk_queue_init(&clients[i].queue_h, curr_req, curr_resp, queue_size);
uint32_t queue_capacity = blk_virt_cli_queue_capacity(i);
blk_queue_init(&clients[i].queue_h, curr_req, curr_resp, queue_capacity);
clients[i].ch = CLI_CH_OFFSET + i;
}

Expand Down
4 changes: 2 additions & 2 deletions examples/blk/blk_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static inline blk_resp_queue_t *blk_virt_cli_resp_queue(blk_resp_queue_t *resp,
}
}

static inline uint32_t blk_virt_cli_queue_size(unsigned int id)
static inline uint32_t blk_virt_cli_queue_capacity(unsigned int id)
{
switch (id) {
case 0:
Expand All @@ -86,7 +86,7 @@ static inline uint32_t blk_virt_cli_queue_size(unsigned int id)
}
}

static inline uint32_t blk_cli_queue_size(char *pd_name)
static inline uint32_t blk_cli_queue_capacity(char *pd_name)
{
if (!sddf_strcmp(pd_name, BLK_NAME_CLI0)) {
return BLK_QUEUE_CAPACITY_CLI0;
Expand Down
4 changes: 2 additions & 2 deletions examples/mmc/include/configs/blk_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static inline blk_resp_queue_t *blk_virt_cli_resp_queue(blk_resp_queue_t *resp,
}
}

static inline uint32_t blk_virt_cli_queue_size(unsigned int id)
static inline uint32_t blk_virt_cli_queue_capacity(unsigned int id)
{
switch (id) {
case 0:
Expand All @@ -88,7 +88,7 @@ static inline uint32_t blk_virt_cli_queue_size(unsigned int id)
}
}

static inline uint32_t blk_cli_queue_size(char *pd_name)
static inline uint32_t blk_cli_queue_capacity(char *pd_name)
{
if (!sddf_strcmp(pd_name, BLK_NAME_CLI0)) {
return BLK_QUEUE_CAPACITY_CLI0;
Expand Down

0 comments on commit 8a06603

Please sign in to comment.