Home
last modified time | relevance | path

Searched refs:FIELD_PREP (Results 1 – 25 of 292) sorted by relevance

12345678910>>...12

/Linux-v5.10/drivers/iio/adc/
Dstm32-dfsdm.h48 #define DFSDM_CHCFGR1_SITP(v) FIELD_PREP(DFSDM_CHCFGR1_SITP_MASK, v)
50 #define DFSDM_CHCFGR1_SPICKSEL(v) FIELD_PREP(DFSDM_CHCFGR1_SPICKSEL_MASK, v)
52 #define DFSDM_CHCFGR1_SCDEN(v) FIELD_PREP(DFSDM_CHCFGR1_SCDEN_MASK, v)
54 #define DFSDM_CHCFGR1_CKABEN(v) FIELD_PREP(DFSDM_CHCFGR1_CKABEN_MASK, v)
56 #define DFSDM_CHCFGR1_CHEN(v) FIELD_PREP(DFSDM_CHCFGR1_CHEN_MASK, v)
58 #define DFSDM_CHCFGR1_CHINSEL(v) FIELD_PREP(DFSDM_CHCFGR1_CHINSEL_MASK, v)
60 #define DFSDM_CHCFGR1_DATMPX(v) FIELD_PREP(DFSDM_CHCFGR1_DATMPX_MASK, v)
62 #define DFSDM_CHCFGR1_DATPACK(v) FIELD_PREP(DFSDM_CHCFGR1_DATPACK_MASK, v)
64 #define DFSDM_CHCFGR1_CKOUTDIV(v) FIELD_PREP(DFSDM_CHCFGR1_CKOUTDIV_MASK, v)
66 #define DFSDM_CHCFGR1_CKOUTSRC(v) FIELD_PREP(DFSDM_CHCFGR1_CKOUTSRC_MASK, v)
[all …]
/Linux-v5.10/drivers/misc/habanalabs/include/gaudi/
Dgaudi_masks.h15 (FIELD_PREP(DMA0_QM_GLBL_CFG0_PQF_EN_MASK, 0xF)) | \
16 (FIELD_PREP(DMA0_QM_GLBL_CFG0_CQF_EN_MASK, 0xF)) | \
17 (FIELD_PREP(DMA0_QM_GLBL_CFG0_CP_EN_MASK, 0xF)))
20 (FIELD_PREP(DMA0_QM_GLBL_PROT_PQF_MASK, 0xF)) | \
21 (FIELD_PREP(DMA0_QM_GLBL_PROT_CQF_MASK, 0xF)) | \
22 (FIELD_PREP(DMA0_QM_GLBL_PROT_CP_MASK, 0xF)) | \
23 (FIELD_PREP(DMA0_QM_GLBL_PROT_ERR_MASK, 0x1)))
26 (FIELD_PREP(DMA0_QM_GLBL_PROT_PQF_MASK, 0xF)) | \
27 (FIELD_PREP(DMA0_QM_GLBL_PROT_ERR_MASK, 0x1)))
30 (FIELD_PREP(DMA0_QM_GLBL_CFG0_PQF_EN_MASK, 0xF)) | \
[all …]
/Linux-v5.10/drivers/net/wireless/ath/ath11k/
Dhal_tx.c42 FIELD_PREP(BUFFER_ADDR_INFO0_ADDR, ti->paddr); in ath11k_hal_tx_cmd_desc_setup()
44 FIELD_PREP(BUFFER_ADDR_INFO1_ADDR, in ath11k_hal_tx_cmd_desc_setup()
47 FIELD_PREP(BUFFER_ADDR_INFO1_RET_BUF_MGR, in ath11k_hal_tx_cmd_desc_setup()
49 FIELD_PREP(BUFFER_ADDR_INFO1_SW_COOKIE, ti->desc_id); in ath11k_hal_tx_cmd_desc_setup()
52 FIELD_PREP(HAL_TCL_DATA_CMD_INFO0_DESC_TYPE, ti->type) | in ath11k_hal_tx_cmd_desc_setup()
53 FIELD_PREP(HAL_TCL_DATA_CMD_INFO0_ENCAP_TYPE, ti->encap_type) | in ath11k_hal_tx_cmd_desc_setup()
54 FIELD_PREP(HAL_TCL_DATA_CMD_INFO0_ENCRYPT_TYPE, in ath11k_hal_tx_cmd_desc_setup()
56 FIELD_PREP(HAL_TCL_DATA_CMD_INFO0_SEARCH_TYPE, in ath11k_hal_tx_cmd_desc_setup()
58 FIELD_PREP(HAL_TCL_DATA_CMD_INFO0_ADDR_EN, in ath11k_hal_tx_cmd_desc_setup()
60 FIELD_PREP(HAL_TCL_DATA_CMD_INFO0_CMD_NUM, in ath11k_hal_tx_cmd_desc_setup()
[all …]
Dhal_rx.c16 hdr->info0 = FIELD_PREP(HAL_DESC_HDR_INFO0_OWNER, owner) | in ath11k_hal_reo_set_desc_hdr()
17 FIELD_PREP(HAL_DESC_HDR_INFO0_BUF_TYPE, buffer_type); in ath11k_hal_reo_set_desc_hdr()
20 hdr->info0 |= FIELD_PREP(HAL_DESC_HDR_INFO0_DBG_RESERVED, magic); in ath11k_hal_reo_set_desc_hdr()
28 tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_REO_GET_QUEUE_STATS) | in ath11k_hal_reo_cmd_queue_stats()
29 FIELD_PREP(HAL_TLV_HDR_LEN, sizeof(*desc)); in ath11k_hal_reo_cmd_queue_stats()
40 desc->info0 = FIELD_PREP(HAL_REO_GET_QUEUE_STATS_INFO0_QUEUE_ADDR_HI, in ath11k_hal_reo_cmd_queue_stats()
61 tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_REO_FLUSH_CACHE) | in ath11k_hal_reo_cmd_flush_cache()
62 FIELD_PREP(HAL_TLV_HDR_LEN, sizeof(*desc)); in ath11k_hal_reo_cmd_flush_cache()
73 desc->info0 = FIELD_PREP(HAL_REO_FLUSH_CACHE_INFO0_CACHE_ADDR_HI, in ath11k_hal_reo_cmd_flush_cache()
82 FIELD_PREP(HAL_REO_FLUSH_CACHE_INFO0_BLOCK_RESRC_IDX, in ath11k_hal_reo_cmd_flush_cache()
[all …]
/Linux-v5.10/drivers/phy/amlogic/
Dphy-meson-g12a-usb2.c187 FIELD_PREP(PHY_CTRL_R16_MPLL_M, 20) | in phy_meson_g12a_usb2_init()
188 FIELD_PREP(PHY_CTRL_R16_MPLL_N, 1) | in phy_meson_g12a_usb2_init()
190 FIELD_PREP(PHY_CTRL_R16_MPLL_LOCK_LONG, 1) | in phy_meson_g12a_usb2_init()
196 FIELD_PREP(PHY_CTRL_R17_MPLL_FRAC_IN, 0) | in phy_meson_g12a_usb2_init()
197 FIELD_PREP(PHY_CTRL_R17_MPLL_LAMBDA1, 7) | in phy_meson_g12a_usb2_init()
198 FIELD_PREP(PHY_CTRL_R17_MPLL_LAMBDA0, 7) | in phy_meson_g12a_usb2_init()
199 FIELD_PREP(PHY_CTRL_R17_MPLL_FILTER_PVT2, 2) | in phy_meson_g12a_usb2_init()
200 FIELD_PREP(PHY_CTRL_R17_MPLL_FILTER_PVT1, 9)); in phy_meson_g12a_usb2_init()
202 value = FIELD_PREP(PHY_CTRL_R18_MPLL_LKW_SEL, 1) | in phy_meson_g12a_usb2_init()
203 FIELD_PREP(PHY_CTRL_R18_MPLL_LK_W, 9) | in phy_meson_g12a_usb2_init()
[all …]
/Linux-v5.10/drivers/crypto/ccree/
Dcc_hw_queue_defs.h224 pdesc->word[3] |= FIELD_PREP(WORD3_QUEUE_LAST_IND, 1); in set_queue_last_ind_bit()
242 pdesc->word[5] |= FIELD_PREP(WORD5_DIN_ADDR_HIGH, upper_32_bits(addr)); in set_din_type()
244 pdesc->word[1] |= FIELD_PREP(WORD1_DIN_DMA_MODE, dma_mode) | in set_din_type()
245 FIELD_PREP(WORD1_DIN_SIZE, size) | in set_din_type()
246 FIELD_PREP(WORD1_NS_BIT, axi_sec); in set_din_type()
260 pdesc->word[1] |= FIELD_PREP(WORD1_DIN_SIZE, size); in set_din_no_dma()
273 pdesc->word[1] |= FIELD_PREP(WORD1_DIN_SIZE, CC_CPP_DIN_SIZE); in set_cpp_crypto_key()
274 pdesc->word[1] |= FIELD_PREP(WORD1_LOCK_QUEUE, 1); in set_cpp_crypto_key()
276 pdesc->word[4] |= FIELD_PREP(WORD4_SETUP_OPERATION, slot); in set_cpp_crypto_key()
291 pdesc->word[1] |= FIELD_PREP(WORD1_DIN_SIZE, size) | in set_din_sram()
[all …]
/Linux-v5.10/drivers/gpu/drm/meson/
Dmeson_overlay.c27 #define VD_HOLD_LINES(lines) FIELD_PREP(GENMASK(24, 19), lines)
29 #define VD_BYTES_PER_PIXEL(val) FIELD_PREP(GENMASK(15, 14), val)
36 #define CANVAS_ADDR2(addr) FIELD_PREP(GENMASK(23, 16), addr)
37 #define CANVAS_ADDR1(addr) FIELD_PREP(GENMASK(15, 8), addr)
38 #define CANVAS_ADDR0(addr) FIELD_PREP(GENMASK(7, 0), addr)
41 #define VD_X_START(value) FIELD_PREP(GENMASK(14, 0), value)
42 #define VD_X_END(value) FIELD_PREP(GENMASK(30, 16), value)
45 #define VD_Y_START(value) FIELD_PREP(GENMASK(12, 0), value)
46 #define VD_Y_END(value) FIELD_PREP(GENMASK(28, 16), value)
49 #define VD_COLOR_MAP(value) FIELD_PREP(GENMASK(1, 0), value)
[all …]
Dmeson_osd_afbcd.c98 writel_relaxed(FIELD_PREP(OSD1_AFBCD_ID_FIFO_THRD, 0x40) | in meson_gxm_afbcd_enable()
116 u32 mode = FIELD_PREP(OSD1_AFBCD_MIF_URGENT, 3) | in meson_gxm_afbcd_setup()
117 FIELD_PREP(OSD1_AFBCD_HOLD_LINE_NUM, 4) | in meson_gxm_afbcd_setup()
118 FIELD_PREP(OSD1_AFBCD_RGBA_EXCHAN_CTRL, 0x34) | in meson_gxm_afbcd_setup()
130 writel_relaxed(FIELD_PREP(OSD1_AFBCD_HREG_VSIZE_IN, in meson_gxm_afbcd_setup()
132 FIELD_PREP(OSD1_AFBCD_HREG_HSIZE_IN, in meson_gxm_afbcd_setup()
160 writel_relaxed(FIELD_PREP(OSD1_AFBCD_DEC_PIXEL_BGN_H, 0) | in meson_gxm_afbcd_setup()
161 FIELD_PREP(OSD1_AFBCD_DEC_PIXEL_END_H, in meson_gxm_afbcd_setup()
165 writel_relaxed(FIELD_PREP(OSD1_AFBCD_DEC_PIXEL_BGN_V, 0) | in meson_gxm_afbcd_setup()
166 FIELD_PREP(OSD1_AFBCD_DEC_PIXEL_END_V, in meson_gxm_afbcd_setup()
[all …]
/Linux-v5.10/drivers/net/wireless/mediatek/mt76/mt76x2/
Dusb_phy.c64 [0] = FIELD_PREP(MT_EXT_CCA_CFG_CCA0, 0) | in mt76x2u_phy_set_channel()
65 FIELD_PREP(MT_EXT_CCA_CFG_CCA1, 1) | in mt76x2u_phy_set_channel()
66 FIELD_PREP(MT_EXT_CCA_CFG_CCA2, 2) | in mt76x2u_phy_set_channel()
67 FIELD_PREP(MT_EXT_CCA_CFG_CCA3, 3) | in mt76x2u_phy_set_channel()
68 FIELD_PREP(MT_EXT_CCA_CFG_CCA_MASK, BIT(0)), in mt76x2u_phy_set_channel()
69 [1] = FIELD_PREP(MT_EXT_CCA_CFG_CCA0, 1) | in mt76x2u_phy_set_channel()
70 FIELD_PREP(MT_EXT_CCA_CFG_CCA1, 0) | in mt76x2u_phy_set_channel()
71 FIELD_PREP(MT_EXT_CCA_CFG_CCA2, 2) | in mt76x2u_phy_set_channel()
72 FIELD_PREP(MT_EXT_CCA_CFG_CCA3, 3) | in mt76x2u_phy_set_channel()
73 FIELD_PREP(MT_EXT_CCA_CFG_CCA_MASK, BIT(1)), in mt76x2u_phy_set_channel()
[all …]
Dinit.c57 (FIELD_PREP(MT_PROT_CFG_RATE, 0x3) | \ in mt76_write_mac_initvals()
58 FIELD_PREP(MT_PROT_CFG_NAV, 1) | \ in mt76_write_mac_initvals()
59 FIELD_PREP(MT_PROT_CFG_TXOP_ALLOW, 0x3f) | \ in mt76_write_mac_initvals()
63 (FIELD_PREP(MT_PROT_CFG_RATE, 0x2004) | \ in mt76_write_mac_initvals()
64 FIELD_PREP(MT_PROT_CFG_NAV, 1) | \ in mt76_write_mac_initvals()
65 FIELD_PREP(MT_PROT_CFG_TXOP_ALLOW, 0x3f) | \ in mt76_write_mac_initvals()
69 (FIELD_PREP(MT_PROT_CFG_RATE, 0x2004) | \ in mt76_write_mac_initvals()
70 FIELD_PREP(MT_PROT_CFG_CTRL, 1) | \ in mt76_write_mac_initvals()
71 FIELD_PREP(MT_PROT_CFG_NAV, 1) | \ in mt76_write_mac_initvals()
72 FIELD_PREP(MT_PROT_CFG_TXOP_ALLOW, 0x17)) in mt76_write_mac_initvals()
[all …]
Dpci_phy.c126 [0] = FIELD_PREP(MT_EXT_CCA_CFG_CCA0, 0) | in mt76x2_phy_set_channel()
127 FIELD_PREP(MT_EXT_CCA_CFG_CCA1, 1) | in mt76x2_phy_set_channel()
128 FIELD_PREP(MT_EXT_CCA_CFG_CCA2, 2) | in mt76x2_phy_set_channel()
129 FIELD_PREP(MT_EXT_CCA_CFG_CCA3, 3) | in mt76x2_phy_set_channel()
130 FIELD_PREP(MT_EXT_CCA_CFG_CCA_MASK, BIT(0)), in mt76x2_phy_set_channel()
131 [1] = FIELD_PREP(MT_EXT_CCA_CFG_CCA0, 1) | in mt76x2_phy_set_channel()
132 FIELD_PREP(MT_EXT_CCA_CFG_CCA1, 0) | in mt76x2_phy_set_channel()
133 FIELD_PREP(MT_EXT_CCA_CFG_CCA2, 2) | in mt76x2_phy_set_channel()
134 FIELD_PREP(MT_EXT_CCA_CFG_CCA3, 3) | in mt76x2_phy_set_channel()
135 FIELD_PREP(MT_EXT_CCA_CFG_CCA_MASK, BIT(1)), in mt76x2_phy_set_channel()
[all …]
/Linux-v5.10/drivers/net/wireless/mediatek/mt76/mt7603/
Dinit.c27 [1] = FIELD_PREP(MT_TXD3_REM_TX_COUNT, 0xf), in mt7603_set_tmac_template()
60 FIELD_PREP(MT_PSE_FRP_P0, 7) | in mt7603_dma_sched_init()
61 FIELD_PREP(MT_PSE_FRP_P1, 6) | in mt7603_dma_sched_init()
62 FIELD_PREP(MT_PSE_FRP_P2_RQ2, 4)); in mt7603_dma_sched_init()
122 (FIELD_PREP(MT_WF_RMAC_RMCR_SMPS_MODE, 3) | in mt7603_phy_init()
123 FIELD_PREP(MT_WF_RMAC_RMCR_RX_STREAMS, rx_chains))); in mt7603_phy_init()
152 FIELD_PREP(MT_AGG_LIMIT_AC(0), 24) | in mt7603_mac_init()
153 FIELD_PREP(MT_AGG_LIMIT_AC(1), 24) | in mt7603_mac_init()
154 FIELD_PREP(MT_AGG_LIMIT_AC(2), 24) | in mt7603_mac_init()
155 FIELD_PREP(MT_AGG_LIMIT_AC(3), 24)); in mt7603_mac_init()
[all …]
Dmac.c47 u32 cck = FIELD_PREP(MT_TIMEOUT_VAL_PLCP, 231) | in mt7603_mac_set_timing()
48 FIELD_PREP(MT_TIMEOUT_VAL_CCA, 48); in mt7603_mac_set_timing()
49 u32 ofdm = FIELD_PREP(MT_TIMEOUT_VAL_PLCP, 60) | in mt7603_mac_set_timing()
50 FIELD_PREP(MT_TIMEOUT_VAL_CCA, 24); in mt7603_mac_set_timing()
52 u32 reg_offset = FIELD_PREP(MT_TIMEOUT_VAL_PLCP, offset) | in mt7603_mac_set_timing()
53 FIELD_PREP(MT_TIMEOUT_VAL_CCA, offset); in mt7603_mac_set_timing()
70 FIELD_PREP(MT_IFS_EIFS, 360) | in mt7603_mac_set_timing()
71 FIELD_PREP(MT_IFS_RIFS, 2) | in mt7603_mac_set_timing()
72 FIELD_PREP(MT_IFS_SIFS, sifs) | in mt7603_mac_set_timing()
73 FIELD_PREP(MT_IFS_SLOT, dev->slottime)); in mt7603_mac_set_timing()
[all …]
/Linux-v5.10/drivers/staging/media/allegro-dvt/
Dallegro-mail.c94 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->height) | in allegro_encode_config_blob()
95 FIELD_PREP(GENMASK(15, 0), param->width); in allegro_encode_config_blob()
104 dst[i++] = FIELD_PREP(GENMASK(31, 24), codec) | in allegro_encode_config_blob()
105 FIELD_PREP(GENMASK(23, 8), param->constraint_set_flags) | in allegro_encode_config_blob()
106 FIELD_PREP(GENMASK(7, 0), param->profile); in allegro_encode_config_blob()
107 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->tier) | in allegro_encode_config_blob()
108 FIELD_PREP(GENMASK(15, 0), param->level); in allegro_encode_config_blob()
112 val |= FIELD_PREP(GENMASK(7, 4), param->log2_max_frame_num) | in allegro_encode_config_blob()
113 FIELD_PREP(GENMASK(3, 0), param->log2_max_poc); in allegro_encode_config_blob()
136 dst[i++] = FIELD_PREP(GENMASK(15, 8), param->beta_offset) | in allegro_encode_config_blob()
[all …]
/Linux-v5.10/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-mediatek.c181 delay_val |= FIELD_PREP(ETH_DLY_TXC_ENABLE, !!mac_delay->tx_delay); in mt2712_set_delay()
182 delay_val |= FIELD_PREP(ETH_DLY_TXC_STAGES, mac_delay->tx_delay); in mt2712_set_delay()
183 delay_val |= FIELD_PREP(ETH_DLY_TXC_INV, mac_delay->tx_inv); in mt2712_set_delay()
185 delay_val |= FIELD_PREP(ETH_DLY_RXC_ENABLE, !!mac_delay->rx_delay); in mt2712_set_delay()
186 delay_val |= FIELD_PREP(ETH_DLY_RXC_STAGES, mac_delay->rx_delay); in mt2712_set_delay()
187 delay_val |= FIELD_PREP(ETH_DLY_RXC_INV, mac_delay->rx_inv); in mt2712_set_delay()
196 delay_val |= FIELD_PREP(ETH_DLY_TXC_ENABLE, !!mac_delay->rx_delay); in mt2712_set_delay()
197 delay_val |= FIELD_PREP(ETH_DLY_TXC_STAGES, mac_delay->rx_delay); in mt2712_set_delay()
198 delay_val |= FIELD_PREP(ETH_DLY_TXC_INV, mac_delay->rx_inv); in mt2712_set_delay()
200 delay_val |= FIELD_PREP(ETH_DLY_GTXC_ENABLE, !!mac_delay->tx_delay); in mt2712_set_delay()
[all …]
/Linux-v5.10/drivers/net/wireless/mediatek/mt76/mt7615/
Dusb_sdio.c84 w27 |= FIELD_PREP(MT_WTBL_W27_CC_BW_SEL, rate->bw); in mt7663_usb_sdio_set_rates()
91 w5 |= FIELD_PREP(MT_WTBL_W5_BW_CAP, rate->bw) | in mt7663_usb_sdio_set_rates()
92 FIELD_PREP(MT_WTBL_W5_CHANGE_BW_RATE, in mt7663_usb_sdio_set_rates()
98 FIELD_PREP(MT_WTBL_RIUCR1_RATE0, rate->probe_val) | in mt7663_usb_sdio_set_rates()
99 FIELD_PREP(MT_WTBL_RIUCR1_RATE1, rate->val[0]) | in mt7663_usb_sdio_set_rates()
100 FIELD_PREP(MT_WTBL_RIUCR1_RATE2_LO, rate->val[1])); in mt7663_usb_sdio_set_rates()
103 FIELD_PREP(MT_WTBL_RIUCR2_RATE2_HI, rate->val[1] >> 8) | in mt7663_usb_sdio_set_rates()
104 FIELD_PREP(MT_WTBL_RIUCR2_RATE3, rate->val[1]) | in mt7663_usb_sdio_set_rates()
105 FIELD_PREP(MT_WTBL_RIUCR2_RATE4, rate->val[2]) | in mt7663_usb_sdio_set_rates()
106 FIELD_PREP(MT_WTBL_RIUCR2_RATE5_LO, rate->val[2])); in mt7663_usb_sdio_set_rates()
[all …]
Dinit.c38 FIELD_PREP(MT_TMAC_TRCR_CCA_SEL, 2) | in mt7615_init_mac_chain()
39 FIELD_PREP(MT_TMAC_TRCR_SEC_CCA_SEL, 0)); in mt7615_init_mac_chain()
43 FIELD_PREP(MT_AGG_ACR_CFEND_RATE, MT7615_CFEND_RATE_DEFAULT) | in mt7615_init_mac_chain()
44 FIELD_PREP(MT_AGG_ACR_BAR_RATE, MT7615_BAR_RATE_DEFAULT)); in mt7615_init_mac_chain()
47 FIELD_PREP(MT_AGG_ARxCR_LIMIT(0), 7) | in mt7615_init_mac_chain()
48 FIELD_PREP(MT_AGG_ARxCR_LIMIT(1), 2) | in mt7615_init_mac_chain()
49 FIELD_PREP(MT_AGG_ARxCR_LIMIT(2), 2) | in mt7615_init_mac_chain()
50 FIELD_PREP(MT_AGG_ARxCR_LIMIT(3), 2) | in mt7615_init_mac_chain()
51 FIELD_PREP(MT_AGG_ARxCR_LIMIT(4), 1) | in mt7615_init_mac_chain()
52 FIELD_PREP(MT_AGG_ARxCR_LIMIT(5), 1) | in mt7615_init_mac_chain()
[all …]
Ddma.c146 FIELD_PREP(MT_DMASHDL_PKT_MAX_SIZE_PLE, 1) | in mt7622_dma_sched_init()
147 FIELD_PREP(MT_DMASHDL_PKT_MAX_SIZE_PSE, 8)); in mt7622_dma_sched_init()
151 FIELD_PREP(MT_DMASHDL_GROUP_QUOTA_MIN, 0x10) | in mt7622_dma_sched_init()
152 FIELD_PREP(MT_DMASHDL_GROUP_QUOTA_MAX, 0x800)); in mt7622_dma_sched_init()
169 FIELD_PREP(MT_DMASHDL_PKT_MAX_SIZE_PLE, 1) | in mt7663_dma_sched_init()
170 FIELD_PREP(MT_DMASHDL_PKT_MAX_SIZE_PSE, 8)); in mt7663_dma_sched_init()
180 FIELD_PREP(MT_DMASHDL_GROUP_QUOTA_MIN, 0x40) | in mt7663_dma_sched_init()
181 FIELD_PREP(MT_DMASHDL_GROUP_QUOTA_MAX, 0x800)); in mt7663_dma_sched_init()
183 FIELD_PREP(MT_DMASHDL_GROUP_QUOTA_MIN, 0x40) | in mt7663_dma_sched_init()
184 FIELD_PREP(MT_DMASHDL_GROUP_QUOTA_MAX, 0x40)); in mt7663_dma_sched_init()
[all …]
/Linux-v5.10/drivers/mmc/host/
Dmeson-mx-sdhc-mmc.c147 send = FIELD_PREP(MESON_SDHC_SEND_CMD_INDEX, cmd->opcode); in meson_mx_sdhc_start_cmd()
151 send |= FIELD_PREP(MESON_SDHC_SEND_TOTAL_PACK, in meson_mx_sdhc_start_cmd()
206 FIELD_PREP(MESON_SDHC_CTRL_PACK_LEN, pack_len)); in meson_mx_sdhc_start_cmd()
300 FIELD_PREP(MESON_SDHC_CLK2_RX_CLK_PHASE, in meson_mx_sdhc_set_clk()
342 FIELD_PREP(MESON_SDHC_CTRL_DAT_TYPE, 0)); in meson_mx_sdhc_set_ios()
348 FIELD_PREP(MESON_SDHC_CTRL_DAT_TYPE, 1)); in meson_mx_sdhc_set_ios()
354 FIELD_PREP(MESON_SDHC_CTRL_DAT_TYPE, 2)); in meson_mx_sdhc_set_ios()
446 FIELD_PREP(MESON_SDHC_CLK2_RX_CLK_PHASE, in meson_mx_sdhc_execute_tuning()
486 FIELD_PREP(MESON_SDHC_CLK2_RX_CLK_PHASE, in meson_mx_sdhc_execute_tuning()
533 FIELD_PREP(MESON_SDHC_PDMA_PIO_RDRESP, idx)); in meson_mx_sdhc_read_response()
[all …]
Dsdhci-pci-gli.c125 wt_value |= FIELD_PREP(SDHCI_GLI_9750_WT_EN, GLI_9750_WT_EN_ON); in gl9750_wt_on()
142 wt_value |= FIELD_PREP(SDHCI_GLI_9750_WT_EN, GLI_9750_WT_EN_OFF); in gl9750_wt_off()
168 driving_value |= FIELD_PREP(SDHCI_GLI_9750_DRIVING_1, in gli_set_9750()
170 driving_value |= FIELD_PREP(SDHCI_GLI_9750_DRIVING_2, in gli_set_9750()
177 sw_ctrl_value |= FIELD_PREP(SDHCI_GLI_9750_SW_CTRL_4, in gli_set_9750()
184 pll_value |= FIELD_PREP(SDHCI_GLI_9750_PLL_TX2_INV, in gli_set_9750()
186 pll_value |= FIELD_PREP(SDHCI_GLI_9750_PLL_TX2_DLY, in gli_set_9750()
192 misc_value |= FIELD_PREP(SDHCI_GLI_9750_MISC_TX1_INV, in gli_set_9750()
194 misc_value |= FIELD_PREP(SDHCI_GLI_9750_MISC_RX_INV, in gli_set_9750()
196 misc_value |= FIELD_PREP(SDHCI_GLI_9750_MISC_TX1_DLY, in gli_set_9750()
[all …]
Dcavium.c188 *reg |= FIELD_PREP(GENMASK(61, 60), bus_id); in set_bus_id()
291 emm_sample = FIELD_PREP(MIO_EMM_SAMPLE_CMD_CNT, slot->cmd_cnt) | in cvm_mmc_switch_to()
292 FIELD_PREP(MIO_EMM_SAMPLE_DAT_CNT, slot->dat_cnt); in cvm_mmc_switch_to()
429 emm_dma |= FIELD_PREP(MIO_EMM_DMA_VAL, 1) | in cleanup_dma()
430 FIELD_PREP(MIO_EMM_DMA_DAT_NULL, 1); in cleanup_dma()
528 dma_cfg = FIELD_PREP(MIO_EMM_DMA_CFG_EN, 1) | in prepare_dma_single()
529 FIELD_PREP(MIO_EMM_DMA_CFG_RW, rw); in prepare_dma_single()
531 dma_cfg |= FIELD_PREP(MIO_EMM_DMA_CFG_ENDIAN, 1); in prepare_dma_single()
533 dma_cfg |= FIELD_PREP(MIO_EMM_DMA_CFG_SIZE, in prepare_dma_single()
538 dma_cfg |= FIELD_PREP(MIO_EMM_DMA_CFG_ADR, addr); in prepare_dma_single()
[all …]
/Linux-v5.10/drivers/iio/imu/inv_icm42600/
Dinv_icm42600.h164 FIELD_PREP(INV_ICM42600_DRIVE_CONFIG_I2C_MASK, (_rate))
167 FIELD_PREP(INV_ICM42600_DRIVE_CONFIG_SPI_MASK, (_rate))
182 FIELD_PREP(INV_ICM42600_FIFO_CONFIG_MASK, 0)
184 FIELD_PREP(INV_ICM42600_FIFO_CONFIG_MASK, 1)
186 FIELD_PREP(INV_ICM42600_FIFO_CONFIG_MASK, 2)
230 FIELD_PREP(INV_ICM42600_INTF_CONFIG0_UI_SIFS_CFG_MASK, 2)
232 FIELD_PREP(INV_ICM42600_INTF_CONFIG0_UI_SIFS_CFG_MASK, 3)
241 FIELD_PREP(GENMASK(3, 2), (_mode))
243 FIELD_PREP(GENMASK(1, 0), (_mode))
247 FIELD_PREP(GENMASK(7, 5), (_fs))
[all …]
/Linux-v5.10/drivers/memory/
Dstm32-fmc2-ebi.c195 u32 bcr, val = FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_NOR); in stm32_fmc2_ebi_check_waitcfg()
237 u32 bcr, val = FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_PSRAM); in stm32_fmc2_ebi_check_cpsize()
251 u32 bcr, bxtr, val = FIELD_PREP(FMC2_BXTR_ACCMOD, FMC2_BXTR_EXTMOD_D); in stm32_fmc2_ebi_check_address_hold()
375 bcr |= FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_SRAM); in stm32_fmc2_ebi_set_trans_type()
386 bcr |= FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_PSRAM); in stm32_fmc2_ebi_set_trans_type()
393 bcr |= FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_SRAM); in stm32_fmc2_ebi_set_trans_type()
395 btr |= FIELD_PREP(FMC2_BXTR_ACCMOD, FMC2_BXTR_EXTMOD_A); in stm32_fmc2_ebi_set_trans_type()
396 bwtr |= FIELD_PREP(FMC2_BXTR_ACCMOD, FMC2_BXTR_EXTMOD_A); in stm32_fmc2_ebi_set_trans_type()
403 bcr |= FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_PSRAM); in stm32_fmc2_ebi_set_trans_type()
405 btr |= FIELD_PREP(FMC2_BXTR_ACCMOD, FMC2_BXTR_EXTMOD_A); in stm32_fmc2_ebi_set_trans_type()
[all …]
/Linux-v5.10/drivers/net/ethernet/marvell/prestera/
Dprestera_dsa.c66 dsa->vlan.vid |= FIELD_PREP(PRESTERA_DSA_VID, field); in prestera_dsa_parse()
71 dsa->hw_dev_num |= FIELD_PREP(PRESTERA_DSA_DEV_NUM, field); in prestera_dsa_parse()
86 words[0] |= FIELD_PREP(PRESTERA_DSA_W0_CMD, PRESTERA_DSA_CMD_FROM_CPU); in prestera_dsa_build()
88 words[0] |= FIELD_PREP(PRESTERA_DSA_W0_DEV_NUM, dev_num); in prestera_dsa_build()
90 words[3] |= FIELD_PREP(PRESTERA_DSA_W3_DEV_NUM, dev_num); in prestera_dsa_build()
92 words[3] |= FIELD_PREP(PRESTERA_DSA_W3_DST_EPORT, dsa->port_num); in prestera_dsa_build()
94 words[0] |= FIELD_PREP(PRESTERA_DSA_W0_EXT_BIT, 1); in prestera_dsa_build()
95 words[1] |= FIELD_PREP(PRESTERA_DSA_W1_EXT_BIT, 1); in prestera_dsa_build()
96 words[2] |= FIELD_PREP(PRESTERA_DSA_W2_EXT_BIT, 1); in prestera_dsa_build()
/Linux-v5.10/drivers/net/mdio/
Dmdio-aspeed.c57 | FIELD_PREP(ASPEED_MDIO_CTRL_ST, ASPEED_MDIO_CTRL_ST_C22) in aspeed_mdio_read()
58 | FIELD_PREP(ASPEED_MDIO_CTRL_OP, MDIO_C22_OP_READ) in aspeed_mdio_read()
59 | FIELD_PREP(ASPEED_MDIO_CTRL_PHYAD, addr) in aspeed_mdio_read()
60 | FIELD_PREP(ASPEED_MDIO_CTRL_REGAD, regnum); in aspeed_mdio_read()
87 | FIELD_PREP(ASPEED_MDIO_CTRL_ST, ASPEED_MDIO_CTRL_ST_C22) in aspeed_mdio_write()
88 | FIELD_PREP(ASPEED_MDIO_CTRL_OP, MDIO_C22_OP_WRITE) in aspeed_mdio_write()
89 | FIELD_PREP(ASPEED_MDIO_CTRL_PHYAD, addr) in aspeed_mdio_write()
90 | FIELD_PREP(ASPEED_MDIO_CTRL_REGAD, regnum) in aspeed_mdio_write()
91 | FIELD_PREP(ASPEED_MDIO_CTRL_MIIWDATA, val); in aspeed_mdio_write()

12345678910>>...12