Lines Matching refs:hex
468 u8 hex[sizeof(bin) * 2 + 1]; in input_read() local
476 bin2hex(hex, bin, n); in input_read()
478 hex[2*n] = '\n'; in input_read()
480 return simple_read_from_buffer(buf, len, ppos, hex, 2*n + 1); in input_read()
494 u8 hex[TURRIS_MOX_MAX_MODULES * 2 + 1]; in output_read() local
495 u8 *p = hex; in output_read()
507 return simple_read_from_buffer(buf, len, ppos, hex, p - hex); in output_read()
515 u8 hex[sizeof(bin) * 2 + 1]; in output_write() local
523 res = simple_write_to_buffer(hex, sizeof(hex), &dummy, buf, len); in output_write()
527 if (len % 2 == 1 && hex[len - 1] != '\n') in output_write()
530 err = hex2bin(bin, hex, moxtet->count); in output_write()