Home
last modified time | relevance | path

Searched refs:store (Results 1 – 25 of 176) sorted by relevance

12345678

/drivers/md/
A Ddm-snap-persistent.c106 struct dm_exception_store *store; member
238 .count = ps->store->chunk_size, in chunk_io()
318 if (!ps->store->chunk_size) { in read_header()
322 ps->store->chunk_mask = ps->store->chunk_size - 1; in read_header()
323 ps->store->chunk_shift = __ffs(ps->store->chunk_size); in read_header()
570 return store->context; in get_info()
578 struct pstore *ps = get_info(store); in persistent_usage()
589 store->chunk_size; in persistent_usage()
594 struct pstore *ps = get_info(store); in persistent_dtr()
861 ps->store = store; in persistent_ctr()
[all …]
A Ddm-snap-transient.c29 static void transient_dtr(struct dm_exception_store *store) in transient_dtr() argument
31 kfree(store->context); in transient_dtr()
45 struct transient_c *tc = store->context; in transient_prepare_exception()
46 sector_t size = get_dev_size(dm_snap_cow(store->snap)->bdev); in transient_prepare_exception()
48 if (size < (tc->next_free + store->chunk_size)) in transient_prepare_exception()
51 e->new_chunk = sector_to_chunk(store, tc->next_free); in transient_prepare_exception()
52 tc->next_free += store->chunk_size; in transient_prepare_exception()
66 static void transient_usage(struct dm_exception_store *store, in transient_usage() argument
72 *total_sectors = get_dev_size(dm_snap_cow(store->snap)->bdev); in transient_usage()
85 store->context = tc; in transient_ctr()
[all …]
A Ddm-exception-store.h47 int (*ctr)(struct dm_exception_store *store, char *options);
52 void (*dtr)(struct dm_exception_store *store);
59 int (*read_metadata)(struct dm_exception_store *store,
67 int (*prepare_exception)(struct dm_exception_store *store,
73 void (*commit_exception)(struct dm_exception_store *store,
86 int (*prepare_merge)(struct dm_exception_store *store,
98 void (*drop_snapshot)(struct dm_exception_store *store);
100 unsigned int (*status)(struct dm_exception_store *store,
107 void (*usage)(struct dm_exception_store *store,
178 return sector >> store->chunk_shift; in sector_to_chunk()
[all …]
A Ddm-exception-store.c143 static int set_chunk_size(struct dm_exception_store *store, in set_chunk_size() argument
154 store->chunk_size = store->chunk_mask = store->chunk_shift = 0; in set_chunk_size()
185 store->chunk_size = chunk_size; in dm_exception_store_set_chunk_size()
186 store->chunk_mask = chunk_size - 1; in dm_exception_store_set_chunk_size()
187 store->chunk_shift = __ffs(chunk_size); in dm_exception_store_set_chunk_size()
195 struct dm_exception_store **store) in dm_exception_store_create() argument
244 *store = tmp_store; in dm_exception_store_create()
255 void dm_exception_store_destroy(struct dm_exception_store *store) in dm_exception_store_destroy() argument
257 store->type->dtr(store); in dm_exception_store_destroy()
258 put_type(store->type); in dm_exception_store_destroy()
[all …]
A Dmd-bitmap.c657 if (store->file) in filemap_write_page()
994 if (store->sb_page) in file_page_index()
1003 if (store->sb_page) in file_page_offset()
1015 if (file_page_index(store, chunk) >= store->file_pages) in filemap_get_page()
1017 return store->filemap[file_page_index(store, chunk)]; in filemap_get_page()
1037 if (!store->filemap) in md_bitmap_storage_alloc()
1047 if (store->sb_page) { in md_bitmap_storage_alloc()
1048 store->filemap[0] = store->sb_page; in md_bitmap_storage_alloc()
1070 store->bytes = bytes; in md_bitmap_storage_alloc()
1360 store->bytes); in md_bitmap_init_from_disk()
[all …]
A Ddm-snap.c538 if (l->store->chunk_size < s->store->chunk_size) in __insert_snapshot()
1062 linear_chunks = s->store->type->prepare_merge(s->store, &old_chunk, in snapshot_merge_next_chunks()
1146 if (s->store->type->commit_merge(s->store, in merge_callback()
1378 s->store->chunk_size = 0; in snapshot_ctr()
1382 r = s->store->type->read_metadata(s->store, dm_add_exception, in snapshot_ctr()
1451 snap_dest->store = snap_src->store; in __handover_exceptions()
1629 s->store->type->drop_snapshot(s->store); in __invalidate_snapshot()
1736 s->store->type->commit_exception(s->store, &pe->e, !pe->copy_error, in complete_exception()
1870 if (s->store->type->prepare_exception(s->store, &pe->e)) { in __insert_pending_exception()
2337 snap->store->type->usage(snap->store, in snapshot_status()
[all …]
A Ddm-sysfs.c16 ssize_t (*store)(struct mapped_device *md, const char *p, size_t count); member
56 if (!dm_attr->store) in dm_attr_store()
63 ret = dm_attr->store(md, page, count); in dm_attr_store()
120 .store = dm_attr_store,
/drivers/gpu/drm/amd/display/dc/gpio/
A Dhw_gpio.c45 REG_GET(MASK_reg, MASK, &gpio->store.mask); in store_registers()
46 REG_GET(A_reg, A, &gpio->store.a); in store_registers()
47 REG_GET(EN_reg, EN, &gpio->store.en); in store_registers()
54 REG_UPDATE(MASK_reg, MASK, gpio->store.mask); in restore_registers()
55 REG_UPDATE(A_reg, A, gpio->store.a); in restore_registers()
56 REG_UPDATE(EN_reg, EN, gpio->store.en); in restore_registers()
191 pin->store.mask = 0; in dal_hw_gpio_construct()
192 pin->store.a = 0; in dal_hw_gpio_construct()
193 pin->store.en = 0; in dal_hw_gpio_construct()
194 pin->store.mux = 0; in dal_hw_gpio_construct()
/drivers/media/pci/cx23885/
A Daltera-ci.c264 u8 store; in altera_ci_op_cam() local
276 store &= 0x0f; in altera_ci_op_cam()
518 u8 store = 0; in altera_pid_control() local
533 store |= (1 << (pid & 7)); in altera_pid_control()
535 store &= ~(1 << (pid & 7)); in altera_pid_control()
549 u8 store = 0; in altera_toggle_fullts_streaming() local
558 store = 0;/* enable pid */ in altera_toggle_fullts_streaming()
569 (i > 3 ? store : 0), 0); in altera_toggle_fullts_streaming()
707 u8 store = 0; in altera_ci_init() local
785 store |= (3 << 4); in altera_ci_init()
[all …]
A Dcimax2.c174 u8 store; in netup_ci_op_cam() local
183 0, &store, 1); in netup_ci_op_cam()
187 store &= ~0x0c; in netup_ci_op_cam()
188 store |= flag; in netup_ci_op_cam()
191 0, &store, 1); in netup_ci_op_cam()
/drivers/edac/
A Dedac_pci_sysfs.c93 ssize_t(*store) (struct edac_pci_ctl_info *, const char *, size_t); member
116 if (instance_attr->store) in edac_pci_instance_store()
117 return instance_attr->store(pci, buffer, count); in edac_pci_instance_store()
124 .store = edac_pci_instance_store
131 .store = _store, \
235 ssize_t(*store) (void *, const char *, size_t); member
257 if (edac_pci_dev->store) in edac_pci_dev_store()
258 return edac_pci_dev->store(edac_pci_dev->value, buffer, count); in edac_pci_dev_store()
264 .store = edac_pci_dev_store
272 .store = _store, \
[all …]
A Dedac_device_sysfs.c110 ssize_t(*store) (struct edac_device_ctl_info *, const char *, size_t); member
136 if (ctl_info_attr->store) in edac_dev_ctl_info_store()
137 return ctl_info_attr->store(edac_dev, buffer, count); in edac_dev_ctl_info_store()
144 .store = edac_dev_ctl_info_store
151 .store = _store, \
342 ssize_t(*store) (struct edac_device_instance *, const char *, size_t); member
365 if (instance_attr->store) in edac_dev_instance_store()
366 return instance_attr->store(instance, buffer, count); in edac_dev_instance_store()
373 .store = edac_dev_instance_store
380 .store = _store, \
/drivers/cpuidle/
A Dsysfs.c189 if (cattr->store) { in cpuidle_store()
191 ret = cattr->store(dev, buf, count); in cpuidle_store()
199 .store = cpuidle_store,
219 ssize_t (*store)(struct cpuidle_state *, \ member
226 #define define_one_state_rw(_name, show, store) \ argument
436 if (cattr->store) in cpuidle_state_store()
437 ret = cattr->store(state, state_usage, buf, size); in cpuidle_state_store()
447 .store = cpuidle_state_store,
585 if (dattr->store) in cpuidle_driver_store()
586 ret = dattr->store(driver_kobj->drv, buf, size); in cpuidle_driver_store()
[all …]
/drivers/infiniband/hw/mlx4/
A Dsysfs.c169 ssize_t (*store)(struct device *dev, in create_sysfs_entry()
179 vdentry->dentry.store = store; in create_sysfs_entry()
186 if (vdentry->dentry.store) in create_sysfs_entry()
396 ssize_t (*store)(struct mlx4_port *, struct port_attribute *, member
420 if (!port_attr->store) in port_attr_store()
422 return port_attr->store(p, port_attr, buf, size); in port_attr_store()
427 .store = port_attr_store,
519 if (store) { in alloc_group_attrs()
521 element->attr.store = store; in alloc_group_attrs()
590 p->smi_enabled.store = NULL; in add_vf_smi_entries()
[all …]
/drivers/staging/greybus/
A Daudio_manager_module.c26 ssize_t (*store)(struct gb_audio_manager_module *module, member
56 if (!attribute->store) in gb_audio_module_attr_store()
59 return attribute->store(module, attribute, buf, len); in gb_audio_module_attr_store()
64 .store = gb_audio_module_attr_store,
/drivers/media/dvb-frontends/
A Dsp2.c96 u8 store; in sp2_ci_op_cam() local
108 ret = sp2_read_i2c(s, 0x00, &store, 1); in sp2_ci_op_cam()
113 store &= ~(SP2_MOD_CTL_ACS1 | SP2_MOD_CTL_ACS0); in sp2_ci_op_cam()
114 store |= acs; in sp2_ci_op_cam()
116 ret = sp2_write_i2c(s, 0x00, &store, 1); in sp2_ci_op_cam()
/drivers/leds/
A Dleds-lp55xx-common.h33 #define LP55XX_DEV_ATTR_RW(name, show, store) \ argument
34 DEVICE_ATTR(name, S_IRUGO | S_IWUSR, show, store)
37 #define LP55XX_DEV_ATTR_WO(name, store) \ argument
38 DEVICE_ATTR(name, S_IWUSR, NULL, store)
/drivers/gpu/drm/i915/selftests/
A Di915_perf.c295 u32 *cs, *store; in live_noa_gpr() local
360 store = memset32(rq->engine->status_page.addr + 512, 0, 32); in live_noa_gpr()
379 offset_in_page(store) + in live_noa_gpr()
396 if (store[i] == STACK_MAGIC) in live_noa_gpr()
400 i, store[i], STACK_MAGIC); in live_noa_gpr()
/drivers/vfio/mdev/
A Dmdev_sysfs.c21 ssize_t (*store)(struct mdev_type *mtype, member
51 if (attr->store) in mdev_type_attr_store()
52 ret = attr->store(type, attr, buf, count); in mdev_type_attr_store()
58 .store = mdev_type_attr_store,
/drivers/dma/ioat/
A Dsysfs.c65 if (!entry->store) in ioat_attr_store()
67 return entry->store(&ioat_chan->dma_chan, page, count); in ioat_attr_store()
72 .store = ioat_attr_store,
/drivers/media/usb/pvrusb2/
A Dpvrusb2-sysfs.c362 cip->attr_val.store = store_val_norm; in pvr2_sysfs_add_control()
366 cip->attr_custom.store = store_val_custom; in pvr2_sysfs_add_control()
420 dip->attr_debugcmd.store = debugcmd_store; in pvr2_sysfs_add_debugifc()
644 sfp->attr_v4l_minor_number.store = NULL; in class_dev_create()
659 sfp->attr_v4l_radio_minor_number.store = NULL; in class_dev_create()
674 sfp->attr_unit_number.store = NULL; in class_dev_create()
688 sfp->attr_bus_info.store = NULL; in class_dev_create()
703 sfp->attr_hdw_name.store = NULL; in class_dev_create()
718 sfp->attr_hdw_desc.store = NULL; in class_dev_create()
/drivers/acpi/
A Dfan_attr.c81 fan->fst_speed.store = NULL; in acpi_fan_create_attributes()
93 fan->fine_grain_control.store = NULL; in acpi_fan_create_attributes()
106 fps->dev_attr.store = NULL; in acpi_fan_create_attributes()
/drivers/video/fbdev/omap2/omapfb/dss/
A Ddisplay-sysfs.c236 ssize_t (*store)(struct omap_dss_device *, const char *, size_t); member
295 if (!display_attr->store) in display_attr_store()
298 return display_attr->store(dssdev, buf, size); in display_attr_store()
303 .store = display_attr_store,
/drivers/hwmon/
A Dibmpowernv.c487 ssize_t (*store)(struct device *dev, in create_hwmon_attr()
498 if (store) { in create_hwmon_attr()
499 sdata->dev_attr.store = store; in create_hwmon_attr()
513 ssize_t (*store)(struct device *dev, in populate_sensor()
521 create_hwmon_attr(sdata, attr_name, show, store); in populate_sensor()
/drivers/cpufreq/
A Dcpufreq_governor_attr_set.c32 ret = attr_set->usage_count ? gattr->store(attr_set, buf, count) : -EBUSY; in governor_store()
39 .store = governor_store,

Completed in 65 milliseconds

12345678