/hardware/libhardware_legacy/qemu/ |
D | qemu.c | 54 qemu_fd_write( int fd, const char* cmd, int len ) in qemu_fd_write() argument 58 len2 = write(fd, cmd, len); in qemu_fd_write() 64 qemu_fd_read( int fd, char* buff, int len ) in qemu_fd_read() argument 68 len2 = read(fd, buff, len); in qemu_fd_read() 235 int len; in qemu_command_vformat() local 240 len = vsnprintf(buffer+4, buffer_size-4, format, args); in qemu_command_vformat() 241 if (len >= buffer_size-4) in qemu_command_vformat() 244 snprintf(header, sizeof header, "%04x", len); in qemu_command_vformat() 246 return len + 4; in qemu_command_vformat() 280 qemu_control_send(const char* cmd, int len) in qemu_control_send() argument [all …]
|
/hardware/broadcom/wlan/bcm4329/src/shared/ |
D | bcmutils.c | 51 pktcopy(osl_t *osh, void *p, uint offset, int len, uchar *buf) in pktcopy() argument 55 if (len < 0) in pktcopy() 56 len = 4096; /* "infinite" */ in pktcopy() 69 for (; p && len; p = PKTNEXT(osh, p)) { in pktcopy() 70 n = MIN((uint)PKTLEN(osh, p) - offset, (uint)len); in pktcopy() 73 len -= n; in pktcopy() 83 pktfrombuf(osl_t *osh, void *p, uint offset, int len, uchar *buf) in pktfrombuf() argument 98 for (; p && len; p = PKTNEXT(osh, p)) { in pktfrombuf() 99 n = MIN((uint)PKTLEN(osh, p) - offset, (uint)len); in pktfrombuf() 102 len -= n; in pktfrombuf() [all …]
|
D | linux_osl.c | 243 osl_pktget(osl_t *osh, uint len) in osl_pktget() argument 247 if ((skb = dev_alloc_skb(len))) { in osl_pktget() 248 skb_put(skb, len); in osl_pktget() 291 osl_pktget_static(osl_t *osh, uint len) in osl_pktget_static() argument 297 if (len > (PAGE_SIZE*2)) in osl_pktget_static() 300 return osl_pktget(osh, len); in osl_pktget_static() 305 if (len <= PAGE_SIZE) in osl_pktget_static() 320 skb->tail = skb->data + len; in osl_pktget_static() 321 skb->len = len; in osl_pktget_static() 339 skb->tail = skb->data + len; in osl_pktget_static() [all …]
|
/hardware/libhardware_legacy/power/ |
D | power.c | 139 ssize_t len = write(g_fds[RELEASE_WAKE_LOCK], id, strlen(id)); in release_wake_lock() local 140 return len >= 0; in release_wake_lock() 151 ssize_t len; in set_last_user_activity_timeout() local 152 len = sprintf(buf, "%d", ((int)(delay))); in set_last_user_activity_timeout() 153 len = write(fd, buf, len); in set_last_user_activity_timeout() 176 int len; in set_screen_state() local 178 len = sprintf(buf, on_state); in set_screen_state() 180 len = sprintf(buf, off_state); in set_screen_state() 181 len = write(g_fds[REQUEST_STATE], buf, len); in set_screen_state() 182 if(len < 0) { in set_screen_state()
|
/hardware/broadcom/wlan/bcm4329/src/dhd/sys/ |
D | dhd_cdc.c | 75 int len = ltoh32(prot->msg.len) + sizeof(cdc_ioctl_t); in dhdcdc_msg() local 86 if (len > CDC_MAX_MSG_SIZE) in dhdcdc_msg() 87 len = CDC_MAX_MSG_SIZE; in dhdcdc_msg() 90 ret = dhd_bus_txctl(dhd->bus, (uchar*)&prot->msg, len); in dhdcdc_msg() 96 dhdcdc_cmplt(dhd_pub_t *dhd, uint32 id, uint32 len) in dhdcdc_cmplt() argument 104 ret = dhd_bus_rxctl(dhd->bus, (uchar*)&prot->msg, len+sizeof(cdc_ioctl_t)); in dhdcdc_cmplt() 113 dhdcdc_query_ioctl(dhd_pub_t *dhd, int ifidx, uint cmd, void *buf, uint len) in dhdcdc_query_ioctl() argument 122 DHD_CTL(("%s: cmd %d len %d\n", __FUNCTION__, cmd, len)); in dhdcdc_query_ioctl() 143 msg->len = htol32(len); in dhdcdc_query_ioctl() 149 memcpy(prot->buf, buf, len); in dhdcdc_query_ioctl() [all …]
|
D | dhd_sdio.c | 142 extern int dhdcdc_set_ioctl(dhd_pub_t *dhd, int ifidx, uint cmd, void *buf, uint len); 338 #define PKTALIGN(osh, p, len, align) \ argument 344 ASSERT(PKTLEN((osh), (p)) >= ((len) + datalign)); \ 347 PKTSETLEN((osh), (p), (len)); \ 421 static uint process_nvram_vars(char *varbuf, uint len); 880 uint16 len, pad = 0; in dhdsdio_txpkt() local 934 len = (uint16)PKTLEN(osh, pkt); in dhdsdio_txpkt() 935 *(uint16*)frame = htol16(len); in dhdsdio_txpkt() 936 *(((uint16*)frame) + 1) = htol16(~len); in dhdsdio_txpkt() 950 prhex("Tx Frame", frame, len); in dhdsdio_txpkt() [all …]
|
D | dhd_common.c | 172 void *params, int plen, void *arg, int len, int val_size) in dhd_doiovar() argument 179 if ((bcmerror = bcm_iovar_lencheck(vi, arg, len, IOV_ISSET(actionid))) != 0) in dhd_doiovar() 188 strncpy((char*)arg, dhd_version, len); in dhd_doiovar() 224 bcmerror = dhd_dump(dhd_pub, arg, len); in dhd_doiovar() 337 void *params, int plen, void *arg, int len, bool set) in dhd_iovar_op() argument 347 ASSERT(len >= 0); in dhd_iovar_op() 350 ASSERT(set || (arg && len)); in dhd_iovar_op() 361 name, (set ? "set" : "get"), len, plen)); in dhd_iovar_op() 368 plen = len; in dhd_iovar_op() 374 val_size = len; in dhd_iovar_op() [all …]
|
D | dhd_linux.c | 622 ioc.len = buflen; in _dhd_set_multicast_list() 625 ret = dhd_prot_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len); in _dhd_set_multicast_list() 657 ioc.len = buflen; in _dhd_set_multicast_list() 660 ret = dhd_prot_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len); in _dhd_set_multicast_list() 676 ioc.len = sizeof(allmulti); in _dhd_set_multicast_list() 679 ret = dhd_prot_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len); in _dhd_set_multicast_list() 700 ioc.len = 32; in _dhd_set_mac_address() 703 ret = dhd_prot_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len); in _dhd_set_mac_address() 962 uint len; in dhd_rx_frame() local 990 len = skb->len; in dhd_rx_frame() [all …]
|
D | dhd_proto.h | 69 extern int dhd_prot_ioctl(dhd_pub_t *dhd, int ifidx, wl_ioctl_t * ioc, void * buf, int len); 73 void *params, int plen, void *arg, int len, bool set);
|
/hardware/broadcom/wlan/bcm4329/src/include/ |
D | bcmutils.h | 97 uint16 len; member 107 uint16 len; member 117 uint16 len; member 135 #define pktq_plen(pq, prec) ((pq)->q[prec].len) 136 #define pktq_pavail(pq, prec) ((pq)->q[prec].max - (pq)->q[prec].len) 137 #define pktq_pfull(pq, prec) ((pq)->q[prec].len >= (pq)->q[prec].max) 138 #define pktq_pempty(pq, prec) ((pq)->q[prec].len == 0) 162 #define pktq_len(pq) ((int)(pq)->len) 164 #define pktq_avail(pq) ((int)((pq)->max - (pq)->len)) 165 #define pktq_full(pq) ((pq)->len >= (pq)->max) [all …]
|
D | linux_osl.h | 203 #define bcopy(src, dst, len) memcpy((dst), (src), (len)) argument 204 #define bcmp(b1, b2, len) memcmp((b1), (b2), (len)) argument 205 #define bzero(b, len) memset((b), '\0', (len)) argument 231 #define BZERO_SM(r, len) memset((r), '\0', (len)) argument 234 #define PKTGET(osh, len, send) osl_pktget((osh), (len)) argument 237 #define PKTGET_STATIC(osh, len, send) osl_pktget_static((osh), (len)) argument 241 #define PKTLEN(osh, skb) (((struct sk_buff*)(skb))->len) 246 #define PKTSETLEN(osh, skb, len) __skb_trim((struct sk_buff*)(skb), (len)) argument 260 extern void *osl_pktget(osl_t *osh, uint len); 262 extern void *osl_pktget_static(osl_t *osh, uint len);
|
D | bcmendian.h | 76 bcmswap16_buf(uint16 *buf, uint len) in bcmswap16_buf() argument 78 len = len / 2; in bcmswap16_buf() 80 while (len--) { in bcmswap16_buf()
|
/hardware/broadcom/wlan/bcm4329/src/dhd/exe/ |
D | dhdu_linux.c | 64 dhd_ioctl(void *dhd, int cmd, void *buf, int len, bool set) in dhd_ioctl() argument 78 ioc.len = len; in dhd_ioctl() 94 dhd_get_dev_type(char *name, void *buf, int len) in dhd_get_dev_type() argument 120 strncpy(buf, info.driver, len); in dhd_get_dev_type() 127 dhd_get(void *dhd, int cmd, void *buf, int len) in dhd_get() argument 129 return dhd_ioctl(dhd, cmd, buf, len, FALSE); in dhd_get() 133 dhd_set(void *dhd, int cmd, void *buf, int len) in dhd_set() argument 135 return dhd_ioctl(dhd, cmd, buf, len, TRUE); in dhd_set()
|
D | dhdu.c | 365 int nrows, i, len; in dhd_list() local 379 len = nrows * 80 + 2; in dhd_list() 380 buf = malloc(len); in dhd_list() 382 fprintf(stderr, "Failed to allocate buffer of %d bytes\n", len); in dhd_list() 385 for (i = 0; i < len; i++) in dhd_list() 835 uint len; in dhd_membytes() local 897 len = strtoul(argv[1], &ptr, 0); in dhd_membytes() 912 for (addr -= align, len += align; len; addr += chunk, len -= chunk, align = 0) { in dhd_membytes() 913 chunk = MIN(chunk, len); in dhd_membytes() 963 while (len) { in dhd_membytes() [all …]
|
D | dhdu_cmd.h | 47 extern int dhd_get(void *dhd, int cmd, void *buf, int len); 48 extern int dhd_set(void *dhd, int cmd, void *buf, int len);
|
/hardware/libhardware_legacy/flashlight/ |
D | flashlight.c | 17 int len; in qemu_get_flashlight_enabled() local 19 len = qemu_command_format( question, sizeof question, in qemu_get_flashlight_enabled() 22 len = qemu_control_query( question, len, answer, sizeof answer ); in qemu_get_flashlight_enabled() 23 if (len <= 0) return 0; in qemu_get_flashlight_enabled()
|
/hardware/msm7k/librpc/ |
D | ops.c | 35 int len = rc / 4; in r_read() local 38 while (len--) in r_read() 53 int len = rc / 4; in r_write() local 56 while (len--) in r_write()
|
D | svc_clnt_common.c | 150 uint32 len) in xdr_std_send_bytes() argument 152 if (xdr->out_next + len > RPCROUTER_MSGSIZE_MAX) return FALSE; in xdr_std_send_bytes() 153 while(len--) in xdr_std_send_bytes() 244 static bool_t xdr_std_recv_bytes(xdr_s_type *xdr, uint8 *buf, uint32 len) in xdr_std_recv_bytes() argument 246 if (xdr->in_next + (int)len > xdr->in_len) return FALSE; in xdr_std_recv_bytes() 247 if (buf) memcpy(buf, &xdr->in_msg[xdr->in_next], len); in xdr_std_recv_bytes() 248 xdr->in_next += len; in xdr_std_recv_bytes()
|
/hardware/ril/rild/ |
D | radiooptions.c | 107 int len = strlen(argv[1 + i]); in main() local 108 ret = send(fd, &len, sizeof(int), 0); in main() 114 ret = send(fd, argv[1 + i], sizeof(char) * len, 0); in main() 115 if (ret != len * sizeof(char)) { in main()
|
D | rild.c | 145 int len; in main() local 154 len = read(fd,buffer,sizeof(buffer)); } in main() 155 while (len == -1 && errno == EINTR); in main() 157 if (len < 0) { in main()
|
/hardware/ril/reference-ril/ |
D | atchannel.c | 68 void AT_DUMP(const char* prefix, const char* buff, int len) in AT_DUMP() argument 70 if (len < 0) in AT_DUMP() 71 len = strlen(buff); in AT_DUMP() 72 LOGD("%.*s", len, buff); in AT_DUMP() 360 size_t len; in readline() local 362 len = strlen(s_ATBufferCur); in readline() 364 memmove(s_ATBuffer, s_ATBufferCur, len + 1); in readline() 365 p_read = s_ATBuffer + len; in readline() 495 size_t len = strlen(s); in writeline() local 507 while (cur < len) { in writeline() [all …]
|
/hardware/libhardware/include/hardware/ |
D | qemud.h | 42 qemud_fd_write(int fd, const void* buff, int len) in qemud_fd_write() argument 46 len2 = write(fd, buff, len); in qemud_fd_write() 52 qemud_fd_read(int fd, void* buff, int len) in qemud_fd_read() argument 56 len2 = read(fd, buff, len); in qemud_fd_read()
|
/hardware/broadcom/wlan/bcm4329/src/include/proto/ |
D | 802.11.h | 282 uint8 len; member 295 uint8 len; member 304 uint8 len; member 313 uint8 len; member 320 uint8 len; member 345 uint8 len; member 367 uint8 len; member 384 uint8 len; member 396 uint8 len; member 405 uint8 len; member [all …]
|
/hardware/broadcom/wlan/bcm4329/src/bcmsdio/sys/ |
D | bcmsdspi.c | 82 static uint8 sdspi_crc7(unsigned char* p, uint32 len); 83 static uint16 sdspi_crc16(unsigned char* p, uint32 len); 261 void *params, int plen, void *arg, int len, bool set) in sdioh_iovar_op() argument 271 ASSERT(len >= 0); in sdioh_iovar_op() 274 ASSERT(set || (arg && len)); in sdioh_iovar_op() 284 if ((bcmerror = bcm_iovar_lencheck(vi, arg, len, set)) != 0) in sdioh_iovar_op() 290 plen = len; in sdioh_iovar_op() 296 val_size = len; in sdioh_iovar_op() 625 int len; in sdioh_request_buffer() local 645 len = MIN(SD_PAGE, buflen); in sdioh_request_buffer() [all …]
|
/hardware/ti/omap3/omx/system/src/openmax_il/perf/inc/ |
D | perf_log.h | 32 #define PERF_mask(field, len) \ argument 33 ( ((unsigned long) (field)) & ((1 << (len)) - 1) ) 35 #define PERF_bits(field, start, len) \ argument 36 ( (((unsigned long) (field)) >> start) & ((1 << (len)) - 1) ) 38 #define PERF_log_combine(flag, field, len) \ argument 39 ( ((unsigned long) (flag)) | (PERF_mask(field, len) & PERF_LOG_NotMask) )
|