Lines Matching full:op_mode
833 for op_mode in ['do', 'dump']:
834 self.hooks[when][op_mode] = dict()
835 self.hooks[when][op_mode]['set'] = set()
836 self.hooks[when][op_mode]['list'] = []
885 for op_mode in ['do', 'dump']:
886 if op_mode in op and 'request' in op[op_mode]:
887 req_attrs.update(set(op[op_mode]['request']['attributes']))
888 if op_mode in op and 'reply' in op[op_mode]:
889 rsp_attrs.update(set(op[op_mode]['reply']['attributes']))
982 for op_mode in ['do', 'dump']:
983 if op_mode in op:
984 req = op[op_mode].get('request')
996 for op_mode in ['do', 'dump']:
997 if op_mode not in op:
1000 if when not in op[op_mode]:
1002 name = op[op_mode][when]
1003 if name in self.hooks[when][op_mode]['set']:
1005 self.hooks[when][op_mode]['set'].add(name)
1006 self.hooks[when][op_mode]['list'].append(name)
1010 def __init__(self, cw, family, ku_space, op, op_mode, attr_set=None): argument
1014 self.op_mode = op_mode
1019 if op_mode != 'do' and 'dump' in op and 'do' in op:
1040 if op_mode == 'notify':
1041 op_mode = 'do'
1043 if op and op_dir in op[op_mode]:
1045 type_list=op[op_mode][op_dir]['attributes'])
1046 if op_mode == 'event':
1289 if not ri.op_mode or ri.op_mode == 'do':
1299 suffix += op_mode_to_wrapper[ri.op_mode]
1315 if ri.op_mode == 'dump':
1319 if 'request' in ri.op[ri.op_mode]:
1323 if 'reply' in ri.op[ri.op_mode]:
1552 if 'reply' not in ri.op[ri.op_mode] and ri.op_mode != 'event':
1582 if 'reply' in ri.op[ri.op_mode]:
1595 if 'reply' in ri.op[ri.op_mode]:
1603 if 'reply' in ri.op[ri.op_mode]:
1615 if 'reply' in ri.op[ri.op_mode]:
1624 if 'reply' in ri.op[ri.op_mode]:
1655 if "request" in ri.op[ri.op_mode]:
1707 if ri.op_mode == 'dump':
1759 if 'reply' not in ri.op[ri.op_mode]:
1779 if 'request' not in ri.op[ri.op_mode]:
1785 if (ri.op_mode == 'do' or ri.op_mode == 'dump') and 'reply' in ri.op[ri.op_mode]:
1787 elif ri.op_mode == 'event':
1796 if ri.op_mode == 'dump':
1798 elif ri.op_mode == 'notify' or ri.op_mode == 'event':
1841 if 'reply' not in ri.op[ri.op_mode]:
1894 name += '_' + ri.op_mode
2000 for op_mode in ['do', 'dump']:
2001 if op_mode in op:
2002 name = c_lower(f"{family.name}-nl-{op_name}-{op_mode}it")
2003 members.append((op_mode + 'it', name))
2020 for op_mode in ['do', 'dump']:
2021 if op.is_async or op_mode not in op:
2029 if op_mode == 'do' and x in ['dump', 'dump-strict']:
2031 if op_mode == "dump" and x == 'strict':
2039 name = c_lower(f"{family.name}-nl-{op_name}-{op_mode}it")
2040 if 'pre' in op[op_mode]:
2041 members.append((cb_names[op_mode]['pre'], c_lower(op[op_mode]['pre'])))
2042 members.append((op_mode + 'it', name))
2043 if 'post' in op[op_mode]:
2044 members.append((cb_names[op_mode]['post'], c_lower(op[op_mode]['post'])))
2045 if 'request' in op[op_mode]:
2047 type_list=op[op_mode]['request']['attributes'])
2050 name = c_lower(f"{family.name}-{op_name}-{op_mode}-nl-policy")
2055 flags = (op['flags'] if 'flags' in op else []) + ['cmd-cap-' + op_mode]
2473 for op_mode in ['do', 'dump']:
2474 if op_mode in op and 'request' in op[op_mode]:
2475 cw.p(f"/* {op.enum_name} - {op_mode} */")
2476 ri = RenderInfo(cw, parsed, args.mode, op, op_mode)