Home
last modified time | relevance | path

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

12345678910>>...56

/linux/Documentation/userspace-api/media/v4l/
H A Duser-func.rst18 vidioc-dbg-g-chip-info
19 vidioc-dbg-g-register
35 vidioc-g-audio
36 vidioc-g-audioout
37 vidioc-g-crop
38 vidioc-g-ctrl
39 vidioc-g-dv-timings
40 vidioc-g-edid
41 vidioc-g-enc-index
42 vidioc-g-ext-ctrls
[all …]
H A Dpixfmt-rgb.rst46 - 'r', 'g' and 'b' denote bits of the red, green and blue components
131 - g\ :sub:`2`
132 - g\ :sub:`1`
133 - g\ :sub:`0`
142 - g\ :sub:`3`
143 - g\ :sub:`2`
144 - g\ :sub:`1`
145 - g\ :sub:`0`
165 - g\ :sub:`3`
166 - g\ :sub:`2`
[all …]
/linux/drivers/gpio/
H A Dgpio-davinci.c81 struct davinci_gpio_regs __iomem *g; in __davinci_direction() local
87 g = d->regs[bank]; in __davinci_direction()
89 temp = readl_relaxed(&g->dir); in __davinci_direction()
92 writel_relaxed(mask, value ? &g->set_data : &g->clr_data); in __davinci_direction()
96 writel_relaxed(temp, &g->dir); in __davinci_direction()
116 struct davinci_gpio_regs __iomem *g; in davinci_get_direction() local
120 g = d->regs[bank]; in davinci_get_direction()
124 val = readl_relaxed(&g->dir); in davinci_get_direction()
139 struct davinci_gpio_regs __iomem *g; in davinci_gpio_get() local
142 g = d->regs[bank]; in davinci_gpio_get()
[all …]
H A Dgpio-bd71815.c129 struct bd71815_gpio *g; in gpo_bd71815_probe() local
140 g = devm_kzalloc(dev, sizeof(*g), GFP_KERNEL); in gpo_bd71815_probe()
141 if (!g) in gpo_bd71815_probe()
144 g->chip = bd71815gpo_chip; in gpo_bd71815_probe()
157 g->chip.ngpio = 2; in gpo_bd71815_probe()
159 g->chip.ngpio = 1; in gpo_bd71815_probe()
161 g->chip.init_valid_mask = bd71815_init_valid_mask; in gpo_bd71815_probe()
162 g->chip.base = -1; in gpo_bd71815_probe()
163 g->chip.parent = parent; in gpo_bd71815_probe()
164 g->regmap = dev_get_regmap(parent, NULL); in gpo_bd71815_probe()
[all …]
H A Dgpio-bd72720.c183 struct bd72720_gpio *g = gpiochip_get_data(gc); in bd72720_valid_mask() local
200 dev_err(g->dev, "pin %d (%s), bad configuration\n", i, in bd72720_valid_mask()
208 dev_warn(g->dev, in bd72720_valid_mask()
215 g->gpio_is_input |= BIT(i); in bd72720_valid_mask()
240 struct bd72720_gpio *g; in gpo_bd72720_probe() local
251 g = devm_kzalloc(dev, sizeof(*g), GFP_KERNEL); in gpo_bd72720_probe()
252 if (!g) in gpo_bd72720_probe()
255 g->chip = bd72720gpo_chip; in gpo_bd72720_probe()
256 g in gpo_bd72720_probe()
[all...]
/linux/drivers/gpu/drm/vkms/tests/
H A Dvkms_color_test.c167 ref.g = 0xffff; in vkms_color_ctm_3x4_50_desat()
178 ref.g = 0x0; in vkms_color_ctm_3x4_50_desat()
189 ref.g = 0x8000; in vkms_color_ctm_3x4_50_desat()
200 ref.g = 0x4000; in vkms_color_ctm_3x4_50_desat()
205 out.g = 0x0; in vkms_color_ctm_3x4_50_desat()
233 out.g = 0xffff; in vkms_color_ctm_3x4_bt709()
243 KUNIT_EXPECT_LT(test, out.g, 0x0100); in vkms_color_ctm_3x4_bt709()
251 out.g = 0x0; in vkms_color_ctm_3x4_bt709()
260 KUNIT_EXPECT_LT(test, out.g, 0x0100); in vkms_color_ctm_3x4_bt709()
268 out.g = 0x7fff; in vkms_color_ctm_3x4_bt709()
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_color_mgmt.c60 * publish the largest size, and sub-sample smaller sized LUTs (e.g. for
95 * largest size, and sub-sample smaller sized LUTs (e.g. for split-gamma
619 DRM_DEBUG_KMS("All LUT entries must have equal r/g/b\n"); in drm_color_lut_check()
675 u16 r, g, b; in drm_crtc_load_gamma_565_from_888() local
679 g = lut[i * 4 + i / 16].green; in drm_crtc_load_gamma_565_from_888()
681 set_gamma(crtc, i, r, g, b); in drm_crtc_load_gamma_565_from_888()
685 g = lut[i * 4 + i / 16].green; in drm_crtc_load_gamma_565_from_888()
686 set_gamma(crtc, i, 0, g, 0); in drm_crtc_load_gamma_565_from_888()
705 u16 r, g, b; in drm_crtc_load_gamma_555_from_888() local
709 g in drm_crtc_load_gamma_555_from_888()
716 fill_gamma_888(struct drm_crtc * crtc,unsigned int i,u16 r,u16 g,u16 b,drm_crtc_set_lut_func set_gamma) fill_gamma_888() argument
742 fill_gamma_565(struct drm_crtc * crtc,unsigned int i,u16 r,u16 g,u16 b,drm_crtc_set_lut_func set_gamma) fill_gamma_565() argument
771 fill_gamma_555(struct drm_crtc * crtc,unsigned int i,u16 r,u16 g,u16 b,drm_crtc_set_lut_func set_gamma) fill_gamma_555() argument
820 fill_palette_332(struct drm_crtc * crtc,u16 r,u16 g,u16 b,drm_crtc_set_lut_func set_palette) fill_palette_332() argument
842 unsigned int r, g, b; drm_crtc_fill_palette_332() local
[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_obj(*g); 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/drivers/gpu/drm/msm/dp/
H A Ddp_utils.c15 u8 g[4]; in msm_dp_utils_get_g0_value() local
22 g[0] = c[3]; in msm_dp_utils_get_g0_value()
23 g[1] = c[0] ^ c[3]; in msm_dp_utils_get_g0_value()
24 g[2] = c[1]; in msm_dp_utils_get_g0_value()
25 g[3] = c[2]; in msm_dp_utils_get_g0_value()
28 ret_data = ((g[i] & 0x01) << i) | ret_data; in msm_dp_utils_get_g0_value()
36 u8 g[4]; in msm_dp_utils_get_g1_value() local
43 g[0] = c[0] ^ c[3]; in msm_dp_utils_get_g1_value()
44 g[1] = c[0] ^ c[1] ^ c[3]; in msm_dp_utils_get_g1_value()
45 g[2] = c[1] ^ c[2]; in msm_dp_utils_get_g1_value()
[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()
275 host1x_bo_put(g->bo); in pin_job()
281 static int do_relocs(struct host1x_job *job, struct host1x_job_gather *g) in do_relocs()
284 struct host1x_bo *cmdbuf = g->bo; in do_relocs()
301 g in do_relocs()
279 do_relocs(struct host1x_job * job,struct host1x_job_gather * g) do_relocs() argument
456 validate(struct host1x_firewall * fw,struct host1x_job_gather * g) validate() argument
539 struct host1x_job_gather *g; copy_gathers() local
567 struct host1x_job_gather *g; copy_gathers() local
617 struct host1x_job_gather *g; host1x_job_pin() local
[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/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/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 __always_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/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/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/powerpc/
H A Dcurve25519.h19 asmlinkage void x25519_fe51_mul(fe51 h, const fe51 f, const fe51 g);
32 static void fadd(fe51 h, const fe51 f, const fe51 g) in fadd() argument
34 h[0] = f[0] + g[0]; in fadd()
35 h[1] = f[1] + g[1]; in fadd()
36 h[2] = f[2] + g[2]; in fadd()
37 h[3] = f[3] + g[3]; in fadd()
38 h[4] = f[4] + g[4]; in fadd()
49 static void fsub(fe51 h, const fe51 f, const fe51 g) in fsub() argument
51 h[0] = (f[0] + ((prime51[0] * 2))) - g[0]; in fsub()
52 h[1] = (f[1] + ((prime51[1] * 2))) - g[1]; in fsub()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dipsec_fs_roce.c17 struct mlx5_flow_group *g; member
33 struct mlx5_flow_group *g; member
356 struct mlx5_flow_group *g; in ipsec_fs_roce_tx_mpv_create_group_rules()
368 g = mlx5_create_flow_group(roce->ft, in); in ipsec_fs_roce_tx_mpv_create_group_rules()
369 if (IS_ERR(g)) { in ipsec_fs_roce_tx_mpv_create_group_rules()
370 err = PTR_ERR(g); in ipsec_fs_roce_tx_mpv_create_group_rules()
374 roce->g = g; in ipsec_fs_roce_tx_mpv_create_group_rules()
385 mlx5_destroy_flow_group(roce->g); in ipsec_fs_roce_tx_mpv_create()
460 struct mlx5_flow_group *g; in ipsec_fs_roce_rx_mpv_create()
346 struct mlx5_flow_group *g; ipsec_fs_roce_tx_mpv_create_group_rules() local
450 struct mlx5_flow_group *g; ipsec_fs_roce_rx_mpv_create() local
608 struct mlx5_flow_group *g; mlx5_ipsec_fs_roce_tx_create() local
718 struct mlx5_flow_group *g; mlx5_ipsec_fs_roce_rx_create() local
[all...]
H A Dfs_ttc.c37 struct mlx5_flow_group **g; member
477 ttc->g[ttc->num_groups] = mlx5_create_flow_group(ttc->t, in); in mlx5_create_ttc_table_ipsec_groups()
478 if (IS_ERR(ttc->g[ttc->num_groups])) in mlx5_create_ttc_table_ipsec_groups()
495 ttc->g[ttc->num_groups] = mlx5_create_flow_group(ttc->t, in); in mlx5_create_ttc_table_ipsec_groups()
496 if (IS_ERR(ttc->g[ttc->num_groups])) in mlx5_create_ttc_table_ipsec_groups()
516 ttc->g[ttc->num_groups] = mlx5_create_flow_group(ttc->t, in); in mlx5_create_ttc_table_ipsec_groups()
517 if (IS_ERR(ttc->g[ttc->num_groups])) in mlx5_create_ttc_table_ipsec_groups()
526 return PTR_ERR(ttc->g[ttc->num_groups]); in mlx5_create_ttc_table_ipsec_groups()
539 ttc->g = kzalloc_objs(*ttc->g, groups->num_groups); in mlx5_create_ttc_table_groups()
540 if (!ttc->g) in mlx5_create_ttc_table_groups()
[all …]
/linux/drivers/usb/gadget/function/
H A Du_ether.h91 struct eth_dev *gether_setup_name(struct usb_gadget *g,
108 static inline struct eth_dev *gether_setup(struct usb_gadget *g, in gether_setup() argument
112 return gether_setup_name(g, dev_addr, host_addr, ethaddr, qmult, "usb"); in gether_setup()
151 void gether_set_gadget(struct net_device *net, struct usb_gadget *g);
164 int gether_attach_gadget(struct net_device *net, struct usb_gadget *g);
309 static inline unsigned int gether_bitrate(struct usb_gadget *g) in gether_bitrate() argument
311 if (g->speed >= USB_SPEED_SUPER_PLUS) in gether_bitrate()
313 if (g->speed == USB_SPEED_SUPER) in gether_bitrate()
315 else if (g->speed == USB_SPEED_HIGH) in gether_bitrate()
/linux/drivers/usb/mtu3/
H A Dmtu3_gadget.c30 usb_gadget_unmap_request(&mtu->g, req, mep->is_in); in mtu3_req_complete()
75 switch (mtu->g.speed) { in mtu3_ep_enable()
298 ret = usb_gadget_map_request(&mtu->g, req, mep->is_in); in mtu3_gadget_queue()
455 if (mtu->g.speed >= USB_SPEED_SUPER) { in mtu3_gadget_wakeup()
524 mtu->g.name, mtu->gadget_driver->driver.name); in mtu3_gadget_start()
551 if (mtu->g.speed == USB_SPEED_UNKNOWN) in stop_activity()
554 mtu->g.speed = USB_SPEED_UNKNOWN; in stop_activity()
574 driver->disconnect(&mtu->g); in stop_activity()
579 static int mtu3_gadget_stop(struct usb_gadget *g) in mtu3_gadget_stop() argument
581 struct mtu3 *mtu = gadget_to_mtu3(g); in mtu3_gadget_stop()
[all …]
/linux/drivers/pinctrl/
H A Dpinctrl-palmas.c561 const struct palmas_pingroup *g; in palmas_pinctrl_get_pin_mux() local
567 g = &pci->pin_groups[i]; in palmas_pinctrl_get_pin_mux()
568 if (g->mux_reg_base == PALMAS_NONE_BASE) { in palmas_pinctrl_get_pin_mux()
572 ret = palmas_read(pci->palmas, g->mux_reg_base, in palmas_pinctrl_get_pin_mux()
573 g->mux_reg_add, &val); in palmas_pinctrl_get_pin_mux()
576 g->mux_reg_add, ret); in palmas_pinctrl_get_pin_mux()
579 val &= g->mux_reg_mask; in palmas_pinctrl_get_pin_mux()
580 pci->pins_current_opt[i] = val >> g->mux_bit_shift; in palmas_pinctrl_get_pin_mux()
679 const struct palmas_pingroup *g; in palmas_pinctrl_set_mux() local
683 g = &pci->pin_groups[group]; in palmas_pinctrl_set_mux()
[all …]
/linux/drivers/pinctrl/intel/
H A Dpinctrl-intel.h80 #define INTEL_GPP(r, s, e, g) \ argument
85 .gpio_base = (g), \
155 #define __INTEL_COMMUNITY(b, s, e, g, n, gs, gn, soc) \ argument
167 .gpps = (g), \
171 #define INTEL_COMMUNITY_GPPS(b, s, e, g, soc) \ argument
172 __INTEL_COMMUNITY(b, s, e, g, ARRAY_SIZE(g), 0, 0, soc)
196 #define FUNCTION(n, g) \ argument
198 .func = PINCTRL_PINFUNCTION((n), (g), ARRAY_SIZE(g)), \
/linux/arch/arm64/boot/dts/freescale/
H A 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"
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
H A Dingress_lgcy.c23 struct mlx5_flow_group *g; in esw_acl_ingress_lgcy_groups_create() local
42 g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in); in esw_acl_ingress_lgcy_groups_create()
43 if (IS_ERR(g)) { in esw_acl_ingress_lgcy_groups_create()
44 err = PTR_ERR(g); in esw_acl_ingress_lgcy_groups_create()
49 vport->ingress.legacy.allow_untagged_spoofchk_grp = g; in esw_acl_ingress_lgcy_groups_create()
58 g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in); in esw_acl_ingress_lgcy_groups_create()
59 if (IS_ERR(g)) { in esw_acl_ingress_lgcy_groups_create()
60 err = PTR_ERR(g); in esw_acl_ingress_lgcy_groups_create()
65 vport->ingress.legacy.allow_untagged_only_grp = g; in esw_acl_ingress_lgcy_groups_create()
75 g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in); in esw_acl_ingress_lgcy_groups_create()
[all …]

12345678910>>...56