Home
last modified time | relevance | path

Searched refs:events (Results 1 – 25 of 163) sorted by relevance

1234567

/linux-4.19.296/lib/
Dflex_proportions.c44 err = percpu_counter_init(&p->events, 1, gfp); in fprop_global_init()
53 percpu_counter_destroy(&p->events); in fprop_global_destroy()
66 s64 events; in fprop_new_period() local
70 events = percpu_counter_sum(&p->events); in fprop_new_period()
74 if (events <= 1) { in fprop_new_period()
80 events -= events >> periods; in fprop_new_period()
82 percpu_counter_add(&p->events, -events); in fprop_new_period()
96 pl->events = 0; in fprop_local_init_single()
123 pl->events >>= period - pl->period; in fprop_reflect_period_single()
125 pl->events = 0; in fprop_reflect_period_single()
[all …]
/linux-4.19.296/drivers/xen/events/
DMakefile1 obj-y += events.o
3 events-y += events_base.o
4 events-y += events_2l.o
5 events-y += events_fifo.o
/linux-4.19.296/fs/fscache/
Dobject.c75 { .events = (emask), .transit_to = STATE(state) }
175 unsigned long events, event_mask; in fscache_object_sm_dispatcher() local
182 object->debug_id, object->state->name, object->events); in fscache_object_sm_dispatcher()
189 events = object->events; in fscache_object_sm_dispatcher()
192 if (events & object->oob_event_mask) { in fscache_object_sm_dispatcher()
194 object->debug_id, events & object->oob_event_mask); in fscache_object_sm_dispatcher()
196 for (t = object->oob_table; t->events; t++) { in fscache_object_sm_dispatcher()
197 if (events & t->events) { in fscache_object_sm_dispatcher()
200 event = fls(events & t->events) - 1; in fscache_object_sm_dispatcher()
202 clear_bit(event, &object->events); in fscache_object_sm_dispatcher()
[all …]
/linux-4.19.296/include/uapi/linux/
Deventpoll.h78 __poll_t events; member
85 if ((epev->events & EPOLLWAKEUP) && !capable(CAP_BLOCK_SUSPEND)) in ep_take_care_of_epollwakeup()
86 epev->events &= ~EPOLLWAKEUP; in ep_take_care_of_epollwakeup()
91 epev->events &= ~EPOLLWAKEUP; in ep_take_care_of_epollwakeup()
/linux-4.19.296/fs/
Deventpoll.c260 struct epoll_event __user *events; member
888 pt->_key = epi->event.events; in ep_item_poll()
890 return vfs_poll(epi->ffd.file, pt) & epi->event.events; in ep_item_poll()
898 locked) & epi->event.events; in ep_item_poll()
957 epi->ffd.fd, epi->event.events, in ep_show_fdinfo()
1137 if (!(epi->event.events & ~EP_PRIVATE_BITS)) in ep_poll_callback()
1146 if (pollflags && !(pollflags & epi->event.events)) in ep_poll_callback()
1182 if ((epi->event.events & EPOLLEXCLUSIVE) && in ep_poll_callback()
1186 if (epi->event.events & EPOLLIN) in ep_poll_callback()
1190 if (epi->event.events & EPOLLOUT) in ep_poll_callback()
[all …]
Deventfd.c122 __poll_t events = 0; in eventfd_poll() local
168 events |= EPOLLIN; in eventfd_poll()
170 events |= EPOLLERR; in eventfd_poll()
172 events |= EPOLLOUT; in eventfd_poll()
174 return events; in eventfd_poll()
/linux-4.19.296/drivers/media/rc/
Dir-rc6-decoder.c316 struct ir_raw_event *events, unsigned int max) in ir_rc6_encode() argument
319 struct ir_raw_event *e = events; in ir_rc6_encode()
323 ret = ir_raw_gen_manchester(&e, max - (e - events), in ir_rc6_encode()
330 ret = ir_raw_gen_manchester(&e, max - (e - events), in ir_rc6_encode()
336 ret = ir_raw_gen_manchester(&e, max - (e - events), in ir_rc6_encode()
361 ret = ir_raw_gen_manchester(&e, max - (e - events), in ir_rc6_encode()
368 ret = ir_raw_gen_manchester(&e, max - (e - events), in ir_rc6_encode()
374 ret = ir_raw_gen_manchester(&e, max - (e - events), in ir_rc6_encode()
382 return e - events; in ir_rc6_encode()
Dir-rc5-decoder.c210 struct ir_raw_event *events, unsigned int max) in ir_rc5_encode() argument
213 struct ir_raw_event *e = events; in ir_rc5_encode()
247 ret = ir_raw_gen_manchester(&e, max - (e - events), in ir_rc5_encode()
265 return e - events; in ir_rc5_encode()
/linux-4.19.296/drivers/pci/hotplug/
Dpciehp_hpc.c529 u16 status, events = 0; in pciehp_isr() local
578 events |= status; in pciehp_isr()
579 if (!events) { in pciehp_isr()
598 ctrl_dbg(ctrl, "pending interrupts %#06x from Slot Status\n", events); in pciehp_isr()
606 if (events & PCI_EXP_SLTSTA_CC) { in pciehp_isr()
611 if (events == PCI_EXP_SLTSTA_CC) in pciehp_isr()
614 events &= ~PCI_EXP_SLTSTA_CC; in pciehp_isr()
618 ctrl_dbg(ctrl, "ignoring hotplug event %#06x\n", events); in pciehp_isr()
623 atomic_or(events, &ctrl->pending_events); in pciehp_isr()
633 u32 events; in pciehp_ist() local
[all …]
/linux-4.19.296/include/linux/
Dflex_proportions.h30 struct percpu_counter events; member
46 unsigned long events; member
78 struct percpu_counter events; member
Ddrbd_genl.h329 GENL_mc_group(events)
333 DRBD_EVENT, 1, events,
495 DRBD_RESOURCE_STATE, 34, events,
502 DRBD_DEVICE_STATE, 35, events,
509 DRBD_CONNECTION_STATE, 36, events,
516 DRBD_PEER_DEVICE_STATE, 37, events,
530 DRBD_HELPER, 40, events,
535 DRBD_INITIAL_STATE_DONE, 41, events,
/linux-4.19.296/drivers/dma-buf/
Ddma-buf.c166 __poll_t events; in dma_buf_poll() local
177 events = poll_requested_events(poll) & (EPOLLIN | EPOLLOUT); in dma_buf_poll()
178 if (!events) in dma_buf_poll()
196 if (fence_excl && (!(events & EPOLLOUT) || shared_count == 0)) { in dma_buf_poll()
206 events &= ~pevents; in dma_buf_poll()
211 if (events & pevents) { in dma_buf_poll()
214 events &= ~pevents; in dma_buf_poll()
218 events &= ~pevents; in dma_buf_poll()
231 if ((events & EPOLLOUT) && shared_count > 0) { in dma_buf_poll()
238 events &= ~EPOLLOUT; in dma_buf_poll()
[all …]
/linux-4.19.296/drivers/virt/vboxguest/
Dvboxguest_core.c981 u32 events; in vbg_wait_event_cond() local
985 events = gdev->pending_events & event_mask; in vbg_wait_event_cond()
986 wakeup = events || session->cancel_waiters; in vbg_wait_event_cond()
998 u32 events = gdev->pending_events & event_mask; in vbg_consume_events_locked() local
1000 gdev->pending_events &= ~events; in vbg_consume_events_locked()
1001 return events; in vbg_consume_events_locked()
1009 u32 event_mask = wait->u.in.events; in vbg_ioctl_wait_for_events()
1022 wait->u.out.events = 0; in vbg_ioctl_wait_for_events()
1036 wait->u.out.events = in vbg_ioctl_wait_for_events()
1046 } while (ret == 0 && wait->u.out.events == 0); in vbg_ioctl_wait_for_events()
[all …]
/linux-4.19.296/drivers/media/dvb-core/
Ddvb_frontend.c108 struct dvb_fe_events events; member
253 struct dvb_fe_events *events = &fepriv->events; in dvb_frontend_add_event() local
262 mutex_lock(&events->mtx); in dvb_frontend_add_event()
264 wp = (events->eventw + 1) % MAX_EVENT; in dvb_frontend_add_event()
265 if (wp == events->eventr) { in dvb_frontend_add_event()
266 events->overflow = 1; in dvb_frontend_add_event()
267 events->eventr = (events->eventr + 1) % MAX_EVENT; in dvb_frontend_add_event()
270 e = &events->events[events->eventw]; in dvb_frontend_add_event()
274 events->eventw = wp; in dvb_frontend_add_event()
276 mutex_unlock(&events->mtx); in dvb_frontend_add_event()
[all …]
/linux-4.19.296/drivers/misc/ibmasm/
Devent.c67 event = &buffer->events[buffer->next_index]; in ibmasm_receive_event()
110 event = &buffer->events[index]; in ibmasm_get_next_event()
113 event = &buffer->events[index]; in ibmasm_get_next_event()
163 event = buffer->events; in ibmasm_event_buffer_init()
/linux-4.19.296/virt/kvm/arm/
Darm.c1084 struct kvm_vcpu_events *events) in kvm_arm_vcpu_get_events() argument
1086 memset(events, 0, sizeof(*events)); in kvm_arm_vcpu_get_events()
1088 return __kvm_arm_vcpu_get_events(vcpu, events); in kvm_arm_vcpu_get_events()
1092 struct kvm_vcpu_events *events) in kvm_arm_vcpu_set_events() argument
1097 for (i = 0; i < ARRAY_SIZE(events->reserved); i++) in kvm_arm_vcpu_set_events()
1098 if (events->reserved[i]) in kvm_arm_vcpu_set_events()
1102 for (i = 0; i < ARRAY_SIZE(events->exception.pad); i++) in kvm_arm_vcpu_set_events()
1103 if (events->exception.pad[i]) in kvm_arm_vcpu_set_events()
1106 return __kvm_arm_vcpu_set_events(vcpu, events); in kvm_arm_vcpu_set_events()
1198 struct kvm_vcpu_events events; in kvm_arch_vcpu_ioctl() local
[all …]
/linux-4.19.296/drivers/rtc/
Drtc-at91sam9.c82 unsigned long events; member
292 rtc->events |= (RTC_AF | RTC_IRQF); in at91_rtc_cache_events()
296 rtc->events |= (RTC_UF | RTC_IRQF); in at91_rtc_cache_events()
303 if (!rtc->events) in at91_rtc_flush_events()
306 rtc_update_irq(rtc->rtcdev, 1, rtc->events); in at91_rtc_flush_events()
307 rtc->events = 0; in at91_rtc_flush_events()
310 rtc->events >> 8, rtc->events & 0x000000FF); in at91_rtc_flush_events()
Drtc-ds1553.c189 unsigned long events = 0; in ds1553_rtc_interrupt() local
194 events = RTC_IRQF; in ds1553_rtc_interrupt()
196 events |= RTC_UF; in ds1553_rtc_interrupt()
198 events |= RTC_AF; in ds1553_rtc_interrupt()
199 rtc_update_irq(pdata->rtc, 1, events); in ds1553_rtc_interrupt()
202 return events ? IRQ_HANDLED : IRQ_NONE; in ds1553_rtc_interrupt()
Drtc-stk17ta8.c197 unsigned long events = 0; in stk17ta8_rtc_interrupt() local
202 events = RTC_IRQF; in stk17ta8_rtc_interrupt()
204 events |= RTC_UF; in stk17ta8_rtc_interrupt()
206 events |= RTC_AF; in stk17ta8_rtc_interrupt()
207 rtc_update_irq(pdata->rtc, 1, events); in stk17ta8_rtc_interrupt()
210 return events ? IRQ_HANDLED : IRQ_NONE; in stk17ta8_rtc_interrupt()
Drtc-ds1511.c354 unsigned long events = 0; in ds1511_interrupt() local
361 events = RTC_IRQF; in ds1511_interrupt()
363 events |= RTC_UF; in ds1511_interrupt()
365 events |= RTC_AF; in ds1511_interrupt()
366 rtc_update_irq(pdata->rtc, 1, events); in ds1511_interrupt()
369 return events ? IRQ_HANDLED : IRQ_NONE; in ds1511_interrupt()
Drtc-at91rm9200.c292 unsigned long events = 0; in at91_rtc_interrupt() local
299 events |= (RTC_AF | RTC_IRQF); in at91_rtc_interrupt()
310 rtc_update_irq(rtc, 1, events); in at91_rtc_interrupt()
313 __func__, events >> 8, events & 0x000000FF); in at91_rtc_interrupt()
315 cached_events |= events; in at91_rtc_interrupt()
/linux-4.19.296/drivers/media/v4l2-core/
Dv4l2-event.c124 kev = sev->events + sev_pos(sev, 0); in __v4l2_event_queue_fh()
136 sev->events + sev_pos(sev, 0); in __v4l2_event_queue_fh()
142 kev = sev->events + sev_pos(sev, sev->in_use); in __v4l2_event_queue_fh()
206 list_del(&sev->events[sev_pos(sev, i)].list); in __v4l2_event_unsubscribe()
227 sev = kvzalloc(struct_size(sev, events, elems), GFP_KERNEL); in v4l2_event_subscribe()
231 sev->events[i].sev = sev; in v4l2_event_subscribe()
/linux-4.19.296/drivers/iio/dac/
Dad5421.c207 unsigned int events; in ad5421_fault_handler() local
236 events = (old_fault ^ fault) & fault; in ad5421_fault_handler()
237 events &= st->fault_mask; in ad5421_fault_handler()
239 if (events & AD5421_FAULT_OVER_CURRENT) { in ad5421_fault_handler()
248 if (events & AD5421_FAULT_UNDER_CURRENT) { in ad5421_fault_handler()
257 if (events & AD5421_FAULT_TEMP_OVER_140) { in ad5421_fault_handler()
/linux-4.19.296/fs/nfs/
Diostat.h23 unsigned long events[__NFSIOS_COUNTSMAX]; member
29 this_cpu_inc(server->io_stats->events[stat]); in nfs_inc_server_stats()
/linux-4.19.296/drivers/parisc/
Dled.c410 unsigned long events[NR_VM_EVENT_ITEMS]; in led_get_diskio_activity() local
413 all_vm_events(events); in led_get_diskio_activity()
417 changed = (events[PGPGIN] != last_pgpgin) || in led_get_diskio_activity()
418 (events[PGPGOUT] != last_pgpgout); in led_get_diskio_activity()
419 last_pgpgin = events[PGPGIN]; in led_get_diskio_activity()
420 last_pgpgout = events[PGPGOUT]; in led_get_diskio_activity()

1234567