Lines Matching full:headroom

1071 			 * driver's needed headroom on system memory. This is  in dpaa_fq_init()
2182 /* We move the headroom when we align it so we have to reset the in dpaa_a050385_wa_skb()
2202 int headroom; in dpaa_a050385_wa_xdpf() local
2204 /* Check the data alignment and make sure the headroom is large in dpaa_a050385_wa_xdpf()
2205 * enough to store the xdpf backpointer. Use an aligned headroom in dpaa_a050385_wa_xdpf()
2209 * byte frame headroom. If the XDP program uses all of it, copy the in dpaa_a050385_wa_xdpf()
2213 xdpf->headroom >= priv->tx_headroom) { in dpaa_a050385_wa_xdpf()
2214 xdpf->headroom = priv->tx_headroom; in dpaa_a050385_wa_xdpf()
2219 * store the xdpf backpointer. If the available headroom isn't large in dpaa_a050385_wa_xdpf()
2225 /* The XDP frame's headroom needs to be large enough to accommodate in dpaa_a050385_wa_xdpf()
2228 if (xdpf->headroom >= data_shift + priv->tx_headroom) { in dpaa_a050385_wa_xdpf()
2231 xdpf->headroom = priv->tx_headroom; in dpaa_a050385_wa_xdpf()
2236 * in the headroom for storing it along with the driver's private in dpaa_a050385_wa_xdpf()
2237 * info. The headroom needs to be aligned to DPAA_FD_DATA_ALIGNMENT to in dpaa_a050385_wa_xdpf()
2240 headroom = ALIGN(sizeof(*new_xdpf) + priv->tx_headroom, in dpaa_a050385_wa_xdpf()
2243 /* Assure the extended headroom and data don't overflow the buffer, in dpaa_a050385_wa_xdpf()
2246 if (headroom + xdpf->len > DPAA_BP_RAW_SIZE - in dpaa_a050385_wa_xdpf()
2256 memcpy(new_buff + headroom, xdpf->data, xdpf->len); in dpaa_a050385_wa_xdpf()
2262 new_xdpf->data = new_buff + headroom; in dpaa_a050385_wa_xdpf()
2264 new_xdpf->headroom = priv->tx_headroom; in dpaa_a050385_wa_xdpf()
2519 if (xdpf->headroom < DPAA_TX_PRIV_DATA_SIZE) { in dpaa_xdp_xmit_frame()
2524 buff_start = xdpf->data - xdpf->headroom; in dpaa_xdp_xmit_frame()
2536 qm_fd_set_contig(&fd, xdpf->headroom, xdpf->len); in dpaa_xdp_xmit_frame()
2539 xdpf->headroom + xdpf->len, in dpaa_xdp_xmit_frame()
2586 /* We reserve a fixed headroom of 256 bytes under the erratum and we in dpaa_run_xdp()
2615 /* We can access the full headroom when sending the frame in dpaa_run_xdp()
2631 /* Allow redirect to use the full headroom */ in dpaa_run_xdp()
2738 /* Extract the timestamp stored in the headroom before running XDP */ in rx_default_dqrr()
2746 /* Extract the hash stored in the headroom before running XDP */ in rx_default_dqrr()
3254 u16 headroom; in dpaa_get_headroom() local
3256 /* The frame headroom must accommodate: in dpaa_get_headroom()
3260 * be copied to/from the frame headroom, as TS is located between PR and in dpaa_get_headroom()
3264 * Also make sure the headroom is a multiple of data_align bytes in dpaa_get_headroom()
3266 headroom = (u16)(bl[port].priv_data_size + DPAA_HWA_SIZE); in dpaa_get_headroom()
3271 headroom = XDP_PACKET_HEADROOM; in dpaa_get_headroom()
3274 return ALIGN(headroom, DPAA_FD_RX_DATA_ALIGNMENT); in dpaa_get_headroom()
3276 return ALIGN(headroom, DPAA_FD_DATA_ALIGNMENT); in dpaa_get_headroom()