Home
last modified time | relevance | path

Searched refs:reply (Results 1 – 25 of 45) sorted by relevance

12

/device/board/bearpi/bearpi_hm_micro/app/communication/wpa_cli/src/
Dwpa_cli_sample.c127 static int SendCtrlCommand(const char *cmd, char *reply, size_t *replyLen) in SendCtrlCommand() argument
130 wpa_ctrl_request(g_ctrlConn, cmd, strlen(cmd), reply, &len, 0); in SendCtrlCommand()
131 DumpString(reply, len, "SendCtrlCommand raw return"); in SendCtrlCommand()
132 if (len != 0 && !StrMatch(reply, WPA_CTRL_REQUEST_FAIL)) { in SendCtrlCommand()
151 char reply[100] = {0}; in TestNetworkConfig() local
152 size_t replyLen = sizeof(reply); in TestNetworkConfig()
155 ret += SendCtrlCommand(cmd, reply, &replyLen); in TestNetworkConfig()
156 replyLen = sizeof(reply); in TestNetworkConfig()
158 ret += SendCtrlCommand(cmd, reply, &replyLen); in TestNetworkConfig()
159 replyLen = sizeof(reply); in TestNetworkConfig()
[all …]
/device/board/bearpi/bearpi_hm_micro/app/setting/setting/src/main/cpp/
Dwpa_work.c70 static int SendCtrlCommand(const char *cmd, char *reply, size_t *replyLen) in SendCtrlCommand() argument
87 wpa_ctrl_request(ctrlConn, cmd, strlen(cmd), reply, &len, 0); in SendCtrlCommand()
88 DumpString(reply, len, "SendCtrlCommand raw return"); in SendCtrlCommand()
94 if (len != 0 && !StrMatch(reply, WPA_CTRL_REQUEST_FAIL)) { in SendCtrlCommand()
392 char reply[100] = {0}; in TestNetworkConfig() local
393 size_t replyLen = sizeof(reply); in TestNetworkConfig()
400 ret += SendCtrlCommand(cmd, reply, &replyLen); in TestNetworkConfig()
401 replyLen = sizeof(reply); in TestNetworkConfig()
407 ret += SendCtrlCommand(cmd, reply, &replyLen); in TestNetworkConfig()
408 replyLen = sizeof(reply); in TestNetworkConfig()
[all …]
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/u-boot-v2019.07/patch/
DCVE-2019-14196.patch10 This patch adds a check to rpc_pkt.u.reply.data at nfs_lookup_reply.
27 + if (((uchar *)&(rpc_pkt.u.reply.data[0]) - (uchar *)(&rpc_pkt) + NFS_FHSIZE) > len)
29 memcpy(filefh, rpc_pkt.u.reply.data + 1, NFS_FHSIZE);
31 filefh3_length = ntohl(rpc_pkt.u.reply.data[1]);
34 + if (((uchar *)&(rpc_pkt.u.reply.data[0]) - (uchar *)(&rpc_pkt) + filefh3_length) > len)
36 memcpy(filefh, rpc_pkt.u.reply.data + 2, filefh3_length);
DCVE-2019-14195.patch10 This patch adds a check to rpc_pkt.u.reply.data at nfs_readlink_reply.
25 rlen = ntohl(rpc_pkt.u.reply.data[1 + nfsv3_data_offset]);
27 + if (((uchar *)&(rpc_pkt.u.reply.data[0]) - (uchar *)(&rpc_pkt) + rlen) > len)
30 if (*((char *)&(rpc_pkt.u.reply.data[2 + nfsv3_data_offset])) != '/') {
DCVE-2019-14194-14198.patch10 This patch adds a check to rpc_pkt.u.reply.data at nfs_read_reply.
24 &(rpc_pkt.u.reply.data[4 + nfsv3_data_offset]);
27 + if (((uchar *)&(rpc_pkt.u.reply.data[0]) - (uchar *)(&rpc_pkt) + rlen) > len)
/device/board/bearpi/bearpi_hm_micro/docs/device-dev/
D编写一个点亮LED灯程序.md95 …ispatch(struct HdfDeviceIoClient *client, int cmdCode, struct HdfSBuf *data, struct HdfSBuf *reply)
139 /* 把LED的状态值写入reply, 可被带至用户程序 */
140 if (!HdfSbufWriteInt32(reply, status))
405 struct HdfSBuf *reply = HdfSBufObtainDefaultSize();
406 if (reply == NULL)
408 printf("fail to obtain sbuf reply!\r\n");
420 ret = serv->dispatcher->Dispatch(&serv->object, LED_WRITE_READ, data, reply);
429 if (!HdfSbufReadInt32(reply, &replyData))
431 printf("fail to get service call reply!\r\n");
435 printf("\r\nGet reply is: %d\r\n", replyData);
[all …]
D通过JS应用控制LED灯.md97 struct HdfSBuf *reply = HdfSbufObtainDefaultSize();
99 if (data == NULL || reply == NULL) {
108 HdfSbufRecycle(reply);
112 ret = serv->dispatcher->Dispatch(&serv->object, LED_WRITE_READ, data, reply);
117 HdfSbufRecycle(reply);
120 if (!HdfSbufReadInt32(reply, val))
122 HILOG_ERROR(HILOG_MODULE_ACE,"fail to get service call reply\n");
125 HdfSbufRecycle(reply);
128 HILOG_ERROR(HILOG_MODULE_ACE,"Get reply is: %d\n", val);
131 HdfSbufRecycle(reply);
/device/soc/nxp/hardware/display/src/display_layer/
Ddisplay_layer.c176 struct HdfSBuf *reply = NULL; in GetInfo() local
187 reply = HdfSbufObtainDefaultSize(); in GetInfo()
188 if (reply == NULL) { in GetInfo()
196 HdfSbufRecycle(reply); in GetInfo()
199 if (DispCmdSend(DISP_CMD_GET_PANELINFO, data, reply) != DISPLAY_SUCCESS) { in GetInfo()
202 HdfSbufRecycle(reply); in GetInfo()
206 …if (!HdfSbufReadBuffer(reply, (const void **)(&tmpInfo), &dataSize) || dataSize != sizeof(struct D… in GetInfo()
209 HdfSbufRecycle(reply); in GetInfo()
215 HdfSbufRecycle(reply); in GetInfo()
219 HdfSbufRecycle(reply); in GetInfo()
/device/soc/nxp/hardware/display/src/display_device/drm/
Ddrm_vsync_worker.cpp91 sq = vblank.reply.sequence; in WaitNextVBlank()
92 return (uint64_t)(vblank.reply.tval_sec * SEC_TO_NSEC + vblank.reply.tval_usec * USEC_TO_NSEC); in WaitNextVBlank()
Ddrm_display.cpp184 *ns = static_cast<uint64_t>(vbl.reply.tval_sec * nPerS + vbl.reply.tval_usec * nPerUS); in WaitForVBlank()
/device/soc/allwinner/t507/hardware/display/src/display_device/
Ddrm_vsync_worker.cpp88 sq = vblank.reply.sequence; in WaitNextVBlank()
89 return (uint64_t)(vblank.reply.tval_sec * SEC_TO_NSEC + vblank.reply.tval_usec * USEC_TO_NSEC); in WaitNextVBlank()
Ddrm_display.cpp168 *ns = static_cast<uint64_t>(vbl.reply.tval_sec * nPerS + vbl.reply.tval_usec * nPerUS); in WaitForVBlank()
/device/soc/hisilicon/common/hal/display/source/display_device/src/drm/
Ddrm_vsync_worker.cpp88 sq = vblank.reply.sequence; in WaitNextVBlank()
89 …return static_cast<uint64_t>(vblank.reply.tval_sec * SEC_TO_NSEC + vblank.reply.tval_usec * USEC_T… in WaitNextVBlank()
/device/soc/amlogic/a311d/hardware/display/src/display_device/
Ddrm_vsync_worker.cpp88 sq = vblank.reply.sequence; in WaitNextVBlank()
89 return (uint64_t)(vblank.reply.tval_sec * SEC_TO_NSEC + vblank.reply.tval_usec * USEC_TO_NSEC); in WaitNextVBlank()
Ddrm_display.cpp184 *ns = static_cast<uint64_t>(vbl.reply.tval_sec * nPerS + vbl.reply.tval_usec * nPerUS); in WaitForVBlank()
/device/soc/rockchip/rk3566/hardware/display/src/display_device/
Ddrm_vsync_worker.cpp91 sq = vblank.reply.sequence; in WaitNextVBlank()
92 return (uint64_t)(vblank.reply.tval_sec * SEC_TO_NSEC + vblank.reply.tval_usec * USEC_TO_NSEC); in WaitNextVBlank()
/device/soc/rockchip/rk3568/hardware/display/src/display_device/
Ddrm_vsync_worker.cpp91 sq = vblank.reply.sequence; in WaitNextVBlank()
92 return (uint64_t)(vblank.reply.tval_sec * SEC_TO_NSEC + vblank.reply.tval_usec * USEC_TO_NSEC); in WaitNextVBlank()
/device/soc/rockchip/common/hardware/display/src/display_device/
Ddrm_vsync_worker.cpp93 sq = vblank.reply.sequence; in WaitNextVBlank()
94 … return (uint64_t)(vblank.reply.tval_sec * SEC_TO_NSEC + vblank.reply.tval_usec * USEC_TO_NSEC); in WaitNextVBlank()
/device/soc/rockchip/rk3399/hardware/display/src/display_device/
Ddrm_vsync_worker.cpp91 sq = vblank.reply.sequence; in WaitNextVBlank()
92 return (uint64_t)(vblank.reply.tval_sec * SEC_TO_NSEC + vblank.reply.tval_usec * USEC_TO_NSEC); in WaitNextVBlank()
/device/soc/rockchip/rk3588/hardware/display/src/display_device/
Ddrm_vsync_worker.cpp93 sq = vblank.reply.sequence; in WaitNextVBlank()
94 return (uint64_t)(vblank.reply.tval_sec * SEC_TO_NSEC + vblank.reply.tval_usec * USEC_TO_NSEC); in WaitNextVBlank()
/device/board/bearpi/bearpi_hm_micro/hal/display/
Ddisplay_gralloc.c174 struct HdfSBuf *reply = NULL; in GetInfo() local
185 reply = HdfSbufObtainDefaultSize(); in GetInfo()
186 if (reply == NULL) { in GetInfo()
195 if (DispCmdSend(DISP_CMD_GET_PANELINFO, data, reply) != DISPLAY_SUCCESS) { in GetInfo()
200 …if (!HdfSbufReadBuffer(reply, (const void **)(&tmpInfo), &dataSize) || dataSize != sizeof(struct D… in GetInfo()
209 HdfSbufRecycle(reply); in GetInfo()
214 HdfSbufRecycle(reply); in GetInfo()
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/os_dep/linux/
Drtw_cfgvendor.c346 int reply; in rtw_cfgvendor_get_feature_set() local
348 reply = rtw_dev_get_feature_set(wdev_to_ndev(wdev)); in rtw_cfgvendor_get_feature_set()
350 err = rtw_cfgvendor_send_cmd_reply(wiphy, wdev_to_ndev(wdev), &reply, sizeof(int)); in rtw_cfgvendor_get_feature_set()
364 int *reply; in rtw_cfgvendor_get_feature_set_matrix() local
367 reply = rtw_dev_get_feature_set_matrix(wdev_to_ndev(wdev), &num); in rtw_cfgvendor_get_feature_set_matrix()
369 if (!reply) { in rtw_cfgvendor_get_feature_set_matrix()
389 nla_put_u32(skb, ANDR_WIFI_ATTRIBUTE_FEATURE_SET, reply[i]); in rtw_cfgvendor_get_feature_set_matrix()
397 rtw_mfree((u8 *)reply, sizeof(int) * num); in rtw_cfgvendor_get_feature_set_matrix()
458 dhd_pno_gscan_capabilities_t *reply = NULL; in rtw_cfgvendor_gscan_get_capabilities() local
462 reply = dhd_dev_pno_get_gscan(bcmcfg_to_prmry_ndev(cfg), in rtw_cfgvendor_gscan_get_capabilities()
[all …]
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/bcmdhd/
Dwl_cfgvendor.c152 int reply; in wl_cfgvendor_get_feature_set() local
154 reply = dhd_dev_get_feature_set(bcmcfg_to_prmry_ndev(cfg)); in wl_cfgvendor_get_feature_set()
157 &reply, sizeof(int)); in wl_cfgvendor_get_feature_set()
171 int reply; in wl_cfgvendor_get_feature_set_matrix() local
187 reply = dhd_dev_get_feature_set_matrix(bcmcfg_to_prmry_ndev(cfg), i); in wl_cfgvendor_get_feature_set_matrix()
188 if (reply != WIFI_FEATURE_INVALID) { in wl_cfgvendor_get_feature_set_matrix()
189 nla_put_u32(skb, ANDR_WIFI_ATTRIBUTE_FEATURE_SET, reply); in wl_cfgvendor_get_feature_set_matrix()
343 dhd_pno_gscan_capabilities_t *reply = NULL; in wl_cfgvendor_gscan_get_capabilities() local
347 reply = dhd_dev_pno_get_gscan(bcmcfg_to_prmry_ndev(cfg), in wl_cfgvendor_gscan_get_capabilities()
349 if (!reply) { in wl_cfgvendor_gscan_get_capabilities()
[all …]
/device/qemu/riscv32_virt/liteos_m/board/hardware/adapter/
Dhdf_syscall_adapter.c24 …AdapterDispatch (struct HdfObject *service, int cmdId, struct HdfSBuf *data, struct HdfSBuf *reply) in HdfSyscallAdapterDispatch() argument
40 return adapter->client.device->service->Dispatch(&adapter->client, cmdId, data, reply); in HdfSyscallAdapterDispatch()
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/
Ddrm_vblank.c1662 vblwait->reply.sequence = seq; in drm_queue_vblank_event()
1666 vblwait->reply.sequence = req_seq; in drm_queue_vblank_event()
1707 …m_wait_vblank_reply(struct drm_device *dev, unsigned int pipe, struct drm_wait_vblank_reply *reply) in drm_wait_vblank_reply() argument
1717 reply->sequence = drm_vblank_count_and_time(dev, pipe, &now); in drm_wait_vblank_reply()
1719 reply->tval_sec = (u32)ts.tv_sec; in drm_wait_vblank_reply()
1720 reply->tval_usec = ts.tv_nsec / 0x3e8; in drm_wait_vblank_reply()
1782 drm_wait_vblank_reply(dev, pipe, &vblwait->reply); in drm_wait_vblank_ioctl()
1844 drm_wait_vblank_reply(dev, pipe, &vblwait->reply); in drm_wait_vblank_ioctl()
1846 drm_dbg_core(dev, "crtc %d returning %u to client\n", pipe, vblwait->reply.sequence); in drm_wait_vblank_ioctl()

12