Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 76) sorted by relevance

1234

/system/core/toolbox/
Dioctl.c17 int length = -1; in ioctl_main() local
38 length = strtol(optarg, NULL, 0); in ioctl_main()
75 length = 4; in ioctl_main()
78 if(length < 0) { in ioctl_main()
79 length = (argc - optind) * arg_size; in ioctl_main()
81 if(length) { in ioctl_main()
82 ioctl_args = calloc(1, length); in ioctl_main()
85 rem = length; in ioctl_main()
99 rem = length; in ioctl_main()
107 else if(length) in ioctl_main()
[all …]
Dmount.c203 int length; in print_mounts() local
213 length = fread(buffer, 1, 100, f); in print_mounts()
214 if (length > 0) in print_mounts()
215 fwrite(buffer, 1, length, stdout); in print_mounts()
216 } while (length > 0); in print_mounts()
/system/wlan/ti/sta_dk_4_0_4_32/pform/linux/src/
Dioctl_list.c57 req->length, req->cmd ); in print_priv_ioctl_params()
65 print_memory_dump(extra, req->length ); in print_priv_ioctl_params()
95 req->cmd, data, req->user_data_pointer, req->length); in ti1610_ioctl_priv_proc_tl()
112 res = os_sendPacket(dev, data, req->length); in ti1610_ioctl_priv_proc_tl()
121 …res = DispatchCommand(&req_data->drv->adapter, req->cmd, &req->length, req->length, data,&IoComple… in ti1610_ioctl_priv_proc_tl()
149 req->user_data_pointer, req->length, aval_data_size ); in ti1610_do_ioctl()
157 if( req->length > aval_data_size ) in ti1610_do_ioctl()
162 print_deb("ti1610_do_ioctl() - alloc %ld bytes\n", req->length ); in ti1610_do_ioctl()
163 kbuf = extra = os_memoryAlloc(NULL,req->length); in ti1610_do_ioctl()
165 …T:%s:%d ::kmalloc(%lu, %x) : %lu\n", __FUNCTION__, __LINE__, req->length, GFP_KERNEL, req->length); in ti1610_do_ioctl()
[all …]
Dioctl_utils.h47 int util_get_statistics(struct net_device *dev, ULONG *statistic_data, ULONG *length );
63 int util_get_bssid_list(struct net_device *dev, ULONG *data, ULONG *length );
65 int util_get_privacy_filter(struct net_device *dev, ULONG *data, ULONG *length );
67 int util_set_ssid(struct net_device *dev, void *buf, ULONG length); /* data - pointer to OS_802_11…
68 int util_get_ssid(struct net_device *dev, ULONG configMgr_param, void *data, ULONG *length);
90 int util_add_wep(struct net_device *dev, void *data, ULONG length);
91 int util_add_key(struct net_device *dev, void *data, ULONG length);
92 int util_remove_key(struct net_device *dev, void *data, ULONG length);
93 int util_remove_wep(struct net_device *dev, void *data, ULONG length);
94 int util_get_association_info(struct net_device *dev, ULONG *data, ULONG *length );
/system/wlan/ti/sta_dk_4_0_4_32/common/src/TNETW_Driver/TNETWIF/BusTxn/
Dwspi.c388 int WSPI_ReadSync (TI_HANDLE hWSPI, UINT32 address, UINT8* data, UINT32 length) in WSPI_ReadSync() argument
396 if (length == 0) in WSPI_ReadSync()
404 WSPI_ReadAsync (hWSPI, address, data, length, &cb, 1, 0); in WSPI_ReadSync()
407 timeout = WSPI_SYNC_OVER_ASYNC_TIMEOUT * length; in WSPI_ReadSync()
432 if (length == 0) in WSPI_ReadSync()
449 pWSPI->uCmd |= (length << WSPI_CMD_BYTE_LENGTH_OFFSET) & WSPI_CMD_BYTE_LENGTH; in WSPI_ReadSync()
486 ret |= SPI_ReadSync (pWSPI->hSPI, data, length); in WSPI_ReadSync()
523 int WSPI_ReadAsyncOld (TI_HANDLE hWSPI, UINT32 address, UINT8* data, UINT32 length, WSPI_CB_T* cb, … in WSPI_ReadAsyncOld() argument
528 if (length == 0) in WSPI_ReadAsyncOld()
552 pWSPI->uCmd |= (length << WSPI_CMD_BYTE_LENGTH_OFFSET) & WSPI_CMD_BYTE_LENGTH; in WSPI_ReadAsyncOld()
[all …]
Dwspi.h88 int WSPI_ReadAsync (TI_HANDLE hWSPI, UINT32 address, UINT8* data, UINT32 length, WSPI_CB_T* …
89 int WSPI_WriteAsync (TI_HANDLE hWSPI, UINT32 address, UINT8* data, UINT32 length, WSPI_CB_T* …
92 int WSPI_ReadSync (TI_HANDLE hWSPI, UINT32 address, UINT8* data, UINT32 length);
93 int WSPI_WriteSync (TI_HANDLE hWSPI, UINT32 address, UINT8* data, UINT32 length);
131 UINT32 length; /* save length of the buffer to be read */ member
/system/core/vold/
DProcessKiller.c38 int length; in ReadSymLink() local
46 length = readlink(path, link, PATH_MAX - 1); in ReadSymLink()
47 if (length <= 0) in ReadSymLink()
49 link[length] = 0; in ReadSymLink()
55 int length = strlen(mountPoint); in PathMatchesMountPoint() local
56 if (length > 1 && strncmp(path, mountPoint, length) == 0) in PathMatchesMountPoint()
59 if (mountPoint[length - 1] == '/') in PathMatchesMountPoint()
63 return (path[length] == 0 || path[length] == '/'); in PathMatchesMountPoint()
77 int length = read(fd, buffer, PATH_MAX - 1); in GetProcessName() local
78 buffer[length] = 0; in GetProcessName()
/system/wlan/ti/sta_dk_4_0_4_32/pform/linux/inc/
Dspi_api.h61 int SPI_Write (void* hSPI, UINT8 *data, UINT32 length, request_callback_t fCb, void *pCb, …
62 int SPI_Read (void* hSPI, UINT8 *data, UINT32 length, request_callback_t fCb, void *pCb, …
63 int SPI_WriteRead (void* hSPI, UINT8 *data, UINT32 length, UINT8 *rdata, UINT32 rlength, reque…
64 int SPI_WriteSync (void* hSPI, UINT8 *data, UINT32 length);
65 int SPI_ReadSync (void* hSPI, UINT8* data, UINT32 length);
/system/wlan/ti/sta_dk_4_0_4_32/common/src/TNETW_Driver/FW_Transfer/Rx_Xfer/
DRxXfer.c385 if (pRxXfer->rxDescriptor.length <= PLCP_HEADER_LENGTH || in rxXfer_ReadBody()
386 pRxXfer->rxDescriptor.length > (MAX_DATA_BODY_LENGTH + PLCP_HEADER_LENGTH)) in rxXfer_ReadBody()
390 pRxXfer->rxDescriptor.length)); in rxXfer_ReadBody()
394 pRxXfer->rxDescriptor.length = pRxXfer->rxDescriptor.length - PLCP_HEADER_LENGTH; in rxXfer_ReadBody()
405 … Recording, rxXfer_ReadBody (request for buffer), Length = 0x%x\n", pRxXfer->rxDescriptor.length)); in rxXfer_ReadBody()
426 uAlignToWord = 4 - (pRxXfer->rxDescriptor.length & 0x3); /* (&0x3) is equal to (% 4) */ in rxXfer_ReadBody()
436 pRxXfer->rxDescriptor.length + uAlignToWord + TNETWIF_READ_OFFSET_BYTES, in rxXfer_ReadBody()
443 pRxXfer->rxDescriptor.length, uAlignToWord)); in rxXfer_ReadBody()
447 pRxXfer->DbgStats.numBytesRead += pRxXfer->rxDescriptor.length; in rxXfer_ReadBody()
454 (UINT32)pRxXfer->rxDescriptor.length + uAlignToWord, in rxXfer_ReadBody()
[all …]
/system/wlan/ti/sta_dk_4_0_4_32/common/src/core/data_ctrl/Ctrl/4X/
DDeConcatenator.c305 CurrentMsduPtr->firstBDPtr->length = currentLength - sizeof(macAddress_t) + WLAN_HDR_LEN ; in deConcat_deConcatMsdu()
306 CurrentMsduPtr->dataLen = CurrentMsduPtr->firstBDPtr->length; in deConcat_deConcatMsdu()
354 buildMsduPtr->firstBDPtr->length = sizeof( dot11_header_t ) + sizeof(Wlan_LlcHeader_T); in deConcat_deConcatMsdu()
367 payloadBdPtr->length = currentLength - sizeof(macAddress_t) - sizeof(Wlan_LlcHeader_T); in deConcat_deConcatMsdu()
377 buildMsduPtr->dataLen = buildMsduPtr->firstBDPtr->length + payloadBdPtr->length; in deConcat_deConcatMsdu()
DConcatenator.c223 (*pReturnMsduPtr)->firstBDPtr->length = WLAN_HDR_LEN + WLAN_SNAP_HDR_LEN + in concat_concatMsduList()
322 msduPtr->firstBDPtr->length -= WLAN_CONCAT_HDR_OFFSET; in concat_replaceWlanHeader()
340 tmpPtr = (UINT8 *) ((UINT32)msduPtr->lastBDPtr->data + msduPtr->lastBDPtr->length + in concat_replaceWlanHeader()
345 msduPtr->lastBDPtr->length += numOfPadBytes; in concat_replaceWlanHeader()
/system/wlan/ti/sta_dk_4_0_4_32/common/src/core/rsn/
DadmCtrlWpa.c534 UINT8 length; in admCtrlWpa_getInfoElement() local
575 length = sizeof(wpaIePacket_t)-2; in admCtrlWpa_getInfoElement()
579 length -= 2; /* 2: capabilities + 4: keyMng suite, 2: keyMng count*/ in admCtrlWpa_getInfoElement()
584 length -= 6; /* 2: capabilities + 4: keyMng suite, 2: keyMng count*/ in admCtrlWpa_getInfoElement()
587 length -= 6; /* 4: unicast suite, 2: unicast count */ in admCtrlWpa_getInfoElement()
590 length -= 4; /* broadcast suite */ in admCtrlWpa_getInfoElement()
596 pWpaIePacket->length = length; in admCtrlWpa_getInfoElement()
597 *pLength = length+2; in admCtrlWpa_getInfoElement()
601 if (length>=WPA_IE_MIN_DEFAULT_LENGTH) in admCtrlWpa_getInfoElement()
606 if (length>=WPA_IE_MIN_KEY_MNG_SUITE_LENGTH(1)) in admCtrlWpa_getInfoElement()
[all …]
/system/core/libcutils/
Dmspace.c230 size_t length; in destroy_contiguous_mspace() local
237 length = cs->top - (char *)cs; in destroy_contiguous_mspace()
238 if (munmap((char *)cs, length) != 0) in destroy_contiguous_mspace()
239 return length; in destroy_contiguous_mspace()
Dstrdup8to16.c186 int length, size_t *out_len) in strcpylen8to16() argument
192 const char *end = utf8Str + length; /* This line */ in strcpylen8to16()
/system/wlan/ti/sta_dk_4_0_4_32/common/src/core/inc/
DsmeApi.h91 …veProbeRespBuffer(TI_HANDLE hSiteMgr, macAddress_t *bssid, UINT8 *pProbeRespBuffer, UINT32 length);
93 …Mgr_saveBeaconBuffer(TI_HANDLE hSiteMgr, macAddress_t *bssid, UINT8 *pBeaconBuffer, UINT32 length);
/system/core/libmincrypt/tools/
DDumpPublicKey.java110 if (args.length < 1) { in main()
115 for (int i = 0; i < args.length; i++) { in main()
122 System.out.println(i < args.length - 1 ? "," : ""); in main()
/system/extras/tests/framebuffer/
Drefresh.c98 info.red.offset, info.red.length, in main()
99 info.green.offset, info.green.length, in main()
100 info.blue.offset, info.blue.length in main()
/system/wlan/ti/sta_dk_4_0_4_32/CUDK/CLI/
Deth_utils.c80 int ethernet_utils_write_socket(int module_index, int length, unsigned char *buffer);
496 int ethernet_utils_write_socket(int module_index, int length, unsigned char *buffer) in ethernet_utils_write_socket() argument
503 result = write(SHARED_MEMORY_ETHERNET_SOCKET_ID(module_index), buffer, length); in ethernet_utils_write_socket()
507 if (result != length) in ethernet_utils_write_socket()
/system/wlan/ti/sta_dk_4_0_4_32/common/src/core/mlme/Assoc/
DassocSM.c132 TI_STATUS assoc_saveAssocReqMessage(assoc_t *pAssocSm, UINT8 *pAssocBuffer, UINT32 length);
523 UINT16 length=0; in assoc_recv() local
537 … while ((length < pFrame->content.assocRsp.rsnIeLen) && (pFrame->content.assocRsp.rsnIeLen < 255)) in assoc_recv()
539 if ((pRsnIe->hdr.eleLen + length + 2) > 255) { /* Dm: Security fix */ in assoc_recv()
541 … ("%s - Security Error: %u > 255\n", __FUNCTION__,(pRsnIe->hdr.eleLen + length + 2))); in assoc_recv()
544 curRsnData[0+length] = pRsnIe->hdr.eleId; in assoc_recv()
545 curRsnData[1+length] = pRsnIe->hdr.eleLen; in assoc_recv()
546 …os_memoryCopy(pHandle->hOs, &curRsnData[2+length], (void *)pRsnIe->rsnIeData, pRsnIe->hdr.eleLen); in assoc_recv()
547 length += pRsnIe->hdr.eleLen+2; in assoc_recv()
1704 TI_STATUS assoc_saveAssocRespMessage(assoc_t *pAssocSm, UINT8 *pAssocBuffer, UINT32 length) in assoc_saveAssocRespMessage() argument
[all …]
/system/wlan/ti/sta_dk_4_0_4_32/common/src/hal/FirmwareApi/
Dpublic_descriptors.h129 #define DoubleBufferDesc uint16 length; /* Length of payload, including headers. */ \
339 uint16 length; /* Length of payload (including headers)*/ member
/system/wlan/ti/sta_dk_4_0_4_32/CUDK/IPC/Linux/
Dipc_user.c165 ti_req->length = size; in IPC_DeviceIoControl()
188 …req.ifr_ifrn.ifrn_name, ti_req->cmd, ti_req->length, max_size, (void *) ti_req->user_data_pointer … in IPC_DeviceIoControl()
205 size = ti_req->length; in IPC_DeviceIoControl()
/system/core/sh/
Doutput.c109 open_mem(char *block, int length, struct output *file) in open_mem() argument
112 file->nleft = --length; in open_mem()
243 fmtstr(char *outbuf, size_t length, const char *fmt, ...) in fmtstr() argument
250 strout.nleft = length; in fmtstr()
256 outbuf[length - 1] = '\0'; in fmtstr()
/system/wlan/ti/sta_dk_4_0_4_32/common/src/hal/security/
DwhalWpa.c76 ("\nBdLen = %d\n", pCurrBd->length)); in whal_MsduContentDump()
78 HexDumpData((UINT8*)(pCurrBd->data+pCurrBd->dataOffset), pCurrBd->length); in whal_MsduContentDump()
80 msduLen -= pCurrBd->length; in whal_MsduContentDump()
/system/wlan/ti/sta_dk_4_0_4_32/common/src/core/data_ctrl/Rx/
Drx.c625 fieldPatterns[*lenFieldPatterns] = fieldPattern->length; in closeFieldPattern()
626 *lenFieldPatterns += sizeof(fieldPattern->length); in closeFieldPattern()
631 …Copy(pRxData->hOs, fieldPatterns + *lenFieldPatterns, fieldPattern->pattern, fieldPattern->length); in closeFieldPattern()
632 *lenFieldPatterns += fieldPattern->length; in closeFieldPattern()
637 …oryCopy(pRxData->hOs, fieldPatterns + *lenFieldPatterns, fieldPattern->mask, fieldPattern->length); in closeFieldPattern()
638 *lenFieldPatterns += fieldPattern->length; in closeFieldPattern()
641 …otal length = %d, pattern bit mask = %d.\n", __FUNCTION__, fieldPattern->length, *lenFieldPatterns… in closeFieldPattern()
716 fieldPattern.length = 0; in parseRxDataFilterRequest()
746 fieldPattern.pattern[fieldPattern.length++] = request->pattern[patternIter++]; in parseRxDataFilterRequest()
749 if (fieldPattern.offset + fieldPattern.length >= RX_DATA_FILTER_FILTER_BOUNDARY) in parseRxDataFilterRequest()
[all …]
/system/core/init/
Dproperty_service.c244 int fd, length; in write_peristent_property() local
447 int fd, length; in load_persistent_properties() local
461 length = read(fd, value, sizeof(value) - 1); in load_persistent_properties()
462 if (length >= 0) { in load_persistent_properties()
463 value[length] = 0; in load_persistent_properties()

1234