ut
ld \out, [\tsk, TASK_THREAD_INFO]
add2 \out, \out, (THREAD_SIZE)/4
int ut;
ut = t.udma ? (0xe0 | (clamp_val(t.udma, 2, 5) - 2)) : 0x03;
ut = t.udma ? (0xe8 | (clamp_val(t.udma, 2, 9) - 2)) : 0x0f;
ut = t.udma ? (0xe0 | (clamp_val(t.udma, 2, 9) - 2)) : 0x07;
ut = t.udma ? (0xe0 | (clamp_val(t.udma, 2, 9) - 2)) : 0x07;
udma_etc |= ut;
const struct wmi_unit_test_arg *ut)
arg_len = sizeof(*ut_cmd_args) * ut->num_args;
cmd->vdev_id = cpu_to_le32(ut->vdev_id);
cmd->module_id = cpu_to_le32(ut->module_id);
cmd->num_args = cpu_to_le32(ut->num_args);
cmd->diag_token = cpu_to_le32(ut->diag_token);
for (i = 0; i < ut->num_args; i++)
ut_cmd_args[i] = cpu_to_le32(ut->args[i]);
ut->module_id, ut->vdev_id, ut->num_args, ut->diag_token);
strcpy(vidstr, ut);
static const char *ut = "untagged";
time64_t ut = (u32)(be32_to_cpu(mt) - HFS_UTC_OFFSET);
return ut + sys_tz.tz_minuteswest * 60;
static inline __be32 __hfs_u_to_mtime(time64_t ut)
ut -= sys_tz.tz_minuteswest * 60;
return cpu_to_be32(lower_32_bits(ut) + HFS_UTC_OFFSET);
time64_t ut = (u32)(be32_to_cpu(mt) - HFSPLUS_UTC_OFFSET);
return ut;
static inline __be32 __hfsp_ut2mt(time64_t ut)
return cpu_to_be32(lower_32_bits(ut) + HFSPLUS_UTC_OFFSET);
extern void task_cputime_adjusted(struct task_struct *p, u64 *ut, u64 *st);
extern void thread_group_cputime_adjusted(struct task_struct *p, u64 *ut, u64 *st);
u64 *ut, u64 *st);
.size = min(a.size, (ut)(b1.base + b1.size)),
.size = min((ut)(a.size - dbase), b.size),
void FN(intersect_with_urange)(struct cnum_t *dst, ut min, ut max)
if (cnum.size == UT_MAX && cnum.base != 0 && cnum.base != (ut)ST_MAX)
return (struct cnum_t){ 0, (ut)UT_MAX };
return FN(normalize)((struct cnum_t){ -((ut)a.base + a.size), a.size });
bool FN(contains)(struct cnum_t cnum, ut v)
return v >= cnum.base || v <= (ut)cnum.base + cnum.size;
return v >= cnum.base && v <= (ut)cnum.base + cnum.size;
struct cnum_t FN(from_urange)(ut min, ut max)
return (struct cnum_t){ .base = min, .size = (ut)max - min };
ut size = (ut)max - (ut)min;
ut base = size == UT_MAX ? 0 : (ut)min;
return cnum.size > UT_MAX - (ut)cnum.base;
ut FN(umin)(struct cnum_t cnum)
ut FN(umax)(struct cnum_t cnum)
return FN(contains)(cnum, (ut)ST_MAX) && FN(contains)(cnum, (ut)ST_MIN);
ut dbase;
u64 *ut, u64 *st)
*ut = curr->utime;
void task_cputime_adjusted(struct task_struct *p, u64 *ut, u64 *st)
*ut = p->utime;
void thread_group_cputime_adjusted(struct task_struct *p, u64 *ut, u64 *st)
*ut = cputime.utime;
u64 *ut, u64 *st)
*ut = prev->utime;
void task_cputime_adjusted(struct task_struct *p, u64 *ut, u64 *st)
cputime_adjust(&cputime, &p->prev_cputime, ut, st);
void thread_group_cputime_adjusted(struct task_struct *p, u64 *ut, u64 *st)
cputime_adjust(&cputime, &p->signal->prev_cputime, ut, st);
static void copy_templates(struct xfrm_policy *xp, struct xfrm_user_tmpl *ut,
for (i = 0; i < nr; i++, ut++) {
memcpy(&t->id, &ut->id, sizeof(struct xfrm_id));
memcpy(&t->saddr, &ut->saddr,
t->reqid = ut->reqid;
t->mode = ut->mode;
t->share = ut->share;
t->optional = ut->optional;
t->aalgos = ut->aalgos;
t->ealgos = ut->ealgos;
t->calgos = ut->calgos;
t->encap_family = ut->family;
static int validate_tmpl(int nr, struct xfrm_user_tmpl *ut, u16 family,
if (!ut[i].family)
ut[i].family = family;
switch (ut[i].mode) {
if (ut[i].optional && dir == XFRM_POLICY_OUT) {
if (ut[i].family != prev_family) {
if (ut[i].mode >= XFRM_MODE_MAX) {
prev_family = ut[i].family;
switch (ut[i].family) {
if (!xfrm_id_proto_valid(ut[i].id.proto)) {
struct xfrm_user_tmpl *ut;
ut = nla_data(rt);
for (i = 0; i < xp->xfrm_nr; i++, ut++) {
x->props.family = ut->family;
struct xfrm_user_tmpl *ut = (struct xfrm_user_tmpl *) (p + 1);
nr = ((len - sizeof(*p)) / sizeof(*ut));
if (validate_tmpl(nr, ut, p->sel.family, p->dir, NULL))
copy_templates(xp, ut, nr);