Home
last modified time | relevance | path

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

123

/drivers/md/
Ddm-snap-transient.c26 static void transient_destroy(struct dm_exception_store *store) in transient_destroy() argument
28 kfree(store->context); in transient_destroy()
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 = (struct transient_c *) store->context; in transient_prepare_exception()
43 sector_t size = get_dev_size(store->snap->cow->bdev); in transient_prepare_exception()
45 if (size < (tc->next_free + store->snap->chunk_size)) in transient_prepare_exception()
48 e->new_chunk = sector_to_chunk(store->snap, tc->next_free); in transient_prepare_exception()
49 tc->next_free += store->snap->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.c469 static struct pstore *get_info(struct dm_exception_store *store) in get_info() argument
471 return (struct pstore *) store->context; in get_info()
474 static void persistent_fraction_full(struct dm_exception_store *store, in persistent_fraction_full() argument
477 *numerator = get_info(store)->next_free * store->snap->chunk_size; in persistent_fraction_full()
478 *denominator = get_dev_size(store->snap->cow->bdev); in persistent_fraction_full()
481 static void persistent_destroy(struct dm_exception_store *store) in persistent_destroy() argument
483 struct pstore *ps = get_info(store); in persistent_destroy()
492 static int persistent_read_metadata(struct dm_exception_store *store, in persistent_read_metadata() argument
498 struct pstore *ps = get_info(store); in persistent_read_metadata()
561 static int persistent_prepare_exception(struct dm_exception_store *store, in persistent_prepare_exception() argument
[all …]
Ddm-exception-store.h44 void (*destroy) (struct dm_exception_store *store);
51 int (*read_metadata) (struct dm_exception_store *store,
59 int (*prepare_exception) (struct dm_exception_store *store,
65 void (*commit_exception) (struct dm_exception_store *store,
73 void (*drop_snapshot) (struct dm_exception_store *store);
75 int (*status) (struct dm_exception_store *store, status_type_t status,
81 void (*fraction_full) (struct dm_exception_store *store,
144 int dm_create_persistent(struct dm_exception_store *store);
146 int dm_create_transient(struct dm_exception_store *store);
Ddm-snap.c629 s->store.snap = s; in snapshot_ctr()
632 r = dm_create_persistent(&s->store); in snapshot_ctr()
634 r = dm_create_transient(&s->store); in snapshot_ctr()
668 r = s->store.read_metadata(&s->store, dm_add_exception, (void *)s); in snapshot_ctr()
703 s->store.destroy(&s->store); in snapshot_ctr()
728 s->store.destroy(&s->store); in __free_exceptions()
823 if (s->store.drop_snapshot) in __invalidate_snapshot()
824 s->store.drop_snapshot(&s->store); in __invalidate_snapshot()
946 s->store.commit_exception(&s->store, &pe->e, commit_callback, in copy_callback()
1027 if (s->store.prepare_exception(&s->store, &pe->e)) { in __find_pending_exception()
[all …]
Ddm-snap.h64 struct dm_exception_store store; member
/drivers/ieee1394/
Dcsr.c55 static int lock_regs(struct hpsb_host *host, int nodeid, quadlet_t *store,
57 static int lock64_regs(struct hpsb_host *host, int nodeid, octlet_t * store,
535 static int lock_regs(struct hpsb_host *host, int nodeid, quadlet_t *store, in lock_regs() argument
571 *store = cpu_to_be32(old); in lock_regs()
580 *store = cpu_to_be32(*regptr); in lock_regs()
596 *store = cpu_to_be32(old); /* change nothing */ in lock_regs()
605 *store = cpu_to_be32(arg); in lock_regs()
608 *store = cpu_to_be32(old); in lock_regs()
615 *store = cpu_to_be32(arg); in lock_regs()
618 *store = cpu_to_be32(old); in lock_regs()
[all …]
Dhighlevel.h82 int (*lock)(struct hpsb_host *host, int nodeid, quadlet_t *store,
85 int (*lock64)(struct hpsb_host *host, int nodeid, octlet_t *store,
97 int highlevel_lock(struct hpsb_host *host, int nodeid, quadlet_t *store,
100 int highlevel_lock64(struct hpsb_host *host, int nodeid, octlet_t *store,
Draw1394.c87 static int arm_lock(struct hpsb_host *host, int nodeid, quadlet_t * store,
90 static int arm_lock64(struct hpsb_host *host, int nodeid, octlet_t * store,
1137 static int arm_lock(struct hpsb_host *host, int nodeid, quadlet_t * store, in arm_lock() argument
1178 (addr + sizeof(*store)))) { in arm_lock()
1259 memcpy(store, &old, sizeof(*store)); in arm_lock()
1262 &new, sizeof(*store)); in arm_lock()
1280 …size = sizeof(struct arm_request) + sizeof(struct arm_response) + 3 * sizeof(*store) + sizeof(stru… in arm_lock()
1299 buf2 = buf1 + 2 * sizeof(*store); in arm_lock()
1302 arm_req->buffer_length = sizeof(*store); in arm_lock()
1303 memcpy(buf1, &data, sizeof(*store)); in arm_lock()
[all …]
Dhighlevel.c640 int highlevel_lock(struct hpsb_host *host, int nodeid, quadlet_t *store, in highlevel_lock() argument
654 rcode = as->op->lock(host, nodeid, store, addr, in highlevel_lock()
666 int highlevel_lock64(struct hpsb_host *host, int nodeid, octlet_t *store, in highlevel_lock64() argument
681 rcode = as->op->lock64(host, nodeid, store, in highlevel_lock64()
/drivers/edac/
Dedac_device_sysfs.c108 ssize_t(*store) (struct edac_device_ctl_info *, const char *, size_t); member
134 if (ctl_info_attr->store) in edac_dev_ctl_info_store()
135 return ctl_info_attr->store(edac_dev, buffer, count); in edac_dev_ctl_info_store()
142 .store = edac_dev_ctl_info_store
149 .store = _store, \
347 ssize_t(*store) (struct edac_device_instance *, const char *, size_t); member
370 if (instance_attr->store) in edac_dev_instance_store()
371 return instance_attr->store(instance, buffer, count); in edac_dev_instance_store()
378 .store = edac_dev_instance_store
385 .store = _store, \
[all …]
Dedac_pci_sysfs.c95 ssize_t(*store) (struct edac_pci_ctl_info *, const char *, size_t); member
118 if (instance_attr->store) in edac_pci_instance_store()
119 return instance_attr->store(pci, buffer, count); in edac_pci_instance_store()
126 .store = edac_pci_instance_store
133 .store = _store, \
237 ssize_t(*store) (void *, const char *, size_t); member
260 return edac_pci_dev->store(edac_pci_dev->value, buffer, count); in edac_pci_dev_store()
266 .store = edac_pci_dev_store
274 .store = _store, \
282 .store = _store, \
Dedac_mc_sysfs.c213 ssize_t(*store) (struct csrow_info *, const char *, size_t, int); member
239 if (csrowdev_attr->store) in csrowdev_store()
240 return csrowdev_attr->store(csrow, in csrowdev_store()
248 .store = csrowdev_store
255 .store = _store, \
569 if (mcidev_attr->store) in mcidev_store()
570 return mcidev_attr->store(mem_ctl_info, buffer, count); in mcidev_store()
578 .store = mcidev_store
585 .store = _store, \
Dmpc85xx_edac.c116 .store = mpc85xx_mc_inject_data_hi_store},
123 .store = mpc85xx_mc_inject_data_lo_store},
130 .store = mpc85xx_mc_inject_ctrl_store},
425 .store = mpc85xx_l2_inject_data_hi_store},
432 .store = mpc85xx_l2_inject_data_lo_store},
439 .store = mpc85xx_l2_inject_ctrl_store},
Dedac_core.h332 ssize_t (*store)(struct mem_ctl_info *, const char *,size_t); member
483 ssize_t (*store)(struct edac_device_ctl_info *, const char *, size_t); member
501 ssize_t (*store)(struct kobject *, struct attribute *, member
/drivers/cpuidle/
Dsysfs.c155 ssize_t (*store)(struct cpuidle_device *, const char *, size_t count); member
160 #define define_one_rw(_name, show, store) \ argument
161 static struct cpuidle_attr attr_##_name = __ATTR(_name, 0644, show, store)
186 if (cattr->store) { in cpuidle_store()
188 ret = cattr->store(dev, buf, count); in cpuidle_store()
196 .store = cpuidle_store,
214 ssize_t (*store)(struct cpuidle_state *, const char *, size_t); member
/drivers/base/
Dsys.c51 if (sysdev_attr->store) in sysdev_store()
52 return sysdev_attr->store(sysdev, sysdev_attr, buffer, count); in sysdev_store()
58 .store = sysdev_store,
101 if (class_attr->store) in sysdev_class_store()
102 return class_attr->store(class, buffer, count); in sysdev_class_store()
108 .store = sysdev_class_store,
Dclass.c45 if (class_attr->store) in class_attr_store()
46 ret = class_attr->store(cp->class, buf, count); in class_attr_store()
66 .store = class_attr_store,
Dbus.c68 if (drv_attr->store) in drv_attr_store()
69 ret = drv_attr->store(drv_priv->driver, buf, count); in drv_attr_store()
75 .store = drv_attr_store,
113 if (bus_attr->store) in bus_attr_store()
114 ret = bus_attr->store(bus_priv->bus, buf, count); in bus_attr_store()
120 .store = bus_attr_store,
/drivers/media/video/pvrusb2/
Dpvrusb2-sysfs.c370 cip->attr_val.store = store_val_norm; in pvr2_sysfs_add_control()
374 cip->attr_custom.store = store_val_custom; in pvr2_sysfs_add_control()
427 dip->attr_debugcmd.store = debugcmd_store; in pvr2_sysfs_add_debugifc()
656 sfp->attr_v4l_minor_number.store = NULL; in class_dev_create()
670 sfp->attr_v4l_radio_minor_number.store = NULL; in class_dev_create()
684 sfp->attr_unit_number.store = NULL; in class_dev_create()
697 sfp->attr_bus_info.store = NULL; in class_dev_create()
711 sfp->attr_hdw_name.store = NULL; in class_dev_create()
725 sfp->attr_hdw_desc.store = NULL; in class_dev_create()
/drivers/pci/
Dslot.c29 return attribute->store ? attribute->store(slot, buf, len) : -EIO; in pci_slot_attr_store()
34 .store = pci_slot_attr_store,
/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/firmware/
Defivars.c128 ssize_t (*store)(struct efivar_entry *entry, const char *buf, size_t count); member
136 .store = _store, \
359 if (efivar_attr->store) in efivar_attr_store()
360 ret = efivar_attr->store(var, buf, count); in efivar_attr_store()
367 .store = efivar_attr_store,
/drivers/platform/x86/
Dintel_menlow.c398 void *store, struct device *dev, in intel_menlow_add_one_attribute() argument
411 attr->attr.store = store; in intel_menlow_add_one_attribute()
/drivers/pci/hotplug/
Dpci_hotplug_core.c178 .store = power_write_file
224 .store = attention_write_file
347 .store = test_write_file
/drivers/net/
Dnetconsole.c231 ssize_t (*store)(struct netconsole_target *nt, member
563 if (na->store) in netconsole_target_attr_store()
564 ret = na->store(nt, buf, count); in netconsole_target_attr_store()

123