Lines Matching +full:modem +full:- +full:init

1 // SPDX-License-Identifier: GPL-2.0+
3 * IPWireless 3G UMTS TDD Modem driver (USB connected)
6 * Copyright (C) 2004 Greg Kroah-Hartman <greg@kroah.com>
12 * It was written out of frustration with the IPWireless USB modem
19 * The modem adheres to the "3GPP TS 27.007 AT command set for 3G
21 * http://www.3gpp.org/ftp/Specs/html-info/27007.htm
23 * The code was only tested the IPWireless handheld modem distributed
45 #include "usb-wwan.h"
115 /* Interpretation of modem status lines */
134 struct usb_device *udev = port->serial->dev; in ipw_open()
135 struct device *dev = &port->dev; in ipw_open()
142 return -ENOMEM; in ipw_open()
144 /* --1: Tell the modem to initialize (we think) From sniffs this is in ipw_open()
145 * always the first thing that gets sent to the modem during in ipw_open()
157 dev_err(dev, "Init of modem failed (error = %d)\n", result); in ipw_open()
160 usb_clear_halt(udev, usb_rcvbulkpipe(udev, port->bulk_in_endpointAddress)); in ipw_open()
161 usb_clear_halt(udev, usb_sndbulkpipe(udev, port->bulk_out_endpointAddress)); in ipw_open()
163 /*--2: Start reading from the device */ in ipw_open()
167 /*--3: Tell the modem to open the floodgates on the rx bulk channel */ in ipw_open()
168 dev_dbg(dev, "%s:asking modem for RxRead (RXBULK_ON)\n", __func__); in ipw_open()
180 /*--4: setup the initial flowcontrol */ in ipw_open()
181 dev_dbg(dev, "%s:setting init flowcontrol (%s)\n", __func__, buf_flow_init); in ipw_open()
203 return -ENOMEM; in ipw_attach()
205 spin_lock_init(&data->susp_lock); in ipw_attach()
220 struct usb_device *udev = port->serial->dev; in ipw_dtr_rts()
221 struct device *dev = &port->dev; in ipw_dtr_rts()
251 struct usb_device *udev = port->serial->dev; in ipw_close()
252 struct device *dev = &port->dev; in ipw_close()
255 /*--3: purge */ in ipw_close()
269 /* send RXBULK_off (tell modem to stop transmitting bulk data on in ipw_close()