Lines Matching refs:pos
367 int fd, rc, pos = 0;
382 msg[pos++] = WCNSS_USR_SERIAL_NUM >> BYTE_1;
383 msg[pos++] = WCNSS_USR_SERIAL_NUM >> BYTE_0;
384 msg[pos++] = serial_num >> BYTE_3;
385 msg[pos++] = serial_num >> BYTE_2;
386 msg[pos++] = serial_num >> BYTE_1;
387 msg[pos++] = serial_num >> BYTE_0;
389 if (write(fd, msg, pos) < 0) {
399 pos = 0;
400 msg[pos++] = WCNSS_USR_WLAN_MAC_ADDR >> BYTE_1;
401 msg[pos++] = WCNSS_USR_WLAN_MAC_ADDR >> BYTE_0;
402 msg[pos++] = wlan_nv_mac_addr[0];
403 msg[pos++] = wlan_nv_mac_addr[1];
404 msg[pos++] = wlan_nv_mac_addr[2];
405 msg[pos++] = wlan_nv_mac_addr[3];
406 msg[pos++] = wlan_nv_mac_addr[4];
407 msg[pos++] = wlan_nv_mac_addr[5];
412 if (write(fd, msg, pos) < 0) {
420 pos = 0;
421 msg[pos++] = WCNSS_USR_HAS_CAL_DATA >> BYTE_1;
422 msg[pos++] = WCNSS_USR_HAS_CAL_DATA >> BYTE_0;
438 msg[pos++] = 1;
440 if (write(fd, msg, pos) < 0) {
452 msg[pos++] = 0;
453 if (write(fd, msg, pos) < 0)