Home
last modified time | relevance | path

Searched refs:table (Results 1 – 200 of 1250) sorted by relevance

1234567

/linux-4.1.27/tools/power/acpi/tools/acpidump/
Dapdump.c49 ap_dump_table_buffer(struct acpi_table_header *table,
64 u8 ap_is_valid_header(struct acpi_table_header *table) in ap_is_valid_header() argument
67 if (!ACPI_VALIDATE_RSDP_SIG(table->signature)) { in ap_is_valid_header()
71 if (!acpi_ut_valid_acpi_name(table->signature)) { in ap_is_valid_header()
73 *(u32 *)table->signature); in ap_is_valid_header()
79 if (table->length < sizeof(struct acpi_table_header)) { in ap_is_valid_header()
81 table->length); in ap_is_valid_header()
101 u8 ap_is_valid_checksum(struct acpi_table_header *table) in ap_is_valid_checksum() argument
106 if (ACPI_VALIDATE_RSDP_SIG(table->signature)) { in ap_is_valid_checksum()
111 rsdp = ACPI_CAST_PTR(struct acpi_table_rsdp, table); in ap_is_valid_checksum()
[all …]
Dapfiles.c120 int ap_write_to_binary_file(struct acpi_table_header *table, u32 instance) in ap_write_to_binary_file() argument
130 table_length = ap_get_table_length(table); in ap_write_to_binary_file()
134 if (ACPI_VALIDATE_RSDP_SIG(table->signature)) { in ap_write_to_binary_file()
137 ACPI_MOVE_NAME(filename, table->signature); in ap_write_to_binary_file()
158 table->signature, filename, table->length, table->length); in ap_write_to_binary_file()
170 actual = acpi_os_write_file(file, table, 1, table_length); in ap_write_to_binary_file()
Dacpidump.h115 u8 ap_is_valid_header(struct acpi_table_header *table);
117 u8 ap_is_valid_checksum(struct acpi_table_header *table);
119 u32 ap_get_table_length(struct acpi_table_header *table);
126 int ap_write_to_binary_file(struct acpi_table_header *table, u32 instance);
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dutils.c461 struct iwl_umac_error_event_table table; in iwl_mvm_dump_umac_error_log() local
475 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_mvm_dump_umac_error_log()
477 if (ERROR_START_OFFSET <= table.valid * ERROR_ELEM_SIZE) { in iwl_mvm_dump_umac_error_log()
480 mvm->status, table.valid); in iwl_mvm_dump_umac_error_log()
483 IWL_ERR(mvm, "0x%08X | %s\n", table.error_id, in iwl_mvm_dump_umac_error_log()
484 desc_lookup(table.error_id)); in iwl_mvm_dump_umac_error_log()
485 IWL_ERR(mvm, "0x%08X | umac branchlink1\n", table.blink1); in iwl_mvm_dump_umac_error_log()
486 IWL_ERR(mvm, "0x%08X | umac branchlink2\n", table.blink2); in iwl_mvm_dump_umac_error_log()
487 IWL_ERR(mvm, "0x%08X | umac interruptlink1\n", table.ilink1); in iwl_mvm_dump_umac_error_log()
488 IWL_ERR(mvm, "0x%08X | umac interruptlink2\n", table.ilink2); in iwl_mvm_dump_umac_error_log()
[all …]
/linux-4.1.27/arch/x86/lib/
Dinat.c43 const insn_attr_t *table; in inat_get_escape_attribute() local
48 table = inat_escape_tables[n][0]; in inat_get_escape_attribute()
49 if (!table) in inat_get_escape_attribute()
51 if (inat_has_variant(table[opcode]) && lpfx_id) { in inat_get_escape_attribute()
52 table = inat_escape_tables[n][lpfx_id]; in inat_get_escape_attribute()
53 if (!table) in inat_get_escape_attribute()
56 return table[opcode]; in inat_get_escape_attribute()
62 const insn_attr_t *table; in inat_get_group_attribute() local
67 table = inat_group_tables[n][0]; in inat_get_group_attribute()
68 if (!table) in inat_get_group_attribute()
[all …]
/linux-4.1.27/arch/powerpc/boot/
Dplanetcore.c29 void planetcore_prepare_table(char *table) in planetcore_prepare_table() argument
32 if (*table == '\n') in planetcore_prepare_table()
33 *table = 0; in planetcore_prepare_table()
35 table++; in planetcore_prepare_table()
36 } while (*(table - 1) || *table != '\n'); in planetcore_prepare_table()
38 *table = 0; in planetcore_prepare_table()
41 const char *planetcore_get_key(const char *table, const char *key) in planetcore_get_key() argument
46 if (!strncmp(table, key, keylen) && table[keylen] == '=') in planetcore_get_key()
47 return table + keylen + 1; in planetcore_get_key()
49 table += strlen(table) + 1; in planetcore_get_key()
[all …]
Dep405.c24 static char *table; variable
33 planetcore_set_mac_addrs(table); in platform_fixups()
35 if (!planetcore_get_decimal(table, PLANETCORE_KEY_CRYSTAL_HZ, &val)) { in platform_fixups()
43 if (!planetcore_get_decimal(table, PLANETCORE_KEY_KB_NVRAM, &val)) { in platform_fixups()
59 table = (char *)r3; in platform_init()
60 planetcore_prepare_table(table); in platform_init()
62 if (!planetcore_get_decimal(table, PLANETCORE_KEY_MB_RAM, &mem_size)) in platform_init()
70 planetcore_set_stdout_path(table); in platform_init()
Dep8248e.c18 static char *table; variable
28 planetcore_set_mac_addrs(table); in platform_fixups()
30 if (!planetcore_get_decimal(table, PLANETCORE_KEY_CRYSTAL_HZ, &val)) { in platform_fixups()
41 table = (char *)r3; in platform_init()
42 planetcore_prepare_table(table); in platform_init()
44 if (!planetcore_get_decimal(table, PLANETCORE_KEY_MB_RAM, &mem_size)) in platform_init()
52 planetcore_set_stdout_path(table); in platform_init()
Dep88xc.c18 static char *table; variable
26 planetcore_set_mac_addrs(table); in platform_fixups()
28 if (!planetcore_get_decimal(table, PLANETCORE_KEY_CRYSTAL_HZ, &val)) { in platform_fixups()
39 table = (char *)r3; in platform_init()
40 planetcore_prepare_table(table); in platform_init()
42 if (!planetcore_get_decimal(table, PLANETCORE_KEY_MB_RAM, &mem_size)) in platform_init()
50 planetcore_set_stdout_path(table); in platform_init()
Dplanetcore.h25 void planetcore_prepare_table(char *table);
32 const char *planetcore_get_key(const char *table, const char *key);
33 int planetcore_get_decimal(const char *table, const char *key, u64 *val);
34 int planetcore_get_hex(const char *table, const char *key, u64 *val);
39 void planetcore_set_mac_addrs(const char *table);
44 void planetcore_set_stdout_path(const char *table);
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dicm.c249 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj, in mlx4_table_get() argument
252 u32 i = (obj & (table->num_obj - 1)) / in mlx4_table_get()
253 (MLX4_TABLE_CHUNK_SIZE / table->obj_size); in mlx4_table_get()
256 mutex_lock(&table->mutex); in mlx4_table_get()
258 if (table->icm[i]) { in mlx4_table_get()
259 ++table->icm[i]->refcount; in mlx4_table_get()
263 table->icm[i] = mlx4_alloc_icm(dev, MLX4_TABLE_CHUNK_SIZE >> PAGE_SHIFT, in mlx4_table_get()
264 (table->lowmem ? gfp : GFP_HIGHUSER) | in mlx4_table_get()
265 __GFP_NOWARN, table->coherent); in mlx4_table_get()
266 if (!table->icm[i]) { in mlx4_table_get()
[all …]
Dport.c56 void mlx4_init_mac_table(struct mlx4_dev *dev, struct mlx4_mac_table *table) in mlx4_init_mac_table() argument
60 mutex_init(&table->mutex); in mlx4_init_mac_table()
62 table->entries[i] = 0; in mlx4_init_mac_table()
63 table->refs[i] = 0; in mlx4_init_mac_table()
65 table->max = 1 << dev->caps.log_num_macs; in mlx4_init_mac_table()
66 table->total = 0; in mlx4_init_mac_table()
69 void mlx4_init_vlan_table(struct mlx4_dev *dev, struct mlx4_vlan_table *table) in mlx4_init_vlan_table() argument
73 mutex_init(&table->mutex); in mlx4_init_vlan_table()
75 table->entries[i] = 0; in mlx4_init_vlan_table()
76 table->refs[i] = 0; in mlx4_init_vlan_table()
[all …]
Dicm.h74 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj,
76 void mlx4_table_put(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj);
77 int mlx4_table_get_range(struct mlx4_dev *dev, struct mlx4_icm_table *table,
79 void mlx4_table_put_range(struct mlx4_dev *dev, struct mlx4_icm_table *table,
81 int mlx4_init_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table,
84 void mlx4_cleanup_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table);
85 void *mlx4_table_find(struct mlx4_icm_table *table, u32 obj, dma_addr_t *dma_handle);
/linux-4.1.27/drivers/clk/
Dclk-divider.c35 static unsigned int _get_table_maxdiv(const struct clk_div_table *table) in _get_table_maxdiv() argument
40 for (clkt = table; clkt->div; clkt++) in _get_table_maxdiv()
46 static unsigned int _get_table_mindiv(const struct clk_div_table *table) in _get_table_mindiv() argument
51 for (clkt = table; clkt->div; clkt++) in _get_table_mindiv()
57 static unsigned int _get_maxdiv(const struct clk_div_table *table, u8 width, in _get_maxdiv() argument
64 if (table) in _get_maxdiv()
65 return _get_table_maxdiv(table); in _get_maxdiv()
69 static unsigned int _get_table_div(const struct clk_div_table *table, in _get_table_div() argument
74 for (clkt = table; clkt->div; clkt++) in _get_table_div()
80 static unsigned int _get_div(const struct clk_div_table *table, in _get_div() argument
[all …]
Dclk-mux.c48 if (mux->table) { in clk_mux_get_parent()
52 if (mux->table[i] == val) in clk_mux_get_parent()
75 if (mux->table) in clk_mux_set_parent()
76 index = mux->table[index]; in clk_mux_set_parent()
119 u8 clk_mux_flags, u32 *table, spinlock_t *lock) in clk_register_mux_table() argument
156 mux->table = table; in clk_register_mux_table()
/linux-4.1.27/drivers/media/i2c/
Dks0127.c221 u8 *table = reg_defaults; in init_reg_defaults() local
227 table[KS_CMDA] = 0x2c; /* VSE=0, CCIR 601, autodetect standard */ in init_reg_defaults()
228 table[KS_CMDB] = 0x12; /* VALIGN=0, AGC control and input */ in init_reg_defaults()
229 table[KS_CMDC] = 0x00; /* Test options */ in init_reg_defaults()
231 table[KS_CMDD] = 0x01; in init_reg_defaults()
232 table[KS_HAVB] = 0x00; /* HAV Start Control */ in init_reg_defaults()
233 table[KS_HAVE] = 0x00; /* HAV End Control */ in init_reg_defaults()
234 table[KS_HS1B] = 0x10; /* HS1 Start Control */ in init_reg_defaults()
235 table[KS_HS1E] = 0x00; /* HS1 End Control */ in init_reg_defaults()
236 table[KS_HS2B] = 0x00; /* HS2 Start Control */ in init_reg_defaults()
[all …]
/linux-4.1.27/net/sched/
Dsch_gred.c62 static inline int gred_wred_mode(struct gred_sched *table) in gred_wred_mode() argument
64 return test_bit(GRED_WRED_MODE, &table->flags); in gred_wred_mode()
67 static inline void gred_enable_wred_mode(struct gred_sched *table) in gred_enable_wred_mode() argument
69 __set_bit(GRED_WRED_MODE, &table->flags); in gred_enable_wred_mode()
72 static inline void gred_disable_wred_mode(struct gred_sched *table) in gred_disable_wred_mode() argument
74 __clear_bit(GRED_WRED_MODE, &table->flags); in gred_disable_wred_mode()
77 static inline int gred_rio_mode(struct gred_sched *table) in gred_rio_mode() argument
79 return test_bit(GRED_RIO_MODE, &table->flags); in gred_rio_mode()
82 static inline void gred_enable_rio_mode(struct gred_sched *table) in gred_enable_rio_mode() argument
84 __set_bit(GRED_RIO_MODE, &table->flags); in gred_enable_rio_mode()
[all …]
/linux-4.1.27/drivers/clk/ti/
Ddivider.c33 static unsigned int _get_table_maxdiv(const struct clk_div_table *table) in _get_table_maxdiv() argument
38 for (clkt = table; clkt->div; clkt++) in _get_table_maxdiv()
50 if (divider->table) in _get_maxdiv()
51 return _get_table_maxdiv(divider->table); in _get_maxdiv()
55 static unsigned int _get_table_div(const struct clk_div_table *table, in _get_table_div() argument
60 for (clkt = table; clkt->div; clkt++) in _get_table_div()
72 if (divider->table) in _get_div()
73 return _get_table_div(divider->table, val); in _get_div()
77 static unsigned int _get_table_val(const struct clk_div_table *table, in _get_table_val() argument
82 for (clkt = table; clkt->div; clkt++) in _get_table_val()
[all …]
/linux-4.1.27/drivers/infiniband/hw/mthca/
Dmthca_memfree.c222 int mthca_table_get(struct mthca_dev *dev, struct mthca_icm_table *table, int obj) in mthca_table_get() argument
224 int i = (obj & (table->num_obj - 1)) * table->obj_size / MTHCA_TABLE_CHUNK_SIZE; in mthca_table_get()
227 mutex_lock(&table->mutex); in mthca_table_get()
229 if (table->icm[i]) { in mthca_table_get()
230 ++table->icm[i]->refcount; in mthca_table_get()
234 table->icm[i] = mthca_alloc_icm(dev, MTHCA_TABLE_CHUNK_SIZE >> PAGE_SHIFT, in mthca_table_get()
235 (table->lowmem ? GFP_KERNEL : GFP_HIGHUSER) | in mthca_table_get()
236 __GFP_NOWARN, table->coherent); in mthca_table_get()
237 if (!table->icm[i]) { in mthca_table_get()
242 if (mthca_MAP_ICM(dev, table->icm[i], in mthca_table_get()
[all …]
Dmthca_memfree.h90 void mthca_free_icm_table(struct mthca_dev *dev, struct mthca_icm_table *table);
91 int mthca_table_get(struct mthca_dev *dev, struct mthca_icm_table *table, int obj);
92 void mthca_table_put(struct mthca_dev *dev, struct mthca_icm_table *table, int obj);
93 void *mthca_table_find(struct mthca_icm_table *table, int obj, dma_addr_t *dma_handle);
94 int mthca_table_get_range(struct mthca_dev *dev, struct mthca_icm_table *table,
96 void mthca_table_put_range(struct mthca_dev *dev, struct mthca_icm_table *table,
Dmthca_allocator.c47 obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last); in mthca_alloc()
50 obj = find_first_zero_bit(alloc->table, alloc->max); in mthca_alloc()
54 set_bit(obj, alloc->table); in mthca_alloc()
72 clear_bit(obj, alloc->table); in mthca_free()
93 alloc->table = kmalloc(BITS_TO_LONGS(num) * sizeof (long), in mthca_alloc_init()
95 if (!alloc->table) in mthca_alloc_init()
98 bitmap_zero(alloc->table, num); in mthca_alloc_init()
100 set_bit(i, alloc->table); in mthca_alloc_init()
107 kfree(alloc->table); in mthca_alloc_cleanup()
/linux-4.1.27/drivers/gpu/drm/radeon/
Drv730_dpm.c230 RV770_SMC_STATETABLE *table) in rv730_populate_smc_acpi_state() argument
242 table->ACPIState = table->initialState; in rv730_populate_smc_acpi_state()
243 table->ACPIState.flags &= ~PPSMC_SWSTATE_FLAG_DC; in rv730_populate_smc_acpi_state()
247 &table->ACPIState.levels[0].vddc); in rv730_populate_smc_acpi_state()
248 table->ACPIState.levels[0].gen2PCIE = pi->pcie_gen2 ? in rv730_populate_smc_acpi_state()
250 table->ACPIState.levels[0].gen2XSP = in rv730_populate_smc_acpi_state()
254 &table->ACPIState.levels[0].vddc); in rv730_populate_smc_acpi_state()
255 table->ACPIState.levels[0].gen2PCIE = 0; in rv730_populate_smc_acpi_state()
297 table->ACPIState.levels[0].mclk.mclk730.vMPLL_FUNC_CNTL = cpu_to_be32(mpll_func_cntl); in rv730_populate_smc_acpi_state()
298 table->ACPIState.levels[0].mclk.mclk730.vMPLL_FUNC_CNTL2 = cpu_to_be32(mpll_func_cntl_2); in rv730_populate_smc_acpi_state()
[all …]
Dci_dpm.c1296 SMU7_Discrete_DpmTable *table = &pi->smc_state_table; in ci_init_fps_limits() local
1302 table->FpsHighT = cpu_to_be16(tmp); in ci_init_fps_limits()
1305 table->FpsLowT = cpu_to_be16(tmp); in ci_init_fps_limits()
2189 SMU7_Discrete_DpmTable *table) in ci_populate_smc_vddc_table() argument
2194 table->VddcLevelCount = pi->vddc_voltage_table.count; in ci_populate_smc_vddc_table()
2195 for (count = 0; count < table->VddcLevelCount; count++) { in ci_populate_smc_vddc_table()
2198 &table->VddcLevel[count]); in ci_populate_smc_vddc_table()
2201 table->VddcLevel[count].Smio |= in ci_populate_smc_vddc_table()
2204 table->VddcLevel[count].Smio = 0; in ci_populate_smc_vddc_table()
2206 table->VddcLevelCount = cpu_to_be32(table->VddcLevelCount); in ci_populate_smc_vddc_table()
[all …]
Dbtc_dpm.c1174 …tc_get_max_clock_from_voltage_dependency_table(struct radeon_clock_voltage_dependency_table *table, in btc_get_max_clock_from_voltage_dependency_table() argument
1179 if ((table == NULL) || (table->count == 0)) { in btc_get_max_clock_from_voltage_dependency_table()
1184 for (i = 0; i < table->count; i++) { in btc_get_max_clock_from_voltage_dependency_table()
1185 if (clock < table->entries[i].clk) in btc_get_max_clock_from_voltage_dependency_table()
1186 clock = table->entries[i].clk; in btc_get_max_clock_from_voltage_dependency_table()
1191 void btc_apply_voltage_dependency_rules(struct radeon_clock_voltage_dependency_table *table, in btc_apply_voltage_dependency_rules() argument
1196 if ((table == NULL) || (table->count == 0)) in btc_apply_voltage_dependency_rules()
1199 for (i= 0; i < table->count; i++) { in btc_apply_voltage_dependency_rules()
1200 if (clock <= table->entries[i].clk) { in btc_apply_voltage_dependency_rules()
1201 if (*voltage < table->entries[i].v) in btc_apply_voltage_dependency_rules()
[all …]
Drv740_dpm.c316 RV770_SMC_STATETABLE *table) in rv740_populate_smc_acpi_state() argument
329 table->ACPIState = table->initialState; in rv740_populate_smc_acpi_state()
331 table->ACPIState.flags &= ~PPSMC_SWSTATE_FLAG_DC; in rv740_populate_smc_acpi_state()
335 &table->ACPIState.levels[0].vddc); in rv740_populate_smc_acpi_state()
336 table->ACPIState.levels[0].gen2PCIE = in rv740_populate_smc_acpi_state()
339 table->ACPIState.levels[0].gen2XSP = in rv740_populate_smc_acpi_state()
343 &table->ACPIState.levels[0].vddc); in rv740_populate_smc_acpi_state()
344 table->ACPIState.levels[0].gen2PCIE = 0; in rv740_populate_smc_acpi_state()
374 table->ACPIState.levels[0].mclk.mclk770.vMPLL_AD_FUNC_CNTL = cpu_to_be32(mpll_ad_func_cntl); in rv740_populate_smc_acpi_state()
375 table->ACPIState.levels[0].mclk.mclk770.vMPLL_AD_FUNC_CNTL_2 = cpu_to_be32(mpll_ad_func_cntl_2); in rv740_populate_smc_acpi_state()
[all …]
Dcypress_dpm.c404 struct atom_voltage_table *table, in cypress_populate_voltage_value() argument
409 for (i = 0; i < table->count; i++) { in cypress_populate_voltage_value()
410 if (value <= table->entries[i].value) { in cypress_populate_voltage_value()
412 voltage->value = cpu_to_be16(table->entries[i].value); in cypress_populate_voltage_value()
417 if (i == table->count) in cypress_populate_voltage_value()
1236 RV770_SMC_STATETABLE *table) in cypress_populate_smc_initial_state() argument
1243 table->initialState.levels[0].mclk.mclk770.vMPLL_AD_FUNC_CNTL = in cypress_populate_smc_initial_state()
1245 table->initialState.levels[0].mclk.mclk770.vMPLL_AD_FUNC_CNTL_2 = in cypress_populate_smc_initial_state()
1247 table->initialState.levels[0].mclk.mclk770.vMPLL_DQ_FUNC_CNTL = in cypress_populate_smc_initial_state()
1249 table->initialState.levels[0].mclk.mclk770.vMPLL_DQ_FUNC_CNTL_2 = in cypress_populate_smc_initial_state()
[all …]
Dkv_dpm.c718 struct radeon_clock_voltage_dependency_table *table = in kv_program_bootup_state() local
721 if (table && table->count) { in kv_program_bootup_state()
723 if (table->entries[i].clk == pi->boot_pl.sclk) in kv_program_bootup_state()
730 struct sumo_sclk_voltage_mapping_table *table = in kv_program_bootup_state() local
733 if (table->num_max_dpm_entries == 0) in kv_program_bootup_state()
737 if (table->entries[i].sclk_frequency == pi->boot_pl.sclk) in kv_program_bootup_state()
820 struct radeon_uvd_clock_voltage_dependency_table *table = in kv_populate_uvd_table() local
826 if (table == NULL || table->count == 0) in kv_populate_uvd_table()
830 for (i = 0; i < table->count; i++) { in kv_populate_uvd_table()
832 (pi->high_voltage_t < table->entries[i].v)) in kv_populate_uvd_table()
[all …]
Dni_dpm.c990 struct radeon_clock_voltage_dependency_table *table) in ni_patch_single_dependency_table_based_on_leakage() argument
995 if (table) { in ni_patch_single_dependency_table_based_on_leakage()
996 for (i = 0; i < table->count; i++) { in ni_patch_single_dependency_table_based_on_leakage()
997 if (0xff01 == table->entries[i].v) { in ni_patch_single_dependency_table_based_on_leakage()
1000 table->entries[i].v = pi->max_vddc; in ni_patch_single_dependency_table_based_on_leakage()
1259 NISLANDS_SMC_STATETABLE *table) in ni_populate_smc_voltage_table() argument
1264 table->highSMIO[i] = 0; in ni_populate_smc_voltage_table()
1265 table->lowSMIO[i] |= cpu_to_be32(voltage_table->entries[i].smio_low); in ni_populate_smc_voltage_table()
1270 NISLANDS_SMC_STATETABLE *table) in ni_populate_smc_voltage_tables() argument
1277 ni_populate_smc_voltage_table(rdev, &eg_pi->vddc_voltage_table, table); in ni_populate_smc_voltage_tables()
[all …]
Drv770_dpm.c916 RV770_SMC_STATETABLE *table) in rv770_populate_smc_acpi_state() argument
937 table->ACPIState = table->initialState; in rv770_populate_smc_acpi_state()
939 table->ACPIState.flags &= ~PPSMC_SWSTATE_FLAG_DC; in rv770_populate_smc_acpi_state()
943 &table->ACPIState.levels[0].vddc); in rv770_populate_smc_acpi_state()
946 table->ACPIState.levels[0].gen2PCIE = 1; in rv770_populate_smc_acpi_state()
948 table->ACPIState.levels[0].gen2PCIE = 0; in rv770_populate_smc_acpi_state()
950 table->ACPIState.levels[0].gen2PCIE = 0; in rv770_populate_smc_acpi_state()
952 table->ACPIState.levels[0].gen2XSP = 1; in rv770_populate_smc_acpi_state()
954 table->ACPIState.levels[0].gen2XSP = 0; in rv770_populate_smc_acpi_state()
957 &table->ACPIState.levels[0].vddc); in rv770_populate_smc_acpi_state()
[all …]
Dsi_dpm.c1745 const struct atom_voltage_table *table,
2534 struct radeon_cac_leakage_table *table = in si_get_cac_std_voltage_max_min() local
2540 if (table == NULL) in si_get_cac_std_voltage_max_min()
2546 for (i = 0; i < table->count; i++) { in si_get_cac_std_voltage_max_min()
2547 if (table->entries[i].vddc > *max) in si_get_cac_std_voltage_max_min()
2548 *max = table->entries[i].vddc; in si_get_cac_std_voltage_max_min()
2549 if (table->entries[i].vddc < *min) in si_get_cac_std_voltage_max_min()
2550 *min = table->entries[i].vddc; in si_get_cac_std_voltage_max_min()
3832 const struct atom_voltage_table *table, in si_validate_phase_shedding_tables() argument
3837 if ((table == NULL) || (limits == NULL)) in si_validate_phase_shedding_tables()
[all …]
Dmkregtable.c543 struct table { struct
547 unsigned *table; argument
563 static void table_offset_add(struct table *t, struct offset *offset) in table_offset_add() argument
568 static void table_init(struct table *t) in table_init()
573 t->table = NULL; in table_init()
576 static void table_print(struct table *t) in table_print()
594 printf("0x%08X,", t->table[id++]); in table_print()
601 static int table_build(struct table *t) in table_build()
607 t->table = (unsigned *)malloc(sizeof(unsigned) * t->nentry); in table_build()
608 if (t->table == NULL) in table_build()
[all …]
/linux-4.1.27/drivers/cpufreq/
Dfreq_table.c22 struct cpufreq_frequency_table *table) in cpufreq_frequency_table_cpuinfo() argument
29 cpufreq_for_each_valid_entry(pos, table) { in cpufreq_frequency_table_cpuinfo()
36 pr_debug("table entry %u: %u kHz\n", (int)(pos - table), freq); in cpufreq_frequency_table_cpuinfo()
55 struct cpufreq_frequency_table *table) in cpufreq_frequency_table_verify() argument
66 cpufreq_for_each_valid_entry(pos, table) { in cpufreq_frequency_table_verify()
96 struct cpufreq_frequency_table *table = in cpufreq_generic_frequency_table_verify() local
98 if (!table) in cpufreq_generic_frequency_table_verify()
101 return cpufreq_frequency_table_verify(policy, table); in cpufreq_generic_frequency_table_verify()
106 struct cpufreq_frequency_table *table, in cpufreq_frequency_table_target() argument
135 cpufreq_for_each_valid_entry(pos, table) { in cpufreq_frequency_table_target()
[all …]
Dqoriq-cpufreq.c35 struct cpufreq_frequency_table *table; member
171 struct cpufreq_frequency_table table; in freq_table_sort() local
187 table.driver_data = freq_table[i].driver_data; in freq_table_sort()
188 table.frequency = freq_table[i].frequency; in freq_table_sort()
191 freq_table[ind].driver_data = table.driver_data; in freq_table_sort()
192 freq_table[ind].frequency = table.frequency; in freq_table_sort()
203 struct cpufreq_frequency_table *table; in qoriq_cpufreq_cpu_init() local
229 table = kcalloc(count + 1, sizeof(*table), GFP_KERNEL); in qoriq_cpufreq_cpu_init()
230 if (!table) { in qoriq_cpufreq_cpu_init()
248 table[i].frequency = CPUFREQ_ENTRY_INVALID; in qoriq_cpufreq_cpu_init()
[all …]
Dsparc-us2e-cpufreq.c25 struct cpufreq_frequency_table table[6]; member
280 struct cpufreq_frequency_table *table = in us2e_freq_cpu_init() local
281 &us2e_freq_table[cpu].table[0]; in us2e_freq_cpu_init()
283 table[0].driver_data = 0; in us2e_freq_cpu_init()
284 table[0].frequency = clock_tick / 1; in us2e_freq_cpu_init()
285 table[1].driver_data = 1; in us2e_freq_cpu_init()
286 table[1].frequency = clock_tick / 2; in us2e_freq_cpu_init()
287 table[2].driver_data = 2; in us2e_freq_cpu_init()
288 table[2].frequency = clock_tick / 4; in us2e_freq_cpu_init()
289 table[2].driver_data = 3; in us2e_freq_cpu_init()
[all …]
Dsparc-us3-cpufreq.c24 struct cpufreq_frequency_table table[4]; member
139 struct cpufreq_frequency_table *table = in us3_freq_cpu_init() local
140 &us3_freq_table[cpu].table[0]; in us3_freq_cpu_init()
142 table[0].driver_data = 0; in us3_freq_cpu_init()
143 table[0].frequency = clock_tick / 1; in us3_freq_cpu_init()
144 table[1].driver_data = 1; in us3_freq_cpu_init()
145 table[1].frequency = clock_tick / 2; in us3_freq_cpu_init()
146 table[2].driver_data = 2; in us3_freq_cpu_init()
147 table[2].frequency = clock_tick / 32; in us3_freq_cpu_init()
148 table[3].driver_data = 0; in us3_freq_cpu_init()
[all …]
Dcpufreq_opp.c48 struct cpufreq_frequency_table **table) in dev_pm_opp_init_cpufreq_table() argument
83 *table = &freq_table[0]; in dev_pm_opp_init_cpufreq_table()
102 struct cpufreq_frequency_table **table) in dev_pm_opp_free_cpufreq_table() argument
104 if (!table) in dev_pm_opp_free_cpufreq_table()
107 kfree(*table); in dev_pm_opp_free_cpufreq_table()
108 *table = NULL; in dev_pm_opp_free_cpufreq_table()
Dpxa3xx-cpufreq.c93 struct cpufreq_frequency_table *table; in setup_freqs_table() local
96 table = kzalloc((num + 1) * sizeof(*table), GFP_KERNEL); in setup_freqs_table()
97 if (table == NULL) in setup_freqs_table()
101 table[i].driver_data = i; in setup_freqs_table()
102 table[i].frequency = freqs[i].cpufreq_mhz * 1000; in setup_freqs_table()
104 table[num].driver_data = i; in setup_freqs_table()
105 table[num].frequency = CPUFREQ_TABLE_END; in setup_freqs_table()
109 pxa3xx_freqs_table = table; in setup_freqs_table()
111 return cpufreq_table_validate_and_show(policy, table); in setup_freqs_table()
Darm_big_little.c217 static inline u32 get_table_count(struct cpufreq_frequency_table *table) in get_table_count() argument
221 for (count = 0; table[count].frequency != CPUFREQ_TABLE_END; count++) in get_table_count()
228 static inline u32 get_table_min(struct cpufreq_frequency_table *table) in get_table_min() argument
232 cpufreq_for_each_entry(pos, table) in get_table_min()
239 static inline u32 get_table_max(struct cpufreq_frequency_table *table) in get_table_max() argument
243 cpufreq_for_each_entry(pos, table) in get_table_max()
252 struct cpufreq_frequency_table *table; in merge_cluster_tables() local
257 table = kzalloc(sizeof(*table) * count, GFP_KERNEL); in merge_cluster_tables()
258 if (!table) in merge_cluster_tables()
261 freq_table[MAX_CLUSTERS] = table; in merge_cluster_tables()
[all …]
/linux-4.1.27/fs/proc/
Dproc_sysctl.c181 struct ctl_node *node, struct ctl_table *table) in init_header() argument
183 head->ctl_table = table; in init_header()
184 head->ctl_table_arg = table; in init_header()
195 for (entry = table; entry->procname; entry++, node++) in init_header()
417 static int sysctl_perm(struct ctl_table_header *head, struct ctl_table *table, int op) in sysctl_perm() argument
423 mode = root->permissions(head, table); in sysctl_perm()
425 mode = table->mode; in sysctl_perm()
431 struct ctl_table_header *head, struct ctl_table *table) in proc_sys_make_inode() argument
445 ei->sysctl_entry = table; in proc_sys_make_inode()
448 inode->i_mode = table->mode; in proc_sys_make_inode()
[all …]
/linux-4.1.27/net/xfrm/
Dxfrm_sysctl.c45 struct ctl_table *table; in xfrm_sysctl_init() local
49 table = kmemdup(xfrm_table, sizeof(xfrm_table), GFP_KERNEL); in xfrm_sysctl_init()
50 if (!table) in xfrm_sysctl_init()
52 table[0].data = &net->xfrm.sysctl_aevent_etime; in xfrm_sysctl_init()
53 table[1].data = &net->xfrm.sysctl_aevent_rseqth; in xfrm_sysctl_init()
54 table[2].data = &net->xfrm.sysctl_larval_drop; in xfrm_sysctl_init()
55 table[3].data = &net->xfrm.sysctl_acq_expires; in xfrm_sysctl_init()
59 table[0].procname = NULL; in xfrm_sysctl_init()
61 net->xfrm.sysctl_hdr = register_net_sysctl(net, "net/core", table); in xfrm_sysctl_init()
67 kfree(table); in xfrm_sysctl_init()
[all …]
/linux-4.1.27/arch/x86/crypto/
Daes-i586-asm_32.S93 #define do_col(table, a1,a2,a3,a4, idx, tmp) \ argument
95 xor table(,%tmp,4),%a1; \
98 xor table+tlen(,%tmp,4),%a2; \
101 xor table+2*tlen(,%tmp,4),%a3; \
102 xor table+3*tlen(,%idx,4),%a4;
107 #define do_fcol(table, a1,a2,a3,a4, idx, tmp, sched) \ argument
111 xor table(,%tmp,4),%a1; \
115 xor table+tlen(,%tmp,4),%a2; \
118 xor table+3*tlen(,%idx,4),%a4; \
121 xor table+2*tlen(,%tmp,4),%a3;
[all …]
/linux-4.1.27/drivers/acpi/acpica/
Dutfileio.c59 acpi_ut_check_text_mode_corruption(u8 *table,
64 struct acpi_table_header **table, u32 *table_length);
83 acpi_ut_check_text_mode_corruption(u8 *table, u32 table_length, u32 file_length) in acpi_ut_check_text_mode_corruption() argument
97 if (table[i] == 0x0A) { in acpi_ut_check_text_mode_corruption()
98 if (table[i - 1] != 0x0D) { in acpi_ut_check_text_mode_corruption()
146 struct acpi_table_header **table, u32 *table_length) in acpi_ut_read_table() argument
232 *table = acpi_os_allocate((size_t) file_size); in acpi_ut_read_table()
233 if (!*table) { in acpi_ut_read_table()
243 actual = fread(*table, 1, (size_t) file_size, fp); in acpi_ut_read_table()
249 status = acpi_tb_verify_checksum((void *)*table, in acpi_ut_read_table()
[all …]
Dtbutils.c285 struct acpi_table_header *table; in acpi_tb_parse_root_table() local
331 table = acpi_os_map_memory(address, sizeof(struct acpi_table_header)); in acpi_tb_parse_root_table()
332 if (!table) { in acpi_tb_parse_root_table()
336 acpi_tb_print_table_header(address, table); in acpi_tb_parse_root_table()
342 length = table->length; in acpi_tb_parse_root_table()
343 acpi_os_unmap_memory(table, sizeof(struct acpi_table_header)); in acpi_tb_parse_root_table()
352 table = acpi_os_map_memory(address, length); in acpi_tb_parse_root_table()
353 if (!table) { in acpi_tb_parse_root_table()
359 status = acpi_tb_verify_checksum(table, length); in acpi_tb_parse_root_table()
361 acpi_os_unmap_memory(table, length); in acpi_tb_parse_root_table()
[all …]
Drsdump.c82 acpi_rs_dump_descriptor(void *resource, struct acpi_rsdump_info *table);
208 acpi_rs_dump_descriptor(void *resource, struct acpi_rsdump_info *table) in acpi_rs_dump_descriptor() argument
217 count = table->offset; in acpi_rs_dump_descriptor()
221 target = ACPI_ADD_PTR(u8, resource, table->offset); in acpi_rs_dump_descriptor()
222 name = table->name; in acpi_rs_dump_descriptor()
224 switch (table->opcode) { in acpi_rs_dump_descriptor()
229 if (table->name) { in acpi_rs_dump_descriptor()
239 ACPI_CAST_PTR(char, table->pointer)); in acpi_rs_dump_descriptor()
251 if (table->pointer) { in acpi_rs_dump_descriptor()
253 table-> in acpi_rs_dump_descriptor()
[all …]
Dexconfig.c160 struct acpi_table_header *table; in acpi_ex_load_table_op() local
261 status = acpi_get_table_by_index(table_index, &table); in acpi_ex_load_table_op()
264 acpi_tb_print_table_header(0, table); in acpi_ex_load_table_op()
270 (void)acpi_gbl_table_handler(ACPI_TABLE_EVENT_LOAD, table, in acpi_ex_load_table_op()
347 struct acpi_table_header *table; in acpi_ex_load_op() local
421 table = ACPI_ALLOCATE(length); in acpi_ex_load_op()
422 if (!table) { in acpi_ex_load_op()
429 ACPI_CAST_PTR(u8, table)); in acpi_ex_load_op()
431 ACPI_FREE(table); in acpi_ex_load_op()
468 table = ACPI_ALLOCATE(length); in acpi_ex_load_op()
[all …]
Dtbprint.c186 acpi_status acpi_tb_verify_checksum(struct acpi_table_header *table, u32 length) in acpi_tb_verify_checksum() argument
195 if (ACPI_COMPARE_NAME(table->signature, ACPI_SIG_S3PT) || in acpi_tb_verify_checksum()
196 ACPI_COMPARE_NAME(table->signature, ACPI_SIG_FACS)) { in acpi_tb_verify_checksum()
202 checksum = acpi_tb_checksum(ACPI_CAST_PTR(u8, table), length); in acpi_tb_verify_checksum()
210 table->signature, table->checksum, in acpi_tb_verify_checksum()
211 (u8)(table->checksum - checksum))); in acpi_tb_verify_checksum()
Dtbinstal.c74 struct acpi_table_header *table; in acpi_tb_compare_tables() local
80 &table, &table_length, &table_flags); in acpi_tb_compare_tables()
90 ACPI_MEMCMP(table_desc->pointer, table, in acpi_tb_compare_tables()
95 acpi_tb_release_table(table, table_length, table_flags); in acpi_tb_compare_tables()
397 struct acpi_table_header *table; in acpi_tb_override_table() local
403 status = acpi_os_table_override(old_table_desc->pointer, &table); in acpi_tb_override_table()
404 if (ACPI_SUCCESS(status) && table) { in acpi_tb_override_table()
406 ACPI_PTR_TO_PHYSADDR(table), in acpi_tb_override_table()
Dnsparse.c76 struct acpi_table_header *table; in acpi_ns_one_complete_parse() local
101 status = acpi_get_table_by_index(table_index, &table); in acpi_ns_one_complete_parse()
110 if (table->length < sizeof(struct acpi_table_header)) { in acpi_ns_one_complete_parse()
113 aml_start = (u8 *) table + sizeof(struct acpi_table_header); in acpi_ns_one_complete_parse()
114 aml_length = table->length - sizeof(struct acpi_table_header); in acpi_ns_one_complete_parse()
Dtbdata.c69 u8 flags, struct acpi_table_header *table) in acpi_tb_init_table_descriptor() argument
78 table_desc->length = table->length; in acpi_tb_init_table_descriptor()
80 ACPI_MOVE_32_TO_32(table_desc->signature.ascii, table->signature); in acpi_tb_init_table_descriptor()
104 struct acpi_table_header *table = NULL; in acpi_tb_acquire_table() local
109 table = in acpi_tb_acquire_table()
116 table = ACPI_CAST_PTR(struct acpi_table_header, in acpi_tb_acquire_table()
128 if (!table) { in acpi_tb_acquire_table()
134 *table_ptr = table; in acpi_tb_acquire_table()
155 acpi_tb_release_table(struct acpi_table_header *table, in acpi_tb_release_table() argument
162 acpi_os_unmap_memory(table, table_length); in acpi_tb_release_table()
Dtbfadt.c313 struct acpi_table_header *table; in acpi_tb_parse_fadt() local
324 table = in acpi_tb_parse_fadt()
327 if (!table) { in acpi_tb_parse_fadt()
335 (void)acpi_tb_verify_checksum(table, length); in acpi_tb_parse_fadt()
339 acpi_tb_create_local_fadt(table, length); in acpi_tb_parse_fadt()
343 acpi_os_unmap_memory(table, length); in acpi_tb_parse_fadt()
384 void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length) in acpi_tb_create_local_fadt() argument
395 table->revision, length, in acpi_tb_create_local_fadt()
405 ACPI_MEMCPY(&acpi_gbl_FADT, table, in acpi_tb_create_local_fadt()
/linux-4.1.27/arch/s390/mm/
Dpgtable.c43 void crst_table_free(struct mm_struct *mm, unsigned long *table) in crst_table_free() argument
45 free_pages((unsigned long) table, ALLOC_ORDER); in crst_table_free()
61 unsigned long *table, *pgd; in crst_table_upgrade() local
68 table = crst_table_alloc(mm); in crst_table_upgrade()
69 if (!table) in crst_table_upgrade()
87 crst_table_init(table, entry); in crst_table_upgrade()
88 pgd_populate(mm, (pgd_t *) table, (pud_t *) pgd); in crst_table_upgrade()
89 mm->pgd = (pgd_t *) table; in crst_table_upgrade()
91 table = NULL; in crst_table_upgrade()
95 if (table) in crst_table_upgrade()
[all …]
Dfault.c130 unsigned long *table = __va(asce & PAGE_MASK); in dump_pagetable() local
135 table = table + ((address >> 53) & 0x7ff); in dump_pagetable()
136 if (bad_address(table)) in dump_pagetable()
138 pr_cont("R1:%016lx ", *table); in dump_pagetable()
139 if (*table & _REGION_ENTRY_INVALID) in dump_pagetable()
141 table = (unsigned long *)(*table & _REGION_ENTRY_ORIGIN); in dump_pagetable()
144 table = table + ((address >> 42) & 0x7ff); in dump_pagetable()
145 if (bad_address(table)) in dump_pagetable()
147 pr_cont("R2:%016lx ", *table); in dump_pagetable()
148 if (*table & _REGION_ENTRY_INVALID) in dump_pagetable()
[all …]
/linux-4.1.27/drivers/net/ethernet/sfc/
Dfarch.c1883 struct efx_farch_filter_table table[EFX_FARCH_FILTER_TABLE_COUNT]; member
1888 struct efx_farch_filter_table *table,
1937 struct efx_farch_filter_table *table; in efx_farch_filter_push_rx_config() local
1942 table = &state->table[EFX_FARCH_FILTER_TABLE_RX_IP]; in efx_farch_filter_push_rx_config()
1944 table->search_limit[EFX_FARCH_FILTER_TCP_FULL] + in efx_farch_filter_push_rx_config()
1947 table->search_limit[EFX_FARCH_FILTER_TCP_WILD] + in efx_farch_filter_push_rx_config()
1950 table->search_limit[EFX_FARCH_FILTER_UDP_FULL] + in efx_farch_filter_push_rx_config()
1953 table->search_limit[EFX_FARCH_FILTER_UDP_WILD] + in efx_farch_filter_push_rx_config()
1956 table = &state->table[EFX_FARCH_FILTER_TABLE_RX_MAC]; in efx_farch_filter_push_rx_config()
1957 if (table->size) { in efx_farch_filter_push_rx_config()
[all …]
Def10.c2212 efx_ef10_filter_entry_spec(const struct efx_ef10_filter_table *table, in efx_ef10_filter_entry_spec() argument
2215 return (struct efx_filter_spec *)(table->entry[filter_idx].spec & in efx_ef10_filter_entry_spec()
2220 efx_ef10_filter_entry_flags(const struct efx_ef10_filter_table *table, in efx_ef10_filter_entry_flags() argument
2223 return table->entry[filter_idx].spec & EFX_EF10_FILTER_FLAGS; in efx_ef10_filter_entry_flags()
2227 efx_ef10_filter_set_entry(struct efx_ef10_filter_table *table, in efx_ef10_filter_set_entry() argument
2232 table->entry[filter_idx].spec = (unsigned long)spec | flags; in efx_ef10_filter_set_entry()
2330 static int efx_ef10_filter_rx_match_pri(struct efx_ef10_filter_table *table, in efx_ef10_filter_rx_match_pri() argument
2336 match_pri < table->rx_match_count; in efx_ef10_filter_rx_match_pri()
2338 if (table->rx_match_flags[match_pri] == match_flags) in efx_ef10_filter_rx_match_pri()
2348 struct efx_ef10_filter_table *table = efx->filter_state; in efx_ef10_filter_insert() local
[all …]
Dnic.c374 const struct efx_nic_reg_table *table; in efx_nic_get_regs_len() local
384 for (table = efx_nic_reg_tables; in efx_nic_get_regs_len()
385 table < efx_nic_reg_tables + ARRAY_SIZE(efx_nic_reg_tables); in efx_nic_get_regs_len()
386 table++) in efx_nic_get_regs_len()
387 if (efx->type->revision >= table->min_revision && in efx_nic_get_regs_len()
388 efx->type->revision <= table->max_revision) in efx_nic_get_regs_len()
389 len += table->rows * min_t(size_t, table->step, 16); in efx_nic_get_regs_len()
397 const struct efx_nic_reg_table *table; in efx_nic_get_regs() local
409 for (table = efx_nic_reg_tables; in efx_nic_get_regs()
410 table < efx_nic_reg_tables + ARRAY_SIZE(efx_nic_reg_tables); in efx_nic_get_regs()
[all …]
/linux-4.1.27/security/apparmor/
Dmatch.c39 struct table_header *table = NULL; in unpack_table() local
62 table = kvzalloc(tsize); in unpack_table()
63 if (table) { in unpack_table()
64 *table = th; in unpack_table()
66 UNPACK_ARRAY(table->td_data, blob, th.td_lolen, in unpack_table()
69 UNPACK_ARRAY(table->td_data, blob, th.td_lolen, in unpack_table()
72 UNPACK_ARRAY(table->td_data, blob, th.td_lolen, in unpack_table()
82 if (is_vmalloc_addr(table)) in unpack_table()
84 return table; in unpack_table()
86 kvfree(table); in unpack_table()
[all …]
/linux-4.1.27/net/unix/
Dsysctl_net_unix.c31 struct ctl_table *table; in unix_sysctl_register() local
33 table = kmemdup(unix_table, sizeof(unix_table), GFP_KERNEL); in unix_sysctl_register()
34 if (table == NULL) in unix_sysctl_register()
39 table[0].procname = NULL; in unix_sysctl_register()
41 table[0].data = &net->unx.sysctl_max_dgram_qlen; in unix_sysctl_register()
42 net->unx.ctl = register_net_sysctl(net, "net/unix", table); in unix_sysctl_register()
49 kfree(table); in unix_sysctl_register()
56 struct ctl_table *table; in unix_sysctl_unregister() local
58 table = net->unx.ctl->ctl_table_arg; in unix_sysctl_unregister()
60 kfree(table); in unix_sysctl_unregister()
/linux-4.1.27/sound/core/
Dsgbuf.c48 if (!(sgbuf->table[i].addr & ~PAGE_MASK)) in snd_free_sgbuf_pages()
50 tmpb.area = sgbuf->table[i].buf; in snd_free_sgbuf_pages()
51 tmpb.addr = sgbuf->table[i].addr & PAGE_MASK; in snd_free_sgbuf_pages()
52 tmpb.bytes = (sgbuf->table[i].addr & ~PAGE_MASK) << PAGE_SHIFT; in snd_free_sgbuf_pages()
56 kfree(sgbuf->table); in snd_free_sgbuf_pages()
73 struct snd_sg_page *table; in snd_malloc_sgbuf_pages() local
84 table = kcalloc(sgbuf->tblsize, sizeof(*table), GFP_KERNEL); in snd_malloc_sgbuf_pages()
85 if (!table) in snd_malloc_sgbuf_pages()
87 sgbuf->table = table; in snd_malloc_sgbuf_pages()
112 table->buf = tmpb.area; in snd_malloc_sgbuf_pages()
[all …]
/linux-4.1.27/Documentation/vm/
Dsplit_page_table_lock1 Split page table lock
7 scalability, split page table lock was introduced.
9 With split page table lock we have separate per-table lock to serialize
10 access to the table. At the moment we use split lock for PTE and PMD
13 There are helpers to lock/unlock a table and other accessor functions:
15 maps pte and takes PTE table lock, returns pointer to the taken
18 unlocks and unmaps PTE table;
20 allocates PTE table if needed and take the lock, returns pointer
23 returns pointer to PTE table lock;
25 takes PMD table lock, returns pointer to taken lock;
[all …]
/linux-4.1.27/arch/arc/kernel/
Dunwind.c159 struct unwind_table *table; in find_table() local
161 for (table = &root_table; table; table = table->link) in find_table()
162 if ((pc >= table->core.pc in find_table()
163 && pc < table->core.pc + table->core.range) in find_table()
164 || (pc >= table->init.pc in find_table()
165 && pc < table->init.pc + table->init.range)) in find_table()
168 return table; in find_table()
174 static void init_unwind_table(struct unwind_table *table, const char *name, in init_unwind_table() argument
183 table->core.pc = (unsigned long)core_start; in init_unwind_table()
184 table->core.range = core_size; in init_unwind_table()
[all …]
/linux-4.1.27/arch/parisc/kernel/
Dunwind.c47 find_unwind_entry_in_table(const struct unwind_table *table, unsigned long addr) in find_unwind_entry_in_table() argument
53 hi = table->length - 1; in find_unwind_entry_in_table()
57 e = &table->table[mid]; in find_unwind_entry_in_table()
72 struct unwind_table *table; in find_unwind_entry() local
79 list_for_each_entry(table, &unwind_tables, list) { in find_unwind_entry()
80 if (addr >= table->start && in find_unwind_entry()
81 addr <= table->end) in find_unwind_entry()
82 e = find_unwind_entry_in_table(table, addr); in find_unwind_entry()
85 list_move(&table->list, &unwind_tables); in find_unwind_entry()
94 unwind_table_init(struct unwind_table *table, const char *name, in unwind_table_init() argument
[all …]
/linux-4.1.27/arch/s390/include/asm/
Dpgalloc.h64 unsigned long *table = crst_table_alloc(mm); in pud_alloc_one() local
65 if (table) in pud_alloc_one()
66 crst_table_init(table, _REGION3_ENTRY_EMPTY); in pud_alloc_one()
67 return (pud_t *) table; in pud_alloc_one()
73 unsigned long *table = crst_table_alloc(mm); in pmd_alloc_one() local
75 if (!table) in pmd_alloc_one()
77 crst_table_init(table, _SEGMENT_ENTRY_EMPTY); in pmd_alloc_one()
78 if (!pgtable_pmd_page_ctor(virt_to_page(table))) { in pmd_alloc_one()
79 crst_table_free(mm, table); in pmd_alloc_one()
82 return (pmd_t *) table; in pmd_alloc_one()
[all …]
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/
Dsrq.c43 struct mlx5_srq_table *table = &dev->priv.srq_table; in mlx5_srq_event() local
46 spin_lock(&table->lock); in mlx5_srq_event()
48 srq = radix_tree_lookup(&table->tree, srqn); in mlx5_srq_event()
52 spin_unlock(&table->lock); in mlx5_srq_event()
67 struct mlx5_srq_table *table = &dev->priv.srq_table; in mlx5_core_get_srq() local
70 spin_lock(&table->lock); in mlx5_core_get_srq()
72 srq = radix_tree_lookup(&table->tree, srqn); in mlx5_core_get_srq()
76 spin_unlock(&table->lock); in mlx5_core_get_srq()
86 struct mlx5_srq_table *table = &dev->priv.srq_table; in mlx5_core_create_srq() local
105 spin_lock_irq(&table->lock); in mlx5_core_create_srq()
[all …]
Dcq.c45 struct mlx5_cq_table *table = &dev->priv.cq_table; in mlx5_cq_completion() local
47 spin_lock(&table->lock); in mlx5_cq_completion()
48 cq = radix_tree_lookup(&table->tree, cqn); in mlx5_cq_completion()
51 spin_unlock(&table->lock); in mlx5_cq_completion()
68 struct mlx5_cq_table *table = &dev->priv.cq_table; in mlx5_cq_event() local
71 spin_lock(&table->lock); in mlx5_cq_event()
73 cq = radix_tree_lookup(&table->tree, cqn); in mlx5_cq_event()
77 spin_unlock(&table->lock); in mlx5_cq_event()
95 struct mlx5_cq_table *table = &dev->priv.cq_table; in mlx5_core_create_cq() local
115 spin_lock_irq(&table->lock); in mlx5_core_create_cq()
[all …]
Dmr.c41 struct mlx5_mr_table *table = &dev->priv.mr_table; in mlx5_init_mr_table() local
43 rwlock_init(&table->lock); in mlx5_init_mr_table()
44 INIT_RADIX_TREE(&table->tree, GFP_ATOMIC); in mlx5_init_mr_table()
56 struct mlx5_mr_table *table = &dev->priv.mr_table; in mlx5_core_create_mkey() local
94 write_lock_irq(&table->lock); in mlx5_core_create_mkey()
95 err = radix_tree_insert(&table->tree, mlx5_base_mkey(mr->key), mr); in mlx5_core_create_mkey()
96 write_unlock_irq(&table->lock); in mlx5_core_create_mkey()
109 struct mlx5_mr_table *table = &dev->priv.mr_table; in mlx5_core_destroy_mkey() local
119 write_lock_irqsave(&table->lock, flags); in mlx5_core_destroy_mkey()
120 deleted_mr = radix_tree_delete(&table->tree, mlx5_base_mkey(mr->key)); in mlx5_core_destroy_mkey()
[all …]
Dqp.c45 struct mlx5_qp_table *table = &dev->priv.qp_table; in mlx5_get_rsc() local
48 spin_lock(&table->lock); in mlx5_get_rsc()
50 common = radix_tree_lookup(&table->tree, rsn); in mlx5_get_rsc()
54 spin_unlock(&table->lock); in mlx5_get_rsc()
185 struct mlx5_qp_table *table = &dev->priv.qp_table; in mlx5_core_create_qp() local
210 spin_lock_irq(&table->lock); in mlx5_core_create_qp()
211 err = radix_tree_insert(&table->tree, qp->qpn, qp); in mlx5_core_create_qp()
212 spin_unlock_irq(&table->lock); in mlx5_core_create_qp()
246 struct mlx5_qp_table *table = &dev->priv.qp_table; in mlx5_core_destroy_qp() local
252 spin_lock_irqsave(&table->lock, flags); in mlx5_core_destroy_qp()
[all …]
Deq.c342 struct mlx5_eq_table *table = &dev->priv.eq_table; in mlx5_create_map_eq() local
387 err = request_irq(table->msix_arr[vecidx].vector, mlx5_msix_handler, 0, in mlx5_create_map_eq()
404 free_irq(table->msix_arr[vecidx].vector, eq); in mlx5_create_map_eq()
420 struct mlx5_eq_table *table = &dev->priv.eq_table; in mlx5_destroy_unmap_eq() local
424 free_irq(table->msix_arr[eq->irqn].vector, eq); in mlx5_destroy_unmap_eq()
429 synchronize_irq(table->msix_arr[eq->irqn].vector); in mlx5_destroy_unmap_eq()
455 struct mlx5_eq_table *table = &dev->priv.eq_table; in mlx5_start_eqs() local
462 err = mlx5_create_map_eq(dev, &table->cmd_eq, MLX5_EQ_VEC_CMD, in mlx5_start_eqs()
472 err = mlx5_create_map_eq(dev, &table->async_eq, MLX5_EQ_VEC_ASYNC, in mlx5_start_eqs()
480 err = mlx5_create_map_eq(dev, &table->pages_eq, in mlx5_start_eqs()
[all …]
Dmain.c211 struct mlx5_eq_table *table = &dev->priv.eq_table; in mlx5_enable_msix() local
221 table->msix_arr = kzalloc(nvec * sizeof(*table->msix_arr), GFP_KERNEL); in mlx5_enable_msix()
222 if (!table->msix_arr) in mlx5_enable_msix()
226 table->msix_arr[i].entry = i; in mlx5_enable_msix()
228 nvec = pci_enable_msix_range(dev->pdev, table->msix_arr, in mlx5_enable_msix()
233 table->num_comp_vectors = nvec - MLX5_EQ_VEC_COMP_BASE; in mlx5_enable_msix()
240 struct mlx5_eq_table *table = &dev->priv.eq_table; in mlx5_disable_msix() local
243 kfree(table->msix_arr); in mlx5_disable_msix()
512 struct mlx5_eq_table *table = &dev->priv.eq_table; in mlx5_vector2eqn() local
516 spin_lock(&table->lock); in mlx5_vector2eqn()
[all …]
/linux-4.1.27/lib/
Dcrc8.c29 void crc8_populate_msb(u8 table[CRC8_TABLE_SIZE], u8 polynomial) in crc8_populate_msb()
35 table[0] = 0; in crc8_populate_msb()
40 table[i+j] = table[j] ^ t; in crc8_populate_msb()
51 void crc8_populate_lsb(u8 table[CRC8_TABLE_SIZE], u8 polynomial) in crc8_populate_lsb()
56 table[0] = 0; in crc8_populate_lsb()
61 table[i+j] = table[j] ^ t; in crc8_populate_lsb()
74 u8 crc8(const u8 table[CRC8_TABLE_SIZE], u8 *pdata, size_t nbytes, u8 crc) in crc8()
78 crc = table[(crc ^ *pdata++) & 0xff]; in crc8()
Dscatterlist.c177 void __sg_free_table(struct sg_table *table, unsigned int max_ents, in __sg_free_table() argument
182 if (unlikely(!table->sgl)) in __sg_free_table()
185 sgl = table->sgl; in __sg_free_table()
186 while (table->orig_nents) { in __sg_free_table()
187 unsigned int alloc_size = table->orig_nents; in __sg_free_table()
205 table->orig_nents -= sg_size; in __sg_free_table()
213 table->sgl = NULL; in __sg_free_table()
222 void sg_free_table(struct sg_table *table) in sg_free_table() argument
224 __sg_free_table(table, SG_MAX_SINGLE_ALLOC, false, sg_kfree); in sg_free_table()
247 int __sg_alloc_table(struct sg_table *table, unsigned int nents, in __sg_alloc_table() argument
[all …]
/linux-4.1.27/drivers/staging/android/ion/
Dion_carveout_heap.c63 struct sg_table *table = buffer->priv_virt; in ion_carveout_heap_phys() local
64 struct page *page = sg_page(table->sgl); in ion_carveout_heap_phys()
77 struct sg_table *table; in ion_carveout_heap_allocate() local
84 table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_carveout_heap_allocate()
85 if (!table) in ion_carveout_heap_allocate()
87 ret = sg_alloc_table(table, 1, GFP_KERNEL); in ion_carveout_heap_allocate()
97 sg_set_page(table->sgl, pfn_to_page(PFN_DOWN(paddr)), size, 0); in ion_carveout_heap_allocate()
98 buffer->priv_virt = table; in ion_carveout_heap_allocate()
103 sg_free_table(table); in ion_carveout_heap_allocate()
105 kfree(table); in ion_carveout_heap_allocate()
[all …]
Dion_chunk_heap.c43 struct sg_table *table; in ion_chunk_heap_allocate() local
58 table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_chunk_heap_allocate()
59 if (!table) in ion_chunk_heap_allocate()
61 ret = sg_alloc_table(table, num_chunks, GFP_KERNEL); in ion_chunk_heap_allocate()
63 kfree(table); in ion_chunk_heap_allocate()
67 sg = table->sgl; in ion_chunk_heap_allocate()
78 buffer->priv_virt = table; in ion_chunk_heap_allocate()
82 sg = table->sgl; in ion_chunk_heap_allocate()
88 sg_free_table(table); in ion_chunk_heap_allocate()
89 kfree(table); in ion_chunk_heap_allocate()
[all …]
Dion_system_heap.c128 struct sg_table *table; in ion_system_heap_allocate() local
153 table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_system_heap_allocate()
154 if (!table) in ion_system_heap_allocate()
157 if (sg_alloc_table(table, i, GFP_KERNEL)) in ion_system_heap_allocate()
160 sg = table->sgl; in ion_system_heap_allocate()
167 buffer->priv_virt = table; in ion_system_heap_allocate()
171 kfree(table); in ion_system_heap_allocate()
183 struct sg_table *table = buffer->sg_table; in ion_system_heap_free() local
193 for_each_sg(table->sgl, sg, table->nents, i) in ion_system_heap_free()
195 sg_free_table(table); in ion_system_heap_free()
[all …]
Dion_cma_heap.c39 struct sg_table *table; member
72 info->table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_cma_allocate()
73 if (!info->table) in ion_cma_allocate()
77 (dev, info->table, info->cpu_addr, info->handle, len)) in ion_cma_allocate()
85 kfree(info->table); in ion_cma_allocate()
103 sg_free_table(info->table); in ion_cma_free()
104 kfree(info->table); in ion_cma_free()
130 return info->table; in ion_cma_heap_map_dma()
Dion_test.c49 struct sg_table *table; in ion_handle_test_dma() local
59 table = dma_buf_map_attachment(attach, dir); in ion_handle_test_dma()
60 if (IS_ERR(table)) in ion_handle_test_dma()
61 return PTR_ERR(table); in ion_handle_test_dma()
66 for_each_sg_page(table->sgl, &sg_iter, table->nents, offset_page) { in ion_handle_test_dma()
95 dma_buf_unmap_attachment(attach, table, dir); in ion_handle_test_dma()
Dion_heap.c35 struct sg_table *table = buffer->sg_table; in ion_heap_map_kernel() local
48 for_each_sg(table->sgl, sg, table->nents, i) { in ion_heap_map_kernel()
74 struct sg_table *table = buffer->sg_table; in ion_heap_map_user() local
81 for_each_sg(table->sgl, sg, table->nents, i) { in ion_heap_map_user()
143 struct sg_table *table = buffer->sg_table; in ion_heap_buffer_zero() local
151 return ion_heap_sglist_zero(table->sgl, table->nents, pgprot); in ion_heap_buffer_zero()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_hashtab.c46 ht->table = NULL; in drm_ht_create()
47 if (size <= PAGE_SIZE / sizeof(*ht->table)) in drm_ht_create()
48 ht->table = kcalloc(size, sizeof(*ht->table), GFP_KERNEL); in drm_ht_create()
50 ht->table = vzalloc(size*sizeof(*ht->table)); in drm_ht_create()
51 if (!ht->table) { in drm_ht_create()
68 h_list = &ht->table[hashed_key]; in drm_ht_verbose_list()
81 h_list = &ht->table[hashed_key]; in drm_ht_find_key()
99 h_list = &ht->table[hashed_key]; in drm_ht_find_key_rcu()
118 h_list = &ht->table[hashed_key]; in drm_ht_insert_item()
200 if (ht->table) { in drm_ht_remove()
[all …]
/linux-4.1.27/net/netfilter/
Dnf_conntrack_timestamp.c45 struct ctl_table *table; in nf_conntrack_tstamp_init_sysctl() local
47 table = kmemdup(tstamp_sysctl_table, sizeof(tstamp_sysctl_table), in nf_conntrack_tstamp_init_sysctl()
49 if (!table) in nf_conntrack_tstamp_init_sysctl()
52 table[0].data = &net->ct.sysctl_tstamp; in nf_conntrack_tstamp_init_sysctl()
56 table[0].procname = NULL; in nf_conntrack_tstamp_init_sysctl()
59 table); in nf_conntrack_tstamp_init_sysctl()
67 kfree(table); in nf_conntrack_tstamp_init_sysctl()
74 struct ctl_table *table; in nf_conntrack_tstamp_fini_sysctl() local
76 table = net->ct.tstamp_sysctl_header->ctl_table_arg; in nf_conntrack_tstamp_fini_sysctl()
78 kfree(table); in nf_conntrack_tstamp_fini_sysctl()
Dnf_conntrack_acct.c67 struct ctl_table *table; in nf_conntrack_acct_init_sysctl() local
69 table = kmemdup(acct_sysctl_table, sizeof(acct_sysctl_table), in nf_conntrack_acct_init_sysctl()
71 if (!table) in nf_conntrack_acct_init_sysctl()
74 table[0].data = &net->ct.sysctl_acct; in nf_conntrack_acct_init_sysctl()
78 table[0].procname = NULL; in nf_conntrack_acct_init_sysctl()
81 table); in nf_conntrack_acct_init_sysctl()
89 kfree(table); in nf_conntrack_acct_init_sysctl()
96 struct ctl_table *table; in nf_conntrack_acct_fini_sysctl() local
98 table = net->ct.acct_sysctl_header->ctl_table_arg; in nf_conntrack_acct_fini_sysctl()
100 kfree(table); in nf_conntrack_acct_fini_sysctl()
Dnf_tables_api.c95 struct nft_table *table, in nft_ctx_init() argument
101 ctx->table = table; in nft_ctx_init()
130 static void nf_tables_unregister_hooks(const struct nft_table *table, in nf_tables_unregister_hooks() argument
134 if (!(table->flags & NFT_TABLE_F_DORMANT) && in nf_tables_unregister_hooks()
151 ctx->table->flags |= NFT_TABLE_INACTIVE; in nft_trans_table_add()
165 list_del_rcu(&ctx->table->list); in nft_deltable()
192 ctx->table->use--; in nft_delchain()
318 ctx->table->use--; in nft_delset()
330 struct nft_table *table; in nft_table_lookup() local
332 list_for_each_entry(table, &afi->tables, list) { in nft_table_lookup()
[all …]
Dx_tables.c384 if (par->match->table != NULL && in xt_check_match()
385 strcmp(par->match->table, par->table) != 0) { in xt_check_match()
388 par->match->table, par->table); in xt_check_match()
559 if (par->target->table != NULL && in xt_check_target()
560 strcmp(par->target->table, par->table) != 0) { in xt_check_target()
563 par->target->table, par->table); in xt_check_target()
727 void xt_table_unlock(struct xt_table *table) in xt_table_unlock() argument
729 mutex_unlock(&xt[table->af].mutex); in xt_table_unlock()
789 xt_replace_table(struct xt_table *table, in xt_replace_table() argument
805 private = table->private; in xt_replace_table()
[all …]
Dnf_conntrack_ecache.c267 struct ctl_table *table; in nf_conntrack_event_init_sysctl() local
269 table = kmemdup(event_sysctl_table, sizeof(event_sysctl_table), in nf_conntrack_event_init_sysctl()
271 if (!table) in nf_conntrack_event_init_sysctl()
274 table[0].data = &net->ct.sysctl_events; in nf_conntrack_event_init_sysctl()
278 table[0].procname = NULL; in nf_conntrack_event_init_sysctl()
281 register_net_sysctl(net, "net/netfilter", table); in nf_conntrack_event_init_sysctl()
289 kfree(table); in nf_conntrack_event_init_sysctl()
296 struct ctl_table *table; in nf_conntrack_event_fini_sysctl() local
298 table = net->ct.event_sysctl_header->ctl_table_arg; in nf_conntrack_event_fini_sysctl()
300 kfree(table); in nf_conntrack_event_fini_sysctl()
Dnfnetlink.c41 } table[NFNL_SUBSYS_COUNT]; variable
56 mutex_lock(&table[subsys_id].mutex); in nfnl_lock()
62 mutex_unlock(&table[subsys_id].mutex); in nfnl_unlock()
69 return lockdep_is_held(&table[subsys_id].mutex); in lockdep_nfnl_is_held()
77 if (table[n->subsys_id].subsys) { in nfnetlink_subsys_register()
81 rcu_assign_pointer(table[n->subsys_id].subsys, n); in nfnetlink_subsys_register()
91 table[n->subsys_id].subsys = NULL; in nfnetlink_subsys_unregister()
105 return rcu_dereference(table[subsys_id].subsys); in nfnetlink_get_subsys()
210 if (rcu_dereference_protected(table[subsys_id].subsys, in nfnetlink_rcv_msg()
211 lockdep_is_held(&table[subsys_id].mutex)) != ss || in nfnetlink_rcv_msg()
[all …]
Dnf_log.c396 static int nf_log_proc_dostring(struct ctl_table *table, int write, in nf_log_proc_dostring() argument
403 int tindex = (unsigned long)table->extra1; in nf_log_proc_dostring()
428 table->data = "NONE"; in nf_log_proc_dostring()
430 table->data = logger->name; in nf_log_proc_dostring()
431 r = proc_dostring(table, write, buffer, lenp, ppos); in nf_log_proc_dostring()
441 struct ctl_table *table; in netfilter_log_sysctl_init() local
443 table = nf_log_sysctl_table; in netfilter_log_sysctl_init()
445 table = kmemdup(nf_log_sysctl_table, in netfilter_log_sysctl_init()
448 if (!table) in netfilter_log_sysctl_init()
468 table); in netfilter_log_sysctl_init()
[all …]
Dnf_conntrack_standalone.c471 struct ctl_table *table; in nf_conntrack_standalone_init_sysctl() local
473 table = kmemdup(nf_ct_sysctl_table, sizeof(nf_ct_sysctl_table), in nf_conntrack_standalone_init_sysctl()
475 if (!table) in nf_conntrack_standalone_init_sysctl()
478 table[1].data = &net->ct.count; in nf_conntrack_standalone_init_sysctl()
479 table[2].data = &net->ct.htable_size; in nf_conntrack_standalone_init_sysctl()
480 table[3].data = &net->ct.sysctl_checksum; in nf_conntrack_standalone_init_sysctl()
481 table[4].data = &net->ct.sysctl_log_invalid; in nf_conntrack_standalone_init_sysctl()
485 table[0].procname = NULL; in nf_conntrack_standalone_init_sysctl()
487 net->ct.sysctl_header = register_net_sysctl(net, "net/netfilter", table); in nf_conntrack_standalone_init_sysctl()
494 kfree(table); in nf_conntrack_standalone_init_sysctl()
[all …]
/linux-4.1.27/arch/powerpc/include/asm/
Dpgalloc-32.h51 static inline void pgtable_free(void *table, unsigned index_size) in pgtable_free() argument
54 free_page((unsigned long)table); in pgtable_free()
61 void *table, int shift) in pgtable_free_tlb() argument
63 unsigned long pgf = (unsigned long)table; in pgtable_free_tlb()
71 void *table = (void *)((unsigned long)_table & ~MAX_PGTABLE_INDEX_SIZE); in __tlb_remove_table() local
74 pgtable_free(table, shift); in __tlb_remove_table()
78 void *table, int shift) in pgtable_free_tlb() argument
80 pgtable_free(table, shift); in pgtable_free_tlb()
84 static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t table, in __pte_free_tlb() argument
88 pgtable_page_dtor(table); in __pte_free_tlb()
[all …]
Dpgalloc-64.h113 static inline void pgtable_free(void *table, unsigned index_size) in pgtable_free() argument
116 free_page((unsigned long)table); in pgtable_free()
119 kmem_cache_free(PGT_CACHE(index_size), table); in pgtable_free()
125 void *table, int shift) in pgtable_free_tlb() argument
127 unsigned long pgf = (unsigned long)table; in pgtable_free_tlb()
135 void *table = (void *)((unsigned long)_table & ~MAX_PGTABLE_INDEX_SIZE); in __tlb_remove_table() local
138 pgtable_free(table, shift); in __tlb_remove_table()
142 void *table, int shift) in pgtable_free_tlb() argument
144 pgtable_free(table, shift); in pgtable_free_tlb()
148 static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t table, in __pte_free_tlb() argument
[all …]
/linux-4.1.27/scripts/
Dkallsyms.c58 static struct sym_entry *table; variable
273 table = realloc(table, sizeof(*table) * table_size); in read_map()
274 if (!table) { in read_map()
279 if (read_symbol(in, &table[table_cnt]) == 0) { in read_map()
280 table[table_cnt].start_pos = table_cnt; in read_map()
358 if (!symbol_absolute(&table[i])) { in write_src()
359 if (_text <= table[i].addr) in write_src()
361 table[i].addr - _text); in write_src()
364 _text - table[i].addr); in write_src()
366 printf("\tPTR\t%#llx\n", table[i].addr); in write_src()
[all …]
/linux-4.1.27/ipc/
Dipc_sysctl.c21 static void *get_ipc(struct ctl_table *table) in get_ipc() argument
23 char *which = table->data; in get_ipc()
30 static int proc_ipc_dointvec(struct ctl_table *table, int write, in proc_ipc_dointvec() argument
35 memcpy(&ipc_table, table, sizeof(ipc_table)); in proc_ipc_dointvec()
36 ipc_table.data = get_ipc(table); in proc_ipc_dointvec()
41 static int proc_ipc_dointvec_minmax(struct ctl_table *table, int write, in proc_ipc_dointvec_minmax() argument
46 memcpy(&ipc_table, table, sizeof(ipc_table)); in proc_ipc_dointvec_minmax()
47 ipc_table.data = get_ipc(table); in proc_ipc_dointvec_minmax()
52 static int proc_ipc_dointvec_minmax_orphans(struct ctl_table *table, int write, in proc_ipc_dointvec_minmax_orphans() argument
56 int err = proc_ipc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_ipc_dointvec_minmax_orphans()
[all …]
Dmq_sysctl.c17 static void *get_mq(struct ctl_table *table) in get_mq() argument
19 char *which = table->data; in get_mq()
25 static int proc_mq_dointvec(struct ctl_table *table, int write, in proc_mq_dointvec() argument
29 memcpy(&mq_table, table, sizeof(mq_table)); in proc_mq_dointvec()
30 mq_table.data = get_mq(table); in proc_mq_dointvec()
35 static int proc_mq_dointvec_minmax(struct ctl_table *table, int write, in proc_mq_dointvec_minmax() argument
39 memcpy(&mq_table, table, sizeof(mq_table)); in proc_mq_dointvec_minmax()
40 mq_table.data = get_mq(table); in proc_mq_dointvec_minmax()
/linux-4.1.27/include/linux/
Dsysctl.h54 extern int proc_doulongvec_ms_jiffies_minmax(struct ctl_table *table, int,
159 int (*permissions)(struct ctl_table_header *head, struct ctl_table *table);
179 const char *path, struct ctl_table *table);
182 const struct ctl_path *path, struct ctl_table *table);
183 struct ctl_table_header *register_sysctl(const char *path, struct ctl_table *table);
184 struct ctl_table_header *register_sysctl_table(struct ctl_table * table);
186 struct ctl_table *table);
188 void unregister_sysctl_table(struct ctl_table_header * table);
195 static inline struct ctl_table_header *register_sysctl_table(struct ctl_table * table) in register_sysctl_table() argument
201 const struct ctl_path *path, struct ctl_table *table) in register_sysctl_paths() argument
[all …]
Dcpufreq.h509 struct cpufreq_frequency_table **table);
511 struct cpufreq_frequency_table **table);
515 **table) in dev_pm_opp_init_cpufreq_table()
522 **table) in dev_pm_opp_free_cpufreq_table()
543 #define cpufreq_for_each_entry(pos, table) \ argument
544 for (pos = table; pos->frequency != CPUFREQ_TABLE_END; pos++)
553 #define cpufreq_for_each_valid_entry(pos, table) \ argument
554 for (pos = table; cpufreq_next_valid(&pos); pos++)
557 struct cpufreq_frequency_table *table);
560 struct cpufreq_frequency_table *table);
[all …]
Dvt_kern.h65 int con_set_trans_old(unsigned char __user * table);
66 int con_get_trans_old(unsigned char __user * table);
67 int con_set_trans_new(unsigned short __user * table);
68 int con_get_trans_new(unsigned short __user * table);
79 static inline int con_set_trans_old(unsigned char __user *table) in con_set_trans_old() argument
83 static inline int con_get_trans_old(unsigned char __user *table) in con_get_trans_old() argument
87 static inline int con_set_trans_new(unsigned short __user *table) in con_set_trans_new() argument
91 static inline int con_get_trans_new(unsigned short __user *table) in con_get_trans_new() argument
Dcrc8.h55 void crc8_populate_lsb(u8 table[CRC8_TABLE_SIZE], u8 polynomial);
73 void crc8_populate_msb(u8 table[CRC8_TABLE_SIZE], u8 polynomial);
99 u8 crc8(const u8 table[CRC8_TABLE_SIZE], u8 *pdata, size_t nbytes, u8 crc);
Dwriteback.h138 extern int dirty_background_ratio_handler(struct ctl_table *table, int write,
141 extern int dirty_background_bytes_handler(struct ctl_table *table, int write,
144 extern int dirty_ratio_handler(struct ctl_table *table, int write,
147 extern int dirty_bytes_handler(struct ctl_table *table, int write,
150 int dirtytime_interval_handler(struct ctl_table *table, int write,
/linux-4.1.27/kernel/
Dutsname_sysctl.c20 static void *get_uts(struct ctl_table *table, int write) in get_uts() argument
22 char *which = table->data; in get_uts()
35 static void put_uts(struct ctl_table *table, int write, void *which) in put_uts() argument
47 static int proc_do_uts_string(struct ctl_table *table, int write, in proc_do_uts_string() argument
52 memcpy(&uts_table, table, sizeof(uts_table)); in proc_do_uts_string()
53 uts_table.data = get_uts(table, write); in proc_do_uts_string()
55 put_uts(table, write, uts_table.data); in proc_do_uts_string()
58 proc_sys_poll_notify(table->poll); in proc_do_uts_string()
126 struct ctl_table *table = &uts_kern_table[proc]; in uts_proc_notify() local
128 proc_sys_poll_notify(table->poll); in uts_proc_notify()
Dsysctl.c177 static int proc_do_cad_pid(struct ctl_table *table, int write,
179 static int proc_taint(struct ctl_table *table, int write,
184 static int proc_dointvec_minmax_sysadmin(struct ctl_table *table, int write,
188 static int proc_dointvec_minmax_coredump(struct ctl_table *table, int write,
191 static int proc_dostring_coredump(struct ctl_table *table, int write,
199 static int sysrq_sysctl_handler(struct ctl_table *table, int write, in sysrq_sysctl_handler() argument
205 error = proc_dointvec(table, write, buffer, lenp, ppos); in sysrq_sysctl_handler()
1813 static void warn_sysctl_write(struct ctl_table *table) in warn_sysctl_write() argument
1818 current->comm, table->procname); in warn_sysctl_write()
1838 int proc_dostring(struct ctl_table *table, int write, in proc_dostring() argument
[all …]
Dwatchdog.c771 static int proc_watchdog_common(int which, struct ctl_table *table, int write, in proc_watchdog_common() argument
775 int *watchdog_param = (int *)table->data; in proc_watchdog_common()
786 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common()
788 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common()
830 int proc_watchdog(struct ctl_table *table, int write, in proc_watchdog() argument
834 table, write, buffer, lenp, ppos); in proc_watchdog()
840 int proc_nmi_watchdog(struct ctl_table *table, int write, in proc_nmi_watchdog() argument
844 table, write, buffer, lenp, ppos); in proc_nmi_watchdog()
850 int proc_soft_watchdog(struct ctl_table *table, int write, in proc_soft_watchdog() argument
854 table, write, buffer, lenp, ppos); in proc_soft_watchdog()
[all …]
/linux-4.1.27/net/openvswitch/
Dflow_table.c114 int ovs_flow_tbl_count(const struct flow_table *table) in ovs_flow_tbl_count() argument
116 return table->count; in ovs_flow_tbl_count()
207 int ovs_flow_tbl_init(struct flow_table *table) in ovs_flow_tbl_init() argument
220 rcu_assign_pointer(table->ti, ti); in ovs_flow_tbl_init()
221 rcu_assign_pointer(table->ufid_ti, ufid_ti); in ovs_flow_tbl_init()
222 INIT_LIST_HEAD(&table->mask_list); in ovs_flow_tbl_init()
223 table->last_rehash = jiffies; in ovs_flow_tbl_init()
224 table->count = 0; in ovs_flow_tbl_init()
225 table->ufid_count = 0; in ovs_flow_tbl_init()
281 void ovs_flow_tbl_destroy(struct flow_table *table) in ovs_flow_tbl_destroy() argument
[all …]
Dflow_table.h66 int ovs_flow_tbl_count(const struct flow_table *table);
67 void ovs_flow_tbl_destroy(struct flow_table *table);
70 int ovs_flow_tbl_insert(struct flow_table *table, struct sw_flow *flow,
72 void ovs_flow_tbl_remove(struct flow_table *table, struct sw_flow *flow);
73 int ovs_flow_tbl_num_masks(const struct flow_table *table);
74 struct sw_flow *ovs_flow_tbl_dump_next(struct table_instance *table,
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
Did_table.c51 obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last); in c4iw_id_alloc()
53 obj = find_first_zero_bit(alloc->table, alloc->max); in c4iw_id_alloc()
62 set_bit(obj, alloc->table); in c4iw_id_alloc()
79 clear_bit(obj, alloc->table); in c4iw_id_free()
96 alloc->table = kmalloc(BITS_TO_LONGS(num) * sizeof(long), in c4iw_id_table_alloc()
98 if (!alloc->table) in c4iw_id_table_alloc()
101 bitmap_zero(alloc->table, num); in c4iw_id_table_alloc()
104 set_bit(i, alloc->table); in c4iw_id_table_alloc()
111 kfree(alloc->table); in c4iw_id_table_free()
/linux-4.1.27/drivers/rapidio/switches/
Dtsi568.c38 u16 table, u16 route_destid, u8 route_port) in tsi568_route_add_entry() argument
40 if (table == RIO_GLOBAL_TABLE) { in tsi568_route_add_entry()
47 SPP_ROUTE_CFG_DESTID(table), in tsi568_route_add_entry()
50 SPP_ROUTE_CFG_PORT(table), route_port); in tsi568_route_add_entry()
60 u16 table, u16 route_destid, u8 *route_port) in tsi568_route_get_entry() argument
65 if (table == RIO_GLOBAL_TABLE) { in tsi568_route_get_entry()
72 SPP_ROUTE_CFG_DESTID(table), in tsi568_route_get_entry()
75 SPP_ROUTE_CFG_PORT(table), &result); in tsi568_route_get_entry()
87 u16 table) in tsi568_route_clr_table() argument
94 if (table == RIO_GLOBAL_TABLE) { in tsi568_route_clr_table()
[all …]
Didt_gen2.c92 u16 table, u16 route_destid, u8 route_port) in idtg2_route_add_entry() argument
97 if (table == RIO_GLOBAL_TABLE) in idtg2_route_add_entry()
98 table = 0; in idtg2_route_add_entry()
100 table++; in idtg2_route_add_entry()
106 LOCAL_RTE_CONF_DESTID_SEL, table); in idtg2_route_add_entry()
125 u16 table, u16 route_destid, u8 *route_port) in idtg2_route_get_entry() argument
132 if (table == RIO_GLOBAL_TABLE) in idtg2_route_get_entry()
133 table = 0; in idtg2_route_get_entry()
135 table++; in idtg2_route_get_entry()
138 LOCAL_RTE_CONF_DESTID_SEL, table); in idtg2_route_get_entry()
[all …]
Dtsi57x.c47 u16 table, u16 route_destid, u8 route_port) in tsi57x_route_add_entry() argument
49 if (table == RIO_GLOBAL_TABLE) { in tsi57x_route_add_entry()
56 SPP_ROUTE_CFG_DESTID(table), route_destid); in tsi57x_route_add_entry()
58 SPP_ROUTE_CFG_PORT(table), route_port); in tsi57x_route_add_entry()
68 u16 table, u16 route_destid, u8 *route_port) in tsi57x_route_get_entry() argument
73 if (table == RIO_GLOBAL_TABLE) { in tsi57x_route_get_entry()
78 table = (result & RIO_SWP_INFO_PORT_NUM_MASK); in tsi57x_route_get_entry()
82 SPP_ROUTE_CFG_DESTID(table), route_destid); in tsi57x_route_get_entry()
84 SPP_ROUTE_CFG_PORT(table), &result); in tsi57x_route_get_entry()
95 u16 table) in tsi57x_route_clr_table() argument
[all …]
Didtcps.c26 u16 table, u16 route_destid, u8 route_port) in idtcps_route_add_entry() argument
33 if (table == RIO_GLOBAL_TABLE) { in idtcps_route_add_entry()
50 u16 table, u16 route_destid, u8 *route_port) in idtcps_route_get_entry() argument
54 if (table == RIO_GLOBAL_TABLE) { in idtcps_route_get_entry()
73 u16 table) in idtcps_route_clr_table() argument
77 if (table == RIO_GLOBAL_TABLE) { in idtcps_route_clr_table()
/linux-4.1.27/drivers/net/wireless/b43/
Dtables.c379 u16 b43_ofdmtab_read16(struct b43_wldev *dev, u16 table, u16 offset) in b43_ofdmtab_read16() argument
384 addr = table + offset; in b43_ofdmtab_read16()
399 void b43_ofdmtab_write16(struct b43_wldev *dev, u16 table, in b43_ofdmtab_write16() argument
405 addr = table + offset; in b43_ofdmtab_write16()
416 u32 b43_ofdmtab_read32(struct b43_wldev *dev, u16 table, u16 offset) in b43_ofdmtab_read32() argument
422 addr = table + offset; in b43_ofdmtab_read32()
437 void b43_ofdmtab_write32(struct b43_wldev *dev, u16 table, in b43_ofdmtab_write32() argument
443 addr = table + offset; in b43_ofdmtab_write32()
456 u16 b43_gtab_read(struct b43_wldev *dev, u16 table, u16 offset) in b43_gtab_read() argument
458 b43_phy_write(dev, B43_PHY_GTABCTL, table + offset); in b43_gtab_read()
[all …]
Dtables_lpphy.h9 #define B43_LPTAB8(table, offset) (((table) << 10) | (offset) | B43_LPTAB_8BIT) argument
10 #define B43_LPTAB16(table, offset) (((table) << 10) | (offset) | B43_LPTAB_16BIT) argument
11 #define B43_LPTAB32(table, offset) (((table) << 10) | (offset) | B43_LPTAB_32BIT) argument
38 struct lpphy_tx_gain_table_entry *table);
Dtables_phy_lcn.h9 #define B43_LCNTAB8(table, offset) (((table) << 10) | (offset) | B43_LCNTAB_8BIT) argument
10 #define B43_LCNTAB16(table, offset) (((table) << 10) | (offset) | B43_LCNTAB_16BIT) argument
11 #define B43_LCNTAB32(table, offset) (((table) << 10) | (offset) | B43_LCNTAB_32BIT) argument
Dtables_phy_ht.h9 #define B43_HTTAB8(table, offset) (((table) << 10) | (offset) | B43_HTTAB_8BIT) argument
10 #define B43_HTTAB16(table, offset) (((table) << 10) | (offset) | B43_HTTAB_16BIT) argument
11 #define B43_HTTAB32(table, offset) (((table) << 10) | (offset) | B43_HTTAB_32BIT) argument
Dradio_2057.c540 u16 *table = NULL; in r2057_upload_inittabs() local
545 table = r2057_rev4_init[0]; in r2057_upload_inittabs()
550 table = r2057_rev5_init[0]; in r2057_upload_inittabs()
553 table = r2057_rev7_init[0]; in r2057_upload_inittabs()
559 table = r2057_rev5a_init[0]; in r2057_upload_inittabs()
565 table = r2057_rev9_init[0]; in r2057_upload_inittabs()
571 table = r2057_rev14_init[0]; in r2057_upload_inittabs()
577 B43_WARN_ON(!table); in r2057_upload_inittabs()
579 if (table) { in r2057_upload_inittabs()
580 for (i = 0; i < size; i++, table += 2) in r2057_upload_inittabs()
[all …]
Dtables_nphy.h77 #define B43_NTAB8(table, offset) (((table) << 10) | (offset) | B43_NTAB_8BIT) argument
78 #define B43_NTAB16(table, offset) (((table) << 10) | (offset) | B43_NTAB_16BIT) argument
79 #define B43_NTAB32(table, offset) (((table) << 10) | (offset) | B43_NTAB_32BIT) argument
Dradio_2059.c334 u16 *table = NULL; in r2059_upload_inittabs() local
339 table = r2059_phy_rev1_init[0]; in r2059_upload_inittabs()
347 for (i = 0; i < size; i++, table += 2) in r2059_upload_inittabs()
348 b43_radio_write(dev, R2059_ALL | table[0], table[1]); in r2059_upload_inittabs()
/linux-4.1.27/arch/unicore32/mm/
Dproc-macros.S99 mov \off, \va >> #22 @ off <- index of 1st page table
100 adr \tbl, 910f @ tbl <- table of 1st page table
101 900: @ ---- handle 1, 2 page table
102 add \pa, \pa, #PAGE_OFFSET @ pa <- virt addr of page table
107 add \tbl, \tbl, \off << #3 @ cmove table pointer
110 930: @ ---- handle 2nd page table
116 adr \tbl, 920f @ tbl <- table of 2nd pt
118 910: @ 1st level page table
119 .word 0xfffff000, 930b @ second level page table
120 .word 0xfffffc00, 930b @ second level large page table
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/linux/
Dlinux-sysctl.c83 static int proc_set_timeout(struct ctl_table *table, int write, in proc_set_timeout() argument
88 rc = proc_dointvec(table, write, buffer, lenp, ppos); in proc_set_timeout()
94 static int proc_memory_alloc(struct ctl_table *table, int write, in proc_memory_alloc() argument
118 static int proc_pages_alloc(struct ctl_table *table, int write, in proc_pages_alloc() argument
142 static int proc_mem_max(struct ctl_table *table, int write, void __user *buffer, in proc_mem_max() argument
166 static int proc_pages_max(struct ctl_table *table, int write, in proc_pages_max() argument
190 static int proc_max_dirty_pages_in_mb(struct ctl_table *table, int write, in proc_max_dirty_pages_in_mb() argument
195 if (!table->data || !table->maxlen || !*lenp || (*ppos && !write)) { in proc_max_dirty_pages_in_mb()
201 (unsigned int *)table->data, in proc_max_dirty_pages_in_mb()
218 *(unsigned int *)table->data, in proc_max_dirty_pages_in_mb()
[all …]
/linux-4.1.27/arch/arm64/kernel/
Dacpi.c224 struct acpi_table_header *table; in acpi_fadt_sanity_check() local
234 status = acpi_get_table_with_size(ACPI_SIG_FADT, 0, &table, &tbl_size); in acpi_fadt_sanity_check()
242 fadt = (struct acpi_table_fadt *)table; in acpi_fadt_sanity_check()
250 if (table->revision < 5 || in acpi_fadt_sanity_check()
251 (table->revision == 5 && fadt->minor_revision < 1)) { in acpi_fadt_sanity_check()
253 table->revision, fadt->minor_revision); in acpi_fadt_sanity_check()
268 early_acpi_os_unmap_memory(table, tbl_size); in acpi_fadt_sanity_check()
324 struct acpi_table_header *table; in acpi_gic_init() local
332 status = acpi_get_table_with_size(ACPI_SIG_MADT, 0, &table, &tbl_size); in acpi_gic_init()
340 err = gic_v2_acpi_init(table); in acpi_gic_init()
[all …]
/linux-4.1.27/drivers/infiniband/hw/amso1100/
Dc2_pd.c49 obj = find_next_zero_bit(c2dev->pd_table.table, c2dev->pd_table.max, in c2_pd_alloc()
52 obj = find_first_zero_bit(c2dev->pd_table.table, in c2_pd_alloc()
56 __set_bit(obj, c2dev->pd_table.table); in c2_pd_alloc()
69 __clear_bit(pd->pd_id, c2dev->pd_table.table); in c2_pd_free()
79 c2dev->pd_table.table = kmalloc(BITS_TO_LONGS(c2dev->props.max_pd) * in c2_init_pd_table()
81 if (!c2dev->pd_table.table) in c2_init_pd_table()
83 bitmap_zero(c2dev->pd_table.table, c2dev->props.max_pd); in c2_init_pd_table()
89 kfree(c2dev->pd_table.table); in c2_cleanup_pd_table()
/linux-4.1.27/drivers/regulator/
Dtps65023-regulator.c131 const unsigned int *table; member
244 tps->desc[i].volt_table = info->table; in tps_65023_probe()
303 .table = DCDC_FIXED_3300000_VSEL_table,
308 .table = DCDC_FIXED_1800000_VSEL_table,
313 .table = VCORE_VSEL_table,
318 .table = TPS65020_LDO_VSEL_table,
323 .table = TPS65020_LDO_VSEL_table,
331 .table = DCDC_FIXED_3300000_VSEL_table,
336 .table = DCDC_FIXED_1800000_VSEL_table,
341 .table = VCORE_VSEL_table,
[all …]
/linux-4.1.27/arch/mips/lasat/
Dsysctl.c42 int proc_dolasatstring(struct ctl_table *table, int write, in proc_dolasatstring() argument
47 r = proc_dostring(table, write, buffer, lenp, ppos); in proc_dolasatstring()
60 int proc_dolasatrtc(struct ctl_table *table, int write, in proc_dolasatrtc() argument
73 r = proc_dointvec(table, write, buffer, lenp, ppos); in proc_dolasatrtc()
85 int proc_lasat_ip(struct ctl_table *table, int write, in proc_lasat_ip() argument
93 if (!table->data || !table->maxlen || !*lenp || in proc_lasat_ip()
117 *(unsigned int *)(table->data) = ip; in proc_lasat_ip()
120 ip = *(unsigned int *)(table->data); in proc_lasat_ip()
145 int proc_lasat_prid(struct ctl_table *table, int write, in proc_lasat_prid() argument
150 r = proc_dointvec(table, write, buffer, lenp, ppos); in proc_lasat_prid()
/linux-4.1.27/drivers/watchdog/
Dmax63xx_wdt.c92 max63xx_select_timeout(struct max63xx_timeout *table, int value) in max63xx_select_timeout() argument
94 while (table->twd) { in max63xx_select_timeout()
95 if (value <= table->twd) { in max63xx_select_timeout()
96 if (nodelay && table->tdelay == 0) in max63xx_select_timeout()
97 return table; in max63xx_select_timeout()
100 return table; in max63xx_select_timeout()
103 table++; in max63xx_select_timeout()
179 struct max63xx_timeout *table; in max63xx_wdt_probe() local
181 table = (struct max63xx_timeout *)pdev->id_entry->driver_data; in max63xx_wdt_probe()
187 current_timeout = max63xx_select_timeout(table, heartbeat); in max63xx_wdt_probe()
/linux-4.1.27/drivers/remoteproc/
Dste_modem_rproc.c53 struct ste_toc_entry table[SPROC_MAX_TOC_ENTRIES]; member
75 toc->table[i].start != 0xffffffff; i++) { in sproc_find_rsc_entry()
76 if (!strncmp(toc->table[i].name, SPROC_RESOURCE_NAME, in sproc_find_rsc_entry()
77 sizeof(toc->table[i].name))) in sproc_find_rsc_entry()
78 return &toc->table[i]; in sproc_find_rsc_entry()
90 struct resource_table *table; in sproc_find_rsc_table() local
102 table = (void *)(fw->data + entry->start); in sproc_find_rsc_table()
115 if (table->ver != 1) { in sproc_find_rsc_table()
116 sproc_err(sproc, "unsupported fw ver: %d\n", table->ver); in sproc_find_rsc_table()
121 if (table->reserved[0] || table->reserved[1]) { in sproc_find_rsc_table()
[all …]
Dremoteproc_elf_loader.c217 struct resource_table *table = NULL; local
231 table = (struct resource_table *)(elf_data + offset);
246 if (table->ver != 1) {
247 dev_err(dev, "unsupported fw ver: %d\n", table->ver);
252 if (table->reserved[0] || table->reserved[1]) {
258 if (table->num * sizeof(table->offset[0]) +
292 struct resource_table *table = NULL; local
301 table = (struct resource_table *)(elf_data + shdr->sh_offset);
304 return table;
/linux-4.1.27/fs/squashfs/
Did.c72 __le64 *table; in squashfs_read_id_index_table() local
90 table = squashfs_read_table(sb, id_table_start, length); in squashfs_read_id_index_table()
96 if (!IS_ERR(table) && le64_to_cpu(table[0]) >= id_table_start) { in squashfs_read_id_index_table()
97 kfree(table); in squashfs_read_id_index_table()
101 return table; in squashfs_read_id_index_table()
Dfragment.c77 __le64 *table; in squashfs_read_fragment_index_table() local
87 table = squashfs_read_table(sb, fragment_table_start, length); in squashfs_read_fragment_index_table()
93 if (!IS_ERR(table) && le64_to_cpu(table[0]) >= fragment_table_start) { in squashfs_read_fragment_index_table()
94 kfree(table); in squashfs_read_fragment_index_table()
98 return table; in squashfs_read_fragment_index_table()
Dexport.c127 __le64 *table; in squashfs_read_inode_lookup_table() local
144 table = squashfs_read_table(sb, lookup_table_start, length); in squashfs_read_inode_lookup_table()
150 if (!IS_ERR(table) && le64_to_cpu(table[0]) >= lookup_table_start) { in squashfs_read_inode_lookup_table()
151 kfree(table); in squashfs_read_inode_lookup_table()
155 return table; in squashfs_read_inode_lookup_table()
/linux-4.1.27/net/ax25/
Dsysctl_net_ax25.c155 struct ctl_table *table; in ax25_register_dev_sysctl() local
157 table = kmemdup(ax25_param_table, sizeof(ax25_param_table), GFP_KERNEL); in ax25_register_dev_sysctl()
158 if (!table) in ax25_register_dev_sysctl()
162 table[k].data = &ax25_dev->values[k]; in ax25_register_dev_sysctl()
165 ax25_dev->sysheader = register_net_sysctl(&init_net, path, table); in ax25_register_dev_sysctl()
167 kfree(table); in ax25_register_dev_sysctl()
176 struct ctl_table *table; in ax25_unregister_dev_sysctl() local
180 table = header->ctl_table_arg; in ax25_unregister_dev_sysctl()
182 kfree(table); in ax25_unregister_dev_sysctl()
/linux-4.1.27/arch/s390/pci/
Dpci_dma.c29 unsigned long *table, *entry; in dma_alloc_cpu_table() local
31 table = kmem_cache_alloc(dma_region_table_cache, GFP_ATOMIC); in dma_alloc_cpu_table()
32 if (!table) in dma_alloc_cpu_table()
35 for (entry = table; entry < table + ZPCI_TABLE_ENTRIES; entry++) in dma_alloc_cpu_table()
37 return table; in dma_alloc_cpu_table()
40 static void dma_free_cpu_table(void *table) in dma_free_cpu_table() argument
42 kmem_cache_free(dma_region_table_cache, table); in dma_free_cpu_table()
47 unsigned long *table, *entry; in dma_alloc_page_table() local
49 table = kmem_cache_alloc(dma_page_table_cache, GFP_ATOMIC); in dma_alloc_page_table()
50 if (!table) in dma_alloc_page_table()
[all …]
/linux-4.1.27/net/batman-adv/
Dhash.c27 INIT_HLIST_HEAD(&hash->table[i]); in batadv_hash_init()
36 kfree(hash->table); in batadv_hash_destroy()
49 hash->table = kmalloc_array(size, sizeof(*hash->table), GFP_ATOMIC); in batadv_hash_new()
50 if (!hash->table) in batadv_hash_new()
63 kfree(hash->table); in batadv_hash_new()
/linux-4.1.27/drivers/sh/clk/
Dcpg.c132 struct clk_div_mult_table *table = clk_to_div_mult_table(clk); in sh_clk_div_recalc() local
135 clk_rate_table_build(clk, clk->freq_table, table->nr_divisors, in sh_clk_div_recalc()
136 table, clk->arch_flags ? &clk->arch_flags : NULL); in sh_clk_div_recalc()
242 struct clk_div_table *table, struct sh_clk_ops *ops) in sh_clk_div_register_ops() argument
246 int nr_divs = table->div_mult_table->nr_divisors; in sh_clk_div_register_ops()
262 clkp->priv = table; in sh_clk_div_register_ops()
296 struct clk_div_mult_table *table = clk_to_div_mult_table(clk); in sh_clk_div6_set_parent() local
321 clk_rate_table_build(clk, clk->freq_table, table->nr_divisors, in sh_clk_div6_set_parent()
322 table, NULL); in sh_clk_div6_set_parent()
353 struct clk_div_mult_table *table = clk_to_div_mult_table(clk); in sh_clk_div4_set_parent() local
[all …]
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/
Doslinuxtbl.c72 char *signature, struct acpi_table_header **table);
76 char *signature, struct acpi_table_header **table);
78 static void osl_unmap_table(struct acpi_table_header *table);
93 struct acpi_table_header **table,
101 struct acpi_table_header **table,
190 struct acpi_table_header ** table) in acpi_os_get_table_by_address() argument
229 *table = local_table; in acpi_os_get_table_by_address()
255 struct acpi_table_header ** table, in acpi_os_get_table_by_name() argument
274 osl_get_bios_table(signature, instance, table, address); in acpi_os_get_table_by_name()
279 instance, table, address); in acpi_os_get_table_by_name()
[all …]
/linux-4.1.27/lib/zlib_inflate/
Dinftrees.c24 code **table, unsigned *bits, unsigned short *work) in zlib_inflate_table() argument
107 *(*table)++ = this; /* make a table to force an error */ in zlib_inflate_table()
108 *(*table)++ = this; in zlib_inflate_table()
190 next = *table; /* current table to fill in */ in zlib_inflate_table()
271 (*table)[low].op = (unsigned char)curr; in zlib_inflate_table()
272 (*table)[low].bits = (unsigned char)root; in zlib_inflate_table()
273 (*table)[low].val = (unsigned short)(next - *table); in zlib_inflate_table()
292 next = *table; in zlib_inflate_table()
312 *table += used; in zlib_inflate_table()
/linux-4.1.27/fs/jbd/
Drevoke.c135 struct jbd_revoke_table_s *table = journal->j_revoke; in hash() local
137 return hash_32(block, table->hash_shift); in hash()
232 struct jbd_revoke_table_s *table; in journal_init_revoke_table() local
234 table = kmem_cache_alloc(revoke_table_cache, GFP_KERNEL); in journal_init_revoke_table()
235 if (!table) in journal_init_revoke_table()
238 table->hash_size = hash_size; in journal_init_revoke_table()
239 table->hash_shift = ilog2(hash_size); in journal_init_revoke_table()
240 table->hash_table = in journal_init_revoke_table()
242 if (!table->hash_table) { in journal_init_revoke_table()
243 kmem_cache_free(revoke_table_cache, table); in journal_init_revoke_table()
[all …]
/linux-4.1.27/fs/
Daio.c73 struct kioctx *table[]; member
321 struct kioctx_table *table; in aio_ring_remap() local
326 table = rcu_dereference(mm->ioctx_table); in aio_ring_remap()
327 for (i = 0; i < table->nr; i++) { in aio_ring_remap()
330 ctx = table->table[i]; in aio_ring_remap()
616 struct kioctx_table *table, *old; in ioctx_add_table() local
620 table = rcu_dereference_raw(mm->ioctx_table); in ioctx_add_table()
623 if (table) in ioctx_add_table()
624 for (i = 0; i < table->nr; i++) in ioctx_add_table()
625 if (!table->table[i]) { in ioctx_add_table()
[all …]
Dselect.c101 #define POLL_TABLE_FULL(table) \ argument
102 ((unsigned long)((table)->entry+1) > PAGE_SIZE + (unsigned long)(table))
125 pwq->table = NULL; in poll_initwait()
138 struct poll_table_page * p = pwq->table; in poll_freewait()
160 struct poll_table_page *table = p->table; in poll_get_entry() local
165 if (!table || POLL_TABLE_FULL(table)) { in poll_get_entry()
174 new_table->next = table; in poll_get_entry()
175 p->table = new_table; in poll_get_entry()
176 table = new_table; in poll_get_entry()
179 return table->entry++; in poll_get_entry()
[all …]
/linux-4.1.27/net/
Dsysctl_net.c42 struct ctl_table *table) in net_ctl_permissions() argument
51 int mode = (table->mode >> 6) & 7; in net_ctl_permissions()
56 int mode = (table->mode >> 3) & 7; in net_ctl_permissions()
59 return table->mode; in net_ctl_permissions()
104 const char *path, struct ctl_table *table) in register_net_sysctl() argument
106 return __register_sysctl_table(&net->sysctls, path, table); in register_net_sysctl()
/linux-4.1.27/arch/sparc/include/asm/
Dpgalloc_64.h77 void pgtable_free(void *table, bool is_page);
84 static inline void pgtable_free_tlb(struct mmu_gather *tlb, void *table, bool is_page) in pgtable_free_tlb() argument
86 unsigned long pgf = (unsigned long)table; in pgtable_free_tlb()
94 void *table = (void *)((unsigned long)_table & ~0x1UL); in __tlb_remove_table() local
99 pgtable_free(table, is_page); in __tlb_remove_table()
102 static inline void pgtable_free_tlb(struct mmu_gather *tlb, void *table, bool is_page) in pgtable_free_tlb() argument
104 pgtable_free(table, is_page); in pgtable_free_tlb()
/linux-4.1.27/include/linux/netfilter_bridge/
Debtables.h30 bool (*checkentry)(const char *table, const void *entry,
47 bool (*checkentry)(const char *table, const void *entry,
65 bool (*checkentry)(const char *table, const void *entry,
97 struct ebt_replace_kernel *table; member
112 const struct ebt_table *table);
113 extern void ebt_unregister_table(struct net *net, struct ebt_table *table);
116 struct ebt_table *table);
/linux-4.1.27/fs/nls/
Dnls_koi8-ru.c54 static struct nls_table table = { variable
65 table.charset2upper = p_nls->charset2upper; in init_nls_koi8_ru()
66 table.charset2lower = p_nls->charset2lower; in init_nls_koi8_ru()
67 return register_nls(&table); in init_nls_koi8_ru()
75 unregister_nls(&table); in exit_nls_koi8_ru()
Dnls_ascii.c145 static struct nls_table table = { variable
155 return register_nls(&table); in init_nls_ascii()
160 unregister_nls(&table); in exit_nls_ascii()
Dnls_iso8859-9.c251 static struct nls_table table = { variable
261 return register_nls(&table); in init_nls_iso8859_9()
266 unregister_nls(&table); in exit_nls_iso8859_9()
Dnls_iso8859-6.c242 static struct nls_table table = { variable
252 return register_nls(&table); in init_nls_iso8859_6()
257 unregister_nls(&table); in exit_nls_iso8859_6()
Dnls_iso8859-1.c236 static struct nls_table table = { variable
246 return register_nls(&table); in init_nls_iso8859_1()
251 unregister_nls(&table); in exit_nls_iso8859_1()
Dnls_utf8.c43 static struct nls_table table = { variable
57 return register_nls(&table); in init_nls_utf8()
62 unregister_nls(&table); in exit_nls_utf8()
Dnls_iso8859-3.c287 static struct nls_table table = { variable
297 return register_nls(&table); in init_nls_iso8859_3()
302 unregister_nls(&table); in exit_nls_iso8859_3()
Dnls_iso8859-2.c287 static struct nls_table table = { variable
297 return register_nls(&table); in init_nls_iso8859_2()
302 unregister_nls(&table); in exit_nls_iso8859_2()
Dnls_iso8859-4.c287 static struct nls_table table = { variable
297 return register_nls(&table); in init_nls_iso8859_4()
302 unregister_nls(&table); in exit_nls_iso8859_4()
/linux-4.1.27/drivers/sfi/
Dsfi_core.c77 #define TABLE_ON_PAGE(page, table, size) (ON_SAME_PAGE(page, table) && \ argument
78 ON_SAME_PAGE(page, table + size))
133 static int sfi_verify_table(struct sfi_table_header *table) in sfi_verify_table() argument
137 u8 *puchar = (u8 *)table; in sfi_verify_table()
138 u32 length = table->len; in sfi_verify_table()
151 table->csum, table->csum - checksum); in sfi_verify_table()
283 struct sfi_table_header *table = NULL; in sfi_table_parse() local
294 table = sfi_get_table(&key); in sfi_table_parse()
295 if (!table) in sfi_table_parse()
298 ret = handler(table); in sfi_table_parse()
[all …]
Dsfi_acpi.c142 static void sfi_acpi_put_table(struct acpi_table_header *table) in sfi_acpi_put_table() argument
144 sfi_put_table(acpi_to_sfi_th(table)); in sfi_acpi_put_table()
155 struct acpi_table_header *table = NULL; in sfi_acpi_table_parse() local
166 table = sfi_acpi_get_table(&key); in sfi_acpi_table_parse()
167 if (!table) in sfi_acpi_table_parse()
170 ret = handler(table); in sfi_acpi_table_parse()
171 sfi_acpi_put_table(table); in sfi_acpi_table_parse()
/linux-4.1.27/include/linux/sched/
Dsysctl.h9 extern int proc_dohung_task_timeout_secs(struct ctl_table *table, int write,
63 int sched_proc_update_handler(struct ctl_table *table, int write,
98 extern int sched_rr_handler(struct ctl_table *table, int write,
102 extern int sched_rt_handler(struct ctl_table *table, int write,
106 extern int sysctl_numa_balancing(struct ctl_table *table, int write,
/linux-4.1.27/Documentation/ABI/testing/
Dsysfs-firmware-efi5 EFI system table.
11 Description: It shows the physical address of runtime service table entry in
12 the EFI system table.
18 Description: It shows the physical address of config table entry in the EFI
19 system table.
/linux-4.1.27/net/ipv4/
Dsysctl_net_ipv4.c55 static int ipv4_local_port_range(struct ctl_table *table, int write, in ipv4_local_port_range() argument
60 container_of(table->data, struct net, ipv4.ip_local_ports.range); in ipv4_local_port_range()
66 .mode = table->mode, in ipv4_local_port_range()
86 static void inet_get_ping_group_range_table(struct ctl_table *table, kgid_t *low, kgid_t *high) in inet_get_ping_group_range_table() argument
88 kgid_t *data = table->data; in inet_get_ping_group_range_table()
90 container_of(table->data, struct net, ipv4.ping_group_range.range); in inet_get_ping_group_range_table()
101 static void set_ping_group_range(struct ctl_table *table, kgid_t low, kgid_t high) in set_ping_group_range() argument
103 kgid_t *data = table->data; in set_ping_group_range()
105 container_of(table->data, struct net, ipv4.ping_group_range.range); in set_ping_group_range()
113 static int ipv4_ping_group_range(struct ctl_table *table, int write, in ipv4_ping_group_range() argument
[all …]
Dxfrm4_policy.c271 struct ctl_table *table; in xfrm4_net_sysctl_init() local
274 table = xfrm4_policy_table; in xfrm4_net_sysctl_init()
276 table = kmemdup(table, sizeof(xfrm4_policy_table), GFP_KERNEL); in xfrm4_net_sysctl_init()
277 if (!table) in xfrm4_net_sysctl_init()
280 table[0].data = &net->xfrm.xfrm4_dst_ops.gc_thresh; in xfrm4_net_sysctl_init()
283 hdr = register_net_sysctl(net, "net/ipv4", table); in xfrm4_net_sysctl_init()
292 kfree(table); in xfrm4_net_sysctl_init()
299 struct ctl_table *table; in xfrm4_net_sysctl_exit() local
304 table = net->ipv4.xfrm4_hdr->ctl_table_arg; in xfrm4_net_sysctl_exit()
307 kfree(table); in xfrm4_net_sysctl_exit()
/linux-4.1.27/Documentation/devicetree/bindings/arm/tegra/
Dnvidia,tegra20-emc.txt26 Embedded Memory Controller ram-code table
29 next level of nodes below the emc table are used to specify which settings
43 Embedded Memory Controller configuration table
45 This is a table containing the EMC register settings for the various
65 - name : Should be emc-table
66 - compatible : Should contain "nvidia,tegra20-emc-table".
68 the valid frequency for which the table should be used (in kHz).
70 table should be used (in kHz).
82 emc-table@166000 {
84 compatible = "nvidia,tegra20-emc-table";
[all …]
/linux-4.1.27/drivers/md/
Ddm-ioctl.c255 struct dm_table *table; in __hash_remove() local
265 table = dm_get_live_table(hc->md, &srcu_idx); in __hash_remove()
266 if (table) in __hash_remove()
267 dm_table_event(table); in __hash_remove()
270 table = NULL; in __hash_remove()
272 table = hc->new_map; in __hash_remove()
276 return table; in __hash_remove()
373 struct dm_table *table; in dm_hash_rename() local
439 table = dm_get_live_table(hc->md, &srcu_idx); in dm_hash_rename()
440 if (table) in dm_hash_rename()
[all …]
Ddm-table.c298 dm_device_name(ti->table->md), bdevname(bdev, b), in device_area_is_invalid()
311 dm_device_name(ti->table->md), bdevname(bdev, b), in device_area_is_invalid()
324 dm_device_name(ti->table->md), in device_area_is_invalid()
333 dm_device_name(ti->table->md), in device_area_is_invalid()
377 struct dm_table *t = ti->table; in dm_get_device()
429 dm_device_name(ti->table->md), bdevname(bdev, b)); in dm_set_device_limits()
437 dm_device_name(ti->table->md), bdevname(bdev, b), in dm_set_device_limits()
460 struct list_head *devices = &ti->table->devices; in dm_put_device()
471 dm_device_name(ti->table->md), d->name); in dm_put_device()
475 dm_put_table_device(ti->table->md, d); in dm_put_device()
[all …]
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
Dmain.c1518 struct iwl_error_event_table table; in iwl_dump_nic_error_log() local
1539 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_dump_nic_error_log()
1541 if (ERROR_START_OFFSET <= table.valid * ERROR_ELEM_SIZE) { in iwl_dump_nic_error_log()
1544 priv->status, table.valid); in iwl_dump_nic_error_log()
1547 trace_iwlwifi_dev_ucode_error(trans->dev, table.error_id, table.tsf_low, in iwl_dump_nic_error_log()
1548 table.data1, table.data2, table.line, in iwl_dump_nic_error_log()
1549 table.blink1, table.blink2, table.ilink1, in iwl_dump_nic_error_log()
1550 table.ilink2, table.bcon_time, table.gp1, in iwl_dump_nic_error_log()
1551 table.gp2, table.gp3, table.ucode_ver, in iwl_dump_nic_error_log()
1552 table.hw_ver, 0, table.brd_ver); in iwl_dump_nic_error_log()
[all …]
Dpower.c163 const struct iwl_power_vec_entry *table; in iwl_static_sleep_cmd() local
170 table = apm_range_2; in iwl_static_sleep_cmd()
172 table = apm_range_1; in iwl_static_sleep_cmd()
174 table = apm_range_0; in iwl_static_sleep_cmd()
176 table = range_2; in iwl_static_sleep_cmd()
178 table = range_1; in iwl_static_sleep_cmd()
180 table = range_0; in iwl_static_sleep_cmd()
186 *cmd = table[lvl].cmd; in iwl_static_sleep_cmd()
195 skip = table[lvl].no_dtim; in iwl_static_sleep_cmd()
/linux-4.1.27/crypto/
Dlrw.c34 struct lrw_table_ctx table; member
53 if (ctx->table) in lrw_init_table()
54 gf128mul_free_64k(ctx->table); in lrw_init_table()
57 ctx->table = gf128mul_init_64k_bbe((be128 *)tweak); in lrw_init_table()
58 if (!ctx->table) in lrw_init_table()
65 gf128mul_64k_bbe(&ctx->mulinc[i], ctx->table); in lrw_init_table()
74 if (ctx->table) in lrw_free_table()
75 gf128mul_free_64k(ctx->table); in lrw_free_table()
96 return lrw_init_table(&ctx->table, tweak); in setkey()
165 gf128mul_64k_bbe(&s.t, ctx->table.table); in crypt()
[all …]
/linux-4.1.27/arch/frv/kernel/
Dentry-table.S23 # (1) The trap table for debug mode
24 # (2) The trap table for kernel mode
25 # (3) The trap table for user mode
27 # The CPU jumps to an appropriate slot in the appropriate table to perform
33 # (4) The exception handler vector table
37 # table, as indexed by the exception ID from the TBR.
39 # (5) The fixup table for kernel-trap single-step
40 # (6) The fixup table for user-trap single-step
45 # routine pointed to by this table.
53 # trap table for entry from debug mode
[all …]
/linux-4.1.27/fs/jbd2/
Drevoke.c226 struct jbd2_revoke_table_s *table; in jbd2_journal_init_revoke_table() local
228 table = kmem_cache_alloc(jbd2_revoke_table_cache, GFP_KERNEL); in jbd2_journal_init_revoke_table()
229 if (!table) in jbd2_journal_init_revoke_table()
235 table->hash_size = hash_size; in jbd2_journal_init_revoke_table()
236 table->hash_shift = shift; in jbd2_journal_init_revoke_table()
237 table->hash_table = in jbd2_journal_init_revoke_table()
239 if (!table->hash_table) { in jbd2_journal_init_revoke_table()
240 kmem_cache_free(jbd2_revoke_table_cache, table); in jbd2_journal_init_revoke_table()
241 table = NULL; in jbd2_journal_init_revoke_table()
246 INIT_LIST_HEAD(&table->hash_table[tmp]); in jbd2_journal_init_revoke_table()
[all …]
/linux-4.1.27/Documentation/arm64/
Dacpi_object_usage.txt8 the table signature (the first four bytes of the table) is the only portion
9 of the table recognized by the specification, and the actual table is defined
30 is recommended this table be supplied.
33 == simple BOOT flag table ==
34 Microsoft only table, will not be supported.
42 == Corrected Platform Error Polling table ==
52 == DeBuG port table 2 ==
53 Microsoft only table, will not be supported.
56 == DeBuG Port table ==
57 Microsoft only table, will not be supported.
[all …]
/linux-4.1.27/drivers/clk/mmp/
Dclk-mix.c111 struct mmp_clk_mix_clk_table *table, in _filter_clk_table() argument
122 item = &table[i]; in _filter_clk_table()
227 if (mix->table) { in mmp_clk_mix_determine_rate()
229 item = &mix->table[i]; in mmp_clk_mix_determine_rate()
356 if (mix->table) { in mmp_clk_set_parent()
358 item = &mix->table[i]; in mmp_clk_set_parent()
390 if (mix->table) { in mmp_clk_set_rate()
392 item = &mix->table[i]; in mmp_clk_set_rate()
428 if (mix->table) in mmp_clk_mix_init()
429 _filter_clk_table(mix, mix->table, mix->table_size); in mmp_clk_mix_init()
[all …]
/linux-4.1.27/drivers/usb/gadget/
Dusbstring.c40 usb_gadget_get_string (struct usb_gadget_strings *table, int id, u8 *buf) in usb_gadget_get_string() argument
49 buf [2] = (u8) table->language; in usb_gadget_get_string()
50 buf [3] = (u8) (table->language >> 8); in usb_gadget_get_string()
53 for (s = table->strings; s && s->s; s++) in usb_gadget_get_string()
/linux-4.1.27/drivers/acpi/
Dtables.c334 struct acpi_table_header *table = NULL; in acpi_table_parse() local
344 acpi_get_table_with_size(id, acpi_apic_instance, &table, &tbl_size); in acpi_table_parse()
346 acpi_get_table_with_size(id, 0, &table, &tbl_size); in acpi_table_parse()
348 if (table) { in acpi_table_parse()
349 handler(table); in acpi_table_parse()
350 early_acpi_os_unmap_memory(table, tbl_size); in acpi_table_parse()
363 struct acpi_table_header *table = NULL; in check_multiple_madt() local
366 acpi_get_table_with_size(ACPI_SIG_MADT, 2, &table, &tbl_size); in check_multiple_madt()
367 if (table) { in check_multiple_madt()
373 early_acpi_os_unmap_memory(table, tbl_size); in check_multiple_madt()
/linux-4.1.27/arch/x86/tools/
Dgen-insn-attr-x86.awk16 delete table
170 if (array_size(table) != 0) {
171 print_table(table, tname "[INAT_GROUP_TABLE_SIZE]",
192 if (array_size(table) != 0) {
193 print_table(table, tname "[INAT_OPCODE_TABLE_SIZE]",
261 if (idx in table)
275 table[idx] = "INAT_MAKE_ESCAPE(" escape[ref] ")"
349 table[idx] = add_flags(table[idx],flags)
353 table[idx] = add_flags(table[idx],variant)
/linux-4.1.27/drivers/char/agp/
Duninorth-agp.c366 char *table; in uninorth_create_gatt_table() local
380 table = NULL; in uninorth_create_gatt_table()
390 table = (char *) __get_free_pages(GFP_KERNEL, page_order); in uninorth_create_gatt_table()
392 if (table == NULL) { in uninorth_create_gatt_table()
398 } while (!table && (i < bridge->driver->num_aperture_sizes)); in uninorth_create_gatt_table()
400 if (table == NULL) in uninorth_create_gatt_table()
407 table_end = table + ((PAGE_SIZE * (1 << page_order)) - 1); in uninorth_create_gatt_table()
409 for (page = virt_to_page(table), i = 0; page <= virt_to_page(table_end); in uninorth_create_gatt_table()
415 bridge->gatt_table_real = (u32 *) table; in uninorth_create_gatt_table()
417 flush_dcache_range((unsigned long)table, in uninorth_create_gatt_table()
[all …]
Dsgi-agp.c135 u64 *table; in sgi_tioca_insert_memory() local
141 table = (u64 *)bridge->gatt_table; in sgi_tioca_insert_memory()
179 if (table[j]) in sgi_tioca_insert_memory()
190 table[j] = in sgi_tioca_insert_memory()
205 u64 *table; in sgi_tioca_remove_memory() local
215 table = (u64 *)bridge->gatt_table; in sgi_tioca_remove_memory()
218 table[i] = 0; in sgi_tioca_remove_memory()
/linux-4.1.27/net/bridge/netfilter/
Debtables.c188 struct ebt_table *table) in ebt_do_table() argument
207 read_lock_bh(&table->lock); in ebt_do_table()
208 private = table->private; in ebt_do_table()
229 read_unlock_bh(&table->lock); in ebt_do_table()
252 read_unlock_bh(&table->lock); in ebt_do_table()
256 read_unlock_bh(&table->lock); in ebt_do_table()
283 read_unlock_bh(&table->lock); in ebt_do_table()
296 read_unlock_bh(&table->lock); in ebt_do_table()
314 read_unlock_bh(&table->lock); in ebt_do_table()
317 read_unlock_bh(&table->lock); in ebt_do_table()
[all …]
Debt_among.c32 start = wh->table[key]; in ebt_mac_wormhash_contains()
33 limit = wh->table[key + 1]; in ebt_mac_wormhash_contains()
58 if (wh->table[i] > wh->table[i + 1]) in ebt_mac_wormhash_check_integrity()
60 if (wh->table[i] < 0) in ebt_mac_wormhash_check_integrity()
62 if (wh->table[i] > wh->poolsize) in ebt_mac_wormhash_check_integrity()
65 if (wh->table[256] > wh->poolsize) in ebt_mac_wormhash_check_integrity()
/linux-4.1.27/net/ieee802154/6lowpan/
Dreassembly.c438 struct ctl_table *table; in lowpan_frags_ns_sysctl_register() local
443 table = lowpan_frags_ns_ctl_table; in lowpan_frags_ns_sysctl_register()
445 table = kmemdup(table, sizeof(lowpan_frags_ns_ctl_table), in lowpan_frags_ns_sysctl_register()
447 if (table == NULL) in lowpan_frags_ns_sysctl_register()
450 table[0].data = &ieee802154_lowpan->frags.high_thresh; in lowpan_frags_ns_sysctl_register()
451 table[0].extra1 = &ieee802154_lowpan->frags.low_thresh; in lowpan_frags_ns_sysctl_register()
452 table[0].extra2 = &init_net.ieee802154_lowpan.frags.high_thresh; in lowpan_frags_ns_sysctl_register()
453 table[1].data = &ieee802154_lowpan->frags.low_thresh; in lowpan_frags_ns_sysctl_register()
454 table[1].extra2 = &ieee802154_lowpan->frags.high_thresh; in lowpan_frags_ns_sysctl_register()
455 table[2].data = &ieee802154_lowpan->frags.timeout; in lowpan_frags_ns_sysctl_register()
[all …]
/linux-4.1.27/Documentation/filesystems/
Dsquashfs.txt76 | inode table |
79 | table |
82 | table |
85 | table |
88 | lookup table |
91 | table |
133 in a directory table. Directories are accessed using the start address of
178 3.5 Fragment lookup table
182 location on disk and compressed size using a fragment lookup table. This
183 fragment lookup table is itself stored compressed into metadata blocks.
[all …]
Dfiles.txt5 and file descriptor table (struct files) works.
7 Up until 2.6.12, the file descriptor table has been protected
10 of the table. ->count was used for sharing the file descriptor
11 table between tasks cloned with CLONE_FILES flag. Typically
14 a put_files_struct() frees the file descriptor (fd) table.
20 based on RCU. The file descriptor table contains multiple
25 table are in a separate structure - struct fdtable.
27 which the actual fd table is accessed. Initially the
58 3. For any update to the fd table, files->file_lock must
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
Dmodule.c555 static int proc_dobitmasks(struct ctl_table *table, int write, in proc_dobitmasks() argument
558 return proc_call_handler(table->data, write, ppos, buffer, lenp, in proc_dobitmasks()
574 static int proc_dump_kernel(struct ctl_table *table, int write, in proc_dump_kernel() argument
577 return proc_call_handler(table->data, write, ppos, buffer, lenp, in proc_dump_kernel()
597 static int proc_daemon_file(struct ctl_table *table, int write, in proc_daemon_file() argument
600 return proc_call_handler(table->data, write, ppos, buffer, lenp, in proc_daemon_file()
622 static int proc_debug_mb(struct ctl_table *table, int write, in proc_debug_mb() argument
625 return proc_call_handler(table->data, write, ppos, buffer, lenp, in proc_debug_mb()
629 static int proc_console_max_delay_cs(struct ctl_table *table, int write, in proc_console_max_delay_cs() argument
634 struct ctl_table dummy = *table; in proc_console_max_delay_cs()
[all …]
/linux-4.1.27/drivers/block/zram/
Dzram_drv.c289 return meta->table[index].value & BIT(flag); in zram_test_flag()
295 meta->table[index].value |= BIT(flag); in zram_set_flag()
301 meta->table[index].value &= ~BIT(flag); in zram_clear_flag()
306 return meta->table[index].value & (BIT(ZRAM_FLAG_SHIFT) - 1); in zram_get_obj_size()
312 unsigned long flags = meta->table[index].value >> ZRAM_FLAG_SHIFT; in zram_set_obj_size()
314 meta->table[index].value = (flags << ZRAM_FLAG_SHIFT) | size; in zram_set_obj_size()
353 unsigned long handle = meta->table[index].handle; in zram_meta_free()
362 vfree(meta->table); in zram_meta_free()
376 meta->table = vzalloc(num_pages * sizeof(*meta->table)); in zram_meta_alloc()
377 if (!meta->table) { in zram_meta_alloc()
[all …]
/linux-4.1.27/net/ipv6/
Droute.c305 struct fib6_table *table) in ip6_dst_alloc() argument
314 rt6_init_peer(rt, table ? &table->tb6_peers : net->ipv6.peers); in ip6_dst_alloc()
791 struct fib6_table *table, in ip6_pol_route_lookup() argument
797 read_lock_bh(&table->tb6_lock); in ip6_pol_route_lookup()
798 fn = fib6_lookup(&table->tb6_root, &fl6->daddr, &fl6->saddr); in ip6_pol_route_lookup()
810 read_unlock_bh(&table->tb6_lock); in ip6_pol_route_lookup()
857 struct fib6_table *table; in __ip6_ins_rt() local
859 table = rt->rt6i_table; in __ip6_ins_rt()
860 write_lock_bh(&table->tb6_lock); in __ip6_ins_rt()
861 err = fib6_add(&table->tb6_root, rt, info, mxc); in __ip6_ins_rt()
[all …]
Dxfrm6_policy.c341 struct ctl_table *table; in xfrm6_net_sysctl_init() local
344 table = xfrm6_policy_table; in xfrm6_net_sysctl_init()
346 table = kmemdup(table, sizeof(xfrm6_policy_table), GFP_KERNEL); in xfrm6_net_sysctl_init()
347 if (!table) in xfrm6_net_sysctl_init()
350 table[0].data = &net->xfrm.xfrm6_dst_ops.gc_thresh; in xfrm6_net_sysctl_init()
353 hdr = register_net_sysctl(net, "net/ipv6", table); in xfrm6_net_sysctl_init()
362 kfree(table); in xfrm6_net_sysctl_init()
369 struct ctl_table *table; in xfrm6_net_sysctl_exit() local
374 table = net->ipv6.sysctl.xfrm6_hdr->ctl_table_arg; in xfrm6_net_sysctl_exit()
377 kfree(table); in xfrm6_net_sysctl_exit()
Dreassembly.c633 struct ctl_table *table; in ip6_frags_ns_sysctl_register() local
636 table = ip6_frags_ns_ctl_table; in ip6_frags_ns_sysctl_register()
638 table = kmemdup(table, sizeof(ip6_frags_ns_ctl_table), GFP_KERNEL); in ip6_frags_ns_sysctl_register()
639 if (!table) in ip6_frags_ns_sysctl_register()
642 table[0].data = &net->ipv6.frags.high_thresh; in ip6_frags_ns_sysctl_register()
643 table[0].extra1 = &net->ipv6.frags.low_thresh; in ip6_frags_ns_sysctl_register()
644 table[0].extra2 = &init_net.ipv6.frags.high_thresh; in ip6_frags_ns_sysctl_register()
645 table[1].data = &net->ipv6.frags.low_thresh; in ip6_frags_ns_sysctl_register()
646 table[1].extra2 = &net->ipv6.frags.high_thresh; in ip6_frags_ns_sysctl_register()
647 table[2].data = &net->ipv6.frags.timeout; in ip6_frags_ns_sysctl_register()
[all …]
/linux-4.1.27/drivers/infiniband/core/
Dcache.c47 u16 table[0]; member
52 union ib_gid table[0]; member
91 *gid = cache->table[index]; in ib_get_cached_gid()
118 if (!memcmp(gid, &cache->table[i], sizeof *gid)) { in ib_find_cached_gid()
153 *pkey = cache->table[index]; in ib_get_cached_pkey()
182 if ((cache->table[i] & 0x7fff) == (pkey & 0x7fff)) { in ib_find_cached_pkey()
183 if (cache->table[i] & 0x8000) { in ib_find_cached_pkey()
222 if (cache->table[i] == pkey) { in ib_find_exact_cached_pkey()
273 sizeof *pkey_cache->table, GFP_KERNEL); in ib_cache_update()
280 sizeof *gid_cache->table, GFP_KERNEL); in ib_cache_update()
[all …]
/linux-4.1.27/drivers/parport/
Dprocfs.c34 static int do_active_device(struct ctl_table *table, int write, in do_active_device() argument
37 struct parport *port = (struct parport *)table->extra1; in do_active_device()
71 static int do_autoprobe(struct ctl_table *table, int write, in do_autoprobe() argument
74 struct parport_device_info *info = table->extra2; in do_autoprobe()
113 static int do_hardware_base_addr(struct ctl_table *table, int write, in do_hardware_base_addr() argument
117 struct parport *port = (struct parport *)table->extra1; in do_hardware_base_addr()
141 static int do_hardware_irq(struct ctl_table *table, int write, in do_hardware_irq() argument
145 struct parport *port = (struct parport *)table->extra1; in do_hardware_irq()
169 static int do_hardware_dma(struct ctl_table *table, int write, in do_hardware_dma() argument
173 struct parport *port = (struct parport *)table->extra1; in do_hardware_dma()
[all …]
/linux-4.1.27/net/decnet/
Ddn_rules.c92 tbl = dn_fib_get_table(rule->table, 0); in dn_fib_rule_action()
131 if (rule->table == RT_TABLE_UNSPEC) { in dn_fib_rule_configure()
133 struct dn_fib_table *table; in dn_fib_rule_configure() local
135 table = dn_fib_empty_table(); in dn_fib_rule_configure()
136 if (table == NULL) { in dn_fib_rule_configure()
141 rule->table = table->n; in dn_fib_rule_configure()
/linux-4.1.27/arch/x86/platform/sfi/
Dsfi.c52 static int __init sfi_parse_cpus(struct sfi_table_header *table) in sfi_parse_cpus() argument
59 sb = (struct sfi_table_simple *)table; in sfi_parse_cpus()
78 static int __init sfi_parse_ioapic(struct sfi_table_header *table) in sfi_parse_ioapic() argument
88 sb = (struct sfi_table_simple *)table; in sfi_parse_ioapic()
/linux-4.1.27/net/ipv6/netfilter/
Dnf_conntrack_reasm.c99 struct ctl_table *table; in nf_ct_frag6_sysctl_register() local
102 table = nf_ct_frag6_sysctl_table; in nf_ct_frag6_sysctl_register()
104 table = kmemdup(table, sizeof(nf_ct_frag6_sysctl_table), in nf_ct_frag6_sysctl_register()
106 if (table == NULL) in nf_ct_frag6_sysctl_register()
109 table[0].data = &net->nf_frag.frags.timeout; in nf_ct_frag6_sysctl_register()
110 table[1].data = &net->nf_frag.frags.low_thresh; in nf_ct_frag6_sysctl_register()
111 table[1].extra2 = &net->nf_frag.frags.high_thresh; in nf_ct_frag6_sysctl_register()
112 table[2].data = &net->nf_frag.frags.high_thresh; in nf_ct_frag6_sysctl_register()
113 table[2].extra1 = &net->nf_frag.frags.low_thresh; in nf_ct_frag6_sysctl_register()
114 table[2].extra2 = &init_net.nf_frag.frags.high_thresh; in nf_ct_frag6_sysctl_register()
[all …]
/linux-4.1.27/Documentation/networking/
Dmpls-sysctl.txt4 Number of entries in the platform label table. It is not
8 A dense utliziation of the entries in the platform label table
12 If the number of platform label table entries is set to 0 no
17 no longer fit in the table.
/linux-4.1.27/net/sunrpc/
Dsysctl.c61 static int proc_do_xprt(struct ctl_table *table, int write, in proc_do_xprt() argument
76 proc_dodebug(struct ctl_table *table, int write, in proc_dodebug() argument
112 *(unsigned int *) table->data = value; in proc_dodebug()
114 if (strcmp(table->procname, "rpc_debug") == 0) in proc_dodebug()
119 len = sprintf(tmpbuf, "%d", *(unsigned int *) table->data); in proc_dodebug()
/linux-4.1.27/drivers/pci/hotplug/
Dacpiphp_ibm.c138 char *table; in ibm_slot_from_id() local
140 size = ibm_get_table_from_acpi(&table); in ibm_slot_from_id()
141 des = (union apci_descriptor *)table; in ibm_slot_from_id()
145 des = (union apci_descriptor *)&table[ind += des->header.len]; in ibm_slot_from_id()
148 des = (union apci_descriptor *)&table[ind += des->generic.len]; in ibm_slot_from_id()
159 kfree(table); in ibm_slot_from_id()
361 char *table = NULL; in ibm_read_apci_table() local
366 bytes_read = ibm_get_table_from_acpi(&table); in ibm_read_apci_table()
368 memcpy(buffer, table, bytes_read); in ibm_read_apci_table()
369 kfree(table); in ibm_read_apci_table()
/linux-4.1.27/net/mpls/
Daf_mpls.c459 struct ctl_table *table; in mpls_dev_sysctl_register() local
462 table = kmemdup(&mpls_dev_table, sizeof(mpls_dev_table), GFP_KERNEL); in mpls_dev_sysctl_register()
463 if (!table) in mpls_dev_sysctl_register()
470 table[i].data = (char *)mdev + (uintptr_t)table[i].data; in mpls_dev_sysctl_register()
474 mdev->sysctl = register_net_sysctl(dev_net(dev), path, table); in mpls_dev_sysctl_register()
481 kfree(table); in mpls_dev_sysctl_register()
488 struct ctl_table *table; in mpls_dev_sysctl_unregister() local
490 table = mdev->sysctl->ctl_table_arg; in mpls_dev_sysctl_unregister()
492 kfree(table); in mpls_dev_sysctl_unregister()
587 u8 table, const void *addr, int alen) in nla_put_via() argument
[all …]
/linux-4.1.27/arch/arm/kvm/
Dcoproc.c387 void kvm_register_target_coproc_table(struct kvm_coproc_target_table *table) in kvm_register_target_coproc_table() argument
391 for (i = 1; i < table->num; i++) in kvm_register_target_coproc_table()
392 BUG_ON(cmp_reg(&table->table[i-1], in kvm_register_target_coproc_table()
393 &table->table[i]) >= 0); in kvm_register_target_coproc_table()
395 target_tables[table->target] = table; in kvm_register_target_coproc_table()
401 struct kvm_coproc_target_table *table; in get_target_table() local
403 table = target_tables[target]; in get_target_table()
404 *num = table->num; in get_target_table()
405 return table->table; in get_target_table()
409 const struct coproc_reg table[], in find_reg() argument
[all …]
/linux-4.1.27/drivers/mmc/core/
Dquirks.c72 void mmc_fixup_device(struct mmc_card *card, const struct mmc_fixup *table) in mmc_fixup_device() argument
78 if (!table) in mmc_fixup_device()
79 table = mmc_fixup_methods; in mmc_fixup_device()
81 for (f = table; f->vendor_fixup; f++) { in mmc_fixup_device()
/linux-4.1.27/block/partitions/
DKconfig72 bool "AIX basic partition table support" if PARTITION_ADVANCED
75 partition table format used by IBM or Motorola PowerPC machines
90 bool "Amiga partition table support" if PARTITION_ADVANCED
97 bool "Atari partition table support" if PARTITION_ADVANCED
108 partition table format used by IBM DASD disks operating under CMS.
129 requires only one entry in the primary partition table of your disk
131 first sector a new partition table in BSD disklabel format. Saying Y
141 Minix 2.0.0/2.0.2 subpartition table support for Linux.
146 bool "Solaris (x86) partition table support"
150 table format, incompatible with all others. Saying Y here allows you
[all …]
/linux-4.1.27/Documentation/cpu-freq/
Dcpu-drivers.txt122 frequency table helpers might be helpful. See the section 2 for more information
138 values, a frequency table helper and/or the
141 section 2 for details on frequency table helpers.
163 and unsigned int index (into the exposed frequency table).
186 Here again the frequency table helper might assist you - see section 2
224 frequencies, a "frequency table" with some functions might assist in
225 some work of the processor driver. Such a "frequency table" consists
228 "frequency". At the end of the table, you need to add a
230 if you want to skip one entry in the table, set the frequency to
235 struct cpufreq_frequency_table *table);
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/arm/
Dcpus.txt187 "spin-table"
204 property value of "spin-table".
308 enable-method = "spin-table";
316 enable-method = "spin-table";
324 enable-method = "spin-table";
332 enable-method = "spin-table";
340 enable-method = "spin-table";
348 enable-method = "spin-table";
356 enable-method = "spin-table";
364 enable-method = "spin-table";
[all …]
/linux-4.1.27/net/netfilter/ipvs/
DKconfig45 int "IPVS connection table size (the Nth power of 2)"
49 The IPVS connection hash table uses the chaining scheme to handle
50 hash collisions. Using a big IPVS connection hash table will greatly
52 in the hash table.
54 Note the table size must be power of 2. The table size will be the
56 from 8 to 20, the default number is 12, which means the table size
58 performance on it. You can adapt the table size yourself, according
59 to your virtual server application. It is good to set the table size
61 average lasting time of connection in the table. For example, your
63 for 200 seconds in average in the connection table, the table size
[all …]
/linux-4.1.27/arch/sparc/kernel/
Dirq_32.c256 #define INSTANTIATE(table) \ in sparc_floppy_request_irq() argument
257 table[SP_TRAP_IRQ1+(cpu_irq-1)].inst_one = SPARC_RD_PSR_L0; \ in sparc_floppy_request_irq()
258 table[SP_TRAP_IRQ1+(cpu_irq-1)].inst_two = \ in sparc_floppy_request_irq()
260 (unsigned long) &table[SP_TRAP_IRQ1+(cpu_irq-1)].inst_two);\ in sparc_floppy_request_irq()
261 table[SP_TRAP_IRQ1+(cpu_irq-1)].inst_three = SPARC_RD_WIM_L3; \ in sparc_floppy_request_irq()
262 table[SP_TRAP_IRQ1+(cpu_irq-1)].inst_four = SPARC_NOP; in sparc_floppy_request_irq()
/linux-4.1.27/fs/udf/
Dballoc.c347 struct inode *table, in udf_table_free_blocks() argument
372 iinfo = UDF_I(table); in udf_table_free_blocks()
384 (etype = udf_next_aext(table, &epos, &eloc, &elen, 1)) != -1) { in udf_table_free_blocks()
402 udf_write_aext(table, &oepos, &eloc, elen, 1); in udf_table_free_blocks()
421 udf_write_aext(table, &oepos, &eloc, elen, 1); in udf_table_free_blocks()
512 mark_inode_dirty(table); in udf_table_free_blocks()
547 mark_inode_dirty(table); in udf_table_free_blocks()
553 udf_write_aext(table, &epos, &eloc, elen, 1); in udf_table_free_blocks()
557 mark_inode_dirty(table); in udf_table_free_blocks()
576 struct inode *table, uint16_t partition, in udf_table_prealloc_blocks() argument
[all …]
/linux-4.1.27/arch/x86/kernel/cpu/
Dperf_event_intel_pt.c267 struct topa_entry table[TENTS_PER_PAGE]; member
276 #define TOPA_ENTRY(t, i) ((i) == -1 ? &(t)->table[(t)->last] : &(t)->table[(i)])
419 pr_debug("# table @%p (%016Lx), off %llx size %zx\n", topa->table, in pt_topa_dump()
423 &topa->table[i], in pt_topa_dump()
424 (unsigned long)topa->table[i].base << TOPA_SHIFT, in pt_topa_dump()
425 sizes(topa->table[i].size), in pt_topa_dump()
426 topa->table[i].end ? 'E' : ' ', in pt_topa_dump()
427 topa->table[i].intr ? 'I' : ' ', in pt_topa_dump()
428 topa->table[i].stop ? 'S' : ' ', in pt_topa_dump()
429 *(u64 *)&topa->table[i]); in pt_topa_dump()
[all …]
/linux-4.1.27/arch/powerpc/sysdev/
Ddcr-low.S16 #define DCR_ACCESS_PROLOG(table) \ argument
19 lis r5,table@h; \
20 ori r5,r5,table@l; \
/linux-4.1.27/drivers/thermal/
Dcpu_cooling.c295 static unsigned int find_next_max(struct cpufreq_frequency_table *table, in find_next_max() argument
301 cpufreq_for_each_valid_entry(pos, table) { in find_next_max()
330 struct cpufreq_frequency_table *pos, *table; in __cpufreq_cooling_register() local
334 table = cpufreq_frequency_get_table(cpumask_first(clip_cpus)); in __cpufreq_cooling_register()
335 if (!table) { in __cpufreq_cooling_register()
345 cpufreq_for_each_valid_entry(pos, table) in __cpufreq_cooling_register()
368 freq = find_next_max(table, freq); in __cpufreq_cooling_register()
/linux-4.1.27/include/linux/netfilter_ipv6/
Dip6_tables.h29 const struct xt_table *table,
31 extern void ip6t_unregister_table(struct net *net, struct xt_table *table);
35 struct xt_table *table);
/linux-4.1.27/drivers/ide/
Dsgiioc4.c417 unsigned int *table = hwif->dmatable_cpu; in sgiioc4_build_dmatable() local
444 *table = 0x0; in sgiioc4_build_dmatable()
445 table++; in sgiioc4_build_dmatable()
446 *table = cpu_to_be32(cur_addr); in sgiioc4_build_dmatable()
447 table++; in sgiioc4_build_dmatable()
448 *table = 0x0; in sgiioc4_build_dmatable()
449 table++; in sgiioc4_build_dmatable()
451 *table = cpu_to_be32(bcount); in sgiioc4_build_dmatable()
452 table++; in sgiioc4_build_dmatable()
464 table--; in sgiioc4_build_dmatable()
[all …]
/linux-4.1.27/include/linux/netfilter/
Dx_tables.h59 const char *table; member
89 const char *table; member
132 const char *table; member
172 const char *table; member
248 const struct xt_table *table,
251 void *xt_unregister_table(struct xt_table *table);
253 struct xt_table_info *xt_replace_table(struct xt_table *table,
/linux-4.1.27/include/uapi/linux/
Dmap_to_7segment.h75 unsigned char table[128]; member
80 return c >= 0 && c < sizeof(map->table) ? map->table[c] : -EINVAL; in map_to_seg7()
84 struct seg7_conversion_map _name = { .table = { _map } }

1234567