Lines Matching defs:layout
27 const struct creg_layout *layout;
33 const struct creg_layout *layout = hcg->layout;
38 value = val ? hcg->layout->on[offset] : hcg->layout->off[offset];
40 reg_shift = layout->shift[offset];
42 reg_shift += layout->bit_per_gpio[i] + layout->shift[i];
46 reg &= ~(GENMASK(layout->bit_per_gpio[i] - 1, 0) << reg_shift);
62 const struct creg_layout *layout = hcg->layout;
64 if (layout->bit_per_gpio[i] < 1 || layout->bit_per_gpio[i] > 8)
68 if (GENMASK(31, layout->bit_per_gpio[i]) & layout->on[i])
72 if (GENMASK(31, layout->bit_per_gpio[i]) & layout->off[i])
75 if (layout->on[i] == layout->off[i])
87 if (hcg->layout->ngpio < 1 || hcg->layout->ngpio > MAX_GPIO)
90 if (ngpios < 1 || ngpios > hcg->layout->ngpio) {
91 dev_err(dev, "ngpios must be in [1:%u]\n", hcg->layout->ngpio);
95 for (i = 0; i < hcg->layout->ngpio; i++) {
99 reg_len += hcg->layout->shift[i] + hcg->layout->bit_per_gpio[i];
152 hcg->layout = match->data;
153 if (!hcg->layout)