Lines Matching defs:total
112 size_t total = 0;
118 buf[total] = '0';
119 total++;
120 buf[total] = 'x';
121 total++;
122 buf[total] = '\0';
125 if (total + 3 > len) {
126 buf[total] = '\0';
129 buf[total] = digits[(data[idx] >> 4) & 0x0fU];
130 total++;
131 buf[total] = digits[data[idx] & 0x0fU];
132 total++;
134 buf[total] = '\0';
135 return total;
144 size_t total = 0;
154 if (total >= data_len) {
168 data[total] = (uint8_t)(((n0 & 0x0fU) << 4) | (n1 & 0x0fU));
169 total++;
172 return total;
731 int total;
734 total = data_len;
738 if (total > alloc_len) {
739 total = alloc_len;
740 data[total - 1] = '\0';
741 return total;
744 if (alloc_len - total < 1) {
746 return total;
748 len = snprintf((char *) data + total, alloc_len - total, "%s=%s", key, val);
749 total += len + 1;
751 return total;
785 int total;
798 total = data_len;
802 if (total > alloc_len) {
803 total = alloc_len;
804 data[total - 1] = '\0';
805 return total;
834 iscsi_append_text("CHAP_A", new_val, data, alloc_len, total);
839 total = iscsi_append_text("CHAP_A", new_val, data, alloc_len, total);
845 total = iscsi_append_text("CHAP_I", in_val, data, alloc_len, total);
853 total = iscsi_append_text("CHAP_C", in_val, data, alloc_len, total);
1000 total = iscsi_append_text("CHAP_N", conn->auth.muser, data,
1001 alloc_len, total);
1002 total = iscsi_append_text("CHAP_R", in_val, data, alloc_len, total);
1019 return total;