Lines Matching refs:ipc_port
13 struct iosm_cdev *ipc_port = wwan_port_get_drvdata(port); in ipc_port_ctrl_start() local
16 ipc_port->channel = ipc_imem_sys_port_open(ipc_port->ipc_imem, in ipc_port_ctrl_start()
17 ipc_port->chl_id, in ipc_port_ctrl_start()
19 if (!ipc_port->channel) in ipc_port_ctrl_start()
28 struct iosm_cdev *ipc_port = wwan_port_get_drvdata(port); in ipc_port_ctrl_stop() local
30 ipc_imem_sys_port_close(ipc_port->ipc_imem, ipc_port->channel); in ipc_port_ctrl_stop()
36 struct iosm_cdev *ipc_port = wwan_port_get_drvdata(port); in ipc_port_ctrl_tx() local
38 return ipc_imem_sys_cdev_write(ipc_port, skb); in ipc_port_ctrl_tx()
51 struct iosm_cdev *ipc_port = kzalloc(sizeof(*ipc_port), GFP_KERNEL); in ipc_port_init() local
55 if (!ipc_port) in ipc_port_init()
58 ipc_port->dev = ipc_imem->dev; in ipc_port_init()
59 ipc_port->pcie = ipc_imem->pcie; in ipc_port_init()
61 ipc_port->port_type = port_type; in ipc_port_init()
62 ipc_port->chl_id = chl_id; in ipc_port_init()
63 ipc_port->ipc_imem = ipc_imem; in ipc_port_init()
65 ipc_port->iosm_port = wwan_create_port(ipc_port->dev, port_type, in ipc_port_init()
66 &ipc_wwan_ctrl_ops, ipc_port); in ipc_port_init()
68 return ipc_port; in ipc_port_init()
74 struct iosm_cdev *ipc_port; in ipc_port_deinit() local
80 ipc_port = port[ctrl_chl_nr]; in ipc_port_deinit()
81 wwan_remove_port(ipc_port->iosm_port); in ipc_port_deinit()
82 kfree(ipc_port); in ipc_port_deinit()