Home
last modified time | relevance | path

Searched refs:GET_BITS (Results 1 – 7 of 7) sorted by relevance

/openbmc/u-boot/include/
H A Dedid.h26 #define GET_BITS(_x, _pos_msb, _pos_lsb) \ macro
47 ((GET_BITS((_x).horizontal_active_blanking_hi, 7, 4) << 8) + \
50 ((GET_BITS((_x).horizontal_active_blanking_hi, 3, 0) << 8) + \
56 ((GET_BITS((_x).vertical_active_blanking_hi, 7, 4) << 8) + \
59 ((GET_BITS((_x).vertical_active_blanking_hi, 3, 0) << 8) + \
66 ((GET_BITS((_x).hsync_vsync_offset_pulse_width_hi, 7, 6) << 8) + \
69 ((GET_BITS((_x).hsync_vsync_offset_pulse_width_hi, 5, 4) << 8) + \
72 ((GET_BITS((_x).hsync_vsync_offset_pulse_width_hi, 3, 2) << 4) + \
73 GET_BITS((_x).vsync_offset_pulse_width, 7, 4))
75 ((GET_BITS((_x).hsync_vsync_offset_pulse_width_hi, 1, 0) << 4) + \
[all …]
/openbmc/linux/drivers/net/ethernet/apm/xgene-v2/
H A Dmain.c96 addr_hi = GET_BITS(NEXT_DESC_ADDRH, le64_to_cpu(raw_desc->m1)); in xge_refill_buffers()
97 addr_lo = GET_BITS(NEXT_DESC_ADDRL, le64_to_cpu(raw_desc->m1)); in xge_refill_buffers()
165 if (GET_BITS(E, le64_to_cpu(raw_desc->m0)) && in is_tx_slot_available()
166 (GET_BITS(PKT_SIZE, le64_to_cpu(raw_desc->m0)) == SLOT_EMPTY)) in is_tx_slot_available()
203 addr_hi = GET_BITS(NEXT_DESC_ADDRH, le64_to_cpu(raw_desc->m1)); in xge_start_xmit()
204 addr_lo = GET_BITS(NEXT_DESC_ADDRL, le64_to_cpu(raw_desc->m1)); in xge_start_xmit()
229 if (GET_BITS(E, le64_to_cpu(raw_desc->m0)) && in is_tx_hw_done()
230 !GET_BITS(PKT_SIZE, le64_to_cpu(raw_desc->m0))) in is_tx_hw_done()
252 if (!GET_BITS(TXPKTCOUNT, data)) in xge_txc_poll()
303 if (!GET_BITS(RXPKTCOUNT, data)) in xge_rx_poll()
[all …]
H A Dring.h98 #define GET_BITS(field, src) \ macro
/openbmc/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-common.h1448 #define GET_BITS(_var, _index, _width) \ macro
1476 GET_BITS((_var), \
1506 GET_BITS(XGMAC_IOREAD((_pdata), _reg), \
1531 GET_BITS(XGMAC_MTL_IOREAD((_pdata), (_n), _reg), \
1556 GET_BITS(XGMAC_DMA_IOREAD((_channel), _reg), \
1576 GET_BITS((_var), \
1601 GET_BITS((_var), \
1614 GET_BITS(XSIR0_IOREAD((_pdata), _reg), \
1634 GET_BITS(XSIR1_IOREAD((_pdata), _reg), \
1657 GET_BITS(XRXTX_IOREAD((_pdata), _reg), \
[all …]
H A Dxgbe-dev.c3325 tx_status = GET_BITS(tx_status, tx_pos, DMA_DSR_TPS_WIDTH); in xgbe_prepare_tx_stop()
/openbmc/u-boot/lib/bzip2/
H A Dbzlib_decompress.c86 #define GET_BITS(lll,vvv,nnn) \ macro
111 GET_BITS(lll,uuu,8)
114 GET_BITS(lll,uuu,1)
132 GET_BITS(label1, zvec, zn); \
249 GET_BITS(BZ_X_MAGIC_4, s->blockSize100k, 8) in BZ2_decompress()
294 GET_BITS(BZ_X_RANDBIT, s->blockRandomised, 1); in BZ2_decompress()
330 GET_BITS(BZ_X_SELECTOR_1, nGroups, 3); in BZ2_decompress()
332 GET_BITS(BZ_X_SELECTOR_2, nSelectors, 15); in BZ2_decompress()
361 GET_BITS(BZ_X_CODING_1, curr, 5); in BZ2_decompress()
/openbmc/linux/arch/ia64/kernel/
H A Dptrace.c75 # define GET_BITS(first, last, unat) \ in ia64_get_scratch_nat_bits() macro
94 val = GET_BITS( 1, 1, scratch_unat); in ia64_get_scratch_nat_bits()
95 val |= GET_BITS( 2, 3, scratch_unat); in ia64_get_scratch_nat_bits()
96 val |= GET_BITS(12, 13, scratch_unat); in ia64_get_scratch_nat_bits()
97 val |= GET_BITS(14, 14, scratch_unat); in ia64_get_scratch_nat_bits()
98 val |= GET_BITS(15, 15, scratch_unat); in ia64_get_scratch_nat_bits()
99 val |= GET_BITS( 8, 11, scratch_unat); in ia64_get_scratch_nat_bits()
100 val |= GET_BITS(16, 31, scratch_unat); in ia64_get_scratch_nat_bits()
103 # undef GET_BITS in ia64_get_scratch_nat_bits()