/drivers/spi/ |
H A D | spi-pxa2xx-pci.c | 26 if (ssp->port_id == port && ssp->use_count == 0) { 27 ssp->use_count++; 45 if (ssp->use_count) { 46 ssp->use_count--;
|
/drivers/input/ |
H A D | input-mt.c | 128 * @use_count: report number of active contacts as finger count 131 * ABS_PRESSURE. Touchpad finger count is emulated if use_count is true. 136 void input_mt_report_pointer_emulation(struct input_dev *dev, bool use_count) argument 157 if (use_count)
|
/drivers/net/wireless/mwifiex/ |
H A D | decl.h | 103 u8 use_count; member in struct:mwifiex_rxinfo
|
/drivers/staging/iio/ |
H A D | trigger.h | 49 * @use_count: use count for the trigger 65 int use_count; member in struct:iio_trigger
|
H A D | industrialio-trigger.c | 143 if (!trig->use_count) 146 trig->use_count++; 162 if (!trig->use_count) 165 trig->use_count++; 173 trig->use_count--; 174 if (trig->use_count == 0 && trig->ops && trig->ops->try_reenable)
|
/drivers/video/ |
H A D | sh_mobile_lcdcfb.h | 65 int use_count; member in struct:sh_mobile_lcdc_chan
|
H A D | sh_mobile_lcdcfb.c | 1127 if (ch->use_count > 1 || (ch->use_count == 1 && !info->fbcon_par)) 1166 dev_dbg(info->dev, "%s(): %d users\n", __func__, ch->use_count); 1168 ch->use_count--; 1187 ch->use_count++; 1189 dev_dbg(info->dev, "%s(): %d users\n", __func__, ch->use_count);
|
/drivers/misc/sgi-xp/ |
H A D | xpnet.c | 96 atomic_t use_count; member in struct:xpnet_pending_msg 366 if (atomic_dec_return(&queued_msg->use_count) == 0) { 407 atomic_inc(&queued_msg->use_count); 412 atomic_dec(&queued_msg->use_count); 474 atomic_set(&queued_msg->use_count, 1); 501 if (atomic_dec_return(&queued_msg->use_count) == 0) {
|
/drivers/acpi/acpica/ |
H A D | utmutex.c | 169 acpi_gbl_mutex_info[mutex_id].use_count = 0; 271 acpi_gbl_mutex_info[mutex_id].use_count++;
|
H A D | utglobal.c | 280 acpi_gbl_mutex_info[i].use_count = 0;
|
/drivers/mfd/ |
H A D | mcp-core.c | 141 if (mcp->use_count++ == 0) 160 if (--mcp->use_count == 0)
|
/drivers/media/video/s5p-fimc/ |
H A D | fimc-mdevice.h | 38 int use_count; member in struct:fimc_camclk_info
|
H A D | fimc-mdevice.c | 69 int *use_count; local 75 use_count = &sd->entity.use_count; 76 if (on && (*use_count)++ > 0) 78 else if (!on && (*use_count == 0 || --(*use_count) > 0)) 614 if (camclk->use_count > 0 && 618 if (camclk->use_count++ == 0) { 630 if (WARN_ON(camclk->use_count == 0)) 633 if (--camclk->use_count [all...] |
/drivers/isdn/gigaset/ |
H A D | common.c | 193 if (bcs->use_count || !try_module_get(bcs->cs->driver->owner)) { 199 ++bcs->use_count; 219 if (!cs->bcs[i].use_count) { 220 ++cs->bcs[i].use_count; 243 --bcs->use_count; 257 if (cs->bcs[i].use_count) { 264 ++cs->bcs[i].use_count; 280 --cs->bcs[i].use_count; 292 ++cs->bcs[i].use_count; 645 bcs->use_count [all...] |
/drivers/gpu/drm/ |
H A D | drm_info.c | 128 atomic_inc(&q->use_count); 133 atomic_read(&q->use_count), 142 atomic_dec(&q->use_count);
|
/drivers/ps3/ |
H A D | ps3-vuart.c | 884 int use_count; member in struct:vuart_bus_priv 927 vuart_bus_priv.use_count++; 929 BUG_ON(vuart_bus_priv.use_count > 2); 931 if (vuart_bus_priv.use_count != 1) 973 vuart_bus_priv.use_count--; 982 vuart_bus_priv.use_count--; 984 BUG_ON(vuart_bus_priv.use_count < 0); 986 if (vuart_bus_priv.use_count != 0)
|
/drivers/s390/block/ |
H A D | dcssblk.c | 48 atomic_t use_count; member in struct:dcssblk_dev_info 351 if (atomic_read(&dev_info->use_count)) { 448 if (atomic_read(&dev_info->use_count) == 0) { 744 if (atomic_read(&dev_info->use_count) != 0) { 783 atomic_inc(&dev_info->use_count); 802 if (atomic_dec_and_test(&dev_info->use_count)
|
/drivers/regulator/ |
H A D | core.c | 492 return sprintf(buf, "%d\n", rdev->use_count); 1281 rdev->use_count = 1; 1283 rdev->use_count = 0; 1462 if (rdev->use_count == 0) { 1510 rdev->use_count++; 1553 if (WARN(rdev->use_count <= 0, 1558 if (rdev->use_count == 1 && 1578 rdev->use_count = 0; 1579 } else if (rdev->use_count > 1) { 1586 rdev->use_count [all...] |
/drivers/media/video/omap3isp/ |
H A D | isp.c | 537 * To achieve this use the entity use_count field to track the number of users. 538 * For entities corresponding to video device nodes the use_count field stores 540 * use_count field stores the total number of users of all video device nodes 567 use += entity->use_count; 592 if (entity->use_count == 0 && change > 0 && subdev != NULL) { 598 entity->use_count += change; 599 WARN_ON(entity->use_count < 0); 601 if (entity->use_count == 0 && change < 0 && subdev != NULL) 665 entity->use_count += change; 666 WARN_ON(entity->use_count < [all...] |
/drivers/usb/core/ |
H A D | urb.c | 629 wait_event(usb_kill_urb_queue, atomic_read(&urb->use_count) == 0); 670 wait_event(usb_kill_urb_queue, atomic_read(&urb->use_count) == 0);
|
/drivers/video/i810/ |
H A D | i810.h | 267 unsigned int use_count; member in struct:i810fb_par
|
/drivers/media/video/ |
H A D | sh_vou.c | 66 atomic_t use_count; member in struct:sh_vou_device 1174 if (atomic_inc_return(&vou_dev->use_count) == 1) { 1181 atomic_dec(&vou_dev->use_count); 1206 if (!atomic_dec_return(&vou_dev->use_count)) { 1335 atomic_set(&vou_dev->use_count, 0);
|
H A D | soc_camera.c | 512 icd->use_count++; 515 if (icd->use_count == 1) { 578 * and use_count == 1 588 icd->use_count--; 599 icd->use_count--; 600 if (!icd->use_count) { 1373 icd->use_count = 0;
|
/drivers/staging/comedi/ |
H A D | comedidev.h | 199 int use_count; member in struct:comedi_device
|
/drivers/cdrom/ |
H A D | cdrom.c | 991 cdi->use_count++; 1014 cdi->name, cdi->use_count); 1023 cdi->use_count--; 1198 if (cdi->use_count > 0) 1199 cdi->use_count--; 1201 if (cdi->use_count == 0) { 1217 if (CDROM_CAN(CDC_RAM) && !cdi->use_count && cdi->for_data) 1221 if (cdi->use_count == 0) { /* last process that closes dev*/ 1372 if (cdi->use_count > 1 || cdi->keeplocked) { 2290 if (cdi->use_count ! [all...] |