Lines Matching refs:ent
32 get_gpio_location(struct dcb_gpio_entry *ent, uint32_t *reg, uint32_t *shift,
35 if (ent->line < 2) {
37 *shift = ent->line * 16;
40 } else if (ent->line < 10) {
42 *shift = (ent->line - 2) * 4;
45 } else if (ent->line < 14) {
47 *shift = (ent->line - 10) * 4;
60 struct dcb_gpio_entry *ent = nouveau_bios_gpio_entry(dev, tag);
63 if (!ent)
66 if (!get_gpio_location(ent, ®, &shift, &mask))
71 return (ent->invert ? 1 : 0) ^ (value & 1);
77 struct dcb_gpio_entry *ent = nouveau_bios_gpio_entry(dev, tag);
80 if (!ent)
83 if (!get_gpio_location(ent, ®, &shift, &mask))
86 value = ((ent->invert ? 1 : 0) ^ (state ? 1 : 0)) << shift;