Lines Matching full:suffix
118 def get_limit_str(self, limit, default=None, suffix=''): argument
123 return str(value) + suffix
1716 def write_func_prot(self, qual_ret, name, args=None, doc=None, suffix=''): argument
1728 oneline += f"{name}({', '.join(args)}){suffix}"
1756 self.p(v + ')' + suffix)
1880 suffix = f"_{ri.type_name}"
1885 suffix += f"{direction_to_suffix[direction]}"
1888 suffix += '_req'
1890 suffix += '_dump'
1894 suffix += f"{direction_to_suffix[direction]}"
1896 suffix += op_mode_to_wrapper[ri.op_mode]
1898 suffix += '_rsp'
1899 suffix += '_dump' if deref else '_list'
1901 return f"{ri.family.c_name}{suffix}"
1909 suffix = ';' if terminate else ''
1923 ri.cw.write_func_prot(ret, fname, args, doc=doc, suffix=suffix)
1997 cw.write_func_prot('const char *', f'{family.c_name}_op_str', ['int op'], suffix=';')
2023 cw.write_func_prot('const char *', f'{enum.render_name}_str', args, suffix=';')
2037 def put_req_nested_prototype(ri, struct, suffix=';'): argument
2043 suffix=suffix)
2069 put_req_nested_prototype(ri, struct, suffix='')
2242 parse_rsp_nested_prototype(ri, struct, suffix='')
2277 def parse_rsp_nested_prototype(ri, struct, suffix=';'): argument
2288 suffix=suffix)
2295 parse_rsp_nested_prototype(ri, struct, suffix='')
2494 def print_free_prototype(ri, direction, suffix=';'): argument
2500 ri.cw.write_func_prot('void', f"{name}_free", [f"struct {struct_name} *{arg}"], suffix=suffix)
2514 suffix = f'_{ri.type_name}{direction_to_suffix[direction]}'
2516 suffix += '_'
2519 suffix += '_dump'
2521 ri.cw.block_start(line=f"struct {ri.family.c_name}{suffix}")
2601 suffix = "_rsp" if direction == "reply" else "_req"
2604 ri.cw.write_func_prot('void', f"{ri.op.render_name}{suffix}_parse",
2606 f"struct {ri.op.render_name}{suffix} *req"],
2607 suffix=term)
2662 print_free_prototype(ri, direction, suffix='')
2689 print_free_prototype(ri, 'reply', suffix='')
2707 print_free_prototype(ri, 'reply', suffix='')
2728 suffix = ';' if terminate else ' = {'
2737 cw.p(f"{prefix}const struct nla_policy {name}_nl_policy[{max_attr.enum_name} + 1]{suffix}")
2776 suffix = 'ULL' if attr.type[0] == 'u' else 'LL'
2780 members.append(('min', attr.get_limit_str('min', suffix=suffix)))
2782 members.append(('max', attr.get_limit_str('max', suffix=suffix)))
2807 suffix = 'ULL' if attr.type[0] == 'u' else 'LL'
2865 'struct sk_buff *skb', 'struct genl_info *info'], suffix=';')
2869 'struct sk_buff *skb', 'struct genl_info *info'], suffix=';')
2872 ['struct netlink_callback *cb'], suffix=';')
2875 ['struct netlink_callback *cb'], suffix=';')
2886 ['struct sk_buff *skb', 'struct genl_info *info'], suffix=';')
2891 ['struct sk_buff *skb', 'struct netlink_callback *cb'], suffix=';')
3074 suffix = ','
3076 suffix = f" = {op.value},"
3078 cw.p(op.enum_name + suffix)
3100 suffix = ','
3102 suffix = f" = {op.value},"
3104 cw.p(op.enum_name + suffix)
3128 suffix = ','
3130 suffix = f" = {op.value},"
3132 cw.p(enum_name + suffix)
3192 suffix = ','
3194 suffix = f" = {entry.user_value()}" + suffix
3195 cw.p(entry.c_name + suffix)
3233 suffix = ','
3235 suffix = f" = {attr.value},"
3238 cw.p(attr.enum_name + suffix)
3265 suffix = ','
3267 suffix = f" = {op['value']},"
3268 cw.p(op.enum_name + suffix)