Home
last modified time | relevance | path

Searched refs:hlen (Results 1 – 25 of 81) 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/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.h118 u8 hlen; /* Header length */ member
127 .hlen = HCI_ACL_HDR_SIZE, \
134 .hlen = HCI_SCO_HDR_SIZE, \
141 .hlen = HCI_EVENT_HDR_SIZE, \
148 .hlen = HCI_ISO_HDR_SIZE, \
Dbtmtksdio.c175 u32 hlen, status = BTMTK_WMT_INVALID; in mtk_hci_wmt_sync() local
181 hlen = sizeof(*hdr) + wmt_params->dlen; in mtk_hci_wmt_sync()
182 if (hlen > 255) in mtk_hci_wmt_sync()
194 err = __hci_cmd_send(hdev, 0xfc6f, hlen, &wc); in mtk_hci_wmt_sync()
439 if (skb->len < (&pkts[i])->hlen) { in btmtksdio_rx_packet()
456 pad_size = skb->len - (&pkts[i])->hlen - dlen; in btmtksdio_rx_packet()
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()
Dhci_ll.c388 .hlen = 0, \
395 .hlen = 0, \
402 .hlen = 0, \
409 .hlen = 0, \
/drivers/net/ethernet/google/gve/
Dgve_tx.c294 int hlen; in gve_skb_fifo_bytes_required() local
296 hlen = skb_is_gso(skb) ? skb_checksum_start_offset(skb) + in gve_skb_fifo_bytes_required()
300 hlen); in gve_skb_fifo_bytes_required()
302 align_hdr_pad = L1_CACHE_ALIGN(hlen) - hlen; in gve_skb_fifo_bytes_required()
360 u16 hlen, u64 addr) in gve_tx_fill_pkt_desc() argument
378 pkt_desc->pkt.seg_len = cpu_to_be16(hlen); in gve_tx_fill_pkt_desc()
414 int pad_bytes, hlen, hdr_nfrags, payload_nfrags, l4_hdr_offset; in gve_tx_add_skb() local
433 hlen = is_gso ? l4_hdr_offset + tcp_hdrlen(skb) : in gve_tx_add_skb()
440 pad_bytes = gve_tx_fifo_pad_alloc_one_frag(&tx->tx_fifo, hlen); in gve_tx_add_skb()
441 hdr_nfrags = gve_tx_alloc_fifo(&tx->tx_fifo, hlen + pad_bytes, in gve_tx_add_skb()
[all …]
/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.h117 __field(u32, hlen)
125 __entry->hlen = packet->hlen;
135 __entry->hlen,
Dtrace_rx.h72 __field(u32, hlen)
81 __entry->hlen = packet->hlen;
92 __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/net/wan/
Ddlci.c70 unsigned int hlen; in dlci_header() local
78 hlen = sizeof(hdr.control) + sizeof(hdr.IP_NLPID); in dlci_header()
88 hlen = sizeof(hdr); in dlci_header()
92 dest = skb_push(skb, hlen); in dlci_header()
96 memcpy(dest, &hdr, hlen); in dlci_header()
98 return hlen; in dlci_header()
/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.c683 unsigned int hlen = skb_headlen(skb); in build_inline_wqe() local
693 skb_copy_from_linear_data(skb, inl + 1, hlen); in build_inline_wqe()
695 memcpy(((void *)(inl + 1)) + hlen, fragptr, in build_inline_wqe()
700 if (hlen <= spc) { in build_inline_wqe()
701 skb_copy_from_linear_data(skb, inl + 1, hlen); in build_inline_wqe()
702 if (hlen < spc) { in build_inline_wqe()
703 memcpy(((void *)(inl + 1)) + hlen, in build_inline_wqe()
704 fragptr, spc - hlen); in build_inline_wqe()
705 fragptr += spc - hlen; in build_inline_wqe()
713 hlen - spc); in build_inline_wqe()
[all …]
/drivers/nvme/target/
Dtcp.c259 recv_digest = *(__le32 *)(pdu + hdr->hlen); in nvmet_tcp_verify_hdgst()
261 exp_digest = *(__le32 *)(pdu + hdr->hlen); in nvmet_tcp_verify_hdgst()
278 len = le32_to_cpu(hdr->plen) - hdr->hlen - in nvmet_tcp_check_ddgst()
422 pdu->hdr.hlen = sizeof(*pdu); in nvmet_setup_c2h_data_pdu()
423 pdu->hdr.pdo = pdu->hdr.hlen + hdgst; in nvmet_setup_c2h_data_pdu()
425 cpu_to_le32(pdu->hdr.hlen + hdgst + in nvmet_setup_c2h_data_pdu()
453 pdu->hdr.hlen = sizeof(*pdu); in nvmet_setup_r2t_pdu()
455 pdu->hdr.plen = cpu_to_le32(pdu->hdr.hlen + hdgst); in nvmet_setup_r2t_pdu()
478 pdu->hdr.hlen = sizeof(*pdu); in nvmet_setup_response_pdu()
480 pdu->hdr.plen = cpu_to_le32(pdu->hdr.hlen + hdgst); in nvmet_setup_response_pdu()
[all …]
/drivers/net/ethernet/sun/
Dcassini.c1925 int dlen, hlen, len, i, alloclen; in cas_rx_process_pkt() local
1933 hlen = CAS_VAL(RX_COMP2_HDR_SIZE, words[1]); in cas_rx_process_pkt()
1935 len = hlen + dlen; in cas_rx_process_pkt()
1940 alloclen = max(hlen, RX_COPY_MIN); in cas_rx_process_pkt()
1951 if (hlen) { /* always copy header pages */ in cas_rx_process_pkt()
1957 i = hlen; in cas_rx_process_pkt()
1969 p += hlen; in cas_rx_process_pkt()
1974 if (alloclen < (hlen + dlen)) { in cas_rx_process_pkt()
1982 hlen = min(cp->page_size - off, dlen); in cas_rx_process_pkt()
1983 if (hlen < 0) { in cas_rx_process_pkt()
[all …]
/drivers/scsi/
Dgdth_proc.c154 int hlen; in gdth_show_info() local
192 hlen = sprintf(hrec, "%d", reserve_list[0]); in gdth_show_info()
196 hlen += scnprintf(hrec + hlen, 161 - hlen, ",%d", reserve_list[i]); in gdth_show_info()
/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_transport_offset(skb) + tcp_hdrlen(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/mellanox/mlx5/core/
Den_tx.c115 u16 hlen; in mlx5e_calc_min_inline() local
121 hlen = eth_get_headlen(skb->dev, skb->data, skb_headlen(skb)); in mlx5e_calc_min_inline()
122 if (hlen == ETH_HLEN && !skb_vlan_tag_present(skb)) in mlx5e_calc_min_inline()
123 hlen += VLAN_HLEN; in mlx5e_calc_min_inline()
126 hlen = mlx5e_skb_l3_header_offset(skb); in mlx5e_calc_min_inline()
130 hlen = mlx5e_skb_l2_header_offset(skb); in mlx5e_calc_min_inline()
132 return min_t(u16, hlen, skb_headlen(skb)); in mlx5e_calc_min_inline()
/drivers/net/ethernet/qlogic/qede/
Dqede_fp.c276 int hlen; in qede_pkt_req_lin() local
278 hlen = qede_get_skb_hlen(skb, xmit_type & XMIT_ENC); in qede_pkt_req_lin()
281 if (skb_headlen(skb) > hlen) in qede_pkt_req_lin()
1511 u16 hlen; in qede_start_xmit() local
1628 hlen = qede_get_skb_hlen(skb, true); in qede_start_xmit()
1632 hlen = qede_get_skb_hlen(skb, false); in qede_start_xmit()
1642 if (unlikely(skb_headlen(skb) > hlen)) { in qede_start_xmit()
1650 hlen; in qede_start_xmit()
1654 hlen); in qede_start_xmit()
1661 first_bd->nbytes = cpu_to_le16(hlen); in qede_start_xmit()
/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/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c3289 struct eth_tx_start_bd **tx_bd, u16 hlen, in bnx2x_tx_split() argument
3298 h_tx_bd->nbytes = cpu_to_le16(hlen); in bnx2x_tx_split()
3309 le32_to_cpu(h_tx_bd->addr_lo)) + hlen; in bnx2x_tx_split()
3313 d_tx_bd->nbytes = cpu_to_le16(old_len - hlen); in bnx2x_tx_split()
3406 int to_copy = 0, hlen = 0; in bnx2x_pkt_req_lin() local
3423 hlen = (int)(skb_inner_transport_header(skb) - in bnx2x_pkt_req_lin()
3427 hlen = (int)(skb_transport_header(skb) - in bnx2x_pkt_req_lin()
3431 first_bd_sz = skb_headlen(skb) - hlen; in bnx2x_pkt_req_lin()
3475 skb_shinfo(skb)->nr_frags, hlen, first_bd_sz); in bnx2x_pkt_req_lin()
3604 u8 hlen = (skb_network_header(skb) - skb->data) >> 1; in bnx2x_set_pbd_csum() local
[all …]

1234