Home
last modified time | relevance | path

Searched refs:PACKET_SIZE (Results 1 – 25 of 241) sorted by relevance

12345678910

/dports/devel/ccrtp/ccrtp-2.1.2/demo/
H A Daudiotx.cpp137 cout << "Transmitting " << PACKET_SIZE in run()
141 unsigned char buffer[PACKET_SIZE]; in run()
142 int count=PACKET_SIZE; in run()
150 count = ::read(audioinput,buffer,PACKET_SIZE); in run()
154 socket->putData(PACKET_SIZE*i,buffer, in run()
155 PACKET_SIZE); in run()
/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/ThirdParty/libtgvoip/
H A DOpusDecoder.cpp21 #define PACKET_SIZE (960*2) macro
44 bufferPool=new BufferPool(PACKET_SIZE, 32); in Initialize()
104 if(len>PACKET_SIZE) in HandleCallback()
105 packetsNeeded=len/PACKET_SIZE; in HandleCallback()
112 if(len==PACKET_SIZE){ in HandleCallback()
116 memcpy(data, lastDecoded, PACKET_SIZE); in HandleCallback()
126 echoCanceller->SpeakerOutCallback(data, PACKET_SIZE); in HandleCallback()
191 effect->Process(reinterpret_cast<int16_t*>(processedBuffer+(PACKET_SIZE*i)), 960); in RunThread()
193 memcpy(buf, processedBuffer+(PACKET_SIZE*i), PACKET_SIZE); in RunThread()
196 memset(buf, 0, PACKET_SIZE); in RunThread()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/skia/experimental/Networking/
H A DSkSockets.cpp90 char packet[PACKET_SIZE]; in readPacket()
95 memset(packet, 0, PACKET_SIZE); in readPacket()
106 PACKET_SIZE - bytesReadInPacket); in readPacket()
131 if (bytesReadInPacket < PACKET_SIZE) { in readPacket()
136 SkASSERT((bytesReadInPacket == PACKET_SIZE) && !failure); in readPacket()
177 char packet[PACKET_SIZE]; in writePacket()
187 memset(packet, 0, PACKET_SIZE); in writePacket()
198 PACKET_SIZE - bytesWrittenInPacket); in writePacket()
224 if (bytesWrittenInPacket < PACKET_SIZE) in writePacket()
227 SkASSERT(bytesWrittenInPacket == PACKET_SIZE); in writePacket()
/dports/devel/libsigrok/libsigrok-0.5.2/src/hardware/uni-t-ut32x/
H A Dprotocol.c83 if (len != PACKET_SIZE) in process_packet()
181 while (devc->packet_len >= PACKET_SIZE && in process_buffer()
182 pkt[PACKET_SIZE - 2] == SEP[0] && in process_buffer()
183 pkt[PACKET_SIZE - 1] == SEP[1]) { in process_buffer()
184 process_packet(sdi, &pkt[0], PACKET_SIZE); in process_buffer()
185 remain = devc->packet_len - PACKET_SIZE; in process_buffer()
187 memmove(&pkt[0], &pkt[PACKET_SIZE], remain); in process_buffer()
188 devc->packet_len -= PACKET_SIZE; in process_buffer()
/dports/security/intel-ipsec-mb/intel-ipsec-mb-55179f0/perf/
H A Dipsec_diff_tool.py40 PACKET_SIZE = 0 variable
102 cycle_cost_a = self.slope * int(PACKET_SIZE) + self.intercept
105 cycle_cost_b = obj_b.slope * int(PACKET_SIZE) + obj_b.intercept
108 packet_size_bits = int(PACKET_SIZE) * 8
157 print("Buffer size: {} bytes".format(PACKET_SIZE))
161 print("Buffer size: {} bytes".format(PACKET_SIZE))
210 print("Buffer size: {} bytes".format(PACKET_SIZE))
214 print("Buffer size: {} bytes".format(PACKET_SIZE))
346 global PACKET_SIZE
360 PACKET_SIZE = sys.argv[i+1]
[all …]
/dports/devel/libsigrok/libsigrok-0.5.2/src/hardware/atten-pps3xxx/
H A Dapi.c88 uint8_t packet[PACKET_SIZE]; in scan()
119 memset(packet, 0, PACKET_SIZE); in scan()
122 delay_ms = serial_timeout(serial, PACKET_SIZE); in scan()
123 if (serial_write_blocking(serial, packet, PACKET_SIZE, delay_ms) < PACKET_SIZE) { in scan()
130 memset(packet, 0, PACKET_SIZE); in scan()
131 if ((ret = serial_read_nonblocking(serial, packet, PACKET_SIZE)) < 0) { in scan()
136 if (ret != PACKET_SIZE || packet[0] != 0xaa || packet[1] != 0xaa) { in scan()
379 uint8_t packet[PACKET_SIZE]; in dev_acquisition_start()
382 memset(devc->packet, 0x44, PACKET_SIZE); in dev_acquisition_start()
393 memset(packet, 0, PACKET_SIZE); in dev_acquisition_start()
H A Dprotocol.c30 for (i = 0; i < PACKET_SIZE; i++) in dump_packet()
102 if (serial_write_blocking(serial, packet, PACKET_SIZE, devc->delay_ms) < PACKET_SIZE) in send_packet()
110 uint8_t packet[PACKET_SIZE]; in send_config()
114 memset(packet, 0, PACKET_SIZE); in send_config()
134 for (i = 0; i < PACKET_SIZE - 1; i++) in send_config()
162 if (devc->packet_size == PACKET_SIZE) { in atten_pps3xxx_receive_data()
/dports/audio/liboggz/liboggz-1.1.1/src/tests/
H A Dread-stop-err.c43 #define PACKET_SIZE 3000 macro
53 unsigned char buf[PACKET_SIZE]; in hungry()
61 memset (buf, 'a' + iter, PACKET_SIZE); in hungry()
64 op.bytes = PACKET_SIZE; in hungry()
105 if (op->bytes != PACKET_SIZE) in read_packet()
H A Dread-stop-ok.c43 #define PACKET_SIZE 3000 macro
51 unsigned char buf[PACKET_SIZE]; in hungry()
59 memset (buf, 'a' + iter, PACKET_SIZE); in hungry()
62 op.bytes = PACKET_SIZE; in hungry()
103 if (op->bytes != PACKET_SIZE) in read_packet()
/dports/multimedia/kodi/xbmc-19.3-Matrix/xbmc/cores/paplayer/
H A DAudioDecoder.h18 #define PACKET_SIZE 3840 // audio packet size - we keep 1 in reserve for gapless playback macro
22 #define INPUT_SIZE PACKET_SIZE * 3 // input data size we read from the codecs at a time
25 #define OUTPUT_SAMPLES PACKET_SIZE // max number of output samples
26 #define INPUT_SAMPLES PACKET_SIZE // number of input samples (distributed over channels)
/dports/comms/lirc/lirc-0.9.0/tools/
H A Dirsend.c54 #define PACKET_SIZE 256 macro
68 static char buffer[PACKET_SIZE + 1] = ""; in read_string()
82 if (PACKET_SIZE <= ptr) { in read_string()
87 ret = read(fd, buffer + ptr, PACKET_SIZE - ptr); in read_string()
232 char buffer[PACKET_SIZE + 1]; in main()
363 if (strlen(directive) + strlen(code) + 2 < PACKET_SIZE) { in main()
371 if (strlen(buffer) + strlen(code) + 2 < PACKET_SIZE) { in main()
389 if (strlen(directive) + strlen(code) + 2 < PACKET_SIZE) { in main()
408 if (strlen(directive) + strlen(remote) + strlen(code) + 3 < PACKET_SIZE) { in main()
/dports/comms/lirc/lirc-0.9.0/daemons/
H A Drelease.c36 static char message[PACKET_SIZE + 1];
96 …write_message(message, PACKET_SIZE + 1, release_remote2->name, release_ncode2->name, release_suffi… in check_release_event()
102 if (len >= PACKET_SIZE + 1) { in check_release_event()
122 … write_message(message, PACKET_SIZE + 1, release_remote->name, release_ncode->name, release_suffix, in trigger_release_event()
129 if (len >= PACKET_SIZE + 1) { in trigger_release_event()
/dports/net/kea/kea-2.0.1/src/lib/asiolink/tests/
H A Dtcp_socket_unittest.cc235 const uint16_t PACKET_SIZE = 16382; // Amount of "real" data in the buffer in TEST() local
239 uint8_t inbuff[PACKET_SIZE + 2]; // Buffer to check in TEST()
252 writeUint16(PACKET_SIZE, inbuff, sizeof(inbuff)); in TEST()
272 EXPECT_EQ(PACKET_SIZE, expected); in TEST()
283 EXPECT_EQ(PACKET_SIZE, expected); in TEST()
292 PACKET_SIZE + 2 - cumulative, in TEST()
295 EXPECT_EQ(PACKET_SIZE + 2, cumulative); in TEST()
297 EXPECT_EQ(PACKET_SIZE, expected); in TEST()
298 EXPECT_EQ(PACKET_SIZE, outbuff->getLength()); in TEST()
H A Dtls_socket_unittest.cc238 const uint16_t PACKET_SIZE = 16382; in TEST() local
246 uint8_t inbuff[PACKET_SIZE + 2]; in TEST()
262 writeUint16(PACKET_SIZE, inbuff, sizeof(inbuff)); in TEST()
282 EXPECT_EQ(PACKET_SIZE, expected); in TEST()
293 EXPECT_EQ(PACKET_SIZE, expected); in TEST()
302 PACKET_SIZE + 2 - cumulative, in TEST()
305 EXPECT_EQ(PACKET_SIZE + 2, cumulative); in TEST()
307 EXPECT_EQ(PACKET_SIZE, expected); in TEST()
308 EXPECT_EQ(PACKET_SIZE, outbuff->getLength()); in TEST()
/dports/sysutils/nut-devel/nut-9e6a5ab2/drivers/
H A Dmicrosol-common.c81 unsigned char received_packet[PACKET_SIZE];
414 if (size == PACKET_SIZE) { in comm_receive()
420 for (i = 0; i < PACKET_SIZE - 2; i++) { in comm_receive()
429 memcpy(received_packet, bufptr, PACKET_SIZE); in comm_receive()
548 for (i = 0; i < PACKET_SIZE * 3 && sync_received_byte != RESP_END; i++) { in resynchronize_packet()
561 unsigned char packet[PACKET_SIZE]; in get_base_info()
576 upsdebugx(4, "%s: requesting %d bytes from ser_get_buf_len()", __func__, PACKET_SIZE); in get_base_info()
577 tam = ser_get_buf_len(upsfd, packet, PACKET_SIZE, 3, 0); in get_base_info()
639 upsdebugx(3, "%s: requesting %d bytes from ser_get_buf_len()", __func__, PACKET_SIZE); in get_updated_info()
640 tam = ser_get_buf_len(upsfd, temp, PACKET_SIZE, 3, 0); in get_updated_info()
/dports/databases/xtrabackup8/percona-xtrabackup-8.0.14/router/src/routing/tests/
H A Dtest_classic_protocol.cc142 constexpr int PACKET_SIZE = 20; in TEST_F() local
146 .WillOnce(Return(PACKET_SIZE)); in TEST_F()
148 write(receiver_socket_, &network_buffer_[0], PACKET_SIZE)) in TEST_F()
149 .WillOnce(Return(PACKET_SIZE)); in TEST_F()
157 EXPECT_EQ(PACKET_SIZE, copy_res.value()); in TEST_F()
162 constexpr ssize_t PACKET_SIZE = 20; in TEST_F() local
166 .WillOnce(Return(PACKET_SIZE)); in TEST_F()
/dports/emulators/qemu5/qemu-5.2.0/roms/u-boot/net/
H A Dfastboot.c27 #define PACKET_SIZE 1024 macro
28 #define DATA_SIZE (PACKET_SIZE - sizeof(struct fastboot_header))
32 static const unsigned short packet_size = PACKET_SIZE;
36 static uchar last_packet[PACKET_SIZE];
270 if (len < sizeof(struct fastboot_header) || len > PACKET_SIZE) in fastboot_handler()
/dports/sysutils/u-boot-nanopi-neo2/u-boot-2021.07/net/
H A Dfastboot.c28 #define PACKET_SIZE 1024 macro
29 #define DATA_SIZE (PACKET_SIZE - sizeof(struct fastboot_header))
33 static const unsigned short packet_size = PACKET_SIZE;
37 static uchar last_packet[PACKET_SIZE];
273 if (len < sizeof(struct fastboot_header) || len > PACKET_SIZE) in fastboot_handler()
/dports/sysutils/u-boot-olimex-a20-som-evb/u-boot-2021.07/net/
H A Dfastboot.c28 #define PACKET_SIZE 1024 macro
29 #define DATA_SIZE (PACKET_SIZE - sizeof(struct fastboot_header))
33 static const unsigned short packet_size = PACKET_SIZE;
37 static uchar last_packet[PACKET_SIZE];
273 if (len < sizeof(struct fastboot_header) || len > PACKET_SIZE) in fastboot_handler()
/dports/sysutils/u-boot-olinuxino-lime2/u-boot-2021.07/net/
H A Dfastboot.c28 #define PACKET_SIZE 1024 macro
29 #define DATA_SIZE (PACKET_SIZE - sizeof(struct fastboot_header))
33 static const unsigned short packet_size = PACKET_SIZE;
37 static uchar last_packet[PACKET_SIZE];
273 if (len < sizeof(struct fastboot_header) || len > PACKET_SIZE) in fastboot_handler()
/dports/sysutils/u-boot-olinuxino-lime/u-boot-2021.07/net/
H A Dfastboot.c28 #define PACKET_SIZE 1024 macro
29 #define DATA_SIZE (PACKET_SIZE - sizeof(struct fastboot_header))
33 static const unsigned short packet_size = PACKET_SIZE;
37 static uchar last_packet[PACKET_SIZE];
273 if (len < sizeof(struct fastboot_header) || len > PACKET_SIZE) in fastboot_handler()
/dports/sysutils/u-boot-beaglebone/u-boot-2021.07/net/
H A Dfastboot.c28 #define PACKET_SIZE 1024 macro
29 #define DATA_SIZE (PACKET_SIZE - sizeof(struct fastboot_header))
33 static const unsigned short packet_size = PACKET_SIZE;
37 static uchar last_packet[PACKET_SIZE];
273 if (len < sizeof(struct fastboot_header) || len > PACKET_SIZE) in fastboot_handler()
/dports/emulators/qemu-guest-agent/qemu-5.0.1/roms/u-boot/net/
H A Dfastboot.c27 #define PACKET_SIZE 1024 macro
28 #define DATA_SIZE (PACKET_SIZE - sizeof(struct fastboot_header))
32 static const unsigned short packet_size = PACKET_SIZE;
36 static uchar last_packet[PACKET_SIZE];
270 if (len < sizeof(struct fastboot_header) || len > PACKET_SIZE) in fastboot_handler()
/dports/sysutils/u-boot-cubieboard2/u-boot-2021.07/net/
H A Dfastboot.c28 #define PACKET_SIZE 1024 macro
29 #define DATA_SIZE (PACKET_SIZE - sizeof(struct fastboot_header))
33 static const unsigned short packet_size = PACKET_SIZE;
37 static uchar last_packet[PACKET_SIZE];
273 if (len < sizeof(struct fastboot_header) || len > PACKET_SIZE) in fastboot_handler()
/dports/sysutils/u-boot-cubox-hummingboard/u-boot-2021.07/net/
H A Dfastboot.c28 #define PACKET_SIZE 1024 macro
29 #define DATA_SIZE (PACKET_SIZE - sizeof(struct fastboot_header))
33 static const unsigned short packet_size = PACKET_SIZE;
37 static uchar last_packet[PACKET_SIZE];
273 if (len < sizeof(struct fastboot_header) || len > PACKET_SIZE) in fastboot_handler()

12345678910