Home
last modified time | relevance | path

Searched refs:header_size (Results 1 – 25 of 25) sorted by relevance

/drivers/ieee1394/
Dieee1394_core.c626 size_t size = packet->data_size + packet->header_size; in hpsb_send_packet()
634 memcpy(data, packet->header, packet->header_size); in hpsb_send_packet()
637 memcpy(((u8*)data) + packet->header_size, packet->data, packet->data_size); in hpsb_send_packet()
639 dump_packet("send packet local", packet->header, packet->header_size, -1); in hpsb_send_packet()
654 dump_packet("send packet", packet->header, packet->header_size, packet->speed_code); in hpsb_send_packet()
695 static size_t packet_size_to_data_size(size_t packet_size, size_t header_size, in packet_size_to_data_size() argument
698 size_t ret = packet_size <= header_size ? 0 : packet_size - header_size; in packet_size_to_data_size()
703 if (unlikely(ret + header_size != packet_size)) in packet_size_to_data_size()
714 size_t header_size; in handle_packet_response() local
736 header_size = 12; in handle_packet_response()
[all …]
Dieee1394_transactions.c47 packet->header_size = 12; in fill_async_readquad()
57 packet->header_size = 16; in fill_async_readblock()
67 packet->header_size = 16; in fill_async_writequad()
77 packet->header_size = 16; in fill_async_writeblock()
87 packet->header_size = 16; in fill_async_lock()
96 packet->header_size = 8; in fill_phy_packet()
109 packet->header_size = 4; in fill_async_stream_packet()
Dieee1394_core.h69 size_t header_size; /* as filled in, not counting the CRC */ member
Dpcilynx.c476 packet->header_size, PCI_DMA_TODEVICE); in send_next()
488 pcl.buffer[0].control = packet->speed_code << 14 | packet->header_size; in send_next()
758 packet->header_size, PCI_DMA_TODEVICE); in lynx_devctl()
949 packet->header_size, PCI_DMA_TODEVICE); in lynx_irq_handler()
995 packet->header_size, PCI_DMA_TODEVICE); in lynx_irq_handler()
Deth1394.c1426 p->header_size = 16; in ether1394_prep_write_packet()
1443 p->header_size = 4; in ether1394_prep_gasp_packet()
Dohci1394.c734 (packet->header_size + 4)); in insert_packet()
741 packet->header_size); in insert_packet()
Draw1394.c826 packet->header_size = header_length; in handle_async_send()
/drivers/firewire/
Dfw-iso.c110 int channel, int speed, size_t header_size, in fw_iso_context_create() argument
115 ctx = card->driver->allocate_iso_context(card, type, header_size); in fw_iso_context_create()
123 ctx->header_size = header_size; in fw_iso_context_create()
Dfw-ohci.c1794 while (p < end && i + ctx->base.header_size <= PAGE_SIZE) { in handle_ir_dualbuffer_packet()
1803 memcpy(ctx->header + i + 4, p + 8, ctx->base.header_size - 4); in handle_ir_dualbuffer_packet()
1804 i += ctx->base.header_size; in handle_ir_dualbuffer_packet()
1807 p += ctx->base.header_size + 4; in handle_ir_dualbuffer_packet()
1848 if (ctx->base.header_size > 0 && in handle_ir_packet_per_buffer()
1849 i + ctx->base.header_size <= PAGE_SIZE) { in handle_ir_packet_per_buffer()
1857 memcpy(ctx->header + i + 4, p + 8, ctx->base.header_size - 4); in handle_ir_packet_per_buffer()
1858 ctx->header_length += ctx->base.header_size; in handle_ir_packet_per_buffer()
1892 ohci_allocate_iso_context(struct fw_card *card, int type, size_t header_size) in ohci_allocate_iso_context() argument
2143 int page, offset, packet_count, header_size; in ohci_queue_iso_receive_dualbuffer() local
[all …]
Dfw-transaction.h342 size_t header_size; member
359 int channel, int speed, size_t header_size,
418 int type, size_t header_size);
Dfw-cdev.c686 if (request->header_size < 4 || (request->header_size & 3)) in ioctl_create_iso_context()
705 request->header_size, in ioctl_create_iso_context()
785 if (ctx->header_size == 0) { in ioctl_queue_iso()
788 } else if (u.packet.header_length % ctx->header_size != 0) { in ioctl_queue_iso()
Dfw-sbp2.c413 size_t header_size; in sbp2_status_write() local
422 header_size = min(length, 2 * sizeof(u32)); in sbp2_status_write()
423 fw_memcpy_from_be32(&status, payload, header_size); in sbp2_status_write()
424 if (length > header_size) in sbp2_status_write()
425 memcpy(status.data, payload + 8, length - header_size); in sbp2_status_write()
/drivers/mtd/
Drfd_ftl.c77 u_int header_size; /* bytes in header sector */ member
170 part->header_size = (HEADER_MAP_OFFSET + in scan_header()
182 part->header_cache = kmalloc(part->header_size, GFP_KERNEL); in scan_header()
203 i * part->block_size, part->header_size, in scan_header()
206 if (!rc && retlen != part->header_size) in scan_header()
370 map = kmalloc(part->header_size, GFP_KERNEL); in move_block_contents()
375 part->blocks[block_no].offset, part->header_size, in move_block_contents()
378 if (!rc && retlen != part->header_size) in move_block_contents()
566 part->header_size, &retlen, (u_char*)part->header_cache); in find_writable_block()
568 if (!rc && retlen != part->header_size) in find_writable_block()
/drivers/media/video/uvc/
Duvc_video.c550 if (video->bulk.header_size == 0 && !video->bulk.skip_payload) { in uvc_video_decode_bulk()
562 video->bulk.header_size = ret; in uvc_video_decode_bulk()
591 video->bulk.header_size = 0; in uvc_video_decode_bulk()
609 if (video->bulk.header_size == 0) { in uvc_video_encode_bulk()
611 video->bulk.header_size = ret; in uvc_video_encode_bulk()
632 video->bulk.header_size = 0; in uvc_video_encode_bulk()
878 video->bulk.header_size = 0; in uvc_init_video()
Duvcvideo.h609 unsigned int header_size; member
/drivers/isdn/hardware/eicon/
Ddsp_defs.h98 word header_size; member
118 word header_size; member
/drivers/char/pcmcia/ipwireless/
Dhardware.c462 unsigned short header_size; in do_send_packet() local
465 header_size = in do_send_packet()
469 fragment_data_len = hw->ll_mtu - header_size; in do_send_packet()
489 memcpy(pkt.rawpkt + header_size, in do_send_packet()
498 do_send_fragment(hw, pkt.rawpkt, header_size + fragment_data_len); in do_send_packet()
1269 static void *alloc_ctrl_packet(int header_size, in alloc_ctrl_packet() argument
1279 struct ipw_control_packet *packet = kzalloc(header_size, GFP_ATOMIC); in alloc_ctrl_packet()
1287 packet->header.length = header_size - sizeof(struct ipw_tx_packet); in alloc_ctrl_packet()
/drivers/staging/poch/
Dpoch.c201 unsigned long header_size; member
323 header_pages = npages(channel->header_size); in show_mmap_size()
362 header_pages = npages(channel->header_size); in poch_channel_alloc_groups()
524 channel->header_size = sizeof(*header) + tot_group_offsets_size; in poch_channel_alloc_header()
526 get_order(channel->header_size)); in poch_channel_alloc_header()
539 order = get_order(channel->header_size); in poch_channel_free_header()
899 header_pages = npages(channel->header_size); in poch_mmap()
/drivers/gpu/drm/i915/
Dintel_bios.h36 u16 header_size; /**< in bytes */ member
47 u16 header_size; /**< in bytes */ member
Dintel_bios.c43 index += bdb->header_size; in find_section()
/drivers/infiniband/hw/mlx4/
Dqp.c1218 int header_size; in build_mlx_header() local
1280 header_size = ib_ud_header_pack(&sqp->ud_header, sqp->header_buf); in build_mlx_header()
1283 printk(KERN_ERR "built UD header of size %d:\n", header_size); in build_mlx_header()
1284 for (i = 0; i < header_size / 4; ++i) { in build_mlx_header()
1303 if (header_size <= spc) { in build_mlx_header()
1304 inl->byte_count = cpu_to_be32(1 << 31 | header_size); in build_mlx_header()
1305 memcpy(inl + 1, sqp->header_buf, header_size); in build_mlx_header()
1312 memcpy(inl + 1, sqp->header_buf + spc, header_size - spc); in build_mlx_header()
1327 inl->byte_count = cpu_to_be32(1 << 31 | (header_size - spc)); in build_mlx_header()
1332 ALIGN(i * sizeof (struct mlx4_wqe_inline_seg) + header_size, 16); in build_mlx_header()
/drivers/s390/char/
Dzcore.c261 u32 header_size; member
281 .header_size = 4096,
/drivers/scsi/qla2xxx/
Dqla_dbg.h348 uint32_t header_size; member
Dqla_init.c892 ha->fw_dump->header_size = in qla2x00_alloc_fw_dump()
/drivers/infiniband/hw/mthca/
Dmthca_qp.c1488 int header_size; in build_mlx_header() local
1538 header_size = ib_ud_header_pack(&sqp->ud_header, in build_mlx_header()
1542 data->byte_count = cpu_to_be32(header_size); in build_mlx_header()