Lines Matching full:private
41 * Each adaptor is associated with a private structure, that holds the current
162 struct upd78f0730_port_private *private; in upd78f0730_port_probe() local
164 private = kzalloc(sizeof(*private), GFP_KERNEL); in upd78f0730_port_probe()
165 if (!private) in upd78f0730_port_probe()
168 mutex_init(&private->lock); in upd78f0730_port_probe()
169 usb_set_serial_port_data(port, private); in upd78f0730_port_probe()
176 struct upd78f0730_port_private *private; in upd78f0730_port_remove() local
178 private = usb_get_serial_port_data(port); in upd78f0730_port_remove()
179 mutex_destroy(&private->lock); in upd78f0730_port_remove()
180 kfree(private); in upd78f0730_port_remove()
185 struct upd78f0730_port_private *private; in upd78f0730_tiocmget() local
190 private = usb_get_serial_port_data(port); in upd78f0730_tiocmget()
192 mutex_lock(&private->lock); in upd78f0730_tiocmget()
193 signals = private->line_signals; in upd78f0730_tiocmget()
194 mutex_unlock(&private->lock); in upd78f0730_tiocmget()
208 struct upd78f0730_port_private *private; in upd78f0730_tiocmset() local
213 private = usb_get_serial_port_data(port); in upd78f0730_tiocmset()
215 mutex_lock(&private->lock); in upd78f0730_tiocmset()
217 private->line_signals |= UPD78F0730_DTR; in upd78f0730_tiocmset()
221 private->line_signals |= UPD78F0730_RTS; in upd78f0730_tiocmset()
225 private->line_signals &= ~UPD78F0730_DTR; in upd78f0730_tiocmset()
229 private->line_signals &= ~UPD78F0730_RTS; in upd78f0730_tiocmset()
233 request.params = private->line_signals; in upd78f0730_tiocmset()
236 mutex_unlock(&private->lock); in upd78f0730_tiocmset()
243 struct upd78f0730_port_private *private; in upd78f0730_break_ctl() local
249 private = usb_get_serial_port_data(port); in upd78f0730_break_ctl()
251 mutex_lock(&private->lock); in upd78f0730_break_ctl()
253 private->line_signals |= UPD78F0730_BREAK; in upd78f0730_break_ctl()
256 private->line_signals &= ~UPD78F0730_BREAK; in upd78f0730_break_ctl()
260 request.params = private->line_signals; in upd78f0730_break_ctl()
263 mutex_unlock(&private->lock); in upd78f0730_break_ctl()