/linux-6.3-rc2/include/asm-generic/ |
A D | percpu.h | 77 typeof(pcp) *__p = raw_cpu_ptr(&(pcp)); \ 85 typeof(pcp) *__p = raw_cpu_ptr(&(pcp)); \ 94 typeof(pcp) *__p = raw_cpu_ptr(&(pcp)); \ 195 #define raw_cpu_read_1(pcp) raw_cpu_generic_read(pcp) argument 198 #define raw_cpu_read_2(pcp) raw_cpu_generic_read(pcp) argument 201 #define raw_cpu_read_4(pcp) raw_cpu_generic_read(pcp) argument 204 #define raw_cpu_read_8(pcp) raw_cpu_generic_read(pcp) argument 320 #define this_cpu_read_1(pcp) this_cpu_generic_read(pcp) argument 323 #define this_cpu_read_2(pcp) this_cpu_generic_read(pcp) argument 326 #define this_cpu_read_4(pcp) this_cpu_generic_read(pcp) argument [all …]
|
/linux-6.3-rc2/arch/s390/include/asm/ |
A D | percpu.h | 44 #define this_cpu_add_1(pcp, val) arch_this_cpu_to_op_simple(pcp, val, +) argument 45 #define this_cpu_add_2(pcp, val) arch_this_cpu_to_op_simple(pcp, val, +) argument 48 #define this_cpu_and_1(pcp, val) arch_this_cpu_to_op_simple(pcp, val, &) argument 49 #define this_cpu_and_2(pcp, val) arch_this_cpu_to_op_simple(pcp, val, &) argument 50 #define this_cpu_or_1(pcp, val) arch_this_cpu_to_op_simple(pcp, val, |) argument 51 #define this_cpu_or_2(pcp, val) arch_this_cpu_to_op_simple(pcp, val, |) argument 55 #define this_cpu_add_4(pcp, val) arch_this_cpu_to_op_simple(pcp, val, +) argument 162 #define this_cpu_xchg_1(pcp, nval) arch_this_cpu_xchg(pcp, nval) argument 163 #define this_cpu_xchg_2(pcp, nval) arch_this_cpu_xchg(pcp, nval) argument 164 #define this_cpu_xchg_4(pcp, nval) arch_this_cpu_xchg(pcp, nval) argument [all …]
|
/linux-6.3-rc2/arch/loongarch/include/asm/ |
A D | percpu.h | 165 __retval = (typeof(pcp))__percpu_read(&(pcp), sizeof(pcp)); \ 195 #define _percpu_xchg(pcp, val) ((typeof(pcp)) \ argument 198 #define this_cpu_add_4(pcp, val) _percpu_add(pcp, val) argument 199 #define this_cpu_add_8(pcp, val) _percpu_add(pcp, val) argument 204 #define this_cpu_and_4(pcp, val) _percpu_and(pcp, val) argument 207 #define this_cpu_or_4(pcp, val) _percpu_or(pcp, val) argument 208 #define this_cpu_or_8(pcp, val) _percpu_or(pcp, val) argument 210 #define this_cpu_read_1(pcp) _percpu_read(pcp) argument 211 #define this_cpu_read_2(pcp) _percpu_read(pcp) argument 212 #define this_cpu_read_4(pcp) _percpu_read(pcp) argument [all …]
|
/linux-6.3-rc2/arch/x86/include/asm/ |
A D | percpu.h | 228 #define raw_cpu_read_1(pcp) percpu_from_op(1, , "mov", pcp) argument 229 #define raw_cpu_read_2(pcp) percpu_from_op(2, , "mov", pcp) argument 230 #define raw_cpu_read_4(pcp) percpu_from_op(4, , "mov", pcp) argument 235 #define raw_cpu_add_1(pcp, val) percpu_add_op(1, , (pcp), val) argument 236 #define raw_cpu_add_2(pcp, val) percpu_add_op(2, , (pcp), val) argument 237 #define raw_cpu_add_4(pcp, val) percpu_add_op(4, , (pcp), val) argument 256 #define raw_cpu_xchg_1(pcp, val) raw_percpu_xchg_op(pcp, val) argument 257 #define raw_cpu_xchg_2(pcp, val) raw_percpu_xchg_op(pcp, val) argument 258 #define raw_cpu_xchg_4(pcp, val) raw_percpu_xchg_op(pcp, val) argument 315 #define raw_cpu_read_8(pcp) percpu_from_op(8, , "mov", pcp) argument [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | percpu-defs.h | 433 #define raw_cpu_inc(pcp) raw_cpu_add(pcp, 1) argument 434 #define raw_cpu_dec(pcp) raw_cpu_sub(pcp, 1) argument 435 #define raw_cpu_sub_return(pcp, val) raw_cpu_add_return(pcp, -(typeof(pcp))(val)) argument 496 #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) argument 497 #define __this_cpu_inc(pcp) __this_cpu_add(pcp, 1) argument 498 #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) argument 499 #define __this_cpu_sub_return(pcp, val) __this_cpu_add_return(pcp, -(typeof(pcp))(val)) argument 519 #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) argument 520 #define this_cpu_inc(pcp) this_cpu_add(pcp, 1) argument 521 #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) argument [all …]
|
/linux-6.3-rc2/arch/arm64/include/asm/ |
A D | percpu.h | 164 typeof(pcp) __retval; \ 166 __retval = (typeof(pcp))op(raw_cpu_ptr(&(pcp)), ##args); \ 171 #define this_cpu_read_1(pcp) \ argument 173 #define this_cpu_read_2(pcp) \ argument 175 #define this_cpu_read_4(pcp) \ argument 177 #define this_cpu_read_8(pcp) \ argument 189 #define this_cpu_add_1(pcp, val) \ argument 191 #define this_cpu_add_2(pcp, val) \ argument 193 #define this_cpu_add_4(pcp, val) \ argument 195 #define this_cpu_add_8(pcp, val) \ argument [all …]
|
/linux-6.3-rc2/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/ |
A D | percpu.h | 31 #define __this_cpu_inc(pcp) __this_cpu_add(pcp, 1) argument 32 #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) argument 33 #define __this_cpu_sub(pcp, n) __this_cpu_add(pcp, -(typeof(pcp)) (n)) argument 35 #define this_cpu_inc(pcp) this_cpu_add(pcp, 1) argument 36 #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) argument 37 #define this_cpu_sub(pcp, n) this_cpu_add(pcp, -(typeof(pcp)) (n)) argument 66 #define __this_cpu_add(pcp, n) \ argument 69 THIS_CPU_ADD_HELPER(per_cpu_ptr(&(pcp), thread_cpu_id), \ 70 (typeof(pcp)) (n)); \ 73 #define this_cpu_add(pcp, n) \ argument [all …]
|
/linux-6.3-rc2/Documentation/translations/zh_CN/core-api/ |
A D | this_cpu_ops.rst | 46 this_cpu_read(pcp) 47 this_cpu_write(pcp, val) 48 this_cpu_add(pcp, val) 49 this_cpu_and(pcp, val) 50 this_cpu_or(pcp, val) 55 this_cpu_sub(pcp, val) 56 this_cpu_inc(pcp) 57 this_cpu_dec(pcp) 204 __this_cpu_read(pcp) 214 __this_cpu_inc(pcp) [all …]
|
/linux-6.3-rc2/Documentation/core-api/ |
A D | this_cpu_ops.rst | 48 this_cpu_read(pcp) 49 this_cpu_write(pcp, val) 50 this_cpu_add(pcp, val) 51 this_cpu_and(pcp, val) 52 this_cpu_or(pcp, val) 57 this_cpu_sub(pcp, val) 58 this_cpu_inc(pcp) 59 this_cpu_dec(pcp) 237 __this_cpu_read(pcp) 247 __this_cpu_inc(pcp) [all …]
|
/linux-6.3-rc2/mm/ |
A D | vmstat.c | 361 t = __this_cpu_read(pcp->stat_threshold); in __mod_zone_page_state() 577 t = this_cpu_read(pcp->stat_threshold); in mod_zone_state() 831 __this_cpu_write(pcp->expire, 3); in refresh_cpu_vm_stats() 846 if (!__this_cpu_read(pcp->expire) || in refresh_cpu_vm_stats() 847 !__this_cpu_read(pcp->count)) in refresh_cpu_vm_stats() 854 __this_cpu_write(pcp->expire, 0); in refresh_cpu_vm_stats() 861 if (__this_cpu_read(pcp->count)) { in refresh_cpu_vm_stats() 1724 struct per_cpu_pages *pcp; in zoneinfo_show_print() local 1734 pcp->count, in zoneinfo_show_print() 1735 pcp->high, in zoneinfo_show_print() [all …]
|
A D | page_alloc.c | 3207 if (pcp->count) { in drain_pages_zone() 3209 free_pcppages_bulk(zone, pcp->count, pcp, 0); in drain_pages_zone() 3289 if (pcp->count) in __drain_all_pages() 3294 if (pcp->count) { in __drain_all_pages() 3402 return pcp->count; in nr_pcp_free() 3504 if (pcp) { in free_unref_page() 3557 if (pcp) { in free_unref_page_list() 3592 if (pcp) { in free_unref_page_list() 3811 if (!pcp) { in rmqueue_pcplist() 5493 if (!pcp) in __alloc_pages_bulk() [all …]
|
/linux-6.3-rc2/drivers/net/dsa/sja1105/ |
A D | sja1105_flower.c | 123 rule->key.tc.pcp = tc; in sja1105_setup_tc_policer() 187 key->tc.pcp, rate_bytes_per_sec, in sja1105_flower_policer() 205 u16 pcp = U16_MAX; in sja1105_flower_parse_key() local 274 pcp = match.key->vlan_priority; in sja1105_flower_parse_key() 277 if (is_bcast_dmac && vid == U16_MAX && pcp == U16_MAX) { in sja1105_flower_parse_key() 281 if (dmac == U64_MAX && vid == U16_MAX && pcp != U16_MAX) { in sja1105_flower_parse_key() 283 key->tc.pcp = pcp; in sja1105_flower_parse_key() 286 if (dmac != U64_MAX && vid != U16_MAX && pcp != U16_MAX) { in sja1105_flower_parse_key() 290 key->vl.pcp = pcp; in sja1105_flower_parse_key() 481 int index = (port * SJA1105_NUM_TC) + rule->key.tc.pcp; in sja1105_cls_flower_del()
|
A D | sja1105.h | 180 int pcp; member 188 u16 pcp; member
|
A D | sja1105_vl.c | 408 vl_lookup[k].vlanprior = rule->key.vl.pcp; in sja1105_init_virtual_links() 692 ipv = key->vl.pcp; in sja1105_vl_gate() 750 vl_lookup[i].vlanprior == key->vl.pcp) in sja1105_find_vlid()
|
/linux-6.3-rc2/lib/ |
A D | percpu_test.c | 5 #define CHECK(native, pcp, expected) \ argument 11 WARN(__this_cpu_read(pcp) != (expected), \ 13 __this_cpu_read(pcp), __this_cpu_read(pcp), \
|
/linux-6.3-rc2/net/dsa/ |
A D | tag_sja1105.c | 244 struct sk_buff *skb, u8 pcp) in sja1105_pvid_tag_control_pkt() argument 265 return vlan_insert_tag(skb, xmit_tpid, (pcp << VLAN_PRIO_SHIFT) | in sja1105_pvid_tag_control_pkt() 274 u8 pcp = netdev_txq_to_tc(netdev, queue_mapping); in sja1105_xmit() local 285 skb = sja1105_pvid_tag_control_pkt(dp, skb, pcp); in sja1105_xmit() 293 ((pcp << VLAN_PRIO_SHIFT) | tx_vid)); in sja1105_xmit() 302 u8 pcp = netdev_txq_to_tc(netdev, queue_mapping); in sja1110_xmit() local 317 ((pcp << VLAN_PRIO_SHIFT) | tx_vid)); in sja1110_xmit() 319 skb = sja1105_pvid_tag_control_pkt(dp, skb, pcp); in sja1110_xmit() 336 *tx_trailer = cpu_to_be32(SJA1110_TX_TRAILER_PRIO(pcp) | in sja1110_xmit()
|
A D | tag_ocelot_8021q.c | 68 u8 pcp = netdev_txq_to_tc(netdev, queue_mapping); in ocelot_xmit() local 76 ((pcp << VLAN_PRIO_SHIFT) | tx_vid)); in ocelot_xmit()
|
/linux-6.3-rc2/drivers/infiniband/ulp/opa_vnic/ |
A D | opa_vnic_encap.c | 371 u8 pcp = OPA_VNIC_VLAN_PCP(vlan_tci); in opa_vnic_get_sc() local 374 sc = info->vport.pcp_to_sc_mc[pcp]; in opa_vnic_get_sc() 376 sc = info->vport.pcp_to_sc_uc[pcp]; in opa_vnic_get_sc() 394 u8 pcp = skb_vlan_tag_get(skb) >> VLAN_PRIO_SHIFT; in opa_vnic_get_vl() local 397 vl = info->vport.pcp_to_vl_mc[pcp]; in opa_vnic_get_vl() 399 vl = info->vport.pcp_to_vl_uc[pcp]; in opa_vnic_get_vl()
|
/linux-6.3-rc2/drivers/net/ethernet/microchip/sparx5/ |
A D | sparx5_dcb.c | 150 pcp_map = &qos.pcp.map; in sparx5_dcb_app_update() 202 qos.pcp.qos_enable = true; in sparx5_dcb_app_update() 203 qos.pcp.dp_enable = qos.pcp.qos_enable; in sparx5_dcb_app_update()
|
A D | sparx5_port.c | 1158 sparx5_port_qos_pcp_set(port, &qos->pcp); in sparx5_port_qos_set() 1171 u8 pcp, dei; in sparx5_port_qos_pcp_rewr_set() local 1187 pcp = qos->map.map[i]; in sparx5_port_qos_pcp_rewr_set() 1188 if (pcp > SPARX5_PORT_QOS_PCP_COUNT) in sparx5_port_qos_pcp_rewr_set() 1201 spx5_rmw(REW_PCP_MAP_DE1_PCP_DE1_SET(pcp), in sparx5_port_qos_pcp_rewr_set() 1209 spx5_rmw(REW_PCP_MAP_DE0_PCP_DE0_SET(pcp), in sparx5_port_qos_pcp_rewr_set() 1227 u8 pcp, dp; in sparx5_port_qos_pcp_set() local 1238 pcp = *(pcp_itr + i); in sparx5_port_qos_pcp_set() 1240 spx5_rmw(ANA_CL_PCP_DEI_MAP_CFG_PCP_DEI_QOS_VAL_SET(pcp) | in sparx5_port_qos_pcp_set()
|
A D | sparx5_port.h | 150 struct sparx5_port_qos_pcp pcp; member
|
/linux-6.3-rc2/arch/sparc/kernel/ |
A D | pcic.c | 608 struct pcidev_cookie *pcp; in pcibios_fixup_bus() local 631 pcp = pci_devcookie_alloc(); in pcibios_fixup_bus() 632 pcp->pbm = &pcic->pbm; in pcibios_fixup_bus() 633 pcp->prom_node = of_find_node_by_phandle(node); in pcibios_fixup_bus() 634 dev->sysdata = pcp; in pcibios_fixup_bus()
|
/linux-6.3-rc2/drivers/net/ethernet/mscc/ |
A D | ocelot_vcap.c | 385 tag->pcp.value[0], tag->pcp.mask[0]); in is2_entry_set() 660 vcap_action_set(vcap, data, VCAP_IS1_ACT_PCP_VAL, a->pcp); in is1_action_set() 701 tag->pcp.value[0], tag->pcp.mask[0]); in is1_entry_set() 839 tag->pcp.value[0], tag->pcp.mask[0]); in es0_entry_set()
|
/linux-6.3-rc2/include/soc/mscc/ |
A D | ocelot_vcap.h | 499 struct ocelot_vcap_u8 pcp; /* PCP (3 bit) */ member 642 u8 pcp; member
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/ |
A D | core_acl_flex_actions.h | 73 u16 vid, u8 pcp, u8 et,
|