Lines Matching full:headroom

1055 			 * driver's needed headroom on system memory. This is  in dpaa_fq_init()
2171 /* We move the headroom when we align it so we have to reset the in dpaa_a050385_wa_skb()
2191 int headroom; in dpaa_a050385_wa_xdpf() local
2193 /* Check the data alignment and make sure the headroom is large in dpaa_a050385_wa_xdpf()
2194 * enough to store the xdpf backpointer. Use an aligned headroom in dpaa_a050385_wa_xdpf()
2198 * byte frame headroom. If the XDP program uses all of it, copy the in dpaa_a050385_wa_xdpf()
2202 xdpf->headroom >= priv->tx_headroom) { in dpaa_a050385_wa_xdpf()
2203 xdpf->headroom = priv->tx_headroom; in dpaa_a050385_wa_xdpf()
2208 * store the xdpf backpointer. If the available headroom isn't large in dpaa_a050385_wa_xdpf()
2214 /* The XDP frame's headroom needs to be large enough to accommodate in dpaa_a050385_wa_xdpf()
2217 if (xdpf->headroom >= data_shift + priv->tx_headroom) { in dpaa_a050385_wa_xdpf()
2220 xdpf->headroom = priv->tx_headroom; in dpaa_a050385_wa_xdpf()
2225 * in the headroom for storing it along with the driver's private in dpaa_a050385_wa_xdpf()
2226 * info. The headroom needs to be aligned to DPAA_FD_DATA_ALIGNMENT to in dpaa_a050385_wa_xdpf()
2229 headroom = ALIGN(sizeof(*new_xdpf) + priv->tx_headroom, in dpaa_a050385_wa_xdpf()
2232 /* Assure the extended headroom and data don't overflow the buffer, in dpaa_a050385_wa_xdpf()
2235 if (headroom + xdpf->len > DPAA_BP_RAW_SIZE - in dpaa_a050385_wa_xdpf()
2245 memcpy(new_buff + headroom, xdpf->data, xdpf->len); in dpaa_a050385_wa_xdpf()
2251 new_xdpf->data = new_buff + headroom; in dpaa_a050385_wa_xdpf()
2253 new_xdpf->headroom = priv->tx_headroom; in dpaa_a050385_wa_xdpf()
2508 if (xdpf->headroom < DPAA_TX_PRIV_DATA_SIZE) { in dpaa_xdp_xmit_frame()
2513 buff_start = xdpf->data - xdpf->headroom; in dpaa_xdp_xmit_frame()
2525 qm_fd_set_contig(&fd, xdpf->headroom, xdpf->len); in dpaa_xdp_xmit_frame()
2528 xdpf->headroom + xdpf->len, in dpaa_xdp_xmit_frame()
2575 /* We reserve a fixed headroom of 256 bytes under the erratum and we in dpaa_run_xdp()
2604 /* We can access the full headroom when sending the frame in dpaa_run_xdp()
2620 /* Allow redirect to use the full headroom */ in dpaa_run_xdp()
2727 /* Extract the timestamp stored in the headroom before running XDP */ in rx_default_dqrr()
2735 /* Extract the hash stored in the headroom before running XDP */ in rx_default_dqrr()
3291 u16 headroom; in dpaa_get_headroom() local
3293 /* The frame headroom must accommodate: in dpaa_get_headroom()
3297 * be copied to/from the frame headroom, as TS is located between PR and in dpaa_get_headroom()
3301 * Also make sure the headroom is a multiple of data_align bytes in dpaa_get_headroom()
3303 headroom = (u16)(bl[port].priv_data_size + DPAA_HWA_SIZE); in dpaa_get_headroom()
3308 headroom = XDP_PACKET_HEADROOM; in dpaa_get_headroom()
3311 return ALIGN(headroom, DPAA_FD_RX_DATA_ALIGNMENT); in dpaa_get_headroom()
3313 return ALIGN(headroom, DPAA_FD_DATA_ALIGNMENT); in dpaa_get_headroom()