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);
583 struct hso_shared_int *shared_int, in get_serial_by_shared_int_and_type() argument
592 (dev2ser(serial_table[i])->shared_int == shared_int) && in get_serial_by_shared_int_and_type()
1838 struct hso_shared_int *shared_int = urb->context; in intr_callback() local
1848 if (!shared_int) in intr_callback()
1865 serial = get_serial_by_shared_int_and_type(shared_int, in intr_callback()
1890 hso_mux_submit_intr_urb(shared_int, urb->dev, GFP_ATOMIC); in intr_callback()
2173 mutex_lock(&serial->shared_int->shared_int_lock); in hso_start_serial_device()
2174 if (!serial->shared_int->use_count) { in hso_start_serial_device()
2176 hso_mux_submit_intr_urb(serial->shared_int, in hso_start_serial_device()
2179 serial->shared_int->use_count++; in hso_start_serial_device()
2180 mutex_unlock(&serial->shared_int->shared_int_lock); in hso_start_serial_device()
2209 if (serial->shared_int) { in hso_stop_serial_device()
2210 mutex_lock(&serial->shared_int->shared_int_lock); in hso_stop_serial_device()
2211 if (serial->shared_int->use_count && in hso_stop_serial_device()
2212 (--serial->shared_int->use_count == 0)) { in hso_stop_serial_device()
2215 urb = serial->shared_int->shared_intr_urb; in hso_stop_serial_device()
2219 mutex_unlock(&serial->shared_int->shared_int_lock); in hso_stop_serial_device()
2587 if (serial->shared_int) { in hso_free_serial_device()
2588 mutex_lock(&serial->shared_int->shared_int_lock); in hso_free_serial_device()
2589 if (--serial->shared_int->ref_count == 0) in hso_free_serial_device()
2590 hso_free_shared_int(serial->shared_int); in hso_free_serial_device()
2592 mutex_unlock(&serial->shared_int->shared_int_lock); in hso_free_serial_device()
2724 serial->shared_int = mux; in hso_create_mux_serial_device()
2725 mutex_lock(&serial->shared_int->shared_int_lock); in hso_create_mux_serial_device()
2726 serial->shared_int->ref_count++; in hso_create_mux_serial_device()
2727 mutex_unlock(&serial->shared_int->shared_int_lock); in hso_create_mux_serial_device()
2872 struct hso_shared_int *shared_int; in hso_probe() local
2921 shared_int = hso_create_shared_int(interface); in hso_probe()
2922 if (!shared_int) in hso_probe()
2928 interface, i, shared_int); in hso_probe()
3181 static int hso_mux_submit_intr_urb(struct hso_shared_int *shared_int, in hso_mux_submit_intr_urb() argument
3186 usb_fill_int_urb(shared_int->shared_intr_urb, usb, in hso_mux_submit_intr_urb()
3188 shared_int->intr_endp->bEndpointAddress & 0x7F), in hso_mux_submit_intr_urb()
3189 shared_int->shared_intr_buf, in hso_mux_submit_intr_urb()
3191 intr_callback, shared_int, in hso_mux_submit_intr_urb()
3192 shared_int->intr_endp->bInterval); in hso_mux_submit_intr_urb()
3194 result = usb_submit_urb(shared_int->shared_intr_urb, gfp); in hso_mux_submit_intr_urb()