/drivers/isdn/mISDN/ |
D | fsm.c | 55 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 …]
|
D | layer2.c | 90 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 …]
|
D | layer1.c | 92 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 …]
|
D | tei.c | 70 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/ |
D | fsm.h | 91 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 …]
|
D | fsm.c | 88 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 …]
|
D | ctcm_fsms.c | 132 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 …]
|
D | netiucv.c | 580 static void netiucv_action_nop(fsm_instance *fi, int event, void *arg) in netiucv_action_nop() argument 651 static void conn_action_rx(fsm_instance *fi, int event, void *arg) in conn_action_rx() argument 687 static void conn_action_txdone(fsm_instance *fi, int event, void *arg) in conn_action_txdone() argument 745 fsm_newstate(fi, CONN_STATE_IDLE); in conn_action_txdone() 763 fsm_newstate(fi, CONN_STATE_IDLE); in conn_action_txdone() 777 static void conn_action_connaccept(fsm_instance *fi, int event, void *arg) in conn_action_connaccept() argument 796 fsm_newstate(fi, CONN_STATE_IDLE); in conn_action_connaccept() 801 static void conn_action_connreject(fsm_instance *fi, int event, void *arg) in conn_action_connreject() argument 810 static void conn_action_connack(fsm_instance *fi, int event, void *arg) in conn_action_connack() argument 818 fsm_newstate(fi, CONN_STATE_IDLE); in conn_action_connack() [all …]
|
/drivers/usb/gadget/ |
D | functions.c | 15 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 …]
|
D | configfs.c | 452 struct usb_function_instance *fi = container_of(group, in config_usb_cfg_link() local 465 if (a_fi == fi) in config_usb_cfg_link() 468 if (a_fi != fi) { in config_usb_cfg_link() 474 if (f->fi == fi) { in config_usb_cfg_link() 480 f = usb_get_function(fi); in config_usb_cfg_link() 503 struct usb_function_instance *fi = container_of(group, in config_usb_cfg_unlink() local 519 if (f->fi == fi) { in config_usb_cfg_unlink() 614 struct usb_function_instance *fi; in function_make() local 633 fi = usb_get_function_instance(func_name); in function_make() 634 if (IS_ERR(fi)) in function_make() [all …]
|
/drivers/media/firewire/ |
D | firedtv-fe.c | 151 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/ |
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/net/ethernet/mellanox/mlx5/core/ |
D | lag_mp.c | 112 struct fib_info *fi) in mlx5_lag_fib_route_event() argument 121 if (mp->mfi == fi) in mlx5_lag_fib_route_event() 127 if (mp->mfi && mp->mfi != fi && fi->fib_priority >= mp->mfi->fib_priority) in mlx5_lag_fib_route_event() 131 nhs = fib_info_num_path(fi); in mlx5_lag_fib_route_event() 134 struct fib_nh *nh = fib_info_nh(fi, 0); in mlx5_lag_fib_route_event() 145 mp->mfi = fi; in mlx5_lag_fib_route_event() 153 fib_nh0 = fib_info_nh(fi, 0); in mlx5_lag_fib_route_event() 154 fib_nh1 = fib_info_nh(fi, 1); in mlx5_lag_fib_route_event() 173 mp->mfi = fi; in mlx5_lag_fib_route_event() 179 struct fib_info *fi) in mlx5_lag_fib_nexthop_event() argument [all …]
|
/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_nffw.c | 104 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/ |
D | file.c | 38 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/ |
D | xmit.c | 167 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/ |
D | net.c | 287 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/usb/gadget/legacy/ |
D | hid.c | 31 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/xen/ |
D | features.c | 24 struct xen_feature_info fi; in xen_setup_features() local 28 fi.submap_idx = i; in xen_setup_features() 29 if (HYPERVISOR_xen_version(XENVER_get_features, &fi) < 0) in xen_setup_features() 32 xen_features[i * 32 + j] = !!(fi.submap & 1U << j); in xen_setup_features()
|
/drivers/pci/switch/ |
D | switchtec.c | 607 struct flash_info_regs __iomem *fi = stdev->mmio_flash_info; in ioctl_flash_info() local 610 info.flash_length = ioread32(&fi->gen3.flash_length); in ioctl_flash_info() 613 info.flash_length = ioread32(&fi->gen4.flash_length); in ioctl_flash_info() 635 struct flash_info_regs_gen3 __iomem *fi = in flash_part_info_gen3() local 642 active_addr = ioread32(&fi->active_cfg); in flash_part_info_gen3() 643 set_fw_info_part(info, &fi->cfg0); in flash_part_info_gen3() 648 active_addr = ioread32(&fi->active_cfg); in flash_part_info_gen3() 649 set_fw_info_part(info, &fi->cfg1); in flash_part_info_gen3() 654 active_addr = ioread32(&fi->active_img); in flash_part_info_gen3() 655 set_fw_info_part(info, &fi->img0); in flash_part_info_gen3() [all …]
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_svm.c | 631 int fi, fn; in nouveau_svm_fault() local 664 for (fi = 0, svmm = NULL; fi < buffer->fault_nr; fi++) { in nouveau_svm_fault() 665 if (!svmm || buffer->fault[fi]->inst != inst) { in nouveau_svm_fault() 667 nouveau_ivmm_find(svm, buffer->fault[fi]->inst); in nouveau_svm_fault() 669 inst = buffer->fault[fi]->inst; in nouveau_svm_fault() 672 buffer->fault[fi]->svmm = svmm; in nouveau_svm_fault() 683 for (fi = 0; fn = fi + 1, fi < buffer->fault_nr; fi = fn) { in nouveau_svm_fault() 688 if (!(svmm = buffer->fault[fi]->svmm)) { in nouveau_svm_fault() 689 nouveau_svm_fault_cancel_fault(svm, buffer->fault[fi]); in nouveau_svm_fault() 692 SVMM_DBG(svmm, "addr %016llx", buffer->fault[fi]->addr); in nouveau_svm_fault() [all …]
|
/drivers/staging/media/imx/ |
D | imx-ic-prp.c | 398 struct v4l2_subdev_frame_interval *fi) in prp_g_frame_interval() argument 402 if (fi->pad >= PRP_NUM_PADS) in prp_g_frame_interval() 406 fi->interval = priv->frame_interval; in prp_g_frame_interval() 413 struct v4l2_subdev_frame_interval *fi) in prp_s_frame_interval() argument 417 if (fi->pad >= PRP_NUM_PADS) in prp_s_frame_interval() 423 if (fi->interval.numerator == 0 || fi->interval.denominator == 0) in prp_s_frame_interval() 424 fi->interval = priv->frame_interval; in prp_s_frame_interval() 426 priv->frame_interval = fi->interval; in prp_s_frame_interval()
|
D | imx-media-vdic.c | 784 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/media/v4l2-core/ |
D | v4l2-subdev.c | 212 struct v4l2_subdev_frame_interval *fi) in check_frame_interval() argument 214 if (!fi) in check_frame_interval() 217 return check_pad(sd, fi->pad); in check_frame_interval() 221 struct v4l2_subdev_frame_interval *fi) in call_g_frame_interval() argument 223 return check_frame_interval(sd, fi) ? : in call_g_frame_interval() 224 sd->ops->video->g_frame_interval(sd, fi); in call_g_frame_interval() 228 struct v4l2_subdev_frame_interval *fi) in call_s_frame_interval() argument 230 return check_frame_interval(sd, fi) ? : in call_s_frame_interval() 231 sd->ops->video->s_frame_interval(sd, fi); in call_s_frame_interval() 565 struct v4l2_subdev_frame_interval *fi = arg; in subdev_do_ioctl() local [all …]
|
/drivers/pinctrl/meson/ |
D | pinctrl-meson.h | 144 #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)
|