Lines Matching refs:tx_max

210 	return sprintf(buf, "%u\n", ctx->tx_max);  in cdc_ncm_show_tx_max()
244 cdc_ncm_update_rxtx_max(dev, val, ctx->tx_max); in cdc_ncm_store_rx_max()
284 static DEVICE_ATTR(tx_max, S_IRUGO | S_IWUSR, cdc_ncm_show_tx_max, cdc_ncm_store_tx_max);
363 if (val != ctx->tx_max) in cdc_ncm_update_rxtx_max()
378 if (netif_running(dev->net) && val > ctx->tx_max) { in cdc_ncm_update_rxtx_max()
386 ctx->tx_max = val; in cdc_ncm_update_rxtx_max()
389 ctx->tx_max = val; in cdc_ncm_update_rxtx_max()
392 dev->hard_mtu = ctx->tx_max; in cdc_ncm_update_rxtx_max()
398 ctx->min_tx_pkt = clamp_t(u16, ctx->tx_max - 3 * usb_maxpacket(dev->udev, dev->out, 1), in cdc_ncm_update_rxtx_max()
399 CDC_NCM_MIN_TX_PKT, ctx->tx_max); in cdc_ncm_update_rxtx_max()
489 ctx->tx_max = le32_to_cpu(ctx->ncm_parm.dwNtbOutMaxSize); in cdc_ncm_init()
498 ctx->rx_max, ctx->tx_max, ctx->tx_remainder, ctx->tx_modulus, in cdc_ncm_init()
578 (val != ((-val) & val)) || (val >= ctx->tx_max)) { in cdc_ncm_fix_modulus()
592 (val != ((-val) & val)) || (val >= ctx->tx_max)) { in cdc_ncm_fix_modulus()
1015 cdc_ncm_align_tail(skb, ctx->tx_ndp_modulus, 0, ctx->tx_max); in cdc_ncm_ndp()
1018 if ((ctx->tx_max - skb->len - reserve) < ctx->max_ndp_size) in cdc_ncm_ndp()
1070 skb_out = alloc_skb(ctx->tx_max, GFP_ATOMIC); in cdc_ncm_fill_tx_frame()
1107 cdc_ncm_align_tail(skb_out, ctx->tx_modulus, ctx->tx_remainder, ctx->tx_max); in cdc_ncm_fill_tx_frame()
1110 if (!ndp16 || skb_out->len + skb->len + delayed_ndp_size > ctx->tx_max) { in cdc_ncm_fill_tx_frame()
1186 cdc_ncm_align_tail(skb_out, ctx->tx_ndp_modulus, 0, ctx->tx_max); in cdc_ncm_fill_tx_frame()
1205 memset(skb_put(skb_out, ctx->tx_max - skb_out->len), 0, in cdc_ncm_fill_tx_frame()
1206 ctx->tx_max - skb_out->len); in cdc_ncm_fill_tx_frame()
1207 else if (skb_out->len < ctx->tx_max && (skb_out->len % dev->maxpacket) == 0) in cdc_ncm_fill_tx_frame()