Home
last modified time | relevance | path

Searched refs:fi (Results 1 – 25 of 268) sorted by relevance

1234567891011

/Linux-v6.6/drivers/isdn/mISDN/
Dfsm.c55 mISDN_FsmEvent(struct FsmInst *fi, int event, void *arg) in mISDN_FsmEvent() argument
59 if ((fi->state >= fi->fsm->state_count) || in mISDN_FsmEvent()
60 (event >= fi->fsm->event_count)) { in mISDN_FsmEvent()
63 (long)fi->state, (long)fi->fsm->state_count, event, in mISDN_FsmEvent()
64 (long)fi->fsm->event_count); in mISDN_FsmEvent()
67 r = fi->fsm->jumpmatrix[fi->fsm->state_count * event + fi->state]; in mISDN_FsmEvent()
69 if (fi->debug) in mISDN_FsmEvent()
70 fi->printdebug(fi, "State %s Event %s", in mISDN_FsmEvent()
71 fi->fsm->strState[fi->state], in mISDN_FsmEvent()
72 fi->fsm->strEvent[event]); in mISDN_FsmEvent()
[all …]
Dlayer2.c90 l2m_debug(struct FsmInst *fi, char *fmt, ...) in l2m_debug() argument
92 struct layer2 *l2 = fi->userdata; in l2m_debug()
278 l2_timeout(struct FsmInst *fi, int event, void *arg) in l2_timeout() argument
280 struct layer2 *l2 = fi->userdata; in l2_timeout()
697 establishlink(struct FsmInst *fi) in establishlink() argument
699 struct layer2 *l2 = fi->userdata; in establishlink()
710 mISDN_FsmChangeState(fi, ST_L2_5); in establishlink()
714 l2_mdl_error_ua(struct FsmInst *fi, int event, void *arg) in l2_mdl_error_ua() argument
717 struct layer2 *l2 = fi->userdata; in l2_mdl_error_ua()
727 l2_mdl_error_dm(struct FsmInst *fi, int event, void *arg) in l2_mdl_error_dm() argument
[all …]
Dlayer1.c92 l1m_debug(struct FsmInst *fi, char *fmt, ...) in l1m_debug() argument
94 struct layer1 *l1 = fi->userdata; in l1m_debug()
109 l1_reset(struct FsmInst *fi, int event, void *arg) in l1_reset() argument
111 mISDN_FsmChangeState(fi, ST_L1_F3); in l1_reset()
115 l1_deact_cnf(struct FsmInst *fi, int event, void *arg) in l1_deact_cnf() argument
117 struct layer1 *l1 = fi->userdata; in l1_deact_cnf()
119 mISDN_FsmChangeState(fi, ST_L1_F3); in l1_deact_cnf()
125 l1_deact_req_s(struct FsmInst *fi, int event, void *arg) in l1_deact_req_s() argument
127 struct layer1 *l1 = fi->userdata; in l1_deact_req_s()
129 mISDN_FsmChangeState(fi, ST_L1_F3); in l1_deact_req_s()
[all …]
Dtei.c70 da_debug(struct FsmInst *fi, char *fmt, ...) in da_debug() argument
72 struct manager *mgr = fi->userdata; in da_debug()
90 da_activate(struct FsmInst *fi, int event, void *arg) in da_activate() argument
92 struct manager *mgr = fi->userdata; in da_activate()
94 if (fi->state == ST_L1_DEACT_PENDING) in da_activate()
96 mISDN_FsmChangeState(fi, ST_L1_ACTIV); in da_activate()
100 da_deactivate_ind(struct FsmInst *fi, int event, void *arg) in da_deactivate_ind() argument
102 mISDN_FsmChangeState(fi, ST_L1_DEACT); in da_deactivate_ind()
106 da_deactivate(struct FsmInst *fi, int event, void *arg) in da_deactivate() argument
108 struct manager *mgr = fi->userdata; in da_deactivate()
[all …]
/Linux-v6.6/drivers/s390/net/
Dfsm.h91 fsm_instance *fi; member
120 extern void kfree_fsm(fsm_instance *fi);
124 fsm_print_history(fsm_instance *fi);
127 fsm_record_history(fsm_instance *fi, int state, int event);
144 fsm_event(fsm_instance *fi, int event, void *arg) in fsm_event() argument
147 int state = atomic_read(&fi->state); in fsm_event()
149 if ((state >= fi->f->nr_states) || in fsm_event()
150 (event >= fi->f->nr_events) ) { in fsm_event()
152 fi->name, (long)state,(long)fi->f->nr_states, event, in fsm_event()
153 (long)fi->f->nr_events); in fsm_event()
[all …]
Dfsm.c88 fsm_print_history(fsm_instance *fi) in fsm_print_history() argument
93 if (fi->history_size >= FSM_HISTORY_SIZE) in fsm_print_history()
94 idx = fi->history_index; in fsm_print_history()
96 printk(KERN_DEBUG "fsm(%s): History:\n", fi->name); in fsm_print_history()
97 for (i = 0; i < fi->history_size; i++) { in fsm_print_history()
98 int e = fi->history[idx].event; in fsm_print_history()
99 int s = fi->history[idx++].state; in fsm_print_history()
103 fi->f->state_names[s]); in fsm_print_history()
106 fi->f->state_names[s], in fsm_print_history()
107 fi->f->event_names[e]); in fsm_print_history()
[all …]
Dctcm_fsms.c132 static void ctcm_action_nop(fsm_instance *fi, int event, void *arg);
138 static void chx_txdone(fsm_instance *fi, int event, void *arg);
139 static void chx_rx(fsm_instance *fi, int event, void *arg);
140 static void chx_rxidle(fsm_instance *fi, int event, void *arg);
141 static void chx_firstio(fsm_instance *fi, int event, void *arg);
142 static void ctcm_chx_setmode(fsm_instance *fi, int event, void *arg);
143 static void ctcm_chx_start(fsm_instance *fi, int event, void *arg);
144 static void ctcm_chx_haltio(fsm_instance *fi, int event, void *arg);
145 static void ctcm_chx_stopped(fsm_instance *fi, int event, void *arg);
146 static void ctcm_chx_stop(fsm_instance *fi, int event, void *arg);
[all …]
/Linux-v6.6/net/ipv4/
Dfib_semantics.c69 #define for_nexthops(fi) { \ argument
71 for (nhsel = 0, nh = (fi)->fib_nh; \
72 nhsel < fib_info_num_path((fi)); \
75 #define change_nexthops(fi) { \ argument
77 for (nhsel = 0, nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
78 nhsel < fib_info_num_path((fi)); \
85 #define for_nexthops(fi) { \ argument
86 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \
89 #define change_nexthops(fi) { \ argument
91 struct fib_nh *nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
[all …]
Dfib_lookup.h39 int fib_nh_match(struct net *net, struct fib_config *cfg, struct fib_info *fi,
41 bool fib_metrics_match(struct fib_config *cfg, struct fib_info *fi);
46 size_t fib_nlmsg_size(struct fib_info *fi);
49 struct fib_info *fi) in fib_result_assign() argument
52 res->fi = fi; in fib_result_assign()
53 res->nhc = fib_info_nhc(fi, 0); in fib_result_assign()
/Linux-v6.6/drivers/usb/gadget/
Dfunctions.c15 struct usb_function_instance *fi; in try_get_usb_function_instance() local
17 fi = ERR_PTR(-ENOENT); in try_get_usb_function_instance()
25 fi = ERR_PTR(-EBUSY); in try_get_usb_function_instance()
28 fi = fd->alloc_inst(); in try_get_usb_function_instance()
29 if (IS_ERR(fi)) in try_get_usb_function_instance()
32 fi->fd = fd; in try_get_usb_function_instance()
36 return fi; in try_get_usb_function_instance()
41 struct usb_function_instance *fi; in usb_get_function_instance() local
44 fi = try_get_usb_function_instance(name); in usb_get_function_instance()
45 if (!IS_ERR(fi)) in usb_get_function_instance()
[all …]
/Linux-v6.6/fs/fuse/
Dreaddir.c19 struct fuse_inode *fi = get_fuse_inode(dir); in fuse_use_readdirplus() local
25 if (test_and_clear_bit(FUSE_I_ADVISE_RDPLUS, &fi->state)) in fuse_use_readdirplus()
35 struct fuse_inode *fi = get_fuse_inode(file_inode(file)); in fuse_add_dirent_to_cache() local
44 spin_lock(&fi->rdc.lock); in fuse_add_dirent_to_cache()
49 if (fi->rdc.cached || pos != fi->rdc.pos) { in fuse_add_dirent_to_cache()
50 spin_unlock(&fi->rdc.lock); in fuse_add_dirent_to_cache()
53 version = fi->rdc.version; in fuse_add_dirent_to_cache()
54 size = fi->rdc.size; in fuse_add_dirent_to_cache()
62 spin_unlock(&fi->rdc.lock); in fuse_add_dirent_to_cache()
73 spin_lock(&fi->rdc.lock); in fuse_add_dirent_to_cache()
[all …]
Ddax.c188 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_setup_one_mapping() local
206 args.nodeid = fi->nodeid; in fuse_setup_one_mapping()
223 interval_tree_insert(&dmap->itn, &fi->dax->tree); in fuse_setup_one_mapping()
224 fi->dax->nr++; in fuse_setup_one_mapping()
237 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_send_removemapping() local
242 args.nodeid = fi->nodeid; in fuse_send_removemapping()
313 struct fuse_inode *fi = get_fuse_inode(inode); in inode_reclaim_dmap_range() local
322 node = interval_tree_iter_first(&fi->dax->tree, start_idx, in inode_reclaim_dmap_range()
329 interval_tree_remove(&dmap->itn, &fi->dax->tree); in inode_reclaim_dmap_range()
338 WARN_ON(fi->dax->nr < num); in inode_reclaim_dmap_range()
[all …]
/Linux-v6.6/drivers/media/firewire/
Dfiredtv-fe.c151 struct dvb_frontend_internal_info *fi = &ops->info; in fdtv_frontend_init() local
173 fi->frequency_min_hz = 950 * MHz; in fdtv_frontend_init()
174 fi->frequency_max_hz = 2150 * MHz; in fdtv_frontend_init()
175 fi->frequency_stepsize_hz = 125 * kHz; in fdtv_frontend_init()
176 fi->symbol_rate_min = 1000000; in fdtv_frontend_init()
177 fi->symbol_rate_max = 40000000; in fdtv_frontend_init()
179 fi->caps = FE_CAN_INVERSION_AUTO | in fdtv_frontend_init()
193 fi->frequency_min_hz = 950 * MHz; in fdtv_frontend_init()
194 fi->frequency_max_hz = 2150 * MHz; in fdtv_frontend_init()
195 fi->frequency_stepsize_hz = 125 * kHz; in fdtv_frontend_init()
[all …]
/Linux-v6.6/drivers/scsi/esas2r/
Desas2r_flash.c243 static void fix_bios(struct esas2r_adapter *a, struct esas2r_flash_img *fi) in fix_bios() argument
245 struct esas2r_component_header *ch = &fi->cmp_hdr[CH_IT_BIOS]; in fix_bios()
249 pi = (struct esas2r_pc_image *)((u8 *)fi + ch->image_offset); in fix_bios()
275 static void fix_efi(struct esas2r_adapter *a, struct esas2r_flash_img *fi) in fix_efi() argument
277 struct esas2r_component_header *ch = &fi->cmp_hdr[CH_IT_EFI]; in fix_efi()
286 ei = (struct esas2r_efi_image *)((u8 *)fi + offset); in fix_efi()
307 struct esas2r_flash_img *fi = fc->fi; in complete_fmapi_req() local
309 fi->status = fi_stat; in complete_fmapi_req()
310 fi->driver_error = rq->req_stat; in complete_fmapi_req()
328 struct esas2r_flash_img *fi = fc->fi; in fw_download_proc() local
[all …]
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/lag/
Dmp.c103 static void mlx5_lag_fib_set(struct lag_mp *mp, struct fib_info *fi, u32 dst, int dst_len) in mlx5_lag_fib_set() argument
105 mp->fib.mfi = fi; in mlx5_lag_fib_set()
106 mp->fib.priority = fi->fib_priority; in mlx5_lag_fib_set()
123 struct fib_info *fi, in mlx5_lag_get_next_fib_dev() argument
129 nhs = fib_info_num_path(fi); in mlx5_lag_get_next_fib_dev()
133 fib_dev = fib_info_nh(fi, i)->fib_nh_dev; in mlx5_lag_get_next_fib_dev()
141 fib_dev = fib_info_nh(fi, i)->fib_nh_dev; in mlx5_lag_get_next_fib_dev()
154 struct fib_info *fi = fen_info->fi; in mlx5_lag_fib_route_event() local
160 if (mp->fib.mfi == fi) in mlx5_lag_fib_route_event()
166 if (mp->fib.mfi && mp->fib.mfi != fi && in mlx5_lag_fib_route_event()
[all …]
/Linux-v6.6/arch/um/kernel/
Dtrap.c137 struct faultinfo *fi = UPT_FAULTINFO(regs); in show_segv_info() local
147 tsk->comm, task_pid_nr(tsk), FAULT_ADDRESS(*fi), in show_segv_info()
149 fi->error_code); in show_segv_info()
155 static void bad_segv(struct faultinfo fi, unsigned long ip) in bad_segv() argument
157 current->thread.arch.faultinfo = fi; in bad_segv()
158 force_sig_fault(SIGSEGV, SEGV_ACCERR, (void __user *) FAULT_ADDRESS(fi)); in bad_segv()
185 struct faultinfo * fi = UPT_FAULTINFO(regs); in segv_handler() local
187 if (UPT_IS_USER(regs) && !SEGV_IS_FIXABLE(fi)) { in segv_handler()
189 bad_segv(*fi, UPT_IP(regs)); in segv_handler()
192 segv(*fi, UPT_IP(regs), UPT_IS_USER(regs), regs); in segv_handler()
[all …]
/Linux-v6.6/arch/x86/um/shared/sysdep/
Dmcontext.h13 #define GET_FAULTINFO_FROM_MC(fi, mc) \ argument
15 (fi).cr2 = (mc)->cr2; \
16 (fi).error_code = (mc)->gregs[REG_ERR]; \
17 (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \
22 #define GET_FAULTINFO_FROM_MC(fi, mc) \ argument
24 (fi).cr2 = (mc)->gregs[REG_CR2]; \
25 (fi).error_code = (mc)->gregs[REG_ERR]; \
26 (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \
Dfaultinfo_32.h24 #define FAULT_WRITE(fi) ((fi).error_code & 2) argument
25 #define FAULT_ADDRESS(fi) ((fi).cr2) argument
28 #define SEGV_IS_FIXABLE(fi) ((fi)->trap_no == 14) argument
Dfaultinfo_64.h24 #define FAULT_WRITE(fi) ((fi).error_code & 2) argument
25 #define FAULT_ADDRESS(fi) ((fi).cr2) argument
28 #define SEGV_IS_FIXABLE(fi) ((fi)->trap_no == 14) argument
/Linux-v6.6/fs/f2fs/
Dinode.c282 struct f2fs_inode_info *fi = F2FS_I(inode); in sanity_check_inode() local
306 if (fi->i_extra_isize > F2FS_TOTAL_EXTRA_ATTR_SIZE || in sanity_check_inode()
307 fi->i_extra_isize < F2FS_MIN_EXTRA_ATTR_SIZE || in sanity_check_inode()
308 fi->i_extra_isize % sizeof(__le32)) { in sanity_check_inode()
310 __func__, inode->i_ino, fi->i_extra_isize, in sanity_check_inode()
316 (!fi->i_inline_xattr_size || in sanity_check_inode()
317 fi->i_inline_xattr_size > MAX_INLINE_XATTR_SIZE)) { in sanity_check_inode()
319 __func__, inode->i_ino, fi->i_inline_xattr_size, in sanity_check_inode()
324 fi->i_flags & F2FS_COMPR_FL && in sanity_check_inode()
325 F2FS_FITS_IN_INODE(ri, fi->i_extra_isize, in sanity_check_inode()
[all …]
/Linux-v6.6/fs/udf/
Ddirectory.c23 if (iter->fi.descTag.tagIdent != cpu_to_le16(TAG_IDENT_FID)) { in udf_verify_fi()
27 le16_to_cpu(iter->fi.descTag.tagIdent)); in udf_verify_fi()
30 len = udf_dir_entry_len(&iter->fi); in udf_verify_fi()
31 if (le16_to_cpu(iter->fi.lengthOfImpUse) & 3) { in udf_verify_fi()
54 if (udf_dir_entry_len(&iter->fi) != in udf_verify_fi()
55 sizeof(struct tag) + le16_to_cpu(iter->fi.descTag.descCRCLength)) { in udf_verify_fi()
59 (unsigned)le16_to_cpu(iter->fi.descTag.descCRCLength), in udf_verify_fi()
60 (unsigned)(udf_dir_entry_len(&iter->fi) - in udf_verify_fi()
86 memcpy(&iter->fi, iinfo->i_data + iinfo->i_lenEAttr + iter->pos, in udf_copy_fi()
93 le16_to_cpu(iter->fi.lengthOfImpUse); in udf_copy_fi()
[all …]
Dnamei.c69 if (iter->fi.fileCharacteristics & FID_FILE_CHAR_DELETED) { in udf_fiiter_find_entry()
74 if (iter->fi.fileCharacteristics & FID_FILE_CHAR_HIDDEN) { in udf_fiiter_find_entry()
79 if ((iter->fi.fileCharacteristics & FID_FILE_CHAR_PARENT) && in udf_fiiter_find_entry()
83 if (!iter->fi.lengthFileIdent) in udf_fiiter_find_entry()
87 iter->fi.lengthFileIdent, fname, UDF_NAME_LEN); in udf_fiiter_find_entry()
124 loc = lelb_to_cpu(iter.fi.icb.extLocation); in udf_lookup()
203 iter.fi.descTag.tagLocation = cpu_to_le32(*block); in udf_expand_dir_adinicb()
204 if (iter.fi.lengthOfImpUse != cpu_to_le16(0)) in udf_expand_dir_adinicb()
246 if (iter->fi.fileCharacteristics & FID_FILE_CHAR_DELETED) { in udf_fiiter_add_entry()
247 if (udf_dir_entry_len(&iter->fi) == nfidlen) { in udf_fiiter_add_entry()
[all …]
/Linux-v6.6/drivers/firmware/efi/libstub/
Dfile.c38 struct finfo *fi, in efi_open_file() argument
49 for (c = fi->filename; *c != L'\0'; c++) { in efi_open_file()
54 status = efi_call_proto(volume, open, &fh, fi->filename, in efi_open_file()
57 efi_err("Failed to open file: %ls\n", fi->filename); in efi_open_file()
62 status = efi_call_proto(fh, get_info, &info_guid, &info_sz, fi); in efi_open_file()
70 *file_size = fi->info.file_size; in efi_open_file()
129 struct finfo *fi) in efi_open_device_path() argument
149 fi->filename); in efi_open_device_path()
167 memcpy(fi->filename, fpath->filename, in efi_open_device_path()
168 min(sizeof(fi->filename), in efi_open_device_path()
[all …]
/Linux-v6.6/include/linux/
Dbio.h284 static inline void bio_first_folio(struct folio_iter *fi, struct bio *bio, in bio_first_folio() argument
289 fi->folio = page_folio(bvec->bv_page); in bio_first_folio()
290 fi->offset = bvec->bv_offset + in bio_first_folio()
291 PAGE_SIZE * (bvec->bv_page - &fi->folio->page); in bio_first_folio()
292 fi->_seg_count = bvec->bv_len; in bio_first_folio()
293 fi->length = min(folio_size(fi->folio) - fi->offset, fi->_seg_count); in bio_first_folio()
294 fi->_next = folio_next(fi->folio); in bio_first_folio()
295 fi->_i = i; in bio_first_folio()
298 static inline void bio_next_folio(struct folio_iter *fi, struct bio *bio) in bio_next_folio() argument
300 fi->_seg_count -= fi->length; in bio_next_folio()
[all …]
/Linux-v6.6/arch/s390/kvm/
Dinterrupt.c676 struct kvm_s390_float_interrupt *fi = &vcpu->kvm->arch.float_int; in __deliver_machine_check() local
682 spin_lock(&fi->lock); in __deliver_machine_check()
704 if (test_and_clear_bit(IRQ_PEND_MCHK_REP, &fi->pending_irqs)) { in __deliver_machine_check()
705 mchk.mcic |= fi->mchk.mcic; in __deliver_machine_check()
706 mchk.cr14 |= fi->mchk.cr14; in __deliver_machine_check()
707 memset(&fi->mchk, 0, sizeof(mchk)); in __deliver_machine_check()
711 spin_unlock(&fi->lock); in __deliver_machine_check()
997 struct kvm_s390_float_interrupt *fi = &vcpu->kvm->arch.float_int; in __deliver_service() local
1000 spin_lock(&fi->lock); in __deliver_service()
1001 if (test_bit(IRQ_PEND_EXT_SERVICE, &fi->masked_irqs) || in __deliver_service()
[all …]

1234567891011