| /linux/drivers/bus/ |
| H A D | stm32_firewall.c | 94 firewall[j].firewall_id = U32_MAX; in stm32_firewall_get_firewall() 120 if (!firewall || firewall->firewall_id == U32_MAX) in stm32_firewall_grant_access() 136 if (!firewall || subsystem_id == U32_MAX || firewall->firewall_id == U32_MAX) in stm32_firewall_grant_access_by_id() 152 if (!firewall || firewall->firewall_id == U32_MAX) { in stm32_firewall_release_access() 172 if (!firewall || subsystem_id == U32_MAX || firewall->firewall_id == U32_MAX) { in stm32_firewall_release_access_by_id()
|
| /linux/lib/tests/ |
| H A D | overflow_kunit.c | 106 {0, 1, 1, U32_MAX, 0, false, true, false}, 108 {0, U32_MAX, U32_MAX, 1, 0, false, true, false}, 109 {U32_MAX, 0, U32_MAX, U32_MAX, 0, false, false, false}, 110 {1, U32_MAX, 0, 2, U32_MAX, true, true, false}, 111 {U32_MAX, 1, 0, U32_MAX-1, U32_MAX, true, false, false}, 112 {U32_MAX, U32_MAX, U32_MAX-1, 0, 1, true, false, true}, 114 {U32_MAX, U32_MAX-1, U32_MAX-2, 1, 2, true, false, true}, 115 {U32_MAX-1, U32_MAX, U32_MAX-2, U32_MAX, 2, true, true, true}, 377 {U32_MAX, 0, -1, -1, 0, true, true, false}, 881 TEST_OVERFLOWS_TYPE(u32, u8, U32_MAX, true); in overflows_type_test() [all …]
|
| /linux/drivers/dpll/zl3073x/ |
| H A D | flash.c | 293 rc = zl3073x_write_u32(zldev, ZL_REG_FILL_PATTERN, U32_MAX); in zl3073x_flash_block() 536 HWREG_SEQ_ITEM(0x10000024, 0x00000001, U32_MAX, 0), in zl3073x_flash_mode_enter() 537 HWREG_SEQ_ITEM(0x10000020, 0x00000001, U32_MAX, 0), in zl3073x_flash_mode_enter() 542 HWREG_SEQ_ITEM(0x10400004, 0x000000C0, U32_MAX, 0), in zl3073x_flash_mode_enter() 543 HWREG_SEQ_ITEM(0x10400008, 0x00000000, U32_MAX, 0), in zl3073x_flash_mode_enter() 544 HWREG_SEQ_ITEM(0x10400010, 0x20000000, U32_MAX, 0), in zl3073x_flash_mode_enter() 545 HWREG_SEQ_ITEM(0x10400014, 0x20000004, U32_MAX, 0), in zl3073x_flash_mode_enter() 547 HWREG_SEQ_ITEM(0x10000020, 0x00000000, U32_MAX, 0), in zl3073x_flash_mode_enter()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_dumb_buffers.c | 182 if (!pitch || pitch > U32_MAX) in drm_mode_size_dumb() 203 if (args->bpp > U32_MAX - 8) in drm_mode_create_dumb() 206 if (cpp > U32_MAX / args->width) in drm_mode_create_dumb() 209 if (args->height > U32_MAX / stride) in drm_mode_create_dumb()
|
| /linux/include/linux/ |
| H A D | random.h | 100 BUILD_BUG_ON_MSG(__builtin_constant_p(floor) && floor == U32_MAX, in get_random_u32_above() 102 return floor + 1 + get_random_u32_below(U32_MAX - floor); in get_random_u32_above() 113 (floor > ceil || ceil - floor == U32_MAX), in get_random_u32_inclusive()
|
| H A D | limits.h | 21 #define U32_MAX ((u32)~0U) macro 23 #define S32_MAX ((s32)(U32_MAX >> 1))
|
| /linux/drivers/gpu/drm/vboxvideo/ |
| H A D | hgsmi_base.c | 68 ret = hgsmi_query_conf(ctx, U32_MAX, &value); in hgsmi_test_query_conf() 72 return value == U32_MAX ? 0 : -EIO; in hgsmi_test_query_conf() 93 p->value = U32_MAX; in hgsmi_query_conf()
|
| /linux/drivers/scsi/elx/libefc/ |
| H A D | efc_cmds.c | 211 nport->indicator = U32_MAX; in efc_cmd_nport_alloc() 476 domain->fcf_indicator = U32_MAX; in efc_cmd_domain_alloc() 477 domain->indicator = U32_MAX; in efc_cmd_domain_alloc() 610 if (rnode->indicator != U32_MAX) { in efc_cmd_node_alloc() 673 if (rnode->index == U32_MAX) { in efc_cmd_node_attach() 702 if (rnode->indicator != U32_MAX) { in efc_node_free_resources() 710 rnode->indicator = U32_MAX; in efc_node_free_resources() 711 rnode->index = U32_MAX; in efc_node_free_resources() 771 SLI4_RSRC_RPI, U32_MAX)) in efc_cmd_node_detach()
|
| /linux/drivers/net/ethernet/aquantia/atlantic/ |
| H A D | aq_hw_utils.c | 45 if (value == U32_MAX && in aq_hw_read_reg() 46 readl(hw->mmio + hw->aq_nic_cfg->aq_hw_caps->hw_alive_check_addr) == U32_MAX) in aq_hw_read_reg() 71 readl(hw->mmio + hw->aq_nic_cfg->aq_hw_caps->hw_alive_check_addr) == U32_MAX) in aq_hw_read_reg64()
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_fixed.h | 64 WARN_ON(val > U32_MAX); in clamp_u64_to_fixed16() 81 WARN_ON(tmp > U32_MAX); in mul_round_up_u32_fixed16() 113 WARN_ON(tmp > U32_MAX); in div_round_up_u32_fixed16()
|
| /linux/drivers/pwm/ |
| H A D | pwm-loongson.c | 126 if (duty > U32_MAX) in pwm_loongson_config() 127 duty = U32_MAX; in pwm_loongson_config() 131 if (period > U32_MAX) in pwm_loongson_config() 132 period = U32_MAX; in pwm_loongson_config()
|
| H A D | pwm-rockchip.c | 122 if (tmp > U32_MAX) in rockchip_pwm_config() 123 tmp = U32_MAX; in rockchip_pwm_config() 127 if (tmp > U32_MAX) in rockchip_pwm_config() 128 tmp = U32_MAX; in rockchip_pwm_config()
|
| H A D | pwm-axi-pwmgen.c | 90 U32_MAX); in axi_pwmgen_round_waveform_tohw() 107 U32_MAX); in axi_pwmgen_round_waveform_tohw() 110 U32_MAX); in axi_pwmgen_round_waveform_tohw()
|
| /linux/drivers/net/ethernet/intel/iavf/ |
| H A D | iavf_fdir.c | 46 fltr->ip_mask.v4_addrs.src_ip != htonl(U32_MAX)) in iavf_validate_fdir_fltr_masks() 50 fltr->ip_mask.v4_addrs.dst_ip != htonl(U32_MAX)) in iavf_validate_fdir_fltr_masks() 81 if (fltr->ip_mask.spi && fltr->ip_mask.spi != htonl(U32_MAX)) in iavf_validate_fdir_fltr_masks() 85 fltr->ip_mask.l4_header != htonl(U32_MAX)) in iavf_validate_fdir_fltr_masks() 330 if (fltr->ip_mask.v4_addrs.src_ip == htonl(U32_MAX)) { in iavf_fill_fdir_ip4_hdr() 335 if (fltr->ip_mask.v4_addrs.dst_ip == htonl(U32_MAX)) { in iavf_fill_fdir_ip4_hdr() 493 if (fltr->ip_mask.spi == htonl(U32_MAX)) { in iavf_fill_fdir_ah_hdr() 517 if (fltr->ip_mask.spi == htonl(U32_MAX)) { in iavf_fill_fdir_esp_hdr() 546 if (fltr->ip_data.proto == 115 && fltr->ip_mask.l4_header == htonl(U32_MAX)) { in iavf_fill_fdir_l4_hdr()
|
| /linux/drivers/virt/vboxguest/ |
| H A D | vboxguest_core.c | 559 req->not_mask = U32_MAX & ~fixed_events; in vbg_reset_host_event_filter() 635 gdev->event_filter_host = U32_MAX; in vbg_set_session_event_filter() 668 req->not_mask = U32_MAX; in vbg_reset_host_capabilities() 708 gdev->guest_caps_host = U32_MAX; in vbg_set_host_capabilities() 717 gdev->guest_caps_host = (rc >= 0) ? caps : U32_MAX; in vbg_set_host_capabilities() 948 gdev->event_filter_host = U32_MAX; /* forces a report */ in vbg_core_init() 949 gdev->guest_caps_host = U32_MAX; /* forces a report */ in vbg_core_init() 1102 vbg_acquire_session_capabilities(gdev, session, 0, U32_MAX, 0, true); in vbg_core_close_session() 1103 vbg_set_session_capabilities(gdev, session, 0, U32_MAX, true); in vbg_core_close_session() 1104 vbg_set_session_event_filter(gdev, session, 0, U32_MAX, true); in vbg_core_close_session() [all …]
|
| /linux/lib/math/tests/ |
| H A D | int_log_kunit.c | 22 {U32_MAX, 536870911, "Log base 2 of MAX"}, 33 {U32_MAX, 161614247, "Log base 10 of MAX"}
|
| /linux/drivers/acpi/ |
| H A D | fan.h | 85 return speed < U32_MAX; in acpi_fan_speed_valid() 99 return power < U32_MAX; in acpi_fan_power_valid()
|
| /linux/drivers/firmware/efi/libstub/ |
| H A D | x86-5lvl.c | 43 U32_MAX); in efi_setup_5level_paging() 88 if ((u64)new_cr3 > U32_MAX) in efi_5level_switch()
|
| /linux/drivers/net/ethernet/intel/libeth/ |
| H A D | rx.c | 27 len = min3(len, ALIGN_DOWN(max_len ? : U32_MAX, LIBETH_RX_BUF_STRIDE), in libeth_rx_hw_len_mtu() 54 len = min3(len, ALIGN_DOWN(max_len ? : U32_MAX, LIBETH_RX_BUF_STRIDE), in libeth_rx_hw_len_truesize() 136 max = min(rounddown_pow_of_two(fq->buf_len ? : U32_MAX), in libeth_rx_page_pool_params_zc()
|
| /linux/net/sctp/ |
| H A D | stream_sched_fc.c | 142 if (soute->fc_length > U32_MAX - ch->skb->len) { in sctp_sched_fc_dequeue_done() 147 if (pos->fc_length <= (U32_MAX >> 2)) { in sctp_sched_fc_dequeue_done() 151 pos->fc_length -= (U32_MAX >> 2); in sctp_sched_fc_dequeue_done()
|
| /linux/security/landlock/ |
| H A D | id.c | 49 KUNIT_EXPECT_EQ(test, atomic64_read(&counter), 1ULL + U32_MAX); in test_init_min() 57 KUNIT_EXPECT_EQ(test, atomic64_read(&counter), 1 + (2ULL * U32_MAX)); in test_init_max() 62 const u64 first_init = 1ULL + U32_MAX; in test_init_once()
|
| /linux/drivers/net/ipa/ |
| H A D | gsi_reg.c | 136 if (res->start > U32_MAX || size > U32_MAX - res->start) { in gsi_reg_init()
|
| /linux/drivers/spi/ |
| H A D | spi-rpc-if.c | 83 if (offs + desc->info.offset + len > U32_MAX) in xspi_spi_mem_dirmap_write() 97 if (offs + desc->info.offset + len > U32_MAX) in rpcif_spi_mem_dirmap_read() 110 if (desc->info.offset + desc->info.length > U32_MAX) in rpcif_spi_mem_dirmap_create()
|
| /linux/drivers/firmware/efi/ |
| H A D | fdtparams.c | 76 *(u32 *)var = (val < U32_MAX) ? val : U32_MAX; // saturate in efi_get_fdt_prop()
|
| /linux/drivers/nvmem/ |
| H A D | rmem.c | 108 computed_crc = crc32(U32_MAX, buf, data_size) ^ U32_MAX; in rmem_eyeq5_checksum()
|