Home
last modified time | relevance | path

Searched refs:bdata (Results 1 – 13 of 13) sorted by relevance

/drivers/input/keyboard/
Dgpio_keys.c137 static void gpio_keys_disable_button(struct gpio_button_data *bdata) in gpio_keys_disable_button() argument
139 if (!bdata->disabled) { in gpio_keys_disable_button()
143 disable_irq(bdata->irq); in gpio_keys_disable_button()
145 if (bdata->gpiod) in gpio_keys_disable_button()
146 cancel_delayed_work_sync(&bdata->work); in gpio_keys_disable_button()
148 del_timer_sync(&bdata->release_timer); in gpio_keys_disable_button()
150 bdata->disabled = true; in gpio_keys_disable_button()
164 static void gpio_keys_enable_button(struct gpio_button_data *bdata) in gpio_keys_enable_button() argument
166 if (bdata->disabled) { in gpio_keys_enable_button()
167 enable_irq(bdata->irq); in gpio_keys_enable_button()
[all …]
Dgpio_keys_polled.c74 struct gpio_keys_button_data *bdata) in gpio_keys_polled_check_state() argument
78 if (bdata->can_sleep) in gpio_keys_polled_check_state()
85 if (state != bdata->last_state) { in gpio_keys_polled_check_state()
86 bdata->count = 0; in gpio_keys_polled_check_state()
87 bdata->last_state = state; in gpio_keys_polled_check_state()
102 struct gpio_keys_button_data *bdata = &bdev->data[i]; in gpio_keys_polled_poll() local
104 if (bdata->count < bdata->threshold) { in gpio_keys_polled_poll()
105 bdata->count++; in gpio_keys_polled_poll()
107 bdata->last_state); in gpio_keys_polled_poll()
110 bdata); in gpio_keys_polled_poll()
[all …]
/drivers/gpu/drm/shmobile/
Dshmob_drm_backlight.c24 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_update() local
31 return bdata->set_brightness(brightness); in shmob_drm_backlight_update()
38 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_get_brightness() local
40 return bdata->get_brightness(); in shmob_drm_backlight_get_brightness()
62 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_init() local
67 if (!bdata->max_brightness) in shmob_drm_backlight_init()
70 backlight = backlight_device_register(bdata->name, dev->dev, scon, in shmob_drm_backlight_init()
78 backlight->props.max_brightness = bdata->max_brightness; in shmob_drm_backlight_init()
79 backlight->props.brightness = bdata->max_brightness; in shmob_drm_backlight_init()
/drivers/misc/
Dad525x_dpot.c85 struct ad_dpot_bus_data bdata; member
99 return dpot->bdata.bops->read_d8(dpot->bdata.client); in dpot_read_d8()
104 return dpot->bdata.bops->read_r8d8(dpot->bdata.client, reg); in dpot_read_r8d8()
109 return dpot->bdata.bops->read_r8d16(dpot->bdata.client, reg); in dpot_read_r8d16()
114 return dpot->bdata.bops->write_d8(dpot->bdata.client, val); in dpot_write_d8()
119 return dpot->bdata.bops->write_r8d8(dpot->bdata.client, reg, val); in dpot_write_r8d8()
124 return dpot->bdata.bops->write_r8d16(dpot->bdata.client, reg, val); in dpot_write_r8d16()
683 struct ad_dpot_bus_data *bdata, unsigned long devid, in ad_dpot_probe() argument
699 data->bdata = *bdata; in ad_dpot_probe()
Dad525x_dpot-i2c.c57 struct ad_dpot_bus_data bdata = { in ad_dpot_i2c_probe() local
68 return ad_dpot_probe(&client->dev, &bdata, id->driver_data, id->name); in ad_dpot_i2c_probe()
Dad525x_dpot-spi.c84 struct ad_dpot_bus_data bdata = { in ad_dpot_spi_probe() local
89 return ad_dpot_probe(&spi->dev, &bdata, in ad_dpot_spi_probe()
Dad525x_dpot.h211 int ad_dpot_probe(struct device *dev, struct ad_dpot_bus_data *bdata,
/drivers/isdn/hisax/
Dhfc_pci.c271 hfcpci_empty_fifo(struct BCState *bcs, bzfifo_type *bz, u_char *bdata, int count) in hfcpci_empty_fifo() argument
287 (*(bdata + (zp->z1 - B_SUB_VAL)))) { in hfcpci_empty_fifo()
308 ptr1 = bdata + (zp->z2 - B_SUB_VAL); /* start of data */ in hfcpci_empty_fifo()
314 ptr1 = bdata; /* start of buffer */ in hfcpci_empty_fifo()
398 hfcpci_empty_fifo_trans(struct BCState *bcs, bzfifo_type *bz, u_char *bdata) in hfcpci_empty_fifo_trans() argument
429 ptr1 = bdata + (*z2r - B_SUB_VAL); /* start of data */ in hfcpci_empty_fifo_trans()
435 ptr1 = bdata; /* start of buffer */ in hfcpci_empty_fifo_trans()
457 u_char *bdata; in main_rec_hfcpci() local
463 bdata = ((fifo_area *) (cs->hw.hfcpci.fifos))->b_chans.rxdat_b2; in main_rec_hfcpci()
467 bdata = ((fifo_area *) (cs->hw.hfcpci.fifos))->b_chans.rxdat_b1; in main_rec_hfcpci()
[all …]
/drivers/staging/iio/adc/
Dad7606_spi.c25 __be16 *bdata = buf; in ad7606_spi_read_block() local
34 data[i] = be16_to_cpu(bdata[i]); in ad7606_spi_read_block()
/drivers/pinctrl/samsung/
Dpinctrl-samsung.c979 const struct samsung_pin_bank_data *bdata; in samsung_pinctrl_get_soc_data() local
1001 bdata = ctrl->pin_banks; in samsung_pinctrl_get_soc_data()
1002 for (i = 0; i < ctrl->nr_banks; ++i, ++bdata, ++bank) { in samsung_pinctrl_get_soc_data()
1003 bank->type = bdata->type; in samsung_pinctrl_get_soc_data()
1004 bank->pctl_offset = bdata->pctl_offset; in samsung_pinctrl_get_soc_data()
1005 bank->nr_pins = bdata->nr_pins; in samsung_pinctrl_get_soc_data()
1006 bank->eint_func = bdata->eint_func; in samsung_pinctrl_get_soc_data()
1007 bank->eint_type = bdata->eint_type; in samsung_pinctrl_get_soc_data()
1008 bank->eint_mask = bdata->eint_mask; in samsung_pinctrl_get_soc_data()
1009 bank->eint_offset = bdata->eint_offset; in samsung_pinctrl_get_soc_data()
[all …]
/drivers/isdn/hardware/mISDN/
Dhfcpci.c406 u_char *bdata, int count) in hfcpci_empty_bfifo() argument
420 (*(bdata + (le16_to_cpu(zp->z1) - B_SUB_VAL)))) { in hfcpci_empty_bfifo()
444 ptr1 = bdata + (le16_to_cpu(zp->z2) - B_SUB_VAL); in hfcpci_empty_bfifo()
451 ptr1 = bdata; /* start of buffer */ in hfcpci_empty_bfifo()
547 struct bzfifo *txbz, u_char *bdata) in hfcpci_empty_fifo_trans() argument
592 ptr1 = bdata + (le16_to_cpu(*z2r) - B_SUB_VAL); in hfcpci_empty_fifo_trans()
599 ptr1 = bdata; /* start of buffer */ in hfcpci_empty_fifo_trans()
617 u_char *bdata; in main_rec_hfcpci() local
623 bdata = ((union fifo_area *)(hc->hw.fifos))->b_chans.rxdat_b2; in main_rec_hfcpci()
628 bdata = ((union fifo_area *)(hc->hw.fifos))->b_chans.rxdat_b1; in main_rec_hfcpci()
[all …]
/drivers/hid/
Dhid-picolcd_fb.c160 const u8 *bdata = bitmap + tile * 256 + chip * 8 + b * 32; in picolcd_fb_update_tile() local
163 tdata[i] |= (bdata[i/8] >> (i % 8)) & 0x01; in picolcd_fb_update_tile()
168 const u8 *bdata = bitmap + (tile * 256 + chip * 8 + b * 32) * 8; in picolcd_fb_update_tile() local
171 tdata[i] |= (bdata[i] & 0x80) ? 0x01 : 0x00; in picolcd_fb_update_tile()
/drivers/i2c/
Di2c-core.c101 u8 bdata; member
527 gsb->bdata = status; in i2c_acpi_space_handler()
531 status = i2c_smbus_write_byte(client, gsb->bdata); in i2c_acpi_space_handler()
539 gsb->bdata = status; in i2c_acpi_space_handler()
544 gsb->bdata); in i2c_acpi_space_handler()