/kernel/linux/linux-5.10/drivers/input/ |
H A D | input.c | 629 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 D | vfio.c | 901 * 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 D | uvc_v4l2.c | 566 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 D | cx231xx-video.c | 1510 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 D | uvc_v4l2.c | 632 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 D | uvcvideo.h | 558 struct mutex lock; /* Protects users */ 559 unsigned int users; member
|
/kernel/linux/linux-6.6/drivers/media/usb/cx231xx/ |
H A D | cx231xx-video.c | 1510 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 D | ddbridge-core.c | 862 .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 D | skbuff.h | 544 * 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 D | sony-laptop.c | 191 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 D | skbuff.h | 838 * @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 D | sony-laptop.c | 191 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 D | ddbridge-core.c | 853 .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 D | mptsas.c | 292 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 D | ubi.h | 192 * @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 D | dst_ca.c | 651 .users = 1,
|
/kernel/linux/linux-5.10/drivers/media/pci/ngene/ |
H A D | ngene.h | 658 int users; member
|
/kernel/linux/linux-5.10/security/tomoyo/ |
H A D | domain.c | 876 atomic_inc(&domain->users); in tomoyo_find_next_domain()
|
/kernel/linux/linux-6.6/drivers/mtd/ubi/ |
H A D | ubi.h | 192 * @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 D | l2cap.h | 664 struct list_head users; member
|
/kernel/linux/linux-6.6/drivers/media/pci/ngene/ |
H A D | ngene.h | 621 int users; member
|
/kernel/linux/linux-6.6/drivers/media/pci/bt8xx/ |
H A D | dst_ca.c | 651 .users = 1,
|
/kernel/linux/linux-6.6/security/tomoyo/ |
H A D | domain.c | 873 atomic_inc(&domain->users); in tomoyo_find_next_domain()
|
/kernel/linux/linux-5.10/net/netlink/ |
H A D | af_netlink.c | 1913 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 D | fork.c | 946 /* 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()
|