acm 7752 drivers/net/wireless/ath/ath10k/wmi.c params->acm = __cpu_to_le32(arg->acm); acm 4286 drivers/net/wireless/ath/ath10k/wmi.h __le32 acm; acm 4302 drivers/net/wireless/ath/ath10k/wmi.h u32 acm; acm 1591 drivers/net/wireless/ath/wcn36xx/hal.h u8 acm:1; acm 1595 drivers/net/wireless/ath/wcn36xx/hal.h u8 acm:1; acm 208 drivers/net/wireless/intel/iwlwifi/mvm/power.c if (!tid_found && !mvmvif->queue_params[ac].acm) { acm 5562 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c __func__, queue, val32, param->acm, acm_ctrl); acm 5586 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (param->acm) acm 521 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c u8 acm = p_aci_aifsn->f.acm; acm 527 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c if (acm) { acm 541 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c acm); acm 311 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c u8 acm = p_aci_aifsn->f.acm; acm 317 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c if (acm) { acm 331 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c acm); acm 305 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c u8 acm = p_aci_aifsn->f.acm; acm 309 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c if (acm) { acm 323 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c acm); acm 514 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c u8 acm = aifs->f.acm; acm 519 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c if (acm) { acm 533 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c acm); acm 238 drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c u8 acm = p_aci_aifsn->f.acm; acm 244 drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c if (acm) { acm 258 drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c acm); acm 313 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c u8 acm = p_aci_aifsn->f.acm; acm 319 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c if (acm) { acm 333 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c acm); acm 556 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c u8 acm = p_aci_aifsn->f.acm; acm 562 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c if (acm) { acm 576 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c acm); acm 617 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c u8 acm = p_aci_aifsn->f.acm; acm 623 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c if (acm) { acm 637 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c acm); acm 859 drivers/net/wireless/realtek/rtlwifi/wifi.h u8 acm:1; acm 226 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c u8 acm = pAciAifsn->f.acm; acm 233 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c if (acm) { acm 169 drivers/staging/rtl8192e/rtl819x_Qos.h u8 acm:1; acm 1636 drivers/staging/rtl8192e/rtllib_rx.c u8 acm; acm 1643 drivers/staging/rtl8192e/rtllib_rx.c acm = (ac_params->aci_aifsn & 0x10) >> 4; acm 1650 drivers/staging/rtl8192e/rtllib_rx.c if (acm) acm 1655 drivers/staging/rtl8192e/rtllib_rx.c if (acm) acm 1660 drivers/staging/rtl8192e/rtllib_rx.c if (acm) acm 1666 drivers/staging/rtl8192e/rtllib_rx.c if (acm) acm 12 drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h u8 acm:1; acm 2206 drivers/staging/rtl8192u/r8192U_dm.c if (pAciAifsn->acm) { /* acm bit is 1. */ acm 64 drivers/usb/class/cdc-acm.c static struct acm *acm_get_by_minor(unsigned int minor) acm 66 drivers/usb/class/cdc-acm.c struct acm *acm; acm 69 drivers/usb/class/cdc-acm.c acm = idr_find(&acm_minors, minor); acm 70 drivers/usb/class/cdc-acm.c if (acm) { acm 71 drivers/usb/class/cdc-acm.c mutex_lock(&acm->mutex); acm 72 drivers/usb/class/cdc-acm.c if (acm->disconnected) { acm 73 drivers/usb/class/cdc-acm.c mutex_unlock(&acm->mutex); acm 74 drivers/usb/class/cdc-acm.c acm = NULL; acm 76 drivers/usb/class/cdc-acm.c tty_port_get(&acm->port); acm 77 drivers/usb/class/cdc-acm.c mutex_unlock(&acm->mutex); acm 81 drivers/usb/class/cdc-acm.c return acm; acm 87 drivers/usb/class/cdc-acm.c static int acm_alloc_minor(struct acm *acm) acm 92 drivers/usb/class/cdc-acm.c minor = idr_alloc(&acm_minors, acm, 0, ACM_TTY_MINORS, GFP_KERNEL); acm 99 drivers/usb/class/cdc-acm.c static void acm_release_minor(struct acm *acm) acm 102 drivers/usb/class/cdc-acm.c idr_remove(&acm_minors, acm->minor); acm 110 drivers/usb/class/cdc-acm.c static int acm_ctrl_msg(struct acm *acm, int request, int value, acm 115 drivers/usb/class/cdc-acm.c retval = usb_autopm_get_interface(acm->control); acm 119 drivers/usb/class/cdc-acm.c retval = usb_control_msg(acm->dev, usb_sndctrlpipe(acm->dev, 0), acm 121 drivers/usb/class/cdc-acm.c acm->control->altsetting[0].desc.bInterfaceNumber, acm 124 drivers/usb/class/cdc-acm.c dev_dbg(&acm->control->dev, acm 128 drivers/usb/class/cdc-acm.c usb_autopm_put_interface(acm->control); acm 136 drivers/usb/class/cdc-acm.c static inline int acm_set_control(struct acm *acm, int control) acm 138 drivers/usb/class/cdc-acm.c if (acm->quirks & QUIRK_CONTROL_LINE_STATE) acm 141 drivers/usb/class/cdc-acm.c return acm_ctrl_msg(acm, USB_CDC_REQ_SET_CONTROL_LINE_STATE, acm 145 drivers/usb/class/cdc-acm.c #define acm_set_line(acm, line) \ acm 146 drivers/usb/class/cdc-acm.c acm_ctrl_msg(acm, USB_CDC_REQ_SET_LINE_CODING, 0, line, sizeof *(line)) acm 147 drivers/usb/class/cdc-acm.c #define acm_send_break(acm, ms) \ acm 148 drivers/usb/class/cdc-acm.c acm_ctrl_msg(acm, USB_CDC_REQ_SEND_BREAK, ms, NULL, 0) acm 150 drivers/usb/class/cdc-acm.c static void acm_kill_urbs(struct acm *acm) acm 154 drivers/usb/class/cdc-acm.c usb_kill_urb(acm->ctrlurb); acm 156 drivers/usb/class/cdc-acm.c usb_kill_urb(acm->wb[i].urb); acm 157 drivers/usb/class/cdc-acm.c for (i = 0; i < acm->rx_buflimit; i++) acm 158 drivers/usb/class/cdc-acm.c usb_kill_urb(acm->read_urbs[i]); acm 166 drivers/usb/class/cdc-acm.c static int acm_wb_alloc(struct acm *acm) acm 174 drivers/usb/class/cdc-acm.c wb = &acm->wb[wbn]; acm 186 drivers/usb/class/cdc-acm.c static int acm_wb_is_avail(struct acm *acm) acm 192 drivers/usb/class/cdc-acm.c spin_lock_irqsave(&acm->write_lock, flags); acm 194 drivers/usb/class/cdc-acm.c n -= acm->wb[i].use; acm 195 drivers/usb/class/cdc-acm.c spin_unlock_irqrestore(&acm->write_lock, flags); acm 202 drivers/usb/class/cdc-acm.c static void acm_write_done(struct acm *acm, struct acm_wb *wb) acm 205 drivers/usb/class/cdc-acm.c acm->transmitting--; acm 206 drivers/usb/class/cdc-acm.c usb_autopm_put_interface_async(acm->control); acm 215 drivers/usb/class/cdc-acm.c static int acm_start_wb(struct acm *acm, struct acm_wb *wb) acm 219 drivers/usb/class/cdc-acm.c acm->transmitting++; acm 224 drivers/usb/class/cdc-acm.c wb->urb->dev = acm->dev; acm 228 drivers/usb/class/cdc-acm.c dev_err(&acm->data->dev, acm 231 drivers/usb/class/cdc-acm.c acm_write_done(acm, wb); acm 243 drivers/usb/class/cdc-acm.c struct acm *acm = usb_get_intfdata(intf); acm 245 drivers/usb/class/cdc-acm.c return sprintf(buf, "%d", acm->ctrl_caps); acm 253 drivers/usb/class/cdc-acm.c struct acm *acm = usb_get_intfdata(intf); acm 255 drivers/usb/class/cdc-acm.c memcpy(buf, acm->country_codes, acm->country_code_size); acm 256 drivers/usb/class/cdc-acm.c return acm->country_code_size; acm 265 drivers/usb/class/cdc-acm.c struct acm *acm = usb_get_intfdata(intf); acm 267 drivers/usb/class/cdc-acm.c return sprintf(buf, "%d", acm->country_rel_date); acm 275 drivers/usb/class/cdc-acm.c static void acm_process_notification(struct acm *acm, unsigned char *buf) acm 285 drivers/usb/class/cdc-acm.c dev_dbg(&acm->control->dev, acm 291 drivers/usb/class/cdc-acm.c dev_dbg(&acm->control->dev, acm 297 drivers/usb/class/cdc-acm.c dev_dbg(&acm->control->dev, acm 300 drivers/usb/class/cdc-acm.c if (!acm->clocal && (acm->ctrlin & ~newctrl & ACM_CTRL_DCD)) { acm 301 drivers/usb/class/cdc-acm.c dev_dbg(&acm->control->dev, acm 303 drivers/usb/class/cdc-acm.c tty_port_tty_hangup(&acm->port, false); acm 306 drivers/usb/class/cdc-acm.c difference = acm->ctrlin ^ newctrl; acm 307 drivers/usb/class/cdc-acm.c spin_lock_irqsave(&acm->read_lock, flags); acm 308 drivers/usb/class/cdc-acm.c acm->ctrlin = newctrl; acm 309 drivers/usb/class/cdc-acm.c acm->oldcount = acm->iocount; acm 312 drivers/usb/class/cdc-acm.c acm->iocount.dsr++; acm 314 drivers/usb/class/cdc-acm.c acm->iocount.dcd++; acm 316 drivers/usb/class/cdc-acm.c acm->iocount.brk++; acm 318 drivers/usb/class/cdc-acm.c acm->iocount.rng++; acm 320 drivers/usb/class/cdc-acm.c acm->iocount.frame++; acm 322 drivers/usb/class/cdc-acm.c acm->iocount.parity++; acm 324 drivers/usb/class/cdc-acm.c acm->iocount.overrun++; acm 325 drivers/usb/class/cdc-acm.c spin_unlock_irqrestore(&acm->read_lock, flags); acm 328 drivers/usb/class/cdc-acm.c wake_up_all(&acm->wioctl); acm 333 drivers/usb/class/cdc-acm.c dev_dbg(&acm->control->dev, acm 343 drivers/usb/class/cdc-acm.c struct acm *acm = urb->context; acm 358 drivers/usb/class/cdc-acm.c dev_dbg(&acm->control->dev, acm 363 drivers/usb/class/cdc-acm.c dev_dbg(&acm->control->dev, acm 369 drivers/usb/class/cdc-acm.c usb_mark_last_busy(acm->dev); acm 371 drivers/usb/class/cdc-acm.c if (acm->nb_index) acm 372 drivers/usb/class/cdc-acm.c dr = (struct usb_cdc_notification *)acm->notification_buffer; acm 380 drivers/usb/class/cdc-acm.c if (acm->nb_size < expected_size) { acm 381 drivers/usb/class/cdc-acm.c if (acm->nb_size) { acm 382 drivers/usb/class/cdc-acm.c kfree(acm->notification_buffer); acm 383 drivers/usb/class/cdc-acm.c acm->nb_size = 0; acm 391 drivers/usb/class/cdc-acm.c acm->notification_buffer = acm 393 drivers/usb/class/cdc-acm.c if (!acm->notification_buffer) acm 395 drivers/usb/class/cdc-acm.c acm->nb_size = alloc_size; acm 399 drivers/usb/class/cdc-acm.c expected_size - acm->nb_index); acm 401 drivers/usb/class/cdc-acm.c memcpy(&acm->notification_buffer[acm->nb_index], acm 403 drivers/usb/class/cdc-acm.c acm->nb_index += copy_size; acm 404 drivers/usb/class/cdc-acm.c current_size = acm->nb_index; acm 409 drivers/usb/class/cdc-acm.c acm_process_notification(acm, (unsigned char *)dr); acm 410 drivers/usb/class/cdc-acm.c acm->nb_index = 0; acm 416 drivers/usb/class/cdc-acm.c dev_err(&acm->control->dev, acm 419 drivers/usb/class/cdc-acm.c dev_vdbg(&acm->control->dev, acm 423 drivers/usb/class/cdc-acm.c static int acm_submit_read_urb(struct acm *acm, int index, gfp_t mem_flags) acm 427 drivers/usb/class/cdc-acm.c if (!test_and_clear_bit(index, &acm->read_urbs_free)) acm 430 drivers/usb/class/cdc-acm.c res = usb_submit_urb(acm->read_urbs[index], mem_flags); acm 433 drivers/usb/class/cdc-acm.c dev_err(&acm->data->dev, acm 437 drivers/usb/class/cdc-acm.c dev_vdbg(&acm->data->dev, "intended failure %d\n", res); acm 439 drivers/usb/class/cdc-acm.c set_bit(index, &acm->read_urbs_free); acm 442 drivers/usb/class/cdc-acm.c dev_vdbg(&acm->data->dev, "submitted urb %d\n", index); acm 448 drivers/usb/class/cdc-acm.c static int acm_submit_read_urbs(struct acm *acm, gfp_t mem_flags) acm 453 drivers/usb/class/cdc-acm.c for (i = 0; i < acm->rx_buflimit; ++i) { acm 454 drivers/usb/class/cdc-acm.c res = acm_submit_read_urb(acm, i, mem_flags); acm 462 drivers/usb/class/cdc-acm.c static void acm_process_read_urb(struct acm *acm, struct urb *urb) acm 467 drivers/usb/class/cdc-acm.c tty_insert_flip_string(&acm->port, urb->transfer_buffer, acm 469 drivers/usb/class/cdc-acm.c tty_flip_buffer_push(&acm->port); acm 475 drivers/usb/class/cdc-acm.c struct acm *acm = rb->instance; acm 481 drivers/usb/class/cdc-acm.c dev_vdbg(&acm->data->dev, "got urb %d, len %d, status %d\n", acm 484 drivers/usb/class/cdc-acm.c if (!acm->dev) { acm 485 drivers/usb/class/cdc-acm.c dev_dbg(&acm->data->dev, "%s - disconnected\n", __func__); acm 491 drivers/usb/class/cdc-acm.c usb_mark_last_busy(acm->dev); acm 492 drivers/usb/class/cdc-acm.c acm_process_read_urb(acm, urb); acm 495 drivers/usb/class/cdc-acm.c set_bit(EVENT_RX_STALL, &acm->flags); acm 501 drivers/usb/class/cdc-acm.c dev_dbg(&acm->data->dev, acm 508 drivers/usb/class/cdc-acm.c dev_dbg(&acm->data->dev, acm 510 drivers/usb/class/cdc-acm.c usb_mark_last_busy(acm->dev); acm 511 drivers/usb/class/cdc-acm.c set_bit(rb->index, &acm->urbs_in_error_delay); acm 515 drivers/usb/class/cdc-acm.c dev_dbg(&acm->data->dev, acm 527 drivers/usb/class/cdc-acm.c set_bit(rb->index, &acm->read_urbs_free); acm 537 drivers/usb/class/cdc-acm.c schedule_work(&acm->work); acm 539 drivers/usb/class/cdc-acm.c schedule_delayed_work(&acm->dwork, HZ / 2); acm 543 drivers/usb/class/cdc-acm.c if (test_bit(ACM_THROTTLED, &acm->flags)) acm 546 drivers/usb/class/cdc-acm.c acm_submit_read_urb(acm, rb->index, GFP_ATOMIC); acm 553 drivers/usb/class/cdc-acm.c struct acm *acm = wb->instance; acm 558 drivers/usb/class/cdc-acm.c dev_vdbg(&acm->data->dev, "wrote len %d/%d, status %d\n", acm 563 drivers/usb/class/cdc-acm.c spin_lock_irqsave(&acm->write_lock, flags); acm 564 drivers/usb/class/cdc-acm.c acm_write_done(acm, wb); acm 565 drivers/usb/class/cdc-acm.c spin_unlock_irqrestore(&acm->write_lock, flags); acm 566 drivers/usb/class/cdc-acm.c set_bit(EVENT_TTY_WAKEUP, &acm->flags); acm 567 drivers/usb/class/cdc-acm.c schedule_work(&acm->work); acm 573 drivers/usb/class/cdc-acm.c struct acm *acm = container_of(work, struct acm, work); acm 575 drivers/usb/class/cdc-acm.c if (test_bit(EVENT_RX_STALL, &acm->flags)) { acm 577 drivers/usb/class/cdc-acm.c if (!acm->susp_count) { acm 578 drivers/usb/class/cdc-acm.c for (i = 0; i < acm->rx_buflimit; i++) acm 579 drivers/usb/class/cdc-acm.c usb_kill_urb(acm->read_urbs[i]); acm 580 drivers/usb/class/cdc-acm.c usb_clear_halt(acm->dev, acm->in); acm 581 drivers/usb/class/cdc-acm.c acm_submit_read_urbs(acm, GFP_KERNEL); acm 582 drivers/usb/class/cdc-acm.c clear_bit(EVENT_RX_STALL, &acm->flags); acm 586 drivers/usb/class/cdc-acm.c if (test_and_clear_bit(ACM_ERROR_DELAY, &acm->flags)) { acm 587 drivers/usb/class/cdc-acm.c for (i = 0; i < acm->rx_buflimit; i++) acm 588 drivers/usb/class/cdc-acm.c if (test_and_clear_bit(i, &acm->urbs_in_error_delay)) acm 589 drivers/usb/class/cdc-acm.c acm_submit_read_urb(acm, i, GFP_NOIO); acm 592 drivers/usb/class/cdc-acm.c if (test_and_clear_bit(EVENT_TTY_WAKEUP, &acm->flags)) acm 593 drivers/usb/class/cdc-acm.c tty_port_tty_wakeup(&acm->port); acm 602 drivers/usb/class/cdc-acm.c struct acm *acm; acm 605 drivers/usb/class/cdc-acm.c acm = acm_get_by_minor(tty->index); acm 606 drivers/usb/class/cdc-acm.c if (!acm) acm 617 drivers/usb/class/cdc-acm.c if (acm->quirks & DISABLE_ECHO) acm 620 drivers/usb/class/cdc-acm.c tty->driver_data = acm; acm 625 drivers/usb/class/cdc-acm.c tty_port_put(&acm->port); acm 631 drivers/usb/class/cdc-acm.c struct acm *acm = tty->driver_data; acm 633 drivers/usb/class/cdc-acm.c return tty_port_open(&acm->port, tty, filp); acm 638 drivers/usb/class/cdc-acm.c struct acm *acm = container_of(port, struct acm, port); acm 648 drivers/usb/class/cdc-acm.c acm->ctrlout = val; acm 650 drivers/usb/class/cdc-acm.c res = acm_set_control(acm, val); acm 651 drivers/usb/class/cdc-acm.c if (res && (acm->ctrl_caps & USB_CDC_CAP_LINE)) acm 652 drivers/usb/class/cdc-acm.c dev_err(&acm->control->dev, "failed to set dtr/rts\n"); acm 657 drivers/usb/class/cdc-acm.c struct acm *acm = container_of(port, struct acm, port); acm 661 drivers/usb/class/cdc-acm.c mutex_lock(&acm->mutex); acm 662 drivers/usb/class/cdc-acm.c if (acm->disconnected) acm 665 drivers/usb/class/cdc-acm.c retval = usb_autopm_get_interface(acm->control); acm 674 drivers/usb/class/cdc-acm.c acm->control->needs_remote_wakeup = 1; acm 676 drivers/usb/class/cdc-acm.c acm->ctrlurb->dev = acm->dev; acm 677 drivers/usb/class/cdc-acm.c retval = usb_submit_urb(acm->ctrlurb, GFP_KERNEL); acm 679 drivers/usb/class/cdc-acm.c dev_err(&acm->control->dev, acm 689 drivers/usb/class/cdc-acm.c clear_bit(ACM_THROTTLED, &acm->flags); acm 691 drivers/usb/class/cdc-acm.c retval = acm_submit_read_urbs(acm, GFP_KERNEL); acm 695 drivers/usb/class/cdc-acm.c usb_autopm_put_interface(acm->control); acm 697 drivers/usb/class/cdc-acm.c mutex_unlock(&acm->mutex); acm 702 drivers/usb/class/cdc-acm.c for (i = 0; i < acm->rx_buflimit; i++) acm 703 drivers/usb/class/cdc-acm.c usb_kill_urb(acm->read_urbs[i]); acm 704 drivers/usb/class/cdc-acm.c usb_kill_urb(acm->ctrlurb); acm 706 drivers/usb/class/cdc-acm.c usb_autopm_put_interface(acm->control); acm 709 drivers/usb/class/cdc-acm.c mutex_unlock(&acm->mutex); acm 716 drivers/usb/class/cdc-acm.c struct acm *acm = container_of(port, struct acm, port); acm 718 drivers/usb/class/cdc-acm.c acm_release_minor(acm); acm 719 drivers/usb/class/cdc-acm.c usb_put_intf(acm->control); acm 720 drivers/usb/class/cdc-acm.c kfree(acm->country_codes); acm 721 drivers/usb/class/cdc-acm.c kfree(acm); acm 726 drivers/usb/class/cdc-acm.c struct acm *acm = container_of(port, struct acm, port); acm 734 drivers/usb/class/cdc-acm.c spin_lock_irq(&acm->write_lock); acm 735 drivers/usb/class/cdc-acm.c spin_unlock_irq(&acm->write_lock); acm 737 drivers/usb/class/cdc-acm.c usb_autopm_get_interface_no_resume(acm->control); acm 738 drivers/usb/class/cdc-acm.c acm->control->needs_remote_wakeup = 0; acm 739 drivers/usb/class/cdc-acm.c usb_autopm_put_interface(acm->control); acm 742 drivers/usb/class/cdc-acm.c urb = usb_get_from_anchor(&acm->delayed); acm 747 drivers/usb/class/cdc-acm.c usb_autopm_put_interface_async(acm->control); acm 750 drivers/usb/class/cdc-acm.c acm_kill_urbs(acm); acm 755 drivers/usb/class/cdc-acm.c struct acm *acm = tty->driver_data; acm 757 drivers/usb/class/cdc-acm.c tty_port_put(&acm->port); acm 762 drivers/usb/class/cdc-acm.c struct acm *acm = tty->driver_data; acm 764 drivers/usb/class/cdc-acm.c tty_port_hangup(&acm->port); acm 769 drivers/usb/class/cdc-acm.c struct acm *acm = tty->driver_data; acm 771 drivers/usb/class/cdc-acm.c tty_port_close(&acm->port, tty, filp); acm 777 drivers/usb/class/cdc-acm.c struct acm *acm = tty->driver_data; acm 786 drivers/usb/class/cdc-acm.c dev_vdbg(&acm->data->dev, "%d bytes from tty layer\n", count); acm 788 drivers/usb/class/cdc-acm.c spin_lock_irqsave(&acm->write_lock, flags); acm 789 drivers/usb/class/cdc-acm.c wbn = acm_wb_alloc(acm); acm 791 drivers/usb/class/cdc-acm.c spin_unlock_irqrestore(&acm->write_lock, flags); acm 794 drivers/usb/class/cdc-acm.c wb = &acm->wb[wbn]; acm 796 drivers/usb/class/cdc-acm.c if (!acm->dev) { acm 798 drivers/usb/class/cdc-acm.c spin_unlock_irqrestore(&acm->write_lock, flags); acm 802 drivers/usb/class/cdc-acm.c count = (count > acm->writesize) ? acm->writesize : count; acm 803 drivers/usb/class/cdc-acm.c dev_vdbg(&acm->data->dev, "writing %d bytes\n", count); acm 807 drivers/usb/class/cdc-acm.c stat = usb_autopm_get_interface_async(acm->control); acm 810 drivers/usb/class/cdc-acm.c spin_unlock_irqrestore(&acm->write_lock, flags); acm 814 drivers/usb/class/cdc-acm.c if (acm->susp_count) { acm 815 drivers/usb/class/cdc-acm.c usb_anchor_urb(wb->urb, &acm->delayed); acm 816 drivers/usb/class/cdc-acm.c spin_unlock_irqrestore(&acm->write_lock, flags); acm 820 drivers/usb/class/cdc-acm.c stat = acm_start_wb(acm, wb); acm 821 drivers/usb/class/cdc-acm.c spin_unlock_irqrestore(&acm->write_lock, flags); acm 830 drivers/usb/class/cdc-acm.c struct acm *acm = tty->driver_data; acm 835 drivers/usb/class/cdc-acm.c return acm_wb_is_avail(acm) ? acm->writesize : 0; acm 840 drivers/usb/class/cdc-acm.c struct acm *acm = tty->driver_data; acm 845 drivers/usb/class/cdc-acm.c if (acm->disconnected) acm 850 drivers/usb/class/cdc-acm.c return (ACM_NW - acm_wb_is_avail(acm)) * acm->writesize; acm 855 drivers/usb/class/cdc-acm.c struct acm *acm = tty->driver_data; acm 857 drivers/usb/class/cdc-acm.c set_bit(ACM_THROTTLED, &acm->flags); acm 862 drivers/usb/class/cdc-acm.c struct acm *acm = tty->driver_data; acm 864 drivers/usb/class/cdc-acm.c clear_bit(ACM_THROTTLED, &acm->flags); acm 869 drivers/usb/class/cdc-acm.c acm_submit_read_urbs(acm, GFP_KERNEL); acm 874 drivers/usb/class/cdc-acm.c struct acm *acm = tty->driver_data; acm 877 drivers/usb/class/cdc-acm.c retval = acm_send_break(acm, state ? 0xffff : 0); acm 879 drivers/usb/class/cdc-acm.c dev_dbg(&acm->control->dev, acm 886 drivers/usb/class/cdc-acm.c struct acm *acm = tty->driver_data; acm 888 drivers/usb/class/cdc-acm.c return (acm->ctrlout & ACM_CTRL_DTR ? TIOCM_DTR : 0) | acm 889 drivers/usb/class/cdc-acm.c (acm->ctrlout & ACM_CTRL_RTS ? TIOCM_RTS : 0) | acm 890 drivers/usb/class/cdc-acm.c (acm->ctrlin & ACM_CTRL_DSR ? TIOCM_DSR : 0) | acm 891 drivers/usb/class/cdc-acm.c (acm->ctrlin & ACM_CTRL_RI ? TIOCM_RI : 0) | acm 892 drivers/usb/class/cdc-acm.c (acm->ctrlin & ACM_CTRL_DCD ? TIOCM_CD : 0) | acm 899 drivers/usb/class/cdc-acm.c struct acm *acm = tty->driver_data; acm 902 drivers/usb/class/cdc-acm.c newctrl = acm->ctrlout; acm 910 drivers/usb/class/cdc-acm.c if (acm->ctrlout == newctrl) acm 912 drivers/usb/class/cdc-acm.c return acm_set_control(acm, acm->ctrlout = newctrl); acm 917 drivers/usb/class/cdc-acm.c struct acm *acm = tty->driver_data; acm 919 drivers/usb/class/cdc-acm.c ss->xmit_fifo_size = acm->writesize; acm 920 drivers/usb/class/cdc-acm.c ss->baud_base = le32_to_cpu(acm->line.dwDTERate); acm 921 drivers/usb/class/cdc-acm.c ss->close_delay = jiffies_to_msecs(acm->port.close_delay) / 10; acm 922 drivers/usb/class/cdc-acm.c ss->closing_wait = acm->port.closing_wait == ASYNC_CLOSING_WAIT_NONE ? acm 924 drivers/usb/class/cdc-acm.c jiffies_to_msecs(acm->port.closing_wait) / 10; acm 930 drivers/usb/class/cdc-acm.c struct acm *acm = tty->driver_data; acm 941 drivers/usb/class/cdc-acm.c old_close_delay = jiffies_to_msecs(acm->port.close_delay) / 10; acm 942 drivers/usb/class/cdc-acm.c old_closing_wait = acm->port.closing_wait == ASYNC_CLOSING_WAIT_NONE ? acm 944 drivers/usb/class/cdc-acm.c jiffies_to_msecs(acm->port.closing_wait) / 10; acm 946 drivers/usb/class/cdc-acm.c mutex_lock(&acm->port.mutex); acm 955 drivers/usb/class/cdc-acm.c acm->port.close_delay = close_delay; acm 956 drivers/usb/class/cdc-acm.c acm->port.closing_wait = closing_wait; acm 959 drivers/usb/class/cdc-acm.c mutex_unlock(&acm->port.mutex); acm 963 drivers/usb/class/cdc-acm.c static int wait_serial_change(struct acm *acm, unsigned long arg) acm 970 drivers/usb/class/cdc-acm.c spin_lock_irq(&acm->read_lock); acm 971 drivers/usb/class/cdc-acm.c old = acm->oldcount; acm 972 drivers/usb/class/cdc-acm.c new = acm->iocount; acm 973 drivers/usb/class/cdc-acm.c acm->oldcount = new; acm 974 drivers/usb/class/cdc-acm.c spin_unlock_irq(&acm->read_lock); acm 986 drivers/usb/class/cdc-acm.c add_wait_queue(&acm->wioctl, &wait); acm 989 drivers/usb/class/cdc-acm.c remove_wait_queue(&acm->wioctl, &wait); acm 990 drivers/usb/class/cdc-acm.c if (acm->disconnected) { acm 1009 drivers/usb/class/cdc-acm.c struct acm *acm = tty->driver_data; acm 1011 drivers/usb/class/cdc-acm.c icount->dsr = acm->iocount.dsr; acm 1012 drivers/usb/class/cdc-acm.c icount->rng = acm->iocount.rng; acm 1013 drivers/usb/class/cdc-acm.c icount->dcd = acm->iocount.dcd; acm 1014 drivers/usb/class/cdc-acm.c icount->frame = acm->iocount.frame; acm 1015 drivers/usb/class/cdc-acm.c icount->overrun = acm->iocount.overrun; acm 1016 drivers/usb/class/cdc-acm.c icount->parity = acm->iocount.parity; acm 1017 drivers/usb/class/cdc-acm.c icount->brk = acm->iocount.brk; acm 1025 drivers/usb/class/cdc-acm.c struct acm *acm = tty->driver_data; acm 1030 drivers/usb/class/cdc-acm.c rv = usb_autopm_get_interface(acm->control); acm 1035 drivers/usb/class/cdc-acm.c rv = wait_serial_change(acm, arg); acm 1036 drivers/usb/class/cdc-acm.c usb_autopm_put_interface(acm->control); acm 1046 drivers/usb/class/cdc-acm.c struct acm *acm = tty->driver_data; acm 1049 drivers/usb/class/cdc-acm.c int newctrl = acm->ctrlout; acm 1072 drivers/usb/class/cdc-acm.c acm->clocal = ((termios->c_cflag & CLOCAL) != 0); acm 1075 drivers/usb/class/cdc-acm.c newline.dwDTERate = acm->line.dwDTERate; acm 1081 drivers/usb/class/cdc-acm.c if (newctrl != acm->ctrlout) acm 1082 drivers/usb/class/cdc-acm.c acm_set_control(acm, acm->ctrlout = newctrl); acm 1084 drivers/usb/class/cdc-acm.c if (memcmp(&acm->line, &newline, sizeof newline)) { acm 1085 drivers/usb/class/cdc-acm.c memcpy(&acm->line, &newline, sizeof newline); acm 1086 drivers/usb/class/cdc-acm.c dev_dbg(&acm->control->dev, "%s - set line: %d %d %d %d\n", acm 1091 drivers/usb/class/cdc-acm.c acm_set_line(acm, &acm->line); acm 1107 drivers/usb/class/cdc-acm.c static void acm_write_buffers_free(struct acm *acm) acm 1112 drivers/usb/class/cdc-acm.c for (wb = &acm->wb[0], i = 0; i < ACM_NW; i++, wb++) acm 1113 drivers/usb/class/cdc-acm.c usb_free_coherent(acm->dev, acm->writesize, wb->buf, wb->dmah); acm 1116 drivers/usb/class/cdc-acm.c static void acm_read_buffers_free(struct acm *acm) acm 1120 drivers/usb/class/cdc-acm.c for (i = 0; i < acm->rx_buflimit; i++) acm 1121 drivers/usb/class/cdc-acm.c usb_free_coherent(acm->dev, acm->readsize, acm 1122 drivers/usb/class/cdc-acm.c acm->read_buffers[i].base, acm->read_buffers[i].dma); acm 1126 drivers/usb/class/cdc-acm.c static int acm_write_buffers_alloc(struct acm *acm) acm 1131 drivers/usb/class/cdc-acm.c for (wb = &acm->wb[0], i = 0; i < ACM_NW; i++, wb++) { acm 1132 drivers/usb/class/cdc-acm.c wb->buf = usb_alloc_coherent(acm->dev, acm->writesize, GFP_KERNEL, acm 1138 drivers/usb/class/cdc-acm.c usb_free_coherent(acm->dev, acm->writesize, acm 1161 drivers/usb/class/cdc-acm.c struct acm *acm; acm 1327 drivers/usb/class/cdc-acm.c acm = kzalloc(sizeof(struct acm), GFP_KERNEL); acm 1328 drivers/usb/class/cdc-acm.c if (acm == NULL) acm 1331 drivers/usb/class/cdc-acm.c tty_port_init(&acm->port); acm 1332 drivers/usb/class/cdc-acm.c acm->port.ops = &acm_port_ops; acm 1337 drivers/usb/class/cdc-acm.c acm->combined_interfaces = combined_interfaces; acm 1338 drivers/usb/class/cdc-acm.c acm->writesize = usb_endpoint_maxp(epwrite) * 20; acm 1339 drivers/usb/class/cdc-acm.c acm->control = control_interface; acm 1340 drivers/usb/class/cdc-acm.c acm->data = data_interface; acm 1342 drivers/usb/class/cdc-acm.c usb_get_intf(acm->control); /* undone in destruct() */ acm 1344 drivers/usb/class/cdc-acm.c minor = acm_alloc_minor(acm); acm 1348 drivers/usb/class/cdc-acm.c acm->minor = minor; acm 1349 drivers/usb/class/cdc-acm.c acm->dev = usb_dev; acm 1351 drivers/usb/class/cdc-acm.c acm->ctrl_caps = h.usb_cdc_acm_descriptor->bmCapabilities; acm 1353 drivers/usb/class/cdc-acm.c acm->ctrl_caps &= ~USB_CDC_CAP_LINE; acm 1354 drivers/usb/class/cdc-acm.c acm->ctrlsize = ctrlsize; acm 1355 drivers/usb/class/cdc-acm.c acm->readsize = readsize; acm 1356 drivers/usb/class/cdc-acm.c acm->rx_buflimit = num_rx_buf; acm 1357 drivers/usb/class/cdc-acm.c INIT_WORK(&acm->work, acm_softint); acm 1358 drivers/usb/class/cdc-acm.c INIT_DELAYED_WORK(&acm->dwork, acm_softint); acm 1359 drivers/usb/class/cdc-acm.c init_waitqueue_head(&acm->wioctl); acm 1360 drivers/usb/class/cdc-acm.c spin_lock_init(&acm->write_lock); acm 1361 drivers/usb/class/cdc-acm.c spin_lock_init(&acm->read_lock); acm 1362 drivers/usb/class/cdc-acm.c mutex_init(&acm->mutex); acm 1364 drivers/usb/class/cdc-acm.c acm->bInterval = epread->bInterval; acm 1365 drivers/usb/class/cdc-acm.c acm->in = usb_rcvintpipe(usb_dev, epread->bEndpointAddress); acm 1367 drivers/usb/class/cdc-acm.c acm->in = usb_rcvbulkpipe(usb_dev, epread->bEndpointAddress); acm 1370 drivers/usb/class/cdc-acm.c acm->out = usb_sndintpipe(usb_dev, epwrite->bEndpointAddress); acm 1372 drivers/usb/class/cdc-acm.c acm->out = usb_sndbulkpipe(usb_dev, epwrite->bEndpointAddress); acm 1373 drivers/usb/class/cdc-acm.c init_usb_anchor(&acm->delayed); acm 1374 drivers/usb/class/cdc-acm.c acm->quirks = quirks; acm 1376 drivers/usb/class/cdc-acm.c buf = usb_alloc_coherent(usb_dev, ctrlsize, GFP_KERNEL, &acm->ctrl_dma); acm 1379 drivers/usb/class/cdc-acm.c acm->ctrl_buffer = buf; acm 1381 drivers/usb/class/cdc-acm.c if (acm_write_buffers_alloc(acm) < 0) acm 1384 drivers/usb/class/cdc-acm.c acm->ctrlurb = usb_alloc_urb(0, GFP_KERNEL); acm 1385 drivers/usb/class/cdc-acm.c if (!acm->ctrlurb) acm 1389 drivers/usb/class/cdc-acm.c struct acm_rb *rb = &(acm->read_buffers[i]); acm 1392 drivers/usb/class/cdc-acm.c rb->base = usb_alloc_coherent(acm->dev, readsize, GFP_KERNEL, acm 1397 drivers/usb/class/cdc-acm.c rb->instance = acm; acm 1406 drivers/usb/class/cdc-acm.c usb_fill_int_urb(urb, acm->dev, acm->in, rb->base, acm 1407 drivers/usb/class/cdc-acm.c acm->readsize, acm 1409 drivers/usb/class/cdc-acm.c acm->bInterval); acm 1411 drivers/usb/class/cdc-acm.c usb_fill_bulk_urb(urb, acm->dev, acm->in, rb->base, acm 1412 drivers/usb/class/cdc-acm.c acm->readsize, acm 1415 drivers/usb/class/cdc-acm.c acm->read_urbs[i] = urb; acm 1416 drivers/usb/class/cdc-acm.c __set_bit(i, &acm->read_urbs_free); acm 1419 drivers/usb/class/cdc-acm.c struct acm_wb *snd = &(acm->wb[i]); acm 1426 drivers/usb/class/cdc-acm.c usb_fill_int_urb(snd->urb, usb_dev, acm->out, acm 1427 drivers/usb/class/cdc-acm.c NULL, acm->writesize, acm_write_bulk, snd, epwrite->bInterval); acm 1429 drivers/usb/class/cdc-acm.c usb_fill_bulk_urb(snd->urb, usb_dev, acm->out, acm 1430 drivers/usb/class/cdc-acm.c NULL, acm->writesize, acm_write_bulk, snd); acm 1434 drivers/usb/class/cdc-acm.c snd->instance = acm; acm 1437 drivers/usb/class/cdc-acm.c usb_set_intfdata(intf, acm); acm 1447 drivers/usb/class/cdc-acm.c acm->country_codes = kmalloc(cfd->bLength - 4, GFP_KERNEL); acm 1448 drivers/usb/class/cdc-acm.c if (!acm->country_codes) acm 1450 drivers/usb/class/cdc-acm.c acm->country_code_size = cfd->bLength - 4; acm 1451 drivers/usb/class/cdc-acm.c memcpy(acm->country_codes, (u8 *)&cfd->wCountyCode0, acm 1453 drivers/usb/class/cdc-acm.c acm->country_rel_date = cfd->iCountryCodeRelDate; acm 1457 drivers/usb/class/cdc-acm.c kfree(acm->country_codes); acm 1458 drivers/usb/class/cdc-acm.c acm->country_codes = NULL; acm 1459 drivers/usb/class/cdc-acm.c acm->country_code_size = 0; acm 1467 drivers/usb/class/cdc-acm.c kfree(acm->country_codes); acm 1468 drivers/usb/class/cdc-acm.c acm->country_codes = NULL; acm 1469 drivers/usb/class/cdc-acm.c acm->country_code_size = 0; acm 1475 drivers/usb/class/cdc-acm.c usb_fill_int_urb(acm->ctrlurb, usb_dev, acm 1477 drivers/usb/class/cdc-acm.c acm->ctrl_buffer, ctrlsize, acm_ctrl_irq, acm, acm 1480 drivers/usb/class/cdc-acm.c acm->ctrlurb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; acm 1481 drivers/usb/class/cdc-acm.c acm->ctrlurb->transfer_dma = acm->ctrl_dma; acm 1482 drivers/usb/class/cdc-acm.c acm->notification_buffer = NULL; acm 1483 drivers/usb/class/cdc-acm.c acm->nb_index = 0; acm 1484 drivers/usb/class/cdc-acm.c acm->nb_size = 0; acm 1488 drivers/usb/class/cdc-acm.c acm->line.dwDTERate = cpu_to_le32(9600); acm 1489 drivers/usb/class/cdc-acm.c acm->line.bDataBits = 8; acm 1490 drivers/usb/class/cdc-acm.c acm_set_line(acm, &acm->line); acm 1492 drivers/usb/class/cdc-acm.c usb_driver_claim_interface(&acm_driver, data_interface, acm); acm 1493 drivers/usb/class/cdc-acm.c usb_set_intfdata(data_interface, acm); acm 1495 drivers/usb/class/cdc-acm.c tty_dev = tty_port_register_device(&acm->port, acm_tty_driver, minor, acm 1503 drivers/usb/class/cdc-acm.c usb_clear_halt(usb_dev, acm->in); acm 1504 drivers/usb/class/cdc-acm.c usb_clear_halt(usb_dev, acm->out); acm 1509 drivers/usb/class/cdc-acm.c if (acm->country_codes) { acm 1510 drivers/usb/class/cdc-acm.c device_remove_file(&acm->control->dev, acm 1512 drivers/usb/class/cdc-acm.c device_remove_file(&acm->control->dev, acm 1514 drivers/usb/class/cdc-acm.c kfree(acm->country_codes); acm 1516 drivers/usb/class/cdc-acm.c device_remove_file(&acm->control->dev, &dev_attr_bmCapabilities); acm 1520 drivers/usb/class/cdc-acm.c usb_free_urb(acm->wb[i].urb); acm 1523 drivers/usb/class/cdc-acm.c usb_free_urb(acm->read_urbs[i]); acm 1524 drivers/usb/class/cdc-acm.c acm_read_buffers_free(acm); acm 1525 drivers/usb/class/cdc-acm.c usb_free_urb(acm->ctrlurb); acm 1527 drivers/usb/class/cdc-acm.c acm_write_buffers_free(acm); acm 1529 drivers/usb/class/cdc-acm.c usb_free_coherent(usb_dev, ctrlsize, acm->ctrl_buffer, acm->ctrl_dma); acm 1531 drivers/usb/class/cdc-acm.c tty_port_put(&acm->port); acm 1538 drivers/usb/class/cdc-acm.c struct acm *acm = usb_get_intfdata(intf); acm 1543 drivers/usb/class/cdc-acm.c if (!acm) acm 1546 drivers/usb/class/cdc-acm.c mutex_lock(&acm->mutex); acm 1547 drivers/usb/class/cdc-acm.c acm->disconnected = true; acm 1548 drivers/usb/class/cdc-acm.c if (acm->country_codes) { acm 1549 drivers/usb/class/cdc-acm.c device_remove_file(&acm->control->dev, acm 1551 drivers/usb/class/cdc-acm.c device_remove_file(&acm->control->dev, acm 1554 drivers/usb/class/cdc-acm.c wake_up_all(&acm->wioctl); acm 1555 drivers/usb/class/cdc-acm.c device_remove_file(&acm->control->dev, &dev_attr_bmCapabilities); acm 1556 drivers/usb/class/cdc-acm.c usb_set_intfdata(acm->control, NULL); acm 1557 drivers/usb/class/cdc-acm.c usb_set_intfdata(acm->data, NULL); acm 1558 drivers/usb/class/cdc-acm.c mutex_unlock(&acm->mutex); acm 1560 drivers/usb/class/cdc-acm.c tty = tty_port_tty_get(&acm->port); acm 1566 drivers/usb/class/cdc-acm.c acm_kill_urbs(acm); acm 1567 drivers/usb/class/cdc-acm.c cancel_work_sync(&acm->work); acm 1568 drivers/usb/class/cdc-acm.c cancel_delayed_work_sync(&acm->dwork); acm 1570 drivers/usb/class/cdc-acm.c tty_unregister_device(acm_tty_driver, acm->minor); acm 1572 drivers/usb/class/cdc-acm.c usb_free_urb(acm->ctrlurb); acm 1574 drivers/usb/class/cdc-acm.c usb_free_urb(acm->wb[i].urb); acm 1575 drivers/usb/class/cdc-acm.c for (i = 0; i < acm->rx_buflimit; i++) acm 1576 drivers/usb/class/cdc-acm.c usb_free_urb(acm->read_urbs[i]); acm 1577 drivers/usb/class/cdc-acm.c acm_write_buffers_free(acm); acm 1578 drivers/usb/class/cdc-acm.c usb_free_coherent(acm->dev, acm->ctrlsize, acm->ctrl_buffer, acm->ctrl_dma); acm 1579 drivers/usb/class/cdc-acm.c acm_read_buffers_free(acm); acm 1581 drivers/usb/class/cdc-acm.c kfree(acm->notification_buffer); acm 1583 drivers/usb/class/cdc-acm.c if (!acm->combined_interfaces) acm 1584 drivers/usb/class/cdc-acm.c usb_driver_release_interface(&acm_driver, intf == acm->control ? acm 1585 drivers/usb/class/cdc-acm.c acm->data : acm->control); acm 1587 drivers/usb/class/cdc-acm.c tty_port_put(&acm->port); acm 1593 drivers/usb/class/cdc-acm.c struct acm *acm = usb_get_intfdata(intf); acm 1596 drivers/usb/class/cdc-acm.c spin_lock_irq(&acm->write_lock); acm 1598 drivers/usb/class/cdc-acm.c if (acm->transmitting) { acm 1599 drivers/usb/class/cdc-acm.c spin_unlock_irq(&acm->write_lock); acm 1603 drivers/usb/class/cdc-acm.c cnt = acm->susp_count++; acm 1604 drivers/usb/class/cdc-acm.c spin_unlock_irq(&acm->write_lock); acm 1609 drivers/usb/class/cdc-acm.c acm_kill_urbs(acm); acm 1610 drivers/usb/class/cdc-acm.c cancel_work_sync(&acm->work); acm 1611 drivers/usb/class/cdc-acm.c cancel_delayed_work_sync(&acm->dwork); acm 1612 drivers/usb/class/cdc-acm.c acm->urbs_in_error_delay = 0; acm 1619 drivers/usb/class/cdc-acm.c struct acm *acm = usb_get_intfdata(intf); acm 1623 drivers/usb/class/cdc-acm.c spin_lock_irq(&acm->write_lock); acm 1625 drivers/usb/class/cdc-acm.c if (--acm->susp_count) acm 1628 drivers/usb/class/cdc-acm.c if (tty_port_initialized(&acm->port)) { acm 1629 drivers/usb/class/cdc-acm.c rv = usb_submit_urb(acm->ctrlurb, GFP_ATOMIC); acm 1632 drivers/usb/class/cdc-acm.c urb = usb_get_from_anchor(&acm->delayed); acm 1636 drivers/usb/class/cdc-acm.c acm_start_wb(acm, urb->context); acm 1646 drivers/usb/class/cdc-acm.c rv = acm_submit_read_urbs(acm, GFP_ATOMIC); acm 1649 drivers/usb/class/cdc-acm.c spin_unlock_irq(&acm->write_lock); acm 1656 drivers/usb/class/cdc-acm.c struct acm *acm = usb_get_intfdata(intf); acm 1658 drivers/usb/class/cdc-acm.c if (tty_port_initialized(&acm->port)) acm 1659 drivers/usb/class/cdc-acm.c tty_port_tty_hangup(&acm->port, false); acm 1668 drivers/usb/class/cdc-acm.c struct acm *acm = usb_get_intfdata(intf); acm 1670 drivers/usb/class/cdc-acm.c clear_bit(EVENT_RX_STALL, &acm->flags); acm 1671 drivers/usb/class/cdc-acm.c acm->nb_index = 0; /* pending control transfers are lost */ acm 72 drivers/usb/class/cdc-acm.h struct acm *instance; acm 80 drivers/usb/class/cdc-acm.h struct acm *instance; acm 308 drivers/usb/gadget/function/f_acm.c struct f_acm *acm = ep->driver_data; acm 309 drivers/usb/gadget/function/f_acm.c struct usb_composite_dev *cdev = acm->port.func.config->cdev; acm 313 drivers/usb/gadget/function/f_acm.c acm->port_num, req->status); acm 318 drivers/usb/gadget/function/f_acm.c if (req->actual != sizeof(acm->port_line_coding)) { acm 320 drivers/usb/gadget/function/f_acm.c acm->port_num, req->actual); acm 332 drivers/usb/gadget/function/f_acm.c acm->port_line_coding = *value; acm 338 drivers/usb/gadget/function/f_acm.c struct f_acm *acm = func_to_acm(f); acm 360 drivers/usb/gadget/function/f_acm.c || w_index != acm->ctrl_id) acm 364 drivers/usb/gadget/function/f_acm.c cdev->gadget->ep0->driver_data = acm; acm 371 drivers/usb/gadget/function/f_acm.c if (w_index != acm->ctrl_id) acm 376 drivers/usb/gadget/function/f_acm.c memcpy(req->buf, &acm->port_line_coding, value); acm 382 drivers/usb/gadget/function/f_acm.c if (w_index != acm->ctrl_id) acm 391 drivers/usb/gadget/function/f_acm.c acm->port_handshake_bits = w_value; acm 406 drivers/usb/gadget/function/f_acm.c acm->port_num, ctrl->bRequestType, ctrl->bRequest, acm 413 drivers/usb/gadget/function/f_acm.c acm->port_num, value); acm 422 drivers/usb/gadget/function/f_acm.c struct f_acm *acm = func_to_acm(f); acm 427 drivers/usb/gadget/function/f_acm.c if (intf == acm->ctrl_id) { acm 430 drivers/usb/gadget/function/f_acm.c usb_ep_disable(acm->notify); acm 432 drivers/usb/gadget/function/f_acm.c if (!acm->notify->desc) acm 433 drivers/usb/gadget/function/f_acm.c if (config_ep_by_speed(cdev->gadget, f, acm->notify)) acm 436 drivers/usb/gadget/function/f_acm.c usb_ep_enable(acm->notify); acm 438 drivers/usb/gadget/function/f_acm.c } else if (intf == acm->data_id) { acm 439 drivers/usb/gadget/function/f_acm.c if (acm->notify->enabled) { acm 441 drivers/usb/gadget/function/f_acm.c "reset acm ttyGS%d\n", acm->port_num); acm 442 drivers/usb/gadget/function/f_acm.c gserial_disconnect(&acm->port); acm 444 drivers/usb/gadget/function/f_acm.c if (!acm->port.in->desc || !acm->port.out->desc) { acm 446 drivers/usb/gadget/function/f_acm.c "activate acm ttyGS%d\n", acm->port_num); acm 448 drivers/usb/gadget/function/f_acm.c acm->port.in) || acm 450 drivers/usb/gadget/function/f_acm.c acm->port.out)) { acm 451 drivers/usb/gadget/function/f_acm.c acm->port.in->desc = NULL; acm 452 drivers/usb/gadget/function/f_acm.c acm->port.out->desc = NULL; acm 456 drivers/usb/gadget/function/f_acm.c gserial_connect(&acm->port, acm->port_num); acm 466 drivers/usb/gadget/function/f_acm.c struct f_acm *acm = func_to_acm(f); acm 469 drivers/usb/gadget/function/f_acm.c dev_dbg(&cdev->gadget->dev, "acm ttyGS%d deactivated\n", acm->port_num); acm 470 drivers/usb/gadget/function/f_acm.c gserial_disconnect(&acm->port); acm 471 drivers/usb/gadget/function/f_acm.c usb_ep_disable(acm->notify); acm 490 drivers/usb/gadget/function/f_acm.c static int acm_cdc_notify(struct f_acm *acm, u8 type, u16 value, acm 493 drivers/usb/gadget/function/f_acm.c struct usb_ep *ep = acm->notify; acm 500 drivers/usb/gadget/function/f_acm.c req = acm->notify_req; acm 501 drivers/usb/gadget/function/f_acm.c acm->notify_req = NULL; acm 502 drivers/usb/gadget/function/f_acm.c acm->pending = false; acm 512 drivers/usb/gadget/function/f_acm.c notify->wIndex = cpu_to_le16(acm->ctrl_id); acm 517 drivers/usb/gadget/function/f_acm.c spin_unlock(&acm->lock); acm 519 drivers/usb/gadget/function/f_acm.c spin_lock(&acm->lock); acm 522 drivers/usb/gadget/function/f_acm.c ERROR(acm->port.func.config->cdev, acm 524 drivers/usb/gadget/function/f_acm.c acm->port_num, status); acm 525 drivers/usb/gadget/function/f_acm.c acm->notify_req = req; acm 531 drivers/usb/gadget/function/f_acm.c static int acm_notify_serial_state(struct f_acm *acm) acm 533 drivers/usb/gadget/function/f_acm.c struct usb_composite_dev *cdev = acm->port.func.config->cdev; acm 537 drivers/usb/gadget/function/f_acm.c spin_lock(&acm->lock); acm 538 drivers/usb/gadget/function/f_acm.c if (acm->notify_req) { acm 540 drivers/usb/gadget/function/f_acm.c acm->port_num, acm->serial_state); acm 541 drivers/usb/gadget/function/f_acm.c serial_state = cpu_to_le16(acm->serial_state); acm 542 drivers/usb/gadget/function/f_acm.c status = acm_cdc_notify(acm, USB_CDC_NOTIFY_SERIAL_STATE, acm 543 drivers/usb/gadget/function/f_acm.c 0, &serial_state, sizeof(acm->serial_state)); acm 545 drivers/usb/gadget/function/f_acm.c acm->pending = true; acm 548 drivers/usb/gadget/function/f_acm.c spin_unlock(&acm->lock); acm 554 drivers/usb/gadget/function/f_acm.c struct f_acm *acm = req->context; acm 560 drivers/usb/gadget/function/f_acm.c spin_lock(&acm->lock); acm 562 drivers/usb/gadget/function/f_acm.c doit = acm->pending; acm 563 drivers/usb/gadget/function/f_acm.c acm->notify_req = req; acm 564 drivers/usb/gadget/function/f_acm.c spin_unlock(&acm->lock); acm 567 drivers/usb/gadget/function/f_acm.c acm_notify_serial_state(acm); acm 574 drivers/usb/gadget/function/f_acm.c struct f_acm *acm = port_to_acm(port); acm 576 drivers/usb/gadget/function/f_acm.c acm->serial_state |= ACM_CTRL_DSR | ACM_CTRL_DCD; acm 577 drivers/usb/gadget/function/f_acm.c acm_notify_serial_state(acm); acm 582 drivers/usb/gadget/function/f_acm.c struct f_acm *acm = port_to_acm(port); acm 584 drivers/usb/gadget/function/f_acm.c acm->serial_state &= ~(ACM_CTRL_DSR | ACM_CTRL_DCD); acm 585 drivers/usb/gadget/function/f_acm.c acm_notify_serial_state(acm); acm 590 drivers/usb/gadget/function/f_acm.c struct f_acm *acm = port_to_acm(port); acm 593 drivers/usb/gadget/function/f_acm.c state = acm->serial_state; acm 598 drivers/usb/gadget/function/f_acm.c acm->serial_state = state; acm 599 drivers/usb/gadget/function/f_acm.c return acm_notify_serial_state(acm); acm 609 drivers/usb/gadget/function/f_acm.c struct f_acm *acm = func_to_acm(f); acm 631 drivers/usb/gadget/function/f_acm.c acm->ctrl_id = status; acm 640 drivers/usb/gadget/function/f_acm.c acm->data_id = status; acm 652 drivers/usb/gadget/function/f_acm.c acm->port.in = ep; acm 657 drivers/usb/gadget/function/f_acm.c acm->port.out = ep; acm 662 drivers/usb/gadget/function/f_acm.c acm->notify = ep; acm 665 drivers/usb/gadget/function/f_acm.c acm->notify_req = gs_alloc_req(ep, acm 668 drivers/usb/gadget/function/f_acm.c if (!acm->notify_req) acm 671 drivers/usb/gadget/function/f_acm.c acm->notify_req->complete = acm_cdc_notify_complete; acm 672 drivers/usb/gadget/function/f_acm.c acm->notify_req->context = acm; acm 693 drivers/usb/gadget/function/f_acm.c acm->port_num, acm 696 drivers/usb/gadget/function/f_acm.c acm->port.in->name, acm->port.out->name, acm 697 drivers/usb/gadget/function/f_acm.c acm->notify->name); acm 701 drivers/usb/gadget/function/f_acm.c if (acm->notify_req) acm 702 drivers/usb/gadget/function/f_acm.c gs_free_req(acm->notify, acm->notify_req); acm 711 drivers/usb/gadget/function/f_acm.c struct f_acm *acm = func_to_acm(f); acm 715 drivers/usb/gadget/function/f_acm.c if (acm->notify_req) acm 716 drivers/usb/gadget/function/f_acm.c gs_free_req(acm->notify, acm->notify_req); acm 721 drivers/usb/gadget/function/f_acm.c struct f_acm *acm = func_to_acm(f); acm 723 drivers/usb/gadget/function/f_acm.c kfree(acm); acm 729 drivers/usb/gadget/function/f_acm.c struct f_acm *acm; acm 731 drivers/usb/gadget/function/f_acm.c acm = kzalloc(sizeof(*acm), GFP_KERNEL); acm 732 drivers/usb/gadget/function/f_acm.c if (!acm) acm 735 drivers/usb/gadget/function/f_acm.c spin_lock_init(&acm->lock); acm 737 drivers/usb/gadget/function/f_acm.c acm->port.connect = acm_connect; acm 738 drivers/usb/gadget/function/f_acm.c acm->port.disconnect = acm_disconnect; acm 739 drivers/usb/gadget/function/f_acm.c acm->port.send_break = acm_send_break; acm 741 drivers/usb/gadget/function/f_acm.c acm->port.func.name = "acm"; acm 742 drivers/usb/gadget/function/f_acm.c acm->port.func.strings = acm_strings; acm 744 drivers/usb/gadget/function/f_acm.c acm->port.func.bind = acm_bind; acm 745 drivers/usb/gadget/function/f_acm.c acm->port.func.set_alt = acm_set_alt; acm 746 drivers/usb/gadget/function/f_acm.c acm->port.func.setup = acm_setup; acm 747 drivers/usb/gadget/function/f_acm.c acm->port.func.disable = acm_disable; acm 750 drivers/usb/gadget/function/f_acm.c acm->port_num = opts->port_num; acm 751 drivers/usb/gadget/function/f_acm.c acm->port.func.unbind = acm_unbind; acm 752 drivers/usb/gadget/function/f_acm.c acm->port.func.free_func = acm_free_func; acm 754 drivers/usb/gadget/function/f_acm.c return &acm->port.func; acm 819 drivers/usb/gadget/function/f_acm.c DECLARE_USB_FUNCTION_INIT(acm, acm_alloc_instance, acm_alloc_func); acm 178 include/net/mac80211.h bool acm; acm 1974 net/mac80211/mlme.c int acm = (pos[0] >> 4) & 0x01; acm 1980 net/mac80211/mlme.c if (acm) acm 1990 net/mac80211/mlme.c if (acm) acm 2000 net/mac80211/mlme.c if (acm) acm 2011 net/mac80211/mlme.c if (acm) acm 2032 net/mac80211/mlme.c params[ac].acm = acm; acm 2058 net/mac80211/mlme.c ac, params[ac].acm, acm 255 net/mac80211/tdls.c static u8 ieee80211_wmm_aci_aifsn(int aifsn, bool acm, int aci) acm 260 net/mac80211/tdls.c if (acm) acm 299 net/mac80211/tdls.c txq->acm, i);