Searched refs:var (Results 26 - 50 of 598) sorted by last modified time

1234567891011>>

/linux-master/fs/bcachefs/
H A Dsysfs.c105 #define sysfs_print(file, var) \
108 snprint(out, var); \
117 #define sysfs_strtoul(file, var) \
120 return strtoul_safe(buf, var) ?: (ssize_t) size; \
123 #define sysfs_strtoul_clamp(file, var, min, max) \
126 return strtoul_safe_clamp(buf, var, min, max) \
H A Dutil.h270 #define strtoul_safe(cp, var) \
275 var = _v; \
279 #define strtoul_safe_clamp(cp, var, min, max) \
284 var = clamp_t(typeof(var), _v, min, max); \
288 #define strtoul_safe_restrict(cp, var, min, max) \
293 var = _v; \
299 #define snprint(out, var) \
301 type_is(var, int) ? "%i\n" \
302 : type_is(var, unsigne
[all...]
/linux-master/drivers/iommu/amd/
H A Dinit.c1503 const char *var; local
1512 var = "IOAPIC";
1514 var = "HPET";
1516 var = "UNKNOWN";
1519 var, (int)handle,
/linux-master/scripts/gcc-plugins/
H A Dstackleak_plugin.c94 tree var = NODE_DECL(node); local
95 tree name = DECL_NAME(var);
97 if (DECL_NAME_LENGTH(var) != sizeof("current_stack_pointer") - 1)
103 return var;
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu.h717 #define IP_VERSION_FULL(mj, mn, rv, var, srev) \
718 (((mj) << 24) | ((mn) << 16) | ((rv) << 8) | ((var) << 4) | (srev))
/linux-master/include/linux/
H A Dcompiler.h185 #define OPTIMIZER_HIDE_VAR(var) \
186 __asm__ ("" : "=r" (var) : "0" (var))
H A Dtimer.h132 #define from_timer(var, callback_timer, timer_fieldname) \
133 container_of(callback_timer, typeof(*var), timer_fieldname)
H A Ddevice.h116 * @var: Pointer to context.
120 void *var; member in struct:dev_ext_attribute
H A Dinterrupt.h672 #define from_tasklet(var, callback_tasklet, tasklet_fieldname) \
673 container_of(callback_tasklet, typeof(*var), tasklet_fieldname)
H A Doverflow.h88 * @var: variable to be incremented
91 * Increments @var by @offset with wrap-around. Returns the resulting
92 * value of @var. Will not trip any wrap-around sanitizers.
94 * Returns the new value of @var.
96 #define wrapping_assign_add(var, offset) \
98 typeof(var) *__ptr = &(var); \
99 *__ptr = wrapping_add(typeof(var), *__ptr, offset); \
134 * @var: variable to be decremented
137 * Decrements @var b
[all...]
H A Dfb.h260 /* checks var and eventually tweaks it to something supported,
262 int (*fb_check_var)(struct fb_var_screeninfo *var, struct fb_info *info);
264 /* set the video mode according to info->var */
278 int (*fb_pan_display)(struct fb_var_screeninfo *var, struct fb_info *info);
304 /* get capability given var */
306 struct fb_var_screeninfo *var);
463 struct fb_var_screeninfo var; /* Current var */ member in struct:fb_info
515 * fbset currently hacks in FB_ACCELF_TEXT into var.accel_flags
532 extern int fb_set_var(struct fb_info *info, struct fb_var_screeninfo *var);
[all...]
H A Dcoresight.h298 #define DEFINE_CORESIGHT_DEVLIST(var, dev_pfx) \
299 static struct coresight_dev_list (var) = { \
/linux-master/arch/x86/kernel/cpu/mtrr/
H A Dgeneric.c435 * @var: MTRR variable range array to use
436 * @num_var: length of the @var array
439 void mtrr_overwrite_state(struct mtrr_var_range *var, unsigned int num_var, argument
468 if (var) {
475 mtrr_state.var_ranges[i] = var[i];
555 /* Get the MSR pair relating to a var range */
563 /* Fill the MSR pair relating to a var range */
881 * Set the MSR pair relating to a var range.
/linux-master/drivers/base/
H A Dcore.c2483 *(unsigned long *)(ea->var) = new;
2494 return sysfs_emit(buf, "%lx\n", *(unsigned long *)(ea->var));
2512 *(int *)(ea->var) = new;
2524 return sysfs_emit(buf, "%d\n", *(int *)(ea->var));
2533 if (kstrtobool(buf, ea->var) < 0)
2545 return sysfs_emit(buf, "%d\n", *(bool *)(ea->var));
/linux-master/tools/net/ynl/
H A Dynl-gen-c.py129 def free(self, ri, var, ref):
131 ri.cw.p(f'free({var}->{ref}{self.c_name});')
172 def _attr_put_line(self, ri, var, line):
174 ri.cw.p(f"if ({var}->_present.{self.c_name})")
176 ri.cw.p(f"if ({var}->_present.{self.c_name}_len)")
179 def _attr_put_simple(self, ri, var, put_type):
180 line = f"ynl_attr_put_{put_type}(nlh, {self.enum_name}, {var}->{self.c_name})"
181 self._attr_put_line(ri, var, line)
183 def attr_put(self, ri, var):
186 def _attr_get(self, ri, var)
[all...]
/linux-master/tools/lib/bpf/
H A Dlibbpf.c588 /* target btf_id of the corresponding kernel var. */
1306 pr_warn("struct_ops init: Cannot resolve var type_id %u in DATASEC %s\n",
1360 pr_warn("struct_ops init: var %s is beyond the end of DATASEC %s\n",
1634 pr_warn("failed to get sym name string for var %s\n", name);
2313 case BTF_KIND_VAR: return "var";
2763 const struct btf_type *var, *def; local
2771 var = btf__type_by_id(obj->btf, vi->type);
2772 var_extra = btf_var(var);
2773 map_name = btf__name_by_offset(obj->btf, var->name_off);
2783 if (!btf_is_var(var)) {
3266 struct btf_var *var; local
7035 const struct btf_type *sec, *var, *def; local
10033 struct btf_var_secinfo *var; local
13584 struct btf_var_secinfo *var; local
[all...]
/linux-master/tools/bpf/bpftool/
H A Dgen.c167 const struct btf_type *var = btf__type_by_id(btf, sec_var->type); local
168 const char *var_name = btf__name_by_offset(btf, var->name_off);
175 __u32 var_type_id = var->type;
178 if (btf_var(var)->linkage == BTF_VAR_STATIC)
187 align = btf__align_of(btf, var->type);
329 const struct btf_type *sec, *var; local
367 var = btf__type_by_id(btf, sec_var->type);
368 var_name = btf__name_by_offset(btf, var->name_off);
369 var_type_id = var->type;
372 if (btf_var(var)
533 const struct btf_type *var = btf__type_by_id(btf, sec_var->type); local
1536 const struct btf_var_secinfo *var; local
[all...]
/linux-master/lib/
H A Doverflow_kunit.c713 int var; local
717 var = 55;
718 OPTIMIZER_HIDE_VAR(var);
719 KUNIT_EXPECT_EQ(test, sizeof(ce_array), struct_size(obj, data, var));
729 var = 4;
730 check_one_size_helper(20, size_mul, var++, 5);
731 check_one_size_helper(20, size_mul, 4, var++);
739 var = 4;
740 check_one_size_helper(9, size_add, var++, 5);
741 check_one_size_helper(9, size_add, 4, var
800 unsigned int var; local
1012 int var; local
[all...]
/linux-master/drivers/video/fbdev/
H A Dvt8623fb.c227 if ((info->var.bits_per_pixel == 4) && (image->depth == 1)
239 if ((info->var.bits_per_pixel == 4)
321 static int vt8623fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) argument
325 if (!var->pixclock)
329 rv = svga_match_format (vt8623fb_formats, var, NULL);
337 if (var->xres > var->xres_virtual)
338 var->xres_virtual = var->xres;
340 if (var
622 vt8623fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) argument
[all...]
H A Duvesafb.c272 static void uvesafb_setup_var(struct fb_var_screeninfo *var, argument
277 var->vmode = FB_VMODE_NONINTERLACED;
278 var->sync = FB_SYNC_VERT_HIGH_ACT;
280 var->xres = mode->x_res;
281 var->yres = mode->y_res;
282 var->xres_virtual = mode->x_res;
283 var->yres_virtual = (par->ypan) ?
286 var->xoffset = 0;
287 var->yoffset = 0;
288 var
724 struct fb_var_screeninfo var; local
1079 uvesafb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) argument
1329 uvesafb_check_limits(struct fb_var_screeninfo *var, struct fb_info *info) argument
1365 uvesafb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) argument
[all...]
H A Dvga16fb.c203 struct fb_var_screeninfo *var)
208 xoffset = var->xoffset;
209 if (info->var.bits_per_pixel == 8) {
210 pos = (info->var.xres_virtual * var->yoffset + xoffset) >> 2;
213 pos = (info->var.xres_virtual * (var->yoffset / fh) + xoffset) >> 3;
215 if (info->var.nonstd)
217 pos = (info->var.xres_virtual * var
202 vga16fb_pan_var(struct fb_info *info, struct fb_var_screeninfo *var) argument
327 vga16fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) argument
703 vga16fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) argument
[all...]
H A Dtgafb.c57 static int tgafb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info);
169 * tgafb_check_var - Optional function. Validates a var passed in.
170 * @var: frame buffer variable screen structure
174 tgafb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) argument
178 if (!var->pixclock)
182 if (var->bits_per_pixel != 8)
185 if (var->bits_per_pixel != 32)
188 var->red.length = var->green.length = var
1392 tgafb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) argument
[all...]
H A Ds3fb.c433 if ((info->var.bits_per_pixel == 4) && (image->depth == 1)
445 if ((info->var.bits_per_pixel == 4)
544 /* Validate passed in var */
546 static int s3fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) argument
552 if (!var->pixclock)
556 rv = svga_match_format (s3fb_formats, var, NULL);
569 if (var->xres > var->xres_virtual)
570 var->xres_virtual = var
1026 s3fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) argument
[all...]
/linux-master/drivers/video/fbdev/mb862xx/
H A Dmb862xxfbdrv.c36 static inline int h_total(struct fb_var_screeninfo *var) argument
38 return var->xres + var->left_margin +
39 var->right_margin + var->hsync_len;
42 static inline int v_total(struct fb_var_screeninfo *var) argument
44 return var->yres + var->upper_margin +
45 var->lower_margin + var
48 hsp(struct fb_var_screeninfo *var) argument
53 vsp(struct fb_var_screeninfo *var) argument
58 d_pitch(struct fb_var_screeninfo *var) argument
101 mb862xxfb_check_var(struct fb_var_screeninfo *var, struct fb_info *fbi) argument
264 mb862xxfb_pan(struct fb_var_screeninfo *var, struct fb_info *info) argument
[all...]
/linux-master/drivers/video/fbdev/core/
H A Dfbmon.c384 struct fb_var_screeninfo *var; local
386 var = kzalloc(sizeof(struct fb_var_screeninfo), GFP_KERNEL);
388 if (var) {
389 var->xres = xres;
390 var->yres = yres;
392 refresh, var, NULL);
395 mode->pixclock = var->pixclock;
397 mode->left_margin = var->left_margin;
398 mode->right_margin = var->right_margin;
399 mode->upper_margin = var
894 fb_parse_edid(unsigned char *edid, struct fb_var_screeninfo *var) argument
1215 fb_get_mode(int flags, u32 val, struct fb_var_screeninfo *var, struct fb_info *info) argument
1405 fb_parse_edid(unsigned char *edid, struct fb_var_screeninfo *var) argument
1415 fb_get_mode(int flags, u32 val, struct fb_var_screeninfo *var, struct fb_info *info) argument
1434 fb_validate_mode(const struct fb_var_screeninfo *var, struct fb_info *info) argument
[all...]

Completed in 507 milliseconds

1234567891011>>