HomeSort by relevance Sort by last modified time
    Searched defs:iobuf (Results 1 - 25 of 32) sorted by null

1 2

  /external/syslinux/gpxe/src/core/
iobuf.c 24 #include <gpxe/iobuf.h>
36 * @ret iobuf I/O buffer, or NULL if none available
42 struct io_buffer *iobuf = NULL; local
50 len = ( len + __alignof__( *iobuf ) - 1 ) &
51 ~( __alignof__( *iobuf ) - 1 );
54 data = malloc_dma ( len + sizeof ( *iobuf ), IOB_ALIGN );
58 iobuf = ( struct io_buffer * ) ( data + len );
59 iobuf->head = iobuf->data = iobuf->tail = data
    [all...]
posix_io.c 73 struct io_buffer *iobuf; local
76 list_for_each_entry_safe ( iobuf, tmp, &file->data, list ) {
77 list_del ( &iobuf->list );
78 free_iob ( iobuf );
112 * @v iobuf I/O buffer
118 struct io_buffer *iobuf,
130 if ( iob_len ( iobuf ) ) {
131 list_add_tail ( &iobuf->list, &file->data );
133 free_iob ( iobuf );
279 struct io_buffer *iobuf; local
    [all...]
xfer.c 122 * @ret iobuf I/O buffer
126 struct io_buffer *iobuf; local
130 iobuf = dest->op->alloc_iob ( dest, len );
132 if ( ! iobuf ) {
136 return iobuf;
143 * @v iobuf Datagram I/O buffer
148 struct io_buffer *iobuf,
154 iob_len ( iobuf ) );
156 rc = dest->op->deliver_iob ( dest, iobuf, meta );
170 * @v iobuf Datagram I/O buffe
253 struct io_buffer *iobuf; local
374 struct io_buffer *iobuf; local
    [all...]
  /external/syslinux/gpxe/src/net/
icmpv6.c 8 #include <gpxe/iobuf.h>
34 struct io_buffer *iobuf = alloc_iob ( sizeof ( *nsolicit ) + MIN_IOB_LEN ); local
35 iob_reserve ( iobuf, MAX_HDR_LEN );
36 nsolicit = iob_put ( iobuf, sizeof ( *nsolicit ) );
63 return tcpip_tx ( iobuf, &icmp6_protocol, NULL, &st_dest.st,
70 * @v iobuf I/O buffer
74 static int icmp6_rx ( struct io_buffer *iobuf, struct sockaddr_tcpip *st_src,
76 struct icmp6_header *icmp6hdr = iobuf->data;
79 if ( iob_len ( iobuf ) < sizeof ( *icmp6hdr ) ) {
80 DBG ( "Packet too short (%zd bytes)\n", iob_len ( iobuf ) );
    [all...]
arp.c 27 #include <gpxe/iobuf.h>
118 struct io_buffer *iobuf; local
135 iobuf = alloc_iob ( MAX_LL_HEADER_LEN + sizeof ( *arphdr ) +
137 if ( ! iobuf )
139 iob_reserve ( iobuf, MAX_LL_HEADER_LEN );
142 arphdr = iob_put ( iobuf, sizeof ( *arphdr ) );
148 memcpy ( iob_put ( iobuf, ll_protocol->ll_addr_len ),
150 memcpy ( iob_put ( iobuf, net_protocol->net_addr_len ),
152 memset ( iob_put ( iobuf, ll_protocol->ll_addr_len ),
154 memcpy ( iob_put ( iobuf, net_protocol->net_addr_len )
    [all...]
aoe.c 31 #include <gpxe/iobuf.h>
93 struct io_buffer *iobuf; local
134 iobuf = alloc_iob ( ETH_HLEN + sizeof ( *aoehdr ) +
137 if ( ! iobuf )
139 iob_reserve ( iobuf, ETH_HLEN );
140 aoehdr = iob_put ( iobuf, sizeof ( *aoehdr ) );
141 aoecmd = iob_put ( iobuf, aoecmdlen );
170 copy_from_user ( iob_put ( iobuf, data_out_len ),
182 return net_tx ( iobuf, aoe->netdev, &aoe_protocol, aoe->target );
282 * @v iobuf I/O buffe
    [all...]
udp.c 8 #include <gpxe/iobuf.h>
186 * @v iobuf I/O buffer
192 static int udp_tx ( struct udp_connection *udp, struct io_buffer *iobuf,
200 if ( ( rc = iob_ensure_headroom ( iobuf, UDP_MAX_HLEN ) ) != 0 ) {
201 free_iob ( iobuf );
212 udphdr = iob_push ( iobuf, sizeof ( *udphdr ) );
213 len = iob_len ( iobuf );
226 if ( ( rc = tcpip_tx ( iobuf, &udp_protocol, src, dest, netdev,
264 * @v iobuf I/O buffer
270 static int udp_rx ( struct io_buffer *iobuf, struct sockaddr_tcpip *st_src
378 struct io_buffer *iobuf; local
    [all...]
infiniband.c 33 #include <gpxe/iobuf.h>
283 struct io_buffer *iobuf; local
296 if ( ( iobuf = qp->send.iobufs[i] ) != NULL )
297 ib_complete_send ( ibdev, qp, iobuf, -ECANCELED );
300 if ( ( iobuf = qp->recv.iobufs[i] ) != NULL ) {
301 ib_complete_recv ( ibdev, qp, NULL, iobuf,
381 * @v iobuf I/O buffer
386 struct io_buffer *iobuf ) {
412 if ( ( rc = ibdev->op->post_send ( ibdev, qp, av, iobuf ) ) != 0 ) {
427 * @v iobuf I/O buffe
506 struct io_buffer *iobuf; local
    [all...]
netdevice.c 28 #include <gpxe/iobuf.h>
119 * @v iobuf I/O buffer
125 int netdev_tx ( struct net_device *netdev, struct io_buffer *iobuf ) {
129 netdev, iobuf, iobuf->data, iob_len ( iobuf ) );
131 list_add_tail ( &iobuf->list, &netdev->tx_queue );
138 if ( ( rc = netdev->op->transmit ( netdev, iobuf ) ) != 0 )
144 netdev_tx_complete_err ( netdev, iobuf, rc );
152 * @v iobuf I/O buffe
188 struct io_buffer *iobuf; local
280 struct io_buffer *iobuf; local
295 struct io_buffer *iobuf; local
590 struct io_buffer *iobuf; local
    [all...]
tcp.c 8 #include <gpxe/iobuf.h>
266 struct io_buffer *iobuf; local
285 list_for_each_entry_safe ( iobuf, tmp, &tcp->queue, list ) {
286 list_del ( &iobuf->list );
287 free_iob ( iobuf );
356 struct io_buffer *iobuf; local
361 list_for_each_entry_safe ( iobuf, tmp, &tcp->queue, list ) {
362 frag_len = iob_len ( iobuf );
366 memcpy ( iob_put ( dest, frag_len ), iobuf->data,
370 iob_pull ( iobuf, frag_len )
395 struct io_buffer *iobuf; local
558 struct io_buffer *iobuf; local
    [all...]
  /external/syslinux/gpxe/src/drivers/net/
legacy.c 7 #include <gpxe/iobuf.h>
26 static int legacy_transmit ( struct net_device *netdev, struct io_buffer *iobuf ) {
30 DBG ( "Transmitting %zd bytes\n", iob_len ( iobuf ) );
31 iob_pad ( iobuf, ETH_ZLEN );
32 ethhdr = iobuf->data;
33 iob_pull ( iobuf, sizeof ( *ethhdr ) );
36 iob_len ( iobuf ), iobuf->data );
37 netdev_tx_complete ( netdev, iobuf );
43 struct io_buffer *iobuf; local
    [all...]
pnic.c 24 #include <gpxe/iobuf.h>
119 struct io_buffer *iobuf; local
131 iobuf = alloc_iob ( ETH_FRAME_LEN );
132 if ( ! iobuf ) {
138 iobuf->data, ETH_FRAME_LEN, &length )
140 netdev_rx_err ( netdev, iobuf, -EIO );
143 iob_put ( iobuf, length );
144 netdev_rx ( netdev, iobuf );
151 static int pnic_transmit ( struct net_device *netdev, struct io_buffer *iobuf ) {
155 iob_pad ( iobuf, ETH_ZLEN )
    [all...]
natsemi.h 32 /* need to add iobuf as we cannot free iobuf->data in close without this
36 struct io_buffer *iobuf[NUM_RX_DESC]; member in struct:natsemi_private
38 /* netdev_tx_complete needs pointer to the iobuf of the data so as to free
  /external/ltp/testcases/kernel/io/ltp-aiodio/
ltp-diorh.c 50 char *iobuf; variable
66 memset(iobuf, pattern, WRITESIZE);
68 rc = pwrite(fd, iobuf, WRITESIZE, offset);
90 rc = pread(fd, iobuf, READSIZE, offset);
97 for (i = 0, p = (int *)iobuf; i < READSIZE; i += 4) {
131 err = posix_memalign((void **)&iobuf, pagesize, bufsize);
  /external/syslinux/gpxe/src/arch/i386/interface/pxe/
pxe_udp.c 49 * @v iobuf I/O buffer
57 struct io_buffer *iobuf,
77 len = iob_len ( iobuf );
80 copy_to_user ( buffer, 0, iobuf->data, len );
100 free_iob ( iobuf );
264 struct io_buffer *iobuf; local
291 iobuf = xfer_alloc_iob ( &pxe_udp.xfer, len );
292 if ( ! iobuf ) {
298 copy_from_user ( iob_put ( iobuf, len ), buffer, 0, len );
307 if ( ( rc = xfer_deliver_iob_meta ( &pxe_udp.xfer, iobuf,
    [all...]
pxe_undi.c 33 #include <gpxe/iobuf.h>
226 struct io_buffer *iobuf; local
274 iobuf = alloc_iob ( ll_hlen + len );
275 if ( ! iobuf ) {
276 DBG2 ( " could not allocate iobuf\n" );
280 iob_reserve ( iobuf, ll_hlen );
281 copy_from_real ( iob_put ( iobuf, tbd.ImmedLength ), tbd.Xmit.segment,
285 copy_from_real ( iob_put ( iobuf, datablk->TDDataLen ),
308 if ( ( rc = ll_protocol->push ( pxe_netdev, iobuf, ll_dest,
313 free_iob ( iobuf );
643 struct io_buffer *iobuf; local
    [all...]
  /external/syslinux/gpxe/src/drivers/block/
srp.c 102 struct io_buffer *iobuf; local
117 iobuf = xfer_alloc_iob ( &srp->socket, sizeof ( *login_req ) );
118 if ( ! iobuf ) {
124 login_req = iob_put ( iobuf, sizeof ( *login_req ) );
136 DBGC2_HDA ( srp, 0, iobuf->data, iob_len ( iobuf ) );
139 if ( ( rc = xfer_deliver_iob ( &srp->socket, iobuf ) ) != 0 ) {
155 * @v iobuf I/O buffer
158 static int srp_login_rsp ( struct srp_device *srp, struct io_buffer *iobuf ) {
159 struct srp_login_rsp *login_rsp = iobuf->data
230 struct io_buffer *iobuf; local
    [all...]
  /external/syslinux/gpxe/src/net/infiniband/
ib_mi.c 29 #include <gpxe/iobuf.h>
115 * @v iobuf I/O buffer
121 struct io_buffer *iobuf, int rc ) {
133 if ( iob_len ( iobuf ) != sizeof ( *mad ) ) {
135 mi, iob_len ( iobuf ) );
136 DBGC_HDA ( mi, 0, iobuf->data, iob_len ( iobuf ) );
139 mad = iobuf->data;
158 free_iob ( iobuf );
178 struct io_buffer *iobuf; local
    [all...]
  /external/freetype/builds/amiga/src/base/
ftsystem.c 68 UBYTE iobuf[IOBUF_SIZE]; member in struct:SysFile
321 CopyMem( &sysfile->iobuf[offset - sysfile->iobuf_start], buffer, count );
330 read_bytes = Read( sysfile->file, sysfile->iobuf, IOBUF_SIZE );
339 CopyMem( sysfile->iobuf, buffer, count );
364 CopyMem( &buffer[read_bytes - bufsize] , sysfile->iobuf, bufsize );
  /external/syslinux/gpxe/src/arch/i386/drivers/net/
undinet.c 29 #include <gpxe/iobuf.h>
165 * @v iobuf I/O buffer
169 struct io_buffer *iobuf ) {
171 size_t len = iob_len ( iobuf );
187 memcpy ( &basemem_packet, iobuf->data, len );
208 netdev_tx_complete ( netdev, iobuf );
247 struct io_buffer *iobuf = NULL; local
294 if ( ! iobuf )
295 iobuf = alloc_iob ( len );
296 if ( ! iobuf ) {
    [all...]
  /external/syslinux/gpxe/src/net/udp/
slam.c 29 #include <gpxe/iobuf.h>
205 * @v iobuf I/O buffer
214 struct io_buffer *iobuf, unsigned long value ) {
223 if ( len >= iob_tailroom ( iobuf ) ) {
235 data = iob_put ( iobuf, len );
253 struct io_buffer *iobuf; local
263 iobuf = xfer_alloc_iob ( &slam->socket, SLAM_MAX_NACK_LEN );
264 if ( ! iobuf ) {
294 if ( ( rc = slam_put_value ( slam, iobuf, first_block ) ) != 0 )
296 if ( ( rc = slam_put_value ( slam, iobuf, num_blocks ) ) != 0
    [all...]
tftp.c 334 struct io_buffer *iobuf; local
356 iobuf = xfer_alloc_iob ( &tftp->socket, len );
357 if ( ! iobuf )
361 rrq = iob_put ( iobuf, sizeof ( *rrq ) );
363 iob_put ( iobuf, snprintf ( iobuf->tail, iob_tailroom ( iobuf ),
366 iob_put ( iobuf, snprintf ( iobuf->tail,
367 iob_tailroom ( iobuf ),
391 struct io_buffer *iobuf; local
426 struct io_buffer *iobuf; local
    [all...]
  /external/syslinux/gpxe/src/interface/efi/
efi_snp.c 27 #include <gpxe/iobuf.h>
147 struct io_buffer *iobuf; local
155 list_for_each_entry ( iobuf, &snpdev->netdev->rx_queue, list )
158 list_for_each_entry ( iobuf, &snpdev->netdev->rx_queue, list )
532 struct io_buffer *iobuf; local
585 iobuf = alloc_iob ( len );
586 if ( ! iobuf ) {
592 memcpy ( iob_put ( iobuf, len ), data, len );
596 iob_pull ( iobuf, ll_header_len );
598 iobuf, ll_dest, ll_src
649 struct io_buffer *iobuf; local
    [all...]
  /external/syslinux/gpxe/src/drivers/infiniband/
arbel.c 36 #include <gpxe/iobuf.h>
1011 * @v iobuf I/O buffer
1017 struct io_buffer *iobuf ) {
1036 wq->iobufs[wq->next_idx & wqe_idx_mask] = iobuf;
1060 MLX_FILL_1 ( &wqe->data[0], 0, byte_count, iob_len ( iobuf ) );
1063 local_address_l, virt_to_bus ( iobuf->data ) );
1161 struct io_buffer *iobuf; local
    [all...]
  /external/syslinux/gpxe/src/net/tcp/
iscsi.c 400 struct io_buffer *iobuf; local
411 iobuf = xfer_alloc_iob ( &iscsi->socket, len );
412 if ( ! iobuf )
415 copy_from_user ( iob_put ( iobuf, len ),
418 return xfer_deliver_iob ( &iscsi->socket, iobuf );
587 struct io_buffer *iobuf; local
591 iobuf = xfer_alloc_iob ( &iscsi->socket, len );
592 if ( ! iobuf )
594 iob_put ( iobuf, len );
595 iscsi_build_login_request_strings ( iscsi, iobuf->data, len )
    [all...]

Completed in 447 milliseconds

1 2