Lines Matching refs:tx_max
218 return sprintf(buf, "%u\n", ctx->tx_max); in cdc_ncm_show_tx_max()
252 cdc_ncm_update_rxtx_max(dev, val, ctx->tx_max); in cdc_ncm_store_rx_max()
292 static DEVICE_ATTR(tx_max, 0644, cdc_ncm_show_tx_max, cdc_ncm_store_tx_max);
421 if (val != ctx->tx_max) in cdc_ncm_update_rxtx_max()
436 if (netif_running(dev->net) && val > ctx->tx_max) { in cdc_ncm_update_rxtx_max()
444 ctx->tx_max = val; in cdc_ncm_update_rxtx_max()
447 ctx->tx_max = val; in cdc_ncm_update_rxtx_max()
450 dev->hard_mtu = ctx->tx_max; in cdc_ncm_update_rxtx_max()
456 ctx->min_tx_pkt = clamp_t(u16, ctx->tx_max - 3 * usb_maxpacket(dev->udev, dev->out, 1), in cdc_ncm_update_rxtx_max()
457 CDC_NCM_MIN_TX_PKT, ctx->tx_max); in cdc_ncm_update_rxtx_max()
563 ctx->tx_max = le32_to_cpu(ctx->ncm_parm.dwNtbOutMaxSize); in cdc_ncm_init()
572 ctx->rx_max, ctx->tx_max, ctx->tx_remainder, ctx->tx_modulus, in cdc_ncm_init()
655 (val != ((-val) & val)) || (val >= ctx->tx_max)) { in cdc_ncm_fix_modulus()
669 (val != ((-val) & val)) || (val >= ctx->tx_max)) { in cdc_ncm_fix_modulus()
1225 ctx->tx_curr_size = ctx->tx_max; in cdc_ncm_fill_tx_frame()