Lines Matching defs:arg
129 sc.for_each_kernel_arg([&](const TypeSpec& arg) {
134 write_argument_annotation(os, arg);
135 os << arg.as_cpp_declaration(wrap_pointers_with_user_ptr) << ",";
165 sc.for_each_kernel_arg([&](const TypeSpec& arg) {
166 os << arg.name << ", ";
177 void write_argument_annotation(std::ofstream& os, const TypeSpec& arg) {
179 for (const auto& a : arg.attributes) {
185 // If arg type is a handle (not an array) and no annotation is present, use default annotation
186 if (!has_annotation && arg.type == "zx_handle_t" && arg.arr_spec == nullptr) {