Home
last modified time | relevance | path

Searched refs:_width (Results 1 – 10 of 10) sorted by relevance

/freebsd-12.1/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_value_prf.c589 #define NV_ENCODE_INT(_width) do { \ in bhnd_nvram_val_vprintf() argument
590 arg_type = (is_signed) ? BHND_NVRAM_TYPE_INT ## _width : \ in bhnd_nvram_val_vprintf()
591 BHND_NVRAM_TYPE_UINT ## _width; \ in bhnd_nvram_val_vprintf()
592 arg_size = sizeof(v.u ## _width); \ in bhnd_nvram_val_vprintf()
594 &v.u ## _width, &arg_size, arg_type); \ in bhnd_nvram_val_vprintf()
602 if (v.i ## _width < 0) { \ in bhnd_nvram_val_vprintf()
604 numval = (int64_t)-(v.i ## _width); \ in bhnd_nvram_val_vprintf()
606 numval = (int64_t) (v.i ## _width); \ in bhnd_nvram_val_vprintf()
609 numval = v.u ## _width; \ in bhnd_nvram_val_vprintf()
/freebsd-12.1/sys/dev/axgbe/
H A Dxgbe-common.h1076 #define GET_BITS(_var, _index, _width) \ argument
1077 (((_var) >> (_index)) & ((0x1 << (_width)) - 1))
1079 #define SET_BITS(_var, _index, _width, _val) \ argument
1081 (_var) &= ~(((0x1 << (_width)) - 1) << (_index)); \
1082 (_var) |= (((_val) & ((0x1 << (_width)) - 1)) << (_index)); \
1085 #define GET_BITS_LE(_var, _index, _width) \ argument
1086 ((le32_to_cpu((_var)) >> (_index)) & ((0x1 << (_width)) - 1))
1088 #define SET_BITS_LE(_var, _index, _width, _val) \ argument
1090 (_var) &= cpu_to_le32(~(((0x1 << (_width)) - 1) << (_index))); \
1092 ((0x1 << (_width)) - 1)) << (_index))); \
/freebsd-12.1/sys/dev/hwpmc/
H A Dhwpmc_uncore.h119 int pmc_ucf_initialize(struct pmc_mdep *_md, int _maxcpu, int _npmc, int _width);
122 int pmc_ucp_initialize(struct pmc_mdep *_md, int _maxcpu, int _npmc, int _width,
H A Dhwpmc_core.h189 int pmc_iaf_initialize(struct pmc_mdep *_md, int _maxcpu, int _npmc, int _width);
192 int pmc_iap_initialize(struct pmc_mdep *_md, int _maxcpu, int _npmc, int _width,
/freebsd-12.1/sys/dev/bhnd/tools/
H A Dnvram_map_gen.awk791 _width, _offset, _delta)
823 _delta % _width == 0 &&
824 (_delta/_width) <= SPROM_OP_IMM_MAX)
829 value = (_delta / _width)
867 } else if (value % _width == 0 && (value / _width) <= UInt8Max) {
1115 _width = get(_type, p_width)
1123 set(_obj, p_width, _width)
1153 _width = get(bind, p_width)
1170 if ((_delta % _width) != 0)
1174 _skip_in = _delta / _width
[all …]
/freebsd-12.1/lib/libpmc/
H A Dpmc.h96 int pmc_width(pmc_id_t _pmc, uint32_t *_width);
/freebsd-12.1/sys/arm/allwinner/clkng/
H A Daw_clk.h432 _offset, _shift, _width) \ argument
442 .width = _width, \
/freebsd-12.1/sys/dev/bhnd/
H A Dbhnd.h265 #define BHND_DMA_ADDR_BITMASK(_width) \ argument
266 ((_width >= 64) ? ~0ULL : \
267 (_width == 0) ? 0x0 : \
268 ((1ULL << (_width)) - 1)) \
/freebsd-12.1/sys/ofed/drivers/infiniband/core/
H A Dib_sysfs.c421 #define PORT_PMA_ATTR(_name, _counter, _width, _offset) \ argument
424 .index = (_offset) | ((_width) << 16) | ((_counter) << 24), \
428 #define PORT_PMA_ATTR_EXT(_name, _width, _offset) \ argument
431 .index = (_offset) | ((_width) << 16), \
/freebsd-12.1/sys/contrib/alpine-hal/
H A Dal_hal_serdes_25g.c760 int _width = 0; in al_serdes_25g_calc_eye_size() local
818 i++, (_width)++) in al_serdes_25g_calc_eye_size()
822 i--, (_width)++) in al_serdes_25g_calc_eye_size()
826 *width = _width; in al_serdes_25g_calc_eye_size()