Searched refs:metro_priv (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/usb/serial/
H A Dmetro-usb.c96 struct metrousb_private *metro_priv = usb_get_serial_port_data(port); metrousb_read_int_callback() local
134 spin_lock_irqsave(&metro_priv->lock, flags); metrousb_read_int_callback()
135 throttled = metro_priv->throttled; metrousb_read_int_callback()
136 spin_unlock_irqrestore(&metro_priv->lock, flags); metrousb_read_int_callback()
185 struct metrousb_private *metro_priv = usb_get_serial_port_data(port); metrousb_open() local
199 spin_lock_irqsave(&metro_priv->lock, flags); metrousb_open()
200 metro_priv->control_state = 0; metrousb_open()
201 metro_priv->throttled = 0; metrousb_open()
202 spin_unlock_irqrestore(&metro_priv->lock, flags); metrousb_open()
264 struct metrousb_private *metro_priv; metrousb_port_probe() local
266 metro_priv = kzalloc(sizeof(*metro_priv), GFP_KERNEL); metrousb_port_probe()
267 if (!metro_priv) metrousb_port_probe()
270 spin_lock_init(&metro_priv->lock); metrousb_port_probe()
272 usb_set_serial_port_data(port, metro_priv); metrousb_port_probe()
279 struct metrousb_private *metro_priv; metrousb_port_remove() local
281 metro_priv = usb_get_serial_port_data(port); metrousb_port_remove()
282 kfree(metro_priv); metrousb_port_remove()
290 struct metrousb_private *metro_priv = usb_get_serial_port_data(port); metrousb_throttle() local
296 spin_lock_irqsave(&metro_priv->lock, flags); metrousb_throttle()
297 metro_priv->throttled = 1; metrousb_throttle()
298 spin_unlock_irqrestore(&metro_priv->lock, flags); metrousb_throttle()
305 struct metrousb_private *metro_priv = usb_get_serial_port_data(port); metrousb_tiocmget() local
310 spin_lock_irqsave(&metro_priv->lock, flags); metrousb_tiocmget()
311 control_state = metro_priv->control_state; metrousb_tiocmget()
312 spin_unlock_irqrestore(&metro_priv->lock, flags); metrousb_tiocmget()
322 struct metrousb_private *metro_priv = usb_get_serial_port_data(port); metrousb_tiocmset() local
328 spin_lock_irqsave(&metro_priv->lock, flags); metrousb_tiocmset()
329 control_state = metro_priv->control_state; metrousb_tiocmset()
341 metro_priv->control_state = control_state; metrousb_tiocmset()
342 spin_unlock_irqrestore(&metro_priv->lock, flags); metrousb_tiocmset()
349 struct metrousb_private *metro_priv = usb_get_serial_port_data(port); metrousb_unthrottle() local
356 spin_lock_irqsave(&metro_priv->lock, flags); metrousb_unthrottle()
357 metro_priv->throttled = 0; metrousb_unthrottle()
358 spin_unlock_irqrestore(&metro_priv->lock, flags); metrousb_unthrottle()

Completed in 96 milliseconds