/netbsd/sys/external/bsd/drm2/dist/drm/i915/gem/selftests/ |
H A D | igt_gem_utils.c | 53 u32 *cmd; in igt_emit_store_dw() local 63 if (IS_ERR(cmd)) { in igt_emit_store_dw() 64 err = PTR_ERR(cmd); in igt_emit_store_dw() 74 *cmd++ = lower_32_bits(offset); in igt_emit_store_dw() 76 *cmd++ = val; in igt_emit_store_dw() 80 *cmd++ = 0; in igt_emit_store_dw() 81 *cmd++ = offset; in igt_emit_store_dw() 82 *cmd++ = val; in igt_emit_store_dw() 85 *cmd++ = offset; in igt_emit_store_dw() 86 *cmd++ = val; in igt_emit_store_dw() [all …]
|
/netbsd/sbin/dmctl/ |
H A D | dmctl.c | 238 libdm_cmd_t cmd; in dmctl_get_targets() local 261 libdm_cmd_destroy(cmd); in dmctl_get_targets() 313 libdm_cmd_t cmd; in dmctl_list_devices() local 332 libdm_cmd_destroy(cmd); in dmctl_list_devices() 344 libdm_cmd_t cmd; in dmctl_dev_rename() local 355 libdm_cmd_destroy(cmd); in dmctl_dev_rename() 422 libdm_cmd_t cmd; in dmctl_dev_deps() local 442 libdm_cmd_destroy(cmd); in dmctl_dev_deps() 454 libdm_cmd_t cmd; in dmctl_table_reload() local 494 libdm_cmd_destroy(cmd); in dmctl_table_reload() [all …]
|
/netbsd/sbin/restore/ |
H A D | interactive.c | 134 if (strncmp(cmd, "add", strlen(cmd)) != 0) in runcmdshell() 149 if (strncmp(cmd, "cd", strlen(cmd)) != 0) in runcmdshell() 164 if (strncmp(cmd, "delete", strlen(cmd)) != 0) in runcmdshell() 190 if (strncmp(cmd, "help", strlen(cmd)) != 0) in runcmdshell() 218 if (strncmp(cmd, "ls", strlen(cmd)) != 0) in runcmdshell() 226 if (strncmp(cmd, "pwd", strlen(cmd)) != 0) in runcmdshell() 237 if (strncmp(cmd, "quit", strlen(cmd)) != 0) in runcmdshell() 241 if (strncmp(cmd, "xit", strlen(cmd)) != 0) in runcmdshell() 270 if (strncmp(cmd, "what", strlen(cmd)) != 0) in runcmdshell() 278 if (strncmp(cmd, "Debug", strlen(cmd)) != 0) in runcmdshell() [all …]
|
/netbsd/external/gpl3/gdb/dist/gdb/cli/ |
H A D | cli-dump.c | 40 if ((*cmd) == NULL || (**cmd) == '\0') in scan_expression() 47 end = (*cmd) + strcspn (*cmd, " \t"); in scan_expression() 48 exp = savestring ((*cmd), end - (*cmd)); in scan_expression() 63 if ((*cmd) == NULL) in scan_filename() 74 (*cmd) = skip_spaces (*cmd); in scan_filename() 75 end = *cmd + strcspn (*cmd, " \t"); in scan_filename() 76 filename.reset (savestring ((*cmd), end - (*cmd))); in scan_filename() 174 if (cmd == NULL || *cmd == '\0') in dump_memory_to_file() 179 if (cmd == NULL || *cmd == '\0') in dump_memory_to_file() 181 hi_exp = cmd; in dump_memory_to_file() [all …]
|
/netbsd/external/gpl3/gdb.old/dist/gdb/cli/ |
H A D | cli-dump.c | 40 if ((*cmd) == NULL || (**cmd) == '\0') in scan_expression() 47 end = (*cmd) + strcspn (*cmd, " \t"); in scan_expression() 48 exp = savestring ((*cmd), end - (*cmd)); in scan_expression() 63 if ((*cmd) == NULL) in scan_filename() 74 (*cmd) = skip_spaces (*cmd); in scan_filename() 75 end = *cmd + strcspn (*cmd, " \t"); in scan_filename() 76 filename.reset (savestring ((*cmd), end - (*cmd))); in scan_filename() 174 if (cmd == NULL || *cmd == '\0') in dump_memory_to_file() 179 if (cmd == NULL || *cmd == '\0') in dump_memory_to_file() 181 hi_exp = cmd; in dump_memory_to_file() [all …]
|
/netbsd/sys/dev/scsipi/ |
H A D | ch.c | 362 switch (cmd) { in chioctl() 373 switch (cmd) { in chioctl() 611 memset(&cmd, 0, sizeof(cmd)); in ch_move() 622 return (scsipi_command(sc->sc_periph, (void *)&cmd, sizeof(cmd), 0, 0, in ch_move() 662 memset(&cmd, 0, sizeof(cmd)); in ch_exchange() 702 memset(&cmd, 0, sizeof(cmd)); in ch_position() 1038 memset(&cmd, 0, sizeof(cmd)); in ch_getelemstatus() 1050 return (scsipi_command(sc->sc_periph, (void *)&cmd, sizeof(cmd), in ch_getelemstatus() 1078 memset(&cmd, 0, sizeof(cmd)); in ch_setvoltag() 1115 return (scsipi_command(sc->sc_periph, (void *)&cmd, sizeof(cmd), in ch_setvoltag() [all …]
|
H A D | scsipi_base.c | 1160 memset(&cmd, 0, sizeof(cmd)); in scsipi_test_unit_ready() 1218 memset(&cmd, 0, sizeof(cmd)); in scsipi_inquire() 1297 memset(&cmd, 0, sizeof(cmd)); in scsipi_prevent() 1315 memset(&cmd, 0, sizeof(cmd)); in scsipi_start() 1336 memset(&cmd, 0, sizeof(cmd)); in scsipi_mode_sense() 1353 memset(&cmd, 0, sizeof(cmd)); in scsipi_mode_sense_big() 1370 memset(&cmd, 0, sizeof(cmd)); in scsipi_mode_select() 1386 memset(&cmd, 0, sizeof(cmd)); in scsipi_mode_select_big() 1426 memset(&cmd, 0, sizeof(cmd)); in scsipi_get_opcodeinfo() 1538 cmd = xs->cmd->opcode; in scsipi_update_timeouts() [all …]
|
/netbsd/external/bsd/nvi/dist/common/ |
H A D | api.c | 306 EXCMD cmd; in api_edit() local 318 if (cmd.cmd->fn(sp, &cmd)) in api_edit() 333 EXCMD cmd; in api_escreen() local 341 return (cmd.cmd->fn(sp, &cmd)); in api_escreen() 373 EXCMD cmd; in api_map() local 381 argv_exp0(sp, &cmd, wp, wlen); in api_map() 382 return (cmd.cmd->fn(sp, &cmd)); in api_map() 394 EXCMD cmd; in api_unmap() local 401 return (cmd.cmd->fn(sp, &cmd)); in api_unmap() 512 api_run_str(SCR *sp, char *cmd) in api_run_str() argument [all …]
|
/netbsd/sys/dev/i2c/ |
H A D | aht20.c | 80 .cmd = AHT20_INITIALIZE, 88 .cmd = AHT20_GET_STATUS, 92 .cmd = AHT20_SOFT_RESET, 119 aht20_cmddelay(uint8_t cmd) in aht20_cmddelay() argument 124 if (cmd == aht20_timings[i].cmd) { in aht20_cmddelay() 283 uint8_t cmd[1]; in aht20_attach() local 320 cmd[0] = AHT20_SOFT_RESET; in aht20_attach() 379 uint8_t cmd[3]; in aht20_refresh() local 415 cmd[1] = AHT20_TRIGGER_PARAM1; in aht20_refresh() 485 cmd[0] = AHT20_INITIALIZE; in aht20_refresh() [all …]
|
/netbsd/sys/compat/netbsd32/ |
H A D | netbsd32_ioctl.c | 128 switch (cmd) { in netbsd32_to_ifreq() 149 if (cmd == SIOCGIFDATA || cmd == SIOCZIFDATA) in netbsd32_to_oifreq() 184 u_long cmd) in netbsd32_to_in_nbrinfo() argument 196 u_long cmd) in netbsd32_to_in6_nbrinfo() argument 304 u_long cmd) in netbsd32_to_fss_set() argument 315 u_long cmd) in netbsd32_to_fss_get() argument 669 switch (cmd) { in netbsd32_from_ifreq() 691 if (cmd == SIOCGIFDATA || cmd == SIOCZIFDATA) in netbsd32_from_oifreq() 730 u_long cmd) in netbsd32_from_in_nbrinfo() argument 742 u_long cmd) in netbsd32_from_in6_nbrinfo() argument [all …]
|
/netbsd/external/gpl2/lvm2/dist/liblvm/ |
H A D | lvm_base.c | 30 struct cmd_context *cmd; in lvm_init() local 37 cmd = create_toolcontext(1, system_dir); in lvm_init() 38 if (!cmd) in lvm_init() 42 return (lvm_t) cmd; in lvm_init() 54 if (!init_locking(-1, cmd)) { in lvm_init() 57 lvm_quit((lvm_t) cmd); in lvm_init() 65 cmd->cmd_line = (char *)"liblvm"; in lvm_init() 67 return (lvm_t) cmd; in lvm_init() 88 struct cmd_context *cmd = (struct cmd_context *)libh; in lvm_config_override() local 89 if (override_config_tree_from_string(cmd, config_settings)) in lvm_config_override()
|
/netbsd/usr.bin/sdpquery/ |
H A D | sdpquery.c | 76 struct command *cmd; in main() local 143 for (cmd = commands ; cmd->command != NULL; cmd++) { in main() 144 if (strcasecmp(*argv, cmd->command) == 0) in main() 145 return (*cmd->handler)(--argc, (void *)++argv); in main() 155 struct command *cmd; in usage() local 174 for (cmd = commands ; cmd->command != NULL ; cmd++) in usage() 175 fprintf(stderr, "\t%-13s%s\n", cmd->command, cmd->usage); in usage()
|
/netbsd/usr.sbin/mlxctl/ |
H A D | main.c | 60 struct cmd { struct 68 static const struct cmd cmdtab[] = { argument 81 const struct cmd *cmd, *maxcmd; in main() local 119 cmd = &cmdtab[0]; in main() 121 while (cmd < maxcmd) { in main() 122 if (strcmp(cmdname, cmd->label) == 0) in main() 124 cmd++; in main() 126 if (cmd == maxcmd) in main() 132 if ((cmd->flags & CMD_DISKS) != 0) { in main() 141 } else if ((cmd->flags & CMD_NOARGS) != 0) in main() [all …]
|
/netbsd/sys/external/bsd/drm2/dist/drm/amd/display/dc/dce/ |
H A D | dmub_psr.c | 55 union dmub_rb_cmd cmd; in dmub_set_psr_enable() local 58 cmd.psr_enable.header.type = DMUB_CMD__PSR; in dmub_set_psr_enable() 61 cmd.psr_enable.header.sub_type = DMUB_CMD__PSR_ENABLE; in dmub_set_psr_enable() 63 cmd.psr_enable.header.sub_type = DMUB_CMD__PSR_DISABLE; in dmub_set_psr_enable() 65 cmd.psr_enable.header.payload_bytes = 0; // Send header only in dmub_set_psr_enable() 77 union dmub_rb_cmd cmd; in dmub_set_psr_level() local 86 cmd.psr_set_level.header.type = DMUB_CMD__PSR; in dmub_set_psr_level() 89 cmd.psr_set_level.psr_set_level_data.psr_level = psr_level; in dmub_set_psr_level() 103 union dmub_rb_cmd cmd; in dmub_setup_psr() local 106 = &cmd.psr_copy_settings.psr_copy_settings_data; in dmub_setup_psr() [all …]
|
/netbsd/external/gpl2/lvm2/dist/lib/metadata/ |
H A D | mirror.c | 260 if (!deactivate_lv(cmd, log_lv)) in _init_mirror_log() 281 if (!activate_lv(cmd, log_lv)) { in _init_mirror_log() 303 if (!deactivate_lv(cmd, log_lv)) { in _init_mirror_log() 317 if (!deactivate_lv(cmd, log_lv)) { in _init_mirror_log() 355 struct cmd_context *cmd = mirror_lv->vg->cmd; in _delete_lv() local 373 if (!activate_lv(cmd, lv)) in _delete_lv() 376 if (!deactivate_lv(cmd, lv)) in _delete_lv() 614 if (!resume_lv(lv1->vg->cmd, lv1)) { in _remove_mirror_images() 803 return get_mirror_fault_policy(cmd, 1); in get_mirror_log_fault_policy() 808 return get_mirror_fault_policy(cmd, 0); in get_mirror_device_fault_policy() [all …]
|
H A D | metadata-exported.h | 154 struct cmd_context *cmd; member 208 struct cmd_context *cmd; member 390 struct dm_list *get_pvs(struct cmd_context *cmd); 403 int scan_vgs_for_pvs(struct cmd_context *cmd); 415 int vgs_are_compatible(struct cmd_context *cmd, 448 int pv_analyze(struct cmd_context *cmd, const char *pv_name, 472 int remove_lvs_in_vg(struct cmd_context *cmd, 573 int remove_layers_for_segments(struct cmd_context *cmd, 577 int remove_layers_for_segments_all(struct cmd_context *cmd, 754 int vgcreate_params_validate(struct cmd_context *cmd, [all …]
|
/netbsd/external/gpl2/lvm2/dist/include/ |
H A D | metadata-exported.h | 154 struct cmd_context *cmd; member 208 struct cmd_context *cmd; member 390 struct dm_list *get_pvs(struct cmd_context *cmd); 403 int scan_vgs_for_pvs(struct cmd_context *cmd); 415 int vgs_are_compatible(struct cmd_context *cmd, 448 int pv_analyze(struct cmd_context *cmd, const char *pv_name, 472 int remove_lvs_in_vg(struct cmd_context *cmd, 573 int remove_layers_for_segments(struct cmd_context *cmd, 577 int remove_layers_for_segments_all(struct cmd_context *cmd, 754 int vgcreate_params_validate(struct cmd_context *cmd, [all …]
|
/netbsd/external/bsd/wpa/dist/src/utils/ |
H A D | pcsc_funcs.c | 906 cmd[3] = mode; in scard_get_record_len() 910 ret = scard_transmit(scard, cmd, sizeof(cmd), buf, &blen); in scard_get_record_len() 943 cmd[4] = len; in scard_read_record() 949 ret = scard_transmit(scard, cmd, sizeof(cmd), buf, &blen); in scard_read_record() 985 cmd[4] = len; in scard_read_file() 993 ret = scard_transmit(scard, cmd, sizeof(cmd), buf, &blen); in scard_read_file() 1039 ret = scard_transmit(scard, cmd, sizeof(cmd), resp, &len); in scard_verify_pin() 1068 ret = scard_transmit(scard, cmd, sizeof(cmd), resp, &len); in scard_get_pin_retry_counter() 1262 cmd[4] = 17; in scard_gsm_auth() 1263 cmd[5] = 16; in scard_gsm_auth() [all …]
|
/netbsd/tests/bin/sh/dotcmd/ |
H A D | Makefile | 20 . for cmd in return break continue 21 FILES += ${cmd}_${cmd_scope} 22 FILESDIR_${cmd}_${cmd_scope} = ${TESTSDIR} 23 FILESBUILD_${cmd}_${cmd_scope} = yes 25 ${cmd}_${cmd_scope}: scoped_command 31 ${dot_scope}_${cmd}_${cmd_scope} \ 32 out/${dot_scope}_${cmd}_${cmd_scope}.out 33 FILESDIR_${dot_scope}_${cmd}_${cmd_scope} = ${TESTSDIR} 34 FILESBUILD_${dot_scope}_${cmd}_${cmd_scope} = yes 35 FILESMODE_${dot_scope}_${cmd}_${cmd_scope} = ${BINMODE} [all …]
|
/netbsd/external/gpl2/lvm2/dist/tools/ |
H A D | lvmcmdlib.c | 35 struct cmd_context *cmd; in cmdlib_lvm2_init() local 40 if (!(cmd = init_lvm())) in cmdlib_lvm2_init() 43 return (void *) cmd; in cmdlib_lvm2_init() 50 struct cmd_context *cmd; in lvm2_run() local 62 cmd = (struct cmd_context *) handle; in lvm2_run() 64 cmd->argv = argv; in lvm2_run() 91 ret = lvm_run_command(cmd, argc, argv); in lvm2_run() 104 struct cmd_context *cmd = (struct cmd_context *) handle; in lvm2_log_level() local 106 cmd->default_settings.verbose = level - VERBOSE_BASE_LEVEL; in lvm2_log_level() 118 struct cmd_context *cmd = (struct cmd_context *) handle; in lvm2_exit() local [all …]
|
/netbsd/sys/dev/ic/ |
H A D | bha.c | 243 sizeof(toggle.cmd), (u_char *)&toggle.cmd, in bha_intr() 497 sizeof(hwsetup.cmd), (u_char *)&hwsetup.cmd, in bha_get_xfer_mode() 928 sizeof(inquire.cmd), (u_char *)&inquire.cmd, in bha_find() 983 sizeof(config.cmd), (u_char *)&config.cmd, in bha_inquire_config() 1095 sizeof(inquire.cmd), (u_char *)&inquire.cmd, in bha_info() 1103 sizeof(config.cmd), (u_char *)&config.cmd, in bha_info() 1121 sizeof(digit.cmd), (u_char *)&digit.cmd, in bha_info() 1129 sizeof(digit.cmd), (u_char *)&digit.cmd, in bha_info() 1179 sizeof(model.cmd), (u_char *)&model.cmd, in bha_info() 1274 sizeof(setup.cmd), (u_char *)&setup.cmd, in bha_info() [all …]
|
/netbsd/external/gpl2/lvm2/dist/daemons/clvmd/ |
H A D | lvm-functions.c | 475 if (!cmd->config_valid || config_files_changed(cmd)) { in do_lock_lv() 530 cmd->partial_activation = 0; in do_lock_lv() 533 dm_pool_empty(cmd->mem); in do_lock_lv() 617 lvmcache_label_scan(cmd, 2); in do_refresh_cache() 618 dm_pool_empty(cmd->mem); in do_refresh_cache() 793 dm_pool_empty(cmd->mem); in lvm_do_backup() 807 destroy_toolcontext(cmd); in init_lvm() 814 cmd->cmd_line = "clvmd"; in init_lvm() 833 if (cmd) in destroy_lvm() 834 destroy_toolcontext(cmd); in destroy_lvm() [all …]
|
/netbsd/external/gpl3/gdb/dist/binutils/ |
H A D | od-macho.c | 357 for (cmd = mdata->first_command; cmd != NULL; cmd = cmd->next) in dump_section_map() 1259 || bfd_bread (buf, cmd->datasize, abfd) != cmd->datasize) in dump_code_signature() 1287 || bfd_bread (buf, cmd->datasize, abfd) != cmd->datasize) in dump_segment_split_info() 1334 || bfd_bread (buf, cmd->datasize, abfd) != cmd->datasize) in dump_function_starts() 1398 || bfd_bread (buf, cmd->datasize, abfd) != cmd->datasize) in dump_data_in_code() 1500 tools_offset = cmd->offset + cmd->len - tools_len; in dump_build_version() 1538 idx, cmd->len, cmd->offset); in dump_load_command() 1544 switch (cmd->type) in dump_load_command() 1769 for (cmd = mdata->first_command, i = 0; cmd != NULL; cmd = cmd->next, i++) in dump_load_commands() 1773 else if (cmd->type == cmd32 || cmd->type == cmd64) in dump_load_commands() [all …]
|
/netbsd/external/gpl3/binutils/dist/binutils/ |
H A D | od-macho.c | 348 for (cmd = mdata->first_command; cmd != NULL; cmd = cmd->next) in dump_section_map() 1250 || bfd_bread (buf, cmd->datasize, abfd) != cmd->datasize) in dump_code_signature() 1278 || bfd_bread (buf, cmd->datasize, abfd) != cmd->datasize) in dump_segment_split_info() 1325 || bfd_bread (buf, cmd->datasize, abfd) != cmd->datasize) in dump_function_starts() 1389 || bfd_bread (buf, cmd->datasize, abfd) != cmd->datasize) in dump_data_in_code() 1491 tools_offset = cmd->offset + cmd->len - tools_len; in dump_build_version() 1529 idx, cmd->len, cmd->offset); in dump_load_command() 1535 switch (cmd->type) in dump_load_command() 1754 for (cmd = mdata->first_command, i = 0; cmd != NULL; cmd = cmd->next, i++) in dump_load_commands() 1758 else if (cmd->type == cmd32 || cmd->type == cmd64) in dump_load_commands() [all …]
|
/netbsd/external/gpl3/binutils.old/dist/binutils/ |
H A D | od-macho.c | 355 for (cmd = mdata->first_command; cmd != NULL; cmd = cmd->next) in dump_section_map() 1257 || bfd_bread (buf, cmd->datasize, abfd) != cmd->datasize) in dump_code_signature() 1285 || bfd_bread (buf, cmd->datasize, abfd) != cmd->datasize) in dump_segment_split_info() 1332 || bfd_bread (buf, cmd->datasize, abfd) != cmd->datasize) in dump_function_starts() 1396 || bfd_bread (buf, cmd->datasize, abfd) != cmd->datasize) in dump_data_in_code() 1498 tools_offset = cmd->offset + cmd->len - tools_len; in dump_build_version() 1536 idx, cmd->len, cmd->offset); in dump_load_command() 1542 switch (cmd->type) in dump_load_command() 1765 for (cmd = mdata->first_command, i = 0; cmd != NULL; cmd = cmd->next, i++) in dump_load_commands() 1769 else if (cmd->type == cmd32 || cmd->type == cmd64) in dump_load_commands() [all …]
|