/openbmc/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_diag.c | 36 u32 mask, u32 write) in reg_pattern_test() argument 48 if (val != (test_pattern[pat] & write & mask)) { in reg_pattern_test() 62 u32 mask, u32 write) in reg_set_and_check() argument 68 wr32(reg, write & mask); in reg_set_and_check() 70 if ((write & mask) != (val & mask)) { in reg_set_and_check() 73 reg, (val & mask), (write & mask)); in reg_set_and_check() 118 test->mask, in igc_reg_test() 124 test->mask, in igc_reg_test() 130 test->mask, in igc_reg_test() 136 test->mask, in igc_reg_test() [all …]
|
/openbmc/u-boot/board/keymile/kmp204x/ |
H A D | qrio.c | 29 u32 gprt, mask; in qrio_set_gpio() local 33 mask = 1U << gpio_nr; in qrio_set_gpio() 37 gprt |= mask; in qrio_set_gpio() 39 gprt &= ~mask; in qrio_set_gpio() 46 u32 direct, mask; in qrio_gpio_direction_output() local 53 direct |= mask; in qrio_gpio_direction_output() 61 u32 direct, mask; in qrio_gpio_direction_input() local 68 direct &= ~mask; in qrio_gpio_direction_input() 74 u32 direct, mask; in qrio_set_opendrain_gpio() local 83 direct |= mask; in qrio_set_opendrain_gpio() [all …]
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | sleep.S | 39 .macro compute_mpidr_hash dst, rs0, rs1, rs2, rs3, mpidr, mask argument 40 and \mpidr, \mpidr, \mask // mask out MPIDR bits 43 and \mask, \mpidr, #0xff00 // mask = aff1 44 lsr \mask ,\mask, \rs1 45 orr \dst, \dst, \mask // dst|=(aff1>>rs1) 46 and \mask, \mpidr, #0xff0000 // mask = aff2 47 lsr \mask ,\mask, \rs2 48 orr \dst, \dst, \mask // dst|=(aff2>>rs2) 49 and \mask, \mpidr, #0xff00000000 // mask = aff3 50 lsr \mask ,\mask, \rs3 [all …]
|
/openbmc/linux/sound/soc/intel/common/ |
H A D | soc-acpi-intel-sdw-mockup-match.c | 108 .mask = BIT(0), 113 .mask = BIT(1), 118 .mask = BIT(3), 127 .mask = BIT(0), 132 .mask = BIT(1), 137 .mask = BIT(2), 142 .mask = BIT(3), 151 .mask = BIT(1), 156 .mask = BIT(2), 161 .mask = BIT(0),
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | cpu_mask.c | 8 static void validate_mask(int case_nr, const char *exp, bool *mask, int n) in validate_mask() argument 18 CHECK(!mask[i], "cpu_not_set", in validate_mask() 22 CHECK(i < n && mask[i], "cpu_set", in validate_mask() 61 bool *mask; in test_cpu_mask() local 64 mask = NULL; in test_cpu_mask() 65 err = parse_cpu_mask_str(test_cases[i].cpu_mask, &mask, &n); in test_cpu_mask() 74 validate_mask(i + 1, test_cases[i].expect, mask, n); in test_cpu_mask() 76 free(mask); in test_cpu_mask()
|
/openbmc/linux/arch/riscv/include/asm/ |
H A D | word-at-a-time.h | 23 unsigned long mask = ((val - c->one_bits) & ~val) & c->high_bits; in has_zero() local 24 *bits = mask; in has_zero() 25 return mask; in has_zero() 40 static inline unsigned long find_zero(unsigned long mask) in find_zero() argument 42 return fls64(mask) >> 3; in find_zero() 46 #define zero_bytemask(mask) (mask) argument
|
/openbmc/linux/arch/arm/mach-s3c/ |
H A D | wakeup-mask.c | 18 const struct samsung_wakeup_mask *mask, int nr_mask) in samsung_sync_wakemask() argument 25 for (; nr_mask > 0; nr_mask--, mask++) { in samsung_sync_wakemask() 26 if (mask->irq == NO_WAKEUP_IRQ) { in samsung_sync_wakemask() 27 val |= mask->bit; in samsung_sync_wakemask() 31 data = irq_get_irq_data(mask->irq); in samsung_sync_wakemask() 35 val &= ~mask->bit; in samsung_sync_wakemask() 37 val |= mask->bit; in samsung_sync_wakemask()
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-io.h | 16 static inline void iwl_set_bit(struct iwl_trans *trans, u32 reg, u32 mask) in iwl_set_bit() argument 18 iwl_trans_set_bits_mask(trans, reg, mask, mask); in iwl_set_bit() 23 iwl_trans_set_bits_mask(trans, reg, mask, 0); in iwl_clear_bit() 27 u32 bits, u32 mask, int timeout); 28 int iwl_poll_direct_bit(struct iwl_trans *trans, u32 addr, u32 mask, 48 u32 bits, u32 mask, int timeout); 49 void iwl_set_bits_prph(struct iwl_trans *trans, u32 ofs, u32 mask); 51 u32 bits, u32 mask); 52 void iwl_clear_bits_prph(struct iwl_trans *trans, u32 ofs, u32 mask); 95 u32 bits, u32 mask, int timeout) in iwl_poll_umac_prph_bit() argument [all …]
|
/openbmc/linux/arch/arm/mach-rpc/ |
H A D | irq.c | 117 static void iomd_set_base_mask(unsigned int irq, void __iomem *base, u32 mask) in iomd_set_base_mask() argument 121 d->mask = mask; in iomd_set_base_mask() 128 unsigned int val, mask = d->mask; in iomd_irq_mask_ack() local 131 writeb(val & ~mask, base + MASK); in iomd_irq_mask_ack() 132 writeb(mask, base + CLR); in iomd_irq_mask_ack() 138 unsigned int val, mask = d->mask; in iomd_irq_mask() local 141 writeb(val & ~mask, base + MASK); in iomd_irq_mask() 147 unsigned int val, mask = d->mask; in iomd_irq_unmask() local 150 writeb(val | mask, base + MASK); in iomd_irq_unmask()
|
/openbmc/u-boot/arch/sandbox/include/asm/ |
H A D | bitops.h | 45 unsigned long mask = BIT_MASK(nr); in __change_bit() local 48 *p ^= mask; in __change_bit() 53 unsigned long mask = BIT_MASK(nr); in __test_and_set_bit() local 57 *p = old | mask; in __test_and_set_bit() 58 return (old & mask) != 0; in __test_and_set_bit() 75 unsigned long mask = BIT_MASK(nr); in __test_and_clear_bit() local 79 *p = old & ~mask; in __test_and_clear_bit() 80 return (old & mask) != 0; in __test_and_clear_bit() 99 unsigned long mask = BIT_MASK(nr); in __test_and_change_bit() local 103 *p = old ^ mask; in __test_and_change_bit() [all …]
|
/openbmc/linux/arch/s390/mm/ |
H A D | pgalloc.c | 266 mask = (mask | (mask >> 4)) & 0x03U; in page_table_alloc() 348 mask >>= 24; in page_table_free() 362 mask >>= 24; in page_table_free() 363 if (mask != 0x00U) in page_table_free() 369 mask >>= 24; in page_table_free() 401 mask >>= 24; in page_table_free_rcu() 421 unsigned int mask = (unsigned long) _table & 0x03U, half = mask; in __tlb_remove_table() local 431 mask = atomic_xor_bits(&ptdesc->_refcount, mask << (4 + 24)); in __tlb_remove_table() 432 mask >>= 24; in __tlb_remove_table() 433 if (mask != 0x00U) in __tlb_remove_table() [all …]
|
/openbmc/u-boot/drivers/mmc/ |
H A D | kona_sdhci.c | 24 unsigned int mask; in init_kona_mmc_core() local 33 mask = sdhci_readl(host, SDHCI_CORECTRL_OFFSET) | SDHCI_CORECTRL_RESET; in init_kona_mmc_core() 34 sdhci_writel(host, mask, SDHCI_CORECTRL_OFFSET); in init_kona_mmc_core() 50 mask = mask & ~SDHCI_CORECTRL_RESET; in init_kona_mmc_core() 51 sdhci_writel(host, mask, SDHCI_CORECTRL_OFFSET); in init_kona_mmc_core() 54 mask = sdhci_readl(host, SDHCI_CORECTRL_OFFSET); in init_kona_mmc_core() 55 sdhci_writel(host, mask | SDHCI_CORECTRL_EN, SDHCI_CORECTRL_OFFSET); in init_kona_mmc_core() 61 mask = sdhci_readl(host, SDHCI_CORESTAT_OFFSET); in init_kona_mmc_core() 62 sdhci_writel(host, mask | SDHCI_CORESTAT_CD_SW, SDHCI_CORESTAT_OFFSET); in init_kona_mmc_core()
|
/openbmc/linux/fs/ntfs3/ |
H A D | bitfunc.c | 83 u8 mask; in are_bits_set() local 89 mask = fill_mask[pos + nbits] & zero_mask[pos]; in are_bits_set() 90 return !nbits || (*map & mask) == mask; in are_bits_set() 93 mask = zero_mask[pos]; in are_bits_set() 94 if ((*map++ & mask) != mask) in are_bits_set() 122 mask = fill_mask[pos]; in are_bits_set() 123 if ((*map & mask) != mask) in are_bits_set()
|
/openbmc/linux/drivers/scsi/lpfc/ |
H A D | lpfc_logmsg.h | 57 #define lpfc_vlog_msg(vport, level, mask, fmt, arg...) \ argument 58 { if (((mask) & (vport)->cfg_log_verbose) || (level[1] <= '5')) \ 62 #define lpfc_log_msg(phba, level, mask, fmt, arg...) \ argument 67 if (((mask) & log_verbose) || (level[1] <= '5')) \ 73 #define lpfc_printf_vlog(vport, level, mask, fmt, arg...) \ argument 75 { if (((mask) & (vport)->cfg_log_verbose) || (level[1] <= '3')) { \ 76 if ((mask) & LOG_TRACE_EVENT && !(vport)->cfg_log_verbose) \ 86 #define lpfc_printf_log(phba, level, mask, fmt, arg...) \ argument 91 if (((mask) & log_verbose) || (level[1] <= '3')) { \ 92 if ((mask) & LOG_TRACE_EVENT && !log_verbose) \
|
/openbmc/u-boot/drivers/bios_emulator/x86emu/ |
H A D | ops2.c | 556 u32 mask; in x86emuOp2_bts_R() local 568 u16 mask; in x86emuOp2_bts_R() local 881 u32 mask; in x86emuOp2_btr_R() local 893 u16 mask; in x86emuOp2_btr_R() local 1149 u32 mask; in x86emuOp2_btX_I() local 1160 *srcreg |= mask; in x86emuOp2_btX_I() 1166 *srcreg ^= mask; in x86emuOp2_btX_I() 1173 u16 mask; in x86emuOp2_btX_I() local 1184 *srcreg |= mask; in x86emuOp2_btX_I() 1245 u32 mask; in x86emuOp2_btc_R() local [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mc/ |
H A D | ga100.c | 25 ga100_mc_device_disable(struct nvkm_mc *mc, u32 mask) in ga100_mc_device_disable() argument 29 nvkm_mask(device, 0x000600, mask, 0x00000000); in ga100_mc_device_disable() 35 ga100_mc_device_enable(struct nvkm_mc *mc, u32 mask) in ga100_mc_device_enable() argument 39 nvkm_mask(device, 0x000600, mask, mask); in ga100_mc_device_enable() 45 ga100_mc_device_enabled(struct nvkm_mc *mc, u32 mask) in ga100_mc_device_enabled() argument 47 return (nvkm_rd32(mc->subdev.device, 0x000600) & mask) == mask; in ga100_mc_device_enabled()
|
/openbmc/linux/security/keys/ |
H A D | permission.c | 30 key_perm_t kperm, mask; in key_task_permission() local 43 case KEY_NEED_VIEW: mask = KEY_OTH_VIEW; break; in key_task_permission() 44 case KEY_NEED_READ: mask = KEY_OTH_READ; break; in key_task_permission() 45 case KEY_NEED_WRITE: mask = KEY_OTH_WRITE; break; in key_task_permission() 46 case KEY_NEED_SEARCH: mask = KEY_OTH_SEARCH; break; in key_task_permission() 47 case KEY_NEED_LINK: mask = KEY_OTH_LINK; break; in key_task_permission() 48 case KEY_NEED_SETATTR: mask = KEY_OTH_SETATTR; break; in key_task_permission() 85 if ((kperm & mask) != mask) in key_task_permission()
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | mpspec.h | 81 unsigned long mask[PHYSID_ARRAY_SIZE]; member 86 #define physid_set(physid, map) set_bit(physid, (map).mask) 87 #define physid_isset(physid, map) test_bit(physid, (map).mask) 90 bitmap_or((dst).mask, (src1).mask, (src2).mask, MAX_LOCAL_APIC) 93 bitmap_zero((map).mask, MAX_LOCAL_APIC) 96 bitmap_empty((map).mask, MAX_LOCAL_APIC) 101 map->mask[0] = physids; in physids_promote()
|
/openbmc/linux/drivers/infiniband/hw/qib/ |
H A D | qib_qsfp.c | 50 u32 out, mask; in qsfp_read() local 78 dd->f_gpio_mod(dd, out, mask, mask); in qsfp_read() 128 dd->f_gpio_mod(dd, mask, mask, mask); in qsfp_read() 161 u32 out, mask; in qib_qsfp_write() local 187 dd->f_gpio_mod(dd, out, mask, mask); in qib_qsfp_write() 233 dd->f_gpio_mod(dd, mask, mask, mask); in qib_qsfp_write() 446 u32 mask; in qib_qsfp_mod_present() local 453 return !((ret & mask) >> in qib_qsfp_mod_present() 464 u32 mask, highs; in qib_qsfp_init() local 482 dd->f_gpio_mod(dd, highs, mask, mask); in qib_qsfp_init() [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-sa1100.c | 138 sgc->irqrising |= mask; in sa1100_gpio_type() 140 sgc->irqrising &= ~mask; in sa1100_gpio_type() 142 sgc->irqfalling |= mask; in sa1100_gpio_type() 144 sgc->irqfalling &= ~mask; in sa1100_gpio_type() 166 sgc->irqmask &= ~mask; in sa1100_gpio_mask() 176 sgc->irqmask |= mask; in sa1100_gpio_unmask() 233 unsigned int irq, mask; in sa1100_gpio_handler() local 246 if (mask & 1) in sa1100_gpio_handler() 248 mask >>= 1; in sa1100_gpio_handler() 250 } while (mask); in sa1100_gpio_handler() [all …]
|
/openbmc/openbmc/poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/ |
H A D | 14_cidr_support.patch | 24 - || (mask = dot_quad_addr(mask_tok)) == INADDR_NONE) { 25 + || ((mask = dot_quad_addr(mask_tok)) == INADDR_NONE 26 + && (mask = cidr_mask_addr(mask_tok)) == 0)) { 28 tcpd_warn("bad net/mask expression: %s/%s", net_tok, mask_tok); 58 - || dot_quad_addr(mask) == INADDR_NONE) 59 + || dot_quad_addr(mask) == INADDR_NONE && cidr_mask_addr(mask) == 0) 61 || ((mask_len = atoi(mask)) < 0 || mask_len > 128))) 64 - || dot_quad_addr(mask) == INADDR_NONE) 65 + || dot_quad_addr(mask) == INADDR_NONE && cidr_mask_addr(mask) == 0) 67 tcpd_warn("%s/%s: bad net/mask pattern", pat, mask);
|
/openbmc/u-boot/tools/ |
H A D | pbl_crc32.c | 14 uint32_t mask; in make_crc_table() local 28 mask = i << 24; in make_crc_table() 30 if (mask & 0x80000000) in make_crc_table() 31 mask = (mask << 1) ^ poly; in make_crc_table() 33 mask <<= 1; in make_crc_table() 35 crc_table[i] = mask; in make_crc_table()
|
/openbmc/linux/drivers/ssb/ |
H A D | embedded.c | 69 u32 ssb_gpio_in(struct ssb_bus *bus, u32 mask) in ssb_gpio_in() argument 76 res = ssb_chipco_gpio_in(&bus->chipco, mask); in ssb_gpio_in() 78 res = ssb_extif_gpio_in(&bus->extif, mask); in ssb_gpio_in() 87 u32 ssb_gpio_out(struct ssb_bus *bus, u32 mask, u32 value) in ssb_gpio_out() argument 94 res = ssb_chipco_gpio_out(&bus->chipco, mask, value); in ssb_gpio_out() 96 res = ssb_extif_gpio_out(&bus->extif, mask, value); in ssb_gpio_out() 112 res = ssb_chipco_gpio_outen(&bus->chipco, mask, value); in ssb_gpio_outen() 114 res = ssb_extif_gpio_outen(&bus->extif, mask, value); in ssb_gpio_outen() 130 res = ssb_chipco_gpio_control(&bus->chipco, mask, value); in ssb_gpio_control() 146 res = ssb_extif_gpio_intmask(&bus->extif, mask, value); in ssb_gpio_intmask() [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_mps.c | 7 const u8 *addr, const u8 *mask) in cxgb4_mps_ref_dec_by_mac() argument 16 ether_addr_equal(mps_entry->mask, mask ? mask : bitmask)) { in cxgb4_mps_ref_dec_by_mac() 54 u16 idx, const u8 *mask) in cxgb4_mps_ref_inc() argument 72 ether_addr_copy(mps_entry->mask, mask ? mask : bitmask); in cxgb4_mps_ref_inc() 147 const u8 *mask, in cxgb4_free_raw_mac_filt() argument 157 mask, idx, lookup_type, in cxgb4_free_raw_mac_filt() 166 const u8 *mask, in cxgb4_alloc_raw_mac_filt() argument 175 mask, idx, lookup_type, in cxgb4_alloc_raw_mac_filt() 180 if (cxgb4_mps_ref_inc(adap, addr, ret, mask)) { in cxgb4_alloc_raw_mac_filt() 183 mask, idx, lookup_type, in cxgb4_alloc_raw_mac_filt() [all …]
|
/openbmc/qemu/target/alpha/ |
H A D | int_helper.c | 29 uint64_t mask; in helper_zapnot() local 31 mask = -(mskb & 0x01) & 0x00000000000000ffull; in helper_zapnot() 32 mask |= -(mskb & 0x02) & 0x000000000000ff00ull; in helper_zapnot() 40 return val & mask; in helper_zapnot() 43 uint64_t helper_zap(uint64_t val, uint64_t mask) in helper_zap() argument 45 return helper_zapnot(val, ~mask); in helper_zap() 64 uint64_t mask = 0x00ff00ff00ff00ffULL; in helper_cmpbge() local 69 al = a & mask; in helper_cmpbge() 70 bl = b & mask; in helper_cmpbge() 71 ah = (a >> 8) & mask; in helper_cmpbge() [all …]
|