Searched defs:state (Results 326 - 350 of 1738) sorted by relevance

<<11121314151617181920>>

/drivers/input/keyboard/
H A Domap-keypad.c107 static void omap_kp_scan_keypad(struct omap_kp *omap_kp, unsigned char *state) argument
122 state[col] = ~omap_readw(OMAP1_MPUIO_BASE +
204 int state; local
206 if (sscanf(buf, "%u", &state) != 1)
209 if ((state != 1) && (state != 0))
213 if (state != kp_enable) {
214 if (state)
218 kp_enable = state;
228 static int omap_kp_suspend(struct platform_device *dev, pm_message_t state) argument
[all...]
H A Dst-keyscan.c46 unsigned long state, change; local
49 state = readl(keypad->base + KEYSCAN_MATRIX_STATE_OFF) & 0xffff;
50 change = keypad->last_state ^ state;
51 keypad->last_state = state;
55 keycode[bit_nr], state & BIT(bit_nr));
H A Dtca6416-keypad.c111 int state = ((reg_val & (1 << i)) ? 1 : 0) local
114 input_event(input, type, button->code, !!state);
148 /* Get initial device state in case it has switches */
/drivers/input/
H A Dkeycombo.c49 struct keycombo_state *state = container_of(dwork, local
51 if (state->key_down_fn)
52 state->key_down_fn(state->priv);
57 struct keycombo_state *state = container_of(work, struct keycombo_state, local
59 if (state->key_up_fn)
60 state->key_up_fn(state->priv);
61 __pm_relax(&state->combo_up_wake_source);
68 struct keycombo_state *state local
119 struct keycombo_state *state = local
174 struct keycombo_state *state; local
236 struct keycombo_state *state = platform_get_drvdata(pdev); local
[all...]
/drivers/input/misc/
H A Dsparcspkr.c67 struct sparcspkr_state *state = dev_get_drvdata(dev->dev.parent); local
68 struct bbc_beep_info *info = &state->u.bbc;
86 spin_lock_irqsave(&state->lock, flags);
98 spin_unlock_irqrestore(&state->lock, flags);
105 struct sparcspkr_state *state = dev_get_drvdata(dev->dev.parent); local
106 struct grover_beep_info *info = &state->u.grover;
122 spin_lock_irqsave(&state->lock, flags);
137 spin_unlock_irqrestore(&state->lock, flags);
144 struct sparcspkr_state *state = dev_get_drvdata(dev); local
152 input_dev->name = state
178 struct sparcspkr_state *state = platform_get_drvdata(dev); local
187 struct sparcspkr_state *state; local
233 struct sparcspkr_state *state = platform_get_drvdata(op); local
270 struct sparcspkr_state *state; local
312 struct sparcspkr_state *state = platform_get_drvdata(op); local
[all...]
/drivers/input/touchscreen/
H A Dda9034-ts.c59 int state; member in struct:da9034_touch
148 switch (touch->state) {
160 touch->state = STATE_BUSY;
178 touch->state = STATE_STOP;
196 touch->state = STATE_WAIT;
201 touch->state = STATE_IDLE;
211 touch->state = STATE_BUSY;
214 touch->state = STATE_IDLE;
221 touch->state = STATE_IDLE;
243 if ((event & DA9034_EVENT_PEN_DOWN) && touch->state
[all...]
H A Degalax_ts.c76 u8 state; local
90 state = buf[1];
95 valid = state & EVENT_VALID_MASK;
96 id = (state & EVENT_ID_MASK) >> EVENT_ID_OFFSET;
97 down = state & EVENT_DOWN_UP;
H A Dw90p910_ts.c56 enum ts_state state; member in struct:w90p910_ts
84 w90p910_ts->state = TS_WAIT_X_COORD;
97 w90p910_ts->state = TS_WAIT_Y_COORD;
109 w90p910_ts->state = TS_WAIT_NEW_PACKET;
119 switch (w90p910_ts->state) {
156 if (w90p910_ts->state == TS_WAIT_NEW_PACKET &&
183 w90p910_ts->state = TS_WAIT_NEW_PACKET;
203 w90p910_ts->state = TS_IDLE;
233 w90p910_ts->state = TS_IDLE;
H A Dwm97xx-core.c736 static int wm97xx_suspend(struct device *dev, pm_message_t state) argument
/drivers/isdn/hardware/eicon/
H A Dcapidtmf.h63 byte state; member in struct:tag_capidtmf_recv_state
76 #define capidtmf_recv_process_block(p_state, buffer, length) { if ((p_state)->recv.state != CAPIDTMF_RECV_STATE_IDLE) capidtmf_recv_block(p_state, buffer, length); }
/drivers/isdn/hisax/
H A Dnetjet.c403 register u_char state = bcs->hw.tiger.r_state; local
425 state = HDLC_ZERO_SEARCH;
432 if (state == HDLC_ZERO_SEARCH) {
437 state = HDLC_FLAG_SEARCH;
442 } else if (state == HDLC_FLAG_SEARCH) {
446 state = HDLC_ZERO_SEARCH;
452 state = HDLC_FLAG_FOUND;
459 } else if (state == HDLC_FLAG_FOUND) {
463 state = HDLC_ZERO_SEARCH;
483 if ((state !
[all...]
/drivers/isdn/pcbit/
H A Dlayer2.c561 u_char state; local
563 state = dev->l2_state;
576 if (state == L2_STARTING)
579 if (state == L2_ERROR && dev->l2_state == L2_RUNNING) {
/drivers/leds/
H A Dleds-gpio.c33 int (*platform_gpio_blink_set)(unsigned gpio, int state,
98 int ret, state; local
125 state = !!gpio_get_value_cansleep(led_dat->gpio) ^ led_dat->active_low;
127 state = (template->default_state == LEDS_GPIO_DEFSTATE_ON);
128 led_dat->cdev.brightness = state ? LED_FULL : LED_OFF;
132 ret = gpio_direction_output(led_dat->gpio, led_dat->active_low ^ state);
189 const char *state; local
196 state = of_get_property(child, "default-state", NULL);
197 if (state) {
[all...]
H A Dleds-pca955x.c134 * the appropriate 2-bit state value set for the given LED number (0-3).
136 static inline u8 pca955x_ledsel(u8 oldval, int led_num, int state) argument
139 ((state & 0x3) << (led_num << 1));
/drivers/lguest/
H A Dinterrupts_and_traps.c134 * Now we've pushed all the old state, we change the stack, the code
563 void setup_default_idt_entries(struct lguest_ro_state *state, argument
568 for (i = 0; i < ARRAY_SIZE(state->guest_idt); i++)
569 default_idt_entry(&state->guest_idt[i], i, def[i], NULL);
H A Dlg.h30 /* This is the host state & guest descriptor page, ro in guest */
31 struct lguest_ro_state state; member in struct:lguest_pages
167 void setup_default_idt_entries(struct lguest_ro_state *state,
179 void setup_default_gdt_entries(struct lguest_ro_state *state);
/drivers/md/
H A Draid1.h128 unsigned long state; member in struct:r1bio
151 /* bits for r1bio.state */
/drivers/media/common/saa7146/
H A Dsaa7146_fops.c62 buf->vb.state = VIDEOBUF_NEEDS_INIT;
84 buf->vb.state = VIDEOBUF_QUEUED;
93 int state)
96 DEB_EE("dev:%p, dmaq:%p, state:%d\n", dev, q, state);
107 q->curr->vb.state = state;
353 if (buf->state == VIDEOBUF_DONE || buf->state == VIDEOBUF_ERROR) {
358 DEB_D("nothing to poll for, buf->state
91 saa7146_buffer_finish(struct saa7146_dev *dev, struct saa7146_dmaqueue *q, int state) argument
[all...]
/drivers/media/dvb-core/
H A Ddmxdev.h81 enum dmxdev_state state; member in struct:dmxdev_filter
/drivers/media/dvb-frontends/
H A Datbm8830.c264 struct atbm_state *state = fe->demodulator_priv; local
267 kfree(state);
H A Dau8522_decoder.c187 static void setup_vbi(struct au8522_state *state, int aud_input) argument
192 au8522_writereg(state, AU8522_TVDEC_VBI_CTRL_H_REG017H, 0x00);
193 au8522_writereg(state, AU8522_TVDEC_VBI_CTRL_L_REG018H, 0x00);
194 au8522_writereg(state, AU8522_TVDEC_VBI_USER_TOTAL_BITS_REG019H, 0x00);
195 au8522_writereg(state, AU8522_TVDEC_VBI_USER_TUNIT_H_REG01AH, 0x00);
196 au8522_writereg(state, AU8522_TVDEC_VBI_USER_TUNIT_L_REG01BH, 0x00);
197 au8522_writereg(state, AU8522_TVDEC_VBI_USER_THRESH1_REG01CH, 0x00);
198 au8522_writereg(state, AU8522_TVDEC_VBI_USER_FRAME_PAT2_REG01EH, 0x00);
199 au8522_writereg(state, AU8522_TVDEC_VBI_USER_FRAME_PAT1_REG01FH, 0x00);
200 au8522_writereg(state, AU8522_TVDEC_VBI_USER_FRAME_PAT0_REG020
223 setup_decoder_defaults(struct au8522_state *state, bool is_svideo) argument
355 au8522_setup_cvbs_mode(struct au8522_state *state, u8 input_mode) argument
375 au8522_setup_cvbs_tuner_mode(struct au8522_state *state, u8 input_mode) argument
401 au8522_setup_svideo_mode(struct au8522_state *state, u8 input_mode) argument
424 disable_audio_input(struct au8522_state *state) argument
438 set_audio_input(struct au8522_state *state) argument
494 struct au8522_state *state = local
531 struct au8522_state *state = to_state(sd); local
540 struct au8522_state *state = to_state(sd); local
547 au8522_video_set(struct au8522_state *state) argument
588 struct au8522_state *state = to_state(sd); local
619 struct au8522_state *state = to_state(sd); local
640 struct au8522_state *state = to_state(sd); local
656 struct au8522_state *state = to_state(sd); local
669 struct au8522_state *state = to_state(sd); local
729 struct au8522_state *state; local
[all...]
H A Dau8522_dig.c245 struct au8522_state *state = fe->demodulator_priv; local
273 au8522_writereg(state, 0x80b5, r0b5);
274 au8522_writereg(state, 0x80b6, r0b6);
275 au8522_writereg(state, 0x80b7, r0b7);
475 struct au8522_state *state = fe->demodulator_priv; local
484 au8522_writereg(state,
487 au8522_set_if(fe, state->config->vsb_if);
492 au8522_writereg(state,
495 au8522_set_if(fe, state->config->qam_if);
500 au8522_writereg(state,
519 struct au8522_state *state = fe->demodulator_priv; local
551 struct au8522_state *state = fe->demodulator_priv; local
607 au8522_led_status(struct au8522_state *state, const u16 *snr) argument
642 struct au8522_state *state = fe->demodulator_priv; local
706 struct au8522_state *state = fe->demodulator_priv; local
724 struct au8522_state *state = fe->demodulator_priv; local
744 struct au8522_state *state = fe->demodulator_priv; local
751 struct au8522_state *state = NULL; local
[all...]
H A Dcx22700.c70 static int cx22700_writereg (struct cx22700_state* state, u8 reg, u8 data) argument
74 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 };
78 ret = i2c_transfer (state->i2c, &msg, 1);
87 static int cx22700_readreg (struct cx22700_state* state, u8 reg) argument
92 struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 },
93 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 1 } };
97 ret = i2c_transfer (state->i2c, msg, 2);
104 static int cx22700_set_inversion (struct cx22700_state* state, int inversion) argument
114 val = cx22700_readreg (state, 0x09);
115 return cx22700_writereg (state,
124 cx22700_set_tps(struct cx22700_state *state, struct dtv_frontend_properties *p) argument
188 cx22700_get_tps(struct cx22700_state *state, struct dtv_frontend_properties *p) argument
235 { struct cx22700_state* state = fe->demodulator_priv; local
255 struct cx22700_state* state = fe->demodulator_priv; local
283 struct cx22700_state* state = fe->demodulator_priv; local
293 struct cx22700_state* state = fe->demodulator_priv; local
304 struct cx22700_state* state = fe->demodulator_priv; local
315 struct cx22700_state* state = fe->demodulator_priv; local
326 struct cx22700_state* state = fe->demodulator_priv; local
347 struct cx22700_state* state = fe->demodulator_priv; local
356 struct cx22700_state* state = fe->demodulator_priv; local
375 struct cx22700_state* state = fe->demodulator_priv; local
384 struct cx22700_state* state = NULL; local
[all...]
H A Dcx22702.c85 static int cx22702_writereg(struct cx22702_state *state, u8 reg, u8 data) argument
90 .addr = state->config->demod_address, .flags = 0,
93 ret = i2c_transfer(state->i2c, &msg, 1);
105 static u8 cx22702_readreg(struct cx22702_state *state, u8 reg) argument
111 { .addr = state->config->demod_address, .flags = 0,
113 { .addr = state->config->demod_address, .flags = I2C_M_RD,
116 ret = i2c_transfer(state->i2c, msg, 2);
127 static int cx22702_set_inversion(struct cx22702_state *state, int inversion) argument
131 val = cx22702_readreg(state, 0x0C);
144 return cx22702_writereg(state,
148 cx22702_get_tps(struct cx22702_state *state, struct dtv_frontend_properties *p) argument
250 struct cx22702_state *state = fe->demodulator_priv; local
267 struct cx22702_state *state = fe->demodulator_priv; local
438 struct cx22702_state *state = fe->demodulator_priv; local
457 struct cx22702_state *state = fe->demodulator_priv; local
486 struct cx22702_state *state = fe->demodulator_priv; local
504 struct cx22702_state *state = fe->demodulator_priv; local
531 struct cx22702_state *state = fe->demodulator_priv; local
550 struct cx22702_state *state = fe->demodulator_priv; local
568 struct cx22702_state *state = fe->demodulator_priv; local
585 struct cx22702_state *state = fe->demodulator_priv; local
594 struct cx22702_state *state = NULL; local
[all...]
H A Ditd1000.c56 static int itd1000_write_regs(struct itd1000_state *state, u8 reg, u8 v[], u8 len) argument
60 .addr = state->cfg->i2c_address, .flags = 0, .buf = buf, .len = len+1
75 if (i2c_transfer(state->i2c, &msg, 1) != 1) {
82 static int itd1000_read_reg(struct itd1000_state *state, u8 reg) argument
86 { .addr = state->cfg->i2c_address, .flags = 0, .buf = &reg, .len = 1 },
87 { .addr = state->cfg->i2c_address, .flags = I2C_M_RD, .buf = &val, .len = 1 },
91 itd1000_write_regs(state, (reg - 1) & 0xff, &state->shadow[(reg - 1) & 0xff], 1);
93 if (i2c_transfer(state->i2c, msg, 2) != 2) {
100 static inline int itd1000_write_reg(struct itd1000_state *state, u argument
130 itd1000_set_lpf_bw(struct itd1000_state *state, u32 symbol_rate) argument
176 itd1000_set_vco(struct itd1000_state *state, u32 freq_khz) argument
226 itd1000_set_lo(struct itd1000_state *state, u32 freq_khz) argument
267 struct itd1000_state *state = fe->tuner_priv; local
282 struct itd1000_state *state = fe->tuner_priv; local
334 struct itd1000_state *state = fe->tuner_priv; local
379 struct itd1000_state *state = NULL; local
[all...]

Completed in 243 milliseconds

<<11121314151617181920>>