Home
last modified time | relevance | path

Searched refs:g (Results 1 – 25 of 1531) sorted by relevance

12345678910>>...62

/Linux-v5.4/drivers/gpio/
Dgpio-ftgpio010.c59 struct ftgpio_gpio *g = gpiochip_get_data(gc); in ftgpio_gpio_ack_irq() local
61 writel(BIT(irqd_to_hwirq(d)), g->base + GPIO_INT_CLR); in ftgpio_gpio_ack_irq()
67 struct ftgpio_gpio *g = gpiochip_get_data(gc); in ftgpio_gpio_mask_irq() local
70 val = readl(g->base + GPIO_INT_EN); in ftgpio_gpio_mask_irq()
72 writel(val, g->base + GPIO_INT_EN); in ftgpio_gpio_mask_irq()
78 struct ftgpio_gpio *g = gpiochip_get_data(gc); in ftgpio_gpio_unmask_irq() local
81 val = readl(g->base + GPIO_INT_EN); in ftgpio_gpio_unmask_irq()
83 writel(val, g->base + GPIO_INT_EN); in ftgpio_gpio_unmask_irq()
89 struct ftgpio_gpio *g = gpiochip_get_data(gc); in ftgpio_gpio_set_irq_type() local
93 reg_type = readl(g->base + GPIO_INT_TYPE); in ftgpio_gpio_set_irq_type()
[all …]
Dgpio-ixp4xx.c65 struct ixp4xx_gpio *g = gpiochip_get_data(gc); in ixp4xx_gpio_irq_ack() local
67 __raw_writel(BIT(d->hwirq), g->base + IXP4XX_REG_GPIS); in ixp4xx_gpio_irq_ack()
73 struct ixp4xx_gpio *g = gpiochip_get_data(gc); in ixp4xx_gpio_irq_unmask() local
76 if (!(g->irq_edge & BIT(d->hwirq))) in ixp4xx_gpio_irq_unmask()
85 struct ixp4xx_gpio *g = gpiochip_get_data(gc); in ixp4xx_gpio_irq_set_type() local
96 g->irq_edge |= BIT(d->hwirq); in ixp4xx_gpio_irq_set_type()
101 g->irq_edge |= BIT(d->hwirq); in ixp4xx_gpio_irq_set_type()
106 g->irq_edge |= BIT(d->hwirq); in ixp4xx_gpio_irq_set_type()
111 g->irq_edge &= ~BIT(d->hwirq); in ixp4xx_gpio_irq_set_type()
116 g->irq_edge &= ~BIT(d->hwirq); in ixp4xx_gpio_irq_set_type()
[all …]
Dgpio-davinci.c74 struct davinci_gpio_regs __iomem *g; in irq2regs() local
76 g = (__force struct davinci_gpio_regs __iomem *)irq_data_get_irq_chip_data(d); in irq2regs()
78 return g; in irq2regs()
90 struct davinci_gpio_regs __iomem *g; in __davinci_direction() local
96 g = d->regs[bank]; in __davinci_direction()
98 temp = readl_relaxed(&g->dir); in __davinci_direction()
101 writel_relaxed(mask, value ? &g->set_data : &g->clr_data); in __davinci_direction()
105 writel_relaxed(temp, &g->dir); in __davinci_direction()
132 struct davinci_gpio_regs __iomem *g; in davinci_gpio_get() local
135 g = d->regs[bank]; in davinci_gpio_get()
[all …]
/Linux-v5.4/tools/perf/bench/
Dnuma.c47 #define tprintf(x...) do { if (g && g->p.show_details >= 0) printf(x); } while (0)
53 #define dprintf(x...) do { if (g && g->p.show_details >= 1) printf(x); } while (0)
161 static struct global_info *g = NULL; variable
229 for (i = 0; i < g->p.nr_nodes; i++) { in nr_numa_nodes()
276 for (cpu = 0; cpu < g->p.nr_cpus; cpu++) in bind_to_cpu()
279 BUG_ON(target_cpu < 0 || target_cpu >= g->p.nr_cpus); in bind_to_cpu()
291 int cpus_per_node = g->p.nr_cpus / nr_numa_nodes(); in bind_to_node()
296 BUG_ON(cpus_per_node * nr_numa_nodes() != g->p.nr_cpus); in bind_to_node()
305 for (cpu = 0; cpu < g->p.nr_cpus; cpu++) in bind_to_node()
311 BUG_ON(cpu_stop > g->p.nr_cpus); in bind_to_node()
[all …]
/Linux-v5.4/Documentation/media/uapi/v4l/
Dpixfmt-rgb.rst88 - g\ :sub:`2`
89 - g\ :sub:`1`
90 - g\ :sub:`0`
99 - g\ :sub:`3`
100 - g\ :sub:`2`
101 - g\ :sub:`1`
102 - g\ :sub:`0`
122 - g\ :sub:`3`
123 - g\ :sub:`2`
124 - g\ :sub:`1`
[all …]
Duser-func.rst24 vidioc-dbg-g-chip-info
25 vidioc-dbg-g-register
41 vidioc-g-audio
42 vidioc-g-audioout
43 vidioc-g-crop
44 vidioc-g-ctrl
45 vidioc-g-dv-timings
46 vidioc-g-edid
47 vidioc-g-enc-index
48 vidioc-g-ext-ctrls
[all …]
Dsubdev-formats.rst222 - g\ :sub:`3`
223 - g\ :sub:`2`
224 - g\ :sub:`1`
225 - g\ :sub:`0`
294 - g\ :sub:`3`
295 - g\ :sub:`2`
296 - g\ :sub:`1`
297 - g\ :sub:`0`
331 - g\ :sub:`3`
332 - g\ :sub:`2`
[all …]
/Linux-v5.4/drivers/pinctrl/qcom/
Dpinctrl-msm.c71 const struct msm_pingroup *g) \
73 return readl(pctrl->regs[g->tile] + g->name##_reg); \
76 const struct msm_pingroup *g) \
78 writel(val, pctrl->regs[g->tile] + g->name##_reg); \
162 const struct msm_pingroup *g; in msm_pinmux_set_mux() local
167 g = &pctrl->soc->groups[group]; in msm_pinmux_set_mux()
168 mask = GENMASK(g->mux_bit + order_base_2(g->nfuncs) - 1, g->mux_bit); in msm_pinmux_set_mux()
170 for (i = 0; i < g->nfuncs; i++) { in msm_pinmux_set_mux()
171 if (g->funcs[i] == function) in msm_pinmux_set_mux()
175 if (WARN_ON(i == g->nfuncs)) in msm_pinmux_set_mux()
[all …]
/Linux-v5.4/drivers/pinctrl/tegra/
Dpinctrl-tegra.c254 const struct tegra_pingroup *g; in tegra_pinctrl_set_mux() local
258 g = &pmx->soc->groups[group]; in tegra_pinctrl_set_mux()
260 if (WARN_ON(g->mux_reg < 0)) in tegra_pinctrl_set_mux()
263 for (i = 0; i < ARRAY_SIZE(g->funcs); i++) { in tegra_pinctrl_set_mux()
264 if (g->funcs[i] == function) in tegra_pinctrl_set_mux()
267 if (WARN_ON(i == ARRAY_SIZE(g->funcs))) in tegra_pinctrl_set_mux()
270 val = pmx_readl(pmx, g->mux_bank, g->mux_reg); in tegra_pinctrl_set_mux()
271 val &= ~(0x3 << g->mux_bit); in tegra_pinctrl_set_mux()
272 val |= i << g->mux_bit; in tegra_pinctrl_set_mux()
273 pmx_writel(pmx, val, g->mux_bank, g->mux_reg); in tegra_pinctrl_set_mux()
[all …]
/Linux-v5.4/lib/crypto/
Dsha256.c48 u32 a, b, c, d, e, f, g, h, t1, t2; in sha256_transform() local
62 e = state[4]; f = state[5]; g = state[6]; h = state[7]; in sha256_transform()
65 t1 = h + e1(e) + Ch(e, f, g) + 0x428a2f98 + W[0]; in sha256_transform()
67 t1 = g + e1(d) + Ch(d, e, f) + 0x71374491 + W[1]; in sha256_transform()
68 t2 = e0(h) + Maj(h, a, b); c += t1; g = t1 + t2; in sha256_transform()
70 t2 = e0(g) + Maj(g, h, a); b += t1; f = t1 + t2; in sha256_transform()
72 t2 = e0(f) + Maj(f, g, h); a += t1; e = t1 + t2; in sha256_transform()
74 t2 = e0(e) + Maj(e, f, g); h += t1; d = t1 + t2; in sha256_transform()
76 t2 = e0(d) + Maj(d, e, f); g += t1; c = t1 + t2; in sha256_transform()
77 t1 = b + e1(g) + Ch(g, h, a) + 0x923f82a4 + W[6]; in sha256_transform()
[all …]
/Linux-v5.4/drivers/usb/gadget/udc/
Dtrace.h21 TP_PROTO(struct usb_gadget *g, int ret),
22 TP_ARGS(g, ret),
45 __entry->speed = g->speed;
46 __entry->max_speed = g->max_speed;
47 __entry->state = g->state;
48 __entry->mA = g->mA;
49 __entry->sg_supported = g->sg_supported;
50 __entry->is_otg = g->is_otg;
51 __entry->is_a_peripheral = g->is_a_peripheral;
52 __entry->b_hnp_enable = g->b_hnp_enable;
[all …]
/Linux-v5.4/tools/testing/selftests/bpf/progs/
Dtest_tcpbpf_kern.c34 struct tcpbpf_globals g, *gp; in update_event_map() local
38 struct tcpbpf_globals g = {0}; in update_event_map() local
40 g.event_map |= (1 << event); in update_event_map()
41 bpf_map_update_elem(&global_map, &key, &g, in update_event_map()
44 g = *gp; in update_event_map()
45 g.event_map |= (1 << event); in update_event_map()
46 bpf_map_update_elem(&global_map, &key, &g, in update_event_map()
79 struct tcpbpf_globals g, *gp; in bpf_testcb() local
84 g = *gp; in bpf_testcb()
85 g.bad_cb_test_rv = bad_call_rv; in bpf_testcb()
[all …]
/Linux-v5.4/drivers/staging/most/dim2/
Dhal.c84 static struct lld_global_vars_t g = { false }; variable
120 if ((g.dbr_map[i] & mask) == 0) { in alloc_dbr()
121 g.dbr_map[i] |= mask; in alloc_dbr()
140 g.dbr_map[block_idx / 32] &= ~mask; in free_dbr()
147 writel(val, &g.dim2->MADR); in dim2_transfer_madr()
150 while ((readl(&g.dim2->MCTL) & 1) != 1) in dim2_transfer_madr()
153 writel(0, &g.dim2->MCTL); /* clear transfer complete */ in dim2_transfer_madr()
163 writel(0, &g.dim2->MCTL); /* clear transfer complete */ in dim2_clear_dbr()
164 writel(0, &g.dim2->MDAT0); in dim2_clear_dbr()
174 return readl((&g.dim2->MDAT0) + mdat_idx); in dim2_read_ctr()
[all …]
/Linux-v5.4/drivers/clk/renesas/
Dr9a06g032-clocks.c436 struct r9a06g032_gate *g, int on) in r9a06g032_clk_gate_set() argument
440 WARN_ON(!g->gate); in r9a06g032_clk_gate_set()
443 clk_rdesc_set(clocks, g->gate, on); in r9a06g032_clk_gate_set()
445 if (g->reset) in r9a06g032_clk_gate_set()
446 clk_rdesc_set(clocks, g->reset, 1); in r9a06g032_clk_gate_set()
456 if (g->ready || g->midle) { in r9a06g032_clk_gate_set()
458 if (g->ready) in r9a06g032_clk_gate_set()
459 clk_rdesc_set(clocks, g->ready, on); in r9a06g032_clk_gate_set()
461 if (g->midle) in r9a06g032_clk_gate_set()
462 clk_rdesc_set(clocks, g->midle, !on); in r9a06g032_clk_gate_set()
[all …]
/Linux-v5.4/drivers/pinctrl/sirf/
Dpinctrl-sirf.h15 #define SIRFSOC_GPIO_PAD_EN(g) ((g)*0x100 + 0x84) argument
16 #define SIRFSOC_GPIO_PAD_EN_CLR(g) ((g)*0x100 + 0x90) argument
17 #define SIRFSOC_GPIO_CTRL(g, i) ((g)*0x100 + (i)*4) argument
19 #define SIRFSOC_GPIO_INT_STATUS(g) ((g)*0x100 + 0x8C) argument
96 #define SIRFSOC_PMX_FUNCTION(n, g, m) \ argument
99 .groups = g, \
100 .num_groups = ARRAY_SIZE(g), \
/Linux-v5.4/arch/alpha/kernel/
Dmodule.c35 struct got_entry *g; in process_reloc_for_got() local
40 for (g = chains + r_sym; g ; g = g->next) in process_reloc_for_got()
41 if (g->r_addend == r_addend) { in process_reloc_for_got()
42 if (g->got_offset == 0) { in process_reloc_for_got()
43 g->got_offset = *poffset; in process_reloc_for_got()
49 g = kmalloc (sizeof (*g), GFP_KERNEL); in process_reloc_for_got()
50 g->next = chains[r_sym].next; in process_reloc_for_got()
51 g->r_addend = r_addend; in process_reloc_for_got()
52 g->got_offset = *poffset; in process_reloc_for_got()
54 chains[r_sym].next = g; in process_reloc_for_got()
[all …]
/Linux-v5.4/arch/x86/include/asm/
Ddesc_defs.h20 u16 limit1: 4, avl: 1, l: 1, d: 1, g: 1, base2: 8; member
37 .g = (flags >> 15) & 0x01, \
59 u16 limit1 : 4, zero0 : 3, g : 1, base2 : 8; member
90 static inline unsigned long gate_offset(const gate_desc *g) in gate_offset() argument
93 return g->offset_low | ((unsigned long)g->offset_middle << 16) | in gate_offset()
94 ((unsigned long) g->offset_high << 32); in gate_offset()
96 return g->offset_low | ((unsigned long)g->offset_middle << 16); in gate_offset()
100 static inline unsigned long gate_segment(const gate_desc *g) in gate_segment() argument
102 return g->segment; in gate_segment()
/Linux-v5.4/include/linux/
Dlightnvm.h60 } g; member
449 l.ppa = ((u64)r.g.ch) << ppaf->ch_offset; in generic_to_dev_addr()
450 l.ppa |= ((u64)r.g.lun) << ppaf->lun_offset; in generic_to_dev_addr()
451 l.ppa |= ((u64)r.g.blk) << ppaf->blk_offset; in generic_to_dev_addr()
452 l.ppa |= ((u64)r.g.pg) << ppaf->pg_offset; in generic_to_dev_addr()
453 l.ppa |= ((u64)r.g.pl) << ppaf->pln_offset; in generic_to_dev_addr()
454 l.ppa |= ((u64)r.g.sec) << ppaf->sec_offset; in generic_to_dev_addr()
478 l.g.ch = (r.ppa & ppaf->ch_mask) >> ppaf->ch_offset; in dev_to_generic_addr()
479 l.g.lun = (r.ppa & ppaf->lun_mask) >> ppaf->lun_offset; in dev_to_generic_addr()
480 l.g.blk = (r.ppa & ppaf->blk_mask) >> ppaf->blk_offset; in dev_to_generic_addr()
[all …]
/Linux-v5.4/arch/arm64/boot/dts/freescale/
Dfsl-ls1046-post.dtsi13 #include "qoriq-fman3-0-1g-0.dtsi"
14 #include "qoriq-fman3-0-1g-1.dtsi"
15 #include "qoriq-fman3-0-1g-2.dtsi"
16 #include "qoriq-fman3-0-1g-3.dtsi"
17 #include "qoriq-fman3-0-1g-4.dtsi"
18 #include "qoriq-fman3-0-1g-5.dtsi"
19 #include "qoriq-fman3-0-10g-0.dtsi"
20 #include "qoriq-fman3-0-10g-1.dtsi"
Dfsl-ls1043-post.dtsi12 #include "qoriq-fman3-0-1g-0.dtsi"
13 #include "qoriq-fman3-0-1g-1.dtsi"
14 #include "qoriq-fman3-0-1g-2.dtsi"
15 #include "qoriq-fman3-0-1g-3.dtsi"
16 #include "qoriq-fman3-0-1g-4.dtsi"
17 #include "qoriq-fman3-0-1g-5.dtsi"
18 #include "qoriq-fman3-0-10g-0.dtsi"
/Linux-v5.4/drivers/gpu/host1x/
Djob.c127 struct host1x_job_gather *g = &job->gathers[i]; in pin_job() local
136 g->bo = host1x_bo_get(g->bo); in pin_job()
137 if (!g->bo) { in pin_job()
142 phys_addr = host1x_bo_pin(g->bo, &sgt); in pin_job()
175 job->unpins[job->num_unpins].bo = g->bo; in pin_job()
187 static int do_relocs(struct host1x_job *job, struct host1x_job_gather *g) in do_relocs() argument
191 struct host1x_bo *cmdbuf = g->bo; in do_relocs()
208 g->offset / sizeof(u32); in do_relocs()
371 static int validate(struct host1x_firewall *fw, struct host1x_job_gather *g) in validate() argument
374 (g->offset / sizeof(u32)); in validate()
[all …]
/Linux-v5.4/samples/bpf/
Dsockex3_kern.c122 static void update_stats(struct __sk_buff *skb, struct globals *g) in update_stats() argument
124 struct flow_key_record key = g->flow; in update_stats()
139 struct globals *g, __u32 ip_proto) in parse_ip_proto() argument
179 g->flow.ports = load_word(skb, nhoff); in parse_ip_proto()
181 g->flow.ip_proto = ip_proto; in parse_ip_proto()
182 update_stats(skb, g); in parse_ip_proto()
191 struct globals *g = this_cpu_globals(); in PROG() local
194 if (!g) in PROG()
205 g->flow.src = load_word(skb, nhoff + offsetof(struct iphdr, saddr)); in PROG()
206 g->flow.dst = load_word(skb, nhoff + offsetof(struct iphdr, daddr)); in PROG()
[all …]
/Linux-v5.4/drivers/pinctrl/freescale/
Dpinctrl-mxs.c204 struct mxs_group *g = &d->soc->groups[group]; in mxs_pinctrl_set_mux() local
210 for (i = 0; i < g->npins; i++) { in mxs_pinctrl_set_mux()
211 bank = PINID_TO_BANK(g->pins[i]); in mxs_pinctrl_set_mux()
212 pin = PINID_TO_PIN(g->pins[i]); in mxs_pinctrl_set_mux()
217 mxs_pinctrl_rmwl(g->muxsel[i], 0x3, shift, reg); in mxs_pinctrl_set_mux()
258 struct mxs_group *g = &d->soc->groups[group]; in mxs_pinconf_group_set() local
273 for (i = 0; i < g->npins; i++) { in mxs_pinconf_group_set()
274 bank = PINID_TO_BANK(g->pins[i]); in mxs_pinconf_group_set()
275 pin = PINID_TO_PIN(g->pins[i]); in mxs_pinconf_group_set()
309 g->config = config; in mxs_pinconf_group_set()
[all …]
/Linux-v5.4/drivers/media/common/v4l2-tpg/
Dv4l2-tpg-colors.c1153 static void mult_matrix(double *r, double *g, double *b, const double m[3][3]) in mult_matrix() argument
1157 ir = m[0][0] * (*r) + m[0][1] * (*g) + m[0][2] * (*b); in mult_matrix()
1158 ig = m[1][0] * (*r) + m[1][1] * (*g) + m[1][2] * (*b); in mult_matrix()
1159 ib = m[2][0] * (*r) + m[2][1] * (*g) + m[2][2] * (*b); in mult_matrix()
1161 *g = ig; in mult_matrix()
1232 double *r, double *g, double *b) in csc() argument
1237 *g = transfer_srgb_to_rgb(*g); in csc()
1243 mult_matrix(r, g, b, rec709_to_240m); in csc()
1246 mult_matrix(r, g, b, rec709_to_170m); in csc()
1249 mult_matrix(r, g, b, rec709_to_ebu); in csc()
[all …]
/Linux-v5.4/lib/
Dts_bm.c96 static int subpattern(u8 *pattern, int i, int j, int g) in subpattern() argument
98 int x = i+g-1, y = j+g-1, ret = 0; in subpattern()
105 if (--g == 0) { in subpattern()
116 int i, j, g; in compute_prefix_tbl() local
132 for (i = bm->patlen-1, g = 1; i > 0; g++, i--) { in compute_prefix_tbl()
133 for (j = i-1; j >= 1-g ; j--) in compute_prefix_tbl()
134 if (subpattern(bm->pattern, i, j, g)) { in compute_prefix_tbl()
135 bm->good_shift[g] = bm->patlen-j-g; in compute_prefix_tbl()

12345678910>>...62