Home
last modified time | relevance | path

Searched refs:bitfield (Results 1 – 25 of 93) sorted by relevance

1234

/openbmc/linux/drivers/gpu/drm/i2c/
H A Dch7006_priv.h141 #define __mask(src, bitfield) \ argument
142 (((2 << (1 ? bitfield)) - 1) & ~((1 << (0 ? bitfield)) - 1))
143 #define mask(bitfield) __mask(bitfield) argument
145 #define __bitf(src, bitfield, x) \ argument
146 (((x) >> (src) << (0 ? bitfield)) & __mask(src, bitfield))
147 #define bitf(bitfield, x) __bitf(bitfield, x) argument
148 #define bitfs(bitfield, s) __bitf(bitfield, bitfield##_##s) argument
149 #define setbitf(state, reg, bitfield, x) \ argument
150 state->regs[reg] = (state->regs[reg] & ~mask(reg##_##bitfield)) \
151 | bitf(reg##_##bitfield, x)
[all …]
/openbmc/linux/drivers/media/test-drivers/vidtv/
H A Dvidtv_psi.h151 __be16 bitfield; /* syntax: 1, zero: 1, one: 2, section_length: 13 */ member
167 __be16 bitfield; /* reserved: 3, program_map_pid/network_pid: 13 */ member
191 __be16 bitfield; /* running_status: 3, free_ca:1, desc_loop_len:12 */ member
232 __be16 bitfield; /* reserved: 3, elementary_pid: 13 */ member
244 __be16 bitfield; /* reserved:3, pcr_pid: 13 */ member
655 __be16 bitfield; /* desc_len: 12, reserved: 4 */ member
672 __be16 bitfield; /* network_desc_len: 12, reserved:4 */ member
725 __be16 bitfield; /* desc_length: 12, free_CA_mode: 1, running_status: 1 */ member
H A Dvidtv_psi.c100 return be16_to_cpu(h->bitfield) & mask; in vidtv_psi_get_sec_len()
109 return be16_to_cpu(p->bitfield) & mask; in vidtv_psi_get_pat_program_pid()
118 return be16_to_cpu(s->bitfield) & mask; in vidtv_psi_pmt_stream_get_elem_pid()
121 static void vidtv_psi_set_desc_loop_len(__be16 *bitfield, u16 new_len, in vidtv_psi_set_desc_loop_len() argument
129 new = cpu_to_be16((be16_to_cpu(*bitfield) & mask) | new_len); in vidtv_psi_set_desc_loop_len()
130 *bitfield = new; in vidtv_psi_set_desc_loop_len()
141 new = cpu_to_be16((be16_to_cpu(h->bitfield) & mask) | new_len); in vidtv_psi_set_sec_len()
149 h->bitfield = new; in vidtv_psi_set_sec_len()
162 .bitfield = cpu_to_be16((args->new_psi_section << 14) | args->pid), in vidtv_psi_ts_psi_write_into()
879 vidtv_psi_set_desc_loop_len(&s->bitfield, desc_loop_len, 12); in vidtv_psi_sdt_table_update_sec_len()
[all …]
H A Dvidtv_pes.h63 __be16 bitfield; member
69 __be32 bitfield; /* packet_start_code_prefix:24, stream_id: 8 */ member
H A Dvidtv_ts.c57 ts_header.bitfield = cpu_to_be16(TS_NULL_PACKET_PID); in vidtv_ts_null_write_into()
93 ts_header.bitfield = cpu_to_be16(args.pid); in vidtv_ts_pcr_write_into()
H A Dvidtv_pes.c141 pes_header.bitfield = cpu_to_be32((PES_START_CODE_PREFIX << 8) | stream_id); in vidtv_pes_write_h()
152 pes_optional.bitfield = cpu_to_be16(pes_opt_bitfield); in vidtv_pes_write_h()
280 ts_header.bitfield = cpu_to_be16((payload_start << 14) | args.pid); in vidtv_pes_write_ts_h()
H A Dvidtv_s302m.h63 __be32 bitfield; member
H A Dvidtv_ts.h40 __be16 bitfield; /* tei: 1, payload_start:1 priority: 1, pid:13 */ member
/openbmc/u-boot/board/hisilicon/hikey/
H A Dhikey.c149 void hi6220_clk_enable(u32 bitfield, unsigned int *clk_base) in hi6220_clk_enable() argument
154 data |= bitfield; in hi6220_clk_enable()
156 writel(bitfield, clk_base); in hi6220_clk_enable()
159 } while ((data & bitfield) == 0); in hi6220_clk_enable()
165 void hi6220_clk_disable(u32 bitfield, unsigned int *clk_base) in hi6220_clk_disable() argument
170 data |= bitfield; in hi6220_clk_disable()
175 } while (data & bitfield); in hi6220_clk_disable()
/openbmc/qemu/target/mips/tcg/
H A Docteon.decode33 @bitfield ...... rs:5 rt:5 lenm1:5 ..... ..... . p=%bitfield_p
37 EXTS 011100 ..... ..... ..... ..... 11101 . @bitfield
38 CINS 011100 ..... ..... ..... ..... 11001 . @bitfield
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/ippool/ippool/
H A D0001-Use-unsigned-int-type-for-1-bit-integer-bitfield.patch4 Subject: [PATCH] Use unsigned int type for 1-bit integer bitfield
7 A signed bitfield composed of one bit can therefore store a value in the range -1 to 0.
8 Assigning a value of 1 to such a bitfield should produce a warning since it is out of range of repr…
/openbmc/linux/arch/x86/include/asm/
H A Dapicdef.h255 /*170*/ u32 bitfield; member
260 /*1F0*/ u32 bitfield; member
265 /*270*/ u32 bitfield; member
/openbmc/linux/drivers/mux/
H A DKconfig49 tristate "MMIO/Regmap register bitfield-controlled Multiplexer"
52 MMIO/Regmap register bitfield-controlled Multiplexer controller.
/openbmc/linux/Documentation/trace/coresight/
H A Dcoresight-etm4x-reference.rst30 ``echo bitfield > mode``
32 bitfield up to 32 bits setting trace features.
298 ``echo bitfield > ns_exlevel_viinst``
300 Where bitfield contains bits to set clear for EL0 to EL2
533 ``echo bitfield > event_instren``
535 Where bitfield is up to 4 bits according to number of event fields.
648 This is a bitfield selection parameter that sets the overall trace mode for the
/openbmc/ipmitool/lib/
H A Dipmi_hpmfwupg.c344 generalPropResp.GeneralCompProperties.bitfield.rollbackBackup; in HpmfwupgTargetCheck()
346 generalPropResp.GeneralCompProperties.bitfield.payloadColdReset; in HpmfwupgTargetCheck()
348 generalPropResp.GeneralCompProperties.bitfield.deferredActivation; in HpmfwupgTargetCheck()
875 && pFwupgCtx->genCompProp[componentId].GeneralCompProperties.bitfield.rollbackBackup == 0) { in HpmfwupgPreUpgradeCheck()
895 … && pFwupgCtx->genCompProp[componentId].GeneralCompProperties.bitfield.preparationSupport == 0) { in HpmfwupgPreUpgradeCheck()
1303 …&& !pFwupgCtx->genCompProp[pFwupgCtx->componentId].GeneralCompProperties.bitfield.comparisonSuppor… in HpmFwupgActionUploadFirmware()
1375 …&& (pFwupgCtx->genCompProp[pFwupgCtx->componentId].GeneralCompProperties.bitfield.rollbackBackup !… in HpmfwupgActivationStage()
1559 … pCtx->resp.Response.generalPropResp.GeneralCompProperties.bitfield.payloadColdReset ? 'y' : 'n'); in HpmfwupgGetComponentProperties()
1561 …pCtx->resp.Response.generalPropResp.GeneralCompProperties.bitfield.deferredActivation ? 'y' : 'n'); in HpmfwupgGetComponentProperties()
1563 … pCtx->resp.Response.generalPropResp.GeneralCompProperties.bitfield.comparisonSupport ? 'y' : 'n'); in HpmfwupgGetComponentProperties()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/gpio/
H A Dgpio-thunderx.txt8 - Second cell is a standard generic flag bitfield as described in gpio.txt.
/openbmc/linux/Documentation/devicetree/bindings/soc/fsl/cpm_qe/qe/
H A Dfirmware.txt13 - extended-modes: The Extended Modes bitfield, taken from the
/openbmc/libcper/include/libcper/
H A Dcper-utils.h48 json_object *bitfield_to_ir(UINT64 bitfield, int num_fields,
/openbmc/qemu/target/hexagon/imported/
H A Dshift.idef300 ATTRIBS(), "Split a bitfield into two registers",
307 ATTRIBS(), "Split a bitfield into two registers",
318 ATTRIBS(), "Extract signed bitfield",
327 ATTRIBS(), "Extract unsigned bitfield",
347 ATTRIBS(), "Extract signed bitfield",
356 ATTRIBS(), "Extract unsigned bitfield",
394 ATTRIBS(), "Extract signed bitfield",
404 ATTRIBS(), "Extract unsigned bitfield",
429 ATTRIBS(), "Extract signed bitfield",
438 ATTRIBS(), "Extract unsigned bitfield",
/openbmc/libcper/
H A Dcper-utils.c189 //Converts the given 64 bit bitfield to IR, assuming bit 0 starts on the left. in bitfield_to_ir() argument
190 json_object *bitfield_to_ir(UINT64 bitfield, int num_fields, in bitfield_to_ir()
196 json_object_new_boolean((bitfield >> i) & in bitfield_to_ir()
227 //Converts the given IR bitfield into a standard UINT64 bitfield, with fields beginning from bit 0. in ir_to_bitfield()
/openbmc/u-boot/scripts/
H A DMakefile.extrawarn46 warning-3 += $(call cc-option, -Wpacked-bitfield-compat)
/openbmc/linux/Documentation/bpf/
H A Dllvm_reloc.rst293 BPF_CORE_FIELD_LSHIFT_U64 = 4, /* bitfield-specific left bitshift */
294 BPF_CORE_FIELD_RSHIFT_U64 = 5, /* bitfield-specific right bitshift */
307 supposed to be used to read bitfield values using the following
312 // To read bitfield ``f`` from ``struct s``
474 *g = __builtin_preserve_field_info(s->c, 4 /* bitfield left shift */);
475 *g = __builtin_preserve_field_info(s->c, 5 /* bitfield right shift */);
H A Dbtf.rst152 type. For example, a 4-bit bitfield encodes ``BTF_INT_BITS()`` equals to 4.
157 for this int. For example, a bitfield struct member has:
166 Alternatively, the bitfield struct member can be the following to access the
174 bitfield encoding. Currently, both llvm and pahole generate
258 of the member. Note that the base type of the bitfield can only be int or enum
259 type. If the bitfield size is 32, the base type can be either int or enum
260 type. If the bitfield size is not 32, the base type must be int, and int type
261 ``BTF_INT_BITS()`` encodes the bitfield size.
264 bitfield size and bit offset. The bitfield size and bit offset are calculated
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/
H A D0011-efi-corstone1000-fwu-introduce-EFI-capsule-update.patch129 +#include <linux/bitfield.h>
148 +#include <linux/bitfield.h>
327 +#include <linux/bitfield.h>
/openbmc/linux/tools/lib/bpf/
H A Drelo_core.c689 bool bitfield; in bpf_core_calc_field_relo() local
735 bitfield = bit_sz > 0; in bpf_core_calc_field_relo()
736 if (bitfield) { in bpf_core_calc_field_relo()
764 *validate = !bitfield; in bpf_core_calc_field_relo()
769 if (!bitfield) { in bpf_core_calc_field_relo()

1234