Exemplo n.º 1
0
static void vl600_unbind(struct usbnet *dev, struct usb_interface *intf)
{
	struct vl600_state *s = dev->driver_priv;

	if (s->current_rx_buf)
		dev_kfree_skb(s->current_rx_buf);

	kfree(s);

	return usbnet_cdc_unbind(dev, intf);
}
static void rndis_unbind(struct usbnet *dev, struct usb_interface *intf)
{
	struct rndis_halt	*halt;

	/* try to clear any rndis state/activity (no i/o from stack!) */
	halt = kzalloc(sizeof *halt, GFP_KERNEL);
	if (halt) {
		halt->msg_type = RNDIS_MSG_HALT;
		halt->msg_len = ccpu2(sizeof *halt);
		(void) rndis_command(dev, (void *)halt);
		kfree(halt);
	}

	return usbnet_cdc_unbind(dev, intf);
}
Exemplo n.º 3
0
void rndis_unbind(struct usbnet *dev, struct usb_interface *intf)
{
    struct rndis_halt	*halt;

    /* try to clear any rndis state/activity (no i/o from stack!) */
    halt = kzalloc(CONTROL_BUFFER_SIZE, GFP_KERNEL);
    if (halt) {
        halt->msg_type = cpu_to_le32(RNDIS_MSG_HALT);
        halt->msg_len = cpu_to_le32(sizeof *halt);
        (void) rndis_command(dev, (void *)halt, CONTROL_BUFFER_SIZE);
        kfree(halt);
    }

    usbnet_cdc_unbind(dev, intf);
}
Exemplo n.º 4
0
void rndis_unbind(struct usbnet *dev, struct usb_interface *intf)
{
	struct rndis_halt	*halt;

	
	halt = kzalloc(CONTROL_BUFFER_SIZE, GFP_KERNEL);
	if (halt) {
		halt->msg_type = RNDIS_MSG_HALT;
		halt->msg_len = cpu_to_le32(sizeof *halt);
		(void) rndis_command(dev, (void *)halt, CONTROL_BUFFER_SIZE);
		kfree(halt);
	}

	usbnet_cdc_unbind(dev, intf);
}
/* Motorola Wrigley LTE CDC Ethernet Device */
static void wrigley_cdc_unbind(struct usbnet *dev, struct usb_interface *intf)
{
	oob_wake_unregister(intf);
	usb_disable_autosuspend(interface_to_usbdev(intf));
	usbnet_cdc_unbind(dev, intf);
}