Searched refs:type_max (Results 1 - 12 of 12) sorted by relevance

/linux-master/include/linux/
H A Doverflow.h15 * #define type_max(T) (T)(is_signed_type(T) ? ((T)1 << (8*sizeof(T)-1)) - 1 : ~(T)0)
19 * the type_max expression (but not if -fsanitize=undefined is in
35 #define type_max(t) __type_max(typeof(t)) macro
36 #define __type_min(T) ((T)((T)-type_max(T)-(T)1))
212 (x) > type_max(T) : \
214 (x) < 0 || (x) > type_max(T) : \
215 (x) < type_min(T) || (x) > type_max(T))
H A Dfs.h1070 #define OFFSET_MAX type_max(loff_t)
1071 #define OFFT_OFFSET_MAX type_max(off_t)
/linux-master/tools/include/linux/
H A Doverflow.h13 * #define type_max(T) (T)(is_signed_type(T) ? ((T)1 << (8*sizeof(T)-1)) - 1 : ~(T)0)
17 * the type_max expression (but not if -fsanitize=undefined is in
33 #define type_max(T) ((T)((__type_half_max(T) - 1) + __type_half_max(T))) macro
34 #define type_min(T) ((T)((T)-type_max(T)-(T)1))
/linux-master/lib/
H A Doverflow_kunit.c1015 typeof(t1) __t1h = type_max(t1); \
1017 typeof(t2) __t2h = type_max(t2); \
1115 TEST_CASTABLE_TO_TYPE(type_max(u ## width), u ## width, true); \
1117 TEST_CASTABLE_TO_TYPE(type_max(u ## width), u ## width ## var, true); \
1119 TEST_CASTABLE_TO_TYPE(type_max(s ## width), s ## width, true); \
1121 TEST_CASTABLE_TO_TYPE(type_max(s ## width), s ## width ## var, true); \
1124 TEST_CASTABLE_TO_TYPE(type_max(u ## width), s ## width, false); \
1125 TEST_CASTABLE_TO_TYPE(type_max(u ## width), s ## width ## var, false); \
H A Dtest_scanf.c189 ? ((long long)(val) >= type_min(T)) && ((long long)(val) <= type_max(T)) \
190 : ((unsigned long long)(val) <= type_max(T)))
/linux-master/include/rdma/
H A Duverbs_ioctl.h962 type_max(typeof(*(_to))), NULL); \
972 type_max(typeof(*(_to))), NULL); \
984 type_max(typeof(*(_to))), &_def_val); \
995 type_max(typeof(*(_to))), &_def_val); \
/linux-master/drivers/vfio/pci/nvgrace-gpu/
H A Dmain.c727 if (*pmemphys > type_max(phys_addr_t))
735 if (*pmemlength > type_max(size_t))
/linux-master/include/net/
H A Dxdp.h374 meta_max = type_max(typeof_member(struct skb_shared_info, meta_len));
/linux-master/drivers/infiniband/hw/qib/
H A Dqib_user_sdma.c884 bytes_togo > type_max(typeof(pkt->bytes_togo))) {
937 addrlimit > type_max(typeof(pkt->addrlimit))) {
/linux-master/drivers/s390/scsi/
H A Dzfcp_fc.c907 type_max(typeof(rspn_req->rspn.fr_name_len)) + 1);
/linux-master/drivers/iommu/iommufd/
H A Dpages.c352 const unsigned int MAX_NPFNS = type_max(typeof(*batch->npfns));
/linux-master/tools/net/ynl/
H A Dynl-gen-c.py1511 type_max = struct.attr_set.max_name
1512 cw.block_start(line=f'struct ynl_policy_attr {struct.render_name}_policy[{type_max} + 1] =')
1521 cw.p(f'.max_attr = {type_max},')

Completed in 180 milliseconds