Lines Matching defs:nibble
351 * Write nibble (4-bit) data
354 pms_alps_cm_write_nibble(pckbport_tag_t tag, pckbport_slot_t slot, uint8_t nibble)
362 sendparam = alps_v7_nibble_command_data_arr[nibble].sendparam;
363 receive= alps_v7_nibble_command_data_arr[nibble].receive;
364 cmd[0] = alps_v7_nibble_command_data_arr[nibble].command;
367 aprint_error("send nibble error: %d\n", res);
370 cmd[1] = alps_v7_nibble_command_data_arr[nibble].data;
372 aprint_error("send nibble error: %d\n", res);
376 aprint_error("send nibble error: %d\n", res);
390 uint8_t nibble;
398 nibble = (reg >> 12) & __BITS(3, 0);
399 if ((res = pms_alps_cm_write_nibble(tag, slot, nibble)) != 0) {
402 nibble = (reg >> 8) & __BITS(3, 0);
403 if ((res = pms_alps_cm_write_nibble(tag, slot, nibble)) != 0) {
406 nibble = (reg >> 4) & __BITS(3, 0);
407 if ((res = pms_alps_cm_write_nibble(tag, slot, nibble)) != 0) {
410 nibble = (reg >> 0) & __BITS(3, 0);
411 if ((res = pms_alps_cm_write_nibble(tag, slot, nibble)) != 0) {
461 uint8_t nibble;
467 nibble = __SHIFTOUT(val, __BITS(7, 4));
468 if ((res = pms_alps_cm_write_nibble(tag, slot, nibble)) != 0) {
472 nibble = __SHIFTOUT(val, __BITS(3, 0));
473 if ((res = pms_alps_cm_write_nibble(tag, slot, nibble)) != 0) {
655 uint8_t nibble;
678 nibble = __SHIFTOUT(val, __BITS(7, 4));
679 if ((res = pms_alps_cm_write_nibble(psc->sc_kbctag, psc->sc_kbcslot, nibble)) != 0) {
682 nibble = __SHIFTOUT(val, __BITS(3, 0));
683 if ((res = pms_alps_cm_write_nibble(psc->sc_kbctag, psc->sc_kbcslot, nibble)) != 0) {