Home
last modified time | relevance | path

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

123

/drivers/mfd/
Dmfd-core.c32 const struct mfd_cell *cell = mfd_get_cell(pdev); in mfd_cell_enable() local
36 if (atomic_inc_return(cell->usage_count) == 1) in mfd_cell_enable()
37 err = cell->enable(pdev); in mfd_cell_enable()
41 atomic_dec(cell->usage_count); in mfd_cell_enable()
49 const struct mfd_cell *cell = mfd_get_cell(pdev); in mfd_cell_disable() local
53 if (atomic_dec_return(cell->usage_count) == 0) in mfd_cell_disable()
54 err = cell->disable(pdev); in mfd_cell_disable()
58 atomic_inc(cell->usage_count); in mfd_cell_disable()
61 WARN_ON(atomic_read(cell->usage_count) < 0); in mfd_cell_disable()
68 const struct mfd_cell *cell, in mfd_platform_add_cell() argument
[all …]
Ddavinci_voicecodec.c45 struct mfd_cell *cell = NULL; in davinci_vc_probe() local
103 cell = &davinci_vc->cells[DAVINCI_VC_VCIF_CELL]; in davinci_vc_probe()
104 cell->name = "davinci-vcif"; in davinci_vc_probe()
105 cell->platform_data = davinci_vc; in davinci_vc_probe()
106 cell->pdata_size = sizeof(*davinci_vc); in davinci_vc_probe()
109 cell = &davinci_vc->cells[DAVINCI_VC_CQ93VC_CELL]; in davinci_vc_probe()
110 cell->name = "cq93vc-codec"; in davinci_vc_probe()
111 cell->platform_data = davinci_vc; in davinci_vc_probe()
112 cell->pdata_size = sizeof(*davinci_vc); in davinci_vc_probe()
Dlpc_sch.c125 int id, struct mfd_cell *cell) in lpc_sch_populate_cell() argument
138 memset(cell, 0, sizeof(*cell)); in lpc_sch_populate_cell()
140 cell->name = name; in lpc_sch_populate_cell()
141 cell->resources = res; in lpc_sch_populate_cell()
142 cell->num_resources = 1; in lpc_sch_populate_cell()
143 cell->ignore_resource_conflicts = true; in lpc_sch_populate_cell()
144 cell->id = id; in lpc_sch_populate_cell()
156 cell->num_resources++; in lpc_sch_populate_cell()
Dintel-lpss.c77 struct mfd_cell *cell; member
223 const struct mfd_cell *cell; in intel_lpss_assign_devs() local
231 cell = &intel_lpss_i2c_cell; in intel_lpss_assign_devs()
234 cell = &intel_lpss_uart_cell; in intel_lpss_assign_devs()
237 cell = &intel_lpss_spi_cell; in intel_lpss_assign_devs()
243 lpss->cell = devm_kmemdup(lpss->dev, cell, sizeof(*cell), GFP_KERNEL); in intel_lpss_assign_devs()
244 if (!lpss->cell) in intel_lpss_assign_devs()
332 const struct mfd_cell *cell = lpss->cell; in intel_lpss_register_clock() local
346 snprintf(devname, sizeof(devname), "%s.%d", cell->name, lpss->devid); in intel_lpss_register_clock()
412 lpss->cell->properties = info->properties; in intel_lpss_probe()
[all …]
Dtwl4030-audio.c197 struct mfd_cell *cell = NULL; in twl4030_audio_probe() local
240 cell = &audio->cells[childs]; in twl4030_audio_probe()
241 cell->name = "twl4030-codec"; in twl4030_audio_probe()
243 cell->platform_data = pdata->codec; in twl4030_audio_probe()
244 cell->pdata_size = sizeof(*pdata->codec); in twl4030_audio_probe()
249 cell = &audio->cells[childs]; in twl4030_audio_probe()
250 cell->name = "twl4030-vibra"; in twl4030_audio_probe()
252 cell->platform_data = pdata->vibra; in twl4030_audio_probe()
253 cell->pdata_size = sizeof(*pdata->vibra); in twl4030_audio_probe()
Dwl1273-core.c178 struct mfd_cell *cell; in wl1273_core_probe() local
206 cell = &core->cells[children]; in wl1273_core_probe()
207 cell->name = "wl1273_fm_radio"; in wl1273_core_probe()
208 cell->platform_data = &core; in wl1273_core_probe()
209 cell->pdata_size = sizeof(core); in wl1273_core_probe()
219 cell = &core->cells[children]; in wl1273_core_probe()
222 cell->name = "wl1273-codec"; in wl1273_core_probe()
223 cell->platform_data = &core; in wl1273_core_probe()
224 cell->pdata_size = sizeof(core); in wl1273_core_probe()
Dti_am335x_tscadc.c128 struct mfd_cell *cell; in ti_tscadc_probe() local
251 cell = &tscadc->cells[tscadc->used_cells++]; in ti_tscadc_probe()
252 cell->name = "TI-am335x-tsc"; in ti_tscadc_probe()
253 cell->of_compatible = "ti,am3359-tsc"; in ti_tscadc_probe()
254 cell->platform_data = &tscadc; in ti_tscadc_probe()
255 cell->pdata_size = sizeof(tscadc); in ti_tscadc_probe()
261 cell = &tscadc->cells[tscadc->used_cells++]; in ti_tscadc_probe()
262 cell->name = "TI-am335x-adc"; in ti_tscadc_probe()
263 cell->of_compatible = "ti,am3359-adc"; in ti_tscadc_probe()
264 cell->platform_data = &tscadc; in ti_tscadc_probe()
[all …]
Dintel_quark_i2c_gpio.c161 static int intel_quark_i2c_setup(struct pci_dev *pdev, struct mfd_cell *cell) in intel_quark_i2c_setup() argument
166 struct resource *res = (struct resource *)cell->resources; in intel_quark_i2c_setup()
193 cell->platform_data = pdata; in intel_quark_i2c_setup()
194 cell->pdata_size = sizeof(*pdata); in intel_quark_i2c_setup()
199 static int intel_quark_gpio_setup(struct pci_dev *pdev, struct mfd_cell *cell) in intel_quark_gpio_setup() argument
202 struct resource *res = (struct resource *)cell->resources; in intel_quark_gpio_setup()
230 cell->platform_data = pdata; in intel_quark_gpio_setup()
231 cell->pdata_size = sizeof(*pdata); in intel_quark_gpio_setup()
Djanz-cmodio.c70 struct mfd_cell *cell; in cmodio_setup_subdevice() local
75 cell = &priv->cells[devno]; in cmodio_setup_subdevice()
79 cell->name = name; in cmodio_setup_subdevice()
80 cell->resources = res; in cmodio_setup_subdevice()
81 cell->num_resources = 3; in cmodio_setup_subdevice()
84 cell->id = cmodio_id++; in cmodio_setup_subdevice()
88 cell->platform_data = pdata; in cmodio_setup_subdevice()
89 cell->pdata_size = sizeof(*pdata); in cmodio_setup_subdevice()
Dtwl6040.c643 struct mfd_cell *cell = NULL; in twl6040_probe() local
764 cell = &twl6040->cells[children]; in twl6040_probe()
765 cell->name = "twl6040-codec"; in twl6040_probe()
768 cell->resources = twl6040_codec_rsrc; in twl6040_probe()
769 cell->num_resources = ARRAY_SIZE(twl6040_codec_rsrc); in twl6040_probe()
776 cell = &twl6040->cells[children]; in twl6040_probe()
777 cell->name = "twl6040-vibra"; in twl6040_probe()
780 cell->resources = twl6040_vibra_rsrc; in twl6040_probe()
781 cell->num_resources = ARRAY_SIZE(twl6040_vibra_rsrc); in twl6040_probe()
786 cell = &twl6040->cells[children]; in twl6040_probe()
[all …]
Dtps6105x.c86 struct mfd_cell *cell) in tps6105x_add_device() argument
88 cell->platform_data = tps6105x; in tps6105x_add_device()
89 cell->pdata_size = sizeof(*tps6105x); in tps6105x_add_device()
92 PLATFORM_DEVID_AUTO, cell, 1, NULL, 0, NULL); in tps6105x_add_device()
/drivers/nvmem/
Dcore.c297 static void nvmem_cell_drop(struct nvmem_cell *cell) in nvmem_cell_drop() argument
300 list_del(&cell->node); in nvmem_cell_drop()
302 kfree(cell); in nvmem_cell_drop()
307 struct nvmem_cell *cell; in nvmem_device_remove_all_cells() local
311 cell = list_entry(p, struct nvmem_cell, node); in nvmem_device_remove_all_cells()
312 if (cell->nvmem == nvmem) in nvmem_device_remove_all_cells()
313 nvmem_cell_drop(cell); in nvmem_device_remove_all_cells()
317 static void nvmem_cell_add(struct nvmem_cell *cell) in nvmem_cell_add() argument
320 list_add_tail(&cell->node, &nvmem_cells); in nvmem_cell_add()
326 struct nvmem_cell *cell) in nvmem_cell_info_to_nvmem_cell() argument
[all …]
/drivers/clk/mmp/
Dreset.c15 struct mmp_clk_reset_cell *cell; in mmp_of_reset_xlate() local
22 cell = &unit->cells[i]; in mmp_of_reset_xlate()
23 if (cell->clk_id == reset_spec->args[0]) in mmp_of_reset_xlate()
37 struct mmp_clk_reset_cell *cell; in mmp_clk_reset_assert() local
41 cell = &unit->cells[id]; in mmp_clk_reset_assert()
42 if (cell->lock) in mmp_clk_reset_assert()
43 spin_lock_irqsave(cell->lock, flags); in mmp_clk_reset_assert()
45 val = readl(cell->reg); in mmp_clk_reset_assert()
46 val |= cell->bits; in mmp_clk_reset_assert()
47 writel(val, cell->reg); in mmp_clk_reset_assert()
[all …]
/drivers/md/
Ddm-bio-prison.c68 struct dm_bio_prison_cell *cell) in dm_bio_prison_free_cell() argument
70 mempool_free(cell, prison->cell_pool); in dm_bio_prison_free_cell()
76 struct dm_bio_prison_cell *cell) in __setup_new_cell() argument
78 memcpy(&cell->key, key, sizeof(cell->key)); in __setup_new_cell()
79 cell->holder = holder; in __setup_new_cell()
80 bio_list_init(&cell->bios); in __setup_new_cell()
117 struct dm_bio_prison_cell *cell = in __bio_detain() local
120 r = cmp_keys(key, &cell->key); in __bio_detain()
129 bio_list_add(&cell->bios, inmate); in __bio_detain()
130 *cell_result = cell; in __bio_detain()
[all …]
Ddm-thin.c218 typedef void (*process_cell_fn)(struct thin_c *tc, struct dm_bio_prison_cell *cell);
428 struct dm_bio_prison_cell *cell, in cell_release() argument
431 dm_cell_release(pool->prison, cell, bios); in cell_release()
432 dm_bio_prison_free_cell(pool->prison, cell); in cell_release()
438 struct dm_bio_prison_cell *cell) in cell_visit_release() argument
440 dm_cell_visit_release(pool->prison, fn, context, cell); in cell_visit_release()
441 dm_bio_prison_free_cell(pool->prison, cell); in cell_visit_release()
445 struct dm_bio_prison_cell *cell, in cell_release_no_holder() argument
448 dm_cell_release_no_holder(pool->prison, cell, bios); in cell_release_no_holder()
449 dm_bio_prison_free_cell(pool->prison, cell); in cell_release_no_holder()
[all …]
Ddm-bio-prison.h62 struct dm_bio_prison_cell *cell);
88 struct dm_bio_prison_cell *cell,
91 struct dm_bio_prison_cell *cell,
94 struct dm_bio_prison_cell *cell, int error);
102 void *context, struct dm_bio_prison_cell *cell);
115 struct dm_bio_prison_cell *cell);
Ddm-cache-target.c398 static void free_prison_cell(struct cache *cache, struct dm_bio_prison_cell *cell) in free_prison_cell() argument
400 dm_bio_prison_free_cell(cache->prison, cell); in free_prison_cell()
496 static void prealloc_put_cell(struct prealloc *p, struct dm_bio_prison_cell *cell) in prealloc_put_cell() argument
499 p->cell2 = cell; in prealloc_put_cell()
502 p->cell1 = cell; in prealloc_put_cell()
523 typedef void (*cell_free_fn)(void *context, struct dm_bio_prison_cell *cell);
841 struct dm_bio_prison_cell *cell) in inc_ds() argument
846 BUG_ON(!cell); in inc_ds()
902 static void inc_and_issue(struct cache *cache, struct bio *bio, struct dm_bio_prison_cell *cell) in inc_and_issue() argument
904 inc_ds(cache, bio, cell); in inc_and_issue()
[all …]
/drivers/mmc/host/
Dtmio_mmc.c30 const struct mfd_cell *cell = mfd_get_cell(pdev); in tmio_mmc_suspend() local
36 if (!ret && cell->disable) in tmio_mmc_suspend()
37 cell->disable(pdev); in tmio_mmc_suspend()
45 const struct mfd_cell *cell = mfd_get_cell(pdev); in tmio_mmc_resume() local
49 if (cell->resume) in tmio_mmc_resume()
50 ret = cell->resume(pdev); in tmio_mmc_resume()
61 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()
122 if (cell->disable) in tmio_mmc_probe()
[all …]
/drivers/usb/host/
Dohci-tmio.c189 const struct mfd_cell *cell = mfd_get_cell(dev); in ohci_hcd_tmio_drv_probe() local
202 if (!cell) in ohci_hcd_tmio_drv_probe()
238 if (cell->enable) { in ohci_hcd_tmio_drv_probe()
239 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()
296 const struct mfd_cell *cell = mfd_get_cell(dev); in ohci_hcd_tmio_drv_suspend() local
[all …]
/drivers/leds/
Dleds-asic3.c43 const struct mfd_cell *cell = mfd_get_cell(pdev); in brightness_set() local
50 base = led_n_base[cell->id]; in brightness_set()
62 const struct mfd_cell *cell = mfd_get_cell(pdev); in blink_set() local
82 base = led_n_base[cell->id]; in blink_set()
140 const struct mfd_cell *cell = mfd_get_cell(pdev); in asic3_led_suspend() local
144 if (cell->suspend) in asic3_led_suspend()
145 ret = (*cell->suspend)(pdev); in asic3_led_suspend()
153 const struct mfd_cell *cell = mfd_get_cell(pdev); in asic3_led_resume() local
157 if (cell->resume) in asic3_led_resume()
158 ret = (*cell->resume)(pdev); in asic3_led_resume()
/drivers/thermal/qcom/
Dtsens-common.c33 struct nvmem_cell *cell; in qfprom_read() local
37 cell = nvmem_cell_get(dev, cname); in qfprom_read()
38 if (IS_ERR(cell)) in qfprom_read()
39 return ERR_CAST(cell); in qfprom_read()
41 ret = nvmem_cell_read(cell, &data); in qfprom_read()
42 nvmem_cell_put(cell); in qfprom_read()
/drivers/mtd/nand/
Dtmio_nand.c309 const struct mfd_cell *cell = mfd_get_cell(dev); in tmio_hw_init() local
312 if (cell->enable) { in tmio_hw_init()
313 ret = cell->enable(dev); in tmio_hw_init()
353 const struct mfd_cell *cell = mfd_get_cell(dev); in tmio_hw_stop() local
356 if (cell->disable) in tmio_hw_stop()
357 cell->disable(dev); in tmio_hw_stop()
468 const struct mfd_cell *cell = mfd_get_cell(dev); in tmio_suspend() local
470 if (cell->suspend) in tmio_suspend()
471 cell->suspend(dev); in tmio_suspend()
479 const struct mfd_cell *cell = mfd_get_cell(dev); in tmio_resume() local
[all …]
/drivers/s390/char/
Dtty3270.c1084 struct tty3270_cell *cell; in tty3270_put_character() local
1089 cell = line->cells + line->len; in tty3270_put_character()
1090 cell->character = tp->view.ascebc[' ']; in tty3270_put_character()
1091 cell->highlight = tp->highlight; in tty3270_put_character()
1092 cell->f_color = tp->f_color; in tty3270_put_character()
1097 cell = line->cells + tp->cx; in tty3270_put_character()
1098 cell->character = tp->view.ascebc[(unsigned int) ch]; in tty3270_put_character()
1099 cell->highlight = tp->highlight; in tty3270_put_character()
1100 cell->f_color = tp->f_color; in tty3270_put_character()
1110 struct tty3270_cell *cell; in tty3270_convert_line() local
[all …]
/drivers/video/fbdev/
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()
792 if (cell->disable) in tmiofb_probe()
793 cell->disable(dev); in tmiofb_probe()
810 const struct mfd_cell *cell = mfd_get_cell(dev); in tmiofb_remove() local
821 if (cell->disable) in tmiofb_remove()
[all …]
/drivers/hwmon/
Djz4740-hwmon.c33 const struct mfd_cell *cell; member
62 hwmon->cell->enable(pdev); in jz4740_hwmon_read_adcin()
74 hwmon->cell->disable(pdev); in jz4740_hwmon_read_adcin()
103 hwmon->cell = mfd_get_cell(pdev); in jz4740_hwmon_probe()

123