Home
last modified time | relevance | path

Searched refs:var (Results 1 – 25 of 58) sorted by relevance

123

/arch/alpha/include/asm/
Dpercpu.h10 #define per_cpu_var(var) per_cpu__##var argument
30 #define SHIFT_PERCPU_PTR(var, offset) RELOC_HIDE(&per_cpu_var(var), (offset)) argument
41 #define SHIFT_PERCPU_PTR(var, offset) ({ \ argument
42 extern int simple_identifier_##var(void); \
46 ldq %0, per_cpu__" #var"(%1)\t!literal" \
48 (typeof(&per_cpu_var(var)))(__ptr + (offset)); })
59 #define per_cpu(var, cpu) \ argument
60 (*SHIFT_PERCPU_PTR(var, per_cpu_offset(cpu)))
61 #define __get_cpu_var(var) \ argument
62 (*SHIFT_PERCPU_PTR(var, my_cpu_offset))
[all …]
Dbarrier.h30 #define set_mb(var, value) \ argument
31 do { var = value; mb(); } while (0)
/arch/x86/include/asm/
Dpercpu.h35 #define x86_read_percpu(var) \ argument
37 typeof(per_cpu_var(var)) __tmp; \
39 __tmp = __get_cpu_var(var); \
44 #define x86_write_percpu(var, val) \ argument
47 __get_cpu_var(var) = (val); \
68 #define PER_CPU(var, reg) \
70 lea per_cpu__##var(reg), reg
71 #define PER_CPU_VAR(var) %fs:per_cpu__##var
73 #define PER_CPU(var, reg) \
74 movl $per_cpu__##var, reg
[all …]
Dsystem.h405 #define set_mb(var, value) do { (void)xchg(&var, value); } while (0) argument
411 #define set_mb(var, value) do { var = value; barrier(); } while (0) argument
/arch/arm/mach-ns9xxx/include/mach/
Dhardware.h39 # define __REGSET(var, field, value) \ argument
40 ((var) = (((var) & ~((field) & ~(value))) | (value)))
42 # define REGSET(var, reg, field, value) \ argument
43 __REGSET(var, reg ## _ ## field, reg ## _ ## field ## _ ## value)
45 # define REGSET_IDX(var, reg, field, idx, value) \ argument
46 __REGSET(var, reg ## _ ## field((idx)), reg ## _ ## field ## _ ## value((idx)))
48 # define REGSETIM(var, reg, field, value) \ argument
49 __REGSET(var, reg ## _ ## field, __REGVAL(reg ## _ ## field, (value)))
51 # define REGSETIM_IDX(var, reg, field, idx, value) \ argument
52 __REGSET(var, reg ## _ ## field((idx)), __REGVAL(reg ## _ ## field((idx)), (value)))
[all …]
/arch/arm/mach-rpc/include/mach/
Dacornfb.h13 #define acornfb_bandwidth(var) ((var)->pixclock * 8 / (var)->bits_per_pixel) argument
16 acornfb_valid_pixrate(struct fb_var_screeninfo *var) in acornfb_valid_pixrate() argument
20 if (!var->pixclock) in acornfb_valid_pixrate()
35 return acornfb_bandwidth(var) >= limit; in acornfb_valid_pixrate()
83 struct fb_var_screeninfo *var) in acornfb_vidc20_find_rates() argument
88 div = var->pixclock / 9090; /*9921*/ in acornfb_vidc20_find_rates()
122 unsigned long bandwidth = acornfb_bandwidth(var); in acornfb_vidc20_find_rates()
136 vidc->pll_ctl = acornfb_vidc20_find_pll(var->pixclock / div); in acornfb_vidc20_find_rates()
/arch/powerpc/sysdev/bestcomm/
Data.c61 struct bcom_ata_var *var; in bcom_ata_init() local
75 var = (struct bcom_ata_var *) bcom_task_var(tsk->tasknum); in bcom_ata_init()
83 var->enable = bcom_eng->regs_base + in bcom_ata_init()
85 var->bd_base = tsk->bd_pa; in bcom_ata_init()
86 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_ata_init()
87 var->bd_start = tsk->bd_pa; in bcom_ata_init()
88 var->buffer_size = maxbufsize; in bcom_ata_init()
133 struct bcom_ata_var *var; in bcom_ata_reset_bd() local
141 var = (struct bcom_ata_var *) bcom_task_var(tsk->tasknum); in bcom_ata_reset_bd()
142 var->bd_start = var->bd_base; in bcom_ata_reset_bd()
Dfec.c114 struct bcom_fec_rx_var *var; in bcom_fec_rx_reset() local
121 var = (struct bcom_fec_rx_var *) bcom_task_var(tsk->tasknum); in bcom_fec_rx_reset()
127 var->enable = bcom_eng->regs_base + in bcom_fec_rx_reset()
129 var->fifo = (u32) priv->fifo; in bcom_fec_rx_reset()
130 var->bd_base = tsk->bd_pa; in bcom_fec_rx_reset()
131 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_fec_rx_reset()
132 var->bd_start = tsk->bd_pa; in bcom_fec_rx_reset()
133 var->buffer_size = priv->maxbufsize; in bcom_fec_rx_reset()
215 struct bcom_fec_tx_var *var; in bcom_fec_tx_reset() local
222 var = (struct bcom_fec_tx_var *) bcom_task_var(tsk->tasknum); in bcom_fec_tx_reset()
[all …]
Dgen_bd.c121 struct bcom_gen_bd_rx_var *var; in bcom_gen_bd_rx_reset() local
128 var = (struct bcom_gen_bd_rx_var *) bcom_task_var(tsk->tasknum); in bcom_gen_bd_rx_reset()
134 var->enable = bcom_eng->regs_base + in bcom_gen_bd_rx_reset()
136 var->fifo = (u32) priv->fifo; in bcom_gen_bd_rx_reset()
137 var->bd_base = tsk->bd_pa; in bcom_gen_bd_rx_reset()
138 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_gen_bd_rx_reset()
139 var->bd_start = tsk->bd_pa; in bcom_gen_bd_rx_reset()
140 var->buffer_size = priv->maxbufsize; in bcom_gen_bd_rx_reset()
205 struct bcom_gen_bd_tx_var *var; in bcom_gen_bd_tx_reset() local
212 var = (struct bcom_gen_bd_tx_var *) bcom_task_var(tsk->tasknum); in bcom_gen_bd_tx_reset()
[all …]
Dbestcomm.c143 u32 *desc, *var, *inc; in bcom_load_image() local
184 var = bcom_task_var(task); in bcom_load_image()
188 memset(var, 0x00, BCOM_VAR_SIZE); in bcom_load_image()
196 memcpy(var + hdr->first_var, var_src, hdr->var_size * sizeof(u32)); in bcom_load_image()
291 bcom_eng->var = bcom_sram_alloc(var_size, BCOM_VAR_ALIGN, &var_pa); in bcom_engine_init()
294 if (!bcom_eng->tdt || !bcom_eng->ctx || !bcom_eng->var || !bcom_eng->fdt) { in bcom_engine_init()
299 bcom_sram_free(bcom_eng->var); in bcom_engine_init()
307 memset(bcom_eng->var, 0x00, var_size); in bcom_engine_init()
320 bcom_eng->tdt[task].var = var_pa; in bcom_engine_init()
359 bcom_sram_free(bcom_eng->var); in bcom_engine_cleanup()
/arch/ia64/include/asm/
Dpercpu.h12 # define THIS_CPU(var) (per_cpu__##var) /* use this to mark accesses to per-CPU variables... */
42 #define __ia64_per_cpu_var(var) per_cpu__##var argument
/arch/um/sys-i386/shared/sysdep/
Dsystem.h110 #define set_mb(var, value) do { (void)xchg(&var, value); } while (0) argument
116 #define set_mb(var, value) do { var = value; barrier(); } while (0) argument
/arch/um/sys-x86_64/shared/sysdep/
Dsystem.h110 #define set_mb(var, value) do { (void)xchg(&var, value); } while (0) argument
116 #define set_mb(var, value) do { var = value; barrier(); } while (0) argument
/arch/arm/mach-netx/
Dnxeb500hmi.c61 static inline int nxeb500hmi_check(struct clcd_fb *fb, struct fb_var_screeninfo *var) in nxeb500hmi_check() argument
63 var->green.length = 5; in nxeb500hmi_check()
64 var->green.msb_right = 0; in nxeb500hmi_check()
66 return clcdfb_check(fb, var); in nxeb500hmi_check()
73 fb->fb.var.green.length = 5; in nxeb500hmi_clcd_setup()
74 fb->fb.var.green.msb_right = 0; in nxeb500hmi_clcd_setup()
Dnxdb500.c61 static inline int nxdb500_check(struct clcd_fb *fb, struct fb_var_screeninfo *var) in nxdb500_check() argument
63 var->green.length = 5; in nxdb500_check()
64 var->green.msb_right = 0; in nxdb500_check()
66 return clcdfb_check(fb, var); in nxdb500_check()
73 fb->fb.var.green.length = 5; in nxdb500_clcd_setup()
74 fb->fb.var.green.msb_right = 0; in nxdb500_clcd_setup()
/arch/s390/include/asm/
Dpercpu.h17 extern int simple_identifier_##var(void); \
26 extern int simple_identifier_##var(void); \
/arch/arm/mach-lh7a40x/
Dclcd.c80 | ((fb->fb.var.xres - 1) << 4) in lh7a40x_clcd_enable()
105 | ((fb->fb.var.xres - 1) << 4) in lh7a40x_clcd_enable()
139 fb->fb.var.sync |= FB_SYNC_HOR_HIGH_ACT; in lh7a40x_clcd_setup()
141 fb->fb.var.sync |= FB_SYNC_VERT_HIGH_ACT; in lh7a40x_clcd_setup()
161 fb->fb.var.green.length = 5; /* Panel uses RGB 5:5:5 */ in lh7a40x_clcd_setup()
/arch/mips/include/asm/
Dbarrier.h148 #define set_mb(var, value) \ argument
149 do { var = value; smp_mb(); } while (0)
/arch/cris/include/asm/
Dsystem.h19 #define set_mb(var, value) do { var = value; mb(); } while (0) argument
/arch/x86/kvm/
Dsvm.c747 struct kvm_segment *var, int seg) in svm_get_segment() argument
751 var->base = s->base; in svm_get_segment()
752 var->limit = s->limit; in svm_get_segment()
753 var->selector = s->selector; in svm_get_segment()
754 var->type = s->attrib & SVM_SELECTOR_TYPE_MASK; in svm_get_segment()
755 var->s = (s->attrib >> SVM_SELECTOR_S_SHIFT) & 1; in svm_get_segment()
756 var->dpl = (s->attrib >> SVM_SELECTOR_DPL_SHIFT) & 3; in svm_get_segment()
757 var->present = (s->attrib >> SVM_SELECTOR_P_SHIFT) & 1; in svm_get_segment()
758 var->avl = (s->attrib >> SVM_SELECTOR_AVL_SHIFT) & 1; in svm_get_segment()
759 var->l = (s->attrib >> SVM_SELECTOR_L_SHIFT) & 1; in svm_get_segment()
[all …]
Dvmx.c1647 struct kvm_segment *var, int seg) in vmx_get_segment() argument
1652 var->base = vmcs_readl(sf->base); in vmx_get_segment()
1653 var->limit = vmcs_read32(sf->limit); in vmx_get_segment()
1654 var->selector = vmcs_read16(sf->selector); in vmx_get_segment()
1658 var->type = ar & 15; in vmx_get_segment()
1659 var->s = (ar >> 4) & 1; in vmx_get_segment()
1660 var->dpl = (ar >> 5) & 3; in vmx_get_segment()
1661 var->present = (ar >> 7) & 1; in vmx_get_segment()
1662 var->avl = (ar >> 12) & 1; in vmx_get_segment()
1663 var->l = (ar >> 13) & 1; in vmx_get_segment()
[all …]
/arch/mips/pmc-sierra/msp71xx/
Dmsp_prom.c298 char **var = prom_envp; in prom_getenv() local
301 while (*var) { in prom_getenv()
302 if (strncmp(env_name, *var, i) == 0) { in prom_getenv()
303 return (*var + strlen(env_name) + 1); in prom_getenv()
305 var++; in prom_getenv()
/arch/h8300/include/asm/
Dsystem.h85 #define set_mb(var, value) do { xchg(&var, value); } while (0) argument
/arch/parisc/math-emu/
Dcnv_float.h299 int var; \
300 for (var=8; var >=1; var >>= 1) { \
302 position -= var; \
303 else position += var; \
/arch/parisc/include/asm/
Dsystem.h134 #define set_mb(var, value) do { var = value; mb(); } while (0) argument

123