Lines Matching refs:tx_max
195 dev_dbg(&dev->intf->dev, "tx_max must be in the [%u, %u] range\n", min, max);
221 return sprintf(buf, "%u\n", ctx->tx_max);
255 cdc_ncm_update_rxtx_max(dev, val, ctx->tx_max);
295 static DEVICE_ATTR(tx_max, 0644, cdc_ncm_show_tx_max, cdc_ncm_store_tx_max);
391 /* handle rx_max and tx_max changes */
424 if (val != ctx->tx_max)
425 dev_info(&dev->intf->dev, "setting tx_max = %u\n", val);
428 * in cdc_ncm_fill_tx_frame, making tx_max always represent
439 if (netif_running(dev->net) && val > ctx->tx_max) {
447 ctx->tx_max = val;
450 ctx->tx_max = val;
453 dev->hard_mtu = ctx->tx_max;
459 ctx->min_tx_pkt = clamp_t(u16, ctx->tx_max - 3 * usb_maxpacket(dev->udev, dev->out, 1),
460 CDC_NCM_MIN_TX_PKT, ctx->tx_max);
566 ctx->tx_max = le32_to_cpu(ctx->ncm_parm.dwNtbOutMaxSize);
575 ctx->rx_max, ctx->tx_max, ctx->tx_remainder, ctx->tx_modulus,
658 (val != ((-val) & val)) || (val >= ctx->tx_max)) {
672 (val != ((-val) & val)) || (val >= ctx->tx_max)) {
701 /* clamp rx_max and tx_max and inform device */
1228 ctx->tx_curr_size = ctx->tx_max;