Searched refs:i2c_common (Results 1 – 3 of 3) sorted by relevance
98 i2c_common->msg->buf, in amd_mp2_rw()99 i2c_common->msg->len); in amd_mp2_rw()190 i2c_common->bus_id); in amd_mp2_process_event()213 if (!i2c_common) in amd_mp2_irq_isr()223 i2c_common->cmd_completion(i2c_common); in amd_mp2_irq_isr()253 if (i2c_common->bus_id > 1) in amd_mp2_register_cb()261 privdata->busses[i2c_common->bus_id] = i2c_common; in amd_mp2_register_cb()396 if (i2c_common) in amd_mp2_pci_suspend()397 i2c_common->suspend(i2c_common); in amd_mp2_pci_suspend()427 if (i2c_common) { in amd_mp2_pci_resume()[all …]
49 i2c_common->dma_buf = i2c_get_dma_safe_msg_buf(i2c_common->msg, 0); in i2c_amd_dma_map()50 i2c_common->dma_addr = dma_map_single(dev_pci, i2c_common->dma_buf, in i2c_amd_dma_map()51 i2c_common->msg->len, in i2c_amd_dma_map()57 i2c_common->dma_buf); in i2c_amd_dma_map()74 i2c_put_dma_safe_msg_buf(i2c_common->dma_buf, i2c_common->msg, true); in i2c_amd_dma_unmap()92 i2c_common->msg->buf); in i2c_amd_cmd_completion()107 i2c_common->msg->len > 32) in i2c_amd_check_cmd_completion()108 i2c_amd_dma_unmap(i2c_common); in i2c_amd_check_cmd_completion()117 if (!i2c_common->cmd_success) in i2c_amd_check_cmd_completion()138 i2c_common->msg = pmsg; in i2c_amd_xfer_msg()[all …]
156 void (*cmd_completion)(struct amd_i2c_common *i2c_common);164 int (*suspend)(struct amd_i2c_common *i2c_common);165 int (*resume)(struct amd_i2c_common *i2c_common);191 int amd_mp2_rw(struct amd_i2c_common *i2c_common, enum i2c_cmd reqcmd);192 int amd_mp2_bus_enable_set(struct amd_i2c_common *i2c_common, bool enable);194 void amd_mp2_process_event(struct amd_i2c_common *i2c_common);196 void amd_mp2_rw_timeout(struct amd_i2c_common *i2c_common);198 int amd_mp2_register_cb(struct amd_i2c_common *i2c_common);199 int amd_mp2_unregister_cb(struct amd_i2c_common *i2c_common);