/drivers/md/ |
D | dm-snap-transient.c | 26 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 …]
|
D | dm-snap-persistent.c | 103 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() 294 memset(ps->area, 0, ps->store->chunk_size << SECTOR_SHIFT); in zero_memory_area() 315 if (!ps->store->chunk_size) { in read_header() 316 ps->store->chunk_size = max(DM_CHUNK_SIZE_DEFAULT_SECTORS, in read_header() 317 bdev_logical_block_size(dm_snap_cow(ps->store->snap)-> in read_header() 319 ps->store->chunk_mask = ps->store->chunk_size - 1; in read_header() [all …]
|
D | dm-exception-store.h | 46 int (*ctr) (struct dm_exception_store *store, char *options); 51 void (*dtr) (struct dm_exception_store *store); 58 int (*read_metadata) (struct dm_exception_store *store, 66 int (*prepare_exception) (struct dm_exception_store *store, 72 void (*commit_exception) (struct dm_exception_store *store, 85 int (*prepare_merge) (struct dm_exception_store *store, 92 int (*commit_merge) (struct dm_exception_store *store, int nr_merged); 97 void (*drop_snapshot) (struct dm_exception_store *store); 99 unsigned (*status) (struct dm_exception_store *store, 106 void (*usage) (struct dm_exception_store *store, [all …]
|
D | dm-exception-store.c | 142 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 …]
|
D | md-bitmap.c | 210 struct bitmap_storage *store = &bitmap->storage; in write_sb_page() local 220 if (page->index == store->file_pages-1) { in write_sb_page() 221 int last_page_size = store->bytes & (PAGE_SIZE-1); in write_sb_page() 741 static inline unsigned long file_page_index(struct bitmap_storage *store, in file_page_index() argument 744 if (store->sb_page) in file_page_index() 750 static inline unsigned long file_page_offset(struct bitmap_storage *store, in file_page_offset() argument 753 if (store->sb_page) in file_page_offset() 762 static inline struct page *filemap_get_page(struct bitmap_storage *store, in filemap_get_page() argument 765 if (file_page_index(store, chunk) >= store->file_pages) in filemap_get_page() 767 return store->filemap[file_page_index(store, chunk)]; in filemap_get_page() [all …]
|
D | dm-snap.c | 107 struct dm_exception_store *store; member 188 static sector_t chunk_to_sector(struct dm_exception_store *store, in chunk_to_sector() argument 191 return chunk << store->chunk_shift; in chunk_to_sector() 524 if (!snap_src->store->type->prepare_merge || in __validate_exception_handover() 525 !snap_src->store->type->commit_merge) { in __validate_exception_handover() 540 if (l->store->chunk_size < s->store->chunk_size) in __insert_snapshot() 863 snap->store->chunk_size); in __minimum_chunk_size() 894 hash_size = cow_dev_size >> s->store->chunk_shift; in init_hash_tables() 1063 linear_chunks = s->store->type->prepare_merge(s->store, &old_chunk, in snapshot_merge_next_chunks() 1084 io_size = linear_chunks * s->store->chunk_size; in snapshot_merge_next_chunks() [all …]
|
D | dm-sysfs.c | 15 ssize_t (*store)(struct mapped_device *, const char *, size_t count); member 55 if (!dm_attr->store) in dm_attr_store() 62 ret = dm_attr->store(md, page, count); in dm_attr_store() 118 .store = dm_attr_store,
|
/drivers/gpu/drm/amd/display/dc/gpio/ |
D | hw_gpio.c | 45 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/ |
D | altera-ci.c | 264 u8 store; in altera_ci_op_cam() local 274 store = netup_fpga_op_rw(inter, NETUP_CI_BUSCTRL, 0, NETUP_CI_FLG_RD); in altera_ci_op_cam() 276 store &= 0x0f; in altera_ci_op_cam() 277 store |= ((state->nr << 7) | (flag << 6)); in altera_ci_op_cam() 279 netup_fpga_op_rw(inter, NETUP_CI_BUSCTRL, store, 0); in altera_ci_op_cam() 518 u8 store = 0; in altera_pid_control() local 530 store = netup_fpga_op_rw(inter, NETUP_CI_PID_DATA, 0, NETUP_CI_FLG_RD); in altera_pid_control() 533 store |= (1 << (pid & 7)); in altera_pid_control() 535 store &= ~(1 << (pid & 7)); in altera_pid_control() 537 netup_fpga_op_rw(inter, NETUP_CI_PID_DATA, store, 0); in altera_pid_control() [all …]
|
D | cimax2.c | 174 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/ |
D | edac_device_sysfs.c | 110 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, \ [all …]
|
D | edac_pci_sysfs.c | 93 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 …]
|
D | edac_device.h | 91 ssize_t (*store)(struct edac_device_ctl_info *, const char *, size_t); member 109 ssize_t (*store)(struct kobject *, struct attribute *, member
|
/drivers/cpuidle/ |
D | sysfs.c | 141 ssize_t (*store)(struct cpuidle_device *, const char *, size_t count); member 182 if (cattr->store) { in cpuidle_store() 184 ret = cattr->store(dev, buf, count); in cpuidle_store() 192 .store = cpuidle_store, 212 ssize_t (*store)(struct cpuidle_state *, \ member 219 #define define_one_state_rw(_name, show, store) \ argument 220 static struct cpuidle_state_attr attr_##_name = __ATTR(_name, 0644, show, store) 428 if (cattr->store) in cpuidle_state_store() 429 ret = cattr->store(state, state_usage, buf, size); in cpuidle_state_store() 439 .store = cpuidle_state_store, [all …]
|
/drivers/infiniband/hw/mlx4/ |
D | sysfs.c | 169 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, 495 ssize_t (*store)(struct mlx4_port *, struct port_attribute *, in alloc_group_attrs() 519 if (store) { in alloc_group_attrs() 521 element->attr.store = store; in alloc_group_attrs() [all …]
|
/drivers/leds/ |
D | leds-lp55xx-common.h | 31 #define LP55XX_DEV_ATTR_RW(name, show, store) \ argument 32 DEVICE_ATTR(name, S_IRUGO | S_IWUSR, show, store) 35 #define LP55XX_DEV_ATTR_WO(name, store) \ argument 36 DEVICE_ATTR(name, S_IWUSR, NULL, store)
|
/drivers/staging/greybus/ |
D | audio_manager_module.c | 23 ssize_t (*store)(struct gb_audio_manager_module *module, member 53 if (!attribute->store) in gb_audio_module_attr_store() 56 return attribute->store(module, attribute, buf, len); in gb_audio_module_attr_store() 61 .store = gb_audio_module_attr_store,
|
/drivers/media/dvb-frontends/ |
D | sp2.c | 96 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/gpu/drm/i915/selftests/ |
D | i915_perf.c | 289 u32 *cs, *store; in live_noa_gpr() local 354 store = memset32(rq->engine->status_page.addr + 512, 0, 32); in live_noa_gpr() 373 offset_in_page(store) + in live_noa_gpr() 390 if (store[i] == STACK_MAGIC) in live_noa_gpr() 394 i, store[i], STACK_MAGIC); in live_noa_gpr()
|
/drivers/dma/ioat/ |
D | sysfs.c | 65 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/ |
D | pvrusb2-sysfs.c | 366 cip->attr_val.store = store_val_norm; in pvr2_sysfs_add_control() 370 cip->attr_custom.store = store_val_custom; in pvr2_sysfs_add_control() 424 dip->attr_debugcmd.store = debugcmd_store; in pvr2_sysfs_add_debugifc() 652 sfp->attr_v4l_minor_number.store = NULL; in class_dev_create() 667 sfp->attr_v4l_radio_minor_number.store = NULL; in class_dev_create() 682 sfp->attr_unit_number.store = NULL; in class_dev_create() 696 sfp->attr_bus_info.store = NULL; in class_dev_create() 711 sfp->attr_hdw_name.store = NULL; in class_dev_create() 726 sfp->attr_hdw_desc.store = NULL; in class_dev_create()
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | display-sysfs.c | 235 ssize_t (*store)(struct omap_dss_device *, const char *, size_t); member 293 if (!display_attr->store) in display_attr_store() 296 return display_attr->store(dssdev, buf, size); in display_attr_store() 301 .store = display_attr_store,
|
/drivers/cpufreq/ |
D | cpufreq_governor_attr_set.c | 32 ret = attr_set->usage_count ? gattr->store(attr_set, buf, count) : -EBUSY; in governor_store() 39 .store = governor_store,
|
/drivers/hwmon/ |
D | ibmpowernv.c | 487 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/platform/x86/intel/ |
D | rst.c | 54 .store = irst_store_wakeup_events 98 .store = irst_store_wakeup_time
|