Lines Matching +full:- +full:r

4  * SPDX-License-Identifier: Apache-2.0
15 const struct ili9xxx_config *config = dev->config; in ili9340_regs_init()
16 const struct ili9340_regs *regs = config->regs; in ili9340_regs_init()
18 int r; in ili9340_regs_init() local
20 LOG_HEXDUMP_DBG(regs->gamset, ILI9340_GAMSET_LEN, "GAMSET"); in ili9340_regs_init()
21 r = ili9xxx_transmit(dev, ILI9340_GAMSET, regs->gamset, in ili9340_regs_init()
23 if (r < 0) { in ili9340_regs_init()
24 return r; in ili9340_regs_init()
27 LOG_HEXDUMP_DBG(regs->frmctr1, ILI9340_FRMCTR1_LEN, "FRMCTR1"); in ili9340_regs_init()
28 r = ili9xxx_transmit(dev, ILI9340_FRMCTR1, regs->frmctr1, in ili9340_regs_init()
30 if (r < 0) { in ili9340_regs_init()
31 return r; in ili9340_regs_init()
34 LOG_HEXDUMP_DBG(regs->disctrl, ILI9340_DISCTRL_LEN, "DISCTRL"); in ili9340_regs_init()
35 r = ili9xxx_transmit(dev, ILI9340_DISCTRL, regs->disctrl, in ili9340_regs_init()
37 if (r < 0) { in ili9340_regs_init()
38 return r; in ili9340_regs_init()
41 LOG_HEXDUMP_DBG(regs->pwctrl1, ILI9340_PWCTRL1_LEN, "PWCTRL1"); in ili9340_regs_init()
42 r = ili9xxx_transmit(dev, ILI9340_PWCTRL1, regs->pwctrl1, in ili9340_regs_init()
44 if (r < 0) { in ili9340_regs_init()
45 return r; in ili9340_regs_init()
48 LOG_HEXDUMP_DBG(regs->pwctrl2, ILI9340_PWCTRL2_LEN, "PWCTRL2"); in ili9340_regs_init()
49 r = ili9xxx_transmit(dev, ILI9340_PWCTRL2, regs->pwctrl2, in ili9340_regs_init()
51 if (r < 0) { in ili9340_regs_init()
52 return r; in ili9340_regs_init()
55 LOG_HEXDUMP_DBG(regs->vmctrl1, ILI9340_VMCTRL1_LEN, "VMCTRL1"); in ili9340_regs_init()
56 r = ili9xxx_transmit(dev, ILI9340_VMCTRL1, regs->vmctrl1, in ili9340_regs_init()
58 if (r < 0) { in ili9340_regs_init()
59 return r; in ili9340_regs_init()
62 LOG_HEXDUMP_DBG(regs->vmctrl2, ILI9340_VMCTRL2_LEN, "VMCTRL2"); in ili9340_regs_init()
63 r = ili9xxx_transmit(dev, ILI9340_VMCTRL2, regs->vmctrl2, in ili9340_regs_init()
65 if (r < 0) { in ili9340_regs_init()
66 return r; in ili9340_regs_init()
69 LOG_HEXDUMP_DBG(regs->pgamctrl, ILI9340_PGAMCTRL_LEN, "PGAMCTRL"); in ili9340_regs_init()
70 r = ili9xxx_transmit(dev, ILI9340_PGAMCTRL, regs->pgamctrl, in ili9340_regs_init()
72 if (r < 0) { in ili9340_regs_init()
73 return r; in ili9340_regs_init()
76 LOG_HEXDUMP_DBG(regs->ngamctrl, ILI9340_NGAMCTRL_LEN, "NGAMCTRL"); in ili9340_regs_init()
77 r = ili9xxx_transmit(dev, ILI9340_NGAMCTRL, regs->ngamctrl, in ili9340_regs_init()
79 if (r < 0) { in ili9340_regs_init()
80 return r; in ili9340_regs_init()