/openbmc/linux/drivers/s390/cio/ |
H A D | ioasm.c | 21 int ccode = -EIO; in __stsch() local 30 : [cc] "+&d" (ccode), [addr] "=Q" (*addr) in __stsch() 33 return ccode; in __stsch() 38 int ccode; in stsch() local 40 ccode = __stsch(schid, addr); in stsch() 41 trace_s390_cio_stsch(schid, addr, ccode); in stsch() 43 return ccode; in stsch() 50 int ccode = -EIO; in __msch() local 59 : [cc] "+&d" (ccode) in __msch() 62 return ccode; in __msch() [all …]
|
H A D | cio.c | 130 int ccode; in cio_start_key() local 152 ccode = ssch(sch->schid, orb); in cio_start_key() 155 CIO_HEX_EVENT(5, &ccode, sizeof(ccode)); in cio_start_key() 157 switch (ccode) { in cio_start_key() 170 return ccode; in cio_start_key() 188 int ccode; in cio_resume() local 193 ccode = rsch (sch->schid); in cio_resume() 195 CIO_HEX_EVENT(4, &ccode, sizeof(ccode)); in cio_resume() 197 switch (ccode) { in cio_resume() 221 int ccode; in cio_halt() local [all …]
|
H A D | vfio_ccw_fsm.c | 23 int ccode; in fsm_io_helper() local 40 ccode = ssch(sch->schid, orb); in fsm_io_helper() 42 VFIO_CCW_HEX_EVENT(5, &ccode, sizeof(ccode)); in fsm_io_helper() 44 switch (ccode) { in fsm_io_helper() 72 ret = ccode; in fsm_io_helper() 83 int ccode; in fsm_do_halt() local 92 ccode = hsch(sch->schid); in fsm_do_halt() 94 VFIO_CCW_HEX_EVENT(2, &ccode, sizeof(ccode)); in fsm_do_halt() 96 switch (ccode) { in fsm_do_halt() 112 ret = ccode; in fsm_do_halt() [all …]
|
H A D | chsc_sch.c | 394 int ret, ccode; in chsc_ioctl_start_sync() local 408 ccode = chsc(chsc_area); in chsc_ioctl_start_sync() 409 if (ccode != 0) { in chsc_ioctl_start_sync() 425 int ret, ccode; in chsc_ioctl_info_channel_path() local 462 ccode = chsc(scpcd_area); in chsc_ioctl_info_channel_path() 463 if (ccode != 0) { in chsc_ioctl_info_channel_path() 487 int ret, ccode; in chsc_ioctl_info_cu() local 524 ccode = chsc(scucd_area); in chsc_ioctl_info_cu() 525 if (ccode != 0) { in chsc_ioctl_info_cu() 549 int ret, ccode; in chsc_ioctl_info_sch_cu() local [all …]
|
H A D | crw.c | 65 int ccode, signal; in crw_collect_info() local 83 ccode = stcrw(&tmp_crw); in crw_collect_info() 91 if (ccode != 0) in crw_collect_info() 96 ccode = stcrw(&crw[chain]); in crw_collect_info() 97 if (ccode != 0) in crw_collect_info()
|
/openbmc/linux/drivers/misc/eeprom/ |
H A D | idt_89hpesx.c | 117 u8 ccode; member 262 u8 ccode; in idt_smb_write_byte() local 268 ccode = seq->ccode | CCODE_BYTE; in idt_smb_write_byte() 270 ccode |= CCODE_START; in idt_smb_write_byte() 272 ccode |= CCODE_END; in idt_smb_write_byte() 275 sts = idt_smb_safe(write_byte, pdev->client, ccode, in idt_smb_write_byte() 294 u8 ccode; in idt_smb_read_byte() local 300 ccode = seq->ccode | CCODE_BYTE; in idt_smb_read_byte() 302 ccode |= CCODE_START; in idt_smb_read_byte() 304 ccode |= CCODE_END; in idt_smb_read_byte() [all …]
|
/openbmc/ipmitool/lib/ |
H A D | ipmi_channel.c | 92 } else if (rsp->ccode != 0) { in _ipmi_get_channel_access() 93 return rsp->ccode; in _ipmi_get_channel_access() 133 } else if (rsp->ccode != 0) { in _ipmi_get_channel_info() 134 return rsp->ccode; in _ipmi_get_channel_info() 208 return rsp->ccode; in _ipmi_set_channel_access() 279 if ((rsp == NULL) || (rsp->ccode > 0)) { in ipmi_get_channel_auth_cap() 291 if (rsp->ccode > 0) { in ipmi_get_channel_auth_cap() 293 val2str(rsp->ccode, completion_code_vals)); in ipmi_get_channel_auth_cap() 381 if (rsp->ccode > 0) { in ipmi_get_channel_cipher_suites() 383 val2str(rsp->ccode, completion_code_vals)); in ipmi_get_channel_cipher_suites() [all …]
|
H A D | ipmi_user.c | 83 } else if (rsp->ccode != 0) { in _ipmi_get_user_access() 84 return rsp->ccode; in _ipmi_get_user_access() 96 return rsp->ccode; in _ipmi_get_user_access() 124 } else if (rsp->ccode > 0) { in _ipmi_get_user_name() 125 return rsp->ccode; in _ipmi_get_user_name() 131 return rsp->ccode; in _ipmi_get_user_name() 175 return rsp->ccode; in _ipmi_set_user_access() 226 return rsp->ccode; in _ipmi_set_user_password() 277 int ccode = 0; in ipmi_print_user_list() local 283 ccode = _ipmi_get_user_access(intf, &user_access); in ipmi_print_user_list() [all …]
|
H A D | hpm2.c | 92 if (rsp->ccode == 0xC1) { in hpm2_get_capabilities() 94 return rsp->ccode; in hpm2_get_capabilities() 95 } else if (rsp->ccode) { in hpm2_get_capabilities() 97 " compcode = %x", rsp->ccode); in hpm2_get_capabilities() 98 return rsp->ccode; in hpm2_get_capabilities() 110 return rsp->ccode; in hpm2_get_capabilities() 221 if (rsp->ccode == 0x80) { in hpm2_get_lan_channel_capabilities() 223 return rsp->ccode; in hpm2_get_lan_channel_capabilities() 224 } else if (rsp->ccode) { in hpm2_get_lan_channel_capabilities() 226 " compcode = %x", rsp->ccode); in hpm2_get_lan_channel_capabilities() [all …]
|
H A D | ipmi_vita.c | 195 } else if (rsp->ccode == 0xC1) { in vita_discover() 197 val2str(rsp->ccode, completion_code_vals)); in vita_discover() 198 } else if (rsp->ccode == 0xCC) { in vita_discover() 200 val2str(rsp->ccode, completion_code_vals)); in vita_discover() 201 } else if (rsp->ccode != 0) { in vita_discover() 203 val2str(rsp->ccode, completion_code_vals)); in vita_discover() 245 } else if (rsp->ccode != 0) { in ipmi_vita_ipmb_address() 247 val2str(rsp->ccode, completion_code_vals)); in ipmi_vita_ipmb_address() 290 } else if (rsp->ccode != 0) { in ipmi_vita_getaddr() 292 val2str(rsp->ccode, completion_code_vals)); in ipmi_vita_getaddr() [all …]
|
H A D | ipmi_fwum.c | 457 } else if (rsp->ccode != 0) { in KfwumGetInfo() 459 rsp->ccode); in KfwumGetInfo() 555 } else if (rsp->ccode != 0) { in KfwumGetDeviceInfo() 557 rsp->ccode); in KfwumGetDeviceInfo() 618 } else if (rsp->ccode) { in KfwumGetStatus() 621 rsp->ccode); in KfwumGetStatus() 674 } else if (rsp->ccode != 0) { in KfwumManualRollback() 677 rsp->ccode); in KfwumManualRollback() 714 } else if (rsp->ccode) { in KfwumStartFirmwareImage() 717 rsp->ccode); in KfwumStartFirmwareImage() [all …]
|
H A D | ipmi_mc.c | 89 } else if (rsp->ccode > 0) { in ipmi_mc_reset() 91 val2str(rsp->ccode, completion_code_vals)); in ipmi_mc_reset() 262 if (rsp->ccode > 0) { in ipmi_mc_get_enables() 264 val2str(rsp->ccode, completion_code_vals)); in ipmi_mc_get_enables() 312 if (rsp->ccode > 0) { in ipmi_mc_set_enables() 314 val2str(rsp->ccode, completion_code_vals)); in ipmi_mc_set_enables() 354 else if (rsp->ccode > 0) { in ipmi_mc_set_enables() 356 val2str(rsp->ccode, completion_code_vals)); in ipmi_mc_set_enables() 404 if (rsp->ccode > 0) { in ipmi_mc_get_deviceid() 406 val2str(rsp->ccode, completion_code_vals)); in ipmi_mc_get_deviceid() [all …]
|
H A D | ipmi_hpmfwupg.c | 1437 if (rsp->ccode != 0x00) { in HpmfwupgGetDeviceId() 1440 rsp->ccode, in HpmfwupgGetDeviceId() 1441 val2str(rsp->ccode, completion_code_vals)); in HpmfwupgGetDeviceId() 1466 if (rsp->ccode != 0x00) { in HpmfwupgGetTargetUpgCapabilities() 1469 rsp->ccode, in HpmfwupgGetTargetUpgCapabilities() 1470 val2str(rsp->ccode, completion_code_vals)); in HpmfwupgGetTargetUpgCapabilities() 1543 if (rsp->ccode != 0x00) { in HpmfwupgGetComponentProperties() 1548 rsp->ccode, in HpmfwupgGetComponentProperties() 1549 val2str(rsp->ccode, completion_code_vals)); in HpmfwupgGetComponentProperties() 1668 if (rsp->ccode != 0x00) { in HpmfwupgAbortUpgrade() [all …]
|
H A D | ipmi_picmg.c | 577 } else if (rsp->ccode) { in ipmi_picmg_getaddr() 579 rsp->ccode); in ipmi_picmg_getaddr() 648 if (!rsp || rsp->ccode) { in ipmi_picmg_properties() 706 if (!rsp || rsp->ccode) { in ipmi_picmg_fru_activation() 743 if (rsp->ccode) { in ipmi_picmg_fru_activation_policy_get() 745 rsp->ccode); in ipmi_picmg_fru_activation_policy_get() 798 if (rsp->ccode) { in ipmi_picmg_fru_activation_policy_set() 800 rsp->ccode); in ipmi_picmg_fru_activation_policy_set() 838 if (rsp->ccode) { in ipmi_picmg_portstate_get() 841 rsp->ccode); in ipmi_picmg_portstate_get() [all …]
|
H A D | ipmi_isol.c | 90 if (rsp->ccode == 0xc1) { in ipmi_get_isol_info() 94 if (rsp->ccode > 0) { in ipmi_get_isol_info() 96 val2str(rsp->ccode, completion_code_vals)); in ipmi_get_isol_info() 114 if (rsp->ccode > 0) { in ipmi_get_isol_info() 116 val2str(rsp->ccode, completion_code_vals)); in ipmi_get_isol_info() 134 if (rsp->ccode > 0) { in ipmi_get_isol_info() 136 val2str(rsp->ccode, completion_code_vals)); in ipmi_get_isol_info() 278 if (rsp->ccode > 0) { in ipmi_isol_set_param() 280 param, val2str(rsp->ccode, completion_code_vals)); in ipmi_isol_set_param() 435 if (rsp->ccode > 0) { in ipmi_isol_deactivate() [all …]
|
H A D | ipmi_ime.c | 209 if (rsp->ccode > 0) { in ImeGetInfo() 211 val2str(rsp->ccode, completion_code_vals)); in ImeGetInfo() 519 if (rsp->ccode > 0) { in ImeUpdatePrepare() 521 val2str(rsp->ccode, completion_code_vals)); in ImeUpdatePrepare() 554 if (rsp->ccode > 0) { in ImeUpdateOpenArea() 556 val2str(rsp->ccode, completion_code_vals)); in ImeUpdateOpenArea() 594 if (rsp->ccode > 0) { in ImeUpdateWriteArea() 596 val2str(rsp->ccode, completion_code_vals)); in ImeUpdateWriteArea() 597 if( rsp->ccode == 0x80) // restart operation in ImeUpdateWriteArea() 641 if (rsp->ccode > 0) { in ImeUpdateCloseArea() [all …]
|
H A D | ipmi_sol.c | 133 } else if (rsp->ccode != 0) { in ipmi_sol_payload_access() 136 val2str(rsp->ccode, completion_code_vals)); in ipmi_sol_payload_access() 168 switch(rsp->ccode) { in ipmi_sol_payload_access_status() 183 val2str(rsp->ccode, completion_code_vals)); in ipmi_sol_payload_access_status() 224 switch (rsp->ccode) { in ipmi_get_sol_info() 242 val2str(rsp->ccode, completion_code_vals)); in ipmi_get_sol_info() 262 switch (rsp->ccode) { in ipmi_get_sol_info() 280 val2str(rsp->ccode, completion_code_vals)); in ipmi_get_sol_info() 300 switch (rsp->ccode) { in ipmi_get_sol_info() 320 val2str(rsp->ccode, completion_code_vals)); in ipmi_get_sol_info() [all …]
|
H A D | ipmi_chassis.c | 64 if (rsp->ccode > 0) { in ipmi_chassis_power_status() 66 val2str(rsp->ccode, completion_code_vals)); in ipmi_chassis_power_status() 104 if (rsp->ccode > 0) { in ipmi_chassis_power_control() 107 val2str(rsp->ccode, completion_code_vals)); in ipmi_chassis_power_control() 165 if (rsp->ccode > 0) { in ipmi_chassis_identify() 167 val2str(rsp->ccode, completion_code_vals)); in ipmi_chassis_identify() 213 if (rsp->ccode > 0) { in ipmi_chassis_poh() 215 val2str(rsp->ccode, completion_code_vals)); in ipmi_chassis_poh() 256 if (rsp->ccode > 0) { in ipmi_chassis_restart_cause() 258 val2str(rsp->ccode, completion_code_vals)); in ipmi_chassis_restart_cause() [all …]
|
H A D | ipmi_kontronoem.c | 194 } else if (rsp->ccode > 0) { in ipmi_kontronoem_send_set_large_buffer() 196 val2str(rsp->ccode, completion_code_vals), rsp->ccode); in ipmi_kontronoem_send_set_large_buffer() 249 } else if (rsp->ccode > 0) { in ipmi_kontron_set_serial_number() 277 } else if (rsp->ccode > 0) { in ipmi_kontron_set_serial_number() 279 val2str(rsp->ccode, completion_code_vals)); in ipmi_kontron_set_serial_number() 310 } else if (rsp->ccode > 0) { in ipmi_kontron_set_serial_number() 312 val2str(rsp->ccode, completion_code_vals)); in ipmi_kontron_set_serial_number() 538 } else if (rsp->ccode > 0) { in ipmi_kontron_set_mfg_date() 560 } else if (rsp->ccode > 0) { in ipmi_kontron_set_mfg_date() 562 val2str(rsp->ccode, completion_code_vals)); in ipmi_kontron_set_mfg_date() [all …]
|
H A D | ipmi_delloem.c | 1207 } else if ((rsp->ccode == 0xc1) || (rsp->ccode == 0xcb)) { in ipmi_lcd_set_kvm() 1211 } else if (rsp->ccode > 0) { in ipmi_lcd_set_kvm() 1213 val2str(rsp->ccode, completion_code_vals)); in ipmi_lcd_set_kvm() 1253 } else if ((rsp->ccode == 0xc1) || (rsp->ccode == 0xcb)) { in ipmi_lcd_set_lock() 1257 } else if (rsp->ccode > 0) { in ipmi_lcd_set_lock() 1259 val2str(rsp->ccode, completion_code_vals)); in ipmi_lcd_set_lock() 1598 if (rsp->ccode > 0) { in ipmi_macinfo_drac_idrac_virtual_mac() 1698 if (rsp->ccode > 0) { in ipmi_macinfo_drac_idrac_mac() 1700 val2str(rsp->ccode, completion_code_vals)); in ipmi_macinfo_drac_idrac_mac() 1768 if (rsp->ccode > 0) { in ipmi_macinfo_10g() [all …]
|
/openbmc/qemu/pc-bios/s390-ccw/ |
H A D | cio.h | 380 int ccode = -EIO; in stsch_err() local 387 : "+d" (ccode), "=m" (*addr) in stsch_err() 390 return ccode; in stsch_err() 396 int ccode; in msch() local 402 : "=d" (ccode) in msch() 405 return ccode; in msch() 411 int ccode = -EIO; in msch_err() local 418 : "+d" (ccode) in msch_err() 421 return ccode; in msch_err() 427 int ccode; in tsch() local [all …]
|
/openbmc/linux/tools/testing/selftests/size/ |
H A D | get_size.c | 71 int ccode; in print_k_value() local 78 ccode = print_num(num); in print_k_value() 80 return ccode; in print_k_value() 86 int ccode; in _start() local 94 ccode = syscall(SYS_sysinfo, &info); in _start() 95 if (ccode < 0) { in _start() 99 syscall(SYS_exit, ccode); in _start()
|
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A D | channel.c | 174 static bool brcms_c_country_valid(const char *ccode) in brcms_c_country_valid() argument 180 if (!((ccode[0] & 0x80) == 0 && ccode[0] >= 0x41 && ccode[0] <= 0x5A && in brcms_c_country_valid() 181 (ccode[1] & 0x80) == 0 && ccode[1] >= 0x41 && ccode[1] <= 0x5A)) in brcms_c_country_valid() 188 if (!strcmp("AA", ccode) || /* AA */ in brcms_c_country_valid() 189 !strcmp("ZZ", ccode) || /* ZZ */ in brcms_c_country_valid() 190 ccode[0] == 'X' || /* XA - XZ */ in brcms_c_country_valid() 191 (ccode[0] == 'Q' && /* QM - QZ */ in brcms_c_country_valid() 192 (ccode[1] >= 'M' && ccode[1] <= 'Z'))) in brcms_c_country_valid() 195 if (!strcmp("NA", ccode)) in brcms_c_country_valid() 222 static bool brcms_c_japan_ccode(const char *ccode) in brcms_c_japan_ccode() argument [all …]
|
/openbmc/ipmitool/include/ipmitool/ |
H A D | ipmi_dcmi.h | 52 #define GOOD_PWR_GLIMIT_CCODE(ccode) ((ccode = ((ccode == 0x80) ? 0 : ccode))) argument 53 …ne GOOD_ASSET_TAG_CCODE(ccode) ((ccode = (((ccode == 0x80) || (ccode == 0x81) || (ccode == 0x82) |… argument
|
/openbmc/ipmitool/src/plugins/imb/ |
H A D | imb.c | 82 unsigned char ccode; in ipmi_imb_send_cmd() local 107 rsp.data, &rsp.data_len, &ccode); in ipmi_imb_send_cmd() 115 status, ccode); in ipmi_imb_send_cmd() 118 rsp.ccode = ccode; in ipmi_imb_send_cmd()
|