Lines Matching +full:tx +full:- +full:device
1 /* SPDX-License-Identifier: GPL-2.0-only */
12 * enum wwan_port_type - WWAN port types
41 WWAN_PORT_MAX = __WWAN_PORT_MAX - 1,
45 struct device;
51 /** struct wwan_port_ops - The WWAN port operations
52 * @start: The routine for starting the WWAN port device.
53 * @stop: The routine for stopping the WWAN port device.
54 * @tx: Non-blocking routine that sends WWAN port protocol data to the device.
56 * to the device.
57 * @tx_poll: Optional routine that sets additional TX poll flags.
59 * The wwan_port_ops structure contains a list of low-level operations
60 * that control a WWAN port device. All functions are mandatory unless specified.
65 int (*tx)(struct wwan_port *port, struct sk_buff *skb); member
73 /** struct wwan_port_caps - The WWAN port capbilities
74 * @frag_len: WWAN port TX fragments length
75 * @headroom_len: WWAN port TX fragments reserved headroom length
83 * wwan_create_port - Add a new WWAN port
84 * @parent: Device to use as parent and shared by all WWAN ports
91 * to user as a character device and attached to the right virtual WWAN device,
92 * based on the parent pointer. The parent pointer is the device shared by all
95 * drvdata will be placed in the WWAN port device driver data and can be
102 struct wwan_port *wwan_create_port(struct device *parent,
109 * wwan_remove_port - Remove a WWAN port
117 * wwan_port_rx - Receive data from the WWAN port
126 * wwan_port_txoff - Stop TX on WWAN port
127 * @port: WWAN port for which TX must be stopped
129 * Used for TX flow control, a port driver calls this function to indicate TX
136 * wwan_port_txon - Restart TX on WWAN port
137 * @port: WWAN port for which TX must be restarted
139 * Used for TX flow control, a port driver calls this function to indicate TX
145 * wwan_port_get_drvdata - Retrieve driver data from a WWAN port
151 * struct wwan_netdev_priv - WWAN core network device private data
152 * @link_id: WWAN device data link id
164 return ((struct wwan_netdev_priv *)netdev_priv(dev))->drv_priv; in wwan_netdev_drvpriv()
174 * struct wwan_ops - WWAN device ops
189 int wwan_register_ops(struct device *parent, const struct wwan_ops *ops,
192 void wwan_unregister_ops(struct device *parent);
195 struct dentry *wwan_get_debugfs_dir(struct device *parent);
198 static inline struct dentry *wwan_get_debugfs_dir(struct device *parent) in wwan_get_debugfs_dir()
200 return ERR_PTR(-ENODEV); in wwan_get_debugfs_dir()