| /linux/drivers/net/ethernet/aquantia/atlantic/macsec/ |
| H A D | macsec_api.h | 48 /*! Read the raw table data from the specified row of the Egress CTL 49 * Filter table, and unpack it into the fields of rec. 50 * rec - [OUT] The raw table row data will be unpacked into the fields of rec. 51 * table_index - The table row to read (max 23). 58 * specified row of the Egress CTL Filter table. 59 * rec - [IN] The bitfield values to write to the table row. 60 * table_index - The table row to write(max 23). 66 /*! Read the raw table data from the specified row of the Egress 67 * Packet Classifier table, and unpack it into the fields of rec. 68 * rec - [OUT] The raw table row data will be unpacked into the fields of rec. [all …]
|
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | nft_audit.sh | 26 add table t 86 for table in t1 t2; do 87 do_test "nft add table $table" \ 88 "table=$table family=2 entries=1 op=nft_register_table" 90 do_test "nft add chain $table c1" \ 91 "table=$table family=2 entries=1 op=nft_register_chain" 93 do_test "nft add chain $table c2; add chain $table c3" \ 94 "table=$table family=2 entries=2 op=nft_register_chain" 96 cmd="add rule $table c1 counter" 99 "table=$table family=2 entries=1 op=nft_register_rule" [all …]
|
| /linux/tools/power/acpi/tools/acpidump/ |
| H A D | apdump.c | 15 ap_dump_table_buffer(struct acpi_table_header *table, 22 * PARAMETERS: table - Pointer to table to be validated 26 * DESCRIPTION: Check for a valid ACPI table header 30 u8 ap_is_valid_header(struct acpi_table_header *table) in ap_is_valid_header() argument 33 if (!ACPI_VALIDATE_RSDP_SIG(table->signature)) { in ap_is_valid_header() 37 if (!acpi_ut_valid_nameseg(table->signature)) { in ap_is_valid_header() 39 "Table signature (0x%8.8X) is invalid\n", in ap_is_valid_header() 40 *(u32 *)table->signature); in ap_is_valid_header() 44 /* Check for minimum table length */ in ap_is_valid_header() 46 if (table->length < sizeof(struct acpi_table_header)) { in ap_is_valid_header() [all …]
|
| /linux/drivers/gpu/drm/imagination/ |
| H A D | pvr_mmu.c | 223 * table of any level. 395 * struct pvr_page_table_l2_entry_raw - A single entry in a level 2 page table. 403 * .. flat-table:: 408 * - **Level 1 Page Table Base Address:** Bits 39..12 of the L1 409 * page table base address, which is 4KiB aligned. 422 * table. If the valid bit is not set, then an attempted use of 439 * page table. 440 * @entry: Target raw level 2 page table entry. 441 * @child_table_dma_addr: DMA address of the level 1 page table to be 466 * struct pvr_page_table_l1_entry_raw - A single entry in a level 1 page table. [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | rl.c | 172 * If the table is full, return NULL 174 static struct mlx5_rl_entry *find_rl_entry(struct mlx5_rl_table *table, in find_rl_entry() argument 181 lockdep_assert_held(&table->rl_lock); in find_rl_entry() 182 WARN_ON(!table->rl_entry); in find_rl_entry() 184 for (i = 0; i < table->max_size; i++) { in find_rl_entry() 186 if (!table->rl_entry[i].refcount) in find_rl_entry() 187 return &table->rl_entry[i]; in find_rl_entry() 191 if (table->rl_entry[i].refcount) { in find_rl_entry() 192 if (table->rl_entry[i].dedicated) in find_rl_entry() 194 if (mlx5_rl_are_equal_raw(&table->rl_entry[i], rl_in, in find_rl_entry() [all …]
|
| /linux/drivers/net/wireguard/ |
| H A D | peerlookup.c | 10 static struct hlist_head *pubkey_bucket(struct pubkey_hashtable *table, in pubkey_bucket() argument 17 const u64 hash = siphash(pubkey, NOISE_PUBLIC_KEY_LEN, &table->key); in pubkey_bucket() 19 return &table->hashtable[hash & (HASH_SIZE(table->hashtable) - 1)]; in pubkey_bucket() 24 struct pubkey_hashtable *table = kvmalloc_obj(*table); in wg_pubkey_hashtable_alloc() local 26 if (!table) in wg_pubkey_hashtable_alloc() 29 get_random_bytes(&table->key, sizeof(table->key)); in wg_pubkey_hashtable_alloc() 30 hash_init(table->hashtable); in wg_pubkey_hashtable_alloc() 31 mutex_init(&table->lock); in wg_pubkey_hashtable_alloc() 32 return table; in wg_pubkey_hashtable_alloc() 35 void wg_pubkey_hashtable_add(struct pubkey_hashtable *table, in wg_pubkey_hashtable_add() argument [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/ |
| H A D | dev.c | 28 struct mlx5_sf_dev_table *table; member 39 struct mlx5_sf_dev_table *table = dev->priv.sf_dev_table; in mlx5_sf_dev_allocated() local 41 return table && !xa_empty(&table->devices); in mlx5_sf_dev_allocated() 90 struct mlx5_sf_dev_table *table = dev->priv.sf_dev_table; in mlx5_sf_dev_add() local 118 sf_dev->bar_base_addr = table->base_address + (sf_index * table->sf_bar_length); in mlx5_sf_dev_add() 135 err = xa_insert(&table->devices, sf_index, sf_dev, GFP_KERNEL); in mlx5_sf_dev_add() 149 struct mlx5_sf_dev_table *table = dev->priv.sf_dev_table; in mlx5_sf_dev_del() local 151 xa_erase(&table->devices, sf_index); in mlx5_sf_dev_del() 160 struct mlx5_sf_dev_table *table = dev->priv.sf_dev_table; in mlx5_sf_dev_state_change_handler() local 167 if (!table) in mlx5_sf_dev_state_change_handler() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
| H A D | devlink.c | 37 mlx5_sf_lookup_by_function_id(struct mlx5_sf_table *table, unsigned int fn_id) in mlx5_sf_lookup_by_function_id() argument 39 return xa_load(&table->function_ids, fn_id); in mlx5_sf_lookup_by_function_id() 42 static int mlx5_sf_function_id_insert(struct mlx5_sf_table *table, struct mlx5_sf *sf) in mlx5_sf_function_id_insert() argument 44 return xa_insert(&table->function_ids, sf->hw_fn_id, sf, GFP_KERNEL); in mlx5_sf_function_id_insert() 47 static void mlx5_sf_function_id_erase(struct mlx5_sf_table *table, struct mlx5_sf *sf) in mlx5_sf_function_id_erase() argument 49 xa_erase(&table->function_ids, sf->hw_fn_id); in mlx5_sf_function_id_erase() 53 mlx5_sf_alloc(struct mlx5_sf_table *table, struct mlx5_eswitch *esw, in mlx5_sf_alloc() argument 67 id_err = mlx5_sf_hw_table_sf_alloc(table->dev, controller, sfnum); in mlx5_sf_alloc() 79 hw_fn_id = mlx5_sf_sw_to_hw_id(table->dev, controller, sf->id); in mlx5_sf_alloc() 80 dl_port_index = mlx5_esw_vport_to_devlink_port_index(table->dev, hw_fn_id); in mlx5_sf_alloc() [all …]
|
| H A D | hw_table.c | 59 mlx5_sf_table_fn_to_hwc(struct mlx5_sf_hw_table *table, u16 fn_id) in mlx5_sf_table_fn_to_hwc() argument 63 for (i = 0; i < ARRAY_SIZE(table->hwc); i++) { in mlx5_sf_table_fn_to_hwc() 64 if (table->hwc[i].max_fn && in mlx5_sf_table_fn_to_hwc() 65 fn_id >= table->hwc[i].start_fn_id && in mlx5_sf_table_fn_to_hwc() 66 fn_id < (table->hwc[i].start_fn_id + table->hwc[i].max_fn)) in mlx5_sf_table_fn_to_hwc() 67 return &table->hwc[i]; in mlx5_sf_table_fn_to_hwc() 73 struct mlx5_sf_hw_table *table, in mlx5_sf_hw_table_id_alloc() argument 104 struct mlx5_sf_hw_table *table, in mlx5_sf_hw_table_id_free() argument 116 struct mlx5_sf_hw_table *table = dev->priv.sf_hw_table; in mlx5_sf_hw_table_sf_alloc() local 121 if (!table) in mlx5_sf_hw_table_sf_alloc() [all …]
|
| /linux/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | fib.sh | 103 ip -n $ns route add table local 192.0.2.1/32 dev dummy1 104 fib4_trap_check $ns "table local 192.0.2.1/32 dev dummy1" false 105 check_err $? "Local table route not in hardware when should" 107 ip -n $ns route add table main 192.0.2.1/32 dev dummy1 108 fib4_trap_check $ns "table main 192.0.2.1/32 dev dummy1" true 109 check_err $? "Main table route in hardware when should not" 111 fib4_trap_check $ns "table local 192.0.2.1/32 dev dummy1" false 112 check_err $? "Local table route was replaced when should not" 114 # Test that local routes can replace routes in main table. 115 ip -n $ns route add table main 192.0.2.2/32 dev dummy1 [all …]
|
| /linux/arch/x86/lib/ |
| H A D | inat.c | 29 const insn_attr_t *table; in inat_get_escape_attribute() local 34 table = inat_escape_tables[n][0]; in inat_get_escape_attribute() 35 if (!table) in inat_get_escape_attribute() 37 if (inat_has_variant(table[opcode]) && lpfx_id) { in inat_get_escape_attribute() 38 table = inat_escape_tables[n][lpfx_id]; in inat_get_escape_attribute() 39 if (!table) in inat_get_escape_attribute() 42 return table[opcode]; in inat_get_escape_attribute() 48 const insn_attr_t *table; in inat_get_group_attribute() local 53 table = inat_group_tables[n][0]; in inat_get_group_attribute() 54 if (!table) in inat_get_group_attribute() [all …]
|
| /linux/tools/arch/x86/lib/ |
| H A D | inat.c | 29 const insn_attr_t *table; in inat_get_escape_attribute() local 34 table = inat_escape_tables[n][0]; in inat_get_escape_attribute() 35 if (!table) in inat_get_escape_attribute() 37 if (inat_has_variant(table[opcode]) && lpfx_id) { in inat_get_escape_attribute() 38 table = inat_escape_tables[n][lpfx_id]; in inat_get_escape_attribute() 39 if (!table) in inat_get_escape_attribute() 42 return table[opcode]; in inat_get_escape_attribute() 48 const insn_attr_t *table; in inat_get_group_attribute() local 53 table = inat_group_tables[n][0]; in inat_get_group_attribute() 54 if (!table) in inat_get_group_attribute() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | icm.c | 257 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj) in mlx4_table_get() argument 259 u32 i = (obj & (table->num_obj - 1)) / in mlx4_table_get() 260 (MLX4_TABLE_CHUNK_SIZE / table->obj_size); in mlx4_table_get() 263 mutex_lock(&table->mutex); in mlx4_table_get() 265 if (table->icm[i]) { in mlx4_table_get() 266 ++table->icm[i]->refcount; in mlx4_table_get() 270 table->icm[i] = mlx4_alloc_icm(dev, MLX4_TABLE_CHUNK_SIZE >> PAGE_SHIFT, in mlx4_table_get() 271 (table->lowmem ? GFP_KERNEL : GFP_HIGHUSER) | in mlx4_table_get() 272 __GFP_NOWARN, table->coherent); in mlx4_table_get() 273 if (!table->icm[i]) { in mlx4_table_get() [all …]
|
| /linux/drivers/acpi/acpica/ |
| H A D | tbdata.c | 4 * Module Name: tbdata - Table manager data structure functions 30 * PARAMETERS: table_desc - Table 1 descriptor to be compared 31 * table_index - Index of table 2 to be compared 35 * DESCRIPTION: This function compares a table with another table that has 36 * already been installed in the root table list. 45 struct acpi_table_header *table; in acpi_tb_compare_tables() local 51 &table, &table_length, &table_flags); in acpi_tb_compare_tables() 57 * Check for a table match on the entire table length, in acpi_tb_compare_tables() 61 memcmp(table_desc->pointer, table, table_length)) ? in acpi_tb_compare_tables() 64 /* Release the acquired table */ in acpi_tb_compare_tables() [all …]
|
| H A D | tbinstal.c | 4 * Module Name: tbinstal - ACPI table installation and removal 21 * PARAMETERS: new_table_desc - New table descriptor to install 23 * table_index - Where the table index is returned 27 * DESCRIPTION: Install an ACPI table into the global data structure. The 28 * table override mechanism is called to allow the host 29 * OS to replace any table before it is installed in the root 30 * table array. 46 * ACPI Table Override: in acpi_tb_install_table_with_override() 48 * Before we install the table, let the host OS override it with a new in acpi_tb_install_table_with_override() 49 * one if desired. Any table within the RSDT/XSDT can be replaced, in acpi_tb_install_table_with_override() [all …]
|
| /linux/net/sched/ |
| H A D | sch_gred.c | 62 static inline int gred_wred_mode(struct gred_sched *table) in gred_wred_mode() 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 in gred_enable_rio_mode() 87 gred_disable_rio_mode(struct gred_sched * table) gred_disable_rio_mode() argument 94 struct gred_sched *table = qdisc_priv(sch); gred_wred_mode_check() local 113 gred_backlog(struct gred_sched * table,struct gred_sched_data * q,struct Qdisc * sch) gred_backlog() argument 128 gred_load_wred_set(const struct gred_sched * table,struct gred_sched_data * q) gred_load_wred_set() argument 135 gred_store_wred_set(struct gred_sched * table,struct gred_sched_data * q) gred_store_wred_set() argument 152 gred_per_vq_red_flags_used(struct gred_sched * table) gred_per_vq_red_flags_used() argument 313 struct gred_sched *table = qdisc_priv(sch); gred_offload() local 356 struct gred_sched *table = qdisc_priv(sch); gred_offload_dump_stats() local 411 struct gred_sched *table = qdisc_priv(sch); gred_change_table_def() local 487 struct gred_sched *table = qdisc_priv(sch); gred_change_vq() local 538 gred_vq_apply(struct gred_sched * table,const struct nlattr * entry) gred_vq_apply() argument 552 gred_vqs_apply(struct gred_sched * table,struct nlattr * vqs) gred_vqs_apply() argument 566 gred_vq_validate(struct gred_sched * table,u32 cdp,const struct nlattr * entry,struct netlink_ext_ack * extack) gred_vq_validate() argument 610 gred_vqs_validate(struct gred_sched * table,u32 cdp,struct nlattr * vqs,struct netlink_ext_ack * extack) gred_vqs_validate() argument 645 struct gred_sched *table = qdisc_priv(sch); gred_change() local 735 struct gred_sched *table = qdisc_priv(sch); gred_init() local 770 struct gred_sched *table = qdisc_priv(sch); gred_dump() local 910 struct gred_sched *table = qdisc_priv(sch); gred_destroy() local [all...] |
| /linux/drivers/infiniband/core/ |
| H A D | cache.c | 49 u16 table[] __counted_by(table_len); 75 * GID entry is detached from the table. 101 /* In RoCE, adding a GID to the table requires: 165 * @table: GID table pointer 166 * @index: Index to check in GID table 170 static bool is_gid_index_default(const struct ib_gid_table *table, in is_gid_index_default() argument 173 return index < 32 && (BIT(index) & table->default_gid_indices); in is_gid_index_default() 241 struct ib_gid_table *table = rdma_gid_table(device, port_num); in free_gid_entry_locked() local 246 write_lock_irq(&table->rwlock); in free_gid_entry_locked() 249 * The only way to avoid overwriting NULL in table is in free_gid_entry_locked() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | fib_rule_tests.sh | 94 $IP route add table $RTABLE_PEER 198.51.100.11/32 via 192.0.2.11 97 $IP route add table $RTABLE_PEER 2001:db8::1:11/128 via 2001:db8::11 110 $IP link add name vrf0 up type vrf table $RTABLE_VRF 144 pref=$($IP -6 rule show $1 table $RTABLE | cut -d ":" -f 1) 156 $IP -6 rule add $match table $RTABLE 157 $IP -6 route get $GW_IP6 $getmatch | grep -q "table $RTABLE" 160 $IP -6 route get $GW_IP6 $getnomatch 2>&1 | grep -q "table $RTABLE" 172 $IP -6 rule add $match table $RTABLE 2>/dev/null 177 $IP -6 rule del $match table $RTABLE 193 $IP -6 route add table $RTABLE default via $GW_IP6 dev $DEV onlink [all …]
|
| /linux/Documentation/arch/arm64/ |
| H A D | acpi_object_usage.rst | 10 the table signature (the first four bytes of the table) is the only portion 11 of the table recognized by the specification, and the actual table is defined 28 Table Usage for ARMv8 Linux 32 **Arm Error Source Table** 34 This table informs the OS of any error nodes in the system that are 39 **Arm Generic diagnostic Dump and Reset Device Interface Table** 41 This table describes a non-maskable event, that is used by the platform 46 **Arm Performance Monitoring Table** 48 This table describes the properties of PMU support implemented by 53 **Boot Error Record Table** [all …]
|
| /linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
| H A D | vegam_smumgr.c | 449 SMU75_Discrete_DpmTable *table) in vegam_populate_smc_mvdd_table() argument 459 table->SmioTable2.Pattern[level].Voltage = PP_HOST_TO_SMC_US( in vegam_populate_smc_mvdd_table() 462 table->SmioTable2.Pattern[level].Smio = in vegam_populate_smc_mvdd_table() 464 table->Smio[level] |= in vegam_populate_smc_mvdd_table() 467 table->SmioMask2 = data->mvdd_voltage_table.mask_low; in vegam_populate_smc_mvdd_table() 469 table->MvddLevelCount = (uint32_t) PP_HOST_TO_SMC_UL(count); in vegam_populate_smc_mvdd_table() 476 struct SMU75_Discrete_DpmTable *table) in vegam_populate_smc_vddci_table() argument 487 table->SmioTable1.Pattern[level].Voltage = PP_HOST_TO_SMC_US( in vegam_populate_smc_vddci_table() 489 table->SmioTable1.Pattern[level].Smio = (uint8_t) level; in vegam_populate_smc_vddci_table() 491 table->Smio[level] |= data->vddci_voltage_table.entries[level].smio_low; in vegam_populate_smc_vddci_table() [all …]
|
| /linux/drivers/firmware/efi/ |
| H A D | mokvar-table.c | 3 * mokvar-table.c 9 * Owner Key (MOK) variable configuration table, which is identified by 12 * This EFI configuration table provides a more robust alternative to 15 * kernel during boot. If both the EFI MOK config table and corresponding 16 * EFI MOK variables are present, the table should be considered as 19 * This module includes code that validates and maps the EFI MOK table, 23 * entries in the MOK config table or to search for a specific named 26 * The contents of the individual named MOK config table entries are 46 * The LINUX_EFI_MOK_VARIABLE_TABLE_GUID config table is a packed 52 * MOK config table by efi_mokvar_table_init(). This will be [all …]
|
| /linux/net/devlink/ |
| H A D | dpipe.c | 87 static int devlink_dpipe_matches_put(struct devlink_dpipe_table *table, in devlink_dpipe_matches_put() argument 97 if (table->table_ops->matches_dump(table->priv, skb)) in devlink_dpipe_matches_put() 135 static int devlink_dpipe_actions_put(struct devlink_dpipe_table *table, in devlink_dpipe_actions_put() argument 145 if (table->table_ops->actions_dump(table->priv, skb)) in devlink_dpipe_actions_put() 157 struct devlink_dpipe_table *table) in devlink_dpipe_table_put() argument 162 table_size = table->table_ops->size_get(table->priv); in devlink_dpipe_table_put() 167 if (nla_put_string(skb, DEVLINK_ATTR_DPIPE_TABLE_NAME, table->name) || in devlink_dpipe_table_put() 171 table->counters_enabled)) in devlink_dpipe_table_put() 174 if (table->resource_valid) { in devlink_dpipe_table_put() 176 table->resource_id) || in devlink_dpipe_table_put() [all …]
|
| /linux/lib/zlib_inflate/ |
| H A D | inftrees.c | 13 The code lengths are lens[0..codes-1]. The result starts at *table, 17 -1 is an invalid code, and +1 means that ENOUGH isn't enough. table 19 requested root table index bits, and on return it is the actual root 20 table index bits. It will differ if the request is greater than the 24 code **table, unsigned *bits, unsigned short *work) in zlib_inflate_table() argument 29 unsigned root; /* number of index bits for root table */ in zlib_inflate_table() 30 unsigned curr; /* number of index bits for current table */ in zlib_inflate_table() 31 unsigned drop; /* code bits to drop for sub-table */ in zlib_inflate_table() 33 unsigned used; /* code entries in table used */ in zlib_inflate_table() 39 code this; /* table entry for duplication */ in zlib_inflate_table() [all …]
|
| /linux/scripts/mod/ |
| H A D | symsearch.c | 17 * Container used to hold an entire binary search table. 18 * Entries in table are ascending, sorted first by section_index, 27 struct syminfo table[]; member 69 struct syminfo *table, in symsearch_populate() argument 78 table->symbol_index = sym - elf->symtab_start; in symsearch_populate() 79 table->section_index = get_secindex(elf, sym); in symsearch_populate() 80 table->addr = sym->st_value; in symsearch_populate() 88 table->addr &= ~1; in symsearch_populate() 90 table++; in symsearch_populate() 99 * Do any fixups on the table after sorting. [all …]
|
| /linux/tools/power/acpi/os_specific/service_layers/ |
| H A D | oslinuxtbl.c | 38 struct acpi_table_header **table); 42 char *signature, struct acpi_table_header **table); 44 static void osl_unmap_table(struct acpi_table_header *table); 59 struct acpi_table_header **table, 67 struct acpi_table_header **table, 93 /* Table addresses */ 144 * PARAMETERS: address - Physical address of the ACPI table 145 * table - Where a pointer to the table is returned 147 * RETURN: Status; Table buffer is returned if AE_OK. 148 * AE_NOT_FOUND: A valid table was not found at the address [all …]
|