/drivers/infiniband/sw/rxe/ |
D | rxe_hdr.h | 57 #define PKT_TO_SKB(pkt) container_of((void *)(pkt), struct sk_buff, cb) argument 300 static inline u8 bth_opcode(struct rxe_pkt_info *pkt) in bth_opcode() argument 302 return __bth_opcode(pkt->hdr + pkt->offset); in bth_opcode() 305 static inline void bth_set_opcode(struct rxe_pkt_info *pkt, u8 opcode) in bth_set_opcode() argument 307 __bth_set_opcode(pkt->hdr + pkt->offset, opcode); in bth_set_opcode() 310 static inline u8 bth_se(struct rxe_pkt_info *pkt) in bth_se() argument 312 return __bth_se(pkt->hdr + pkt->offset); in bth_se() 315 static inline void bth_set_se(struct rxe_pkt_info *pkt, int se) in bth_set_se() argument 317 __bth_set_se(pkt->hdr + pkt->offset, se); in bth_set_se() 320 static inline u8 bth_mig(struct rxe_pkt_info *pkt) in bth_mig() argument [all …]
|
D | rxe_recv.c | 39 static int check_type_state(struct rxe_dev *rxe, struct rxe_pkt_info *pkt, in check_type_state() argument 47 if (unlikely((pkt->opcode & IB_OPCODE_RC) != 0)) { in check_type_state() 53 if (unlikely(!(pkt->opcode & IB_OPCODE_UC))) { in check_type_state() 61 if (unlikely(!(pkt->opcode & IB_OPCODE_UD))) { in check_type_state() 71 if (pkt->mask & RXE_REQ_MASK) { in check_type_state() 101 static int check_keys(struct rxe_dev *rxe, struct rxe_pkt_info *pkt, in check_keys() argument 107 u16 pkey = bth_pkey(pkt); in check_keys() 109 pkt->pkey_index = 0; in check_keys() 114 pkt->pkey_index = i; in check_keys() 133 pkt->pkey_index = qp->attr.pkey_index; in check_keys() [all …]
|
D | rxe_resp.c | 111 struct rxe_pkt_info *pkt = SKB_TO_PKT(skb); in rxe_resp_queue_pkt() local 115 must_sched = (pkt->opcode == IB_OPCODE_RC_RDMA_READ_REQUEST) || in rxe_resp_queue_pkt() 149 struct rxe_pkt_info *pkt) in check_psn() argument 151 int diff = psn_compare(pkt->psn, qp->resp.psn); in check_psn() 173 if (pkt->mask & RXE_START_MASK) { in check_psn() 190 struct rxe_pkt_info *pkt) in check_op_seq() argument 197 switch (pkt->opcode) { in check_op_seq() 209 switch (pkt->opcode) { in check_op_seq() 219 switch (pkt->opcode) { in check_op_seq() 238 switch (pkt->opcode) { in check_op_seq() [all …]
|
D | rxe_comp.c | 161 struct rxe_pkt_info *pkt, in get_wqe() argument 174 return pkt ? COMPST_DONE : COMPST_EXIT; in get_wqe() 185 return pkt ? COMPST_CHECK_PSN : COMPST_EXIT; in get_wqe() 195 struct rxe_pkt_info *pkt, in check_psn() argument 203 diff = psn_compare(pkt->psn, wqe->last_psn); in check_psn() 217 diff = psn_compare(pkt->psn, qp->comp.psn); in check_psn() 222 if (pkt->psn == wqe->last_psn) in check_psn() 234 struct rxe_pkt_info *pkt, in check_ack() argument 237 unsigned int mask = pkt->mask; in check_ack() 251 if (pkt->opcode != IB_OPCODE_RC_RDMA_READ_RESPONSE_MIDDLE && in check_ack() [all …]
|
D | rxe_req.c | 382 struct rxe_pkt_info *pkt) in init_req_packet() argument 402 pkt->opcode = opcode; in init_req_packet() 403 pkt->qp = qp; in init_req_packet() 404 pkt->psn = qp->req.psn; in init_req_packet() 405 pkt->mask = rxe_opcode[opcode].mask; in init_req_packet() 406 pkt->paylen = paylen; in init_req_packet() 407 pkt->offset = 0; in init_req_packet() 408 pkt->wqe = wqe; in init_req_packet() 411 av = rxe_get_av(pkt); in init_req_packet() 412 skb = rxe->ifc_ops->init_packet(rxe, av, paylen, pkt); in init_req_packet() [all …]
|
D | rxe_av.c | 89 struct rxe_av *rxe_get_av(struct rxe_pkt_info *pkt) in rxe_get_av() argument 91 if (!pkt || !pkt->qp) in rxe_get_av() 94 if (qp_type(pkt->qp) == IB_QPT_RC || qp_type(pkt->qp) == IB_QPT_UC) in rxe_get_av() 95 return &pkt->qp->pri_av; in rxe_get_av() 97 return (pkt->wqe) ? &pkt->wqe->av : NULL; in rxe_get_av()
|
/drivers/infiniband/hw/qib/ |
D | qib_user_sdma.c | 258 static void qib_user_sdma_init_frag(struct qib_user_sdma_pkt *pkt, in qib_user_sdma_init_frag() argument 265 pkt->addr[i].offset = offset; in qib_user_sdma_init_frag() 266 pkt->addr[i].length = len; in qib_user_sdma_init_frag() 267 pkt->addr[i].first_desc = first_desc; in qib_user_sdma_init_frag() 268 pkt->addr[i].last_desc = last_desc; in qib_user_sdma_init_frag() 269 pkt->addr[i].put_page = put_page; in qib_user_sdma_init_frag() 270 pkt->addr[i].dma_mapped = dma_mapped; in qib_user_sdma_init_frag() 271 pkt->addr[i].page = page; in qib_user_sdma_init_frag() 272 pkt->addr[i].kvaddr = kvaddr; in qib_user_sdma_init_frag() 273 pkt->addr[i].addr = dma_addr; in qib_user_sdma_init_frag() [all …]
|
/drivers/usb/renesas_usbhs/ |
D | fifo.c | 31 void usbhs_pkt_init(struct usbhs_pkt *pkt) in usbhs_pkt_init() argument 33 INIT_LIST_HEAD(&pkt->node); in usbhs_pkt_init() 39 static int usbhsf_null_handle(struct usbhs_pkt *pkt, int *is_done) in usbhsf_null_handle() argument 41 struct usbhs_priv *priv = usbhs_pipe_to_priv(pkt->pipe); in usbhsf_null_handle() 54 void usbhs_pkt_push(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt, in usbhs_pkt_push() argument 56 struct usbhs_pkt *pkt), in usbhs_pkt_push() argument 76 list_move_tail(&pkt->node, &pipe->list); in usbhs_pkt_push() 83 pkt->pipe = pipe; in usbhs_pkt_push() 84 pkt->buf = buf; in usbhs_pkt_push() 85 pkt->handler = pipe->handler; in usbhs_pkt_push() [all …]
|
/drivers/input/touchscreen/ |
D | usbtouchscreen.c | 88 void (*process_pkt) (struct usbtouch_usb *usbtouch, unsigned char *pkt, int len); 96 int (*get_pkt_len) (unsigned char *pkt, int len); 98 int (*read_data) (struct usbtouch_usb *usbtouch, unsigned char *pkt); 278 static int e2i_read_data(struct usbtouch_usb *dev, unsigned char *pkt) in e2i_read_data() argument 280 int tmp = (pkt[0] << 8) | pkt[1]; in e2i_read_data() 281 dev->x = (pkt[2] << 8) | pkt[3]; in e2i_read_data() 282 dev->y = (pkt[4] << 8) | pkt[5]; in e2i_read_data() 346 static int egalax_read_data(struct usbtouch_usb *dev, unsigned char *pkt) in egalax_read_data() argument 348 if ((pkt[0] & EGALAX_PKT_TYPE_MASK) != EGALAX_PKT_TYPE_REPT) in egalax_read_data() 351 dev->x = ((pkt[3] & 0x0F) << 7) | (pkt[4] & 0x7F); in egalax_read_data() [all …]
|
/drivers/vhost/ |
D | vsock.c | 92 struct virtio_vsock_pkt *pkt; in vhost_transport_do_send_pkt() local 106 pkt = list_first_entry(&vsock->send_pkt_list, in vhost_transport_do_send_pkt() 108 list_del_init(&pkt->list); in vhost_transport_do_send_pkt() 115 list_add(&pkt->list, &vsock->send_pkt_list); in vhost_transport_do_send_pkt() 122 list_add(&pkt->list, &vsock->send_pkt_list); in vhost_transport_do_send_pkt() 136 virtio_transport_free_pkt(pkt); in vhost_transport_do_send_pkt() 144 nbytes = copy_to_iter(&pkt->hdr, sizeof(pkt->hdr), &iov_iter); in vhost_transport_do_send_pkt() 145 if (nbytes != sizeof(pkt->hdr)) { in vhost_transport_do_send_pkt() 146 virtio_transport_free_pkt(pkt); in vhost_transport_do_send_pkt() 151 nbytes = copy_to_iter(pkt->buf, pkt->len, &iov_iter); in vhost_transport_do_send_pkt() [all …]
|
/drivers/net/xen-netback/ |
D | rx.c | 227 struct xenvif_pkt_state *pkt) in xenvif_rx_next_skb() argument 238 memset(pkt, 0, sizeof(struct xenvif_pkt_state)); in xenvif_rx_next_skb() 240 pkt->skb = skb; in xenvif_rx_next_skb() 241 pkt->frag_iter = skb; in xenvif_rx_next_skb() 242 pkt->remaining_len = skb->len; in xenvif_rx_next_skb() 243 pkt->frag = -1; in xenvif_rx_next_skb() 249 extra = &pkt->extras[XEN_NETIF_EXTRA_TYPE_GSO - 1]; in xenvif_rx_next_skb() 258 pkt->extra_count++; in xenvif_rx_next_skb() 264 extra = &pkt->extras[XEN_NETIF_EXTRA_TYPE_HASH - 1]; in xenvif_rx_next_skb() 285 pkt->extra_count++; in xenvif_rx_next_skb() [all …]
|
/drivers/block/ |
D | pktcdvd.c | 525 struct packet_data *pkt; in pkt_alloc_packet_data() local 527 pkt = kzalloc(sizeof(struct packet_data), GFP_KERNEL); in pkt_alloc_packet_data() 528 if (!pkt) in pkt_alloc_packet_data() 531 pkt->frames = frames; in pkt_alloc_packet_data() 532 pkt->w_bio = bio_kmalloc(GFP_KERNEL, frames); in pkt_alloc_packet_data() 533 if (!pkt->w_bio) in pkt_alloc_packet_data() 537 pkt->pages[i] = alloc_page(GFP_KERNEL|__GFP_ZERO); in pkt_alloc_packet_data() 538 if (!pkt->pages[i]) in pkt_alloc_packet_data() 542 spin_lock_init(&pkt->lock); in pkt_alloc_packet_data() 543 bio_list_init(&pkt->orig_bios); in pkt_alloc_packet_data() [all …]
|
D | sunvdc.c | 200 struct vio_msg_tag *pkt = arg; in vdc_handle_unknown() local 203 pkt->type, pkt->stype, pkt->stype_env, pkt->sid); in vdc_handle_unknown() 214 struct vio_disk_attr_info pkt; in vdc_send_attr() local 216 memset(&pkt, 0, sizeof(pkt)); in vdc_send_attr() 218 pkt.tag.type = VIO_TYPE_CTRL; in vdc_send_attr() 219 pkt.tag.stype = VIO_SUBTYPE_INFO; in vdc_send_attr() 220 pkt.tag.stype_env = VIO_ATTR_INFO; in vdc_send_attr() 221 pkt.tag.sid = vio_send_sid(vio); in vdc_send_attr() 223 pkt.xfer_mode = VIO_DRING_MODE; in vdc_send_attr() 224 pkt.vdisk_block_size = port->vdisk_block_size; in vdc_send_attr() [all …]
|
/drivers/net/arcnet/ |
D | capmode.c | 47 struct archdr *pkt = pkthdr; in rx() local 67 pkt = (struct archdr *)skb_mac_header(skb); in rx() 75 pktbuf = (char *)pkt; in rx() 77 memcpy(pktbuf, pkthdrbuf, ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto)); in rx() 78 memcpy(pktbuf + ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto) + sizeof(int), in rx() 79 pkthdrbuf + ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto), in rx() 80 sizeof(struct archdr) - ARC_HDR_SIZE - sizeof(pkt->soft.cap.proto)); in rx() 82 if (length > sizeof(pkt->soft)) in rx() 83 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx() 84 pkt->soft.raw + sizeof(pkt->soft) in rx() [all …]
|
D | rfc1051.c | 44 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, 89 struct archdr *pkt = (struct archdr *)skb->data; in type_trans() local 90 struct arc_rfc1051 *soft = &pkt->soft.rfc1051; in type_trans() 97 if (pkt->hard.dest == 0) { in type_trans() 101 if (pkt->hard.dest != dev->dev_addr[0]) in type_trans() 126 struct archdr *pkt = pkthdr; in rx() local 144 pkt = (struct archdr *)skb->data; in rx() 147 memcpy(pkt, pkthdr, sizeof(struct archdr)); in rx() 148 if (length > sizeof(pkt->soft)) in rx() 149 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx() [all …]
|
D | rfc1201.c | 45 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, 93 struct archdr *pkt = (struct archdr *)skb->data; in type_trans() local 94 struct arc_rfc1201 *soft = &pkt->soft.rfc1201; in type_trans() 101 if (pkt->hard.dest == 0) { in type_trans() 105 if (pkt->hard.dest != dev->dev_addr[0]) in type_trans() 137 struct archdr *pkt = pkthdr; in rx() local 139 int saddr = pkt->hard.source, ofs; in rx() 163 soft, sizeof(pkt->soft)); in rx() 189 pkt = (struct archdr *)skb->data; in rx() 190 soft = &pkt->soft.rfc1201; in rx() [all …]
|
D | arc-rawmode.c | 44 struct archdr *pkt = pkthdr; in rx() local 62 pkt = (struct archdr *)skb->data; in rx() 68 memcpy(pkt, pkthdr, sizeof(struct archdr)); in rx() 69 if (length > sizeof(pkt->soft)) in rx() 70 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx() 71 pkt->soft.raw + sizeof(pkt->soft), in rx() 72 length - sizeof(pkt->soft)); in rx() 88 struct archdr *pkt = (struct archdr *)skb_push(skb, hdr_size); in build_header() local 96 pkt->hard.source = *dev->dev_addr; in build_header() 104 pkt->hard.dest = 0; in build_header() [all …]
|
/drivers/net/ethernet/sun/ |
D | sunvnet_common.c | 50 struct vio_msg_tag *pkt = arg; in vnet_handle_unknown() local 53 pkt->type, pkt->stype, pkt->stype_env, pkt->sid); in vnet_handle_unknown() 67 struct vio_net_attr_info pkt; in sunvnet_send_attr_common() local 75 memset(&pkt, 0, sizeof(pkt)); in sunvnet_send_attr_common() 76 pkt.tag.type = VIO_TYPE_CTRL; in sunvnet_send_attr_common() 77 pkt.tag.stype = VIO_SUBTYPE_INFO; in sunvnet_send_attr_common() 78 pkt.tag.stype_env = VIO_ATTR_INFO; in sunvnet_send_attr_common() 79 pkt.tag.sid = vio_send_sid(vio); in sunvnet_send_attr_common() 81 pkt.xfer_mode = VIO_DRING_MODE; in sunvnet_send_attr_common() 83 pkt.xfer_mode = VIO_NEW_DRING_MODE; in sunvnet_send_attr_common() [all …]
|
/drivers/usb/host/ |
D | fhci-tds.c | 112 struct packet *pkt = cq_get(&ep->conf_frame_Q); in fhci_ep0_free() local 114 kfree(pkt); in fhci_ep0_free() 122 struct packet *pkt = cq_get(&ep->empty_frame_Q); in fhci_ep0_free() local 124 kfree(pkt); in fhci_ep0_free() 187 struct packet *pkt; in fhci_create_ep() local 190 pkt = kmalloc(sizeof(*pkt), GFP_KERNEL); in fhci_create_ep() 191 if (!pkt) { in fhci_create_ep() 198 kfree(pkt); in fhci_create_ep() 202 cq_put(&ep->empty_frame_Q, pkt); in fhci_create_ep() 284 struct packet *pkt; in fhci_td_transaction_confirm() local [all …]
|
D | fhci-sched.c | 32 static void recycle_frame(struct fhci_usb *usb, struct packet *pkt) in recycle_frame() argument 34 pkt->data = NULL; in recycle_frame() 35 pkt->len = 0; in recycle_frame() 36 pkt->status = USB_TD_OK; in recycle_frame() 37 pkt->info = 0; in recycle_frame() 38 pkt->priv_data = NULL; in recycle_frame() 40 cq_put(&usb->ep0->empty_frame_Q, pkt); in recycle_frame() 44 void fhci_transaction_confirm(struct fhci_usb *usb, struct packet *pkt) in fhci_transaction_confirm() argument 53 td_pkt = td->pkt; in fhci_transaction_confirm() 54 trans_len = pkt->len; in fhci_transaction_confirm() [all …]
|
/drivers/staging/rtl8188eu/os_dep/ |
D | xmit_linux.c | 34 pfile->pkt = pktptr; in _rtw_open_pktfile() 53 skb_copy_bits(pfile->pkt, pfile->buf_len-pfile->pkt_len, rmem, len); in _rtw_pktfile_read() 101 void rtw_os_pkt_complete(struct adapter *padapter, struct sk_buff *pkt) in rtw_os_pkt_complete() argument 106 queue = skb_get_queue_mapping(pkt); in rtw_os_pkt_complete() 116 dev_kfree_skb_any(pkt); in rtw_os_pkt_complete() 121 if (pxframe->pkt) in rtw_os_xmit_complete() 122 rtw_os_pkt_complete(padapter, pxframe->pkt); in rtw_os_xmit_complete() 123 pxframe->pkt = NULL; in rtw_os_xmit_complete() 143 static void rtw_check_xmit_resource(struct adapter *padapter, struct sk_buff *pkt) in rtw_check_xmit_resource() argument 148 queue = skb_get_queue_mapping(pkt); in rtw_check_xmit_resource() [all …]
|
/drivers/staging/rtl8712/ |
D | xmit_linux.c | 52 pfile->pkt = pktptr; in _r8712_open_pktfile() 65 skb_copy_bits(pfile->pkt, pfile->buf_len - pfile->pkt_len, in _r8712_pktfile_read() 84 _r8712_open_pktfile(ppktfile->pkt, ppktfile); in r8712_set_qos() 157 if (pxframe->pkt) in r8712_xmit_complete() 158 dev_kfree_skb_any(pxframe->pkt); in r8712_xmit_complete() 159 pxframe->pkt = NULL; in r8712_xmit_complete() 162 int r8712_xmit_entry(_pkt *pkt, struct net_device *pnetdev) in r8712_xmit_entry() argument 175 if ((!r8712_update_attrib(padapter, pkt, &pxmitframe->attrib))) in r8712_xmit_entry() 179 pxmitframe->pkt = pkt; in r8712_xmit_entry() 182 dev_kfree_skb_any(pkt); in r8712_xmit_entry() [all …]
|
/drivers/soc/qcom/ |
D | smd-rpm.c | 113 } *pkt; in qcom_rpm_smd_write() local 114 size_t size = sizeof(*pkt) + count; in qcom_rpm_smd_write() 120 pkt = kmalloc(size, GFP_KERNEL); in qcom_rpm_smd_write() 121 if (!pkt) in qcom_rpm_smd_write() 126 pkt->hdr.service_type = cpu_to_le32(RPM_SERVICE_TYPE_REQUEST); in qcom_rpm_smd_write() 127 pkt->hdr.length = cpu_to_le32(sizeof(struct qcom_rpm_request) + count); in qcom_rpm_smd_write() 129 pkt->req.msg_id = cpu_to_le32(msg_id++); in qcom_rpm_smd_write() 130 pkt->req.flags = cpu_to_le32(state); in qcom_rpm_smd_write() 131 pkt->req.type = cpu_to_le32(type); in qcom_rpm_smd_write() 132 pkt->req.id = cpu_to_le32(id); in qcom_rpm_smd_write() [all …]
|
/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | rx.c | 52 struct iwl_rx_packet *pkt = rxb_addr(rxb); in iwlagn_rx_reply_error() local 53 struct iwl_error_resp *err_resp = (void *)pkt->data; in iwlagn_rx_reply_error() 65 struct iwl_rx_packet *pkt = rxb_addr(rxb); in iwlagn_rx_csa() local 66 struct iwl_csa_notification *csa = (void *)pkt->data; in iwlagn_rx_csa() 94 struct iwl_rx_packet *pkt = rxb_addr(rxb); in iwlagn_rx_spectrum_measure_notif() local 95 struct iwl_spectrum_notification *report = (void *)pkt->data; in iwlagn_rx_spectrum_measure_notif() 111 struct iwl_rx_packet *pkt = rxb_addr(rxb); in iwlagn_rx_pm_sleep_notif() local 112 struct iwl_sleep_notification *sleep = (void *)pkt->data; in iwlagn_rx_pm_sleep_notif() 121 struct iwl_rx_packet *pkt = rxb_addr(rxb); in iwlagn_rx_pm_debug_statistics_notif() local 122 u32 __maybe_unused len = iwl_rx_packet_len(pkt); in iwlagn_rx_pm_debug_statistics_notif() [all …]
|
/drivers/pci/host/ |
D | pci-hyperv.c | 701 struct pci_packet pkt; in hv_int_desc_free() member 706 int_pkt = (struct pci_delete_interrupt *)&ctxt.pkt.message; in hv_int_desc_free() 712 (unsigned long)&ctxt.pkt, VM_PKT_DATA_INBAND, 0); in hv_int_desc_free() 853 struct pci_packet pkt; in hv_compose_msi_msg() member 879 ctxt.pkt.completion_func = hv_pci_compose_compl; in hv_compose_msi_msg() 880 ctxt.pkt.compl_ctxt = ∁ in hv_compose_msi_msg() 881 int_pkt = (struct pci_create_interrupt *)&ctxt.pkt.message; in hv_compose_msi_msg() 904 sizeof(*int_pkt), (unsigned long)&ctxt.pkt, in hv_compose_msi_msg() 1287 } pkt; in new_pcichild_device() local 1297 memset(&pkt, 0, sizeof(pkt)); in new_pcichild_device() [all …]
|