/openbmc/qemu/migration/ |
H A D | qemu-file.c | 63 int qemu_file_shutdown(QEMUFile *f) in qemu_file_shutdown() argument 86 if (!f->last_error) { in qemu_file_shutdown() 87 qemu_file_set_error(f, -EIO); in qemu_file_shutdown() 90 if (!qio_channel_has_feature(f->ioc, in qemu_file_shutdown() 95 if (qio_channel_shutdown(f->ioc, QIO_CHANNEL_SHUTDOWN_BOTH, &err) < 0) { in qemu_file_shutdown() 105 QEMUFile *f; in qemu_file_new_impl() local 107 f = g_new0(QEMUFile, 1); in qemu_file_new_impl() 110 f->ioc = ioc; in qemu_file_new_impl() 111 f->is_writable = is_writable; in qemu_file_new_impl() 113 return f; in qemu_file_new_impl() [all …]
|
/openbmc/linux/sound/core/seq/ |
H A D | seq_fifo.c | 20 struct snd_seq_fifo *f; in snd_seq_fifo_new() local 22 f = kzalloc(sizeof(*f), GFP_KERNEL); in snd_seq_fifo_new() 23 if (!f) in snd_seq_fifo_new() 26 f->pool = snd_seq_pool_new(poolsize); in snd_seq_fifo_new() 27 if (f->pool == NULL) { in snd_seq_fifo_new() 28 kfree(f); in snd_seq_fifo_new() 31 if (snd_seq_pool_init(f->pool) < 0) { in snd_seq_fifo_new() 32 snd_seq_pool_delete(&f->pool); in snd_seq_fifo_new() 33 kfree(f); in snd_seq_fifo_new() 37 spin_lock_init(&f->lock); in snd_seq_fifo_new() [all …]
|
/openbmc/qemu/target/hexagon/ |
H A D | hex_common.py | 63 raise Exception(f"Couldn't find macro: <{l}>") 275 return f"{immlett}iV" 338 self.reg_num = f"{regtype}{regid}N" 339 def decl_reg_num(self, f, regno): argument 340 f.write(code_fmt(f"""\ 349 f"{self.helper_arg_type()} {self.helper_arg_name()}" 381 return f"{self.reg_tcg()}_off" 387 return f"{self.reg_tcg()}_void" 394 return f"{self.regtype}{self.regid}V" 416 return f"{self.regtype}{self.regid}V" [all …]
|
/openbmc/linux/drivers/media/test-drivers/visl/ |
H A D | visl-trace-vp8.h | 12 TP_PROTO(const struct v4l2_ctrl_vp8_frame *f), 13 TP_ARGS(f), 14 TP_STRUCT__entry(__field_struct(struct v4l2_ctrl_vp8_frame, f)), 15 TP_fast_assign(__entry->f = *f;), 21 __entry->f.entropy.coeff_probs, 22 sizeof(__entry->f.entropy.coeff_probs), 24 __print_array(__entry->f.entropy.y_mode_probs, 25 ARRAY_SIZE(__entry->f.entropy.y_mode_probs), 26 sizeof(__entry->f.entropy.y_mode_probs[0])), 27 __print_array(__entry->f.entropy.uv_mode_probs, [all …]
|
/openbmc/linux/arch/s390/lib/ |
H A D | test_modules.h | 5 #define __REPEAT_10000_3(f, x) \ argument 6 f(x ## 0); \ 7 f(x ## 1); \ 8 f(x ## 2); \ 9 f(x ## 3); \ 10 f(x ## 4); \ 11 f(x ## 5); \ 12 f(x ## 6); \ 13 f(x ## 7); \ 14 f(x ## 8); \ [all …]
|
/openbmc/qemu/include/migration/ |
H A D | qemu-file-types.h | 28 int qemu_file_get_error(QEMUFile *f); 30 void qemu_put_buffer(QEMUFile *f, const uint8_t *buf, size_t size); 31 void qemu_put_byte(QEMUFile *f, int v); 35 void qemu_put_be16(QEMUFile *f, unsigned int v); 36 void qemu_put_be32(QEMUFile *f, unsigned int v); 37 void qemu_put_be64(QEMUFile *f, uint64_t v); 38 size_t coroutine_mixed_fn qemu_get_buffer(QEMUFile *f, uint8_t *buf, size_t size); 40 int qemu_get_byte(QEMUFile *f); 42 static inline unsigned int qemu_get_ubyte(QEMUFile *f) in qemu_get_ubyte() argument 44 return (unsigned int)qemu_get_byte(f); in qemu_get_ubyte() [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-debug.h | 40 #define CHECK_FOR_NEWLINE(f) BUILD_BUG_ON(f[sizeof(f) - 2] != '\n') argument 43 #define __IWL_ERR_DEV(d, mode, f, a...) \ argument 45 CHECK_FOR_NEWLINE(f); \ 46 __iwl_err((d), mode, f, ## a); \ 48 #define IWL_ERR_DEV(d, f, a...) \ argument 49 __IWL_ERR_DEV(d, IWL_ERR_MODE_REGULAR, f, ## a) 50 #define IWL_ERR(m, f, a...) \ argument 51 IWL_ERR_DEV((m)->dev, f, ## a) 52 #define IWL_ERR_LIMIT(m, f, a...) \ argument 53 __IWL_ERR_DEV((m)->dev, IWL_ERR_MODE_RATELIMIT, f, ## a) [all …]
|
/openbmc/phosphor-logging/lib/include/phosphor-logging/lg2/ |
H A D | conversion.hpp | 93 static auto log_convert(const char* h, log_flag<Fs...> f, V v) in log_convert() argument 96 prohibit(f, floating); in log_convert() 97 prohibit(f, signed_val); in log_convert() 98 prohibit(f, str); in log_convert() 100 one_from_set(f, dec | hex | bin); in log_convert() 101 one_from_set(f, field8 | field16 | field32 | field64); in log_convert() 104 return std::make_tuple(h, (f | unsigned_val).value, in log_convert() 110 static auto log_convert(const char* h, log_flag<Fs...> f, V v) in log_convert() argument 113 prohibit(f, floating); in log_convert() 114 prohibit(f, str); in log_convert() [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | spi-nxp-fspi.c | 399 static inline int needs_ip_only(struct nxp_fspi *f) in needs_ip_only() argument 401 return f->devtype_data->quirks & FSPI_QUIRK_USE_IP_ONLY; in needs_ip_only() 411 static void fspi_writel(struct nxp_fspi *f, u32 val, void __iomem *addr) in fspi_writel() argument 413 if (f->devtype_data->little_endian) in fspi_writel() 419 static u32 fspi_readl(struct nxp_fspi *f, void __iomem *addr) in fspi_readl() argument 421 if (f->devtype_data->little_endian) in fspi_readl() 429 struct nxp_fspi *f = dev_id; in nxp_fspi_irq_handler() local 433 reg = fspi_readl(f, f->iobase + FSPI_INTR); in nxp_fspi_irq_handler() 434 fspi_writel(f, FSPI_INTR_IPCMDDONE, f->iobase + FSPI_INTR); in nxp_fspi_irq_handler() 437 complete(&f->c); in nxp_fspi_irq_handler() [all …]
|
/openbmc/linux/drivers/dma-buf/ |
H A D | st-dma-fence.c | 22 } *to_mock_fence(struct dma_fence *f) { in to_mock_fence() argument 23 return container_of(f, struct mock_fence, base); in to_mock_fence() 26 static const char *mock_name(struct dma_fence *f) in mock_name() argument 31 static void mock_fence_release(struct dma_fence *f) in mock_fence_release() argument 33 kmem_cache_free(slab_fences, to_mock_fence(f)); in mock_fence_release() 41 static void mock_wakeup(struct dma_fence *f, struct dma_fence_cb *cb) in mock_wakeup() argument 46 static long mock_wait(struct dma_fence *f, bool intr, long timeout) in mock_wait() argument 51 if (dma_fence_add_callback(f, &cb.cb, mock_wakeup)) in mock_wait() 57 if (test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &f->flags)) in mock_wait() 67 if (!dma_fence_remove_callback(f, &cb.cb)) in mock_wait() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | linked_list_fail.c | 12 struct foo *f, *f1, *f2; \ 31 f = bpf_obj_new(typeof(*f)); \ 32 if (!f) \ 34 f1 = f; \ 57 CHECK(kptr, pop_front, &f->head); 58 CHECK(kptr, pop_back, &f->head); 80 CHECK(kptr, push_front, &f->head, &b->node); 81 CHECK(kptr, push_back, &f->head, &b->node); 83 CHECK(global, push_front, &ghead, &f->node2); 84 CHECK(global, push_back, &ghead, &f->node2); [all …]
|
/openbmc/linux/drivers/media/pci/ivtv/ |
H A D | ivtv-yuv.c | 32 struct yuv_frame_info *f = &yi->new_frame_info[frame]; in ivtv_yuv_prep_user_dma() local 40 y_decode_height = uv_decode_height = f->src_h + f->src_y; in ivtv_yuv_prep_user_dma() 42 if (f->offset_y) in ivtv_yuv_prep_user_dma() 128 if (f->offset_y && yi->blanking_dmaptr) { in ivtv_yuv_prep_user_dma() 217 static void ivtv_yuv_handle_horizontal(struct ivtv *itv, struct yuv_frame_info *f) in ivtv_yuv_handle_horizontal() argument 230 f->tru_w, f->src_w, f->dst_w, f->src_x, f->dst_x); in ivtv_yuv_handle_horizontal() 233 x_cutoff = f->src_w + f->src_x; in ivtv_yuv_handle_horizontal() 236 reg_2834 = f->dst_w; in ivtv_yuv_handle_horizontal() 240 reg_2890 = f->dst_x; in ivtv_yuv_handle_horizontal() 251 if (f->vis_w == 720) { in ivtv_yuv_handle_horizontal() [all …]
|
/openbmc/linux/scripts/ |
H A D | documentation-file-ref-check | 60 my $f = $doc_ref; 63 $f =~ s,.*\<([^\>]+)\>,$1,; 65 if ($f =~ m,^/,) { 66 $f = "$f.rst"; 67 $f =~ s,^/,Documentation/,; 69 $f = "$d$f.rst"; 72 next if (grep -e, glob("$f")); 88 my $f = $1; 92 next if ($f =~ m,^Next/,); 95 next if ($f =~ m/Makefile/ || $f =~ m/\.sh$/); [all …]
|
/openbmc/linux/arch/riscv/kernel/ |
H A D | asm-offsets.c | 41 OFFSET(TASK_THREAD_F0, task_struct, thread.fstate.f[0]); in asm_offsets() 42 OFFSET(TASK_THREAD_F1, task_struct, thread.fstate.f[1]); in asm_offsets() 43 OFFSET(TASK_THREAD_F2, task_struct, thread.fstate.f[2]); in asm_offsets() 44 OFFSET(TASK_THREAD_F3, task_struct, thread.fstate.f[3]); in asm_offsets() 45 OFFSET(TASK_THREAD_F4, task_struct, thread.fstate.f[4]); in asm_offsets() 46 OFFSET(TASK_THREAD_F5, task_struct, thread.fstate.f[5]); in asm_offsets() 47 OFFSET(TASK_THREAD_F6, task_struct, thread.fstate.f[6]); in asm_offsets() 48 OFFSET(TASK_THREAD_F7, task_struct, thread.fstate.f[7]); in asm_offsets() 49 OFFSET(TASK_THREAD_F8, task_struct, thread.fstate.f[8]); in asm_offsets() 50 OFFSET(TASK_THREAD_F9, task_struct, thread.fstate.f[9]); in asm_offsets() [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | i915_sw_fence_work.c | 9 static void fence_complete(struct dma_fence_work *f) in fence_complete() argument 11 if (f->ops->release) in fence_complete() 12 f->ops->release(f); in fence_complete() 13 dma_fence_signal(&f->dma); in fence_complete() 18 struct dma_fence_work *f = container_of(work, typeof(*f), work); in fence_work() local 20 f->ops->work(f); in fence_work() 22 fence_complete(f); in fence_work() 23 dma_fence_put(&f->dma); in fence_work() 29 struct dma_fence_work *f = container_of(fence, typeof(*f), chain); in fence_notify() local 34 dma_fence_set_error(&f->dma, fence->error); in fence_notify() [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_filter.c | 56 static int set_tcb_field(struct adapter *adap, struct filter_entry *f, in set_tcb_field() argument 75 set_wr_txq(skb, CPL_PRIORITY_CONTROL, f->fs.val.iport & 0x3); in set_tcb_field() 82 static int set_tcb_tflag(struct adapter *adap, struct filter_entry *f, in set_tcb_tflag() argument 86 return set_tcb_field(adap, f, ftid, TCB_T_FLAGS_W, 1ULL << bit_pos, in set_tcb_tflag() 120 static void mk_set_tcb_ulp(struct filter_entry *f, in mk_set_tcb_ulp() argument 132 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, f->tid)); in mk_set_tcb_ulp() 143 static int configure_filter_smac(struct adapter *adap, struct filter_entry *f) in configure_filter_smac() argument 148 err = set_tcb_field(adap, f, f->tid, TCB_SMAC_SEL_W, in configure_filter_smac() 150 TCB_SMAC_SEL_V(f->smt->idx), 1); in configure_filter_smac() 154 err = set_tcb_tflag(adap, f, f->tid, TF_CCTRL_CWR_S, 1, 1); in configure_filter_smac() [all …]
|
/openbmc/linux/include/linux/ |
H A D | indirect_call_wrapper.h | 17 #define INDIRECT_CALL_1(f, f1, ...) \ argument 19 likely(f == f1) ? f1(__VA_ARGS__) : f(__VA_ARGS__); \ 21 #define INDIRECT_CALL_2(f, f2, f1, ...) \ argument 23 likely(f == f2) ? f2(__VA_ARGS__) : \ 24 INDIRECT_CALL_1(f, f1, __VA_ARGS__); \ 26 #define INDIRECT_CALL_3(f, f3, f2, f1, ...) \ argument 28 likely(f == f3) ? f3(__VA_ARGS__) : \ 29 INDIRECT_CALL_2(f, f2, f1, __VA_ARGS__); \ 31 #define INDIRECT_CALL_4(f, f4, f3, f2, f1, ...) \ argument 33 likely(f == f4) ? f4(__VA_ARGS__) : \ [all …]
|
/openbmc/linux/include/linux/mtd/ |
H A D | sh_flctl.h | 18 #define FLCMNCR(f) (f->reg + 0x0) argument 19 #define FLCMDCR(f) (f->reg + 0x4) argument 20 #define FLCMCDR(f) (f->reg + 0x8) argument 21 #define FLADR(f) (f->reg + 0xC) argument 22 #define FLADR2(f) (f->reg + 0x3C) argument 23 #define FLDATAR(f) (f->reg + 0x10) argument 24 #define FLDTCNTR(f) (f->reg + 0x14) argument 25 #define FLINTDMACR(f) (f->reg + 0x18) argument 26 #define FLBSYTMR(f) (f->reg + 0x1C) argument 27 #define FLBSYCNT(f) (f->reg + 0x20) argument [all …]
|
/openbmc/u-boot/scripts/dtc/ |
H A D | treesource.c | 37 yyin = current_srcfile->f; in dt_from_source() 49 static void write_prefix(FILE *f, int level) in write_prefix() argument 54 fputc('\t', f); in write_prefix() 64 static void write_propval_string(FILE *f, struct data val) in write_propval_string() argument 74 fprintf(f, "%s: ", m->ref); in write_propval_string() 77 fprintf(f, "\""); in write_propval_string() 84 fprintf(f, "\\a"); in write_propval_string() 87 fprintf(f, "\\b"); in write_propval_string() 90 fprintf(f, "\\t"); in write_propval_string() 93 fprintf(f, "\\n"); in write_propval_string() [all …]
|
/openbmc/linux/scripts/dtc/ |
H A D | treesource.c | 22 yyin = current_srcfile->f; in dt_from_source() 34 static void write_prefix(FILE *f, int level) in write_prefix() argument 39 fputc('\t', f); in write_prefix() 49 static void write_propval_string(FILE *f, const char *s, size_t len) in write_propval_string() argument 58 fprintf(f, "\""); in write_propval_string() 63 fprintf(f, "\\a"); in write_propval_string() 66 fprintf(f, "\\b"); in write_propval_string() 69 fprintf(f, "\\t"); in write_propval_string() 72 fprintf(f, "\\n"); in write_propval_string() 75 fprintf(f, "\\v"); in write_propval_string() [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_tc_matchall.c | 6 struct tc_cls_matchall_offload *f, in lan966x_tc_matchall_add() argument 11 if (!flow_offload_has_one_action(&f->rule->action)) { in lan966x_tc_matchall_add() 12 NL_SET_ERR_MSG_MOD(f->common.extack, in lan966x_tc_matchall_add() 17 act = &f->rule->action.entries[0]; in lan966x_tc_matchall_add() 20 return lan966x_police_port_add(port, &f->rule->action, act, in lan966x_tc_matchall_add() 21 f->cookie, ingress, in lan966x_tc_matchall_add() 22 f->common.extack); in lan966x_tc_matchall_add() 24 return lan966x_mirror_port_add(port, act, f->cookie, in lan966x_tc_matchall_add() 25 ingress, f->common.extack); in lan966x_tc_matchall_add() 27 return lan966x_goto_port_add(port, f->common.chain_index, in lan966x_tc_matchall_add() [all …]
|
/openbmc/qemu/tests/tcg/xtensa/ |
H A D | test_b.S | 8 bnone a2, a3, 1f 12 bnone a2, a3, 1f 13 j 2f 22 beq a2, a3, 1f 26 beq a2, a3, 1f 27 j 2f 36 blt a2, a3, 1f 40 blt a2, a3, 1f 44 blt a2, a3, 1f 45 j 2f [all …]
|
/openbmc/linux/net/sched/ |
H A D | cls_route.c | 78 struct route4_filter *f) in route4_set_fastmap() argument 86 head->fastmap[h].filter = f; in route4_set_fastmap() 112 *res = f->res; \ 113 if (tcf_exts_has_actions(&f->exts)) { \ 114 int r = tcf_exts_exec(skb, &f->exts, res); \ 121 route4_set_fastmap(head, id, iif, f); \ 132 struct route4_filter *f; in route4_classify() local 149 (f = head->fastmap[h].filter) != NULL) { in route4_classify() 150 if (f == ROUTE4_FAILURE) { in route4_classify() 155 *res = f->res; in route4_classify() [all …]
|
H A D | cls_fw.c | 56 struct fw_filter *f; in fw_classify() local 63 for (f = rcu_dereference_bh(head->ht[fw_hash(id)]); f; in fw_classify() 64 f = rcu_dereference_bh(f->next)) { in fw_classify() 65 if (f->id == id) { in fw_classify() 66 *res = f->res; in fw_classify() 67 if (!tcf_match_indev(skb, f->ifindex)) in fw_classify() 69 r = tcf_exts_exec(skb, &f->exts, res); in fw_classify() 94 struct fw_filter *f; in fw_get() local 99 f = rtnl_dereference(head->ht[fw_hash(handle)]); in fw_get() 100 for (; f; f = rtnl_dereference(f->next)) { in fw_get() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | generate_udp_fragments.py | 32 def print_header(f): argument 33 f.write("// SPDX-License-Identifier: GPL-2.0\n") 34 f.write("/* DO NOT EDIT -- this file is generated */\n") 35 f.write("\n") 36 f.write("#ifndef _IP_CHECK_DEFRAG_FRAGS_H\n") 37 f.write("#define _IP_CHECK_DEFRAG_FRAGS_H\n") 38 f.write("\n") 39 f.write("#include <stdint.h>\n") 40 f.write("\n") 43 def print_frags(f, frags, v6): argument [all …]
|