Home
last modified time | relevance | path

Searched refs:buffer (Results 1 - 25 of 9580) sorted by relevance

12345678910>>...384

/kernel/linux/linux-6.6/tools/testing/selftests/mm/
H A Dhmm-tests.c180 struct hmm_buffer *buffer, in hmm_dmirror_cmd()
187 cmd.addr = (__u64)buffer->ptr; in hmm_dmirror_cmd()
188 cmd.ptr = (__u64)buffer->mirror; in hmm_dmirror_cmd()
199 buffer->cpages = cmd.cpages; in hmm_dmirror_cmd()
200 buffer->faults = cmd.faults; in hmm_dmirror_cmd()
205 static void hmm_buffer_free(struct hmm_buffer *buffer) in hmm_buffer_free() argument
207 if (buffer == NULL) in hmm_buffer_free()
210 if (buffer->ptr) in hmm_buffer_free()
211 munmap(buffer->ptr, buffer in hmm_buffer_free()
178 hmm_dmirror_cmd(int fd, unsigned long request, struct hmm_buffer *buffer, unsigned long npages) hmm_dmirror_cmd() argument
268 hmm_migrate_sys_to_dev(int fd, struct hmm_buffer *buffer, unsigned long npages) hmm_migrate_sys_to_dev() argument
275 hmm_migrate_dev_to_sys(int fd, struct hmm_buffer *buffer, unsigned long npages) hmm_migrate_dev_to_sys() argument
294 struct hmm_buffer *buffer; TEST_F() local
358 struct hmm_buffer *buffer; TEST_F() local
417 struct hmm_buffer *buffer; TEST_F() local
465 struct hmm_buffer *buffer; TEST_F() local
531 struct hmm_buffer *buffer; TEST_F() local
609 struct hmm_buffer *buffer; TEST_F() local
686 struct hmm_buffer *buffer; TEST_F() local
790 struct hmm_buffer *buffer; TEST_F() local
847 struct hmm_buffer *buffer; TEST_F() local
902 struct hmm_buffer *buffer; TEST_F() local
960 struct hmm_buffer *buffer; TEST_F() local
1008 struct hmm_buffer *buffer; TEST_F() local
1064 struct hmm_buffer *buffer; TEST_F() local
1116 struct hmm_buffer *buffer; TEST_F() local
1151 struct hmm_buffer *buffer; TEST_F() local
1243 struct hmm_buffer *buffer; TEST_F() local
1302 struct hmm_buffer *buffer; TEST_F() local
1350 struct hmm_buffer *buffer = p; unmap_buffer() local
1376 struct hmm_buffer *buffer; TEST_F() local
1426 struct hmm_buffer *buffer; TEST_F() local
1468 struct hmm_buffer *buffer; TEST_F() local
1570 struct hmm_buffer *buffer; TEST_F() local
1645 struct hmm_buffer *buffer; TEST_F() local
1720 struct hmm_buffer *buffer; TEST_F() local
1774 struct hmm_buffer *buffer; TEST_F() local
1827 struct hmm_buffer *buffer; TEST_F() local
1900 struct hmm_buffer *buffer; TEST_F() local
1989 struct hmm_buffer *buffer; TEST_F() local
[all...]
/base/telephony/sms_mms/services/sms/gsm/
H A Dgsm_sms_tpdu_encode.cpp38 bool GsmSmsTpduEncode::EncodeSubmitPdu(SmsWriteBuffer &buffer, const struct SmsSubmit *pSubmit) in EncodeSubmitPdu() argument
44 EncodeSubmitTpduType(buffer, *pSubmit); in EncodeSubmitPdu()
47 if (!buffer.WriteByte(pSubmit->msgRef)) { in EncodeSubmitPdu()
60 if (buffer.data_ == nullptr || (buffer.GetIndex() + position) > buffer.GetSize()) { in EncodeSubmitPdu()
61 TELEPHONY_LOGE("buffer error."); in EncodeSubmitPdu()
64 if (memcpy_s(buffer.data_.get() + buffer.GetIndex(), position, address.data(), position) != EOK) { in EncodeSubmitPdu()
68 buffer in EncodeSubmitPdu()
77 EncodeSubmitPduPartData(SmsWriteBuffer &buffer, const struct SmsSubmit *pSubmit) EncodeSubmitPduPartData() argument
115 EncodeSubmitTpduType(SmsWriteBuffer &buffer, const struct SmsSubmit &pSubmit) EncodeSubmitTpduType() argument
136 EncodeSubmitTypePartData(SmsWriteBuffer &buffer, const struct SmsSubmit &pSubmit) EncodeSubmitTypePartData() argument
179 EncodeSubmitTypeData(SmsWriteBuffer &buffer, const struct SmsSubmit &pSubmit) EncodeSubmitTypeData() argument
218 EncodeDeliverPdu(SmsWriteBuffer &buffer, const struct SmsDeliver *pDeliver) EncodeDeliverPdu() argument
267 EncodeDeliverPartData(SmsWriteBuffer &buffer, const struct SmsDeliver *pDeliver) EncodeDeliverPartData() argument
313 EncodeDeliverData(SmsWriteBuffer &buffer, const struct SmsDeliver *pDeliver) EncodeDeliverData() argument
354 EncodeDeliverReportPdu(SmsWriteBuffer &buffer, const struct SmsDeliverReport *pDeliverRep) EncodeDeliverReportPdu() argument
402 EncodeDeliverReportPartData(SmsWriteBuffer &buffer, const struct SmsDeliverReport *pDeliverRep) EncodeDeliverReportPartData() argument
433 EncodeStatusReportPdu(SmsWriteBuffer &buffer, const struct SmsStatusReport *pStatusRep) EncodeStatusReportPdu() argument
487 EncodeStatusReportPartData(SmsWriteBuffer &buffer, const struct SmsStatusReport *pStatusRep) EncodeStatusReportPartData() argument
543 EncodeStatusReportData( SmsWriteBuffer &buffer, const struct SmsStatusReport *pStatusRep, uint8_t length) EncodeStatusReportData() argument
[all...]
H A Dgsm_user_data_encode.cpp41 bool GsmUserDataEncode::EncodeGsmPdu(SmsWriteBuffer &buffer, const struct SmsUDPackage *userData) in EncodeGsmPdu() argument
44 if (!EncodeGsmHeadPdu(buffer, userData, fillBits)) { in EncodeGsmPdu()
47 return EncodeGsmBodyPdu(buffer, userData, fillBits); in EncodeGsmPdu()
50 bool GsmUserDataEncode::EncodeGsmHeadPdu(SmsWriteBuffer &buffer, const struct SmsUDPackage *userData, uint8_t &fillBits) in EncodeGsmHeadPdu() argument
57 uint16_t location = buffer.GetIndex(); in EncodeGsmHeadPdu()
59 buffer.MoveForward(SLIDE_DATA_STEP); in EncodeGsmHeadPdu()
61 buffer.MoveForward(HEX_VALUE_01); in EncodeGsmHeadPdu()
63 uint16_t udhl = buffer.GetIndex(); in EncodeGsmHeadPdu()
65 userData_->EncodeHeader(buffer, userData->header[i]); in EncodeGsmHeadPdu()
68 if (buffer in EncodeGsmHeadPdu()
102 EncodeGsmBodyPdu(SmsWriteBuffer &buffer, const struct SmsUDPackage *userData, uint8_t fillBits) EncodeGsmBodyPdu() argument
115 Encode8bitPdu( SmsWriteBuffer &buffer, const struct SmsUDPackage *userData, std::string &destAddr) Encode8bitPdu() argument
124 Encode8bitHeadPdu( SmsWriteBuffer &buffer, const struct SmsUDPackage *userData, std::string &destAddr) Encode8bitHeadPdu() argument
168 Encode8bitBodyPdu(SmsWriteBuffer &buffer, const struct SmsUDPackage *userData) Encode8bitBodyPdu() argument
192 EncodeUcs2Pdu(SmsWriteBuffer &buffer, const struct SmsUDPackage *userData) EncodeUcs2Pdu() argument
200 EncodeUcs2HeadPdu(SmsWriteBuffer &buffer, const struct SmsUDPackage *userData) EncodeUcs2HeadPdu() argument
243 EncodeUcs2BodyPdu(SmsWriteBuffer &buffer, const struct SmsUDPackage *userData) EncodeUcs2BodyPdu() argument
[all...]
H A Dgsm_user_data_decode.cpp41 SmsReadBuffer &buffer, bool bHeaderInd, struct SmsUDPackage *userData, struct SmsTpud *pTPUD) in DecodeGsmPdu()
45 if (!DecodeGsmHeadPdu(buffer, bHeaderInd, userData, pTPUD, udl, fillBits)) { in DecodeGsmPdu()
49 return DecodeGsmBodyPdu(buffer, bHeaderInd, userData, pTPUD, udl, fillBits); in DecodeGsmPdu()
52 bool GsmUserDataDecode::DecodeGsmHeadPdu(SmsReadBuffer &buffer, bool bHeaderInd, struct SmsUDPackage *userData, in DecodeGsmHeadPdu() argument
61 if (!buffer.ReadByte(udl)) { in DecodeGsmHeadPdu()
80 if (buffer.GetIndex() + udl >= buffer.GetSize()) { in DecodeGsmHeadPdu()
81 len = buffer.GetSize() - buffer.GetIndex(); in DecodeGsmHeadPdu()
83 if (buffer in DecodeGsmHeadPdu()
40 DecodeGsmPdu( SmsReadBuffer &buffer, bool bHeaderInd, struct SmsUDPackage *userData, struct SmsTpud *pTPUD) DecodeGsmPdu() argument
96 DecodeGsmHeadPduPartData( SmsReadBuffer &buffer, bool bHeaderInd, struct SmsUDPackage *userData, uint8_t &udl, uint8_t &fillBits) DecodeGsmHeadPduPartData() argument
142 DecodeGsmBodyPdu(SmsReadBuffer &buffer, bool bHeaderInd, struct SmsUDPackage *userData, struct SmsTpud *pTPUD, uint8_t &udl, uint8_t fillBits) DecodeGsmBodyPdu() argument
161 Decode8bitPdu( SmsReadBuffer &buffer, bool bHeaderInd, struct SmsUDPackage *userData, struct SmsTpud *pTPUD) Decode8bitPdu() argument
205 Decode8bitPduPartData(SmsReadBuffer &buffer, bool bHeaderInd, struct SmsUDPackage *userData, struct SmsTpud *pTPUD, uint16_t current, uint8_t udl) Decode8bitPduPartData() argument
257 DecodeUcs2Pdu( SmsReadBuffer &buffer, bool bHeaderInd, struct SmsUDPackage *userData, struct SmsTpud *pTPUD) DecodeUcs2Pdu() argument
298 DecodeUcs2PduPartData( SmsReadBuffer &buffer, bool bHeaderInd, struct SmsUDPackage *userData, uint16_t current, uint8_t udl) DecodeUcs2PduPartData() argument
[all...]
H A Dgsm_user_data_pdu.cpp32 SmsWriteBuffer &buffer, const struct SmsUDPackage *(&userData), DataCodingScheme scheme, std::string &destAddr) in EncodeUserDataPdu()
47 result = encodePdu->EncodeGsmPdu(buffer, userData); in EncodeUserDataPdu()
50 result = encodePdu->Encode8bitPdu(buffer, userData, destAddr); in EncodeUserDataPdu()
53 result = encodePdu->EncodeUcs2Pdu(buffer, userData); in EncodeUserDataPdu()
63 SmsReadBuffer &buffer, bool bHeaderInd, DataCodingScheme scheme, struct SmsUDPackage *userData) in DecodeUserDataPdu()
84 result = decodePdu->DecodeGsmPdu(buffer, bHeaderInd, userData, nullptr); in DecodeUserDataPdu()
87 result = decodePdu->Decode8bitPdu(buffer, bHeaderInd, userData, nullptr); in DecodeUserDataPdu()
90 result = decodePdu->DecodeUcs2Pdu(buffer, bHeaderInd, userData, nullptr); in DecodeUserDataPdu()
99 bool GsmUserDataPdu::DecodeUserDataPdu(SmsReadBuffer &buffer, bool bHeaderInd, DataCodingScheme scheme, in DecodeUserDataPdu() argument
121 result = decodePdu->DecodeGsmPdu(buffer, bHeaderIn in DecodeUserDataPdu()
31 EncodeUserDataPdu( SmsWriteBuffer &buffer, const struct SmsUDPackage *(&userData), DataCodingScheme scheme, std::string &destAddr) EncodeUserDataPdu() argument
62 DecodeUserDataPdu( SmsReadBuffer &buffer, bool bHeaderInd, DataCodingScheme scheme, struct SmsUDPackage *userData) DecodeUserDataPdu() argument
150 GetHeaderCnt(SmsReadBuffer &buffer, struct SmsUDPackage *userData, uint8_t &udhl, uint16_t i) GetHeaderCnt() argument
181 EncodeHeader(SmsWriteBuffer &buffer, const struct SmsUDH header) EncodeHeader() argument
230 EncodeHeaderAppPort8bit(SmsWriteBuffer &buffer, const struct SmsUDH header) EncodeHeaderAppPort8bit() argument
250 EncodeHeaderAppPort16bit(SmsWriteBuffer &buffer, const struct SmsUDH header) EncodeHeaderAppPort16bit() argument
278 EncodeHeaderReplyAddress(SmsWriteBuffer &buffer, const struct SmsUDH header) EncodeHeaderReplyAddress() argument
306 EncodeHeaderConcat(SmsWriteBuffer &buffer, const struct SmsUDH header) EncodeHeaderConcat() argument
321 EncodeHeaderConcat8Bit(SmsWriteBuffer &buffer, const struct SmsUDH &header) EncodeHeaderConcat8Bit() argument
345 EncodeHeaderConcat16Bit(SmsWriteBuffer &buffer, const struct SmsUDH &header) EncodeHeaderConcat16Bit() argument
373 DecodeHeader(SmsReadBuffer &buffer, struct SmsUDH &pHeader, uint16_t &headerLen) DecodeHeader() argument
423 DecodeHeaderPartData(SmsReadBuffer &buffer, struct SmsUDH &pHeader, uint8_t oneByte) DecodeHeaderPartData() argument
462 DecodeHeaderConcat8Bit(SmsReadBuffer &buffer, struct SmsUDH &pHeader) DecodeHeaderConcat8Bit() argument
493 DecodeHeaderConcat16Bit(SmsReadBuffer &buffer, struct SmsUDH &pHeader) DecodeHeaderConcat16Bit() argument
531 DecodeHeaderAppPort8Bit(SmsReadBuffer &buffer, struct SmsUDH &pHeader) DecodeHeaderAppPort8Bit() argument
558 DecodeHeaderAppPort16Bit(SmsReadBuffer &buffer, struct SmsUDH &pHeader) DecodeHeaderAppPort16Bit() argument
603 DecodeHeaderSpecialSms(SmsReadBuffer &buffer, struct SmsUDH &pHeader) DecodeHeaderSpecialSms() argument
635 DecodeHeaderReplyAddress(SmsReadBuffer &buffer, struct SmsUDH &pHeader) DecodeHeaderReplyAddress() argument
653 DecodeHeaderSingleShift(SmsReadBuffer &buffer, struct SmsUDH &pHeader) DecodeHeaderSingleShift() argument
673 DecodeHeaderLockingShift(SmsReadBuffer &buffer, struct SmsUDH &pHeader) DecodeHeaderLockingShift() argument
692 DecodeHeaderDefaultCase(SmsReadBuffer &buffer, struct SmsUDH &pHeader) DecodeHeaderDefaultCase() argument
[all...]
/kernel/linux/linux-5.10/drivers/s390/char/
H A Dsclp_rw.c42 * Setup a sclp write buffer. Gets a page as input (4K) and returns
44 * end of the input page. This reduces the buffer space by a few
50 struct sclp_buffer *buffer; in sclp_make_buffer() local
58 buffer = ((struct sclp_buffer *) ((addr_t) sccb + PAGE_SIZE)) - 1; in sclp_make_buffer()
59 buffer->sccb = sccb; in sclp_make_buffer()
60 buffer->retry_count = 0; in sclp_make_buffer()
61 buffer->messages = 0; in sclp_make_buffer()
62 buffer->char_sum = 0; in sclp_make_buffer()
63 buffer->current_line = NULL; in sclp_make_buffer()
64 buffer in sclp_make_buffer()
80 sclp_unmake_buffer(struct sclp_buffer *buffer) sclp_unmake_buffer() argument
90 sclp_initialize_mto(struct sclp_buffer *buffer, int max_len) sclp_initialize_mto() argument
140 sclp_finalize_mto(struct sclp_buffer *buffer) sclp_finalize_mto() argument
177 sclp_write(struct sclp_buffer *buffer, const unsigned char *msg, int count) sclp_write() argument
313 sclp_buffer_space(struct sclp_buffer *buffer) sclp_buffer_space() argument
329 sclp_chars_in_buffer(struct sclp_buffer *buffer) sclp_chars_in_buffer() argument
367 struct sclp_buffer *buffer; sclp_writedata_callback() local
432 sclp_emit_buffer(struct sclp_buffer *buffer, void (*callback)(struct sclp_buffer *, int)) sclp_emit_buffer() argument
[all...]
/kernel/linux/linux-6.6/drivers/s390/char/
H A Dsclp_rw.c35 * Setup a sclp write buffer. Gets a page as input (4K) and returns
37 * end of the input page. This reduces the buffer space by a few
43 struct sclp_buffer *buffer; in sclp_make_buffer() local
51 buffer = ((struct sclp_buffer *) ((addr_t) sccb + PAGE_SIZE)) - 1; in sclp_make_buffer()
52 buffer->sccb = sccb; in sclp_make_buffer()
53 buffer->retry_count = 0; in sclp_make_buffer()
54 buffer->messages = 0; in sclp_make_buffer()
55 buffer->char_sum = 0; in sclp_make_buffer()
56 buffer->current_line = NULL; in sclp_make_buffer()
57 buffer in sclp_make_buffer()
73 sclp_unmake_buffer(struct sclp_buffer *buffer) sclp_unmake_buffer() argument
83 sclp_initialize_mto(struct sclp_buffer *buffer, int max_len) sclp_initialize_mto() argument
133 sclp_finalize_mto(struct sclp_buffer *buffer) sclp_finalize_mto() argument
170 sclp_write(struct sclp_buffer *buffer, const unsigned char *msg, int count) sclp_write() argument
306 sclp_buffer_space(struct sclp_buffer *buffer) sclp_buffer_space() argument
322 sclp_chars_in_buffer(struct sclp_buffer *buffer) sclp_chars_in_buffer() argument
360 struct sclp_buffer *buffer; sclp_writedata_callback() local
425 sclp_emit_buffer(struct sclp_buffer *buffer, void (*callback)(struct sclp_buffer *, int)) sclp_emit_buffer() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/
H A Detnaviv_buffer.c25 static inline void OUT(struct etnaviv_cmdbuf *buffer, u32 data) in OUT() argument
27 u32 *vaddr = (u32 *)buffer->vaddr; in OUT()
29 BUG_ON(buffer->user_size >= buffer->size); in OUT()
31 vaddr[buffer->user_size / 4] = data; in OUT()
32 buffer->user_size += 4; in OUT()
35 static inline void CMD_LOAD_STATE(struct etnaviv_cmdbuf *buffer, in CMD_LOAD_STATE() argument
40 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_LOAD_STATE()
43 OUT(buffer, VIV_FE_LOAD_STATE_HEADER_OP_LOAD_STAT in CMD_LOAD_STATE()
49 CMD_END(struct etnaviv_cmdbuf *buffer) CMD_END() argument
56 CMD_WAIT(struct etnaviv_cmdbuf *buffer) CMD_WAIT() argument
63 CMD_LINK(struct etnaviv_cmdbuf *buffer, u16 prefetch, u32 address) CMD_LINK() argument
73 CMD_STALL(struct etnaviv_cmdbuf *buffer, u32 from, u32 to) CMD_STALL() argument
82 CMD_SEM(struct etnaviv_cmdbuf *buffer, u32 from, u32 to) CMD_SEM() argument
89 etnaviv_cmd_select_pipe(struct etnaviv_gpu *gpu, struct etnaviv_cmdbuf *buffer, u8 pipe) etnaviv_cmd_select_pipe() argument
136 etnaviv_buffer_replace_wait(struct etnaviv_cmdbuf *buffer, unsigned int wl_offset, u32 cmd, u32 arg) etnaviv_buffer_replace_wait() argument
151 etnaviv_buffer_reserve(struct etnaviv_gpu *gpu, struct etnaviv_cmdbuf *buffer, unsigned int cmd_dwords) etnaviv_buffer_reserve() argument
164 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_init() local
181 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_config_mmuv2() local
216 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_config_pta() local
234 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_end() local
302 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_sync_point_queue() local
343 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_queue() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/etnaviv/
H A Detnaviv_buffer.c25 static inline void OUT(struct etnaviv_cmdbuf *buffer, u32 data) in OUT() argument
27 u32 *vaddr = (u32 *)buffer->vaddr; in OUT()
29 BUG_ON(buffer->user_size >= buffer->size); in OUT()
31 vaddr[buffer->user_size / 4] = data; in OUT()
32 buffer->user_size += 4; in OUT()
35 static inline void CMD_LOAD_STATE(struct etnaviv_cmdbuf *buffer, in CMD_LOAD_STATE() argument
40 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_LOAD_STATE()
43 OUT(buffer, VIV_FE_LOAD_STATE_HEADER_OP_LOAD_STAT in CMD_LOAD_STATE()
49 CMD_END(struct etnaviv_cmdbuf *buffer) CMD_END() argument
56 CMD_WAIT(struct etnaviv_cmdbuf *buffer, unsigned int waitcycles) CMD_WAIT() argument
64 CMD_LINK(struct etnaviv_cmdbuf *buffer, u16 prefetch, u32 address) CMD_LINK() argument
74 CMD_STALL(struct etnaviv_cmdbuf *buffer, u32 from, u32 to) CMD_STALL() argument
83 CMD_SEM(struct etnaviv_cmdbuf *buffer, u32 from, u32 to) CMD_SEM() argument
90 etnaviv_cmd_select_pipe(struct etnaviv_gpu *gpu, struct etnaviv_cmdbuf *buffer, u8 pipe) etnaviv_cmd_select_pipe() argument
137 etnaviv_buffer_replace_wait(struct etnaviv_cmdbuf *buffer, unsigned int wl_offset, u32 cmd, u32 arg) etnaviv_buffer_replace_wait() argument
152 etnaviv_buffer_reserve(struct etnaviv_gpu *gpu, struct etnaviv_cmdbuf *buffer, unsigned int cmd_dwords) etnaviv_buffer_reserve() argument
165 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_init() local
182 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_config_mmuv2() local
217 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_config_pta() local
235 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_end() local
303 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_sync_point_queue() local
344 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_queue() local
[all...]
/kernel/linux/linux-5.10/sound/pci/ca0106/
H A Dca0106_proc.c15 * Use separate card based DMA buffer for periods table list.
84 static void snd_ca0106_proc_dump_iec958( struct snd_info_buffer *buffer, u32 value) in snd_ca0106_proc_dump_iec958() argument
95 snd_iprintf(buffer, "Mode: consumer\n"); in snd_ca0106_proc_dump_iec958()
96 snd_iprintf(buffer, "Data: "); in snd_ca0106_proc_dump_iec958()
98 snd_iprintf(buffer, "audio\n"); in snd_ca0106_proc_dump_iec958()
100 snd_iprintf(buffer, "non-audio\n"); in snd_ca0106_proc_dump_iec958()
102 snd_iprintf(buffer, "Rate: "); in snd_ca0106_proc_dump_iec958()
105 snd_iprintf(buffer, "44100 Hz\n"); in snd_ca0106_proc_dump_iec958()
108 snd_iprintf(buffer, "48000 Hz\n"); in snd_ca0106_proc_dump_iec958()
111 snd_iprintf(buffer, "3200 in snd_ca0106_proc_dump_iec958()
258 snd_ca0106_proc_iec958(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_iec958() argument
280 snd_ca0106_proc_reg_write32(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_write32() argument
298 snd_ca0106_proc_reg_read32(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read32() argument
314 snd_ca0106_proc_reg_read16(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read16() argument
330 snd_ca0106_proc_reg_read8(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read8() argument
346 snd_ca0106_proc_reg_read1(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read1() argument
364 snd_ca0106_proc_reg_read2(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read2() argument
382 snd_ca0106_proc_reg_write(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_write() argument
396 snd_ca0106_proc_i2c_write(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_i2c_write() argument
[all...]
/kernel/linux/linux-6.6/sound/pci/ca0106/
H A Dca0106_proc.c15 * Use separate card based DMA buffer for periods table list.
84 static void snd_ca0106_proc_dump_iec958( struct snd_info_buffer *buffer, u32 value) in snd_ca0106_proc_dump_iec958() argument
95 snd_iprintf(buffer, "Mode: consumer\n"); in snd_ca0106_proc_dump_iec958()
96 snd_iprintf(buffer, "Data: "); in snd_ca0106_proc_dump_iec958()
98 snd_iprintf(buffer, "audio\n"); in snd_ca0106_proc_dump_iec958()
100 snd_iprintf(buffer, "non-audio\n"); in snd_ca0106_proc_dump_iec958()
102 snd_iprintf(buffer, "Rate: "); in snd_ca0106_proc_dump_iec958()
105 snd_iprintf(buffer, "44100 Hz\n"); in snd_ca0106_proc_dump_iec958()
108 snd_iprintf(buffer, "48000 Hz\n"); in snd_ca0106_proc_dump_iec958()
111 snd_iprintf(buffer, "3200 in snd_ca0106_proc_dump_iec958()
258 snd_ca0106_proc_iec958(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_iec958() argument
280 snd_ca0106_proc_reg_write32(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_write32() argument
298 snd_ca0106_proc_reg_read32(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read32() argument
314 snd_ca0106_proc_reg_read16(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read16() argument
330 snd_ca0106_proc_reg_read8(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read8() argument
346 snd_ca0106_proc_reg_read1(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read1() argument
364 snd_ca0106_proc_reg_read2(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read2() argument
382 snd_ca0106_proc_reg_write(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_write() argument
396 snd_ca0106_proc_i2c_write(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_i2c_write() argument
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
H A Dhmm-tests.c122 struct hmm_buffer *buffer, in hmm_dmirror_cmd()
129 cmd.addr = (__u64)buffer->ptr; in hmm_dmirror_cmd()
130 cmd.ptr = (__u64)buffer->mirror; in hmm_dmirror_cmd()
141 buffer->cpages = cmd.cpages; in hmm_dmirror_cmd()
142 buffer->faults = cmd.faults; in hmm_dmirror_cmd()
147 static void hmm_buffer_free(struct hmm_buffer *buffer) in hmm_buffer_free() argument
149 if (buffer == NULL) in hmm_buffer_free()
152 if (buffer->ptr) in hmm_buffer_free()
153 munmap(buffer->ptr, buffer in hmm_buffer_free()
120 hmm_dmirror_cmd(int fd, unsigned long request, struct hmm_buffer *buffer, unsigned long npages) hmm_dmirror_cmd() argument
222 struct hmm_buffer *buffer; TEST_F() local
286 struct hmm_buffer *buffer; TEST_F() local
345 struct hmm_buffer *buffer; TEST_F() local
393 struct hmm_buffer *buffer; TEST_F() local
459 struct hmm_buffer *buffer; TEST_F() local
537 struct hmm_buffer *buffer; TEST_F() local
614 struct hmm_buffer *buffer; TEST_F() local
670 struct hmm_buffer *buffer; TEST_F() local
729 struct hmm_buffer *buffer; TEST_F() local
784 struct hmm_buffer *buffer; TEST_F() local
842 struct hmm_buffer *buffer; TEST_F() local
890 struct hmm_buffer *buffer; TEST_F() local
949 struct hmm_buffer *buffer; TEST_F() local
984 struct hmm_buffer *buffer; TEST_F() local
1072 struct hmm_buffer *buffer; TEST_F() local
1126 struct hmm_buffer *buffer; TEST_F() local
1174 struct hmm_buffer *buffer = p; unmap_buffer() local
1200 struct hmm_buffer *buffer; TEST_F() local
1250 struct hmm_buffer *buffer; TEST_F() local
1292 struct hmm_buffer *buffer; TEST_F() local
1387 struct hmm_buffer *buffer; TEST_F() local
1462 struct hmm_buffer *buffer; TEST_F() local
[all...]
/kernel/linux/linux-6.6/sound/pci/hda/
H A Dhda_proc.c47 static void print_nid_array(struct snd_info_buffer *buffer, in print_nid_array() argument
58 snd_iprintf(buffer, in print_nid_array()
63 snd_iprintf(buffer, in print_nid_array()
74 static void print_nid_pcms(struct snd_info_buffer *buffer, in print_nid_pcms() argument
84 snd_iprintf(buffer, " Device: name=\"%s\", " in print_nid_pcms()
93 static void print_amp_caps(struct snd_info_buffer *buffer, in print_amp_caps() argument
100 snd_iprintf(buffer, "N/A\n"); in print_amp_caps()
103 snd_iprintf(buffer, "ofs=0x%02x, nsteps=0x%02x, stepsize=0x%02x, " in print_amp_caps()
133 static void print_amp_vals(struct snd_info_buffer *buffer, in print_amp_vals() argument
145 snd_iprintf(buffer, " ["); in print_amp_vals()
161 print_pcm_rates(struct snd_info_buffer *buffer, unsigned int pcm) print_pcm_rates() argument
177 print_pcm_bits(struct snd_info_buffer *buffer, unsigned int pcm) print_pcm_bits() argument
186 print_pcm_formats(struct snd_info_buffer *buffer, unsigned int streams) print_pcm_formats() argument
199 print_pcm_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_pcm_caps() argument
304 print_pin_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int *supports_vref) print_pin_caps() argument
400 print_pin_ctls(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int supports_vref) print_pin_ctls() argument
438 print_vol_knob(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_vol_knob() argument
450 print_audio_io(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, unsigned int wid_type) print_audio_io() argument
468 print_digital_conv(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_digital_conv() argument
512 print_power_state(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_power_state() argument
553 print_unsol_cap(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_unsol_cap() argument
573 print_proc_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_proc_caps() argument
598 print_conn_list(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, unsigned int wid_type, hda_nid_t *conn, int conn_len) print_conn_list() argument
638 print_gpio(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_gpio() argument
682 print_dpmst_connections(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int dev_num) print_dpmst_connections() argument
714 print_device_list(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_device_list() argument
748 print_codec_core_info(struct hdac_device *codec, struct snd_info_buffer *buffer) print_codec_core_info() argument
774 print_codec_info(struct snd_info_entry *entry, struct snd_info_buffer *buffer) print_codec_info() argument
[all...]
/foundation/multimedia/media_foundation/services/media_monitor/buffer/src/
H A Ddump_buffer_manager.cpp33 std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(); in DumpBufferNew() local
34 FALSE_RETURN_V_MSG_E(buffer != nullptr, nullptr, "new AVBuffer failed"); in DumpBufferNew()
35 struct DumpBuffer *buf = new (std::nothrow) DumpBuffer(buffer); in DumpBufferNew()
36 FALSE_RETURN_V_MSG_E(buffer != nullptr, nullptr, "failed to new DumpBuffer"); in DumpBufferNew()
47 std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(avBufferConfig); in DumpBufferCreate() local
48 FALSE_RETURN_V_MSG_E(buffer != nullptr, nullptr, "create AVBuffer failed"); in DumpBufferCreate()
49 FALSE_RETURN_V_MSG_E(buffer->memory_ != nullptr, nullptr, "memory is nullptr"); in DumpBufferCreate()
50 FALSE_RETURN_V_MSG_E(buffer->memory_->GetAddr() != nullptr, nullptr, "memory's addr is nullptr"); in DumpBufferCreate()
52 struct DumpBuffer *buf = new (std::nothrow) DumpBuffer(buffer); in DumpBufferCreate()
53 FALSE_RETURN_V_MSG_E(buffer ! in DumpBufferCreate()
57 DumpBufferDestroy(struct DumpBuffer *buffer) DumpBufferDestroy() argument
64 DumpBufferGetAddr(DumpBuffer *buffer) DumpBufferGetAddr() argument
72 DumpBufferGetCapacity(DumpBuffer *buffer) DumpBufferGetCapacity() argument
80 DumpBufferGetSize(DumpBuffer *buffer) DumpBufferGetSize() argument
88 DumpBufferSetSize(DumpBuffer *buffer, int32_t size) DumpBufferSetSize() argument
97 DumpBufferWrite(DumpBuffer *buffer, const uint8_t *in, int32_t writeSize) DumpBufferWrite() argument
105 DumpBufferGetUniqueId(DumpBuffer *buffer) DumpBufferGetUniqueId() argument
113 DumpBufferReadFromParcel(DumpBuffer *buffer, void *parcel) DumpBufferReadFromParcel() argument
124 DumpBufferWriteToParcel(DumpBuffer *buffer, void *parcel) DumpBufferWriteToParcel() argument
[all...]
/kernel/linux/linux-5.10/sound/pci/hda/
H A Dhda_proc.c47 static void print_nid_array(struct snd_info_buffer *buffer, in print_nid_array() argument
58 snd_iprintf(buffer, in print_nid_array()
63 snd_iprintf(buffer, in print_nid_array()
74 static void print_nid_pcms(struct snd_info_buffer *buffer, in print_nid_pcms() argument
84 snd_iprintf(buffer, " Device: name=\"%s\", " in print_nid_pcms()
93 static void print_amp_caps(struct snd_info_buffer *buffer, in print_amp_caps() argument
100 snd_iprintf(buffer, "N/A\n"); in print_amp_caps()
103 snd_iprintf(buffer, "ofs=0x%02x, nsteps=0x%02x, stepsize=0x%02x, " in print_amp_caps()
133 static void print_amp_vals(struct snd_info_buffer *buffer, in print_amp_vals() argument
145 snd_iprintf(buffer, " ["); in print_amp_vals()
161 print_pcm_rates(struct snd_info_buffer *buffer, unsigned int pcm) print_pcm_rates() argument
177 print_pcm_bits(struct snd_info_buffer *buffer, unsigned int pcm) print_pcm_bits() argument
186 print_pcm_formats(struct snd_info_buffer *buffer, unsigned int streams) print_pcm_formats() argument
199 print_pcm_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_pcm_caps() argument
304 print_pin_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int *supports_vref) print_pin_caps() argument
400 print_pin_ctls(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int supports_vref) print_pin_ctls() argument
438 print_vol_knob(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_vol_knob() argument
450 print_audio_io(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, unsigned int wid_type) print_audio_io() argument
468 print_digital_conv(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_digital_conv() argument
512 print_power_state(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_power_state() argument
553 print_unsol_cap(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_unsol_cap() argument
573 print_proc_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_proc_caps() argument
598 print_conn_list(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, unsigned int wid_type, hda_nid_t *conn, int conn_len) print_conn_list() argument
638 print_gpio(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_gpio() argument
682 print_device_list(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_device_list() argument
712 print_codec_core_info(struct hdac_device *codec, struct snd_info_buffer *buffer) print_codec_core_info() argument
738 print_codec_info(struct snd_info_entry *entry, struct snd_info_buffer *buffer) print_codec_info() argument
[all...]
/kernel/linux/linux-5.10/fs/configfs/
H A Dfile.c58 static int fill_read_buffer(struct file *file, struct configfs_buffer *buffer) in fill_read_buffer() argument
63 if (!buffer->page) in fill_read_buffer()
64 buffer->page = (char *) get_zeroed_page(GFP_KERNEL); in fill_read_buffer()
65 if (!buffer->page) in fill_read_buffer()
70 count = buffer->attr->show(buffer->item, buffer->page); in fill_read_buffer()
77 buffer->needs_read_fill = 0; in fill_read_buffer()
78 buffer->count = count; in fill_read_buffer()
85 * @buf: buffer t
104 struct configfs_buffer *buffer = file->private_data; configfs_read_file() local
147 struct configfs_buffer *buffer = file->private_data; configfs_read_bin_file() local
224 fill_write_buffer(struct configfs_buffer * buffer, const char __user * buf, size_t count) fill_write_buffer() argument
244 flush_write_buffer(struct file *file, struct configfs_buffer *buffer, size_t count) flush_write_buffer() argument
277 struct configfs_buffer *buffer = file->private_data; configfs_write_file() local
307 struct configfs_buffer *buffer = file->private_data; configfs_write_bin_file() local
361 struct configfs_buffer *buffer; __configfs_open_file() local
447 struct configfs_buffer *buffer = filp->private_data; configfs_release() local
469 struct configfs_buffer *buffer = file->private_data; configfs_release_bin_file() local
[all...]
/kernel/linux/linux-6.6/fs/configfs/
H A Dfile.c56 static int fill_read_buffer(struct file *file, struct configfs_buffer *buffer) in fill_read_buffer() argument
61 if (!buffer->page) in fill_read_buffer()
62 buffer->page = (char *) get_zeroed_page(GFP_KERNEL); in fill_read_buffer()
63 if (!buffer->page) in fill_read_buffer()
68 count = buffer->attr->show(buffer->item, buffer->page); in fill_read_buffer()
75 buffer->needs_read_fill = 0; in fill_read_buffer()
76 buffer->count = count; in fill_read_buffer()
83 struct configfs_buffer *buffer in configfs_read_iter() local
110 struct configfs_buffer *buffer = file->private_data; configfs_bin_read_iter() local
181 fill_write_buffer(struct configfs_buffer *buffer, struct iov_iter *from) fill_write_buffer() argument
200 flush_write_buffer(struct file *file, struct configfs_buffer *buffer, size_t count) flush_write_buffer() argument
223 struct configfs_buffer *buffer = file->private_data; configfs_write_iter() local
240 struct configfs_buffer *buffer = file->private_data; configfs_bin_write_iter() local
295 struct configfs_buffer *buffer; __configfs_open_file() local
381 struct configfs_buffer *buffer = filp->private_data; configfs_release() local
403 struct configfs_buffer *buffer = file->private_data; configfs_release_bin_file() local
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dring_buffer.h22 * enum ring_buffer_type - internal ring buffer types
64 u64 ring_buffer_event_time_stamp(struct trace_buffer *buffer,
71 * will try to remove the event from the ring buffer completely
77 * ring_buffer_discard_commit(buffer, event);
79 * ring_buffer_unlock_commit(buffer, event);
81 void ring_buffer_discard_commit(struct trace_buffer *buffer,
85 * size is in bytes for each per CPU buffer.
91 * Because the ring buffer is generic, if other users of the ring buffer get
93 * ring buffer'
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dring_buffer.h22 * enum ring_buffer_type - internal ring buffer types
70 * will try to remove the event from the ring buffer completely
76 * ring_buffer_discard_commit(buffer, event);
78 * ring_buffer_unlock_commit(buffer, event);
80 void ring_buffer_discard_commit(struct trace_buffer *buffer,
84 * size is in bytes for each per CPU buffer.
90 * Because the ring buffer is generic, if other users of the ring buffer get
92 * ring buffer's lock class separate.
100 int ring_buffer_wait(struct trace_buffer *buffer, in
[all...]
/foundation/multimedia/media_foundation/src/capi/
H A Dnative_avbuffer.cpp36 std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(allocator, capacity); in OH_AVBuffer_Create() local
37 FALSE_RETURN_V_MSG_E(buffer != nullptr, nullptr, "create OH_AVBuffer failed"); in OH_AVBuffer_Create()
38 FALSE_RETURN_V_MSG_E(buffer->memory_ != nullptr, nullptr, "memory is nullptr"); in OH_AVBuffer_Create()
39 FALSE_RETURN_V_MSG_E(buffer->memory_->GetAddr() != nullptr, nullptr, "memory's addr is nullptr"); in OH_AVBuffer_Create()
41 struct OH_AVBuffer *buf = new (std::nothrow) OH_AVBuffer(buffer); in OH_AVBuffer_Create()
42 FALSE_RETURN_V_MSG_E(buffer != nullptr, nullptr, "failed to new OH_AVBuffer"); in OH_AVBuffer_Create()
47 OH_AVErrCode OH_AVBuffer_Destroy(struct OH_AVBuffer *buffer) in OH_AVBuffer_Destroy() argument
49 FALSE_RETURN_V_MSG_E(buffer != nullptr, AV_ERR_INVALID_VAL, "input buffer is nullptr!"); in OH_AVBuffer_Destroy()
50 FALSE_RETURN_V_MSG_E(buffer in OH_AVBuffer_Destroy()
56 OH_AVBuffer_GetBufferAttr(OH_AVBuffer *buffer, OH_AVCodecBufferAttr *attr) OH_AVBuffer_GetBufferAttr() argument
74 OH_AVBuffer_SetBufferAttr(OH_AVBuffer *buffer, const OH_AVCodecBufferAttr *attr) OH_AVBuffer_SetBufferAttr() argument
93 OH_AVBuffer_GetParameter(OH_AVBuffer *buffer) OH_AVBuffer_GetParameter() argument
109 OH_AVBuffer_SetParameter(OH_AVBuffer *buffer, const OH_AVFormat *format) OH_AVBuffer_SetParameter() argument
125 OH_AVBuffer_GetAddr(OH_AVBuffer *buffer) OH_AVBuffer_GetAddr() argument
134 OH_AVBuffer_GetCapacity(OH_AVBuffer *buffer) OH_AVBuffer_GetCapacity() argument
143 OH_AVBuffer_GetNativeBuffer(OH_AVBuffer *buffer) OH_AVBuffer_GetNativeBuffer() argument
[all...]
/foundation/multimedia/audio_framework/frameworks/native/audioutils/src/
H A Daudio_channel_blend.cpp46 void AudioBlend::Process(uint8_t *buffer, size_t bufferSize) in Process() argument
50 ProcessWithBlendMode<uint8_t>(reinterpret_cast<uint8_t*>(buffer), bufferSize); in Process()
53 ProcessWithBlendMode<int16_t>(reinterpret_cast<int16_t*>(buffer), bufferSize); in Process()
56 ProcessWithBlendMode<int24_t>(reinterpret_cast<int24_t*>(buffer), bufferSize); in Process()
59 ProcessWithBlendMode<int32_t>(reinterpret_cast<int32_t*>(buffer), bufferSize); in Process()
67 void AudioBlend::ProcessWithBlendMode(T *buffer, size_t bufferSize) in ProcessWithBlendMode() argument
77 ProcessBlendLRModeWithFormat<T>(buffer, frameCount, (AudioChannel)channels_); in ProcessWithBlendMode()
80 ProcessAllLeftModeWithFormat<T>(buffer, frameCount, (AudioChannel)channels_); in ProcessWithBlendMode()
83 ProcessAllRightModeWithFormat<T>(buffer, frameCount, (AudioChannel)channels_); in ProcessWithBlendMode()
109 void AudioBlend::ProcessBlendLRModeWithFormat(T *buffer, size_ argument
137 ProcessAllLeftModeWithFormat(T *buffer, size_t count, AudioChannel channel) ProcessAllLeftModeWithFormat() argument
165 ProcessAllRightModeWithFormat(T *buffer, size_t count, AudioChannel channel) ProcessAllRightModeWithFormat() argument
[all...]
/kernel/linux/linux-5.10/drivers/dma-buf/heaps/
H A Dheap-helpers.c15 void init_heap_helper_buffer(struct heap_helper_buffer *buffer, in init_heap_helper_buffer() argument
18 buffer->priv_virt = NULL; in init_heap_helper_buffer()
19 mutex_init(&buffer->lock); in init_heap_helper_buffer()
20 buffer->vmap_cnt = 0; in init_heap_helper_buffer()
21 buffer->vaddr = NULL; in init_heap_helper_buffer()
22 buffer->pagecount = 0; in init_heap_helper_buffer()
23 buffer->pages = NULL; in init_heap_helper_buffer()
24 INIT_LIST_HEAD(&buffer->attachments); in init_heap_helper_buffer()
25 buffer->free = free; in init_heap_helper_buffer()
28 struct dma_buf *heap_helper_export_dmabuf(struct heap_helper_buffer *buffer, in heap_helper_export_dmabuf() argument
42 dma_heap_map_kernel(struct heap_helper_buffer *buffer) dma_heap_map_kernel() argument
53 dma_heap_buffer_destroy(struct heap_helper_buffer *buffer) dma_heap_buffer_destroy() argument
63 dma_heap_buffer_vmap_get(struct heap_helper_buffer *buffer) dma_heap_buffer_vmap_get() argument
79 dma_heap_buffer_vmap_put(struct heap_helper_buffer *buffer) dma_heap_buffer_vmap_put() argument
97 struct heap_helper_buffer *buffer = dmabuf->priv; dma_heap_attach() local
129 struct heap_helper_buffer *buffer = dmabuf->priv; dma_heap_detach() local
163 struct heap_helper_buffer *buffer = vma->vm_private_data; dma_heap_vm_fault() local
180 struct heap_helper_buffer *buffer = dmabuf->priv; dma_heap_mmap() local
193 struct heap_helper_buffer *buffer = dmabuf->priv; dma_heap_dma_buf_release() local
201 struct heap_helper_buffer *buffer = dmabuf->priv; dma_heap_dma_buf_begin_cpu_access() local
222 struct heap_helper_buffer *buffer = dmabuf->priv; dma_heap_dma_buf_end_cpu_access() local
241 struct heap_helper_buffer *buffer = dmabuf->priv; dma_heap_dma_buf_vmap() local
253 struct heap_helper_buffer *buffer = dmabuf->priv; dma_heap_dma_buf_vunmap() local
[all...]
/kernel/linux/linux-5.10/drivers/media/tuners/
H A Dtea5767.c133 unsigned char *buffer) in tea5767_status_dump()
137 if (TEA5767_READY_FLAG_MASK & buffer[0]) in tea5767_status_dump()
142 if (TEA5767_BAND_LIMIT_MASK & buffer[0]) in tea5767_status_dump()
147 div = ((buffer[0] & 0x3f) << 8) | buffer[1]; in tea5767_status_dump()
164 buffer[0] = (div >> 8) & 0x3f; in tea5767_status_dump()
165 buffer[1] = div & 0xff; in tea5767_status_dump()
170 if (TEA5767_STEREO_MASK & buffer[2]) in tea5767_status_dump()
175 tuner_info("IF Counter = %d\n", buffer[2] & TEA5767_IF_CNTR_MASK); in tea5767_status_dump()
178 (buffer[ in tea5767_status_dump()
132 tea5767_status_dump(struct tea5767_priv *priv, unsigned char *buffer) tea5767_status_dump() argument
192 unsigned char buffer[5]; set_radio_freq() local
284 tea5767_read_status(struct dvb_frontend *fe, char *buffer) tea5767_read_status() argument
298 tea5767_signal(struct dvb_frontend *fe, const char *buffer) tea5767_signal() argument
309 tea5767_stereo(struct dvb_frontend *fe, const char *buffer) tea5767_stereo() argument
322 unsigned char buffer[5]; tea5767_get_status() local
338 unsigned char buffer[5]; tea5767_get_rf_strength() local
350 unsigned char buffer[5]; tea5767_standby() local
371 unsigned char buffer[7] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; tea5767_autodetection() local
[all...]
/kernel/linux/linux-6.6/drivers/media/tuners/
H A Dtea5767.c133 unsigned char *buffer) in tea5767_status_dump()
137 if (TEA5767_READY_FLAG_MASK & buffer[0]) in tea5767_status_dump()
142 if (TEA5767_BAND_LIMIT_MASK & buffer[0]) in tea5767_status_dump()
147 div = ((buffer[0] & 0x3f) << 8) | buffer[1]; in tea5767_status_dump()
164 buffer[0] = (div >> 8) & 0x3f; in tea5767_status_dump()
165 buffer[1] = div & 0xff; in tea5767_status_dump()
170 if (TEA5767_STEREO_MASK & buffer[2]) in tea5767_status_dump()
175 tuner_info("IF Counter = %d\n", buffer[2] & TEA5767_IF_CNTR_MASK); in tea5767_status_dump()
178 (buffer[ in tea5767_status_dump()
132 tea5767_status_dump(struct tea5767_priv *priv, unsigned char *buffer) tea5767_status_dump() argument
192 unsigned char buffer[5]; set_radio_freq() local
284 tea5767_read_status(struct dvb_frontend *fe, char *buffer) tea5767_read_status() argument
298 tea5767_signal(struct dvb_frontend *fe, const char *buffer) tea5767_signal() argument
309 tea5767_stereo(struct dvb_frontend *fe, const char *buffer) tea5767_stereo() argument
322 unsigned char buffer[5]; tea5767_get_status() local
338 unsigned char buffer[5]; tea5767_get_rf_strength() local
350 unsigned char buffer[5]; tea5767_standby() local
371 unsigned char buffer[7] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; tea5767_autodetection() local
[all...]
/base/update/updater/services/package/pkg_algorithm/
H A Dpkg_algo_digest.cpp51 int32_t Crc32Algorithm::Update(const PkgBuffer &buffer, size_t size) in Update() argument
53 if (buffer.buffer == nullptr) { in Update()
57 crc32_ = crc32(crc32_, buffer.buffer, size); in Update()
63 if (result.buffer == nullptr) { in Final()
71 WriteLE32(result.buffer, crc32_); in Final()
75 int32_t Crc32Algorithm::Calculate(PkgBuffer &result, const PkgBuffer &buffer, size_t size) in Calculate() argument
77 if (result.buffer == nullptr || buffer in Calculate()
97 Update(const PkgBuffer &buffer, size_t size) Update() argument
117 Calculate(PkgBuffer &result, const PkgBuffer &buffer, size_t size) Calculate() argument
139 Update(const PkgBuffer &buffer, size_t size) Update() argument
159 Calculate(PkgBuffer &result, const PkgBuffer &buffer, size_t size) Calculate() argument
[all...]

Completed in 12 milliseconds

12345678910>>...384