Searched refs:pkt (Results 1 - 25 of 414) sorted by relevance

1234567891011>>

/linux-master/include/net/netfilter/
H A Dnf_tables_ipv4.h8 static inline void nft_set_pktinfo_ipv4(struct nft_pktinfo *pkt) argument
12 ip = ip_hdr(pkt->skb);
13 pkt->flags = NFT_PKTINFO_L4PROTO;
14 pkt->tprot = ip->protocol;
15 pkt->thoff = ip_hdrlen(pkt->skb);
16 pkt->fragoff = ntohs(ip->frag_off) & IP_OFFSET;
19 static inline int __nft_set_pktinfo_ipv4_validate(struct nft_pktinfo *pkt) argument
24 iph = skb_header_pointer(pkt->skb, skb_network_offset(pkt
49 nft_set_pktinfo_ipv4_validate(struct nft_pktinfo *pkt) argument
55 nft_set_pktinfo_ipv4_ingress(struct nft_pktinfo *pkt) argument
[all...]
H A Dnf_tables_ipv6.h9 static inline void nft_set_pktinfo_ipv6(struct nft_pktinfo *pkt) argument
15 protohdr = ipv6_find_hdr(pkt->skb, &thoff, -1, &frag_off, &flags);
17 nft_set_pktinfo_unspec(pkt);
21 pkt->flags = NFT_PKTINFO_L4PROTO;
22 pkt->tprot = protohdr;
23 pkt->thoff = thoff;
24 pkt->fragoff = frag_off;
27 static inline int __nft_set_pktinfo_ipv6_validate(struct nft_pktinfo *pkt) argument
37 ip6h = skb_header_pointer(pkt->skb, skb_network_offset(pkt
64 nft_set_pktinfo_ipv6_validate(struct nft_pktinfo *pkt) argument
70 nft_set_pktinfo_ipv6_ingress(struct nft_pktinfo *pkt) argument
[all...]
H A Dnf_dup_netdev.h7 void nf_dup_netdev_egress(const struct nft_pktinfo *pkt, int oif);
8 void nf_fwd_netdev_egress(const struct nft_pktinfo *pkt, int oif);
/linux-master/include/net/caif/
H A Dcfpkt.h21 * pkt Packet to be destoyed.
23 void cfpkt_destroy(struct cfpkt *pkt);
28 * pkt Packet to extract header data from.
33 int cfpkt_extr_head(struct cfpkt *pkt, void *data, u16 len);
35 static inline u8 cfpkt_extr_head_u8(struct cfpkt *pkt) argument
39 cfpkt_extr_head(pkt, &tmp, 1);
44 static inline u16 cfpkt_extr_head_u16(struct cfpkt *pkt) argument
48 cfpkt_extr_head(pkt, &tmp, 2);
53 static inline u32 cfpkt_extr_head_u32(struct cfpkt *pkt) argument
57 cfpkt_extr_head(pkt,
[all...]
/linux-master/net/caif/
H A Dcfpkt_skbuff.c17 #define PKT_ERROR(pkt, errmsg) \
19 cfpkt_priv(pkt)->erronous = true; \
20 skb_reset_tail_pointer(&pkt->skb); \
45 static inline struct cfpkt_priv_data *cfpkt_priv(struct cfpkt *pkt) argument
47 return (struct cfpkt_priv_data *) pkt->skb.cb;
50 static inline bool is_erronous(struct cfpkt *pkt) argument
52 return cfpkt_priv(pkt)->erronous;
55 static inline struct sk_buff *pkt_to_skb(struct cfpkt *pkt) argument
57 return &pkt->skb;
67 struct cfpkt *pkt local
73 cfpkt_tonative(struct cfpkt *pkt) argument
96 cfpkt_destroy(struct cfpkt *pkt) argument
102 cfpkt_more(struct cfpkt *pkt) argument
108 cfpkt_peek_head(struct cfpkt *pkt, void *data, u16 len) argument
119 cfpkt_extr_head(struct cfpkt *pkt, void *data, u16 len) argument
145 cfpkt_extr_trail(struct cfpkt *pkt, void *dta, u16 len) argument
167 cfpkt_pad_trail(struct cfpkt *pkt, u16 len) argument
172 cfpkt_add_body(struct cfpkt *pkt, const void *data, u16 len) argument
210 cfpkt_addbdy(struct cfpkt *pkt, u8 data) argument
215 cfpkt_add_head(struct cfpkt *pkt, const void *data2, u16 len) argument
242 cfpkt_add_trail(struct cfpkt *pkt, const void *data, u16 len) argument
247 cfpkt_getlen(struct cfpkt *pkt) argument
253 cfpkt_iterate(struct cfpkt *pkt, u16 (*iter_func)(u16, void *, u16), u16 data) argument
270 cfpkt_setlen(struct cfpkt *pkt, u16 len) argument
331 cfpkt_split(struct cfpkt *pkt, u16 pos) argument
367 cfpkt_erroneous(struct cfpkt *pkt) argument
372 cfpkt_info(struct cfpkt *pkt) argument
378 cfpkt_set_prio(struct cfpkt *pkt, int prio) argument
[all...]
H A Dcfdgml.c24 static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt);
25 static int cfdgml_transmit(struct cflayer *layr, struct cfpkt *pkt);
40 static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt) argument
49 if (cfpkt_extr_head(pkt, &cmd, 1) < 0) {
51 cfpkt_destroy(pkt);
56 if (cfpkt_extr_head(pkt, &dgmhdr, 3) < 0) {
58 cfpkt_destroy(pkt);
61 ret = layr->up->receive(layr->up, pkt);
68 cfpkt_destroy(pkt);
72 cfpkt_destroy(pkt);
81 cfdgml_transmit(struct cflayer *layr, struct cfpkt *pkt) argument
[all...]
H A Dcfserl.c29 static int cfserl_receive(struct cflayer *layr, struct cfpkt *pkt);
30 static int cfserl_transmit(struct cflayer *layr, struct cfpkt *pkt);
58 struct cfpkt *pkt = NULL; local
72 pkt = layr->incomplete_frm;
73 if (pkt == NULL) {
78 pkt = newpkt;
83 /* Search for STX at start of pkt if STX is used */
85 cfpkt_extr_head(pkt, &tmp8, 1);
87 while (cfpkt_more(pkt)
89 cfpkt_extr_head(pkt,
[all...]
H A Dcfutill.c24 static int cfutill_receive(struct cflayer *layr, struct cfpkt *pkt);
25 static int cfutill_transmit(struct cflayer *layr, struct cfpkt *pkt);
40 static int cfutill_receive(struct cflayer *layr, struct cfpkt *pkt) argument
48 if (cfpkt_extr_head(pkt, &cmd, 1) < 0) {
50 cfpkt_destroy(pkt);
56 return layr->up->receive(layr->up, pkt);
59 cfpkt_destroy(pkt);
63 cfpkt_destroy(pkt);
69 cfpkt_destroy(pkt);
72 cfpkt_destroy(pkt);
78 cfutill_transmit(struct cflayer *layr, struct cfpkt *pkt) argument
[all...]
H A Dcfveil.c23 static int cfvei_receive(struct cflayer *layr, struct cfpkt *pkt);
24 static int cfvei_transmit(struct cflayer *layr, struct cfpkt *pkt);
39 static int cfvei_receive(struct cflayer *layr, struct cfpkt *pkt) argument
48 if (cfpkt_extr_head(pkt, &cmd, 1) < 0) {
50 cfpkt_destroy(pkt);
55 ret = layr->up->receive(layr->up, pkt);
59 cfpkt_destroy(pkt);
63 cfpkt_destroy(pkt);
66 cfpkt_destroy(pkt);
70 cfpkt_destroy(pkt);
75 cfvei_transmit(struct cflayer *layr, struct cfpkt *pkt) argument
[all...]
H A Dcfvidl.c19 static int cfvidl_receive(struct cflayer *layr, struct cfpkt *pkt);
20 static int cfvidl_transmit(struct cflayer *layr, struct cfpkt *pkt);
36 static int cfvidl_receive(struct cflayer *layr, struct cfpkt *pkt) argument
39 if (cfpkt_extr_head(pkt, &videoheader, 4) < 0) {
41 cfpkt_destroy(pkt);
44 return layr->up->receive(layr->up, pkt);
47 static int cfvidl_transmit(struct cflayer *layr, struct cfpkt *pkt) argument
55 cfpkt_destroy(pkt);
59 cfpkt_add_head(pkt, &videoheader, 4);
61 info = cfpkt_info(pkt);
[all...]
H A Dcfdbgl.c17 static int cfdbgl_receive(struct cflayer *layr, struct cfpkt *pkt);
18 static int cfdbgl_transmit(struct cflayer *layr, struct cfpkt *pkt);
33 static int cfdbgl_receive(struct cflayer *layr, struct cfpkt *pkt) argument
35 return layr->up->receive(layr->up, pkt);
38 static int cfdbgl_transmit(struct cflayer *layr, struct cfpkt *pkt) argument
45 cfpkt_destroy(pkt);
50 info = cfpkt_info(pkt);
54 return layr->dn->transmit(layr->dn, pkt);
/linux-master/drivers/media/platform/qcom/venus/
H A Dhfi_cmds.c14 void pkt_sys_init(struct hfi_sys_init_pkt *pkt, u32 arch_type) argument
16 pkt->hdr.size = sizeof(*pkt);
17 pkt->hdr.pkt_type = HFI_CMD_SYS_INIT;
18 pkt->arch_type = arch_type;
21 void pkt_sys_pc_prep(struct hfi_sys_pc_prep_pkt *pkt) argument
23 pkt->hdr.size = sizeof(*pkt);
24 pkt->hdr.pkt_type = HFI_CMD_SYS_PC_PREP;
27 void pkt_sys_idle_indicator(struct hfi_sys_set_property_pkt *pkt, u3 argument
38 pkt_sys_debug_config(struct hfi_sys_set_property_pkt *pkt, u32 mode, u32 config) argument
52 pkt_sys_coverage_config(struct hfi_sys_set_property_pkt *pkt, u32 mode) argument
61 pkt_sys_ubwc_config(struct hfi_sys_set_property_pkt *pkt, const struct hfi_ubwc_config *hfi) argument
70 pkt_sys_set_resource(struct hfi_sys_set_resource_pkt *pkt, u32 id, u32 size, u32 addr, void *cookie) argument
97 pkt_sys_unset_resource(struct hfi_sys_release_resource_pkt *pkt, u32 id, u32 size, void *cookie) argument
118 pkt_sys_ping(struct hfi_sys_ping_pkt *pkt, u32 cookie) argument
125 pkt_sys_power_control(struct hfi_sys_set_property_pkt *pkt, u32 enable) argument
136 pkt_sys_ssr_cmd(struct hfi_sys_test_ssr_pkt *pkt, u32 trigger_type) argument
154 pkt_sys_image_version(struct hfi_sys_get_property_pkt *pkt) argument
162 pkt_session_init(struct hfi_session_init_pkt *pkt, void *cookie, u32 session_type, u32 codec) argument
177 pkt_session_cmd(struct hfi_session_pkt *pkt, u32 pkt_type, void *cookie) argument
184 pkt_session_set_buffers(struct hfi_session_set_buffers_pkt *pkt, void *cookie, struct hfi_buffer_desc *bd) argument
223 pkt_session_unset_buffers(struct hfi_session_release_buffer_pkt *pkt, void *cookie, struct hfi_buffer_desc *bd) argument
264 pkt_session_etb_decoder(struct hfi_session_empty_buffer_compressed_pkt *pkt, void *cookie, struct hfi_frame_data *in_frame) argument
287 pkt_session_etb_encoder( struct hfi_session_empty_buffer_uncompressed_plane0_pkt *pkt, void *cookie, struct hfi_frame_data *in_frame) argument
313 pkt_session_ftb(struct hfi_session_fill_buffer_pkt *pkt, void *cookie, struct hfi_frame_data *out_frame) argument
339 pkt_session_parse_seq_header( struct hfi_session_parse_sequence_header_pkt *pkt, void *cookie, u32 seq_hdr, u32 seq_hdr_len) argument
355 pkt_session_get_seq_hdr(struct hfi_session_get_sequence_header_pkt *pkt, void *cookie, u32 seq_hdr, u32 seq_hdr_len) argument
370 pkt_session_flush(struct hfi_session_flush_pkt *pkt, void *cookie, u32 type) argument
390 pkt_session_get_property_1x(struct hfi_session_get_property_pkt *pkt, void *cookie, u32 ptype) argument
410 pkt_session_set_property_1x(struct hfi_session_set_property_pkt *pkt, void *cookie, u32 ptype, void *pdata) argument
1098 pkt_session_get_property_3xx(struct hfi_session_get_property_pkt *pkt, void *cookie, u32 ptype) argument
1124 pkt_session_set_property_3xx(struct hfi_session_set_property_pkt *pkt, void *cookie, u32 ptype, void *pdata) argument
1189 pkt_session_set_property_4xx(struct hfi_session_set_property_pkt *pkt, void *cookie, u32 ptype, void *pdata) argument
1300 pkt_session_set_property_6xx(struct hfi_session_set_property_pkt *pkt, void *cookie, u32 ptype, void *pdata) argument
1351 pkt_session_get_property(struct hfi_session_get_property_pkt *pkt, void *cookie, u32 ptype) argument
1360 pkt_session_set_property(struct hfi_session_set_property_pkt *pkt, void *cookie, u32 ptype, void *pdata) argument
[all...]
H A Dhfi_msgs.c23 struct hfi_msg_event_notify_pkt *pkt)
41 switch (pkt->event_data1) {
50 event.event_type = pkt->event_data1;
52 num_properties_changed = pkt->event_data2;
58 data_ptr = (u8 *)&pkt->ext_event_data[0];
132 struct hfi_msg_event_notify_pkt *pkt)
138 pkt->ext_event_data;
150 struct hfi_msg_event_notify_pkt *pkt)
152 if (pkt)
155 pkt
22 event_seq_changed(struct venus_core *core, struct venus_inst *inst, struct hfi_msg_event_notify_pkt *pkt) argument
130 event_release_buffer_ref(struct venus_core *core, struct venus_inst *inst, struct hfi_msg_event_notify_pkt *pkt) argument
149 event_sys_error(struct venus_core *core, u32 event, struct hfi_msg_event_notify_pkt *pkt) argument
162 event_session_error(struct venus_core *core, struct venus_inst *inst, struct hfi_msg_event_notify_pkt *pkt) argument
195 struct hfi_msg_event_notify_pkt *pkt = packet; local
223 struct hfi_msg_sys_init_done_pkt *pkt = packet; local
251 sys_get_prop_image_version(struct venus_core *core, struct hfi_msg_sys_property_info_pkt *pkt) argument
303 struct hfi_msg_sys_property_info_pkt *pkt = packet; local
325 struct hfi_msg_sys_release_resource_done_pkt *pkt = packet; local
334 struct hfi_msg_sys_ping_ack_pkt *pkt = packet; local
353 struct hfi_msg_sys_pc_prep_done_pkt *pkt = packet; local
360 session_get_prop_profile_level(struct hfi_msg_session_property_info_pkt *pkt, struct hfi_profile_level *profile_level) argument
380 session_get_prop_buf_req(struct hfi_msg_session_property_info_pkt *pkt, struct hfi_buffer_requirements *bufreq) argument
414 struct hfi_msg_session_property_info_pkt *pkt = packet; local
450 struct hfi_msg_session_init_done_pkt *pkt = packet; local
476 struct hfi_msg_session_load_resources_done_pkt *pkt = packet; local
485 struct hfi_msg_session_flush_done_pkt *pkt = packet; local
496 struct hfi_msg_session_empty_buffer_done_pkt *pkt = packet; local
514 struct hfi_msg_session_fbd_compressed_pkt *pkt = packet; local
527 struct hfi_msg_session_fbd_uncompressed_plane0_pkt *pkt = local
587 struct hfi_msg_session_start_done_pkt *pkt = packet; local
596 struct hfi_msg_session_stop_done_pkt *pkt = packet; local
605 struct hfi_msg_session_release_resources_done_pkt *pkt = packet; local
614 struct hfi_msg_session_release_buffers_done_pkt *pkt = packet; local
623 struct hfi_msg_session_end_done_pkt *pkt = packet; local
632 struct hfi_msg_sys_session_abort_done_pkt *pkt = packet; local
641 struct hfi_msg_session_get_sequence_hdr_done_pkt *pkt = packet; local
648 u32 pkt; member in struct:hfi_done_handler
795 struct hfi_session_pkt *pkt; local
[all...]
/linux-master/net/netfilter/
H A Dnft_reject_inet.c19 const struct nft_pktinfo *pkt)
23 switch (nft_pf(pkt)) {
27 nf_send_unreach(pkt->skb, priv->icmp_code,
28 nft_hook(pkt));
31 nf_send_reset(nft_net(pkt), nft_sk(pkt),
32 pkt->skb, nft_hook(pkt));
35 nf_send_unreach(pkt->skb,
37 nft_hook(pkt));
17 nft_reject_inet_eval(const struct nft_expr *expr, struct nft_regs *regs, const struct nft_pktinfo *pkt) argument
[all...]
H A Dnft_reject_netdev.c86 const struct nft_pktinfo *pkt)
88 struct ethhdr *eth = eth_hdr(pkt->skb);
100 nft_reject_netdev_send_v4_unreach(nft_net(pkt), pkt->skb,
101 nft_in(pkt),
102 nft_hook(pkt),
106 nft_reject_netdev_send_v4_tcp_reset(nft_net(pkt), pkt->skb,
107 nft_in(pkt),
108 nft_hook(pkt));
84 nft_reject_netdev_eval(const struct nft_expr *expr, struct nft_regs *regs, const struct nft_pktinfo *pkt) argument
[all...]
/linux-master/drivers/infiniband/sw/rxe/
H A Drxe_hdr.h19 u32 mask; /* useful info about pkt */
21 u16 pkey_index; /* partition of pkt */
23 u8 port_num; /* port pkt received on */
34 static inline struct sk_buff *PKT_TO_SKB(struct rxe_pkt_info *pkt) argument
36 return container_of((void *)pkt, struct sk_buff, cb);
280 static inline u8 bth_opcode(struct rxe_pkt_info *pkt) argument
282 return __bth_opcode(pkt->hdr);
285 static inline void bth_set_opcode(struct rxe_pkt_info *pkt, u8 opcode) argument
287 __bth_set_opcode(pkt->hdr, opcode);
290 static inline u8 bth_se(struct rxe_pkt_info *pkt) argument
295 bth_set_se(struct rxe_pkt_info *pkt, int se) argument
300 bth_mig(struct rxe_pkt_info *pkt) argument
305 bth_set_mig(struct rxe_pkt_info *pkt, u8 mig) argument
310 bth_pad(struct rxe_pkt_info *pkt) argument
315 bth_set_pad(struct rxe_pkt_info *pkt, u8 pad) argument
320 bth_tver(struct rxe_pkt_info *pkt) argument
325 bth_set_tver(struct rxe_pkt_info *pkt, u8 tver) argument
330 bth_pkey(struct rxe_pkt_info *pkt) argument
335 bth_set_pkey(struct rxe_pkt_info *pkt, u16 pkey) argument
340 bth_qpn(struct rxe_pkt_info *pkt) argument
345 bth_set_qpn(struct rxe_pkt_info *pkt, u32 qpn) argument
350 bth_fecn(struct rxe_pkt_info *pkt) argument
355 bth_set_fecn(struct rxe_pkt_info *pkt, int fecn) argument
360 bth_becn(struct rxe_pkt_info *pkt) argument
365 bth_set_becn(struct rxe_pkt_info *pkt, int becn) argument
370 bth_resv6a(struct rxe_pkt_info *pkt) argument
375 bth_set_resv6a(struct rxe_pkt_info *pkt) argument
380 bth_ack(struct rxe_pkt_info *pkt) argument
385 bth_set_ack(struct rxe_pkt_info *pkt, int ack) argument
390 bth_set_resv7(struct rxe_pkt_info *pkt) argument
395 bth_psn(struct rxe_pkt_info *pkt) argument
400 bth_set_psn(struct rxe_pkt_info *pkt, u32 psn) argument
405 bth_init(struct rxe_pkt_info *pkt, u8 opcode, int se, int mig, int pad, u16 pkey, u32 qpn, int ack_req, u32 psn) argument
448 rdeth_een(struct rxe_pkt_info *pkt) argument
454 rdeth_set_een(struct rxe_pkt_info *pkt, u32 een) argument
499 deth_qkey(struct rxe_pkt_info *pkt) argument
505 deth_set_qkey(struct rxe_pkt_info *pkt, u32 qkey) argument
511 deth_sqp(struct rxe_pkt_info *pkt) argument
517 deth_set_sqp(struct rxe_pkt_info *pkt, u32 sqp) argument
574 reth_va(struct rxe_pkt_info *pkt) argument
580 reth_set_va(struct rxe_pkt_info *pkt, u64 va) argument
586 reth_rkey(struct rxe_pkt_info *pkt) argument
592 reth_set_rkey(struct rxe_pkt_info *pkt, u32 rkey) argument
598 reth_len(struct rxe_pkt_info *pkt) argument
604 reth_set_len(struct rxe_pkt_info *pkt, u32 len) argument
636 feth_plt(struct rxe_pkt_info *pkt) argument
641 feth_sel(struct rxe_pkt_info *pkt) argument
646 feth_init(struct rxe_pkt_info *pkt, u8 type, u8 level) argument
722 atmeth_va(struct rxe_pkt_info *pkt) argument
728 atmeth_set_va(struct rxe_pkt_info *pkt, u64 va) argument
734 atmeth_rkey(struct rxe_pkt_info *pkt) argument
740 atmeth_set_rkey(struct rxe_pkt_info *pkt, u32 rkey) argument
746 atmeth_swap_add(struct rxe_pkt_info *pkt) argument
752 atmeth_set_swap_add(struct rxe_pkt_info *pkt, u64 swap_add) argument
758 atmeth_comp(struct rxe_pkt_info *pkt) argument
764 atmeth_set_comp(struct rxe_pkt_info *pkt, u64 comp) argument
825 aeth_syn(struct rxe_pkt_info *pkt) argument
831 aeth_set_syn(struct rxe_pkt_info *pkt, u8 syn) argument
837 aeth_msn(struct rxe_pkt_info *pkt) argument
843 aeth_set_msn(struct rxe_pkt_info *pkt, u32 msn) argument
870 atmack_orig(struct rxe_pkt_info *pkt) argument
876 atmack_set_orig(struct rxe_pkt_info *pkt, u64 orig) argument
903 immdt_imm(struct rxe_pkt_info *pkt) argument
909 immdt_set_imm(struct rxe_pkt_info *pkt, __be32 imm) argument
936 ieth_rkey(struct rxe_pkt_info *pkt) argument
942 ieth_set_rkey(struct rxe_pkt_info *pkt, u32 rkey) argument
961 header_size(struct rxe_pkt_info *pkt) argument
966 payload_addr(struct rxe_pkt_info *pkt) argument
971 payload_size(struct rxe_pkt_info *pkt) argument
[all...]
H A Drxe_recv.c13 static int check_type_state(struct rxe_dev *rxe, struct rxe_pkt_info *pkt, argument
22 pkt_type = pkt->opcode & 0xe0;
43 if (pkt->mask & RXE_REQ_MASK) {
75 static int check_keys(struct rxe_dev *rxe, struct rxe_pkt_info *pkt, argument
79 u16 pkey = bth_pkey(pkt);
81 pkt->pkey_index = 0;
91 if (unlikely(deth_qkey(pkt) != qkey)) {
100 static int check_addr(struct rxe_dev *rxe, struct rxe_pkt_info *pkt, argument
103 struct sk_buff *skb = PKT_TO_SKB(pkt);
108 if (unlikely(pkt
135 hdr_check(struct rxe_pkt_info *pkt) argument
182 rxe_rcv_pkt(struct rxe_pkt_info *pkt, struct sk_buff *skb) argument
192 struct rxe_pkt_info *pkt = SKB_TO_PKT(skb); local
286 struct rxe_pkt_info *pkt = SKB_TO_PKT(skb); local
319 struct rxe_pkt_info *pkt = SKB_TO_PKT(skb); local
[all...]
H A Drxe_icrc.c68 * @pkt: packet information
72 static __be32 rxe_icrc_hdr(struct sk_buff *skb, struct rxe_pkt_info *pkt) argument
117 memcpy(&pshdr[bth_offset], pkt->hdr, RXE_BTH_BYTES);
124 crc = rxe_crc32(pkt->rxe, crc, pshdr, length);
127 crc = rxe_crc32(pkt->rxe, crc, pkt->hdr + RXE_BTH_BYTES,
128 rxe_opcode[pkt->opcode].length - RXE_BTH_BYTES);
136 * @pkt: packet information
140 int rxe_icrc_check(struct sk_buff *skb, struct rxe_pkt_info *pkt) argument
146 icrcp = (__be32 *)(pkt
165 rxe_icrc_generate(struct sk_buff *skb, struct rxe_pkt_info *pkt) argument
[all...]
/linux-master/drivers/infiniband/hw/qib/
H A Dqib_user_sdma.c70 u8 largepkt; /* this is large pkt from kmalloc */
81 struct qib_user_sdma_queue *pq; /* which pq this pkt belongs to */
254 static void qib_user_sdma_init_frag(struct qib_user_sdma_pkt *pkt, argument
261 pkt->addr[i].offset = offset;
262 pkt->addr[i].length = len;
263 pkt->addr[i].first_desc = first_desc;
264 pkt->addr[i].last_desc = last_desc;
265 pkt->addr[i].put_page = put_page;
266 pkt->addr[i].dma_mapped = dma_mapped;
267 pkt
295 qib_user_sdma_page_to_frags(const struct qib_devdata *dd, struct qib_user_sdma_queue *pq, struct qib_user_sdma_pkt *pkt, struct page *page, u16 put, u16 offset, u16 len, void *kvaddr) argument
556 qib_user_sdma_coalesce(const struct qib_devdata *dd, struct qib_user_sdma_queue *pq, struct qib_user_sdma_pkt *pkt, const struct iovec *iov, unsigned long niov) argument
613 qib_user_sdma_free_pkt_frag(struct device *dev, struct qib_user_sdma_queue *pq, struct qib_user_sdma_pkt *pkt, int frag) argument
653 qib_user_sdma_pin_pages(const struct qib_devdata *dd, struct qib_user_sdma_queue *pq, struct qib_user_sdma_pkt *pkt, unsigned long addr, int tlen, size_t npages) argument
710 qib_user_sdma_pin_pkt(const struct qib_devdata *dd, struct qib_user_sdma_queue *pq, struct qib_user_sdma_pkt *pkt, const struct iovec *iov, unsigned long niov) argument
752 qib_user_sdma_init_payload(const struct qib_devdata *dd, struct qib_user_sdma_queue *pq, struct qib_user_sdma_pkt *pkt, const struct iovec *iov, unsigned long niov, int npages) argument
774 struct qib_user_sdma_pkt *pkt, *pkt_next; local
810 struct qib_user_sdma_pkt *pkt = NULL; local
1060 struct qib_user_sdma_pkt *pkt; local
1156 struct qib_user_sdma_pkt *pkt; local
1216 qib_user_sdma_send_frag(struct qib_pportdata *ppd, struct qib_user_sdma_pkt *pkt, int idx, unsigned ofs, u16 tail, u8 gen) argument
1260 struct qib_user_sdma_pkt *pkt = local
[all...]
/linux-master/drivers/usb/renesas_usbhs/
H A Dfifo.c22 void usbhs_pkt_init(struct usbhs_pkt *pkt) argument
24 INIT_LIST_HEAD(&pkt->node);
30 static int usbhsf_null_handle(struct usbhs_pkt *pkt, int *is_done) argument
32 struct usbhs_priv *priv = usbhs_pipe_to_priv(pkt->pipe);
45 void usbhs_pkt_push(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt, argument
47 struct usbhs_pkt *pkt),
67 list_move_tail(&pkt->node, &pipe->list);
70 * each pkt must hold own handler.
74 pkt->pipe = pipe;
75 pkt
87 __usbhsf_pkt_del(struct usbhs_pkt *pkt) argument
106 usbhs_pkt_pop(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt) argument
159 struct usbhs_pkt *pkt; local
357 usbhs_dcp_dir_switch_to_write(struct usbhs_pkt *pkt, int *is_done) argument
386 usbhs_dcp_dir_switch_to_read(struct usbhs_pkt *pkt, int *is_done) argument
414 usbhs_dcp_dir_switch_done(struct usbhs_pkt *pkt, int *is_done) argument
442 usbhsf_dcp_data_stage_try_push(struct usbhs_pkt *pkt, int *is_done) argument
463 usbhsf_dcp_data_stage_prepare_pop(struct usbhs_pkt *pkt, int *is_done) argument
502 usbhsf_pio_try_push(struct usbhs_pkt *pkt, int *is_done) argument
604 usbhsf_pio_prepare_push(struct usbhs_pkt *pkt, int *is_done) argument
620 usbhsf_prepare_pop(struct usbhs_pkt *pkt, int *is_done) argument
649 usbhsf_pio_try_pop(struct usbhs_pkt *pkt, int *is_done) argument
750 usbhsf_ctrl_stage_end(struct usbhs_pkt *pkt, int *is_done) argument
767 usbhsf_dma_chan_get(struct usbhs_fifo *fifo, struct usbhs_pkt *pkt) argument
779 usbhsf_get_dma_fifo(struct usbhs_priv *priv, struct usbhs_pkt *pkt) argument
805 __usbhsf_dma_map_ctrl(struct usbhs_pkt *pkt, int map) argument
818 usbhsf_dma_xfer_preparing(struct usbhs_pkt *pkt) argument
863 struct usbhs_pkt *pkt = container_of(work, struct usbhs_pkt, work); local
876 usbhsf_dma_prepare_push(struct usbhs_pkt *pkt, int *is_done) argument
943 usbhsf_dma_push_done(struct usbhs_pkt *pkt, int *is_done) argument
981 usbhsf_dma_prepare_pop_with_rx_irq(struct usbhs_pkt *pkt, int *is_done) argument
987 usbhsf_dma_prepare_pop_with_usb_dmac(struct usbhs_pkt *pkt, int *is_done) argument
1051 usbhsf_dma_prepare_pop(struct usbhs_pkt *pkt, int *is_done) argument
1061 usbhsf_dma_try_pop_with_rx_irq(struct usbhs_pkt *pkt, int *is_done) argument
1130 usbhsf_dma_try_pop(struct usbhs_pkt *pkt, int *is_done) argument
1139 usbhsf_dma_pop_done_with_rx_irq(struct usbhs_pkt *pkt, int *is_done) argument
1163 usbhs_dma_calc_received_size(struct usbhs_pkt *pkt, struct dma_chan *chan, int dtln) argument
1181 usbhsf_dma_pop_done_with_usb_dmac(struct usbhs_pkt *pkt, int *is_done) argument
1212 usbhsf_dma_pop_done(struct usbhs_pkt *pkt, int *is_done) argument
1379 struct usbhs_pkt *pkt = arg; local
[all...]
/linux-master/drivers/soc/mediatek/
H A Dmtk-cmdq-helper.c110 struct cmdq_pkt *pkt; local
114 pkt = kzalloc(sizeof(*pkt), GFP_KERNEL);
115 if (!pkt)
117 pkt->va_base = kzalloc(size, GFP_KERNEL);
118 if (!pkt->va_base) {
119 kfree(pkt);
122 pkt->buf_size = size;
123 pkt->cl = (void *)client;
126 dma_addr = dma_map_single(dev, pkt
141 cmdq_pkt_destroy(struct cmdq_pkt *pkt) argument
152 cmdq_pkt_append_command(struct cmdq_pkt *pkt, struct cmdq_instruction inst) argument
179 cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value) argument
192 cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value, u32 mask) argument
214 cmdq_pkt_read_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, u16 addr_low, u16 reg_idx) argument
229 cmdq_pkt_write_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, u16 addr_low, u16 src_reg_idx) argument
244 cmdq_pkt_write_s_mask(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, u16 addr_low, u16 src_reg_idx, u32 mask) argument
267 cmdq_pkt_write_s_value(struct cmdq_pkt *pkt, u8 high_addr_reg_idx, u16 addr_low, u32 value) argument
281 cmdq_pkt_write_s_mask_value(struct cmdq_pkt *pkt, u8 high_addr_reg_idx, u16 addr_low, u32 value, u32 mask) argument
302 cmdq_pkt_wfe(struct cmdq_pkt *pkt, u16 event, bool clear) argument
318 cmdq_pkt_clear_event(struct cmdq_pkt *pkt, u16 event) argument
333 cmdq_pkt_set_event(struct cmdq_pkt *pkt, u16 event) argument
348 cmdq_pkt_poll(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value) argument
364 cmdq_pkt_poll_mask(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value, u32 mask) argument
383 cmdq_pkt_assign(struct cmdq_pkt *pkt, u16 reg_idx, u32 value) argument
395 cmdq_pkt_jump(struct cmdq_pkt *pkt, dma_addr_t addr) argument
407 cmdq_pkt_finalize(struct cmdq_pkt *pkt) argument
429 cmdq_pkt_flush_async(struct cmdq_pkt *pkt) argument
[all...]
/linux-master/arch/sparc/kernel/
H A Dviohs.c50 struct vio_ver_info pkt; local
54 memset(&pkt, 0, sizeof(pkt));
55 init_tag(&pkt.tag, VIO_TYPE_CTRL, VIO_SUBTYPE_INFO, VIO_VER_INFO);
56 pkt.major = major;
57 pkt.minor = minor;
58 pkt.dev_class = vio->dev_class;
63 return send_ctrl(vio, &pkt.tag, sizeof(pkt));
163 struct vio_msg_tag *pkt local
180 struct vio_dring_register pkt; member in union:__anon2
220 struct vio_rdx pkt; local
255 process_ver_info(struct vio_driver_state *vio, struct vio_ver_info *pkt) argument
311 process_ver_ack(struct vio_driver_state *vio, struct vio_ver_info *pkt) argument
344 process_ver_nack(struct vio_driver_state *vio, struct vio_ver_info *pkt) argument
364 process_ver(struct vio_driver_state *vio, struct vio_ver_info *pkt) argument
381 process_attr(struct vio_driver_state *vio, void *pkt) argument
427 process_dreg_info(struct vio_driver_state *vio, struct vio_dring_register *pkt) argument
500 process_dreg_ack(struct vio_driver_state *vio, struct vio_dring_register *pkt) argument
527 process_dreg_nack(struct vio_driver_state *vio, struct vio_dring_register *pkt) argument
539 process_dreg(struct vio_driver_state *vio, struct vio_dring_register *pkt) argument
560 process_dunreg(struct vio_driver_state *vio, struct vio_dring_unregister *pkt) argument
581 process_rdx_info(struct vio_driver_state *vio, struct vio_rdx *pkt) argument
594 process_rdx_ack(struct vio_driver_state *vio, struct vio_rdx *pkt) argument
605 process_rdx_nack(struct vio_driver_state *vio, struct vio_rdx *pkt) argument
612 process_rdx(struct vio_driver_state *vio, struct vio_rdx *pkt) argument
632 vio_control_pkt_engine(struct vio_driver_state *vio, void *pkt) argument
[all...]
/linux-master/drivers/net/wireless/intel/iwlwifi/
H A Diwl-devtrace.c27 void __trace_iwlwifi_dev_rx(struct iwl_trans *trans, void *pkt, size_t len) argument
31 trace_len = iwl_rx_trace_len(trans, pkt, len, &hdr_offset);
32 trace_iwlwifi_dev_rx(trans->dev, pkt, len, trace_len, hdr_offset);
35 trace_iwlwifi_dev_rx_data(trans->dev, pkt, len, trace_len);
/linux-master/drivers/media/platform/amphion/
H A Dvpu_msgs.c25 void (*done)(struct vpu_inst *inst, struct vpu_rpc_event *pkt);
29 static void vpu_session_handle_start_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) argument
34 static void vpu_session_handle_mem_request(struct vpu_inst *inst, struct vpu_rpc_event *pkt) argument
38 vpu_iface_unpack_msg_data(inst->core, pkt, (void *)&req_data);
58 static void vpu_session_handle_stop_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) argument
65 static void vpu_session_handle_seq_hdr(struct vpu_inst *inst, struct vpu_rpc_event *pkt) argument
73 vpu_iface_unpack_msg_data(inst->core, pkt, (void *)&info);
77 static void vpu_session_handle_resolution_change(struct vpu_inst *inst, struct vpu_rpc_event *pkt) argument
82 static void vpu_session_handle_enc_frame_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) argument
86 vpu_iface_unpack_msg_data(inst->core, pkt, (voi
92 vpu_session_handle_frame_request(struct vpu_inst *inst, struct vpu_rpc_event *pkt) argument
100 vpu_session_handle_frame_release(struct vpu_inst *inst, struct vpu_rpc_event *pkt) argument
118 vpu_session_handle_input_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) argument
124 vpu_session_handle_pic_decoded(struct vpu_inst *inst, struct vpu_rpc_event *pkt) argument
132 vpu_session_handle_pic_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) argument
149 vpu_session_handle_eos(struct vpu_inst *inst, struct vpu_rpc_event *pkt) argument
154 vpu_session_handle_error(struct vpu_inst *inst, struct vpu_rpc_event *pkt) argument
166 vpu_session_handle_firmware_xcpt(struct vpu_inst *inst, struct vpu_rpc_event *pkt) argument
177 vpu_session_handle_pic_skipped(struct vpu_inst *inst, struct vpu_rpc_event *pkt) argument
184 vpu_session_handle_dbg_msg(struct vpu_inst *inst, struct vpu_rpc_event *pkt) argument
192 vpu_terminate_string_msg(struct vpu_rpc_event *pkt) argument
251 vpu_inst_receive_msg(struct vpu_inst *inst, struct vpu_rpc_event *pkt) argument
277 struct vpu_rpc_event pkt; local
283 vpu_inst_handle_msg(struct vpu_inst *inst, struct vpu_rpc_event *pkt) argument
301 struct vpu_rpc_event pkt; local
[all...]
/linux-master/include/linux/soc/mediatek/
H A Dmtk-cmdq.h73 * @pkt: the CMDQ packet
75 void cmdq_pkt_destroy(struct cmdq_pkt *pkt);
79 * @pkt: the CMDQ packet
86 int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value);
90 * @pkt: the CMDQ packet
98 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys,
103 * @pkt: the CMDQ packet
110 int cmdq_pkt_read_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, u16 addr_low,
115 * @pkt: the CMDQ packet
127 int cmdq_pkt_write_s(struct cmdq_pkt *pkt, u1
302 cmdq_pkt_destroy(struct cmdq_pkt *pkt) argument
304 cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value) argument
309 cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value, u32 mask) argument
315 cmdq_pkt_read_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, u16 addr_low, u16 reg_idx) argument
321 cmdq_pkt_write_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, u16 addr_low, u16 src_reg_idx) argument
327 cmdq_pkt_write_s_mask(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, u16 addr_low, u16 src_reg_idx, u32 mask) argument
333 cmdq_pkt_write_s_value(struct cmdq_pkt *pkt, u8 high_addr_reg_idx, u16 addr_low, u32 value) argument
339 cmdq_pkt_write_s_mask_value(struct cmdq_pkt *pkt, u8 high_addr_reg_idx, u16 addr_low, u32 value, u32 mask) argument
345 cmdq_pkt_wfe(struct cmdq_pkt *pkt, u16 event, bool clear) argument
350 cmdq_pkt_clear_event(struct cmdq_pkt *pkt, u16 event) argument
355 cmdq_pkt_set_event(struct cmdq_pkt *pkt, u16 event) argument
360 cmdq_pkt_poll(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value) argument
366 cmdq_pkt_poll_mask(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value, u32 mask) argument
372 cmdq_pkt_assign(struct cmdq_pkt *pkt, u16 reg_idx, u32 value) argument
377 cmdq_pkt_jump(struct cmdq_pkt *pkt, dma_addr_t addr) argument
382 cmdq_pkt_finalize(struct cmdq_pkt *pkt) argument
387 cmdq_pkt_flush_async(struct cmdq_pkt *pkt) argument
[all...]

Completed in 223 milliseconds

1234567891011>>