Home
last modified time | relevance | path

Searched refs:new_op (Results 1 – 17 of 17) sorted by relevance

/linux/fs/orangefs/
H A Dxattr.c94 struct orangefs_kernel_op_s *new_op = NULL; in orangefs_inode_getxattr() local
145 new_op = op_alloc(ORANGEFS_VFS_OP_GETXATTR); in orangefs_inode_getxattr()
146 if (!new_op) in orangefs_inode_getxattr()
149 new_op->upcall.req.getxattr.refn = orangefs_inode->refn; in orangefs_inode_getxattr()
150 strscpy(new_op->upcall.req.getxattr.key, name); in orangefs_inode_getxattr()
157 new_op->upcall.req.getxattr.key_sz = strlen(name) + 1; in orangefs_inode_getxattr()
159 ret = service_operation(new_op, "orangefs_inode_getxattr", in orangefs_inode_getxattr()
168 (char *)new_op->upcall.req.getxattr.key); in orangefs_inode_getxattr()
185 length = new_op->downcall.resp.getxattr.val_sz; in orangefs_inode_getxattr()
207 memcpy(buffer, new_op->downcall.resp.getxattr.val, length); in orangefs_inode_getxattr()
[all …]
H A Dsuper.c146 struct orangefs_kernel_op_s *new_op = NULL; in orangefs_statfs() local
158 new_op = op_alloc(ORANGEFS_VFS_OP_STATFS); in orangefs_statfs()
159 if (!new_op) in orangefs_statfs()
161 new_op->upcall.req.statfs.fs_id = ORANGEFS_SB(sb)->fs_id; in orangefs_statfs()
166 ret = service_operation(new_op, "orangefs_statfs", flags); in orangefs_statfs()
168 if (new_op->downcall.status < 0) in orangefs_statfs()
176 (long)new_op->downcall.resp.statfs.blocks_avail, in orangefs_statfs()
177 (long)new_op->downcall.resp.statfs.blocks_total, in orangefs_statfs()
178 (long)new_op->downcall.resp.statfs.block_size, in orangefs_statfs()
179 (long)new_op->downcall.resp.statfs.files_total, in orangefs_statfs()
[all …]
H A Dfile.c23 struct orangefs_kernel_op_s *new_op; in flush_racache() local
31 new_op = op_alloc(ORANGEFS_VFS_OP_RA_FLUSH); in flush_racache()
32 if (!new_op) in flush_racache()
34 new_op->upcall.req.ra_cache_flush.refn = orangefs_inode->refn; in flush_racache()
36 ret = service_operation(new_op, "orangefs_flush_racache", in flush_racache()
42 op_release(new_op); in flush_racache()
56 struct orangefs_kernel_op_s *new_op = NULL; in wait_for_direct_io() local
63 new_op = op_alloc(ORANGEFS_VFS_OP_FILE_IO); in wait_for_direct_io()
64 if (!new_op) in wait_for_direct_io()
68 new_op->upcall.req.io.readahead_size = readahead_size; in wait_for_direct_io()
[all …]
H A Dorangefs-sysfs.c316 struct orangefs_kernel_op_s *new_op = NULL; in sysfs_service_op_show() local
330 new_op = op_alloc(op_alloc_type); in sysfs_service_op_show()
331 if (!new_op) in sysfs_service_op_show()
344 new_op->upcall.req.param.type = ORANGEFS_PARAM_REQUEST_GET; in sysfs_service_op_show()
358 new_op->upcall.req.param.op = in sysfs_service_op_show()
362 new_op->upcall.req.param.op = in sysfs_service_op_show()
366 new_op->upcall.req.param.op = in sysfs_service_op_show()
371 new_op->upcall.req.param.op = in sysfs_service_op_show()
376 new_op->upcall.req.param.op = in sysfs_service_op_show()
381 new_op->upcall.req.param.op = in sysfs_service_op_show()
[all …]
H A Dorangefs-utils.c239 struct orangefs_kernel_op_s *new_op; in orangefs_inode_getattr() local
261 new_op = op_alloc(ORANGEFS_VFS_OP_GETATTR); in orangefs_inode_getattr()
262 if (!new_op) in orangefs_inode_getattr()
264 new_op->upcall.req.getattr.refn = orangefs_inode->refn; in orangefs_inode_getattr()
270 new_op->upcall.req.getattr.mask = ORANGEFS_ATTR_SYS_ALL_NOHINT; in orangefs_inode_getattr()
272 new_op->upcall.req.getattr.mask = in orangefs_inode_getattr()
275 ret = service_operation(new_op, __func__, in orangefs_inode_getattr()
302 &new_op->downcall.resp.getattr.attributes, in orangefs_inode_getattr()
303 new_op->downcall.resp.getattr.link_target); in orangefs_inode_getattr()
310 type = orangefs_inode_type(new_op-> in orangefs_inode_getattr()
[all …]
H A Ddcache.c21 struct orangefs_kernel_op_s *new_op; in orangefs_revalidate_lookup() local
27 new_op = op_alloc(ORANGEFS_VFS_OP_LOOKUP); in orangefs_revalidate_lookup()
28 if (!new_op) in orangefs_revalidate_lookup()
31 new_op->upcall.req.lookup.sym_follow = ORANGEFS_LOOKUP_LINK_NO_FOLLOW; in orangefs_revalidate_lookup()
32 new_op->upcall.req.lookup.parent_refn = parent->refn; in orangefs_revalidate_lookup()
34 memcpy(new_op->upcall.req.lookup.d_name, name->name, in orangefs_revalidate_lookup()
44 err = service_operation(new_op, "orangefs_lookup", in orangefs_revalidate_lookup()
55 if (!match_handle(new_op->downcall.resp.lookup.refn.khandle, in orangefs_revalidate_lookup()
68 if (new_op->downcall.status != 0) in orangefs_revalidate_lookup()
79 op_release(new_op); in orangefs_revalidate_lookup()
H A Dorangefs-debugfs.c422 struct orangefs_kernel_op_s *new_op = NULL; in orangefs_debug_write() local
482 new_op = op_alloc(ORANGEFS_VFS_OP_PARAM); in orangefs_debug_write()
483 if (!new_op) { in orangefs_debug_write()
488 new_op->upcall.req.param.op = in orangefs_debug_write()
490 new_op->upcall.req.param.type = ORANGEFS_PARAM_REQUEST_SET; in orangefs_debug_write()
491 memset(new_op->upcall.req.param.s_value, in orangefs_debug_write()
494 sprintf(new_op->upcall.req.param.s_value, in orangefs_debug_write()
500 rc = service_operation(new_op, in orangefs_debug_write()
510 op_release(new_op); in orangefs_debug_write()
H A Dinode.c700 struct orangefs_kernel_op_s *new_op; in orangefs_setattr_size() local
729 new_op = op_alloc(ORANGEFS_VFS_OP_TRUNCATE); in orangefs_setattr_size()
730 if (!new_op) in orangefs_setattr_size()
733 new_op->upcall.req.truncate.refn = orangefs_inode->refn; in orangefs_setattr_size()
734 new_op->upcall.req.truncate.size = (__s64) iattr->ia_size; in orangefs_setattr_size()
736 ret = service_operation(new_op, in orangefs_setattr_size()
746 op_release(new_op); in orangefs_setattr_size()
/linux/tools/perf/util/perf-regs-arch/
H A Dperf_regs_aarch64.c59 int __perf_sdt_arg_parse_op_arm64(char *old_op, char **new_op) in __perf_sdt_arg_parse_op_arm64() argument
73 *new_op = zalloc(new_len); in __perf_sdt_arg_parse_op_arm64()
74 if (!*new_op) in __perf_sdt_arg_parse_op_arm64()
77 scnprintf(*new_op, new_len, "%%%.*s", in __perf_sdt_arg_parse_op_arm64()
89 *new_op = zalloc(new_len); in __perf_sdt_arg_parse_op_arm64()
90 if (!*new_op) in __perf_sdt_arg_parse_op_arm64()
94 scnprintf(*new_op, new_len, "+0(%%sp)"); in __perf_sdt_arg_parse_op_arm64()
96 scnprintf(*new_op, new_len, "+%.*s(%%sp)", in __perf_sdt_arg_parse_op_arm64()
H A Dperf_regs_powerpc.c74 int __perf_sdt_arg_parse_op_powerpc(char *old_op, char **new_op) in __perf_sdt_arg_parse_op_powerpc() argument
96 *new_op = zalloc(new_len); in __perf_sdt_arg_parse_op_powerpc()
97 if (!*new_op) in __perf_sdt_arg_parse_op_powerpc()
100 scnprintf(*new_op, new_len, "%%gpr%.*s", in __perf_sdt_arg_parse_op_powerpc()
113 *new_op = zalloc(new_len); in __perf_sdt_arg_parse_op_powerpc()
114 if (!*new_op) in __perf_sdt_arg_parse_op_powerpc()
117 scnprintf(*new_op, new_len, "%c%.*s(%%gpr%.*s)", prefix, in __perf_sdt_arg_parse_op_powerpc()
H A Dperf_regs_x86.c154 int __perf_sdt_arg_parse_op_x86(char *old_op, char **new_op) in __perf_sdt_arg_parse_op_x86() argument
224 *new_op = zalloc(new_len); in __perf_sdt_arg_parse_op_x86()
225 if (!*new_op) in __perf_sdt_arg_parse_op_x86()
228 scnprintf(*new_op, new_len, "%.*s%.*s%.*s%.*s%.*s", in __perf_sdt_arg_parse_op_x86()
/linux/tools/perf/util/
H A Dperf_regs.h15 int perf_sdt_arg_parse_op(uint16_t e_machine, char *old_op, char **new_op);
24 int __perf_sdt_arg_parse_op_arm64(char *old_op, char **new_op);
50 int __perf_sdt_arg_parse_op_powerpc(char *old_op, char **new_op);
56 int __perf_sdt_arg_parse_op_riscv(char *old_op, char **new_op);
66 int __perf_sdt_arg_parse_op_s390(char *old_op, char **new_op);
68 int __perf_sdt_arg_parse_op_x86(char *old_op, char **new_op);
H A Dperf_regs.c10 int perf_sdt_arg_parse_op(uint16_t e_machine, char *old_op, char **new_op) in perf_sdt_arg_parse_op() argument
16 ret = __perf_sdt_arg_parse_op_arm64(old_op, new_op); in perf_sdt_arg_parse_op()
20 ret = __perf_sdt_arg_parse_op_powerpc(old_op, new_op); in perf_sdt_arg_parse_op()
23 ret = __perf_sdt_arg_parse_op_riscv(old_op, new_op); in perf_sdt_arg_parse_op()
27 ret = __perf_sdt_arg_parse_op_x86(old_op, new_op); in perf_sdt_arg_parse_op()
30 ret = __perf_sdt_arg_parse_op_s390(old_op, new_op); in perf_sdt_arg_parse_op()
H A Dprobe-file.c765 char *op, *desc = strdup(arg), *new_op = NULL; in synthesize_sdt_probe_arg()
790 ret = perf_sdt_arg_parse_op(EM_HOST, op, &new_op); in synthesize_sdt_probe_arg()
796 ret = strbuf_addf(buf, " arg%d=%s%s", i + 1, new_op, suffix); in synthesize_sdt_probe_arg()
804 free(new_op); in synthesize_sdt_probe_arg()
763 char *op, *desc = strdup(arg), *new_op = NULL; synthesize_sdt_probe_arg() local
/linux/net/can/
H A Dbcm.c1320 int new_op = 0; in bcm_rx_setup() local
1481 new_op = 1; in bcm_rx_setup()
1495 if (new_op) { in bcm_rx_setup()
1568 if (new_op) { in bcm_rx_setup()
1584 if (new_op) in bcm_rx_setup()
/linux/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_sriov_pf.c1259 u8 op, new_op; in qlcnic_sriov_validate_cfg_macvlan() local
1270 new_op = (op == QLCNIC_MAC_ADD || op == QLCNIC_MAC_VLAN_ADD) ? in qlcnic_sriov_validate_cfg_macvlan()
1273 cmd->req.arg[1] |= new_op; in qlcnic_sriov_validate_cfg_macvlan()
/linux/net/core/
H A Dfilter.c8141 const u8 *op, *new_op, *magic = NULL; in BPF_CALL_4() local
8151 new_op = from; in BPF_CALL_4()
8152 new_kind = new_op[0]; in BPF_CALL_4()
8153 new_kind_len = new_op[1]; in BPF_CALL_4()
8173 magic = &new_op[2]; in BPF_CALL_4()