Searched refs:tx_max (Results 1 - 17 of 17) sorted by relevance

/linux-4.4.14/drivers/net/usb/
H A Dcdc_ncm.c184 dev_dbg(&dev->intf->dev, "tx_max must be in the [%u, %u] range\n", min, max); cdc_ncm_check_tx_max()
210 return sprintf(buf, "%u\n", ctx->tx_max); cdc_ncm_show_tx_max()
244 cdc_ncm_update_rxtx_max(dev, val, ctx->tx_max); 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);
330 /* handle rx_max and tx_max changes */ cdc_ncm_update_rxtx_max()
363 if (val != ctx->tx_max) cdc_ncm_update_rxtx_max()
364 dev_info(&dev->intf->dev, "setting tx_max = %u\n", val); cdc_ncm_update_rxtx_max()
367 * in cdc_ncm_fill_tx_frame, making tx_max always represent cdc_ncm_update_rxtx_max()
378 if (netif_running(dev->net) && val > ctx->tx_max) { cdc_ncm_update_rxtx_max()
386 ctx->tx_max = val; cdc_ncm_update_rxtx_max()
389 ctx->tx_max = val; cdc_ncm_update_rxtx_max()
392 dev->hard_mtu = ctx->tx_max; cdc_ncm_update_rxtx_max()
398 ctx->min_tx_pkt = clamp_t(u16, ctx->tx_max - 3 * usb_maxpacket(dev->udev, dev->out, 1), cdc_ncm_update_rxtx_max()
399 CDC_NCM_MIN_TX_PKT, ctx->tx_max); cdc_ncm_update_rxtx_max()
489 ctx->tx_max = le32_to_cpu(ctx->ncm_parm.dwNtbOutMaxSize); cdc_ncm_init()
498 ctx->rx_max, ctx->tx_max, ctx->tx_remainder, ctx->tx_modulus, cdc_ncm_init()
578 (val != ((-val) & val)) || (val >= ctx->tx_max)) { cdc_ncm_fix_modulus()
592 (val != ((-val) & val)) || (val >= ctx->tx_max)) { cdc_ncm_fix_modulus()
621 /* clamp rx_max and tx_max and inform device */ cdc_ncm_setup()
1015 cdc_ncm_align_tail(skb, ctx->tx_ndp_modulus, 0, ctx->tx_max); cdc_ncm_ndp()
1018 if ((ctx->tx_max - skb->len - reserve) < ctx->max_ndp_size) cdc_ncm_ndp()
1070 skb_out = alloc_skb(ctx->tx_max, GFP_ATOMIC); cdc_ncm_fill_tx_frame()
1107 cdc_ncm_align_tail(skb_out, ctx->tx_modulus, ctx->tx_remainder, ctx->tx_max); cdc_ncm_fill_tx_frame()
1110 if (!ndp16 || skb_out->len + skb->len + delayed_ndp_size > ctx->tx_max) { cdc_ncm_fill_tx_frame()
1186 cdc_ncm_align_tail(skb_out, ctx->tx_ndp_modulus, 0, ctx->tx_max); cdc_ncm_fill_tx_frame()
1205 memset(skb_put(skb_out, ctx->tx_max - skb_out->len), 0, cdc_ncm_fill_tx_frame()
1206 ctx->tx_max - skb_out->len); cdc_ncm_fill_tx_frame()
1207 else if (skb_out->len < ctx->tx_max && (skb_out->len % dev->maxpacket) == 0) cdc_ncm_fill_tx_frame()
/linux-4.4.14/drivers/net/can/
H A Dxilinx_can.c122 * @tx_max: Maximum number packets the driver can send
136 unsigned int tx_max; member in struct:xcan_priv
440 can_put_echo_skb(skb, ndev, priv->tx_head % priv->tx_max); xcan_start_xmit()
457 if ((priv->tx_head - priv->tx_tail) == priv->tx_max) xcan_start_xmit()
750 priv->tx_max); xcan_tx_interrupt()
1048 int ret, rx_max, tx_max; xcan_probe() local
1058 ret = of_property_read_u32(pdev->dev.of_node, "tx-fifo-depth", &tx_max); xcan_probe()
1067 ndev = alloc_candev(sizeof(struct xcan_priv), tx_max); xcan_probe()
1079 priv->tx_max = tx_max; xcan_probe()
1149 priv->tx_max); xcan_probe()
/linux-4.4.14/include/linux/usb/
H A Dcdc_ncm.h118 u32 tx_max; member in struct:cdc_ncm_ctx
/linux-4.4.14/net/mac80211/
H A Dtrace.h1198 TP_PROTO(struct ieee80211_local *local, u32 *tx, u32 *tx_max,
1201 TP_ARGS(local, tx, tx_max, rx, rx_max),
1206 __field(u32, tx_max)
1214 __entry->tx_max = *tx_max;
1220 LOCAL_PR_FMT " tx:%d tx_max %d rx %d rx_max %d",
1222 __entry->tx, __entry->tx_max, __entry->rx, __entry->rx_max
H A Ddriver-ops.h713 u32 *tx, u32 *tx_max, u32 *rx, u32 *rx_max) drv_get_ringparam()
717 trace_drv_get_ringparam(local, tx, tx_max, rx, rx_max); drv_get_ringparam()
719 local->ops->get_ringparam(&local->hw, tx, tx_max, rx, rx_max); drv_get_ringparam()
712 drv_get_ringparam(struct ieee80211_local *local, u32 *tx, u32 *tx_max, u32 *rx, u32 *rx_max) drv_get_ringparam() argument
/linux-4.4.14/drivers/spi/
H A Dspi-dw.c149 static inline u32 tx_max(struct dw_spi *dws) tx_max() function
180 u32 max = tx_max(dws); dw_writer()
H A Dspi-rockchip.c247 static inline u32 tx_max(struct rockchip_spi *rs) tx_max() function
350 u32 max = tx_max(rs); rockchip_spi_pio_writer()
/linux-4.4.14/net/wireless/
H A Dtrace.h1489 TP_PROTO(struct wiphy *wiphy, u32 tx, u32 tx_max,
1491 TP_ARGS(wiphy, tx, tx_max, rx, rx_max),
1495 __field(u32, tx_max)
1502 __entry->tx_max = tx_max;
1506 TP_printk(WIPHY_PR_FMT ", tx: %u, tx_max: %u, rx: %u, rx_max: %u ",
1507 WIPHY_PR_ARG, __entry->tx, __entry->tx_max, __entry->rx,
/linux-4.4.14/drivers/net/wireless/rt2x00/
H A Drt2x00mac.c819 u32 *tx, u32 *tx_max, u32 *rx, u32 *rx_max) rt2x00mac_get_ringparam()
826 *tx_max += queue->limit; tx_queue_for_each()
818 rt2x00mac_get_ringparam(struct ieee80211_hw *hw, u32 *tx, u32 *tx_max, u32 *rx, u32 *rx_max) rt2x00mac_get_ringparam() argument
H A Drt2x00.h1465 u32 *tx, u32 *tx_max, u32 *rx, u32 *rx_max);
/linux-4.4.14/drivers/net/wireless/ath/ath5k/
H A Dmac80211-ops.c743 u32 *tx, u32 *tx_max, u32 *rx, u32 *rx_max) ath5k_get_ringparam()
749 *tx_max = ATH5K_TXQ_LEN_MAX; ath5k_get_ringparam()
742 ath5k_get_ringparam(struct ieee80211_hw *hw, u32 *tx, u32 *tx_max, u32 *rx, u32 *rx_max) ath5k_get_ringparam() argument
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
H A Dsdio.c447 u8 tx_max; /* Maximum transmit sequence allowed */ member in struct:brcmf_sdio
743 return (u8)(bus->tx_max - bus->tx_seq) != 0 && data_ok()
744 ((u8)(bus->tx_max - bus->tx_seq) & 0x80) == 0; data_ok()
1504 bus->tx_max = tx_seq_max; brcmf_sdio_hdparse()
2380 pkt_num = min_t(u8, bus->tx_max - bus->tx_seq, brcmf_sdio_sendfromq()
/linux-4.4.14/drivers/staging/dgap/
H A Ddgap.h1084 unsigned short tx_max; /* W Tx buffer size - 1 */ member in struct:bs_t
H A Ddgap.c6766 ch->ch_tsize = readw(&ch->ch_bs->tx_max) + 1; dgap_tty_init()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
H A Dt4fw_api.h485 __be32 tx_max; member in struct:fw_ofld_connection_wr::fw_ofld_connection_tcb
/linux-4.4.14/drivers/infiniband/hw/cxgb4/
H A Dcm.c1843 req->tcb.tx_max = (__force __be32) jiffies; send_fw_act_open_req()
/linux-4.4.14/include/net/
H A Dmac80211.h3411 u32 *tx, u32 *tx_max, u32 *rx, u32 *rx_max);

Completed in 571 milliseconds