Home
last modified time | relevance | path

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

/linux/drivers/gpu/host1x/
H A Dchannel.c16 int host1x_channel_list_init(struct host1x_channel_list *chlist, in host1x_channel_list_init() argument
19 chlist->channels = kcalloc(num_channels, sizeof(struct host1x_channel), in host1x_channel_list_init()
21 if (!chlist->channels) in host1x_channel_list_init()
24 chlist->allocated_channels = bitmap_zalloc(num_channels, GFP_KERNEL); in host1x_channel_list_init()
25 if (!chlist->allocated_channels) { in host1x_channel_list_init()
26 kfree(chlist->channels); in host1x_channel_list_init()
30 mutex_init(&chlist->lock); in host1x_channel_list_init()
35 void host1x_channel_list_free(struct host1x_channel_list *chlist) in host1x_channel_list_free() argument
37 bitmap_free(chlist->allocated_channels); in host1x_channel_list_free()
38 kfree(chlist->channels); in host1x_channel_list_free()
[all …]
H A Dchannel.h38 int host1x_channel_list_init(struct host1x_channel_list *chlist,
40 void host1x_channel_list_free(struct host1x_channel_list *chlist);