/drivers/md/ |
H A D | dm-snap-transient.c | 8 #include "dm-exception-store.h" 20 * Implementation of the store for non-persistent snapshots. 26 static void transient_dtr(struct dm_exception_store *store) argument 28 kfree(store->context); 31 static int transient_read_metadata(struct dm_exception_store *store, argument 39 static int transient_prepare_exception(struct dm_exception_store *store, argument 42 struct transient_c *tc = store->context; 43 sector_t size = get_dev_size(dm_snap_cow(store->snap)->bdev); 45 if (size < (tc->next_free + store->chunk_size)) 48 e->new_chunk = sector_to_chunk(store, t 54 transient_commit_exception(struct dm_exception_store *store, struct dm_exception *e, void (*callback) (void *, int success), void *callback_context) argument 63 transient_usage(struct dm_exception_store *store, sector_t *total_sectors, sector_t *sectors_allocated, sector_t *metadata_sectors) argument 73 transient_ctr(struct dm_exception_store *store, unsigned argc, char **argv) argument 88 transient_status(struct dm_exception_store *store, status_type_t status, char *result, unsigned maxlen) argument [all...] |
H A D | dm-exception-store.h | 5 * Device-mapper snapshot exception store. 45 int (*ctr) (struct dm_exception_store *store, 51 void (*dtr) (struct dm_exception_store *store); 58 int (*read_metadata) (struct dm_exception_store *store, 64 * Find somewhere to store the next exception. 66 int (*prepare_exception) (struct dm_exception_store *store, 72 void (*commit_exception) (struct dm_exception_store *store, 78 * Returns 0 if the exception store is empty. 85 int (*prepare_merge) (struct dm_exception_store *store, 92 int (*commit_merge) (struct dm_exception_store *store, in 196 sector_to_chunk(struct dm_exception_store *store, sector_t sector) argument [all...] |
H A D | dm-exception-store.c | 8 #include "dm-exception-store.h" 64 * 'dm-exception-store-<type_name>' is too long of a name in my 66 * containing exception store implementations be 'dm-exstore-<type_name>'. 142 static int set_chunk_size(struct dm_exception_store *store, argument 153 store->chunk_size = store->chunk_mask = store->chunk_shift = 0; 157 return dm_exception_store_set_chunk_size(store, chunk_size, error); 160 int dm_exception_store_set_chunk_size(struct dm_exception_store *store, argument 172 (bdev_logical_block_size(dm_snap_cow(store 191 dm_exception_store_create(struct dm_target *ti, int argc, char **argv, struct dm_snapshot *snap, unsigned *args_used, struct dm_exception_store **store) argument 254 dm_exception_store_destroy(struct dm_exception_store *store) argument [all...] |
H A D | dm-snap-persistent.c | 8 #include "dm-exception-store.h" 29 * We need to store a record of which parts of the origin have 32 * of the COW store. It makes sense therefore, to store the 99 * The top level structure for a persistent exception store. 102 struct dm_exception_store *store; member in struct:pstore 138 * the exception store because chunks can be committed out of 171 len = ps->store->chunk_size << SECTOR_SHIFT; 237 .bdev = dm_snap_cow(ps->store->snap)->bdev, 238 .sector = ps->store 572 get_info(struct dm_exception_store *store) argument 577 persistent_usage(struct dm_exception_store *store, sector_t *total_sectors, sector_t *sectors_allocated, sector_t *metadata_sectors) argument 596 persistent_dtr(struct dm_exception_store *store) argument 614 persistent_read_metadata(struct dm_exception_store *store, int (*callback)(void *callback_context, chunk_t old, chunk_t new), void *callback_context) argument 679 persistent_prepare_exception(struct dm_exception_store *store, struct dm_exception *e) argument 702 persistent_commit_exception(struct dm_exception_store *store, struct dm_exception *e, void (*callback) (void *, int success), void *callback_context) argument 764 persistent_prepare_merge(struct dm_exception_store *store, chunk_t *last_old_chunk, chunk_t *last_new_chunk) argument 810 persistent_commit_merge(struct dm_exception_store *store, int nr_merged) argument 843 persistent_drop_snapshot(struct dm_exception_store *store) argument 852 persistent_ctr(struct dm_exception_store *store, unsigned argc, char **argv) argument 887 persistent_status(struct dm_exception_store *store, status_type_t status, char *result, unsigned maxlen) argument [all...] |
H A D | dm-snap.c | 23 #include "dm-exception-store.h" 97 struct dm_exception_store *store; member in struct:dm_snapshot 154 static sector_t chunk_to_sector(struct dm_exception_store *store, argument 157 return chunk << store->chunk_shift; 444 if (!snap_src->store->type->prepare_merge || 445 !snap_src->store->type->commit_merge) { 446 snap->ti->error = "Snapshot exception store does not " 460 if (l->store->chunk_size < s->store->chunk_size) 469 * Also validate snapshot exception store handover [all...] |
H A D | bitmap.c | 194 struct bitmap_storage *store = &bitmap->storage; local 202 if (page->index == store->file_pages-1) { 203 int last_page_size = store->bytes & (PAGE_SIZE-1); 652 static inline unsigned long file_page_index(struct bitmap_storage *store, argument 655 if (store->sb_page) 661 static inline unsigned long file_page_offset(struct bitmap_storage *store, argument 664 if (store->sb_page) 673 static inline struct page *filemap_get_page(struct bitmap_storage *store, argument 676 if (file_page_index(store, chunk) >= store 681 bitmap_storage_alloc(struct bitmap_storage *store, unsigned long chunks, int with_super) argument 733 bitmap_file_unmap(struct bitmap_storage *store) argument 933 struct bitmap_storage *store = &bitmap->storage; local 1793 struct bitmap_storage store; local [all...] |
H A D | dm-sysfs.c | 14 ssize_t (*store)(struct mapped_device *, char *); member in struct:dm_sysfs_attr
|
/drivers/media/pci/cx23885/ |
H A D | altera-ci.c | 269 u8 store; local 279 store = netup_fpga_op_rw(inter, NETUP_CI_BUSCTRL, 0, NETUP_CI_FLG_RD); 281 store &= 0x0f; 282 store |= ((state->nr << 7) | (flag << 6)); 284 netup_fpga_op_rw(inter, NETUP_CI_BUSCTRL, store, 0); 524 u8 store = 0; local 536 store = netup_fpga_op_rw(inter, NETUP_CI_PID_DATA, 0, NETUP_CI_FLG_RD); 539 store |= (1 << (pid & 7)); 541 store &= ~(1 << (pid & 7)); 543 netup_fpga_op_rw(inter, NETUP_CI_PID_DATA, store, 555 u8 store = 0; local 710 u8 store = 0; local 811 u8 store; local [all...] |
H A D | cimax2.c | 184 u8 store; local 193 0, &store, 1); 197 store &= ~0x0c; 198 store |= flag; 201 0, &store, 1); 453 0x01, /* power on (use it like store place) */
|
/drivers/cpuidle/ |
H A D | sysfs.c | 165 ssize_t (*store)(struct cpuidle_device *, const char *, size_t count); member in struct:cpuidle_attr 170 #define define_one_rw(_name, show, store) \ 171 static struct cpuidle_attr attr_##_name = __ATTR(_name, 0644, show, store) 211 if (cattr->store) { 213 ret = cattr->store(dev, buf, count); 221 .store = cpuidle_store, 241 ssize_t (*store)(struct cpuidle_state *, \ member in struct:cpuidle_state_attr 248 #define define_one_state_rw(_name, show, store) \ 249 static struct cpuidle_state_attr attr_##_name = __ATTR(_name, 0644, show, store) 360 if (cattr->store) 459 ssize_t (*store)(struct cpuidle_driver *, const char *, size_t); member in struct:cpuidle_driver_attr [all...] |
/drivers/leds/ |
H A D | leds-lp55xx-common.h | 32 #define LP55XX_DEV_ATTR_RW(name, show, store) \ 33 DEVICE_ATTR(name, S_IRUGO | S_IWUSR, show, store) 36 #define LP55XX_DEV_ATTR_WO(name, store) \ 37 DEVICE_ATTR(name, S_IWUSR, NULL, store)
|
/drivers/edac/ |
H A D | edac_pci_sysfs.c | 96 ssize_t(*store) (struct edac_pci_ctl_info *, const char *, size_t); member in struct:instance_attribute 111 /* Function to 'store' fields into the edac_pci 'instance' structure */ 119 if (instance_attr->store) 120 return instance_attr->store(pci, buffer, count); 127 .store = edac_pci_instance_store 134 .store = _store, \ 216 /* simple show/store functions for attributes */ 237 ssize_t(*store) (void *, const char *, size_t); member in struct:edac_pci_dev_attribute 240 /* Set of show/store abstract level functions for PCI Parity object */ 259 if (edac_pci_dev->store) [all...] |
H A D | edac_device_sysfs.c | 28 * Set of edac_device_ctl_info attribute store/show functions 82 /* 'poll_msec' show and store functions*/ 110 ssize_t(*store) (struct edac_device_ctl_info *, const char *, size_t); member in struct:ctl_info_attribute 128 /* Function to 'store' fields into the edac_dev 'ctl_info' structure */ 136 if (ctl_info_attr->store) 137 return ctl_info_attr->store(edac_dev, buffer, count); 144 .store = edac_dev_ctl_info_store 151 .store = _store, \ 350 ssize_t(*store) (struct edac_device_instance *, const char *, size_t); member in struct:instance_attribute 365 /* Function to 'store' field [all...] |
/drivers/platform/x86/ |
H A D | intel-rst.c | 71 .store = irst_store_wakeup_events 117 .store = irst_store_wakeup_time
|
/drivers/media/dvb-frontends/ |
H A D | sp2.c | 102 u8 store; local 117 ret = sp2_read_i2c(s, 0x00, &store, 1); 122 store &= ~(SP2_MOD_CTL_ACS1 | SP2_MOD_CTL_ACS0); 123 store |= acs; 125 ret = sp2_write_i2c(s, 0x00, &store, 1);
|
/drivers/infiniband/hw/mlx4/ |
H A D | sysfs.c | 187 ssize_t (*store)(struct device *dev, 197 vdentry->dentry.store = store; 204 if (vdentry->dentry.store) 417 ssize_t (*store)(struct mlx4_port *, struct port_attribute *, member in struct:port_attribute 441 if (!port_attr->store) 443 return port_attr->store(p, port_attr, buf, size); 448 .store = port_attr_store, 520 ssize_t (*store)(struct mlx4_port *, struct port_attribute *, 544 if (store) { [all...] |
/drivers/platform/chrome/ |
H A D | Kconfig | 32 devices. It can be used to store away console logs and crash
|
/drivers/xen/ |
H A D | sys-hypervisor.c | 34 ssize_t (*store)(struct hyp_sysfs_attr *, const char *, size_t); member in struct:hyp_sysfs_attr 438 if (hyp_attr->store) 439 return hyp_attr->store(hyp_attr, buffer, len); 445 .store = hyp_sysfs_store,
|
/drivers/pci/ |
H A D | slot.c | 31 return attribute->store ? attribute->store(slot, buf, len) : -EIO; 36 .store = pci_slot_attr_store,
|
/drivers/infiniband/hw/qib/ |
H A D | qib_sysfs.c | 178 #define QIB_PORT_ATTR(name, mode, show, store) \ 180 __ATTR(name, mode, show, store) 185 ssize_t (*store)(struct qib_pportdata *, const char *, size_t); member in struct:qib_port_attr 315 return pattr->store(ppd, buf, len); 321 .store = qib_portattr_store, 484 .store = diagc_attr_store,
|
/drivers/iio/ |
H A D | industrialio-event.c | 320 ssize_t (*store)(struct device *, struct device_attribute *, 338 store = iio_ev_state_store; 341 store = iio_ev_value_store; 344 ret = __iio_add_chan_devattr(postfix, chan, show, store,
|
/drivers/md/bcache/ |
H A D | sysfs.h | 9 .store = type ## _store \
|
/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-sysfs.c | 381 cip->attr_val.store = store_val_norm; 385 cip->attr_custom.store = store_val_custom; 439 dip->attr_debugcmd.store = debugcmd_store; 667 sfp->attr_v4l_minor_number.store = NULL; 682 sfp->attr_v4l_radio_minor_number.store = NULL; 697 sfp->attr_unit_number.store = NULL; 711 sfp->attr_bus_info.store = NULL; 726 sfp->attr_hdw_name.store = NULL; 741 sfp->attr_hdw_desc.store = NULL;
|
/drivers/video/fbdev/omap2/dss/ |
H A D | manager-sysfs.c | 435 ssize_t (*store)(struct omap_overlay_manager *, const char *, size_t); member in struct:manager_attribute 502 if (!manager_attr->store) 505 return manager_attr->store(manager, buf, size); 510 .store = manager_attr_store,
|
H A D | overlay-sysfs.c | 365 ssize_t (*store)(struct omap_overlay *, const char *, size_t); member in struct:overlay_attribute 429 if (!overlay_attr->store) 432 return overlay_attr->store(overlay, buf, size); 437 .store = overlay_attr_store,
|