Home
last modified time | relevance | path

Searched refs:new_len (Results 1 – 14 of 14) sorted by relevance

/drivers/net/irda/
Dmcs7780.c403 int new_len; in mcs_unwrap_mir() local
410 new_len = len - 2; in mcs_unwrap_mir()
411 if(unlikely(new_len <= 0)) { in mcs_unwrap_mir()
413 mcs->netdev->name, new_len); in mcs_unwrap_mir()
423 fcs, new_len); in mcs_unwrap_mir()
429 skb = dev_alloc_skb(new_len + 1); in mcs_unwrap_mir()
436 skb_copy_to_linear_data(skb, buf, new_len); in mcs_unwrap_mir()
437 skb_put(skb, new_len); in mcs_unwrap_mir()
445 mcs->netdev->stats.rx_bytes += new_len; in mcs_unwrap_mir()
455 int new_len; in mcs_unwrap_fir() local
[all …]
/drivers/video/fbdev/omap2/dss/
Domapdss-boot-init.c96 int new_len; in omapdss_omapify_node() local
112 new_len = prop->length + strlen(prefix) * num_strs; in omapdss_omapify_node()
113 new_compat = kmalloc(new_len, GFP_KERNEL); in omapdss_omapify_node()
115 omapdss_prefix_strcpy(new_compat, new_len, prop->value, prop->length); in omapdss_omapify_node()
117 omapdss_update_prop(node, new_compat, new_len); in omapdss_omapify_node()
/drivers/char/tpm/
Dtpm.h458 unsigned int new_len) in tpm_buf_append() argument
467 if ((len + new_len) > PAGE_SIZE) { in tpm_buf_append()
473 memcpy(&buf->data[len], new_data, new_len); in tpm_buf_append()
474 head->length = cpu_to_be32(len + new_len); in tpm_buf_append()
/drivers/s390/net/
Dctcm_mpc.c1050 __u32 new_len; in ctcmpc_unpack_skb() local
1130 new_len = curr_pdu->pdu_offset; in ctcmpc_unpack_skb()
1132 __func__, new_len); in ctcmpc_unpack_skb()
1133 if ((new_len == 0) || (new_len > pskb->len)) { in ctcmpc_unpack_skb()
1139 CTCM_FUNTAIL, dev->name, new_len); in ctcmpc_unpack_skb()
1142 skb = __dev_alloc_skb(new_len+4, GFP_ATOMIC); in ctcmpc_unpack_skb()
1152 memcpy(skb_put(skb, new_len), pskb->data, new_len); in ctcmpc_unpack_skb()
1176 skb_pull(pskb, new_len); /* point to next PDU */ in ctcmpc_unpack_skb()
2072 __u32 new_len = 0; in mpc_send_qllc_discontact() local
2102 new_len = sizeof(struct qllc); in mpc_send_qllc_discontact()
[all …]
/drivers/usb/serial/
Ddigi_acceleport.c887 int ret, data_len, new_len; in digi_write() local
909 new_len = 1; in digi_write()
911 new_len = 0; in digi_write()
914 return new_len; in digi_write()
919 new_len = min(count, port->bulk_out_size-2-priv->dp_out_buf_len); in digi_write()
920 data_len = new_len + priv->dp_out_buf_len; in digi_write()
937 memcpy(data, buf, new_len); in digi_write()
942 ret = new_len; in digi_write()
/drivers/video/fbdev/
Dudlfb.c1164 int new_len; in dlfb_realloc_framebuffer() local
1171 new_len = info->fix.line_length * info->var.yres; in dlfb_realloc_framebuffer()
1173 if (PAGE_ALIGN(new_len) > old_len) { in dlfb_realloc_framebuffer()
1177 new_fb = vmalloc(new_len); in dlfb_realloc_framebuffer()
1189 info->fix.smem_len = PAGE_ALIGN(new_len); in dlfb_realloc_framebuffer()
1200 new_back = vzalloc(new_len); in dlfb_realloc_framebuffer()
Dsmscufx.c1299 int new_len; in ufx_realloc_framebuffer() local
1305 new_len = info->fix.line_length * info->var.yres; in ufx_realloc_framebuffer()
1307 if (PAGE_ALIGN(new_len) > old_len) { in ufx_realloc_framebuffer()
1311 new_fb = vmalloc(new_len); in ufx_realloc_framebuffer()
1323 info->fix.smem_len = PAGE_ALIGN(new_len); in ufx_realloc_framebuffer()
/drivers/usb/gadget/function/
Df_ncm.c898 unsigned new_len; in package_for_tx() local
910 new_len = ndp_index + dgram_idx_len + ncm->skb_tx_ndp->len; in package_for_tx()
916 put_ncm(&ntb_iter, opts->block_length, new_len); in package_for_tx()
920 new_len = opts->ndp_size + in package_for_tx()
926 put_unaligned_le16(new_len, ntb_iter); in package_for_tx()
/drivers/net/ethernet/intel/i40e/
Di40e_nvm.c1249 int new_len = aq_total_len - cmd->offset; in i40e_nvmupd_get_aq_result() local
1252 __func__, cmd->data_size, new_len); in i40e_nvmupd_get_aq_result()
1253 cmd->data_size = new_len; in i40e_nvmupd_get_aq_result()
Di40e_adminq_cmd.h2029 __le16 new_len; member
/drivers/net/wireless/
Drndis_wlan.c2073 int ret = -EINVAL, len, count, bssid_len, real_count, new_len; in rndis_check_bssid_list() local
2088 new_len = len; in rndis_check_bssid_list()
2090 buf, &new_len); in rndis_check_bssid_list()
2091 if (ret != 0 || new_len < sizeof(struct ndis_80211_bssid_list_ex)) in rndis_check_bssid_list()
2094 if (new_len > len) { in rndis_check_bssid_list()
2095 len = new_len; in rndis_check_bssid_list()
2100 len = new_len; in rndis_check_bssid_list()
/drivers/net/wireless/ath/ath6kl/
Dwmi.c164 size_t new_len; in ath6kl_wmi_dix_2_dot3() local
185 new_len = skb->len - sizeof(*eth_hdr) + sizeof(*llc_hdr); in ath6kl_wmi_dix_2_dot3()
190 eth_hdr->h_proto = cpu_to_be16(new_len); in ath6kl_wmi_dix_2_dot3()
/drivers/net/ethernet/intel/i40evf/
Di40e_adminq_cmd.h2026 __le16 new_len; member
/drivers/scsi/lpfc/
Dlpfc_sli.c1428 size_t new_len; in lpfc_sli_next_iotag() local
1442 new_len = psli->iocbq_lookup_len + LPFC_IOCBQ_LOOKUP_INCREMENT; in lpfc_sli_next_iotag()
1444 new_arr = kzalloc(new_len * sizeof (struct lpfc_iocbq *), in lpfc_sli_next_iotag()
1449 if (new_len <= psli->iocbq_lookup_len) { in lpfc_sli_next_iotag()
1468 psli->iocbq_lookup_len = new_len; in lpfc_sli_next_iotag()