Searched refs:regbits (Results 1 – 2 of 2) sorted by relevance
/drivers/bus/ |
D | ti-sysc.c | 272 sysc_mask = BIT(ddata->cap->regbits->srst_shift); in sysc_poll_reset_sysconfig() 297 if (ddata->cap->regbits->srst_shift < 0) in sysc_wait_softreset() 1042 const struct sysc_regbits *regbits; in sysc_enable_module() local 1081 regbits = ddata->cap->regbits; in sysc_enable_module() 1089 if (regbits->clkact_shift >= 0 && in sysc_enable_module() 1091 reg |= SYSC_CLOCACT_ICK << regbits->clkact_shift; in sysc_enable_module() 1095 if (!idlemodes || regbits->sidle_shift < 0) in sysc_enable_module() 1103 if (regbits->enwkup_shift >= 0 && in sysc_enable_module() 1104 ddata->cfg.sysc_val & BIT(regbits->enwkup_shift)) in sysc_enable_module() 1105 reg &= ~BIT(regbits->enwkup_shift); in sysc_enable_module() [all …]
|
/drivers/net/dsa/microchip/ |
D | ksz_common.h | 725 #define KSZ_SPI_OP_FLAG_MASK(opcode, swp, regbits, regpad) \ argument 726 swab##swp((opcode) << ((regbits) + (regpad))) 728 #define KSZ_REGMAP_ENTRY(width, swp, regbits, regpad, regalign) \ argument 733 .reg_bits = (regbits) + (regalign), \ 735 .max_register = BIT(regbits) - 1, \ 739 regbits, regpad), \ 742 regbits, regpad), \ 749 #define KSZ_REGMAP_TABLE(ksz, swp, regbits, regpad, regalign) \ argument 751 [KSZ_REGMAP_8] = KSZ_REGMAP_ENTRY(8, swp, (regbits), (regpad), (regalign)), \ 752 [KSZ_REGMAP_16] = KSZ_REGMAP_ENTRY(16, swp, (regbits), (regpad), (regalign)), \ [all …]
|