Home
last modified time | relevance | path

Searched refs:state (Results 3526 - 3550 of 15960) sorted by relevance

1...<<141142143144145146147148149150>>...639

/kernel/linux/linux-5.10/drivers/i2c/busses/
H A Di2c-parport.c192 static inline void line_set(struct parport *data, int state, in line_set() argument
198 if ((op->inverted && !state) || (!op->inverted && state)) in line_set()
215 static void parport_setscl(void *data, int state) in parport_setscl() argument
217 line_set((struct parport *) data, state, &adapter_parm[type].setscl); in parport_setscl()
220 static void parport_setsda(void *data, int state) in parport_setsda() argument
222 line_set((struct parport *) data, state, &adapter_parm[type].setsda); in parport_setsda()
319 /* Reset hardware to a sane state (SCL and SDA high) */ in i2c_parport_attach()
/kernel/linux/linux-5.10/drivers/input/keyboard/
H A Dnspire-keypad.c45 u16 state[KEYPAD_BITMASK_ROWS]; member
58 u16 state[8]; in nspire_keypad_irq() local
65 memcpy_fromio(state, keypad->reg_base + KEYPAD_DATA, sizeof(state)); in nspire_keypad_irq()
68 bits = state[row]; in nspire_keypad_irq()
72 changed = bits ^ keypad->state[row]; in nspire_keypad_irq()
76 keypad->state[row] = bits; in nspire_keypad_irq()
/kernel/linux/linux-5.10/drivers/gpu/drm/lima/
H A Dlima_gp.c26 u32 state = gp_read(LIMA_GP_INT_STAT); in lima_gp_irq_handler() local
31 if (!state) in lima_gp_irq_handler()
34 if (state & LIMA_GP_IRQ_MASK_ERROR) { in lima_gp_irq_handler()
35 if ((state & LIMA_GP_IRQ_MASK_ERROR) == in lima_gp_irq_handler()
40 dev_err(dev->dev, "gp error irq state=%x status=%x\n", in lima_gp_irq_handler()
41 state, status); in lima_gp_irq_handler()
52 bool valid = state & (LIMA_GP_IRQ_VS_END_CMD_LST | in lima_gp_irq_handler()
60 gp_write(LIMA_GP_INT_CLEAR, state); in lima_gp_irq_handler()
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_mbx.c51 if (test_bit(HCLGEVF_STATE_CMD_DISABLE, &hdev->state)) in hclgevf_get_mbx_resp()
112 if (test_bit(HCLGEVF_STATE_NIC_REGISTERED, &hdev->state)) in hclgevf_send_mbx_msg()
168 if (test_bit(HCLGEVF_STATE_CMD_DISABLE, &hdev->state)) { in hclgevf_mbx_handler()
224 * enters handling state. in hclgevf_mbx_handler()
275 u16 link_status, state; in hclgevf_mbx_async_handler() local
291 if (test_bit(HCLGEVF_STATE_CMD_DISABLE, &hdev->state)) { in hclgevf_mbx_async_handler()
321 * state and poll for the hardware reset status till it in hclgevf_mbx_async_handler()
332 state = msg_q[1]; in hclgevf_mbx_async_handler()
334 hclgevf_update_port_base_vlan_info(hdev, state, in hclgevf_mbx_async_handler()
/kernel/linux/linux-5.10/drivers/net/ipa/
H A Dipa_modem.c196 enum ipa_modem_state state; in ipa_modem_start() local
202 state = atomic_cmpxchg(&ipa->modem_state, IPA_MODEM_STATE_STOPPED, in ipa_modem_start()
205 /* Silently ignore attempts when running, or when changing state */ in ipa_modem_start()
206 if (state != IPA_MODEM_STATE_STOPPED) in ipa_modem_start()
242 enum ipa_modem_state state; in ipa_modem_stop() local
246 state = atomic_cmpxchg(&ipa->modem_state, IPA_MODEM_STATE_RUNNING, in ipa_modem_stop()
250 if (state == IPA_MODEM_STATE_STOPPED) in ipa_modem_stop()
254 if (state != IPA_MODEM_STATE_RUNNING) in ipa_modem_stop()
/kernel/linux/linux-5.10/drivers/tty/serial/8250/
H A D8250_dma.c18 struct circ_buf *xmit = &p->port.state->xmit; in __dma_tx_complete()
47 struct tty_port *tty_port = &p->port.state->port; in __dma_rx_complete()
48 struct dma_tx_state state; in __dma_rx_complete() local
57 dma_status = dmaengine_tx_status(dma->rxchan, dma->rx_cookie, &state); in __dma_rx_complete()
61 count = dma->rx_size - state.residue; in __dma_rx_complete()
85 struct circ_buf *xmit = &p->port.state->xmit; in serial8250_tx_dma()
250 p->port.state->xmit.buf, in serial8250_request_dma()
/kernel/linux/linux-5.10/net/rose/
H A Drose_in.c32 * State machine for state 1, Awaiting Call Accepted State.
34 * Handling of state 0 and connection release is in af_rose.c.
49 rose->state = ROSE_STATE_3; in rose_state1_machine()
69 * State machine for state 2, Awaiting Clear Confirmation State.
71 * Handling of state 0 and connection release is in af_rose.c.
97 * State machine for state 3, Connected State.
99 * Handling of state 0 and connection release is in af_rose.c.
134 rose->state = ROSE_STATE_4; in rose_state3_machine()
156 rose->state = ROSE_STATE_4; in rose_state3_machine()
176 rose->state in rose_state3_machine()
[all...]
/kernel/linux/linux-5.10/sound/xen/
H A Dxen_snd_front.c41 if (unlikely(evtchnl->state != EVTCHNL_STATE_CONNECTED)) in be_stream_do_io()
243 dev_dbg(&xb_dev->dev, "Backend state is %s, front is %s\n", in sndback_changed()
245 xenbus_strstate(xb_dev->state)); in sndback_changed()
270 if (xb_dev->state != XenbusStateInitialised) in sndback_changed()
282 * In this state backend starts freeing resources, in sndback_changed()
283 * so let it go into closed state first, so we can also in sndback_changed()
290 if (xb_dev->state == XenbusStateClosed) in sndback_changed()
323 * so no backend state change events come via .otherend_changed in xen_drv_remove()
326 * state to change to XenbusStateClosed and cleaning at our end. in xen_drv_remove()
328 * XenbusStateInitWait state in xen_drv_remove()
338 unsigned int state; xen_drv_remove() local
[all...]
/kernel/linux/linux-5.10/include/uapi/linux/
H A Dvfio.h163 * an initial state. All device file descriptors must be released
165 * from a container, the IOMMU will be disabled and all state lost,
167 * state.
348 * Set display link state and EDID blob.
370 * @link_state: display link state (read/write).
377 * (1) set link-state to down.
379 * (3) set link-state to up.
409 * about the device state to be transitioned to.
411 * device state. After successful transition to a given state, th
[all...]
/kernel/linux/linux-5.10/kernel/sched/
H A Dwait.c63 * started to run but is not in state TASK_RUNNING. try_to_wake_up() returns
137 * accessing the task state.
182 * accessing the task state.
208 * accessing the task state.
246 prepare_to_wait(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry, int state) in prepare_to_wait() argument
254 set_current_state(state); in prepare_to_wait()
261 prepare_to_wait_exclusive(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry, int state) in prepare_to_wait_exclusive() argument
272 set_current_state(state); in prepare_to_wait_exclusive()
287 long prepare_to_wait_event(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry, int state) in prepare_to_wait_event() argument
293 if (signal_pending_state(state, curren in prepare_to_wait_event()
[all...]
/kernel/linux/linux-5.10/net/ipv6/
H A Dnetfilter.c84 if (entry->state.hook == NF_INET_LOCAL_OUT) { in nf_ip6_reroute()
89 return ip6_route_me_harder(entry->state.net, entry->state.sk, skb); in nf_ip6_reroute()
125 struct ip6_frag_state state; in br_ip6_fragment() local
211 &state); in br_ip6_fragment()
213 while (state.left > 0) { in br_ip6_fragment()
216 skb2 = ip6_frag_next(skb, &state); in br_ip6_fragment()
/kernel/linux/linux-5.10/drivers/oprofile/
H A Dbuffer_sync.c478 * switch so we need a fifth state and some special handling in sync_buffer()
501 sync_buffer_state state = sb_buffer_start; in sync_buffer() local
523 state = sb_bt_start; in sync_buffer()
529 if (state == sb_buffer_start) in sync_buffer()
530 state = sb_sample_start; in sync_buffer()
549 if (state < sb_bt_start) in sync_buffer()
557 if (state == sb_bt_start) { in sync_buffer()
558 state = sb_bt_ignore; in sync_buffer()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
H A Dirq.c229 struct irq_controller_state *state) in irq_controller_get_state()
232 assert(state); in irq_controller_get_state()
234 state->irq_edge = irq_reg_load(ID, in irq_controller_get_state()
236 state->irq_mask = irq_reg_load(ID, in irq_controller_get_state()
238 state->irq_status = irq_reg_load(ID, in irq_controller_get_state()
240 state->irq_enable = irq_reg_load(ID, in irq_controller_get_state()
242 state->irq_level_not_pulse = irq_reg_load(ID, in irq_controller_get_state()
371 /* If we have a nested IRQ, load that state, discard the device 0 state */ in virq_get_channel_id()
389 /* If this device is empty, clear the state o in virq_get_channel_id()
228 irq_controller_get_state(const irq_ID_t ID, struct irq_controller_state *state) irq_controller_get_state() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/dsa/hirschmann/
H A Dhellcreek_hwtstamp.c53 clear_bit_unlock(HELLCREEK_HWTSTAMP_ENABLED, &ps->state); in hellcreek_set_hwtstamp_config()
107 set_bit(HELLCREEK_HWTSTAMP_ENABLED, &ps->state); in hellcreek_set_hwtstamp_config()
165 if (!test_bit(HELLCREEK_HWTSTAMP_ENABLED, &ps->state)) in hellcreek_should_tstamp()
277 clear_bit_unlock(HELLCREEK_HWTSTAMP_TX_IN_PROGRESS, &ps->state); in hellcreek_txtstamp_work()
287 clear_bit_unlock(HELLCREEK_HWTSTAMP_TX_IN_PROGRESS, &ps->state); in hellcreek_txtstamp_work()
356 if (test_bit(HELLCREEK_HWTSTAMP_TX_IN_PROGRESS, &ps->state)) in hellcreek_hwtstamp_work()
393 &ps->state)) { in hellcreek_port_txtstamp()
/kernel/linux/linux-6.6/drivers/accessibility/braille/
H A Dbraille_console.c111 vc_x = vc->state.x - (vc->state.x % WIDTH); in vc_follow_cursor()
112 vc_y = vc->state.y; in vc_follow_cursor()
113 lastvc_x = vc->state.x; in vc_follow_cursor()
114 lastvc_y = vc->state.y; in vc_follow_cursor()
120 if (vc->state.x != lastvc_x || vc->state.y != lastvc_y) in vc_maybe_cursor_moved()
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
H A Dirq.c229 struct irq_controller_state *state) in irq_controller_get_state()
232 assert(state); in irq_controller_get_state()
234 state->irq_edge = irq_reg_load(ID, in irq_controller_get_state()
236 state->irq_mask = irq_reg_load(ID, in irq_controller_get_state()
238 state->irq_status = irq_reg_load(ID, in irq_controller_get_state()
240 state->irq_enable = irq_reg_load(ID, in irq_controller_get_state()
242 state->irq_level_not_pulse = irq_reg_load(ID, in irq_controller_get_state()
371 /* If we have a nested IRQ, load that state, discard the device 0 state */ in virq_get_channel_id()
389 /* If this device is empty, clear the state o in virq_get_channel_id()
228 irq_controller_get_state(const irq_ID_t ID, struct irq_controller_state *state) irq_controller_get_state() argument
[all...]
/kernel/linux/linux-6.6/drivers/tty/serial/8250/
H A D8250_dma.c18 struct circ_buf *xmit = &p->port.state->xmit; in __dma_tx_complete()
44 struct tty_port *tty_port = &p->port.state->port; in __dma_rx_complete()
45 struct dma_tx_state state; in __dma_rx_complete() local
54 dma_status = dmaengine_tx_status(dma->rxchan, dma->rx_cookie, &state); in __dma_rx_complete()
58 count = dma->rx_size - state.residue; in __dma_rx_complete()
89 struct circ_buf *xmit = &p->port.state->xmit; in serial8250_tx_dma()
256 p->port.state->xmit.buf, in serial8250_request_dma()
/kernel/linux/linux-6.6/drivers/remoteproc/
H A Dqcom_q6v5.c34 dev_err(q6v5->dev, "failed to toggle load state\n"); in q6v5_load_state_toggle()
203 if (q6v5->rproc->state != RPROC_RUNNING || qcom_sysmon_shutdown_acked(sysmon)) in qcom_q6v5_request_stop()
206 qcom_smem_state_update_bits(q6v5->state, in qcom_q6v5_request_stop()
211 qcom_smem_state_update_bits(q6v5->state, BIT(q6v5->stop_bit), 0); in qcom_q6v5_request_stop()
228 qcom_smem_state_update_bits(q6v5->state, in qcom_q6v5_panic()
241 * @load_state: load state resource string
326 q6v5->state = devm_qcom_smem_state_get(&pdev->dev, "stop", &q6v5->stop_bit); in qcom_q6v5_init()
327 if (IS_ERR(q6v5->state)) { in qcom_q6v5_init()
328 dev_err(&pdev->dev, "failed to acquire stop state\n"); in qcom_q6v5_init()
329 return PTR_ERR(q6v5->state); in qcom_q6v5_init()
[all...]
/kernel/linux/linux-6.6/drivers/pwm/
H A Dpwm-mediatek.c206 const struct pwm_state *state) in pwm_mediatek_apply()
210 if (state->polarity != PWM_POLARITY_NORMAL) in pwm_mediatek_apply()
213 if (!state->enabled) { in pwm_mediatek_apply()
214 if (pwm->state.enabled) in pwm_mediatek_apply()
220 err = pwm_mediatek_config(pwm->chip, pwm, state->duty_cycle, state->period); in pwm_mediatek_apply()
224 if (!pwm->state.enabled) in pwm_mediatek_apply()
205 pwm_mediatek_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) pwm_mediatek_apply() argument
H A Dpwm-stmpe.c264 const struct pwm_state *state) in stmpe_24xx_pwm_apply()
268 if (state->polarity != PWM_POLARITY_NORMAL) in stmpe_24xx_pwm_apply()
271 if (!state->enabled) { in stmpe_24xx_pwm_apply()
272 if (pwm->state.enabled) in stmpe_24xx_pwm_apply()
278 err = stmpe_24xx_pwm_config(pwm->chip, pwm, state->duty_cycle, state->period); in stmpe_24xx_pwm_apply()
282 if (!pwm->state.enabled) in stmpe_24xx_pwm_apply()
263 stmpe_24xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) stmpe_24xx_pwm_apply() argument
H A Dpwm-lp3943.c192 const struct pwm_state *state) in lp3943_pwm_apply()
196 if (state->polarity != PWM_POLARITY_NORMAL) in lp3943_pwm_apply()
199 if (!state->enabled) { in lp3943_pwm_apply()
200 if (pwm->state.enabled) in lp3943_pwm_apply()
205 err = lp3943_pwm_config(chip, pwm, state->duty_cycle, state->period); in lp3943_pwm_apply()
209 if (!pwm->state.enabled) in lp3943_pwm_apply()
191 lp3943_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) lp3943_pwm_apply() argument
/kernel/linux/linux-6.6/drivers/base/power/
H A Ddomain_governor.c139 * is able to enter its optimal idle state. in update_domain_next_wakeup()
161 unsigned int state, ktime_t now) in next_wakeup_allows_state()
166 min_sleep_ns = genpd->states[state].power_off_latency_ns + in next_wakeup_allows_state()
167 genpd->states[state].residency_ns; in next_wakeup_allows_state()
175 unsigned int state) in __default_power_down_ok()
183 off_on_time_ns = genpd->states[state].power_off_latency_ns + in __default_power_down_ok()
184 genpd->states[state].power_on_latency_ns; in __default_power_down_ok()
243 * "off" state. in __default_power_down_ok()
251 * theoretical time this domain can spend in the "off" state. in __default_power_down_ok()
254 genpd->states[state] in __default_power_down_ok()
160 next_wakeup_allows_state(struct generic_pm_domain *genpd, unsigned int state, ktime_t now) next_wakeup_allows_state() argument
174 __default_power_down_ok(struct dev_pm_domain *pd, unsigned int state) __default_power_down_ok() argument
[all...]
/kernel/linux/linux-6.6/arch/x86/crypto/
H A Dsha1_ssse3_glue.c49 * 160-bit internal state, as this is what the asm functions expect. in sha1_update()
51 BUILD_BUG_ON(offsetof(struct sha1_state, state) != 0); in sha1_update()
75 asmlinkage void sha1_transform_ssse3(struct sha1_state *state,
125 asmlinkage void sha1_transform_avx(struct sha1_state *state,
187 asmlinkage void sha1_transform_avx2(struct sha1_state *state,
200 static void sha1_apply_transform_avx2(struct sha1_state *state, in sha1_apply_transform_avx2() argument
205 sha1_transform_avx2(state, data, blocks); in sha1_apply_transform_avx2()
207 sha1_transform_avx(state, data, blocks); in sha1_apply_transform_avx2()
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dusb.c87 clear_bit(MT76_STATE_RUNNING, &dev->mphy.state); in mt7663u_stop()
97 clear_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt7663u_cleanup()
175 set_bit(MT76_STATE_POWER_OFF, &dev->mphy.state); in mt7663u_probe()
206 if (!test_bit(MT76_STATE_INITIALIZED, &dev->mphy.state)) in mt7663u_disconnect()
219 static int mt7663u_suspend(struct usb_interface *intf, pm_message_t state) in mt7663u_suspend() argument
223 if (!test_bit(MT76_STATE_SUSPEND, &dev->mphy.state) && in mt7663u_suspend()
253 if (!test_bit(MT76_STATE_SUSPEND, &dev->mphy.state) && in mt7663u_resume()
/kernel/linux/linux-6.6/drivers/gpu/drm/lima/
H A Dlima_gp.c26 u32 state = gp_read(LIMA_GP_INT_STAT); in lima_gp_irq_handler() local
31 if (!state) in lima_gp_irq_handler()
34 if (state & LIMA_GP_IRQ_MASK_ERROR) { in lima_gp_irq_handler()
35 if ((state & LIMA_GP_IRQ_MASK_ERROR) == in lima_gp_irq_handler()
40 dev_err(dev->dev, "gp error irq state=%x status=%x\n", in lima_gp_irq_handler()
41 state, status); in lima_gp_irq_handler()
52 bool valid = state & (LIMA_GP_IRQ_VS_END_CMD_LST | in lima_gp_irq_handler()
60 gp_write(LIMA_GP_INT_CLEAR, state); in lima_gp_irq_handler()

Completed in 18 milliseconds

1...<<141142143144145146147148149150>>...639