Lines Matching defs:sel
496 struct aspeed_uart_routing_selector *sel = to_routing_selector(attr);
499 regmap_read(uart_routing->map, sel->reg, &val);
500 val = (val >> sel->shift) & sel->mask;
503 for (pos = 0; sel->options[pos] != NULL; ++pos) {
505 len += sysfs_emit_at(buf, len, "[%s] ", sel->options[pos]);
507 len += sysfs_emit_at(buf, len, "%s ", sel->options[pos]);
523 struct aspeed_uart_routing_selector *sel = to_routing_selector(attr);
526 val = __sysfs_match_string(sel->options, -1, buf);
532 regmap_update_bits(uart_routing->map, sel->reg,
533 (sel->mask << sel->shift),
534 (val & sel->mask) << sel->shift);