Home
last modified time | relevance | path

Searched refs:U16_MAX (Results 1 – 25 of 168) sorted by relevance

1234567

/linux/lib/
H A Doverflow_kunit.c84 {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 Dnf_tables_ipv6.h16 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 Dsja1105_flower.c204 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 Dlimits.h18 #define U16_MAX ((u16)~0U) macro
19 #define S16_MAX ((s16)(U16_MAX >> 1))
H A Dgreybus.h54 #define CPORT_ID_BAD U16_MAX
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_fdir.c41 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 Di8254.c135 *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 Dbset.h158 #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 Dne_misc_dev.h93 NE_STATE_STOPPED = U16_MAX,
/linux/drivers/hwmon/
H A Dltc4282.c232 *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 Dsch5627.c243 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 Dkaslr_early.c56 memstart_offset_seed = seed & U16_MAX; in kaslr_early_init()
/linux/drivers/md/dm-vdo/indexer/
H A Dchapter-index.h22 #define NO_CHAPTER_INDEX_ENTRY U16_MAX
/linux/drivers/power/supply/
H A Dmm8013.c201 if (regval == U16_MAX) in mm8013_get_property()
212 if (regval == U16_MAX) in mm8013_get_property()
/linux/include/uapi/linux/
H A Dioam6.h15 #define IOAM6_U16_UNAVAILABLE U16_MAX
/linux/drivers/net/ipa/
H A Dipa_cmd.c524 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 Diqs7222.c513 .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 Dvm_basic_types.h50 #define MAX_UINT16 U16_MAX
/linux/drivers/gpu/drm/xe/
H A Dxe_sriov_pf.c56 xe_assert(xe, totalvfs <= U16_MAX); in xe_sriov_pf_readiness()
/linux/drivers/net/ethernet/netronome/nfp/
H A Dccm.h99 DECLARE_BITMAP(tag_allocator, U16_MAX + 1);
/linux/drivers/iio/light/
H A Dveml6075.c136 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 Das73211.c685 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 Dtunnel_conf.c417 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 Drng.c107 (atomic_inc_return(&serial) - 1) & U16_MAX); in ath9k_rng_start()
/linux/drivers/gpu/drm/i915/display/
H A Dintel_fixed.h29 WARN_ON(val > U16_MAX); in u32_to_fixed16()

1234567