Home
last modified time | relevance | path

Searched refs:tbuf (Results 1 – 18 of 18) sorted by relevance

/openbmc/phosphor-bmc-code-mgmt/i2c-vr/mps/
H A Dmp297x.cpp104 std::vector<uint8_t> tbuf; in checkId() local
107 tbuf = buildByteVector(PMBusCmd::page, MPSPage::page0); in checkId()
108 if (!i2cInterface.sendReceive(tbuf, rbuf)) in checkId()
114 tbuf = buildByteVector(idCmd); in checkId()
116 if (!i2cInterface.sendReceive(tbuf, rbuf)) in checkId()
141 std::vector<uint8_t> tbuf; in isPasswordUnlock() local
144 tbuf = buildByteVector(PMBusCmd::page, MPSPage::page0); in isPasswordUnlock()
145 if (!i2cInterface.sendReceive(tbuf, rbuf)) in isPasswordUnlock()
151 tbuf = buildByteVector(PMBusCmd::statusCML); in isPasswordUnlock()
154 if (!i2cInterface.sendReceive(tbuf, rbuf)) in isPasswordUnlock()
[all …]
H A Dmpx9xx.cpp145 std::vector<uint8_t> tbuf; in checkId() local
148 tbuf = buildByteVector(PMBusCmd::page, page); in checkId()
149 if (!i2cInterface.sendReceive(tbuf, rbuf)) in checkId()
155 tbuf = buildByteVector(idCmd); in checkId()
157 if (!i2cInterface.sendReceive(tbuf, rbuf)) in checkId()
179 std::vector<uint8_t> tbuf; in unlockWriteProtect() local
182 tbuf = buildByteVector(PMBusCmd::page, MPSPage::page0); in unlockWriteProtect()
183 if (!i2cInterface.sendReceive(tbuf, rbuf)) in unlockWriteProtect()
189 tbuf = buildByteVector(PMBusCmd::writeProtect, unlockWriteProtectData); in unlockWriteProtect()
190 if (!i2cInterface.sendReceive(tbuf, rbuf)) in unlockWriteProtect()
[all …]
H A Dmp5998.cpp86 std::vector<uint8_t> tbuf; in checkId() local
89 tbuf = buildByteVector(PMBusCmd::page, MPSPage::page0); in checkId()
90 if (!i2cInterface.sendReceive(tbuf, rbuf)) in checkId()
113 tbuf = buildByteVector(idCmd); in checkId()
116 if (!i2cInterface.sendReceive(tbuf, rbuf)) in checkId()
147 std::vector<uint8_t> tbuf; in unlockPasswordProtection() local
150 tbuf = buildByteVector(PMBusCmd::page, MPSPage::page0); in unlockPasswordProtection()
151 if (!i2cInterface.sendReceive(tbuf, rbuf)) in unlockPasswordProtection()
157 tbuf = buildByteVector(MP5998Cmd::passwordReg, passwordData); in unlockPasswordProtection()
158 if (!i2cInterface.sendReceive(tbuf, rbuf)) in unlockPasswordProtection()
[all …]
H A Dmp2x6xx.cpp126 std::vector<uint8_t> tbuf; in checkId() local
128 tbuf = buildByteVector(PMBusCmd::page, MPSPage::page0); in checkId()
129 if (!i2cInterface.sendReceive(tbuf, rbuf)) in checkId()
135 tbuf = {cmd}; in checkId()
138 if (!i2cInterface.sendReceive(tbuf, rbuf)) in checkId()
159 std::vector<uint8_t> tbuf; in unlockWriteProtect() local
162 tbuf = buildByteVector(PMBusCmd::page, MPSPage::page0); in unlockWriteProtect()
163 if (!i2cInterface.sendReceive(tbuf, rbuf)) in unlockWriteProtect()
169 tbuf = buildByteVector(PMBusCmd::writeProtect, disableWriteProtect); in unlockWriteProtect()
170 if (!i2cInterface.sendReceive(tbuf, rbuf)) in unlockWriteProtect()
[all …]
/openbmc/phosphor-bmc-code-mgmt/i2c-vr/tda38640a/
H A Dtda38640a.cpp62 std::vector<uint8_t> tbuf; in getUserRemainingWrites() local
72 tbuf = buildByteVector(TDA38640ACmd::userWrRemain); in getUserRemainingWrites()
74 if (!i2cInterface.sendReceive(tbuf, rbuf)) in getUserRemainingWrites()
88 std::vector<uint8_t> tbuf; in setPage() local
91 tbuf = buildByteVector(TDA38640ACmd::pageReg, page); in setPage()
92 if (!i2cInterface.sendReceive(tbuf, rbuf)) in setPage()
102 std::vector<uint8_t> tbuf; in getDeviceRevision() local
111 tbuf = buildByteVector(TDA38640ACmd::revisionReg); in getDeviceRevision()
113 if (!i2cInterface.sendReceive(tbuf, rbuf)) in getDeviceRevision()
126 std::vector<uint8_t> tbuf; in getCRC() local
[all …]
/openbmc/phosphor-bmc-code-mgmt/i2c-vr/isl69269/
H A Disl69269.cpp130 uint8_t tbuf[defaultBufferSize] = {0}; in dmaReadWrite() local
135 tbuf[0] = regDMAAddr; in dmaReadWrite()
136 std::memcpy(&tbuf[1], reg, 2); in dmaReadWrite()
139 if (!(co_await i2cInterface.sendReceive(tbuf, tlen, rbuf, rlen))) in dmaReadWrite()
150 tbuf[0] = regDMAData; in dmaReadWrite()
151 if (!(co_await i2cInterface.sendReceive(tbuf, tlen, resp, rlen))) in dmaReadWrite()
163 uint8_t tbuf[defaultBufferSize] = {0}; in getRemainingWrites() local
166 tbuf[0] = in getRemainingWrites()
168 tbuf[1] = 0x00; in getRemainingWrites()
169 if (!(co_await dmaReadWrite(tbuf, rbuf))) in getRemainingWrites()
[all …]
/openbmc/phosphor-bmc-code-mgmt/i2c-vr/xdpe1x2xx/
H A Dxdpe1x2xx.cpp80 uint8_t tbuf[16] = {0}; in getDeviceId() local
81 tbuf[0] = PMBusICDeviceID; in getDeviceId()
82 tbuf[1] = 2; in getDeviceId()
87 if (!(co_await this->i2cInterface.sendReceive(tbuf, tSize, rbuf, rSize))) in getDeviceId()
668 uint8_t tbuf[16] = {0}; in getScratchPadAddress() local
671 tbuf[0] = 0x02; in getScratchPadAddress()
672 tbuf[1] = 0x00; in getScratchPadAddress()
673 tbuf[2] = 0x00; in getScratchPadAddress()
674 tbuf[3] = 0x00; in getScratchPadAddress()
676 if (!(co_await mfrFWcmd(MFRFwCmdGetHWAddress, MFRGetHWAddressWaitTime, tbuf, in getScratchPadAddress()
/openbmc/u-boot/cmd/
H A Dubi.c316 void *tbuf; in ubi_volume_read() local
352 tbuf = malloc_cache_aligned(tbuf_size); in ubi_volume_read()
353 if (!tbuf) { in ubi_volume_read()
367 err = ubi_eba_read_leb(ubi, vol, lnum, tbuf, off, len, 0); in ubi_volume_read()
382 memcpy(buf, tbuf, len); in ubi_volume_read()
391 free(tbuf); in ubi_volume_read()
/openbmc/u-boot/common/
H A Dusb.c799 unsigned char *tbuf; in usb_string() local
806 tbuf = &mybuf[0]; in usb_string()
810 err = usb_string_sub(dev, 0, 0, tbuf); in usb_string()
815 } else if (tbuf[0] < 4) { in usb_string()
820 dev->string_langid = tbuf[2] | (tbuf[3] << 8); in usb_string()
828 err = usb_string_sub(dev, dev->string_langid, index, tbuf); in usb_string()
836 if (tbuf[u+1]) /* high byte */ in usb_string()
839 buf[idx++] = tbuf[u]; in usb_string()
/openbmc/qemu/tests/tcg/multiarch/linux/
H A Dlinux-test.c83 struct utimbuf tbuf; in test_file() local
147 tbuf.actime = 1001; in test_file()
148 tbuf.modtime = 1000; in test_file()
150 chk_error(utime("file2", &tbuf)); in test_file()
/openbmc/ipmitool/lib/
H A Dipmi_sel.c239 static char tbuf[40]; in ipmi_sel_timestamp() local
241 memset(tbuf, 0, 40); in ipmi_sel_timestamp()
242 strftime(tbuf, sizeof(tbuf), "%m/%d/%Y %H:%M:%S", gmtime(&s)); in ipmi_sel_timestamp()
243 return tbuf; in ipmi_sel_timestamp()
249 static char tbuf[11]; in ipmi_sel_timestamp_date() local
251 strftime(tbuf, sizeof(tbuf), "%m/%d/%Y", gmtime(&s)); in ipmi_sel_timestamp_date()
252 return tbuf; in ipmi_sel_timestamp_date()
258 static char tbuf[9]; in ipmi_sel_timestamp_time() local
260 strftime(tbuf, sizeof(tbuf), "%H:%M:%S", gmtime(&s)); in ipmi_sel_timestamp_time()
261 return tbuf; in ipmi_sel_timestamp_time()
[all …]
H A Dipmi_mc.c513 char tbuf[40]; in ipmi_mc_get_guid() local
515 memset(tbuf, 0, 40); in ipmi_mc_get_guid()
527 strftime(tbuf, sizeof(tbuf), "%m/%d/%Y %H:%M:%S", localtime(&s)); in ipmi_mc_get_guid()
528 printf("Timestamp : %s\n", tbuf); in ipmi_mc_get_guid()
H A Dipmi_pef.c746 char tbuf[40]; in ipmi_pef_get_status() local
765 strftime(tbuf, sizeof(tbuf), "%m/%d/%Y %H:%M:%S", gmtime(&ts)); in ipmi_pef_get_status()
767 ipmi_pef_print_str("Last SEL addition", tbuf); in ipmi_pef_get_status()
H A Dipmi_sdr.c4251 static char tbuf[40]; in ipmi_sdr_timestamp() local
4253 memset(tbuf, 0, 40); in ipmi_sdr_timestamp()
4255 strftime(tbuf, sizeof (tbuf), "%m/%d/%Y %H:%M:%S", in ipmi_sdr_timestamp()
4257 return tbuf; in ipmi_sdr_timestamp()
/openbmc/qemu/ui/
H A Dvnc-clipboard.c284 uint8_t *tbuf = buf + 4; in vnc_client_cut_text_ext() local
288 tsize, tbuf, true); in vnc_client_cut_text_ext()
/openbmc/u-boot/scripts/kconfig/lxdialog/
H A Dtextbox.c43 int dialog_textbox(const char *title, char *tbuf, int initial_height, in dialog_textbox() argument
56 buf = tbuf; in dialog_textbox()
H A Ddialog.h225 int dialog_textbox(const char *title, char *tbuf, int initial_height,
/openbmc/openbmc/meta-raspberrypi/recipes-multimedia/rpidistro-ffmpeg/files/
H A D0001-ffmpeg-5.1.4-rpi_24.patch12043 +static inline const char * strfourcc(char tbuf[5], uint32_t fcc) {
12044 + tbuf[0] = safechar((fcc >> 0) & 0xff);
12045 + tbuf[1] = safechar((fcc >> 8) & 0xff);
12046 + tbuf[2] = safechar((fcc >> 16) & 0xff);
12047 + tbuf[3] = safechar((fcc >> 24) & 0xff);
12048 + tbuf[4] = '\0';
12049 + return tbuf;