/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->stbdata) { in amd_mp2_stb_region() 105 mp2->vslbase = dmam_alloc_coherent(dev, len, &mp2->dma_addr, GFP_KERNEL); in amd_mp2_stb_region() [all …]
|
H A D | pmc.h | 52 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() 44 static u32 amd_sfh_wait_for_response(struct amd_mp2_dev *mp2, u8 sid, u32 cmd_id) in amd_sfh_wait_for_response() argument 46 if (mp2->mp2_ops->response) in amd_sfh_wait_for_response() 47 return mp2->mp2_ops->response(mp2, sid, cmd_id); in amd_sfh_wait_for_response() 224 static void amd_sfh_resume(struct amd_mp2_dev *mp2) in amd_sfh_resume() argument 226 struct amdtp_cl_data *cl_data = mp2->cl_data; in amd_sfh_resume() 231 amd_sfh_clear_intr(mp2); in amd_sfh_resume() 238 mp2->mp2_ops->start(mp2, info); in amd_sfh_resume() 240 (mp2, cl_data->sensor_idx[i], ENABLE_SENSOR); in amd_sfh_resume() [all …]
|
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_init.h | 17 int (*init)(struct amd_mp2_dev *mp2); 20 int amd_sfh1_1_init(struct amd_mp2_dev *mp2);
|
H A D | amd_sfh_interface.h | 167 void sfh_interface_init(struct amd_mp2_dev *mp2);
|
/linux/drivers/hid/amd-sfh-hid/ |
H A D | amd_sfh_pcie.c | 41 static int amd_sfh_wait_response_v2(struct amd_mp2_dev *mp2, u8 sid, u32 sensor_sts) in amd_sfh_wait_response_v2() argument 46 if (!readl_poll_timeout(mp2->mmio + AMD_P2C_MSG(0), cmd_resp.resp, in amd_sfh_wait_response_v2() 248 struct amd_mp2_dev *mp2 = privdata; in amd_mp2_pci_remove() local 250 mp2->mp2_ops->stop_all(mp2); in amd_mp2_pci_remove() 251 pci_intx(mp2->pdev, false); in amd_mp2_pci_remove() 252 amd_sfh_clear_intr(mp2); in amd_mp2_pci_remove() 335 struct amd_mp2_dev *mp2 = container_of(work, struct amd_mp2_dev, work); in sfh1_1_init_work() local 338 rc = mp2->sfh1_1_ops->init(mp2); in sfh1_1_init_work() 342 amd_sfh_clear_intr(mp2); in sfh1_1_init_work() 343 mp2->init_done = 1; in sfh1_1_init_work() [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, sid, sensor_sts); in amd_sfh_wait_for_response() 159 static void amd_sfh_resume(struct amd_mp2_dev *mp2) in amd_sfh_resume() argument [all …]
|
H A D | amd_sfh_common.h | 68 int (*response)(struct amd_mp2_dev *mp2, u8 sid, u32 sensor_sts); 72 void (*suspend)(struct amd_mp2_dev *mp2); 73 void (*resume)(struct amd_mp2_dev *mp2); 89 static inline u64 amd_get_c2p_val(struct amd_mp2_dev *mp2, u32 idx) in amd_get_c2p_val() argument 91 return mp2->rver == 1 ? AMD_C2P_MSG_V1(idx) : AMD_C2P_MSG(idx); in amd_get_c2p_val() 94 static inline u64 amd_get_p2c_val(struct amd_mp2_dev *mp2, u32 idx) in amd_get_p2c_val() argument 96 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 | 40 obj-$(CONFIG_I2C_AMD_MP2) += i2c-amd-mp2-pci.o i2c-amd-mp2-plat.o
|
H A D | Kconfig | 96 be called i2c-amd-mp2-pci and i2c-amd-mp2-plat.
|
/linux/drivers/scsi/lpfc/ |
H A D | lpfc_init.c | 2786 struct lpfc_dmabuf *mp1, *mp2; in lpfc_sli3_post_buffer() local 2815 mp2 = kmalloc(sizeof (struct lpfc_dmabuf), GFP_KERNEL); in lpfc_sli3_post_buffer() 2816 if (mp2) in lpfc_sli3_post_buffer() 2817 mp2->virt = lpfc_mbuf_alloc(phba, MEM_PRI, in lpfc_sli3_post_buffer() 2818 &mp2->phys); in lpfc_sli3_post_buffer() 2819 if (!mp2 || !mp2->virt) { in lpfc_sli3_post_buffer() 2820 kfree(mp2); in lpfc_sli3_post_buffer() 2828 INIT_LIST_HEAD(&mp2->list); in lpfc_sli3_post_buffer() 2830 mp2 = NULL; in lpfc_sli3_post_buffer() 2838 if (mp2) { in lpfc_sli3_post_buffer() [all …]
|
/linux/ |
H A D | MAINTAINERS | 1107 F: drivers/i2c/busses/i2c-amd-mp2*
|