/external/syslinux/gpxe/src/core/ |
D | gdbudp.c | 59 struct io_buffer *iob; in gdbudp_recv() local 70 while ( ( iob = netdev_rx_dequeue ( netdev ) ) != NULL ) { in gdbudp_recv() 72 if ( iob_len ( iob ) < sizeof ( *ethhdr ) ) { in gdbudp_recv() 75 ethhdr = iob->data; in gdbudp_recv() 76 iob_pull ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv() 80 arphdr = iob->data; in gdbudp_recv() 81 if ( iob_len ( iob ) < sizeof ( *arphdr ) + 2 * ( ETH_ALEN + sizeof ( struct in_addr ) ) || in gdbudp_recv() 98 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv() 102 netdev_tx ( netdev, iob ); in gdbudp_recv() 111 if ( iob_len ( iob ) < sizeof ( *iphdr ) ) { in gdbudp_recv() [all …]
|
/external/syslinux/gpxe/src/net/80211/ |
D | wep.c | 118 struct io_buffer *iob ) in wep_encrypt() argument 124 int datalen = iob_len ( iob ) - hdrlen; in wep_encrypt() 132 memcpy ( iob_put ( eiob, hdrlen ), iob->data, hdrlen ); in wep_encrypt() 145 cipher_encrypt ( &arc4_algorithm, &ctx->arc4, iob->data + hdrlen, in wep_encrypt() 149 icv = ~crc32_le ( ~0, iob->data + hdrlen, datalen ); in wep_encrypt() 170 struct io_buffer *iob; in wep_decrypt() local 177 iob = alloc_iob ( newlen ); in wep_decrypt() 178 if ( ! iob ) in wep_decrypt() 181 memcpy ( iob_put ( iob, hdrlen ), eiob->data, hdrlen ); in wep_decrypt() 182 hdr = iob->data; in wep_decrypt() [all …]
|
D | net80211.c | 189 struct io_buffer *iob ); 191 struct io_buffer *iob ); 195 struct io_buffer *iob, int signal ); 206 struct io_buffer *iob, int signal ); 724 struct io_buffer *iob ) in net80211_tx_mgmt() argument 726 struct ieee80211_frame *hdr = iob_push ( iob, in net80211_tx_mgmt() 743 iob ); in net80211_tx_mgmt() 744 free_iob ( iob ); in net80211_tx_mgmt() 745 iob = eiob; in net80211_tx_mgmt() 748 return netdev_tx ( dev->netdev, iob ); in net80211_tx_mgmt() [all …]
|
D | wpa_tkip.c | 375 struct io_buffer *iob ) in tkip_encrypt() argument 378 struct ieee80211_frame *hdr = iob->data; in tkip_encrypt() 386 int datalen = iob_len ( iob ) - hdrlen; in tkip_encrypt() 397 eiob = alloc_iob ( iob_len ( iob ) + TKIP_HEAD_LEN + TKIP_FOOT_LEN ); in tkip_encrypt() 402 memcpy ( iob_put ( eiob, hdrlen ), iob->data, hdrlen ); in tkip_encrypt() 414 cipher_encrypt ( &arc4_algorithm, &arc4, iob->data + hdrlen, in tkip_encrypt() 418 hdr = iob->data; in tkip_encrypt() 420 iob->data + hdrlen, datalen, mic ); in tkip_encrypt() 425 icv = crc32_le ( ~0, iob->data + hdrlen, datalen ); in tkip_encrypt() 432 iob, eiob ); in tkip_encrypt() [all …]
|
D | wpa_ccmp.c | 319 struct io_buffer *iob ) in ccmp_encrypt() argument 322 struct ieee80211_frame *hdr = iob->data; in ccmp_encrypt() 325 int datalen = iob_len ( iob ) - hdrlen; in ccmp_encrypt() 336 eiob = alloc_iob ( iob_len ( iob ) + CCMP_HEAD_LEN + CCMP_MIC_LEN ); in ccmp_encrypt() 341 memcpy ( iob_put ( eiob, hdrlen ), iob->data, hdrlen ); in ccmp_encrypt() 363 ccmp_cbc_mac ( ctx, &nonce, iob->data + hdrlen, datalen, &aad, mic ); in ccmp_encrypt() 369 iob->data + hdrlen, edata, datalen, in ccmp_encrypt() 374 iob, eiob ); in ccmp_encrypt() 391 struct io_buffer *iob; in ccmp_decrypt() local 399 iob = alloc_iob ( hdrlen + datalen ); in ccmp_decrypt() [all …]
|
D | wpa.c | 216 struct io_buffer *iob; in wpa_start() local 229 iob = dev->associating->beacon; in wpa_start() 230 hdr = iob->data; in wpa_start() 232 ap_rsn_ie = sec80211_find_rsn ( beacon->info_element, iob->tail, in wpa_start() 475 static int wpa_send_eapol ( struct io_buffer *iob, struct wpa_common_ctx *ctx, in wpa_send_eapol() argument 478 struct eapol_key_pkt *pkt = iob->data; in wpa_send_eapol() 479 struct eapol_frame *eapol = iob_push ( iob, EAPOL_HDR_LEN ); in wpa_send_eapol() 487 eapol->length = htons ( iob->tail - iob->data - sizeof ( *eapol ) ); in wpa_send_eapol() 495 return net_tx ( iob, ctx->dev->netdev, &eapol_protocol, in wpa_send_eapol() 513 struct io_buffer *iob = wpa_alloc_frame ( ctx->dev->rsn_ie->len + 2 ); in wpa_send_2_of_4() local [all …]
|
D | sec80211.c | 391 int _sec80211_detect ( struct io_buffer *iob, in _sec80211_detect() argument 395 struct ieee80211_frame *hdr = iob->data; in _sec80211_detect() 405 if ( ! ( rsn = sec80211_find_rsn ( beacon->info_element, iob->tail, in _sec80211_detect()
|
/external/syslinux/gpxe/src/net/ |
D | eapol.c | 43 static int eapol_rx ( struct io_buffer *iob, struct net_device *netdev, in eapol_rx() argument 46 struct eapol_frame *eapol = iob->data; in eapol_rx() 49 if ( iob_len ( iob ) < EAPOL_HDR_LEN ) { in eapol_rx() 50 free_iob ( iob ); in eapol_rx() 56 iob_pull ( iob, EAPOL_HDR_LEN ); in eapol_rx() 57 return handler->rx ( iob, netdev, ll_source ); in eapol_rx() 61 free_iob ( iob ); in eapol_rx()
|
/external/syslinux/gpxe/src/drivers/net/ath5k/ |
D | ath5k.c | 222 if (!bf->iob) in ath5k_txbuf_free() 225 net80211_tx_complete(sc->dev, bf->iob, 0, ECANCELED); in ath5k_txbuf_free() 226 bf->iob = NULL; in ath5k_txbuf_free() 232 free_iob(bf->iob); in ath5k_rxbuf_free() 233 bf->iob = NULL; in ath5k_rxbuf_free() 780 struct io_buffer *iob; in ath5k_rx_iob_alloc() local 787 iob = alloc_iob(sc->rxbufsize + sc->cachelsz - 1); in ath5k_rx_iob_alloc() 789 if (!iob) { in ath5k_rx_iob_alloc() 795 *iob_addr = virt_to_bus(iob->data); in ath5k_rx_iob_alloc() 804 iob_reserve(iob, sc->cachelsz - off); in ath5k_rx_iob_alloc() [all …]
|
D | base.h | 60 struct io_buffer *iob; /* I/O buffer for buf */ member
|
/external/syslinux/gpxe/src/drivers/net/ |
D | myri10ge.c | 210 struct io_buffer *iob ) in myri10ge_post_receive() argument 219 priv->receive_iob[receives_posted & MYRI10GE_RECEIVE_WRAP] = iob; in myri10ge_post_receive() 227 request->addr_low = htonl ( virt_to_bus ( iob->data ) ); in myri10ge_post_receive() 341 struct io_buffer *iob; in myri10ge_interrupt_handler() local 343 iob = priv->transmit_iob [priv->transmits_done in myri10ge_interrupt_handler() 345 DBG2 ( "%p ", iob ); in myri10ge_interrupt_handler() 346 netdev_tx_complete ( netdev, iob ); in myri10ge_interrupt_handler() 675 struct io_buffer *iob; in myri10ge_net_open() local 838 iob = alloc_iob ( MXGEFW_PAD + ETH_FRAME_LEN ); in myri10ge_net_open() 839 if ( !iob ) { in myri10ge_net_open() [all …]
|
D | sis190.c | 205 struct io_buffer *iob; in sis190_alloc_rx_iob() local 207 iob = alloc_iob(RX_BUF_SIZE); in sis190_alloc_rx_iob() 208 if (iob) { in sis190_alloc_rx_iob() 211 mapping = virt_to_bus(iob->data); in sis190_alloc_rx_iob() 218 return iob; in sis190_alloc_rx_iob() 269 struct io_buffer *iob = tp->Rx_iobuf[entry]; in sis190_process_rx() local 280 iob_put(iob, pkt_size); in sis190_process_rx() 283 netdev_rx(tp->dev, iob); in sis190_process_rx() 284 DBGIO_HD(iob->data, 60); in sis190_process_rx() 322 struct io_buffer *iob; in sis190_process_tx() local [all …]
|
D | eepro100.c | 452 if ( tcb->status || tcb->iob ) { in ifec_net_transmit() 464 tcb->iob = iobuf; in ifec_net_transmit() 842 struct io_buffer *iob = priv->rx_iobs[cur_rx]; in ifec_rx_process() local 850 while ( iob && rfd && ( status = rfd->status ) ) { in ifec_rx_process() 860 netdev_rx_err ( netdev, iob, -EINVAL ); in ifec_rx_process() 863 iob_put ( iob, rx_len ); in ifec_rx_process() 864 DBG2 ( "Received packet: %p, len: %d\n", iob, rx_len ); in ifec_rx_process() 865 netdev_rx ( netdev, iob ); in ifec_rx_process() 875 iob = priv->rx_iobs[cur_rx]; in ifec_rx_process() 1039 while ( ( status = tcb->status ) && tcb->iob ) { in ifec_tx_process() [all …]
|
D | atl1e.c | 272 if (tx_buffer->iob) { in atl1e_clean_tx_ring() 273 netdev_tx_complete(adapter->netdev, tx_buffer->iob); in atl1e_clean_tx_ring() 275 tx_buffer->iob = NULL; in atl1e_clean_tx_ring() 732 if (tx_buffer->iob) { in atl1e_clean_tx_irq() 733 netdev_tx_complete(adapter->netdev, tx_buffer->iob); in atl1e_clean_tx_irq() 734 tx_buffer->iob = NULL; in atl1e_clean_tx_irq() 762 struct io_buffer *iob = NULL; in atl1e_clean_rx_irq() local 800 iob = alloc_iob(packet_size + NET_IP_ALIGN); in atl1e_clean_rx_irq() 801 if (iob == NULL) { in atl1e_clean_rx_irq() 806 iob_reserve(iob, NET_IP_ALIGN); in atl1e_clean_rx_irq() [all …]
|
D | sky2.c | 936 struct io_buffer *iob = re->iob; in sky2_rx_map_iob() local 937 re->data_addr = virt_to_bus(iob->data); in sky2_rx_map_iob() 997 if (re->iob) { in sky2_rx_clean() 998 free_iob(re->iob); in sky2_rx_clean() 999 re->iob = NULL; in sky2_rx_clean() 1009 struct io_buffer *iob; in sky2_rx_alloc() local 1011 iob = alloc_iob(sky2->rx_data_size + ETH_DATA_ALIGN); in sky2_rx_alloc() 1012 if (!iob) in sky2_rx_alloc() 1027 iob_reserve(iob, ETH_DATA_ALIGN); in sky2_rx_alloc() 1030 return iob; in sky2_rx_alloc() [all …]
|
D | skge.c | 70 static int skge_xmit_frame(struct net_device *dev, struct io_buffer *iob); 342 struct io_buffer *iob, unsigned int bufsize) in skge_rx_setup() argument 347 map = ( iob != NULL ) ? virt_to_bus(iob->data) : 0; in skge_rx_setup() 351 e->iob = iob; in skge_rx_setup() 389 if (e->iob) { in skge_rx_clean() 390 free_iob(e->iob); in skge_rx_clean() 391 e->iob = NULL; in skge_rx_clean() 1865 static int skge_xmit_frame(struct net_device *dev, struct io_buffer *iob) in skge_xmit_frame() argument 1880 e->iob = iob; in skge_xmit_frame() 1881 len = iob_len(iob); in skge_xmit_frame() [all …]
|
D | etherfabric.c | 3602 falcon_build_rx_desc ( falcon_rx_desc_t *rxd, struct io_buffer *iob ) in falcon_build_rx_desc() argument 3606 FCN_RX_KER_BUF_ADR, virt_to_bus ( iob->data ) ); in falcon_build_rx_desc() 3629 falcon_build_tx_desc ( falcon_tx_desc_t *txd, struct io_buffer *iob ) in falcon_build_tx_desc() argument 3632 FCN_TX_KER_BYTE_CNT, iob_len ( iob ), in falcon_build_tx_desc() 3633 FCN_TX_KER_BUF_ADR, virt_to_bus ( iob->data ) ); in falcon_build_tx_desc() 3667 struct io_buffer *iob; in efab_fill_rx_queue() local 3671 iob = alloc_iob ( EFAB_RX_BUF_SIZE ); in efab_fill_rx_queue() 3672 if ( !iob ) in efab_fill_rx_queue() 3676 buf_id, iob, iob->data ); in efab_fill_rx_queue() 3678 rx_queue->buf[buf_id] = iob; in efab_fill_rx_queue() [all …]
|
D | b44.c | 843 struct io_buffer *iob; /* received data */ in b44_process_rx_packets() local 851 iob = bp->rx_iobuf[i]; in b44_process_rx_packets() 852 if (iob == NULL) in b44_process_rx_packets() 855 rh = iob->data; in b44_process_rx_packets() 875 netdev_rx_err(bp->netdev, iob, -EINVAL); in b44_process_rx_packets() 885 iob_reserve(iob, RX_PKT_OFFSET); in b44_process_rx_packets() 886 iob_put(iob, len); in b44_process_rx_packets() 887 netdev_rx(bp->netdev, iob); in b44_process_rx_packets()
|
D | 3c90x.c | 326 struct io_buffer *iob) in a3c90x_transmit() argument 342 inf_3c90x->tx_iobuf[inf_3c90x->tx_cur] = iob; in a3c90x_transmit() 348 len = iob_len(iob); in a3c90x_transmit() 360 tx_cur_desc->DataAddr = virt_to_bus(iob->data); in a3c90x_transmit()
|
D | eepro100.h | 117 struct io_buffer *iob; /* Exists from tx() to completion poll() */ member
|
/external/syslinux/gpxe/src/include/gpxe/ |
D | net80211.h | 545 struct io_buffer *iob[16]; member 734 struct io_buffer *iob ); 760 struct io_buffer *iob ); 1132 u8 bssid[ETH_ALEN], struct io_buffer *iob ); 1159 void net80211_rx ( struct net80211_device *dev, struct io_buffer *iob, 1162 struct io_buffer *iob, int rc ); 1164 struct io_buffer *iob, int retries, int rc );
|
D | sec80211.h | 41 int _sec80211_detect ( struct io_buffer *iob, 59 static inline int sec80211_detect ( struct io_buffer *iob, in sec80211_detect() argument 63 return _sec80211_detect ( iob, secprot, crypt ); in sec80211_detect()
|
D | eapol.h | 101 int ( * rx ) ( struct io_buffer *iob, struct net_device *netdev,
|
/external/syslinux/gpxe/src/drivers/net/rtl818x/ |
D | rtl818x.c | 69 struct io_buffer *iob = priv->rx_buf[priv->rx_idx]; in rtl818x_handle_rx() local 97 iob_put(iob, flags & 0xFFF); in rtl818x_handle_rx() 99 net80211_rx(dev, iob, (flags2 >> 8) & 0x7f, in rtl818x_handle_rx() 102 iob = new_iob; in rtl818x_handle_rx() 103 priv->rx_buf[priv->rx_idx] = iob; in rtl818x_handle_rx() 107 entry->rx_buf = cpu_to_le32(virt_to_bus(iob->data)); in rtl818x_handle_rx() 124 struct io_buffer *iob = priv->tx_buf[priv->tx_cons]; in rtl818x_handle_tx() local 128 if ((flags & RTL818X_TX_DESC_FLAG_OWN) || !iob) in rtl818x_handle_tx() 137 net80211_tx_complete(dev, iob, flags & 0xFF, rc); in rtl818x_handle_tx() 163 static int rtl818x_tx(struct net80211_device *dev, struct io_buffer *iob) in rtl818x_tx() argument [all …]
|
/external/syslinux/gpxe/src/drivers/net/e1000/ |
D | e1000.c | 307 struct io_buffer *iob; in e1000_refill_rx_ring() local 323 iob = alloc_iob ( MAXIMUM_ETHERNET_VLAN_SIZE ); in e1000_refill_rx_ring() 324 adapter->rx_iobuf[rx_curr] = iob; in e1000_refill_rx_ring() 326 if ( ! iob ) { in e1000_refill_rx_ring() 331 rx_curr_desc->buffer_addr = virt_to_bus ( iob->data ); in e1000_refill_rx_ring()
|