| /OK3568_Linux_fs/kernel/net/batman-adv/ |
| H A D | distributed-arp-table.c | 233 static u8 *batadv_arp_hw_src(struct sk_buff *skb, int hdr_size) in batadv_arp_hw_src() argument 237 addr = (u8 *)(skb->data + hdr_size); in batadv_arp_hw_src() 250 static __be32 batadv_arp_ip_src(struct sk_buff *skb, int hdr_size) in batadv_arp_ip_src() argument 252 return *(__force __be32 *)(batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN); in batadv_arp_ip_src() 262 static u8 *batadv_arp_hw_dst(struct sk_buff *skb, int hdr_size) in batadv_arp_hw_dst() argument 264 return batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN + 4; in batadv_arp_hw_dst() 274 static __be32 batadv_arp_ip_dst(struct sk_buff *skb, int hdr_size) in batadv_arp_ip_dst() argument 276 u8 *dst = batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN * 2 + 4; in batadv_arp_ip_dst() 427 int hdr_size, char *msg) in batadv_dbg_arp() argument 437 ip_src = batadv_arp_ip_src(skb, hdr_size); in batadv_dbg_arp() [all …]
|
| H A D | routing.c | 362 int hdr_size = sizeof(struct batadv_icmp_header); in batadv_recv_icmp_packet() local 366 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_recv_icmp_packet() 459 struct sk_buff *skb, int hdr_size) in batadv_check_unicast_packet() argument 464 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_check_unicast_packet() 933 int check, hdr_size = sizeof(*unicast_packet); in batadv_recv_unhandled_unicast_packet() local 935 check = batadv_check_unicast_packet(bat_priv, skb, hdr_size); in batadv_recv_unhandled_unicast_packet() 966 int check, hdr_size = sizeof(*unicast_packet); in batadv_recv_unicast_packet() local 975 hdr_size = sizeof(*unicast_4addr_packet); in batadv_recv_unicast_packet() 978 check = batadv_check_unicast_packet(bat_priv, skb, hdr_size); in batadv_recv_unicast_packet() 988 if (!batadv_check_unicast_ttvn(bat_priv, skb, hdr_size)) in batadv_recv_unicast_packet() [all …]
|
| H A D | distributed-arp-table.h | 31 struct sk_buff *skb, int hdr_size); 35 struct sk_buff *skb, int hdr_size); 41 struct sk_buff *skb, int hdr_size); 117 struct sk_buff *skb, int hdr_size) in batadv_dat_snoop_incoming_arp_request() argument 131 struct sk_buff *skb, int hdr_size) in batadv_dat_snoop_incoming_arp_reply() argument 145 struct sk_buff *skb, int hdr_size) in batadv_dat_snoop_incoming_dhcp_ack() argument
|
| H A D | fragmentation.c | 147 u16 seqno, hdr_size = sizeof(struct batadv_frag_packet); in batadv_frag_insert_packet() local 176 chain->size = skb->len - hdr_size; in batadv_frag_insert_packet() 193 chain->size += skb->len - hdr_size; in batadv_frag_insert_packet() 206 chain->size += skb->len - hdr_size; in batadv_frag_insert_packet() 254 int size, hdr_size = sizeof(struct batadv_frag_packet); in batadv_frag_merge_packets() local 266 size = ntohs(packet->total_size) + hdr_size; in batadv_frag_merge_packets() 279 skb_pull(skb_out, hdr_size); in batadv_frag_merge_packets() 288 size = entry->skb->len - hdr_size; in batadv_frag_merge_packets() 289 skb_put_data(skb_out, entry->skb->data + hdr_size, size); in batadv_frag_merge_packets()
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/cx18/ |
| H A D | cx18-vbi.c | 95 static u32 compress_raw_buf(struct cx18 *cx, u8 *buf, u32 size, u32 hdr_size) in compress_raw_buf() argument 104 buf += hdr_size; in compress_raw_buf() 116 memcpy(q, p + 4, line_size - 4 - hdr_size); in compress_raw_buf() 117 q += line_size - 4 - hdr_size; in compress_raw_buf() 118 p += line_size - hdr_size - 1; in compress_raw_buf() 119 memset(q, (int) *p, hdr_size); in compress_raw_buf() 129 const u32 hdr_size) in compress_sliced_buf() argument 138 for (i = hdr_size, buf += hdr_size; i < size; i++, buf++) { in compress_sliced_buf() 150 size -= (i - hdr_size); in compress_sliced_buf()
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/sw/rxe/ |
| H A D | rxe_icrc.c | 20 int hdr_size = sizeof(struct udphdr) + in rxe_icrc_hdr() local 36 memcpy(pshdr, ip_hdr(skb), hdr_size); in rxe_icrc_hdr() 44 memcpy(pshdr, ipv6_hdr(skb), hdr_size); in rxe_icrc_hdr() 54 bth_offset += hdr_size; in rxe_icrc_hdr() 62 length = hdr_size + RXE_BTH_BYTES; in rxe_icrc_hdr()
|
| /OK3568_Linux_fs/buildroot/dl/sox/git/src/ |
| H A D | au.c | 129 uint32_t hdr_size; /* header on disk. The uint32_t are written as */ in startread() local 148 if (lsx_readdw(ft, &hdr_size) || in startread() 155 if (hdr_size < FIXED_HDR) { in startread() 156 lsx_fail_errno(ft, SOX_EHDR, "header size %u is too small", hdr_size); in startread() 159 if (hdr_size < FIXED_HDR + 4) in startread() 160 lsx_warn("header size %u is too small", hdr_size); in startread() 179 if (hdr_size > FIXED_HDR) { in startread() 180 size_t info_size = hdr_size - FIXED_HDR; in startread()
|
| /OK3568_Linux_fs/kernel/samples/bpf/ |
| H A D | tcp_tos_reflect_kern.c | 29 int hdr_size = 0; in bpf_basertt() local 47 hdr_size = sizeof(struct iphdr); in bpf_basertt() 49 hdr_size = sizeof(struct ipv6hdr); in bpf_basertt() 51 header, hdr_size); in bpf_basertt()
|
| /OK3568_Linux_fs/kernel/drivers/net/arcnet/ |
| H A D | rfc1051.c | 91 int hdr_size = ARC_HDR_SIZE + RFC1051_HDR_SIZE; in type_trans() local 95 skb_pull(skb, hdr_size); in type_trans() 164 int hdr_size = ARC_HDR_SIZE + RFC1051_HDR_SIZE; in build_header() local 165 struct archdr *pkt = skb_push(skb, hdr_size); in build_header() 199 return hdr_size; in build_header() 204 return hdr_size; /* success */ in build_header()
|
| H A D | arc-rawmode.c | 87 int hdr_size = ARC_HDR_SIZE; in build_header() local 88 struct archdr *pkt = skb_push(skb, hdr_size); in build_header() 105 return hdr_size; in build_header() 110 return hdr_size; /* success */ in build_header()
|
| H A D | capmode.c | 103 int hdr_size = ARC_HDR_SIZE; in build_header() local 104 struct archdr *pkt = skb_push(skb, hdr_size); in build_header() 124 return hdr_size; in build_header() 129 return hdr_size; /* success */ in build_header()
|
| H A D | rfc1201.c | 95 int hdr_size = ARC_HDR_SIZE + RFC1201_HDR_SIZE; in type_trans() local 99 skb_pull(skb, hdr_size); in type_trans() 381 int hdr_size = ARC_HDR_SIZE + RFC1201_HDR_SIZE; in build_header() local 382 struct archdr *pkt = skb_push(skb, hdr_size); in build_header() 435 return hdr_size; in build_header() 439 return hdr_size; in build_header()
|
| /OK3568_Linux_fs/kernel/drivers/nfc/s3fwrn5/ |
| H A D | i2c.c | 127 size_t hdr_size; in s3fwrn5_i2c_read() local 132 hdr_size = (phy->mode == S3FWRN5_MODE_NCI) ? in s3fwrn5_i2c_read() 134 ret = i2c_master_recv(phy->i2c_dev, hdr, hdr_size); in s3fwrn5_i2c_read() 138 if (ret < hdr_size) in s3fwrn5_i2c_read() 145 skb = alloc_skb(hdr_size + data_len, GFP_KERNEL); in s3fwrn5_i2c_read() 149 skb_put_data(skb, hdr, hdr_size); in s3fwrn5_i2c_read()
|
| /OK3568_Linux_fs/kernel/drivers/thunderbolt/ |
| H A D | retimer.c | 103 unsigned int image_size, hdr_size; in tb_retimer_nvm_validate_and_write() local 115 hdr_size = (*(u32 *)buf) & 0xffffff; in tb_retimer_nvm_validate_and_write() 116 if (hdr_size + NVM_DEVID + 2 >= image_size) in tb_retimer_nvm_validate_and_write() 120 if (!IS_ALIGNED(hdr_size, SZ_4K)) in tb_retimer_nvm_validate_and_write() 127 ds_size = *(u16 *)(buf + hdr_size); in tb_retimer_nvm_validate_and_write() 135 device = *(u16 *)(buf + hdr_size + NVM_DEVID); in tb_retimer_nvm_validate_and_write() 140 buf += hdr_size; in tb_retimer_nvm_validate_and_write() 141 image_size -= hdr_size; in tb_retimer_nvm_validate_and_write()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/infineon/ |
| H A D | bcmxtlv.c | 423 int hdr_size; in bcm_unpack_xtlv_buf() local 428 hdr_size = BCM_XTLV_HDR_SIZE_EX(opts); in bcm_unpack_xtlv_buf() 429 while (sbuflen >= hdr_size) { in bcm_unpack_xtlv_buf() 459 int hdr_size; in bcm_pack_xtlv_buf() local 467 hdr_size = BCM_XTLV_HDR_SIZE_EX(opts); in bcm_pack_xtlv_buf() 478 pack_next(ctx, tlv_id, tlv_len, buf + hdr_size); in bcm_pack_xtlv_buf() 574 int hdr_size; in bcm_get_data_from_xtlv_buf() local 576 hdr_size = BCM_XTLV_HDR_SIZE_EX(opts); in bcm_get_data_from_xtlv_buf() 582 while (sbuflen >= hdr_size) { in bcm_get_data_from_xtlv_buf()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/ |
| H A D | bcmxtlv.c | 423 int hdr_size; in bcm_unpack_xtlv_buf() local 428 hdr_size = BCM_XTLV_HDR_SIZE_EX(opts); in bcm_unpack_xtlv_buf() 429 while (sbuflen >= hdr_size) { in bcm_unpack_xtlv_buf() 459 int hdr_size; in bcm_pack_xtlv_buf() local 467 hdr_size = BCM_XTLV_HDR_SIZE_EX(opts); in bcm_pack_xtlv_buf() 478 pack_next(ctx, tlv_id, tlv_len, buf + hdr_size); in bcm_pack_xtlv_buf() 574 int hdr_size; in bcm_get_data_from_xtlv_buf() local 576 hdr_size = BCM_XTLV_HDR_SIZE_EX(opts); in bcm_get_data_from_xtlv_buf() 582 while (sbuflen >= hdr_size) { in bcm_get_data_from_xtlv_buf()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/ |
| H A D | bcmxtlv.c | 423 int hdr_size; in bcm_unpack_xtlv_buf() local 428 hdr_size = BCM_XTLV_HDR_SIZE_EX(opts); in bcm_unpack_xtlv_buf() 429 while (sbuflen >= hdr_size) { in bcm_unpack_xtlv_buf() 459 int hdr_size; in bcm_pack_xtlv_buf() local 467 hdr_size = BCM_XTLV_HDR_SIZE_EX(opts); in bcm_pack_xtlv_buf() 478 pack_next(ctx, tlv_id, tlv_len, buf + hdr_size); in bcm_pack_xtlv_buf() 574 int hdr_size; in bcm_get_data_from_xtlv_buf() local 576 hdr_size = BCM_XTLV_HDR_SIZE_EX(opts); in bcm_get_data_from_xtlv_buf() 582 while (sbuflen >= hdr_size) { in bcm_get_data_from_xtlv_buf()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/ |
| H A D | bcmxtlv.c | 438 int hdr_size; in bcm_unpack_xtlv_buf() local 443 hdr_size = BCM_XTLV_HDR_SIZE_EX(opts); in bcm_unpack_xtlv_buf() 444 while (sbuflen >= hdr_size) { in bcm_unpack_xtlv_buf() 478 int hdr_size; in bcm_pack_xtlv_buf() local 486 hdr_size = BCM_XTLV_HDR_SIZE_EX(opts); in bcm_pack_xtlv_buf() 497 pack_next(ctx, tlv_id, tlv_len, buf + hdr_size); in bcm_pack_xtlv_buf() 594 int hdr_size; in bcm_get_data_from_xtlv_buf() local 599 hdr_size = BCM_XTLV_HDR_SIZE_EX(opts); in bcm_get_data_from_xtlv_buf() 605 while (sbuflen >= hdr_size) { in bcm_get_data_from_xtlv_buf()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/ |
| H A D | bcmxtlv.c | 438 int hdr_size; in bcm_unpack_xtlv_buf() local 443 hdr_size = BCM_XTLV_HDR_SIZE_EX(opts); in bcm_unpack_xtlv_buf() 444 while (sbuflen >= hdr_size) { in bcm_unpack_xtlv_buf() 478 int hdr_size; in bcm_pack_xtlv_buf() local 486 hdr_size = BCM_XTLV_HDR_SIZE_EX(opts); in bcm_pack_xtlv_buf() 497 pack_next(ctx, tlv_id, tlv_len, buf + hdr_size); in bcm_pack_xtlv_buf() 594 int hdr_size; in bcm_get_data_from_xtlv_buf() local 599 hdr_size = BCM_XTLV_HDR_SIZE_EX(opts); in bcm_get_data_from_xtlv_buf() 605 while (sbuflen >= hdr_size) { in bcm_get_data_from_xtlv_buf()
|
| /OK3568_Linux_fs/kernel/fs/xfs/libxfs/ |
| H A D | xfs_attr_remote.c | 294 int hdr_size = 0; in xfs_attr_rmtval_copyout() local 307 hdr_size = sizeof(struct xfs_attr3_rmt_hdr); in xfs_attr_rmtval_copyout() 310 memcpy(*dst, src + hdr_size, byte_cnt); in xfs_attr_rmtval_copyout() 342 int hdr_size; in xfs_attr_rmtval_copyin() local 346 hdr_size = xfs_attr3_rmt_hdr_set(mp, dst, ino, *offset, in xfs_attr_rmtval_copyin() 349 memcpy(dst + hdr_size, *src, byte_cnt); in xfs_attr_rmtval_copyin() 355 if (byte_cnt + hdr_size < blksize) { in xfs_attr_rmtval_copyin() 358 memset(dst + hdr_size + byte_cnt, 0, in xfs_attr_rmtval_copyin() 359 blksize - hdr_size - byte_cnt); in xfs_attr_rmtval_copyin()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/chelsio/libcxgb/ |
| H A D | libcxgb_cm.h | 68 unsigned short hdr_size = (ipv6 ? in cxgb_best_mtu() local 74 unsigned short data_size = mtu - hdr_size; in cxgb_best_mtu() 76 cxgb4_best_aligned_mtu(mtus, hdr_size, data_size, 8, idx); in cxgb_best_mtu()
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/core/ |
| H A D | user_mad.c | 166 static int hdr_size(struct ib_umad_file *file) in hdr_size() function 246 packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len; in recv_handler() 304 count < hdr_size(file) + packet->length) || in copy_recv_mad() 306 count < hdr_size(file) + seg_size)) in copy_recv_mad() 309 if (copy_to_user(buf, &packet->mad, hdr_size(file))) in copy_recv_mad() 312 buf += hdr_size(file); in copy_recv_mad() 322 if (count < hdr_size(file) + packet->length) { in copy_recv_mad() 345 return hdr_size(file) + packet->length; in copy_recv_mad() 351 ssize_t size = hdr_size(file) + packet->length; in copy_send_mad() 356 if (copy_to_user(buf, &packet->mad, hdr_size(file))) in copy_send_mad() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wimax/i2400m/ |
| H A D | tx.c | 618 size_t aligned_size, padding, hdr_size; in i2400m_tx_close() local 643 hdr_size = struct_size(tx_msg, pld, le16_to_cpu(tx_msg->num_pls)); in i2400m_tx_close() 644 hdr_size = ALIGN(hdr_size, I2400M_PL_ALIGN); in i2400m_tx_close() 645 tx_msg->offset = I2400M_TX_PLD_SIZE - hdr_size; in i2400m_tx_close() 647 memmove(tx_msg_moved, tx_msg, hdr_size); in i2400m_tx_close()
|
| /OK3568_Linux_fs/kernel/drivers/soc/qcom/ |
| H A D | apr.c | 106 uint16_t hdr_size, msg_type, ver, svc_id; in apr_do_rx_callback() local 120 hdr_size = APR_HDR_FIELD_SIZE_BYTES(hdr->hdr_field); in apr_do_rx_callback() 121 if (hdr_size < APR_HDR_SIZE) { in apr_do_rx_callback() 122 dev_err(apr->dev, "APR: Wrong hdr size:%d\n", hdr_size); in apr_do_rx_callback() 158 resp.payload_size = hdr->pkt_size - hdr_size; in apr_do_rx_callback() 165 resp.payload = buf + hdr_size; in apr_do_rx_callback()
|
| /OK3568_Linux_fs/u-boot/drivers/video/ |
| H A D | video_bmp.c | 206 int hdr_size; in video_bmp_display() local 218 hdr_size = get_unaligned_le16(&bmp->header.size); in video_bmp_display() 219 debug("hdr_size=%d, bmp_bpix=%d\n", hdr_size, bmp_bpix); in video_bmp_display() 220 palette = (void *)bmp + 14 + hdr_size; in video_bmp_display()
|