| /drivers/macintosh/ |
| A D | windfarm_pid.c | 37 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/ |
| A D | h4_recv.h | 13 u8 hlen; /* Header length */ member 22 .hlen = HCI_ACL_HDR_SIZE, \ 29 .hlen = HCI_SCO_HDR_SIZE, \ 36 .hlen = HCI_EVENT_HDR_SIZE, \ 43 .hlen = HCI_ISO_HDR_SIZE, \ 73 hci_skb_expect(skb) = (&pkts[i])->hlen; in h4_recv_buf() 105 if (skb->len == (&pkts[i])->hlen) { in h4_recv_buf()
|
| A D | hci_uart.h | 130 u8 hlen; /* Header length */ member 139 .hlen = HCI_ACL_HDR_SIZE, \ 146 .hlen = HCI_SCO_HDR_SIZE, \ 153 .hlen = HCI_EVENT_HDR_SIZE, \ 160 .hlen = HCI_ISO_HDR_SIZE, \
|
| A D | hci_ll.c | 388 .hlen = 0, \ 395 .hlen = 0, \ 402 .hlen = 0, \ 409 .hlen = 0, \
|
| A D | hci_h4.c | 187 hci_skb_expect(skb) = (&pkts[i])->hlen; in h4_recv_buf() 219 if (skb->len == (&pkts[i])->hlen) { in h4_recv_buf()
|
| A D | btmtksdio.c | 152 u32 hlen, status = BTMTK_WMT_INVALID; in mtk_hci_wmt_sync() local 159 hlen = sizeof(*hdr) + wmt_params->dlen; in mtk_hci_wmt_sync() 160 if (hlen > 255) in mtk_hci_wmt_sync() 163 wc = kzalloc(hlen, GFP_KERNEL); in mtk_hci_wmt_sync() 176 err = __hci_cmd_send(hdev, 0xfc6f, hlen, wc); in mtk_hci_wmt_sync() 504 if (skb->len < (&pkts[i])->hlen) { in btmtksdio_rx_packet() 521 pad_size = skb->len - (&pkts[i])->hlen - dlen; in btmtksdio_rx_packet()
|
| /drivers/video/fbdev/matrox/ |
| A D | matroxfb_g450.c | 243 u_int32_t hlen; in computeRegs() local 290 hlen = hvis + hfp + hsl + hbp; in computeRegs() 291 over = hlen & 0x0F; in computeRegs() 293 dprintk(KERN_DEBUG "WL: vis=%u, hf=%u, hs=%u, hb=%u, total=%u\n", hvis, hfp, hsl, hbp, hlen); in computeRegs() 297 hlen -= over; in computeRegs() 301 hlen += 4; in computeRegs() 304 hlen += 16; in computeRegs() 321 hlen = hlen >> 1; in computeRegs() 323 dprintk(KERN_DEBUG "hlen=%u hvis=%u\n", hlen, hvis); in computeRegs() 329 mt->HSyncEnd = (hlen & ~7) - 8; in computeRegs() [all …]
|
| A D | matroxfb_maven.c | 831 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/net/ethernet/google/gve/ |
| A D | gve_tx.c | 406 int hlen; in gve_skb_fifo_bytes_required() local 412 hlen); in gve_skb_fifo_bytes_required() 414 align_hdr_pad = L1_CACHE_ALIGN(hlen) - hlen; in gve_skb_fifo_bytes_required() 500 u16 hlen, u64 addr, u16 pkt_len) in gve_tx_fill_pkt_desc() argument 603 hlen); in gve_tx_add_skb_copy() 607 copy_offset = hlen; in gve_tx_add_skb_copy() 640 int hlen, num_descriptors, l4_hdr_offset; in gve_tx_add_skb_no_copy() local 673 if (hlen < len) in gve_tx_add_skb_no_copy() 688 if (hlen < len) { in gve_tx_add_skb_no_copy() 692 len -= hlen; in gve_tx_add_skb_no_copy() [all …]
|
| /drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| A D | vpstate.c | 54 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()
|
| A D | power_budget.c | 92 budget->hlen = hdr; in nvbios_power_budget_header() 112 entry_offset = budget->offset + budget->hlen + idx * budget->elen; in nvbios_power_budget_entry()
|
| /drivers/infiniband/hw/hfi1/ |
| A D | trace_misc.h | 76 __field(u32, hlen) 84 __entry->hlen = packet->hlen; 94 __entry->hlen,
|
| A D | trace_rx.h | 31 __field(u32, hlen) 40 __entry->hlen = packet->hlen; 51 __entry->hlen,
|
| /drivers/net/slip/ |
| A D | slhc.c | 235 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/ |
| A D | ccs-data.c | 67 size_t hlen, plen; in ccs_data_parse_length_specifier() local 74 hlen = sizeof(*__len); in ccs_data_parse_length_specifier() 84 hlen = sizeof(*__len2); in ccs_data_parse_length_specifier() 97 hlen = sizeof(*__len3); in ccs_data_parse_length_specifier() 108 if (!has_headroom(__len, hlen + plen, endp)) in ccs_data_parse_length_specifier() 111 *__hlen = hlen; in ccs_data_parse_length_specifier() 179 size_t plen, hlen; in ccs_data_block_parse_header() local 196 block_id, hlen, plen); in ccs_data_block_parse_header() 198 if (!has_headroom(&block->length, hlen + plen, endp)) in ccs_data_block_parse_header() 205 *payload = (void *)&block->length + hlen; in ccs_data_block_parse_header() [all …]
|
| /drivers/net/ethernet/mellanox/mlx4/ |
| A D | en_tx.c | 694 unsigned int hlen = skb_headlen(skb); in build_inline_wqe() local 704 skb_copy_from_linear_data(skb, inl->data, hlen); in build_inline_wqe() 706 memcpy(inl->data + hlen, fragptr, in build_inline_wqe() 711 if (hlen <= spc) { in build_inline_wqe() 712 skb_copy_from_linear_data(skb, inl->data, hlen); in build_inline_wqe() 713 if (hlen < spc) { in build_inline_wqe() 714 memcpy(inl->data + hlen, in build_inline_wqe() 715 fragptr, spc - hlen); in build_inline_wqe() 716 fragptr += spc - hlen; in build_inline_wqe() 724 hlen - spc); in build_inline_wqe() [all …]
|
| /drivers/nvme/target/ |
| A D | tcp.c | 313 recv_digest = *(__le32 *)(pdu + hdr->hlen); in nvmet_tcp_verify_hdgst() 315 exp_digest = *(__le32 *)(pdu + hdr->hlen); in nvmet_tcp_verify_hdgst() 332 len = le32_to_cpu(hdr->plen) - hdr->hlen - in nvmet_tcp_check_ddgst() 470 pdu->hdr.hlen = sizeof(*pdu); in nvmet_setup_c2h_data_pdu() 471 pdu->hdr.pdo = pdu->hdr.hlen + hdgst; in nvmet_setup_c2h_data_pdu() 473 cpu_to_le32(pdu->hdr.hlen + hdgst + in nvmet_setup_c2h_data_pdu() 500 pdu->hdr.hlen = sizeof(*pdu); in nvmet_setup_r2t_pdu() 524 pdu->hdr.hlen = sizeof(*pdu); in nvmet_setup_response_pdu() 894 icresp->hdr.hlen = sizeof(*icresp); in nvmet_tcp_handle_icreq() 896 icresp->hdr.plen = cpu_to_le32(icresp->hdr.hlen); in nvmet_tcp_handle_icreq() [all …]
|
| /drivers/rpmsg/ |
| A D | qcom_glink_rpm.c | 163 const void *hdr, size_t hlen, in glink_rpm_tx_write() argument 167 size_t tlen = hlen + dlen; in glink_rpm_tx_write() 174 if (WARN(hlen % 4, "Glink Header length must be 4 bytes aligned\n")) in glink_rpm_tx_write() 186 head = glink_rpm_tx_write_one(pipe, head, hdr, hlen); in glink_rpm_tx_write()
|
| /drivers/net/ethernet/sun/ |
| A D | cassini.c | 1923 len = hlen + dlen; in cas_rx_process_pkt() 1945 i = hlen; in cas_rx_process_pkt() 1955 p += hlen; in cas_rx_process_pkt() 1969 if (hlen < 0) { in cas_rx_process_pkt() 1975 i = hlen; in cas_rx_process_pkt() 2007 hlen = dlen; in cas_rx_process_pkt() 2022 skb->data_len += hlen; in cas_rx_process_pkt() 2023 skb->len += hlen; in cas_rx_process_pkt() 2043 if (hlen < 0) { in cas_rx_process_pkt() 2049 i = hlen; in cas_rx_process_pkt() [all …]
|
| /drivers/infiniband/ulp/ipoib/ |
| A D | ipoib_ib.c | 570 void *head, int hlen) in post_send() argument 583 priv->tx_wr.hlen = hlen; in post_send() 596 int hlen, rc; in ipoib_send() local 601 hlen = skb_tcp_all_headers(skb); in ipoib_send() 603 if (unlikely(!skb_pull(skb, hlen))) { in ipoib_send() 620 hlen = 0; in ipoib_send() 679 address, dqpn, tx_req, phead, hlen); in ipoib_send()
|
| /drivers/net/ethernet/qlogic/qede/ |
| A D | qede_fp.c | 275 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/ |
| A D | bnx2x_cmn.c | 3315 h_tx_bd->nbytes = cpu_to_le16(hlen); in bnx2x_tx_split() 3423 int to_copy = 0, hlen = 0; in bnx2x_pkt_req_lin() local 3442 hlen = skb_tcp_all_headers(skb); in bnx2x_pkt_req_lin() 3620 cpu_to_le16(hlen | in bnx2x_set_pbd_csum() 3626 hlen += pbd->ip_hlen_w; in bnx2x_set_pbd_csum() 3630 hlen += tcp_hdrlen(skb) / 2; in bnx2x_set_pbd_csum() 3632 hlen += sizeof(struct udphdr) / 2; in bnx2x_set_pbd_csum() 3635 hlen = hlen*2; in bnx2x_set_pbd_csum() 3656 return hlen; in bnx2x_set_pbd_csum() 3769 u8 hlen = 0; in bnx2x_start_xmit() local [all …]
|
| /drivers/net/ethernet/mellanox/mlx5/core/ |
| A D | en_tx.c | 76 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/ |
| A D | ocfb.c | 108 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/nvme/common/ |
| A D | auth.c | 333 u8 *challenge, u8 *aug, size_t hlen) in nvme_auth_augmented_challenge() argument 340 hashed_key = kmalloc(hlen, GFP_KERNEL); in nvme_auth_augmented_challenge() 363 ret = crypto_shash_setkey(tfm, hashed_key, hlen); in nvme_auth_augmented_challenge() 367 ret = crypto_shash_tfm_digest(tfm, challenge, hlen, aug); in nvme_auth_augmented_challenge()
|