Lines Matching refs:arg
453 spinel_ipv6addr_t *arg = va_arg(args->obj, spinel_ipv6addr_t *); in spinel_datatype_vunpack_() local
454 if (arg) in spinel_datatype_vunpack_()
456 memcpy(arg, data_in, sizeof(spinel_ipv6addr_t)); in spinel_datatype_vunpack_()
480 spinel_eui64_t *arg = va_arg(args->obj, spinel_eui64_t *); in spinel_datatype_vunpack_() local
481 if (arg) in spinel_datatype_vunpack_()
483 memcpy(arg, data_in, sizeof(spinel_eui64_t)); in spinel_datatype_vunpack_()
507 spinel_eui48_t *arg = va_arg(args->obj, spinel_eui48_t *); in spinel_datatype_vunpack_() local
508 if (arg) in spinel_datatype_vunpack_()
510 memcpy(arg, data_in, sizeof(spinel_eui48_t)); in spinel_datatype_vunpack_()
566 char *arg = va_arg(args->obj, char *); in spinel_datatype_vunpack_() local
568 if (arg) in spinel_datatype_vunpack_()
571 memcpy(arg, data_in, len); in spinel_datatype_vunpack_()
788 bool arg = (bool)va_arg(args->obj, int); in spinel_datatype_vpack_() local
793 data_out[0] = (arg != false); in spinel_datatype_vpack_()
808 uint8_t arg = (uint8_t)va_arg(args->obj, int); in spinel_datatype_vpack_() local
813 data_out[0] = arg; in spinel_datatype_vpack_()
828 uint16_t arg = (uint16_t)va_arg(args->obj, int); in spinel_datatype_vpack_() local
833 data_out[1] = (arg >> 8) & 0xff; in spinel_datatype_vpack_()
834 data_out[0] = (arg >> 0) & 0xff; in spinel_datatype_vpack_()
849 uint32_t arg = (uint32_t)va_arg(args->obj, int); in spinel_datatype_vpack_() local
854 data_out[3] = (arg >> 24) & 0xff; in spinel_datatype_vpack_()
855 data_out[2] = (arg >> 16) & 0xff; in spinel_datatype_vpack_()
856 data_out[1] = (arg >> 8) & 0xff; in spinel_datatype_vpack_()
857 data_out[0] = (arg >> 0) & 0xff; in spinel_datatype_vpack_()
872 uint64_t arg = va_arg(args->obj, uint64_t); in spinel_datatype_vpack_() local
878 data_out[7] = (arg >> 56) & 0xff; in spinel_datatype_vpack_()
879 data_out[6] = (arg >> 48) & 0xff; in spinel_datatype_vpack_()
880 data_out[5] = (arg >> 40) & 0xff; in spinel_datatype_vpack_()
881 data_out[4] = (arg >> 32) & 0xff; in spinel_datatype_vpack_()
882 data_out[3] = (arg >> 24) & 0xff; in spinel_datatype_vpack_()
883 data_out[2] = (arg >> 16) & 0xff; in spinel_datatype_vpack_()
884 data_out[1] = (arg >> 8) & 0xff; in spinel_datatype_vpack_()
885 data_out[0] = (arg >> 0) & 0xff; in spinel_datatype_vpack_()
899 spinel_ipv6addr_t *arg = va_arg(args->obj, spinel_ipv6addr_t *); in spinel_datatype_vpack_() local
904 *(spinel_ipv6addr_t *)data_out = *arg; in spinel_datatype_vpack_()
918 spinel_eui48_t *arg = va_arg(args->obj, spinel_eui48_t *); in spinel_datatype_vpack_() local
923 *(spinel_eui48_t *)data_out = *arg; in spinel_datatype_vpack_()
937 spinel_eui64_t *arg = va_arg(args->obj, spinel_eui64_t *); in spinel_datatype_vpack_() local
942 *(spinel_eui64_t *)data_out = *arg; in spinel_datatype_vpack_()
956 uint32_t arg = va_arg(args->obj, uint32_t); in spinel_datatype_vpack_() local
960 require_action(arg < SPINEL_MAX_UINT_PACKED, bail, { in spinel_datatype_vpack_()
965 encoded_size = spinel_packed_uint_encode(data_out, data_len_max, arg); in spinel_datatype_vpack_()
1016 const uint8_t *arg = va_arg(args->obj, const uint8_t *); in spinel_datatype_vpack_() local
1037 if (data_out && arg) in spinel_datatype_vpack_()
1039 memcpy(data_out, arg, data_size_arg); in spinel_datatype_vpack_()