/linux/ipc/ |
A D | util.c | 122 ids->max_idx = -1; in ipc_init_ids() 224 int max_idx; in ipc_idr_alloc() local 227 max_idx = min(max_idx, ipc_mni); in ipc_idr_alloc() 324 if (idx > ids->max_idx) in ipc_addid() 325 ids->max_idx = idx; in ipc_addid() 506 if (unlikely(idx == ids->max_idx)) { in ipc_rmid() 507 idx = ids->max_idx-1; in ipc_rmid() 510 ids->max_idx = idx; in ipc_rmid() 792 int max_idx = ipc_get_maxidx(ids); in sysvipc_find_ipc() local 794 if (max_idx == -1 || pos > max_idx) in sysvipc_find_ipc() [all …]
|
A D | msg.c | 480 int max_idx; in msgctl_info() local 507 max_idx = ipc_get_maxidx(&msg_ids(ns)); in msgctl_info() 509 return (max_idx < 0) ? 0 : max_idx; in msgctl_info()
|
A D | util.h | 161 return ids->max_idx; in ipc_get_maxidx()
|
A D | sem.c | 1313 int max_idx; in semctl_info() local 1337 max_idx = ipc_get_maxidx(&sem_ids(ns)); in semctl_info() 1341 return (max_idx < 0) ? 0 : max_idx; in semctl_info()
|
/linux/drivers/regulator/ |
A D | lp87565-regulator.c | 193 int i, min_idx, max_idx; in lp87565_regulator_probe() local 205 max_idx = LP87565_BUCK_23; in lp87565_regulator_probe() 209 max_idx = LP87565_BUCK_3210; in lp87565_regulator_probe() 213 max_idx = LP87565_BUCK_3; in lp87565_regulator_probe() 217 for (i = min_idx; i <= max_idx; i++) { in lp87565_regulator_probe()
|
/linux/drivers/scsi/snic/ |
A D | snic_trc.c | 40 if (trc->wr_idx == trc->max_idx) in snic_get_trc_buf() 50 if (trc->rd_idx == trc->max_idx) in snic_get_trc_buf() 111 if (trc->rd_idx == trc->max_idx) in snic_get_trc_data() 143 trc->max_idx = (tbuf_sz / SNIC_TRC_ENTRY_SZ); in snic_trc_init()
|
A D | snic_trc.h | 45 u32 max_idx; /* Max Index into trace buffer */ member
|
/linux/drivers/power/reset/ |
A D | at91-sama5d2_shdwc.c | 176 int max_idx = ARRAY_SIZE(sdwc_dbc_period) - 1; in at91_shdwc_debouncer_value() local 178 unsigned long long max_period_us = DBC_PERIOD_US(sdwc_dbc_period[max_idx]); in at91_shdwc_debouncer_value() 184 return max_idx; in at91_shdwc_debouncer_value() 187 for (i = max_idx - 1; i > 0; i--) { in at91_shdwc_debouncer_value()
|
/linux/fs/ntfs3/ |
A D | run.c | 36 size_t min_idx, max_idx, mid_idx; in run_lookup() local 45 max_idx = run->count - 1; in run_lookup() 59 r += max_idx; in run_lookup() 66 *index = max_idx; in run_lookup() 71 mid_idx = min_idx + ((max_idx - min_idx) >> 1); in run_lookup() 75 max_idx = mid_idx - 1; in run_lookup() 84 } while (min_idx <= max_idx); in run_lookup() 86 *index = max_idx + 1; in run_lookup()
|
A D | index.c | 676 int min_idx = 0, mid_idx, max_idx = 0; in hdr_find_e() local 695 offs[max_idx] = off; in hdr_find_e() 698 max_idx++; in hdr_find_e() 699 if (max_idx < table_size) in hdr_find_e() 702 max_idx--; in hdr_find_e() 716 max_idx = 0; in hdr_find_e() 723 max_idx = mid_idx - 1; in hdr_find_e() 725 max_idx--; in hdr_find_e() 733 if (min_idx > max_idx) { in hdr_find_e() 738 mid_idx = (min_idx + max_idx) >> 1; in hdr_find_e()
|
A D | fsntfs.c | 334 size_t max_idx = sbi->def_entries - 1; in ntfs_query_def() local 336 while (min_idx <= max_idx) { in ntfs_query_def() 337 size_t i = min_idx + ((max_idx - min_idx) >> 1); in ntfs_query_def() 346 max_idx = i - 1; in ntfs_query_def()
|
/linux/arch/ia64/kernel/ |
A D | mca_drv.c | 74 int max_idx; /* Maximum index of section pointer list pool */ member 224 slidx_pool.cur_idx = (slidx_pool.cur_idx + 1)%slidx_pool.max_idx; } 351 slidx_pool.max_idx = (rec_max_size/sect_min_size) * 2 + 1; in init_record_index_pools() 353 kmalloc_array(slidx_pool.max_idx, sizeof(slidx_list_t), in init_record_index_pools()
|
/linux/drivers/mmc/core/ |
A D | host.c | 526 int alias_id, min_idx, max_idx; in mmc_alloc_host() local 540 max_idx = 0; in mmc_alloc_host() 542 index = ida_simple_get(&mmc_host_ida, min_idx, max_idx, GFP_KERNEL); in mmc_alloc_host()
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
A D | bnxt_ulp.c | 124 int max_idx, max_cp_rings; in bnxt_req_msix_vecs() local 149 max_idx = min_t(int, bp->total_irqs, max_cp_rings); in bnxt_req_msix_vecs() 150 idx = max_idx - avail_msix; in bnxt_req_msix_vecs()
|
/linux/include/linux/ |
A D | ipc_namespace.h | 21 int max_idx; member
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
A D | fwsignal.c | 1661 if (start > rfi->max_idx) in brcmf_rxreorder_get_skb_list() 1671 u8 flow_id, max_idx, cur_idx, exp_idx, end_idx; in brcmf_fws_rxreorder() local 1712 max_idx = reorder_data[BRCMF_RXREORDER_MAXIDX_OFFSET]; in brcmf_fws_rxreorder() 1714 buf_size += (max_idx + 1) * sizeof(pkt); in brcmf_fws_rxreorder() 1718 flow_id, max_idx); in brcmf_fws_rxreorder() 1728 rfi->max_idx = max_idx; in brcmf_fws_rxreorder() 1741 rfi->max_idx = reorder_data[BRCMF_RXREORDER_MAXIDX_OFFSET]; in brcmf_fws_rxreorder() 1807 if (exp_idx == ((cur_idx + 1) % (rfi->max_idx + 1))) { in brcmf_fws_rxreorder()
|
A D | core.h | 57 u8 max_idx; member
|
/linux/drivers/vdpa/mlx5/core/ |
A D | mlx5_vdpa.h | 80 u16 max_idx; member
|
/linux/sound/pci/lola/ |
A D | lola_mixer.c | 323 int idx, max_idx; in lola_setup_all_analog_gains() local 326 max_idx = chip->pin[dir].num_pins; in lola_setup_all_analog_gains() 327 for (idx = 0; idx < max_idx; idx++) { in lola_setup_all_analog_gains()
|
/linux/arch/x86/kernel/fpu/ |
A D | xstate.c | 99 long xfeature_idx, max_idx; in cpu_has_xfeatures() local 114 max_idx = ARRAY_SIZE(xfeature_names)-1; in cpu_has_xfeatures() 115 xfeature_idx = min(xfeature_idx, max_idx); in cpu_has_xfeatures()
|
/linux/arch/x86/kvm/ |
A D | cpuid.c | 687 int r, i, max_idx; in __do_cpuid_func() local 904 for (i = 1, max_idx = entry->eax; i <= max_idx; ++i) { in __do_cpuid_func()
|
/linux/drivers/input/misc/ |
A D | ad714x.c | 164 int max_idx = 0; in ad714x_cal_highest_stage() local 170 max_idx = i; in ad714x_cal_highest_stage() 174 return max_idx; in ad714x_cal_highest_stage()
|
/linux/drivers/net/wireless/ath/ath5k/ |
A D | phy.c | 3084 u8 pdadc_i, pdadc_n, pwr_step, pdg, max_idx, table_size; in ath5k_combine_pwr_to_pdadc_curves() local 3139 max_idx = (pdadc_n < table_size) ? pdadc_n : table_size; in ath5k_combine_pwr_to_pdadc_curves() 3142 while (pdadc_0 < max_idx && pdadc_i < 128) in ath5k_combine_pwr_to_pdadc_curves() 3146 if (pdadc_n <= max_idx) in ath5k_combine_pwr_to_pdadc_curves() 3160 (pdadc_0 - max_idx) * pwr_step; in ath5k_combine_pwr_to_pdadc_curves()
|
/linux/drivers/net/wireless/ath/ath9k/ |
A D | ar9003_calib.c | 844 int mp_max = -64, max_idx = 0; in ar9003_hw_detect_outlier() local 852 max_idx = i; in ar9003_hw_detect_outlier() 880 outlier_idx = max_idx; in ar9003_hw_detect_outlier()
|
/linux/drivers/vdpa/mlx5/net/ |
A D | mlx5_vnet.c | 141 if (unlikely(idx > mvdev->max_idx)) in is_index_valid() 1962 mvdev->max_idx = mvdev->max_vqs; in update_cvq_info() 1967 mvdev->max_idx = 2; in update_cvq_info() 1971 mvdev->max_idx = 1; in update_cvq_info()
|