Lines Matching refs:sc
274 def sc_fmt(sc): argument
275 if isinstance(sc, kconfiglib.Symbol):
276 if sc.nodes:
278 elif isinstance(sc, kconfiglib.Choice):
279 if not sc.name:
283 return kconfiglib.standard_sc_expr_str(sc)
296 for sc in sorted(
298 key=lambda sc: sc.name if sc.name else "",
301 if not sc.name:
306 for node in sc.nodes:
312 if cond is not sc.kconfig.y:
322 if isinstance(sc, kconfiglib.Symbol) and sc.rev_dep != sc.kconfig.n:
323 for select in kconfiglib.split_expr(sc.rev_dep, kconfiglib.OR):
328 if isinstance(sc, kconfiglib.Symbol) and sc.weak_rev_dep != sc.kconfig.n:
329 for select in kconfiglib.split_expr(sc.weak_rev_dep, kconfiglib.OR):
334 nodes = [node for node in sc.nodes if node.prompt or node.help]
346 if node.dep is not sc.kconfig.y:
352 if cond is not sc.kconfig.y:
359 if cond is not sc.kconfig.y:
366 if cond is not sc.kconfig.y:
376 if cond is not sc.kconfig.y:
381 if isinstance(sc, kconfiglib.Choice):
382 for sym in sc.syms:
408 "type": kconfiglib.TYPE_TO_STR[sc.type],