Searched refs:type_max (Results 1 – 16 of 16) sorted by relevance
| /linux/include/linux/ |
| H A D | overflow.h | 35 #define type_max(t) __type_max(typeof(t)) macro 36 #define __type_min(T) ((T)((T)-type_max(T)-(T)1)) 206 (x) > type_max(T) : \ 208 (x) < 0 || (x) > type_max(T) : \ 209 (x) < type_min(T) || (x) > type_max(T))
|
| H A D | bits.h | 48 (type_max(t) << (l) & \ 49 type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))
|
| H A D | fs.h | 1338 #define OFFSET_MAX type_max(loff_t) 1339 #define OFFT_OFFSET_MAX type_max(off_t)
|
| /linux/tools/include/linux/ |
| H A D | bits.h | 48 (type_max(t) << (l) & \ 49 type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))
|
| H A D | overflow.h | 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/lib/tests/ |
| H A D | overflow_kunit.c | 1014 typeof(t1) __t1h = type_max(t1); \ in same_type_test() 1016 typeof(t2) __t2h = type_max(t2); \ in same_type_test() 1114 TEST_CASTABLE_TO_TYPE(type_max(u ## width), u ## width, true); \ in castable_to_type_test() 1116 TEST_CASTABLE_TO_TYPE(type_max(u ## width), u ## width ## var, true); \ in castable_to_type_test() 1118 TEST_CASTABLE_TO_TYPE(type_max(s ## width), s ## width, true); \ in castable_to_type_test() 1120 TEST_CASTABLE_TO_TYPE(type_max(s ## width), s ## width ## var, true); \ in castable_to_type_test() 1123 TEST_CASTABLE_TO_TYPE(type_max(u ## width), s ## width, false); \ in castable_to_type_test() 1124 TEST_CASTABLE_TO_TYPE(type_max(u ## width), s ## width ## var, false); \ in castable_to_type_test()
|
| H A D | scanf_kunit.c | 175 ? ((long long)(val) >= type_min(T)) && ((long long)(val) <= type_max(T)) \ 176 : ((unsigned long long)(val) <= type_max(T)))
|
| /linux/include/rdma/ |
| H A D | uverbs_ioctl.h | 962 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/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_dcbnl.c | 1270 u16 type_max; in mlx5e_dcbnl_initialize() local 1290 type_max = max_bw_msb_supported ? U16_MAX : U8_MAX; in mlx5e_dcbnl_initialize() 1291 priv->dcbx.upper_limit_100mbps = type_max * MLX5E_100MB_TO_KB; in mlx5e_dcbnl_initialize() 1292 priv->dcbx.upper_limit_gbps = type_max * MLX5E_1GB_TO_KB; in mlx5e_dcbnl_initialize()
|
| /linux/drivers/vfio/pci/nvgrace-gpu/ |
| H A D | main.c | 994 if (*pmemphys > type_max(phys_addr_t)) in nvgrace_gpu_fetch_memory_property() 1002 if (*pmemlength > type_max(size_t)) in nvgrace_gpu_fetch_memory_property()
|
| /linux/include/net/ |
| H A D | xdp.h | 552 meta_max = type_max(typeof_member(struct skb_shared_info, meta_len)); in xdp_metalen_invalid()
|
| /linux/drivers/net/can/usb/ |
| H A D | gs_usb.c | 1566 if (icount > type_max(parent->channel_cnt)) { in gs_usb_probe() 1569 type_max(parent->channel_cnt)); in gs_usb_probe()
|
| /linux/drivers/s390/scsi/ |
| H A D | zfcp_fc.c | 911 type_max(typeof(rspn_req->rspn.fr_name_len)) + 1); in zfcp_fc_rspn()
|
| /linux/sound/soc/sdca/ |
| H A D | sdca_asoc.c | 921 mc->max = clamp((0x1ull << control->nbits) - 1, 0, type_max(mc->max)); in populate_control()
|
| /linux/drivers/iommu/iommufd/ |
| H A D | pages.c | 284 enum { MAX_NPFNS = type_max(typeof(((struct pfn_batch *)0)->npfns[0])) };
|
| /linux/tools/net/ynl/pyynl/ |
| H A D | ynl_gen_c.py | 2007 type_max = struct.attr_set.max_name
|