/drivers/isdn/hisax/ |
D | fsm.c | 52 FsmEvent(struct FsmInst *fi, int event, void *arg) in FsmEvent() argument 56 if ((fi->state >= fi->fsm->state_count) || (event >= fi->fsm->event_count)) { in FsmEvent() 58 (long)fi->state, (long)fi->fsm->state_count, event, (long)fi->fsm->event_count); in FsmEvent() 61 r = fi->fsm->jumpmatrix[fi->fsm->state_count * event + fi->state]; in FsmEvent() 63 if (fi->debug) in FsmEvent() 64 fi->printdebug(fi, "State %s Event %s", in FsmEvent() 65 fi->fsm->strState[fi->state], in FsmEvent() 66 fi->fsm->strEvent[event]); in FsmEvent() 67 r(fi, event, arg); in FsmEvent() 70 if (fi->debug) in FsmEvent() [all …]
|
D | callc.c | 206 lli_close(struct FsmInst *fi) in lli_close() argument 208 struct Channel *chanp = fi->userdata; in lli_close() 210 FsmChangeState(fi, ST_NULL); in lli_close() 216 lli_leased_in(struct FsmInst *fi, int event, void *arg) in lli_leased_in() argument 218 struct Channel *chanp = fi->userdata; in lli_leased_in() 225 FsmChangeState(fi, ST_IN_WAIT_LL); in lli_leased_in() 242 FsmChangeState(fi, ST_NULL); in lli_leased_in() 251 lli_init_bchan_out(struct FsmInst *fi, int event, void *arg) in lli_init_bchan_out() argument 253 struct Channel *chanp = fi->userdata; in lli_init_bchan_out() 255 FsmChangeState(fi, ST_WAIT_BCONN); in lli_init_bchan_out() [all …]
|
D | isdnl2.c | 25 static void l2m_debug(struct FsmInst *fi, char *fmt, ...); 499 establishlink(struct FsmInst *fi) in establishlink() argument 501 struct PStack *st = fi->userdata; in establishlink() 512 FsmChangeState(fi, ST_L2_5); in establishlink() 516 l2_mdl_error_ua(struct FsmInst *fi, int event, void *arg) in l2_mdl_error_ua() argument 519 struct PStack *st = fi->userdata; in l2_mdl_error_ua() 528 l2_mdl_error_dm(struct FsmInst *fi, int event, void *arg) in l2_mdl_error_dm() argument 531 struct PStack *st = fi->userdata; in l2_mdl_error_dm() 537 establishlink(fi); in l2_mdl_error_dm() 543 l2_st8_mdl_error_dm(struct FsmInst *fi, int event, void *arg) in l2_st8_mdl_error_dm() argument [all …]
|
D | isdnl1.c | 142 l1m_debug(struct FsmInst *fi, char *fmt, ...) in l1m_debug() argument 145 struct PStack *st = fi->userdata; in l1m_debug() 458 l1_reset(struct FsmInst *fi, int event, void *arg) in l1_reset() argument 460 FsmChangeState(fi, ST_L1_F3); in l1_reset() 464 l1_deact_cnf(struct FsmInst *fi, int event, void *arg) in l1_deact_cnf() argument 466 struct PStack *st = fi->userdata; in l1_deact_cnf() 468 FsmChangeState(fi, ST_L1_F3); in l1_deact_cnf() 474 l1_deact_req_s(struct FsmInst *fi, int event, void *arg) in l1_deact_req_s() argument 476 struct PStack *st = fi->userdata; in l1_deact_req_s() 478 FsmChangeState(fi, ST_L1_F3); in l1_deact_req_s() [all …]
|
D | hisax_isac.c | 266 static void l1_di(struct FsmInst *fi, int event, void *arg) in l1_di() argument 268 struct isac *isac = fi->userdata; in l1_di() 270 FsmChangeState(fi, ST_L1_RESET); in l1_di() 274 static void l1_di_deact_ind(struct FsmInst *fi, int event, void *arg) in l1_di_deact_ind() argument 276 struct isac *isac = fi->userdata; in l1_di_deact_ind() 278 FsmChangeState(fi, ST_L1_RESET); in l1_di_deact_ind() 283 static void l1_go_f3pdown(struct FsmInst *fi, int event, void *arg) in l1_go_f3pdown() argument 285 FsmChangeState(fi, ST_L1_F3_PDOWN); in l1_go_f3pdown() 288 static void l1_go_f3pend_deact_ind(struct FsmInst *fi, int event, void *arg) in l1_go_f3pend_deact_ind() argument 290 struct isac *isac = fi->userdata; in l1_go_f3pend_deact_ind() [all …]
|
D | isdnl3.c | 70 l3m_debug(struct FsmInst *fi, char *fmt, ...) in l3m_debug() argument 73 struct PStack *st = fi->userdata; in l3m_debug() 420 lc_activate(struct FsmInst *fi, int event, void *arg) in lc_activate() argument 422 struct PStack *st = fi->userdata; in lc_activate() 424 FsmChangeState(fi, ST_L3_LC_ESTAB_WAIT); in lc_activate() 429 lc_connect(struct FsmInst *fi, int event, void *arg) in lc_connect() argument 431 struct PStack *st = fi->userdata; in lc_connect() 435 FsmChangeState(fi, ST_L3_LC_ESTAB); in lc_connect() 449 lc_connected(struct FsmInst *fi, int event, void *arg) in lc_connected() argument 451 struct PStack *st = fi->userdata; in lc_connected() [all …]
|
D | tei.c | 127 tei_id_request(struct FsmInst *fi, int event, void *arg) in tei_id_request() argument 129 struct PStack *st = fi->userdata; in tei_id_request() 148 tei_id_assign(struct FsmInst *fi, int event, void *arg) in tei_id_assign() argument 150 struct PStack *ost, *st = fi->userdata; in tei_id_assign() 176 tei_id_test_dup(struct FsmInst *fi, int event, void *arg) in tei_id_test_dup() argument 178 struct PStack *ost, *st = fi->userdata; in tei_id_test_dup() 197 tei_id_denied(struct FsmInst *fi, int event, void *arg) in tei_id_denied() argument 199 struct PStack *st = fi->userdata; in tei_id_denied() 211 tei_id_chk_req(struct FsmInst *fi, int event, void *arg) in tei_id_chk_req() argument 213 struct PStack *st = fi->userdata; in tei_id_chk_req() [all …]
|
D | st5481_d.c | 64 l1_go_f3(struct FsmInst *fi, int event, void *arg) in l1_go_f3() argument 66 struct st5481_adapter *adapter = fi->userdata; in l1_go_f3() 68 if (fi->state == ST_L1_F7) in l1_go_f3() 71 FsmChangeState(fi, ST_L1_F3); in l1_go_f3() 76 l1_go_f6(struct FsmInst *fi, int event, void *arg) in l1_go_f6() argument 78 struct st5481_adapter *adapter = fi->userdata; in l1_go_f6() 80 if (fi->state == ST_L1_F7) in l1_go_f6() 83 FsmChangeState(fi, ST_L1_F6); in l1_go_f6() 87 l1_go_f7(struct FsmInst *fi, int event, void *arg) in l1_go_f7() argument 89 struct st5481_adapter *adapter = fi->userdata; in l1_go_f7() [all …]
|
D | fsm.h | 44 struct FsmInst *fi; member 52 int FsmEvent(struct FsmInst *fi, int event, void *arg); 53 void FsmChangeState(struct FsmInst *fi, int newstate); 54 void FsmInitTimer(struct FsmInst *fi, struct FsmTimer *ft);
|
/drivers/isdn/mISDN/ |
D | fsm.c | 59 mISDN_FsmEvent(struct FsmInst *fi, int event, void *arg) in mISDN_FsmEvent() argument 63 if ((fi->state >= fi->fsm->state_count) || in mISDN_FsmEvent() 64 (event >= fi->fsm->event_count)) { in mISDN_FsmEvent() 67 (long)fi->state, (long)fi->fsm->state_count, event, in mISDN_FsmEvent() 68 (long)fi->fsm->event_count); in mISDN_FsmEvent() 71 r = fi->fsm->jumpmatrix[fi->fsm->state_count * event + fi->state]; in mISDN_FsmEvent() 73 if (fi->debug) in mISDN_FsmEvent() 74 fi->printdebug(fi, "State %s Event %s", in mISDN_FsmEvent() 75 fi->fsm->strState[fi->state], in mISDN_FsmEvent() 76 fi->fsm->strEvent[event]); in mISDN_FsmEvent() [all …]
|
D | layer2.c | 99 l2m_debug(struct FsmInst *fi, char *fmt, ...) in l2m_debug() argument 101 struct layer2 *l2 = fi->userdata; in l2m_debug() 287 l2_timeout(struct FsmInst *fi, int event, void *arg) in l2_timeout() argument 289 struct layer2 *l2 = fi->userdata; in l2_timeout() 706 establishlink(struct FsmInst *fi) in establishlink() argument 708 struct layer2 *l2 = fi->userdata; in establishlink() 719 mISDN_FsmChangeState(fi, ST_L2_5); in establishlink() 723 l2_mdl_error_ua(struct FsmInst *fi, int event, void *arg) in l2_mdl_error_ua() argument 726 struct layer2 *l2 = fi->userdata; in l2_mdl_error_ua() 736 l2_mdl_error_dm(struct FsmInst *fi, int event, void *arg) in l2_mdl_error_dm() argument [all …]
|
D | layer1.c | 101 l1m_debug(struct FsmInst *fi, char *fmt, ...) in l1m_debug() argument 103 struct layer1 *l1 = fi->userdata; in l1m_debug() 118 l1_reset(struct FsmInst *fi, int event, void *arg) in l1_reset() argument 120 mISDN_FsmChangeState(fi, ST_L1_F3); in l1_reset() 124 l1_deact_cnf(struct FsmInst *fi, int event, void *arg) in l1_deact_cnf() argument 126 struct layer1 *l1 = fi->userdata; in l1_deact_cnf() 128 mISDN_FsmChangeState(fi, ST_L1_F3); in l1_deact_cnf() 134 l1_deact_req_s(struct FsmInst *fi, int event, void *arg) in l1_deact_req_s() argument 136 struct layer1 *l1 = fi->userdata; in l1_deact_req_s() 138 mISDN_FsmChangeState(fi, ST_L1_F3); in l1_deact_req_s() [all …]
|
D | tei.c | 79 da_debug(struct FsmInst *fi, char *fmt, ...) in da_debug() argument 81 struct manager *mgr = fi->userdata; in da_debug() 99 da_activate(struct FsmInst *fi, int event, void *arg) in da_activate() argument 101 struct manager *mgr = fi->userdata; in da_activate() 103 if (fi->state == ST_L1_DEACT_PENDING) in da_activate() 105 mISDN_FsmChangeState(fi, ST_L1_ACTIV); in da_activate() 109 da_deactivate_ind(struct FsmInst *fi, int event, void *arg) in da_deactivate_ind() argument 111 mISDN_FsmChangeState(fi, ST_L1_DEACT); in da_deactivate_ind() 115 da_deactivate(struct FsmInst *fi, int event, void *arg) in da_deactivate() argument 117 struct manager *mgr = fi->userdata; in da_deactivate() [all …]
|
/drivers/s390/net/ |
D | fsm.h | 90 fsm_instance *fi; member 119 extern void kfree_fsm(fsm_instance *fi); 123 fsm_print_history(fsm_instance *fi); 126 fsm_record_history(fsm_instance *fi, int state, int event); 143 fsm_event(fsm_instance *fi, int event, void *arg) in fsm_event() argument 146 int state = atomic_read(&fi->state); in fsm_event() 148 if ((state >= fi->f->nr_states) || in fsm_event() 149 (event >= fi->f->nr_events) ) { in fsm_event() 151 fi->name, (long)state,(long)fi->f->nr_states, event, in fsm_event() 152 (long)fi->f->nr_events); in fsm_event() [all …]
|
D | fsm.c | 87 fsm_print_history(fsm_instance *fi) in fsm_print_history() argument 92 if (fi->history_size >= FSM_HISTORY_SIZE) in fsm_print_history() 93 idx = fi->history_index; in fsm_print_history() 95 printk(KERN_DEBUG "fsm(%s): History:\n", fi->name); in fsm_print_history() 96 for (i = 0; i < fi->history_size; i++) { in fsm_print_history() 97 int e = fi->history[idx].event; in fsm_print_history() 98 int s = fi->history[idx++].state; in fsm_print_history() 102 fi->f->state_names[s]); in fsm_print_history() 105 fi->f->state_names[s], in fsm_print_history() 106 fi->f->event_names[e]); in fsm_print_history() [all …]
|
D | ctcm_fsms.c | 131 static void ctcm_action_nop(fsm_instance *fi, int event, void *arg); 137 static void chx_txdone(fsm_instance *fi, int event, void *arg); 138 static void chx_rx(fsm_instance *fi, int event, void *arg); 139 static void chx_rxidle(fsm_instance *fi, int event, void *arg); 140 static void chx_firstio(fsm_instance *fi, int event, void *arg); 141 static void ctcm_chx_setmode(fsm_instance *fi, int event, void *arg); 142 static void ctcm_chx_start(fsm_instance *fi, int event, void *arg); 143 static void ctcm_chx_haltio(fsm_instance *fi, int event, void *arg); 144 static void ctcm_chx_stopped(fsm_instance *fi, int event, void *arg); 145 static void ctcm_chx_stop(fsm_instance *fi, int event, void *arg); [all …]
|
D | netiucv.c | 613 static void netiucv_action_nop(fsm_instance *fi, int event, void *arg) in netiucv_action_nop() argument 684 static void conn_action_rx(fsm_instance *fi, int event, void *arg) in conn_action_rx() argument 720 static void conn_action_txdone(fsm_instance *fi, int event, void *arg) in conn_action_txdone() argument 779 fsm_newstate(fi, CONN_STATE_IDLE); in conn_action_txdone() 797 fsm_newstate(fi, CONN_STATE_IDLE); in conn_action_txdone() 811 static void conn_action_connaccept(fsm_instance *fi, int event, void *arg) in conn_action_connaccept() argument 830 fsm_newstate(fi, CONN_STATE_IDLE); in conn_action_connaccept() 835 static void conn_action_connreject(fsm_instance *fi, int event, void *arg) in conn_action_connreject() argument 844 static void conn_action_connack(fsm_instance *fi, int event, void *arg) in conn_action_connack() argument 852 fsm_newstate(fi, CONN_STATE_IDLE); in conn_action_connack() [all …]
|
/drivers/usb/gadget/ |
D | functions.c | 14 struct usb_function_instance *fi; in try_get_usb_function_instance() local 16 fi = ERR_PTR(-ENOENT); in try_get_usb_function_instance() 24 fi = ERR_PTR(-EBUSY); in try_get_usb_function_instance() 27 fi = fd->alloc_inst(); in try_get_usb_function_instance() 28 if (IS_ERR(fi)) in try_get_usb_function_instance() 31 fi->fd = fd; in try_get_usb_function_instance() 35 return fi; in try_get_usb_function_instance() 40 struct usb_function_instance *fi; in usb_get_function_instance() local 43 fi = try_get_usb_function_instance(name); in usb_get_function_instance() 44 if (!IS_ERR(fi)) in usb_get_function_instance() [all …]
|
D | configfs.c | 401 struct usb_function_instance *fi = container_of(group, in config_usb_cfg_link() local 414 if (a_fi == fi) in config_usb_cfg_link() 417 if (a_fi != fi) { in config_usb_cfg_link() 423 if (f->fi == fi) { in config_usb_cfg_link() 429 f = usb_get_function(fi); in config_usb_cfg_link() 452 struct usb_function_instance *fi = container_of(group, in config_usb_cfg_unlink() local 468 if (f->fi == fi) { in config_usb_cfg_unlink() 564 struct usb_function_instance *fi; in function_make() local 583 fi = usb_get_function_instance(func_name); in function_make() 584 if (IS_ERR(fi)) in function_make() [all …]
|
/drivers/media/firewire/ |
D | firedtv-fe.c | 155 struct dvb_frontend_info *fi = &ops->info; in fdtv_frontend_init() local 177 fi->frequency_min = 950000; in fdtv_frontend_init() 178 fi->frequency_max = 2150000; in fdtv_frontend_init() 179 fi->frequency_stepsize = 125; in fdtv_frontend_init() 180 fi->symbol_rate_min = 1000000; in fdtv_frontend_init() 181 fi->symbol_rate_max = 40000000; in fdtv_frontend_init() 183 fi->caps = FE_CAN_INVERSION_AUTO | in fdtv_frontend_init() 197 fi->frequency_min = 950000; in fdtv_frontend_init() 198 fi->frequency_max = 2150000; in fdtv_frontend_init() 199 fi->frequency_stepsize = 125; in fdtv_frontend_init() [all …]
|
/drivers/scsi/esas2r/ |
D | esas2r_flash.c | 243 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/firewire/ |
D | net.c | 282 struct fwnet_fragment_info *fi; in fwnet_frag_overlap() local 285 list_for_each_entry(fi, &pd->fi_list, fi_link) in fwnet_frag_overlap() 286 if (offset < fi->offset + fi->len && end > fi->offset) in fwnet_frag_overlap() 296 struct fwnet_fragment_info *fi, *fi2, *new; in fwnet_frag_new() local 300 list_for_each_entry(fi, &pd->fi_list, fi_link) { in fwnet_frag_new() 301 if (fi->offset + fi->len == offset) { in fwnet_frag_new() 304 fi2 = list_entry(fi->fi_link.next, in fwnet_frag_new() 306 if (fi->offset + fi->len == fi2->offset) { in fwnet_frag_new() 308 fi->len += len + fi2->len; in fwnet_frag_new() 312 fi->len += len; in fwnet_frag_new() [all …]
|
/drivers/usb/gadget/legacy/ |
D | hid.c | 35 struct usb_function_instance *fi; member 105 e->f = usb_get_function(e->fi); in do_config() 150 n->fi = usb_get_function_instance("hid"); in hid_bind() 151 if (IS_ERR(n->fi)) { in hid_bind() 152 status = PTR_ERR(n->fi); in hid_bind() 155 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/xen/ |
D | features.c | 23 struct xen_feature_info fi; in xen_setup_features() local 27 fi.submap_idx = i; in xen_setup_features() 28 if (HYPERVISOR_xen_version(XENVER_get_features, &fi) < 0) in xen_setup_features() 31 xen_features[i * 32 + j] = !!(fi.submap & 1<<j); in xen_setup_features()
|
/drivers/net/wireless/ath/ath9k/ |
D | xmit.c | 168 struct ath_frame_info *fi = get_frame_info(skb); in ath_txq_skb_done() local 169 int q = fi->txq; in ath_txq_skb_done() 223 struct ath_frame_info *fi; in ath_tx_tid_change_state() local 226 fi = get_frame_info(skb); in ath_tx_tid_change_state() 227 bf = fi->bf; in ath_tx_tid_change_state() 253 struct ath_frame_info *fi; in ath_tx_flush_tid() local 261 fi = get_frame_info(skb); in ath_tx_flush_tid() 262 bf = fi->bf; in ath_tx_flush_tid() 269 if (fi->baw_tracked) { in ath_tx_flush_tid() 306 struct ath_frame_info *fi = get_frame_info(bf->bf_mpdu); in ath_tx_addto_baw() local [all …]
|