/linux/drivers/platform/x86/amd/pmc/ |
H A D | mp2_stb.c | 72 static int amd_mp2_wait_response(struct amd_mp2_dev *mp2, u8 cmd_id, u32 command_sts) in amd_mp2_wait_response() argument 76 if (!readl_poll_timeout(mp2->mmio + AMD_P2C_MSG0, cmd_resp.resp, in amd_mp2_wait_response() 86 static void amd_mp2_stb_send_cmd(struct amd_mp2_dev *mp2, u8 cmd_id, bool is_dma_used) in amd_mp2_stb_send_cmd() argument 95 writeq(mp2->dma_addr, mp2->mmio + AMD_C2P_MSG1); in amd_mp2_stb_send_cmd() 96 writel(cmd_base.ul, mp2->mmio + AMD_C2P_MSG0); in amd_mp2_stb_send_cmd() 99 static int amd_mp2_stb_region(struct amd_mp2_dev *mp2) in amd_mp2_stb_region() argument 101 struct device *dev = &mp2->pdev->dev; in amd_mp2_stb_region() 102 unsigned int len = mp2->stb_len; in amd_mp2_stb_region() 104 if (!mp2 in amd_mp2_stb_region() 117 amd_mp2_process_cmd(struct amd_mp2_dev * mp2,struct file * filp) amd_mp2_process_cmd() argument 161 struct amd_mp2_dev *mp2 = dev->mp2; amd_mp2_stb_debugfs_open() local 179 struct amd_mp2_dev *mp2 = dev->mp2; amd_mp2_stb_debugfs_read() local 207 struct amd_mp2_dev *mp2 = dev->mp2; amd_mp2_stb_deinit() local 227 struct amd_mp2_dev *mp2 = NULL; amd_mp2_stb_init() local [all...] |
H A D | pmc.h | 117 struct amd_mp2_dev *mp2; member
|
/linux/drivers/hid/amd-sfh-hid/sfh1_1/ |
H A D | amd_sfh_init.c | 18 static int amd_sfh_get_sensor_num(struct amd_mp2_dev *mp2, u8 *sensor_id) in amd_sfh_get_sensor_num() argument 25 memcpy_fromio(&binfo, mp2->vsbase, sizeof(struct sfh_base_info)); in amd_sfh_get_sensor_num() 45 static u32 amd_sfh_wait_for_response(struct amd_mp2_dev *mp2, u8 sid, u32 cmd_id) in amd_sfh_wait_for_response() argument 47 if (mp2->mp2_ops->response) in amd_sfh_wait_for_response() 48 return mp2->mp2_ops->response(mp2, sid, cmd_id); in amd_sfh_wait_for_response() 252 static void amd_sfh_resume(struct amd_mp2_dev *mp2) in amd_sfh_resume() argument 254 struct amdtp_cl_data *cl_data = mp2->cl_data; in amd_sfh_resume() 259 amd_sfh_clear_intr(mp2); in amd_sfh_resume() 270 mp2 in amd_sfh_resume() 287 amd_sfh_suspend(struct amd_mp2_dev * mp2) amd_sfh_suspend() argument 319 amd_sfh_toggle_hpd(struct amd_mp2_dev * mp2,bool enabled) amd_sfh_toggle_hpd() argument 359 struct amd_mp2_dev *mp2 = privdata; amd_mp2_pci_remove() local 368 amd_sfh_set_ops(struct amd_mp2_dev * mp2) amd_sfh_set_ops() argument 381 amd_sfh1_1_init(struct amd_mp2_dev * mp2) amd_sfh1_1_init() argument [all...] |
H A D | amd_sfh_init.h | 17 int (*init)(struct amd_mp2_dev *mp2); 18 void (*toggle_hpd)(struct amd_mp2_dev *mp2, bool enable); 21 int amd_sfh1_1_init(struct amd_mp2_dev *mp2); 22 void amd_sfh_toggle_hpd(struct amd_mp2_dev *mp2, bool enabled);
|
H A D | amd_sfh_interface.c | 18 static int amd_sfh_wait_response(struct amd_mp2_dev *mp2, u8 sid, u32 cmd_id) in amd_sfh_wait_response() argument 23 if (!readl_poll_timeout(mp2->mmio + amd_get_p2c_val(mp2, 0), cmd_resp.resp, in amd_sfh_wait_response() 84 void sfh_interface_init(struct amd_mp2_dev *mp2) in sfh_interface_init() argument 86 mp2->mp2_ops = &amd_sfh_ops; in sfh_interface_init() 87 emp2 = mp2; in sfh_interface_init()
|
H A D | amd_sfh_desc.c | 179 struct amd_mp2_dev *mp2 = container_of(in_data, struct amd_mp2_dev, in_data); in get_input_rep() local 200 sensoraddr = mp2->vsbase + (ACCEL_IDX * SENSOR_DATA_MEM_SIZE_DEFAULT) + in get_input_rep() 211 sensoraddr = mp2->vsbase + (GYRO_IDX * SENSOR_DATA_MEM_SIZE_DEFAULT) + in get_input_rep() 222 sensoraddr = mp2->vsbase + (MAG_IDX * SENSOR_DATA_MEM_SIZE_DEFAULT) + in get_input_rep() 234 sensoraddr = mp2->vsbase + (ALS_IDX * SENSOR_DATA_MEM_SIZE_DEFAULT) + in get_input_rep() 240 memcpy_fromio(&binfo, mp2->vsbase, sizeof(struct sfh_base_info)); in get_input_rep() 254 hpdstatus.val = readl(mp2->mmio + amd_get_c2p_val(mp2, 4)); in get_input_rep()
|
H A D | amd_sfh_interface.h | 187 void sfh_interface_init(struct amd_mp2_dev *mp2);
|
/linux/drivers/hid/amd-sfh-hid/ |
H A D | amd_sfh_pcie.c | 43 static int amd_sfh_wait_response_v2(struct amd_mp2_dev *mp2, u8 sid, u32 sensor_sts) in amd_sfh_wait_response_v2() argument 48 if (!readl_poll_timeout(mp2->mmio + AMD_P2C_MSG(0), cmd_resp.resp, in amd_sfh_wait_response_v2() 253 struct amd_mp2_dev *mp2 = privdata; in amd_mp2_pci_remove() local 255 mp2->mp2_ops->stop_all(mp2); in amd_mp2_pci_remove() 256 pcim_intx(mp2->pdev, false); in amd_mp2_pci_remove() 257 amd_sfh_clear_intr(mp2); in amd_mp2_pci_remove() 340 struct amd_mp2_dev *mp2 = dev_get_drvdata(dev); in hpd_show() local 342 return sysfs_emit(buf, "%s\n", str_enabled_disabled(mp2->dev_en.is_hpd_enabled)); in hpd_show() 349 struct amd_mp2_dev *mp2 in hpd_store() local 366 struct amd_mp2_dev *mp2 = dev_get_drvdata(dev); sfh_attr_is_visible() local 391 struct amd_mp2_dev *mp2 = container_of(work, struct amd_mp2_dev, work); sfh1_1_init_work() local 409 struct amd_mp2_dev *mp2 = container_of(work, struct amd_mp2_dev, work); sfh_init_work() local 426 struct amd_mp2_dev *mp2 = pci_get_drvdata(pdev); amd_sfh_remove() local 502 struct amd_mp2_dev *mp2 = pci_get_drvdata(pdev); amd_sfh_shutdown() local 513 struct amd_mp2_dev *mp2 = dev_get_drvdata(dev); amd_mp2_pci_resume() local 524 struct amd_mp2_dev *mp2 = dev_get_drvdata(dev); amd_mp2_pci_suspend() local [all...] |
H A D | amd_sfh_client.c | 74 struct amd_mp2_dev *mp2; in amd_sfh_work() local 86 mp2 = container_of(in_data, struct amd_mp2_dev, in_data); in amd_sfh_work() 87 mp2_ops = mp2->mp2_ops; in amd_sfh_work() 116 struct amd_mp2_dev *mp2; in amd_sfh_work_buffer() local 122 mp2 = container_of(in_data, struct amd_mp2_dev, in_data); in amd_sfh_work_buffer() 123 report_size = mp2->mp2_ops->get_in_rep(i, cli_data->sensor_idx[i], in amd_sfh_work_buffer() 132 static u32 amd_sfh_wait_for_response(struct amd_mp2_dev *mp2, u8 sid, u32 sensor_sts) in amd_sfh_wait_for_response() argument 134 if (mp2->mp2_ops->response) in amd_sfh_wait_for_response() 135 sensor_sts = mp2->mp2_ops->response(mp2, si in amd_sfh_wait_for_response() 161 amd_sfh_resume(struct amd_mp2_dev * mp2) amd_sfh_resume() argument 187 amd_sfh_suspend(struct amd_mp2_dev * mp2) amd_sfh_suspend() argument [all...] |
H A D | amd_sfh_common.h | 58 /* mp2 active control status */ 70 int (*response)(struct amd_mp2_dev *mp2, u8 sid, u32 sensor_sts); 74 void (*suspend)(struct amd_mp2_dev *mp2); 75 void (*resume)(struct amd_mp2_dev *mp2); 91 static inline u64 amd_get_c2p_val(struct amd_mp2_dev *mp2, u32 idx) in amd_get_c2p_val() argument 93 return mp2->rver == 1 ? AMD_C2P_MSG_V1(idx) : AMD_C2P_MSG(idx); in amd_get_c2p_val() 96 static inline u64 amd_get_p2c_val(struct amd_mp2_dev *mp2, u32 idx) in amd_get_p2c_val() argument 98 return mp2->rver == 1 ? AMD_P2C_MSG_V1(idx) : AMD_P2C_MSG(idx); in amd_get_p2c_val()
|
H A D | amd_sfh_hid.c | 128 struct amd_mp2_dev *mp2 = container_of(cli_data->in_data, struct amd_mp2_dev, in_data); in amdtp_hid_probe() local 129 struct device *dev = &mp2->pdev->dev; in amdtp_hid_probe()
|
/linux/Documentation/i2c/busses/ |
H A D | index.rst | 15 i2c-amd-mp2
|
H A D | i2c-amd-mp2.rst | 2 Kernel driver i2c-amd-mp2
|
/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | marvell,kirkwood-pinctrl.txt | 134 mpp22 22 gpio, ge1(txd2), ts(mp2), tdm(tx2ql), audio(rmclk), 183 mpp22 22 gpio, ge1(txd2), ts(mp2), tdm(tx2ql), audio(rmclk), 201 mpp38 38 gpio, ts(mp2), tdm(rx2ql), audio(rmclk) 247 mpp22 22 gpio, ge1(txd2), ts(mp2), tdm(tx2ql), audio(rmclk), 271 mpp38 38 gpio, ts(mp2), tdm(rx2ql), audio(rmclk), lcd(d18)
|
/linux/drivers/i2c/busses/ |
H A D | Makefile | 38 obj-$(CONFIG_I2C_AMD_MP2) += i2c-amd-mp2-pci.o i2c-amd-mp2-plat.o
|
H A D | Kconfig | 83 be called i2c-amd-mp2-pci and i2c-amd-mp2-plat.
|
/linux/drivers/scsi/lpfc/ |
H A D | lpfc_init.c | 2807 struct lpfc_dmabuf *mp1, *mp2; in lpfc_sli3_post_buffer() local 2836 mp2 = kmalloc(sizeof (struct lpfc_dmabuf), GFP_KERNEL); in lpfc_sli3_post_buffer() 2837 if (mp2) in lpfc_sli3_post_buffer() 2838 mp2->virt = lpfc_mbuf_alloc(phba, MEM_PRI, in lpfc_sli3_post_buffer() 2839 &mp2->phys); in lpfc_sli3_post_buffer() 2840 if (!mp2 || !mp2->virt) { in lpfc_sli3_post_buffer() 2841 kfree(mp2); in lpfc_sli3_post_buffer() 2849 INIT_LIST_HEAD(&mp2->list); in lpfc_sli3_post_buffer() 2851 mp2 in lpfc_sli3_post_buffer() [all...] |
/linux/ |
H A D | MAINTAINERS | 1155 F: drivers/i2c/busses/i2c-amd-mp2*
|