| /kernel/linux/linux-5.10/drivers/misc/habanalabs/gaudi/ |
| D | gaudi_security.c | 489 u32 pb_addr, mask; in gaudi_init_mme_protection_bits() local 515 mask = 1U << ((mmMME0_CTRL_RESET & 0x7F) >> 2); in gaudi_init_mme_protection_bits() 516 mask |= 1U << ((mmMME0_CTRL_QM_STALL & 0x7F) >> 2); in gaudi_init_mme_protection_bits() 517 mask |= 1U << ((mmMME0_CTRL_SYNC_OBJECT_FIFO_TH & 0x7F) >> 2); in gaudi_init_mme_protection_bits() 518 mask |= 1U << ((mmMME0_CTRL_EUS_ROLLUP_CNT_ADD & 0x7F) >> 2); in gaudi_init_mme_protection_bits() 519 mask |= 1U << ((mmMME0_CTRL_INTR_CAUSE & 0x7F) >> 2); in gaudi_init_mme_protection_bits() 520 mask |= 1U << ((mmMME0_CTRL_INTR_MASK & 0x7F) >> 2); in gaudi_init_mme_protection_bits() 521 mask |= 1U << ((mmMME0_CTRL_LOG_SHADOW & 0x7F) >> 2); in gaudi_init_mme_protection_bits() 522 mask |= 1U << ((mmMME0_CTRL_PCU_RL_DESC0 & 0x7F) >> 2); in gaudi_init_mme_protection_bits() 523 mask |= 1U << ((mmMME0_CTRL_PCU_RL_TOKEN_UPDATE & 0x7F) >> 2); in gaudi_init_mme_protection_bits() [all …]
|
| /kernel/linux/linux-6.6/drivers/accel/habanalabs/gaudi/ |
| D | gaudi_security.c | 489 u32 pb_addr, mask; in gaudi_init_mme_protection_bits() local 515 mask = 1U << ((mmMME0_CTRL_RESET & 0x7F) >> 2); in gaudi_init_mme_protection_bits() 516 mask |= 1U << ((mmMME0_CTRL_QM_STALL & 0x7F) >> 2); in gaudi_init_mme_protection_bits() 517 mask |= 1U << ((mmMME0_CTRL_SYNC_OBJECT_FIFO_TH & 0x7F) >> 2); in gaudi_init_mme_protection_bits() 518 mask |= 1U << ((mmMME0_CTRL_EUS_ROLLUP_CNT_ADD & 0x7F) >> 2); in gaudi_init_mme_protection_bits() 519 mask |= 1U << ((mmMME0_CTRL_INTR_CAUSE & 0x7F) >> 2); in gaudi_init_mme_protection_bits() 520 mask |= 1U << ((mmMME0_CTRL_INTR_MASK & 0x7F) >> 2); in gaudi_init_mme_protection_bits() 521 mask |= 1U << ((mmMME0_CTRL_LOG_SHADOW & 0x7F) >> 2); in gaudi_init_mme_protection_bits() 522 mask |= 1U << ((mmMME0_CTRL_PCU_RL_DESC0 & 0x7F) >> 2); in gaudi_init_mme_protection_bits() 523 mask |= 1U << ((mmMME0_CTRL_PCU_RL_TOKEN_UPDATE & 0x7F) >> 2); in gaudi_init_mme_protection_bits() [all …]
|
| /kernel/linux/linux-6.6/drivers/accel/habanalabs/goya/ |
| D | goya_security.c | 30 u32 pb_addr, mask; in goya_init_mme_protection_bits() local 69 mask = 1 << ((mmMME_DUMMY & 0x7F) >> 2); in goya_init_mme_protection_bits() 70 mask |= 1 << ((mmMME_RESET & 0x7F) >> 2); in goya_init_mme_protection_bits() 71 mask |= 1 << ((mmMME_STALL & 0x7F) >> 2); in goya_init_mme_protection_bits() 72 mask |= 1 << ((mmMME_SM_BASE_ADDRESS_LOW & 0x7F) >> 2); in goya_init_mme_protection_bits() 73 mask |= 1 << ((mmMME_SM_BASE_ADDRESS_HIGH & 0x7F) >> 2); in goya_init_mme_protection_bits() 74 mask |= 1 << ((mmMME_DBGMEM_ADD & 0x7F) >> 2); in goya_init_mme_protection_bits() 75 mask |= 1 << ((mmMME_DBGMEM_DATA_WR & 0x7F) >> 2); in goya_init_mme_protection_bits() 76 mask |= 1 << ((mmMME_DBGMEM_DATA_RD & 0x7F) >> 2); in goya_init_mme_protection_bits() 77 mask |= 1 << ((mmMME_DBGMEM_CTRL & 0x7F) >> 2); in goya_init_mme_protection_bits() [all …]
|
| /kernel/linux/linux-5.10/drivers/misc/habanalabs/goya/ |
| D | goya_security.c | 30 u32 pb_addr, mask; in goya_init_mme_protection_bits() local 69 mask = 1 << ((mmMME_DUMMY & 0x7F) >> 2); in goya_init_mme_protection_bits() 70 mask |= 1 << ((mmMME_RESET & 0x7F) >> 2); in goya_init_mme_protection_bits() 71 mask |= 1 << ((mmMME_STALL & 0x7F) >> 2); in goya_init_mme_protection_bits() 72 mask |= 1 << ((mmMME_SM_BASE_ADDRESS_LOW & 0x7F) >> 2); in goya_init_mme_protection_bits() 73 mask |= 1 << ((mmMME_SM_BASE_ADDRESS_HIGH & 0x7F) >> 2); in goya_init_mme_protection_bits() 74 mask |= 1 << ((mmMME_DBGMEM_ADD & 0x7F) >> 2); in goya_init_mme_protection_bits() 75 mask |= 1 << ((mmMME_DBGMEM_DATA_WR & 0x7F) >> 2); in goya_init_mme_protection_bits() 76 mask |= 1 << ((mmMME_DBGMEM_DATA_RD & 0x7F) >> 2); in goya_init_mme_protection_bits() 77 mask |= 1 << ((mmMME_DBGMEM_CTRL & 0x7F) >> 2); in goya_init_mme_protection_bits() [all …]
|
| /kernel/linux/linux-5.10/drivers/video/fbdev/riva/ |
| D | nvreg.h | 31 #define MASKEXPAND(mask) BITMASK(1?mask,0?mask) argument 33 /* Macro to set specific bitfields (mask has to be a macro x:y) ! */ 34 #define SetBF(mask,value) ((value) << (0?mask)) argument 35 #define GetBF(var,mask) (((unsigned)((var) & MASKEXPAND(mask))) >> (0?mask) ) argument 37 #define MaskAndSetBF(var,mask,value) (var)=(((var)&(~MASKEXPAND(mask)) \ argument 38 | SetBF(mask,value))) 51 #define DEVICE_DEF(device,mask,value) \ argument 52 SetBF(NV_##device##_##mask,NV_##device##_##mask##_##value) 53 #define DEVICE_VALUE(device,mask,value) SetBF(NV_##device##_##mask,value) argument 54 #define DEVICE_MASK(device,mask) MASKEXPAND(NV_##device##_##mask) argument [all …]
|
| /kernel/linux/linux-6.6/drivers/video/fbdev/riva/ |
| D | nvreg.h | 31 #define MASKEXPAND(mask) BITMASK(1?mask,0?mask) argument 33 /* Macro to set specific bitfields (mask has to be a macro x:y) ! */ 34 #define SetBF(mask,value) ((value) << (0?mask)) argument 35 #define GetBF(var,mask) (((unsigned)((var) & MASKEXPAND(mask))) >> (0?mask) ) argument 37 #define MaskAndSetBF(var,mask,value) (var)=(((var)&(~MASKEXPAND(mask)) \ argument 38 | SetBF(mask,value))) 51 #define DEVICE_DEF(device,mask,value) \ argument 52 SetBF(NV_##device##_##mask,NV_##device##_##mask##_##value) 53 #define DEVICE_VALUE(device,mask,value) SetBF(NV_##device##_##mask,value) argument 54 #define DEVICE_MASK(device,mask) MASKEXPAND(NV_##device##_##mask) argument [all …]
|
| /kernel/linux/linux-5.10/drivers/mfd/ |
| D | sec-irq.c | 23 .mask = S2MPS11_IRQ_PWRONF_MASK, 27 .mask = S2MPS11_IRQ_PWRONR_MASK, 31 .mask = S2MPS11_IRQ_JIGONBF_MASK, 35 .mask = S2MPS11_IRQ_JIGONBR_MASK, 39 .mask = S2MPS11_IRQ_ACOKBF_MASK, 43 .mask = S2MPS11_IRQ_ACOKBR_MASK, 47 .mask = S2MPS11_IRQ_PWRON1S_MASK, 51 .mask = S2MPS11_IRQ_MRB_MASK, 55 .mask = S2MPS11_IRQ_RTC60S_MASK, 59 .mask = S2MPS11_IRQ_RTCA1_MASK, [all …]
|
| D | wm8350-irq.c | 37 int mask; member 45 .mask = WM8350_OC_LS_EINT, 51 .mask = WM8350_UV_DC1_EINT, 56 .mask = WM8350_UV_DC2_EINT, 61 .mask = WM8350_UV_DC3_EINT, 66 .mask = WM8350_UV_DC4_EINT, 71 .mask = WM8350_UV_DC5_EINT, 76 .mask = WM8350_UV_DC6_EINT, 81 .mask = WM8350_UV_LDO1_EINT, 86 .mask = WM8350_UV_LDO2_EINT, [all …]
|
| /kernel/linux/linux-6.6/drivers/mfd/ |
| D | sec-irq.c | 22 .mask = S2MPS11_IRQ_PWRONF_MASK, 26 .mask = S2MPS11_IRQ_PWRONR_MASK, 30 .mask = S2MPS11_IRQ_JIGONBF_MASK, 34 .mask = S2MPS11_IRQ_JIGONBR_MASK, 38 .mask = S2MPS11_IRQ_ACOKBF_MASK, 42 .mask = S2MPS11_IRQ_ACOKBR_MASK, 46 .mask = S2MPS11_IRQ_PWRON1S_MASK, 50 .mask = S2MPS11_IRQ_MRB_MASK, 54 .mask = S2MPS11_IRQ_RTC60S_MASK, 58 .mask = S2MPS11_IRQ_RTCA1_MASK, [all …]
|
| D | wm8350-irq.c | 37 int mask; member 45 .mask = WM8350_OC_LS_EINT, 51 .mask = WM8350_UV_DC1_EINT, 56 .mask = WM8350_UV_DC2_EINT, 61 .mask = WM8350_UV_DC3_EINT, 66 .mask = WM8350_UV_DC4_EINT, 71 .mask = WM8350_UV_DC5_EINT, 76 .mask = WM8350_UV_DC6_EINT, 81 .mask = WM8350_UV_LDO1_EINT, 86 .mask = WM8350_UV_LDO2_EINT, [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
| D | dr_ste.c | 11 u8 mask[DR_STE_SIZE_MASK]; member 40 /* Mask tag using byte mask, bit per byte */ in mlx5dr_ste_calc_hash_index() 79 memcpy(hw_ste->mask, bit_mask, DR_STE_SIZE_MASK); in mlx5dr_ste_set_bit_mask() 85 memset(&hw_ste->mask, 0, sizeof(hw_ste->mask)); in dr_ste_set_always_hit() 91 hw_ste->mask[0] = 0; in dr_ste_set_always_miss() 700 "Partial ip_version mask with src/dst IP is not supported\n"); in dr_ste_build_pre_check_spec() 706 "Partial/no ethertype mask with src/dst IP is not supported\n"); in dr_ste_build_pre_check_spec() 715 struct mlx5dr_match_param *mask, in mlx5dr_ste_build_pre_check() argument 722 if (mask->misc.source_port && mask->misc.source_port != 0xffff) { in mlx5dr_ste_build_pre_check() 724 "Partial mask source_port is not supported\n"); in mlx5dr_ste_build_pre_check() [all …]
|
| D | dr_matcher.c | 116 dr_mask_is_tnl_vxlan_gpe(struct mlx5dr_match_param *mask, in dr_mask_is_tnl_vxlan_gpe() argument 119 return dr_mask_is_vxlan_gpe_set(&mask->misc3) && in dr_mask_is_tnl_vxlan_gpe() 157 dr_mask_is_tnl_geneve(struct mlx5dr_match_param *mask, in dr_mask_is_tnl_geneve() argument 160 return dr_mask_is_tnl_geneve_set(&mask->misc) && in dr_mask_is_tnl_geneve() 174 static bool dr_mask_is_tnl_gtpu(struct mlx5dr_match_param *mask, in dr_mask_is_tnl_gtpu() argument 177 return dr_mask_is_tnl_gtpu_set(&mask->misc3) && in dr_mask_is_tnl_gtpu() 186 static bool dr_mask_is_tnl_gtpu_dw_0(struct mlx5dr_match_param *mask, in dr_mask_is_tnl_gtpu_dw_0() argument 189 return mask->misc3.gtpu_dw_0 && in dr_mask_is_tnl_gtpu_dw_0() 198 static bool dr_mask_is_tnl_gtpu_teid(struct mlx5dr_match_param *mask, in dr_mask_is_tnl_gtpu_teid() argument 201 return mask->misc3.gtpu_teid && in dr_mask_is_tnl_gtpu_teid() [all …]
|
| D | dr_ste_v1.h | 37 struct mlx5dr_match_param *mask); 39 struct mlx5dr_match_param *mask); 41 struct mlx5dr_match_param *mask); 43 struct mlx5dr_match_param *mask); 45 struct mlx5dr_match_param *mask); 47 struct mlx5dr_match_param *mask); 49 struct mlx5dr_match_param *mask); 51 struct mlx5dr_match_param *mask); 53 struct mlx5dr_match_param *mask); 55 struct mlx5dr_match_param *mask); [all …]
|
| /kernel/linux/linux-6.6/include/sound/ |
| D | pcm_params.h | 26 static inline void snd_mask_none(struct snd_mask *mask) in snd_mask_none() argument 28 memset(mask, 0, sizeof(*mask)); in snd_mask_none() 31 static inline void snd_mask_any(struct snd_mask *mask) in snd_mask_any() argument 33 memset(mask, 0xff, SNDRV_MASK_SIZE * sizeof(u_int32_t)); in snd_mask_any() 36 static inline int snd_mask_empty(const struct snd_mask *mask) in snd_mask_empty() argument 40 if (mask->bits[i]) in snd_mask_empty() 45 static inline unsigned int snd_mask_min(const struct snd_mask *mask) in snd_mask_min() argument 49 if (mask->bits[i]) in snd_mask_min() 50 return __ffs(mask->bits[i]) + (i << 5); in snd_mask_min() 55 static inline unsigned int snd_mask_max(const struct snd_mask *mask) in snd_mask_max() argument [all …]
|
| /kernel/linux/linux-5.10/include/sound/ |
| D | pcm_params.h | 26 static inline void snd_mask_none(struct snd_mask *mask) in snd_mask_none() argument 28 memset(mask, 0, sizeof(*mask)); in snd_mask_none() 31 static inline void snd_mask_any(struct snd_mask *mask) in snd_mask_any() argument 33 memset(mask, 0xff, SNDRV_MASK_SIZE * sizeof(u_int32_t)); in snd_mask_any() 36 static inline int snd_mask_empty(const struct snd_mask *mask) in snd_mask_empty() argument 40 if (mask->bits[i]) in snd_mask_empty() 45 static inline unsigned int snd_mask_min(const struct snd_mask *mask) in snd_mask_min() argument 49 if (mask->bits[i]) in snd_mask_min() 50 return __ffs(mask->bits[i]) + (i << 5); in snd_mask_min() 55 static inline unsigned int snd_mask_max(const struct snd_mask *mask) in snd_mask_max() argument [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/ |
| D | cxgb4_tc_u32_parse.h | 40 /* Fill the value/mask pair in the spec if matched */ 41 int (*val)(struct ch_filter_specification *f, __be32 val, __be32 mask); 46 __be32 val, __be32 mask) in cxgb4_fill_ipv4_tos() argument 49 f->mask.tos = (ntohl(mask) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_tos() 55 __be32 val, __be32 mask) in cxgb4_fill_ipv4_frag() argument 61 mask_val = ntohl(mask) & 0x0000FFFF; in cxgb4_fill_ipv4_frag() 65 f->mask.frag = 1; in cxgb4_fill_ipv4_frag() 68 f->mask.frag = 1; in cxgb4_fill_ipv4_frag() 77 __be32 val, __be32 mask) in cxgb4_fill_ipv4_proto() argument 80 f->mask.proto = (ntohl(mask) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_proto() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/ |
| D | cxgb4_tc_u32_parse.h | 40 /* Fill the value/mask pair in the spec if matched */ 41 int (*val)(struct ch_filter_specification *f, __be32 val, __be32 mask); 46 __be32 val, __be32 mask) in cxgb4_fill_ipv4_tos() argument 49 f->mask.tos = (ntohl(mask) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_tos() 55 __be32 val, __be32 mask) in cxgb4_fill_ipv4_frag() argument 61 mask_val = ntohl(mask) & 0x0000FFFF; in cxgb4_fill_ipv4_frag() 65 f->mask.frag = 1; in cxgb4_fill_ipv4_frag() 68 f->mask.frag = 1; in cxgb4_fill_ipv4_frag() 77 __be32 val, __be32 mask) in cxgb4_fill_ipv4_proto() argument 80 f->mask.proto = (ntohl(mask) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_proto() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
| D | dr_ste.c | 53 #define DR_STE_SET_MPLS_MASK(lookup_type, mask, in_out, bit_mask) do { \ argument 54 DR_STE_SET_MASK_V(lookup_type, mask, mpls0_label, mask, \ 56 DR_STE_SET_MASK_V(lookup_type, mask, mpls0_s_bos, mask, \ 58 DR_STE_SET_MASK_V(lookup_type, mask, mpls0_exp, mask, \ 60 DR_STE_SET_MASK_V(lookup_type, mask, mpls0_ttl, mask, \ 64 #define DR_STE_SET_MPLS_TAG(lookup_type, mask, in_out, tag) do { \ argument 65 DR_STE_SET_TAG(lookup_type, tag, mpls0_label, mask, \ 67 DR_STE_SET_TAG(lookup_type, tag, mpls0_s_bos, mask, \ 69 DR_STE_SET_TAG(lookup_type, tag, mpls0_exp, mask, \ 71 DR_STE_SET_TAG(lookup_type, tag, mpls0_ttl, mask, \ [all …]
|
| D | dr_matcher.c | 121 dr_mask_is_flex_parser_tnl_vxlan_gpe_set(struct mlx5dr_match_param *mask, in dr_mask_is_flex_parser_tnl_vxlan_gpe_set() argument 124 return dr_mask_is_misc3_vxlan_gpe_set(&mask->misc3) && in dr_mask_is_flex_parser_tnl_vxlan_gpe_set() 144 dr_mask_is_flex_parser_tnl_geneve_set(struct mlx5dr_match_param *mask, in dr_mask_is_flex_parser_tnl_geneve_set() argument 147 return dr_mask_is_misc_geneve_set(&mask->misc) && in dr_mask_is_flex_parser_tnl_geneve_set() 205 struct mlx5dr_match_param mask = {}; in dr_matcher_set_ste_builders() local 214 /* Create a temporary mask to track and clear used mask fields */ in dr_matcher_set_ste_builders() 216 mask.outer = matcher->mask.outer; in dr_matcher_set_ste_builders() 219 mask.misc = matcher->mask.misc; in dr_matcher_set_ste_builders() 222 mask.inner = matcher->mask.inner; in dr_matcher_set_ste_builders() 225 mask.misc2 = matcher->mask.misc2; in dr_matcher_set_ste_builders() [all …]
|
| /kernel/linux/linux-6.6/include/asm-generic/ |
| D | word-at-a-time.h | 19 unsigned long mask = (val & c->low_bits) + c->low_bits; in prep_zero_mask() local 20 return ~(mask | rhs); in prep_zero_mask() 23 #define create_zero_mask(mask) (mask) argument 25 static inline long find_zero(unsigned long mask) in find_zero() argument 29 if (mask >> 32) in find_zero() 30 mask >>= 32; in find_zero() 34 if (mask >> 16) in find_zero() 35 mask >>= 16; in find_zero() 38 return (mask >> 8) ? byte : byte + 1; in find_zero() 49 #define zero_bytemask(mask) (~1ul << __fls(mask)) argument [all …]
|
| /kernel/linux/linux-5.10/include/asm-generic/ |
| D | word-at-a-time.h | 19 unsigned long mask = (val & c->low_bits) + c->low_bits; in prep_zero_mask() local 20 return ~(mask | rhs); in prep_zero_mask() 23 #define create_zero_mask(mask) (mask) argument 25 static inline long find_zero(unsigned long mask) in find_zero() argument 29 if (mask >> 32) in find_zero() 30 mask >>= 32; in find_zero() 34 if (mask >> 16) in find_zero() 35 mask >>= 16; in find_zero() 38 return (mask >> 8) ? byte : byte + 1; in find_zero() 49 #define zero_bytemask(mask) (~1ul << __fls(mask)) argument [all …]
|
| /kernel/linux/linux-5.10/net/sched/ |
| D | cls_flower.c | 96 struct fl_flow_key mask; member 111 struct fl_flow_mask *mask; member 139 static unsigned short int fl_mask_range(const struct fl_flow_mask *mask) in fl_mask_range() argument 141 return mask->range.end - mask->range.start; in fl_mask_range() 144 static void fl_mask_update_range(struct fl_flow_mask *mask) in fl_mask_update_range() argument 146 const u8 *bytes = (const u8 *) &mask->key; in fl_mask_update_range() 147 size_t size = sizeof(mask->key); in fl_mask_update_range() 163 mask->range.start = rounddown(first, sizeof(long)); in fl_mask_update_range() 164 mask->range.end = roundup(last + 1, sizeof(long)); in fl_mask_update_range() 168 const struct fl_flow_mask *mask) in fl_key_get_start() argument [all …]
|
| /kernel/linux/linux-6.6/net/sched/ |
| D | cls_flower.c | 100 struct fl_flow_key mask; member 115 struct fl_flow_mask *mask; member 144 static unsigned short int fl_mask_range(const struct fl_flow_mask *mask) in fl_mask_range() argument 146 return mask->range.end - mask->range.start; in fl_mask_range() 149 static void fl_mask_update_range(struct fl_flow_mask *mask) in fl_mask_update_range() argument 151 const u8 *bytes = (const u8 *) &mask->key; in fl_mask_update_range() 152 size_t size = sizeof(mask->key); in fl_mask_update_range() 168 mask->range.start = rounddown(first, sizeof(long)); in fl_mask_update_range() 169 mask->range.end = roundup(last + 1, sizeof(long)); in fl_mask_update_range() 173 const struct fl_flow_mask *mask) in fl_key_get_start() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/gpio/ |
| D | gpio-vr41xx.c | 226 u16 mask; in vr41xx_set_irq_trigger() local 229 mask = 1 << pin; in vr41xx_set_irq_trigger() 231 giu_set(GIUINTTYPL, mask); in vr41xx_set_irq_trigger() 233 giu_set(GIUINTHTSELL, mask); in vr41xx_set_irq_trigger() 235 giu_clear(GIUINTHTSELL, mask); in vr41xx_set_irq_trigger() 239 giu_set(GIUFEDGEINHL, mask); in vr41xx_set_irq_trigger() 240 giu_clear(GIUREDGEINHL, mask); in vr41xx_set_irq_trigger() 243 giu_clear(GIUFEDGEINHL, mask); in vr41xx_set_irq_trigger() 244 giu_set(GIUREDGEINHL, mask); in vr41xx_set_irq_trigger() 247 giu_set(GIUFEDGEINHL, mask); in vr41xx_set_irq_trigger() [all …]
|
| /kernel/linux/linux-5.10/kernel/bpf/ |
| D | tnum.c | 12 #define TNUM(_v, _m) (struct tnum){.value = _v, .mask = _m} 14 const struct tnum tnum_unknown = { .value = 0, .mask = -1 }; 39 return TNUM(a.value << shift, a.mask << shift); in tnum_lshift() 44 return TNUM(a.value >> shift, a.mask >> shift); in tnum_rshift() 56 (u32)(((s32)a.mask) >> min_shift)); in tnum_arshift() 59 (s64)a.mask >> min_shift); in tnum_arshift() 66 sm = a.mask + b.mask; in tnum_add() 70 mu = chi | a.mask | b.mask; in tnum_add() 79 alpha = dv + a.mask; in tnum_sub() 80 beta = dv - b.mask; in tnum_sub() [all …]
|