Home
last modified time | relevance | path

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

12345678910>>...66

/linux/tools/perf/bench/
H A Dnuma.c50 #define tprintf(x...) do { if (g && g->p.show_details >= 0) printf(x); } while (0)
56 #define dprintf(x...) do { if (g && g->p.show_details >= 1) printf(x); } while (0)
164 static struct global_info *g = NULL;
233 for (i = 0; i < g->p.nr_nodes; i++) { in nr_numa_nodes()
295 for (cpu = 0; cpu < g->p.nr_cpus; cpu++) in bind_to_cpu()
298 if (target_cpu < 0 || target_cpu >= g->p.nr_cpus) in bind_to_cpu()
341 for (cpu = 0; cpu < g->p.nr_cpus; cpu++) in bind_to_node()
389 ret = set_mempolicy(MPOL_DEFAULT, NULL, g in mempol_restore()
162 static struct global_info *g = NULL; global() variable
[all...]
/linux/drivers/pinctrl/qcom/
H A Dpinctrl-msm.c87 const struct msm_pingroup *g) \
89 return readl(pctrl->regs[g->tile] + g->name##_reg); \
92 const struct msm_pingroup *g) \
94 writel(val, pctrl->regs[g->tile] + g->name##_reg); \
104 const struct msm_pingroup *g) in MSM_ACCESSOR()
106 u32 val = g->intr_ack_high ? BIT(g->intr_status_bit) : 0; in MSM_ACCESSOR()
108 msm_writel_intr_status(val, pctrl, g); in MSM_ACCESSOR()
191 const struct msm_pingroup *g; in msm_pinmux_set_mux() local
196 g = &pctrl->soc->groups[group]; in msm_pinmux_set_mux()
197 mask = GENMASK(g->mux_bit + order_base_2(g->nfuncs) - 1, g->mux_bit); in msm_pinmux_set_mux()
[all …]
/linux/fs/bcachefs/
H A Ddisk_groups.c26 struct bch_disk_group *g, *sorted = NULL; in bch2_sb_disk_groups_validate() local
56 g = groups->entries + i; in bch2_sb_disk_groups_validate()
58 if (BCH_GROUP_DELETED(g)) in bch2_sb_disk_groups_validate()
61 len = strnlen(g->label, sizeof(g->label)); in bch2_sb_disk_groups_validate()
75 for (g = sorted; g + 1 < sorted + nr_groups; g++) in bch2_sb_disk_groups_validate()
76 if (!BCH_GROUP_DELETED(g) && in bch2_sb_disk_groups_validate()
77 !group_cmp(&g[0], &g[1])) { in bch2_sb_disk_groups_validate()
79 BCH_GROUP_PARENT(g), in bch2_sb_disk_groups_validate()
80 (int) sizeof(g->label), g->label); in bch2_sb_disk_groups_validate()
94 struct bch_disk_groups_cpu *g = rcu_dereference(c->disk_groups); in bch2_disk_groups_to_text() local
[all …]
H A Dbtree_locking.c68 struct trans_waiting_for_lock g[8]; member
72 static noinline void print_cycle(struct printbuf *out, struct lock_graph *g) in print_cycle() argument
76 prt_printf(out, "Found lock cycle (%u entries):\n", g->nr); in print_cycle()
78 for (i = g->g; i < g->g + g->nr; i++) { in print_cycle()
84 bch2_prt_task_backtrace(out, task, i == g->g ? 5 : 1, GFP_NOWAIT); in print_cycle()
88 static noinline void print_chain(struct printbuf *out, struct lock_graph *g) in print_chain() argument
92 for (i = g->g; i != g->g + g->nr; i++) { in print_chain()
94 if (i != g->g) in print_chain()
101 static void lock_graph_up(struct lock_graph *g) in lock_graph_up() argument
103 closure_put(&g->g[--g->nr].trans->ref); in lock_graph_up()
[all …]
H A Dbuckets.c123 struct bucket *g = PTR_GC_BUCKET(ca, &p.ptr); in bch2_check_fix_ptr() local
124 if (!g) { in bch2_check_fix_ptr()
137 if (fsck_err_on(!g->gen_valid, in bch2_check_fix_ptr()
147 g->gen_valid = true; in bch2_check_fix_ptr()
148 g->gen = p.ptr.gen; in bch2_check_fix_ptr()
154 if (fsck_err_on(gen_cmp(p.ptr.gen, g->gen) > 0, in bch2_check_fix_ptr()
160 p.ptr.gen, g->gen, in bch2_check_fix_ptr()
164 (g->data_type != BCH_DATA_btree || in bch2_check_fix_ptr()
166 g->gen_valid = true; in bch2_check_fix_ptr()
167 g->gen = p.ptr.gen; in bch2_check_fix_ptr()
[all …]
/linux/drivers/gpio/
H A Dgpio-ixp4xx.c72 struct ixp4xx_gpio *g = gpiochip_get_data(gc); in ixp4xx_gpio_irq_ack() local
74 __raw_writel(BIT(d->hwirq), g->base + IXP4XX_REG_GPIS); in ixp4xx_gpio_irq_ack()
88 struct ixp4xx_gpio *g = gpiochip_get_data(gc); in ixp4xx_gpio_irq_unmask() local
91 if (!(g->irq_edge & BIT(d->hwirq))) in ixp4xx_gpio_irq_unmask()
101 struct ixp4xx_gpio *g = gpiochip_get_data(gc); in ixp4xx_gpio_irq_set_type() local
112 g->irq_edge |= BIT(d->hwirq); in ixp4xx_gpio_irq_set_type()
117 g->irq_edge |= BIT(d->hwirq); in ixp4xx_gpio_irq_set_type()
122 g->irq_edge |= BIT(d->hwirq); in ixp4xx_gpio_irq_set_type()
127 g->irq_edge &= ~BIT(d->hwirq); in ixp4xx_gpio_irq_set_type()
132 g->irq_edge &= ~BIT(d->hwirq); in ixp4xx_gpio_irq_set_type()
[all …]
H A Dgpio-davinci.c73 struct davinci_gpio_regs __iomem *g; in irq2regs() local
75 g = (__force struct davinci_gpio_regs __iomem *)irq_data_get_irq_chip_data(d); in irq2regs()
77 return g; in irq2regs()
89 struct davinci_gpio_regs __iomem *g; in __davinci_direction() local
95 g = d->regs[bank]; in __davinci_direction()
97 temp = readl_relaxed(&g->dir); in __davinci_direction()
100 writel_relaxed(mask, value ? &g->set_data : &g->clr_data); in __davinci_direction()
104 writel_relaxed(temp, &g->dir); in __davinci_direction()
131 struct davinci_gpio_regs __iomem *g; in davinci_gpio_get() local
134 g = d->regs[bank]; in davinci_gpio_get()
[all …]
H A Dgpio-bd71815.c132 struct bd71815_gpio *g; in gpo_bd71815_probe() local
143 g = devm_kzalloc(dev, sizeof(*g), GFP_KERNEL); in gpo_bd71815_probe()
144 if (!g) in gpo_bd71815_probe()
147 g->chip = bd71815gpo_chip; in gpo_bd71815_probe()
160 g->chip.ngpio = 2; in gpo_bd71815_probe()
162 g->chip.ngpio = 1; in gpo_bd71815_probe()
164 g->chip.init_valid_mask = bd71815_init_valid_mask; in gpo_bd71815_probe()
165 g->chip.base = -1; in gpo_bd71815_probe()
166 g->chip.parent = parent; in gpo_bd71815_probe()
167 g->regmap = dev_get_regmap(parent, NULL); in gpo_bd71815_probe()
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A Duser-func.rst17 vidioc-dbg-g-chip-info
18 vidioc-dbg-g-register
34 vidioc-g-audio
35 vidioc-g-audioout
36 vidioc-g-crop
37 vidioc-g-ctrl
38 vidioc-g-dv-timings
39 vidioc-g-edid
40 vidioc-g-enc-index
41 vidioc-g-ext-ctrls
[all …]
H A Dpixfmt-rgb.rst45 - 'r', 'g' and 'b' denote bits of the red, green and blue components
130 - g\ :sub:`2`
131 - g\ :sub:`1`
132 - g\ :sub:`0`
141 - g\ :sub:`3`
142 - g\ :sub:`2`
143 - g\ :sub:`1`
144 - g\ :sub:`0`
164 - g\ :sub:`3`
165 - g\ :sub:`2`
[all …]
/linux/drivers/pinctrl/tegra/
H A 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/crypto/
H A Dsm3.c38 #define R(i, a, b, c, d, e, f, g, h, t, w1, w2) \ argument
43 h += GG ## i(e, f, g) + ss1 + (w1); \
49 #define R1(a, b, c, d, e, f, g, h, t, w1, w2) \ argument
50 R(1, a, b, c, d, e, f, g, h, t, w1, w2)
51 #define R2(a, b, c, d, e, f, g, h, t, w1, w2) \ argument
52 R(2, a, b, c, d, e, f, g, h, t, w1, w2)
74 u32 a, b, c, d, e, f, g, h, ss1, ss2; in sm3_transform() local
82 g = sctx->state[6]; in sm3_transform()
85 R1(a, b, c, d, e, f, g, h, K[0], I(0), I(4)); in sm3_transform()
86 R1(d, a, b, c, h, e, f, g, K[1], I(1), I(5)); in sm3_transform()
[all …]
/linux/drivers/staging/most/dim2/
H A 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/arch/x86/crypto/
H A Dsm3-avx-asm_64.S114 #define g %r14d macro
181 #define R(i, a, b, c, d, e, f, g, h, round, widx, wtype) \ argument
200 GG##i(e, f, g, t2, t1); \
215 #define R1(a, b, c, d, e, f, g, h, round, widx, wtype) \ argument
216 R(1, a, b, c, d, e, f, g, h, round, widx, wtype)
218 #define R2(a, b, c, d, e, f, g, h, round, widx, wtype) \ argument
219 R(2, a, b, c, d, e, f, g, h, round, widx, wtype)
362 movl state_h6(RSTATE), g;
373 R1(a, b, c, d, e, f, g, h, 0, 0, IW); LOAD_W_XMM_2();
374 R1(d, a, b, c, h, e, f, g, 1, 1, IW);
[all …]
/linux/arch/alpha/kernel/
H A 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/arch/x86/include/asm/uv/
H A Duv_geo.h85 static inline int geo_rack(union geoid_u g) in geo_rack() argument
87 return (g.common.type == GEO_TYPE_INVALID) ? in geo_rack()
88 -1 : g.common.rack; in geo_rack()
91 static inline int geo_slot(union geoid_u g) in geo_slot() argument
93 return (g.common.type == GEO_TYPE_INVALID) ? in geo_slot()
94 -1 : g.common.upos; in geo_slot()
97 static inline int geo_blade(union geoid_u g) in geo_blade() argument
99 return (g.common.type == GEO_TYPE_INVALID) ? in geo_blade()
100 -1 : g.common.blade * 2 + g.common.slot; in geo_blade()
/linux/drivers/gpu/host1x/
H A Djob.c146 struct host1x_job_gather *g; in pin_job() local
223 g = &job->cmds[i].gather; in pin_job()
225 g->bo = host1x_bo_get(g->bo); in pin_job()
226 if (!g->bo) { in pin_job()
231 map = host1x_bo_pin(host->dev, g->bo, DMA_TO_DEVICE, NULL); in pin_job()
273 host1x_bo_put(g->bo); in pin_job()
279 static int do_relocs(struct host1x_job *job, struct host1x_job_gather *g) in do_relocs() argument
282 struct host1x_bo *cmdbuf = g->bo; in do_relocs()
299 g->offset / sizeof(u32); in do_relocs()
456 static int validate(struct host1x_firewall *fw, struct host1x_job_gather *g) in validate() argument
[all …]
/linux/drivers/pinctrl/freescale/
H A Dpinctrl-mxs.c207 struct mxs_group *g = &d->soc->groups[group]; in mxs_pinctrl_set_mux() local
213 for (i = 0; i < g->npins; i++) { in mxs_pinctrl_set_mux()
214 bank = PINID_TO_BANK(g->pins[i]); in mxs_pinctrl_set_mux()
215 pin = PINID_TO_PIN(g->pins[i]); in mxs_pinctrl_set_mux()
220 mxs_pinctrl_rmwl(g->muxsel[i], 0x3, shift, reg); in mxs_pinctrl_set_mux()
261 struct mxs_group *g = &d->soc->groups[group]; in mxs_pinconf_group_set() local
276 for (i = 0; i < g->npins; i++) { in mxs_pinconf_group_set()
277 bank = PINID_TO_BANK(g->pins[i]); in mxs_pinconf_group_set()
278 pin = PINID_TO_PIN(g->pins[i]); in mxs_pinconf_group_set()
312 g->config = config; in mxs_pinconf_group_set()
[all …]
/linux/drivers/clk/renesas/
H A Dr9a06g032-clocks.c816 struct r9a06g032_gate *g, int on) in r9a06g032_clk_gate_set() argument
820 WARN_ON(!g->gate.reg && !g->gate.bit); in r9a06g032_clk_gate_set()
823 clk_rdesc_set(clocks, g->gate, on); in r9a06g032_clk_gate_set()
825 clk_rdesc_set(clocks, g->reset, 1); in r9a06g032_clk_gate_set()
836 clk_rdesc_set(clocks, g->ready, on); in r9a06g032_clk_gate_set()
838 clk_rdesc_set(clocks, g->midle, !on); in r9a06g032_clk_gate_set()
846 struct r9a06g032_clk_gate *g = to_r9a06g032_gate(hw); in r9a06g032_clk_gate_enable() local
848 r9a06g032_clk_gate_set(g->clocks, &g->gate, 1); in r9a06g032_clk_gate_enable()
854 struct r9a06g032_clk_gate *g = to_r9a06g032_gate(hw); in r9a06g032_clk_gate_disable() local
856 r9a06g032_clk_gate_set(g->clocks, &g->gate, 0); in r9a06g032_clk_gate_disable()
[all …]
/linux/arch/x86/include/asm/
H A Ddesc_defs.h70 u16 limit1: 4, avl: 1, l: 1, d: 1, g: 1, base2: 8; member
87 .g = ((flags) >> 15) & 0x0001, \
109 u16 limit1 : 4, zero0 : 3, g : 1, base2 : 8; member
148 static inline unsigned long gate_offset(const gate_desc *g) in gate_offset() argument
151 return g->offset_low | ((unsigned long)g->offset_middle << 16) | in gate_offset()
152 ((unsigned long) g->offset_high << 32); in gate_offset()
154 return g->offset_low | ((unsigned long)g->offset_middle << 16); in gate_offset()
158 static inline unsigned long gate_segment(const gate_desc *g) in gate_segment() argument
160 return g->segment; in gate_segment()
/linux/drivers/media/common/v4l2-tpg/
H A 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/samples/bpf/
H A Dsockex3_kern.c90 static void update_stats(struct __sk_buff *skb, struct globals *g) in update_stats() argument
92 struct flow_key_record key = g->flow; in update_stats()
107 struct globals *g, __u32 ip_proto) in parse_ip_proto() argument
147 g->flow.ports = load_word(skb, nhoff); in parse_ip_proto()
149 g->flow.ip_proto = ip_proto; in parse_ip_proto()
150 update_stats(skb, g); in parse_ip_proto()
160 struct globals *g = this_cpu_globals(); in bpf_func_ip() local
163 if (!g) in bpf_func_ip()
174 g->flow.src = load_word(skb, nhoff + offsetof(struct iphdr, saddr)); in bpf_func_ip()
175 g->flow.dst = load_word(skb, nhoff + offsetof(struct iphdr, daddr)); in bpf_func_ip()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dfs_ttc.c35 struct mlx5_flow_group **g; member
379 ttc->g = kcalloc(groups->num_groups, sizeof(*ttc->g), GFP_KERNEL); in mlx5_create_ttc_table_groups()
380 if (!ttc->g) in mlx5_create_ttc_table_groups()
384 kfree(ttc->g); in mlx5_create_ttc_table_groups()
385 ttc->g = NULL; in mlx5_create_ttc_table_groups()
402 ttc->g[ttc->num_groups] = mlx5_create_flow_group(ttc->t, in); in mlx5_create_ttc_table_groups()
403 if (IS_ERR(ttc->g[ttc->num_groups])) in mlx5_create_ttc_table_groups()
415 ttc->g[ttc->num_groups] = mlx5_create_flow_group(ttc->t, in); in mlx5_create_ttc_table_groups()
416 if (IS_ERR(ttc->g[ttc->num_groups])) in mlx5_create_ttc_table_groups()
425 ttc->g[ttc->num_groups] = mlx5_create_flow_group(ttc->t, in); in mlx5_create_ttc_table_groups()
[all …]
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_regs.h35 #define AFI_PORT_FRM_OUT(g) __REG(TARGET_AFI, 0, 1, 98816, g, 10, 8, 0, 0, 1, 4) argument
44 #define AFI_PORT_CFG(g) __REG(TARGET_AFI, 0, 1, 98816, g, 10, 8, 4, 0, 1, 4) argument
161 #define ANA_PGID(g) __REG(TARGET_ANA, 0, 1, 27648, g, 89, 8, 0, 0, 1, 4) argument
170 #define ANA_PGID_CFG(g) __REG(TARGET_ANA, 0, 1, 27648, g, 89, 8, 4, 0, 1, 4) argument
272 #define ANA_VLAN_CFG(g) __REG(TARGET_ANA, 0, 1, 28672, g, 9, 128, 0, 0, 1, 4) argument
305 #define ANA_DROP_CFG(g) __REG(TARGET_ANA, 0, 1, 28672, g, 9, 128, 4, 0, 1, 4) argument
332 #define ANA_QOS_CFG(g) __REG(TARGET_ANA, 0, 1, 28672, g, 9, 128, 8, 0, 1, 4) argument
365 #define ANA_VCAP_CFG(g) __REG(TARGET_ANA, 0, 1, 28672, g, 9, 128, 12, 0, 1, 4) argument
374 #define ANA_VCAP_S1_CFG(g, r) __REG(TARGET_ANA, 0, 1, 28672, g, 9, 128, 16, r, 3, 4) argument
401 #define ANA_VCAP_S2_CFG(g) __REG(TARGET_ANA, 0, 1, 28672, g, 9, 128, 28, 0, 1, 4) argument
[all …]
/linux/lib/crypto/
H A Dsha256.c64 #define SHA256_ROUND(i, a, b, c, d, e, f, g, h) do { \ argument
66 t1 = h + e1(e) + Ch(e, f, g) + SHA256_K[i] + W[i]; \
74 u32 a, b, c, d, e, f, g, h; in sha256_transform() local
103 e = state[4]; f = state[5]; g = state[6]; h = state[7]; in sha256_transform()
107 SHA256_ROUND(i + 0, a, b, c, d, e, f, g, h); in sha256_transform()
108 SHA256_ROUND(i + 1, h, a, b, c, d, e, f, g); in sha256_transform()
109 SHA256_ROUND(i + 2, g, h, a, b, c, d, e, f); in sha256_transform()
110 SHA256_ROUND(i + 3, f, g, h, a, b, c, d, e); in sha256_transform()
111 SHA256_ROUND(i + 4, e, f, g, h, a, b, c, d); in sha256_transform()
112 SHA256_ROUND(i + 5, d, e, f, g, h, a, b, c); in sha256_transform()
[all …]

12345678910>>...66