/linux-2.6.39/arch/tile/include/hv/ |
D | netio_intf.h | 577 #define __NETIO_PKT_NOTIF_HEADER(pkt) ((pkt)->__notif_header) argument 578 #define __NETIO_PKT_IPP_HANDLE(pkt) ((pkt)->__packet.bits.__ipp_handle) argument 579 #define __NETIO_PKT_QUEUE(pkt) ((pkt)->__packet.bits.__queue) argument 580 #define __NETIO_PKT_NOTIF_HEADER_M(mda, pkt) ((pkt)->__notif_header) argument 581 #define __NETIO_PKT_IPP_HANDLE_M(mda, pkt) ((pkt)->__packet.bits.__ipp_handle) argument 582 #define __NETIO_PKT_MINIMAL(pkt) ((pkt)->__packet.bits.__minimal) argument 583 #define __NETIO_PKT_QUEUE_M(mda, pkt) ((pkt)->__packet.bits.__queue) argument 584 #define __NETIO_PKT_FLAGS_M(mda, pkt) ((mda)->__flags) argument 594 #define NETIO_PKT_GOOD_CHECKSUM(pkt) \ argument 595 NETIO_PKT_L4_CSUM_CORRECT(pkt) [all …]
|
/linux-2.6.39/arch/sparc/kernel/ |
D | viohs.c | 48 struct vio_ver_info pkt; in send_version() local 52 memset(&pkt, 0, sizeof(pkt)); in send_version() 53 init_tag(&pkt.tag, VIO_TYPE_CTRL, VIO_SUBTYPE_INFO, VIO_VER_INFO); in send_version() 54 pkt.major = major; in send_version() 55 pkt.minor = minor; in send_version() 56 pkt.dev_class = vio->dev_class; in send_version() 61 return send_ctrl(vio, &pkt.tag, sizeof(pkt)); in send_version() 161 struct vio_msg_tag *pkt = arg; in process_unknown() local 164 pkt->type, pkt->stype, pkt->stype_env, pkt->sid); in process_unknown() 178 struct vio_dring_register pkt; in send_dreg() member [all …]
|
D | ds.c | 285 } pkt; in md_update_data() local 293 memset(&pkt, 0, sizeof(pkt)); in md_update_data() 294 pkt.data.tag.type = DS_DATA; in md_update_data() 295 pkt.data.tag.len = sizeof(pkt) - sizeof(struct ds_msg_tag); in md_update_data() 296 pkt.data.handle = cp->handle; in md_update_data() 297 pkt.res.req_num = rp->req_num; in md_update_data() 298 pkt.res.result = DS_OK; in md_update_data() 300 ds_send(lp, &pkt, sizeof(pkt)); in md_update_data() 324 } pkt; in domain_shutdown_data() local 331 memset(&pkt, 0, sizeof(pkt)); in domain_shutdown_data() [all …]
|
/linux-2.6.39/net/caif/ |
D | cfpkt_skbuff.c | 17 #define PKT_ERROR(pkt, errmsg) \ argument 19 cfpkt_priv(pkt)->erronous = true; \ 20 skb_reset_tail_pointer(&pkt->skb); \ 45 inline struct cfpkt_priv_data *cfpkt_priv(struct cfpkt *pkt) in cfpkt_priv() argument 47 return (struct cfpkt_priv_data *) pkt->skb.cb; in cfpkt_priv() 50 inline bool is_erronous(struct cfpkt *pkt) in is_erronous() argument 52 return cfpkt_priv(pkt)->erronous; in is_erronous() 55 inline struct sk_buff *pkt_to_skb(struct cfpkt *pkt) in pkt_to_skb() argument 57 return &pkt->skb; in pkt_to_skb() 68 struct cfpkt *pkt = skb_to_pkt(nativepkt); in cfpkt_fromnative() local [all …]
|
D | cfctrl.c | 23 int cmd, struct cfpkt *pkt){ in handle_loop() argument 28 int cmd, struct cfpkt *pkt); 30 static int cfctrl_recv(struct cflayer *layr, struct cfpkt *pkt); 178 struct cfpkt *pkt = cfpkt_create(CFPKT_CTRL_PKT_LEN); in cfctrl_enum_req() local 179 if (!pkt) { in cfctrl_enum_req() 184 init_info(cfpkt_info(pkt), cfctrl); in cfctrl_enum_req() 185 cfpkt_info(pkt)->dev_info->id = physlinkid; in cfctrl_enum_req() 187 cfpkt_addbdy(pkt, CFCTRL_CMD_ENUM); in cfctrl_enum_req() 188 cfpkt_addbdy(pkt, physlinkid); in cfctrl_enum_req() 190 cfctrl->serv.layer.dn->transmit(cfctrl->serv.layer.dn, pkt); in cfctrl_enum_req() [all …]
|
D | cfserl.c | 29 static int cfserl_receive(struct cflayer *layr, struct cfpkt *pkt); 30 static int cfserl_transmit(struct cflayer *layr, struct cfpkt *pkt); 57 struct cfpkt *pkt = NULL; in cfserl_receive() local 71 pkt = layr->incomplete_frm; in cfserl_receive() 72 if (pkt == NULL) { in cfserl_receive() 77 pkt = newpkt; in cfserl_receive() 84 cfpkt_extr_head(pkt, &tmp8, 1); in cfserl_receive() 86 while (cfpkt_more(pkt) in cfserl_receive() 88 cfpkt_extr_head(pkt, &tmp8, 1); in cfserl_receive() 90 if (!cfpkt_more(pkt)) { in cfserl_receive() [all …]
|
D | cffrml.c | 26 static int cffrml_receive(struct cflayer *layr, struct cfpkt *pkt); 27 static int cffrml_transmit(struct cflayer *layr, struct cfpkt *pkt); 70 static int cffrml_receive(struct cflayer *layr, struct cfpkt *pkt) in cffrml_receive() argument 79 cfpkt_extr_head(pkt, &tmp, 2); in cffrml_receive() 86 if (cfpkt_setlen(pkt, len) < 0) { in cffrml_receive() 89 cfpkt_destroy(pkt); in cffrml_receive() 97 cfpkt_extr_trail(pkt, &tmp, 2); in cffrml_receive() 99 pktchks = cfpkt_iterate(pkt, cffrml_checksum, 0xffff); in cffrml_receive() 101 cfpkt_add_trail(pkt, &tmp, 2); in cffrml_receive() 109 if (cfpkt_erroneous(pkt)) { in cffrml_receive() [all …]
|
D | cfdgml.c | 24 static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt); 25 static int cfdgml_transmit(struct cflayer *layr, struct cfpkt *pkt); 44 static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt) in cfdgml_receive() argument 53 if (cfpkt_extr_head(pkt, &cmd, 1) < 0) { in cfdgml_receive() 55 cfpkt_destroy(pkt); in cfdgml_receive() 60 if (cfpkt_extr_head(pkt, &dgmhdr, 3) < 0) { in cfdgml_receive() 62 cfpkt_destroy(pkt); in cfdgml_receive() 65 ret = layr->up->receive(layr->up, pkt); in cfdgml_receive() 72 cfpkt_destroy(pkt); in cfdgml_receive() 76 cfpkt_destroy(pkt); in cfdgml_receive() [all …]
|
D | cfrfml.c | 21 static int cfrfml_receive(struct cflayer *layr, struct cfpkt *pkt); 22 static int cfrfml_transmit(struct cflayer *layr, struct cfpkt *pkt); 75 struct cfpkt *pkt, int *err) in rfm_append() argument 81 if (cfpkt_extr_head(pkt, seghead, 6) < 0) in rfm_append() 88 tmppkt = cfpkt_append(rfml->incomplete_frm, pkt, in rfm_append() 100 static int cfrfml_receive(struct cflayer *layr, struct cfpkt *pkt) in cfrfml_receive() argument 115 if (cfpkt_extr_head(pkt, &tmp, 1) < 0) in cfrfml_receive() 122 if (cfpkt_peek_head(pkt, rfml->seghead, 6) < 0) in cfrfml_receive() 127 if (cfpkt_erroneous(pkt)) in cfrfml_receive() 129 rfml->incomplete_frm = pkt; in cfrfml_receive() [all …]
|
D | cfutill.c | 24 static int cfutill_receive(struct cflayer *layr, struct cfpkt *pkt); 25 static int cfutill_transmit(struct cflayer *layr, struct cfpkt *pkt); 43 static int cfutill_receive(struct cflayer *layr, struct cfpkt *pkt) in cfutill_receive() argument 51 if (cfpkt_extr_head(pkt, &cmd, 1) < 0) { in cfutill_receive() 53 cfpkt_destroy(pkt); in cfutill_receive() 59 return layr->up->receive(layr->up, pkt); in cfutill_receive() 62 cfpkt_destroy(pkt); in cfutill_receive() 66 cfpkt_destroy(pkt); in cfutill_receive() 72 cfpkt_destroy(pkt); in cfutill_receive() 75 cfpkt_destroy(pkt); in cfutill_receive() [all …]
|
D | cfveil.c | 23 static int cfvei_receive(struct cflayer *layr, struct cfpkt *pkt); 24 static int cfvei_transmit(struct cflayer *layr, struct cfpkt *pkt); 42 static int cfvei_receive(struct cflayer *layr, struct cfpkt *pkt) in cfvei_receive() argument 51 if (cfpkt_extr_head(pkt, &cmd, 1) < 0) { in cfvei_receive() 53 cfpkt_destroy(pkt); in cfvei_receive() 58 ret = layr->up->receive(layr->up, pkt); in cfvei_receive() 62 cfpkt_destroy(pkt); in cfvei_receive() 66 cfpkt_destroy(pkt); in cfvei_receive() 69 cfpkt_destroy(pkt); in cfvei_receive() 73 cfpkt_destroy(pkt); in cfvei_receive() [all …]
|
D | cfvidl.c | 19 static int cfvidl_receive(struct cflayer *layr, struct cfpkt *pkt); 20 static int cfvidl_transmit(struct cflayer *layr, struct cfpkt *pkt); 39 static int cfvidl_receive(struct cflayer *layr, struct cfpkt *pkt) in cfvidl_receive() argument 42 if (cfpkt_extr_head(pkt, &videoheader, 4) < 0) { in cfvidl_receive() 44 cfpkt_destroy(pkt); in cfvidl_receive() 47 return layr->up->receive(layr->up, pkt); in cfvidl_receive() 50 static int cfvidl_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfvidl_transmit() argument 58 cfpkt_add_head(pkt, &videoheader, 4); in cfvidl_transmit() 60 info = cfpkt_info(pkt); in cfvidl_transmit() 63 ret = layr->dn->transmit(layr->dn, pkt); in cfvidl_transmit() [all …]
|
/linux-2.6.39/drivers/input/touchscreen/ |
D | usbtouchscreen.c | 87 void (*process_pkt) (struct usbtouch_usb *usbtouch, unsigned char *pkt, int len); 95 int (*get_pkt_len) (unsigned char *pkt, int len); 97 int (*read_data) (struct usbtouch_usb *usbtouch, unsigned char *pkt); 265 static int e2i_read_data(struct usbtouch_usb *dev, unsigned char *pkt) in e2i_read_data() argument 267 int tmp = (pkt[0] << 8) | pkt[1]; in e2i_read_data() 268 dev->x = (pkt[2] << 8) | pkt[3]; in e2i_read_data() 269 dev->y = (pkt[4] << 8) | pkt[5]; in e2i_read_data() 294 static int egalax_read_data(struct usbtouch_usb *dev, unsigned char *pkt) in egalax_read_data() argument 296 if ((pkt[0] & EGALAX_PKT_TYPE_MASK) != EGALAX_PKT_TYPE_REPT) in egalax_read_data() 299 dev->x = ((pkt[3] & 0x0F) << 7) | (pkt[4] & 0x7F); in egalax_read_data() [all …]
|
/linux-2.6.39/include/net/caif/ |
D | cfpkt.h | 29 void cfpkt_destroy(struct cfpkt *pkt); 39 int cfpkt_extr_head(struct cfpkt *pkt, void *data, u16 len); 50 int cfpkt_peek_head(struct cfpkt *pkt, void *data, u16 len); 60 int cfpkt_extr_trail(struct cfpkt *pkt, void *data, u16 len); 71 int cfpkt_add_head(struct cfpkt *pkt, const void *data, u16 len); 82 int cfpkt_add_trail(struct cfpkt *pkt, const void *data, u16 len); 92 int cfpkt_pad_trail(struct cfpkt *pkt, u16 len); 101 int cfpkt_addbdy(struct cfpkt *pkt, const u8 data); 111 int cfpkt_add_body(struct cfpkt *pkt, const void *data, u16 len); 118 bool cfpkt_more(struct cfpkt *pkt); [all …]
|
/linux-2.6.39/drivers/infiniband/hw/ipath/ |
D | ipath_user_sdma.c | 147 static void ipath_user_sdma_init_frag(struct ipath_user_sdma_pkt *pkt, in ipath_user_sdma_init_frag() argument 153 pkt->addr[i].offset = offset; in ipath_user_sdma_init_frag() 154 pkt->addr[i].length = len; in ipath_user_sdma_init_frag() 155 pkt->addr[i].put_page = put_page; in ipath_user_sdma_init_frag() 156 pkt->addr[i].dma_mapped = dma_mapped; in ipath_user_sdma_init_frag() 157 pkt->addr[i].page = page; in ipath_user_sdma_init_frag() 158 pkt->addr[i].kvaddr = kvaddr; in ipath_user_sdma_init_frag() 159 pkt->addr[i].addr = dma_addr; in ipath_user_sdma_init_frag() 162 static void ipath_user_sdma_init_header(struct ipath_user_sdma_pkt *pkt, in ipath_user_sdma_init_header() argument 168 pkt->naddr = 1; in ipath_user_sdma_init_header() [all …]
|
/linux-2.6.39/drivers/infiniband/hw/qib/ |
D | qib_user_sdma.c | 146 static void qib_user_sdma_init_frag(struct qib_user_sdma_pkt *pkt, in qib_user_sdma_init_frag() argument 152 pkt->addr[i].offset = offset; in qib_user_sdma_init_frag() 153 pkt->addr[i].length = len; in qib_user_sdma_init_frag() 154 pkt->addr[i].put_page = put_page; in qib_user_sdma_init_frag() 155 pkt->addr[i].dma_mapped = dma_mapped; in qib_user_sdma_init_frag() 156 pkt->addr[i].page = page; in qib_user_sdma_init_frag() 157 pkt->addr[i].kvaddr = kvaddr; in qib_user_sdma_init_frag() 158 pkt->addr[i].addr = dma_addr; in qib_user_sdma_init_frag() 161 static void qib_user_sdma_init_header(struct qib_user_sdma_pkt *pkt, in qib_user_sdma_init_header() argument 167 pkt->naddr = 1; in qib_user_sdma_init_header() [all …]
|
/linux-2.6.39/drivers/block/ |
D | pktcdvd.c | 563 struct packet_data *pkt; in pkt_alloc_packet_data() local 565 pkt = kzalloc(sizeof(struct packet_data), GFP_KERNEL); in pkt_alloc_packet_data() 566 if (!pkt) in pkt_alloc_packet_data() 569 pkt->frames = frames; in pkt_alloc_packet_data() 570 pkt->w_bio = pkt_bio_alloc(frames); in pkt_alloc_packet_data() 571 if (!pkt->w_bio) in pkt_alloc_packet_data() 575 pkt->pages[i] = alloc_page(GFP_KERNEL|__GFP_ZERO); in pkt_alloc_packet_data() 576 if (!pkt->pages[i]) in pkt_alloc_packet_data() 580 spin_lock_init(&pkt->lock); in pkt_alloc_packet_data() 581 bio_list_init(&pkt->orig_bios); in pkt_alloc_packet_data() [all …]
|
/linux-2.6.39/drivers/net/arcnet/ |
D | rfc1051.c | 43 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, 92 struct archdr *pkt = (struct archdr *) skb->data; in type_trans() local 93 struct arc_rfc1051 *soft = &pkt->soft.rfc1051; in type_trans() 100 if (pkt->hard.dest == 0) in type_trans() 104 if (pkt->hard.dest != dev->dev_addr[0]) in type_trans() 130 struct archdr *pkt = pkthdr; in rx() local 149 pkt = (struct archdr *) skb->data; in rx() 152 memcpy(pkt, pkthdr, sizeof(struct archdr)); in rx() 153 if (length > sizeof(pkt->soft)) in rx() 154 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx() [all …]
|
D | capmode.c | 46 struct archdr *pkt = pkthdr; in rx() local 66 pkt = (struct archdr *)skb_mac_header(skb); in rx() 74 pktbuf=(char*)pkt; in rx() 76 memcpy(pktbuf, pkthdrbuf, ARC_HDR_SIZE+sizeof(pkt->soft.cap.proto)); in rx() 77 memcpy(pktbuf+ARC_HDR_SIZE+sizeof(pkt->soft.cap.proto)+sizeof(int), in rx() 78 pkthdrbuf+ARC_HDR_SIZE+sizeof(pkt->soft.cap.proto), in rx() 79 sizeof(struct archdr)-ARC_HDR_SIZE-sizeof(pkt->soft.cap.proto)); in rx() 81 if (length > sizeof(pkt->soft)) in rx() 82 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx() 83 pkt->soft.raw + sizeof(pkt->soft) in rx() [all …]
|
D | arc-rawmode.c | 43 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, 93 struct archdr *pkt = pkthdr; in rx() local 112 pkt = (struct archdr *) skb->data; in rx() 118 memcpy(pkt, pkthdr, sizeof(struct archdr)); in rx() 119 if (length > sizeof(pkt->soft)) in rx() 120 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx() 121 pkt->soft.raw + sizeof(pkt->soft), in rx() 122 length - sizeof(pkt->soft)); in rx() 139 struct archdr *pkt = (struct archdr *) skb_push(skb, hdr_size); in build_header() local 148 pkt->hard.source = *dev->dev_addr; in build_header() [all …]
|
D | rfc1201.c | 43 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, 94 struct archdr *pkt = (struct archdr *) skb->data; in type_trans() local 95 struct arc_rfc1201 *soft = &pkt->soft.rfc1201; in type_trans() 102 if (pkt->hard.dest == 0) in type_trans() 106 if (pkt->hard.dest != dev->dev_addr[0]) in type_trans() 139 struct archdr *pkt = pkthdr; in rx() local 141 int saddr = pkt->hard.source, ofs; in rx() 164 soft, sizeof(pkt->soft)); in rx() 190 pkt = (struct archdr *) skb->data; in rx() 191 soft = &pkt->soft.rfc1201; in rx() [all …]
|
/linux-2.6.39/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 …]
|
/linux-2.6.39/drivers/net/wireless/iwlwifi/ |
D | iwl-rx.c | 231 struct iwl_rx_packet *pkt = rxb_addr(rxb); in iwl_rx_reply_alive() local 235 palive = &pkt->u.alive_frame; in iwl_rx_reply_alive() 245 &pkt->u.alive_frame, in iwl_rx_reply_alive() 250 memcpy(&priv->card_alive, &pkt->u.alive_frame, in iwl_rx_reply_alive() 280 struct iwl_rx_packet *pkt = rxb_addr(rxb); in iwl_rx_reply_error() local 284 le32_to_cpu(pkt->u.err_resp.error_type), in iwl_rx_reply_error() 285 get_cmd_string(pkt->u.err_resp.cmd_id), in iwl_rx_reply_error() 286 pkt->u.err_resp.cmd_id, in iwl_rx_reply_error() 287 le16_to_cpu(pkt->u.err_resp.bad_cmd_seq_num), in iwl_rx_reply_error() 288 le32_to_cpu(pkt->u.err_resp.error_info)); in iwl_rx_reply_error() [all …]
|
/linux-2.6.39/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() 88 _r8712_open_pktfile(ppktfile->pkt, ppktfile); in r8712_set_qos() 141 if (pxframe->pkt) in r8712_xmit_complete() 142 dev_kfree_skb_any(pxframe->pkt); in r8712_xmit_complete() 143 pxframe->pkt = NULL; in r8712_xmit_complete() 146 int r8712_xmit_entry(_pkt *pkt, struct net_device *pnetdev) in r8712_xmit_entry() argument 162 if ((!r8712_update_attrib(padapter, pkt, &pxmitframe->attrib))) { in r8712_xmit_entry() 167 pxmitframe->pkt = pkt; in r8712_xmit_entry() 170 dev_kfree_skb_any(pkt); in r8712_xmit_entry() [all …]
|
/linux-2.6.39/drivers/staging/hv/ |
D | rndis_filter.c | 73 struct hv_netvsc_packet pkt; member 95 struct hv_netvsc_packet *pkt); 178 rndis_msg->msg.pkt.data_offset, in dump_rndis_message() 179 rndis_msg->msg.pkt.data_len, in dump_rndis_message() 180 rndis_msg->msg.pkt.num_oob_data_elements, in dump_rndis_message() 181 rndis_msg->msg.pkt.oob_data_offset, in dump_rndis_message() 182 rndis_msg->msg.pkt.oob_data_len, in dump_rndis_message() 183 rndis_msg->msg.pkt.per_pkt_info_offset, in dump_rndis_message() 184 rndis_msg->msg.pkt.per_pkt_info_len); in dump_rndis_message() 250 packet = &req->pkt; in rndis_filter_send_request() [all …]
|