Home
last modified time | relevance | path

Searched refs:users (Results 351 - 375 of 450) sorted by relevance

1...<<1112131415161718

/kernel/linux/linux-5.10/drivers/input/
H A Dinput.c629 if (dev->users++) { in input_open_device()
640 dev->users--; in input_open_device()
692 if (!--dev->users) { in input_close_device()
1886 * NOTE: the owner device is set up as parent of input device and users
/kernel/linux/linux-5.10/drivers/vfio/
H A Dvfio.c901 * for any external users that need to re-acquire a group reference in vfio_unregister_group_dev()
1067 * the group can be assigned to specific users. Therefore, only by in vfio_ioctl_set_iommu()
1282 * VFIO_GROUP_UNSET_CONTAINER should fail if there are other users or
1289 int users = atomic_cmpxchg(&group->container_users, 1, 0); in vfio_group_unset_container() local
1291 if (!users) in vfio_group_unset_container()
1293 if (users != 1) in vfio_group_unset_container()
1302 * When removing container users, anything that removes the last user
/kernel/linux/linux-5.10/drivers/media/usb/uvc/
H A Duvc_v4l2.c566 if (stream->dev->users == 0) { in uvc_v4l2_open()
576 stream->dev->users++; in uvc_v4l2_open()
608 if (--stream->dev->users == 0) in uvc_v4l2_release()
/kernel/linux/linux-5.10/drivers/media/usb/cx231xx/
H A Dcx231xx-video.c1510 if (dev->users++ == 0) { in cx231xx_v4l2_open()
1587 if (--dev->users == 0) { in cx231xx_close()
1619 if (dev->users == 0) { in cx231xx_close()
/kernel/linux/linux-6.6/drivers/media/usb/uvc/
H A Duvc_v4l2.c632 if (stream->dev->users == 0) { in uvc_v4l2_open()
642 stream->dev->users++; in uvc_v4l2_open()
674 if (--stream->dev->users == 0) in uvc_v4l2_release()
H A Duvcvideo.h558 struct mutex lock; /* Protects users */
559 unsigned int users; member
/kernel/linux/linux-6.6/drivers/media/usb/cx231xx/
H A Dcx231xx-video.c1510 if (dev->users++ == 0) { in cx231xx_v4l2_open()
1587 if (--dev->users == 0) { in cx231xx_close()
1619 if (dev->users == 0) { in cx231xx_close()
/kernel/linux/linux-5.10/drivers/media/pci/ddbridge/
H A Dddbridge-core.c862 .users = 2,
1283 if (!dvb->users) in start_feed()
1286 return ++dvb->users; in start_feed()
1295 if (--dvb->users) in stop_feed()
1296 return dvb->users; in stop_feed()
/kernel/linux/linux-5.10/include/linux/
H A Dskbuff.h544 * All users must obey the rule that the skb->data reference count must be
712 * @users: User count - see {datagram,tcp}.c
925 refcount_t users; member
1054 if (likely(refcount_read(&skb->users) == 1)) in skb_unref()
1056 else if (likely(!refcount_dec_and_test(&skb->users))) in skb_unref()
1618 refcount_inc(&skb->users); in skb_get()
1623 * If users == 1, we are the only owner and can avoid redundant atomic changes.
1699 return refcount_read(&skb->users) != 1; in skb_shared()
1883 * this is needed for now since a whole lot of users of the skb-queue
/kernel/linux/linux-5.10/drivers/platform/x86/
H A Dsony-laptop.c191 atomic_t users; member
200 .users = ATOMIC_INIT(0),
447 if (atomic_add_return(1, &sony_laptop_input.users) > 1) in sony_laptop_setup_input()
529 atomic_dec(&sony_laptop_input.users); in sony_laptop_setup_input()
538 if (!atomic_dec_and_test(&sony_laptop_input.users)) in sony_laptop_remove_input()
/kernel/linux/linux-6.6/include/linux/
H A Dskbuff.h838 * @users: User count - see {datagram,tcp}.c
1057 refcount_t users; member
1217 if (likely(refcount_read(&skb->users) == 1)) in skb_unref()
1219 else if (likely(!refcount_dec_and_test(&skb->users))) in skb_unref()
1885 refcount_inc(&skb->users); in skb_get()
1890 * If users == 1, we are the only owner and can avoid redundant atomic changes.
1984 return refcount_read(&skb->users) != 1; in skb_shared()
2168 * this is needed for now since a whole lot of users of the skb-queue
/kernel/linux/linux-6.6/drivers/platform/x86/
H A Dsony-laptop.c191 atomic_t users; member
200 .users = ATOMIC_INIT(0),
447 if (atomic_add_return(1, &sony_laptop_input.users) > 1) in sony_laptop_setup_input()
529 atomic_dec(&sony_laptop_input.users); in sony_laptop_setup_input()
538 if (!atomic_dec_and_test(&sony_laptop_input.users)) in sony_laptop_remove_input()
/kernel/linux/linux-6.6/drivers/media/pci/ddbridge/
H A Dddbridge-core.c853 .users = 2,
1274 if (!dvb->users) in start_feed()
1277 return ++dvb->users; in start_feed()
1286 if (--dvb->users) in stop_feed()
1287 return dvb->users; in stop_feed()
/kernel/linux/linux-6.6/drivers/message/fusion/
H A Dmptsas.c292 fw_event->users = 1; in mptsas_add_fw_event()
334 fw_event->users--; in mptsas_free_fw_event()
335 if (!fw_event->users) in mptsas_free_fw_event()
373 fw_event->users++; in mptsas_cleanup_fw_event_q()
380 fw_event->users--; in mptsas_cleanup_fw_event_q()
381 fw_event->users--; in mptsas_cleanup_fw_event_q()
382 WARN_ON_ONCE(fw_event->users); in mptsas_cleanup_fw_event_q()
/kernel/linux/linux-5.10/drivers/mtd/ubi/
H A Dubi.h192 * @users: how many tasks are using this logical eraseblock or wait for it
205 int users; member
289 * @readers: number of users holding this volume in read-only mode
290 * @writers: number of users holding this volume in read-write mode
/kernel/linux/linux-5.10/drivers/media/pci/bt8xx/
H A Ddst_ca.c651 .users = 1,
/kernel/linux/linux-5.10/drivers/media/pci/ngene/
H A Dngene.h658 int users; member
/kernel/linux/linux-5.10/security/tomoyo/
H A Ddomain.c876 atomic_inc(&domain->users); in tomoyo_find_next_domain()
/kernel/linux/linux-6.6/drivers/mtd/ubi/
H A Dubi.h192 * @users: how many tasks are using this logical eraseblock or wait for it
205 int users; member
289 * @readers: number of users holding this volume in read-only mode
290 * @writers: number of users holding this volume in read-write mode
/kernel/linux/linux-6.6/include/net/bluetooth/
H A Dl2cap.h664 struct list_head users; member
/kernel/linux/linux-6.6/drivers/media/pci/ngene/
H A Dngene.h621 int users; member
/kernel/linux/linux-6.6/drivers/media/pci/bt8xx/
H A Ddst_ca.c651 .users = 1,
/kernel/linux/linux-6.6/security/tomoyo/
H A Ddomain.c873 atomic_inc(&domain->users); in tomoyo_find_next_domain()
/kernel/linux/linux-5.10/net/netlink/
H A Daf_netlink.c1913 refcount_inc(&skb->users); in netlink_sendmsg()
2331 refcount_inc(&skb->users); in __netlink_dump_start()
2534 refcount_inc(&skb->users); in nlmsg_notify()
/kernel/linux/linux-5.10/kernel/
H A Dfork.c946 /* One for the rcu users */ in dup_task_struct()
1167 * Main users are mmput() and sys_execve(). Callers prevent concurrent
1476 fs->users++; in copy_fs()
2941 if (fs->users == 1) in unshare_fs()
3055 if (--fs->users) in ksys_unshare()

Completed in 74 milliseconds

1...<<1112131415161718