Home
last modified time | relevance | path

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

1234

/drivers/macintosh/
Dwindfarm_pid.c37 int i, hlen = st->param.history_len; in wf_pid_run() local
44 for (i = 0; i < hlen; i++) { in wf_pid_run()
51 st->index = (st->index + 1) % hlen; in wf_pid_run()
57 for (i = 0, integ = 0; i < hlen; i++) in wf_pid_run()
58 integ += st->errors[(st->index + hlen - i) % hlen]; in wf_pid_run()
63 st->errors[(st->index + hlen - 1) % hlen]; in wf_pid_run()
92 int i, hlen = st->param.history_len; in wf_cpu_pid_run() local
99 for (i = 0; i < hlen; i++) { in wf_cpu_pid_run()
107 st->index = (st->index + 1) % hlen; in wf_cpu_pid_run()
115 for (i = 0, integ = 0; i < hlen; i++) in wf_cpu_pid_run()
[all …]
/drivers/net/ethernet/google/gve/
Dgve_tx.c285 int hlen; in gve_skb_fifo_bytes_required() local
287 hlen = skb_is_gso(skb) ? skb_checksum_start_offset(skb) + tcp_hdrlen(skb) : in gve_skb_fifo_bytes_required()
291 hlen); in gve_skb_fifo_bytes_required()
293 align_hdr_pad = L1_CACHE_ALIGN(hlen) - hlen; in gve_skb_fifo_bytes_required()
379 u16 hlen, u64 addr) in gve_tx_fill_pkt_desc() argument
397 pkt_desc->pkt.seg_len = cpu_to_be16(hlen); in gve_tx_fill_pkt_desc()
442 int pad_bytes, hlen, hdr_nfrags, payload_nfrags, l4_hdr_offset; in gve_tx_add_skb_copy() local
460 hlen = is_gso ? l4_hdr_offset + tcp_hdrlen(skb) : in gve_tx_add_skb_copy()
467 pad_bytes = gve_tx_fifo_pad_alloc_one_frag(&tx->tx_fifo, hlen); in gve_tx_add_skb_copy()
468 hdr_nfrags = gve_tx_alloc_fifo(&tx->tx_fifo, hlen + pad_bytes, in gve_tx_add_skb_copy()
[all …]
/drivers/bluetooth/
Dh4_recv.h13 u8 hlen; /* Header length */ member
22 .hlen = HCI_ACL_HDR_SIZE, \
29 .hlen = HCI_SCO_HDR_SIZE, \
36 .hlen = HCI_EVENT_HDR_SIZE, \
66 hci_skb_expect(skb) = (&pkts[i])->hlen; in h4_recv_buf()
98 if (skb->len == (&pkts[i])->hlen) { in h4_recv_buf()
Dhci_uart.h119 u8 hlen; /* Header length */ member
128 .hlen = HCI_ACL_HDR_SIZE, \
135 .hlen = HCI_SCO_HDR_SIZE, \
142 .hlen = HCI_EVENT_HDR_SIZE, \
149 .hlen = HCI_ISO_HDR_SIZE, \
Dhci_ll.c388 .hlen = 0, \
395 .hlen = 0, \
402 .hlen = 0, \
409 .hlen = 0, \
Dhci_h4.c187 hci_skb_expect(skb) = (&pkts[i])->hlen; in h4_recv_buf()
219 if (skb->len == (&pkts[i])->hlen) { in h4_recv_buf()
/drivers/video/fbdev/matrox/
Dmatroxfb_g450.c241 u_int32_t hlen; in computeRegs() local
288 hlen = hvis + hfp + hsl + hbp; in computeRegs()
289 over = hlen & 0x0F; in computeRegs()
291 dprintk(KERN_DEBUG "WL: vis=%u, hf=%u, hs=%u, hb=%u, total=%u\n", hvis, hfp, hsl, hbp, hlen); in computeRegs()
295 hlen -= over; in computeRegs()
299 hlen += 4; in computeRegs()
302 hlen += 16; in computeRegs()
314 …ntk(KERN_DEBUG "PG: vis=%04X, hf=%02X, hs=%02X, hb=%02X, total=%04X\n", hvis, hfp, hsl, hbp, hlen); in computeRegs()
319 hlen = hlen >> 1; in computeRegs()
321 dprintk(KERN_DEBUG "hlen=%u hvis=%u\n", hlen, hvis); in computeRegs()
[all …]
Dmatroxfb_maven.c831 int hlen; in maven_compute_timming() local
847 hlen = 98304 - 128 - ((lmargin + mt->HDisplay - 8) * hdec); in maven_compute_timming()
848 if (hlen < 0) in maven_compute_timming()
849 hlen = 0; in maven_compute_timming()
850 hlen = hlen >> 8; in maven_compute_timming()
851 if (hlen > 0xFF) in maven_compute_timming()
852 hlen = 0xFF; in maven_compute_timming()
878 m->regs[0xC2] = hlen; in maven_compute_timming()
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dvpstate.c54 h->hlen = nvbios_rd08(b, h->offset + 0x1); in nvbios_vpstate_parse()
61 if (h->hlen > 0x10) in nvbios_vpstate_parse()
65 if (h->hlen > 0x11) in nvbios_vpstate_parse()
84 offset = h->offset + h->hlen + idx * (h->elen + (h->slen * h->scount)); in nvbios_vpstate_entry()
Dpower_budget.c93 budget->hlen = hdr; in nvbios_power_budget_header()
113 entry_offset = budget->offset + budget->hlen + idx * budget->elen; in nvbios_power_budget_entry()
/drivers/infiniband/hw/hfi1/
Dtrace_misc.h76 __field(u32, hlen)
84 __entry->hlen = packet->hlen;
94 __entry->hlen,
Dtrace_rx.h31 __field(u32, hlen)
40 __entry->hlen = packet->hlen;
51 __entry->hlen,
/drivers/net/slip/
Dslhc.c235 int nlen, hlen; in slhc_compress() local
270 hlen = nlen + th->doff * 4; in slhc_compress()
276 if(hlen > isize || th->syn || th->fin || th->rst || in slhc_compress()
406 ntohs(cs->cs_ip.tot_len) == hlen) in slhc_compress()
417 deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ in slhc_compress()
424 if(deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ in slhc_compress()
466 memcpy(cp+deltaS,icp+hlen,isize-hlen); in slhc_compress()
469 return isize - hlen + deltaS + (cp - ocp); in slhc_compress()
/drivers/media/i2c/ccs/
Dccs-data.c66 size_t hlen, plen; in ccs_data_parse_length_specifier() local
73 hlen = sizeof(*__len); in ccs_data_parse_length_specifier()
83 hlen = sizeof(*__len2); in ccs_data_parse_length_specifier()
96 hlen = sizeof(*__len3); in ccs_data_parse_length_specifier()
107 if (!has_headroom(__len, hlen + plen, endp)) in ccs_data_parse_length_specifier()
110 *__hlen = hlen; in ccs_data_parse_length_specifier()
178 size_t plen, hlen; in ccs_data_block_parse_header() local
185 rval = ccs_data_parse_length_specifier(&block->length, &hlen, &plen, in ccs_data_block_parse_header()
195 block_id, hlen, plen); in ccs_data_block_parse_header()
197 if (!has_headroom(&block->length, hlen + plen, endp)) in ccs_data_block_parse_header()
[all …]
/drivers/rpmsg/
Dqcom_glink_rpm.c150 const void *hdr, size_t hlen, in glink_rpm_tx_write() argument
154 size_t tlen = hlen + dlen; in glink_rpm_tx_write()
161 if (WARN(hlen % 4, "Glink Header length must be 4 bytes aligned\n")) in glink_rpm_tx_write()
173 head = glink_rpm_tx_write_one(pipe, head, hdr, hlen); in glink_rpm_tx_write()
/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c693 unsigned int hlen = skb_headlen(skb); in build_inline_wqe() local
703 skb_copy_from_linear_data(skb, inl->data, hlen); in build_inline_wqe()
705 memcpy(inl->data + hlen, fragptr, in build_inline_wqe()
710 if (hlen <= spc) { in build_inline_wqe()
711 skb_copy_from_linear_data(skb, inl->data, hlen); in build_inline_wqe()
712 if (hlen < spc) { in build_inline_wqe()
713 memcpy(inl->data + hlen, in build_inline_wqe()
714 fragptr, spc - hlen); in build_inline_wqe()
715 fragptr += spc - hlen; in build_inline_wqe()
723 hlen - spc); in build_inline_wqe()
[all …]
/drivers/nvme/target/
Dtcp.c270 recv_digest = *(__le32 *)(pdu + hdr->hlen); in nvmet_tcp_verify_hdgst()
272 exp_digest = *(__le32 *)(pdu + hdr->hlen); in nvmet_tcp_verify_hdgst()
289 len = le32_to_cpu(hdr->plen) - hdr->hlen - in nvmet_tcp_check_ddgst()
414 pdu->hdr.hlen = sizeof(*pdu); in nvmet_setup_c2h_data_pdu()
415 pdu->hdr.pdo = pdu->hdr.hlen + hdgst; in nvmet_setup_c2h_data_pdu()
417 cpu_to_le32(pdu->hdr.hlen + hdgst + in nvmet_setup_c2h_data_pdu()
445 pdu->hdr.hlen = sizeof(*pdu); in nvmet_setup_r2t_pdu()
447 pdu->hdr.plen = cpu_to_le32(pdu->hdr.hlen + hdgst); in nvmet_setup_r2t_pdu()
470 pdu->hdr.hlen = sizeof(*pdu); in nvmet_setup_response_pdu()
472 pdu->hdr.plen = cpu_to_le32(pdu->hdr.hlen + hdgst); in nvmet_setup_response_pdu()
[all …]
/drivers/nvme/common/
Dauth.c331 u8 *challenge, u8 *aug, size_t hlen) in nvme_auth_augmented_challenge() argument
339 hashed_key = kmalloc(hlen, GFP_KERNEL); in nvme_auth_augmented_challenge()
370 ret = crypto_shash_setkey(tfm, hashed_key, hlen); in nvme_auth_augmented_challenge()
378 ret = crypto_shash_update(desc, challenge, hlen); in nvme_auth_augmented_challenge()
/drivers/net/ethernet/sun/
Dcassini.c1914 int dlen, hlen, len, i, alloclen; in cas_rx_process_pkt() local
1922 hlen = CAS_VAL(RX_COMP2_HDR_SIZE, words[1]); in cas_rx_process_pkt()
1924 len = hlen + dlen; in cas_rx_process_pkt()
1929 alloclen = max(hlen, RX_COPY_MIN); in cas_rx_process_pkt()
1940 if (hlen) { /* always copy header pages */ in cas_rx_process_pkt()
1946 i = hlen; in cas_rx_process_pkt()
1958 p += hlen; in cas_rx_process_pkt()
1963 if (alloclen < (hlen + dlen)) { in cas_rx_process_pkt()
1971 hlen = min(cp->page_size - off, dlen); in cas_rx_process_pkt()
1972 if (hlen < 0) { in cas_rx_process_pkt()
[all …]
/drivers/infiniband/ulp/ipoib/
Dipoib_ib.c545 void *head, int hlen) in post_send() argument
558 priv->tx_wr.hlen = hlen; in post_send()
571 int hlen, rc; in ipoib_send() local
576 hlen = skb_tcp_all_headers(skb); in ipoib_send()
578 if (unlikely(!skb_pull(skb, hlen))) { in ipoib_send()
595 hlen = 0; in ipoib_send()
654 address, dqpn, tx_req, phead, hlen); in ipoib_send()
/drivers/net/ethernet/qlogic/qede/
Dqede_fp.c275 int hlen; in qede_pkt_req_lin() local
277 hlen = qede_get_skb_hlen(skb, xmit_type & XMIT_ENC); in qede_pkt_req_lin()
280 if (skb_headlen(skb) > hlen) in qede_pkt_req_lin()
1493 u16 hlen; in qede_start_xmit() local
1610 hlen = qede_get_skb_hlen(skb, true); in qede_start_xmit()
1614 hlen = qede_get_skb_hlen(skb, false); in qede_start_xmit()
1624 if (unlikely(skb_headlen(skb) > hlen)) { in qede_start_xmit()
1632 hlen; in qede_start_xmit()
1636 hlen); in qede_start_xmit()
1643 first_bd->nbytes = cpu_to_le16(hlen); in qede_start_xmit()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c3288 struct eth_tx_start_bd **tx_bd, u16 hlen, in bnx2x_tx_split() argument
3297 h_tx_bd->nbytes = cpu_to_le16(hlen); in bnx2x_tx_split()
3308 le32_to_cpu(h_tx_bd->addr_lo)) + hlen; in bnx2x_tx_split()
3312 d_tx_bd->nbytes = cpu_to_le16(old_len - hlen); in bnx2x_tx_split()
3405 int to_copy = 0, hlen = 0; in bnx2x_pkt_req_lin() local
3422 hlen = skb_inner_tcp_all_headers(skb); in bnx2x_pkt_req_lin()
3424 hlen = skb_tcp_all_headers(skb); in bnx2x_pkt_req_lin()
3427 first_bd_sz = skb_headlen(skb) - hlen; in bnx2x_pkt_req_lin()
3471 skb_shinfo(skb)->nr_frags, hlen, first_bd_sz); in bnx2x_pkt_req_lin()
3598 u8 hlen = (skb_network_header(skb) - skb->data) >> 1; in bnx2x_set_pbd_csum() local
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Den_tx.c76 u16 hlen; in mlx5e_calc_min_inline() local
82 hlen = eth_get_headlen(skb->dev, skb->data, skb_headlen(skb)); in mlx5e_calc_min_inline()
83 if (hlen == ETH_HLEN && !skb_vlan_tag_present(skb)) in mlx5e_calc_min_inline()
84 hlen += VLAN_HLEN; in mlx5e_calc_min_inline()
87 hlen = mlx5e_skb_l3_header_offset(skb); in mlx5e_calc_min_inline()
91 hlen = mlx5e_skb_l2_header_offset(skb); in mlx5e_calc_min_inline()
93 return min_t(u16, hlen, skb_headlen(skb)); in mlx5e_calc_min_inline()
/drivers/video/fbdev/
Docfb.c108 u32 hlen; in ocfb_setupfb() local
133 hlen = var->left_margin + var->right_margin + var->hsync_len + in ocfb_setupfb()
139 ocfb_writereg(fbdev, OCFB_HVLEN, (hlen - 1) << 16 | (vlen - 1)); in ocfb_setupfb()
/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
Dpower_budget.h16 u8 hlen; member

1234