Home
last modified time | relevance | path

Searched refs:pcp (Results 1 – 25 of 32) sorted by relevance

12

/linux/include/asm-generic/
A Dpercpu.h77 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/arch/s390/include/asm/
A Dpercpu.h44 #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/arch/x86/include/asm/
A Dpercpu.h228 #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/include/linux/
A Dpercpu-defs.h433 #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/arch/arm64/include/asm/
A Dpercpu.h163 typeof(pcp) __retval; \
165 __retval = (typeof(pcp))op(raw_cpu_ptr(&(pcp)), ##args); \
170 #define this_cpu_read_1(pcp) \ argument
172 #define this_cpu_read_2(pcp) \ argument
174 #define this_cpu_read_4(pcp) \ argument
176 #define this_cpu_read_8(pcp) \ argument
188 #define this_cpu_add_1(pcp, val) \ argument
190 #define this_cpu_add_2(pcp, val) \ argument
192 #define this_cpu_add_4(pcp, val) \ argument
194 #define this_cpu_add_8(pcp, val) \ argument
[all …]
/linux/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/
A Dpercpu.h31 #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/Documentation/core-api/
A Dthis_cpu_ops.rst48 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/mm/
A Dvmstat.c362 t = __this_cpu_read(pcp->stat_threshold); in __mod_zone_page_state()
589 t = this_cpu_read(pcp->stat_threshold); in mod_zone_state()
843 __this_cpu_write(pcp->expire, 3); in refresh_cpu_vm_stats()
858 if (!__this_cpu_read(pcp->expire) || in refresh_cpu_vm_stats()
859 !__this_cpu_read(pcp->count)) in refresh_cpu_vm_stats()
866 __this_cpu_write(pcp->expire, 0); in refresh_cpu_vm_stats()
873 if (__this_cpu_read(pcp->count)) { in refresh_cpu_vm_stats()
1712 struct per_cpu_pages *pcp; in zoneinfo_show_print() local
1722 pcp->count, in zoneinfo_show_print()
1723 pcp->high, in zoneinfo_show_print()
[all …]
A Dpage_alloc.c1505 pcp->count -= nr_freed; in free_pcppages_bulk()
3093 if (pcp->count) in drain_pages_zone()
3094 free_pcppages_bulk(zone, pcp->count, pcp); in drain_pages_zone()
3206 if (pcp->count) in __drain_all_pages()
3211 if (pcp->count) { in __drain_all_pages()
3335 pcp->free_factor++; in nr_pcp_free()
3375 free_pcppages_bulk(zone, nr_pcp_free(pcp, high, batch), pcp); in free_unref_page_commit()
3652 pcp->free_factor >>= 1; in rmqueue_pcplist()
5286 pcp, pcp_list); in __alloc_pages_bulk()
6891 memset(pcp, 0, sizeof(*pcp)); in per_cpu_pages_init()
[all …]
/linux/drivers/net/dsa/sja1105/
A Dsja1105_flower.c123 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()
444 int index = (port * SJA1105_NUM_TC) + rule->key.tc.pcp; in sja1105_cls_flower_del()
A Dsja1105.h178 int pcp; member
186 u16 pcp; member
A Dsja1105_vl.c395 vl_lookup[k].vlanprior = rule->key.vl.pcp; in sja1105_init_virtual_links()
678 ipv = key->vl.pcp; in sja1105_vl_gate()
736 vl_lookup[i].vlanprior == key->vl.pcp) in sja1105_find_vlid()
/linux/lib/
A Dpercpu_test.c5 #define CHECK(native, pcp, expected) \ argument
11 WARN(__this_cpu_read(pcp) != (expected), \
13 __this_cpu_read(pcp), __this_cpu_read(pcp), \
/linux/net/dsa/
A Dtag_sja1105.c209 struct sk_buff *skb, u8 pcp) in sja1105_pvid_tag_control_pkt() argument
230 return vlan_insert_tag(skb, xmit_tpid, (pcp << VLAN_PRIO_SHIFT) | in sja1105_pvid_tag_control_pkt()
239 u8 pcp = netdev_txq_to_tc(netdev, queue_mapping); in sja1105_xmit() local
250 skb = sja1105_pvid_tag_control_pkt(dp, skb, pcp); in sja1105_xmit()
258 ((pcp << VLAN_PRIO_SHIFT) | tx_vid)); in sja1105_xmit()
267 u8 pcp = netdev_txq_to_tc(netdev, queue_mapping); in sja1110_xmit() local
282 ((pcp << VLAN_PRIO_SHIFT) | tx_vid)); in sja1110_xmit()
284 skb = sja1105_pvid_tag_control_pkt(dp, skb, pcp); in sja1110_xmit()
301 *tx_trailer = cpu_to_be32(SJA1110_TX_TRAILER_PRIO(pcp) | in sja1110_xmit()
A Dtag_ocelot_8021q.c43 u8 pcp = netdev_txq_to_tc(netdev, queue_mapping); in ocelot_xmit() local
51 ((pcp << VLAN_PRIO_SHIFT) | tx_vid)); in ocelot_xmit()
/linux/drivers/infiniband/ulp/opa_vnic/
A Dopa_vnic_encap.c371 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/arch/sparc/kernel/
A Dpcic.c608 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/drivers/net/ethernet/mscc/
A Docelot_vcap.c385 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()
703 tag->pcp.value[0], tag->pcp.mask[0]); in is1_entry_set()
843 tag->pcp.value[0], tag->pcp.mask[0]); in es0_entry_set()
A Docelot_flower.c168 filter->action.pcp = a->vlan.prio; in ocelot_flower_parse_ingress_vlan_modify()
653 filter->vlan.pcp.value[0] = match.key->vlan_priority; in ocelot_flower_parse_key()
654 filter->vlan.pcp.mask[0] = match.mask->vlan_priority; in ocelot_flower_parse_key()
/linux/include/soc/mscc/
A Docelot_vcap.h485 struct ocelot_vcap_u8 pcp; /* PCP (3 bit) */ member
628 u8 pcp; member
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dcore_acl_flex_actions.h73 u16 vid, u8 pcp, u8 et,
A Dcore_acl_flex_actions.c1121 MLXSW_ITEM32(afa, vlan, pcp, 0x08, 8, 3);
1127 enum mlxsw_afa_vlan_cmd pcp_cmd, u8 pcp, in mlxsw_afa_vlan_pack() argument
1134 mlxsw_afa_vlan_pcp_set(payload, pcp); in mlxsw_afa_vlan_pack()
1140 u16 vid, u8 pcp, u8 et, in mlxsw_afa_block_append_vlan_modify() argument
1153 MLXSW_AFA_VLAN_CMD_SET_OUTER, pcp, in mlxsw_afa_block_append_vlan_modify()
/linux/drivers/net/ethernet/microsoft/mana/
A Dmana.h117 u32 pcp : 3; /* 802.1Q */ member
/linux/drivers/net/ethernet/freescale/dpaa2/
A Ddpsw.c426 dpsw_set_field(tmp_conf, PCP, cfg->pcp); in dpsw_if_set_tci()
465 cfg->pcp = rsp_params->pcp; in dpsw_if_get_tci()
A Ddpsw-cmd.h247 u8 pcp; member

Completed in 68 milliseconds

12