Home
last modified time | relevance | path

Searched refs:ipc_devlink (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/drivers/net/wwan/iosm/
Diosm_ipc_flash.c60 static int ipc_flash_send_data(struct iosm_devlink *ipc_devlink, u32 size, in ipc_flash_send_data() argument
69 dev_err(ipc_devlink->dev, "EBL2 pack failed for pack_id:%d", in ipc_flash_send_data()
74 ret = ipc_imem_sys_devlink_write(ipc_devlink, (u8 *)&flash_req, in ipc_flash_send_data()
77 dev_err(ipc_devlink->dev, "EBL Header write failed for Id:%x", in ipc_flash_send_data()
82 ret = ipc_imem_sys_devlink_write(ipc_devlink, payload, payload_length); in ipc_flash_send_data()
84 dev_err(ipc_devlink->dev, "EBL Payload write failed for Id:%x", in ipc_flash_send_data()
104 ipc_imem->ipc_devlink->devlink_sio.channel = in ipc_flash_link_establish()
107 if (!ipc_imem->ipc_devlink->devlink_sio.channel) in ipc_flash_link_establish()
110 if (ipc_imem_sys_devlink_read(ipc_imem->ipc_devlink, ler_data, in ipc_flash_link_establish()
120 ipc_imem_sys_devlink_close(ipc_imem->ipc_devlink); in ipc_flash_link_establish()
[all …]
Diosm_ipc_devlink.c26 struct iosm_devlink *ipc_devlink = devlink_priv(dl); in ipc_devlink_get_param() local
29 ctx->val.vu8 = ipc_devlink->param.erase_full_flash; in ipc_devlink_get_param()
38 struct iosm_devlink *ipc_devlink = devlink_priv(dl); in ipc_devlink_set_param() local
41 ipc_devlink->param.erase_full_flash = ctx->val.vu8; in ipc_devlink_set_param()
81 struct iosm_devlink *ipc_devlink = devlink_priv(devlink); in ipc_devlink_flash_update() local
103 rc = ipc_flash_boot_psi(ipc_devlink, params->fw); in ipc_devlink_flash_update()
106 rc = ipc_flash_boot_ebl(ipc_devlink, params->fw); in ipc_devlink_flash_update()
109 rc = ipc_flash_boot_set_capabilities(ipc_devlink, mdm_rsp); in ipc_devlink_flash_update()
112 rc = ipc_flash_read_swid(ipc_devlink, mdm_rsp); in ipc_devlink_flash_update()
115 rc = ipc_flash_send_fls(ipc_devlink, params->fw, mdm_rsp); in ipc_devlink_flash_update()
[all …]
Diosm_ipc_flash.h214 int ipc_flash_boot_psi(struct iosm_devlink *ipc_devlink,
217 int ipc_flash_boot_ebl(struct iosm_devlink *ipc_devlink,
220 int ipc_flash_boot_set_capabilities(struct iosm_devlink *ipc_devlink,
225 int ipc_flash_read_swid(struct iosm_devlink *ipc_devlink, u8 *mdm_rsp);
227 int ipc_flash_send_fls(struct iosm_devlink *ipc_devlink,
Diosm_ipc_imem_ops.h113 void ipc_imem_sys_devlink_close(struct iosm_devlink *ipc_devlink);
122 void ipc_imem_sys_devlink_notify_rx(struct iosm_devlink *ipc_devlink,
134 int ipc_imem_sys_devlink_read(struct iosm_devlink *ipc_devlink, u8 *data,
144 int ipc_imem_sys_devlink_write(struct iosm_devlink *ipc_devlink,
Diosm_ipc_imem_ops.c367 ipc_imem->ipc_devlink->devlink_sio.channel_id = channel_id; in ipc_imem_sys_devlink_open()
387 channel_id = ipc_imem->ipc_devlink->devlink_sio.channel_id; in ipc_imem_sys_devlink_open()
400 void ipc_imem_sys_devlink_close(struct iosm_devlink *ipc_devlink) in ipc_imem_sys_devlink_close() argument
402 struct iosm_imem *ipc_imem = ipc_devlink->pcie->imem; in ipc_imem_sys_devlink_close()
409 channel = ipc_imem->ipc_devlink->devlink_sio.channel; in ipc_imem_sys_devlink_close()
465 void ipc_imem_sys_devlink_notify_rx(struct iosm_devlink *ipc_devlink, in ipc_imem_sys_devlink_notify_rx() argument
468 skb_queue_tail(&ipc_devlink->devlink_sio.rx_list, skb); in ipc_imem_sys_devlink_notify_rx()
469 complete(&ipc_devlink->devlink_sio.read_sem); in ipc_imem_sys_devlink_notify_rx()
571 int ipc_imem_sys_devlink_write(struct iosm_devlink *ipc_devlink, in ipc_imem_sys_devlink_write() argument
574 struct iosm_imem *ipc_imem = ipc_devlink->pcie->imem; in ipc_imem_sys_devlink_write()
[all …]
Diosm_ipc_devlink.h201 void ipc_devlink_deinit(struct iosm_devlink *ipc_devlink);
203 int ipc_devlink_send_cmd(struct iosm_devlink *ipc_devlink, u16 cmd, u32 entry);
Diosm_ipc_imem.c314 ipc_imem_sys_devlink_notify_rx(ipc_imem->ipc_devlink, in ipc_imem_dl_skb_process()
454 channel = ipc_imem->ipc_devlink->devlink_sio.channel; in ipc_imem_rom_irq_exec()
579 ipc_devlink_deinit(ipc_imem->ipc_devlink); in ipc_imem_run_state_worker()
776 complete(&ipc_imem->ipc_devlink->devlink_sio.channel->ul_sem); in ipc_imem_handle_irq()
1254 ipc_devlink_deinit(ipc_imem->ipc_devlink); in ipc_imem_cleanup()
1411 ipc_imem->ipc_devlink = ipc_devlink_init(ipc_imem); in ipc_imem_init()
1412 if (!ipc_imem->ipc_devlink) { in ipc_imem_init()
1424 ipc_devlink_deinit(ipc_imem->ipc_devlink); in ipc_imem_init()
1492 ipc_imem_sys_devlink_notify_rx(ipc_imem->ipc_devlink, skb); in ipc_imem_devlink_trigger_chip_info_cb()
Diosm_ipc_imem.h348 struct iosm_devlink *ipc_devlink; member