ua 25 arch/powerpc/include/asm/mmu_context.h unsigned long ua, unsigned long entries, ua 27 arch/powerpc/include/asm/mmu_context.h extern long mm_iommu_newdev(struct mm_struct *mm, unsigned long ua, ua 35 arch/powerpc/include/asm/mmu_context.h unsigned long ua, unsigned long size); ua 37 arch/powerpc/include/asm/mmu_context.h struct mm_struct *mm, unsigned long ua, unsigned long size); ua 39 arch/powerpc/include/asm/mmu_context.h unsigned long ua, unsigned long entries); ua 41 arch/powerpc/include/asm/mmu_context.h unsigned long ua, unsigned int pageshift, unsigned long *hpa); ua 43 arch/powerpc/include/asm/mmu_context.h unsigned long ua, unsigned int pageshift, unsigned long *hpa); ua 44 arch/powerpc/include/asm/mmu_context.h extern void mm_iommu_ua_mark_dirty_rm(struct mm_struct *mm, unsigned long ua); ua 31 arch/powerpc/include/asm/vio.h #define h_vio_signal(ua, mode) \ ua 32 arch/powerpc/include/asm/vio.h plpar_hcall_norets(H_VIO_SIGNAL, ua, mode) ua 334 arch/powerpc/kvm/book3s_64_vio.c unsigned long *ua) ua 343 arch/powerpc/kvm/book3s_64_vio.c *ua = __gfn_to_hva_memslot(memslot, gfn) | ua 355 arch/powerpc/kvm/book3s_64_vio.c unsigned long ua = 0; ua 364 arch/powerpc/kvm/book3s_64_vio.c if (kvmppc_tce_to_ua(stt->kvm, tce, &ua)) ua 372 arch/powerpc/kvm/book3s_64_vio.c mem = mm_iommu_lookup(stt->kvm->mm, ua, 1ULL << shift); ua 376 arch/powerpc/kvm/book3s_64_vio.c if (mm_iommu_ua_to_hpa(mem, ua, shift, &hpa)) ua 482 arch/powerpc/kvm/book3s_64_vio.c unsigned long entry, unsigned long ua, ua 494 arch/powerpc/kvm/book3s_64_vio.c mem = mm_iommu_lookup(kvm->mm, ua, 1ULL << tbl->it_page_shift); ua 499 arch/powerpc/kvm/book3s_64_vio.c if (WARN_ON_ONCE(mm_iommu_ua_to_hpa(mem, ua, tbl->it_page_shift, &hpa))) ua 514 arch/powerpc/kvm/book3s_64_vio.c *pua = cpu_to_be64(ua); ua 521 arch/powerpc/kvm/book3s_64_vio.c unsigned long entry, unsigned long ua, ua 532 arch/powerpc/kvm/book3s_64_vio.c io_entry + i, ua + pgoff, dir); ua 546 arch/powerpc/kvm/book3s_64_vio.c unsigned long entry, ua = 0; ua 568 arch/powerpc/kvm/book3s_64_vio.c if ((dir != DMA_NONE) && kvmppc_tce_to_ua(vcpu->kvm, tce, &ua)) { ua 581 arch/powerpc/kvm/book3s_64_vio.c entry, ua, dir); ua 606 arch/powerpc/kvm/book3s_64_vio.c unsigned long entry, ua = 0; ua 631 arch/powerpc/kvm/book3s_64_vio.c if (kvmppc_tce_to_ua(vcpu->kvm, tce_list, &ua)) { ua 635 arch/powerpc/kvm/book3s_64_vio.c tces = (u64 __user *) ua; ua 666 arch/powerpc/kvm/book3s_64_vio.c if (kvmppc_tce_to_ua(vcpu->kvm, tce, &ua)) { ua 673 arch/powerpc/kvm/book3s_64_vio.c stit->tbl, entry + i, ua, ua 79 arch/powerpc/kvm/book3s_64_vio_hv.c unsigned long *ua, unsigned long **prmap) ua 88 arch/powerpc/kvm/book3s_64_vio_hv.c *ua = __gfn_to_hva_memslot(memslot, gfn) | ua 111 arch/powerpc/kvm/book3s_64_vio_hv.c unsigned long ua = 0; ua 120 arch/powerpc/kvm/book3s_64_vio_hv.c if (kvmppc_rm_tce_to_ua(stt->kvm, tce, &ua, NULL)) ua 128 arch/powerpc/kvm/book3s_64_vio_hv.c mem = mm_iommu_lookup_rm(stt->kvm->mm, ua, 1ULL << shift); ua 132 arch/powerpc/kvm/book3s_64_vio_hv.c if (mm_iommu_ua_to_hpa_rm(mem, ua, shift, &hpa)) ua 324 arch/powerpc/kvm/book3s_64_vio_hv.c unsigned long entry, unsigned long ua, ua 336 arch/powerpc/kvm/book3s_64_vio_hv.c mem = mm_iommu_lookup_rm(kvm->mm, ua, 1ULL << tbl->it_page_shift); ua 340 arch/powerpc/kvm/book3s_64_vio_hv.c if (WARN_ON_ONCE_RM(mm_iommu_ua_to_hpa_rm(mem, ua, tbl->it_page_shift, ua 360 arch/powerpc/kvm/book3s_64_vio_hv.c *pua = cpu_to_be64(ua); ua 367 arch/powerpc/kvm/book3s_64_vio_hv.c unsigned long entry, unsigned long ua, ua 378 arch/powerpc/kvm/book3s_64_vio_hv.c io_entry + i, ua + pgoff, dir); ua 392 arch/powerpc/kvm/book3s_64_vio_hv.c unsigned long entry, ua = 0; ua 415 arch/powerpc/kvm/book3s_64_vio_hv.c if ((dir != DMA_NONE) && kvmppc_rm_tce_to_ua(vcpu->kvm, tce, &ua, NULL)) ua 426 arch/powerpc/kvm/book3s_64_vio_hv.c stit->tbl, entry, ua, dir); ua 442 arch/powerpc/kvm/book3s_64_vio_hv.c unsigned long ua, unsigned long *phpa) ua 456 arch/powerpc/kvm/book3s_64_vio_hv.c ptep = __find_linux_pte(vcpu->arch.pgdir, ua, NULL, &shift); ua 471 arch/powerpc/kvm/book3s_64_vio_hv.c *phpa = (pte_pfn(pte) << PAGE_SHIFT) | (ua & ((1ULL << shift) - 1)) | ua 472 arch/powerpc/kvm/book3s_64_vio_hv.c (ua & ~PAGE_MASK); ua 483 arch/powerpc/kvm/book3s_64_vio_hv.c unsigned long tces, entry, ua = 0; ua 519 arch/powerpc/kvm/book3s_64_vio_hv.c if (kvmppc_rm_tce_to_ua(vcpu->kvm, tce_list, &ua, NULL)) ua 522 arch/powerpc/kvm/book3s_64_vio_hv.c mem = mm_iommu_lookup_rm(vcpu->kvm->mm, ua, IOMMU_PAGE_SIZE_4K); ua 524 arch/powerpc/kvm/book3s_64_vio_hv.c prereg = mm_iommu_ua_to_hpa_rm(mem, ua, ua 535 arch/powerpc/kvm/book3s_64_vio_hv.c if (kvmppc_rm_tce_to_ua(vcpu->kvm, tce_list, &ua, &rmap)) ua 551 arch/powerpc/kvm/book3s_64_vio_hv.c if (kvmppc_rm_ua_to_hpa(vcpu, ua, &tces)) { ua 568 arch/powerpc/kvm/book3s_64_vio_hv.c ua = 0; ua 569 arch/powerpc/kvm/book3s_64_vio_hv.c if (kvmppc_rm_tce_to_ua(vcpu->kvm, tce, &ua, NULL)) { ua 576 arch/powerpc/kvm/book3s_64_vio_hv.c stit->tbl, entry + i, ua, ua 33 arch/powerpc/mm/book3s64/iommu_api.c u64 ua; /* userspace address */ ua 56 arch/powerpc/mm/book3s64/iommu_api.c static long mm_iommu_do_alloc(struct mm_struct *mm, unsigned long ua, ua 91 arch/powerpc/mm/book3s64/iommu_api.c mem->pageshift = __ffs(ua | (entries << PAGE_SHIFT)); ua 106 arch/powerpc/mm/book3s64/iommu_api.c ret = get_user_pages(ua + (entry << PAGE_SHIFT), n, ua 145 arch/powerpc/mm/book3s64/iommu_api.c mem->ua = ua; ua 152 arch/powerpc/mm/book3s64/iommu_api.c if ((mem2->ua < (ua + (entries << PAGE_SHIFT))) && ua 153 arch/powerpc/mm/book3s64/iommu_api.c (ua < (mem2->ua + ua 183 arch/powerpc/mm/book3s64/iommu_api.c long mm_iommu_new(struct mm_struct *mm, unsigned long ua, unsigned long entries, ua 186 arch/powerpc/mm/book3s64/iommu_api.c return mm_iommu_do_alloc(mm, ua, entries, MM_IOMMU_TABLE_INVALID_HPA, ua 191 arch/powerpc/mm/book3s64/iommu_api.c long mm_iommu_newdev(struct mm_struct *mm, unsigned long ua, ua 195 arch/powerpc/mm/book3s64/iommu_api.c return mm_iommu_do_alloc(mm, ua, entries, dev_hpa, pmem); ua 285 arch/powerpc/mm/book3s64/iommu_api.c unsigned long ua, unsigned long size) ua 290 arch/powerpc/mm/book3s64/iommu_api.c if ((mem->ua <= ua) && ua 291 arch/powerpc/mm/book3s64/iommu_api.c (ua + size <= mem->ua + ua 303 arch/powerpc/mm/book3s64/iommu_api.c unsigned long ua, unsigned long size) ua 309 arch/powerpc/mm/book3s64/iommu_api.c if ((mem->ua <= ua) && ua 310 arch/powerpc/mm/book3s64/iommu_api.c (ua + size <= mem->ua + ua 321 arch/powerpc/mm/book3s64/iommu_api.c unsigned long ua, unsigned long entries) ua 328 arch/powerpc/mm/book3s64/iommu_api.c if ((mem->ua == ua) && (mem->entries == entries)) { ua 342 arch/powerpc/mm/book3s64/iommu_api.c unsigned long ua, unsigned int pageshift, unsigned long *hpa) ua 344 arch/powerpc/mm/book3s64/iommu_api.c const long entry = (ua - mem->ua) >> PAGE_SHIFT; ua 354 arch/powerpc/mm/book3s64/iommu_api.c *hpa = mem->dev_hpa + (ua - mem->ua); ua 359 arch/powerpc/mm/book3s64/iommu_api.c *hpa = (*va & MM_IOMMU_TABLE_GROUP_PAGE_MASK) | (ua & ~PAGE_MASK); ua 366 arch/powerpc/mm/book3s64/iommu_api.c unsigned long ua, unsigned int pageshift, unsigned long *hpa) ua 368 arch/powerpc/mm/book3s64/iommu_api.c const long entry = (ua - mem->ua) >> PAGE_SHIFT; ua 378 arch/powerpc/mm/book3s64/iommu_api.c *hpa = mem->dev_hpa + (ua - mem->ua); ua 386 arch/powerpc/mm/book3s64/iommu_api.c *hpa = (*pa & MM_IOMMU_TABLE_GROUP_PAGE_MASK) | (ua & ~PAGE_MASK); ua 391 arch/powerpc/mm/book3s64/iommu_api.c extern void mm_iommu_ua_mark_dirty_rm(struct mm_struct *mm, unsigned long ua) ua 398 arch/powerpc/mm/book3s64/iommu_api.c mem = mm_iommu_lookup_rm(mm, ua, PAGE_SIZE); ua 405 arch/powerpc/mm/book3s64/iommu_api.c entry = (ua - mem->ua) >> PAGE_SHIFT; ua 78 arch/unicore32/include/asm/assembler.h .else; .ifc \cond, ua ua 168 drivers/ata/pata_sil680.c unsigned long ua = sil680_seldev(ap, adev, 0x0C); ua 177 drivers/ata/pata_sil680.c pci_read_config_word(pdev, ua, &ultra); ua 196 drivers/ata/pata_sil680.c pci_write_config_word(pdev, ua, ultra); ua 312 drivers/ide/siimage.c unsigned long ua = siimage_seldev(drive, 0x0C); ua 318 drivers/ide/siimage.c ultra = sil_ioread16(dev, ua); ua 338 drivers/ide/siimage.c sil_iowrite16(dev, ultra, ua); ua 299 drivers/leds/leds-as3645a.c unsigned int ua) ua 304 drivers/leds/leds-as3645a.c AS_TORCH_INTENSITY_STEP, ua); ua 308 drivers/leds/leds-as3645a.c AS_FLASH_INTENSITY_STEP, ua); ua 105 drivers/leds/leds-max77693.c static u8 max77693_led_iout_to_reg(u32 ua) ua 107 drivers/leds/leds-max77693.c if (ua < FLASH_IOUT_MIN) ua 108 drivers/leds/leds-max77693.c ua = FLASH_IOUT_MIN; ua 109 drivers/leds/leds-max77693.c return (ua - FLASH_IOUT_MIN) / FLASH_IOUT_STEP; ua 40 drivers/net/ethernet/ibm/ibmveth.h #define h_register_logical_lan(ua, buflst, rxq, fltlst, mac) \ ua 41 drivers/net/ethernet/ibm/ibmveth.h plpar_hcall_norets(H_REGISTER_LOGICAL_LAN, ua, buflst, rxq, fltlst, mac) ua 43 drivers/net/ethernet/ibm/ibmveth.h #define h_free_logical_lan(ua) \ ua 44 drivers/net/ethernet/ibm/ibmveth.h plpar_hcall_norets(H_FREE_LOGICAL_LAN, ua) ua 46 drivers/net/ethernet/ibm/ibmveth.h #define h_add_logical_lan_buffer(ua, buf) \ ua 47 drivers/net/ethernet/ibm/ibmveth.h plpar_hcall_norets(H_ADD_LOGICAL_LAN_BUFFER, ua, buf) ua 87 drivers/net/ethernet/ibm/ibmveth.h #define h_multicast_ctrl(ua, cmd, mac) \ ua 88 drivers/net/ethernet/ibm/ibmveth.h plpar_hcall_norets(H_MULTICAST_CTRL, ua, cmd, mac) ua 90 drivers/net/ethernet/ibm/ibmveth.h #define h_change_logical_lan_mac(ua, mac) \ ua 91 drivers/net/ethernet/ibm/ibmveth.h plpar_hcall_norets(H_CHANGE_LOGICAL_LAN_MAC, ua, mac) ua 3357 drivers/net/ethernet/ibm/ibmvnic.c unsigned int ua = adapter->vdev->unit_address; ua 3373 drivers/net/ethernet/ibm/ibmvnic.c rc = plpar_hcall_norets(H_SEND_SUB_CRQ, ua, ua 3389 drivers/net/ethernet/ibm/ibmvnic.c unsigned int ua = adapter->vdev->unit_address; ua 3395 drivers/net/ethernet/ibm/ibmvnic.c rc = plpar_hcall_norets(H_SEND_SUB_CRQ_INDIRECT, ua, ua 3408 drivers/net/ethernet/ibm/ibmvnic.c unsigned int ua = adapter->vdev->unit_address; ua 3426 drivers/net/ethernet/ibm/ibmvnic.c rc = plpar_hcall_norets(H_SEND_CRQ, ua, ua 226 drivers/power/supply/twl4030_charger.c static int ua2regval(int ua, bool cgain) ua 230 drivers/power/supply/twl4030_charger.c ua /= 2; ua 231 drivers/power/supply/twl4030_charger.c ret = (ua * 10 + 8500 * 1000) / 16618; ua 179 drivers/s390/scsi/zfcp_fsf.h u8 ua; ua 908 drivers/scsi/bfa/bfa_defs_svc.h u8 ua; ua 2111 drivers/scsi/bfa/bfa_fcpim.c lunm_list[i].ua = BFA_IOIM_LM_UA_RESET; ua 2209 drivers/scsi/bfa/bfa_fcpim.c lunm_list[i].ua = BFA_IOIM_LM_UA_SET; ua 2327 drivers/scsi/bfa/bfa_fcpim.c lunm_list[i].ua = BFA_IOIM_LM_UA_SET; ua 2386 drivers/scsi/bfa/bfa_fcpim.c lunm_list[i].ua = BFA_IOIM_LM_UA_SET; ua 355 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h #define h_reg_crq(ua, tok, sz) \ ua 356 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h plpar_hcall_norets(H_REG_CRQ, ua, tok, sz) ua 357 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h #define h_free_crq(ua) \ ua 358 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h plpar_hcall_norets(H_FREE_CRQ, ua) ua 359 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h #define h_send_crq(ua, d1, d2) \ ua 360 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h plpar_hcall_norets(H_SEND_CRQ, ua, d1, d2) ua 1683 drivers/scsi/sym53c8xx_2/sym_fw2.h SCR_STORE_REL (ua, 4), ua 1713 drivers/scsi/sym53c8xx_2/sym_fw2.h SCR_STORE_REL (ua, 4), ua 1735 drivers/scsi/sym53c8xx_2/sym_fw2.h SCR_STORE_REL (ua, 4), ua 1740 drivers/scsi/sym53c8xx_2/sym_fw2.h SCR_REG_REG (ua, SCR_ADD, 1), ua 7081 drivers/scsi/ufs/ufshcd.c int ua) ua 7097 drivers/scsi/ufs/ufshcd.c ret = regulator_set_load(vreg->reg, ua); ua 7100 drivers/scsi/ufs/ufshcd.c __func__, vreg->name, ua, ret); ua 80 drivers/target/target_core_ua.c struct se_ua *ua, *ua_p, *ua_tmp; ua 82 drivers/target/target_core_ua.c ua = kmem_cache_zalloc(se_ua_cache, GFP_ATOMIC); ua 83 drivers/target/target_core_ua.c if (!ua) { ua 87 drivers/target/target_core_ua.c INIT_LIST_HEAD(&ua->ua_nacl_list); ua 89 drivers/target/target_core_ua.c ua->ua_asc = asc; ua 90 drivers/target/target_core_ua.c ua->ua_ascq = ascq; ua 99 drivers/target/target_core_ua.c kmem_cache_free(se_ua_cache, ua); ua 123 drivers/target/target_core_ua.c list_add(&ua->ua_nacl_list, ua 126 drivers/target/target_core_ua.c list_add_tail(&ua->ua_nacl_list, ua 134 drivers/target/target_core_ua.c list_add(&ua->ua_nacl_list, ua 137 drivers/target/target_core_ua.c list_add_tail(&ua->ua_nacl_list, ua 140 drivers/target/target_core_ua.c list_add_tail(&ua->ua_nacl_list, ua 146 drivers/target/target_core_ua.c list_add_tail(&ua->ua_nacl_list, &deve->ua_list); ua 178 drivers/target/target_core_ua.c struct se_ua *ua, *ua_p; ua 181 drivers/target/target_core_ua.c list_for_each_entry_safe(ua, ua_p, &deve->ua_list, ua_nacl_list) { ua 182 drivers/target/target_core_ua.c list_del(&ua->ua_nacl_list); ua 183 drivers/target/target_core_ua.c kmem_cache_free(se_ua_cache, ua); ua 200 drivers/target/target_core_ua.c struct se_ua *ua = NULL, *ua_p; ua 226 drivers/target/target_core_ua.c list_for_each_entry_safe(ua, ua_p, &deve->ua_list, ua_nacl_list) { ua 233 drivers/target/target_core_ua.c *asc = ua->ua_asc; ua 234 drivers/target/target_core_ua.c *ascq = ua->ua_ascq; ua 243 drivers/target/target_core_ua.c *asc = ua->ua_asc; ua 244 drivers/target/target_core_ua.c *ascq = ua->ua_ascq; ua 247 drivers/target/target_core_ua.c list_del(&ua->ua_nacl_list); ua 248 drivers/target/target_core_ua.c kmem_cache_free(se_ua_cache, ua); ua 272 drivers/target/target_core_ua.c struct se_ua *ua = NULL, *ua_p; ua 303 drivers/target/target_core_ua.c list_for_each_entry_safe(ua, ua_p, &deve->ua_list, ua_nacl_list) { ua 305 drivers/target/target_core_ua.c *asc = ua->ua_asc; ua 306 drivers/target/target_core_ua.c *ascq = ua->ua_ascq; ua 309 drivers/target/target_core_ua.c list_del(&ua->ua_nacl_list); ua 310 drivers/target/target_core_ua.c kmem_cache_free(se_ua_cache, ua); ua 26 drivers/usb/typec/ucsi/ucsi_acpi.c static int ucsi_acpi_dsm(struct ucsi_acpi *ua, int func) ua 30 drivers/usb/typec/ucsi/ucsi_acpi.c obj = acpi_evaluate_dsm(ACPI_HANDLE(ua->dev), &ua->guid, 1, func, ua 33 drivers/usb/typec/ucsi/ucsi_acpi.c dev_err(ua->dev, "%s: failed to evaluate _DSM %d\n", ua 44 drivers/usb/typec/ucsi/ucsi_acpi.c struct ucsi_acpi *ua = container_of(ppm, struct ucsi_acpi, ppm); ua 48 drivers/usb/typec/ucsi/ucsi_acpi.c return ucsi_acpi_dsm(ua, UCSI_DSM_FUNC_WRITE); ua 53 drivers/usb/typec/ucsi/ucsi_acpi.c struct ucsi_acpi *ua = container_of(ppm, struct ucsi_acpi, ppm); ua 55 drivers/usb/typec/ucsi/ucsi_acpi.c return ucsi_acpi_dsm(ua, UCSI_DSM_FUNC_READ); ua 60 drivers/usb/typec/ucsi/ucsi_acpi.c struct ucsi_acpi *ua = data; ua 62 drivers/usb/typec/ucsi/ucsi_acpi.c ucsi_notify(ua->ucsi); ua 67 drivers/usb/typec/ucsi/ucsi_acpi.c struct ucsi_acpi *ua; ua 72 drivers/usb/typec/ucsi/ucsi_acpi.c ua = devm_kzalloc(&pdev->dev, sizeof(*ua), GFP_KERNEL); ua 73 drivers/usb/typec/ucsi/ucsi_acpi.c if (!ua) ua 93 drivers/usb/typec/ucsi/ucsi_acpi.c ua->ppm.data = devm_ioremap(&pdev->dev, res->start, resource_size(res)); ua 94 drivers/usb/typec/ucsi/ucsi_acpi.c if (!ua->ppm.data) ua 97 drivers/usb/typec/ucsi/ucsi_acpi.c if (!ua->ppm.data->version) ua 100 drivers/usb/typec/ucsi/ucsi_acpi.c ret = guid_parse(UCSI_DSM_UUID, &ua->guid); ua 104 drivers/usb/typec/ucsi/ucsi_acpi.c ua->ppm.cmd = ucsi_acpi_cmd; ua 105 drivers/usb/typec/ucsi/ucsi_acpi.c ua->ppm.sync = ucsi_acpi_sync; ua 106 drivers/usb/typec/ucsi/ucsi_acpi.c ua->dev = &pdev->dev; ua 110 drivers/usb/typec/ucsi/ucsi_acpi.c ucsi_acpi_notify, ua); ua 116 drivers/usb/typec/ucsi/ucsi_acpi.c ua->ucsi = ucsi_register_ppm(&pdev->dev, &ua->ppm); ua 117 drivers/usb/typec/ucsi/ucsi_acpi.c if (IS_ERR(ua->ucsi)) { ua 121 drivers/usb/typec/ucsi/ucsi_acpi.c return PTR_ERR(ua->ucsi); ua 124 drivers/usb/typec/ucsi/ucsi_acpi.c platform_set_drvdata(pdev, ua); ua 131 drivers/usb/typec/ucsi/ucsi_acpi.c struct ucsi_acpi *ua = platform_get_drvdata(pdev); ua 133 drivers/usb/typec/ucsi/ucsi_acpi.c ucsi_unregister_ppm(ua->ucsi); ua 18 drivers/vfio/pci/trace.h TP_PROTO(struct pci_dev *pdev, unsigned long hpa, unsigned long ua, ua 20 drivers/vfio/pci/trace.h TP_ARGS(pdev, hpa, ua, ret), ua 25 drivers/vfio/pci/trace.h __field(unsigned long, ua) ua 32 drivers/vfio/pci/trace.h __entry->ua = ua; ua 37 drivers/vfio/pci/trace.h __entry->ua, __entry->ret) ua 41 drivers/vfio/pci/trace.h TP_PROTO(struct pci_dev *pdev, unsigned long hpa, unsigned long ua, ua 43 drivers/vfio/pci/trace.h TP_ARGS(pdev, hpa, ua, size, ret), ua 48 drivers/vfio/pci/trace.h __field(unsigned long, ua) ua 56 drivers/vfio/pci/trace.h __entry->ua = ua; ua 62 drivers/vfio/pci/trace.h __entry->ua, __entry->size, __entry->ret) ua 66 drivers/vfio/pci/trace.h TP_PROTO(struct pci_dev *pdev, unsigned long hpa, unsigned long ua, ua 68 drivers/vfio/pci/trace.h TP_ARGS(pdev, hpa, ua, size, ret), ua 73 drivers/vfio/pci/trace.h __field(unsigned long, ua) ua 81 drivers/vfio/pci/trace.h __entry->ua = ua; ua 87 drivers/vfio/pci/trace.h __entry->ua, __entry->size, __entry->ret) ua 5771 fs/dlm/lock.c int dlm_user_request(struct dlm_ls *ls, struct dlm_user_args *ua, ua 5783 fs/dlm/lock.c kfree(ua); ua 5788 fs/dlm/lock.c ua->lksb.sb_lvbptr = kzalloc(DLM_USER_LVB_LEN, GFP_NOFS); ua 5789 fs/dlm/lock.c if (!ua->lksb.sb_lvbptr) { ua 5790 fs/dlm/lock.c kfree(ua); ua 5796 fs/dlm/lock.c error = set_lock_args(mode, &ua->lksb, flags, namelen, timeout_cs, ua 5797 fs/dlm/lock.c fake_astfn, ua, fake_bastfn, &args); ua 5799 fs/dlm/lock.c kfree(ua->lksb.sb_lvbptr); ua 5800 fs/dlm/lock.c ua->lksb.sb_lvbptr = NULL; ua 5801 fs/dlm/lock.c kfree(ua); ua 5827 fs/dlm/lock.c spin_lock(&ua->proc->locks_spin); ua 5829 fs/dlm/lock.c list_add_tail(&lkb->lkb_ownqueue, &ua->proc->locks); ua 5830 fs/dlm/lock.c spin_unlock(&ua->proc->locks_spin); ua 5842 fs/dlm/lock.c struct dlm_user_args *ua; ua 5854 fs/dlm/lock.c ua = lkb->lkb_ua; ua 5856 fs/dlm/lock.c if (flags & DLM_LKF_VALBLK && !ua->lksb.sb_lvbptr) { ua 5857 fs/dlm/lock.c ua->lksb.sb_lvbptr = kzalloc(DLM_USER_LVB_LEN, GFP_NOFS); ua 5858 fs/dlm/lock.c if (!ua->lksb.sb_lvbptr) { ua 5863 fs/dlm/lock.c if (lvb_in && ua->lksb.sb_lvbptr) ua 5864 fs/dlm/lock.c memcpy(ua->lksb.sb_lvbptr, lvb_in, DLM_USER_LVB_LEN); ua 5866 fs/dlm/lock.c ua->xid = ua_tmp->xid; ua 5867 fs/dlm/lock.c ua->castparam = ua_tmp->castparam; ua 5868 fs/dlm/lock.c ua->castaddr = ua_tmp->castaddr; ua 5869 fs/dlm/lock.c ua->bastparam = ua_tmp->bastparam; ua 5870 fs/dlm/lock.c ua->bastaddr = ua_tmp->bastaddr; ua 5871 fs/dlm/lock.c ua->user_lksb = ua_tmp->user_lksb; ua 5873 fs/dlm/lock.c error = set_lock_args(mode, &ua->lksb, flags, 0, timeout_cs, ua 5874 fs/dlm/lock.c fake_astfn, ua, fake_bastfn, &args); ua 5901 fs/dlm/lock.c struct dlm_user_args *ua; ua 5938 fs/dlm/lock.c ua = lkb->lkb_ua; ua 5940 fs/dlm/lock.c ua->proc = ua_tmp->proc; ua 5941 fs/dlm/lock.c ua->xid = ua_tmp->xid; ua 5942 fs/dlm/lock.c ua->castparam = ua_tmp->castparam; ua 5943 fs/dlm/lock.c ua->castaddr = ua_tmp->castaddr; ua 5944 fs/dlm/lock.c ua->bastparam = ua_tmp->bastparam; ua 5945 fs/dlm/lock.c ua->bastaddr = ua_tmp->bastaddr; ua 5946 fs/dlm/lock.c ua->user_lksb = ua_tmp->user_lksb; ua 5954 fs/dlm/lock.c spin_lock(&ua->proc->locks_spin); ua 5955 fs/dlm/lock.c list_add_tail(&lkb->lkb_ownqueue, &ua->proc->locks); ua 5956 fs/dlm/lock.c spin_unlock(&ua->proc->locks_spin); ua 5967 fs/dlm/lock.c struct dlm_user_args *ua; ua 5976 fs/dlm/lock.c ua = lkb->lkb_ua; ua 5978 fs/dlm/lock.c if (lvb_in && ua->lksb.sb_lvbptr) ua 5979 fs/dlm/lock.c memcpy(ua->lksb.sb_lvbptr, lvb_in, DLM_USER_LVB_LEN); ua 5981 fs/dlm/lock.c ua->castparam = ua_tmp->castparam; ua 5982 fs/dlm/lock.c ua->user_lksb = ua_tmp->user_lksb; ua 5984 fs/dlm/lock.c error = set_unlock_args(flags, ua, &args); ua 5998 fs/dlm/lock.c spin_lock(&ua->proc->locks_spin); ua 6001 fs/dlm/lock.c list_move(&lkb->lkb_ownqueue, &ua->proc->unlocking); ua 6002 fs/dlm/lock.c spin_unlock(&ua->proc->locks_spin); ua 6016 fs/dlm/lock.c struct dlm_user_args *ua; ua 6025 fs/dlm/lock.c ua = lkb->lkb_ua; ua 6027 fs/dlm/lock.c ua->castparam = ua_tmp->castparam; ua 6028 fs/dlm/lock.c ua->user_lksb = ua_tmp->user_lksb; ua 6030 fs/dlm/lock.c error = set_unlock_args(flags, ua, &args); ua 6053 fs/dlm/lock.c struct dlm_user_args *ua; ua 6063 fs/dlm/lock.c ua = lkb->lkb_ua; ua 6065 fs/dlm/lock.c error = set_unlock_args(flags, ua, &args); ua 44 fs/dlm/lock.h int dlm_user_request(struct dlm_ls *ls, struct dlm_user_args *ua, int mode, ua 82 fs/dlm/memory.c struct dlm_user_args *ua; ua 83 fs/dlm/memory.c ua = lkb->lkb_ua; ua 84 fs/dlm/memory.c if (ua) { ua 85 fs/dlm/memory.c kfree(ua->lksb.sb_lvbptr); ua 86 fs/dlm/memory.c kfree(ua); ua 179 fs/dlm/user.c struct dlm_user_args *ua; ua 199 fs/dlm/user.c ua = lkb->lkb_ua; ua 200 fs/dlm/user.c proc = ua->proc; ua 202 fs/dlm/user.c if ((flags & DLM_CB_BAST) && ua->bastaddr == NULL) ua 240 fs/dlm/user.c struct dlm_user_args *ua; ua 253 fs/dlm/user.c ua = kzalloc(sizeof(struct dlm_user_args), GFP_NOFS); ua 254 fs/dlm/user.c if (!ua) ua 256 fs/dlm/user.c ua->proc = proc; ua 257 fs/dlm/user.c ua->user_lksb = params->lksb; ua 258 fs/dlm/user.c ua->castparam = params->castparam; ua 259 fs/dlm/user.c ua->castaddr = params->castaddr; ua 260 fs/dlm/user.c ua->bastparam = params->bastparam; ua 261 fs/dlm/user.c ua->bastaddr = params->bastaddr; ua 262 fs/dlm/user.c ua->xid = params->xid; ua 265 fs/dlm/user.c error = dlm_user_convert(ls, ua, ua 270 fs/dlm/user.c error = dlm_user_adopt_orphan(ls, ua, ua 278 fs/dlm/user.c error = dlm_user_request(ls, ua, ua 283 fs/dlm/user.c error = ua->lksb.sb_lkid; ua 294 fs/dlm/user.c struct dlm_user_args *ua; ua 301 fs/dlm/user.c ua = kzalloc(sizeof(struct dlm_user_args), GFP_NOFS); ua 302 fs/dlm/user.c if (!ua) ua 304 fs/dlm/user.c ua->proc = proc; ua 305 fs/dlm/user.c ua->user_lksb = params->lksb; ua 306 fs/dlm/user.c ua->castparam = params->castparam; ua 307 fs/dlm/user.c ua->castaddr = params->castaddr; ua 310 fs/dlm/user.c error = dlm_user_cancel(ls, ua, params->flags, params->lkid); ua 312 fs/dlm/user.c error = dlm_user_unlock(ls, ua, params->flags, params->lkid, ua 686 fs/dlm/user.c static int copy_result_to_user(struct dlm_user_args *ua, int compat, ua 703 fs/dlm/user.c memcpy(&result.lksb, &ua->lksb, offsetof(struct dlm_lksb, sb_lvbptr)); ua 704 fs/dlm/user.c result.user_lksb = ua->user_lksb; ua 713 fs/dlm/user.c result.user_astaddr = ua->bastaddr; ua 714 fs/dlm/user.c result.user_astparam = ua->bastparam; ua 717 fs/dlm/user.c result.user_astaddr = ua->castaddr; ua 718 fs/dlm/user.c result.user_astparam = ua->castparam; ua 732 fs/dlm/user.c if (copy_lvb && ua->lksb.sb_lvbptr && count >= len + DLM_USER_LVB_LEN) { ua 733 fs/dlm/user.c if (copy_to_user(buf+len, ua->lksb.sb_lvbptr, ua 28 include/linux/mc6821.h } ua; ua 41 include/linux/mc6821.h #define ppra ua.pra ua 42 include/linux/mc6821.h #define pddra ua.ddra ua 44 include/linux/netfilter.h const unsigned long *ua = (const unsigned long *)a1; ua 48 include/linux/netfilter.h ur[0] = ua[0] & um[0]; ua 49 include/linux/netfilter.h ur[1] = ua[1] & um[1]; ua 112 net/tipc/udp_media.c struct udp_media_addr *ua) ua 116 net/tipc/udp_media.c memcpy(addr->value, ua, sizeof(struct udp_media_addr)); ua 118 net/tipc/udp_media.c if (tipc_udp_is_mcast_addr(ua)) ua 125 net/tipc/udp_media.c struct udp_media_addr *ua = (struct udp_media_addr *)&a->value; ua 127 net/tipc/udp_media.c if (ntohs(ua->proto) == ETH_P_IP) ua 128 net/tipc/udp_media.c snprintf(buf, size, "%pI4:%u", &ua->ipv4, ntohs(ua->port)); ua 129 net/tipc/udp_media.c else if (ntohs(ua->proto) == ETH_P_IPV6) ua 130 net/tipc/udp_media.c snprintf(buf, size, "%pI6:%u", &ua->ipv6, ntohs(ua->port)); ua 140 net/tipc/udp_media.c struct udp_media_addr *ua; ua 142 net/tipc/udp_media.c ua = (struct udp_media_addr *) (msg + TIPC_MEDIA_ADDR_OFFSET); ua 145 net/tipc/udp_media.c tipc_udp_media_addr_set(a, ua); ua 2267 net/xfrm/xfrm_user.c struct xfrm_user_acquire *ua = nlmsg_data(nlh); ua 2276 net/xfrm/xfrm_user.c err = verify_newpolicy_info(&ua->policy); ua 2284 net/xfrm/xfrm_user.c xp = xfrm_policy_construct(net, &ua->policy, attrs, &err); ua 2288 net/xfrm/xfrm_user.c memcpy(&x->id, &ua->id, sizeof(ua->id)); ua 2289 net/xfrm/xfrm_user.c memcpy(&x->props.saddr, &ua->saddr, sizeof(ua->saddr)); ua 2290 net/xfrm/xfrm_user.c memcpy(&x->sel, &ua->sel, sizeof(ua->sel)); ua 2301 net/xfrm/xfrm_user.c t->aalgos = ua->aalgos; ua 2302 net/xfrm/xfrm_user.c t->ealgos = ua->ealgos; ua 2303 net/xfrm/xfrm_user.c t->calgos = ua->calgos; ua 2926 net/xfrm/xfrm_user.c struct xfrm_user_acquire *ua; ua 2930 net/xfrm/xfrm_user.c nlh = nlmsg_put(skb, 0, 0, XFRM_MSG_ACQUIRE, sizeof(*ua), 0); ua 2934 net/xfrm/xfrm_user.c ua = nlmsg_data(nlh); ua 2935 net/xfrm/xfrm_user.c memcpy(&ua->id, &x->id, sizeof(ua->id)); ua 2936 net/xfrm/xfrm_user.c memcpy(&ua->saddr, &x->props.saddr, sizeof(ua->saddr)); ua 2937 net/xfrm/xfrm_user.c memcpy(&ua->sel, &x->sel, sizeof(ua->sel)); ua 2938 net/xfrm/xfrm_user.c copy_to_user_policy(xp, &ua->policy, XFRM_POLICY_OUT); ua 2939 net/xfrm/xfrm_user.c ua->aalgos = xt->aalgos; ua 2940 net/xfrm/xfrm_user.c ua->ealgos = xt->ealgos; ua 2941 net/xfrm/xfrm_user.c ua->calgos = xt->calgos; ua 2942 net/xfrm/xfrm_user.c ua->seq = x->km.seq = seq; ua 129 sound/usb/misc/ua101.c static void abort_alsa_playback(struct ua101 *ua); ua 130 sound/usb/misc/ua101.c static void abort_alsa_capture(struct ua101 *ua); ua 157 sound/usb/misc/ua101.c static void abort_usb_capture(struct ua101 *ua) ua 159 sound/usb/misc/ua101.c if (test_and_clear_bit(USB_CAPTURE_RUNNING, &ua->states)) { ua 160 sound/usb/misc/ua101.c wake_up(&ua->alsa_capture_wait); ua 161 sound/usb/misc/ua101.c wake_up(&ua->rate_feedback_wait); ua 165 sound/usb/misc/ua101.c static void abort_usb_playback(struct ua101 *ua) ua 167 sound/usb/misc/ua101.c if (test_and_clear_bit(USB_PLAYBACK_RUNNING, &ua->states)) ua 168 sound/usb/misc/ua101.c wake_up(&ua->alsa_playback_wait); ua 174 sound/usb/misc/ua101.c struct ua101 *ua = urb->urb.context; ua 181 sound/usb/misc/ua101.c abort_usb_playback(ua); ua 182 sound/usb/misc/ua101.c abort_alsa_playback(ua); ua 186 sound/usb/misc/ua101.c if (test_bit(USB_PLAYBACK_RUNNING, &ua->states)) { ua 188 sound/usb/misc/ua101.c spin_lock_irqsave(&ua->lock, flags); ua 189 sound/usb/misc/ua101.c list_add_tail(&urb->ready_list, &ua->ready_playback_urbs); ua 190 sound/usb/misc/ua101.c if (ua->rate_feedback_count > 0) ua 191 sound/usb/misc/ua101.c tasklet_schedule(&ua->playback_tasklet); ua 192 sound/usb/misc/ua101.c ua->playback.substream->runtime->delay -= ua 194 sound/usb/misc/ua101.c ua->playback.frame_bytes; ua 195 sound/usb/misc/ua101.c spin_unlock_irqrestore(&ua->lock, flags); ua 201 sound/usb/misc/ua101.c struct ua101 *ua = urb->context; ua 206 sound/usb/misc/ua101.c set_bit(PLAYBACK_URB_COMPLETED, &ua->states); ua 207 sound/usb/misc/ua101.c wake_up(&ua->alsa_playback_wait); ua 242 sound/usb/misc/ua101.c static inline void add_with_wraparound(struct ua101 *ua, ua 246 sound/usb/misc/ua101.c if (*value >= ua->playback.queue_length) ua 247 sound/usb/misc/ua101.c *value -= ua->playback.queue_length; ua 252 sound/usb/misc/ua101.c struct ua101 *ua = (void *)data; ua 259 sound/usb/misc/ua101.c if (unlikely(!test_bit(USB_PLAYBACK_RUNNING, &ua->states))) ua 273 sound/usb/misc/ua101.c spin_lock_irqsave(&ua->lock, flags); ua 274 sound/usb/misc/ua101.c while (ua->rate_feedback_count > 0 && ua 275 sound/usb/misc/ua101.c !list_empty(&ua->ready_playback_urbs)) { ua 277 sound/usb/misc/ua101.c frames = ua->rate_feedback[ua->rate_feedback_start]; ua 278 sound/usb/misc/ua101.c add_with_wraparound(ua, &ua->rate_feedback_start, 1); ua 279 sound/usb/misc/ua101.c ua->rate_feedback_count--; ua 282 sound/usb/misc/ua101.c urb = list_first_entry(&ua->ready_playback_urbs, ua 288 sound/usb/misc/ua101.c frames * ua->playback.frame_bytes; ua 289 sound/usb/misc/ua101.c if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states)) ua 290 sound/usb/misc/ua101.c do_period_elapsed |= copy_playback_data(&ua->playback, ua 300 sound/usb/misc/ua101.c spin_unlock_irqrestore(&ua->lock, flags); ua 301 sound/usb/misc/ua101.c abort_usb_playback(ua); ua 302 sound/usb/misc/ua101.c abort_alsa_playback(ua); ua 303 sound/usb/misc/ua101.c dev_err(&ua->dev->dev, "USB request error %d: %s\n", ua 307 sound/usb/misc/ua101.c ua->playback.substream->runtime->delay += frames; ua 309 sound/usb/misc/ua101.c spin_unlock_irqrestore(&ua->lock, flags); ua 311 sound/usb/misc/ua101.c snd_pcm_period_elapsed(ua->playback.substream); ua 349 sound/usb/misc/ua101.c struct ua101 *ua = urb->context; ua 350 sound/usb/misc/ua101.c struct ua101_stream *stream = &ua->capture; ua 368 sound/usb/misc/ua101.c spin_lock_irqsave(&ua->lock, flags); ua 370 sound/usb/misc/ua101.c if (frames > 0 && test_bit(ALSA_CAPTURE_RUNNING, &ua->states)) ua 375 sound/usb/misc/ua101.c if (test_bit(USB_CAPTURE_RUNNING, &ua->states)) { ua 378 sound/usb/misc/ua101.c spin_unlock_irqrestore(&ua->lock, flags); ua 379 sound/usb/misc/ua101.c dev_err(&ua->dev->dev, "USB request error %d: %s\n", ua 385 sound/usb/misc/ua101.c write_ptr = ua->rate_feedback_start; ua 386 sound/usb/misc/ua101.c add_with_wraparound(ua, &write_ptr, ua->rate_feedback_count); ua 387 sound/usb/misc/ua101.c ua->rate_feedback[write_ptr] = frames; ua 388 sound/usb/misc/ua101.c if (ua->rate_feedback_count < ua->playback.queue_length) { ua 389 sound/usb/misc/ua101.c ua->rate_feedback_count++; ua 390 sound/usb/misc/ua101.c if (ua->rate_feedback_count == ua 391 sound/usb/misc/ua101.c ua->playback.queue_length) ua 392 sound/usb/misc/ua101.c wake_up(&ua->rate_feedback_wait); ua 400 sound/usb/misc/ua101.c add_with_wraparound(ua, &ua->rate_feedback_start, 1); ua 402 sound/usb/misc/ua101.c if (test_bit(USB_PLAYBACK_RUNNING, &ua->states) && ua 403 sound/usb/misc/ua101.c !list_empty(&ua->ready_playback_urbs)) ua 404 sound/usb/misc/ua101.c tasklet_schedule(&ua->playback_tasklet); ua 407 sound/usb/misc/ua101.c spin_unlock_irqrestore(&ua->lock, flags); ua 415 sound/usb/misc/ua101.c abort_usb_playback(ua); ua 416 sound/usb/misc/ua101.c abort_usb_capture(ua); ua 417 sound/usb/misc/ua101.c abort_alsa_playback(ua); ua 418 sound/usb/misc/ua101.c abort_alsa_capture(ua); ua 423 sound/usb/misc/ua101.c struct ua101 *ua = urb->context; ua 428 sound/usb/misc/ua101.c set_bit(CAPTURE_URB_COMPLETED, &ua->states); ua 429 sound/usb/misc/ua101.c wake_up(&ua->alsa_capture_wait); ua 432 sound/usb/misc/ua101.c static int submit_stream_urbs(struct ua101 *ua, struct ua101_stream *stream) ua 439 sound/usb/misc/ua101.c dev_err(&ua->dev->dev, "USB request error %d: %s\n", ua 456 sound/usb/misc/ua101.c static int enable_iso_interface(struct ua101 *ua, unsigned int intf_index) ua 460 sound/usb/misc/ua101.c alts = ua->intf[intf_index]->cur_altsetting; ua 462 sound/usb/misc/ua101.c int err = usb_set_interface(ua->dev, ua 465 sound/usb/misc/ua101.c dev_err(&ua->dev->dev, ua 474 sound/usb/misc/ua101.c static void disable_iso_interface(struct ua101 *ua, unsigned int intf_index) ua 478 sound/usb/misc/ua101.c if (!ua->intf[intf_index]) ua 481 sound/usb/misc/ua101.c alts = ua->intf[intf_index]->cur_altsetting; ua 483 sound/usb/misc/ua101.c int err = usb_set_interface(ua->dev, ua 485 sound/usb/misc/ua101.c if (err < 0 && !test_bit(DISCONNECTED, &ua->states)) ua 486 sound/usb/misc/ua101.c dev_warn(&ua->dev->dev, ua 492 sound/usb/misc/ua101.c static void stop_usb_capture(struct ua101 *ua) ua 494 sound/usb/misc/ua101.c clear_bit(USB_CAPTURE_RUNNING, &ua->states); ua 496 sound/usb/misc/ua101.c kill_stream_urbs(&ua->capture); ua 498 sound/usb/misc/ua101.c disable_iso_interface(ua, INTF_CAPTURE); ua 501 sound/usb/misc/ua101.c static int start_usb_capture(struct ua101 *ua) ua 505 sound/usb/misc/ua101.c if (test_bit(DISCONNECTED, &ua->states)) ua 508 sound/usb/misc/ua101.c if (test_bit(USB_CAPTURE_RUNNING, &ua->states)) ua 511 sound/usb/misc/ua101.c kill_stream_urbs(&ua->capture); ua 513 sound/usb/misc/ua101.c err = enable_iso_interface(ua, INTF_CAPTURE); ua 517 sound/usb/misc/ua101.c clear_bit(CAPTURE_URB_COMPLETED, &ua->states); ua 518 sound/usb/misc/ua101.c ua->capture.urbs[0]->urb.complete = first_capture_urb_complete; ua 519 sound/usb/misc/ua101.c ua->rate_feedback_start = 0; ua 520 sound/usb/misc/ua101.c ua->rate_feedback_count = 0; ua 522 sound/usb/misc/ua101.c set_bit(USB_CAPTURE_RUNNING, &ua->states); ua 523 sound/usb/misc/ua101.c err = submit_stream_urbs(ua, &ua->capture); ua 525 sound/usb/misc/ua101.c stop_usb_capture(ua); ua 529 sound/usb/misc/ua101.c static void stop_usb_playback(struct ua101 *ua) ua 531 sound/usb/misc/ua101.c clear_bit(USB_PLAYBACK_RUNNING, &ua->states); ua 533 sound/usb/misc/ua101.c kill_stream_urbs(&ua->playback); ua 535 sound/usb/misc/ua101.c tasklet_kill(&ua->playback_tasklet); ua 537 sound/usb/misc/ua101.c disable_iso_interface(ua, INTF_PLAYBACK); ua 540 sound/usb/misc/ua101.c static int start_usb_playback(struct ua101 *ua) ua 546 sound/usb/misc/ua101.c if (test_bit(DISCONNECTED, &ua->states)) ua 549 sound/usb/misc/ua101.c if (test_bit(USB_PLAYBACK_RUNNING, &ua->states)) ua 552 sound/usb/misc/ua101.c kill_stream_urbs(&ua->playback); ua 553 sound/usb/misc/ua101.c tasklet_kill(&ua->playback_tasklet); ua 555 sound/usb/misc/ua101.c err = enable_iso_interface(ua, INTF_PLAYBACK); ua 559 sound/usb/misc/ua101.c clear_bit(PLAYBACK_URB_COMPLETED, &ua->states); ua 560 sound/usb/misc/ua101.c ua->playback.urbs[0]->urb.complete = ua 562 sound/usb/misc/ua101.c spin_lock_irq(&ua->lock); ua 563 sound/usb/misc/ua101.c INIT_LIST_HEAD(&ua->ready_playback_urbs); ua 564 sound/usb/misc/ua101.c spin_unlock_irq(&ua->lock); ua 570 sound/usb/misc/ua101.c wait_event(ua->rate_feedback_wait, ua 571 sound/usb/misc/ua101.c ua->rate_feedback_count >= ua->playback.queue_length || ua 572 sound/usb/misc/ua101.c !test_bit(USB_CAPTURE_RUNNING, &ua->states) || ua 573 sound/usb/misc/ua101.c test_bit(DISCONNECTED, &ua->states)); ua 574 sound/usb/misc/ua101.c if (test_bit(DISCONNECTED, &ua->states)) { ua 575 sound/usb/misc/ua101.c stop_usb_playback(ua); ua 578 sound/usb/misc/ua101.c if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) { ua 579 sound/usb/misc/ua101.c stop_usb_playback(ua); ua 583 sound/usb/misc/ua101.c for (i = 0; i < ua->playback.queue_length; ++i) { ua 585 sound/usb/misc/ua101.c spin_lock_irq(&ua->lock); ua 586 sound/usb/misc/ua101.c frames = ua->rate_feedback[ua->rate_feedback_start]; ua 587 sound/usb/misc/ua101.c add_with_wraparound(ua, &ua->rate_feedback_start, 1); ua 588 sound/usb/misc/ua101.c ua->rate_feedback_count--; ua 589 sound/usb/misc/ua101.c spin_unlock_irq(&ua->lock); ua 590 sound/usb/misc/ua101.c urb = &ua->playback.urbs[i]->urb; ua 592 sound/usb/misc/ua101.c frames * ua->playback.frame_bytes; ua 597 sound/usb/misc/ua101.c set_bit(USB_PLAYBACK_RUNNING, &ua->states); ua 598 sound/usb/misc/ua101.c err = submit_stream_urbs(ua, &ua->playback); ua 600 sound/usb/misc/ua101.c stop_usb_playback(ua); ua 604 sound/usb/misc/ua101.c static void abort_alsa_capture(struct ua101 *ua) ua 606 sound/usb/misc/ua101.c if (test_bit(ALSA_CAPTURE_RUNNING, &ua->states)) ua 607 sound/usb/misc/ua101.c snd_pcm_stop_xrun(ua->capture.substream); ua 610 sound/usb/misc/ua101.c static void abort_alsa_playback(struct ua101 *ua) ua 612 sound/usb/misc/ua101.c if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states)) ua 613 sound/usb/misc/ua101.c snd_pcm_stop_xrun(ua->playback.substream); ua 616 sound/usb/misc/ua101.c static int set_stream_hw(struct ua101 *ua, struct snd_pcm_substream *substream, ua 628 sound/usb/misc/ua101.c substream->runtime->hw.formats = ua->format_bit; ua 629 sound/usb/misc/ua101.c substream->runtime->hw.rates = snd_pcm_rate_to_rate_bit(ua->rate); ua 630 sound/usb/misc/ua101.c substream->runtime->hw.rate_min = ua->rate; ua 631 sound/usb/misc/ua101.c substream->runtime->hw.rate_max = ua->rate; ua 641 sound/usb/misc/ua101.c 1500000 / ua->packets_per_second, ua 651 sound/usb/misc/ua101.c struct ua101 *ua = substream->private_data; ua 654 sound/usb/misc/ua101.c ua->capture.substream = substream; ua 655 sound/usb/misc/ua101.c err = set_stream_hw(ua, substream, ua->capture.channels); ua 659 sound/usb/misc/ua101.c DIV_ROUND_CLOSEST(ua->rate, ua->packets_per_second); ua 662 sound/usb/misc/ua101.c mutex_lock(&ua->mutex); ua 663 sound/usb/misc/ua101.c err = start_usb_capture(ua); ua 665 sound/usb/misc/ua101.c set_bit(ALSA_CAPTURE_OPEN, &ua->states); ua 666 sound/usb/misc/ua101.c mutex_unlock(&ua->mutex); ua 672 sound/usb/misc/ua101.c struct ua101 *ua = substream->private_data; ua 675 sound/usb/misc/ua101.c ua->playback.substream = substream; ua 676 sound/usb/misc/ua101.c err = set_stream_hw(ua, substream, ua->playback.channels); ua 680 sound/usb/misc/ua101.c DIV_ROUND_CLOSEST(ua->rate * ua->playback.queue_length, ua 681 sound/usb/misc/ua101.c ua->packets_per_second); ua 683 sound/usb/misc/ua101.c mutex_lock(&ua->mutex); ua 684 sound/usb/misc/ua101.c err = start_usb_capture(ua); ua 687 sound/usb/misc/ua101.c err = start_usb_playback(ua); ua 689 sound/usb/misc/ua101.c if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states)) ua 690 sound/usb/misc/ua101.c stop_usb_capture(ua); ua 693 sound/usb/misc/ua101.c set_bit(ALSA_PLAYBACK_OPEN, &ua->states); ua 695 sound/usb/misc/ua101.c mutex_unlock(&ua->mutex); ua 701 sound/usb/misc/ua101.c struct ua101 *ua = substream->private_data; ua 703 sound/usb/misc/ua101.c mutex_lock(&ua->mutex); ua 704 sound/usb/misc/ua101.c clear_bit(ALSA_CAPTURE_OPEN, &ua->states); ua 705 sound/usb/misc/ua101.c if (!test_bit(ALSA_PLAYBACK_OPEN, &ua->states)) ua 706 sound/usb/misc/ua101.c stop_usb_capture(ua); ua 707 sound/usb/misc/ua101.c mutex_unlock(&ua->mutex); ua 713 sound/usb/misc/ua101.c struct ua101 *ua = substream->private_data; ua 715 sound/usb/misc/ua101.c mutex_lock(&ua->mutex); ua 716 sound/usb/misc/ua101.c stop_usb_playback(ua); ua 717 sound/usb/misc/ua101.c clear_bit(ALSA_PLAYBACK_OPEN, &ua->states); ua 718 sound/usb/misc/ua101.c if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states)) ua 719 sound/usb/misc/ua101.c stop_usb_capture(ua); ua 720 sound/usb/misc/ua101.c mutex_unlock(&ua->mutex); ua 727 sound/usb/misc/ua101.c struct ua101 *ua = substream->private_data; ua 730 sound/usb/misc/ua101.c mutex_lock(&ua->mutex); ua 731 sound/usb/misc/ua101.c err = start_usb_capture(ua); ua 732 sound/usb/misc/ua101.c mutex_unlock(&ua->mutex); ua 743 sound/usb/misc/ua101.c struct ua101 *ua = substream->private_data; ua 746 sound/usb/misc/ua101.c mutex_lock(&ua->mutex); ua 747 sound/usb/misc/ua101.c err = start_usb_capture(ua); ua 749 sound/usb/misc/ua101.c err = start_usb_playback(ua); ua 750 sound/usb/misc/ua101.c mutex_unlock(&ua->mutex); ua 765 sound/usb/misc/ua101.c struct ua101 *ua = substream->private_data; ua 768 sound/usb/misc/ua101.c mutex_lock(&ua->mutex); ua 769 sound/usb/misc/ua101.c err = start_usb_capture(ua); ua 770 sound/usb/misc/ua101.c mutex_unlock(&ua->mutex); ua 780 sound/usb/misc/ua101.c wait_event(ua->alsa_capture_wait, ua 781 sound/usb/misc/ua101.c test_bit(CAPTURE_URB_COMPLETED, &ua->states) || ua 782 sound/usb/misc/ua101.c !test_bit(USB_CAPTURE_RUNNING, &ua->states)); ua 783 sound/usb/misc/ua101.c if (test_bit(DISCONNECTED, &ua->states)) ua 785 sound/usb/misc/ua101.c if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) ua 788 sound/usb/misc/ua101.c ua->capture.period_pos = 0; ua 789 sound/usb/misc/ua101.c ua->capture.buffer_pos = 0; ua 795 sound/usb/misc/ua101.c struct ua101 *ua = substream->private_data; ua 798 sound/usb/misc/ua101.c mutex_lock(&ua->mutex); ua 799 sound/usb/misc/ua101.c err = start_usb_capture(ua); ua 801 sound/usb/misc/ua101.c err = start_usb_playback(ua); ua 802 sound/usb/misc/ua101.c mutex_unlock(&ua->mutex); ua 807 sound/usb/misc/ua101.c wait_event(ua->alsa_playback_wait, ua 808 sound/usb/misc/ua101.c test_bit(PLAYBACK_URB_COMPLETED, &ua->states) || ua 809 sound/usb/misc/ua101.c !test_bit(USB_PLAYBACK_RUNNING, &ua->states)); ua 810 sound/usb/misc/ua101.c if (test_bit(DISCONNECTED, &ua->states)) ua 812 sound/usb/misc/ua101.c if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states)) ua 816 sound/usb/misc/ua101.c ua->playback.period_pos = 0; ua 817 sound/usb/misc/ua101.c ua->playback.buffer_pos = 0; ua 823 sound/usb/misc/ua101.c struct ua101 *ua = substream->private_data; ua 827 sound/usb/misc/ua101.c if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) ua 829 sound/usb/misc/ua101.c set_bit(ALSA_CAPTURE_RUNNING, &ua->states); ua 832 sound/usb/misc/ua101.c clear_bit(ALSA_CAPTURE_RUNNING, &ua->states); ua 841 sound/usb/misc/ua101.c struct ua101 *ua = substream->private_data; ua 845 sound/usb/misc/ua101.c if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states)) ua 847 sound/usb/misc/ua101.c set_bit(ALSA_PLAYBACK_RUNNING, &ua->states); ua 850 sound/usb/misc/ua101.c clear_bit(ALSA_PLAYBACK_RUNNING, &ua->states); ua 857 sound/usb/misc/ua101.c static inline snd_pcm_uframes_t ua101_pcm_pointer(struct ua101 *ua, ua 863 sound/usb/misc/ua101.c spin_lock_irqsave(&ua->lock, flags); ua 865 sound/usb/misc/ua101.c spin_unlock_irqrestore(&ua->lock, flags); ua 871 sound/usb/misc/ua101.c struct ua101 *ua = subs->private_data; ua 873 sound/usb/misc/ua101.c return ua101_pcm_pointer(ua, &ua->capture); ua 878 sound/usb/misc/ua101.c struct ua101 *ua = subs->private_data; ua 880 sound/usb/misc/ua101.c return ua101_pcm_pointer(ua, &ua->playback); ua 959 sound/usb/misc/ua101.c static int detect_usb_format(struct ua101 *ua) ua 966 sound/usb/misc/ua101.c fmt_capture = find_format_descriptor(ua->intf[INTF_CAPTURE]); ua 967 sound/usb/misc/ua101.c fmt_playback = find_format_descriptor(ua->intf[INTF_PLAYBACK]); ua 973 sound/usb/misc/ua101.c ua->format_bit = SNDRV_PCM_FMTBIT_S24_3LE; ua 976 sound/usb/misc/ua101.c ua->format_bit = SNDRV_PCM_FMTBIT_S32_LE; ua 979 sound/usb/misc/ua101.c dev_err(&ua->dev->dev, "sample width is not 24 or 32 bits\n"); ua 983 sound/usb/misc/ua101.c dev_err(&ua->dev->dev, ua 990 sound/usb/misc/ua101.c dev_err(&ua->dev->dev, "sample width is not 24 bits\n"); ua 994 sound/usb/misc/ua101.c ua->rate = combine_triple(fmt_capture->tSamFreq[0]); ua 996 sound/usb/misc/ua101.c if (ua->rate != rate2) { ua 997 sound/usb/misc/ua101.c dev_err(&ua->dev->dev, ua 999 sound/usb/misc/ua101.c rate2, ua->rate); ua 1003 sound/usb/misc/ua101.c switch (ua->dev->speed) { ua 1005 sound/usb/misc/ua101.c ua->packets_per_second = 1000; ua 1008 sound/usb/misc/ua101.c ua->packets_per_second = 8000; ua 1011 sound/usb/misc/ua101.c dev_err(&ua->dev->dev, "unknown device speed\n"); ua 1015 sound/usb/misc/ua101.c ua->capture.channels = fmt_capture->bNrChannels; ua 1016 sound/usb/misc/ua101.c ua->playback.channels = fmt_playback->bNrChannels; ua 1017 sound/usb/misc/ua101.c ua->capture.frame_bytes = ua 1018 sound/usb/misc/ua101.c fmt_capture->bSubframeSize * ua->capture.channels; ua 1019 sound/usb/misc/ua101.c ua->playback.frame_bytes = ua 1020 sound/usb/misc/ua101.c fmt_playback->bSubframeSize * ua->playback.channels; ua 1022 sound/usb/misc/ua101.c epd = &ua->intf[INTF_CAPTURE]->altsetting[1].endpoint[0].desc; ua 1024 sound/usb/misc/ua101.c dev_err(&ua->dev->dev, "invalid capture endpoint\n"); ua 1027 sound/usb/misc/ua101.c ua->capture.usb_pipe = usb_rcvisocpipe(ua->dev, usb_endpoint_num(epd)); ua 1028 sound/usb/misc/ua101.c ua->capture.max_packet_bytes = usb_endpoint_maxp(epd); ua 1030 sound/usb/misc/ua101.c epd = &ua->intf[INTF_PLAYBACK]->altsetting[1].endpoint[0].desc; ua 1032 sound/usb/misc/ua101.c dev_err(&ua->dev->dev, "invalid playback endpoint\n"); ua 1035 sound/usb/misc/ua101.c ua->playback.usb_pipe = usb_sndisocpipe(ua->dev, usb_endpoint_num(epd)); ua 1036 sound/usb/misc/ua101.c ua->playback.max_packet_bytes = usb_endpoint_maxp(epd); ua 1040 sound/usb/misc/ua101.c static int alloc_stream_buffers(struct ua101 *ua, struct ua101_stream *stream) ua 1063 sound/usb/misc/ua101.c usb_alloc_coherent(ua->dev, size, GFP_KERNEL, ua 1073 sound/usb/misc/ua101.c dev_err(&ua->dev->dev, "too many packets\n"); ua 1079 sound/usb/misc/ua101.c static void free_stream_buffers(struct ua101 *ua, struct ua101_stream *stream) ua 1084 sound/usb/misc/ua101.c usb_free_coherent(ua->dev, ua 1090 sound/usb/misc/ua101.c static int alloc_stream_urbs(struct ua101 *ua, struct ua101_stream *stream, ua 1109 sound/usb/misc/ua101.c urb->urb.dev = ua->dev; ua 1117 sound/usb/misc/ua101.c urb->urb.context = ua; ua 1130 sound/usb/misc/ua101.c dev_err(&ua->dev->dev, "internal buffer size error\n"); ua 1144 sound/usb/misc/ua101.c static void free_usb_related_resources(struct ua101 *ua, ua 1150 sound/usb/misc/ua101.c mutex_lock(&ua->mutex); ua 1151 sound/usb/misc/ua101.c free_stream_urbs(&ua->capture); ua 1152 sound/usb/misc/ua101.c free_stream_urbs(&ua->playback); ua 1153 sound/usb/misc/ua101.c mutex_unlock(&ua->mutex); ua 1154 sound/usb/misc/ua101.c free_stream_buffers(ua, &ua->capture); ua 1155 sound/usb/misc/ua101.c free_stream_buffers(ua, &ua->playback); ua 1157 sound/usb/misc/ua101.c for (i = 0; i < ARRAY_SIZE(ua->intf); ++i) { ua 1158 sound/usb/misc/ua101.c mutex_lock(&ua->mutex); ua 1159 sound/usb/misc/ua101.c intf = ua->intf[i]; ua 1160 sound/usb/misc/ua101.c ua->intf[i] = NULL; ua 1161 sound/usb/misc/ua101.c mutex_unlock(&ua->mutex); ua 1173 sound/usb/misc/ua101.c struct ua101 *ua = card->private_data; ua 1175 sound/usb/misc/ua101.c mutex_destroy(&ua->mutex); ua 1202 sound/usb/misc/ua101.c struct ua101 *ua; ua 1226 sound/usb/misc/ua101.c sizeof(*ua), &card); ua 1232 sound/usb/misc/ua101.c ua = card->private_data; ua 1233 sound/usb/misc/ua101.c ua->dev = interface_to_usbdev(interface); ua 1234 sound/usb/misc/ua101.c ua->card = card; ua 1235 sound/usb/misc/ua101.c ua->card_index = card_index; ua 1236 sound/usb/misc/ua101.c INIT_LIST_HEAD(&ua->midi_list); ua 1237 sound/usb/misc/ua101.c spin_lock_init(&ua->lock); ua 1238 sound/usb/misc/ua101.c mutex_init(&ua->mutex); ua 1239 sound/usb/misc/ua101.c INIT_LIST_HEAD(&ua->ready_playback_urbs); ua 1240 sound/usb/misc/ua101.c tasklet_init(&ua->playback_tasklet, ua 1241 sound/usb/misc/ua101.c playback_tasklet, (unsigned long)ua); ua 1242 sound/usb/misc/ua101.c init_waitqueue_head(&ua->alsa_capture_wait); ua 1243 sound/usb/misc/ua101.c init_waitqueue_head(&ua->rate_feedback_wait); ua 1244 sound/usb/misc/ua101.c init_waitqueue_head(&ua->alsa_playback_wait); ua 1246 sound/usb/misc/ua101.c ua->intf[0] = interface; ua 1247 sound/usb/misc/ua101.c for (i = 1; i < ARRAY_SIZE(ua->intf); ++i) { ua 1248 sound/usb/misc/ua101.c ua->intf[i] = usb_ifnum_to_if(ua->dev, ua 1250 sound/usb/misc/ua101.c if (!ua->intf[i]) { ua 1251 sound/usb/misc/ua101.c dev_err(&ua->dev->dev, "interface %u not found\n", ua 1257 sound/usb/misc/ua101.c ua->intf[i], ua); ua 1259 sound/usb/misc/ua101.c ua->intf[i] = NULL; ua 1265 sound/usb/misc/ua101.c err = detect_usb_format(ua); ua 1272 sound/usb/misc/ua101.c usb_make_path(ua->dev, usb_path, sizeof(usb_path)); ua 1273 sound/usb/misc/ua101.c snprintf(ua->card->longname, sizeof(ua->card->longname), ua 1275 sound/usb/misc/ua101.c ua->dev->serial ? ua->dev->serial : "?", ua->rate, usb_path, ua 1276 sound/usb/misc/ua101.c ua->dev->speed == USB_SPEED_HIGH ? "high" : "full"); ua 1278 sound/usb/misc/ua101.c err = alloc_stream_buffers(ua, &ua->capture); ua 1281 sound/usb/misc/ua101.c err = alloc_stream_buffers(ua, &ua->playback); ua 1285 sound/usb/misc/ua101.c err = alloc_stream_urbs(ua, &ua->capture, capture_urb_complete); ua 1288 sound/usb/misc/ua101.c err = alloc_stream_urbs(ua, &ua->playback, playback_urb_complete); ua 1292 sound/usb/misc/ua101.c err = snd_pcm_new(card, name, 0, 1, 1, &ua->pcm); ua 1295 sound/usb/misc/ua101.c ua->pcm->private_data = ua; ua 1296 sound/usb/misc/ua101.c strcpy(ua->pcm->name, name); ua 1297 sound/usb/misc/ua101.c snd_pcm_set_ops(ua->pcm, SNDRV_PCM_STREAM_PLAYBACK, &playback_pcm_ops); ua 1298 sound/usb/misc/ua101.c snd_pcm_set_ops(ua->pcm, SNDRV_PCM_STREAM_CAPTURE, &capture_pcm_ops); ua 1300 sound/usb/misc/ua101.c err = snd_usbmidi_create(card, ua->intf[INTF_MIDI], ua 1301 sound/usb/misc/ua101.c &ua->midi_list, &midi_quirk); ua 1309 sound/usb/misc/ua101.c usb_set_intfdata(interface, ua); ua 1316 sound/usb/misc/ua101.c free_usb_related_resources(ua, interface); ua 1324 sound/usb/misc/ua101.c struct ua101 *ua = usb_get_intfdata(interface); ua 1327 sound/usb/misc/ua101.c if (!ua) ua 1332 sound/usb/misc/ua101.c set_bit(DISCONNECTED, &ua->states); ua 1333 sound/usb/misc/ua101.c wake_up(&ua->rate_feedback_wait); ua 1336 sound/usb/misc/ua101.c snd_card_disconnect(ua->card); ua 1339 sound/usb/misc/ua101.c list_for_each(midi, &ua->midi_list) ua 1341 sound/usb/misc/ua101.c abort_alsa_playback(ua); ua 1342 sound/usb/misc/ua101.c abort_alsa_capture(ua); ua 1343 sound/usb/misc/ua101.c mutex_lock(&ua->mutex); ua 1344 sound/usb/misc/ua101.c stop_usb_playback(ua); ua 1345 sound/usb/misc/ua101.c stop_usb_capture(ua); ua 1346 sound/usb/misc/ua101.c mutex_unlock(&ua->mutex); ua 1348 sound/usb/misc/ua101.c free_usb_related_resources(ua, interface); ua 1350 sound/usb/misc/ua101.c devices_used &= ~(1 << ua->card_index); ua 1352 sound/usb/misc/ua101.c snd_card_free_when_closed(ua->card);