Lines Matching refs:array
116 struct ssd1307fb_array *array; in ssd1307fb_alloc_array() local
118 array = kzalloc(sizeof(struct ssd1307fb_array) + len, GFP_KERNEL); in ssd1307fb_alloc_array()
119 if (!array) in ssd1307fb_alloc_array()
122 array->type = type; in ssd1307fb_alloc_array()
124 return array; in ssd1307fb_alloc_array()
128 struct ssd1307fb_array *array, u32 len) in ssd1307fb_write_array() argument
134 ret = i2c_master_send(client, (u8 *)array, len); in ssd1307fb_write_array()
145 struct ssd1307fb_array *array; in ssd1307fb_write_cmd() local
148 array = ssd1307fb_alloc_array(1, SSD1307FB_COMMAND); in ssd1307fb_write_cmd()
149 if (!array) in ssd1307fb_write_cmd()
152 array->data[0] = cmd; in ssd1307fb_write_cmd()
154 ret = ssd1307fb_write_array(client, array, 1); in ssd1307fb_write_cmd()
155 kfree(array); in ssd1307fb_write_cmd()
216 struct ssd1307fb_array *array; in ssd1307fb_update_rect() local
223 array = ssd1307fb_alloc_array(width * pages, SSD1307FB_DATA); in ssd1307fb_update_rect()
224 if (!array) in ssd1307fb_update_rect()
279 array->data[array_idx++] = data; in ssd1307fb_update_rect()
283 ret = ssd1307fb_write_array(par->client, array, width * pages); in ssd1307fb_update_rect()
286 kfree(array); in ssd1307fb_update_rect()