Home
last modified time | relevance | path

Searched refs:packet_size (Results 1 – 25 of 34) sorted by relevance

12

/linux/sound/firewire/
H A Dpackets-buffer.c22 unsigned int count, unsigned int packet_size, in iso_packets_buffer_init() argument
36 packet_size = L1_CACHE_ALIGN(packet_size); in iso_packets_buffer_init()
37 packets_per_page = PAGE_SIZE / packet_size; in iso_packets_buffer_init()
52 offset_in_page = (i % packets_per_page) * packet_size; in iso_packets_buffer_init()
H A Dpackets-buffer.h22 unsigned int count, unsigned int packet_size,
/linux/sound/soc/mediatek/common/
H A Dmtk-btcvsd.c88 unsigned int packet_size; member
237 bt->tx->packet_size = BTCVSD_TX_PACKET_SIZE; in mtk_btcvsd_snd_tx_init()
250 bt->rx->packet_size = BTCVSD_RX_PACKET_SIZE; in mtk_btcvsd_snd_rx_init()
391 bt->rx->packet_size; in mtk_btcvsd_read_from_bt()
435 memcpy(bt->tx->temp_packet_buf + (bt->tx->packet_size * i), in mtk_btcvsd_write_to_bt()
438 bt->tx->packet_size), in mtk_btcvsd_write_to_bt()
439 bt->tx->packet_size); in mtk_btcvsd_write_to_bt()
705 unsigned int packet_size = bt->rx->packet_size; in mtk_btcvsd_snd_read() local
710 avail = (bt->rx->packet_w - bt->rx->packet_r) * packet_size; in mtk_btcvsd_snd_read()
782 unsigned int packet_size = bt->tx->packet_size; mtk_btcvsd_snd_write() local
[all...]
/linux/drivers/iio/imu/inv_icm42600/
H A Dinv_icm42600_buffer.c151 size_t packet_size; in inv_icm42600_get_packet_size() local
155 packet_size = INV_ICM42600_FIFO_2SENSORS_PACKET_SIZE; in inv_icm42600_get_packet_size()
157 packet_size = INV_ICM42600_FIFO_1SENSOR_PACKET_SIZE; in inv_icm42600_get_packet_size()
159 return packet_size; in inv_icm42600_get_packet_size()
163 size_t packet_size) in inv_icm42600_wm_truncate() argument
168 wm_size = watermark * packet_size; in inv_icm42600_wm_truncate()
172 wm = wm_size / packet_size; in inv_icm42600_wm_truncate()
201 size_t packet_size, wm_size; in inv_icm42600_buffer_update_watermark() local
209 packet_size = inv_icm42600_get_packet_size(st->fifo.en); in inv_icm42600_buffer_update_watermark()
212 wm_gyro = inv_icm42600_wm_truncate(st->fifo.watermark.gyro, packet_size); in inv_icm42600_buffer_update_watermark()
[all …]
/linux/drivers/iio/imu/inv_icm45600/
H A Dinv_icm45600_buffer.c140 static unsigned int inv_icm45600_wm_truncate(unsigned int watermark, size_t packet_size, in inv_icm45600_wm_truncate() argument
150 watermark_max = INV_ICM45600_FIFO_SIZE_MAX / packet_size; in inv_icm45600_wm_truncate()
179 const size_t packet_size = sizeof(struct inv_icm45600_fifo_2sensors_packet); in inv_icm45600_buffer_update_watermark() local
185 wm_gyro = inv_icm45600_wm_truncate(st->fifo.watermark.gyro, packet_size, in inv_icm45600_buffer_update_watermark()
187 wm_accel = inv_icm45600_wm_truncate(st->fifo.watermark.accel, packet_size, in inv_icm45600_buffer_update_watermark()
396 const ssize_t packet_size = sizeof(struct inv_icm45600_fifo_2sensors_packet); in inv_icm45600_buffer_fifo_read() local
426 st->fifo.count = fifo_nb * packet_size; in inv_icm45600_buffer_fifo_read()
432 for (i = 0; i < st->fifo.count && ret == 0; i += packet_size) in inv_icm45600_buffer_fifo_read()
434 &st->fifo.data[i], packet_size); in inv_icm45600_buffer_fifo_read()
/linux/drivers/media/usb/gspca/stv06xx/
H A Dstv06xx.c276 int err, packet_size; in stv06xx_start() local
288 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in stv06xx_start()
289 err = stv06xx_write_bridge(sd, STV_ISO_SIZE_L, packet_size); in stv06xx_start()
335 int ret, packet_size, min_packet_size; in stv06xx_isoc_nego() local
344 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in stv06xx_isoc_nego()
346 if (packet_size <= min_packet_size) in stv06xx_isoc_nego()
349 packet_size -= 100; in stv06xx_isoc_nego()
350 if (packet_size < min_packet_size) in stv06xx_isoc_nego()
351 packet_size = min_packet_size; in stv06xx_isoc_nego()
352 alt->endpoint[0].desc.wMaxPacketSize = cpu_to_le16(packet_size); in stv06xx_isoc_nego()
H A Dstv06xx_pb0100.c177 int err, packet_size, max_packet_size; in pb0100_start() local
192 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in pb0100_start()
196 if (packet_size < max_packet_size) in pb0100_start()
/linux/drivers/media/usb/gspca/
H A Dkonica.c172 int i, n, packet_size; in sd_start() local
186 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in sd_start()
203 packet_size = in sd_start()
210 packet_size * SD_NPKT, in sd_start()
220 urb->transfer_buffer_length = packet_size * SD_NPKT; in sd_start()
229 urb->iso_frame_desc[i].length = packet_size; in sd_start()
230 urb->iso_frame_desc[i].offset = packet_size * i; in sd_start()
H A Dxirlink_cit.c1456 int packet_size; in cit_get_clock_div() local
1458 packet_size = cit_get_packet_size(gspca_dev); in cit_get_clock_div()
1459 if (packet_size < 0) in cit_get_clock_div()
1460 return packet_size; in cit_get_clock_div()
1463 1000 * packet_size > in cit_get_clock_div()
1470 packet_size, in cit_get_clock_div()
2594 int packet_size; in sd_start() local
2596 packet_size = cit_get_packet_size(gspca_dev); in sd_start()
2597 if (packet_size < 0) in sd_start()
2598 return packet_size; in sd_start()
[all …]
H A Dov519.c3467 int hsegs, vsegs, packet_size, fps, needed; in ov511_mode_init_regs() local
3485 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in ov511_mode_init_regs()
3486 reg_w(sd, R51x_FIFO_PSIZE, packet_size >> 5); in ov511_mode_init_regs()
3576 if (needed > 1000 * packet_size) { in ov511_mode_init_regs()
3599 int hsegs, vsegs, packet_size; in ov518_mode_init_regs() local
3616 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in ov518_mode_init_regs()
3617 ov518_reg_w32(sd, R51x_FIFO_PSIZE, packet_size & ~7, 2); in ov518_mode_init_regs()
/linux/drivers/media/platform/qcom/iris/
H A Diris_hfi_gen1_command.c60 u32 packet_size; in iris_hfi_gen1_sys_interframe_powercollapse() local
63 packet_size = struct_size(pkt, data, 1) + sizeof(*hfi); in iris_hfi_gen1_sys_interframe_powercollapse()
64 pkt = kzalloc(packet_size, GFP_KERNEL); in iris_hfi_gen1_sys_interframe_powercollapse()
70 pkt->hdr.size = packet_size; in iris_hfi_gen1_sys_interframe_powercollapse()
343 u32 packet_size; in iris_hfi_gen1_queue_internal_buffer() local
346 packet_size = struct_size(int_pkt, buffer_info, 1); in iris_hfi_gen1_queue_internal_buffer()
347 int_pkt = kzalloc(packet_size, GFP_KERNEL); in iris_hfi_gen1_queue_internal_buffer()
357 int_pkt->shdr.hdr.size = packet_size; in iris_hfi_gen1_queue_internal_buffer()
397 u32 packet_size, buffer_type, i; in iris_hfi_gen1_session_unset_buffers() local
407 packet_size = sizeof(*pkt) + sizeof(struct hfi_buffer_info); in iris_hfi_gen1_session_unset_buffers()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_selftest.c54 unsigned int packet_size = MLX4_LOOPBACK_TEST_PAYLOAD; in mlx4_en_test_loopback_xmit() local
67 packet = skb_put(skb, packet_size); in mlx4_en_test_loopback_xmit()
72 for (i = 0; i < packet_size; ++i) /* fill our packet */ in mlx4_en_test_loopback_xmit()
/linux/sound/usb/
H A Dcard.h60 int packet_size[MAX_PACKS_HS]; /* size of packets for next submission */ member
93 int packet_size[MAX_PACKS_HS]; member
H A Dendpoint.c222 packet = ctx->packet_size[idx]; in snd_usb_endpoint_next_packet_size()
494 memcpy(ctx->packet_size, packet->packet_size, in snd_usb_queue_pending_output_urbs()
495 packet->packets * sizeof(packet->packet_size[0])); in snd_usb_queue_pending_output_urbs()
1813 out_packet->packet_size[i] = in snd_usb_handle_sync_urb()
1816 out_packet->packet_size[i] = 0; in snd_usb_handle_sync_urb()
/linux/drivers/usb/isp1760/
H A Disp1760-udc.c32 unsigned int packet_size; member
307 req->packet_size = min(req->req.length - req->req.actual, in isp1760_udc_transmit()
311 __func__, req->packet_size, req->req.actual, in isp1760_udc_transmit()
316 if (req->packet_size) in isp1760_udc_transmit()
317 isp1760_udc_write(udc, DC_BUFLEN, req->packet_size); in isp1760_udc_transmit()
325 for (i = req->packet_size; i > 2; i -= 4, ++buf) in isp1760_udc_transmit()
332 if (!req->packet_size) in isp1760_udc_transmit()
412 req->req.actual += req->packet_size; in isp1760_ep_tx_complete()
416 req->packet_size && req->req.zero; in isp1760_ep_tx_complete()
421 req->packet_size, req->req.zero, need_zlp); in isp1760_ep_tx_complete()
/linux/Documentation/admin-guide/
H A Ddell_rbu.rst52 /sys/devices/platform/dell_rbu/packet_size
71 echo XXXX > /sys/devices/platform/dell_rbu/packet_size
77 added together should match the specified packet_size. This makes one
83 Once this file gets to the driver, the driver extracts packet_size data from
/linux/drivers/usb/atm/
H A Dusbatm.c527 const unsigned int packet_size = instance->rx_channel.packet_size; in usbatm_rx_process() local
537 if (merge_length && (actual_length < packet_size)) { in usbatm_rx_process()
1110 instance->rx_channel.packet_size = maxpacket; in usbatm_usb_probe()
1127 …d int iso_packets = usb_pipeisoc(channel->endpoint) ? channel->buf_size / channel->packet_size : 0; in usbatm_usb_probe()
1152 urb->iso_frame_desc[j].offset = channel->packet_size * j; in usbatm_usb_probe()
1153 urb->iso_frame_desc[j].length = channel->packet_size; in usbatm_usb_probe()
H A Dusbatm.h109 unsigned int packet_size; /* endpoint maxpacket */ member
/linux/tools/testing/selftests/net/tcp_ao/
H A Dicmps-accept.c29 const size_t packet_size = 100; variable
53 ssize_t test_quota = packet_size * packets_nr * 10; in serve_interfered()
411 if (test_client_verify(sk, packet_size, packets_nr)) { in send_interfered()
H A Dicmps-discard.c29 const size_t packet_size = 100; variable
53 ssize_t test_quota = packet_size * packets_nr * 10; in serve_interfered()
411 if (test_client_verify(sk, packet_size, packets_nr)) { in send_interfered()
/linux/net/sched/
H A Dsch_pie.c34 struct pie_vars *vars, u32 backlog, u32 packet_size) in pie_drop_early() argument
60 if (params->bytemode && packet_size <= mtu) in pie_drop_early()
61 local_prob = (u64)packet_size * div_u64(local_prob, mtu); in pie_drop_early()
/linux/drivers/media/usb/dvb-usb-v2/
H A Dlmedm04.c611 u8 packet_size, dlen, i; in lme2510_download_firmware() local
614 packet_size = 0x31; in lme2510_download_firmware()
629 for (j = start; j < end; j += (packet_size+1)) { in lme2510_download_firmware()
631 if ((end - j) > packet_size) { in lme2510_download_firmware()
633 dlen = packet_size; in lme2510_download_firmware()
/linux/fs/ecryptfs/
H A Decryptfs_kernel.h681 size_t *packet_size,
686 size_t *packet_size,
/linux/drivers/soc/ti/
H A Dknav_qmss.h176 u32 packet_size; member
/linux/drivers/net/ethernet/atheros/atl1e/
H A Datl1e_main.c1406 u32 packet_size, write_offset; in atl1e_clean_rx_irq() local
1447 packet_size = ((prrs->word1 >> RRS_PKT_SIZE_SHIFT) & in atl1e_clean_rx_irq()
1450 packet_size -= 4; /* CRC */ in atl1e_clean_rx_irq()
1452 skb = netdev_alloc_skb_ip_align(netdev, packet_size); in atl1e_clean_rx_irq()
1456 memcpy(skb->data, (u8 *)(prrs + 1), packet_size); in atl1e_clean_rx_irq()
1457 skb_put(skb, packet_size); in atl1e_clean_rx_irq()

12