Home
last modified time | relevance | path

Searched refs:event_mask (Results 1 – 25 of 84) sorted by relevance

1234

/linux-6.6.21/drivers/accel/habanalabs/common/
Ddecoder.c50 u32 irq_status, event_mask = 0; in dec_abnrm_intr_work() local
67 event_mask |= HL_NOTIFIER_EVENT_GENERAL_HW_ERR; in dec_abnrm_intr_work()
71 event_mask |= HL_NOTIFIER_EVENT_UNDEFINED_OPCODE; in dec_abnrm_intr_work()
76 event_mask |= HL_NOTIFIER_EVENT_USER_ENGINE_ERR; in dec_abnrm_intr_work()
79 event_mask |= HL_NOTIFIER_EVENT_DEVICE_RESET; in dec_abnrm_intr_work()
80 hl_device_cond_reset(hdev, 0, event_mask); in dec_abnrm_intr_work()
81 } else if (event_mask) { in dec_abnrm_intr_work()
82 hl_notifier_event_send_all(hdev, event_mask); in dec_abnrm_intr_work()
Ddevice.c1007 u64 event_mask = HL_NOTIFIER_EVENT_DEVICE_RESET | HL_NOTIFIER_EVENT_DEVICE_UNAVAILABLE; in hl_device_heartbeat() local
1020 info.event_mask = &event_mask; in hl_device_heartbeat()
1022 hl_device_cond_reset(hdev, HL_DRV_RESET_HARD | HL_DRV_RESET_HEARTBEAT, event_mask); in hl_device_heartbeat()
1907 int hl_device_cond_reset(struct hl_device *hdev, u32 flags, u64 event_mask) in hl_device_cond_reset() argument
1916 if (!(event_mask & HL_NOTIFIER_EVENT_DEVICE_RESET)) { in hl_device_cond_reset()
1946 hl_notifier_event_send_all(hdev, event_mask); in hl_device_cond_reset()
1955 if (event_mask) in hl_device_cond_reset()
1956 hl_notifier_event_send_all(hdev, event_mask); in hl_device_cond_reset()
1963 static void hl_notifier_event_send(struct hl_notifier_event *notifier_event, u64 event_mask) in hl_notifier_event_send() argument
1966 notifier_event->events_mask |= event_mask; in hl_notifier_event_send()
[all …]
/linux-6.6.21/drivers/gpio/
Dgpio-xgs-iproc.c70 u32 int_mask, irq_type, event_mask; in iproc_gpio_irq_unmask() local
75 event_mask = readl_relaxed(chip->base + IPROC_GPIO_CCA_INT_EVENT_MASK); in iproc_gpio_irq_unmask()
79 event_mask |= 1 << pin; in iproc_gpio_irq_unmask()
80 writel_relaxed(event_mask, in iproc_gpio_irq_unmask()
97 u32 irq_type, int_mask, event_mask; in iproc_gpio_irq_mask() local
101 event_mask = readl_relaxed(chip->base + IPROC_GPIO_CCA_INT_EVENT_MASK); in iproc_gpio_irq_mask()
105 event_mask &= ~BIT(pin); in iproc_gpio_irq_mask()
106 writel_relaxed(event_mask, in iproc_gpio_irq_mask()
/linux-6.6.21/drivers/input/keyboard/
Diqs62x-keys.c106 unsigned int event_mask = 0; in iqs62x_keys_init() local
124 event_mask |= iqs62x->dev_desc->prox_mask; in iqs62x_keys_init()
126 event_mask |= (iqs62x->dev_desc->hyst_mask | in iqs62x_keys_init()
148 event_mask |= iqs62x->dev_desc->hall_mask; in iqs62x_keys_init()
167 event_mask |= IQS624_HALL_UI_INT_EVENT; in iqs62x_keys_init()
170 event_mask |= IQS624_HALL_UI_INT_EVENT; in iqs62x_keys_init()
184 return regmap_update_bits(iqs62x->regmap, event_reg, event_mask, 0); in iqs62x_keys_init()
/linux-6.6.21/arch/powerpc/platforms/cell/spufs/
Dspu_restore.c145 unsigned int event_mask; in restore_event_mask() local
150 offset = LSCSA_QW_OFFSET(event_mask); in restore_event_mask()
151 event_mask = regs_spill[offset].slot[0]; in restore_event_mask()
152 spu_writech(SPU_WrEventMask, event_mask); in restore_event_mask()
Dspu_utils.h56 unsigned int event_mask = 0; in set_event_mask() local
63 spu_writech(SPU_WrEventMask, event_mask); in set_event_mask()
/linux-6.6.21/arch/x86/events/intel/
Duncore_snbep.c893 .event_mask = SNBEP_U_MSR_PMON_RAW_EVENT_MASK,
1049 .event_mask = SNBEP_CBO_MSR_PMON_RAW_EVENT_MASK,
1159 .event_mask = SNBEP_PCU_MSR_PMON_RAW_EVENT_MASK,
1240 .event_mask = SNBEP_PMON_RAW_EVENT_MASK, \
1272 .event_mask = SNBEP_QPI_PCI_PMON_RAW_EVENT_MASK,
1558 .event_mask = IVBEP_PMON_RAW_EVENT_MASK, \
1671 .event_mask = IVBEP_U_MSR_PMON_RAW_EVENT_MASK,
1801 .event_mask = IVBEP_CBO_MSR_PMON_RAW_EVENT_MASK,
1824 .event_mask = IVBEP_PCU_MSR_PMON_RAW_EVENT_MASK,
1912 .event_mask = IVBEP_PMON_RAW_EVENT_MASK,
[all …]
Duncore_snb.c337 .event_mask = SNB_UNC_RAW_EVENT_MASK,
351 .event_mask = SNB_UNC_RAW_EVENT_MASK,
415 .event_mask = SNB_UNC_RAW_EVENT_MASK,
448 .event_mask = SNB_UNC_RAW_EVENT_MASK,
477 .event_mask = SNB_UNC_CTL_EV_SEL_MASK,
490 .event_mask = SNB_UNC_RAW_EVENT_MASK,
593 .event_mask = ADL_UNC_RAW_EVENT_MASK,
606 .event_mask = SNB_UNC_RAW_EVENT_MASK,
621 .event_mask = SNB_UNC_CTL_EV_SEL_MASK,
646 .event_mask = ADL_UNC_RAW_EVENT_MASK,
[all …]
Duncore_nhmex.c251 else if (box->pmu->type->event_mask & NHMEX_PMON_CTL_EN_BIT0) in nhmex_uncore_msr_enable_event()
288 .event_mask = NHMEX_U_PMON_RAW_EVENT_MASK,
320 .event_mask = NHMEX_PMON_RAW_EVENT_MASK,
342 .event_mask = NHMEX_PMON_RAW_EVENT_MASK,
431 .event_mask = NHMEX_B_PMON_RAW_EVENT_MASK,
508 .event_mask = NHMEX_PMON_RAW_EVENT_MASK,
934 .event_mask = NHMEX_M_PMON_RAW_EVENT_MASK,
1197 .event_mask = NHMEX_R_PMON_RAW_EVENT_MASK,
/linux-6.6.21/drivers/platform/chrome/
Dcros_typec_switch.c112 u32 event_mask; in cros_typec_configure_mux() local
123 event_mask = PD_STATUS_EVENT_MUX_0_SET_DONE; in cros_typec_configure_mux()
125 event_mask = PD_STATUS_EVENT_MUX_1_SET_DONE; in cros_typec_configure_mux()
127 ret = cros_typec_send_clear_event(sdata, port_num, event_mask); in cros_typec_configure_mux()
139 if (cros_typec_check_event(sdata, port_num, event_mask)) in cros_typec_configure_mux()
Dcros_ec_chardev.c42 unsigned long event_mask; member
103 if (!(event_bit & priv->event_mask) || in cros_ec_chardev_mkbp_event()
210 if (priv->event_mask) { /* queued MKBP event */ in cros_ec_chardev_read()
359 priv->event_mask = arg; in cros_ec_chardev_ioctl()
/linux-6.6.21/drivers/accel/habanalabs/gaudi2/
Dgaudi2.c7839 enum gaudi2_engine_id id, u64 *event_mask) in gaudi2_razwi_rr_hbw_shared_printf_info() argument
7858 rd_wr_flag | HL_RAZWI_HBW, event_mask); in gaudi2_razwi_rr_hbw_shared_printf_info()
7867 enum gaudi2_engine_id id, u64 *event_mask) in gaudi2_razwi_rr_lbw_shared_printf_info() argument
7884 hl_handle_razwi(hdev, razwi_addr, &eng_id, 1, rd_wr_flag | HL_RAZWI_LBW, event_mask); in gaudi2_razwi_rr_lbw_shared_printf_info()
7941 u8 module_sub_idx, u64 *event_mask) in gaudi2_ack_module_razwi_event_handler() argument
8064 initiator_name, eng_id, event_mask); in gaudi2_ack_module_razwi_event_handler()
8072 initiator_name, eng_id, event_mask); in gaudi2_ack_module_razwi_event_handler()
8080 initiator_name, eng_id, event_mask); in gaudi2_ack_module_razwi_event_handler()
8088 initiator_name, eng_id, event_mask); in gaudi2_ack_module_razwi_event_handler()
8166 u64 *event_mask) in gaudi2_handle_psoc_razwi_happened() argument
[all …]
/linux-6.6.21/net/bluetooth/
Dhci_sock.c136 __u32 event_mask[2]; member
184 if (!hci_test_bit(flt_event, &flt->event_mask)) in is_filtered_packet()
1978 uf.event_mask[0] = *((u32 *) f->event_mask + 0); in hci_sock_setsockopt_old()
1979 uf.event_mask[1] = *((u32 *) f->event_mask + 1); in hci_sock_setsockopt_old()
1990 uf.event_mask[0] &= *((u32 *) hci_sec_filter.event_mask + 0); in hci_sock_setsockopt_old()
1991 uf.event_mask[1] &= *((u32 *) hci_sec_filter.event_mask + 1); in hci_sock_setsockopt_old()
1999 *((u32 *) f->event_mask + 0) = uf.event_mask[0]; in hci_sock_setsockopt_old()
2000 *((u32 *) f->event_mask + 1) = uf.event_mask[1]; in hci_sock_setsockopt_old()
2110 uf.event_mask[0] = *((u32 *) f->event_mask + 0); in hci_sock_getsockopt_old()
2111 uf.event_mask[1] = *((u32 *) f->event_mask + 1); in hci_sock_getsockopt_old()
Daosp.c143 __u32 event_mask; member
153 cp.event_mask = DEFAULT_BQR_EVENT_MASK; in enable_quality_report()
/linux-6.6.21/arch/sh/kernel/
Dhw_breakpoint.c298 unsigned long event_mask = (1 << i); in hw_breakpoint_handler() local
300 if (likely(!(cmf & event_mask))) in hw_breakpoint_handler()
319 sh_ubc->clear_triggered_mask(event_mask); in hw_breakpoint_handler()
/linux-6.6.21/include/net/bluetooth/
Dhci_sock.h52 unsigned long event_mask[2]; member
58 __u32 event_mask[2]; member
/linux-6.6.21/drivers/accel/habanalabs/gaudi/
Dgaudi.c6665 static void gaudi_print_and_get_mmu_error_info(struct hl_device *hdev, u64 *addr, u64 *event_mask) in gaudi_print_and_get_mmu_error_info() argument
6680 hl_handle_page_fault(hdev, *addr, 0, true, event_mask); in gaudi_print_and_get_mmu_error_info()
6801 u64 qman_base, u64 event_mask) in gaudi_handle_sw_config_stream_data() argument
6820 if (event_mask & HL_NOTIFIER_EVENT_UNDEFINED_OPCODE) { in gaudi_handle_sw_config_stream_data()
6839 u64 event_mask, in gaudi_handle_last_pqes_on_err() argument
6859 gaudi_handle_sw_config_stream_data(hdev, stream, qman_base, event_mask); in gaudi_handle_last_pqes_on_err()
6888 if (event_mask & HL_NOTIFIER_EVENT_UNDEFINED_OPCODE) { in gaudi_handle_last_pqes_on_err()
6918 u32 stream, u64 qman_base, u64 event_mask) in handle_qman_data_on_err() argument
6924 qman_base, event_mask, true); in handle_qman_data_on_err()
6929 gaudi_handle_sw_config_stream_data(hdev, stream, qman_base, event_mask); in handle_qman_data_on_err()
[all …]
/linux-6.6.21/fs/notify/fanotify/
Dfanotify.c295 u32 *match_mask, u32 event_mask, in fanotify_group_event_mask() argument
305 bool ondir = event_mask & FAN_ONDIR; in fanotify_group_event_mask()
309 __func__, iter_info->report_mask, event_mask, data, data_type); in fanotify_group_event_mask()
343 test_mask = event_mask & marks_mask & ~marks_ignore_mask; in fanotify_group_event_mask()
505 static struct inode *fanotify_fid_inode(u32 event_mask, const void *data, in fanotify_fid_inode() argument
509 if ((event_mask & ALL_FSNOTIFY_DIRENT_EVENTS) && in fanotify_fid_inode()
524 static struct inode *fanotify_dfid_inode(u32 event_mask, const void *data, in fanotify_dfid_inode() argument
529 if (event_mask & ALL_FSNOTIFY_DIRENT_EVENTS) in fanotify_dfid_inode()
/linux-6.6.21/drivers/iio/position/
Diqs624-pos.c35 unsigned int event_mask = IQS624_HALL_UI_WHL_EVENT; in iqs624_pos_angle_en() local
44 event_mask = IQS624_HALL_UI_INT_EVENT; in iqs624_pos_angle_en()
46 return regmap_update_bits(iqs62x->regmap, IQS624_HALL_UI, event_mask, in iqs624_pos_angle_en()
/linux-6.6.21/kernel/
Drseq.c220 u32 flags, event_mask; in rseq_need_restart() local
239 event_mask = t->rseq_event_mask; in rseq_need_restart()
243 return !!event_mask; in rseq_need_restart()
/linux-6.6.21/drivers/gpu/drm/amd/amdkfd/
Dkfd_debug.c112 bool kfd_dbg_ev_raise(uint64_t event_mask, in kfd_dbg_ev_raise() argument
129 if (event_mask & KFD_EC_MASK_DEVICE) { in kfd_dbg_ev_raise()
136 pdd->exception_status |= event_mask & KFD_EC_MASK_DEVICE; in kfd_dbg_ev_raise()
138 if (event_mask & KFD_EC_MASK(EC_DEVICE_MEMORY_VIOLATION)) { in kfd_dbg_ev_raise()
156 } else if (event_mask & KFD_EC_MASK_PROCESS) { in kfd_dbg_ev_raise()
157 process->exception_status |= event_mask & KFD_EC_MASK_PROCESS; in kfd_dbg_ev_raise()
167 target_id = event_mask & KFD_EC_MASK(EC_QUEUE_NEW) ? in kfd_dbg_ev_raise()
174 pqn->q->properties.exception_status |= event_mask; in kfd_dbg_ev_raise()
179 if (process->exception_enable_mask & event_mask) { in kfd_dbg_ev_raise()
/linux-6.6.21/drivers/net/ipa/
Dgsi.c299 static void gsi_irq_ieob_disable(struct gsi *gsi, u32 event_mask) in gsi_irq_ieob_disable() argument
304 gsi->ieob_enabled_bitmap &= ~event_mask; in gsi_irq_ieob_disable()
1159 u32 event_mask; in gsi_isr_evt_ctrl() local
1162 event_mask = ioread32(gsi->virt + reg_offset(reg)); in gsi_isr_evt_ctrl()
1165 iowrite32(event_mask, gsi->virt + reg_offset(reg)); in gsi_isr_evt_ctrl()
1167 while (event_mask) { in gsi_isr_evt_ctrl()
1168 u32 evt_ring_id = __ffs(event_mask); in gsi_isr_evt_ctrl()
1170 event_mask ^= BIT(evt_ring_id); in gsi_isr_evt_ctrl()
1324 u32 event_mask; in gsi_isr_ieob() local
1327 event_mask = ioread32(gsi->virt + reg_offset(reg)); in gsi_isr_ieob()
[all …]
/linux-6.6.21/arch/sparc/kernel/
Dldc.c779 static void send_events(struct ldc_channel *lp, unsigned int event_mask) in send_events() argument
781 if (event_mask & LDC_EVENT_RESET) in send_events()
783 if (event_mask & LDC_EVENT_UP) in send_events()
785 if (event_mask & LDC_EVENT_DATA_READY) in send_events()
793 unsigned int event_mask; in ldc_rx() local
810 event_mask = 0; in ldc_rx()
822 event_mask |= LDC_EVENT_UP; in ldc_rx()
847 event_mask |= event; in ldc_rx()
850 event_mask |= LDC_EVENT_DATA_READY; in ldc_rx()
869 event_mask |= err; in ldc_rx()
[all …]
/linux-6.6.21/drivers/iio/light/
Diqs621-als.c56 unsigned int event_mask = 0; in iqs621_als_init() local
84 event_mask |= iqs62x->dev_desc->als_mask; in iqs621_als_init()
87 event_mask |= iqs62x->dev_desc->ir_mask; in iqs621_als_init()
90 event_mask, 0); in iqs621_als_init()
/linux-6.6.21/sound/soc/codecs/
Dnau8821.c1111 int jack_status_reg, mic_detected, event = 0, event_mask = 0; in nau8821_jdet_work() local
1146 event_mask |= SND_JACK_HEADSET; in nau8821_jdet_work()
1147 snd_soc_jack_report(nau8821->jack, event, event_mask); in nau8821_jdet_work()
1183 int active_irq, clear_irq = 0, event = 0, event_mask = 0; in nau8821_interrupt() local
1197 event_mask |= SND_JACK_HEADSET; in nau8821_interrupt()
1201 event_mask |= NAU8821_BUTTON; in nau8821_interrupt()
1204 event_mask = NAU8821_BUTTON; in nau8821_interrupt()
1236 if (event_mask) in nau8821_interrupt()
1237 snd_soc_jack_report(nau8821->jack, event, event_mask); in nau8821_interrupt()

1234