Home
last modified time | relevance | path

Searched refs:free_db_area (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_io.c45 static void init_db_area_idx(struct hinic_free_db_area *free_db_area) in init_db_area_idx() argument
50 free_db_area->db_idx[i] = i; in init_db_area_idx()
52 free_db_area->alloc_pos = 0; in init_db_area_idx()
53 free_db_area->return_pos = HINIC_DB_MAX_AREAS; in init_db_area_idx()
55 free_db_area->num_free = HINIC_DB_MAX_AREAS; in init_db_area_idx()
57 sema_init(&free_db_area->idx_lock, 1); in init_db_area_idx()
62 struct hinic_free_db_area *free_db_area = &func_to_io->free_db_area; in get_db_area() local
65 down(&free_db_area->idx_lock); in get_db_area()
67 free_db_area->num_free--; in get_db_area()
69 if (free_db_area->num_free < 0) { in get_db_area()
[all …]
Dhinic_hw_io.h82 struct hinic_free_db_area free_db_area; member