Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/hid/amd-sfh-hid/sfh1_1/
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()
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()
208 static void amd_sfh_resume(struct amd_mp2_dev *mp2) in amd_sfh_resume() argument
210 struct amdtp_cl_data *cl_data = mp2->cl_data; in amd_sfh_resume()
217 mp2->mp2_ops->start(mp2, info); in amd_sfh_resume()
219 (mp2, cl_data->sensor_idx[i], ENABLE_SENSOR); in amd_sfh_resume()
224 dev_dbg(&mp2->pdev->dev, "resume sid 0x%x (%s) status 0x%x\n", in amd_sfh_resume()
[all …]
Damd_sfh_interface.c15 static int amd_sfh_wait_response(struct amd_mp2_dev *mp2, u8 sid, u32 cmd_id) in amd_sfh_wait_response() argument
20 if (!readl_poll_timeout(mp2->mmio + AMD_P2C_MSG(0), cmd_resp.resp, in amd_sfh_wait_response()
72 void sfh_interface_init(struct amd_mp2_dev *mp2) in sfh_interface_init() argument
74 mp2->mp2_ops = &amd_sfh_ops; in sfh_interface_init()
Damd_sfh_init.h17 int (*init)(struct amd_mp2_dev *mp2);
20 int amd_sfh1_1_init(struct amd_mp2_dev *mp2);
Damd_sfh_desc.c163 struct amd_mp2_dev *mp2 = container_of(in_data, struct amd_mp2_dev, in_data); in get_input_rep() local
183 sensoraddr = mp2->vsbase + (ACCEL_IDX * SENSOR_DATA_MEM_SIZE_DEFAULT) + in get_input_rep()
194 sensoraddr = mp2->vsbase + (GYRO_IDX * SENSOR_DATA_MEM_SIZE_DEFAULT) + in get_input_rep()
205 sensoraddr = mp2->vsbase + (MAG_IDX * SENSOR_DATA_MEM_SIZE_DEFAULT) + in get_input_rep()
217 sensoraddr = mp2->vsbase + (ALS_IDX * SENSOR_DATA_MEM_SIZE_DEFAULT) + in get_input_rep()
227 hpdstatus.val = readl(mp2->mmio + AMD_C2P_MSG(4)); in get_input_rep()
Damd_sfh_interface.h152 void sfh_interface_init(struct amd_mp2_dev *mp2);
/linux-6.1.9/drivers/hid/amd-sfh-hid/
Damd_sfh_client.c74 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()
158 static void amd_sfh_resume(struct amd_mp2_dev *mp2) in amd_sfh_resume() argument
[all …]
Damd_sfh_pcie.c37 static int amd_sfh_wait_response_v2(struct amd_mp2_dev *mp2, u8 sid, u32 sensor_sts) in amd_sfh_wait_response_v2() argument
42 if (!readl_poll_timeout(mp2->mmio + AMD_P2C_MSG(0), cmd_resp.resp, in amd_sfh_wait_response_v2()
241 struct amd_mp2_dev *mp2 = privdata; in amd_mp2_pci_remove() local
243 mp2->mp2_ops->stop_all(mp2); in amd_mp2_pci_remove()
244 pci_intx(mp2->pdev, false); in amd_mp2_pci_remove()
245 amd_sfh_clear_intr(mp2); in amd_mp2_pci_remove()
372 struct amd_mp2_dev *mp2 = dev_get_drvdata(dev); in amd_mp2_pci_resume() local
374 mp2->mp2_ops->resume(mp2); in amd_mp2_pci_resume()
381 struct amd_mp2_dev *mp2 = dev_get_drvdata(dev); in amd_mp2_pci_suspend() local
383 mp2->mp2_ops->suspend(mp2); in amd_mp2_pci_suspend()
Damd_sfh_common.h56 int (*response)(struct amd_mp2_dev *mp2, u8 sid, u32 sensor_sts);
60 void (*suspend)(struct amd_mp2_dev *mp2);
61 void (*resume)(struct amd_mp2_dev *mp2);
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-6.1.9/Documentation/i2c/busses/
Dindex.rst15 i2c-amd-mp2
Di2c-amd-mp2.rst2 Kernel driver i2c-amd-mp2
/linux-6.1.9/Documentation/devicetree/bindings/pinctrl/
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-6.1.9/drivers/i2c/busses/
DMakefile39 obj-$(CONFIG_I2C_AMD_MP2) += i2c-amd-mp2-pci.o i2c-amd-mp2-plat.o
DKconfig96 be called i2c-amd-mp2-pci and i2c-amd-mp2-plat.
/linux-6.1.9/drivers/scsi/lpfc/
Dlpfc_init.c2795 struct lpfc_dmabuf *mp1, *mp2; in lpfc_sli3_post_buffer() local
2824 mp2 = kmalloc(sizeof (struct lpfc_dmabuf), GFP_KERNEL); in lpfc_sli3_post_buffer()
2825 if (mp2) in lpfc_sli3_post_buffer()
2826 mp2->virt = lpfc_mbuf_alloc(phba, MEM_PRI, in lpfc_sli3_post_buffer()
2827 &mp2->phys); in lpfc_sli3_post_buffer()
2828 if (!mp2 || !mp2->virt) { in lpfc_sli3_post_buffer()
2829 kfree(mp2); in lpfc_sli3_post_buffer()
2837 INIT_LIST_HEAD(&mp2->list); in lpfc_sli3_post_buffer()
2839 mp2 = NULL; in lpfc_sli3_post_buffer()
2847 if (mp2) { in lpfc_sli3_post_buffer()
[all …]
/linux-6.1.9/
DMAINTAINERS1027 F: drivers/i2c/busses/i2c-amd-mp2*