Lines Matching full:r
29 int r; in ili9xxx_transmit() local
38 r = spi_write_dt(&config->spi, &tx_bufs); in ili9xxx_transmit()
39 if (r < 0) { in ili9xxx_transmit()
40 return r; in ili9xxx_transmit()
49 r = spi_write_dt(&config->spi, &tx_bufs); in ili9xxx_transmit()
50 if (r < 0) { in ili9xxx_transmit()
51 return r; in ili9xxx_transmit()
60 int r; in ili9xxx_exit_sleep() local
62 r = ili9xxx_transmit(dev, ILI9XXX_SLPOUT, NULL, 0); in ili9xxx_exit_sleep()
63 if (r < 0) { in ili9xxx_exit_sleep()
64 return r; in ili9xxx_exit_sleep()
91 int r; in ili9xxx_set_mem_area() local
96 r = ili9xxx_transmit(dev, ILI9XXX_CASET, &spi_data[0], 4U); in ili9xxx_set_mem_area()
97 if (r < 0) { in ili9xxx_set_mem_area()
98 return r; in ili9xxx_set_mem_area()
103 r = ili9xxx_transmit(dev, ILI9XXX_PASET, &spi_data[0], 4U); in ili9xxx_set_mem_area()
104 if (r < 0) { in ili9xxx_set_mem_area()
105 return r; in ili9xxx_set_mem_area()
119 int r; in ili9xxx_write() local
134 r = ili9xxx_set_mem_area(dev, x, y, desc->width, desc->height); in ili9xxx_write()
135 if (r < 0) { in ili9xxx_write()
136 return r; in ili9xxx_write()
147 r = ili9xxx_transmit(dev, ILI9XXX_RAMWR, write_data_start, in ili9xxx_write()
149 if (r < 0) { in ili9xxx_write()
150 return r; in ili9xxx_write()
161 r = spi_write_dt(&config->spi, &tx_bufs); in ili9xxx_write()
162 if (r < 0) { in ili9xxx_write()
163 return r; in ili9xxx_write()
218 int r; in ili9xxx_set_pixel_format() local
233 r = ili9xxx_transmit(dev, ILI9XXX_PIXSET, &tx_data, 1U); in ili9xxx_set_pixel_format()
234 if (r < 0) { in ili9xxx_set_pixel_format()
235 return r; in ili9xxx_set_pixel_format()
250 int r; in ili9xxx_set_orientation() local
275 r = ili9xxx_transmit(dev, ILI9XXX_MADCTL, &tx_data, 1U); in ili9xxx_set_orientation()
276 if (r < 0) { in ili9xxx_set_orientation()
277 return r; in ili9xxx_set_orientation()
313 int r; in ili9xxx_configure() local
324 r = ili9xxx_set_pixel_format(dev, pixel_format); in ili9xxx_configure()
325 if (r < 0) { in ili9xxx_configure()
326 return r; in ili9xxx_configure()
340 r = ili9xxx_set_orientation(dev, orientation); in ili9xxx_configure()
341 if (r < 0) { in ili9xxx_configure()
342 return r; in ili9xxx_configure()
346 r = ili9xxx_transmit(dev, ILI9XXX_DINVON, NULL, 0U); in ili9xxx_configure()
347 if (r < 0) { in ili9xxx_configure()
348 return r; in ili9xxx_configure()
352 r = config->regs_init_fn(dev); in ili9xxx_configure()
353 if (r < 0) { in ili9xxx_configure()
354 return r; in ili9xxx_configure()
364 int r; in ili9xxx_init() local
376 r = gpio_pin_configure_dt(&config->cmd_data, GPIO_OUTPUT); in ili9xxx_init()
377 if (r < 0) { in ili9xxx_init()
378 LOG_ERR("Could not configure command/data GPIO (%d)", r); in ili9xxx_init()
379 return r; in ili9xxx_init()
388 r = gpio_pin_configure_dt(&config->reset, GPIO_OUTPUT_INACTIVE); in ili9xxx_init()
389 if (r < 0) { in ili9xxx_init()
390 LOG_ERR("Could not configure reset GPIO (%d)", r); in ili9xxx_init()
391 return r; in ili9xxx_init()
397 r = ili9xxx_transmit(dev, ILI9XXX_SWRESET, NULL, 0); in ili9xxx_init()
398 if (r < 0) { in ili9xxx_init()
399 LOG_ERR("Error transmit command Software Reset (%d)", r); in ili9xxx_init()
400 return r; in ili9xxx_init()
407 r = ili9xxx_configure(dev); in ili9xxx_init()
408 if (r < 0) { in ili9xxx_init()
409 LOG_ERR("Could not configure display (%d)", r); in ili9xxx_init()
410 return r; in ili9xxx_init()
413 r = ili9xxx_exit_sleep(dev); in ili9xxx_init()
414 if (r < 0) { in ili9xxx_init()
415 LOG_ERR("Could not exit sleep mode (%d)", r); in ili9xxx_init()
416 return r; in ili9xxx_init()