Home
last modified time | relevance | path

Searched refs:flags (Results 1 – 25 of 5529) sorted by relevance

12345678910>>...222

/drivers/usb/phy/
Dphy-ulpi.c57 unsigned int flags = ULPI_OTG_CTRL_DP_PULLDOWN | in ulpi_set_otg_flags() local
60 if (phy->flags & ULPI_OTG_ID_PULLUP) in ulpi_set_otg_flags()
61 flags |= ULPI_OTG_CTRL_ID_PULLUP; in ulpi_set_otg_flags()
67 if (phy->flags & ULPI_OTG_DP_PULLDOWN_DIS) in ulpi_set_otg_flags()
68 flags &= ~ULPI_OTG_CTRL_DP_PULLDOWN; in ulpi_set_otg_flags()
70 if (phy->flags & ULPI_OTG_DM_PULLDOWN_DIS) in ulpi_set_otg_flags()
71 flags &= ~ULPI_OTG_CTRL_DM_PULLDOWN; in ulpi_set_otg_flags()
73 if (phy->flags & ULPI_OTG_EXTVBUSIND) in ulpi_set_otg_flags()
74 flags |= ULPI_OTG_CTRL_EXTVBUSIND; in ulpi_set_otg_flags()
76 return usb_phy_io_write(phy, flags, ULPI_OTG_CTRL); in ulpi_set_otg_flags()
[all …]
/drivers/misc/sgi-xp/
Dxpc_channel.c33 if (!(ch->flags & XPC_C_OPENREQUEST) || in xpc_process_connect()
34 !(ch->flags & XPC_C_ROPENREQUEST)) { in xpc_process_connect()
38 DBUG_ON(!(ch->flags & XPC_C_CONNECTING)); in xpc_process_connect()
40 if (!(ch->flags & XPC_C_SETUP)) { in xpc_process_connect()
48 ch->flags |= XPC_C_SETUP; in xpc_process_connect()
50 if (ch->flags & XPC_C_DISCONNECTING) in xpc_process_connect()
54 if (!(ch->flags & XPC_C_OPENREPLY)) { in xpc_process_connect()
55 ch->flags |= XPC_C_OPENREPLY; in xpc_process_connect()
59 if (!(ch->flags & XPC_C_ROPENREPLY)) in xpc_process_connect()
62 if (!(ch->flags & XPC_C_OPENCOMPLETE)) { in xpc_process_connect()
[all …]
/drivers/firmware/efi/
Druntime-wrappers.c100 unsigned long flags; in virt_efi_get_time() local
103 spin_lock_irqsave(&rtc_lock, flags); in virt_efi_get_time()
107 spin_unlock_irqrestore(&rtc_lock, flags); in virt_efi_get_time()
113 unsigned long flags; in virt_efi_set_time() local
116 spin_lock_irqsave(&rtc_lock, flags); in virt_efi_set_time()
120 spin_unlock_irqrestore(&rtc_lock, flags); in virt_efi_set_time()
128 unsigned long flags; in virt_efi_get_wakeup_time() local
131 spin_lock_irqsave(&rtc_lock, flags); in virt_efi_get_wakeup_time()
135 spin_unlock_irqrestore(&rtc_lock, flags); in virt_efi_get_wakeup_time()
141 unsigned long flags; in virt_efi_set_wakeup_time() local
[all …]
/drivers/scsi/bfa/
Dbfad_bsg.c29 unsigned long flags; in bfad_iocmd_ioc_enable() local
31 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_enable()
34 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_enable()
42 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_enable()
52 unsigned long flags; in bfad_iocmd_ioc_disable() local
54 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_disable()
56 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_disable()
62 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_disable()
69 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_disable()
85 unsigned long flags; in bfad_iocmd_ioc_get_info() local
[all …]
/drivers/s390/char/
Dsclp.c203 unsigned long flags; in sclp_request_timeout() local
205 spin_lock_irqsave(&sclp_lock, flags); in sclp_request_timeout()
217 spin_unlock_irqrestore(&sclp_lock, flags); in sclp_request_timeout()
245 unsigned long flags, now; in __sclp_req_queue_remove_expired_req() local
248 spin_lock_irqsave(&sclp_lock, flags); in __sclp_req_queue_remove_expired_req()
264 spin_unlock_irqrestore(&sclp_lock, flags); in __sclp_req_queue_remove_expired_req()
275 unsigned long flags, expires_next; in sclp_req_queue_timeout() local
284 spin_lock_irqsave(&sclp_lock, flags); in sclp_req_queue_timeout()
288 spin_unlock_irqrestore(&sclp_lock, flags); in sclp_req_queue_timeout()
329 unsigned long flags; in sclp_process_queue() local
[all …]
Dcon3215.c80 int flags; /* state flags */ member
112 unsigned long flags; in raw3215_alloc_req() local
114 spin_lock_irqsave(&raw3215_freelist_lock, flags); in raw3215_alloc_req()
117 spin_unlock_irqrestore(&raw3215_freelist_lock, flags); in raw3215_alloc_req()
126 unsigned long flags; in raw3215_free_req() local
131 spin_lock_irqsave(&raw3215_freelist_lock, flags); in raw3215_free_req()
134 spin_unlock_irqrestore(&raw3215_freelist_lock, flags); in raw3215_free_req()
160 ccw->flags = 0x20; /* ignore incorrect length */ in raw3215_mk_read_req()
218 ccw[-1].flags |= 0x40; /* use command chaining */ in raw3215_mk_write_req()
220 ccw->flags = 0x20; /* ignore incorrect length ind. */ in raw3215_mk_write_req()
[all …]
Dsclp_con.c49 unsigned long flags; in sclp_conbuf_callback() local
54 spin_lock_irqsave(&sclp_con_lock, flags); in sclp_conbuf_callback()
67 spin_unlock_irqrestore(&sclp_con_lock, flags); in sclp_conbuf_callback()
70 spin_unlock_irqrestore(&sclp_con_lock, flags); in sclp_conbuf_callback()
80 unsigned long flags; in sclp_conbuf_emit() local
83 spin_lock_irqsave(&sclp_con_lock, flags); in sclp_conbuf_emit()
94 spin_unlock_irqrestore(&sclp_con_lock, flags); in sclp_conbuf_emit()
101 spin_unlock_irqrestore(&sclp_con_lock, flags); in sclp_conbuf_emit()
109 unsigned long flags; in sclp_console_sync_queue() local
111 spin_lock_irqsave(&sclp_con_lock, flags); in sclp_console_sync_queue()
[all …]
/drivers/crypto/qce/
Dcommon.c56 static u32 qce_encr_cfg(unsigned long flags, u32 aes_key_size) in qce_encr_cfg() argument
60 if (IS_AES(flags)) { in qce_encr_cfg()
67 if (IS_AES(flags)) in qce_encr_cfg()
69 else if (IS_DES(flags) || IS_3DES(flags)) in qce_encr_cfg()
72 if (IS_DES(flags)) in qce_encr_cfg()
75 if (IS_3DES(flags)) in qce_encr_cfg()
78 switch (flags & QCE_MODE_MASK) { in qce_encr_cfg()
102 static u32 qce_auth_cfg(unsigned long flags, u32 key_size) in qce_auth_cfg() argument
106 if (IS_AES(flags) && (IS_CCM(flags) || IS_CMAC(flags))) in qce_auth_cfg()
111 if (IS_CCM(flags) || IS_CMAC(flags)) { in qce_auth_cfg()
[all …]
Dcommon.h62 #define IS_DES(flags) (flags & QCE_ALG_DES) argument
63 #define IS_3DES(flags) (flags & QCE_ALG_3DES) argument
64 #define IS_AES(flags) (flags & QCE_ALG_AES) argument
66 #define IS_SHA1(flags) (flags & QCE_HASH_SHA1) argument
67 #define IS_SHA256(flags) (flags & QCE_HASH_SHA256) argument
68 #define IS_SHA1_HMAC(flags) (flags & QCE_HASH_SHA1_HMAC) argument
69 #define IS_SHA256_HMAC(flags) (flags & QCE_HASH_SHA256_HMAC) argument
70 #define IS_CMAC(flags) (flags & QCE_HASH_AES_CMAC) argument
71 #define IS_SHA(flags) (IS_SHA1(flags) || IS_SHA256(flags)) argument
72 #define IS_SHA_HMAC(flags) \ argument
[all …]
/drivers/infiniband/core/
Diwcm.c209 cb_destroy = test_bit(IWCM_F_CALLBACK_DESTROY, &cm_id_priv->flags); in rem_ref()
286 unsigned long flags; in iw_cm_disconnect() local
293 !test_bit(IWCM_F_CONNECT_WAIT, &cm_id_priv->flags)); in iw_cm_disconnect()
295 spin_lock_irqsave(&cm_id_priv->lock, flags); in iw_cm_disconnect()
325 spin_unlock_irqrestore(&cm_id_priv->lock, flags); in iw_cm_disconnect()
353 unsigned long flags; in destroy_cm_id() local
361 !test_bit(IWCM_F_CONNECT_WAIT, &cm_id_priv->flags)); in destroy_cm_id()
363 spin_lock_irqsave(&cm_id_priv->lock, flags); in destroy_cm_id()
367 spin_unlock_irqrestore(&cm_id_priv->lock, flags); in destroy_cm_id()
370 spin_lock_irqsave(&cm_id_priv->lock, flags); in destroy_cm_id()
[all …]
/drivers/crypto/qat/qat_common/
Dicp_qat_fw_la.h147 #define ICP_QAT_FW_LA_CIPH_IV_FLD_FLAG_GET(flags) \ argument
148 QAT_FIELD_GET(flags, QAT_LA_CIPH_IV_FLD_BITPOS, \
151 #define ICP_QAT_FW_LA_CIPH_AUTH_CFG_OFFSET_FLAG_GET(flags) \ argument
152 QAT_FIELD_GET(flags, QAT_LA_CIPH_AUTH_CFG_OFFSET_BITPOS, \
155 #define ICP_QAT_FW_LA_ZUC_3G_PROTO_FLAG_GET(flags) \ argument
156 QAT_FIELD_GET(flags, QAT_FW_LA_ZUC_3G_PROTO_FLAG_BITPOS, \
159 #define ICP_QAT_FW_LA_GCM_IV_LEN_FLAG_GET(flags) \ argument
160 QAT_FIELD_GET(flags, QAT_LA_GCM_IV_LEN_FLAG_BITPOS, \
163 #define ICP_QAT_FW_LA_PROTO_GET(flags) \ argument
164 QAT_FIELD_GET(flags, QAT_LA_PROTO_BITPOS, QAT_LA_PROTO_MASK)
[all …]
/drivers/clk/
Dclk-divider.c58 unsigned long flags) in _get_maxdiv() argument
60 if (flags & CLK_DIVIDER_ONE_BASED) in _get_maxdiv()
62 if (flags & CLK_DIVIDER_POWER_OF_TWO) in _get_maxdiv()
81 unsigned int val, unsigned long flags, u8 width) in _get_div() argument
83 if (flags & CLK_DIVIDER_ONE_BASED) in _get_div()
85 if (flags & CLK_DIVIDER_POWER_OF_TWO) in _get_div()
87 if (flags & CLK_DIVIDER_MAX_AT_ZERO) in _get_div()
106 unsigned int div, unsigned long flags, u8 width) in _get_val() argument
108 if (flags & CLK_DIVIDER_ONE_BASED) in _get_val()
110 if (flags & CLK_DIVIDER_POWER_OF_TWO) in _get_val()
[all …]
/drivers/char/
Dtlclk.c284 unsigned long flags; in show_current_ref() local
286 spin_lock_irqsave(&event_lock, flags); in show_current_ref()
288 spin_unlock_irqrestore(&event_lock, flags); in show_current_ref()
300 unsigned long flags; in show_telclock_version() local
302 spin_lock_irqsave(&event_lock, flags); in show_telclock_version()
304 spin_unlock_irqrestore(&event_lock, flags); in show_telclock_version()
316 unsigned long flags; in show_alarms() local
318 spin_lock_irqsave(&event_lock, flags); in show_alarms()
320 spin_unlock_irqrestore(&event_lock, flags); in show_alarms()
332 unsigned long flags; in store_received_ref_clk3a() local
[all …]
/drivers/dma/ioat/
Dprep.c95 gfp_t flags = __GFP_ZERO | GFP_ATOMIC; in ioat3_alloc_sed() local
97 sed = kmem_cache_alloc(ioat_sed_cache, flags); in ioat3_alloc_sed()
103 flags, &sed->dma); in ioat3_alloc_sed()
114 dma_addr_t dma_src, size_t len, unsigned long flags) in ioat_dma_prep_memcpy_lock() argument
151 desc->txd.flags = flags; in ioat_dma_prep_memcpy_lock()
153 hw->ctl_f.int_en = !!(flags & DMA_PREP_INTERRUPT); in ioat_dma_prep_memcpy_lock()
154 hw->ctl_f.fence = !!(flags & DMA_PREP_FENCE); in ioat_dma_prep_memcpy_lock()
166 size_t len, unsigned long flags) in __ioat_prep_xor_lock() argument
235 desc->txd.flags = flags; in __ioat_prep_xor_lock()
239 xor->ctl_f.fence = !!(flags & DMA_PREP_FENCE); in __ioat_prep_xor_lock()
[all …]
/drivers/idle/
Dintel_idle.c121 #define flg2MWAIT(flags) (((flags) >> 24) & 0xFF) argument
133 .flags = MWAIT2flg(0x00),
141 .flags = MWAIT2flg(0x01),
149 .flags = MWAIT2flg(0x10) | CPUIDLE_FLAG_TLB_FLUSHED,
157 .flags = MWAIT2flg(0x20) | CPUIDLE_FLAG_TLB_FLUSHED,
170 .flags = MWAIT2flg(0x00),
178 .flags = MWAIT2flg(0x01),
186 .flags = MWAIT2flg(0x10) | CPUIDLE_FLAG_TLB_FLUSHED,
194 .flags = MWAIT2flg(0x20) | CPUIDLE_FLAG_TLB_FLUSHED,
202 .flags = MWAIT2flg(0x30) | CPUIDLE_FLAG_TLB_FLUSHED,
[all …]
/drivers/rtc/
Drtc-rv8803.c64 u8 flags; in rv8803_handle_irq() local
68 flags = i2c_smbus_read_byte_data(client, RV8803_FLAG); in rv8803_handle_irq()
69 if (flags <= 0) { in rv8803_handle_irq()
74 if (flags & RV8803_FLAG_V1F) in rv8803_handle_irq()
77 if (flags & RV8803_FLAG_V2F) in rv8803_handle_irq()
80 if (flags & RV8803_FLAG_TF) { in rv8803_handle_irq()
81 flags &= ~RV8803_FLAG_TF; in rv8803_handle_irq()
86 if (flags & RV8803_FLAG_AF) { in rv8803_handle_irq()
87 flags &= ~RV8803_FLAG_AF; in rv8803_handle_irq()
92 if (flags & RV8803_FLAG_UF) { in rv8803_handle_irq()
[all …]
/drivers/net/wireless/orinoco/
Dwext.c95 unsigned long flags; in orinoco_get_wireless_stats() local
105 if (orinoco_lock(priv, &flags) != 0) in orinoco_get_wireless_stats()
147 orinoco_unlock(priv, &flags); in orinoco_get_wireless_stats()
162 unsigned long flags; in orinoco_ioctl_setwap() local
164 if (orinoco_lock(priv, &flags) != 0) in orinoco_ioctl_setwap()
210 orinoco_unlock(priv, &flags); in orinoco_ioctl_setwap()
222 unsigned long flags; in orinoco_ioctl_getwap() local
224 if (orinoco_lock(priv, &flags) != 0) in orinoco_ioctl_getwap()
230 orinoco_unlock(priv, &flags); in orinoco_ioctl_getwap()
241 int index = (erq->flags & IW_ENCODE_INDEX) - 1; in orinoco_ioctl_setiwencode()
[all …]
/drivers/gpu/drm/nouveau/nvkm/core/
Dnotify.c38 unsigned long flags; in nvkm_notify_put() local
40 test_and_clear_bit(NVKM_NOTIFY_USER, &notify->flags)) { in nvkm_notify_put()
41 spin_lock_irqsave(&event->refs_lock, flags); in nvkm_notify_put()
43 spin_unlock_irqrestore(&event->refs_lock, flags); in nvkm_notify_put()
44 if (test_bit(NVKM_NOTIFY_WORK, &notify->flags)) in nvkm_notify_put()
60 unsigned long flags; in nvkm_notify_get() local
62 !test_and_set_bit(NVKM_NOTIFY_USER, &notify->flags)) { in nvkm_notify_get()
63 spin_lock_irqsave(&event->refs_lock, flags); in nvkm_notify_get()
65 spin_unlock_irqrestore(&event->refs_lock, flags); in nvkm_notify_get()
74 unsigned long flags; in nvkm_notify_func() local
[all …]
/drivers/scsi/isci/
Dtask.c81 unsigned long flags; in isci_task_refuse() local
87 spin_lock_irqsave(&task->task_state_lock, flags); in isci_task_refuse()
97 spin_unlock_irqrestore(&task->task_state_lock, flags); in isci_task_refuse()
110 return idev ? test_bit(IDEV_IO_READY, &idev->flags) || in isci_device_io_ready()
111 (test_bit(IDEV_IO_NCQERROR, &idev->flags) && in isci_device_io_ready()
128 unsigned long flags; in isci_task_execute_task() local
133 spin_lock_irqsave(&ihost->scic_lock, flags); in isci_task_execute_task()
137 spin_unlock_irqrestore(&ihost->scic_lock, flags); in isci_task_execute_task()
141 task, task->dev, idev, idev ? idev->flags : 0, in isci_task_execute_task()
155 spin_lock_irqsave(&task->task_state_lock, flags); in isci_task_execute_task()
[all …]
/drivers/tty/
Damiserial.c48 tty->name, (info->tport.flags), serial_driver->refcount,info->count,tty->count,s)
190 unsigned long flags; in rs_stop() local
195 local_irq_save(flags); in rs_stop()
204 local_irq_restore(flags); in rs_stop()
210 unsigned long flags; in rs_start() local
215 local_irq_save(flags); in rs_start()
226 local_irq_restore(flags); in rs_start()
315 if (info->tport.flags & ASYNC_SAK) in receive_chars()
402 if ((port->flags & ASYNC_CHECK_CD) && (dstatus & SER_DCD)) { in check_modem_status()
519 unsigned long flags; in startup() local
[all …]
Dtty_port.c171 unsigned long flags; in tty_port_tty_get() local
174 spin_lock_irqsave(&port->lock, flags); in tty_port_tty_get()
176 spin_unlock_irqrestore(&port->lock, flags); in tty_port_tty_get()
192 unsigned long flags; in tty_port_tty_set() local
194 spin_lock_irqsave(&port->lock, flags); in tty_port_tty_set()
197 spin_unlock_irqrestore(&port->lock, flags); in tty_port_tty_set()
207 if (test_and_clear_bit(ASYNCB_INITIALIZED, &port->flags)) { in tty_port_shutdown()
235 unsigned long flags; in tty_port_hangup() local
237 spin_lock_irqsave(&port->lock, flags); in tty_port_hangup()
239 port->flags &= ~ASYNC_NORMAL_ACTIVE; in tty_port_hangup()
[all …]
/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-prim.c65 unsigned long flags; in add_wait_queue_exclusive_head() local
67 spin_lock_irqsave(&waitq->lock, flags); in add_wait_queue_exclusive_head()
69 spin_unlock_irqrestore(&waitq->lock, flags); in add_wait_queue_exclusive_head()
76 unsigned long flags; in cfs_block_allsigs() local
79 spin_lock_irqsave(&current->sighand->siglock, flags); in cfs_block_allsigs()
83 spin_unlock_irqrestore(&current->sighand->siglock, flags); in cfs_block_allsigs()
91 unsigned long flags; in cfs_block_sigs() local
94 spin_lock_irqsave(&current->sighand->siglock, flags); in cfs_block_sigs()
98 spin_unlock_irqrestore(&current->sighand->siglock, flags); in cfs_block_sigs()
106 unsigned long flags; in cfs_block_sigsinv() local
[all …]
/drivers/scsi/esas2r/
Desas2r_int.c212 unsigned long flags; in esas2r_get_outbound_responses() local
218 spin_lock_irqsave(&a->queue_lock, flags); in esas2r_get_outbound_responses()
228 spin_unlock_irqrestore(&a->queue_lock, flags); in esas2r_get_outbound_responses()
235 spin_unlock_irqrestore(&a->queue_lock, flags); in esas2r_get_outbound_responses()
295 spin_unlock_irqrestore(&a->queue_lock, flags); in esas2r_get_outbound_responses()
310 unsigned long flags; in esas2r_do_deferred_processes() local
320 if (test_bit(AF_CHPRST_PENDING, &a->flags) || in esas2r_do_deferred_processes()
321 test_bit(AF_FLASHING, &a->flags)) in esas2r_do_deferred_processes()
323 else if (test_bit(AF_DISC_PENDING, &a->flags)) in esas2r_do_deferred_processes()
344 spin_lock_irqsave(&a->queue_lock, flags); in esas2r_do_deferred_processes()
[all …]
/drivers/hid/
Dhid-wiimote-core.c50 unsigned long flags; in wiimote_queue_worker() local
53 spin_lock_irqsave(&wdata->queue.lock, flags); in wiimote_queue_worker()
56 spin_unlock_irqrestore(&wdata->queue.lock, flags); in wiimote_queue_worker()
61 spin_lock_irqsave(&wdata->state.lock, flags); in wiimote_queue_worker()
63 spin_unlock_irqrestore(&wdata->state.lock, flags); in wiimote_queue_worker()
65 spin_lock_irqsave(&wdata->queue.lock, flags); in wiimote_queue_worker()
70 spin_unlock_irqrestore(&wdata->queue.lock, flags); in wiimote_queue_worker()
76 unsigned long flags; in wiimote_queue() local
82 spin_lock_irqsave(&wdata->queue.lock, flags); in wiimote_queue()
96 spin_lock_irqsave(&wdata->queue.lock, flags); in wiimote_queue()
[all …]
/drivers/vfio/platform/
Dvfio_platform_irq.c28 unsigned long flags; in vfio_platform_mask() local
30 spin_lock_irqsave(&irq_ctx->lock, flags); in vfio_platform_mask()
37 spin_unlock_irqrestore(&irq_ctx->lock, flags); in vfio_platform_mask()
51 unsigned count, uint32_t flags, in vfio_platform_set_irq_mask() argument
57 if (!(vdev->irqs[index].flags & VFIO_IRQ_INFO_MASKABLE)) in vfio_platform_set_irq_mask()
60 if (flags & VFIO_IRQ_SET_DATA_EVENTFD) { in vfio_platform_set_irq_mask()
73 if (flags & VFIO_IRQ_SET_DATA_NONE) { in vfio_platform_set_irq_mask()
76 } else if (flags & VFIO_IRQ_SET_DATA_BOOL) { in vfio_platform_set_irq_mask()
88 unsigned long flags; in vfio_platform_unmask() local
90 spin_lock_irqsave(&irq_ctx->lock, flags); in vfio_platform_unmask()
[all …]

12345678910>>...222