Home
last modified time | relevance | path

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

12345

/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 …]
/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 …]
Dnetiucv.c562 static void netiucv_action_nop(fsm_instance *fi, int event, void *arg) in netiucv_action_nop() argument
633 static void conn_action_rx(fsm_instance *fi, int event, void *arg) in conn_action_rx() argument
669 static void conn_action_txdone(fsm_instance *fi, int event, void *arg) in conn_action_txdone() argument
727 fsm_newstate(fi, CONN_STATE_IDLE); in conn_action_txdone()
745 fsm_newstate(fi, CONN_STATE_IDLE); in conn_action_txdone()
769 static void conn_action_connaccept(fsm_instance *fi, int event, void *arg) in conn_action_connaccept() argument
788 fsm_newstate(fi, CONN_STATE_IDLE); in conn_action_connaccept()
793 static void conn_action_connreject(fsm_instance *fi, int event, void *arg) in conn_action_connreject() argument
802 static void conn_action_connack(fsm_instance *fi, int event, void *arg) in conn_action_connack() argument
810 fsm_newstate(fi, CONN_STATE_IDLE); in conn_action_connack()
[all …]
/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 …]
/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 …]
/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 …]
/drivers/net/ethernet/mellanox/mlx5/core/
Dlag_mp.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()
124 struct fib_info *fi = fen_info->fi; in mlx5_lag_fib_route_event() local
132 if (mp->fib.mfi == fi) in mlx5_lag_fib_route_event()
138 if (mp->fib.mfi && mp->fib.mfi != fi && in mlx5_lag_fib_route_event()
140 fi->fib_priority >= mp->fib.priority) in mlx5_lag_fib_route_event()
144 nhs = fib_info_num_path(fi); in mlx5_lag_fib_route_event()
147 struct fib_nh *nh = fib_info_nh(fi, 0); in mlx5_lag_fib_route_event()
156 mlx5_lag_fib_set(mp, fi, fen_info->dst, fen_info->dst_len); in mlx5_lag_fib_route_event()
[all …]
/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nffw.c104 static u32 nffw_fwinfo_loaded_get(const struct nffw_fwinfo *fi) in nffw_fwinfo_loaded_get() argument
106 return (le32_to_cpu(fi->loaded__mu_da__mip_off_hi) >> 31) & 1; in nffw_fwinfo_loaded_get()
110 static u32 nffw_fwinfo_mip_cppid_get(const struct nffw_fwinfo *fi) in nffw_fwinfo_mip_cppid_get() argument
112 return le32_to_cpu(fi->mip_cppid); in nffw_fwinfo_mip_cppid_get()
116 static u32 nffw_fwinfo_mip_mu_da_get(const struct nffw_fwinfo *fi) in nffw_fwinfo_mip_mu_da_get() argument
118 return (le32_to_cpu(fi->loaded__mu_da__mip_off_hi) >> 8) & 1; in nffw_fwinfo_mip_mu_da_get()
122 static u64 nffw_fwinfo_mip_offset_get(const struct nffw_fwinfo *fi) in nffw_fwinfo_mip_offset_get() argument
124 u64 mip_off_hi = le32_to_cpu(fi->loaded__mu_da__mip_off_hi); in nffw_fwinfo_mip_offset_get()
126 return (mip_off_hi & 0xFF) << 32 | le32_to_cpu(fi->mip_offset_lo); in nffw_fwinfo_mip_offset_get()
/drivers/firmware/efi/libstub/
Dfile.c38 struct finfo *fi, in efi_open_file() argument
47 status = volume->open(volume, &fh, fi->filename, EFI_FILE_MODE_READ, 0); in efi_open_file()
49 efi_err("Failed to open file: %ls\n", fi->filename); in efi_open_file()
54 status = fh->get_info(fh, &info_guid, &info_sz, fi); in efi_open_file()
62 *file_size = fi->info.file_size; in efi_open_file()
159 struct finfo fi; in handle_cmdline_files() local
165 fi.filename, ARRAY_SIZE(fi.filename)); in handle_cmdline_files()
179 status = efi_open_file(volume, &fi, &file, &size); in handle_cmdline_files()
/drivers/net/wireless/ath/ath9k/
Dxmit.c167 struct ath_frame_info *fi = get_frame_info(skb); in ath_txq_skb_done() local
168 int q = fi->txq; in ath_txq_skb_done()
197 struct ath_frame_info *fi; in ath_tid_pull() local
212 fi = get_frame_info(skb); in ath_tid_pull()
213 fi->txq = q; in ath_tid_pull()
239 struct ath_frame_info *fi; in ath_tx_flush_tid() local
247 fi = get_frame_info(skb); in ath_tx_flush_tid()
248 bf = fi->bf; in ath_tx_flush_tid()
255 if (fi->baw_tracked) { in ath_tx_flush_tid()
274 struct ath_frame_info *fi = get_frame_info(bf->bf_mpdu); in ath_tx_update_baw() local
[all …]
/drivers/firewire/
Dnet.c287 struct fwnet_fragment_info *fi; in fwnet_frag_overlap() local
290 list_for_each_entry(fi, &pd->fi_list, fi_link) in fwnet_frag_overlap()
291 if (offset < fi->offset + fi->len && end > fi->offset) in fwnet_frag_overlap()
301 struct fwnet_fragment_info *fi, *fi2, *new; in fwnet_frag_new() local
305 list_for_each_entry(fi, &pd->fi_list, fi_link) { in fwnet_frag_new()
306 if (fi->offset + fi->len == offset) { in fwnet_frag_new()
309 fi2 = list_entry(fi->fi_link.next, in fwnet_frag_new()
311 if (fi->offset + fi->len == fi2->offset) { in fwnet_frag_new()
313 fi->len += len + fi2->len; in fwnet_frag_new()
317 fi->len += len; in fwnet_frag_new()
[all …]
/drivers/gpu/drm/nouveau/
Dnouveau_svm.c728 int fi, fn; in nouveau_svm_fault() local
761 for (fi = 0, svmm = NULL; fi < buffer->fault_nr; fi++) { in nouveau_svm_fault()
762 if (!svmm || buffer->fault[fi]->inst != inst) { in nouveau_svm_fault()
764 nouveau_ivmm_find(svm, buffer->fault[fi]->inst); in nouveau_svm_fault()
766 inst = buffer->fault[fi]->inst; in nouveau_svm_fault()
769 buffer->fault[fi]->svmm = svmm; in nouveau_svm_fault()
780 for (fi = 0; fn = fi + 1, fi < buffer->fault_nr; fi = fn) { in nouveau_svm_fault()
785 if (!(svmm = buffer->fault[fi]->svmm)) { in nouveau_svm_fault()
786 nouveau_svm_fault_cancel_fault(svm, buffer->fault[fi]); in nouveau_svm_fault()
789 SVMM_DBG(svmm, "addr %016llx", buffer->fault[fi]->addr); in nouveau_svm_fault()
[all …]
/drivers/usb/gadget/legacy/
Dhid.c31 struct usb_function_instance *fi; member
101 e->f = usb_get_function(e->fi); in do_config()
148 n->fi = usb_get_function_instance("hid"); in hid_bind()
149 if (IS_ERR(n->fi)) { in hid_bind()
150 status = PTR_ERR(n->fi); in hid_bind()
153 hid_opts = container_of(n->fi, struct f_hid_opts, func_inst); in hid_bind()
202 usb_put_function_instance(m->fi); in hid_bind()
213 usb_put_function_instance(n->fi); in hid_unbind()
/drivers/pci/switch/
Dswitchtec.c606 struct flash_info_regs __iomem *fi = stdev->mmio_flash_info; in ioctl_flash_info() local
609 info.flash_length = ioread32(&fi->gen3.flash_length); in ioctl_flash_info()
612 info.flash_length = ioread32(&fi->gen4.flash_length); in ioctl_flash_info()
634 struct flash_info_regs_gen3 __iomem *fi = in flash_part_info_gen3() local
641 active_addr = ioread32(&fi->active_cfg); in flash_part_info_gen3()
642 set_fw_info_part(info, &fi->cfg0); in flash_part_info_gen3()
647 active_addr = ioread32(&fi->active_cfg); in flash_part_info_gen3()
648 set_fw_info_part(info, &fi->cfg1); in flash_part_info_gen3()
653 active_addr = ioread32(&fi->active_img); in flash_part_info_gen3()
654 set_fw_info_part(info, &fi->img0); in flash_part_info_gen3()
[all …]
/drivers/xen/
Dfeatures.c37 struct xen_feature_info fi; in xen_setup_features() local
41 fi.submap_idx = i; in xen_setup_features()
42 if (HYPERVISOR_xen_version(XENVER_get_features, &fi) < 0) in xen_setup_features()
45 xen_features[i * 32 + j] = !!(fi.submap & 1U << j); in xen_setup_features()
/drivers/staging/media/imx/
Dimx-ic-prp.c399 struct v4l2_subdev_frame_interval *fi) in prp_g_frame_interval() argument
403 if (fi->pad >= PRP_NUM_PADS) in prp_g_frame_interval()
407 fi->interval = priv->frame_interval; in prp_g_frame_interval()
414 struct v4l2_subdev_frame_interval *fi) in prp_s_frame_interval() argument
418 if (fi->pad >= PRP_NUM_PADS) in prp_s_frame_interval()
424 if (fi->interval.numerator == 0 || fi->interval.denominator == 0) in prp_s_frame_interval()
425 fi->interval = priv->frame_interval; in prp_s_frame_interval()
427 priv->frame_interval = fi->interval; in prp_s_frame_interval()
Dimx-media-vdic.c784 struct v4l2_subdev_frame_interval *fi) in vdic_g_frame_interval() argument
788 if (fi->pad >= VDIC_NUM_PADS) in vdic_g_frame_interval()
793 fi->interval = priv->frame_interval[fi->pad]; in vdic_g_frame_interval()
801 struct v4l2_subdev_frame_interval *fi) in vdic_s_frame_interval() argument
812 switch (fi->pad) { in vdic_s_frame_interval()
816 if (fi->interval.numerator == 0 || in vdic_s_frame_interval()
817 fi->interval.denominator == 0) in vdic_s_frame_interval()
818 fi->interval = priv->frame_interval[fi->pad]; in vdic_s_frame_interval()
820 *output_fi = fi->interval; in vdic_s_frame_interval()
831 fi->interval = *input_fi; in vdic_s_frame_interval()
[all …]
/drivers/pinctrl/meson/
Dpinctrl-meson.h144 #define BANK_DS(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib, \ argument
150 .irq_first = fi, \
162 #define BANK(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib) \ argument
163 BANK_DS(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib, 0, 0)
/drivers/net/can/sja1000/
Dsja1000.c286 uint8_t fi; in sja1000_start_xmit() local
297 fi = can_get_cc_dlc(cf, priv->can.ctrlmode); in sja1000_start_xmit()
301 fi |= SJA1000_FI_RTR; in sja1000_start_xmit()
304 fi |= SJA1000_FI_FF; in sja1000_start_xmit()
306 priv->write_reg(priv, SJA1000_FI, fi); in sja1000_start_xmit()
313 priv->write_reg(priv, SJA1000_FI, fi); in sja1000_start_xmit()
342 uint8_t fi; in sja1000_rx() local
352 fi = priv->read_reg(priv, SJA1000_FI); in sja1000_rx()
354 if (fi & SJA1000_FI_FF) { in sja1000_rx()
369 can_frame_set_cc_len(cf, fi & 0x0F, priv->can.ctrlmode); in sja1000_rx()
[all …]
/drivers/net/ethernet/intel/ice/
Dice_switch.c647 static void ice_fill_sw_info(struct ice_hw *hw, struct ice_fltr_info *fi) in ice_fill_sw_info() argument
649 fi->lb_en = false; in ice_fill_sw_info()
650 fi->lan_en = false; in ice_fill_sw_info()
651 if ((fi->flag & ICE_FLTR_TX) && in ice_fill_sw_info()
652 (fi->fltr_act == ICE_FWD_TO_VSI || in ice_fill_sw_info()
653 fi->fltr_act == ICE_FWD_TO_VSI_LIST || in ice_fill_sw_info()
654 fi->fltr_act == ICE_FWD_TO_Q || in ice_fill_sw_info()
655 fi->fltr_act == ICE_FWD_TO_QGRP)) { in ice_fill_sw_info()
659 if (fi->lkup_type != ICE_SW_LKUP_VLAN) in ice_fill_sw_info()
660 fi->lb_en = true; in ice_fill_sw_info()
[all …]

12345