/fs/ksmbd/ |
D | transport_rdma.c | 160 #define KSMBD_TRANS(t) ((struct ksmbd_transport *)&((t)->transport)) argument 197 struct smb_direct_transport *t; member 226 static int smb_direct_post_send_data(struct smb_direct_transport *t, 232 smb_trans_direct_transfort(struct ksmbd_transport *t) in smb_trans_direct_transfort() argument 234 return container_of(t, struct smb_direct_transport, transport); in smb_trans_direct_transfort() 251 smb_direct_recvmsg *get_free_recvmsg(struct smb_direct_transport *t) in get_free_recvmsg() argument 255 spin_lock(&t->recvmsg_queue_lock); in get_free_recvmsg() 256 if (!list_empty(&t->recvmsg_queue)) { in get_free_recvmsg() 257 recvmsg = list_first_entry(&t->recvmsg_queue, in get_free_recvmsg() 262 spin_unlock(&t->recvmsg_queue_lock); in get_free_recvmsg() [all …]
|
D | transport_tcp.c | 45 #define KSMBD_TRANS(t) (&(t)->transport) argument 46 #define TCP_TRANS(t) ((struct tcp_transport *)container_of(t, \ argument 76 struct tcp_transport *t; in alloc_transport() local 79 t = kzalloc(sizeof(*t), GFP_KERNEL); in alloc_transport() 80 if (!t) in alloc_transport() 82 t->sock = client_sk; in alloc_transport() 86 kfree(t); in alloc_transport() 90 conn->transport = KSMBD_TRANS(t); in alloc_transport() 91 KSMBD_TRANS(t)->conn = conn; in alloc_transport() 92 KSMBD_TRANS(t)->ops = &ksmbd_tcp_transport_ops; in alloc_transport() [all …]
|
D | connection.c | 97 struct ksmbd_conn *t; in ksmbd_conn_lookup_dialect() local 101 list_for_each_entry(t, &conn_list, conns_list) { in ksmbd_conn_lookup_dialect() 102 if (memcmp(t->ClientGUID, c->ClientGUID, SMB2_CLIENT_GUID_SIZE)) in ksmbd_conn_lookup_dialect() 275 struct ksmbd_transport *t = conn->transport; in ksmbd_conn_handler_loop() local 283 if (t->ops->prepare && t->ops->prepare(t)) in ksmbd_conn_handler_loop() 295 size = t->ops->read(t, hdr_buf, sizeof(hdr_buf), -1); in ksmbd_conn_handler_loop() 337 size = t->ops->read(t, conn->request_buf + 4, pdu_size, 2); in ksmbd_conn_handler_loop() 379 t->ops->disconnect(t); in ksmbd_conn_handler_loop() 414 struct ksmbd_transport *t; in stop_sessions() local 419 t = conn->transport; in stop_sessions() [all …]
|
D | connection.h | 117 int (*prepare)(struct ksmbd_transport *t); 118 void (*disconnect)(struct ksmbd_transport *t); 119 void (*shutdown)(struct ksmbd_transport *t); 120 int (*read)(struct ksmbd_transport *t, char *buf, 122 int (*writev)(struct ksmbd_transport *t, struct kvec *iovs, int niov, 125 int (*rdma_read)(struct ksmbd_transport *t, 129 int (*rdma_write)(struct ksmbd_transport *t,
|
D | misc.c | 346 s64 t = le64_to_cpu(ntutc) - NTFS_TIME_OFFSET; in ksmbd_NTtimeToUnix() local 354 if (t < 0) { in ksmbd_NTtimeToUnix() 355 abs_t = -t; in ksmbd_NTtimeToUnix() 360 abs_t = t; in ksmbd_NTtimeToUnix() 369 inline u64 ksmbd_UnixTimeToNT(struct timespec64 t) in ksmbd_UnixTimeToNT() argument 372 return (u64)t.tv_sec * 10000000 + t.tv_nsec / 100 + NTFS_TIME_OFFSET; in ksmbd_UnixTimeToNT()
|
/fs/ |
D | timerfd.c | 37 } t; member 79 t.tmr); in timerfd_tmrproc() 88 t.alarm); in timerfd_alarmproc() 184 remaining = alarm_expires_remaining(&ctx->t.alarm); in timerfd_get_remaining() 186 remaining = hrtimer_expires_remaining_adjusted(&ctx->t.tmr); in timerfd_get_remaining() 207 alarm_init(&ctx->t.alarm, in timerfd_setup() 212 hrtimer_init(&ctx->t.tmr, clockid, htmode); in timerfd_setup() 213 hrtimer_set_expires(&ctx->t.tmr, texp); in timerfd_setup() 214 ctx->t.tmr.function = timerfd_tmrproc; in timerfd_setup() 222 alarm_start(&ctx->t.alarm, texp); in timerfd_setup() [all …]
|
D | utimes.c | 236 struct old_utimbuf32 __user *, t) in SYSCALL_DEFINE2() 240 if (t) { in SYSCALL_DEFINE2() 241 if (get_user(tv[0].tv_sec, &t->actime) || in SYSCALL_DEFINE2() 242 get_user(tv[1].tv_sec, &t->modtime)) in SYSCALL_DEFINE2() 247 return do_utimes(AT_FDCWD, filename, t ? tv : NULL, 0); in SYSCALL_DEFINE2() 251 …2, unsigned int, dfd, const char __user *, filename, struct old_timespec32 __user *, t, int, flags) in SYSCALL_DEFINE4() argument 255 if (t) { in SYSCALL_DEFINE4() 256 if (get_old_timespec32(&tv[0], &t[0]) || in SYSCALL_DEFINE4() 257 get_old_timespec32(&tv[1], &t[1])) in SYSCALL_DEFINE4() 263 return do_utimes(dfd, filename, t ? tv : NULL, flags); in SYSCALL_DEFINE4() [all …]
|
D | binfmt_elf.c | 1745 static int fill_thread_core_info(struct elf_thread_core_info *t, in fill_thread_core_info() argument 1757 fill_prstatus(&t->prstatus.common, t->task, signr); in fill_thread_core_info() 1758 regset_get(t->task, &view->regsets[0], in fill_thread_core_info() 1759 sizeof(t->prstatus.pr_reg), &t->prstatus.pr_reg); in fill_thread_core_info() 1761 fill_note(&t->notes[0], "CORE", NT_PRSTATUS, in fill_thread_core_info() 1762 PRSTATUS_SIZE, &t->prstatus); in fill_thread_core_info() 1763 *total += notesize(&t->notes[0]); in fill_thread_core_info() 1765 do_thread_regset_writeback(t->task, &view->regsets[0]); in fill_thread_core_info() 1779 do_thread_regset_writeback(t->task, regset); in fill_thread_core_info() 1782 if (regset->active && regset->active(t->task, regset) <= 0) in fill_thread_core_info() [all …]
|
D | binfmt_elf_fdpic.c | 1385 struct elf_thread_status *t; in elf_dump_thread_status() local 1388 t = kzalloc(sizeof(struct elf_thread_status), GFP_KERNEL); in elf_dump_thread_status() 1389 if (!t) in elf_dump_thread_status() 1390 return t; in elf_dump_thread_status() 1392 fill_prstatus(&t->prstatus.common, p, signr); in elf_dump_thread_status() 1393 t->prstatus.pr_exec_fdpic_loadmap = p->mm->context.exec_fdpic_loadmap; in elf_dump_thread_status() 1394 t->prstatus.pr_interp_fdpic_loadmap = p->mm->context.interp_fdpic_loadmap; in elf_dump_thread_status() 1396 sizeof(t->prstatus.pr_reg), &t->prstatus.pr_reg); in elf_dump_thread_status() 1398 fill_note(&t->notes[0], "CORE", NT_PRSTATUS, sizeof(t->prstatus), in elf_dump_thread_status() 1399 &t->prstatus); in elf_dump_thread_status() [all …]
|
/fs/f2fs/ |
D | sysfs.c | 370 unsigned long t; in __sbi_store() local 447 ret = kstrtoul(skip_spaces(buf), 0, &t); in __sbi_store() 451 if (a->struct_type == FAULT_INFO_TYPE && t >= BIT(FAULT_MAX)) in __sbi_store() 453 if (a->struct_type == FAULT_INFO_RATE && t >= UINT_MAX) in __sbi_store() 458 if (t > (unsigned long)(sbi->user_block_count - in __sbi_store() 465 *ui = t; in __sbi_store() 473 if (t > MAX_PLIST_NUM) in __sbi_store() 477 if (t == *ui) in __sbi_store() 479 *ui = t; in __sbi_store() 484 if (t == 0 || t > MAX_PLIST_NUM) in __sbi_store() [all …]
|
D | segment.h | 25 #define IS_DATASEG(t) ((t) <= CURSEG_COLD_DATA) argument 26 #define IS_NODESEG(t) ((t) >= CURSEG_HOT_NODE && (t) <= CURSEG_COLD_NODE) argument 35 #define IS_HOT(t) ((t) == CURSEG_HOT_NODE || (t) == CURSEG_HOT_DATA) argument 36 #define IS_WARM(t) ((t) == CURSEG_WARM_NODE || (t) == CURSEG_WARM_DATA) argument 37 #define IS_COLD(t) ((t) == CURSEG_COLD_NODE || (t) == CURSEG_COLD_DATA) argument
|
/fs/nls/ |
D | nls_base.c | 59 const struct utf8_table *t; in utf8_to_utf32() local 64 for (t = utf8_table; t->cmask; t++) { in utf8_to_utf32() 66 if ((c0 & t->cmask) == t->cval) { in utf8_to_utf32() 67 l &= t->lmask; in utf8_to_utf32() 68 if (l < t->lval || l > UNICODE_MAX || in utf8_to_utf32() 90 const struct utf8_table *t; in utf32_to_utf8() local 100 for (t = utf8_table; t->cmask && maxout; t++, maxout--) { in utf32_to_utf8() 102 if (l <= t->lmask) { in utf32_to_utf8() 103 c = t->shift; in utf32_to_utf8() 104 *s = (u8) (t->cval | (l >> c)); in utf32_to_utf8()
|
/fs/cifs/ |
D | dfs_cache.c | 230 struct cache_dfs_tgt *t, *n; in free_tgts() local 232 list_for_each_entry_safe(t, n, &ce->tlist, list) { in free_tgts() 233 list_del(&t->list); in free_tgts() 234 kfree(t->name); in free_tgts() 235 kfree(t); in free_tgts() 271 struct cache_dfs_tgt *t; in dfscache_proc_show() local 290 list_for_each_entry(t, &ce->tlist, list) { in dfscache_proc_show() 292 t->name, in dfscache_proc_show() 293 ce->tgthint == t ? " (target hint)" : ""); in dfscache_proc_show() 340 struct cache_dfs_tgt *t; in dump_tgts() local [all …]
|
/fs/adfs/ |
D | dir_fplus.c | 60 const struct adfs_bigdirtail *t) in adfs_fplus_validate_tail() argument 62 if (t->bigdirendname != cpu_to_le32(BIGDIRENDNAME) || in adfs_fplus_validate_tail() 63 t->bigdirendmasseq != h->startmasseq || in adfs_fplus_validate_tail() 64 t->reserved[0] != 0 || t->reserved[1] != 0) in adfs_fplus_validate_tail() 73 struct adfs_bigdirtail *t = dir->bigtail; in adfs_fplus_checkbyte() local 95 dircheck = ror32(dircheck, 13) ^ le32_to_cpu(t->bigdirendname); in adfs_fplus_checkbyte() 96 dircheck = ror32(dircheck, 13) ^ t->bigdirendmasseq; in adfs_fplus_checkbyte() 97 dircheck = ror32(dircheck, 13) ^ t->reserved[0]; in adfs_fplus_checkbyte() 98 dircheck = ror32(dircheck, 13) ^ t->reserved[1]; in adfs_fplus_checkbyte() 107 struct adfs_bigdirtail *t; in adfs_fplus_read() local [all …]
|
/fs/fscache/ |
D | object.c | 168 const struct fscache_transition *t; in fscache_object_sm_dispatcher() local 191 for (t = object->oob_table; t->events; t++) { in fscache_object_sm_dispatcher() 192 if (events & t->events) { in fscache_object_sm_dispatcher() 193 state = t->transit_to; in fscache_object_sm_dispatcher() 195 event = fls(events & t->events) - 1; in fscache_object_sm_dispatcher() 207 for (t = state->transitions; t->events; t++) { in fscache_object_sm_dispatcher() 208 if (events & t->events) { in fscache_object_sm_dispatcher() 209 new_state = t->transit_to; in fscache_object_sm_dispatcher() 210 event = fls(events & t->events) - 1; in fscache_object_sm_dispatcher() 260 for (t = state->transitions; t->events; t++) in fscache_object_sm_dispatcher() [all …]
|
/fs/erofs/ |
D | zpvec.h | 59 const erofs_vtptr_t t = ctor->pages[index]; in z_erofs_pagevec_ctor_next_page() local 60 const unsigned int tags = tagptr_unfold_tags(t); in z_erofs_pagevec_ctor_next_page() 63 return tagptr_unfold_ptr(t); in z_erofs_pagevec_ctor_next_page() 141 erofs_vtptr_t t; in z_erofs_pagevec_dequeue() local 148 t = ctor->pages[ctor->index]; in z_erofs_pagevec_dequeue() 150 *type = tagptr_unfold_tags(t); in z_erofs_pagevec_dequeue() 154 ctor->next = tagptr_unfold_ptr(t); in z_erofs_pagevec_dequeue() 157 return tagptr_unfold_ptr(t); in z_erofs_pagevec_dequeue()
|
D | sysfs.c | 121 unsigned long t; in erofs_attr_store() local 128 ret = kstrtoul(skip_spaces(buf), 0, &t); in erofs_attr_store() 131 if (t != (unsigned int)t) in erofs_attr_store() 133 *(unsigned int *)ptr = t; in erofs_attr_store() 138 ret = kstrtoul(skip_spaces(buf), 0, &t); in erofs_attr_store() 141 if (t != 0 && t != 1) in erofs_attr_store() 143 *(bool *)ptr = !!t; in erofs_attr_store()
|
/fs/xfs/ |
D | xfs_rtalloc.h | 138 # define xfs_rtallocate_extent(t,b,min,max,l,f,p,rb) (ENOSYS) argument 139 # define xfs_rtfree_extent(t,b,l) (ENOSYS) argument 140 # define xfs_rtpick_extent(m,t,l,rb) (ENOSYS) argument 142 # define xfs_rtalloc_query_range(t,l,h,f,p) (ENOSYS) argument 143 # define xfs_rtalloc_query_all(t,f,p) (ENOSYS) argument 144 # define xfs_rtbuf_get(m,t,b,i,p) (ENOSYS) argument 146 # define xfs_rtalloc_extent_is_free(m,t,s,l,i) (ENOSYS) argument
|
/fs/exfat/ |
D | misc.c | 80 u16 t = le16_to_cpu(time); in exfat_get_entry_time() local 84 t >> 11, (t >> 5) & 0x003F, (t & 0x001F) << 1); in exfat_get_entry_time() 107 u16 t, d; in exfat_set_entry_time() local 110 t = (tm.tm_hour << 11) | (tm.tm_min << 5) | (tm.tm_sec >> 1); in exfat_set_entry_time() 113 *time = cpu_to_le16(t); in exfat_set_entry_time()
|
/fs/affs/ |
D | Changes | 4 then, 3.1 doesn't mean 'perfectly stable', too.) 9 - Doesn't work on the alpha. The only 64/32-bit 17 doesn't work with devices which have 256 byte 124 systems, since you can't run programs on them. 132 Didn't release all resources in case of an 171 - getblock() didn't update the lastblock field in the 189 the bitmap was changed, so the bitmap wasn't sync'd. 192 zone number was zero, the loop didn't terminate, 198 the pointer to the next entry in the hash chain wasn't 200 affs use it on a 68k, they didn't notice. But why did [all …]
|
/fs/xfs/libxfs/ |
D | xfs_dquot_buf.c | 305 uint32_t t = be32_to_cpu(dtimer); in xfs_dquot_from_disk_ts() local 307 if (t != 0 && (ddq->d_type & XFS_DQTYPE_BIGTIME)) in xfs_dquot_from_disk_ts() 308 return xfs_dq_bigtime_to_unix(t); in xfs_dquot_from_disk_ts() 310 return t; in xfs_dquot_from_disk_ts() 319 uint32_t t = timer; in xfs_dquot_to_disk_ts() local 322 t = xfs_dq_unix_to_bigtime(timer); in xfs_dquot_to_disk_ts() 324 return cpu_to_be32(t); in xfs_dquot_to_disk_ts()
|
/fs/afs/ |
D | write.c | 38 unsigned t, to; in afs_write_begin() local 65 t = afs_page_dirty_to(page, priv); in afs_write_begin() 66 ASSERTCMP(f, <=, t); in afs_write_begin() 77 (to < f || from > t)) in afs_write_begin() 115 unsigned int t, to = from + copied; in afs_write_end() local 147 t = afs_page_dirty_to(page, priv); in afs_write_end() 150 if (to > t) in afs_write_end() 151 t = to; in afs_write_end() 152 priv = afs_page_dirty(page, f, t); in afs_write_end() 443 unsigned int f, t; in afs_extend_writeback() local [all …]
|
/fs/configfs/ |
D | item.c | 119 const struct config_item_type *t = item->ci_type; in config_item_cleanup() local 127 if (t && t->ct_item_ops && t->ct_item_ops->release) in config_item_cleanup() 128 t->ct_item_ops->release(item); in config_item_cleanup()
|
/fs/ext4/ |
D | sysfs.c | 84 unsigned long t; in inode_readahead_blks_store() local 87 ret = kstrtoul(skip_spaces(buf), 0, &t); in inode_readahead_blks_store() 91 if (t && (!is_power_of_2(t) || t > 0x40000000)) in inode_readahead_blks_store() 94 sbi->s_inode_readahead_blks = t; in inode_readahead_blks_store() 452 unsigned long t; in ext4_attr_store() local 461 ret = kstrtoul(skip_spaces(buf), 0, &t); in ext4_attr_store() 465 *((__le32 *) ptr) = cpu_to_le32(t); in ext4_attr_store() 467 *((unsigned int *) ptr) = t; in ext4_attr_store() 472 ret = kstrtoul(skip_spaces(buf), 0, &t); in ext4_attr_store() 475 *((unsigned long *) ptr) = t; in ext4_attr_store()
|
/fs/ntfs/ |
D | time.h | 79 u64 t = (u64)(sle64_to_cpu(time) - NTFS_TIME_OFFSET); in ntfs2utc() local 84 ts.tv_nsec = do_div(t, 10000000) * 100; in ntfs2utc() 85 ts.tv_sec = t; in ntfs2utc()
|