| /kernel/linux/linux-6.6/drivers/char/ipmi/ |
| D | ipmi_kcs_sm.c | 5 * State machine for handling IPMI KCS interfaces. 43 /* The states the KCS driver may be in. */ 45 /* The KCS interface is currently doing nothing. */ 125 static unsigned int init_kcs_data_with_state(struct si_sm_data *kcs, in init_kcs_data_with_state() argument 128 kcs->state = state; in init_kcs_data_with_state() 129 kcs->io = io; in init_kcs_data_with_state() 130 kcs->write_pos = 0; in init_kcs_data_with_state() 131 kcs->write_count = 0; in init_kcs_data_with_state() 132 kcs->orig_write_count = 0; in init_kcs_data_with_state() 133 kcs->read_pos = 0; in init_kcs_data_with_state() [all …]
|
| D | Kconfig | 66 Provides a driver for System Interfaces (KCS, SMIC, BT). 67 Currently, only KCS and SMIC are supported. If 113 tristate "Aspeed KCS IPMI BMC driver" 115 Provides a driver for the KCS (Keyboard Controller Style) IPMI 118 The driver implements the BMC side of the KCS contorller, it 119 provides the access of KCS IO space for BMC side. 125 tristate "NPCM KCS IPMI BMC driver" 127 Provides a driver for the KCS (Keyboard Controller Style) IPMI 130 The driver implements the BMC side of the KCS contorller, it 131 provides the access of KCS IO space for BMC side. [all …]
|
| D | kcs_bmc_npcm7xx.c | 7 #define pr_fmt(fmt) "nuvoton-kcs-bmc: " fmt 22 #define DEVICE_NAME "npcm-kcs-bmc" 50 * 7.2.4 Core KCS Registers 54 * sts: KCS Channel n Status Register (KCSnST). 55 * dob: KCS Channel n Data Out Buffer Register (KCSnDO). 56 * dib: KCS Channel n Data In Buffer Register (KCSnDI). 57 * ctl: KCS Channel n Control Register (KCSnCTL). 58 * ie : KCS Channel n Interrupt Enable Register (KCSnIE). 235 { .compatible = "nuvoton,npcm750-kcs-bmc" }, 253 MODULE_DESCRIPTION("NPCM7xx device interface to the KCS BMC device");
|
| D | kcs_bmc.c | 120 dev_err(kcs_bmc->dev, "Failed to add chardev for KCS channel %d: %d", in kcs_bmc_add_device() 140 dev_err(kcs_bmc->dev, "Failed to remove chardev for KCS channel %d: %d", in kcs_bmc_remove_device() 157 dev_err(kcs_bmc->dev, "Failed to add driver for KCS channel %d: %d", in kcs_bmc_register_driver() 174 dev_err(kcs_bmc->dev, "Failed to remove driver for KCS channel %d: %d", in kcs_bmc_unregister_driver() 190 MODULE_DESCRIPTION("KCS BMC to handle the IPMI request from system software");
|
| D | kcs_bmc_cdev_ipmi.c | 6 #define pr_fmt(fmt) "kcs-bmc: " fmt 22 /* Different phases of the KCS BMC module. 60 /* IPMI 2.0 - Table 9-4, KCS Interface Status Codes */ 94 #define DEVICE_NAME "ipmi-kcs" 100 /* IPMI 2.0 - Table 9-1, KCS Interface Status Register Bits */ 108 /* IPMI 2.0 - Table 9-2, KCS Interface State Bits */ 116 /* IPMI 2.0 - Table 9-3, KCS Interface Control Codes */ 568 MODULE_DESCRIPTION("KCS BMC to handle the IPMI request from system software");
|
| D | ipmi_si_hardcode.c | 36 …rated by commas. The types are 'kcs', 'smic', and 'bt'. For example si_type=kcs,bt will set the …
|
| D | kcs_bmc_aspeed.c | 6 #define pr_fmt(fmt) "aspeed-kcs-bmc: " fmt 27 #define DEVICE_NAME "ast-kcs-bmc" 349 "SerIRQ configuration not supported on KCS channel %d\n", in aspeed_kcs_config_upstream_irq() 664 { .compatible = "aspeed,ast2400-kcs-bmc-v2" }, 665 { .compatible = "aspeed,ast2500-kcs-bmc-v2" }, 666 { .compatible = "aspeed,ast2600-kcs-bmc" }, 684 MODULE_DESCRIPTION("Aspeed device interface to the KCS BMC device");
|
| /kernel/linux/linux-5.10/drivers/char/ipmi/ |
| D | ipmi_kcs_sm.c | 5 * State machine for handling IPMI KCS interfaces. 43 /* The states the KCS driver may be in. */ 45 /* The KCS interface is currently doing nothing. */ 125 static unsigned int init_kcs_data(struct si_sm_data *kcs, in init_kcs_data() argument 128 kcs->state = KCS_IDLE; in init_kcs_data() 129 kcs->io = io; in init_kcs_data() 130 kcs->write_pos = 0; in init_kcs_data() 131 kcs->write_count = 0; in init_kcs_data() 132 kcs->orig_write_count = 0; in init_kcs_data() 133 kcs->read_pos = 0; in init_kcs_data() [all …]
|
| D | kcs_bmc_aspeed.c | 6 #define pr_fmt(fmt) "aspeed-kcs-bmc: " fmt 26 #define DEVICE_NAME "ast-kcs-bmc" 241 struct kcs_bmc *kcs; in aspeed_kcs_probe_of_v1() local 254 kcs = kcs_bmc_alloc(&pdev->dev, sizeof(struct aspeed_kcs_bmc), channel); in aspeed_kcs_probe_of_v1() 255 if (!kcs) in aspeed_kcs_probe_of_v1() 258 priv = kcs_bmc_priv(kcs); in aspeed_kcs_probe_of_v1() 271 kcs->ioreg = ast_kcs_bmc_ioregs[channel - 1]; in aspeed_kcs_probe_of_v1() 272 aspeed_kcs_set_address(kcs, slave); in aspeed_kcs_probe_of_v1() 274 return kcs; in aspeed_kcs_probe_of_v1() 294 struct kcs_bmc *kcs; in aspeed_kcs_probe_of_v2() local [all …]
|
| D | Kconfig | 66 Provides a driver for System Interfaces (KCS, SMIC, BT). 67 Currently, only KCS and SMIC are supported. If 104 tristate "Aspeed KCS IPMI BMC driver" 106 Provides a driver for the KCS (Keyboard Controller Style) IPMI 109 The driver implements the BMC side of the KCS contorller, it 110 provides the access of KCS IO space for BMC side. 116 tristate "NPCM7xx KCS IPMI BMC driver" 118 Provides a driver for the KCS (Keyboard Controller Style) IPMI 121 The driver implements the BMC side of the KCS contorller, it 122 provides the access of KCS IO space for BMC side.
|
| D | kcs_bmc_npcm7xx.c | 7 #define pr_fmt(fmt) "nuvoton-kcs-bmc: " fmt 22 #define DEVICE_NAME "npcm-kcs-bmc" 49 * 7.2.4 Core KCS Registers 53 * sts: KCS Channel n Status Register (KCSnST). 54 * dob: KCS Channel n Data Out Buffer Register (KCSnDO). 55 * dib: KCS Channel n Data In Buffer Register (KCSnDI). 56 * ctl: KCS Channel n Control Register (KCSnCTL). 57 * ie : KCS Channel n Interrupt Enable Register (KCSnIE). 197 { .compatible = "nuvoton,npcm750-kcs-bmc" }, 215 MODULE_DESCRIPTION("NPCM7xx device interface to the KCS BMC device");
|
| D | kcs_bmc.h | 11 /* Different phases of the KCS BMC module. 49 /* IPMI 2.0 - Table 9-4, KCS Interface Status Codes */ 58 /* IPMI 2.0 - 9.5, KCS Interface Registers 75 /* Setup by BMC KCS controller driver */
|
| D | kcs_bmc.c | 6 #define pr_fmt(fmt) "kcs-bmc: " fmt 19 #define DEVICE_NAME "ipmi-kcs" 26 /* IPMI 2.0 - Table 9-1, KCS Interface Status Register Bits */ 34 /* IPMI 2.0 - Table 9-2, KCS Interface State Bits */ 42 /* IPMI 2.0 - Table 9-3, KCS Interface Control Codes */ 458 MODULE_DESCRIPTION("KCS BMC to handle the IPMI request from system software");
|
| D | ipmi_si_hardcode.c | 36 " interface separated by commas. The types are 'kcs'," 37 " 'smic', and 'bt'. For example si_type=kcs,bt will set" 38 " the first interface to kcs and the second to bt"); 87 if (!si_type_str || !*si_type_str || strcmp(si_type_str, "kcs") == 0) { in ipmi_hardcode_init_one()
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/ipmi/ |
| D | aspeed,ast2400-kcs-bmc.yaml | 4 $id: http://devicetree.org/schemas/ipmi/aspeed,ast2400-kcs-bmc.yaml# 7 title: ASPEED BMC KCS Devices 13 The Aspeed BMC SoCs typically use the Keyboard-Controller-Style (KCS) 22 - aspeed,ast2400-kcs-bmc-v2 23 - aspeed,ast2500-kcs-bmc-v2 24 - aspeed,ast2600-kcs-bmc 30 - aspeed,ast2400-kcs-bmc 31 - aspeed,ast2500-kcs-bmc 86 - aspeed,ast2400-kcs-bmc 87 - aspeed,ast2500-kcs-bmc [all …]
|
| D | npcm7xx-kcs-bmc.txt | 1 * Nuvoton NPCM KCS (Keyboard Controller Style) IPMI interface 4 (Baseboard Management Controllers) and the KCS interface can be 9 "nuvoton,npcm750-kcs-bmc" 10 "nuvoton,npcm845-kcs-bmc", "nuvoton,npcm750-kcs-bmc" 12 - kcs_chan : The KCS channel number in the controller 17 compatible = "nuvoton,npcm750-lpc-kcs", "simple-mfd", "syscon"; 26 compatible = "nuvoton,npcm750-kcs-bmc"; 34 compatible = "nuvoton,npcm750-kcs-bmc";
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/ipmi/ |
| D | aspeed-kcs-bmc.txt | 1 # Aspeed KCS (Keyboard Controller Style) IPMI interface 4 (Baseboard Management Controllers) and the KCS interface can be 10 "aspeed,ast2400-kcs-bmc" 11 "aspeed,ast2500-kcs-bmc" 19 "aspeed,ast2400-kcs-bmc-v2" 20 "aspeed,ast2500-kcs-bmc-v2" 27 kcs3: kcs@24 { 28 compatible = "aspeed,ast2500-kcs-bmc-v2";
|
| D | npcm7xx-kcs-bmc.txt | 1 * Nuvoton NPCM7xx KCS (Keyboard Controller Style) IPMI interface 4 (Baseboard Management Controllers) and the KCS interface can be 9 "nuvoton,npcm750-kcs-bmc" 11 - kcs_chan : The KCS channel number in the controller 16 compatible = "nuvoton,npcm750-lpc-kcs", "simple-mfd", "syscon"; 25 compatible = "nuvoton,npcm750-kcs-bmc"; 33 compatible = "nuvoton,npcm750-kcs-bmc";
|
| /kernel/linux/linux-5.10/fs/proc/ |
| D | stat.c | 26 u64 get_idle_time(struct kernel_cpustat *kcs, int cpu) in get_idle_time() argument 30 idle = kcs->cpustat[CPUTIME_IDLE]; in get_idle_time() 36 static u64 get_iowait_time(struct kernel_cpustat *kcs, int cpu) in get_iowait_time() argument 40 iowait = kcs->cpustat[CPUTIME_IOWAIT]; in get_iowait_time() 48 u64 get_idle_time(struct kernel_cpustat *kcs, int cpu) in get_idle_time() argument 57 idle = kcs->cpustat[CPUTIME_IDLE]; in get_idle_time() 64 static u64 get_iowait_time(struct kernel_cpustat *kcs, int cpu) in get_iowait_time() argument 73 iowait = kcs->cpustat[CPUTIME_IOWAIT]; in get_iowait_time()
|
| D | uptime.c | 21 struct kernel_cpustat kcs; in uptime_proc_show() local 23 kcpustat_cpu_fetch(&kcs, i); in uptime_proc_show() 24 idle_nsec += get_idle_time(&kcs, i); in uptime_proc_show()
|
| /kernel/linux/linux-6.6/drivers/s390/crypto/ |
| D | pkey_api.c | 1362 struct pkey_clr2seck kcs; in pkey_unlocked_ioctl() local 1364 if (copy_from_user(&kcs, ucs, sizeof(kcs))) in pkey_unlocked_ioctl() 1366 rc = cca_clr2seckey(kcs.cardnr, kcs.domain, kcs.keytype, in pkey_unlocked_ioctl() 1367 kcs.clrkey.clrkey, kcs.seckey.seckey); in pkey_unlocked_ioctl() 1369 if (!rc && copy_to_user(ucs, &kcs, sizeof(kcs))) in pkey_unlocked_ioctl() 1371 memzero_explicit(&kcs, sizeof(kcs)); in pkey_unlocked_ioctl() 1547 struct pkey_clr2seck2 kcs; in pkey_unlocked_ioctl() local 1551 if (copy_from_user(&kcs, ucs, sizeof(kcs))) in pkey_unlocked_ioctl() 1553 apqns = _copy_apqns_from_user(kcs.apqns, kcs.apqn_entries); in pkey_unlocked_ioctl() 1555 memzero_explicit(&kcs, sizeof(kcs)); in pkey_unlocked_ioctl() [all …]
|
| /kernel/linux/linux-6.6/fs/proc/ |
| D | uptime.c | 22 struct kernel_cpustat kcs; in uptime_proc_show() local 24 kcpustat_cpu_fetch(&kcs, i); in uptime_proc_show() 25 idle_nsec += get_idle_time(&kcs, i); in uptime_proc_show()
|
| D | stat.c | 25 u64 get_idle_time(struct kernel_cpustat *kcs, int cpu) in get_idle_time() argument 34 idle = kcs->cpustat[CPUTIME_IDLE]; in get_idle_time() 41 static u64 get_iowait_time(struct kernel_cpustat *kcs, int cpu) in get_iowait_time() argument 50 iowait = kcs->cpustat[CPUTIME_IOWAIT]; in get_iowait_time()
|
| /kernel/linux/linux-5.10/drivers/s390/crypto/ |
| D | pkey_api.c | 1148 struct pkey_clr2seck kcs; in pkey_unlocked_ioctl() local 1150 if (copy_from_user(&kcs, ucs, sizeof(kcs))) in pkey_unlocked_ioctl() 1152 rc = cca_clr2seckey(kcs.cardnr, kcs.domain, kcs.keytype, in pkey_unlocked_ioctl() 1153 kcs.clrkey.clrkey, kcs.seckey.seckey); in pkey_unlocked_ioctl() 1157 if (copy_to_user(ucs, &kcs, sizeof(kcs))) in pkey_unlocked_ioctl() 1159 memzero_explicit(&kcs, sizeof(kcs)); in pkey_unlocked_ioctl() 1326 struct pkey_clr2seck2 kcs; in pkey_unlocked_ioctl() local 1331 if (copy_from_user(&kcs, ucs, sizeof(kcs))) in pkey_unlocked_ioctl() 1333 apqns = _copy_apqns_from_user(kcs.apqns, kcs.apqn_entries); in pkey_unlocked_ioctl() 1341 rc = pkey_clr2seckey2(apqns, kcs.apqn_entries, in pkey_unlocked_ioctl() [all …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | aspeed-g6.dtsi | 468 kcs1: kcs@24 { 469 compatible = "aspeed,ast2500-kcs-bmc-v2"; 475 kcs2: kcs@28 { 476 compatible = "aspeed,ast2500-kcs-bmc-v2"; 481 kcs3: kcs@2c { 482 compatible = "aspeed,ast2500-kcs-bmc-v2"; 498 kcs4: kcs@94 { 499 compatible = "aspeed,ast2500-kcs-bmc-v2";
|