Lines Matching +full:- +full:r

7  * SPDX-License-Identifier: Apache-2.0
18 const struct ili9xxx_config *config = dev->config; in ili9342c_regs_init()
19 const struct ili9342c_regs *regs = config->regs; in ili9342c_regs_init()
20 int r; in ili9342c_regs_init() local
23 LOG_HEXDUMP_DBG(regs->setextc, ILI9342C_SETEXTC_LEN, "SETEXTC"); in ili9342c_regs_init()
24 r = ili9xxx_transmit(dev, ILI9342C_SETEXTC, regs->setextc, in ili9342c_regs_init()
26 if (r < 0) { in ili9342c_regs_init()
27 return r; in ili9342c_regs_init()
30 LOG_HEXDUMP_DBG(regs->gamset, ILI9342C_GAMSET_LEN, "GAMSET"); in ili9342c_regs_init()
31 r = ili9xxx_transmit(dev, ILI9342C_GAMSET, regs->gamset, in ili9342c_regs_init()
33 if (r < 0) { in ili9342c_regs_init()
34 return r; in ili9342c_regs_init()
37 LOG_HEXDUMP_DBG(regs->ifmode, ILI9342C_IFMODE_LEN, "IFMODE"); in ili9342c_regs_init()
38 r = ili9xxx_transmit(dev, ILI9342C_IFMODE, regs->ifmode, in ili9342c_regs_init()
40 if (r < 0) { in ili9342c_regs_init()
41 return r; in ili9342c_regs_init()
44 LOG_HEXDUMP_DBG(regs->frmctr1, ILI9342C_FRMCTR1_LEN, "FRMCTR1"); in ili9342c_regs_init()
45 r = ili9xxx_transmit(dev, ILI9342C_FRMCTR1, regs->frmctr1, in ili9342c_regs_init()
47 if (r < 0) { in ili9342c_regs_init()
48 return r; in ili9342c_regs_init()
51 LOG_HEXDUMP_DBG(regs->invtr, ILI9342C_INVTR_LEN, "INVTR"); in ili9342c_regs_init()
52 r = ili9xxx_transmit(dev, ILI9342C_INVTR, regs->invtr, in ili9342c_regs_init()
54 if (r < 0) { in ili9342c_regs_init()
55 return r; in ili9342c_regs_init()
58 LOG_HEXDUMP_DBG(regs->disctrl, ILI9342C_DISCTRL_LEN, "DISCTRL"); in ili9342c_regs_init()
59 r = ili9xxx_transmit(dev, ILI9342C_DISCTRL, regs->disctrl, in ili9342c_regs_init()
61 if (r < 0) { in ili9342c_regs_init()
62 return r; in ili9342c_regs_init()
65 LOG_HEXDUMP_DBG(regs->etmod, ILI9342C_ETMOD_LEN, "ETMOD"); in ili9342c_regs_init()
66 r = ili9xxx_transmit(dev, ILI9342C_ETMOD, regs->etmod, in ili9342c_regs_init()
68 if (r < 0) { in ili9342c_regs_init()
69 return r; in ili9342c_regs_init()
72 LOG_HEXDUMP_DBG(regs->pwctrl1, ILI9342C_PWCTRL1_LEN, "PWCTRL1"); in ili9342c_regs_init()
73 r = ili9xxx_transmit(dev, ILI9342C_PWCTRL1, regs->pwctrl1, in ili9342c_regs_init()
75 if (r < 0) { in ili9342c_regs_init()
76 return r; in ili9342c_regs_init()
79 LOG_HEXDUMP_DBG(regs->pwctrl2, ILI9342C_PWCTRL2_LEN, "PWCTRL2"); in ili9342c_regs_init()
80 r = ili9xxx_transmit(dev, ILI9342C_PWCTRL2, regs->pwctrl2, in ili9342c_regs_init()
82 if (r < 0) { in ili9342c_regs_init()
83 return r; in ili9342c_regs_init()
86 LOG_HEXDUMP_DBG(regs->pwctrl3, ILI9342C_PWCTRL3_LEN, "PWCTRL3"); in ili9342c_regs_init()
87 r = ili9xxx_transmit(dev, ILI9342C_PWCTRL3, regs->pwctrl3, in ili9342c_regs_init()
89 if (r < 0) { in ili9342c_regs_init()
90 return r; in ili9342c_regs_init()
93 LOG_HEXDUMP_DBG(regs->vmctrl1, ILI9342C_VMCTRL1_LEN, "VMCTRL1"); in ili9342c_regs_init()
94 r = ili9xxx_transmit(dev, ILI9342C_VMCTRL1, regs->vmctrl1, in ili9342c_regs_init()
96 if (r < 0) { in ili9342c_regs_init()
97 return r; in ili9342c_regs_init()
100 LOG_HEXDUMP_DBG(regs->pgamctrl, ILI9342C_PGAMCTRL_LEN, "PGAMCTRL"); in ili9342c_regs_init()
101 r = ili9xxx_transmit(dev, ILI9342C_PGAMCTRL, regs->pgamctrl, in ili9342c_regs_init()
103 if (r < 0) { in ili9342c_regs_init()
104 return r; in ili9342c_regs_init()
107 LOG_HEXDUMP_DBG(regs->ngamctrl, ILI9342C_NGAMCTRL_LEN, "NGAMCTRL"); in ili9342c_regs_init()
108 r = ili9xxx_transmit(dev, ILI9342C_NGAMCTRL, regs->ngamctrl, in ili9342c_regs_init()
110 if (r < 0) { in ili9342c_regs_init()
111 return r; in ili9342c_regs_init()
114 LOG_HEXDUMP_DBG(regs->ifctl, ILI9342C_IFCTL_LEN, "IFCTL"); in ili9342c_regs_init()
115 r = ili9xxx_transmit(dev, ILI9342C_IFCTL, regs->ifctl, in ili9342c_regs_init()
117 if (r < 0) { in ili9342c_regs_init()
118 return r; in ili9342c_regs_init()