Lines Matching refs:result

35 	int result;  in start_xfer_wait()  local
50 result = write(fd, cmd, len); in start_xfer_wait()
51 if (result != len) { in start_xfer_wait()
66 result = poll(p, 1, msec); in start_xfer_wait()
67 if (result < 0) { in start_xfer_wait()
69 result = -1; in start_xfer_wait()
73 if (result == 0) { in start_xfer_wait()
87 result = -1; in start_xfer_wait()
92 result = read(p[0].fd, buf, 1); in start_xfer_wait()
93 if (result == -1 || result != 1) { in start_xfer_wait()
96 result = -1; in start_xfer_wait()
99 if (result == 1 && buf[0] == 0x04) { in start_xfer_wait()
104 result = read(p[0].fd, buf + count, 2); in start_xfer_wait()
105 if (result == -1 || result != 2) { in start_xfer_wait()
110 count += result; in start_xfer_wait()
114 result = -1; in start_xfer_wait()
119 result = read(p[0].fd, buf + count, params_len); in start_xfer_wait()
120 if (result == -1) { in start_xfer_wait()
125 count += result; in start_xfer_wait()
126 params_len -= result; in start_xfer_wait()
132 if (result >= 0) { in start_xfer_wait()
163 return result; in start_xfer_wait()
170 int result; in h4_download_patch() local
185 result = start_xfer_wait(fd, buf, total_len, 1000, 0, resp, &rlen); in h4_download_patch()
186 if (result < 0) { in h4_download_patch()
233 int result; in h4_hci_reset() local
238 result = start_xfer_wait(fd, cmd, sizeof(cmd), 1000, 0, NULL, 0); in h4_hci_reset()
239 if (result < 0) { in h4_hci_reset()
252 int result; in h4_read_local_ver() local
254 result = start_xfer_wait(fd, cmd, sizeof(cmd), 1000, 0, in h4_read_local_ver()
256 if (result < 0) { in h4_read_local_ver()
278 int result; in h4_vendor_read_rom_ver() local
280 result = start_xfer_wait(fd, cmd, sizeof(cmd), 1000, 0, in h4_vendor_read_rom_ver()
282 if (result < 0) { in h4_vendor_read_rom_ver()