Lines Matching +full:tx +full:- +full:device

1 /* SPDX-License-Identifier: GPL-2.0-only */
12 * enum wwan_port_type - WWAN port types
37 WWAN_PORT_MAX = __WWAN_PORT_MAX - 1,
41 struct device;
47 /** struct wwan_port_ops - The WWAN port operations
48 * @start: The routine for starting the WWAN port device.
49 * @stop: The routine for stopping the WWAN port device.
50 * @tx: Non-blocking routine that sends WWAN port protocol data to the device.
52 * to the device.
53 * @tx_poll: Optional routine that sets additional TX poll flags.
55 * The wwan_port_ops structure contains a list of low-level operations
56 * that control a WWAN port device. All functions are mandatory unless specified.
61 int (*tx)(struct wwan_port *port, struct sk_buff *skb); member
69 /** struct wwan_port_caps - The WWAN port capbilities
70 * @frag_len: WWAN port TX fragments length
71 * @headroom_len: WWAN port TX fragments reserved headroom length
79 * wwan_create_port - Add a new WWAN port
80 * @parent: Device to use as parent and shared by all WWAN ports
87 * to user as a character device and attached to the right virtual WWAN device,
88 * based on the parent pointer. The parent pointer is the device shared by all
91 * drvdata will be placed in the WWAN port device driver data and can be
98 struct wwan_port *wwan_create_port(struct device *parent,
105 * wwan_remove_port - Remove a WWAN port
113 * wwan_port_rx - Receive data from the WWAN port
122 * wwan_port_txoff - Stop TX on WWAN port
123 * @port: WWAN port for which TX must be stopped
125 * Used for TX flow control, a port driver calls this function to indicate TX
132 * wwan_port_txon - Restart TX on WWAN port
133 * @port: WWAN port for which TX must be restarted
135 * Used for TX flow control, a port driver calls this function to indicate TX
141 * wwan_port_get_drvdata - Retrieve driver data from a WWAN port
147 * struct wwan_netdev_priv - WWAN core network device private data
148 * @link_id: WWAN device data link id
160 return ((struct wwan_netdev_priv *)netdev_priv(dev))->drv_priv; in wwan_netdev_drvpriv()
170 * struct wwan_ops - WWAN device ops
185 int wwan_register_ops(struct device *parent, const struct wwan_ops *ops,
188 void wwan_unregister_ops(struct device *parent);
191 struct dentry *wwan_get_debugfs_dir(struct device *parent);
194 static inline struct dentry *wwan_get_debugfs_dir(struct device *parent) in wwan_get_debugfs_dir()
196 return ERR_PTR(-ENODEV); in wwan_get_debugfs_dir()