Home
last modified time | relevance | path

Searched refs:packet_length (Results 1 – 25 of 28) sorted by relevance

12

/drivers/staging/most/dim2/
Dhal.c251 u16 packet_length) in dim2_configure_cdt() argument
255 if (packet_length) in dim2_configure_cdt()
256 cdt[1] = ((packet_length - 1) << CDT1_BS_ISOC_SHIFT); in dim2_configure_cdt()
351 u16 packet_length) in dim2_configure_channel() argument
353 dim2_configure_cdt(ch_addr, dbr_address, hw_buffer_size, packet_length); in dim2_configure_channel()
443 static inline bool check_packet_length(u32 packet_length) in check_packet_length() argument
447 if (packet_length <= 0) in check_packet_length()
450 if (packet_length > max_size) in check_packet_length()
453 if (packet_length - 1u > (u32)CDT1_BS_ISOC_MASK) in check_packet_length()
483 static inline u16 norm_isoc_buffer_size(u16 buf_size, u16 packet_length) in norm_isoc_buffer_size() argument
[all …]
Dhal.h52 u16 packet_length; /*< Isochronous packet length in bytes. */ member
66 u16 dim_norm_isoc_buffer_size(u16 buf_size, u16 packet_length);
77 u16 packet_length);
/drivers/net/ethernet/smsc/
Dsmc9194.c1129 word packet_length; in smc_rcv() local
1147 packet_length = inw( ioaddr + DATA_1 ); in smc_rcv()
1149 packet_length &= 0x07ff; /* mask off top bits */ in smc_rcv()
1151 PRINTK2(("RCV: STATUS %4x LENGTH %4x\n", status, packet_length )); in smc_rcv()
1156 packet_length -= 6; in smc_rcv()
1165 packet_length++; in smc_rcv()
1171 skb = netdev_alloc_skb(dev, packet_length + 5); in smc_rcv()
1184 data = skb_put( skb, packet_length); in smc_rcv()
1192 packet_length >> 2, packet_length & 3 )); in smc_rcv()
1193 insl(ioaddr + DATA_1 , data, packet_length >> 2 ); in smc_rcv()
[all …]
Dsmc91c92_cs.c1474 int packet_length; /* Caution: not frame length, rather words in smc_rx() local
1487 packet_length = inw(ioaddr + DATA_1) & 0x07ff; in smc_rx()
1490 rx_status, packet_length); in smc_rx()
1498 skb = netdev_alloc_skb(dev, packet_length+2); in smc_rx()
1507 packet_length -= (rx_status & RS_ODDFRAME ? 5 : 6); in smc_rx()
1509 insw(ioaddr+DATA_1, skb_put(skb, packet_length), in smc_rx()
1510 (packet_length+1)>>1); in smc_rx()
1516 dev->stats.rx_bytes += packet_length; in smc_rx()
Dsmsc9420.c742 u16 packet_length = (status & RDES0_FRAME_LENGTH_MASK_) in smsc9420_rx_handoff() local
746 packet_length -= 4; in smsc9420_rx_handoff()
749 packet_length -= 2; in smsc9420_rx_handoff()
752 dev->stats.rx_bytes += packet_length; in smsc9420_rx_handoff()
763 NET_IP_ALIGN + packet_length + 4); in smsc9420_rx_handoff()
769 skb_put(skb, packet_length); in smsc9420_rx_handoff()
/drivers/media/usb/ttusb-dec/
Dttusb_dec.c127 int packet_length; member
592 if (dec->packet_length % 2) { in ttusb_dec_process_packet()
597 for (i = 0; i < dec->packet_length; i += 2) in ttusb_dec_process_packet()
605 packet_id = dec->packet[dec->packet_length - 4] << 8; in ttusb_dec_process_packet()
606 packet_id += dec->packet[dec->packet_length - 3]; in ttusb_dec_process_packet()
665 dec->packet_length = 0; in ttusb_dec_process_urb_frame()
675 dec->packet[dec->packet_length++] = *b++; in ttusb_dec_process_urb_frame()
677 if (dec->packet_length == 2) { in ttusb_dec_process_urb_frame()
704 dec->packet[dec->packet_length++] = *b++; in ttusb_dec_process_urb_frame()
707 dec->packet_length == 8) { in ttusb_dec_process_urb_frame()
[all …]
/drivers/infiniband/core/
Dud_header.c76 { STRUCT_FIELD(lrh, packet_length),
337 u16 packet_length; in ib_ud_header_init() local
342 packet_length = (IB_LRH_BYTES + in ib_ud_header_init()
349 header->lrh.packet_length = cpu_to_be16(packet_length); in ib_ud_header_init()
/drivers/platform/chrome/
Dcros_ec_i2c.c41 uint8_t packet_length; member
130 ec_response_i2c->packet_length == 0) { in cros_ec_pkt_xfer_i2c()
136 if (ec_response_i2c->packet_length < sizeof(struct ec_host_response)) { in cros_ec_pkt_xfer_i2c()
139 ec_response_i2c->packet_length); in cros_ec_pkt_xfer_i2c()
/drivers/platform/x86/
Ddell_rbu.c214 int packet_length; in packetize_data() local
228 packet_length = rbu_data.packetsize; in packetize_data()
231 packet_length = end - temp; in packetize_data()
235 if ((rc = create_packet(temp, packet_length))) in packetize_data()
239 temp += packet_length; in packetize_data()
/drivers/net/usb/
Dgl620a.c58 __le32 packet_length; member
98 size = le32_to_cpu(packet->packet_length); in genelink_rx_fixup()
/drivers/crypto/inside-secure/
Dsafexcel_ring.c210 cdesc->control_data.packet_length = full_data_len ?: 1; in safexcel_add_cdesc()
249 rtoken->packet_length = 0; in safexcel_add_rdesc()
Dsafexcel.h496 u32 packet_length:17; member
542 u32 packet_length:17; member
568 token->packet_length = BIT(2); in eip197_noop_token()
585 u32 packet_length:17; member
Dsafexcel_cipher.c126 token->packet_length = length; in safexcel_skcipher_token()
213 atoken->packet_length = AES_BLOCK_SIZE + in safexcel_aead_token()
232 atoken->packet_length = assocadj; in safexcel_aead_token()
240 atoken->packet_length = assocadj && aadalign ? in safexcel_aead_token()
257 atoken->packet_length = assocadj; in safexcel_aead_token()
267 atoken->packet_length = EIP197_AEAD_IPSEC_IV_SIZE; in safexcel_aead_token()
276 atoken->packet_length = 16; /* According to Op Manual */ in safexcel_aead_token()
286 atoken->packet_length = 0; in safexcel_aead_token()
292 atoken->packet_length = AES_BLOCK_SIZE; in safexcel_aead_token()
306 atoken->packet_length = cryptlen; in safexcel_aead_token()
[all …]
/drivers/net/ethernet/qlogic/qed/
Dqed_ll2.c155 data->length.packet_length, in qed_ll2b_complete_rx_packet()
162 buffer->data, data->length.packet_length, false); in qed_ll2b_complete_rx_packet()
166 if (data->length.packet_length < ETH_HLEN) in qed_ll2b_complete_rx_packet()
189 skb_put(skb, data->length.packet_length); in qed_ll2b_complete_rx_packet()
412 data->length.packet_length = in qed_ll2_rxq_parse_reg()
413 le16_to_cpu(p_cqe->rx_cqe_fp.packet_length); in qed_ll2_rxq_parse_reg()
624 u16 packet_length = 0, parse_flags = 0, vlan = 0; in qed_ll2_lb_rxq_handler() local
661 packet_length = le16_to_cpu(p_cqe_fp->packet_length); in qed_ll2_lb_rxq_handler()
700 p_buffer->packet_length = packet_length; in qed_ll2_lb_rxq_handler()
800 tx_pkt.first_frag_len = p_buffer->packet_length; in qed_ooo_submit_tx_buffers()
Dqed_ll2.h44 u16 packet_length; member
Dqed_ooo.h25 u16 packet_length; member
Dqed_iwarp.c2333 data->length.packet_length, first_mpa_offset, in qed_iwarp_ll2_comp_mpa_pkt()
2338 mpa_buf->tcp_payload_len = data->length.packet_length - in qed_iwarp_ll2_comp_mpa_pkt()
2401 data->parse_flags, data->length.packet_length); in qed_iwarp_ll2_comp_syn_pkt()
2405 tx_pkt.l4_hdr_offset_w = (data->length.packet_length) >> 2; in qed_iwarp_ll2_comp_syn_pkt()
2409 tx_pkt.first_frag_len = data->length.packet_length; in qed_iwarp_ll2_comp_syn_pkt()
/drivers/net/wireless/zydas/zd1211rw/
Dzd_mac.c855 unsigned int packet_length; in fill_ctrlset() local
880 packet_length = frag_len + sizeof(struct zd_ctrlset) + 10; in fill_ctrlset()
881 ZD_ASSERT(packet_length <= 0xffff); in fill_ctrlset()
885 cs->packet_length = cpu_to_le16(zd_chip_is_zd1211b(&mac->chip) ? in fill_ctrlset()
886 packet_length - frag_len : packet_length); in fill_ctrlset()
Dzd_mac.h21 __le16 packet_length; member
/drivers/tty/ipwireless/
Dtty.c180 unsigned int packet_length) in ipw_write_packet_sent_callback() argument
188 tty->tx_bytes_queued -= packet_length; in ipw_write_packet_sent_callback()
Dnetwork.c67 static void notify_packet_sent(void *callback_data, unsigned int packet_length) in notify_packet_sent() argument
/drivers/net/wireless/ti/wlcore/
Dtx.h246 unsigned int packet_length);
Dtx.c180 unsigned int packet_length) in wlcore_calc_packet_alignment() argument
184 return ALIGN(packet_length, WL1271_TX_ALIGN_TO); in wlcore_calc_packet_alignment()
186 return ALIGN(packet_length, WL12XX_BUS_BLOCK_SIZE); in wlcore_calc_packet_alignment()
/drivers/infiniband/hw/mlx5/
Dodp.c1493 be16_to_cpu(pf_eqe->rdma.packet_length); in mlx5_ib_eq_pf_process()
1520 be16_to_cpu(pf_eqe->wqe.packet_length); in mlx5_ib_eq_pf_process()
/drivers/net/ethernet/microchip/
Dlan743x_main.c2149 int packet_length; in lan743x_rx_process_packet() local
2176 packet_length = RX_DESC_DATA0_FRAME_LENGTH_GET_ in lan743x_rx_process_packet()
2178 skb_put(skb, packet_length - 4); in lan743x_rx_process_packet()

12