Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 169) sorted by relevance

1234567

/fs/ksmbd/mgmt/
Duser_session.c26 int id; member
48 resp = ksmbd_rpc_close(sess, entry->id); in __session_rpc_close()
50 pr_err("Unable to close RPC pipe %d\n", entry->id); in __session_rpc_close()
53 ksmbd_rpc_id_free(entry->id); in __session_rpc_close()
106 entry->id = ksmbd_ipc_id_alloc(); in ksmbd_session_rpc_open()
107 if (entry->id < 0) in ksmbd_session_rpc_open()
109 xa_store(&sess->rpc_handle_list, entry->id, entry, GFP_KERNEL); in ksmbd_session_rpc_open()
111 resp = ksmbd_rpc_open(sess, entry->id); in ksmbd_session_rpc_open()
116 return entry->id; in ksmbd_session_rpc_open()
118 xa_erase(&sess->rpc_handle_list, entry->id); in ksmbd_session_rpc_open()
[all …]
Dksmbd_ida.c15 int id; in ksmbd_acquire_smb2_tid() local
17 id = __acquire_id(ida, 1, 0xFFFFFFFF); in ksmbd_acquire_smb2_tid()
19 return id; in ksmbd_acquire_smb2_tid()
24 int id; in ksmbd_acquire_smb2_uid() local
26 id = __acquire_id(ida, 1, 0); in ksmbd_acquire_smb2_uid()
27 if (id == 0xFFFE) in ksmbd_acquire_smb2_uid()
28 id = __acquire_id(ida, 1, 0); in ksmbd_acquire_smb2_uid()
30 return id; in ksmbd_acquire_smb2_uid()
43 void ksmbd_release_id(struct ida *ida, int id) in ksmbd_release_id() argument
45 ida_simple_remove(ida, id); in ksmbd_release_id()
Dtree_connect.c39 tree_conn->id = ksmbd_acquire_tree_conn_id(sess); in ksmbd_tree_conn_connect()
40 if (tree_conn->id < 0) { in ksmbd_tree_conn_connect()
81 ret = xa_err(xa_store(&sess->tree_conns, tree_conn->id, tree_conn, in ksmbd_tree_conn_connect()
92 ksmbd_release_tree_conn_id(sess, tree_conn->id); in ksmbd_tree_conn_connect()
117 xa_erase(&sess->tree_conns, tree_conn->id); in ksmbd_tree_conn_disconnect()
124 ret = ksmbd_ipc_tree_disconnect_request(sess->id, tree_conn->id); in ksmbd_tree_conn_disconnect()
125 ksmbd_release_tree_conn_id(sess, tree_conn->id); in ksmbd_tree_conn_disconnect()
132 unsigned int id) in ksmbd_tree_conn_lookup() argument
137 tcon = xa_load(&sess->tree_conns, id); in ksmbd_tree_conn_lookup()
153 unsigned long id; in ksmbd_tree_conn_session_logoff() local
[all …]
Duser_session.h28 u64 id; member
33 u64 id; member
85 struct ksmbd_session *ksmbd_session_lookup_slowpath(unsigned long long id);
87 unsigned long long id);
92 unsigned long long id);
96 unsigned long long id);
99 void ksmbd_release_tree_conn_id(struct ksmbd_session *sess, int id);
102 void ksmbd_session_rpc_close(struct ksmbd_session *sess, int id);
103 int ksmbd_session_rpc_method(struct ksmbd_session *sess, int id);
/fs/xfs/libxfs/
Dxfs_ag.c322 static inline bool is_log_ag(struct xfs_mount *mp, struct aghdr_init_data *id) in is_log_ag() argument
325 id->agno == XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart); in is_log_ag()
335 struct aghdr_init_data *id) in xfs_btroot_init() argument
337 xfs_btree_init_block(mp, bp, id->type, 0, 0, id->agno); in xfs_btroot_init()
345 struct aghdr_init_data *id) in xfs_freesp_init_recs() argument
353 if (is_log_ag(mp, id)) { in xfs_freesp_init_recs()
389 arec->ar_blockcount = cpu_to_be32(id->agsize - in xfs_freesp_init_recs()
402 struct aghdr_init_data *id) in xfs_bnoroot_init() argument
404 xfs_btree_init_block(mp, bp, XFS_BTNUM_BNO, 0, 1, id->agno); in xfs_bnoroot_init()
405 xfs_freesp_init_recs(mp, bp, id); in xfs_bnoroot_init()
[all …]
Dxfs_dquot_buf.c40 xfs_dqid_t id) /* used only during quotacheck */ in xfs_dquot_verify() argument
79 if (id != -1 && id != be32_to_cpu(ddq->d_id)) in xfs_dquot_verify()
107 xfs_dqid_t id) /* used only during quotacheck */ in xfs_dqblk_verify() argument
113 return xfs_dquot_verify(mp, &dqb->dd_diskdq, id); in xfs_dqblk_verify()
123 xfs_dqid_t id, in xfs_dqblk_repair() argument
129 ASSERT(id != -1); in xfs_dqblk_repair()
135 dqb->dd_diskdq.d_id = cpu_to_be32(id); in xfs_dqblk_repair()
187 xfs_dqid_t id = 0; in xfs_dquot_buf_verify() local
214 id = be32_to_cpu(ddq->d_id); in xfs_dquot_buf_verify()
216 fa = xfs_dqblk_verify(mp, &dqb[i], id + i); in xfs_dquot_buf_verify()
/fs/ksmbd/
Dcrypto_ctx.c39 static struct crypto_aead *alloc_aead(int id) in alloc_aead() argument
43 switch (id) { in alloc_aead()
51 pr_err("Does not support encrypt ahead(id : %d)\n", id); in alloc_aead()
63 static struct shash_desc *alloc_shash_desc(int id) in alloc_shash_desc() argument
68 switch (id) { in alloc_shash_desc()
168 static struct ksmbd_crypto_ctx *____crypto_shash_ctx_find(int id) in ____crypto_shash_ctx_find() argument
172 if (id >= CRYPTO_SHASH_MAX) in ____crypto_shash_ctx_find()
176 if (ctx->desc[id]) in ____crypto_shash_ctx_find()
179 ctx->desc[id] = alloc_shash_desc(id); in ____crypto_shash_ctx_find()
180 if (ctx->desc[id]) in ____crypto_shash_ctx_find()
[all …]
Dvfs_cache.c345 u64 id) in __ksmbd_lookup_fd() argument
349 if (!has_file_id(id)) in __ksmbd_lookup_fd()
353 fp = idr_find(ft->idr, id); in __ksmbd_lookup_fd()
379 int ksmbd_close_fd(struct ksmbd_work *work, u64 id) in ksmbd_close_fd() argument
384 if (!has_file_id(id)) in ksmbd_close_fd()
389 fp = idr_find(ft->idr, id); in ksmbd_close_fd()
429 struct ksmbd_file *ksmbd_lookup_foreign_fd(struct ksmbd_work *work, u64 id) in ksmbd_lookup_foreign_fd() argument
431 return __ksmbd_lookup_fd(&work->sess->file_table, id); in ksmbd_lookup_foreign_fd()
434 struct ksmbd_file *ksmbd_lookup_fd_fast(struct ksmbd_work *work, u64 id) in ksmbd_lookup_fd_fast() argument
436 struct ksmbd_file *fp = __ksmbd_lookup_fd(&work->sess->file_table, id); in ksmbd_lookup_fd_fast()
[all …]
Dvfs_cache.h124 static inline bool has_file_id(u64 id) in has_file_id() argument
126 return id < KSMBD_NO_FID; in has_file_id()
136 int ksmbd_close_fd(struct ksmbd_work *work, u64 id);
137 struct ksmbd_file *ksmbd_lookup_fd_fast(struct ksmbd_work *work, u64 id);
138 struct ksmbd_file *ksmbd_lookup_foreign_fd(struct ksmbd_work *work, u64 id);
139 struct ksmbd_file *ksmbd_lookup_fd_slow(struct ksmbd_work *work, u64 id,
144 struct ksmbd_file *ksmbd_lookup_durable_fd(unsigned long long id);
/fs/nfsd/
Dnfs4idmap.c65 u32 id; member
82 new->id = itm->id; in ent_init()
116 hash = hash_long(hash ^ ent->id, ENT_HASHBITS); in idtoname_hash()
139 snprintf(idstr, sizeof(idstr), "%u", ent->id); in idtoname_request()
152 return (a->id == b->id && a->type == b->type && in idtoname_match()
168 ent->id); in idtoname_show()
237 ent.id = simple_strtoul(buf1, &bp, 10); in idtoname_parse()
348 seq_printf(m, " %u", ent->id); in nametoid_show()
415 error = get_int(&buf, &ent.id); in nametoid_parse()
539 u32 *id) in idmap_name_to_id() argument
[all …]
/fs/nfs/
Dpnfs_dev.c54 nfs4_print_deviceid(const struct nfs4_deviceid *id) in nfs4_print_deviceid() argument
56 u32 *p = (u32 *)id; in nfs4_print_deviceid()
65 nfs4_deviceid_hash(const struct nfs4_deviceid *id) in nfs4_deviceid_hash() argument
67 unsigned char *cptr = (unsigned char *)id->data; in nfs4_deviceid_hash()
80 const struct nfs_client *clp, const struct nfs4_deviceid *id, in _lookup_deviceid() argument
87 !memcmp(&d->deviceid, id, sizeof(*id))) { in _lookup_deviceid()
135 pdev->layout_type = server->pnfs_curr_ld->id; in nfs4_get_device_info()
174 const struct nfs4_deviceid *id, long hash) in __nfs4_find_get_deviceid() argument
179 d = _lookup_deviceid(server->pnfs_curr_ld, server->nfs_client, id, in __nfs4_find_get_deviceid()
189 const struct nfs4_deviceid *id, const struct cred *cred, in nfs4_find_get_deviceid() argument
[all …]
Dnfs4idmap.c181 static int nfs_map_numeric_to_string(__u32 id, char *buf, size_t buflen) in nfs_map_numeric_to_string() argument
183 return snprintf(buf, buflen, "%u", id); in nfs_map_numeric_to_string()
350 static ssize_t nfs_idmap_lookup_name(__u32 id, const char *type, char *buf, in nfs_idmap_lookup_name() argument
357 id_len = nfs_map_numeric_to_string(id, id_str, sizeof(id_str)); in nfs_idmap_lookup_name()
366 __u32 *id, struct idmap *idmap) in nfs_idmap_lookup_id() argument
379 *id = (__u32)id_long; in nfs_idmap_lookup_id()
748 __u32 id = -1; in nfs_map_name_to_uid() local
751 if (!nfs_map_string_to_numeric(name, namelen, &id)) in nfs_map_name_to_uid()
752 ret = nfs_idmap_lookup_id(name, namelen, "uid", &id, idmap); in nfs_map_name_to_uid()
754 *uid = make_kuid(idmap_userns(idmap), id); in nfs_map_name_to_uid()
[all …]
/fs/btrfs/
Dlocking.c58 u64 id; /* root objectid */ member
63 { .id = BTRFS_ROOT_TREE_OBJECTID, DEFINE_NAME("root") },
64 { .id = BTRFS_EXTENT_TREE_OBJECTID, DEFINE_NAME("extent") },
65 { .id = BTRFS_CHUNK_TREE_OBJECTID, DEFINE_NAME("chunk") },
66 { .id = BTRFS_DEV_TREE_OBJECTID, DEFINE_NAME("dev") },
67 { .id = BTRFS_CSUM_TREE_OBJECTID, DEFINE_NAME("csum") },
68 { .id = BTRFS_QUOTA_TREE_OBJECTID, DEFINE_NAME("quota") },
69 { .id = BTRFS_TREE_LOG_OBJECTID, DEFINE_NAME("log") },
70 { .id = BTRFS_TREE_RELOC_OBJECTID, DEFINE_NAME("treloc") },
71 { .id = BTRFS_DATA_RELOC_TREE_OBJECTID, DEFINE_NAME("dreloc") },
[all …]
/fs/
Dbinfmt_flat.c96 static int load_flat_shared_library(int id, struct lib_info *p);
328 int id; in calc_reloc() local
336 id = curid; /* Relocs of 0 are always self referring */ in calc_reloc()
338 id = (r >> 24) & 0xff; /* Find ID for this reloc */ in calc_reloc()
341 if (id >= MAX_SHARED_LIBS) { in calc_reloc()
342 pr_err("reference 0x%lx to shared library %d", r, id); in calc_reloc()
345 if (curid != id) { in calc_reloc()
348 "(%d != %d)", r, curid, id); in calc_reloc()
350 } else if (!p->lib_list[id].loaded && in calc_reloc()
351 load_flat_shared_library(id, p) < 0) { in calc_reloc()
[all …]
Dkernel_read_file.c37 enum kernel_read_file_id id) in kernel_read_file() argument
72 ret = security_kernel_read_file(file, id, whole_file); in kernel_read_file()
110 ret = security_kernel_post_read_file(file, *buf, i_size, id); in kernel_read_file()
129 enum kernel_read_file_id id) in kernel_read_file_from_path() argument
141 ret = kernel_read_file(file, offset, buf, buf_size, file_size, id); in kernel_read_file_from_path()
150 enum kernel_read_file_id id) in kernel_read_file_from_path_initns() argument
168 ret = kernel_read_file(file, offset, buf, buf_size, file_size, id); in kernel_read_file_from_path_initns()
176 enum kernel_read_file_id id) in kernel_read_file_from_fd() argument
184 ret = kernel_read_file(f.file, offset, buf, buf_size, file_size, id); in kernel_read_file_from_fd()
/fs/xfs/
Dxfs_fsops.c39 struct aghdr_init_data *id, in xfs_resizefs_init_new_ags() argument
51 INIT_LIST_HEAD(&id->buffer_list); in xfs_resizefs_init_new_ags()
52 for (id->agno = nagcount - 1; in xfs_resizefs_init_new_ags()
53 id->agno >= oagcount; in xfs_resizefs_init_new_ags()
54 id->agno--, delta -= id->agsize) { in xfs_resizefs_init_new_ags()
56 if (id->agno == nagcount - 1) in xfs_resizefs_init_new_ags()
57 id->agsize = nb - (id->agno * in xfs_resizefs_init_new_ags()
60 id->agsize = mp->m_sb.sb_agblocks; in xfs_resizefs_init_new_ags()
62 error = xfs_ag_init_headers(mp, id); in xfs_resizefs_init_new_ags()
64 xfs_buf_delwri_cancel(&id->buffer_list); in xfs_resizefs_init_new_ags()
[all …]
Dxfs_dquot.c182 xfs_dqid_t id, in xfs_qm_init_dquot_blk() argument
219 curid = id - (id % q->qi_dqperchunk); in xfs_qm_init_dquot_blk()
456 xfs_dqid_t id, in xfs_dquot_alloc() argument
464 dqp->q_id = id; in xfs_dquot_alloc()
469 dqp->q_fileoffset = (xfs_fileoff_t)id / mp->m_quotainfo->qi_dqperchunk; in xfs_dquot_alloc()
473 dqp->q_bufoffset = (id % mp->m_quotainfo->qi_dqperchunk) * in xfs_dquot_alloc()
677 xfs_dqid_t id, in xfs_qm_dqread() argument
686 dqp = xfs_dquot_alloc(mp, id, type); in xfs_qm_dqread()
727 xfs_dqid_t *id) in xfs_dq_get_next_id() argument
730 xfs_dqid_t next_id = *id + 1; /* simple advance */ in xfs_dq_get_next_id()
[all …]
Dxfs_qm_syscalls.c287 xfs_dqid_t id, in xfs_qm_scall_setqlim() argument
319 error = xfs_qm_dqget(mp, id, type, true, &dqp); in xfs_qm_scall_setqlim()
360 qlim = id == 0 ? &defq->blk : NULL; in xfs_qm_scall_setqlim()
377 qlim = id == 0 ? &defq->rtb : NULL; in xfs_qm_scall_setqlim()
393 qlim = id == 0 ? &defq->ino : NULL; in xfs_qm_scall_setqlim()
401 if (id != 0) { in xfs_qm_scall_setqlim()
477 xfs_dqid_t id, in xfs_qm_scall_getquota() argument
488 if (id == 0) in xfs_qm_scall_getquota()
495 error = xfs_qm_dqget(mp, id, type, false, &dqp); in xfs_qm_scall_getquota()
522 xfs_dqid_t *id, in xfs_qm_scall_getquota_next() argument
[all …]
/fs/cifs/
Dsmbdirect.c165 rdma_disconnect(info->id); in smbd_disconnect_rdma_work()
176 struct rdma_cm_id *id, struct rdma_cm_event *event) in smbd_conn_upcall() argument
178 struct smbd_connection *info = id->context; in smbd_conn_upcall()
283 ib_dma_unmap_single(request->info->id->device, in send_done()
547 struct rdma_cm_id *id; in smbd_create_id() local
551 id = rdma_create_id(&init_net, smbd_conn_upcall, info, in smbd_create_id()
553 if (IS_ERR(id)) { in smbd_create_id()
554 rc = PTR_ERR(id); in smbd_create_id()
556 return id; in smbd_create_id()
569 rc = rdma_resolve_addr(id, NULL, (struct sockaddr *)dstaddr, in smbd_create_id()
[all …]
Dcifs_swn.c23 int id; member
96 ret = nla_put_u32(skb, CIFS_GENL_ATTR_SWN_REGISTRATION_ID, swnreg->id); in cifs_swn_send_register_message()
168 swnreg->net_name, swnreg->id); in cifs_swn_send_register_message()
198 ret = nla_put_u32(skb, CIFS_GENL_ATTR_SWN_REGISTRATION_ID, swnreg->id); in cifs_swn_send_unregister_message()
237 swnreg->net_name, swnreg->id); in cifs_swn_send_unregister_message()
255 int id; in cifs_find_swn_reg() local
280 idr_for_each_entry(&cifs_swnreg_idr, swnreg, id) { in cifs_find_swn_reg()
331 reg->id = idr_alloc(&cifs_swnreg_idr, reg, 1, 0, GFP_ATOMIC); in cifs_get_swn_reg()
332 if (reg->id < 0) { in cifs_get_swn_reg()
334 ret = reg->id; in cifs_get_swn_reg()
[all …]
/fs/quota/
Dquota.c27 qid_t id) in check_quotactl_permission() argument
41 if ((type == USRQUOTA && uid_eq(current_euid(), make_kuid(current_user_ns(), id))) || in check_quotactl_permission()
42 (type == GRPQUOTA && in_egroup_p(make_kgid(current_user_ns(), id)))) in check_quotactl_permission()
50 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission()
85 static int quota_quotaon(struct super_block *sb, int type, qid_t id, in quota_quotaon() argument
94 return sb->s_qcop->quota_on(sb, type, id, path); in quota_quotaon()
200 static int quota_getquota(struct super_block *sb, int type, qid_t id, in quota_getquota() argument
210 qid = make_kqid(current_user_ns(), type, id); in quota_getquota()
236 static int quota_getnextquota(struct super_block *sb, int type, qid_t id, in quota_getnextquota() argument
246 qid = make_kqid(current_user_ns(), type, id); in quota_getnextquota()
[all …]
/fs/reiserfs/
Dprints.c285 void __reiserfs_warning(struct super_block *sb, const char *id, in __reiserfs_warning() argument
291 "%s\n", sb->s_id, id ? id : "", id ? " " : "", in __reiserfs_warning()
295 id ? id : "", id ? " " : "", function, error_buf); in __reiserfs_warning()
375 void __reiserfs_panic(struct super_block *sb, const char *id, in __reiserfs_panic() argument
385 sb->s_id, id ? id : "", id ? " " : "", in __reiserfs_panic()
389 id ? id : "", id ? " " : "", function, error_buf); in __reiserfs_panic()
393 void __reiserfs_error(struct super_block *sb, const char *id, in __reiserfs_error() argument
401 __reiserfs_panic(sb, id, function, error_buf); in __reiserfs_error()
403 if (id && id[0]) in __reiserfs_error()
405 sb->s_id, id, function, error_buf); in __reiserfs_error()
/fs/squashfs/
Dxattr_id.c35 struct squashfs_xattr_id id; in squashfs_xattr_lookup() local
43 err = squashfs_read_metadata(sb, &id, &start_block, &offset, in squashfs_xattr_lookup()
44 sizeof(id)); in squashfs_xattr_lookup()
48 *xattr = le64_to_cpu(id.xattr); in squashfs_xattr_lookup()
49 *size = le32_to_cpu(id.size); in squashfs_xattr_lookup()
50 *count = le32_to_cpu(id.count); in squashfs_xattr_lookup()
/fs/notify/dnotify/
Ddnotify.c135 void dnotify_flush(struct file *filp, fl_owner_t id) in dnotify_flush() argument
158 if ((dn->dn_owner == id) && (dn->dn_filp == filp)) { in dnotify_flush()
213 fl_owner_t id, int fd, struct file *filp, __u32 mask) in attach_dn() argument
220 if ((odn->dn_owner == id) && (odn->dn_filp == filp)) { in attach_dn()
231 dn->dn_owner = id; in attach_dn()
249 fl_owner_t id = current->files; in fcntl_dirnotify() local
265 dnotify_flush(filp, id); in fcntl_dirnotify()
353 error = attach_dn(dn, dn_mark, id, fd, filp, mask); in fcntl_dirnotify()
/fs/ntfs3/
Drecord.c39 __le16 id; in mi_new_attt_id() local
41 id = rec->next_attr_id; in mi_new_attt_id()
42 free_id = le16_to_cpu(id); in mi_new_attt_id()
45 return id; in mi_new_attt_id()
62 t16 = le16_to_cpu(attr->id); in mi_new_attt_id()
301 size_t name_len, const __le16 *id) in mi_find_attr() argument
324 if (id && *id != attr->id) in mi_find_attr()
441 __le16 id; in mi_insert_attr() local
476 id = mi_new_attt_id(mi); in mi_insert_attr()
485 attr->id = id; in mi_insert_attr()

1234567