/linux/lib/ |
H A D | overflow_kunit.c | 84 {0, 1, 1, U16_MAX, 0, false, true, false}, 86 {0, U16_MAX, U16_MAX, 1, 0, false, true, false}, 87 {U16_MAX, 0, U16_MAX, U16_MAX, 0, false, false, false}, 88 {1, U16_MAX, 0, 2, U16_MAX, true, true, false}, 89 {U16_MAX, 1, 0, U16_MAX-1, U16_MAX, true, false, false}, 90 {U16_MAX, U16_MAX, U16_MAX-1, 0, 1, true, false, true}, 92 {U16_MAX, U16_MAX-1, U16_MAX-2, 1, 2, true, false, true}, 93 {U16_MAX-1, U16_MAX, U16_MAX-2, U16_MAX, 2, true, true, true}, 845 TEST_OVERFLOWS_TYPE(u16, u8, U16_MAX, true); in overflows_type_test() 848 TEST_OVERFLOWS_TYPE(u16, s8, U16_MAX, true); in overflows_type_test() [all …]
|
/linux/include/net/netfilter/ |
H A D | nf_tables_ipv6.h | 16 if (protohdr < 0 || thoff > U16_MAX) { in nft_set_pktinfo_ipv6() 51 if (protohdr < 0 || thoff > U16_MAX) in __nft_set_pktinfo_ipv6_validate() 97 if (protohdr < 0 || thoff > U16_MAX) in nft_set_pktinfo_ipv6_ingress()
|
/linux/drivers/net/dsa/sja1105/ |
H A D | sja1105_flower.c | 204 u16 vid = U16_MAX; in sja1105_flower_parse_key() 205 u16 pcp = U16_MAX; in sja1105_flower_parse_key() 280 if (is_bcast_dmac && vid == U16_MAX && pcp == U16_MAX) { in sja1105_flower_parse_key() 284 if (dmac == U64_MAX && vid == U16_MAX && pcp != U16_MAX) { in sja1105_flower_parse_key() 289 if (dmac != U64_MAX && vid != U16_MAX && pcp != U16_MAX) { in sja1105_flower_parse_key()
|
/linux/include/linux/ |
H A D | limits.h | 18 #define U16_MAX ((u16)~0U) macro 19 #define S16_MAX ((s16)(U16_MAX >> 1))
|
H A D | greybus.h | 54 #define CPORT_ID_BAD U16_MAX
|
/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_fdir.c | 41 if (fltr->eth_mask.etype && fltr->eth_mask.etype != htons(U16_MAX)) in iavf_validate_fdir_fltr_masks() 75 if (fltr->ip_mask.src_port && fltr->ip_mask.src_port != htons(U16_MAX)) in iavf_validate_fdir_fltr_masks() 78 if (fltr->ip_mask.dst_port && fltr->ip_mask.dst_port != htons(U16_MAX)) in iavf_validate_fdir_fltr_masks() 403 if (fltr->ip_mask.src_port == htons(U16_MAX)) { in iavf_fill_fdir_tcp_hdr() 408 if (fltr->ip_mask.dst_port == htons(U16_MAX)) { in iavf_fill_fdir_tcp_hdr() 432 if (fltr->ip_mask.src_port == htons(U16_MAX)) { in iavf_fill_fdir_udp_hdr() 437 if (fltr->ip_mask.dst_port == htons(U16_MAX)) { in iavf_fill_fdir_udp_hdr() 464 if (fltr->ip_mask.src_port == htons(U16_MAX)) { in iavf_fill_fdir_sctp_hdr() 469 if (fltr->ip_mask.dst_port == htons(U16_MAX)) { in iavf_fill_fdir_sctp_hdr() 574 if (fltr->eth_mask.etype == htons(U16_MAX)) { in iavf_fill_fdir_eth_hdr()
|
/linux/drivers/counter/ |
H A D | i8254.c | 135 *ceiling = (priv->preset[count->id] == 0) ? U16_MAX : priv->preset[count->id]; in i8254_count_ceiling_read() 142 *ceiling = U16_MAX - 1; in i8254_count_ceiling_read() 147 *ceiling = U16_MAX; in i8254_count_ceiling_read() 275 if (preset > U16_MAX) in i8254_count_preset_write()
|
/linux/fs/bcachefs/ |
H A D | bset.h | 158 #define BSET_NO_AUX_TREE_VAL (U16_MAX) 159 #define BSET_RW_AUX_TREE_VAL (U16_MAX - 1) 237 t->aux_data_offset = U16_MAX; in bch2_bset_set_no_aux_tree()
|
/linux/drivers/virt/nitro_enclaves/ |
H A D | ne_misc_dev.h | 93 NE_STATE_STOPPED = U16_MAX,
|
/linux/drivers/hwmon/ |
H A D | ltc4282.c | 232 *val = DIV_ROUND_CLOSEST_ULL(be16_to_cpu(in) * (u64)fs, U16_MAX); in ltc4282_read_voltage_word() 512 temp = DIV_ROUND_CLOSEST_ULL(power * temp, U16_MAX); in ltc4282_read_power_word() 514 U16_MAX * (u64)st->rsense); in ltc4282_read_power_word() 519 st->rsense * int_pow(U16_MAX, 2)); in ltc4282_read_power_word() 566 temp = DIV_ROUND_CLOSEST(DECA * st->vfs_out * 40 * BIT(8), U16_MAX); in ltc4282_read_energy() 571 *val = DIV64_U64_ROUND_CLOSEST(temp, U16_MAX * (u64)st->rsense); in ltc4282_read_energy() 642 u64 temp = int_pow(U16_MAX, 2) * st->rsense, temp_2; in ltc4282_write_power_word() 666 tmp = DIV_ROUND_CLOSEST(U16_MAX * lowest, fs); in __ltc4282_in_write_history() 674 tmp = DIV_ROUND_CLOSEST(U16_MAX * highest, fs); in __ltc4282_in_write_history()
|
H A D | sch5627.c | 243 return U16_MAX - 1; in sch5627_rpm_to_reg() 247 return clamp_val(pulses, 1, U16_MAX - 1); in sch5627_rpm_to_reg() 634 return regcache_drop_region(data->regmap, 0, U16_MAX); in sch5627_resume()
|
/linux/arch/arm64/kernel/pi/ |
H A D | kaslr_early.c | 56 memstart_offset_seed = seed & U16_MAX; in kaslr_early_init()
|
/linux/drivers/md/dm-vdo/indexer/ |
H A D | chapter-index.h | 22 #define NO_CHAPTER_INDEX_ENTRY U16_MAX
|
/linux/drivers/power/supply/ |
H A D | mm8013.c | 201 if (regval == U16_MAX) in mm8013_get_property() 212 if (regval == U16_MAX) in mm8013_get_property()
|
/linux/include/uapi/linux/ |
H A D | ioam6.h | 15 #define IOAM6_U16_UNAVAILABLE U16_MAX
|
/linux/drivers/net/ipa/ |
H A D | ipa_cmd.c | 524 WARN_ON(size > U16_MAX); in ipa_cmd_dma_shared_mem_add() 525 WARN_ON(offset > U16_MAX || ipa->mem_offset > U16_MAX - offset); in ipa_cmd_dma_shared_mem_add()
|
/linux/drivers/input/misc/ |
H A D | iqs7222.c | 513 .sldr_res = U16_MAX, 570 .sldr_res = U16_MAX, 2301 if (val > U16_MAX) { in iqs7222_parse_chan() 2490 reg_offset = dev_desc->sldr_res < U16_MAX ? 0 : 1; in iqs7222_parse_sldr() 2548 if (val > (reg_offset ? U16_MAX : U8_MAX * 4)) { in iqs7222_parse_sldr() 2789 if (prop->max_x >= U16_MAX || prop->max_y >= U16_MAX) { in iqs7222_parse_tpad() 2857 sys_setup[dev_desc->allow_offset] = U16_MAX; in iqs7222_parse_all() 2981 if (dev_desc->sldr_res == U16_MAX) in iqs7222_report() 3013 tpad_pos_x < U16_MAX); in iqs7222_report() 3015 if (tpad_pos_x < U16_MAX) in iqs7222_report()
|
/linux/drivers/gpu/drm/vmwgfx/device_include/ |
H A D | vm_basic_types.h | 50 #define MAX_UINT16 U16_MAX
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_sriov_pf.c | 56 xe_assert(xe, totalvfs <= U16_MAX); in xe_sriov_pf_readiness()
|
/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | ccm.h | 99 DECLARE_BITMAP(tag_allocator, U16_MAX + 1);
|
/linux/drivers/iio/light/ |
H A D | veml6075.c | 136 return clamp_val(uva_comp, 0, U16_MAX); in veml6075_uva_comp() 147 return clamp_val(uvb_comp, 0, U16_MAX); in veml6075_uvb_comp()
|
H A D | as73211.c | 685 scan.chan[1] = cpu_to_le16(U16_MAX); in as73211_trigger_handler() 686 scan.chan[2] = cpu_to_le16(U16_MAX); in as73211_trigger_handler() 687 scan.chan[3] = cpu_to_le16(U16_MAX); in as73211_trigger_handler()
|
/linux/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | tunnel_conf.c | 417 ext->vlan_tpid = cpu_to_be16(U16_MAX); in nfp_tun_cleanup_nn_entries() 418 ext->vlan_tci = cpu_to_be16(U16_MAX); in nfp_tun_cleanup_nn_entries() 452 ext->vlan_tpid = cpu_to_be16(U16_MAX); in nfp_tun_unlink_and_update_nn_entries() 453 ext->vlan_tci = cpu_to_be16(U16_MAX); in nfp_tun_unlink_and_update_nn_entries() 530 ext->vlan_tpid = cpu_to_be16(U16_MAX); in nfp_tun_write_neigh() 531 ext->vlan_tci = cpu_to_be16(U16_MAX); in nfp_tun_write_neigh()
|
/linux/drivers/net/wireless/ath/ath9k/ |
H A D | rng.c | 107 (atomic_inc_return(&serial) - 1) & U16_MAX); in ath9k_rng_start()
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_fixed.h | 29 WARN_ON(val > U16_MAX); in u32_to_fixed16()
|