Home
last modified time | relevance | path

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

/linux-6.15/drivers/platform/x86/amd/pmc/
H A Dmp2_stb.c95 writeq(mp2->dma_addr, mp2->mmio + AMD_C2P_MSG1); in amd_mp2_stb_send_cmd()
147 memcpy_fromio(mp2->stbdata, mp2->vslbase, mp2->stb_len); in amd_mp2_process_cmd()
161 struct amd_mp2_dev *mp2 = dev->mp2; in amd_mp2_stb_debugfs_open() local
163 if (mp2) { in amd_mp2_stb_debugfs_open()
179 struct amd_mp2_dev *mp2 = dev->mp2; in amd_mp2_stb_debugfs_read() local
181 if (!mp2) in amd_mp2_stb_debugfs_read()
207 struct amd_mp2_dev *mp2 = dev->mp2; in amd_mp2_stb_deinit() local
210 if (mp2 && mp2->pdev) { in amd_mp2_stb_deinit()
231 mp2 = devm_kzalloc(dev->dev, sizeof(*mp2), GFP_KERNEL); in amd_mp2_stb_init()
232 if (!mp2) in amd_mp2_stb_init()
[all …]
H A Dpmc.h117 struct amd_mp2_dev *mp2; member
/linux-6.15/drivers/hid/amd-sfh-hid/sfh1_1/
H A Damd_sfh_init.c47 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()
270 mp2->mp2_ops->start(mp2, info); in amd_sfh_resume()
302 mp2->mp2_ops->stop(mp2, cl_data->sensor_idx[i]); in amd_sfh_suspend()
333 mp2->mp2_ops->start(mp2, info); in amd_sfh_toggle_hpd()
341 mp2->mp2_ops->stop(mp2, cl_data->sensor_idx[i]); in amd_sfh_toggle_hpd()
363 mp2->mp2_ops->stop_all(mp2); in amd_mp2_pci_remove()
373 mp2_ops = mp2->mp2_ops; in amd_sfh_set_ops()
383 u32 phy_base = readl(mp2->mmio + amd_get_c2p_val(mp2, 22)); in amd_sfh1_1_init()
395 if (!mp2->vsbase) { in amd_sfh1_1_init()
[all …]
H A Damd_sfh_init.h17 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 Damd_sfh_interface.c18 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 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()
H A Damd_sfh_interface.h187 void sfh_interface_init(struct amd_mp2_dev *mp2);
/linux-6.15/drivers/hid/amd-sfh-hid/
H A Damd_sfh_pcie.c251 mp2->mp2_ops->stop_all(mp2); in amd_mp2_pci_remove()
353 mp2->sfh1_1_ops->toggle_hpd(mp2, enabled); in hpd_store()
364 if (!mp2->sfh1_1_ops || !mp2->dev_en.is_hpd_present) in sfh_attr_is_visible()
390 rc = mp2->sfh1_1_ops->init(mp2); in sfh1_1_init_work()
395 mp2->init_done = 1; in sfh1_1_init_work()
417 mp2->init_done = 1; in sfh_init_work()
426 mp2->mp2_ops->remove(mp2); in amd_sfh_remove()
500 if (mp2) { in amd_sfh_shutdown()
503 mp2->mp2_ops->stop_all(mp2); in amd_sfh_shutdown()
513 mp2->mp2_ops->resume(mp2); in amd_mp2_pci_resume()
[all …]
H A Damd_sfh_client.c74 struct amd_mp2_dev *mp2; in amd_sfh_work() local
87 mp2_ops = mp2->mp2_ops; in amd_sfh_work()
116 struct amd_mp2_dev *mp2; in amd_sfh_work_buffer() local
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()
161 struct amdtp_cl_data *cl_data = mp2->cl_data; in amd_sfh_resume()
170 mp2->mp2_ops->start(mp2, info); in amd_sfh_resume()
182 amd_sfh_clear_intr(mp2); in amd_sfh_resume()
187 struct amdtp_cl_data *cl_data = mp2->cl_data; in amd_sfh_suspend()
193 mp2->mp2_ops->stop(mp2, cl_data->sensor_idx[i]); in amd_sfh_suspend()
[all …]
H A Damd_sfh_common.h70 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 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.15/Documentation/i2c/busses/
H A Dindex.rst15 i2c-amd-mp2
H A Di2c-amd-mp2.rst2 Kernel driver i2c-amd-mp2
/linux-6.15/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-6.15/drivers/i2c/busses/
H A DMakefile38 obj-$(CONFIG_I2C_AMD_MP2) += i2c-amd-mp2-pci.o i2c-amd-mp2-plat.o
H A DKconfig83 be called i2c-amd-mp2-pci and i2c-amd-mp2-plat.
/linux-6.15/drivers/scsi/lpfc/
H A Dlpfc_init.c2817 if (mp2) in lpfc_sli3_post_buffer()
2819 &mp2->phys); in lpfc_sli3_post_buffer()
2820 if (!mp2 || !mp2->virt) { in lpfc_sli3_post_buffer()
2821 kfree(mp2); in lpfc_sli3_post_buffer()
2829 INIT_LIST_HEAD(&mp2->list); in lpfc_sli3_post_buffer()
2831 mp2 = NULL; in lpfc_sli3_post_buffer()
2839 if (mp2) { in lpfc_sli3_post_buffer()
2855 if (mp2) { in lpfc_sli3_post_buffer()
2856 lpfc_mbuf_free(phba, mp2->virt, mp2->phys); in lpfc_sli3_post_buffer()
2857 kfree(mp2); in lpfc_sli3_post_buffer()
[all …]
/linux-6.15/
H A DMAINTAINERS1132 F: drivers/i2c/busses/i2c-amd-mp2*