| /linux/net/core/ |
| H A D | gso.c | 17 struct packet_offload *ptype; in skb_eth_gso_segment() local 20 list_for_each_entry_rcu(ptype, &net_hotdata.offload_base, list) { in skb_eth_gso_segment() 21 if (ptype->type == type && ptype->callbacks.gso_segment) { in skb_eth_gso_segment() 22 segs = ptype->callbacks.gso_segment(skb, features); in skb_eth_gso_segment() 41 struct packet_offload *ptype; in skb_mac_gso_segment() local 51 list_for_each_entry_rcu(ptype, &net_hotdata.offload_base, list) { in skb_mac_gso_segment() 52 if (ptype->type == type && ptype->callbacks.gso_segment) { in skb_mac_gso_segment() 53 segs = ptype in skb_mac_gso_segment() [all...] |
| H A D | gro.c | 269 struct packet_offload *ptype; in gro_complete() local 283 list_for_each_entry_rcu(ptype, head, list) { in gro_complete() 284 if (ptype->type != type || !ptype->callbacks.gro_complete) in gro_complete() 287 err = INDIRECT_CALL_INET(ptype->callbacks.gro_complete, in gro_complete() 295 WARN_ON(&ptype->list == head); in gro_complete() 482 struct packet_offload *ptype; in dev_gro_receive() local 494 list_for_each_entry_rcu(ptype, head, list) { in dev_gro_receive() 495 if (ptype->type == type && ptype->callbacks.gro_receive) in dev_gro_receive() 529 pp = INDIRECT_CALL_INET(ptype->callbacks.gro_receive, in dev_gro_receive() 587 struct packet_offload *ptype; in gro_find_receive_by_type() local [all …]
|
| /linux/drivers/media/platform/qcom/venus/ |
| H A D | venc.c | 674 u32 ptype, rate_control, bitrate; in venc_set_properties() local 682 ptype = HFI_PROPERTY_CONFIG_FRAME_RATE; in venc_set_properties() 686 ret = hfi_session_set_property(inst, ptype, &frate); in venc_set_properties() 696 ptype = HFI_PROPERTY_PARAM_VENC_H264_VUI_TIMING_INFO; in venc_set_properties() 701 ret = hfi_session_set_property(inst, ptype, &info); in venc_set_properties() 705 ptype = HFI_PROPERTY_PARAM_VENC_H264_ENTROPY_CONTROL; in venc_set_properties() 711 ret = hfi_session_set_property(inst, ptype, &entropy); in venc_set_properties() 715 ptype = HFI_PROPERTY_PARAM_VENC_H264_DEBLOCK_CONTROL; in venc_set_properties() 722 ret = hfi_session_set_property(inst, ptype, &deblock); in venc_set_properties() 726 ptype = HFI_PROPERTY_PARAM_VENC_H264_TRANSFORM_8X8; in venc_set_properties() [all …]
|
| H A D | hfi_cmds.c | 391 void *cookie, u32 ptype) in pkt_session_get_property_1x() argument 393 switch (ptype) { in pkt_session_get_property_1x() 405 pkt->data = ptype; in pkt_session_get_property_1x() 411 void *cookie, u32 ptype, void *pdata) in pkt_session_set_property_1x() argument 425 pkt->data[0] = ptype; in pkt_session_set_property_1x() 427 switch (ptype) { in pkt_session_set_property_1x() 1099 void *cookie, u32 ptype) in pkt_session_get_property_3xx() argument 1111 switch (ptype) { in pkt_session_get_property_3xx() 1116 ret = pkt_session_get_property_1x(pkt, cookie, ptype); in pkt_session_get_property_3xx() 1125 void *cookie, u32 ptype, void *pdata) in pkt_session_set_property_3xx() argument [all …]
|
| /linux/drivers/cxl/ |
| H A D | security.c | 13 enum nvdimm_passphrase_type ptype) in cxl_pmem_get_security_flags() argument 41 if (ptype == NVDIMM_MASTER) { in cxl_pmem_get_security_flags() 70 enum nvdimm_passphrase_type ptype) in cxl_pmem_security_change_key() argument 79 .type = ptype == NVDIMM_MASTER ? CXL_PMEM_SEC_PASS_MASTER : in cxl_pmem_security_change_key() 96 enum nvdimm_passphrase_type ptype) in __cxl_pmem_security_disable() argument 105 .type = ptype == NVDIMM_MASTER ? CXL_PMEM_SEC_PASS_MASTER : in __cxl_pmem_security_disable() 169 enum nvdimm_passphrase_type ptype) in cxl_pmem_security_passphrase_erase() argument 179 .type = ptype == NVDIMM_MASTER ? CXL_PMEM_SEC_PASS_MASTER : in cxl_pmem_security_passphrase_erase()
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/ |
| H A D | gsp.c | 37 r570_gsp_xlat_mc_engine_idx(u32 mc_engine_idx, enum nvkm_subdev_type *ptype, int *pinst) in r570_gsp_xlat_mc_engine_idx() argument 41 *ptype = NVKM_SUBDEV_GSP; in r570_gsp_xlat_mc_engine_idx() 45 *ptype = NVKM_ENGINE_DISP; in r570_gsp_xlat_mc_engine_idx() 54 *ptype = NVKM_ENGINE_DISP; in r570_gsp_xlat_mc_engine_idx() 58 *ptype = NVKM_ENGINE_CE; in r570_gsp_xlat_mc_engine_idx() 62 *ptype = NVKM_ENGINE_GR; in r570_gsp_xlat_mc_engine_idx() 66 *ptype = NVKM_ENGINE_NVDEC; in r570_gsp_xlat_mc_engine_idx() 70 *ptype = NVKM_ENGINE_NVENC; in r570_gsp_xlat_mc_engine_idx() 74 *ptype = NVKM_ENGINE_NVJPG; in r570_gsp_xlat_mc_engine_idx() 78 *ptype = NVKM_ENGINE_OFA; in r570_gsp_xlat_mc_engine_idx()
|
| /linux/include/net/tc_act/ |
| H A D | tc_skbedit.h | 22 u16 ptype; member 73 u16 ptype; in tcf_skbedit_ptype() local 76 ptype = rcu_dereference(to_skbedit(a)->params)->ptype; in tcf_skbedit_ptype() 79 return ptype; in tcf_skbedit_ptype()
|
| /linux/net/ipv4/ |
| H A D | gre_offload.c | 131 struct packet_offload *ptype; in gre_gro_receive() local 164 ptype = gro_find_receive_by_type(type); in gre_gro_receive() 165 if (!ptype) in gre_gro_receive() 227 pp = call_gro_receive(ptype->callbacks.gro_receive, head, skb); in gre_gro_receive() 239 struct packet_offload *ptype; in gre_gro_complete() local 254 ptype = gro_find_complete_by_type(type); in gre_gro_complete() 255 if (ptype) in gre_gro_complete() 256 err = ptype->callbacks.gro_complete(skb, nhoff + grehlen); in gre_gro_complete()
|
| /linux/kernel/trace/ |
| H A D | trace_probe.h | 201 #define __ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, str, _fmttype) \ argument 206 .print = PRINT_TYPE_FUNC_NAME(ptype), \ 207 .fmt = PRINT_TYPE_FMT_NAME(ptype), \ 212 #define _ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, _fmttype) \ argument 213 __ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, 0, #_fmttype) 214 #define ASSIGN_FETCH_TYPE(ptype, ftype, sign) \ argument 215 _ASSIGN_FETCH_TYPE(#ptype, ptype, ftype, sizeof(ftype), sign, ptype) 218 #define ASSIGN_FETCH_TYPE_ALIAS(ptype, atype, ftype, sign) \ argument 219 _ASSIGN_FETCH_TYPE(#ptype, ptype, ftype, sizeof(ftype), sign, atype) 525 extern int traceprobe_set_print_fmt(struct trace_probe *tp, enum probe_print_type ptype);
|
| /linux/fs/affs/ |
| H A D | amigaffs.h | 51 __be32 ptype; member 78 __be32 ptype; member 108 __be32 ptype; member 117 __be32 ptype; member
|
| /linux/net/ethernet/ |
| H A D | eth.c | 392 const struct packet_offload *ptype; in eth_gro_receive() local 421 ptype = gro_find_receive_by_type(type); in eth_gro_receive() 422 if (ptype == NULL) { in eth_gro_receive() 430 pp = indirect_call_gro_receive_inet(ptype->callbacks.gro_receive, in eth_gro_receive() 445 struct packet_offload *ptype; in eth_gro_complete() local 451 ptype = gro_find_complete_by_type(type); in eth_gro_complete() 452 if (ptype != NULL) in eth_gro_complete() 453 err = INDIRECT_CALL_INET(ptype->callbacks.gro_complete, in eth_gro_complete()
|
| /linux/arch/powerpc/perf/ |
| H A D | power6-pmu.c | 139 int pmc, psel, ptype; in power6_marked_instr_event() local 150 ptype = direct_event_is_marked[psel]; in power6_marked_instr_event() 151 if (pmc == 0 || !(ptype & (1 << (pmc - 1)))) in power6_marked_instr_event() 153 ptype >>= 4; in power6_marked_instr_event() 154 if (ptype == 0) in power6_marked_instr_event() 156 if (ptype == 1) in power6_marked_instr_event() 159 bit = ptype ^ (pmc - 1); in power6_marked_instr_event()
|
| /linux/net/sched/ |
| H A D | act_skbedit.c | 84 skb->pkt_type = params->ptype; in tcf_skbedit_act() 127 u16 *queue_mapping = NULL, *ptype = NULL; in tcf_skbedit_init() 160 ptype = nla_data(tb[TCA_SKBEDIT_PTYPE]); in tcf_skbedit_init() 161 if (!skb_pkt_type_ok(*ptype)) in tcf_skbedit_init() 260 params_new->ptype = *ptype; in tcf_skbedit_init() 316 nla_put_u16(skb, TCA_SKBEDIT_PTYPE, params->ptype)) in tcf_skbedit_dump() 381 entry->ptype = tcf_skbedit_ptype(act); in tcf_skbedit_offload_act_setup() 128 u16 *queue_mapping = NULL, *ptype = NULL; tcf_skbedit_init() local
|
| H A D | act_gact.c | 90 if (p_parm->ptype >= MAX_RAND) in tcf_gact_init() 140 gact->tcfg_ptype = p_parm->ptype; in tcf_gact_init() 163 u32 ptype = READ_ONCE(gact->tcfg_ptype); in tcf_gact_act() local 165 if (ptype) in tcf_gact_act() 166 action = gact_rand[ptype](gact); in tcf_gact_act() 211 .ptype = gact->tcfg_ptype, in tcf_gact_dump()
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_dcb.c | 203 u8 *ptype) in ixgbe_dcb_unpack_prio() argument 209 ptype[tc] = tc_config[tc].path[direction].prio_type; in ixgbe_dcb_unpack_prio() 254 u8 ptype[MAX_TRAFFIC_CLASS]; in ixgbe_dcb_hw_config() local 265 ixgbe_dcb_unpack_prio(dcb_config, DCB_TX_CONFIG, ptype); in ixgbe_dcb_hw_config() 271 bwgid, ptype); in ixgbe_dcb_hw_config() 278 bwgid, ptype, prio_tc); in ixgbe_dcb_hw_config()
|
| /linux/drivers/net/ethernet/intel/ice/virt/ |
| H A D | rss.c | 429 u16 ptype = -1; in ice_vc_validate_pattern() local 436 ptype = ICE_PTYPE_MAC_PAY; in ice_vc_validate_pattern() 439 ptype = ICE_PTYPE_IPV4_PAY; in ice_vc_validate_pattern() 443 ptype = ICE_PTYPE_IPV6_PAY; in ice_vc_validate_pattern() 448 ptype = ICE_PTYPE_IPV4_UDP_PAY; in ice_vc_validate_pattern() 450 ptype = ICE_PTYPE_IPV6_UDP_PAY; in ice_vc_validate_pattern() 455 ptype = ICE_PTYPE_IPV4_TCP_PAY; in ice_vc_validate_pattern() 457 ptype = ICE_PTYPE_IPV6_TCP_PAY; in ice_vc_validate_pattern() 461 ptype = ICE_PTYPE_IPV4_SCTP_PAY; in ice_vc_validate_pattern() 463 ptype = ICE_PTYPE_IPV6_SCTP_PAY; in ice_vc_validate_pattern() [all …]
|
| /linux/net/8021q/ |
| H A D | vlan_core.c | 467 const struct packet_offload *ptype; in vlan_gro_receive() local 485 ptype = gro_find_receive_by_type(type); in vlan_gro_receive() 486 if (!ptype) in vlan_gro_receive() 505 pp = indirect_call_gro_receive_inet(ptype->callbacks.gro_receive, in vlan_gro_receive() 519 struct packet_offload *ptype; in vlan_gro_complete() local 522 ptype = gro_find_complete_by_type(type); in vlan_gro_complete() 523 if (ptype) in vlan_gro_complete() 524 err = INDIRECT_CALL_INET(ptype->callbacks.gro_complete, in vlan_gro_complete()
|
| /linux/include/linux/ |
| H A D | bpf-netns.h | 33 int netns_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype); 50 enum bpf_prog_type ptype) in netns_bpf_prog_detach() argument
|
| /linux/rust/macros/ |
| H A D | module.rs | 118 let param_type_str = param.ptype.to_string(); in emit_params() 135 let param_type = ¶m.ptype; in emit_params() 339 ptype: Ident, in module() 348 let ptype = input.parse()?; in module() 361 ptype, in module() 215 ptype: String, global() field
|
| /linux/net/nfc/ |
| H A D | llcp_core.c | 809 u8 ptype = nfc_llcp_ptype(skb); in nfc_llcp_tx_work() local 816 if (ptype == LLCP_PDU_I) in nfc_llcp_tx_work() 832 if (ptype == LLCP_PDU_I && copy_skb) in nfc_llcp_tx_work() 1102 u8 dsap, ssap, ptype, ns, nr; in nfc_llcp_recv_hdlc() local 1107 ptype = nfc_llcp_ptype(skb); in nfc_llcp_recv_hdlc() 1130 if (ptype == LLCP_PDU_I) { in nfc_llcp_recv_hdlc() 1176 if (ptype == LLCP_PDU_RR) in nfc_llcp_recv_hdlc() 1178 else if (ptype == LLCP_PDU_RNR) in nfc_llcp_recv_hdlc() 1181 if (nfc_llcp_queue_i_frames(llcp_sock) == 0 && ptype == LLCP_PDU_I) in nfc_llcp_recv_hdlc() 1495 u8 ptype; in nfc_llcp_recv_agf() local [all …]
|
| /linux/drivers/net/ethernet/wangxun/txgbe/ |
| H A D | txgbe_fdir.c | 225 void txgbe_atr(struct wx_ring *ring, struct wx_tx_buffer *first, u8 ptype) in txgbe_atr() argument 243 dptype = wx_decode_ptype(ptype); in txgbe_atr() 245 if (WX_PTYPE_TYPL4(ptype) != WX_PTYPE_TYP_TCP) in txgbe_atr() 250 if (WX_PTYPE_PKT(ptype) != WX_PTYPE_PKT_IP || in txgbe_atr() 251 WX_PTYPE_TYPL4(ptype) != WX_PTYPE_TYP_TCP) in txgbe_atr() 274 input.formatted.vlan_id = htons((u16)ptype); in txgbe_atr() 287 if (WX_PTYPE_PKT_IPV6 & WX_PTYPE_PKT(ptype)) { in txgbe_atr()
|
| /linux/drivers/net/ppp/ |
| H A D | pppoe.c | 1125 const struct packet_offload *ptype; in pppoe_gro_receive() local 1148 ptype = gro_find_receive_by_type(type); in pppoe_gro_receive() 1149 if (!ptype) in pppoe_gro_receive() 1168 pp = indirect_call_gro_receive_inet(ptype->callbacks.gro_receive, in pppoe_gro_receive() 1182 struct packet_offload *ptype; in pppoe_gro_complete() local 1185 ptype = gro_find_complete_by_type(type); in pppoe_gro_complete() 1186 if (!ptype) in pppoe_gro_complete() 1193 return INDIRECT_CALL_INET(ptype->callbacks.gro_complete, in pppoe_gro_complete() 1202 struct packet_offload *ptype; in pppoe_gso_segment() local 1215 ptype = gro_find_complete_by_type(type); in pppoe_gso_segment() [all …]
|
| /linux/drivers/net/ethernet/google/gve/ |
| H A D | gve_rx_dqo.c | 447 struct gve_ptype ptype) in gve_rx_skb_csum() 455 if (ptype.l3_type == GVE_L3_TYPE_IPV4) { in gve_rx_skb_csum() 458 } else if (ptype.l3_type == GVE_L3_TYPE_IPV6) { in gve_rx_skb_csum() 467 switch (ptype.l4_type) { in gve_rx_skb_csum() 481 struct gve_ptype ptype) in gve_rx_skb_hash() 485 if (ptype.l4_type != GVE_L4_TYPE_UNKNOWN) in gve_rx_skb_hash() 487 else if (ptype.l3_type != GVE_L3_TYPE_UNKNOWN) 1005 struct gve_ptype ptype) in gve_rx_complete_rsc() 1013 if (ptype.l4_type != GVE_L4_TYPE_TCP) in gve_rx_complete_rsc() 1020 switch (ptype in gve_rx_complete_rsc() 441 gve_rx_skb_csum(struct sk_buff * skb,const struct gve_rx_compl_desc_dqo * desc,struct gve_ptype ptype) gve_rx_skb_csum() argument 475 gve_rx_skb_hash(struct sk_buff * skb,const struct gve_rx_compl_desc_dqo * compl_desc,struct gve_ptype ptype) gve_rx_skb_hash() argument 994 gve_rx_complete_rsc(struct sk_buff * skb,const struct gve_rx_compl_desc_dqo * desc,struct gve_ptype ptype) gve_rx_complete_rsc() argument 1053 struct gve_ptype ptype = gve_rx_complete_skb() local [all...] |
| /linux/drivers/net/ethernet/wangxun/libwx/ |
| H A D | wx_lib.c | 155 struct wx_dec_ptype wx_decode_ptype(const u8 ptype) in wx_decode_ptype() argument 157 return wx_ptype_lookup[ptype]; in wx_decode_ptype() 1239 u8 tun_prot = 0, l4_prot = 0, ptype = 0; in wx_encode_tx_desc_ptype() local 1250 ptype = WX_PTYPE_TUN_IPV4; in wx_encode_tx_desc_ptype() 1258 ptype = WX_PTYPE_TUN_IPV6; in wx_encode_tx_desc_ptype() 1261 return ptype; in wx_encode_tx_desc_ptype() 1266 ptype |= WX_PTYPE_PKT_IPIP; in wx_encode_tx_desc_ptype() 1271 ptype |= WX_PTYPE_PKT_IG; in wx_encode_tx_desc_ptype() 1275 ptype |= WX_PTYPE_PKT_IGMV; in wx_encode_tx_desc_ptype() 1277 ptype |= WX_PTYPE_PKT_IGM; in wx_encode_tx_desc_ptype() [all …]
|
| /linux/drivers/acpi/nfit/ |
| H A D | intel.c | 54 enum nvdimm_passphrase_type ptype) in intel_security_flags() argument 80 if (nvdimm_in_overwrite(nvdimm) && ptype == NVDIMM_USER) in intel_security_flags() 91 if (ptype == NVDIMM_MASTER) { in intel_security_flags() 148 enum nvdimm_passphrase_type ptype) in intel_security_change_key() argument 151 unsigned int cmd = ptype == NVDIMM_MASTER ? in intel_security_change_key() 269 enum nvdimm_passphrase_type ptype) in intel_security_erase() argument 273 unsigned int cmd = ptype == NVDIMM_MASTER ? in intel_security_erase()
|