Lines Matching refs:op_mode
830 for op_mode in ['do', 'dump']:
831 self.hooks[when][op_mode] = dict()
832 self.hooks[when][op_mode]['set'] = set()
833 self.hooks[when][op_mode]['list'] = []
882 for op_mode in ['do', 'dump']:
883 if op_mode in op and 'request' in op[op_mode]:
884 req_attrs.update(set(op[op_mode]['request']['attributes']))
885 if op_mode in op and 'reply' in op[op_mode]:
886 rsp_attrs.update(set(op[op_mode]['reply']['attributes']))
979 for op_mode in ['do', 'dump']:
980 if op_mode in op:
981 req = op[op_mode].get('request')
993 for op_mode in ['do', 'dump']:
994 if op_mode not in op:
997 if when not in op[op_mode]:
999 name = op[op_mode][when]
1000 if name in self.hooks[when][op_mode]['set']:
1002 self.hooks[when][op_mode]['set'].add(name)
1003 self.hooks[when][op_mode]['list'].append(name)
1007 def __init__(self, cw, family, ku_space, op, op_mode, attr_set=None):
1011 self.op_mode = op_mode
1016 if op_mode != 'do' and 'dump' in op and 'do' in op:
1037 if op_mode == 'notify':
1038 op_mode = 'do'
1040 if op and op_dir in op[op_mode]:
1042 type_list=op[op_mode][op_dir]['attributes'])
1043 if op_mode == 'event':
1286 if not ri.op_mode or ri.op_mode == 'do':
1296 suffix += op_mode_to_wrapper[ri.op_mode]
1312 if ri.op_mode == 'dump':
1316 if 'request' in ri.op[ri.op_mode]:
1320 if 'reply' in ri.op[ri.op_mode]:
1549 if 'reply' not in ri.op[ri.op_mode] and ri.op_mode != 'event':
1579 if 'reply' in ri.op[ri.op_mode]:
1592 if 'reply' in ri.op[ri.op_mode]:
1600 if 'reply' in ri.op[ri.op_mode]:
1612 if 'reply' in ri.op[ri.op_mode]:
1621 if 'reply' in ri.op[ri.op_mode]:
1652 if "request" in ri.op[ri.op_mode]:
1704 if ri.op_mode == 'dump':
1756 if 'reply' not in ri.op[ri.op_mode]:
1776 if 'request' not in ri.op[ri.op_mode]:
1782 if (ri.op_mode == 'do' or ri.op_mode == 'dump') and 'reply' in ri.op[ri.op_mode]:
1784 elif ri.op_mode == 'event':
1793 if ri.op_mode == 'dump':
1795 elif ri.op_mode == 'notify' or ri.op_mode == 'event':
1838 if 'reply' not in ri.op[ri.op_mode]:
1891 name += '_' + ri.op_mode
1997 for op_mode in ['do', 'dump']:
1998 if op_mode in op:
1999 name = c_lower(f"{family.name}-nl-{op_name}-{op_mode}it")
2000 members.append((op_mode + 'it', name))
2017 for op_mode in ['do', 'dump']:
2018 if op.is_async or op_mode not in op:
2026 if op_mode == 'do' and x in ['dump', 'dump-strict']:
2028 if op_mode == "dump" and x == 'strict':
2036 name = c_lower(f"{family.name}-nl-{op_name}-{op_mode}it")
2037 if 'pre' in op[op_mode]:
2038 members.append((cb_names[op_mode]['pre'], c_lower(op[op_mode]['pre'])))
2039 members.append((op_mode + 'it', name))
2040 if 'post' in op[op_mode]:
2041 members.append((cb_names[op_mode]['post'], c_lower(op[op_mode]['post'])))
2042 if 'request' in op[op_mode]:
2044 type_list=op[op_mode]['request']['attributes'])
2047 name = c_lower(f"{family.name}-{op_name}-{op_mode}-nl-policy")
2052 flags = (op['flags'] if 'flags' in op else []) + ['cmd-cap-' + op_mode]
2470 for op_mode in ['do', 'dump']:
2471 if op_mode in op and 'request' in op[op_mode]:
2472 cw.p(f"/* {op.enum_name} - {op_mode} */")
2473 ri = RenderInfo(cw, parsed, args.mode, op, op_mode)