Home
last modified time | relevance | path

Searched refs:mp2 (Results 1 – 13 of 13) sorted by relevance

/linux/drivers/platform/x86/amd/pmc/
H A Dmp2_stb.c72 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 Dpmc.h117 struct amd_mp2_dev *mp2; member
/linux/drivers/hid/amd-sfh-hid/sfh1_1/
H A Damd_sfh_init.c18 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()
254 static void amd_sfh_resume(struct amd_mp2_dev *mp2) in amd_sfh_resume() argument
256 struct amdtp_cl_data *cl_data = mp2->cl_data; in amd_sfh_resume()
261 amd_sfh_clear_intr(mp2); in amd_sfh_resume()
272 mp2->mp2_ops->start(mp2, info); in amd_sfh_resume()
274 (mp2, cl_data->sensor_idx[i], ENABLE_SENSOR); in amd_sfh_resume()
[all …]
H A Damd_sfh_desc.c179 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()
/linux/drivers/hid/amd-sfh-hid/
H A Damd_sfh_pcie.c43 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 = dev_get_drvdata(dev); in hpd_store() local
357 mp2->sfh1_1_ops->toggle_hpd(mp2, enabled); in hpd_store()
[all …]
H A Damd_sfh_client.c43 struct amd_mp2_dev *mp2; in amd_sfh_get_report() local
46 mp2 = container_of(in_data, struct amd_mp2_dev, in_data); in amd_sfh_get_report()
47 guard(mutex)(&mp2->lock); in amd_sfh_get_report()
78 struct amd_mp2_dev *mp2; in amd_sfh_work() local
82 mp2 = container_of(in_data, struct amd_mp2_dev, in_data); in amd_sfh_work()
83 guard(mutex)(&mp2->lock); in amd_sfh_work()
92 mp2_ops = mp2->mp2_ops; in amd_sfh_work()
123 struct amd_mp2_dev *mp2; in amd_sfh_work_buffer() local
127 mp2 = container_of(in_data, struct amd_mp2_dev, in_data); in amd_sfh_work_buffer()
128 guard(mutex)(&mp2->lock); in amd_sfh_work_buffer()
[all …]
H A Damd_sfh_common.h73 int (*response)(struct amd_mp2_dev *mp2, u8 sid, u32 sensor_sts);
77 void (*suspend)(struct amd_mp2_dev *mp2);
78 void (*resume)(struct amd_mp2_dev *mp2);
94 static inline u64 amd_get_c2p_val(struct amd_mp2_dev *mp2, u32 idx) in amd_get_c2p_val() argument
96 return mp2->rver == 1 ? AMD_C2P_MSG_V1(idx) : AMD_C2P_MSG(idx); in amd_get_c2p_val()
99 static inline u64 amd_get_p2c_val(struct amd_mp2_dev *mp2, u32 idx) in amd_get_p2c_val() argument
101 return mp2->rver == 1 ? AMD_P2C_MSG_V1(idx) : AMD_P2C_MSG(idx); in amd_get_p2c_val()
H A Damd_sfh_hid.c128 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 Dindex.rst15 i2c-amd-mp2
H A Di2c-amd-mp2.rst2 Kernel driver i2c-amd-mp2
/linux/Documentation/devicetree/bindings/pinctrl/
H A Dmarvell,kirkwood-pinctrl.txt134 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/scsi/lpfc/
H A Dlpfc_init.c2807 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 = NULL; in lpfc_sli3_post_buffer()
2859 if (mp2) { in lpfc_sli3_post_buffer()
[all …]
/linux/
H A DMAINTAINERS1174 F: drivers/i2c/busses/i2c-amd-mp2*