/fs/nfs/ |
D | direct.c | 231 struct nfs_read_data *data = calldata; in nfs_direct_read_result() local 233 nfs_readpage_result(task, data); in nfs_direct_read_result() 239 struct nfs_read_data *data = calldata; in nfs_direct_read_release() local 240 struct nfs_direct_req *dreq = (struct nfs_direct_req *) data->req; in nfs_direct_read_release() 241 int status = data->task.tk_status; in nfs_direct_read_release() 248 dreq->count += data->res.count; in nfs_direct_read_release() 250 nfs_direct_dirty_pages(data->pagevec, in nfs_direct_read_release() 251 data->args.pgbase, in nfs_direct_read_release() 252 data->res.count); in nfs_direct_read_release() 254 nfs_direct_release_pages(data->pagevec, data->npages); in nfs_direct_read_release() [all …]
|
D | unlink.c | 32 nfs_free_unlinkdata(struct nfs_unlinkdata *data) in nfs_free_unlinkdata() argument 34 iput(data->dir); in nfs_free_unlinkdata() 35 put_rpccred(data->cred); in nfs_free_unlinkdata() 36 kfree(data->args.name.name); in nfs_free_unlinkdata() 37 kfree(data); in nfs_free_unlinkdata() 46 static int nfs_copy_dname(struct dentry *dentry, struct nfs_unlinkdata *data) in nfs_copy_dname() argument 54 data->args.name.len = len; in nfs_copy_dname() 55 data->args.name.name = str; in nfs_copy_dname() 59 static void nfs_free_dname(struct nfs_unlinkdata *data) in nfs_free_dname() argument 61 kfree(data->args.name.name); in nfs_free_dname() [all …]
|
D | read.c | 68 void nfs_readdata_release(void *data) in nfs_readdata_release() argument 70 struct nfs_read_data *rdata = data; in nfs_readdata_release() 85 static void nfs_readpage_truncate_uninitialised_page(struct nfs_read_data *data) in nfs_readpage_truncate_uninitialised_page() argument 87 unsigned int remainder = data->args.count - data->res.count; in nfs_readpage_truncate_uninitialised_page() 88 unsigned int base = data->args.pgbase + data->res.count; in nfs_readpage_truncate_uninitialised_page() 92 if (data->res.eof == 0 || remainder == 0) in nfs_readpage_truncate_uninitialised_page() 98 pages = &data->args.pages[base >> PAGE_CACHE_SHIFT]; in nfs_readpage_truncate_uninitialised_page() 156 static int nfs_read_rpcsetup(struct nfs_page *req, struct nfs_read_data *data, in nfs_read_rpcsetup() argument 164 .rpc_argp = &data->args, in nfs_read_rpcsetup() 165 .rpc_resp = &data->res, in nfs_read_rpcsetup() [all …]
|
D | nfs3proc.c | 269 struct nfs3_createdata *data; in nfs3_alloc_createdata() local 271 data = kzalloc(sizeof(*data), GFP_KERNEL); in nfs3_alloc_createdata() 272 if (data != NULL) { in nfs3_alloc_createdata() 273 data->msg.rpc_argp = &data->arg; in nfs3_alloc_createdata() 274 data->msg.rpc_resp = &data->res; in nfs3_alloc_createdata() 275 data->res.fh = &data->fh; in nfs3_alloc_createdata() 276 data->res.fattr = &data->fattr; in nfs3_alloc_createdata() 277 data->res.dir_attr = &data->dir_attr; in nfs3_alloc_createdata() 278 nfs_fattr_init(data->res.fattr); in nfs3_alloc_createdata() 279 nfs_fattr_init(data->res.dir_attr); in nfs3_alloc_createdata() [all …]
|
D | write.c | 94 void nfs_writedata_release(void *data) in nfs_writedata_release() argument 96 struct nfs_write_data *wdata = data; in nfs_writedata_release() 304 static int nfs_writepages_callback(struct page *page, struct writeback_control *wbc, void *data) in nfs_writepages_callback() argument 308 ret = nfs_do_writepage(page, wbc, data); in nfs_writepages_callback() 432 int nfs_write_need_commit(struct nfs_write_data *data) in nfs_write_need_commit() argument 434 return data->verf.committed != NFS_FILE_SYNC; in nfs_write_need_commit() 463 int nfs_write_need_commit(struct nfs_write_data *data) in nfs_write_need_commit() argument 782 struct nfs_write_data *data, in nfs_write_rpcsetup() argument 792 .rpc_argp = &data->args, in nfs_write_rpcsetup() 793 .rpc_resp = &data->res, in nfs_write_rpcsetup() [all …]
|
D | nfs4proc.c | 63 static int _nfs4_proc_open(struct nfs4_opendata *data); 355 u32 *s = (u32 *) p->o_arg.u.verifier.data; in nfs4_opendata_alloc() 451 memcpy(state->stateid.data, stateid->data, sizeof(state->stateid.data)); in nfs_set_open_stateid_locked() 452 memcpy(state->open_stateid.data, stateid->data, sizeof(state->open_stateid.data)); in nfs_set_open_stateid_locked() 480 memcpy(state->stateid.data, deleg_stateid->data, sizeof(state->stateid.data)); in __update_open_stateid() 511 else if (memcmp(deleg_cur->stateid.data, delegation->data, NFS4_STATEID_SIZE) != 0) in update_open_stateid() 573 memcpy(stateid.data, delegation->stateid.data, sizeof(stateid.data)); in nfs4_try_open_cached() 591 static struct nfs4_state *nfs4_opendata_to_nfs4_state(struct nfs4_opendata *data) in nfs4_opendata_to_nfs4_state() argument 598 if (!data->rpc_done) { in nfs4_opendata_to_nfs4_state() 599 state = nfs4_try_open_cached(data); in nfs4_opendata_to_nfs4_state() [all …]
|
D | super.c | 1547 struct nfs_mount_data *data = (struct nfs_mount_data *)options; in nfs_validate_mount_data() local 1549 if (data == NULL) in nfs_validate_mount_data() 1564 switch (data->version) { in nfs_validate_mount_data() 1566 data->namlen = 0; in nfs_validate_mount_data() 1568 data->bsize = 0; in nfs_validate_mount_data() 1570 if (data->flags & NFS_MOUNT_VER3) in nfs_validate_mount_data() 1572 data->root.size = NFS2_FHSIZE; in nfs_validate_mount_data() 1573 memcpy(data->root.data, data->old_root.data, NFS2_FHSIZE); in nfs_validate_mount_data() 1575 if (data->flags & NFS_MOUNT_SECFLAVOUR) in nfs_validate_mount_data() 1578 memset(data->context, 0, sizeof(data->context)); in nfs_validate_mount_data() [all …]
|
D | client.c | 413 static struct nfs_client *nfs_match_client(const struct nfs_client_initdata *data) in nfs_match_client() argument 416 const struct sockaddr *sap = data->addr; in nfs_match_client() 425 if (clp->rpc_ops != data->rpc_ops) in nfs_match_client() 428 if (clp->cl_proto != data->proto) in nfs_match_client() 707 const struct nfs_parsed_mount_data *data) in nfs_init_client() argument 722 0, data->flags & NFS_MOUNT_NORESVPORT); in nfs_init_client() 738 const struct nfs_parsed_mount_data *data) in nfs_init_server() argument 741 .hostname = data->nfs_server.hostname, in nfs_init_server() 742 .addr = (const struct sockaddr *)&data->nfs_server.address, in nfs_init_server() 743 .addrlen = data->nfs_server.addrlen, in nfs_init_server() [all …]
|
/fs/dlm/ |
D | netlink.c | 27 void *data; in prepare_data() local 34 data = genlmsg_put(skb, 0, dlm_nl_seqnum++, &family, 0, cmd); in prepare_data() 35 if (!data) { in prepare_data() 56 struct genlmsghdr *genlhdr = nlmsg_data((struct nlmsghdr *)skb->data); in send_data() 57 void *data = genlmsg_data(genlhdr); in send_data() local 60 rv = genlmsg_end(skb, data); in send_data() 104 static void fill_data(struct dlm_lock_data *data, struct dlm_lkb *lkb) in fill_data() argument 108 memset(data, 0, sizeof(struct dlm_lock_data)); in fill_data() 110 data->version = DLM_LOCK_DATA_VERSION; in fill_data() 111 data->nodeid = lkb->lkb_nodeid; in fill_data() [all …]
|
/fs/partitions/ |
D | acorn.c | 31 adfs_partition(struct parsed_partitions *state, char *name, char *data, in adfs_partition() argument 37 if (adfs_checkbblk(data)) in adfs_partition() 40 dr = (struct adfs_discrecord *)(data + 0x1c0); in adfs_partition() 166 unsigned char *data; in adfspart_check_CUMANA() local 188 data = read_dev_sector(bdev, start_blk * 2 + 6, §); in adfspart_check_CUMANA() 189 if (!data) in adfspart_check_CUMANA() 195 dr = adfs_partition(state, name, data, first_sector, slot++); in adfspart_check_CUMANA() 201 nr_sects = (data[0x1fd] + (data[0x1fe] << 8)) * in adfspart_check_CUMANA() 213 switch (data[0x1fc] & 15) { in adfspart_check_CUMANA() 257 unsigned char *data; in adfspart_check_ADFS() local [all …]
|
D | ldm.c | 131 static bool ldm_parse_privhead(const u8 *data, struct privhead *ph) in ldm_parse_privhead() argument 135 BUG_ON(!data || !ph); in ldm_parse_privhead() 136 if (MAGIC_PRIVHEAD != get_unaligned_be64(data)) { in ldm_parse_privhead() 141 ph->ver_major = get_unaligned_be16(data + 0x000C); in ldm_parse_privhead() 142 ph->ver_minor = get_unaligned_be16(data + 0x000E); in ldm_parse_privhead() 143 ph->logical_disk_start = get_unaligned_be64(data + 0x011B); in ldm_parse_privhead() 144 ph->logical_disk_size = get_unaligned_be64(data + 0x0123); in ldm_parse_privhead() 145 ph->config_start = get_unaligned_be64(data + 0x012B); in ldm_parse_privhead() 146 ph->config_size = get_unaligned_be64(data + 0x0133); in ldm_parse_privhead() 168 if (!ldm_parse_guid(data + 0x0030, ph->disk_id)) { in ldm_parse_privhead() [all …]
|
D | amiga.c | 30 unsigned char *data; in amiga_partition() local 41 data = read_dev_sector(bdev, blk, §); in amiga_partition() 42 if (!data) { in amiga_partition() 49 if (*(__be32 *)data != cpu_to_be32(IDNAME_RIGIDDISK)) in amiga_partition() 52 rdb = (struct RigidDiskBlock *)data; in amiga_partition() 53 if (checksum_block((__be32 *)data, be32_to_cpu(rdb->rdb_SummedLongs) & 0x7F) == 0) in amiga_partition() 58 *(__be32 *)(data+0xdc) = 0; in amiga_partition() 59 if (checksum_block((__be32 *)data, in amiga_partition() 78 data = read_dev_sector(bdev, blk, §); in amiga_partition() 79 if (!data) { in amiga_partition() [all …]
|
/fs/hppfs/ |
D | hppfs.c | 252 struct hppfs_data *data; in hppfs_read() local 262 data = hppfs->contents; in hppfs_read() 264 while (off >= sizeof(data->contents)) { in hppfs_read() 265 data = list_entry(data->list.next, struct hppfs_data, in hppfs_read() 267 off -= sizeof(data->contents); in hppfs_read() 272 rem = copy_to_user(buf, &data->contents[off], count); in hppfs_read() 295 struct hppfs_private *data = file->private_data; in hppfs_write() local 296 struct file *proc_file = data->proc_file; in hppfs_write() 323 struct hppfs_data *data; in free_contents() local 330 data = list_entry(ele, struct hppfs_data, list); in free_contents() [all …]
|
/fs/hpfs/ |
D | buffer.c | 70 char *data; in hpfs_map_4sectors() local 79 qbh->data = data = kmalloc(2048, GFP_NOFS); in hpfs_map_4sectors() 80 if (!data) { in hpfs_map_4sectors() 88 memcpy(data, bh->b_data, 512); in hpfs_map_4sectors() 93 memcpy(data + 512, bh->b_data, 512); in hpfs_map_4sectors() 98 memcpy(data + 2 * 512, bh->b_data, 512); in hpfs_map_4sectors() 103 memcpy(data + 3 * 512, bh->b_data, 512); in hpfs_map_4sectors() 105 return data; in hpfs_map_4sectors() 114 kfree(data); in hpfs_map_4sectors() 133 if (!(qbh->data = kmalloc(2048, GFP_NOFS))) { in hpfs_get_4sectors() [all …]
|
/fs/ubifs/ |
D | find.c | 97 struct scan_data *data) in scan_for_dirty_cb() argument 108 if (lprops->free + lprops->dirty < data->min_space) in scan_for_dirty_cb() 111 if (data->exclude_index && lprops->flags & LPROPS_INDEX) in scan_for_dirty_cb() 115 if (!data->pick_free) in scan_for_dirty_cb() 121 data->lnum = lprops->lnum; in scan_for_dirty_cb() 142 struct scan_data data; in scan_for_dirty() local 177 data.min_space = min_space; in scan_for_dirty() 178 data.pick_free = pick_free; in scan_for_dirty() 179 data.lnum = -1; in scan_for_dirty() 180 data.exclude_index = exclude_index; in scan_for_dirty() [all …]
|
/fs/yaffs2/ |
D | yaffs_mtdif2.c | 35 const __u8 *data, in nandmtd2_WriteChunkWithTagsToNAND() argument 53 TENDSTR), chunkInNAND, data, tags)); in nandmtd2_WriteChunkWithTagsToNAND() 61 if (!data || !tags) in nandmtd2_WriteChunkWithTagsToNAND() 65 pt2tp = (yaffs_PackedTags2TagsPart *)(data + dev->nDataBytesPerChunk); in nandmtd2_WriteChunkWithTagsToNAND() 75 ops.datbuf = (__u8 *)data; in nandmtd2_WriteChunkWithTagsToNAND() 83 &dummy, data, (__u8 *) &pt, NULL); in nandmtd2_WriteChunkWithTagsToNAND() 87 data); in nandmtd2_WriteChunkWithTagsToNAND() 98 __u8 *data, yaffs_ExtendedTags *tags) in nandmtd2_ReadChunkWithTagsFromNAND() argument 115 TENDSTR), chunkInNAND, data, tags)); in nandmtd2_ReadChunkWithTagsFromNAND() 119 if (!data) { in nandmtd2_ReadChunkWithTagsFromNAND() [all …]
|
D | yaffs_mtdif.c | 75 const __u8 *data, const yaffs_Spare *spare) in nandmtd_WriteChunkToNAND() argument 88 if (data && !spare) in nandmtd_WriteChunkToNAND() 90 &dummy, data); in nandmtd_WriteChunkToNAND() 100 ops.len = data ? dev->nDataBytesPerChunk : ops.ooblen; in nandmtd_WriteChunkToNAND() 101 ops.datbuf = (u8 *)data; in nandmtd_WriteChunkToNAND() 109 if (data && spare) { in nandmtd_WriteChunkToNAND() 113 &dummy, data, spareAsBytes, in nandmtd_WriteChunkToNAND() 118 &dummy, data, spareAsBytes, in nandmtd_WriteChunkToNAND() 121 if (data) in nandmtd_WriteChunkToNAND() 124 data); in nandmtd_WriteChunkToNAND() [all …]
|
D | yaffs_tagscompat.c | 23 const __u8 *data, 58 void yaffs_CalcECC(const __u8 *data, yaffs_Spare *spare) in yaffs_CalcECC() argument 60 yaffs_ECCCalculate(data, spare->ecc1); in yaffs_CalcECC() 61 yaffs_ECCCalculate(&data[256], spare->ecc2); in yaffs_CalcECC() 163 int chunkInNAND, const __u8 *data, in yaffs_WriteChunkToNAND() argument 173 return dev->writeChunkToNAND(dev, chunkInNAND, data, spare); in yaffs_WriteChunkToNAND() 178 __u8 *data, in yaffs_ReadChunkFromNAND() argument 186 if (!spare && data) { in yaffs_ReadChunkFromNAND() 193 retVal = dev->readChunkFromNAND(dev, chunkInNAND, data, spare); in yaffs_ReadChunkFromNAND() 194 if (data && doErrorCorrection) { in yaffs_ReadChunkFromNAND() [all …]
|
/fs/ncpfs/ |
D | inode.c | 92 static int ncp_remount(struct super_block *sb, int *flags, char* data) in ncp_remount() argument 356 static int ncp_parse_options(struct ncp_mount_data_kernel *data, char *options) { in ncp_parse_options() argument 363 data->flags = 0; in ncp_parse_options() 364 data->int_flags = 0; in ncp_parse_options() 365 data->mounted_uid = 0; in ncp_parse_options() 366 data->wdog_pid = NULL; in ncp_parse_options() 367 data->ncp_fd = ~0; in ncp_parse_options() 368 data->time_out = NCP_DEFAULT_TIME_OUT; in ncp_parse_options() 369 data->retry_count = NCP_DEFAULT_RETRY_COUNT; in ncp_parse_options() 370 data->uid = 0; in ncp_parse_options() [all …]
|
D | ncpsign_kernel.c | 95 unsigned char data[64]; in __sign_packet() local 97 memcpy(data, server->sign_root, 8); in __sign_packet() 98 *(__u32*)(data + 8) = totalsize; in __sign_packet() 100 memcpy(data + 12, packet, size); in __sign_packet() 101 memset(data + 12 + size, 0, 52 - size); in __sign_packet() 103 memcpy(data + 12, packet, 52); in __sign_packet() 105 nwsign(server->sign_last, data, server->sign_last); in __sign_packet() 110 unsigned char data[64]; in sign_verify_reply() local 113 memcpy(data, server->sign_root, 8); in sign_verify_reply() 114 *(__u32*)(data + 8) = totalsize; in sign_verify_reply() [all …]
|
/fs/ocfs2/ |
D | blockcheck.c | 104 u32 ocfs2_hamming_encode(u32 parity, void *data, unsigned int d, unsigned int nr) in ocfs2_hamming_encode() argument 119 for (i = 0; (i = ocfs2_find_next_bit(data, d, i)) < d; i++) in ocfs2_hamming_encode() 151 u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize) in ocfs2_hamming_encode_block() argument 153 return ocfs2_hamming_encode(0, data, blocksize * 8, 0); in ocfs2_hamming_encode_block() 163 void ocfs2_hamming_fix(void *data, unsigned int d, unsigned int nr, in ocfs2_hamming_fix() argument 210 if (ocfs2_test_bit(i, data)) in ocfs2_hamming_fix() 211 ocfs2_clear_bit(i, data); in ocfs2_hamming_fix() 213 ocfs2_set_bit(i, data); in ocfs2_hamming_fix() 219 void ocfs2_hamming_fix_block(void *data, unsigned int blocksize, in ocfs2_hamming_fix_block() argument 222 ocfs2_hamming_fix(data, blocksize * 8, 0, fix); in ocfs2_hamming_fix_block() [all …]
|
/fs/debugfs/ |
D | file.c | 59 static int debugfs_u8_set(void *data, u64 val) in debugfs_u8_set() argument 61 *(u8 *)data = val; in debugfs_u8_set() 64 static int debugfs_u8_get(void *data, u64 *val) in debugfs_u8_get() argument 66 *val = *(u8 *)data; in debugfs_u8_get() 102 static int debugfs_u16_set(void *data, u64 val) in debugfs_u16_set() argument 104 *(u16 *)data = val; in debugfs_u16_set() 107 static int debugfs_u16_get(void *data, u64 *val) in debugfs_u16_get() argument 109 *val = *(u16 *)data; in debugfs_u16_get() 145 static int debugfs_u32_set(void *data, u64 val) in debugfs_u32_set() argument 147 *(u32 *)data = val; in debugfs_u32_set() [all …]
|
/fs/nfsd/ |
D | nfsctl.c | 124 char *data; in nfsctl_transaction_write() local 130 data = simple_transaction_get(file, buf, size); in nfsctl_transaction_write() 131 if (IS_ERR(data)) in nfsctl_transaction_write() 132 return PTR_ERR(data); in nfsctl_transaction_write() 134 rv = write_op[ino](file, data, size); in nfsctl_transaction_write() 198 struct nfsctl_svc *data; in write_svc() local 199 if (size < sizeof(*data)) in write_svc() 201 data = (struct nfsctl_svc*) buf; in write_svc() 202 return nfsd_svc(data->svc_port, data->svc_nthreads); in write_svc() 231 struct nfsctl_client *data; in write_add() local [all …]
|
/fs/xfs/linux-2.6/ |
D | xfs_sysctl.c | 34 int c, ret, *valp = ctl->data; in xfs_stats_clear_proc_handler() 61 .data = &xfs_params.sgid_inherit.val, 72 .data = &xfs_params.symlink_mode.val, 83 .data = &xfs_params.panic_mask.val, 95 .data = &xfs_params.error_level.val, 106 .data = &xfs_params.syncd_timer.val, 117 .data = &xfs_params.inherit_sync.val, 128 .data = &xfs_params.inherit_nodump.val, 139 .data = &xfs_params.inherit_noatim.val, 150 .data = &xfs_params.xfs_buf_timer.val, [all …]
|
/fs/befs/ |
D | datastream.c | 25 befs_data_stream * data, 29 befs_data_stream * data, 34 befs_data_stream * data, 92 befs_fblock2brun(struct super_block *sb, befs_data_stream * data, in befs_fblock2brun() argument 98 if (pos < data->max_direct_range) { in befs_fblock2brun() 99 err = befs_find_brun_direct(sb, data, fblock, run); in befs_fblock2brun() 101 } else if (pos < data->max_indirect_range) { in befs_fblock2brun() 102 err = befs_find_brun_indirect(sb, data, fblock, run); in befs_fblock2brun() 104 } else if (pos < data->max_double_indirect_range) { in befs_fblock2brun() 105 err = befs_find_brun_dblindirect(sb, data, fblock, run); in befs_fblock2brun() [all …]
|