Home
last modified time | relevance | path

Searched refs:sv (Results 1 – 25 of 95) sorted by relevance

1234

/openbmc/linux/lib/livepatch/
H A Dtest_klp_shadow_vars.c63 int **sv; in shadow_get() local
65 sv = klp_shadow_get(obj, id); in shadow_get()
67 __func__, ptr_id(obj), id, ptr_id(sv)); in shadow_get()
69 return sv; in shadow_get()
77 int **sv; in shadow_alloc() local
79 sv = klp_shadow_alloc(obj, id, size, gfp_flags, ctor, var); in shadow_alloc()
82 ptr_id(*var), ptr_id(sv)); in shadow_alloc()
84 return sv; in shadow_alloc()
92 int **sv; in shadow_get_or_alloc() local
94 sv = klp_shadow_get_or_alloc(obj, id, size, gfp_flags, ctor, var); in shadow_get_or_alloc()
[all …]
/openbmc/phosphor-networkd/src/
H A Dconfig_parser.cpp24 using std::literals::string_view_literals::operator""sv;
34 if (in == "1"sv || icaseeq(in, "yes"sv) || icaseeq(in, "y"sv) || in parseBool()
35 icaseeq(in, "true"sv) || icaseeq(in, "t"sv) || icaseeq(in, "on"sv)) in parseBool()
39 if (in == "0"sv || icaseeq(in, "no"sv) || icaseeq(in, "n"sv) || in parseBool()
40 icaseeq(in, "false"sv) || icaseeq(in, "f"sv) || icaseeq(in, "off"sv)) in parseBool()
49 return dir / stdplus::strCat("00-bmc-"sv, intf, ".network"sv); in pathForIntfConf()
54 return dir / stdplus::strCat(intf, ".netdev"sv); in pathForIntfDev()
91 stdplus::strCat("Invalid Config Key: "sv, s)); in operator ()()
103 stdplus::strCat("Invalid Config Section: "sv, s)); in operator ()()
115 stdplus::strCat("Invalid Config Value: "sv, s)); in operator ()()
[all …]
H A Dutil.cpp26 using std::literals::string_view_literals::operator""sv;
64 stdplus::strAppend(buf, "`"sv, path, "`"sv); in executeCommandinChildProcess()
67 stdplus::strAppend(buf, " `"sv, args[i], "`"sv); in executeCommandinChildProcess()
129 constexpr auto pfx = "eth"sv; in interfaceToUbootEthAddr()
149 return stdplus::strCat("eth"sv, tsh(idx), "addr"sv); in interfaceToUbootEthAddr()
H A Dsystem_queries.cpp25 using std::literals::string_view_literals::operator""sv;
89 ifname, SIOCETHTOOL, "ETHTOOL"sv, in getEthInfo()
111 up ? "up"sv : "down"sv, "NET_INTF", ifname); in setNICUp()
/openbmc/linux/drivers/s390/char/
H A Dsclp_tty.c402 static void sclp_get_input(struct gds_subvector *sv) in sclp_get_input() argument
407 str = (unsigned char *) (sv + 1); in sclp_get_input()
408 count = sv->length - sizeof(*sv); in sclp_get_input()
419 static inline void sclp_eval_selfdeftextmsg(struct gds_subvector *sv) in sclp_eval_selfdeftextmsg() argument
423 end = (void *) sv + sv->length; in sclp_eval_selfdeftextmsg()
424 for (sv = sv + 1; (void *) sv < end; sv = (void *) sv + sv->length) in sclp_eval_selfdeftextmsg()
425 if (sv->key == 0x30) in sclp_eval_selfdeftextmsg()
426 sclp_get_input(sv); in sclp_eval_selfdeftextmsg()
431 struct gds_subvector *sv; in sclp_eval_textcmd() local
435 for (sv = (struct gds_subvector *) (v + 1); in sclp_eval_textcmd()
[all …]
H A Dsclp_ocf.c46 struct gds_subvector *sv, *netid, *cpc; in sclp_ocf_handler() local
59 sv = sclp_find_gds_subvector(v + 1, (void *) v + v->length, 0x81); in sclp_ocf_handler()
60 if (!sv) in sclp_ocf_handler()
63 netid = sclp_find_gds_subvector(sv + 1, (void *) sv + sv->length, 1); in sclp_ocf_handler()
65 cpc = sclp_find_gds_subvector(sv + 1, (void *) sv + sv->length, 2); in sclp_ocf_handler()
H A Dsclp.h384 struct gds_subvector *sv; in sclp_find_gds_subvector() local
386 for (sv = start; (void *) sv < end; sv = (void *) sv + sv->length) in sclp_find_gds_subvector()
387 if (sv->key == key) in sclp_find_gds_subvector()
388 return sv; in sclp_find_gds_subvector()
/openbmc/linux/drivers/gpu/drm/logicvc/
H A Dlogicvc_of.c41 .sv = logicvc_of_display_interface_sv,
49 .sv = logicvc_of_display_colorspace_sv,
83 .sv = logicvc_of_layer_colorspace_sv,
91 .sv = logicvc_of_layer_alpha_mode_sv,
109 static int logicvc_of_property_sv_value(struct logicvc_of_property_sv *sv, in logicvc_of_property_sv_value() argument
114 while (sv[i].string) { in logicvc_of_property_sv_value()
115 if (!strcmp(sv[i].string, string)) { in logicvc_of_property_sv_value()
116 *value = sv[i].value; in logicvc_of_property_sv_value()
143 if (property->sv) { in logicvc_of_property_parse_u32()
148 ret = logicvc_of_property_sv_value(property->sv, string, in logicvc_of_property_parse_u32()
/openbmc/qemu/tests/qtest/
H A Dvirtio-net-test.c153 int *sv = data; in send_recv_test() local
155 rx_test(dev, t_alloc, rx, sv[0]); in send_recv_test()
156 tx_test(dev, t_alloc, tx, sv[0]); in send_recv_test()
164 int *sv = data; in stop_cont_test() local
166 rx_stop_cont_test(dev, t_alloc, rx, sv[0]); in stop_cont_test()
190 int *sv = data; in announce_self() local
208 ret = recv(sv[0], &len, sizeof(len), 0); in announce_self()
212 ret = recv(sv[0], buffer, len, 0); in announce_self()
236 ret = recv(sv[0], buffer, 60, MSG_DONTWAIT); in announce_self()
266 int *sv = sockets; in virtio_net_test_cleanup() local
[all …]
H A Dnetdev-socket.c464 int sv[2]; in test_dgram_fd() local
466 ret = socketpair(PF_UNIX, SOCK_DGRAM, 0, sv); in test_dgram_fd()
471 sv[0]); in test_dgram_fd()
473 expect = g_strdup_printf("st0: index=0,type=dgram,fd=%d unix\r\n", sv[0]); in test_dgram_fd()
479 sv[1]); in test_dgram_fd()
482 expect = g_strdup_printf("st0: index=0,type=dgram,fd=%d unix\r\n", sv[1]); in test_dgram_fd()
489 close(sv[0]); in test_dgram_fd()
490 close(sv[1]); in test_dgram_fd()
/openbmc/phosphor-networkd/test/
H A Dtest_config_parser.cpp26 using std::literals::string_view_literals::operator""sv;
191 out.appends("["sv, std::string_view{obj}.substr(0, i + 1), "[\n"sv); in TEST_F()
194 auto sv = std::string_view(kv).substr(0, i * 70 + j + 1); in TEST_F() local
195 out.appends(sv, "="sv, sv, "\n"sv); in TEST_F()
/openbmc/linux/sound/soc/sh/rcar/
H A Dctu.c75 struct rsnd_kctrl_cfg_m sv[4]; member
145 rsnd_mod_write(mod, CTU_SVxxR(i, j), rsnd_kctrl_valm(ctu->sv[i], j)); in rsnd_ctu_value_init()
162 rsnd_kctrl_valm(ctu->sv[0], i) = 0; in rsnd_ctu_value_reset()
163 rsnd_kctrl_valm(ctu->sv[1], i) = 0; in rsnd_ctu_value_reset()
164 rsnd_kctrl_valm(ctu->sv[2], i) = 0; in rsnd_ctu_value_reset()
165 rsnd_kctrl_valm(ctu->sv[3], i) = 0; in rsnd_ctu_value_reset()
221 &ctu->sv[0], RSND_MAX_CHANNELS, in rsnd_ctu_pcm_new()
230 &ctu->sv[1], RSND_MAX_CHANNELS, in rsnd_ctu_pcm_new()
239 &ctu->sv[2], RSND_MAX_CHANNELS, in rsnd_ctu_pcm_new()
248 &ctu->sv[3], RSND_MAX_CHANNELS, in rsnd_ctu_pcm_new()
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_ioctl.c384 struct drm_set_version *sv = data; in drm_setversion() local
388 if (sv->drm_di_major != -1) { in drm_setversion()
389 if (sv->drm_di_major != DRM_IF_MAJOR || in drm_setversion()
390 sv->drm_di_minor < 0 || sv->drm_di_minor > DRM_IF_MINOR) { in drm_setversion()
394 if_version = DRM_IF_VERSION(sv->drm_di_major, in drm_setversion()
395 sv->drm_di_minor); in drm_setversion()
397 if (sv->drm_di_minor >= 1) { in drm_setversion()
408 if (sv->drm_dd_major != -1) { in drm_setversion()
409 if (sv->drm_dd_major != dev->driver->major || in drm_setversion()
410 sv->drm_dd_minor < 0 || sv->drm_dd_minor > in drm_setversion()
[all …]
/openbmc/linux/tools/power/pm-graph/
H A Dsleepgraph.py2413 def __init__(self, pid, sv): argument
2424 self.sv = sv
2462 warning = self.sv.verbose and abs(mismatch) > 1
2524 md = self.sv.max_graph_depth
2527 if (md and self.depth >= md - 1) or (line.name in self.sv.cgblacklist):
2536 (line.name in self.sv.cgblacklist):
2583 minicg = FTraceCallGraph(dev['pid'], self.sv)
2632 if self.sv.verbose:
2649 if self.sv.verbose:
2753 def createHeader(self, sv, stamp): argument
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-iov.c158 int sv[2]; in test_io() local
177 if (socketpair(PF_UNIX, SOCK_STREAM, 0, sv) < 0) { in test_io()
187 close(sv[0]); in test_io()
188 FD_SET(sv[1], &fds); in test_io()
189 g_unix_set_fd_nonblocking(sv[1], true, NULL); in test_io()
191 setsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &r, sizeof(r)); in test_io()
198 r = iov_send(sv[1], iov, niov, k, s); in test_io()
210 select(sv[1] + 1, NULL, &fds, NULL, NULL); in test_io()
223 close(sv[1]); in test_io()
224 FD_SET(sv[0], &fds); in test_io()
[all …]
H A Dcheck-qom-proplist.c67 char *sv; member
117 g_free(dobj->sv); in dummy_set_sv()
118 dobj->sv = g_strdup(value); in dummy_set_sv()
126 return g_strdup(dobj->sv); in dummy_get_sv()
155 g_free(dobj->sv); in dummy_finalize()
354 g_assert_cmpstr(dobj->sv, ==, "Hiss hiss hiss"); in test_dummy_createv()
395 g_assert_cmpstr(dobj->sv, ==, "Hiss hiss hiss"); in test_dummy_createlist()
439 g_assert_cmpstr(dobj->sv, ==, "Hiss hiss hiss"); in test_dummy_createcmdl()
466 g_assert_cmpstr(dobj->sv, ==, "Hiss hiss hiss"); in test_dummy_createcmdl()
/openbmc/linux/kernel/bpf/
H A Dtnum.c64 u64 sm, sv, sigma, chi, mu; in tnum_add() local
67 sv = a.value + b.value; in tnum_add()
68 sigma = sm + sv; in tnum_add()
69 chi = sigma ^ sv; in tnum_add()
71 return TNUM(sv & ~mu, mu); in tnum_add()
/openbmc/linux/kernel/printk/
H A Dprintk_ringbuffer.h126 #define DESC_STATE(sv) (3UL & (sv >> DESC_FLAGS_SHIFT)) argument
129 #define DESC_ID(sv) ((sv) & DESC_ID_MASK) argument
/openbmc/openbmc-tools/dbus-pcap/
H A DREADME.md34 …'PropertiesChanged'), Field(type=<MessageFieldType.SIGNATURE: 8>, data='sa{sv}as'), Field(type=<Me…
36 …'PropertiesChanged'), Field(type=<MessageFieldType.SIGNATURE: 8>, data='sa{sv}as'), Field(type=<Me…
47 … [2, "org.freedesktop.DBus.Properties"], [3, "PropertiesChanged"], [8, "sa{sv}as"], [7, ":1.95"]]]…
48 … [2, "org.freedesktop.DBus.Properties"], [3, "PropertiesChanged"], [8, "sa{sv}as"], [7, ":1.95"]]]…
/openbmc/qemu/po/
H A Dsv.po12 "Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n"
13 "Language: sv\n"
/openbmc/qemu/hw/display/
H A Dvhost-user-gpu.c432 int sv[2]; in vhost_user_gpu_do_set_socket() local
434 if (qemu_socketpair(PF_UNIX, SOCK_STREAM, 0, sv) == -1) { in vhost_user_gpu_do_set_socket()
440 if (!chr || qemu_chr_add_client(chr, sv[0]) == -1) { in vhost_user_gpu_do_set_socket()
447 if (vhost_user_gpu_set_socket(&g->vhost->dev, sv[1]) < 0) { in vhost_user_gpu_do_set_socket()
453 g->vhost_gpu_fd = sv[0]; in vhost_user_gpu_do_set_socket()
455 close(sv[1]); in vhost_user_gpu_do_set_socket()
459 close(sv[0]); in vhost_user_gpu_do_set_socket()
460 close(sv[1]); in vhost_user_gpu_do_set_socket()
/openbmc/bmcweb/test/http/
H A Dhttp2_connection_test.cpp120 "\xc3\xcb\xb6\xb8\x3f\x53\x03\x2a\x2f\x2a"sv; in TEST()
143 "\x00\x00\x5f\x01\x04\x00\x00\x00\x01"sv; in TEST()
149 "StringOutput"sv; in TEST()
/openbmc/linux/arch/arm64/kernel/
H A Dhead.S262 ….macro map_memory, tbl, rtbl, vstart, vend, flags, phys, order, istart, iend, tmp, count, sv, extr…
271 mov \sv, \rtbl
273 mov \tbl, \sv
277 mov \sv, \rtbl
279 mov \tbl, \sv
283 mov \sv, \rtbl
285 mov \tbl, \sv
290 mov \sv, \rtbl
292 mov \tbl, \sv
/openbmc/linux/tools/testing/selftests/x86/
H A Dtest_syscall_vdso.c326 long sv; in run_syscall_twice() local
332 sv = syscall_addr; in run_syscall_twice()
336 syscall_addr = sv; in run_syscall_twice()
/openbmc/sdbusplus/test/message/
H A Dappend.cpp438 for (const auto& sv : msv) in TEST_F() local
441 expect_basic_string(SD_BUS_TYPE_STRING, sv.first.c_str()); in TEST_F()
442 if (std::holds_alternative<int>(sv.second)) in TEST_F()
445 expect_basic<int>(SD_BUS_TYPE_INT32, std::get<int>(sv.second)); in TEST_F()
452 std::get<double>(sv.second)); in TEST_F()

1234