/linux/drivers/media/platform/qcom/venus/ |
A D | hfi_cmds.c | 16 pkt->hdr.size = sizeof(*pkt); in pkt_sys_init() 23 pkt->hdr.size = sizeof(*pkt); in pkt_sys_pc_prep() 64 pkt->hdr.size = sizeof(*pkt); in pkt_sys_set_resource() 91 pkt->hdr.size = sizeof(*pkt); in pkt_sys_unset_resource() 111 pkt->hdr.size = sizeof(*pkt); in pkt_sys_ping() 138 pkt->hdr.size = sizeof(*pkt); in pkt_sys_ssr_cmd() 147 pkt->hdr.size = sizeof(*pkt); in pkt_sys_image_version() 159 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_init() 170 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_cmd() 261 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_etb_decoder() [all …]
|
A D | hfi_msgs.c | 152 if (pkt) in event_sys_error() 155 pkt->shdr.session_id, pkt->event_data1, in event_sys_error() 168 pkt->event_data1, pkt->shdr.session_id); in event_session_error() 183 pkt->event_data1, pkt->event_data2, in event_session_error() 236 rem_bytes = pkt->hdr.size - sizeof(*pkt) + sizeof(u32); in hfi_sys_init_done() 259 req_bytes = pkt->hdr.size - sizeof(*pkt); in sys_get_prop_image_version() 342 req_bytes = pkt->shdr.hdr.size - sizeof(*pkt); in session_get_prop_profile_level() 363 req_bytes = pkt->shdr.hdr.size - sizeof(*pkt); in session_get_prop_buf_req() 437 rem_bytes = pkt->shdr.hdr.size - sizeof(*pkt) + sizeof(u32); in hfi_session_init_done() 476 pkt->filled_len, pkt->offset, 0, 0, 0); in hfi_session_etb_done() [all …]
|
/linux/arch/sparc/kernel/ |
A D | viohs.c | 54 memset(&pkt, 0, sizeof(pkt)); in send_version() 166 pkt->type, pkt->stype, pkt->stype_env, pkt->sid); in process_unknown() 203 u.pkt.num_descr, u.pkt.descr_size, u.pkt.options, in send_dreg() 222 memset(&pkt, 0, sizeof(pkt)); in send_rdx() 262 pkt->major, pkt->minor, pkt->dev_class); in process_ver_info() 315 pkt->major, pkt->minor, pkt->dev_class); in process_ver_ack() 350 pkt->major, pkt->minor, pkt->dev_class); in process_ver_nack() 436 pkt->num_descr, pkt->descr_size, pkt->options, in process_dreg_info() 482 pkt->num_descr, pkt->descr_size, pkt->options, in process_dreg_info() 508 pkt->num_descr, pkt->descr_size, pkt->options, in process_dreg_ack() [all …]
|
/linux/drivers/infiniband/sw/rxe/ |
A D | rxe_hdr.h | 292 return __bth_se(pkt->hdr); in bth_se() 392 __bth_set_resv7(pkt->hdr); in bth_set_resv7() 456 __rdeth_set_een(pkt->hdr + in rdeth_set_een() 507 __deth_set_qkey(pkt->hdr + in deth_set_qkey() 519 __deth_set_sqp(pkt->hdr + in deth_set_sqp() 582 __reth_set_va(pkt->hdr + in reth_set_va() 606 __reth_set_len(pkt->hdr + in reth_set_len() 788 __aeth_set_syn(pkt->hdr + in aeth_set_syn() 800 __aeth_set_msn(pkt->hdr + in aeth_set_msn() 922 return pkt->hdr + rxe_opcode[pkt->opcode].offset[RXE_PAYLOAD]; in payload_addr() [all …]
|
A D | rxe_resp.c | 172 switch (pkt->opcode) { in check_op_seq() 184 switch (pkt->opcode) { in check_op_seq() 194 switch (pkt->opcode) { in check_op_seq() 213 switch (pkt->opcode) { in check_op_seq() 789 err = send_data_in(qp, payload_addr(pkt), payload_size(pkt)); in execute() 924 if (rxe_cq_post(qp->rcq, &cqe, pkt ? bth_se(pkt) : 1)) in do_complete() 930 if (unlikely(!pkt)) in do_complete() 1003 send_ack(qp, pkt, qp->resp.aeth_syndrome, pkt->psn); in acknowledge() 1007 send_ack(qp, pkt, AETH_ACK_UNLIMITED, pkt->psn); in acknowledge() 1017 if (pkt) { in cleanup() [all …]
|
A D | rxe_recv.c | 85 pkt->pkey_index = 0; in check_keys() 175 u32 qpn = bth_qpn(pkt); in hdr_check() 216 pkt->qp = qp; in hdr_check() 268 err = check_keys(rxe, pkt, bth_qpn(pkt), qp); in rxe_rcv_mcast_pkt() 294 pkt->qp = qp; in rxe_rcv_mcast_pkt() 373 pkt->opcode = bth_opcode(pkt); in rxe_rcv() 374 pkt->psn = bth_psn(pkt); in rxe_rcv() 375 pkt->qp = NULL; in rxe_rcv() 376 pkt->mask |= rxe_opcode[pkt->opcode].mask; in rxe_rcv() 381 err = hdr_check(pkt); in rxe_rcv() [all …]
|
/linux/drivers/infiniband/hw/qib/ |
A D | qib_user_sdma.c | 339 if (pkt->tiddma && len > pkt->tidsm[pkt->tidsmidx].length) in qib_user_sdma_page_to_frags() 383 pkt->addr[pkt->index].addr = in qib_user_sdma_page_to_frags() 385 pkt->addr[pkt->index].kvaddr, in qib_user_sdma_page_to_frags() 389 pkt->addr[pkt->index].addr)) { in qib_user_sdma_page_to_frags() 473 if (!pkt->addr[pkt->index].addr) { in qib_user_sdma_page_to_frags() 474 pkt->addr[pkt->index].addr = in qib_user_sdma_page_to_frags() 476 pkt->addr[pkt->index].kvaddr, in qib_user_sdma_page_to_frags() 480 pkt->addr[pkt->index].addr)) { in qib_user_sdma_page_to_frags() 530 pkt->index = pkt->naddr; in qib_user_sdma_page_to_frags() 1310 if (pkt->index == pkt->naddr) { in qib_user_sdma_send_desc() [all …]
|
/linux/drivers/usb/renesas_usbhs/ |
A D | fifo.c | 201 pkt->done(priv, pkt); in usbhsf_pkt_handler() 423 pkt->actual = pkt->length; in usbhs_dcp_dir_switch_done() 535 buf = pkt->buf + pkt->actual; in usbhsf_pio_try_push() 536 len = pkt->length - pkt->actual; in usbhsf_pio_try_push() 566 if (pkt->actual < pkt->length) in usbhsf_pio_try_push() 585 pkt->length, pkt->actual, *is_done, pkt->zero); in usbhsf_pio_try_push() 734 pkt->length, pkt->actual, *is_done, pkt->zero); in usbhsf_pio_try_pop() 948 pkt->actual += pkt->trans; in usbhsf_dma_push_done() 950 if (pkt->actual < pkt->length) in usbhsf_dma_push_done() 1032 pkt->trans = pkt->length; in usbhsf_dma_prepare_pop_with_usb_dmac() [all …]
|
/linux/net/caif/ |
A D | cfpkt_skbuff.c | 17 #define PKT_ERROR(pkt, errmsg) \ argument 19 cfpkt_priv(pkt)->erronous = true; \ 52 return cfpkt_priv(pkt)->erronous; in is_erronous() 57 return &pkt->skb; in pkt_to_skb() 69 return pkt; in cfpkt_fromnative() 75 return (void *) pkt; in cfpkt_tonative() 123 if (unlikely(is_erronous(pkt))) in cfpkt_extr_head() 150 if (unlikely(is_erronous(pkt))) in cfpkt_extr_trail() 267 return iter_func(data, pkt->skb.data, cfpkt_getlen(pkt)); in cfpkt_iterate() 284 return cfpkt_getlen(pkt); in cfpkt_setlen() [all …]
|
A D | cfctrl.c | 178 struct cfpkt *pkt; in cfctrl_enum_req() local 187 if (!pkt) in cfctrl_enum_req() 196 dn->transmit(dn, pkt); in cfctrl_enum_req() 210 struct cfpkt *pkt; in cfctrl_linkup_request() local 226 if (!pkt) in cfctrl_linkup_request() 290 dn->transmit(dn, pkt); in cfctrl_linkup_request() 308 struct cfpkt *pkt; in cfctrl_linkdown_req() local 317 if (!pkt) in cfctrl_linkdown_req() 324 dn->transmit(dn, pkt); in cfctrl_linkdown_req() 498 cfpkt_erroneous(pkt)) { in cfctrl_recv() [all …]
|
A D | cfserl.c | 58 struct cfpkt *pkt = NULL; in cfserl_receive() local 73 if (pkt == NULL) { in cfserl_receive() 78 pkt = newpkt; in cfserl_receive() 92 cfpkt_destroy(pkt); in cfserl_receive() 128 if (pkt != NULL) in cfserl_receive() 129 cfpkt_destroy(pkt); in cfserl_receive() 163 pkt = cfpkt_append(pkt, tail_pkt, 0); in cfserl_receive() 167 cfpkt_destroy(pkt); in cfserl_receive() 168 pkt = NULL; in cfserl_receive() 172 pkt = tail_pkt; in cfserl_receive() [all …]
|
/linux/drivers/soc/mediatek/ |
A D | mtk-cmdq-helper.c | 113 pkt = kzalloc(sizeof(*pkt), GFP_KERNEL); in cmdq_pkt_create() 114 if (!pkt) in cmdq_pkt_create() 118 kfree(pkt); in cmdq_pkt_create() 125 dma_addr = dma_map_single(dev, pkt->va_base, pkt->buf_size, in cmdq_pkt_create() 130 kfree(pkt); in cmdq_pkt_create() 136 return pkt; in cmdq_pkt_create() 147 kfree(pkt); in cmdq_pkt_destroy() 156 if (unlikely(pkt->cmd_buf_size + CMDQ_INST_SIZE > pkt->buf_size)) { in cmdq_pkt_append_command() 171 cmd_ptr = pkt->va_base + pkt->cmd_buf_size; in cmdq_pkt_append_command() 448 pkt->cb.cb = cb; in cmdq_pkt_flush_async() [all …]
|
/linux/net/vmw_vsock/ |
A D | virtio_transport_common.c | 51 pkt = kzalloc(sizeof(*pkt), GFP_KERNEL); in virtio_transport_alloc_pkt() 52 if (!pkt) in virtio_transport_alloc_pkt() 94 return pkt; in virtio_transport_alloc_pkt() 99 kfree(pkt); in virtio_transport_alloc_pkt() 117 payload_buf = pkt->buf + pkt->off; in virtio_transport_build_skb() 157 skb_put_data(skb, &pkt->hdr, sizeof(pkt->hdr)); in virtio_transport_build_skb() 230 if (!pkt) { in virtio_transport_send_pkt_info() 366 if (bytes > pkt->len - pkt->off) in virtio_transport_stream_do_dequeue() 367 bytes = pkt->len - pkt->off; in virtio_transport_stream_do_dequeue() 382 if (pkt->off == pkt->len) { in virtio_transport_stream_do_dequeue() [all …]
|
A D | vmci_transport.c | 127 pkt->dg.payload_size = sizeof(*pkt) - sizeof(pkt->dg); in vmci_transport_packet_init() 132 memset(&pkt->proto, 0, sizeof(pkt->proto)); in vmci_transport_packet_init() 133 memset(&pkt->_reserved2, 0, sizeof(pkt->_reserved2)); in vmci_transport_packet_init() 162 memcpy(&pkt->u.wait, wait, sizeof(pkt->u.wait)); in vmci_transport_packet_init() 178 vsock_addr_init(local, pkt->dg.dst.context, pkt->dst_port); in vmci_transport_packet_get_addresses() 263 pkt = kmalloc(sizeof(*pkt), GFP_KERNEL); in vmci_transport_alloc_send_control_pkt() 264 if (!pkt) in vmci_transport_alloc_send_control_pkt() 270 kfree(pkt); in vmci_transport_alloc_send_control_pkt() 381 pkt, in vmci_transport_reply_reset() 782 memcpy(&recv_pkt_info->pkt, pkt, sizeof(recv_pkt_info->pkt)); in vmci_transport_recv_stream_cb() [all …]
|
A D | virtio_transport.c | 123 sg_init_one(&hdr, &pkt->hdr, sizeof(pkt->hdr)); in virtio_transport_send_pkt_work() 125 if (pkt->buf) { in virtio_transport_send_pkt_work() 126 sg_init_one(&buf, pkt->buf, pkt->len); in virtio_transport_send_pkt_work() 185 if (pkt->reply) in virtio_transport_send_pkt() 223 if (pkt->reply) in virtio_transport_cancel_pkt() 257 pkt = kzalloc(sizeof(*pkt), GFP_KERNEL); in virtio_vsock_rx_fill() 258 if (!pkt) in virtio_vsock_rx_fill() 270 sg_init_one(&hdr, &pkt->hdr, sizeof(pkt->hdr)); in virtio_vsock_rx_fill() 542 if (!pkt) { in virtio_transport_rx_work() 550 len > sizeof(pkt->hdr) + pkt->len)) { in virtio_transport_rx_work() [all …]
|
/linux/include/net/netfilter/ |
A D | nf_tables_ipv6.h | 17 nft_set_pktinfo_unspec(pkt); in nft_set_pktinfo_ipv6() 22 pkt->tprot = protohdr; in nft_set_pktinfo_ipv6() 23 pkt->thoff = thoff; in nft_set_pktinfo_ipv6() 24 pkt->fragoff = frag_off; in nft_set_pktinfo_ipv6() 37 ip6h = skb_header_pointer(pkt->skb, skb_network_offset(pkt->skb), in __nft_set_pktinfo_ipv6_validate() 54 pkt->tprot = protohdr; in __nft_set_pktinfo_ipv6_validate() 55 pkt->thoff = thoff; in __nft_set_pktinfo_ipv6_validate() 56 pkt->fragoff = frag_off; in __nft_set_pktinfo_ipv6_validate() 100 pkt->tprot = protohdr; in nft_set_pktinfo_ipv6_ingress() 101 pkt->thoff = thoff; in nft_set_pktinfo_ipv6_ingress() [all …]
|
A D | nf_tables_ipv4.h | 12 ip = ip_hdr(pkt->skb); in nft_set_pktinfo_ipv4() 14 pkt->tprot = ip->protocol; in nft_set_pktinfo_ipv4() 15 pkt->thoff = ip_hdrlen(pkt->skb); in nft_set_pktinfo_ipv4() 24 iph = skb_header_pointer(pkt->skb, skb_network_offset(pkt->skb), in __nft_set_pktinfo_ipv4_validate() 34 if (pkt->skb->len < len) in __nft_set_pktinfo_ipv4_validate() 40 pkt->tprot = iph->protocol; in __nft_set_pktinfo_ipv4_validate() 41 pkt->thoff = thoff; in __nft_set_pktinfo_ipv4_validate() 61 iph = ip_hdr(pkt->skb); in nft_set_pktinfo_ipv4_ingress() 67 if (pkt->skb->len < len) { in nft_set_pktinfo_ipv4_ingress() 75 pkt->tprot = iph->protocol; in nft_set_pktinfo_ipv4_ingress() [all …]
|
/linux/drivers/misc/habanalabs/common/ |
A D | hwmon.c | 440 memset(&pkt, 0, sizeof(pkt)); in hl_get_temperature() 468 memset(&pkt, 0, sizeof(pkt)); in hl_set_temperature() 494 memset(&pkt, 0, sizeof(pkt)); in hl_get_voltage() 523 memset(&pkt, 0, sizeof(pkt)); in hl_get_current() 552 memset(&pkt, 0, sizeof(pkt)); in hl_get_fan_speed() 581 memset(&pkt, 0, sizeof(pkt)); in hl_get_pwm_info() 609 memset(&pkt, 0, sizeof(pkt)); in hl_set_pwm_info() 632 memset(&pkt, 0, sizeof(pkt)); in hl_set_voltage() 657 memset(&pkt, 0, sizeof(pkt)); in hl_set_current() 682 memset(&pkt, 0, sizeof(pkt)); in hl_set_power() [all …]
|
/linux/net/netfilter/ |
A D | nft_set_pipapo_avx2.c | 284 u8 pg[4] = { pkt[0] >> 4, pkt[0] & 0xf, pkt[1] >> 4, pkt[1] & 0xf }; in nft_pipapo_avx2_lookup_4b_4() 360 pkt[2] >> 4, pkt[2] & 0xf, pkt[3] >> 4, pkt[3] & 0xf, in nft_pipapo_avx2_lookup_4b_8() 455 pkt[2] >> 4, pkt[2] & 0xf, pkt[3] >> 4, pkt[3] & 0xf, in nft_pipapo_avx2_lookup_4b_12() 456 pkt[4] >> 4, pkt[4] & 0xf, pkt[5] >> 4, pkt[5] & 0xf, in nft_pipapo_avx2_lookup_4b_12() 544 pkt[2] >> 4, pkt[2] & 0xf, pkt[3] >> 4, pkt[3] & 0xf, in nft_pipapo_avx2_lookup_4b_32() 545 pkt[4] >> 4, pkt[4] & 0xf, pkt[5] >> 4, pkt[5] & 0xf, in nft_pipapo_avx2_lookup_4b_32() 546 pkt[6] >> 4, pkt[6] & 0xf, pkt[7] >> 4, pkt[7] & 0xf, in nft_pipapo_avx2_lookup_4b_32() 547 pkt[8] >> 4, pkt[8] & 0xf, pkt[9] >> 4, pkt[9] & 0xf, in nft_pipapo_avx2_lookup_4b_32() 548 pkt[10] >> 4, pkt[10] & 0xf, pkt[11] >> 4, pkt[11] & 0xf, in nft_pipapo_avx2_lookup_4b_32() 549 pkt[12] >> 4, pkt[12] & 0xf, pkt[13] >> 4, pkt[13] & 0xf, in nft_pipapo_avx2_lookup_4b_32() [all …]
|
A D | nft_reject_netdev.c | 99 nft_reject_netdev_send_v4_unreach(nft_net(pkt), pkt->skb, in nft_reject_netdev_eval() 100 nft_in(pkt), in nft_reject_netdev_eval() 101 nft_hook(pkt), in nft_reject_netdev_eval() 105 nft_reject_netdev_send_v4_tcp_reset(nft_net(pkt), pkt->skb, in nft_reject_netdev_eval() 110 nft_reject_netdev_send_v4_unreach(nft_net(pkt), pkt->skb, in nft_reject_netdev_eval() 111 nft_in(pkt), in nft_reject_netdev_eval() 120 nft_reject_netdev_send_v6_unreach(nft_net(pkt), pkt->skb, in nft_reject_netdev_eval() 121 nft_in(pkt), in nft_reject_netdev_eval() 126 nft_reject_netdev_send_v6_tcp_reset(nft_net(pkt), pkt->skb, in nft_reject_netdev_eval() 131 nft_reject_netdev_send_v6_unreach(nft_net(pkt), pkt->skb, in nft_reject_netdev_eval() [all …]
|
A D | nft_reject_inet.c | 23 switch (nft_pf(pkt)) { in nft_reject_inet_eval() 28 nft_hook(pkt)); in nft_reject_inet_eval() 31 nf_send_reset(nft_net(pkt), nft_sk(pkt), in nft_reject_inet_eval() 32 pkt->skb, nft_hook(pkt)); in nft_reject_inet_eval() 35 nf_send_unreach(pkt->skb, in nft_reject_inet_eval() 37 nft_hook(pkt)); in nft_reject_inet_eval() 44 nf_send_unreach6(nft_net(pkt), pkt->skb, in nft_reject_inet_eval() 48 nf_send_reset6(nft_net(pkt), nft_sk(pkt), in nft_reject_inet_eval() 49 pkt->skb, nft_hook(pkt)); in nft_reject_inet_eval() 52 nf_send_unreach6(nft_net(pkt), pkt->skb, in nft_reject_inet_eval() [all …]
|
/linux/drivers/input/touchscreen/ |
A D | usbtouchscreen.c | 266 int tmp = (pkt[0] << 8) | pkt[1]; in e2i_read_data() 267 dev->x = (pkt[2] << 8) | pkt[3]; in e2i_read_data() 268 dev->y = (pkt[4] << 8) | pkt[5]; in e2i_read_data() 436 dev->x = (pkt[4] << 8) | pkt[3]; in mtouch_read_data() 439 dev->x = (pkt[8] << 8) | pkt[7]; in mtouch_read_data() 440 dev->y = (pkt[10] << 8) | pkt[9]; in mtouch_read_data() 652 if (!(pkt[0] & 0x80) || ((pkt[1] | pkt[2] | pkt[3]) & 0x80)) in gunze_read_data() 753 dev->x = (pkt[3] << 8) | pkt[2]; in irtouch_read_data() 754 dev->y = (pkt[5] << 8) | pkt[4]; in irtouch_read_data() 820 dev->x = (pkt[2] << 8) | pkt[1]; in general_touch_read_data() [all …]
|
/linux/include/net/caif/ |
A D | cfpkt.h | 23 void cfpkt_destroy(struct cfpkt *pkt); 39 cfpkt_extr_head(pkt, &tmp, 1); in cfpkt_extr_head_u8() 48 cfpkt_extr_head(pkt, &tmp, 2); in cfpkt_extr_head_u16() 57 cfpkt_extr_head(pkt, &tmp, 4); in cfpkt_extr_head_u32() 113 int cfpkt_pad_trail(struct cfpkt *pkt, u16 len); 139 bool cfpkt_more(struct cfpkt *pkt); 148 bool cfpkt_erroneous(struct cfpkt *pkt); 155 u16 cfpkt_getlen(struct cfpkt *pkt); 163 int cfpkt_setlen(struct cfpkt *pkt, u16 len); 201 int cfpkt_iterate(struct cfpkt *pkt, [all …]
|
/linux/drivers/vhost/ |
A D | vsock.c | 169 payload_len = pkt->len - pkt->off; in vhost_transport_do_send_pkt() 209 nbytes = copy_to_iter(pkt->buf + pkt->off, payload_len, in vhost_transport_do_send_pkt() 231 if (pkt->off < pkt->len) { in vhost_transport_do_send_pkt() 369 pkt = kzalloc(sizeof(*pkt), GFP_KERNEL); in vhost_vsock_alloc_pkt() 370 if (!pkt) in vhost_vsock_alloc_pkt() 380 kfree(pkt); in vhost_vsock_alloc_pkt() 384 pkt->len = le32_to_cpu(pkt->hdr.len); in vhost_vsock_alloc_pkt() 396 pkt->buf = kmalloc(pkt->len, GFP_KERNEL); in vhost_vsock_alloc_pkt() 402 pkt->buf_len = pkt->len; in vhost_vsock_alloc_pkt() 412 return pkt; in vhost_vsock_alloc_pkt() [all …]
|
/linux/net/qrtr/ |
A D | ns.c | 114 iv.iov_base = &pkt; in service_announce_new() 117 memset(&pkt, 0, sizeof(pkt)); in service_announce_new() 141 iv.iov_base = &pkt; in service_announce_del() 144 memset(&pkt, 0, sizeof(pkt)); in service_announce_del() 169 iv.iov_base = &pkt; in lookup_notify() 172 memset(&pkt, 0, sizeof(pkt)); in lookup_notify() 312 iv.iov_base = &pkt; in say_hello() 315 memset(&pkt, 0, sizeof(pkt)); in say_hello() 382 memset(&pkt, 0, sizeof(pkt)); in ctrl_cmd_bye() 468 memset(&pkt, 0, sizeof(pkt)); in ctrl_cmd_del_client() [all …]
|