/linux/drivers/net/wireguard/ |
H A D | peerlookup.c | 10 static struct hlist_head *pubkey_bucket(struct pubkey_hashtable *table, in pubkey_bucket() 24 struct pubkey_hashtable *table = kvmalloc(sizeof(*table), GFP_KERNEL); in wg_pubkey_hashtable_alloc() local 35 void wg_pubkey_hashtable_add(struct pubkey_hashtable *table, in wg_pubkey_hashtable_add() 44 void wg_pubkey_hashtable_remove(struct pubkey_hashtable *table, in wg_pubkey_hashtable_remove() 54 wg_pubkey_hashtable_lookup(struct pubkey_hashtable *table, in wg_pubkey_hashtable_lookup() 73 static struct hlist_head *index_bucket(struct index_hashtable *table, in index_bucket() 85 struct index_hashtable *table = kvmalloc(sizeof(*table), GFP_KERNEL); in wg_index_hashtable_alloc() local 119 __le32 wg_index_hashtable_insert(struct index_hashtable *table, in wg_index_hashtable_insert() 166 bool wg_index_hashtable_replace(struct index_hashtable *table, in wg_index_hashtable_replace() 192 void wg_index_hashtable_remove(struct index_hashtable *table, in wg_index_hashtable_remove() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
H A D | devlink.c | 40 mlx5_sf_lookup_by_function_id(struct mlx5_sf_table *table, unsigned int fn_id) in mlx5_sf_lookup_by_function_id() 45 static int mlx5_sf_function_id_insert(struct mlx5_sf_table *table, struct mlx5_sf *sf) in mlx5_sf_function_id_insert() 50 static void mlx5_sf_function_id_erase(struct mlx5_sf_table *table, struct mlx5_sf *sf) in mlx5_sf_function_id_erase() 56 mlx5_sf_alloc(struct mlx5_sf_table *table, struct mlx5_eswitch *esw, in mlx5_sf_alloc() 105 static void mlx5_sf_free(struct mlx5_sf_table *table, struct mlx5_sf *sf) in mlx5_sf_free() 151 struct mlx5_sf_table *table = dev->priv.sf_table; in mlx5_devlink_sf_port_fn_state_get() local 206 static int mlx5_sf_state_set(struct mlx5_core_dev *dev, struct mlx5_sf_table *table, in mlx5_sf_state_set() 232 struct mlx5_sf_table *table = dev->priv.sf_table; in mlx5_devlink_sf_port_fn_state_set() local 238 static int mlx5_sf_add(struct mlx5_core_dev *dev, struct mlx5_sf_table *table, in mlx5_sf_add() 307 struct mlx5_sf_table *table = dev->priv.sf_table; in mlx5_devlink_sf_port_new() local [all …]
|
H A D | hw_table.c | 61 mlx5_sf_table_fn_to_hwc(struct mlx5_sf_hw_table *table, u16 fn_id) in mlx5_sf_table_fn_to_hwc() 74 static int mlx5_sf_hw_table_id_alloc(struct mlx5_sf_hw_table *table, u32 controller, in mlx5_sf_hw_table_id_alloc() 103 static void mlx5_sf_hw_table_id_free(struct mlx5_sf_hw_table *table, u32 controller, int id) in mlx5_sf_hw_table_id_free() 114 struct mlx5_sf_hw_table *table = dev->priv.sf_hw_table; in mlx5_sf_hw_table_sf_alloc() local 162 struct mlx5_sf_hw_table *table = dev->priv.sf_hw_table; in mlx5_sf_hw_table_sf_free() local 183 struct mlx5_sf_hw_table *table = dev->priv.sf_hw_table; in mlx5_sf_hw_table_sf_deferred_free() local 219 static void mlx5_sf_hw_table_dealloc_all(struct mlx5_sf_hw_table *table) in mlx5_sf_hw_table_dealloc_all() 275 struct mlx5_sf_hw_table *table; in mlx5_sf_hw_table_init() local 332 struct mlx5_sf_hw_table *table = dev->priv.sf_hw_table; in mlx5_sf_hw_table_cleanup() local 347 struct mlx5_sf_hw_table *table = container_of(nb, struct mlx5_sf_hw_table, vhca_nb); in mlx5_sf_hw_vhca_event() local [all …]
|
/linux/net/sched/ |
H A D | sch_gred.c | 62 static inline int gred_wred_mode(struct gred_sched *table) in gred_wred_mode() 67 static inline void gred_enable_wred_mode(struct gred_sched *table) in gred_enable_wred_mode() 72 static inline void gred_disable_wred_mode(struct gred_sched *table) in gred_disable_wred_mode() 77 static inline int gred_rio_mode(struct gred_sched *table) in gred_rio_mode() 82 static inline void gred_enable_rio_mode(struct gred_sched *table) in gred_enable_rio_mode() 87 static inline void gred_disable_rio_mode(struct gred_sched *table) in gred_disable_rio_mode() 94 struct gred_sched *table = qdisc_priv(sch); in gred_wred_mode_check() local 113 static inline unsigned int gred_backlog(struct gred_sched *table, in gred_backlog() 128 static inline void gred_load_wred_set(const struct gred_sched *table, in gred_load_wred_set() 135 static inline void gred_store_wred_set(struct gred_sched *table, in gred_store_wred_set() [all …]
|
/linux/arch/s390/mm/ |
H A D | pgalloc.c | 20 unsigned long *table; in crst_table_alloc() local 29 void crst_table_free(struct mm_struct *mm, unsigned long *table) in crst_table_free() 118 u64 *table; in page_table_alloc_pgste() local 140 unsigned long *table; in page_table_alloc() local 156 void page_table_free(struct mm_struct *mm, unsigned long *table) in page_table_free() 188 unsigned long *table; in base_pgt_alloc() local 196 static void base_pgt_free(unsigned long *table) in base_pgt_free() 203 unsigned long *table; in base_crst_alloc() local 214 static void base_crst_free(unsigned long *table) in base_crst_free() 265 unsigned long *ste, next, *table; in base_segment_walk() local [all …]
|
/linux/drivers/clk/ |
H A D | clk-divider.c | 45 static unsigned int _get_table_maxdiv(const struct clk_div_table *table, in _get_table_maxdiv() 57 static unsigned int _get_table_mindiv(const struct clk_div_table *table) in _get_table_mindiv() 68 static unsigned int _get_maxdiv(const struct clk_div_table *table, u8 width, in _get_maxdiv() 82 static unsigned int _get_table_div(const struct clk_div_table *table, in _get_table_div() 93 static unsigned int _get_div(const struct clk_div_table *table, in _get_div() 109 static unsigned int _get_table_val(const struct clk_div_table *table, in _get_table_val() 120 static unsigned int _get_val(const struct clk_div_table *table, in _get_val() 138 const struct clk_div_table *table, in divider_recalc_rate() 168 static bool _is_valid_table_div(const struct clk_div_table *table, in _is_valid_table_div() 179 static bool _is_valid_div(const struct clk_div_table *table, unsigned int div, in _is_valid_div() [all …]
|
/linux/drivers/net/ethernet/sfc/ |
H A D | mcdi_filters.c | 27 efx_mcdi_filter_entry_spec(const struct efx_mcdi_filter_table *table, in efx_mcdi_filter_entry_spec() 35 efx_mcdi_filter_entry_flags(const struct efx_mcdi_filter_table *table, in efx_mcdi_filter_entry_flags() 84 efx_mcdi_filter_set_entry(struct efx_mcdi_filter_table *table, in efx_mcdi_filter_set_entry() 328 static int efx_mcdi_filter_pri(struct efx_mcdi_filter_table *table, in efx_mcdi_filter_pri() 349 struct efx_mcdi_filter_table *table; in efx_mcdi_filter_insert_locked() local 581 struct efx_mcdi_filter_table *table = efx->filter_state; in efx_mcdi_filter_remove_internal() local 654 struct efx_mcdi_filter_table *table = efx->filter_state; in efx_mcdi_filter_remove_old() local 688 struct efx_mcdi_filter_table *table; in efx_mcdi_filter_remove_safe() local 706 struct efx_mcdi_filter_table *table = efx->filter_state; in efx_mcdi_filter_remove_unsafe() local 723 struct efx_mcdi_filter_table *table; in efx_mcdi_filter_get_safe() local [all …]
|
/linux/tools/power/acpi/tools/acpidump/ |
H A D | apdump.c | 30 u8 ap_is_valid_header(struct acpi_table_header *table) in ap_is_valid_header() 68 u8 ap_is_valid_checksum(struct acpi_table_header *table) in ap_is_valid_checksum() 106 u32 ap_get_table_length(struct acpi_table_header *table) in ap_get_table_length() 142 ap_dump_table_buffer(struct acpi_table_header *table, in ap_dump_table_buffer() 192 struct acpi_table_header *table; in ap_dump_all_tables() local 251 struct acpi_table_header *table; in ap_dump_table_by_address() local 296 struct acpi_table_header *table; in ap_dump_table_by_name() local 367 struct acpi_table_header *table; in ap_dump_table_from_file() local
|
/linux/drivers/md/dm-vdo/ |
H A D | priority-table.c | 56 struct priority_table *table; in vdo_make_priority_table() local 88 void vdo_free_priority_table(struct priority_table *table) in vdo_free_priority_table() 110 void vdo_reset_priority_table(struct priority_table *table) in vdo_reset_priority_table() 127 void vdo_priority_table_enqueue(struct priority_table *table, unsigned int priority, in vdo_priority_table_enqueue() 140 static inline void mark_bucket_empty(struct priority_table *table, struct bucket *bucket) in mark_bucket_empty() 155 struct list_head *vdo_priority_table_dequeue(struct priority_table *table) in vdo_priority_table_dequeue() 189 void vdo_priority_table_remove(struct priority_table *table, struct list_head *entry) in vdo_priority_table_remove() 221 bool vdo_is_priority_table_empty(struct priority_table *table) in vdo_is_priority_table_empty()
|
/linux/kernel/ |
H A D | sysctl.c | 138 static void warn_sysctl_write(const struct ctl_table *table) in warn_sysctl_write() 156 const struct ctl_table *table) in proc_first_pos_non_zero_ignore() 189 int proc_dostring(const struct ctl_table *table, int write, in proc_dostring() 401 static int __do_proc_dointvec(void *tbl_data, const struct ctl_table *table, in __do_proc_dointvec() 474 static int do_proc_dointvec(const struct ctl_table *table, int write, in do_proc_dointvec() 485 const struct ctl_table *table, in do_proc_douintvec_w() 572 static int __do_proc_douintvec(void *tbl_data, const struct ctl_table *table, in __do_proc_douintvec() 608 int do_proc_douintvec(const struct ctl_table *table, int write, in do_proc_douintvec() 635 int proc_dobool(const struct ctl_table *table, int write, void *buffer, in proc_dobool() 672 int proc_dointvec(const struct ctl_table *table, int write, void *buffer, in proc_dointvec() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/ |
H A D | dev.c | 29 struct mlx5_sf_dev_table *table; member 40 struct mlx5_sf_dev_table *table = dev->priv.sf_dev_table; in mlx5_sf_dev_allocated() local 91 struct mlx5_sf_dev_table *table = dev->priv.sf_dev_table; in mlx5_sf_dev_add() local 150 struct mlx5_sf_dev_table *table = dev->priv.sf_dev_table; in mlx5_sf_dev_del() local 159 struct mlx5_sf_dev_table *table = container_of(nb, struct mlx5_sf_dev_table, nb); in mlx5_sf_dev_state_change_handler() local 201 static int mlx5_sf_dev_vhca_arm_all(struct mlx5_sf_dev_table *table) in mlx5_sf_dev_vhca_arm_all() 251 struct mlx5_sf_dev_table *table = container_of(_work, struct mlx5_sf_dev_table, work); in mlx5_sf_dev_queue_active_works() local 294 static int mlx5_sf_dev_create_active_works(struct mlx5_sf_dev_table *table) in mlx5_sf_dev_create_active_works() 310 static void mlx5_sf_dev_destroy_active_works(struct mlx5_sf_dev_table *table) in mlx5_sf_dev_destroy_active_works() 320 struct mlx5_sf_dev_table *table; in mlx5_sf_dev_table_create() local [all …]
|
/linux/scripts/include/ |
H A D | hashtable.h | 16 #define hash_head(table, key) (&(table)[(key) % HASH_SIZE(table)]) argument 33 #define hash_init(table) __hash_init(table, HASH_SIZE(table)) argument 41 #define hash_add(table, node, key) \ argument 59 #define hash_for_each(table, obj, member) \ argument 71 #define hash_for_each_safe(table, obj, tmp, member) \ argument 83 #define hash_for_each_possible(table, obj, member, key) \ argument 95 #define hash_for_each_possible_safe(table, obj, tmp, member, key) \ argument
|
/linux/arch/powerpc/boot/ |
H A D | planetcore.c | 26 void planetcore_prepare_table(char *table) in planetcore_prepare_table() 38 const char *planetcore_get_key(const char *table, const char *key) in planetcore_get_key() 52 int planetcore_get_decimal(const char *table, const char *key, u64 *val) in planetcore_get_decimal() 62 int planetcore_get_hex(const char *table, const char *key, u64 *val) in planetcore_get_hex() 79 void planetcore_set_mac_addrs(const char *table) in planetcore_set_mac_addrs() 104 void planetcore_set_stdout_path(const char *table) in planetcore_set_stdout_path()
|
/linux/drivers/cpufreq/ |
H A D | freq_table.c | 19 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in policy_has_boost_freq() local 32 struct cpufreq_frequency_table *table) in cpufreq_frequency_table_cpuinfo() 69 struct cpufreq_frequency_table *table) in cpufreq_frequency_table_verify() 130 struct cpufreq_frequency_table *table = policy->freq_table; in cpufreq_table_index_unsorted() local 213 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in cpufreq_frequency_table_get_index() local 236 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in show_available_freqs() local 292 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in set_freq_table_sorted() local
|
/linux/net/core/ |
H A D | sysctl_net_core.c | 102 static int rps_default_mask_sysctl(const struct ctl_table *table, int write, in rps_default_mask_sysctl() 137 static int rps_sock_flow_sysctl(const struct ctl_table *table, int write, in rps_sock_flow_sysctl() 209 static int flow_limit_cpu_sysctl(const struct ctl_table *table, int write, in flow_limit_cpu_sysctl() 266 static int flow_limit_table_len_sysctl(const struct ctl_table *table, int write, in flow_limit_table_len_sysctl() 288 static int set_default_qdisc(const struct ctl_table *table, int write, in set_default_qdisc() 307 static int proc_do_dev_weight(const struct ctl_table *table, int write, in proc_do_dev_weight() 325 static int proc_do_rss_key(const struct ctl_table *table, int write, in proc_do_rss_key() 338 static int proc_dointvec_minmax_bpf_enable(const struct ctl_table *table, int write, in proc_dointvec_minmax_bpf_enable() 371 proc_dointvec_minmax_bpf_restricted(const struct ctl_table *table, int write, in proc_dointvec_minmax_bpf_restricted() 382 proc_dolongvec_minmax_bpf_restricted(const struct ctl_table *table, int write, in proc_dolongvec_minmax_bpf_restricted()
|
/linux/net/ipv4/ |
H A D | sysctl_net_ipv4.c | 67 static int ipv4_local_port_range(const struct ctl_table *table, int write, in ipv4_local_port_range() 101 static int ipv4_privileged_ports(const struct ctl_table *table, int write, in ipv4_privileged_ports() 135 static void inet_get_ping_group_range_table(const struct ctl_table *table, in inet_get_ping_group_range_table() 151 static void set_ping_group_range(const struct ctl_table *table, in set_ping_group_range() 164 static int ipv4_ping_group_range(const struct ctl_table *table, int write, in ipv4_ping_group_range() 199 static int ipv4_fwd_update_priority(const struct ctl_table *table, int write, in ipv4_fwd_update_priority() 288 static int proc_tcp_fastopen_key(const struct ctl_table *table, int write, in proc_tcp_fastopen_key() 359 static int proc_tfo_blackhole_detect_timeout(const struct ctl_table *table, in proc_tfo_blackhole_detect_timeout() 391 static int proc_tcp_ehash_entries(const struct ctl_table *table, int write, in proc_tcp_ehash_entries() 415 static int proc_udp_hash_entries(const struct ctl_table *table, int write, in proc_udp_hash_entries() [all …]
|
/linux/drivers/infiniband/core/ |
H A D | cache.c | 170 static bool is_gid_index_default(const struct ib_gid_table *table, in is_gid_index_default() 241 struct ib_gid_table *table = rdma_gid_table(device, port_num); in free_gid_entry_locked() local 286 struct ib_gid_table *table = rdma_gid_table(device, port_num); in free_gid_work() local 321 static void store_gid_entry(struct ib_gid_table *table, in store_gid_entry() 383 struct ib_gid_table *table, int ix) in del_gid() 426 static int add_modify_gid(struct ib_gid_table *table, in add_modify_gid() 466 static int find_gid(struct ib_gid_table *table, const union ib_gid *gid, in find_gid() 550 struct ib_gid_table *table; in __ib_cache_gid_add() local 605 struct ib_gid_table *table; in _ib_cache_gid_del() local 644 struct ib_gid_table *table; in ib_cache_gid_del_all_netdev_gids() local [all …]
|
/linux/drivers/net/wireless/broadcom/b43/ |
H A D | tables.c | 366 u16 b43_ofdmtab_read16(struct b43_wldev *dev, u16 table, u16 offset) in b43_ofdmtab_read16() 386 void b43_ofdmtab_write16(struct b43_wldev *dev, u16 table, in b43_ofdmtab_write16() 403 u32 b43_ofdmtab_read32(struct b43_wldev *dev, u16 table, u16 offset) in b43_ofdmtab_read32() 424 void b43_ofdmtab_write32(struct b43_wldev *dev, u16 table, in b43_ofdmtab_write32() 443 u16 b43_gtab_read(struct b43_wldev *dev, u16 table, u16 offset) in b43_gtab_read() 449 void b43_gtab_write(struct b43_wldev *dev, u16 table, u16 offset, u16 value) in b43_gtab_write()
|
/linux/drivers/acpi/acpica/ |
H A D | tbdata.c | 45 struct acpi_table_header *table; in acpi_tb_compare_tables() local 88 u8 flags, struct acpi_table_header *table) in acpi_tb_init_table_descriptor() 136 struct acpi_table_header *table = NULL; in acpi_tb_acquire_table() local 185 acpi_tb_release_table(struct acpi_table_header *table, in acpi_tb_release_table() 225 u8 flags, struct acpi_table_header *table) in acpi_tb_acquire_temp_table() 948 struct acpi_table_header *table; in acpi_tb_load_table() local 1005 struct acpi_table_header *table, in acpi_tb_install_and_load_table() 1045 struct acpi_table_header *table; in ACPI_EXPORT_SYMBOL() local
|
/linux/drivers/gpu/drm/radeon/ |
H A D | mkregtable.c | 111 struct table { struct 115 unsigned *table; argument 131 static void table_offset_add(struct table *t, struct offset *offset) in table_offset_add() argument
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_npc_hash.c | 429 struct npc_exact_table *table = rvu->hw->table; in rvu_exact_calculate_hash() local 468 struct npc_exact_table *table; in rvu_npc_exact_alloc_mem_table_entry() local 504 struct npc_exact_table *table; in rvu_npc_exact_free_id() local 521 struct npc_exact_table *table; in rvu_npc_exact_alloc_id() local 554 struct npc_exact_table *table; in rvu_npc_exact_alloc_cam_table_entry() local 723 struct npc_exact_table *table; in rvu_npc_exact_get_max_entries() local 750 struct npc_exact_table *table = rvu->hw->table; in __rvu_npc_exact_find_entry_by_seq_id() local 789 struct npc_exact_table *table = rvu->hw->table; in rvu_npc_exact_add_to_list() local 903 struct npc_exact_table *table; in rvu_npc_exact_dealloc_table_entry() local 976 struct npc_exact_table *table; in rvu_npc_exact_alloc_table_entry() local [all …]
|
/linux/arch/powerpc/include/asm/nohash/ |
H A D | pgalloc.h | 43 static inline void pgtable_free(void *table, int shift) in pgtable_free() 53 static inline void pgtable_free_tlb(struct mmu_gather *tlb, void *table, int shift) in pgtable_free_tlb() 64 void *table = (void *)((unsigned long)_table & ~MAX_PGTABLE_INDEX_SIZE); in __tlb_remove_table() local 70 static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t table, in __pte_free_tlb()
|
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | smu_helper.c | 53 uint32_t *table; in phm_copy_clock_limits_array() local 75 uint32_t *table; in phm_copy_overdrive_settings_limits_array() local 209 struct pp_atomctrl_voltage_table *table; in phm_trim_voltage_table() local 346 int phm_reset_single_dpm_table(void *table, in phm_reset_single_dpm_table() 362 void *table, in phm_setup_pcie_table_entry() 372 int32_t phm_get_dpm_level_enable_mask_value(void *table) in phm_get_dpm_level_enable_mask_value() 443 int phm_find_boot_level(void *table, in phm_find_boot_level() 549 struct phm_clock_voltage_dependency_table *table = in phm_apply_dal_min_voltage_request() local 674 void *smu_atom_get_data_table(void *dev, uint32_t table, uint16_t *size, in smu_atom_get_data_table() 719 struct watermarks *table = wt_table; in smu_set_watermarks_for_clocks_ranges() local
|
/linux/kernel/power/ |
H A D | energy_model.c | 72 struct em_perf_state *table; in em_debug_create_ps() local 176 void em_table_free(struct em_perf_table *table) in em_table_free() 191 struct em_perf_table *table; in em_table_alloc() local 206 struct em_perf_state *table, int nr_states) in em_init_performance() 229 static int em_compute_costs(struct device *dev, struct em_perf_state *table, in em_compute_costs() 284 int em_dev_compute_costs(struct device *dev, struct em_perf_state *table, in em_dev_compute_costs() 336 struct em_perf_state *table, in em_create_perf_table() 451 em_cpufreq_update_efficiencies(struct device *dev, struct em_perf_state *table) in em_cpufreq_update_efficiencies() 735 struct em_perf_state *table; in em_adjust_new_capacity() local 889 struct em_perf_state *table; in em_update_performance_limits() local
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | icm.c | 258 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj) in mlx4_table_get() 294 void mlx4_table_put(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj) in mlx4_table_put() 314 void *mlx4_table_find(struct mlx4_icm_table *table, u32 obj, in mlx4_table_find() 382 int mlx4_table_get_range(struct mlx4_dev *dev, struct mlx4_icm_table *table, in mlx4_table_get_range() 406 void mlx4_table_put_range(struct mlx4_dev *dev, struct mlx4_icm_table *table, in mlx4_table_put_range() 415 int mlx4_init_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table, in mlx4_init_icm_table() 481 void mlx4_cleanup_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table) in mlx4_cleanup_icm_table()
|