Lines Matching +full:- +full:r
6 * SPDX-License-Identifier: Apache-2.0
17 const struct ili9xxx_config *config = dev->config; in ili9341_regs_init()
18 const struct ili9341_regs *regs = config->regs; in ili9341_regs_init()
20 int r; in ili9341_regs_init() local
22 LOG_HEXDUMP_DBG(regs->pwseqctrl, ILI9341_PWSEQCTRL_LEN, "PWSEQCTRL"); in ili9341_regs_init()
23 r = ili9xxx_transmit(dev, ILI9341_PWSEQCTRL, regs->pwseqctrl, ILI9341_PWSEQCTRL_LEN); in ili9341_regs_init()
24 if (r < 0) { in ili9341_regs_init()
25 return r; in ili9341_regs_init()
28 LOG_HEXDUMP_DBG(regs->timctrla, ILI9341_TIMCTRLA_LEN, "TIMCTRLA"); in ili9341_regs_init()
29 r = ili9xxx_transmit(dev, ILI9341_TIMCTRLA, regs->timctrla, ILI9341_TIMCTRLA_LEN); in ili9341_regs_init()
30 if (r < 0) { in ili9341_regs_init()
31 return r; in ili9341_regs_init()
34 LOG_HEXDUMP_DBG(regs->timctrlb, ILI9341_TIMCTRLB_LEN, "TIMCTRLB"); in ili9341_regs_init()
35 r = ili9xxx_transmit(dev, ILI9341_TIMCTRLB, regs->timctrlb, ILI9341_TIMCTRLB_LEN); in ili9341_regs_init()
36 if (r < 0) { in ili9341_regs_init()
37 return r; in ili9341_regs_init()
40 LOG_HEXDUMP_DBG(regs->pumpratioctrl, ILI9341_PUMPRATIOCTRL_LEN, "PUMPRATIOCTRL"); in ili9341_regs_init()
41 r = ili9xxx_transmit(dev, ILI9341_PUMPRATIOCTRL, regs->pumpratioctrl, in ili9341_regs_init()
43 if (r < 0) { in ili9341_regs_init()
44 return r; in ili9341_regs_init()
47 LOG_HEXDUMP_DBG(regs->pwctrla, ILI9341_PWCTRLA_LEN, "PWCTRLA"); in ili9341_regs_init()
48 r = ili9xxx_transmit(dev, ILI9341_PWCTRLA, regs->pwctrla, ILI9341_PWCTRLA_LEN); in ili9341_regs_init()
49 if (r < 0) { in ili9341_regs_init()
50 return r; in ili9341_regs_init()
53 LOG_HEXDUMP_DBG(regs->pwctrlb, ILI9341_PWCTRLB_LEN, "PWCTRLB"); in ili9341_regs_init()
54 r = ili9xxx_transmit(dev, ILI9341_PWCTRLB, regs->pwctrlb, ILI9341_PWCTRLB_LEN); in ili9341_regs_init()
55 if (r < 0) { in ili9341_regs_init()
56 return r; in ili9341_regs_init()
59 LOG_HEXDUMP_DBG(regs->gamset, ILI9341_GAMSET_LEN, "GAMSET"); in ili9341_regs_init()
60 r = ili9xxx_transmit(dev, ILI9341_GAMSET, regs->gamset, ILI9341_GAMSET_LEN); in ili9341_regs_init()
61 if (r < 0) { in ili9341_regs_init()
62 return r; in ili9341_regs_init()
65 LOG_HEXDUMP_DBG(regs->frmctr1, ILI9341_FRMCTR1_LEN, "FRMCTR1"); in ili9341_regs_init()
66 r = ili9xxx_transmit(dev, ILI9341_FRMCTR1, regs->frmctr1, ILI9341_FRMCTR1_LEN); in ili9341_regs_init()
67 if (r < 0) { in ili9341_regs_init()
68 return r; in ili9341_regs_init()
71 LOG_HEXDUMP_DBG(regs->disctrl, ILI9341_DISCTRL_LEN, "DISCTRL"); in ili9341_regs_init()
72 r = ili9xxx_transmit(dev, ILI9341_DISCTRL, regs->disctrl, ILI9341_DISCTRL_LEN); in ili9341_regs_init()
73 if (r < 0) { in ili9341_regs_init()
74 return r; in ili9341_regs_init()
77 LOG_HEXDUMP_DBG(regs->pwctrl1, ILI9341_PWCTRL1_LEN, "PWCTRL1"); in ili9341_regs_init()
78 r = ili9xxx_transmit(dev, ILI9341_PWCTRL1, regs->pwctrl1, ILI9341_PWCTRL1_LEN); in ili9341_regs_init()
79 if (r < 0) { in ili9341_regs_init()
80 return r; in ili9341_regs_init()
83 LOG_HEXDUMP_DBG(regs->pwctrl2, ILI9341_PWCTRL2_LEN, "PWCTRL2"); in ili9341_regs_init()
84 r = ili9xxx_transmit(dev, ILI9341_PWCTRL2, regs->pwctrl2, ILI9341_PWCTRL2_LEN); in ili9341_regs_init()
85 if (r < 0) { in ili9341_regs_init()
86 return r; in ili9341_regs_init()
89 LOG_HEXDUMP_DBG(regs->vmctrl1, ILI9341_VMCTRL1_LEN, "VMCTRL1"); in ili9341_regs_init()
90 r = ili9xxx_transmit(dev, ILI9341_VMCTRL1, regs->vmctrl1, ILI9341_VMCTRL1_LEN); in ili9341_regs_init()
91 if (r < 0) { in ili9341_regs_init()
92 return r; in ili9341_regs_init()
95 LOG_HEXDUMP_DBG(regs->vmctrl2, ILI9341_VMCTRL2_LEN, "VMCTRL2"); in ili9341_regs_init()
96 r = ili9xxx_transmit(dev, ILI9341_VMCTRL2, regs->vmctrl2, ILI9341_VMCTRL2_LEN); in ili9341_regs_init()
97 if (r < 0) { in ili9341_regs_init()
98 return r; in ili9341_regs_init()
101 LOG_HEXDUMP_DBG(regs->pgamctrl, ILI9341_PGAMCTRL_LEN, "PGAMCTRL"); in ili9341_regs_init()
102 r = ili9xxx_transmit(dev, ILI9341_PGAMCTRL, regs->pgamctrl, ILI9341_PGAMCTRL_LEN); in ili9341_regs_init()
103 if (r < 0) { in ili9341_regs_init()
104 return r; in ili9341_regs_init()
107 LOG_HEXDUMP_DBG(regs->ngamctrl, ILI9341_NGAMCTRL_LEN, "NGAMCTRL"); in ili9341_regs_init()
108 r = ili9xxx_transmit(dev, ILI9341_NGAMCTRL, regs->ngamctrl, ILI9341_NGAMCTRL_LEN); in ili9341_regs_init()
109 if (r < 0) { in ili9341_regs_init()
110 return r; in ili9341_regs_init()
113 LOG_HEXDUMP_DBG(regs->enable3g, ILI9341_ENABLE3G_LEN, "ENABLE3G"); in ili9341_regs_init()
114 r = ili9xxx_transmit(dev, ILI9341_ENABLE3G, regs->enable3g, ILI9341_ENABLE3G_LEN); in ili9341_regs_init()
115 if (r < 0) { in ili9341_regs_init()
116 return r; in ili9341_regs_init()
119 LOG_HEXDUMP_DBG(regs->ifmode, ILI9341_IFMODE_LEN, "IFMODE"); in ili9341_regs_init()
120 r = ili9xxx_transmit(dev, ILI9341_IFMODE, regs->ifmode, ILI9341_IFMODE_LEN); in ili9341_regs_init()
121 if (r < 0) { in ili9341_regs_init()
122 return r; in ili9341_regs_init()
125 LOG_HEXDUMP_DBG(regs->ifctl, ILI9341_IFCTL_LEN, "IFCTL"); in ili9341_regs_init()
126 r = ili9xxx_transmit(dev, ILI9341_IFCTL, regs->ifctl, ILI9341_IFCTL_LEN); in ili9341_regs_init()
127 if (r < 0) { in ili9341_regs_init()
128 return r; in ili9341_regs_init()
131 LOG_HEXDUMP_DBG(regs->etmod, ILI9341_ETMOD_LEN, "ETMOD"); in ili9341_regs_init()
132 r = ili9xxx_transmit(dev, ILI9341_ETMOD, regs->etmod, ILI9341_ETMOD_LEN); in ili9341_regs_init()
133 if (r < 0) { in ili9341_regs_init()
134 return r; in ili9341_regs_init()