| /samples/rust/ |
| A D | rust_driver_platform.rs | 135 let name = c_str!("compatible"); in properties_parse() 139 let name = c_str!("test,bool-prop"); in properties_parse() 147 let name = c_str!("test,u32-optional-prop"); in properties_parse() 148 let prop = fwnode.property_read::<u32>(name).or(0x12); in properties_parse() 153 let name = c_str!("test,u32-required-prop"); in properties_parse() 156 let name = c_str!("test,u32-prop"); in properties_parse() 160 let name = c_str!("test,i16-array"); in properties_parse() 163 let len = fwnode.property_count_elem::<u16>(name)?; in properties_parse() 166 let name = c_str!("test,i16-array"); in properties_parse() 171 let name = c_str!("test,ref-arg"); in properties_parse() [all …]
|
| A D | rust_configfs.rs | 16 name: "rust_configfs", 74 fn make_group(&self, name: &CStr) -> Result<impl PinInit<configfs::Group<Child>, Error>> { in make_group() 87 Ok(configfs::Group::new(name.try_into()?, tpe, Child::new())) in make_group() 139 fn make_group(&self, name: &CStr) -> Result<impl PinInit<configfs::Group<GrandChild>, Error>> { in make_group() 153 name.try_into()?, in make_group()
|
| A D | rust_driver_faux.rs | 9 name: "rust_faux_driver",
|
| A D | rust_minimal.rs | 9 name: "rust_minimal",
|
| A D | rust_misc_device.rs | 119 name: "rust_misc_device", 136 name: c_str!("rust-misc-device"), in init()
|
| /samples/bpf/ |
| A D | xdp_sample_user.h | 62 #define __attach_tp(name) \ argument 64 if (bpf_program__type(skel->progs.name) != BPF_PROG_TYPE_TRACING)\ 66 skel->links.name = bpf_program__attach(skel->progs.name); \ 67 if (!skel->links.name) \ 82 #define DEFINE_SAMPLE_INIT(name) \ argument 83 static int sample_init(struct name *skel, int mask) \
|
| A D | sock_example.h | 13 static inline int open_raw_sock(const char *name) in open_raw_sock() argument 26 sll.sll_ifindex = if_nametoindex(name); in open_raw_sock() 29 printf("bind to %s: %s\n", name, strerror(errno)); in open_raw_sock()
|
| A D | test_cls_bpf.sh | 31 ip link add name $IFC type veth peer name pair_$IFC
|
| A D | task_fd_query_user.c | 124 const char *name, __u64 offset, __u64 addr, bool is_return, in test_nondebug_fs_kuprobe_common() argument 145 if (name) { in test_nondebug_fs_kuprobe_common() 146 attr.config1 = ptr_to_u64((void *)name); in test_nondebug_fs_kuprobe_common() 173 static int test_nondebug_fs_probe(const char *event_type, const char *name, in test_nondebug_fs_probe() argument 183 err = test_nondebug_fs_kuprobe_common(event_type, name, in test_nondebug_fs_probe() 191 __func__, name ? name : "", offset, addr, is_return); in test_nondebug_fs_probe() 201 if (name) { in test_nondebug_fs_probe() 202 if (strcmp(name, buf) != 0) { in test_nondebug_fs_probe()
|
| A D | offwaketime.bpf.c | 42 char name[TASK_COMM_LEN]; member 69 bpf_get_current_comm(&woke.name, sizeof(woke.name)); in waker() 90 __builtin_memcpy(&key.waker, woke->name, sizeof(key.waker)); in update_counts()
|
| A D | xdp_fwd_user.c | 32 static int do_attach(int idx, int prog_fd, int map_fd, const char *name) in do_attach() argument 38 printf("ERROR: failed to attach program to %s\n", name); in do_attach() 45 printf("ERROR: failed using device %s as TX-port\n", name); in do_attach() 88 if (strcmp(prog_info.name, prog_name)) { in do_detach()
|
| A D | tracex1.bpf.c | 35 BPF_CORE_READ_STR_INTO(&devname, dev, name); in bpf_prog1()
|
| A D | tracex6_user.c | 74 const char *name) in test_perf_event_array() argument 80 printf("Test reading %s counters\n", name); in test_perf_event_array() 97 printf("Test: %s FAILED\n", name); in test_perf_event_array()
|
| A D | offwaketime_user.c | 33 printf("%s/%llx;", sym->name, addr); in print_ksym() 35 printf("%s;", sym->name); in print_ksym()
|
| A D | trace_event_user.c | 39 printf("%s;", sym->name); in print_ksym() 40 if (!strstr(sym->name, "sys_read")) in print_ksym() 42 else if (!strstr(sym->name, "sys_write")) in print_ksym()
|
| /samples/cgroup/ |
| A D | memcg_event_listener.c | 64 size_t len = strlen(name); in get_memcg_counter() 70 line, name); in get_memcg_counter() 111 const char *name; in read_memcg_events() member 116 .name = "low", in read_memcg_events() 121 .name = "high", in read_memcg_events() 126 .name = "max", in read_memcg_events() 131 .name = "oom", in read_memcg_events() 136 .name = "oom_kill", in read_memcg_events() 141 .name = "oom_group_kill", in read_memcg_events() 161 map[i].name); in read_memcg_events() [all …]
|
| /samples/livepatch/ |
| A D | livepatch-callbacks-demo.c | 101 pr_info("%s: %s -> %s\n", callback, obj->mod->name, in callback_info() 150 .name = NULL, /* vmlinux */ 159 .name = "livepatch_callbacks_mod", 168 .name = "livepatch_callbacks_busymod",
|
| /samples/binderfs/ |
| A D | binderfs_example.c | 51 memcpy(device.name, "my-binder", strlen("my-binder")); in main() 71 device.major, device.minor, device.name); in main()
|
| /samples/rpmsg/ |
| A D | rpmsg_client_sample.c | 81 { .name = "rpmsg-client-sample" }, 87 .drv.name = KBUILD_MODNAME,
|
| /samples/kobject/ |
| A D | kset-example.c | 143 if (strcmp(attr->attr.name, "baz") == 0) in b_show() 159 if (strcmp(attr->attr.name, "baz") == 0) in b_store() 199 static struct foo_obj *create_foo_obj(const char *name) in create_foo_obj() argument 221 retval = kobject_init_and_add(&foo->kobj, &foo_ktype, NULL, "%s", name); in create_foo_obj()
|
| A D | kobject-example.c | 59 if (strcmp(attr->attr.name, "baz") == 0) in b_show() 75 if (strcmp(attr->attr.name, "baz") == 0) in b_store()
|
| /samples/kdb/ |
| A D | kdb_hello.c | 32 .name = "hello",
|
| /samples/configfs/ |
| A D | configfs_sample.c | 182 const char *name) in simple_children_make_item() argument 190 config_item_init_type_name(&simple_child->item, name, in simple_children_make_item() 259 struct config_group *group, const char *name) in group_children_make_group() argument 268 config_group_init_type_name(&simple_children->group, name, in group_children_make_group()
|
| /samples/coresight/ |
| A D | coresight-cfg-sample.c | 33 .name = "autofdo2",
|
| /samples/v4l/ |
| A D | v4l2-pci-skeleton.c | 570 v4l2_print_dv_timings(skel->v4l2_dev.name, "query_dv_timings:", in skeleton_query_dv_timings() 597 strscpy(i->name, "S-Video", sizeof(i->name)); in skeleton_enum_input() 601 strscpy(i->name, "HDMI", sizeof(i->name)); in skeleton_enum_input() 845 strscpy(vdev->name, KBUILD_MODNAME, sizeof(vdev->name)); in skeleton_probe() 894 .name = KBUILD_MODNAME,
|