Home
last modified time | relevance | path

Searched refs:strcmp (Results 1 – 25 of 94) sorted by relevance

1234

/tools/libs/util/
A Dlibxlu_disk_l.l99 if (!strcmp(str, "r") || !strcmp(str, "ro")) { in setaccess()
101 } else if (!strcmp(str, "rw") || !strcmp(str, "w") || !strcmp(str,"")) { in setaccess()
110 if (!strcmp(str,"")) DSET(dpc,format,FORMAT,str,RAW); in setformat()
111 else if (!strcmp(str,"raw")) DSET(dpc,format,FORMAT,str,RAW); in setformat()
112 else if (!strcmp(str,"qcow")) DSET(dpc,format,FORMAT,str,QCOW); in setformat()
114 else if (!strcmp(str,"vhd")) DSET(dpc,format,FORMAT,str,VHD); in setformat()
116 else if (!strcmp(str,"qed")) DSET(dpc,format,FORMAT,str,QED); in setformat()
122 if ( !strcmp(str,"phy")) DSET(dpc,backend,BACKEND,str,PHY); in setbackendtype()
123 else if (!strcmp(str,"tap")) DSET(dpc,backend,BACKEND,str,TAP); in setbackendtype()
159 if (!strcmp(colon,"cdrom")) { in vdev_and_devtype()
[all …]
A Dlibxlu_pci.c176 if (!strcmp(key, "bdf")) { in xlu_pci_parse_spec_string()
179 } else if (!strcmp(key, "vslot")) { in xlu_pci_parse_spec_string()
181 } else if (!strcmp(key, "permissive")) { in xlu_pci_parse_spec_string()
183 } else if (!strcmp(key, "msitranslate")) { in xlu_pci_parse_spec_string()
185 } else if (!strcmp(key, "seize")) { in xlu_pci_parse_spec_string()
187 } else if (!strcmp(key, "power_mgmt")) { in xlu_pci_parse_spec_string()
189 } else if (!strcmp(key, "rdm_policy")) { in xlu_pci_parse_spec_string()
191 } else if (!strcmp(key, "name")) { in xlu_pci_parse_spec_string()
231 if (!strcmp(tok, "strategy")) { in xlu_rdm_parse()
233 } else if (!strcmp(tok, "policy")) { in xlu_rdm_parse()
[all …]
A Dlibxlu_disk_l.c1187 if (!strcmp(str, "r") || !strcmp(str, "ro")) { in setaccess()
1189 } else if (!strcmp(str, "rw") || !strcmp(str, "w") || !strcmp(str,"")) { in setaccess()
1198 if (!strcmp(str,"")) DSET(dpc,format,FORMAT,str,RAW); in setformat()
1199 else if (!strcmp(str,"raw")) DSET(dpc,format,FORMAT,str,RAW); in setformat()
1200 else if (!strcmp(str,"qcow")) DSET(dpc,format,FORMAT,str,QCOW); in setformat()
1202 else if (!strcmp(str,"vhd")) DSET(dpc,format,FORMAT,str,VHD); in setformat()
1204 else if (!strcmp(str,"qed")) DSET(dpc,format,FORMAT,str,QED); in setformat()
1210 if ( !strcmp(str,"phy")) DSET(dpc,backend,BACKEND,str,PHY); in setbackendtype()
1211 else if (!strcmp(str,"tap")) DSET(dpc,backend,BACKEND,str,TAP); in setbackendtype()
1247 if (!strcmp(colon,"cdrom")) { in vdev_and_devtype()
[all …]
/tools/console/daemon/
A Dmain.c138 if (!strcmp(optarg, "all")) { in main()
141 } else if (!strcmp(optarg, "hv")) { in main()
143 } else if (!strcmp(optarg, "guest")) { in main()
154 if (!strcmp(optarg, "all")) { in main()
157 } else if (!strcmp(optarg, "hv")) { in main()
159 } else if (!strcmp(optarg, "guest")) { in main()
161 } else if (!strcmp(optarg, "none")) { in main()
167 if (!strcmp(optarg, "keep")) { in main()
169 } else if (!strcmp(optarg, "discard")) { in main()
/tools/xs-clients/
A Dxenstore_control.c67 if (strcmp(ret, "BUSY")) in live_update_start()
72 if (strcmp(ret, "OK")) in live_update_start()
101 if (!ret || strcmp(ret, "OK")) { in live_update_cmdline()
151 if (!ret || strcmp(ret, "OK")) { in send_kernel_blob()
178 if (!ret || strcmp(ret, "OK")) { in send_kernel_blob()
257 if (!ret || strcmp(ret, "OK")) { in live_update_daemon()
290 if (!strcmp(argv[i], "-c")) { in live_update()
298 } else if (!strcmp(argv[i], "-t")) { in live_update()
306 } else if (!strcmp(argv[i], "-F")) { in live_update()
308 } else if (!strcmp(argv[i], "-v")) { in live_update()
[all …]
A Dxenstore_client.c639 if (strcmp(m, "read") == 0) in lookup_mode()
641 else if (strcmp(m, "chmod") == 0) in lookup_mode()
643 else if (strcmp(m, "exists") == 0) in lookup_mode()
645 else if (strcmp(m, "list") == 0) in lookup_mode()
647 else if (strcmp(m, "ls") == 0) in lookup_mode()
649 else if (strcmp(m, "rm") == 0) in lookup_mode()
651 else if (strcmp(m, "write") == 0) in lookup_mode()
653 else if (strcmp(m, "read") == 0) in lookup_mode()
655 else if (strcmp(m, "watch") == 0) in lookup_mode()
/tools/xl/
A Dxl.c124 if (!strcmp(buf, "on") || !strcmp(buf, "1")) in parse_global_config()
126 else if (!strcmp(buf, "off") || !strcmp(buf, "0")) in parse_global_config()
128 else if (!strcmp(buf, "auto")) in parse_global_config()
191 if (!strcmp(buf, "json")) in parse_global_config()
193 else if (!strcmp(buf, "sxp")) in parse_global_config()
249 if (!strcmp(buf, "xen")) in parse_global_config()
251 else if (!strcmp(buf, "random")) in parse_global_config()
452 } else if (!strcmp(cmd, "help")) { in main()
485 if (!command || !strcmp(command, "help")) { in help()
A Dxl_parse.c82 if (strcmp(buf, n) == 0) { in parse_action_on_shutdown()
191 if (strcmp(str, "all") == 0) { in update_cpumap_range()
426 if (!strcmp("vif", oparg)) { in parse_nic_config()
428 } else if (!strcmp("ioemu", oparg)) { in parse_nic_config()
570 } else if (!strcmp("trusted", token)) { in parse_nic_config()
1987 if (!strcmp(buf, "generate")) { in parse_config_data()
2010 if (!strcmp(buf, "lmce")) in parse_config_data()
2560 if (!strcmp(p, "vnc")) { in parse_config_data()
2689 if (strcmp(p, "host")) { in parse_config_data()
2748 if (!strcmp(buf, "qemu-xen")) { in parse_config_data()
[all …]
A Dxl_console.c35 if (!strcmp(optarg, "pv")) in main_console()
37 else if (!strcmp(optarg, "serial")) in main_console()
39 else if (!strcmp(optarg, "vuart")) in main_console()
A Dxl_flask.c58 if (!strcmp(p, "0")) in main_setenforce()
60 else if (!strcmp(p, "1")) in main_setenforce()
/tools/misc/
A Dxenhypfs.c46 if (strcmp(argv[0], "-b")) in xenhypfs_cat()
184 } else if (argc >= 3 && !strcmp(argv[1], "cat")) in main()
186 else if (argc == 3 && !strcmp(argv[1], "ls")) in main()
188 else if (argc == 4 && !strcmp(argv[1], "write")) in main()
190 else if (argc == 2 && !strcmp(argv[1], "tree")) in main()
A Dxencov.c68 if (!strcmp(fn, "-")) in cov_read()
128 if (strcmp(argv[0], "reset") == 0) in main()
130 else if (strcmp(argv[0], "read") == 0) in main()
A Dxen-access.c406 if ( !strcmp(argv[0], "-m") ) in main()
427 if ( !strcmp(argv[0], "write") ) in main()
433 else if ( !strcmp(argv[0], "exec") ) in main()
440 else if ( !strcmp(argv[0], "breakpoint") ) in main()
444 else if ( !strcmp(argv[0], "altp2m_write") ) in main()
450 else if ( !strcmp(argv[0], "altp2m_exec") ) in main()
463 else if ( !strcmp(argv[0], "debug") ) in main()
467 else if ( !strcmp(argv[0], "cpuid") ) in main()
471 else if ( !strcmp(argv[0], "desc_access") ) in main()
475 else if ( !strcmp(argv[0], "write_ctrlreg_cr4") ) in main()
[all …]
A Dxen-detect.c86 if ( !strcmp("XenVMMXenVMM", signature) && (regs[0] >= (base + 2)) ) in check_for_xen()
204 if ( !str || strcmp(str, "xen\n") ) in check_sysfs()
213 if ( !strcmp(type, "PV") ) in check_sysfs()
/tools/vchan/
A Dnode.c142 if (!strcmp(argv[2], "read")) in main()
144 else if (!strcmp(argv[2], "write")) in main()
148 if (!strcmp(argv[1], "server")) in main()
150 else if (!strcmp(argv[1], "client")) in main()
A Dvchan-socket-proxy.c408 if (strcmp(optarg, "server") == 0) in main()
410 else if (strcmp(optarg, "client") == 0) in main()
443 if (strcmp(socket_path, "-") == 0) { in main()
478 if (strcmp(socket_path, "-") == 0) { in main()
496 if (strcmp(socket_path, "-") != 0) in main()
515 if (strcmp(socket_path, "-") == 0) in main()
A Dnode-select.c114 if (!strcmp(argv[1], "server")) { in main()
118 } else if (!strcmp(argv[1], "client")) in main()
/tools/xenstored/
A Dcontrol.c89 if (!strcmp(vec[0], "on")) in do_control_log()
91 else if (!strcmp(vec[0], "off")) in do_control_log()
142 if (quotas[i].name && !strcmp(vec[0], quotas[i].name)) { in quota_set()
168 if (!strcmp(vec[0], "-r")) in quota_max()
183 if (!strcmp(vec[0], "set")) in do_control_quota()
186 if (!strcmp(vec[0], "max")) in do_control_quota()
198 if (!strcmp(vec[0], "set")) in do_control_quota_s()
A Dlu.c364 if (!strcmp(argv[argc], "-U")) in lu_activate_binary()
376 if (!strcmp(orig_argv[i], "-U")) in lu_activate_binary()
484 if (!strcmp(vec[0], "-a")) { in do_control_lu()
489 } else if (!strcmp(vec[0], "-c")) { in do_control_lu()
494 } else if (!strcmp(vec[0], "-s")) { in do_control_lu()
496 if (!strcmp(vec[i], "-F")) { in do_control_lu()
498 } else if (!strcmp(vec[i], "-t") && i < num - 1) { in do_control_lu()
501 } else if (!strcmp(vec[i], "-v") && i < num - 1) { in do_control_lu()
A Dlu_minios.c92 if (num == 2 && !strcmp(vec[0], "-b")) in lu_arch()
94 if (num > 2 && !strcmp(vec[0], "-d")) in lu_arch()
/tools/libs/hypfs/
A Dcore.c509 if (!strcmp(val, "1") || !strcmp(val, "on") || !strcmp(val, "yes") || in xenhypfs_write()
510 !strcmp(val, "true") || !strcmp(val, "enable")) in xenhypfs_write()
512 else if (strcmp(val, "0") && strcmp(val, "no") && strcmp(val, "off") && in xenhypfs_write()
513 strcmp(val, "false") && strcmp(val, "disable")) { in xenhypfs_write()
/tools/console/testsuite/
A Dconsole-dom0.c56 if (strcmp(line, "!!!XEN Test Begin!!!\n") == 0) { in main()
80 if (strcmp(line, "Seed Okay.\n") != 0) { in main()
109 } while (strcmp(line, "Okay.\n") != 0); in main()
/tools/debugger/gdbsx/gx/
A Dgx_main.c135 if (strcmp("qfThreadInfo", remote_buf) == 0) { in process_q_request()
595 if (strcmp(argv[argc-1], "-d")==0) { in check_usage_n_stuff()
599 if (argc < 4 || (strcmp(argv[1], "-h") == 0) || in check_usage_n_stuff()
600 (strcmp(argv[1], "-a")==0 && argc < 5)) { in check_usage_n_stuff()
614 if (strcmp(argv[1], "-c")==0 && argc >= 5) { in check_usage_n_stuff()
657 if (strcmp(argv[1], "-c")==0) { in main()
/tools/firmware/hvmloader/
A Dhvmloader.c137 if ( !strcmp("XenVMMXenVMM", signature) ) in init_hypercalls()
141 BUG_ON(strcmp("XenVMMXenVMM", signature) || ((eax - base) < 2)); in init_hypercalls()
250 if ( !strcmp(bios, b->key) ) in detect_bios()
304 if ( !strcmp(name, module_name) ) in get_module_entry()
/tools/libs/light/
A Dlibxl_utils.c79 if (strcmp(domname, name) == 0) { in libxl_name_to_domid()
294 if (!strcmp(s, "phy")) { in libxl_string_to_backend()
296 } else if (!strcmp(s, "file")) { in libxl_string_to_backend()
298 } else if (!strcmp(s, "vbd3")) { in libxl_string_to_backend()
300 } else if (!strcmp(s, "qdisk")) { in libxl_string_to_backend()
304 } else if (!strcmp(s, "tap")) { in libxl_string_to_backend()
311 if (!strcmp(p, "vhd")) { in libxl_string_to_backend()
313 } else if (!strcmp(p, "qcow")) { in libxl_string_to_backend()
317 } else if (!strcmp(p, "qed")) { in libxl_string_to_backend()
564 if (!strcmp(de->d_name, ".") || in libxl__remove_directory()
[all …]

Completed in 85 milliseconds

1234