Lines Matching refs:buffer
124 hci_hmode2str(int mode, char *buffer, int size) in hci_hmode2str() argument
132 if (buffer != NULL && size > 0) { in hci_hmode2str()
135 memset(buffer, 0, size); in hci_hmode2str()
138 int len = strlen(buffer); in hci_hmode2str()
143 strncat(buffer, t[n], size - len); in hci_hmode2str()
147 return (buffer); in hci_hmode2str()
2432 hci_commands2str(uint8_t *commands, char *buffer, int size) in hci_commands2str() argument
2896 if (buffer != NULL && size > 0) { in hci_commands2str()
2899 memset(buffer, 0, size); in hci_commands2str()
2905 len0 = strlen(buffer); in hci_commands2str()
2912 buffer[len0 - 1] = '\n'; in hci_commands2str()
2916 strncat(buffer, t[n][i], size - len0); in hci_commands2str()
2923 return (buffer); in hci_commands2str()
2927 hci_features2str(uint8_t *features, char *buffer, int size) in hci_features2str() argument
3011 if (buffer != NULL && size > 0) { in hci_features2str()
3014 memset(buffer, 0, size); in hci_features2str()
3020 len0 = strlen(buffer); in hci_features2str()
3027 buffer[len0 - 1] = '\n'; in hci_features2str()
3031 strncat(buffer, t[n][i], size - len0); in hci_features2str()
3037 return (buffer); in hci_features2str()
3041 hci_le_features2str(uint8_t *features, char *buffer, int size) in hci_le_features2str() argument
3125 if (buffer != NULL && size > 0) { in hci_le_features2str()
3128 memset(buffer, 0, size); in hci_le_features2str()
3134 len0 = strlen(buffer); in hci_le_features2str()
3141 buffer[len0 - 1] = '\n'; in hci_le_features2str()
3145 strncat(buffer, t[n][i], size - len0); in hci_le_features2str()
3151 return (buffer); in hci_le_features2str()
3261 static char buffer[MAXHOSTNAMELEN]; in hci_bdaddr2str() local
3265 buffer[0] = '*'; in hci_bdaddr2str()
3266 buffer[1] = 0; in hci_bdaddr2str()
3268 return (buffer); in hci_bdaddr2str()
3273 strlcpy(buffer, he->h_name, sizeof(buffer)); in hci_bdaddr2str()
3275 return (buffer); in hci_bdaddr2str()
3278 bt_ntoa(ba, buffer); in hci_bdaddr2str()
3280 return (buffer); in hci_bdaddr2str()
3326 hci_le_chanmap2str(uint8_t *map, char *buffer, int size) in hci_le_chanmap2str() argument
3329 if (buffer != NULL && size > 0) { in hci_le_chanmap2str()
3332 memset(buffer, 0, size); in hci_le_chanmap2str()
3339 len0 = strlen(buffer); in hci_le_chanmap2str()
3346 buffer[len0 - 1] = '\n'; in hci_le_chanmap2str()
3356 buffer, in hci_le_chanmap2str()
3365 return (buffer); in hci_le_chanmap2str()