Lines Matching refs:metro_priv

110 	struct metrousb_private *metro_priv = usb_get_serial_port_data(port);  in metrousb_read_int_callback()  local
148 spin_lock_irqsave(&metro_priv->lock, flags); in metrousb_read_int_callback()
149 throttled = metro_priv->throttled; in metrousb_read_int_callback()
150 spin_unlock_irqrestore(&metro_priv->lock, flags); in metrousb_read_int_callback()
173 struct metrousb_private *metro_priv = usb_get_serial_port_data(port); in metrousb_open() local
178 spin_lock_irqsave(&metro_priv->lock, flags); in metrousb_open()
179 metro_priv->control_state = 0; in metrousb_open()
180 metro_priv->throttled = 0; in metrousb_open()
181 spin_unlock_irqrestore(&metro_priv->lock, flags); in metrousb_open()
246 struct metrousb_private *metro_priv; in metrousb_port_probe() local
248 metro_priv = kzalloc(sizeof(*metro_priv), GFP_KERNEL); in metrousb_port_probe()
249 if (!metro_priv) in metrousb_port_probe()
252 spin_lock_init(&metro_priv->lock); in metrousb_port_probe()
254 usb_set_serial_port_data(port, metro_priv); in metrousb_port_probe()
261 struct metrousb_private *metro_priv; in metrousb_port_remove() local
263 metro_priv = usb_get_serial_port_data(port); in metrousb_port_remove()
264 kfree(metro_priv); in metrousb_port_remove()
270 struct metrousb_private *metro_priv = usb_get_serial_port_data(port); in metrousb_throttle() local
274 spin_lock_irqsave(&metro_priv->lock, flags); in metrousb_throttle()
275 metro_priv->throttled = 1; in metrousb_throttle()
276 spin_unlock_irqrestore(&metro_priv->lock, flags); in metrousb_throttle()
283 struct metrousb_private *metro_priv = usb_get_serial_port_data(port); in metrousb_tiocmget() local
286 spin_lock_irqsave(&metro_priv->lock, flags); in metrousb_tiocmget()
287 control_state = metro_priv->control_state; in metrousb_tiocmget()
288 spin_unlock_irqrestore(&metro_priv->lock, flags); in metrousb_tiocmget()
298 struct metrousb_private *metro_priv = usb_get_serial_port_data(port); in metrousb_tiocmset() local
304 spin_lock_irqsave(&metro_priv->lock, flags); in metrousb_tiocmset()
305 control_state = metro_priv->control_state; in metrousb_tiocmset()
317 metro_priv->control_state = control_state; in metrousb_tiocmset()
318 spin_unlock_irqrestore(&metro_priv->lock, flags); in metrousb_tiocmset()
325 struct metrousb_private *metro_priv = usb_get_serial_port_data(port); in metrousb_unthrottle() local
330 spin_lock_irqsave(&metro_priv->lock, flags); in metrousb_unthrottle()
331 metro_priv->throttled = 0; in metrousb_unthrottle()
332 spin_unlock_irqrestore(&metro_priv->lock, flags); in metrousb_unthrottle()