Lines Matching full:private
41 * Each adaptor is associated with a private structure, that holds the current
165 struct upd78f0730_port_private *private; in upd78f0730_port_probe() local
167 private = kzalloc(sizeof(*private), GFP_KERNEL); in upd78f0730_port_probe()
168 if (!private) in upd78f0730_port_probe()
171 mutex_init(&private->lock); in upd78f0730_port_probe()
172 usb_set_serial_port_data(port, private); in upd78f0730_port_probe()
179 struct upd78f0730_port_private *private; in upd78f0730_port_remove() local
181 private = usb_get_serial_port_data(port); in upd78f0730_port_remove()
182 mutex_destroy(&private->lock); in upd78f0730_port_remove()
183 kfree(private); in upd78f0730_port_remove()
191 struct upd78f0730_port_private *private; in upd78f0730_tiocmget() local
196 private = usb_get_serial_port_data(port); in upd78f0730_tiocmget()
198 mutex_lock(&private->lock); in upd78f0730_tiocmget()
199 signals = private->line_signals; in upd78f0730_tiocmget()
200 mutex_unlock(&private->lock); in upd78f0730_tiocmget()
215 struct upd78f0730_port_private *private; in upd78f0730_tiocmset() local
219 private = usb_get_serial_port_data(port); in upd78f0730_tiocmset()
221 mutex_lock(&private->lock); in upd78f0730_tiocmset()
223 private->line_signals |= UPD78F0730_DTR; in upd78f0730_tiocmset()
227 private->line_signals |= UPD78F0730_RTS; in upd78f0730_tiocmset()
231 private->line_signals &= ~UPD78F0730_DTR; in upd78f0730_tiocmset()
235 private->line_signals &= ~UPD78F0730_RTS; in upd78f0730_tiocmset()
239 request.params = private->line_signals; in upd78f0730_tiocmset()
242 mutex_unlock(&private->lock); in upd78f0730_tiocmset()
250 struct upd78f0730_port_private *private; in upd78f0730_break_ctl() local
254 private = usb_get_serial_port_data(port); in upd78f0730_break_ctl()
256 mutex_lock(&private->lock); in upd78f0730_break_ctl()
258 private->line_signals |= UPD78F0730_BREAK; in upd78f0730_break_ctl()
261 private->line_signals &= ~UPD78F0730_BREAK; in upd78f0730_break_ctl()
265 request.params = private->line_signals; in upd78f0730_break_ctl()
268 mutex_unlock(&private->lock); in upd78f0730_break_ctl()