/Linux-v6.6/drivers/accel/habanalabs/include/gaudi/ |
D | gaudi_masks.h | 15 (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-v6.6/drivers/iio/adc/ |
D | stm32-dfsdm.h | 52 #define DFSDM_CHCFGR1_SITP(v) FIELD_PREP(DFSDM_CHCFGR1_SITP_MASK, v) 54 #define DFSDM_CHCFGR1_SPICKSEL(v) FIELD_PREP(DFSDM_CHCFGR1_SPICKSEL_MASK, v) 56 #define DFSDM_CHCFGR1_SCDEN(v) FIELD_PREP(DFSDM_CHCFGR1_SCDEN_MASK, v) 58 #define DFSDM_CHCFGR1_CKABEN(v) FIELD_PREP(DFSDM_CHCFGR1_CKABEN_MASK, v) 60 #define DFSDM_CHCFGR1_CHEN(v) FIELD_PREP(DFSDM_CHCFGR1_CHEN_MASK, v) 62 #define DFSDM_CHCFGR1_CHINSEL(v) FIELD_PREP(DFSDM_CHCFGR1_CHINSEL_MASK, v) 64 #define DFSDM_CHCFGR1_DATMPX(v) FIELD_PREP(DFSDM_CHCFGR1_DATMPX_MASK, v) 66 #define DFSDM_CHCFGR1_DATPACK(v) FIELD_PREP(DFSDM_CHCFGR1_DATPACK_MASK, v) 68 #define DFSDM_CHCFGR1_CKOUTDIV(v) FIELD_PREP(DFSDM_CHCFGR1_CKOUTDIV_MASK, v) 70 #define DFSDM_CHCFGR1_CKOUTSRC(v) FIELD_PREP(DFSDM_CHCFGR1_CKOUTSRC_MASK, v) [all …]
|
/Linux-v6.6/drivers/phy/microchip/ |
D | sparx5_serdes_regs.h | 36 FIELD_PREP(SD10G_LANE_LANE_01_CFG_PMA_TX_CK_BITWIDTH_2_0, x) 42 FIELD_PREP(SD10G_LANE_LANE_01_CFG_RXDET_EN, x) 48 FIELD_PREP(SD10G_LANE_LANE_01_CFG_RXDET_STR, x) 57 FIELD_PREP(SD10G_LANE_LANE_02_CFG_EN_ADV, x) 63 FIELD_PREP(SD10G_LANE_LANE_02_CFG_EN_MAIN, x) 69 FIELD_PREP(SD10G_LANE_LANE_02_CFG_EN_DLY, x) 75 FIELD_PREP(SD10G_LANE_LANE_02_CFG_EN_DLY2, x) 81 FIELD_PREP(SD10G_LANE_LANE_02_CFG_TAP_ADV_3_0, x) 90 FIELD_PREP(SD10G_LANE_LANE_03_CFG_TAP_MAIN, x) 99 FIELD_PREP(SD10G_LANE_LANE_04_CFG_TAP_DLY_4_0, x) [all …]
|
D | lan966x_serdes_regs.h | 22 FIELD_PREP(HSIO_SD_CFG_PHY_RESET, x) 28 FIELD_PREP(HSIO_SD_CFG_TX_RESET, x) 34 FIELD_PREP(HSIO_SD_CFG_TX_RATE, x) 40 FIELD_PREP(HSIO_SD_CFG_TX_INVERT, x) 46 FIELD_PREP(HSIO_SD_CFG_TX_EN, x) 52 FIELD_PREP(HSIO_SD_CFG_TX_DATA_EN, x) 58 FIELD_PREP(HSIO_SD_CFG_TX_CM_EN, x) 64 FIELD_PREP(HSIO_SD_CFG_LANE_10BIT_SEL, x) 70 FIELD_PREP(HSIO_SD_CFG_RX_TERM_EN, x) 76 FIELD_PREP(HSIO_SD_CFG_RX_RESET, x) [all …]
|
/Linux-v6.6/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_main_regs.h | 66 FIELD_PREP(ANA_AC_RAM_INIT_RAM_INIT, x) 72 FIELD_PREP(ANA_AC_RAM_INIT_RAM_CFG_HOOK, x) 82 FIELD_PREP(ANA_AC_OWN_UPSID_OWN_UPSID, x) 100 FIELD_PREP(ANA_AC_SRC_CFG2_PORT_MASK2, x) 118 FIELD_PREP(ANA_AC_PGID_CFG2_PORT_MASK2, x) 128 FIELD_PREP(ANA_AC_PGID_MISC_CFG_PGID_CPU_QU, x) 134 FIELD_PREP(ANA_AC_PGID_MISC_CFG_STACK_TYPE_ENA, x) 140 FIELD_PREP(ANA_AC_PGID_MISC_CFG_PGID_CPU_COPY_ENA, x) 150 FIELD_PREP(ANA_AC_TSN_SF_TSN_STREAM_BLOCK_OVERSIZE_STICKY, x) 156 FIELD_PREP(ANA_AC_TSN_SF_PORT_NUM, x) [all …]
|
/Linux-v6.6/drivers/tty/serial/ |
D | atmel_serial.h | 44 #define ATMEL_US_USMODE_NORMAL FIELD_PREP(ATMEL_US_USMODE, 0) 45 #define ATMEL_US_USMODE_RS485 FIELD_PREP(ATMEL_US_USMODE, 1) 46 #define ATMEL_US_USMODE_HWHS FIELD_PREP(ATMEL_US_USMODE, 2) 47 #define ATMEL_US_USMODE_MODEM FIELD_PREP(ATMEL_US_USMODE, 3) 48 #define ATMEL_US_USMODE_ISO7816_T0 FIELD_PREP(ATMEL_US_USMODE, 4) 49 #define ATMEL_US_USMODE_ISO7816_T1 FIELD_PREP(ATMEL_US_USMODE, 6) 50 #define ATMEL_US_USMODE_IRDA FIELD_PREP(ATMEL_US_USMODE, 8) 52 #define ATMEL_US_USCLKS_MCK FIELD_PREP(ATMEL_US_USCLKS, 0) 53 #define ATMEL_US_USCLKS_MCK_DIV8 FIELD_PREP(ATMEL_US_USCLKS, 1) 54 #define ATMEL_US_USCLKS_GCLK FIELD_PREP(ATMEL_US_USCLKS, 2) [all …]
|
/Linux-v6.6/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_regs.h | 39 FIELD_PREP(AFI_PORT_FRM_OUT_FRM_OUT_CNT, x) 48 FIELD_PREP(AFI_PORT_CFG_FC_SKIP_TTI_INJ, x) 54 FIELD_PREP(AFI_PORT_CFG_FRM_OUT_MAX, x) 63 FIELD_PREP(ANA_ADVLEARN_VLAN_CHK, x) 75 FIELD_PREP(ANA_ANAINTR_INTR, x) 81 FIELD_PREP(ANA_ANAINTR_INTR_ENA, x) 90 FIELD_PREP(ANA_AUTOAGE_AGE_PERIOD, x) 99 FIELD_PREP(ANA_MIRRORPORTS_MIRRORPORTS, x) 108 FIELD_PREP(ANA_EMIRRORPORTS_EMIRRORPORTS, x) 117 FIELD_PREP(ANA_FLOODING_FLD_UNICAST, x) [all …]
|
/Linux-v6.6/drivers/infiniband/hw/irdma/ |
D | uda.c | 31 qw1 = FIELD_PREP(IRDMA_UDA_CQPSQ_MAV_PDINDEXLO, info->pd_idx) | in irdma_sc_access_ah() 32 FIELD_PREP(IRDMA_UDA_CQPSQ_MAV_TC, info->tc_tos) | in irdma_sc_access_ah() 33 FIELD_PREP(IRDMA_UDAQPC_VLANTAG, info->vlan_tag); in irdma_sc_access_ah() 35 qw2 = FIELD_PREP(IRDMA_UDA_CQPSQ_MAV_ARPINDEX, info->dst_arpindex) | in irdma_sc_access_ah() 36 FIELD_PREP(IRDMA_UDA_CQPSQ_MAV_FLOWLABEL, info->flow_label) | in irdma_sc_access_ah() 37 FIELD_PREP(IRDMA_UDA_CQPSQ_MAV_HOPLIMIT, info->hop_ttl) | in irdma_sc_access_ah() 38 FIELD_PREP(IRDMA_UDA_CQPSQ_MAV_PDINDEXHI, info->pd_idx >> 16); in irdma_sc_access_ah() 42 FIELD_PREP(IRDMA_UDA_CQPSQ_MAV_ADDR0, info->dest_ip_addr[0]) | in irdma_sc_access_ah() 43 FIELD_PREP(IRDMA_UDA_CQPSQ_MAV_ADDR1, info->dest_ip_addr[1])); in irdma_sc_access_ah() 45 FIELD_PREP(IRDMA_UDA_CQPSQ_MAV_ADDR2, info->dest_ip_addr[2]) | in irdma_sc_access_ah() [all …]
|
D | ctrl.c | 196 FIELD_PREP(IRDMA_CQPSQ_OPCODE, IRDMA_CQP_OP_MANAGE_ARP) | in irdma_sc_add_arp_cache_entry() 197 FIELD_PREP(IRDMA_CQPSQ_MAT_PERMANENT, (info->permanent ? 1 : 0)) | in irdma_sc_add_arp_cache_entry() 198 FIELD_PREP(IRDMA_CQPSQ_MAT_ENTRYVALID, 1) | in irdma_sc_add_arp_cache_entry() 199 FIELD_PREP(IRDMA_CQPSQ_WQEVALID, cqp->polarity); in irdma_sc_add_arp_cache_entry() 230 FIELD_PREP(IRDMA_CQPSQ_OPCODE, IRDMA_CQP_OP_MANAGE_ARP) | in irdma_sc_del_arp_cache_entry() 231 FIELD_PREP(IRDMA_CQPSQ_WQEVALID, cqp->polarity); in irdma_sc_del_arp_cache_entry() 265 hdr = FIELD_PREP(IRDMA_CQPSQ_OPCODE, IRDMA_CQP_OP_MANAGE_APBVT) | in irdma_sc_manage_apbvt_entry() 266 FIELD_PREP(IRDMA_CQPSQ_MAPT_ADDPORT, info->add) | in irdma_sc_manage_apbvt_entry() 267 FIELD_PREP(IRDMA_CQPSQ_WQEVALID, cqp->polarity); in irdma_sc_manage_apbvt_entry() 316 qw1 = FIELD_PREP(IRDMA_CQPSQ_QHASH_QPN, info->qp_num) | in irdma_sc_manage_qhash_table_entry() [all …]
|
D | uk.c | 20 FIELD_PREP(IRDMAQPSQ_FRAG_TO, sge->addr)); in irdma_set_fragment() 22 FIELD_PREP(IRDMAQPSQ_VALID, valid) | in irdma_set_fragment() 23 FIELD_PREP(IRDMAQPSQ_FRAG_LEN, sge->length) | in irdma_set_fragment() 24 FIELD_PREP(IRDMAQPSQ_FRAG_STAG, sge->lkey)); in irdma_set_fragment() 28 FIELD_PREP(IRDMAQPSQ_VALID, valid)); in irdma_set_fragment() 44 FIELD_PREP(IRDMAQPSQ_FRAG_TO, sge->addr)); in irdma_set_fragment_gen_1() 46 FIELD_PREP(IRDMAQPSQ_GEN1_FRAG_LEN, sge->length) | in irdma_set_fragment_gen_1() 47 FIELD_PREP(IRDMAQPSQ_GEN1_FRAG_STAG, sge->lkey)); in irdma_set_fragment_gen_1() 77 hdr = FIELD_PREP(IRDMAQPSQ_OPCODE, IRDMAQP_OP_NOP) | in irdma_nop_1() 78 FIELD_PREP(IRDMAQPSQ_SIGCOMPL, signaled) | in irdma_nop_1() [all …]
|
/Linux-v6.6/drivers/net/wireless/ath/ath11k/ |
D | hal_tx.c | 43 FIELD_PREP(BUFFER_ADDR_INFO0_ADDR, ti->paddr); in ath11k_hal_tx_cmd_desc_setup() 45 FIELD_PREP(BUFFER_ADDR_INFO1_ADDR, in ath11k_hal_tx_cmd_desc_setup() 48 FIELD_PREP(BUFFER_ADDR_INFO1_RET_BUF_MGR, ti->rbm_id) | 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 …]
|
D | hal_rx.c | 16 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() 39 desc->info0 = FIELD_PREP(HAL_REO_GET_QUEUE_STATS_INFO0_QUEUE_ADDR_HI, in ath11k_hal_reo_cmd_queue_stats() 60 tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_REO_FLUSH_CACHE) | in ath11k_hal_reo_cmd_flush_cache() 61 FIELD_PREP(HAL_TLV_HDR_LEN, sizeof(*desc)); in ath11k_hal_reo_cmd_flush_cache() 71 desc->info0 = FIELD_PREP(HAL_REO_FLUSH_CACHE_INFO0_CACHE_ADDR_HI, in ath11k_hal_reo_cmd_flush_cache() 80 FIELD_PREP(HAL_REO_FLUSH_CACHE_INFO0_BLOCK_RESRC_IDX, in ath11k_hal_reo_cmd_flush_cache() [all …]
|
/Linux-v6.6/drivers/phy/amlogic/ |
D | phy-meson-g12a-usb2.c | 193 FIELD_PREP(PHY_CTRL_R16_MPLL_M, 20) | in phy_meson_g12a_usb2_init() 194 FIELD_PREP(PHY_CTRL_R16_MPLL_N, 1) | in phy_meson_g12a_usb2_init() 196 FIELD_PREP(PHY_CTRL_R16_MPLL_LOCK_LONG, 1) | in phy_meson_g12a_usb2_init() 202 FIELD_PREP(PHY_CTRL_R17_MPLL_FRAC_IN, 0) | in phy_meson_g12a_usb2_init() 203 FIELD_PREP(PHY_CTRL_R17_MPLL_LAMBDA1, 7) | in phy_meson_g12a_usb2_init() 204 FIELD_PREP(PHY_CTRL_R17_MPLL_LAMBDA0, 7) | in phy_meson_g12a_usb2_init() 205 FIELD_PREP(PHY_CTRL_R17_MPLL_FILTER_PVT2, 2) | in phy_meson_g12a_usb2_init() 206 FIELD_PREP(PHY_CTRL_R17_MPLL_FILTER_PVT1, 9)); in phy_meson_g12a_usb2_init() 208 value = FIELD_PREP(PHY_CTRL_R18_MPLL_LKW_SEL, 1) | in phy_meson_g12a_usb2_init() 209 FIELD_PREP(PHY_CTRL_R18_MPLL_LK_W, 9) | in phy_meson_g12a_usb2_init() [all …]
|
/Linux-v6.6/drivers/crypto/ccree/ |
D | cc_hw_queue_defs.h | 224 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-v6.6/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-mediatek.c | 201 delay_val |= FIELD_PREP(ETH_DLY_TXC_ENABLE, !!mac_delay->tx_delay); in mt2712_set_delay() 202 delay_val |= FIELD_PREP(ETH_DLY_TXC_STAGES, mac_delay->tx_delay); in mt2712_set_delay() 203 delay_val |= FIELD_PREP(ETH_DLY_TXC_INV, mac_delay->tx_inv); in mt2712_set_delay() 205 delay_val |= FIELD_PREP(ETH_DLY_RXC_ENABLE, !!mac_delay->rx_delay); in mt2712_set_delay() 206 delay_val |= FIELD_PREP(ETH_DLY_RXC_STAGES, mac_delay->rx_delay); in mt2712_set_delay() 207 delay_val |= FIELD_PREP(ETH_DLY_RXC_INV, mac_delay->rx_inv); in mt2712_set_delay() 216 delay_val |= FIELD_PREP(ETH_DLY_TXC_ENABLE, !!mac_delay->rx_delay); in mt2712_set_delay() 217 delay_val |= FIELD_PREP(ETH_DLY_TXC_STAGES, mac_delay->rx_delay); in mt2712_set_delay() 218 delay_val |= FIELD_PREP(ETH_DLY_TXC_INV, mac_delay->rx_inv); in mt2712_set_delay() 220 delay_val |= FIELD_PREP(ETH_DLY_GTXC_ENABLE, !!mac_delay->tx_delay); in mt2712_set_delay() [all …]
|
/Linux-v6.6/drivers/i3c/master/mipi-i3c-hci/ |
D | cmd_v1.c | 23 #define CMD_0_ATTR_A FIELD_PREP(CMD_0_ATTR, 0x2) 27 #define CMD_A0_DEV_COUNT(v) FIELD_PREP(W0_MASK(29, 26), v) 28 #define CMD_A0_DEV_INDEX(v) FIELD_PREP(W0_MASK(20, 16), v) 29 #define CMD_A0_CMD(v) FIELD_PREP(W0_MASK(14, 7), v) 30 #define CMD_A0_TID(v) FIELD_PREP(W0_MASK( 6, 3), v) 36 #define CMD_0_ATTR_I FIELD_PREP(CMD_0_ATTR, 0x1) 38 #define CMD_I1_DATA_BYTE_4(v) FIELD_PREP(W1_MASK(63, 56), v) 39 #define CMD_I1_DATA_BYTE_3(v) FIELD_PREP(W1_MASK(55, 48), v) 40 #define CMD_I1_DATA_BYTE_2(v) FIELD_PREP(W1_MASK(47, 40), v) 41 #define CMD_I1_DATA_BYTE_1(v) FIELD_PREP(W1_MASK(39, 32), v) [all …]
|
D | cmd_v2.c | 24 #define CMD_0_ATTR_U FIELD_PREP(CMD_0_ATTR, 0x4) 26 #define CMD_U3_HDR_TSP_ML_CTRL(v) FIELD_PREP(W3_MASK(107, 104), v) 27 #define CMD_U3_IDB4(v) FIELD_PREP(W3_MASK(103, 96), v) 28 #define CMD_U3_HDR_CMD(v) FIELD_PREP(W3_MASK(103, 96), v) 29 #define CMD_U2_IDB3(v) FIELD_PREP(W2_MASK( 95, 88), v) 30 #define CMD_U2_HDR_BT(v) FIELD_PREP(W2_MASK( 95, 88), v) 31 #define CMD_U2_IDB2(v) FIELD_PREP(W2_MASK( 87, 80), v) 32 #define CMD_U2_BT_CMD2(v) FIELD_PREP(W2_MASK( 87, 80), v) 33 #define CMD_U2_IDB1(v) FIELD_PREP(W2_MASK( 79, 72), v) 34 #define CMD_U2_BT_CMD1(v) FIELD_PREP(W2_MASK( 79, 72), v) [all …]
|
/Linux-v6.6/drivers/gpu/drm/meson/ |
D | meson_overlay.c | 28 #define VD_HOLD_LINES(lines) FIELD_PREP(GENMASK(24, 19), lines) 30 #define VD_BYTES_PER_PIXEL(val) FIELD_PREP(GENMASK(15, 14), val) 37 #define CANVAS_ADDR2(addr) FIELD_PREP(GENMASK(23, 16), addr) 38 #define CANVAS_ADDR1(addr) FIELD_PREP(GENMASK(15, 8), addr) 39 #define CANVAS_ADDR0(addr) FIELD_PREP(GENMASK(7, 0), addr) 42 #define VD_X_START(value) FIELD_PREP(GENMASK(14, 0), value) 43 #define VD_X_END(value) FIELD_PREP(GENMASK(30, 16), value) 46 #define VD_Y_START(value) FIELD_PREP(GENMASK(12, 0), value) 47 #define VD_Y_END(value) FIELD_PREP(GENMASK(28, 16), value) 50 #define VD_COLOR_MAP(value) FIELD_PREP(GENMASK(1, 0), value) [all …]
|
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt76x2/ |
D | usb_phy.c | 64 [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 …]
|
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt7603/ |
D | init.c | 27 [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 …]
|
/Linux-v6.6/drivers/bus/mhi/ |
D | common.h | 121 #define MHI_TRE_CMD_NOOP_DWORD1 cpu_to_le32(FIELD_PREP(GENMASK(23, 16), MHI_CMD_NOP)) 126 #define MHI_TRE_CMD_RESET_DWORD1(chid) cpu_to_le32(FIELD_PREP(GENMASK(31, 24), chid) | \ 127 FIELD_PREP(GENMASK(23, 16), \ 133 #define MHI_TRE_CMD_STOP_DWORD1(chid) cpu_to_le32(FIELD_PREP(GENMASK(31, 24), chid) | \ 134 FIELD_PREP(GENMASK(23, 16), \ 140 #define MHI_TRE_CMD_START_DWORD1(chid) cpu_to_le32(FIELD_PREP(GENMASK(31, 24), chid) | \ 141 FIELD_PREP(GENMASK(23, 16), \ 150 #define MHI_TRE_EV_DWORD0(code, len) cpu_to_le32(FIELD_PREP(GENMASK(31, 24), code) | \ 151 FIELD_PREP(GENMASK(15, 0), len)) 152 #define MHI_TRE_EV_DWORD1(chid, type) cpu_to_le32(FIELD_PREP(GENMASK(31, 24), chid) | \ [all …]
|
/Linux-v6.6/drivers/media/platform/allegro-dvt/ |
D | allegro-mail.c | 98 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->height) | in allegro_encode_config_blob() 99 FIELD_PREP(GENMASK(15, 0), param->width); in allegro_encode_config_blob() 108 dst[i++] = FIELD_PREP(GENMASK(31, 24), codec) | in allegro_encode_config_blob() 109 FIELD_PREP(GENMASK(23, 8), param->constraint_set_flags) | in allegro_encode_config_blob() 110 FIELD_PREP(GENMASK(7, 0), param->profile); in allegro_encode_config_blob() 111 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->tier) | in allegro_encode_config_blob() 112 FIELD_PREP(GENMASK(15, 0), param->level); in allegro_encode_config_blob() 116 val |= FIELD_PREP(GENMASK(7, 4), param->log2_max_frame_num); in allegro_encode_config_blob() 118 val |= FIELD_PREP(GENMASK(3, 0), param->log2_max_poc - 1); in allegro_encode_config_blob() 120 val |= FIELD_PREP(GENMASK(3, 0), param->log2_max_poc); in allegro_encode_config_blob() [all …]
|
/Linux-v6.6/drivers/phy/starfive/ |
D | phy-jh7110-dphy-rx.c | 83 writel(FIELD_PREP(STF_DPHY_ENABLE_CLK, 1) | in stf_dphy_configure() 84 FIELD_PREP(STF_DPHY_ENABLE_CLK1, 1) | in stf_dphy_configure() 85 FIELD_PREP(STF_DPHY_ENABLE_LAN0, 1) | in stf_dphy_configure() 86 FIELD_PREP(STF_DPHY_ENABLE_LAN1, 1) | in stf_dphy_configure() 87 FIELD_PREP(STF_DPHY_ENABLE_LAN2, 1) | in stf_dphy_configure() 88 FIELD_PREP(STF_DPHY_ENABLE_LAN3, 1) | in stf_dphy_configure() 89 FIELD_PREP(STF_DPHY_LANE_SWAP_CLK, info->maps[0]) | in stf_dphy_configure() 90 FIELD_PREP(STF_DPHY_LANE_SWAP_CLK1, info->maps[5]) | in stf_dphy_configure() 91 FIELD_PREP(STF_DPHY_LANE_SWAP_LAN0, info->maps[1]) | in stf_dphy_configure() 92 FIELD_PREP(STF_DPHY_LANE_SWAP_LAN1, info->maps[2]), in stf_dphy_configure() [all …]
|
/Linux-v6.6/drivers/fpga/ |
D | dfl-n3000-nios.c | 104 (FIELD_PREP(N3000_NIOS_INIT_REQ_FEC_MODE_A0_MSK, \ 106 FIELD_PREP(N3000_NIOS_INIT_REQ_FEC_MODE_A1_MSK, \ 108 FIELD_PREP(N3000_NIOS_INIT_REQ_FEC_MODE_A2_MSK, \ 110 FIELD_PREP(N3000_NIOS_INIT_REQ_FEC_MODE_A3_MSK, \ 112 FIELD_PREP(N3000_NIOS_INIT_REQ_FEC_MODE_B0_MSK, \ 114 FIELD_PREP(N3000_NIOS_INIT_REQ_FEC_MODE_B1_MSK, \ 116 FIELD_PREP(N3000_NIOS_INIT_REQ_FEC_MODE_B2_MSK, \ 118 FIELD_PREP(N3000_NIOS_INIT_REQ_FEC_MODE_B3_MSK, \ 122 (FIELD_PREP(N3000_NIOS_INIT_REQ_FEC_MODE_A0_MSK, \ 124 FIELD_PREP(N3000_NIOS_INIT_REQ_FEC_MODE_A1_MSK, \ [all …]
|
/Linux-v6.6/drivers/phy/mediatek/ |
D | phy-mtk-hdmi-mt8173.c | 164 FIELD_PREP(RG_HDMITX_PLL_IC, 0x1) | in mtk_hdmi_pll_set_rate() 165 FIELD_PREP(RG_HDMITX_PLL_IR, 0x1)); in mtk_hdmi_pll_set_rate() 169 FIELD_PREP(RG_HDMITX_PLL_FBKSEL, 0x1) | in mtk_hdmi_pll_set_rate() 170 FIELD_PREP(RG_HDMITX_PLL_FBKDIV, 19)); in mtk_hdmi_pll_set_rate() 175 FIELD_PREP(RG_HDMITX_PLL_BP, 0xc) | in mtk_hdmi_pll_set_rate() 176 FIELD_PREP(RG_HDMITX_PLL_BC, 0x2) | in mtk_hdmi_pll_set_rate() 177 FIELD_PREP(RG_HDMITX_PLL_BR, 0x1)); in mtk_hdmi_pll_set_rate() 192 FIELD_PREP(RG_HDMITX_PRD_IBIAS_CLK, pre_ibias) | in mtk_hdmi_pll_set_rate() 193 FIELD_PREP(RG_HDMITX_PRD_IBIAS_D2, pre_ibias) | in mtk_hdmi_pll_set_rate() 194 FIELD_PREP(RG_HDMITX_PRD_IBIAS_D1, pre_ibias) | in mtk_hdmi_pll_set_rate() [all …]
|