Home
last modified time | relevance | path

Searched refs:ptype (Results 1 – 25 of 137) sorted by relevance

123456

/linux/net/core/
H A Dgso.c17 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->callbacks.gso_segment(skb, features); in skb_mac_gso_segment()
H A Dgro.c257 struct packet_offload *ptype; in gro_complete() local
269 list_for_each_entry_rcu(ptype, head, list) { in gro_complete()
270 if (ptype->type != type || !ptype->callbacks.gro_complete) in gro_complete()
273 err = INDIRECT_CALL_INET(ptype->callbacks.gro_complete, in gro_complete()
281 WARN_ON(&ptype->list == head); in gro_complete()
468 struct packet_offload *ptype; in dev_gro_receive() local
480 list_for_each_entry_rcu(ptype, head, list) { in dev_gro_receive()
481 if (ptype->type == type && ptype->callbacks.gro_receive) in dev_gro_receive()
515 pp = INDIRECT_CALL_INET(ptype->callbacks.gro_receive, in dev_gro_receive()
573 struct packet_offload *ptype; in gro_find_receive_by_type() local
[all …]
/linux/drivers/net/ethernet/intel/ice/virt/
H A Drss.c175 u16 ptype = -1; in ice_vc_validate_pattern() local
182 ptype = ICE_PTYPE_MAC_PAY; in ice_vc_validate_pattern()
185 ptype = ICE_PTYPE_IPV4_PAY; in ice_vc_validate_pattern()
189 ptype = ICE_PTYPE_IPV6_PAY; in ice_vc_validate_pattern()
194 ptype = ICE_PTYPE_IPV4_UDP_PAY; in ice_vc_validate_pattern()
196 ptype = ICE_PTYPE_IPV6_UDP_PAY; in ice_vc_validate_pattern()
201 ptype = ICE_PTYPE_IPV4_TCP_PAY; in ice_vc_validate_pattern()
203 ptype = ICE_PTYPE_IPV6_TCP_PAY; in ice_vc_validate_pattern()
207 ptype = ICE_PTYPE_IPV4_SCTP_PAY; in ice_vc_validate_pattern()
209 ptype = ICE_PTYPE_IPV6_SCTP_PAY; in ice_vc_validate_pattern()
[all …]
/linux/drivers/media/platform/qcom/iris/
H A Diris_hfi_gen1_command.c135 u32 ptype) in iris_hfi_gen1_packet_session_cmd() argument
138 packet->shdr.hdr.pkt_type = ptype; in iris_hfi_gen1_packet_session_cmd()
482 struct iris_inst *inst, u32 ptype, void *pdata) in iris_hfi_gen1_packet_session_set_property() argument
490 packet->data[0] = ptype; in iris_hfi_gen1_packet_session_set_property()
492 switch (ptype) { in iris_hfi_gen1_packet_session_set_property()
732 u32 ptype = HFI_PROPERTY_PARAM_FRAME_SIZE; in iris_hfi_gen1_set_resolution() local
741 ret = hfi_gen1_set_property(inst, ptype, &fs, sizeof(fs)); in iris_hfi_gen1_set_resolution()
753 return hfi_gen1_set_property(inst, ptype, &fs, sizeof(fs)); in iris_hfi_gen1_set_resolution()
758 const u32 ptype = HFI_PROPERTY_CONFIG_VIDEOCORES_USAGE; in iris_hfi_gen1_decide_core() local
763 return hfi_gen1_set_property(inst, ptype, &cu, sizeof(cu)); in iris_hfi_gen1_decide_core()
[all …]
/linux/drivers/media/platform/qcom/venus/
H A Dvenc.c673 u32 ptype, rate_control, bitrate; in venc_set_properties() local
681 ptype = HFI_PROPERTY_CONFIG_FRAME_RATE; in venc_set_properties()
685 ret = hfi_session_set_property(inst, ptype, &frate); in venc_set_properties()
695 ptype = HFI_PROPERTY_PARAM_VENC_H264_VUI_TIMING_INFO; in venc_set_properties()
700 ret = hfi_session_set_property(inst, ptype, &info); in venc_set_properties()
704 ptype = HFI_PROPERTY_PARAM_VENC_H264_ENTROPY_CONTROL; in venc_set_properties()
710 ret = hfi_session_set_property(inst, ptype, &entropy); in venc_set_properties()
714 ptype = HFI_PROPERTY_PARAM_VENC_H264_DEBLOCK_CONTROL; in venc_set_properties()
721 ret = hfi_session_set_property(inst, ptype, &deblock); in venc_set_properties()
725 ptype = HFI_PROPERTY_PARAM_VENC_H264_TRANSFORM_8X8; in venc_set_properties()
[all …]
H A Dhfi_cmds.c391 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 …]
H A Dvenc_ctrls.c77 u32 ptype = HFI_PROPERTY_CONFIG_VENC_TARGET_BITRATE; in dynamic_bitrate_update() local
80 ret = hfi_session_set_property(inst, ptype, &brate); in dynamic_bitrate_update()
95 u32 ptype; in venc_op_s_ctrl() local
227 ptype = HFI_PROPERTY_CONFIG_VENC_SYNC_FRAME_SEQUENCE_HEADER; in venc_op_s_ctrl()
228 ret = hfi_session_set_property(inst, ptype, &en); in venc_op_s_ctrl()
264 ptype = HFI_PROPERTY_CONFIG_VENC_REQUEST_SYNC_FRAME; in venc_op_s_ctrl()
265 ret = hfi_session_set_property(inst, ptype, &en); in venc_op_s_ctrl()
295 ptype = HFI_PROPERTY_CONFIG_VENC_MARKLTRFRAME; in venc_op_s_ctrl()
297 ret = hfi_session_set_property(inst, ptype, &ltr_mark); in venc_op_s_ctrl()
308 ptype = HFI_PROPERTY_CONFIG_VENC_USELTRFRAME; in venc_op_s_ctrl()
[all …]
H A Dhelpers.c670 u32 ptype = HFI_PROPERTY_CONFIG_BUFFER_REQUIREMENTS; in venus_helper_get_bufreq() local
688 ret = hfi_session_get_property(inst, ptype, &hprop); in venus_helper_get_bufreq()
920 const u32 ptype = HFI_PROPERTY_PARAM_PROFILE_LEVEL_CURRENT; in venus_helper_get_profile_level() local
924 ret = hfi_session_get_property(inst, ptype, &hprop); in venus_helper_get_profile_level()
936 const u32 ptype = HFI_PROPERTY_PARAM_PROFILE_LEVEL_CURRENT; in venus_helper_set_profile_level() local
941 return hfi_session_set_property(inst, ptype, &pl); in venus_helper_set_profile_level()
1126 u32 ptype = HFI_PROPERTY_PARAM_FRAME_SIZE; in venus_helper_set_input_resolution() local
1133 return hfi_session_set_property(inst, ptype, &fs); in venus_helper_set_input_resolution()
1141 u32 ptype = HFI_PROPERTY_PARAM_FRAME_SIZE; in venus_helper_set_output_resolution() local
1148 return hfi_session_set_property(inst, ptype, &fs); in venus_helper_set_output_resolution()
[all …]
H A Dhfi.h133 int (*session_set_property)(struct venus_inst *inst, u32 ptype,
135 int (*session_get_property)(struct venus_inst *inst, u32 ptype);
169 int hfi_session_get_property(struct venus_inst *inst, u32 ptype,
171 int hfi_session_set_property(struct venus_inst *inst, u32 ptype, void *pdata);
/linux/drivers/cxl/
H A Dsecurity.c13 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/acpi/dptf/
H A Ddptf_power.c123 unsigned long long ptype; in dptf_participant_type() local
126 status = acpi_evaluate_integer(handle, "PTYP", NULL, &ptype); in dptf_participant_type()
130 return ptype; in dptf_participant_type()
176 unsigned long long ptype; in dptf_power_add() local
183 ptype = dptf_participant_type(acpi_dev->handle); in dptf_power_add()
184 if (ptype == 0x11) in dptf_power_add()
186 else if (ptype == 0x0C) in dptf_power_add()
H A Ddptf_pch_fivr.c122 unsigned long long ptype; in pch_fivr_add() local
130 status = acpi_evaluate_integer(acpi_dev->handle, "PTYP", NULL, &ptype); in pch_fivr_add()
131 if (ACPI_FAILURE(status) || ptype != 0x05) in pch_fivr_add()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/
H A Dgsp.c36 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
40 *ptype = NVKM_SUBDEV_GSP; in r570_gsp_xlat_mc_engine_idx()
44 *ptype = NVKM_ENGINE_DISP; in r570_gsp_xlat_mc_engine_idx()
48 *ptype = NVKM_ENGINE_CE; in r570_gsp_xlat_mc_engine_idx()
52 *ptype = NVKM_ENGINE_GR; in r570_gsp_xlat_mc_engine_idx()
56 *ptype = NVKM_ENGINE_NVDEC; in r570_gsp_xlat_mc_engine_idx()
60 *ptype = NVKM_ENGINE_NVENC; in r570_gsp_xlat_mc_engine_idx()
64 *ptype = NVKM_ENGINE_NVJPG; in r570_gsp_xlat_mc_engine_idx()
68 *ptype = NVKM_ENGINE_OFA; in r570_gsp_xlat_mc_engine_idx()
/linux/include/net/tc_act/
H A Dtc_skbedit.h22 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/kernel/trace/
H A Dtrace_probe.h190 #define __ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, str, _fmttype) \ argument
195 .print = PRINT_TYPE_FUNC_NAME(ptype), \
196 .fmt = PRINT_TYPE_FMT_NAME(ptype), \
201 #define _ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, _fmttype) \ argument
202 __ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, 0, #_fmttype)
203 #define ASSIGN_FETCH_TYPE(ptype, ftype, sign) \ argument
204 _ASSIGN_FETCH_TYPE(#ptype, ptype, ftype, sizeof(ftype), sign, ptype)
207 #define ASSIGN_FETCH_TYPE_ALIAS(ptype, atype, ftype, sign) \ argument
208 _ASSIGN_FETCH_TYPE(#ptype, ptype, ftype, sizeof(ftype), sign, atype)
467 extern int traceprobe_set_print_fmt(struct trace_probe *tp, enum probe_print_type ptype);
/linux/net/ipv4/
H A Dgre_offload.c131 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/fs/affs/
H A Damigaffs.h51 __be32 ptype; member
78 __be32 ptype; member
108 __be32 ptype; member
117 __be32 ptype; member
/linux/net/ethernet/
H A Deth.c395 const struct packet_offload *ptype; in eth_gro_receive() local
424 ptype = gro_find_receive_by_type(type); in eth_gro_receive()
425 if (ptype == NULL) { in eth_gro_receive()
433 pp = indirect_call_gro_receive_inet(ptype->callbacks.gro_receive, in eth_gro_receive()
448 struct packet_offload *ptype; in eth_gro_complete() local
454 ptype = gro_find_complete_by_type(type); in eth_gro_complete()
455 if (ptype != NULL) in eth_gro_complete()
456 err = INDIRECT_CALL_INET(ptype->callbacks.gro_complete, in eth_gro_complete()
/linux/arch/powerpc/perf/
H A Dpower6-pmu.c139 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 Dact_skbedit.c85 skb->pkt_type = params->ptype; in tcf_skbedit_act()
128 u16 *queue_mapping = NULL, *ptype = NULL; in tcf_skbedit_init() local
161 ptype = nla_data(tb[TCA_SKBEDIT_PTYPE]); in tcf_skbedit_init()
162 if (!skb_pkt_type_ok(*ptype)) in tcf_skbedit_init()
257 params_new->ptype = *ptype; in tcf_skbedit_init()
313 nla_put_u16(skb, TCA_SKBEDIT_PTYPE, params->ptype)) in tcf_skbedit_dump()
378 entry->ptype = tcf_skbedit_ptype(act); in tcf_skbedit_offload_act_setup()
H A Dact_gact.c90 if (p_parm->ptype >= MAX_RAND) in tcf_gact_init()
135 gact->tcfg_ptype = p_parm->ptype; in tcf_gact_init()
158 u32 ptype = READ_ONCE(gact->tcfg_ptype); in tcf_gact_act() local
160 if (ptype) in tcf_gact_act()
161 action = gact_rand[ptype](gact); in tcf_gact_act()
206 .ptype = gact->tcfg_ptype, in tcf_gact_dump()
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_dcb.c203 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/net/8021q/
H A Dvlan_core.c467 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 Dbpf-netns.h33 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/net/nfc/
H A Dllcp_core.c780 u8 ptype = nfc_llcp_ptype(skb); in nfc_llcp_tx_work() local
787 if (ptype == LLCP_PDU_I) in nfc_llcp_tx_work()
803 if (ptype == LLCP_PDU_I && copy_skb) in nfc_llcp_tx_work()
1071 u8 dsap, ssap, ptype, ns, nr; in nfc_llcp_recv_hdlc() local
1073 ptype = nfc_llcp_ptype(skb); in nfc_llcp_recv_hdlc()
1095 if (ptype == LLCP_PDU_I) { in nfc_llcp_recv_hdlc()
1141 if (ptype == LLCP_PDU_RR) in nfc_llcp_recv_hdlc()
1143 else if (ptype == LLCP_PDU_RNR) in nfc_llcp_recv_hdlc()
1146 if (nfc_llcp_queue_i_frames(llcp_sock) == 0 && ptype == LLCP_PDU_I) in nfc_llcp_recv_hdlc()
1410 u8 ptype; in nfc_llcp_recv_agf() local
[all …]

123456