Lines Matching refs:max_ndp_size
180 min = ctx->max_datagram_size + ctx->max_ndp_size + sizeof(struct usb_cdc_ncm_nth16);
182 min = ctx->max_datagram_size + ctx->max_ndp_size + sizeof(struct usb_cdc_ncm_nth32);
334 ctx->delayed_ndp16 = kzalloc(ctx->max_ndp_size, GFP_KERNEL);
339 ctx->delayed_ndp32 = kzalloc(ctx->max_ndp_size, GFP_KERNEL);
598 ctx->max_ndp_size = sizeof(struct usb_cdc_ncm_ndp16) + (ctx->tx_max_datagrams + 1) * sizeof(struct usb_cdc_ncm_dpe16);
600 ctx->max_ndp_size = sizeof(struct usb_cdc_ncm_ndp32) + (ctx->tx_max_datagrams + 1) * sizeof(struct usb_cdc_ncm_dpe32);
962 ctx->delayed_ndp16 = kzalloc(ctx->max_ndp_size, GFP_KERNEL);
966 ctx->delayed_ndp32 = kzalloc(ctx->max_ndp_size, GFP_KERNEL);
1128 if ((ctx->tx_curr_size - skb->len - reserve) < ctx->max_ndp_size)
1139 ndp16 = skb_put_zero(skb, ctx->max_ndp_size);
1183 if ((ctx->tx_curr_size - skb->len - reserve) < ctx->max_ndp_size)
1194 ndp32 = skb_put_zero(skb, ctx->max_ndp_size);
1225 delayed_ndp_size = ctx->max_ndp_size +
1409 cdc_ncm_align_tail(skb_out, ctx->tx_ndp_modulus, 0, ctx->tx_curr_size - ctx->max_ndp_size);
1411 skb_put_data(skb_out, ctx->delayed_ndp16, ctx->max_ndp_size);
1414 ndp.ndp16 = memset(ctx->delayed_ndp16, 0, ctx->max_ndp_size);
1417 cdc_ncm_align_tail(skb_out, ctx->tx_ndp_modulus, 0, ctx->tx_curr_size - ctx->max_ndp_size);
1419 skb_put_data(skb_out, ctx->delayed_ndp32, ctx->max_ndp_size);
1421 ndp.ndp32 = memset(ctx->delayed_ndp32, 0, ctx->max_ndp_size);