Home
last modified time | relevance | path

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

123456

/drivers/md/
Ddm-snap-transient.c26 static void transient_dtr(struct dm_exception_store *store) in transient_dtr() argument
28 kfree(store->context); in transient_dtr()
31 static int transient_read_metadata(struct dm_exception_store *store, in transient_read_metadata() argument
39 static int transient_prepare_exception(struct dm_exception_store *store, in transient_prepare_exception() argument
42 struct transient_c *tc = store->context; in transient_prepare_exception()
43 sector_t size = get_dev_size(dm_snap_cow(store->snap)->bdev); in transient_prepare_exception()
45 if (size < (tc->next_free + store->chunk_size)) in transient_prepare_exception()
48 e->new_chunk = sector_to_chunk(store, tc->next_free); in transient_prepare_exception()
49 tc->next_free += store->chunk_size; in transient_prepare_exception()
54 static void transient_commit_exception(struct dm_exception_store *store, in transient_commit_exception() argument
[all …]
Ddm-snap-persistent.c103 struct dm_exception_store *store; member
172 len = ps->store->chunk_size << SECTOR_SHIFT; in alloc_area()
233 .bdev = dm_snap_cow(ps->store->snap)->bdev, in chunk_io()
234 .sector = ps->store->chunk_size * chunk, in chunk_io()
235 .count = ps->store->chunk_size, in chunk_io()
300 memset(ps->area, 0, ps->store->chunk_size << SECTOR_SHIFT); in zero_memory_area()
320 if (!ps->store->chunk_size) { in read_header()
321 ps->store->chunk_size = max(DM_CHUNK_SIZE_DEFAULT_SECTORS, in read_header()
322 bdev_logical_block_size(dm_snap_cow(ps->store->snap)-> in read_header()
324 ps->store->chunk_mask = ps->store->chunk_size - 1; in read_header()
[all …]
Ddm-exception-store.h45 int (*ctr) (struct dm_exception_store *store, char *options);
50 void (*dtr) (struct dm_exception_store *store);
57 int (*read_metadata) (struct dm_exception_store *store,
65 int (*prepare_exception) (struct dm_exception_store *store,
71 void (*commit_exception) (struct dm_exception_store *store,
84 int (*prepare_merge) (struct dm_exception_store *store,
91 int (*commit_merge) (struct dm_exception_store *store, int nr_merged);
96 void (*drop_snapshot) (struct dm_exception_store *store);
98 unsigned (*status) (struct dm_exception_store *store,
105 void (*usage) (struct dm_exception_store *store,
[all …]
Ddm-exception-store.c142 static int set_chunk_size(struct dm_exception_store *store, in set_chunk_size() argument
153 store->chunk_size = store->chunk_mask = store->chunk_shift = 0; in set_chunk_size()
157 return dm_exception_store_set_chunk_size(store, chunk_size, error); in set_chunk_size()
160 int dm_exception_store_set_chunk_size(struct dm_exception_store *store, in dm_exception_store_set_chunk_size() argument
172 (bdev_logical_block_size(dm_snap_cow(store->snap)->bdev) >> 9) || in dm_exception_store_set_chunk_size()
174 (bdev_logical_block_size(dm_snap_origin(store->snap)->bdev) >> 9)) { in dm_exception_store_set_chunk_size()
184 store->chunk_size = chunk_size; in dm_exception_store_set_chunk_size()
185 store->chunk_mask = chunk_size - 1; in dm_exception_store_set_chunk_size()
186 store->chunk_shift = __ffs(chunk_size); in dm_exception_store_set_chunk_size()
194 struct dm_exception_store **store) in dm_exception_store_create() argument
[all …]
Ddm-snap.c106 struct dm_exception_store *store; member
179 static sector_t chunk_to_sector(struct dm_exception_store *store, in chunk_to_sector() argument
182 return chunk << store->chunk_shift; in chunk_to_sector()
514 if (!snap_src->store->type->prepare_merge || in __validate_exception_handover()
515 !snap_src->store->type->commit_merge) { in __validate_exception_handover()
530 if (l->store->chunk_size < s->store->chunk_size) in __insert_snapshot()
796 snap->store->chunk_size); in __minimum_chunk_size()
827 hash_size = cow_dev_size >> s->store->chunk_shift; in init_hash_tables()
996 linear_chunks = s->store->type->prepare_merge(s->store, &old_chunk, in snapshot_merge_next_chunks()
1017 io_size = linear_chunks * s->store->chunk_size; in snapshot_merge_next_chunks()
[all …]
Dbitmap.c212 struct bitmap_storage *store = &bitmap->storage; in write_sb_page() local
216 node_offset = bitmap->cluster_slot * store->file_pages; in write_sb_page()
224 if (page->index == store->file_pages-1) { in write_sb_page()
225 int last_page_size = store->bytes & (PAGE_SIZE-1); in write_sb_page()
723 static inline unsigned long file_page_index(struct bitmap_storage *store, in file_page_index() argument
726 if (store->sb_page) in file_page_index()
732 static inline unsigned long file_page_offset(struct bitmap_storage *store, in file_page_offset() argument
735 if (store->sb_page) in file_page_offset()
744 static inline struct page *filemap_get_page(struct bitmap_storage *store, in filemap_get_page() argument
747 if (file_page_index(store, chunk) >= store->file_pages) in filemap_get_page()
[all …]
Ddm-sysfs.c14 ssize_t (*store)(struct mapped_device *, const char *, size_t count); member
54 if (!dm_attr->store) in dm_attr_store()
61 ret = dm_attr->store(md, page, count); in dm_attr_store()
116 .store = dm_attr_store,
/drivers/media/pci/cx23885/
Daltera-ci.c269 u8 store; in altera_ci_op_cam() local
279 store = netup_fpga_op_rw(inter, NETUP_CI_BUSCTRL, 0, NETUP_CI_FLG_RD); in altera_ci_op_cam()
281 store &= 0x0f; in altera_ci_op_cam()
282 store |= ((state->nr << 7) | (flag << 6)); in altera_ci_op_cam()
284 netup_fpga_op_rw(inter, NETUP_CI_BUSCTRL, store, 0); in altera_ci_op_cam()
523 u8 store = 0; in altera_pid_control() local
535 store = netup_fpga_op_rw(inter, NETUP_CI_PID_DATA, 0, NETUP_CI_FLG_RD); in altera_pid_control()
538 store |= (1 << (pid & 7)); in altera_pid_control()
540 store &= ~(1 << (pid & 7)); in altera_pid_control()
542 netup_fpga_op_rw(inter, NETUP_CI_PID_DATA, store, 0); in altera_pid_control()
[all …]
Dcimax2.c184 u8 store; in netup_ci_op_cam() local
193 0, &store, 1); in netup_ci_op_cam()
197 store &= ~0x0c; in netup_ci_op_cam()
198 store |= flag; in netup_ci_op_cam()
201 0, &store, 1); in netup_ci_op_cam()
/drivers/cpuidle/
Dsysfs.c165 ssize_t (*store)(struct cpuidle_device *, const char *, size_t count); member
170 #define define_one_rw(_name, show, store) \ argument
171 static struct cpuidle_attr attr_##_name = __ATTR(_name, 0644, show, store)
211 if (cattr->store) { in cpuidle_store()
213 ret = cattr->store(dev, buf, count); in cpuidle_store()
221 .store = cpuidle_store,
241 ssize_t (*store)(struct cpuidle_state *, \ member
248 #define define_one_state_rw(_name, show, store) \ argument
249 static struct cpuidle_state_attr attr_##_name = __ATTR(_name, 0644, show, store)
360 if (cattr->store) in cpuidle_state_store()
[all …]
/drivers/edac/
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, \
351 ssize_t(*store) (struct edac_device_instance *, const char *, size_t); member
374 if (instance_attr->store) in edac_dev_instance_store()
375 return instance_attr->store(instance, buffer, count); in edac_dev_instance_store()
382 .store = edac_dev_instance_store
389 .store = _store, \
[all …]
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, \
234 ssize_t(*store) (void *, const char *, size_t); member
256 if (edac_pci_dev->store) in edac_pci_dev_store()
257 return edac_pci_dev->store(edac_pci_dev->value, buffer, count); in edac_pci_dev_store()
263 .store = edac_pci_dev_store
271 .store = _store, \
[all …]
/drivers/staging/most/hdm-dim2/
Ddim2_sysfs.c24 ssize_t (*store)(struct medialb_bus *bus, const char *buf, member
71 if (!xattr->store) in bus_kobj_attr_store()
74 ret = xattr->store(bus, buf, count); in bus_kobj_attr_store()
80 .store = bus_kobj_attr_store,
/drivers/leds/
Dleds-lp55xx-common.h32 #define LP55XX_DEV_ATTR_RW(name, show, store) \ argument
33 DEVICE_ATTR(name, S_IRUGO | S_IWUSR, show, store)
36 #define LP55XX_DEV_ATTR_WO(name, store) \ argument
37 DEVICE_ATTR(name, S_IWUSR, NULL, store)
/drivers/infiniband/hw/mlx4/
Dsysfs.c167 ssize_t (*store)(struct device *dev, in create_sysfs_entry()
177 vdentry->dentry.store = store; in create_sysfs_entry()
184 if (vdentry->dentry.store) in create_sysfs_entry()
393 ssize_t (*store)(struct mlx4_port *, struct port_attribute *, member
417 if (!port_attr->store) in port_attr_store()
419 return port_attr->store(p, port_attr, buf, size); in port_attr_store()
424 .store = port_attr_store,
496 ssize_t (*store)(struct mlx4_port *, struct port_attribute *, in alloc_group_attrs()
520 if (store) { in alloc_group_attrs()
522 element->attr.store = store; in alloc_group_attrs()
[all …]
/drivers/media/dvb-frontends/
Dsp2.c105 u8 store; in sp2_ci_op_cam() local
117 ret = sp2_read_i2c(s, 0x00, &store, 1); in sp2_ci_op_cam()
122 store &= ~(SP2_MOD_CTL_ACS1 | SP2_MOD_CTL_ACS0); in sp2_ci_op_cam()
123 store |= acs; in sp2_ci_op_cam()
125 ret = sp2_write_i2c(s, 0x00, &store, 1); in sp2_ci_op_cam()
/drivers/media/usb/pvrusb2/
Dpvrusb2-sysfs.c381 cip->attr_val.store = store_val_norm; in pvr2_sysfs_add_control()
385 cip->attr_custom.store = store_val_custom; in pvr2_sysfs_add_control()
439 dip->attr_debugcmd.store = debugcmd_store; in pvr2_sysfs_add_debugifc()
667 sfp->attr_v4l_minor_number.store = NULL; in class_dev_create()
682 sfp->attr_v4l_radio_minor_number.store = NULL; in class_dev_create()
697 sfp->attr_unit_number.store = NULL; in class_dev_create()
711 sfp->attr_bus_info.store = NULL; in class_dev_create()
726 sfp->attr_hdw_name.store = NULL; in class_dev_create()
741 sfp->attr_hdw_desc.store = NULL; in class_dev_create()
/drivers/video/fbdev/omap2/dss/
Ddisplay-sysfs.c246 ssize_t (*store)(struct omap_dss_device *, const char *, size_t); member
304 if (!display_attr->store) in display_attr_store()
307 return display_attr->store(dssdev, buf, size); in display_attr_store()
312 .store = display_attr_store,
Doverlay-sysfs.c365 ssize_t (*store)(struct omap_overlay *, const char *, size_t); member
429 if (!overlay_attr->store) in overlay_attr_store()
432 return overlay_attr->store(overlay, buf, size); in overlay_attr_store()
437 .store = overlay_attr_store,
/drivers/infiniband/hw/qib/
Dqib_sysfs.c178 #define QIB_PORT_ATTR(name, mode, show, store) \ argument
180 __ATTR(name, mode, show, store)
185 ssize_t (*store)(struct qib_pportdata *, const char *, size_t); member
318 if (!pattr->store) in qib_portattr_store()
321 return pattr->store(ppd, buf, len); in qib_portattr_store()
327 .store = qib_portattr_store,
490 .store = diagc_attr_store,
/drivers/cpufreq/
Dcpufreq_governor_attr_set.c40 ret = attr_set->usage_count ? gattr->store(attr_set, buf, count) : -EBUSY; in governor_store()
47 .store = governor_store,
/drivers/platform/x86/
Dintel-rst.c71 .store = irst_store_wakeup_events
117 .store = irst_store_wakeup_time
/drivers/parisc/
Dpdc_stable.c112 ssize_t (*store)(struct pdcspath_entry *entry, const char *buf, size_t count); member
126 .store = _store, \
133 .store = _store, \
478 if (pdcs_attr->store) in pdcspath_attr_store()
479 ret = pdcs_attr->store(entry, buf, count); in pdcspath_attr_store()
486 .store = pdcspath_attr_store,
/drivers/staging/most/mostcore/
Dcore.c115 ssize_t (*store)(struct most_c_obj *d, member
160 if (!channel_attr->store) in channel_attr_store()
162 return channel_attr->store(c_obj, channel_attr, buf, len); in channel_attr_store()
167 .store = channel_attr_store,
597 ssize_t (*store)(struct most_inst_obj *d, member
646 if (!instance_attr->store) in instance_attr_store()
649 return instance_attr->store(instance_obj, instance_attr, buf, len); in instance_attr_store()
654 .store = instance_attr_store,
800 ssize_t (*store)(struct most_aim_obj *d, member
848 if (!aim_attr->store) in aim_attr_store()
[all …]
/drivers/pci/
Dslot.c32 return attribute->store ? attribute->store(slot, buf, len) : -EIO; in pci_slot_attr_store()
37 .store = pci_slot_attr_store,

123456