Lines Matching refs:shared_int

200 	struct hso_shared_int *shared_int;  member
308 static void hso_free_shared_int(struct hso_shared_int *shared_int);
582 struct hso_shared_int *shared_int, in get_serial_by_shared_int_and_type() argument
591 (dev2ser(serial_table[i])->shared_int == shared_int) && in get_serial_by_shared_int_and_type()
1836 struct hso_shared_int *shared_int = urb->context; in intr_callback() local
1846 if (!shared_int) in intr_callback()
1863 serial = get_serial_by_shared_int_and_type(shared_int, in intr_callback()
1888 hso_mux_submit_intr_urb(shared_int, urb->dev, GFP_ATOMIC); in intr_callback()
2171 mutex_lock(&serial->shared_int->shared_int_lock); in hso_start_serial_device()
2172 if (!serial->shared_int->use_count) { in hso_start_serial_device()
2174 hso_mux_submit_intr_urb(serial->shared_int, in hso_start_serial_device()
2177 serial->shared_int->use_count++; in hso_start_serial_device()
2178 mutex_unlock(&serial->shared_int->shared_int_lock); in hso_start_serial_device()
2207 if (serial->shared_int) { in hso_stop_serial_device()
2208 mutex_lock(&serial->shared_int->shared_int_lock); in hso_stop_serial_device()
2209 if (serial->shared_int->use_count && in hso_stop_serial_device()
2210 (--serial->shared_int->use_count == 0)) { in hso_stop_serial_device()
2213 urb = serial->shared_int->shared_intr_urb; in hso_stop_serial_device()
2217 mutex_unlock(&serial->shared_int->shared_int_lock); in hso_stop_serial_device()
2602 if (serial->shared_int) { in hso_free_serial_device()
2603 mutex_lock(&serial->shared_int->shared_int_lock); in hso_free_serial_device()
2604 if (--serial->shared_int->ref_count == 0) in hso_free_serial_device()
2605 hso_free_shared_int(serial->shared_int); in hso_free_serial_device()
2607 mutex_unlock(&serial->shared_int->shared_int_lock); in hso_free_serial_device()
2735 serial->shared_int = mux; in hso_create_mux_serial_device()
2736 mutex_lock(&serial->shared_int->shared_int_lock); in hso_create_mux_serial_device()
2737 serial->shared_int->ref_count++; in hso_create_mux_serial_device()
2738 mutex_unlock(&serial->shared_int->shared_int_lock); in hso_create_mux_serial_device()
2878 struct hso_shared_int *shared_int; in hso_probe() local
2927 shared_int = hso_create_shared_int(interface); in hso_probe()
2928 if (!shared_int) in hso_probe()
2934 interface, i, shared_int); in hso_probe()
3186 static int hso_mux_submit_intr_urb(struct hso_shared_int *shared_int, in hso_mux_submit_intr_urb() argument
3191 usb_fill_int_urb(shared_int->shared_intr_urb, usb, in hso_mux_submit_intr_urb()
3193 shared_int->intr_endp->bEndpointAddress & 0x7F), in hso_mux_submit_intr_urb()
3194 shared_int->shared_intr_buf, in hso_mux_submit_intr_urb()
3196 intr_callback, shared_int, in hso_mux_submit_intr_urb()
3197 shared_int->intr_endp->bInterval); in hso_mux_submit_intr_urb()
3199 result = usb_submit_urb(shared_int->shared_intr_urb, gfp); in hso_mux_submit_intr_urb()