Searched refs:kcs_bmc (Results 1 – 8 of 8) sorted by relevance
/linux-6.3-rc2/drivers/char/ipmi/ |
A D | kcs_bmc.c | 27 return kcs_bmc->ops->io_inputb(kcs_bmc, kcs_bmc->ioreg.idr); in kcs_bmc_read_data() 33 kcs_bmc->ops->io_outputb(kcs_bmc, kcs_bmc->ioreg.odr, data); in kcs_bmc_write_data() 39 return kcs_bmc->ops->io_inputb(kcs_bmc, kcs_bmc->ioreg.str); in kcs_bmc_read_status() 45 kcs_bmc->ops->io_outputb(kcs_bmc, kcs_bmc->ioreg.str, data); in kcs_bmc_write_status() 51 kcs_bmc->ops->io_updateb(kcs_bmc, kcs_bmc->ioreg.str, mask, val); in kcs_bmc_update_status() 61 client = kcs_bmc->client; in kcs_bmc_handle_event() 75 if (kcs_bmc->client) { in kcs_bmc_enable_device() 97 kcs_bmc->client = NULL; in kcs_bmc_disable_device() 110 kcs_bmc->client = NULL; in kcs_bmc_add_device() 120 kcs_bmc->channel, rc); in kcs_bmc_add_device() [all …]
|
A D | kcs_bmc_npcm7xx.c | 69 struct kcs_bmc_device kcs_bmc; member 84 return container_of(kcs_bmc, struct npcm7xx_kcs_bmc, kcs_bmc); in to_npcm7xx_kcs_bmc() 156 dev_name(dev), kcs_bmc); in npcm7xx_kcs_config_irq() 170 struct kcs_bmc_device *kcs_bmc; in npcm7xx_kcs_probe() local 191 kcs_bmc = &priv->kcs_bmc; in npcm7xx_kcs_probe() 192 kcs_bmc->dev = &pdev->dev; in npcm7xx_kcs_probe() 193 kcs_bmc->channel = chan; in npcm7xx_kcs_probe() 197 kcs_bmc->ops = &npcm7xx_kcs_ops; in npcm7xx_kcs_probe() 216 kcs_bmc->ioreg.idr, kcs_bmc->ioreg.odr, kcs_bmc->ioreg.str); in npcm7xx_kcs_probe() 224 struct kcs_bmc_device *kcs_bmc = &priv->kcs_bmc; in npcm7xx_kcs_remove() local [all …]
|
A D | kcs_bmc_aspeed.c | 133 return container_of(kcs_bmc, struct aspeed_kcs_bmc, kcs_bmc); in to_aspeed_kcs_bmc() 171 switch (kcs_bmc->channel) { in aspeed_kcs_outb() 265 dev_err(priv->kcs_bmc.dev, in aspeed_kcs_set_address() 351 priv->kcs_bmc.channel); in aspeed_kcs_config_upstream_irq() 362 switch (kcs_bmc->channel) { in aspeed_kcs_enable_channel() 395 str = aspeed_kcs_inb(&priv->kcs_bmc, priv->kcs_bmc.ioreg.str); in aspeed_kcs_check_obe() 427 &priv->kcs_bmc, priv->kcs_bmc.ioreg.str); in aspeed_kcs_irq_mask_update() 488 dev_name(dev), kcs_bmc); in aspeed_kcs_config_downstream_irq() 594 kcs_bmc = &priv->kcs_bmc; in aspeed_kcs_probe() 595 kcs_bmc->dev = &pdev->dev; in aspeed_kcs_probe() [all …]
|
A D | kcs_bmc_client.h | 12 int (*add_device)(struct kcs_bmc_device *kcs_bmc); 13 int (*remove_device)(struct kcs_bmc_device *kcs_bmc); 35 int kcs_bmc_enable_device(struct kcs_bmc_device *kcs_bmc, struct kcs_bmc_client *client); 36 void kcs_bmc_disable_device(struct kcs_bmc_device *kcs_bmc, struct kcs_bmc_client *client); 38 void kcs_bmc_update_event_mask(struct kcs_bmc_device *kcs_bmc, u8 mask, u8 events); 40 u8 kcs_bmc_read_data(struct kcs_bmc_device *kcs_bmc); 41 void kcs_bmc_write_data(struct kcs_bmc_device *kcs_bmc, u8 data); 42 u8 kcs_bmc_read_status(struct kcs_bmc_device *kcs_bmc); 43 void kcs_bmc_write_status(struct kcs_bmc_device *kcs_bmc, u8 data); 44 void kcs_bmc_update_status(struct kcs_bmc_device *kcs_bmc, u8 mask, u8 val);
|
A D | kcs_bmc_device.h | 12 void (*irq_mask_update)(struct kcs_bmc_device *kcs_bmc, u8 mask, u8 enable); 13 u8 (*io_inputb)(struct kcs_bmc_device *kcs_bmc, u32 reg); 14 void (*io_outputb)(struct kcs_bmc_device *kcs_bmc, u32 reg, u8 b); 15 void (*io_updateb)(struct kcs_bmc_device *kcs_bmc, u32 reg, u8 mask, u8 b); 18 irqreturn_t kcs_bmc_handle_event(struct kcs_bmc_device *kcs_bmc); 19 int kcs_bmc_add_device(struct kcs_bmc_device *kcs_bmc); 20 void kcs_bmc_remove_device(struct kcs_bmc_device *kcs_bmc);
|
A D | kcs_bmc_serio.c | 70 static int kcs_bmc_serio_add_device(struct kcs_bmc_device *kcs_bmc) in kcs_bmc_serio_add_device() argument 75 priv = devm_kzalloc(kcs_bmc->dev, sizeof(*priv), GFP_KERNEL); in kcs_bmc_serio_add_device() 88 port->dev.parent = kcs_bmc->dev; in kcs_bmc_serio_add_device() 92 priv->client.dev = kcs_bmc; in kcs_bmc_serio_add_device() 101 dev_info(kcs_bmc->dev, "Initialised serio client for channel %d", kcs_bmc->channel); in kcs_bmc_serio_add_device() 106 static int kcs_bmc_serio_remove_device(struct kcs_bmc_device *kcs_bmc) in kcs_bmc_serio_remove_device() argument 112 if (pos->client.dev == kcs_bmc) { in kcs_bmc_serio_remove_device() 127 kcs_bmc_disable_device(kcs_bmc, &priv->client); in kcs_bmc_serio_remove_device()
|
A D | kcs_bmc_cdev_ipmi.c | 472 static int kcs_bmc_ipmi_add_device(struct kcs_bmc_device *kcs_bmc) in kcs_bmc_ipmi_add_device() argument 477 priv = devm_kzalloc(kcs_bmc->dev, sizeof(*priv), GFP_KERNEL); in kcs_bmc_ipmi_add_device() 486 priv->client.dev = kcs_bmc; in kcs_bmc_ipmi_add_device() 494 kcs_bmc->channel); in kcs_bmc_ipmi_add_device() 502 dev_err(kcs_bmc->dev, "Unable to register device: %d\n", rc); in kcs_bmc_ipmi_add_device() 510 dev_info(kcs_bmc->dev, "Initialised IPMI client for channel %d", kcs_bmc->channel); in kcs_bmc_ipmi_add_device() 521 if (pos->client.dev == kcs_bmc) { in kcs_bmc_ipmi_remove_device() 534 devm_kfree(kcs_bmc->dev, priv->kbuffer); in kcs_bmc_ipmi_remove_device() 535 devm_kfree(kcs_bmc->dev, priv->data_out); in kcs_bmc_ipmi_remove_device() 536 devm_kfree(kcs_bmc->dev, priv->data_in); in kcs_bmc_ipmi_remove_device() [all …]
|
A D | Makefile | 26 obj-$(CONFIG_IPMI_KCS_BMC) += kcs_bmc.o
|
Completed in 13 milliseconds