Home
last modified time | relevance | path

Searched refs:alen (Results 1 – 25 of 119) sorted by relevance

12345

/external/python/cpython2/Lib/ctypes/test/
Dtest_arrays.py19 alen = len(init)
20 int_array = ARRAY(fmt, alen)
24 self.assertEqual(len(ia), alen)
27 values = [ia[i] for i in range(alen)]
31 with self.assertRaises(IndexError): ia[alen]
32 with self.assertRaises(IndexError): ia[-alen-1]
36 new_values = range(42, 42+alen)
37 [setitem(ia, n, new_values[n]) for n in range(alen)]
38 values = [ia[i] for i in range(alen)]
43 values = [ia[i] for i in range(alen)]
[all …]
/external/mesa3d/src/glx/
Dpacksingle.h121 #define __GLX_SINGLE_GET_VOID_ARRAY(a,alen) \ argument
123 GLint slop = alen*__GLX_SIZE_INT8 & 3; \
124 _XRead(dpy,(char *)a,alen*__GLX_SIZE_INT8); \
128 #define __GLX_SINGLE_GET_CHAR_ARRAY(a,alen) \ argument
130 GLint slop = alen*__GLX_SIZE_INT8 & 3; \
131 _XRead(dpy,(char *)a,alen*__GLX_SIZE_INT8); \
136 #define __GLX_SINGLE_GET_SHORT_ARRAY(a,alen) \ argument
138 GLint slop = (alen*__GLX_SIZE_INT16) & 3; \
139 _XRead(dpy,(char *)a,alen*__GLX_SIZE_INT16); \
143 #define __GLX_SINGLE_GET_LONG_ARRAY(a,alen) \ argument
[all …]
Dpackrender.h187 #define __GLX_PUT_CHAR_ARRAY(offset,a,alen) \ argument
188 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_INT8)
190 #define __GLX_PUT_SHORT_ARRAY(offset,a,alen) \ argument
191 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_INT16)
193 #define __GLX_PUT_LONG_ARRAY(offset,a,alen) \ argument
194 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_INT32)
196 #define __GLX_PUT_FLOAT_ARRAY(offset,a,alen) \ argument
197 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_FLOAT32)
199 #define __GLX_PUT_DOUBLE_ARRAY(offset,a,alen) \ argument
200 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_FLOAT64)
/external/strace/tests/
Dsendfile.c71 const unsigned int alen = file_size - blen; in main() local
89 assert(syscall(__NR_sendfile, sv[1], reg_in, NULL, alen) in main()
90 == (long) alen); in main()
92 sv[1], reg_in, alen, alen); in main()
95 if (syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) != (long) alen) { in main()
97 sv[1], reg_in, (unsigned long) p_off, alen); in main()
100 assert(syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) in main()
101 == (long) alen); in main()
104 sv[1], reg_in, alen, alen, alen); in main()
109 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
Dsendfile64.c71 const unsigned int alen = file_size - blen; in main() local
89 assert(syscall(__NR_sendfile64, sv[1], reg_in, NULL, alen) in main()
90 == (long) alen); in main()
92 sv[1], reg_in, alen, alen); in main()
94 assert(syscall(__NR_sendfile64, sv[1], reg_in, p_off, alen) in main()
95 == (long) alen); in main()
97 sv[1], reg_in, alen, alen, alen); in main()
102 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
/external/strace/tests-mx32/
Dsendfile.c71 const unsigned int alen = file_size - blen; in main() local
89 assert(syscall(__NR_sendfile, sv[1], reg_in, NULL, alen) in main()
90 == (long) alen); in main()
92 sv[1], reg_in, alen, alen); in main()
95 if (syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) != (long) alen) { in main()
97 sv[1], reg_in, (unsigned long) p_off, alen); in main()
100 assert(syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) in main()
101 == (long) alen); in main()
104 sv[1], reg_in, alen, alen, alen); in main()
109 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
Dsendfile64.c71 const unsigned int alen = file_size - blen; in main() local
89 assert(syscall(__NR_sendfile64, sv[1], reg_in, NULL, alen) in main()
90 == (long) alen); in main()
92 sv[1], reg_in, alen, alen); in main()
94 assert(syscall(__NR_sendfile64, sv[1], reg_in, p_off, alen) in main()
95 == (long) alen); in main()
97 sv[1], reg_in, alen, alen, alen); in main()
102 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
/external/strace/tests-m32/
Dsendfile.c71 const unsigned int alen = file_size - blen; in main() local
89 assert(syscall(__NR_sendfile, sv[1], reg_in, NULL, alen) in main()
90 == (long) alen); in main()
92 sv[1], reg_in, alen, alen); in main()
95 if (syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) != (long) alen) { in main()
97 sv[1], reg_in, (unsigned long) p_off, alen); in main()
100 assert(syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) in main()
101 == (long) alen); in main()
104 sv[1], reg_in, alen, alen, alen); in main()
109 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
Dsendfile64.c71 const unsigned int alen = file_size - blen; in main() local
89 assert(syscall(__NR_sendfile64, sv[1], reg_in, NULL, alen) in main()
90 == (long) alen); in main()
92 sv[1], reg_in, alen, alen); in main()
94 assert(syscall(__NR_sendfile64, sv[1], reg_in, p_off, alen) in main()
95 == (long) alen); in main()
97 sv[1], reg_in, alen, alen, alen); in main()
102 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
/external/wpa_supplicant_8/src/eap_common/
Deap_sim_common.c499 size_t alen, plen, i, list_len; in eap_sim_parse_attr() local
526 alen = pos[1] * 4 - 2; in eap_sim_parse_attr()
528 apos, alen); in eap_sim_parse_attr()
534 alen -= 2; in eap_sim_parse_attr()
535 if ((!aka && (alen % GSM_RAND_LEN)) || in eap_sim_parse_attr()
536 (aka && alen != EAP_AKA_RAND_LEN)) { in eap_sim_parse_attr()
539 (unsigned long) alen); in eap_sim_parse_attr()
543 attr->num_chal = alen / GSM_RAND_LEN; in eap_sim_parse_attr()
553 alen -= 2; in eap_sim_parse_attr()
554 if (alen != EAP_AKA_AUTN_LEN) { in eap_sim_parse_attr()
[all …]
/external/python/cpython3/Lib/ctypes/test/
Dtest_arrays.py21 alen = len(init)
22 int_array = ARRAY(fmt, alen)
26 self.assertEqual(len(ia), alen)
29 values = [ia[i] for i in range(alen)]
33 with self.assertRaises(IndexError): ia[alen]
34 with self.assertRaises(IndexError): ia[-alen-1]
38 new_values = list(range(42, 42+alen))
39 [setitem(ia, n, new_values[n]) for n in range(alen)]
40 values = [ia[i] for i in range(alen)]
45 values = [ia[i] for i in range(alen)]
[all …]
/external/u-boot/cmd/
Di2c.c252 int alen; in get_alen() local
254 alen = default_len; in get_alen()
257 alen = arg[j+1] - '0'; in get_alen()
262 return alen; in get_alen()
295 int alen; in do_i2c_read() local
315 alen = get_alen(argv[2], DEFAULT_ADDR_LEN); in do_i2c_read()
316 if (alen > 3) in do_i2c_read()
331 if (!ret && alen != -1) in do_i2c_read()
332 ret = i2c_set_chip_offset_len(dev, alen); in do_i2c_read()
336 ret = i2c_read(chip, devaddr, alen, memaddr, length); in do_i2c_read()
[all …]
Deeprom.c85 int alen; in eeprom_addr() local
91 alen = 2; in eeprom_addr()
96 alen = 3; in eeprom_addr()
101 return alen; in eeprom_addr()
127 static int eeprom_rw_block(unsigned offset, uchar *addr, unsigned alen, in eeprom_rw_block() argument
135 spi_read(addr, alen, buffer, len); in eeprom_rw_block()
137 spi_write(addr, alen, buffer, len); in eeprom_rw_block()
145 ret = i2c_read(addr[0], offset, alen - 1, buffer, len); in eeprom_rw_block()
147 ret = i2c_write(addr[0], offset, alen - 1, buffer, len); in eeprom_rw_block()
159 unsigned alen, len; in eeprom_rw() local
[all …]
/external/u-boot/drivers/i2c/
Dlpc32xx_i2c.c111 int alen, u8 *data, int length) in __i2c_read() argument
120 if (alen) { in __i2c_read()
124 while (alen--) { in __i2c_read()
126 int a = (addr >> (8 * alen)) & 0xff; in __i2c_read()
127 if (!alen) in __i2c_read()
178 int alen, u8 *data, int length) in __i2c_write() argument
187 if (alen | length) in __i2c_write()
193 while (alen) { in __i2c_write()
197 alen--; in __i2c_write()
198 int a = (addr >> (8 * alen)) & 0xff; in __i2c_write()
[all …]
Domap24xx_i2c.c428 uint addr, int alen, uchar *buffer, int len) argument
433 if (alen < 0) {
446 if (alen > 2) {
447 printf("I2C read: addr len %d not supported\n", alen);
468 if (alen > 0)
469 chip |= ((addr >> (alen * 8)) &
478 writew(alen, &i2c_base->cnt);
482 if (alen) {
509 if (alen) {
511 alen--;
[all …]
Di2c-uclass-compat.c13 static int i2c_compat_get_device(uint chip_addr, int alen, in i2c_compat_get_device() argument
19 ret = i2c_get_chip_for_busnum(cur_busnum, chip_addr, alen, devp); in i2c_compat_get_device()
23 if (chip->offset_len != alen) { in i2c_compat_get_device()
25 chip_addr, alen, chip->offset_len); in i2c_compat_get_device()
49 int i2c_read(uint8_t chip_addr, unsigned int addr, int alen, uint8_t *buffer, in i2c_read() argument
55 ret = i2c_compat_get_device(chip_addr, alen, &dev); in i2c_read()
62 int i2c_write(uint8_t chip_addr, unsigned int addr, int alen, uint8_t *buffer, in i2c_write() argument
68 ret = i2c_compat_get_device(chip_addr, alen, &dev); in i2c_write()
Ddavinci_i2c.c126 uint32_t addr, int alen, uint8_t *buf, int len) in _davinci_i2c_read() argument
131 if ((alen < 0) || (alen > 2)) { in _davinci_i2c_read()
132 printf("%s(): bogus address length %x\n", __func__, alen); in _davinci_i2c_read()
139 if (alen != 0) { in _davinci_i2c_read()
142 REG(&(i2c_base->i2c_cnt)) = alen; in _davinci_i2c_read()
150 switch (alen) { in _davinci_i2c_read()
224 uint32_t addr, int alen, uint8_t *buf, int len) in _davinci_i2c_write() argument
229 if ((alen < 0) || (alen > 2)) { in _davinci_i2c_write()
230 printf("%s(): bogus address length %x\n", __func__, alen); in _davinci_i2c_write()
244 REG(&(i2c_base->i2c_cnt)) = (alen == 0) ? in _davinci_i2c_write()
[all …]
Ddesignware_i2c.c201 int alen) in i2c_xfer_init() argument
207 while (alen) { in i2c_xfer_init()
208 alen--; in i2c_xfer_init()
210 writel((addr >> (alen * 8)) & 0xff, in i2c_xfer_init()
250 int alen, u8 *buffer, int len) in __dw_i2c_read() argument
267 dev |= ((addr >> (alen * 8)) & CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW); in __dw_i2c_read()
268 addr &= ~(CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW << (alen * 8)); in __dw_i2c_read()
274 if (i2c_xfer_init(i2c_base, dev, addr, alen)) in __dw_i2c_read()
318 int alen, u8 *buffer, int len) in __dw_i2c_write() argument
335 dev |= ((addr >> (alen * 8)) & CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW); in __dw_i2c_write()
[all …]
Dsoft_i2c.c326 int alen, uchar *buffer, int len) in soft_i2c_read() argument
330 chip, addr, alen, buffer, len); in soft_i2c_read()
344 chip |= ((addr >> (alen * 8)) & CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW); in soft_i2c_read()
357 if(alen > 0) { in soft_i2c_read()
363 shift = (alen-1) * 8; in soft_i2c_read()
364 while(alen-- > 0) { in soft_i2c_read()
401 int alen, uchar *buffer, int len) in soft_i2c_write() argument
406 chip, addr, alen, buffer, len); in soft_i2c_write()
414 shift = (alen-1) * 8; in soft_i2c_write()
415 while(alen-- > 0) { in soft_i2c_write()
Dmxs_i2c.c130 int alen, uchar *buf, int blen, int stop) in mxs_i2c_write() argument
137 if ((alen > 4) || (alen == 0)) { in mxs_i2c_write()
147 ((blen + alen + 1) << I2C_QUEUECMD_XFER_COUNT_OFFSET) | stop, in mxs_i2c_write()
152 for (i = 0; i < alen; i++) { in mxs_i2c_write()
154 data |= ((char *)&addr)[alen - i - 1] << 24; in mxs_i2c_write()
226 uint addr, int alen, uint8_t *buffer, in mxs_i2c_if_read() argument
235 ret = mxs_i2c_write(adap, chip, addr, alen, NULL, 0, 0); in mxs_i2c_if_read()
277 uint addr, int alen, uint8_t *buffer, in mxs_i2c_if_write() argument
281 ret = mxs_i2c_write(adap, chip, addr, alen, buffer, len, 1); in mxs_i2c_if_write()
Dihs_i2c.c231 static int ihs_i2c_address(struct udevice *dev, uchar chip, u8 *addr, int alen, in ihs_i2c_address() argument
234 static int ihs_i2c_address(uchar chip, u8 *addr, int alen, bool hold_bus) in ihs_i2c_address()
238 return ihs_i2c_send_buffer(dev, chip, addr, alen, hold_bus, I2COP_WRITE); in ihs_i2c_address()
240 return ihs_i2c_send_buffer(chip, addr, alen, hold_bus, I2COP_WRITE); in ihs_i2c_address()
246 int alen, uchar *buffer, int len, int read) in ihs_i2c_access() argument
249 int alen, uchar *buffer, int len, int read) in ihs_i2c_access()
254 if (len <= 0 || ihs_i2c_address(dev, chip, addr, alen, len)) in ihs_i2c_access()
257 if (len <= 0 || ihs_i2c_address(chip, addr, alen, len)) in ihs_i2c_access()
377 int alen, uchar *buffer, int len) in ihs_i2c_read() argument
383 return ihs_i2c_access(adap, chip, addr_bytes, alen, buffer, len, in ihs_i2c_read()
[all …]
Dmv_i2c.c237 static int __i2c_read(struct mv_i2c *base, uchar chip, u8 *addr, int alen, in __i2c_read() argument
243 "len=0x%02x)\n", chip, *addr, alen, len); in __i2c_read()
266 while (--alen >= 0) { in __i2c_read()
268 *addr, alen); in __i2c_read()
272 msg.data = addr[alen]; in __i2c_read()
313 static int __i2c_write(struct mv_i2c *base, uchar chip, u8 *addr, int alen, in __i2c_write() argument
319 "len=0x%02x)\n", chip, *addr, alen, len); in __i2c_write()
337 while (--alen >= 0) { in __i2c_write()
339 *addr, alen); in __i2c_write()
343 msg.data = addr[alen]; in __i2c_write()
[all …]
/external/wpa_supplicant_8/src/eap_server/
Deap_server_gpsk.c244 u16 alen; in eap_gpsk_process_gpsk_2() local
263 alen = WPA_GET_BE16(pos); in eap_gpsk_process_gpsk_2()
265 if (end - pos < alen) { in eap_gpsk_process_gpsk_2()
272 data->id_peer = os_memdup(pos, alen); in eap_gpsk_process_gpsk_2()
275 "%d-octet ID_Peer", alen); in eap_gpsk_process_gpsk_2()
278 data->id_peer_len = alen; in eap_gpsk_process_gpsk_2()
281 pos += alen; in eap_gpsk_process_gpsk_2()
289 alen = WPA_GET_BE16(pos); in eap_gpsk_process_gpsk_2()
291 if (end - pos < alen) { in eap_gpsk_process_gpsk_2()
297 if (alen != sm->server_id_len || in eap_gpsk_process_gpsk_2()
[all …]
/external/toybox/toys/pending/
Dhost.c71 i, j, ret, sec, count, rcode, qlen, alen, pllen = 0; in host_main() local
131 alen = recv(s, abuf, sizeof abuf, 0); in host_main()
132 } else alen = res_send(qbuf, qlen, abuf, sizeof abuf); in host_main()
134 if (alen < 12) error_exit("Host not found."); in host_main()
154 p += dn_expand(abuf, abuf+alen, p, rrname, sizeof(rrname)); in host_main()
168 dn_expand(abuf, abuf+alen, p, plname, sizeof plname); in host_main()
174 i = dn_expand(abuf, abuf+alen, p, plname, sizeof plname - 1); in host_main()
176 i += dn_expand(abuf, abuf+alen, p+i, plname+strlen(plname), in host_main()
191 dn_expand(abuf, abuf+alen, p+2, plname+strlen(plname), in host_main()
197 dn_expand(abuf, abuf+alen, p+6, plname+strlen(plname), in host_main()
/external/linux-kselftest/tools/testing/selftests/net/
Dudpgso.c378 int fd, ret, alen, off = 0; in set_route_mtu() local
380 alen = is_ipv4 ? sizeof(addr4) : sizeof(addr6); in set_route_mtu()
396 rt->rtm_dst_len = alen << 3; in set_route_mtu()
404 rta->rta_len = RTA_LENGTH(alen); in set_route_mtu()
406 memcpy(RTA_DATA(rta), &addr4, alen); in set_route_mtu()
408 memcpy(RTA_DATA(rta), &addr6, alen); in set_route_mtu()
460 struct sockaddr *addr, socklen_t alen) in send_one() argument
474 msg.msg_namelen = alen; in send_one()
514 struct sockaddr *addr, socklen_t alen) in run_one() argument
530 sent = send_one(fdt, test->tlen, test->gso_len, addr, alen); in run_one()
[all …]

12345