Home
last modified time | relevance | path

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

1234

/drivers/md/
A Ddm-bio-prison-v2.c83 memset(cell, 0, sizeof(*cell)); in __setup_new_cell()
84 memcpy(&cell->key, key, sizeof(cell->key)); in __setup_new_cell()
137 *result = cell; in __find_or_insert()
165 (*cell)->shared_count++; in __get()
194 cell->shared_count--; in __put()
219 r = __put(prison, cell); in dm_cell_put_v2()
240 *cell_result = cell; in __lock()
247 cell = cell_prealloc; in __lock()
248 cell->shared_count = 0; in __lock()
251 *cell_result = cell; in __lock()
[all …]
A Ddm-bio-prison-v1.c23 struct rb_root cell; member
91 memcpy(&cell->key, key, sizeof(cell->key)); in __setup_new_cell()
92 cell->holder = holder; in __setup_new_cell()
93 bio_list_init(&cell->bios); in __setup_new_cell()
161 *cell_result = cell; in __bio_detain()
208 rb_erase(&cell->node, root); in __cell_release()
211 if (cell->holder) in __cell_release()
224 __cell_release(&prison->regions[l].cell, cell, bios); in dm_cell_release()
248 __cell_release_no_holder(&prison->regions[l].cell, cell, inmates); in dm_cell_release_no_holder()
276 visit_fn(context, cell); in dm_cell_visit_release()
[all …]
A Ddm-thin.c944 &info, cell); in inc_remap_and_issue_cell()
1042 if (m->cell) in free_discard_mapping()
1322 m->cell = cell; in schedule_copy()
1391 m->cell = cell; in schedule_zero()
2039 if (cell) in __process_bio_read_only()
2044 if (cell) in __process_bio_read_only()
2050 if (cell) in __process_bio_read_only()
2070 if (cell) in __process_bio_read_only()
2084 __process_bio_read_only(tc, cell->holder, cell); in process_cell_read_only()
2715 h->cell = NULL; in thin_hook_bio()
[all …]
A Ddm-bio-prison-v2.h70 struct dm_bio_prison_cell_v2 *cell);
100 struct dm_bio_prison_cell_v2 *cell);
123 struct dm_bio_prison_cell_v2 *cell,
135 struct dm_bio_prison_cell_v2 *cell,
148 struct dm_bio_prison_cell_v2 *cell,
A Ddm-bio-prison-v1.h73 struct dm_bio_prison_cell *cell);
93 struct dm_bio_prison_cell *cell,
96 struct dm_bio_prison_cell *cell,
99 struct dm_bio_prison_cell *cell, blk_status_t error);
107 void *context, struct dm_bio_prison_cell *cell);
/drivers/mfd/
A Dmfd-core.c112 if (!cell->use_of_reg) in mfd_match_of_node_to_dev()
162 pdev->mfd_cell = kmemdup(cell, sizeof(*cell), GFP_KERNEL); in mfd_add_device()
212 cell->name, platform_id); in mfd_add_device()
217 if (cell->pdata_size) { in mfd_add_device()
219 cell->platform_data, cell->pdata_size); in mfd_add_device()
224 if (cell->swnode) { in mfd_add_device()
240 cell->resources[r].end; in mfd_add_device()
252 cell->resources[r].end; in mfd_add_device()
285 if (cell->swnode) in mfd_add_device()
354 cell = mfd_get_cell(pdev); in mfd_remove_devices_fn()
[all …]
A Dlpc_sch.c109 struct mfd_cell *cell) in lpc_sch_populate_cell() argument
122 memset(cell, 0, sizeof(*cell)); in lpc_sch_populate_cell()
124 cell->name = name; in lpc_sch_populate_cell()
125 cell->resources = res; in lpc_sch_populate_cell()
126 cell->num_resources = 1; in lpc_sch_populate_cell()
127 cell->ignore_resource_conflicts = true; in lpc_sch_populate_cell()
128 cell->id = id; in lpc_sch_populate_cell()
A Dintel-lpss.c85 struct mfd_cell *cell; member
218 const struct mfd_cell *cell; in intel_lpss_assign_devs() local
226 cell = &intel_lpss_i2c_cell; in intel_lpss_assign_devs()
229 cell = &intel_lpss_uart_cell; in intel_lpss_assign_devs()
232 cell = &intel_lpss_spi_cell; in intel_lpss_assign_devs()
238 lpss->cell = devm_kmemdup(lpss->dev, cell, sizeof(*cell), GFP_KERNEL); in intel_lpss_assign_devs()
239 if (!lpss->cell) in intel_lpss_assign_devs()
338 const struct mfd_cell *cell = lpss->cell; in intel_lpss_register_clock() local
352 snprintf(devname, sizeof(devname), "%s.%d", cell->name, lpss->devid); in intel_lpss_register_clock()
421 lpss->cell->swnode = info->swnode; in intel_lpss_probe()
[all …]
A Dwl1273-core.c163 struct mfd_cell *cell; in wl1273_core_probe() local
191 cell = &core->cells[children]; in wl1273_core_probe()
192 cell->name = "wl1273_fm_radio"; in wl1273_core_probe()
193 cell->platform_data = &core; in wl1273_core_probe()
194 cell->pdata_size = sizeof(core); in wl1273_core_probe()
204 cell = &core->cells[children]; in wl1273_core_probe()
207 cell->name = "wl1273-codec"; in wl1273_core_probe()
208 cell->platform_data = &core; in wl1273_core_probe()
209 cell->pdata_size = sizeof(core); in wl1273_core_probe()
A Dtwl4030-audio.c183 struct mfd_cell *cell = NULL; in twl4030_audio_probe() local
226 cell = &audio->cells[childs]; in twl4030_audio_probe()
227 cell->name = "twl4030-codec"; in twl4030_audio_probe()
229 cell->platform_data = pdata->codec; in twl4030_audio_probe()
230 cell->pdata_size = sizeof(*pdata->codec); in twl4030_audio_probe()
235 cell = &audio->cells[childs]; in twl4030_audio_probe()
236 cell->name = "twl4030-vibra"; in twl4030_audio_probe()
238 cell->platform_data = pdata->vibra; in twl4030_audio_probe()
239 cell->pdata_size = sizeof(*pdata->vibra); in twl4030_audio_probe()
A Djanz-cmodio.c66 struct mfd_cell *cell; in cmodio_setup_subdevice() local
71 cell = &priv->cells[devno]; in cmodio_setup_subdevice()
75 cell->name = name; in cmodio_setup_subdevice()
76 cell->resources = res; in cmodio_setup_subdevice()
77 cell->num_resources = 3; in cmodio_setup_subdevice()
80 cell->id = cmodio_id++; in cmodio_setup_subdevice()
84 cell->platform_data = pdata; in cmodio_setup_subdevice()
85 cell->pdata_size = sizeof(*pdata); in cmodio_setup_subdevice()
A Dti_am335x_tscadc.c121 struct mfd_cell *cell; in ti_tscadc_probe() local
268 cell = &tscadc->cells[cell_idx++]; in ti_tscadc_probe()
269 cell->name = tscadc->data->secondary_feature_name; in ti_tscadc_probe()
270 cell->of_compatible = tscadc->data->secondary_feature_compatible; in ti_tscadc_probe()
271 cell->platform_data = &tscadc; in ti_tscadc_probe()
272 cell->pdata_size = sizeof(tscadc); in ti_tscadc_probe()
277 cell = &tscadc->cells[cell_idx++]; in ti_tscadc_probe()
278 cell->name = tscadc->data->adc_feature_name; in ti_tscadc_probe()
279 cell->of_compatible = tscadc->data->adc_feature_compatible; in ti_tscadc_probe()
280 cell->platform_data = &tscadc; in ti_tscadc_probe()
[all …]
A Dat91-usart.c26 const struct mfd_cell *cell; in at91_usart_mode_probe() local
33 cell = &at91_usart_spi_subdev; in at91_usart_mode_probe()
36 cell = &at91_usart_serial_subdev; in at91_usart_mode_probe()
44 return devm_mfd_add_devices(&pdev->dev, PLATFORM_DEVID_AUTO, cell, 1, in at91_usart_mode_probe()
A Dtwl6040.c637 struct mfd_cell *cell = NULL; in twl6040_probe() local
756 cell = &twl6040->cells[children]; in twl6040_probe()
757 cell->name = "twl6040-codec"; in twl6040_probe()
760 cell->resources = twl6040_codec_rsrc; in twl6040_probe()
768 cell = &twl6040->cells[children]; in twl6040_probe()
769 cell->name = "twl6040-vibra"; in twl6040_probe()
772 cell->resources = twl6040_vibra_rsrc; in twl6040_probe()
778 cell = &twl6040->cells[children]; in twl6040_probe()
779 cell->name = "twl6040-gpo"; in twl6040_probe()
783 cell = &twl6040->cells[children]; in twl6040_probe()
[all …]
A Dstmpe.c395 .cell = &stmpe_gpio_cell,
511 .cell = &stmpe_gpio_cell,
516 .cell = &stmpe_ts_cell,
521 .cell = &stmpe_adc_cell,
636 .cell = &stmpe_gpio_cell,
699 .cell = &stmpe_gpio_cell,
704 .cell = &stmpe_keypad_cell,
709 .cell = &stmpe_pwm_cell,
866 .cell = &stmpe_gpio_cell,
983 .cell = &stmpe_gpio_cell,
[all …]
/drivers/staging/media/atomisp/pci/
A Disp2400_support.h16 #define hrt_isp_vamem1_store_16(cell, addr, val) hrt_mem_store_16(cell, HRT_PROC_TYPE_PROP(cell, _s… argument
17 #define hrt_isp_vamem2_store_16(cell, addr, val) hrt_mem_store_16(cell, HRT_PROC_TYPE_PROP(cell, _s… argument
19 #define hrt_isp_dmem(cell) HRT_PROC_TYPE_PROP(cell, _base_dmem) argument
20 #define hrt_isp_vmem(cell) HRT_PROC_TYPE_PROP(cell, _simd_vmem) argument
22 #define hrt_isp_dmem_master_port_address(cell) hrt_mem_master_port_address(cell, hrt_isp_dmem(cell)) argument
23 #define hrt_isp_vmem_master_port_address(cell) hrt_mem_master_port_address(cell, hrt_isp_vmem(cell)) argument
26 #define hrt_isp_hist(cell) HRT_PROC_TYPE_PROP(cell, _simd_histogram) argument
27 #define hrt_isp_hist_master_port_address(cell) hrt_mem_master_port_address(cell, hrt_isp_hist(cell)) argument
/drivers/nvmem/
A Dcore.c573 list_add_tail(&cell->node, &cell->nvmem->cells); in nvmem_cell_entry_add()
595 cell->bytes = DIV_ROUND_UP(cell->nbits + cell->bit_offset, in nvmem_cell_info_to_nvmem_cell_entry_nodup()
610 cell->name ?: "<unknown>", cell->raw_len, in nvmem_cell_info_to_nvmem_cell_entry_nodup()
653 cell = kzalloc(sizeof(*cell), GFP_KERNEL); in nvmem_add_one_cell()
1301 cell = kzalloc(sizeof(*cell), GFP_KERNEL); in nvmem_create_cell()
1657 if (cell->bit_offset || cell->nbits) in __nvmem_cell_read()
1662 cell->offset, buf, cell->raw_len); in __nvmem_cell_read()
1697 rc = __nvmem_cell_read(nvmem, cell->entry, buf, len, cell->id, cell->index); in nvmem_cell_read()
1747 cell->offset + cell->bytes - 1, &v, 1); in nvmem_cell_prepare_write_buffer()
1777 if (cell->bit_offset || cell->nbits) { in __nvmem_cell_entry_write()
[all …]
A Dmtk-efuse.c49 struct nvmem_cell_info *cell) in mtk_efuse_fixup_dt_cell_info() argument
51 size_t sz = strlen(cell->name); in mtk_efuse_fixup_dt_cell_info()
58 if (cell->nbits <= 3 && in mtk_efuse_fixup_dt_cell_info()
59 strncmp(cell->name, "gpu-speedbin", min(sz, strlen("gpu-speedbin"))) == 0) in mtk_efuse_fixup_dt_cell_info()
60 cell->read_post_process = mtk_efuse_gpu_speedbin_pp; in mtk_efuse_fixup_dt_cell_info()
/drivers/clk/mmp/
A Dreset.c23 cell = &unit->cells[i]; in mmp_of_reset_xlate()
42 cell = &unit->cells[id]; in mmp_clk_reset_assert()
43 if (cell->lock) in mmp_clk_reset_assert()
46 val = readl(cell->reg); in mmp_clk_reset_assert()
47 val |= cell->bits; in mmp_clk_reset_assert()
48 writel(val, cell->reg); in mmp_clk_reset_assert()
50 if (cell->lock) in mmp_clk_reset_assert()
65 if (cell->lock) in mmp_clk_reset_deassert()
68 val = readl(cell->reg); in mmp_clk_reset_deassert()
69 val &= ~cell->bits; in mmp_clk_reset_deassert()
[all …]
/drivers/of/
A Dcpu.c16 const __be32 *cell; in of_get_cpu_hwid() local
20 cell = of_get_property(cpun, "reg", &len); in of_get_cpu_hwid()
21 if (!cell || !ac || ((sizeof(*cell) * ac * (thread + 1)) > len)) in of_get_cpu_hwid()
24 cell += ac * thread; in of_get_cpu_hwid()
25 return of_read_number(cell, ac); in of_get_cpu_hwid()
55 const __be32 *cell; in __of_find_n_match_cpu_property() local
60 cell = of_get_property(cpun, prop_name, &prop_len); in __of_find_n_match_cpu_property()
63 if (!cell || !ac) in __of_find_n_match_cpu_property()
65 prop_len /= sizeof(*cell) * ac; in __of_find_n_match_cpu_property()
67 hwid = of_read_number(cell, ac); in __of_find_n_match_cpu_property()
[all …]
/drivers/power/reset/
A Dmacsmc-reboot.c49 static int nvmem_cell_get_u8(struct nvmem_cell *cell) in nvmem_cell_get_u8() argument
55 bfr = nvmem_cell_read(cell, &len); in nvmem_cell_get_u8()
69 static int nvmem_cell_set_u8(struct nvmem_cell *cell, u8 val) in nvmem_cell_set_u8() argument
71 return nvmem_cell_write(cell, &val, sizeof(val)); in nvmem_cell_set_u8()
218 struct nvmem_cell *cell; in macsmc_reboot_probe() local
220 cell = devm_nvmem_cell_get(&pdev->dev, in macsmc_reboot_probe()
222 if (IS_ERR(cell)) { in macsmc_reboot_probe()
223 if (PTR_ERR(cell) == -EPROBE_DEFER) in macsmc_reboot_probe()
226 nvmem_names[i], PTR_ERR(cell)); in macsmc_reboot_probe()
228 cell = NULL; in macsmc_reboot_probe()
[all …]
A Dnvmem-reboot-mode.c16 struct nvmem_cell *cell; member
27 ret = nvmem_cell_write(nvmem_rbm->cell, &magic, sizeof(magic)); in nvmem_reboot_mode_write()
46 nvmem_rbm->cell = devm_nvmem_cell_get(&pdev->dev, "reboot-mode"); in nvmem_reboot_mode_probe()
47 if (IS_ERR(nvmem_rbm->cell)) { in nvmem_reboot_mode_probe()
48 return dev_err_probe(&pdev->dev, PTR_ERR(nvmem_rbm->cell), in nvmem_reboot_mode_probe()
/drivers/nvmem/layouts/
A Donie-tlv.c101 struct nvmem_cell_info cell = {}; in onie_tlv_add_cells() local
120 cell.name = onie_tlv_cell_name(tlv.type); in onie_tlv_add_cells()
121 if (!cell.name) in onie_tlv_add_cells()
124 cell.offset = hdr_len + offset + sizeof(tlv.type) + sizeof(tlv.len); in onie_tlv_add_cells()
125 cell.bytes = tlv.len; in onie_tlv_add_cells()
126 cell.np = of_get_child_by_name(layout, cell.name); in onie_tlv_add_cells()
127 cell.read_post_process = onie_tlv_read_cb(tlv.type, data + offset + sizeof(tlv)); in onie_tlv_add_cells()
129 ret = nvmem_add_one_cell(nvmem, &cell); in onie_tlv_add_cells()
/drivers/s390/char/
A Dcon3270.c319 struct tty3270_cell *cell; in tty3270_required_length() local
327 for (i = 0, cell = line->cells; i < line->len; i++, cell++) { in tty3270_required_length()
420 struct tty3270_cell *cell; in tty3270_add_attributes() local
425 for (i = 0, cell = line->cells; i < line->len; i++, cell++) { in tty3270_add_attributes()
438 c = cell->character; in tty3270_add_attributes()
1269 struct tty3270_cell *cell; in tty3270_put_character() local
1275 cell->character = ' '; in tty3270_put_character()
1282 cell->character = ch; in tty3270_put_character()
1325 cell->character = ' '; in tty3270_reset_cell()
1423 cell = line->cells + i; in tty3270_erase_line()
[all …]
/drivers/phy/mediatek/
A Dphy-mtk-mipi-dsi.c69 struct nvmem_cell *cell; in mtk_mipi_tx_get_calibration_datal() local
73 cell = nvmem_cell_get(mipi_tx->dev, "calibration-data"); in mtk_mipi_tx_get_calibration_datal()
74 if (IS_ERR(cell)) { in mtk_mipi_tx_get_calibration_datal()
78 buf = (u32 *)nvmem_cell_read(cell, &len); in mtk_mipi_tx_get_calibration_datal()
79 nvmem_cell_put(cell); in mtk_mipi_tx_get_calibration_datal()

Completed in 65 milliseconds

1234