Home
last modified time | relevance | path

Searched refs:m10bmc (Results 1 – 7 of 7) sorted by relevance

/Linux-v6.6/drivers/mfd/
Dintel-m10-bmc-core.c15 void m10bmc_fw_state_set(struct intel_m10bmc *m10bmc, enum m10bmc_fw_state new_state) in m10bmc_fw_state_set() argument
18 if (!m10bmc->info->handshake_sys_reg_nranges) in m10bmc_fw_state_set()
21 down_write(&m10bmc->bmcfw_lock); in m10bmc_fw_state_set()
22 m10bmc->bmcfw_state = new_state; in m10bmc_fw_state_set()
23 up_write(&m10bmc->bmcfw_lock); in m10bmc_fw_state_set()
31 static bool m10bmc_reg_always_available(struct intel_m10bmc *m10bmc, unsigned int offset) in m10bmc_reg_always_available() argument
33 if (!m10bmc->info->handshake_sys_reg_nranges) in m10bmc_reg_always_available()
36 return !regmap_reg_in_ranges(offset, m10bmc->info->handshake_sys_reg_ranges, in m10bmc_reg_always_available()
37 m10bmc->info->handshake_sys_reg_nranges); in m10bmc_reg_always_available()
49 static bool m10bmc_handshake_reg_unavailable(struct intel_m10bmc *m10bmc) in m10bmc_handshake_reg_unavailable() argument
[all …]
Dintel-m10-bmc-pmci.c20 struct intel_m10bmc m10bmc; member
149 static int pmci_flash_bulk_write(struct intel_m10bmc *m10bmc, const u8 *buf, u32 size) in pmci_flash_bulk_write() argument
151 struct m10bmc_pmci_device *pmci = container_of(m10bmc, struct m10bmc_pmci_device, m10bmc); in pmci_flash_bulk_write()
157 dev_err(m10bmc->dev, "get FIFO available size fail\n"); in pmci_flash_bulk_write()
183 static int pmci_flash_bulk_read(struct intel_m10bmc *m10bmc, u8 *buf, u32 addr, u32 size) in pmci_flash_bulk_read() argument
185 struct m10bmc_pmci_device *pmci = container_of(m10bmc, struct m10bmc_pmci_device, m10bmc); in pmci_flash_bulk_read()
206 dev_err(m10bmc->dev, "read timed out on reading flash 0x%xn", val); in pmci_flash_bulk_read()
235 static int m10bmc_pmci_set_flash_host_mux(struct intel_m10bmc *m10bmc, bool request) in m10bmc_pmci_set_flash_host_mux() argument
240 ret = regmap_update_bits(m10bmc->regmap, M10BMC_N6000_FLASH_MUX_CTRL, in m10bmc_pmci_set_flash_host_mux()
246 return regmap_read_poll_timeout(m10bmc->regmap, in m10bmc_pmci_set_flash_host_mux()
[all …]
/Linux-v6.6/drivers/fpga/
Dintel-m10-bmc-sec-update.c25 struct intel_m10bmc *m10bmc; member
43 struct intel_m10bmc *m10bmc = sec->m10bmc; in m10bmc_sec_write() local
44 unsigned int stride = regmap_get_reg_stride(m10bmc->regmap); in m10bmc_sec_write()
51 if (sec->m10bmc->flash_bulk_ops) in m10bmc_sec_write()
52 return sec->m10bmc->flash_bulk_ops->write(m10bmc, buf, offset, size); in m10bmc_sec_write()
57 ret = regmap_bulk_write(m10bmc->regmap, M10BMC_STAGING_BASE + offset, in m10bmc_sec_write()
65 ret = regmap_write(m10bmc->regmap, M10BMC_STAGING_BASE + offset + leftover_offset, in m10bmc_sec_write()
76 struct intel_m10bmc *m10bmc = sec->m10bmc; in m10bmc_sec_read() local
77 unsigned int stride = regmap_get_reg_stride(m10bmc->regmap); in m10bmc_sec_read()
84 if (sec->m10bmc->flash_bulk_ops) in m10bmc_sec_read()
[all …]
/Linux-v6.6/include/linux/mfd/
Dintel-m10-bmc.h239 int (*read)(struct intel_m10bmc *m10bmc, u8 *buf, u32 addr, u32 size);
240 int (*write)(struct intel_m10bmc *m10bmc, const u8 *buf, u32 offset, u32 size);
241 int (*lock_write)(struct intel_m10bmc *m10bmc);
242 void (*unlock_write)(struct intel_m10bmc *m10bmc);
279 m10bmc_raw_read(struct intel_m10bmc *m10bmc, unsigned int addr, in m10bmc_raw_read() argument
284 ret = regmap_read(m10bmc->regmap, addr, val); in m10bmc_raw_read()
286 dev_err(m10bmc->dev, "fail to read raw reg %x: %d\n", in m10bmc_raw_read()
292 int m10bmc_sys_read(struct intel_m10bmc *m10bmc, unsigned int offset, unsigned int *val);
293 int m10bmc_sys_update_bits(struct intel_m10bmc *m10bmc, unsigned int offset,
300 void m10bmc_fw_state_set(struct intel_m10bmc *m10bmc, enum m10bmc_fw_state new_state);
[all …]
/Linux-v6.6/Documentation/ABI/testing/
Dsysfs-driver-intel-m10-bmc-sec-update1 What: /sys/bus/platform/drivers/intel-m10bmc-sec-update/.../security/sr_root_entry_hash
11 What: /sys/bus/platform/drivers/intel-m10bmc-sec-update/.../security/pr_root_entry_hash
21 What: /sys/bus/platform/drivers/intel-m10bmc-sec-update/.../security/bmc_root_entry_hash
31 What: /sys/bus/platform/drivers/intel-m10bmc-sec-update/.../security/sr_canceled_csks
39 What: /sys/bus/platform/drivers/intel-m10bmc-sec-update/.../security/pr_canceled_csks
47 What: /sys/bus/platform/drivers/intel-m10bmc-sec-update/.../security/bmc_canceled_csks
55 What: /sys/bus/platform/drivers/intel-m10bmc-sec-update/.../security/flash_count
/Linux-v6.6/drivers/hwmon/
Dintel-m10-bmc-hwmon.c34 struct intel_m10bmc *m10bmc; member
595 ret = m10bmc_sys_read(hw->m10bmc, regoff, &regval); in do_sensor_read()
740 struct intel_m10bmc *m10bmc = dev_get_drvdata(pdev->dev.parent); in m10bmc_hwmon_probe() local
749 hw->m10bmc = m10bmc; in m10bmc_hwmon_probe()
/Linux-v6.6/Documentation/driver-api/firmware/
Dfw_upload.rst52 sec->m10bmc = dev_get_drvdata(pdev->dev.parent);