Lines Matching full:suffix
1310 def write_func_prot(self, qual_ret, name, args=None, doc=None, suffix=''): argument
1322 oneline += f"{name}({', '.join(args)}){suffix}"
1350 self.p(v + ')' + suffix)
1474 suffix = f"_{ri.type_name}"
1477 suffix += f"{direction_to_suffix[direction]}"
1480 suffix += '_req_dump'
1484 suffix += f"{direction_to_suffix[direction]}"
1486 suffix += op_mode_to_wrapper[ri.op_mode]
1488 suffix += '_rsp'
1489 suffix += '_dump' if deref else '_list'
1491 return f"{ri.family.c_name}{suffix}"
1499 suffix = ';' if terminate else ''
1513 ri.cw.write_func_prot(ret, fname, args, doc=doc, suffix=suffix)
1561 cw.write_func_prot('const char *', f'{family.c_name}_op_str', ['int op'], suffix=';')
1587 cw.write_func_prot('const char *', f'{enum.render_name}_str', args, suffix=';')
1601 def put_req_nested_prototype(ri, struct, suffix=';'): argument
1607 suffix=suffix)
1611 put_req_nested_prototype(ri, struct, suffix='')
1738 def parse_rsp_nested_prototype(ri, struct, suffix=';'): argument
1745 suffix=suffix)
1749 parse_rsp_nested_prototype(ri, struct, suffix='')
1917 def print_free_prototype(ri, direction, suffix=';'): argument
1923 ri.cw.write_func_prot('void', f"{name}_free", [f"struct {struct_name} *{arg}"], suffix=suffix)
1927 suffix = f'_{ri.type_name}{direction_to_suffix[direction]}'
1929 suffix += '_'
1932 suffix += '_dump'
1934 ri.cw.block_start(line=f"struct {ri.family.c_name}{suffix}")
1995 suffix = "_rsp" if direction == "reply" else "_req"
1998 ri.cw.write_func_prot('void', f"{ri.op.render_name}{suffix}_parse",
2000 f"struct {ri.op.render_name}{suffix} *req"],
2001 suffix=term)
2058 print_free_prototype(ri, direction, suffix='')
2085 print_free_prototype(ri, 'reply', suffix='')
2103 print_free_prototype(ri, 'reply', suffix='')
2124 suffix = ';' if terminate else ' = {'
2133 cw.p(f"{prefix}const struct nla_policy {name}_nl_policy[{max_attr.enum_name} + 1]{suffix}")
2172 suffix = 'ULL' if attr.type[0] == 'u' else 'LL'
2176 members.append(('min', str(attr.get_limit('min')) + suffix))
2178 members.append(('max', str(attr.get_limit('max')) + suffix))
2221 'struct sk_buff *skb', 'struct genl_info *info'], suffix=';')
2225 'struct sk_buff *skb', 'struct genl_info *info'], suffix=';')
2228 ['struct netlink_callback *cb'], suffix=';')
2231 ['struct netlink_callback *cb'], suffix=';')
2242 ['struct sk_buff *skb', 'struct genl_info *info'], suffix=';')
2247 ['struct sk_buff *skb', 'struct netlink_callback *cb'], suffix=';')
2437 suffix = ','
2439 suffix = f" = {entry.user_value()}" + suffix
2440 cw.p(entry.c_name + suffix)
2475 suffix = ','
2477 suffix = f" = {attr.value},"
2480 cw.p(attr.enum_name + suffix)
2503 suffix = ','
2505 suffix = f" = {op.value},"
2507 cw.p(op.enum_name + suffix)
2524 suffix = ','
2526 suffix = f" = {op['value']},"
2527 cw.p(op.enum_name + suffix)