/Linux-v4.19/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() 301 memset(ps->area, 0, ps->store->chunk_size << SECTOR_SHIFT); in zero_memory_area() 322 if (!ps->store->chunk_size) { in read_header() 323 ps->store->chunk_size = max(DM_CHUNK_SIZE_DEFAULT_SECTORS, in read_header() 324 bdev_logical_block_size(dm_snap_cow(ps->store->snap)-> in read_header() 326 ps->store->chunk_mask = ps->store->chunk_size - 1; in read_header() [all …]
|
D | dm-exception-store.h | 45 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 …]
|
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 | dm-snap.c | 106 struct dm_exception_store *store; member 163 static sector_t chunk_to_sector(struct dm_exception_store *store, in chunk_to_sector() argument 166 return chunk << store->chunk_shift; in chunk_to_sector() 499 if (!snap_src->store->type->prepare_merge || in __validate_exception_handover() 500 !snap_src->store->type->commit_merge) { in __validate_exception_handover() 515 if (l->store->chunk_size < s->store->chunk_size) in __insert_snapshot() 781 snap->store->chunk_size); in __minimum_chunk_size() 812 hash_size = cow_dev_size >> s->store->chunk_shift; in init_hash_tables() 981 linear_chunks = s->store->type->prepare_merge(s->store, &old_chunk, in snapshot_merge_next_chunks() 1002 io_size = linear_chunks * s->store->chunk_size; in snapshot_merge_next_chunks() [all …]
|
D | md-bitmap.c | 216 struct bitmap_storage *store = &bitmap->storage; in write_sb_page() local 226 if (page->index == store->file_pages-1) { in write_sb_page() 227 int last_page_size = store->bytes & (PAGE_SIZE-1); in write_sb_page() 748 static inline unsigned long file_page_index(struct bitmap_storage *store, in file_page_index() argument 751 if (store->sb_page) in file_page_index() 757 static inline unsigned long file_page_offset(struct bitmap_storage *store, in file_page_offset() argument 760 if (store->sb_page) in file_page_offset() 769 static inline struct page *filemap_get_page(struct bitmap_storage *store, in filemap_get_page() argument 772 if (file_page_index(store, chunk) >= store->file_pages) in filemap_get_page() 774 return store->filemap[file_page_index(store, chunk)]; in filemap_get_page() [all …]
|
/Linux-v4.19/tools/perf/ui/gtk/ |
D | hists.c | 95 static void perf_gtk__add_callchain_flat(struct rb_root *root, GtkTreeStore *store, in perf_gtk__add_callchain_flat() argument 117 gtk_tree_store_append(store, &iter, &new_parent); in perf_gtk__add_callchain_flat() 120 gtk_tree_store_set(store, &iter, 0, buf, -1); in perf_gtk__add_callchain_flat() 123 gtk_tree_store_set(store, &iter, col, buf, -1); in perf_gtk__add_callchain_flat() 138 gtk_tree_store_append(store, &iter, &new_parent); in perf_gtk__add_callchain_flat() 141 gtk_tree_store_set(store, &iter, 0, buf, -1); in perf_gtk__add_callchain_flat() 144 gtk_tree_store_set(store, &iter, col, buf, -1); in perf_gtk__add_callchain_flat() 158 static void perf_gtk__add_callchain_folded(struct rb_root *root, GtkTreeStore *store, in perf_gtk__add_callchain_folded() argument 207 gtk_tree_store_append(store, &iter, parent); in perf_gtk__add_callchain_folded() 210 gtk_tree_store_set(store, &iter, 0, buf, -1); in perf_gtk__add_callchain_folded() [all …]
|
D | annotate.c | 98 GtkListStore *store; in perf_gtk__annotate_symbol() local 108 store = gtk_list_store_newv(MAX_ANN_COLS, col_types); in perf_gtk__annotate_symbol() 119 gtk_tree_view_set_model(GTK_TREE_VIEW(view), GTK_TREE_MODEL(store)); in perf_gtk__annotate_symbol() 120 g_object_unref(GTK_TREE_MODEL(store)); in perf_gtk__annotate_symbol() 126 gtk_list_store_append(store, &iter); in perf_gtk__annotate_symbol() 142 gtk_list_store_set(store, &iter, ANN_COL__PERCENT, s, -1); in perf_gtk__annotate_symbol() 144 gtk_list_store_set(store, &iter, ANN_COL__OFFSET, s, -1); in perf_gtk__annotate_symbol() 146 gtk_list_store_set(store, &iter, ANN_COL__LINE, s, -1); in perf_gtk__annotate_symbol()
|
/Linux-v4.19/sound/usb/ |
D | mixer_us16x08.c | 431 struct snd_us16x08_comp_store *store = elem->private_data; in snd_us16x08_comp_get() local 435 ucontrol->value.integer.value[0] = store->val[val_idx][index]; in snd_us16x08_comp_get() 445 struct snd_us16x08_comp_store *store = elem->private_data; in snd_us16x08_comp_put() local 461 store->val[val_idx][index] = ucontrol->value.integer.value[0]; in snd_us16x08_comp_put() 467 buf[8] = store->val[ in snd_us16x08_comp_put() 470 buf[11] = ratio_map[store->val[ in snd_us16x08_comp_put() 472 buf[14] = store->val[COMP_STORE_IDX(SND_US16X08_ID_COMP_ATTACK)][index] in snd_us16x08_comp_put() 474 buf[17] = store->val[COMP_STORE_IDX(SND_US16X08_ID_COMP_RELEASE)][index] in snd_us16x08_comp_put() 476 buf[20] = store->val[COMP_STORE_IDX(SND_US16X08_ID_COMP_GAIN)][index]; in snd_us16x08_comp_put() 477 buf[26] = store->val[COMP_STORE_IDX(SND_US16X08_ID_COMP_SWITCH)][index]; in snd_us16x08_comp_put() [all …]
|
/Linux-v4.19/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace-vsx.h | 74 int compare_vsx_vmx(unsigned long *store, unsigned long *load) in compare_vsx_vmx() argument 79 if (store[1 + 2 * i] != load[1 + 2 * i]) { in compare_vsx_vmx() 81 1 + 2 * i, store[i], in compare_vsx_vmx() 89 if (store[i] != load[i]) { in compare_vsx_vmx() 91 i, store[i], i, load[i]); in compare_vsx_vmx() 97 if (!(i % 2) && (store[i] != load[i+1])) { in compare_vsx_vmx() 99 i, store[i], i+1, load[i+1]); in compare_vsx_vmx() 102 if ((i % 2) && (store[i] != load[i-1])) { in compare_vsx_vmx() 104 i, store[i], i-1, load[i-1]); in compare_vsx_vmx()
|
/Linux-v4.19/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()
|
/Linux-v4.19/tools/perf/scripts/python/ |
D | stat-cpi.py | 22 def store(time, event, cpu, thread, val, ena, run): function 35 store(time, "cycles", cpu, thread, val, ena, run); 38 store(time, "instructions", cpu, thread, val, ena, run); 41 store(time, "cycles", cpu, thread, val, ena, run); 44 store(time, "instructions", cpu, thread, val, ena, run); 47 store(time, "cycles", cpu, thread, val, ena, run); 50 store(time, "instructions", cpu, thread, val, ena, run);
|
/Linux-v4.19/drivers/media/pci/cx23885/ |
D | altera-ci.c | 274 u8 store; in altera_ci_op_cam() local 284 store = netup_fpga_op_rw(inter, NETUP_CI_BUSCTRL, 0, NETUP_CI_FLG_RD); in altera_ci_op_cam() 286 store &= 0x0f; in altera_ci_op_cam() 287 store |= ((state->nr << 7) | (flag << 6)); in altera_ci_op_cam() 289 netup_fpga_op_rw(inter, NETUP_CI_BUSCTRL, store, 0); in altera_ci_op_cam() 528 u8 store = 0; in altera_pid_control() local 540 store = netup_fpga_op_rw(inter, NETUP_CI_PID_DATA, 0, NETUP_CI_FLG_RD); in altera_pid_control() 543 store |= (1 << (pid & 7)); in altera_pid_control() 545 store &= ~(1 << (pid & 7)); in altera_pid_control() 547 netup_fpga_op_rw(inter, NETUP_CI_PID_DATA, store, 0); in altera_pid_control() [all …]
|
/Linux-v4.19/net/netfilter/ipset/ |
D | Kconfig | 32 can store IPv4 addresses (or network addresse) from a range. 41 can store IPv4 address and (source) MAC address pairs from a range. 50 can store TCP/UDP port numbers from a range. 59 can store arbitrary IPv4 or IPv6 addresses (or network addresses) 69 can store IPv4/IPv6 address and mark pairs. 78 can store IPv4/IPv6 address and protocol/port pairs. 87 one can store IPv4/IPv6 address, protocol/port, and IPv4/IPv6 97 one can store IPv4/IPv6 address, protocol/port, and IPv4/IPv6 107 one can store IPv4/IPv6 address and MAC (ethernet address) pairs in a set. 116 one can store MAC (ethernet address) elements in a set. [all …]
|
/Linux-v4.19/Documentation/filesystems/ext4/ondisk/ |
D | eainode.rst | 6 To enable ext4 to store extended attribute values that do not fit in the 8 the EA\_INODE feature allows us to store the value in the data blocks of 11 inode's i\_atime field is used to store a checksum of the xattr value; 12 and i\_ctime/i\_version store a 64-bit reference count, which enables 15 i\_mtime/i\_generation *may* store a back-reference to the inode number
|
/Linux-v4.19/Documentation/translations/zh_CN/filesystems/ |
D | sysfs.txt | 107 ssize_t (*store)(struct device *dev, struct device_attribute *attr, 130 .store = store_foo, 143 ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t); 181 在声明属性时,必须指定 show() 或 store() 方法,以实现属性的 185 ssize_t (*store)(struct device *dev, struct device_attribute *attr, 203 之后 Sysfs 传递整个缓冲区给 store() 方法。 221 - store() 应返回缓冲区的已用字节数。如果整个缓存都已填满,只需返回 224 - show() 或 store() 可以返回错误值。当得到一个非法值,必须返回一个 311 ssize_t (*store)(struct device *dev, struct device_attribute *attr, 332 ssize_t (*store)(struct bus_type *, const char * buf, size_t count); [all …]
|
/Linux-v4.19/fs/nilfs2/ |
D | bmap.c | 565 struct nilfs_bmap_store *store) in nilfs_bmap_save() argument 567 memcpy(store->data, bmap->b_u.u_data, sizeof(store->data)); in nilfs_bmap_save() 568 store->last_allocated_key = bmap->b_last_allocated_key; in nilfs_bmap_save() 569 store->last_allocated_ptr = bmap->b_last_allocated_ptr; in nilfs_bmap_save() 570 store->state = bmap->b_state; in nilfs_bmap_save() 574 const struct nilfs_bmap_store *store) in nilfs_bmap_restore() argument 576 memcpy(bmap->b_u.u_data, store->data, sizeof(store->data)); in nilfs_bmap_restore() 577 bmap->b_last_allocated_key = store->last_allocated_key; in nilfs_bmap_restore() 578 bmap->b_last_allocated_ptr = store->last_allocated_ptr; in nilfs_bmap_restore() 579 bmap->b_state = store->state; in nilfs_bmap_restore()
|
D | sysfs.h | 58 ssize_t (*store)(struct kobject *, struct attribute *, \ 69 ssize_t (*store)(struct nilfs_##name##_attr *, struct the_nilfs *, \ 85 ssize_t (*store)(struct nilfs_##name##_attr *, struct nilfs_root *, \ 91 #define NILFS_ATTR(type, name, mode, show, store) \ argument 93 __ATTR(name, mode, show, store)
|
/Linux-v4.19/drivers/cpuidle/ |
D | sysfs.c | 165 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) 412 if (cattr->store) in cpuidle_state_store() [all …]
|
/Linux-v4.19/drivers/edac/ |
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_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, \ 341 ssize_t(*store) (struct edac_device_instance *, const char *, size_t); member 364 if (instance_attr->store) in edac_dev_instance_store() 365 return instance_attr->store(instance, buffer, count); in edac_dev_instance_store() 372 .store = edac_dev_instance_store 379 .store = _store, \ [all …]
|
/Linux-v4.19/block/ |
D | blk-sysfs.c | 23 ssize_t (*store)(struct request_queue *, const char *, size_t); member 522 .store = queue_requests_store, 528 .store = queue_ra_store, 534 .store = queue_max_sectors_store, 565 .store = elv_iosched_store, 611 .store = queue_discard_max_store, 632 .store = queue_store_nonrot, 643 .store = queue_nomerges_store, 649 .store = queue_rq_affinity_store, 655 .store = queue_store_iostats, [all …]
|
D | blk-mq-sysfs.c | 32 ssize_t (*store)(struct blk_mq_ctx *, const char *, size_t); member 38 ssize_t (*store)(struct blk_mq_hw_ctx *, const char *, size_t); member 76 if (!entry->store) in blk_mq_sysfs_store() 82 res = entry->store(ctx, page, length); in blk_mq_sysfs_store() 123 if (!entry->store) in blk_mq_hw_sysfs_store() 129 res = entry->store(hctx, page, length); in blk_mq_hw_sysfs_store() 190 .store = blk_mq_sysfs_store, 195 .store = blk_mq_hw_sysfs_store,
|
/Linux-v4.19/fs/exofs/ |
D | sys.c | 30 ssize_t (*store)(struct exofs_dev *, const char *, size_t); member 48 return a->store ? a->store(edp, buf, len) : len; in odev_attr_store() 53 .store = odev_attr_store, 94 #define OSD_ATTR(name, mode, show, store) \ argument 96 __ATTR(name, mode, show, store)
|
/Linux-v4.19/tools/memory-model/Documentation/ |
D | explanation.txt | 83 store instruction accessing the same location (we ignore complicating 166 store to buf but before the store to flag. In this case, r1 and r2 188 store to the same memory location, from any CPU. 194 Since r1 = 1, P0 must store 1 to flag before P1 loads 1 from 202 store to the same address. 207 Since an instruction (in this case, P1's store to flag) cannot 316 is concerned only with the store itself -- its value and its address 389 both branches of an "if" statement store the same value to the same 415 from x could be executed after the store to y. Thus, the memory 483 a control dependency from the load to the store. [all …]
|