/drivers/i2c/busses/ |
H A D | i2c-hydra.c | 52 static void hydra_bit_setscl(void *data, int state) argument 55 if (state) 64 static void hydra_bit_setsda(void *data, int state) argument 67 if (state)
|
H A D | i2c-simtec.c | 42 static void simtec_i2c_setsda(void *pw, int state) argument 45 writeb(CMD_SET_SDA | (state ? STATE_SDA : 0), pd->reg); 48 static void simtec_i2c_setscl(void *pw, int state) argument 51 writeb(CMD_SET_SCL | (state ? STATE_SCL : 0), pd->reg);
|
H A D | i2c-versatile.c | 32 static void i2c_versatile_setsda(void *data, int state) argument 36 writel(SDA, i2c->base + (state ? I2C_CONTROLS : I2C_CONTROLC)); 39 static void i2c_versatile_setscl(void *data, int state) argument 43 writel(SCL, i2c->base + (state ? I2C_CONTROLS : I2C_CONTROLC));
|
H A D | i2c-via.c | 49 static void bit_via_setscl(void *data, int state) argument 51 outb(state ? inb(I2C_DIR) & ~I2C_SCL : inb(I2C_DIR) | I2C_SCL, I2C_DIR); 54 static void bit_via_setsda(void *data, int state) argument 56 outb(state ? inb(I2C_DIR) & ~I2C_SDA : inb(I2C_DIR) | I2C_SDA, I2C_DIR);
|
/drivers/iio/adc/ |
H A D | xilinx-xadc-events.c | 127 enum iio_event_direction dir, int state) 136 if (state) 125 xadc_write_event_config(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, enum iio_event_type type, enum iio_event_direction dir, int state) argument
|
/drivers/iio/gyro/ |
H A D | itg3200_buffer.c | 79 bool state) 89 if (state) 78 itg3200_data_rdy_trigger_set_state(struct iio_trigger *trig, bool state) argument
|
/drivers/infiniband/core/ |
H A D | iwcm.h | 48 enum iw_cm_state state; member in struct:iwcm_id_private
|
/drivers/infiniband/hw/amso1100/ |
H A D | c2_ae.c | 127 static const char *to_qp_state_str(int state) argument 129 switch (state) { 143 return "<invalid QP state>";
|
/drivers/infiniband/hw/usnic/ |
H A D | usnic_ib_qp_grp.h | 35 enum ib_qp_state state; member in struct:usnic_ib_qp_grp 97 const char *usnic_ib_qp_grp_state_to_string(enum ib_qp_state state);
|
/drivers/input/ |
H A D | keyreset.c | 41 struct keyreset_state *state = priv; local 42 if (state->restart_requested) 43 panic("keyboard reset failed, %d", state->restart_requested); 44 if (state->reset_fn) { 45 state->restart_requested = state->reset_fn(); 48 schedule_work(&state->restart_work); 49 state->restart_requested = 1; 60 struct keyreset_state *state; local 64 state 122 struct keyreset_state *state = platform_get_drvdata(pdev); local [all...] |
/drivers/input/misc/ |
H A D | gpio_axis.c | 66 uint16_t state = 0; local 70 state = (state << 1) | gpio_get_value(ai->gpio[i]); 71 pos = ai->map(ai, state); 74 ai->type, ai->code, state, old_pos, pos);
|
H A D | gpio_event.c | 26 void *state[0]; member in struct:gpio_event 50 &ip->state[i], 76 ret = (*ii)->func(ip->input_devs, *ii, &ip->state[i], 94 (*ii)->func(ip->input_devs, *ii, &ip->state[i], func & ~1); 139 sizeof(ip->state[0]) * event_info->info_count + 147 ip->input_devs = (void*)&ip->state[event_info->info_count];
|
H A D | gpio_tilt_polled.c | 46 int state, i; local 51 state = 0; 53 state |= (!!gpio_get_value(pdata->gpios[i].gpio) << i); 55 if (state != tdev->last_state) { 57 if (pdata->states[i].gpios == state) 70 tdev->last_state = state; 83 /* report initial state of the axes */
|
/drivers/isdn/hisax/ |
H A D | fsm.h | 3 * Finite state machine 31 int state; member in struct:FsmInst 39 int state, event; member in struct:FsmNode
|
/drivers/isdn/i4l/ |
H A D | isdn_x25iface.c | 34 enum wan_states state; member in struct:isdn_x25iface_proto_data 67 static void illegal_state_warn(unsigned state, unsigned char firstbyte) argument 70 "current state %d\n", firstbyte, state); 90 tmp->state = WAN_UNCONFIGURED; 125 tmp->state = WAN_UNCONFIGURED; 184 pda->state = WAN_DISCONNECTED; 195 ->state == WAN_CONNECTED) { 214 = &(((ix25_pdata_t *)(cprot->proto_data))->state); 245 = &(((ix25_pdata_t *)(cprot->proto_data))->state); 273 enum wan_states *state = &((ix25_pdata_t *)cprot->proto_data)->state; local [all...] |
/drivers/isdn/mISDN/ |
H A D | fsm.h | 39 int state; member in struct:FsmInst 47 int state, event; member in struct:FsmNode
|
H A D | l1oip_codec.c | 226 l1oip_law_to_4bit(u8 *data, int len, u8 *result, u32 *state) argument 234 if (*state) { 235 *result++ = table_com[(((*state) << 8) & 0xff00) | (*data++)]; 251 *state = 0x100 + *data; 253 *state = 0;
|
/drivers/leds/ |
H A D | leds-lt3593.c | 87 int ret, state; local 102 state = (template->default_state == LEDS_GPIO_DEFSTATE_ON); 103 led_dat->cdev.brightness = state ? LED_FULL : LED_OFF; 108 ret = devm_gpio_request_one(parent, template->gpio, state ?
|
/drivers/leds/trigger/ |
H A D | ledtrig-oneshot.c | 56 unsigned long state; local 59 ret = kstrtoul(buf, 0, &state); 63 oneshot_data->invert = !!state; 85 unsigned long state; local 88 ret = kstrtoul(buf, 0, &state); 92 led_cdev->blink_delay_on = state; 108 unsigned long state; local 111 ret = kstrtoul(buf, 0, &state); 115 led_cdev->blink_delay_off = state;
|
H A D | ledtrig-transient.c | 32 int state; member in struct:transient_trig_data 61 unsigned long state; local 64 ret = kstrtoul(buf, 10, &state); 68 if (state != 1 && state != 0) 72 if (state == 0 && transient_data->activate == 1) { 74 transient_data->activate = state; 80 if (state == 1 && transient_data->activate == 0 && 82 transient_data->activate = state; 83 __led_set_brightness(led_cdev, transient_data->state); 112 unsigned long state; local 128 int state; local 139 unsigned long state; local [all...] |
/drivers/macintosh/ |
H A D | adb-iop.c | 66 static void adb_iop_end_req(struct adb_request *req, int state) argument 71 adb_iop_state = state;
|
/drivers/media/dvb-frontends/ |
H A D | tda665x.c | 37 static int tda665x_read(struct tda665x_state *state, u8 *buf) argument 39 const struct tda665x_config *config = state->config; 43 err = i2c_transfer(state->i2c, &msg, 1); 53 static int tda665x_write(struct tda665x_state *state, u8 *buf, u8 length) argument 55 const struct tda665x_config *config = state->config; 59 err = i2c_transfer(state->i2c, &msg, 1); 73 struct tda665x_state *state = fe->tuner_priv; local 78 tstate->frequency = state->frequency; 93 struct tda665x_state *state = fe->tuner_priv; local 99 err = tda665x_read(state, 118 struct tda665x_state *state = fe->tuner_priv; local 208 struct tda665x_state *state = fe->tuner_priv; local 227 struct tda665x_state *state = NULL; local [all...] |
H A D | tda8261.c | 34 /* state cache */ 39 static int tda8261_read(struct tda8261_state *state, u8 *buf) argument 41 const struct tda8261_config *config = state->config; 45 if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) 51 static int tda8261_write(struct tda8261_state *state, u8 *buf) argument 53 const struct tda8261_config *config = state->config; 57 if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) 65 struct tda8261_state *state = fe->tuner_priv; local 71 if ((err = tda8261_read(state, &result)) < 0) { 90 struct tda8261_state *state local 113 struct tda8261_state *state = fe->tuner_priv; local 174 struct tda8261_state *state = fe->tuner_priv; local 201 struct tda8261_state *state = NULL; local [all...] |
/drivers/media/i2c/cx25840/ |
H A D | cx25840-audio.c | 46 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); local 48 if (state->aud_input != CX25840_AUDIO_SERIAL) { 78 if (is_cx2583x(state)) 115 if (is_cx2583x(state)) 152 if (is_cx2583x(state)) 191 if (is_cx2583x(state)) 232 if (is_cx2583x(state)) 273 if (is_cx2583x(state)) 289 state->audclk_freq = freq; 301 struct cx25840_state *state local 343 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); local 419 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); local 438 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); local 520 struct cx25840_state *state = to_state(sd); local 540 struct cx25840_state *state = to_state(sd); local [all...] |
H A D | cx25840-firmware.c | 70 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); local 74 if (is_cx2388x(state)) 76 if (is_cx231xx(state)) 110 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); local 119 if (is_cx2388x(state)) { 125 if (is_cx231xx(state) && MAX_BUF_SIZE > 16) { 163 if (is_cx2388x(state)) {
|