Home
last modified time | relevance | path

Searched refs:cell (Results 1 – 25 of 47) sorted by relevance

12

/drivers/mfd/
Dmfd-core.c30 const struct mfd_cell *cell = mfd_get_cell(pdev); in mfd_cell_enable() local
34 if (atomic_inc_return(cell->usage_count) == 1) in mfd_cell_enable()
35 err = cell->enable(pdev); in mfd_cell_enable()
39 atomic_dec(cell->usage_count); in mfd_cell_enable()
47 const struct mfd_cell *cell = mfd_get_cell(pdev); in mfd_cell_disable() local
51 if (atomic_dec_return(cell->usage_count) == 0) in mfd_cell_disable()
52 err = cell->disable(pdev); in mfd_cell_disable()
56 atomic_inc(cell->usage_count); in mfd_cell_disable()
59 WARN_ON(atomic_read(cell->usage_count) < 0); in mfd_cell_disable()
66 const struct mfd_cell *cell) in mfd_platform_add_cell() argument
[all …]
Ddavinci_voicecodec.c50 struct mfd_cell *cell = NULL; in davinci_vc_probe() local
120 cell = &davinci_vc->cells[DAVINCI_VC_VCIF_CELL]; in davinci_vc_probe()
121 cell->name = "davinci-vcif"; in davinci_vc_probe()
122 cell->platform_data = davinci_vc; in davinci_vc_probe()
123 cell->pdata_size = sizeof(*davinci_vc); in davinci_vc_probe()
126 cell = &davinci_vc->cells[DAVINCI_VC_CQ93VC_CELL]; in davinci_vc_probe()
127 cell->name = "cq93vc-codec"; in davinci_vc_probe()
128 cell->platform_data = davinci_vc; in davinci_vc_probe()
129 cell->pdata_size = sizeof(*davinci_vc); in davinci_vc_probe()
Dtwl4030-audio.c192 struct mfd_cell *cell = NULL; in twl4030_audio_probe() local
235 cell = &audio->cells[childs]; in twl4030_audio_probe()
236 cell->name = "twl4030-codec"; in twl4030_audio_probe()
238 cell->platform_data = pdata->codec; in twl4030_audio_probe()
239 cell->pdata_size = sizeof(*pdata->codec); in twl4030_audio_probe()
244 cell = &audio->cells[childs]; in twl4030_audio_probe()
245 cell->name = "twl4030-vibra"; in twl4030_audio_probe()
247 cell->platform_data = pdata->vibra; in twl4030_audio_probe()
248 cell->pdata_size = sizeof(*pdata->vibra); in twl4030_audio_probe()
Dti_am335x_tscadc.c67 struct mfd_cell *cell; in ti_tscadc_probe() local
177 cell = &tscadc->cells[TSC_CELL]; in ti_tscadc_probe()
178 cell->name = "tsc"; in ti_tscadc_probe()
179 cell->platform_data = tscadc; in ti_tscadc_probe()
180 cell->pdata_size = sizeof(*tscadc); in ti_tscadc_probe()
183 cell = &tscadc->cells[ADC_CELL]; in ti_tscadc_probe()
184 cell->name = "tiadc"; in ti_tscadc_probe()
185 cell->platform_data = tscadc; in ti_tscadc_probe()
186 cell->pdata_size = sizeof(*tscadc); in ti_tscadc_probe()
Dwl1273-core.c190 struct mfd_cell *cell; in wl1273_core_probe() local
218 cell = &core->cells[children]; in wl1273_core_probe()
219 cell->name = "wl1273_fm_radio"; in wl1273_core_probe()
220 cell->platform_data = &core; in wl1273_core_probe()
221 cell->pdata_size = sizeof(core); in wl1273_core_probe()
231 cell = &core->cells[children]; in wl1273_core_probe()
234 cell->name = "wl1273-codec"; in wl1273_core_probe()
235 cell->platform_data = &core; in wl1273_core_probe()
236 cell->pdata_size = sizeof(core); in wl1273_core_probe()
Dtwl6040.c526 struct mfd_cell *cell = NULL; in twl6040_probe() local
632 cell = &twl6040->cells[children]; in twl6040_probe()
633 cell->name = "twl6040-codec"; in twl6040_probe()
636 cell->resources = twl6040_codec_rsrc; in twl6040_probe()
637 cell->num_resources = ARRAY_SIZE(twl6040_codec_rsrc); in twl6040_probe()
639 cell->platform_data = pdata->codec; in twl6040_probe()
640 cell->pdata_size = sizeof(*pdata->codec); in twl6040_probe()
647 cell = &twl6040->cells[children]; in twl6040_probe()
648 cell->name = "twl6040-vibra"; in twl6040_probe()
651 cell->resources = twl6040_vibra_rsrc; in twl6040_probe()
[all …]
Djanz-cmodio.c71 struct mfd_cell *cell; in cmodio_setup_subdevice() local
76 cell = &priv->cells[devno]; in cmodio_setup_subdevice()
80 cell->name = name; in cmodio_setup_subdevice()
81 cell->resources = res; in cmodio_setup_subdevice()
82 cell->num_resources = 3; in cmodio_setup_subdevice()
85 cell->id = cmodio_id++; in cmodio_setup_subdevice()
89 cell->platform_data = pdata; in cmodio_setup_subdevice()
90 cell->pdata_size = sizeof(*pdata); in cmodio_setup_subdevice()
Dstmpe.c352 .cell = &stmpe_gpio_cell,
360 .cell = &stmpe_gpio_cell_noirq,
442 .cell = &stmpe_gpio_cell,
447 .cell = &stmpe_ts_cell,
529 .cell = &stmpe_gpio_cell,
534 .cell = &stmpe_keypad_cell,
666 .cell = &stmpe_gpio_cell,
671 .cell = &stmpe_keypad_cell,
751 .cell = &stmpe_gpio_cell,
756 .cell = &stmpe_keypad_cell,
[all …]
Dintel_msic.c317 struct mfd_cell *cell = &msic_devs[INTEL_MSIC_BLOCK_GPIO]; in intel_msic_init_devices() local
319 cell->platform_data = pdata->gpio; in intel_msic_init_devices()
320 cell->pdata_size = sizeof(*pdata->gpio); in intel_msic_init_devices()
Dsi476x-i2c.c696 struct mfd_cell *cell; in si476x_core_probe() local
810 cell = &core->cells[SI476X_RADIO_CELL]; in si476x_core_probe()
811 cell->name = "si476x-radio"; in si476x_core_probe()
821 cell = &core->cells[SI476X_CODEC_CELL]; in si476x_core_probe()
822 cell->name = "si476x-codec"; in si476x_core_probe()
Dwm8400-core.c67 struct mfd_cell cell = { in wm8400_register_codec() local
73 return mfd_add_devices(wm8400->dev, -1, &cell, 1, NULL, 0, NULL); in wm8400_register_codec()
/drivers/md/
Ddm-bio-prison.c89 struct dm_bio_prison_cell *cell) in dm_bio_prison_free_cell() argument
91 mempool_free(cell, prison->cell_pool); in dm_bio_prison_free_cell()
113 struct dm_bio_prison_cell *cell; in __search_bucket() local
115 hlist_for_each_entry(cell, bucket, list) in __search_bucket()
116 if (keys_equal(&cell->key, key)) in __search_bucket()
117 return cell; in __search_bucket()
126 struct dm_bio_prison_cell *cell) in __setup_new_cell() argument
128 memcpy(&cell->key, key, sizeof(cell->key)); in __setup_new_cell()
129 cell->holder = holder; in __setup_new_cell()
130 bio_list_init(&cell->bios); in __setup_new_cell()
[all …]
Ddm-thin.c267 struct dm_bio_prison_cell *cell, in cell_release() argument
270 dm_cell_release(pool->prison, cell, bios); in cell_release()
271 dm_bio_prison_free_cell(pool->prison, cell); in cell_release()
275 struct dm_bio_prison_cell *cell, in cell_release_no_holder() argument
278 dm_cell_release_no_holder(pool->prison, cell, bios); in cell_release_no_holder()
279 dm_bio_prison_free_cell(pool->prison, cell); in cell_release_no_holder()
283 struct dm_bio_prison_cell *cell) in cell_defer_no_holder_no_free() argument
289 dm_cell_release_no_holder(pool->prison, cell, &pool->deferred_bios); in cell_defer_no_holder_no_free()
296 struct dm_bio_prison_cell *cell) in cell_error() argument
298 dm_cell_error(pool->prison, cell); in cell_error()
[all …]
Ddm-bio-prison.h57 struct dm_bio_prison_cell *cell);
82 struct dm_bio_prison_cell *cell,
85 struct dm_bio_prison_cell *cell,
88 struct dm_bio_prison_cell *cell);
Ddm-cache-target.c258 static void free_prison_cell(struct cache *cache, struct dm_bio_prison_cell *cell) in free_prison_cell() argument
260 dm_bio_prison_free_cell(cache->prison, cell); in free_prison_cell()
333 static void prealloc_put_cell(struct prealloc *p, struct dm_bio_prison_cell *cell) in prealloc_put_cell() argument
336 p->cell2 = cell; in prealloc_put_cell()
339 p->cell1 = cell; in prealloc_put_cell()
359 typedef void (*cell_free_fn)(void *context, struct dm_bio_prison_cell *cell);
723 static void __cell_defer(struct cache *cache, struct dm_bio_prison_cell *cell, in __cell_defer() argument
727 (cache->prison, cell, &cache->deferred_bios); in __cell_defer()
728 free_prison_cell(cache, cell); in __cell_defer()
731 static void cell_defer(struct cache *cache, struct dm_bio_prison_cell *cell, in cell_defer() argument
[all …]
/drivers/mmc/host/
Dtmio_mmc.c29 const struct mfd_cell *cell = mfd_get_cell(dev); in tmio_mmc_suspend() local
35 if (!ret && cell->disable) in tmio_mmc_suspend()
36 cell->disable(dev); in tmio_mmc_suspend()
43 const struct mfd_cell *cell = mfd_get_cell(dev); in tmio_mmc_resume() local
47 if (cell->resume) in tmio_mmc_resume()
48 ret = cell->resume(dev); in tmio_mmc_resume()
62 const struct mfd_cell *cell = mfd_get_cell(pdev); in tmio_mmc_probe() local
81 if (cell->enable) { in tmio_mmc_probe()
82 ret = cell->enable(pdev); in tmio_mmc_probe()
104 if (cell->disable) in tmio_mmc_probe()
[all …]
/drivers/usb/host/
Dohci-tmio.c190 const struct mfd_cell *cell = mfd_get_cell(dev); in ohci_hcd_tmio_drv_probe() local
203 if (!cell) in ohci_hcd_tmio_drv_probe()
239 if (cell->enable) { in ohci_hcd_tmio_drv_probe()
240 ret = cell->enable(dev); in ohci_hcd_tmio_drv_probe()
260 if (cell->disable) in ohci_hcd_tmio_drv_probe()
261 cell->disable(dev); in ohci_hcd_tmio_drv_probe()
279 const struct mfd_cell *cell = mfd_get_cell(dev); in ohci_hcd_tmio_drv_remove() local
283 if (cell->disable) in ohci_hcd_tmio_drv_remove()
284 cell->disable(dev); in ohci_hcd_tmio_drv_remove()
298 const struct mfd_cell *cell = mfd_get_cell(dev); in ohci_hcd_tmio_drv_suspend() local
[all …]
/drivers/leds/
Dleds-asic3.c44 const struct mfd_cell *cell = mfd_get_cell(pdev); in brightness_set() local
51 base = led_n_base[cell->id]; in brightness_set()
63 const struct mfd_cell *cell = mfd_get_cell(pdev); in blink_set() local
83 base = led_n_base[cell->id]; in blink_set()
141 const struct mfd_cell *cell = mfd_get_cell(pdev); in asic3_led_suspend() local
145 if (cell->suspend) in asic3_led_suspend()
146 ret = (*cell->suspend)(pdev); in asic3_led_suspend()
154 const struct mfd_cell *cell = mfd_get_cell(pdev); in asic3_led_resume() local
158 if (cell->resume) in asic3_led_resume()
159 ret = (*cell->resume)(pdev); in asic3_led_resume()
/drivers/mtd/nand/
Dtmio_nand.c307 const struct mfd_cell *cell = mfd_get_cell(dev); in tmio_hw_init() local
310 if (cell->enable) { in tmio_hw_init()
311 ret = cell->enable(dev); in tmio_hw_init()
351 const struct mfd_cell *cell = mfd_get_cell(dev); in tmio_hw_stop() local
354 if (cell->disable) in tmio_hw_stop()
355 cell->disable(dev); in tmio_hw_stop()
487 const struct mfd_cell *cell = mfd_get_cell(dev); in tmio_suspend() local
489 if (cell->suspend) in tmio_suspend()
490 cell->suspend(dev); in tmio_suspend()
498 const struct mfd_cell *cell = mfd_get_cell(dev); in tmio_resume() local
[all …]
/drivers/s390/char/
Dtty3270.c1042 struct tty3270_cell *cell; in tty3270_put_character() local
1047 cell = line->cells + line->len; in tty3270_put_character()
1048 cell->character = tp->view.ascebc[' ']; in tty3270_put_character()
1049 cell->highlight = tp->highlight; in tty3270_put_character()
1050 cell->f_color = tp->f_color; in tty3270_put_character()
1055 cell = line->cells + tp->cx; in tty3270_put_character()
1056 cell->character = tp->view.ascebc[(unsigned int) ch]; in tty3270_put_character()
1057 cell->highlight = tp->highlight; in tty3270_put_character()
1058 cell->f_color = tp->f_color; in tty3270_put_character()
1068 struct tty3270_cell *cell; in tty3270_convert_line() local
[all …]
/drivers/video/
Dtmiofb.c270 const struct mfd_cell *cell = mfd_get_cell(dev); in tmiofb_hw_init() local
273 const struct resource *nlcr = &cell->resources[0]; in tmiofb_hw_init()
274 const struct resource *vram = &cell->resources[2]; in tmiofb_hw_init()
680 const struct mfd_cell *cell = mfd_get_cell(dev); in tmiofb_probe() local
767 if (cell->enable) { in tmiofb_probe()
768 retval = cell->enable(dev); in tmiofb_probe()
793 if (cell->disable) in tmiofb_probe()
794 cell->disable(dev); in tmiofb_probe()
812 const struct mfd_cell *cell = mfd_get_cell(dev); in tmiofb_remove() local
823 if (cell->disable) in tmiofb_remove()
[all …]
/drivers/staging/iio/Documentation/
Dsysfs-bus-iio-adc-ad7280a5 Writing 1 enables the cell balance output switch corresponding
16 individual times for each cell balance output. The AD7280A
20 timer value is set 0, the timer is disabled. The cell balance
/drivers/hwmon/
Djz4740-hwmon.c36 const struct mfd_cell *cell; member
72 hwmon->cell->enable(to_platform_device(dev)); in jz4740_hwmon_read_adcin()
84 hwmon->cell->disable(to_platform_device(dev)); in jz4740_hwmon_read_adcin()
114 hwmon->cell = mfd_get_cell(pdev); in jz4740_hwmon_probe()
/drivers/w1/masters/
Dds1wm.c101 const struct mfd_cell *cell; member
260 if (ds1wm_data->cell->enable) in ds1wm_up()
261 ds1wm_data->cell->enable(ds1wm_data->pdev); in ds1wm_up()
288 if (ds1wm_data->cell->disable) in ds1wm_down()
289 ds1wm_data->cell->disable(ds1wm_data->pdev); in ds1wm_down()
481 ds1wm_data->cell = mfd_get_cell(pdev); in ds1wm_probe()
482 if (!ds1wm_data->cell) in ds1wm_probe()
/drivers/power/
Djz4740-battery.c42 const struct mfd_cell *cell; member
79 battery->cell->enable(battery->pdev); in jz_battery_read_voltage()
96 battery->cell->disable(battery->pdev); in jz_battery_read_voltage()
260 jz_battery->cell = mfd_get_cell(pdev); in jz_battery_probe()

12