Home
last modified time | relevance | path

Searched refs:ua (Results 1 – 25 of 41) sorted by relevance

12

/linux-6.1.9/sound/usb/misc/
Dua101.c128 static void abort_alsa_playback(struct ua101 *ua);
129 static void abort_alsa_capture(struct ua101 *ua);
156 static void abort_usb_capture(struct ua101 *ua) in abort_usb_capture() argument
158 if (test_and_clear_bit(USB_CAPTURE_RUNNING, &ua->states)) { in abort_usb_capture()
159 wake_up(&ua->alsa_capture_wait); in abort_usb_capture()
160 wake_up(&ua->rate_feedback_wait); in abort_usb_capture()
164 static void abort_usb_playback(struct ua101 *ua) in abort_usb_playback() argument
166 if (test_and_clear_bit(USB_PLAYBACK_RUNNING, &ua->states)) in abort_usb_playback()
167 wake_up(&ua->alsa_playback_wait); in abort_usb_playback()
173 struct ua101 *ua = urb->urb.context; in playback_urb_complete() local
[all …]
/linux-6.1.9/drivers/usb/typec/ucsi/
Ducsi_acpi.c28 static int ucsi_acpi_dsm(struct ucsi_acpi *ua, int func) in ucsi_acpi_dsm() argument
32 obj = acpi_evaluate_dsm(ACPI_HANDLE(ua->dev), &ua->guid, 1, func, in ucsi_acpi_dsm()
35 dev_err(ua->dev, "%s: failed to evaluate _DSM %d\n", in ucsi_acpi_dsm()
47 struct ucsi_acpi *ua = ucsi_get_drvdata(ucsi); in ucsi_acpi_read() local
50 ret = ucsi_acpi_dsm(ua, UCSI_DSM_FUNC_READ); in ucsi_acpi_read()
54 memcpy(val, ua->base + offset, val_len); in ucsi_acpi_read()
62 struct ucsi_acpi *ua = ucsi_get_drvdata(ucsi); in ucsi_acpi_async_write() local
64 memcpy(ua->base + offset, val, val_len); in ucsi_acpi_async_write()
66 return ucsi_acpi_dsm(ua, UCSI_DSM_FUNC_WRITE); in ucsi_acpi_async_write()
72 struct ucsi_acpi *ua = ucsi_get_drvdata(ucsi); in ucsi_acpi_sync_write() local
[all …]
/linux-6.1.9/drivers/target/
Dtarget_core_ua.c80 struct se_ua *ua, *ua_p, *ua_tmp; in core_scsi3_ua_allocate() local
82 ua = kmem_cache_zalloc(se_ua_cache, GFP_ATOMIC); in core_scsi3_ua_allocate()
83 if (!ua) { in core_scsi3_ua_allocate()
87 INIT_LIST_HEAD(&ua->ua_nacl_list); in core_scsi3_ua_allocate()
89 ua->ua_asc = asc; in core_scsi3_ua_allocate()
90 ua->ua_ascq = ascq; in core_scsi3_ua_allocate()
99 kmem_cache_free(se_ua_cache, ua); in core_scsi3_ua_allocate()
123 list_add(&ua->ua_nacl_list, in core_scsi3_ua_allocate()
126 list_add_tail(&ua->ua_nacl_list, in core_scsi3_ua_allocate()
134 list_add(&ua->ua_nacl_list, in core_scsi3_ua_allocate()
[all …]
/linux-6.1.9/drivers/vfio/pci/
Dtrace.h18 TP_PROTO(struct pci_dev *pdev, unsigned long hpa, unsigned long ua,
20 TP_ARGS(pdev, hpa, ua, ret),
25 __field(unsigned long, ua)
32 __entry->ua = ua;
37 __entry->ua, __entry->ret)
41 TP_PROTO(struct pci_dev *pdev, unsigned long hpa, unsigned long ua,
43 TP_ARGS(pdev, hpa, ua, size, ret),
48 __field(unsigned long, ua)
56 __entry->ua = ua;
62 __entry->ua, __entry->size, __entry->ret)
[all …]
/linux-6.1.9/arch/powerpc/mm/book3s64/
Diommu_api.c33 u64 ua; /* userspace address */ member
56 static long mm_iommu_do_alloc(struct mm_struct *mm, unsigned long ua, in mm_iommu_do_alloc() argument
91 mem->pageshift = __ffs(ua | (entries << PAGE_SHIFT)); in mm_iommu_do_alloc()
106 ret = pin_user_pages(ua + (entry << PAGE_SHIFT), n, in mm_iommu_do_alloc()
127 mem->ua = ua; in mm_iommu_do_alloc()
135 if ((mem2->ua < (ua + (entries << PAGE_SHIFT))) && in mm_iommu_do_alloc()
136 (ua < (mem2->ua + in mm_iommu_do_alloc()
186 long mm_iommu_new(struct mm_struct *mm, unsigned long ua, unsigned long entries, in mm_iommu_new() argument
189 return mm_iommu_do_alloc(mm, ua, entries, MM_IOMMU_TABLE_INVALID_HPA, in mm_iommu_new()
194 long mm_iommu_newdev(struct mm_struct *mm, unsigned long ua, in mm_iommu_newdev() argument
[all …]
/linux-6.1.9/net/tipc/
Daddr.h64 static inline void tipc_uaddr(struct tipc_uaddr *ua, u32 atype, u32 scope, in tipc_uaddr() argument
67 ua->family = AF_TIPC; in tipc_uaddr()
68 ua->addrtype = atype; in tipc_uaddr()
69 ua->scope = scope; in tipc_uaddr()
70 ua->sr.type = type; in tipc_uaddr()
71 ua->sr.lower = lower; in tipc_uaddr()
72 ua->sr.upper = upper; in tipc_uaddr()
75 static inline bool tipc_uaddr_valid(struct tipc_uaddr *ua, int len) in tipc_uaddr_valid() argument
81 atype = ua->addrtype; in tipc_uaddr_valid()
82 if (ua->family != AF_TIPC) in tipc_uaddr_valid()
[all …]
Dname_table.c229 static struct publication *tipc_publ_create(struct tipc_uaddr *ua, in tipc_publ_create() argument
238 p->sr = ua->sr; in tipc_publ_create()
240 p->scope = ua->scope; in tipc_publ_create()
258 struct tipc_uaddr *ua) in tipc_service_create() argument
271 service->type = ua->sr.type; in tipc_service_create()
275 hd = &nt->services[hash(ua->sr.type)]; in tipc_service_create()
283 struct tipc_uaddr *ua) in tipc_service_find_range() argument
287 service_range_foreach_match(sr, sc, ua->sr.lower, ua->sr.upper) { in tipc_service_find_range()
289 if (sr->lower == ua->sr.lower && sr->upper == ua->sr.upper) in tipc_service_find_range()
462 struct tipc_uaddr *ua) in tipc_service_find() argument
[all …]
Dname_table.h115 bool tipc_nametbl_lookup_anycast(struct net *net, struct tipc_uaddr *ua,
117 void tipc_nametbl_lookup_mcast_sockets(struct net *net, struct tipc_uaddr *ua,
119 void tipc_nametbl_lookup_mcast_nodes(struct net *net, struct tipc_uaddr *ua,
121 bool tipc_nametbl_lookup_group(struct net *net, struct tipc_uaddr *ua,
125 struct tipc_uaddr *ua);
126 struct publication *tipc_nametbl_publish(struct net *net, struct tipc_uaddr *ua,
128 void tipc_nametbl_withdraw(struct net *net, struct tipc_uaddr *ua,
131 struct tipc_uaddr *ua,
135 struct tipc_uaddr *ua,
Dsocket.c152 static int tipc_sk_publish(struct tipc_sock *tsk, struct tipc_uaddr *ua);
153 static int tipc_sk_withdraw(struct tipc_sock *tsk, struct tipc_uaddr *ua);
678 struct tipc_uaddr *ua = (struct tipc_uaddr *)skaddr; in __tipc_bind() local
685 if (ua->addrtype == TIPC_SERVICE_ADDR) { in __tipc_bind()
686 ua->addrtype = TIPC_SERVICE_RANGE; in __tipc_bind()
687 ua->sr.upper = ua->sr.lower; in __tipc_bind()
689 if (ua->scope < 0) { in __tipc_bind()
691 ua->scope = -ua->scope; in __tipc_bind()
694 if (ua->scope != TIPC_NODE_SCOPE) in __tipc_bind()
695 ua->scope = TIPC_CLUSTER_SCOPE; in __tipc_bind()
[all …]
Dname_distr.c239 struct tipc_uaddr ua; in tipc_publ_purge() local
241 tipc_uaddr(&ua, TIPC_SERVICE_RANGE, p->scope, p->sr.type, in tipc_publ_purge()
244 _p = tipc_nametbl_remove_publ(net, &ua, &p->sk, p->key); in tipc_publ_purge()
284 struct tipc_uaddr ua; in tipc_update_nametbl() local
287 tipc_uaddr(&ua, TIPC_SERVICE_RANGE, TIPC_CLUSTER_SCOPE, in tipc_update_nametbl()
293 p = tipc_nametbl_insert_publ(net, &ua, &sk, key); in tipc_update_nametbl()
299 p = tipc_nametbl_remove_publ(net, &ua, &sk, key); in tipc_update_nametbl()
306 ua.sr.type, ua.sr.lower, node); in tipc_update_nametbl()
Dudp_media.c119 struct udp_media_addr *ua) in tipc_udp_media_addr_set() argument
123 memcpy(addr->value, ua, sizeof(struct udp_media_addr)); in tipc_udp_media_addr_set()
125 if (tipc_udp_is_mcast_addr(ua)) in tipc_udp_media_addr_set()
132 struct udp_media_addr *ua = (struct udp_media_addr *)&a->value; in tipc_udp_addr2str() local
134 if (ntohs(ua->proto) == ETH_P_IP) in tipc_udp_addr2str()
135 snprintf(buf, size, "%pI4:%u", &ua->ipv4, ntohs(ua->port)); in tipc_udp_addr2str()
136 else if (ntohs(ua->proto) == ETH_P_IPV6) in tipc_udp_addr2str()
137 snprintf(buf, size, "%pI6:%u", &ua->ipv6, ntohs(ua->port)); in tipc_udp_addr2str()
147 struct udp_media_addr *ua; in tipc_udp_msg2addr() local
149 ua = (struct udp_media_addr *) (msg + TIPC_MEDIA_ADDR_OFFSET); in tipc_udp_msg2addr()
[all …]
Dnet.c130 struct tipc_uaddr ua; in tipc_net_finalize() local
132 tipc_uaddr(&ua, TIPC_SERVICE_RANGE, TIPC_CLUSTER_SCOPE, in tipc_net_finalize()
141 tipc_nametbl_publish(net, &ua, &sk, addr); in tipc_net_finalize()
/linux-6.1.9/fs/dlm/
Duser.c181 struct dlm_user_args *ua; in dlm_user_add_ast() local
201 ua = lkb->lkb_ua; in dlm_user_add_ast()
202 proc = ua->proc; in dlm_user_add_ast()
204 if ((flags & DLM_CB_BAST) && ua->bastaddr == NULL) in dlm_user_add_ast()
242 struct dlm_user_args *ua; in device_user_lock() local
263 ua = kzalloc(sizeof(struct dlm_user_args), GFP_NOFS); in device_user_lock()
264 if (!ua) in device_user_lock()
266 ua->proc = proc; in device_user_lock()
267 ua->user_lksb = params->lksb; in device_user_lock()
268 ua->castparam = params->castparam; in device_user_lock()
[all …]
Dmemory.c111 struct dlm_user_args *ua; in dlm_free_lkb() local
112 ua = lkb->lkb_ua; in dlm_free_lkb()
113 if (ua) { in dlm_free_lkb()
114 kfree(ua->lksb.sb_lvbptr); in dlm_free_lkb()
115 kfree(ua); in dlm_free_lkb()
Dlock.c5828 int dlm_user_request(struct dlm_ls *ls, struct dlm_user_args *ua, in dlm_user_request() argument
5832 int dlm_user_request(struct dlm_ls *ls, struct dlm_user_args *ua, in dlm_user_request()
5845 kfree(ua); in dlm_user_request()
5852 ua->lksb.sb_lvbptr = kzalloc(DLM_USER_LVB_LEN, GFP_NOFS); in dlm_user_request()
5853 if (!ua->lksb.sb_lvbptr) { in dlm_user_request()
5854 kfree(ua); in dlm_user_request()
5860 error = set_lock_args(mode, &ua->lksb, flags, namelen, timeout_cs, in dlm_user_request()
5861 fake_astfn, ua, fake_bastfn, &args); in dlm_user_request()
5863 error = set_lock_args(mode, &ua->lksb, flags, namelen, fake_astfn, ua, in dlm_user_request()
5867 kfree(ua->lksb.sb_lvbptr); in dlm_user_request()
[all …]
Dlock.h51 int dlm_user_request(struct dlm_ls *ls, struct dlm_user_args *ua, int mode,
58 int dlm_user_request(struct dlm_ls *ls, struct dlm_user_args *ua, int mode,
/linux-6.1.9/drivers/net/ethernet/ibm/
Dibmveth.h40 #define h_register_logical_lan(ua, buflst, rxq, fltlst, mac) \ argument
41 plpar_hcall_norets(H_REGISTER_LOGICAL_LAN, ua, buflst, rxq, fltlst, mac)
43 #define h_free_logical_lan(ua) \ argument
44 plpar_hcall_norets(H_FREE_LOGICAL_LAN, ua)
46 #define h_add_logical_lan_buffer(ua, buf) \ argument
47 plpar_hcall_norets(H_ADD_LOGICAL_LAN_BUFFER, ua, buf)
87 #define h_multicast_ctrl(ua, cmd, mac) \ argument
88 plpar_hcall_norets(H_MULTICAST_CTRL, ua, cmd, mac)
90 #define h_change_logical_lan_mac(ua, mac) \ argument
91 plpar_hcall_norets(H_CHANGE_LOGICAL_LAN_MAC, ua, mac)
/linux-6.1.9/arch/parisc/include/asm/
Dfutex.h15 static inline unsigned long _futex_hash_index(unsigned long ua) in _futex_hash_index() argument
17 return (ua >> 2) & 0x3fc; in _futex_hash_index()
38 unsigned long ua = (unsigned long)uaddr; in arch_futex_atomic_op_inuser() local
44 s = (arch_spinlock_t *)&lws_lock_start[_futex_hash_index(ua)]; in arch_futex_atomic_op_inuser()
94 unsigned long ua = (unsigned long)uaddr; in futex_atomic_cmpxchg_inatomic() local
109 s = (arch_spinlock_t *)&lws_lock_start[_futex_hash_index(ua)]; in futex_atomic_cmpxchg_inatomic()
/linux-6.1.9/arch/powerpc/kvm/
Dbook3s_64_vio.c355 unsigned long *ua) in kvmppc_tce_to_ua() argument
364 *ua = __gfn_to_hva_memslot(memslot, gfn) | in kvmppc_tce_to_ua()
376 unsigned long ua = 0; in kvmppc_tce_validate() local
385 if (kvmppc_tce_to_ua(stt->kvm, tce, &ua)) in kvmppc_tce_validate()
394 mem = mm_iommu_lookup(stt->kvm->mm, ua, 1ULL << shift); in kvmppc_tce_validate()
395 if (!mem || mm_iommu_ua_to_hpa(mem, ua, shift, &hpa)) { in kvmppc_tce_validate()
512 unsigned long entry, unsigned long ua, in kvmppc_tce_iommu_do_map() argument
524 mem = mm_iommu_lookup(kvm->mm, ua, 1ULL << tbl->it_page_shift); in kvmppc_tce_iommu_do_map()
529 if (WARN_ON_ONCE(mm_iommu_ua_to_hpa(mem, ua, tbl->it_page_shift, &hpa))) in kvmppc_tce_iommu_do_map()
544 *pua = cpu_to_be64(ua); in kvmppc_tce_iommu_do_map()
[all …]
/linux-6.1.9/drivers/scsi/ibmvscsi_tgt/
Dibmvscsi_tgt.h355 #define h_reg_crq(ua, tok, sz) \ argument
356 plpar_hcall_norets(H_REG_CRQ, ua, tok, sz)
357 #define h_free_crq(ua) \ argument
358 plpar_hcall_norets(H_FREE_CRQ, ua)
359 #define h_send_crq(ua, d1, d2) \ argument
360 plpar_hcall_norets(H_SEND_CRQ, ua, d1, d2)
/linux-6.1.9/include/linux/
Dmc6821.h28 } ua; member
41 #define ppra ua.pra
42 #define pddra ua.ddra
/linux-6.1.9/arch/powerpc/include/asm/
Dmmu_context.h26 unsigned long ua, unsigned long entries,
28 extern long mm_iommu_newdev(struct mm_struct *mm, unsigned long ua,
35 unsigned long ua, unsigned long size);
37 unsigned long ua, unsigned long entries);
39 unsigned long ua, unsigned int pageshift, unsigned long *hpa);
Dvio.h31 #define h_vio_signal(ua, mode) \ argument
32 plpar_hcall_norets(H_VIO_SIGNAL, ua, mode)
/linux-6.1.9/drivers/leds/flash/
Dleds-rt8515.c237 u32 ua; in rt8515_determine_max_intensity() local
243 ret = fwnode_property_read_u32(led, max_ua_prop, &ua); in rt8515_determine_max_intensity()
264 max_intensity = (ua / 10) / max_ma; in rt8515_determine_max_intensity()
268 max_ma, (ua / 1000), max_intensity); in rt8515_determine_max_intensity()
/linux-6.1.9/drivers/ata/
Dpata_sil680.c165 int ua = sil680_seldev(ap, adev, 0x0C); in sil680_set_dmamode() local
174 pci_read_config_word(pdev, ua, &ultra); in sil680_set_dmamode()
193 pci_write_config_word(pdev, ua, ultra); in sil680_set_dmamode()

12