/linux-4.4.14/drivers/scsi/mpt3sas/ |
D | mpt3sas_base.c | 96 _base_get_ioc_facts(struct MPT3SAS_ADAPTER *ioc, int sleep_flag); 106 struct MPT3SAS_ADAPTER *ioc; in _scsih_set_fwfault_debug() local 114 list_for_each_entry(ioc, &mpt3sas_ioc_list, list) in _scsih_set_fwfault_debug() 115 ioc->fwfault_debug = mpt3sas_fwfault_debug; in _scsih_set_fwfault_debug() 131 struct MPT3SAS_ADAPTER *ioc = (struct MPT3SAS_ADAPTER *)arg; in mpt3sas_remove_dead_ioc_func() local 134 if ((ioc == NULL)) in mpt3sas_remove_dead_ioc_func() 137 pdev = ioc->pdev; in mpt3sas_remove_dead_ioc_func() 154 struct MPT3SAS_ADAPTER *ioc = in _base_fault_reset_work() local 162 spin_lock_irqsave(&ioc->ioc_reset_in_progress_lock, flags); in _base_fault_reset_work() 163 if (ioc->shost_recovery || ioc->pci_error_recovery) in _base_fault_reset_work() [all …]
|
D | mpt3sas_trigger_diag.c | 68 _mpt3sas_raise_sigio(struct MPT3SAS_ADAPTER *ioc, in _mpt3sas_raise_sigio() argument 75 dTriggerDiagPrintk(ioc, pr_info(MPT3SAS_FMT "%s: enter\n", in _mpt3sas_raise_sigio() 76 ioc->name, __func__)); in _mpt3sas_raise_sigio() 88 dTriggerDiagPrintk(ioc, pr_info(MPT3SAS_FMT in _mpt3sas_raise_sigio() 90 ioc->name, __func__)); in _mpt3sas_raise_sigio() 91 mpt3sas_ctl_add_to_event_log(ioc, mpi_reply); in _mpt3sas_raise_sigio() 96 spin_lock_irqsave(&ioc->diag_trigger_lock, flags); in _mpt3sas_raise_sigio() 97 dTriggerDiagPrintk(ioc, pr_info(MPT3SAS_FMT in _mpt3sas_raise_sigio() 99 ioc->name, __func__)); in _mpt3sas_raise_sigio() 100 ioc->diag_trigger_active = 0; in _mpt3sas_raise_sigio() [all …]
|
D | mpt3sas_ctl.c | 91 _ctl_sas_device_find_by_handle(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _ctl_sas_device_find_by_handle() argument 96 list_for_each_entry(sas_device, &ioc->sas_device_list, list) { in _ctl_sas_device_find_by_handle() 119 _ctl_display_some_debug(struct MPT3SAS_ADAPTER *ioc, u16 smid, in _ctl_display_some_debug() argument 125 if (!(ioc->logging_level & MPT_DEBUG_IOCTL)) in _ctl_display_some_debug() 128 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _ctl_display_some_debug() 135 snprintf(ioc->tmp_string, MPT_STRING_LENGTH, in _ctl_display_some_debug() 139 desc = ioc->tmp_string; in _ctl_display_some_debug() 156 snprintf(ioc->tmp_string, MPT_STRING_LENGTH, in _ctl_display_some_debug() 161 desc = ioc->tmp_string; in _ctl_display_some_debug() 187 snprintf(ioc->tmp_string, MPT_STRING_LENGTH, in _ctl_display_some_debug() [all …]
|
D | mpt3sas_scsih.c | 63 static void _scsih_expander_node_remove(struct MPT3SAS_ADAPTER *ioc, 67 static void _scsih_remove_device(struct MPT3SAS_ADAPTER *ioc, 69 static int _scsih_add_device(struct MPT3SAS_ADAPTER *ioc, u16 handle, 72 static u8 _scsih_check_for_pending_tm(struct MPT3SAS_ADAPTER *ioc, u16 smid); 194 struct MPT3SAS_ADAPTER *ioc; member 288 struct MPT3SAS_ADAPTER *ioc; in _scsih_set_debug_level() local 295 list_for_each_entry(ioc, &mpt3sas_ioc_list, list) in _scsih_set_debug_level() 296 ioc->logging_level = logging_level; in _scsih_set_debug_level() 401 _scsih_get_sas_address(struct MPT3SAS_ADAPTER *ioc, u16 handle, in _scsih_get_sas_address() argument 410 if (handle <= ioc->sas_hba.num_phys) { in _scsih_get_sas_address() [all …]
|
D | mpt3sas_transport.c | 73 _transport_sas_node_find_by_sas_address(struct MPT3SAS_ADAPTER *ioc, in _transport_sas_node_find_by_sas_address() argument 76 if (ioc->sas_hba.sas_address == sas_address) in _transport_sas_node_find_by_sas_address() 77 return &ioc->sas_hba; in _transport_sas_node_find_by_sas_address() 79 return mpt3sas_scsih_expander_find_by_sas_address(ioc, in _transport_sas_node_find_by_sas_address() 140 _transport_set_identify(struct MPT3SAS_ADAPTER *ioc, u16 handle, in _transport_set_identify() argument 148 if (ioc->shost_recovery || ioc->pci_error_recovery) { in _transport_set_identify() 150 __func__, ioc->name); in _transport_set_identify() 154 if ((mpt3sas_config_get_sas_device_pg0(ioc, &mpi_reply, &sas_device_pg0, in _transport_set_identify() 157 ioc->name, __FILE__, __LINE__, __func__); in _transport_set_identify() 166 ioc->name, handle, ioc_status, in _transport_set_identify() [all …]
|
D | mpt3sas_config.c | 98 _config_display_some_debug(struct MPT3SAS_ADAPTER *ioc, u16 smid, in _config_display_some_debug() argument 104 if (!(ioc->logging_level & MPT_DEBUG_CONFIG)) in _config_display_some_debug() 107 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _config_display_some_debug() 162 ioc->name, calling_function_name, desc, in _config_display_some_debug() 172 ioc->name, le16_to_cpu(mpi_reply->IOCStatus), in _config_display_some_debug() 186 _config_alloc_config_dma_memory(struct MPT3SAS_ADAPTER *ioc, in _config_alloc_config_dma_memory() argument 191 if (mem->sz > ioc->config_page_sz) { in _config_alloc_config_dma_memory() 192 mem->page = dma_alloc_coherent(&ioc->pdev->dev, mem->sz, in _config_alloc_config_dma_memory() 197 ioc->name, __func__, mem->sz); in _config_alloc_config_dma_memory() 201 mem->page = ioc->config_page; in _config_alloc_config_dma_memory() [all …]
|
D | mpt3sas_base.h | 692 struct MPT3SAS_ADAPTER *ioc; member 706 typedef int (*MPT_BUILD_SG_SCMD)(struct MPT3SAS_ADAPTER *ioc, 708 typedef void (*MPT_BUILD_SG)(struct MPT3SAS_ADAPTER *ioc, void *psge, 711 typedef void (*MPT_BUILD_ZERO_LEN_SGE)(struct MPT3SAS_ADAPTER *ioc, 778 typedef void (*MPT3SAS_FLUSH_RUNNING_CMDS)(struct MPT3SAS_ADAPTER *ioc); 1170 typedef u8 (*MPT_CALLBACK)(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index, 1189 void mpt3sas_base_start_watchdog(struct MPT3SAS_ADAPTER *ioc); 1190 void mpt3sas_base_stop_watchdog(struct MPT3SAS_ADAPTER *ioc); 1192 int mpt3sas_base_attach(struct MPT3SAS_ADAPTER *ioc); 1193 void mpt3sas_base_detach(struct MPT3SAS_ADAPTER *ioc); [all …]
|
D | mpt3sas_warpdrive.c | 54 _warpdrive_disable_ddio(struct MPT3SAS_ADAPTER *ioc) in _warpdrive_disable_ddio() argument 64 while (!(mpt3sas_config_get_raid_volume_pg1(ioc, &mpi_reply, in _warpdrive_disable_ddio() 71 spin_lock_irqsave(&ioc->raid_device_lock, flags); in _warpdrive_disable_ddio() 72 raid_device = mpt3sas_raid_device_find_by_handle(ioc, handle); in _warpdrive_disable_ddio() 75 spin_unlock_irqrestore(&ioc->raid_device_lock, flags); in _warpdrive_disable_ddio() 86 mpt3sas_get_num_volumes(struct MPT3SAS_ADAPTER *ioc) in mpt3sas_get_num_volumes() argument 95 while (!(mpt3sas_config_get_raid_volume_pg1(ioc, &mpi_reply, in mpt3sas_get_num_volumes() 114 mpt3sas_init_warpdrive_properties(struct MPT3SAS_ADAPTER *ioc, in mpt3sas_init_warpdrive_properties() argument 126 if (!ioc->is_warpdrive) in mpt3sas_init_warpdrive_properties() 129 if (ioc->mfg_pg10_hide_flag == MFG_PAGE10_EXPOSE_ALL_DISKS) { in mpt3sas_init_warpdrive_properties() [all …]
|
/linux-4.4.14/drivers/message/fusion/ |
D | mptbase.c | 160 static int mptbase_reply(MPT_ADAPTER *ioc, MPT_FRAME_HDR *req, 162 static int mpt_handshake_req_reply_wait(MPT_ADAPTER *ioc, int reqBytes, 165 static int mpt_do_ioc_recovery(MPT_ADAPTER *ioc, u32 reason, int sleepFlag); 166 static void mpt_detect_bound_ports(MPT_ADAPTER *ioc, struct pci_dev *pdev); 167 static void mpt_adapter_disable(MPT_ADAPTER *ioc); 168 static void mpt_adapter_dispose(MPT_ADAPTER *ioc); 170 static void MptDisplayIocCapabilities(MPT_ADAPTER *ioc); 171 static int MakeIocReady(MPT_ADAPTER *ioc, int force, int sleepFlag); 172 static int GetIocFacts(MPT_ADAPTER *ioc, int sleepFlag, int reason); 173 static int GetPortFacts(MPT_ADAPTER *ioc, int portnum, int sleepFlag); [all …]
|
D | mptscsih.c | 84 struct scsi_cmnd *mptscsih_get_scsi_lookup(MPT_ADAPTER *ioc, int i); 85 static struct scsi_cmnd * mptscsih_getclear_scsi_lookup(MPT_ADAPTER *ioc, int i); 86 static void mptscsih_set_scsi_lookup(MPT_ADAPTER *ioc, int i, struct scsi_cmnd *scmd); 87 static int SCPNT_TO_LOOKUP_IDX(MPT_ADAPTER *ioc, struct scsi_cmnd *scmd); 88 int mptscsih_io_done(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r); 90 int mptscsih_taskmgmt_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r); 92 static int mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt, 94 static void mptscsih_freeChainBuffers(MPT_ADAPTER *ioc, int req_idx); 100 int mptscsih_ioc_reset(MPT_ADAPTER *ioc, int post_reset); 101 int mptscsih_event_process(MPT_ADAPTER *ioc, EventNotificationReply_t *pEvReply); [all …]
|
D | mptsas.c | 112 static inline void mptsas_set_rphy(MPT_ADAPTER *ioc, 115 (MPT_ADAPTER *ioc, u64 sas_address); 116 static int mptsas_sas_device_pg0(MPT_ADAPTER *ioc, 118 static int mptsas_sas_enclosure_pg0(MPT_ADAPTER *ioc, 120 static int mptsas_add_end_device(MPT_ADAPTER *ioc, 122 static void mptsas_del_end_device(MPT_ADAPTER *ioc, 126 (MPT_ADAPTER *ioc, u64 sas_address); 127 static void mptsas_expander_delete(MPT_ADAPTER *ioc, 130 static void mptsas_not_responding_devices(MPT_ADAPTER *ioc); 131 static void mptsas_scan_sas_topology(MPT_ADAPTER *ioc); [all …]
|
D | mptctl.c | 127 static int mptctl_do_fw_download(int ioc, char __user *ufwbuf, size_t fwlen); 129 struct buflist **blp, dma_addr_t *sglbuf_dma, MPT_ADAPTER *ioc); 131 struct buflist *buflist, MPT_ADAPTER *ioc); 136 static int mptctl_ioc_reset(MPT_ADAPTER *ioc, int reset_phase); 141 static int mptctl_event_process(MPT_ADAPTER *ioc, EventNotificationReply_t *pEvReply); 179 mptctl_syscall_down(MPT_ADAPTER *ioc, int nonblock) in mptctl_syscall_down() argument 184 if (!mutex_trylock(&ioc->ioctl_cmds.mutex)) in mptctl_syscall_down() 187 if (mutex_lock_interruptible(&ioc->ioctl_cmds.mutex)) in mptctl_syscall_down() 201 mptctl_reply(MPT_ADAPTER *ioc, MPT_FRAME_HDR *req, MPT_FRAME_HDR *reply) in mptctl_reply() argument 210 dctlprintk(ioc, printk(MYIOC_s_DEBUG_FMT "completing mpi function " in mptctl_reply() [all …]
|
D | mptfc.c | 197 MPT_ADAPTER *ioc; in mptfc_block_error_handler() local 201 ioc = hd->ioc; in mptfc_block_error_handler() 204 || (loops > 0 && ioc->active == 0)) { in mptfc_block_error_handler() 206 dfcprintk (ioc, printk(MYIOC_s_DEBUG_FMT in mptfc_block_error_handler() 209 ioc->name, ioc->sh->host_no, in mptfc_block_error_handler() 211 ready, ioc->active, caller)); in mptfc_block_error_handler() 219 || ioc->active == 0) { in mptfc_block_error_handler() 220 dfcprintk (ioc, printk(MYIOC_s_DEBUG_FMT in mptfc_block_error_handler() 223 ioc->name, ioc->sh->host_no, in mptfc_block_error_handler() 225 ioc->active, SCpnt->device->hostdata)); in mptfc_block_error_handler() [all …]
|
D | mptspi.c | 111 MPT_ADAPTER *ioc = hd->ioc; in mptspi_setTargetNegoParms() local 112 SpiCfgData *pspi_data = &ioc->spi_data; in mptspi_setTargetNegoParms() 143 ddvprintk(ioc, in mptspi_setTargetNegoParms() 145 "byte56=%02x on id=%d!\n", ioc->name, in mptspi_setTargetNegoParms() 237 ddvprintk(ioc, printk(MYIOC_s_DEBUG_FMT in mptspi_setTargetNegoParms() 238 "Disabling QAS due to noQas=%02x on id=%d!\n", ioc->name, noQas, id)); in mptspi_setTargetNegoParms() 256 MPT_ADAPTER *ioc = hd->ioc; in mptspi_writeIOCPage4() local 268 if ((mf = mpt_get_msg_frame(ioc->DoneCtx, ioc)) == NULL) { in mptspi_writeIOCPage4() 269 dfailprintk(ioc, printk(MYIOC_s_WARN_FMT in mptspi_writeIOCPage4() 270 "writeIOCPage4 : no msg frames!\n",ioc->name)); in mptspi_writeIOCPage4() [all …]
|
D | mptdebug.h | 148 DBG_DUMP_FW_DOWNLOAD(MPT_ADAPTER *ioc, u32 *mfp, int numfrags) in DBG_DUMP_FW_DOWNLOAD() argument 152 if (!(ioc->debug_level & MPT_DEBUG)) in DBG_DUMP_FW_DOWNLOAD() 161 DBG_DUMP_PUT_MSG_FRAME(MPT_ADAPTER *ioc, u32 *mfp) in DBG_DUMP_PUT_MSG_FRAME() argument 165 if (!(ioc->debug_level & MPT_DEBUG_MSG_FRAME)) in DBG_DUMP_PUT_MSG_FRAME() 168 ioc->name, mfp); in DBG_DUMP_PUT_MSG_FRAME() 169 n = ioc->req_sz/4 - 1; in DBG_DUMP_PUT_MSG_FRAME() 181 DBG_DUMP_FW_REQUEST_FRAME(MPT_ADAPTER *ioc, u32 *mfp) in DBG_DUMP_FW_REQUEST_FRAME() argument 185 if (!(ioc->debug_level & MPT_DEBUG_MSG_FRAME)) in DBG_DUMP_FW_REQUEST_FRAME() 195 DBG_DUMP_REQUEST_FRAME(MPT_ADAPTER *ioc, u32 *mfp) in DBG_DUMP_REQUEST_FRAME() argument 199 if (!(ioc->debug_level & MPT_DEBUG_MSG_FRAME)) in DBG_DUMP_REQUEST_FRAME() [all …]
|
D | mptbase.h | 586 struct _MPT_ADAPTER *ioc; member 597 typedef void (*MPT_SCHEDULE_TARGET_RESET)(void *ioc); 797 typedef int (*MPT_CALLBACK)(MPT_ADAPTER *ioc, MPT_FRAME_HDR *req, MPT_FRAME_HDR *reply); 798 typedef int (*MPT_EVHANDLER)(MPT_ADAPTER *ioc, EventNotificationReply_t *evReply); 799 typedef int (*MPT_RESETHANDLER)(MPT_ADAPTER *ioc, int reset_phase); 827 #define mpt_msg_flags(ioc) \ argument 828 (ioc->sg_addr_size == sizeof(u64)) ? \ 841 #define MPT_INDEX_2_MFPTR(ioc,idx) \ argument 842 (MPT_FRAME_HDR*)( (u8*)(ioc)->req_frames + (ioc)->req_sz * (idx) ) 844 #define MFPTR_2_MPT_INDEX(ioc,mf) \ argument [all …]
|
D | mptscsih.h | 126 extern int mptscsih_io_done(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r); 127 extern int mptscsih_taskmgmt_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r); 128 extern int mptscsih_scandv_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r); 129 extern int mptscsih_event_process(MPT_ADAPTER *ioc, EventNotificationReply_t *pEvReply); 130 extern int mptscsih_ioc_reset(MPT_ADAPTER *ioc, int post_reset); 132 extern u8 mptscsih_raid_id_to_num(MPT_ADAPTER *ioc, u8 channel, u8 id); 133 extern int mptscsih_is_phys_disk(MPT_ADAPTER *ioc, u8 channel, u8 id); 135 extern struct scsi_cmnd *mptscsih_get_scsi_lookup(MPT_ADAPTER *ioc, int i); 136 extern void mptscsih_taskmgmt_response_code(MPT_ADAPTER *ioc, u8 response_code);
|
D | mptlan.c | 129 static int lan_reply (MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, 143 static int mpt_lan_ioc_reset(MPT_ADAPTER *ioc, int reset_phase); 144 static int mpt_lan_event_process(MPT_ADAPTER *ioc, EventNotificationReply_t *pEvReply); 168 lan_reply (MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *reply) in lan_reply() argument 170 struct net_device *dev = ioc->netdev; in lan_reply() 300 mpt_lan_ioc_reset(MPT_ADAPTER *ioc, int reset_phase) in mpt_lan_ioc_reset() argument 302 struct net_device *dev = ioc->netdev; in mpt_lan_ioc_reset() 345 mpt_lan_event_process(MPT_ADAPTER *ioc, EventNotificationReply_t *pEvReply) in mpt_lan_event_process() argument 1391 MPT_ADAPTER *ioc = pci_get_drvdata(pdev); in mptlan_probe() local 1395 for (i = 0; i < ioc->facts.NumberOfPorts; i++) { in mptlan_probe() [all …]
|
D | mptsas.h | 95 MPT_ADAPTER *ioc; member 110 MPT_ADAPTER *ioc; member 118 MPT_ADAPTER *ioc; member
|
/linux-4.4.14/drivers/net/ethernet/brocade/bna/ |
D | bfa_ioc.c | 58 static void bfa_ioc_hw_sem_init(struct bfa_ioc *ioc); 59 static void bfa_ioc_hw_sem_get(struct bfa_ioc *ioc); 60 static void bfa_ioc_hw_sem_get_cancel(struct bfa_ioc *ioc); 61 static void bfa_ioc_hwinit(struct bfa_ioc *ioc, bool force); 62 static void bfa_ioc_poll_fwinit(struct bfa_ioc *ioc); 63 static void bfa_ioc_send_enable(struct bfa_ioc *ioc); 64 static void bfa_ioc_send_disable(struct bfa_ioc *ioc); 65 static void bfa_ioc_send_getattr(struct bfa_ioc *ioc); 66 static void bfa_ioc_hb_monitor(struct bfa_ioc *ioc); 67 static void bfa_ioc_hb_stop(struct bfa_ioc *ioc); [all …]
|
D | bfa_ioc_ct.c | 37 static bool bfa_ioc_ct_firmware_lock(struct bfa_ioc *ioc); 38 static void bfa_ioc_ct_firmware_unlock(struct bfa_ioc *ioc); 39 static void bfa_ioc_ct_reg_init(struct bfa_ioc *ioc); 40 static void bfa_ioc_ct2_reg_init(struct bfa_ioc *ioc); 41 static void bfa_ioc_ct_map_port(struct bfa_ioc *ioc); 42 static void bfa_ioc_ct2_map_port(struct bfa_ioc *ioc); 43 static void bfa_ioc_ct_isr_mode_set(struct bfa_ioc *ioc, bool msix); 44 static void bfa_ioc_ct_notify_fail(struct bfa_ioc *ioc); 45 static void bfa_ioc_ct_ownership_reset(struct bfa_ioc *ioc); 46 static bool bfa_ioc_ct_sync_start(struct bfa_ioc *ioc); [all …]
|
D | bfa_ioc.h | 160 struct bfa_ioc *ioc; member 205 bool (*ioc_firmware_lock) (struct bfa_ioc *ioc); 206 void (*ioc_firmware_unlock) (struct bfa_ioc *ioc); 207 void (*ioc_reg_init) (struct bfa_ioc *ioc); 208 void (*ioc_map_port) (struct bfa_ioc *ioc); 209 void (*ioc_isr_mode_set) (struct bfa_ioc *ioc, 211 void (*ioc_notify_fail) (struct bfa_ioc *ioc); 212 void (*ioc_ownership_reset) (struct bfa_ioc *ioc); 213 bool (*ioc_sync_start) (struct bfa_ioc *ioc); 214 void (*ioc_sync_join) (struct bfa_ioc *ioc); [all …]
|
D | bfa_cee.c | 171 BUG_ON(!((cee != NULL) && (cee->ioc != NULL))); in bfa_nw_cee_get_attr() 172 if (!bfa_nw_ioc_is_operational(cee->ioc)) in bfa_nw_cee_get_attr() 184 bfa_ioc_portid(cee->ioc)); in bfa_nw_cee_get_attr() 186 bfa_nw_ioc_mbox_queue(cee->ioc, &cee->get_cfg_mb, NULL, NULL); in bfa_nw_cee_get_attr() 277 bfa_nw_cee_attach(struct bfa_cee *cee, struct bfa_ioc *ioc, in bfa_nw_cee_attach() argument 282 cee->ioc = ioc; in bfa_nw_cee_attach() 284 bfa_nw_ioc_mbox_regisr(cee->ioc, BFI_MC_CEE, bfa_cee_isr, cee); in bfa_nw_cee_attach() 286 bfa_nw_ioc_notify_register(cee->ioc, &cee->ioc_notify); in bfa_nw_cee_attach()
|
D | bnad_debugfs.c | 70 rc = bfa_nw_ioc_debug_fwtrc(&bnad->bna.ioceth.ioc, in bnad_debugfs_open_fwtrc() 110 rc = bfa_nw_ioc_debug_fwsave(&bnad->bna.ioceth.ioc, in bnad_debugfs_open_fwsave() 154 bfa_nw_ioc_get_attr(&bnad->bna.ioceth.ioc, &drvinfo->ioc_attr); in bnad_get_debug_drvinfo() 263 bna_reg_offset_check(struct bfa_ioc *ioc, u32 offset, u32 len) in bna_reg_offset_check() argument 279 if (offset + (len << 2) > BFA_REG_ADDRMSK(ioc)) in bna_reg_offset_check() 314 struct bfa_ioc *ioc = &bnad->bna.ioceth.ioc; in bnad_debugfs_write_regrd() local 342 rb = bfa_ioc_bar0(ioc); in bnad_debugfs_write_regrd() 343 addr &= BFA_REG_ADDRMSK(ioc); in bnad_debugfs_write_regrd() 346 rc = bna_reg_offset_check(ioc, addr, len); in bnad_debugfs_write_regrd() 374 struct bfa_ioc *ioc = &bnad->bna.ioceth.ioc; in bnad_debugfs_write_regwr() local [all …]
|
D | bfa_msgq.c | 203 if (!bfa_nw_ioc_mbox_queue(cmdq->msgq->ioc, &cmdq->dbell_mb, in bfa_msgq_cmdq_dbell() 304 if (!bfa_nw_ioc_mbox_queue(cmdq->msgq->ioc, &cmdq->copy_mb, in bfa_msgq_cmdq_copy_rsp() 413 if (!bfa_nw_ioc_is_disabled(rspq->msgq->ioc)) in rspq_sm_dbell_wait_entry() 461 if (!bfa_nw_ioc_mbox_queue(rspq->msgq->ioc, &rspq->dbell_mb, in bfa_msgq_rspq_dbell() 530 bfa_nw_ioc_mbox_queue(msgq->ioc, &msgq->init_mb, NULL, NULL); in bfa_msgq_init() 611 bfa_msgq_attach(struct bfa_msgq *msgq, struct bfa_ioc *ioc) in bfa_msgq_attach() argument 613 msgq->ioc = ioc; in bfa_msgq_attach() 618 bfa_nw_ioc_mbox_regisr(msgq->ioc, BFI_MC_MSGQ, bfa_msgq_isr, msgq); in bfa_msgq_attach() 620 bfa_nw_ioc_notify_register(msgq->ioc, &msgq->ioc_notify); in bfa_msgq_attach()
|
D | bfa_cee.h | 53 struct bfa_ioc *ioc; member 62 void bfa_nw_cee_attach(struct bfa_cee *cee, struct bfa_ioc *ioc, void *dev);
|
D | bfa_msgq.h | 119 struct bfa_ioc *ioc; member 124 void bfa_msgq_attach(struct bfa_msgq *msgq, struct bfa_ioc *ioc);
|
D | bna_enet.c | 266 bfa_nw_ioc_error_isr(&bna->ioceth.ioc); in bna_err_handler() 277 bfa_nw_ioc_mbox_isr(&bna->ioceth.ioc); in bna_mbox_handler() 1317 bfa_nw_ioc_get_mac(&enet->bna->ioceth.ioc, mac); in bna_enet_perm_mac_get() 1402 bfa_nw_ioc_enable(&ioceth->ioc); in bna_ioceth_sm_stopped() 1439 bfa_nw_ioc_disable(&ioceth->ioc); in bna_ioceth_sm_ioc_ready_wait() 1530 bfa_nw_ioc_disable(&ioceth->ioc); in bna_ioceth_sm_last_resp_wait() 1535 bfa_nw_ioc_disable(&ioceth->ioc); in bna_ioceth_sm_last_resp_wait() 1560 bfa_nw_ioc_disable(&ioceth->ioc); in bna_ioceth_sm_enet_stop_wait() 1565 bfa_nw_ioc_disable(&ioceth->ioc); in bna_ioceth_sm_enet_stop_wait() 1611 bfa_nw_ioc_disable(&ioceth->ioc); in bna_ioceth_sm_failed() [all …]
|
D | bna_hw_defs.h | 140 #define bna_port_id_get(_bna) ((_bna)->ioceth.ioc.port_id) 165 init_halt = readl((_bna)->ioceth.ioc.ioc_regs.ll_halt); \ 167 writel(init_halt, (_bna)->ioceth.ioc.ioc_regs.ll_halt); \ 168 init_halt = readl((_bna)->ioceth.ioc.ioc_regs.ll_halt); \
|
D | bnad.c | 1709 bfa_nw_ioc_timeout(&bnad->bna.ioceth.ioc); in bnad_ioc_timeout() 1720 bfa_nw_ioc_hb_check(&bnad->bna.ioceth.ioc); in bnad_ioc_hb_check() 1731 bfa_nw_iocpf_timeout(&bnad->bna.ioceth.ioc); in bnad_iocpf_timeout() 1742 bfa_nw_iocpf_sem_timeout(&bnad->bna.ioceth.ioc); in bnad_iocpf_sem_timeout() 3706 setup_timer(&bnad->bna.ioceth.ioc.ioc_timer, bnad_ioc_timeout, in bnad_pci_probe() 3708 setup_timer(&bnad->bna.ioceth.ioc.hb_timer, bnad_ioc_hb_check, in bnad_pci_probe() 3710 setup_timer(&bnad->bna.ioceth.ioc.iocpf_timer, bnad_iocpf_timeout, in bnad_pci_probe() 3712 setup_timer(&bnad->bna.ioceth.ioc.sem_timer, bnad_iocpf_sem_timeout, in bnad_pci_probe() 3780 del_timer_sync(&bnad->bna.ioceth.ioc.ioc_timer); in bnad_pci_probe() 3781 del_timer_sync(&bnad->bna.ioceth.ioc.sem_timer); in bnad_pci_probe() [all …]
|
D | bna_types.h | 325 struct bfa_ioc ioc; member
|
D | bnad_ethtool.c | 309 bfa_nw_ioc_get_attr(&bnad->bna.ioceth.ioc, ioc_attr); in bnad_get_drvinfo()
|
/linux-4.4.14/arch/ia64/hp/common/ |
D | sba_iommu.c | 202 struct ioc { struct 235 struct ioc *next; /* list of IOC's in system */ argument 245 static struct ioc *ioc_list, *ioc_found; argument 248 static SBA_INLINE void sba_mark_invalid(struct ioc *, dma_addr_t, size_t); 249 static SBA_INLINE void sba_free_range(struct ioc *, dma_addr_t, size_t); 259 ? ((struct ioc *) PCI_CONTROLLER(to_pci_dev(dev))->iommu) : NULL) 317 sba_dump_pdir_entry(struct ioc *ioc, char *msg, uint pide) in sba_dump_pdir_entry() argument 320 u64 *ptr = &ioc->pdir_base[pide & ~(BITS_PER_LONG - 1)]; in sba_dump_pdir_entry() 321 unsigned long *rptr = (unsigned long *) &ioc->res_map[(pide >>3) & -sizeof(unsigned long)]; in sba_dump_pdir_entry() 348 sba_check_pdir(struct ioc *ioc, char *msg) in sba_check_pdir() argument [all …]
|
/linux-4.4.14/drivers/scsi/bfa/ |
D | bfa_ioc_cb.c | 30 static bfa_boolean_t bfa_ioc_cb_firmware_lock(struct bfa_ioc_s *ioc); 31 static void bfa_ioc_cb_firmware_unlock(struct bfa_ioc_s *ioc); 32 static void bfa_ioc_cb_reg_init(struct bfa_ioc_s *ioc); 33 static void bfa_ioc_cb_map_port(struct bfa_ioc_s *ioc); 34 static void bfa_ioc_cb_isr_mode_set(struct bfa_ioc_s *ioc, bfa_boolean_t msix); 35 static void bfa_ioc_cb_notify_fail(struct bfa_ioc_s *ioc); 36 static void bfa_ioc_cb_ownership_reset(struct bfa_ioc_s *ioc); 37 static bfa_boolean_t bfa_ioc_cb_sync_start(struct bfa_ioc_s *ioc); 38 static void bfa_ioc_cb_sync_join(struct bfa_ioc_s *ioc); 39 static void bfa_ioc_cb_sync_leave(struct bfa_ioc_s *ioc); [all …]
|
D | bfa_ioc_ct.c | 37 static bfa_boolean_t bfa_ioc_ct_firmware_lock(struct bfa_ioc_s *ioc); 38 static void bfa_ioc_ct_firmware_unlock(struct bfa_ioc_s *ioc); 39 static void bfa_ioc_ct_notify_fail(struct bfa_ioc_s *ioc); 40 static void bfa_ioc_ct_ownership_reset(struct bfa_ioc_s *ioc); 41 static bfa_boolean_t bfa_ioc_ct_sync_start(struct bfa_ioc_s *ioc); 42 static void bfa_ioc_ct_sync_join(struct bfa_ioc_s *ioc); 43 static void bfa_ioc_ct_sync_leave(struct bfa_ioc_s *ioc); 44 static void bfa_ioc_ct_sync_ack(struct bfa_ioc_s *ioc); 45 static bfa_boolean_t bfa_ioc_ct_sync_complete(struct bfa_ioc_s *ioc); 47 struct bfa_ioc_s *ioc, enum bfi_ioc_state fwstate); [all …]
|
D | bfa_ioc.c | 97 static void bfa_ioc_hw_sem_get(struct bfa_ioc_s *ioc); 98 static void bfa_ioc_hwinit(struct bfa_ioc_s *ioc, bfa_boolean_t force); 99 static void bfa_ioc_timeout(void *ioc); 100 static void bfa_ioc_poll_fwinit(struct bfa_ioc_s *ioc); 101 static void bfa_ioc_send_enable(struct bfa_ioc_s *ioc); 102 static void bfa_ioc_send_disable(struct bfa_ioc_s *ioc); 103 static void bfa_ioc_send_getattr(struct bfa_ioc_s *ioc); 104 static void bfa_ioc_hb_monitor(struct bfa_ioc_s *ioc); 105 static void bfa_ioc_mbox_poll(struct bfa_ioc_s *ioc); 106 static void bfa_ioc_mbox_flush(struct bfa_ioc_s *ioc); [all …]
|
D | bfa_ioc.h | 290 struct bfa_ioc_s *ioc; member 335 bfa_boolean_t (*ioc_firmware_lock) (struct bfa_ioc_s *ioc); 336 void (*ioc_firmware_unlock) (struct bfa_ioc_s *ioc); 337 void (*ioc_reg_init) (struct bfa_ioc_s *ioc); 338 void (*ioc_map_port) (struct bfa_ioc_s *ioc); 339 void (*ioc_isr_mode_set) (struct bfa_ioc_s *ioc, 341 void (*ioc_notify_fail) (struct bfa_ioc_s *ioc); 342 void (*ioc_ownership_reset) (struct bfa_ioc_s *ioc); 343 bfa_boolean_t (*ioc_sync_start) (struct bfa_ioc_s *ioc); 344 void (*ioc_sync_join) (struct bfa_ioc_s *ioc); [all …]
|
D | bfa_port.c | 243 if (bfa_ioc_is_disabled(port->ioc)) { in bfa_port_enable() 248 if (!bfa_ioc_is_operational(port->ioc)) { in bfa_port_enable() 272 bfa_ioc_portid(port->ioc)); in bfa_port_enable() 273 bfa_ioc_mbox_queue(port->ioc, &port->endis_mb); in bfa_port_enable() 299 if (bfa_ioc_is_disabled(port->ioc)) { in bfa_port_disable() 304 if (!bfa_ioc_is_operational(port->ioc)) { in bfa_port_disable() 328 bfa_ioc_portid(port->ioc)); in bfa_port_disable() 329 bfa_ioc_mbox_queue(port->ioc, &port->endis_mb); in bfa_port_disable() 349 if (!bfa_ioc_is_operational(port->ioc)) { in bfa_port_get_stats() 368 bfa_ioc_portid(port->ioc)); in bfa_port_get_stats() [all …]
|
D | bfa_core.c | 99 bfa_port_attach(port, &bfa->ioc, bfa, bfa->trcmod); in bfa_com_port_attach() 112 bfa_ablk_attach(ablk, &bfa->ioc); in bfa_com_ablk_attach() 123 bfa_cee_attach(cee, &bfa->ioc, bfa); in bfa_com_cee_attach() 133 bfa_sfp_attach(sfp, &bfa->ioc, bfa, bfa->trcmod); in bfa_com_sfp_attach() 143 bfa_flash_attach(flash, &bfa->ioc, bfa, bfa->trcmod, mincfg); in bfa_com_flash_attach() 154 bfa_diag_attach(diag, &bfa->ioc, bfa, bfa_fcport_beacon, bfa->trcmod); in bfa_com_diag_attach() 164 bfa_phy_attach(phy, &bfa->ioc, bfa, bfa->trcmod, mincfg); in bfa_com_phy_attach() 174 bfa_fru_attach(fru, &bfa->ioc, bfa, bfa->trcmod, mincfg); in bfa_com_fru_attach() 275 bfa_ioc_enable(&iocfc->bfa->ioc); in bfa_iocfc_sm_initing_entry() 456 bfa_ioc_disable(&iocfc->bfa->ioc); in bfa_iocfc_sm_stopping_entry() [all …]
|
D | bfa.h | 271 bfi_fn_lpu(bfa_ioc_pcifn(&(__bfa)->ioc), bfa_ioc_portid(&(__bfa)->ioc)) 357 bfa_ioc_fetch_stats(&(__bfa)->ioc, __ioc_stats) 359 bfa_ioc_clr_stats(&(__bfa)->ioc) 361 bfa_ioc_get_nports(&(__bfa)->ioc) 363 bfa_ioc_get_adapter_manufacturer(&(__bfa)->ioc, __manufacturer) 365 bfa_ioc_get_adapter_model(&(__bfa)->ioc, __model) 367 bfa_ioc_get_adapter_serial_num(&(__bfa)->ioc, __serial_num) 369 bfa_ioc_get_adapter_fw_ver(&(__bfa)->ioc, __fw_ver) 371 bfa_ioc_get_adapter_optrom_ver(&(__bfa)->ioc, __optrom_ver) 373 bfa_ioc_get_pci_chip_rev(&(__bfa)->ioc, __chip_rev) [all …]
|
D | bfad_debugfs.c | 94 rc = bfa_ioc_debug_fwtrc(&bfad->bfa.ioc, in bfad_debugfs_open_fwtrc() 138 rc = bfa_ioc_debug_fwsave(&bfad->bfa.ioc, in bfad_debugfs_open_fwsave() 218 if ((offset + (len<<2)) > BFA_REG_ADDRMSK(&bfa->ioc)) in bfad_reg_offset_check() 256 struct bfa_ioc_s *ioc = &bfa->ioc; in bfad_debugfs_write_regrd() local 289 rb = bfa_ioc_bar0(ioc); in bfad_debugfs_write_regrd() 290 addr &= BFA_REG_ADDRMSK(ioc); in bfad_debugfs_write_regrd() 324 struct bfa_ioc_s *ioc = &bfa->ioc; in bfad_debugfs_write_regwr() local 344 addr &= BFA_REG_ADDRMSK(ioc); /* offset only 17 bit and word align */ in bfad_debugfs_write_regwr() 355 reg_addr = (bfa_ioc_bar0(ioc)) + addr; in bfad_debugfs_write_regwr()
|
D | bfa_hw_cb.c | 26 void __iomem *kva = bfa_ioc_bar0(&bfa->ioc); in bfa_hwcb_reginit() 27 int fn = bfa_ioc_pcifn(&bfa->ioc); in bfa_hwcb_reginit() 41 writel(__HFN_INT_CPE_Q0 << CPE_Q_NUM(bfa_ioc_pcifn(&bfa->ioc), reqq), in bfa_hwcb_reqq_ack_msix() 55 writel(__HFN_INT_RME_Q0 << RME_Q_NUM(bfa_ioc_pcifn(&bfa->ioc), rspq), in bfa_hwcb_rspq_ack_msix() 82 if (bfa_ioc_pcifn(&bfa->ioc) == 0) { in bfa_hwcb_msix_getvecs()
|
D | bfa_port.h | 30 struct bfa_ioc_s *ioc; member 54 void bfa_port_attach(struct bfa_port_s *port, struct bfa_ioc_s *ioc, 104 struct bfa_ioc_s *ioc; member 116 struct bfa_ioc_s *ioc, void *dev);
|
D | bfa_hw_ct.c | 36 void __iomem *kva = bfa_ioc_bar0(&bfa->ioc); in bfa_hwct_reginit() 37 int fn = bfa_ioc_pcifn(&bfa->ioc); in bfa_hwct_reginit() 52 void __iomem *kva = bfa_ioc_bar0(&bfa->ioc); in bfa_hwct2_reginit() 170 bfa_ioc_isr_mode_set(&bfa->ioc, msix); in bfa_hwct_isr_mode_set()
|
D | bfa_svc.c | 55 (bfa_ioc_is_disabled(&bfa->ioc) == BFA_TRUE)) 1905 if (bfa_ioc_devid(&bfa->ioc) == BFA_PCI_DEVICE_ID_CT) in bfa_lps_get_max_vport() 2279 if (!bfa_ioc_get_fcmode(&fcport->bfa->ioc)) { in bfa_fcport_sm_linkdown() 3312 fcport->pwwn = fcport->bfa->ioc.attr->pwwn; in bfa_fcport_set_wwns() 3313 fcport->nwwn = fcport->bfa->ioc.attr->nwwn; in bfa_fcport_set_wwns() 3371 if (bfa_ioc_get_fcmode(&fcport->bfa->ioc)) in __bfa_cb_fcport_stats_get() 3619 fcport->cfg.maxfrsize = bfa_ioc_maxfrsize(&bfa->ioc); in bfa_fcport_init() 3620 fcport->cfg.rx_bbcredit = bfa_ioc_rx_bbcredit(&bfa->ioc); in bfa_fcport_init() 3621 fcport->speed_sup = bfa_ioc_speed_sup(&bfa->ioc); in bfa_fcport_init() 3781 if (bfa_ioc_is_disabled(&bfa->ioc)) in bfa_fcport_enable() [all …]
|
D | bfad_attr.c | 793 if (nports == 1 && bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show() 796 else if (nports == 1 && !bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show() 799 else if (nports == 2 && bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show() 802 else if (nports == 2 && !bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show() 806 if (nports == 1 && !bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show() 809 else if (nports == 2 && !bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show()
|
D | bfa_fcs.c | 116 struct bfa_ioc_s *ioc = &fabric->fcs->bfa->ioc; in bfa_fcs_update_cfg() local 118 port_cfg->nwwn = ioc->attr->nwwn; in bfa_fcs_update_cfg() 119 port_cfg->pwwn = ioc->attr->pwwn; in bfa_fcs_update_cfg() 817 port_cfg->nwwn = fabric->fcs->bfa->ioc.attr->nwwn; in bfa_fcs_fabric_init() 818 port_cfg->pwwn = fabric->fcs->bfa->ioc.attr->pwwn; in bfa_fcs_fabric_init() 831 bfa_ioc_get_adapter_model(&fabric->fcs->bfa->ioc, model); in bfa_fcs_fabric_psymb_init() 892 bfa_ioc_get_adapter_model(&fabric->fcs->bfa->ioc, model); in bfa_fcs_fabric_nsymb_init()
|
D | bfa_modules.h | 115 struct bfa_ioc_s ioc; /* IOC module */ member
|
D | bfad_bsg.c | 33 if (!bfa_ioc_is_disabled(&bfad->bfa.ioc)) { in bfad_iocmd_ioc_enable() 55 if (bfa_ioc_is_disabled(&bfad->bfa.ioc)) { in bfad_iocmd_ioc_disable() 124 bfa_ioc_get_attr(&bfad->bfa.ioc, &iocmd->ioc_attr); in bfad_iocmd_ioc_get_attr() 174 iocmd->status = bfa_ioc_fw_stats_get(&bfad->bfa.ioc, iocmd_bufptr); in bfad_iocmd_ioc_get_fwstats() 197 iocmd->status = bfa_ioc_fw_stats_clear(&bfad->bfa.ioc); in bfad_iocmd_ioc_reset_stats() 236 iocmd->status = bfa_ioc_fwsig_invalidate(&bfad->bfa.ioc); in bfad_iocmd_ioc_fw_sig_inv() 1962 attr->pwwn = bfad->bfa.ioc.attr->pwwn; in bfad_iocmd_vhba_query() 1963 attr->nwwn = bfad->bfa.ioc.attr->nwwn; in bfad_iocmd_vhba_query() 2048 iocmd->status = bfa_ioc_debug_fwcore(&bfad->bfa.ioc, iocmd_bufptr, in bfad_iocmd_debug_fw_core() 2064 bfad->bfa.ioc.dbg_fwsave_once = BFA_TRUE; in bfad_iocmd_debug_ctl() [all …]
|
D | bfad.c | 1464 bfa_ioc_suspend(&bfad->bfa.ioc); in bfad_pci_error_detected() 1474 bfa_ioc_suspend(&bfad->bfa.ioc); in bfad_pci_error_detected() 1604 bfa_ioc_debug_save_ftrc(&bfad->bfa.ioc); in bfad_pci_mmio_enabled()
|
D | bfa_fcs_lport.c | 2618 bfa_ioc_get_adapter_manufacturer(&port->fcs->bfa->ioc, in bfa_fcs_fdmi_get_hbaattr() 2620 bfa_ioc_get_adapter_serial_num(&port->fcs->bfa->ioc, in bfa_fcs_fdmi_get_hbaattr() 2622 bfa_ioc_get_adapter_model(&port->fcs->bfa->ioc, in bfa_fcs_fdmi_get_hbaattr() 2624 bfa_ioc_get_adapter_model(&port->fcs->bfa->ioc, in bfa_fcs_fdmi_get_hbaattr() 2626 bfa_ioc_get_pci_chip_rev(&port->fcs->bfa->ioc, in bfa_fcs_fdmi_get_hbaattr() 2628 bfa_ioc_get_adapter_optrom_ver(&port->fcs->bfa->ioc, in bfa_fcs_fdmi_get_hbaattr() 2630 bfa_ioc_get_adapter_fw_ver(&port->fcs->bfa->ioc, in bfa_fcs_fdmi_get_hbaattr() 2658 cpu_to_be32(bfa_ioc_get_nports(&port->fcs->bfa->ioc)); in bfa_fcs_fdmi_get_hbaattr() 5401 if ((!port->vport) && bfa_ioc_get_fcmode(&port->fcs->bfa->ioc)) { in bfa_fcs_lport_scn_send_scr()
|
D | bfa_svc.h | 117 typedef void (*fcxp_send_cb_t) (struct bfa_s *ioc, struct bfa_fcxp_s *fcxp,
|
D | bfa_defs_svc.h | 1447 struct bfa_ioc_aen_data_s ioc; member
|
D | bfad_im.c | 988 bfa_ioc_get_attr(&bfa->ioc, ioc_attr); in bfad_im_supported_speeds()
|
/linux-4.4.14/drivers/parisc/ |
D | ccio-dma.c | 225 struct ioc { struct 253 struct ioc *next; /* Linked list of discovered iocs */ argument 260 static struct ioc *ioc_list; argument 295 #define CCIO_SEARCH_LOOP(ioc, res_idx, mask, size) \ argument 299 idx = (unsigned int)((unsigned long)res_ptr - (unsigned long)ioc->res_map); \ 304 ioc->res_hint = res_idx + (size >> 3); \ 310 u##size *res_ptr = (u##size *)&((ioc)->res_map[ioa->res_hint & ~((size >> 3) - 1)]); \ 311 u##size *res_end = (u##size *)&(ioc)->res_map[ioa->res_size]; \ 312 CCIO_SEARCH_LOOP(ioc, res_idx, mask, size); \ 313 res_ptr = (u##size *)&(ioc)->res_map[0]; \ [all …]
|
D | sba_iommu.c | 198 sba_dump_pdir_entry(struct ioc *ioc, char *msg, uint pide) in sba_dump_pdir_entry() argument 201 u64 *ptr = &(ioc->pdir_base[pide & (~0U * BITS_PER_LONG)]); in sba_dump_pdir_entry() 202 unsigned long *rptr = (unsigned long *) &(ioc->res_map[(pide >>3) & ~(sizeof(unsigned long) - 1)]); in sba_dump_pdir_entry() 230 sba_check_pdir(struct ioc *ioc, char *msg) in sba_check_pdir() argument 232 u32 *rptr_end = (u32 *) &(ioc->res_map[ioc->res_size]); in sba_check_pdir() 233 u32 *rptr = (u32 *) ioc->res_map; /* resource map ptr */ in sba_check_pdir() 234 u64 *pptr = ioc->pdir_base; /* pdir ptr */ in sba_check_pdir() 250 sba_dump_pdir_entry(ioc, msg, pide); in sba_check_pdir() 274 sba_dump_sg( struct ioc *ioc, struct scatterlist *startsg, int nents) in sba_dump_sg() argument 306 #define SBA_IOVA(ioc,iovp,offset,hint_reg) ((ioc->ibase) | (iovp) | (offset)) argument [all …]
|
D | iommu-helpers.h | 14 iommu_fill_pdir(struct ioc *ioc, struct scatterlist *startsg, int nents, in iommu_fill_pdir() argument 56 sg_dma_address(dma_sg) = pide | ioc->ibase; in iommu_fill_pdir() 63 pdirp = &(ioc->pdir_base[pide >> IOVP_SHIFT]); in iommu_fill_pdir() 74 ioc->msg_pages += startsg->length >> IOVP_SHIFT; in iommu_fill_pdir() 100 iommu_coalesce_chunks(struct ioc *ioc, struct device *dev, in iommu_coalesce_chunks() argument 102 int (*iommu_alloc_range)(struct ioc *, struct device *, size_t)) in iommu_coalesce_chunks() argument 174 | (iommu_alloc_range(ioc, dev, dma_len) << IOVP_SHIFT) in iommu_coalesce_chunks()
|
/linux-4.4.14/block/ |
D | blk-ioc.c | 24 void get_io_context(struct io_context *ioc) in get_io_context() argument 26 BUG_ON(atomic_long_read(&ioc->refcount) <= 0); in get_io_context() 27 atomic_long_inc(&ioc->refcount); in get_io_context() 55 struct io_context *ioc = icq->ioc; in ioc_destroy_icq() local 59 lockdep_assert_held(&ioc->lock); in ioc_destroy_icq() 62 radix_tree_delete(&ioc->icq_tree, icq->q->id); in ioc_destroy_icq() 71 if (rcu_access_pointer(ioc->icq_hint) == icq) in ioc_destroy_icq() 72 rcu_assign_pointer(ioc->icq_hint, NULL); in ioc_destroy_icq() 90 struct io_context *ioc = container_of(work, struct io_context, in ioc_release_fn() local 100 spin_lock_irqsave_nested(&ioc->lock, flags, 1); in ioc_release_fn() [all …]
|
D | ioprio.c | 35 struct io_context *ioc; in set_task_ioprio() local 51 ioc = get_task_io_context(task, GFP_ATOMIC, NUMA_NO_NODE); in set_task_ioprio() 52 if (ioc) { in set_task_ioprio() 53 ioc->ioprio = ioprio; in set_task_ioprio() 54 put_io_context(ioc); in set_task_ioprio()
|
D | blk-core.c | 895 put_io_context(rq->elv.icq->ioc); in blk_free_request() 905 static inline int ioc_batching(struct request_queue *q, struct io_context *ioc) in ioc_batching() argument 907 if (!ioc) in ioc_batching() 915 return ioc->nr_batch_requests == q->nr_batching || in ioc_batching() 916 (ioc->nr_batch_requests > 0 in ioc_batching() 917 && time_before(jiffies, ioc->last_waited + BLK_BATCH_TIME)); in ioc_batching() 926 static void ioc_set_batching(struct request_queue *q, struct io_context *ioc) in ioc_set_batching() argument 928 if (!ioc || ioc_batching(q, ioc)) in ioc_set_batching() 931 ioc->nr_batch_requests = q->nr_batching; in ioc_set_batching() 932 ioc->last_waited = jiffies; in ioc_set_batching() [all …]
|
D | blk.h | 264 void get_io_context(struct io_context *ioc); 265 struct io_cq *ioc_lookup_icq(struct io_context *ioc, struct request_queue *q); 266 struct io_cq *ioc_create_icq(struct io_context *ioc, struct request_queue *q,
|
D | Makefile | 6 blk-flush.o blk-settings.o blk-ioc.o blk-map.o \
|
D | blk-cgroup.c | 1134 struct io_context *ioc; in blkcg_can_attach() local 1140 ioc = task->io_context; in blkcg_can_attach() 1141 if (ioc && atomic_read(&ioc->nr_tasks) > 1) in blkcg_can_attach()
|
D | bio.c | 1985 struct io_context *ioc; in bio_associate_current() local 1990 ioc = current->io_context; in bio_associate_current() 1991 if (!ioc) in bio_associate_current() 1994 get_io_context_active(ioc); in bio_associate_current() 1995 bio->bi_ioc = ioc; in bio_associate_current()
|
D | cfq-iosched.c | 872 struct io_context *ioc) in cfq_cic_lookup() argument 874 if (ioc) in cfq_cic_lookup() 875 return icq_to_cic(ioc_lookup_icq(ioc, cfqd->queue)); in cfq_cic_lookup() 2682 put_io_context(cfqd->active_cic->icq.ioc); in __cfq_slice_expired() 2935 if (!cic || !atomic_read(&cic->icq.ioc->active_ref)) in cfq_arm_slice_timer() 3489 atomic_long_inc(&cic->icq.ioc->refcount); in cfq_dispatch_request() 3672 int ioprio = cic->icq.ioc->ioprio; in check_ioprio_changed() 3897 else if (!atomic_read(&cic->icq.ioc->active_ref) || in cfq_update_idle_window()
|
/linux-4.4.14/include/linux/ |
D | iocontext.h | 73 struct io_context *ioc; member 128 static inline void get_io_context_active(struct io_context *ioc) in get_io_context_active() argument 130 WARN_ON_ONCE(atomic_long_read(&ioc->refcount) <= 0); in get_io_context_active() 131 WARN_ON_ONCE(atomic_read(&ioc->active_ref) <= 0); in get_io_context_active() 132 atomic_long_inc(&ioc->refcount); in get_io_context_active() 133 atomic_inc(&ioc->active_ref); in get_io_context_active() 136 static inline void ioc_task_link(struct io_context *ioc) in ioc_task_link() argument 138 get_io_context_active(ioc); in ioc_task_link() 140 WARN_ON_ONCE(atomic_read(&ioc->nr_tasks) <= 0); in ioc_task_link() 141 atomic_inc(&ioc->nr_tasks); in ioc_task_link() [all …]
|
/linux-4.4.14/drivers/spi/ |
D | spidev.c | 327 struct spi_ioc_transfer *ioc; in spidev_get_ioc_message() local 344 ioc = kmalloc(tmp, GFP_KERNEL); in spidev_get_ioc_message() 345 if (!ioc) in spidev_get_ioc_message() 347 if (__copy_from_user(ioc, u_ioc, tmp)) { in spidev_get_ioc_message() 348 kfree(ioc); in spidev_get_ioc_message() 351 return ioc; in spidev_get_ioc_message() 363 struct spi_ioc_transfer *ioc; in spidev_ioctl() local 494 ioc = spidev_get_ioc_message(cmd, in spidev_ioctl() 496 if (IS_ERR(ioc)) { in spidev_ioctl() 497 retval = PTR_ERR(ioc); in spidev_ioctl() [all …]
|
D | spi-ath79.c | 182 u32 ioc = sp->ioc_base; in ath79_spi_txrx_mode0() local 189 out = ioc | AR71XX_SPI_IOC_DO; in ath79_spi_txrx_mode0() 191 out = ioc & ~AR71XX_SPI_IOC_DO; in ath79_spi_txrx_mode0()
|
/linux-4.4.14/drivers/block/ |
D | sx8.c | 584 struct carm_msg_ioctl *ioc; in carm_array_info() local 599 ioc = carm_ref_msg(host, idx); in carm_array_info() 610 memset(ioc, 0, sizeof(*ioc)); in carm_array_info() 611 ioc->type = CARM_MSG_ARRAY; in carm_array_info() 612 ioc->subtype = CARM_ARRAY_INFO; in carm_array_info() 613 ioc->array_id = (u8) array_idx; in carm_array_info() 614 ioc->handle = cpu_to_le32(TAG_ENCODE(idx)); in carm_array_info() 615 ioc->data_addr = cpu_to_le32(msg_data); in carm_array_info() 641 struct carm_msg_ioctl *ioc; in carm_send_special() local 656 ioc = mem; in carm_send_special() [all …]
|
D | cciss.c | 1579 BIG_IOCTL_Command_struct *ioc; in cciss_bigpassthru() local 1596 ioc = kmalloc(sizeof(*ioc), GFP_KERNEL); in cciss_bigpassthru() 1597 if (!ioc) { in cciss_bigpassthru() 1601 if (copy_from_user(ioc, argp, sizeof(*ioc))) { in cciss_bigpassthru() 1605 if ((ioc->buf_size < 1) && in cciss_bigpassthru() 1606 (ioc->Request.Type.Direction != XFER_NONE)) { in cciss_bigpassthru() 1611 if (ioc->malloc_size > MAX_KMALLOC_SIZE) { in cciss_bigpassthru() 1615 if (ioc->buf_size > ioc->malloc_size * MAXSGENTRIES) { in cciss_bigpassthru() 1629 left = ioc->buf_size; in cciss_bigpassthru() 1630 data_ptr = ioc->buf; in cciss_bigpassthru() [all …]
|
/linux-4.4.14/Documentation/RCU/ |
D | lockdep-splat.txt | 65 if (rcu_dereference(ioc->ioc_data) == cic) { 75 if (rcu_dereference_protected(ioc->ioc_data, 91 if (rcu_dereference(ioc->ioc_data) == cic) { 92 spin_lock(&ioc->lock); 93 rcu_assign_pointer(ioc->ioc_data, NULL); 94 spin_unlock(&ioc->lock); 107 if (rcu_access_pointer(ioc->ioc_data) == cic) {
|
/linux-4.4.14/security/keys/ |
D | compat.c | 30 unsigned ioc, in compat_keyctl_instantiate_key_iov() argument 38 ioc = 0; in compat_keyctl_instantiate_key_iov() 40 ret = compat_import_iovec(WRITE, _payload_iov, ioc, in compat_keyctl_instantiate_key_iov()
|
D | keyctl.c | 1117 unsigned ioc, in keyctl_instantiate_key_iov() argument 1125 ioc = 0; in keyctl_instantiate_key_iov() 1127 ret = import_iovec(WRITE, _payload_iov, ioc, in keyctl_instantiate_key_iov()
|
/linux-4.4.14/drivers/usb/host/ |
D | fhci-mem.c | 92 u16 interval, u16 start_frame, bool ioc) in fhci_td_fill() argument 108 td->ioc = ioc; in fhci_td_fill()
|
D | fhci.h | 357 bool ioc; /* Inform On Completion */ member 526 u16 interval, u16 start_frame, bool ioc);
|
D | fhci-q.c | 160 if (td->ioc) in fhci_move_td_from_ed_to_done_list()
|
/linux-4.4.14/arch/parisc/include/asm/ |
D | ropes.h | 28 struct ioc { struct 85 struct ioc ioc[MAX_IOC]; argument
|
D | dma-mapping.h | 221 struct ioc;
|
/linux-4.4.14/Documentation/devicetree/bindings/pinctrl/ |
D | pinctrl-atlas7.txt | 4 - compatible : "sirf,atlas7-ioc" 8 pinctrl: ioc@18880000 { 9 compatible = "sirf,atlas7-ioc";
|
/linux-4.4.14/drivers/scsi/megaraid/ |
D | megaraid_sas_base.c | 6122 struct megasas_iocpacket *ioc) in megasas_mgmt_fw_ioctl() argument 6135 if (ioc->sge_count > MAX_IOCTL_SGE) { in megasas_mgmt_fw_ioctl() 6137 ioc->sge_count, MAX_IOCTL_SGE); in megasas_mgmt_fw_ioctl() 6153 memcpy(cmd->frame, ioc->frame.raw, 2 * MEGAMFI_FRAME_SIZE); in megasas_mgmt_fw_ioctl() 6175 ((unsigned long)cmd->frame + ioc->sgl_off); in megasas_mgmt_fw_ioctl() 6180 for (i = 0; i < ioc->sge_count; i++) { in megasas_mgmt_fw_ioctl() 6181 if (!ioc->sgl[i].iov_len) in megasas_mgmt_fw_ioctl() 6185 ioc->sgl[i].iov_len, in megasas_mgmt_fw_ioctl() 6199 kern_sge32[i].length = cpu_to_le32(ioc->sgl[i].iov_len); in megasas_mgmt_fw_ioctl() 6205 if (copy_from_user(kbuff_arr[i], ioc->sgl[i].iov_base, in megasas_mgmt_fw_ioctl() [all …]
|
/linux-4.4.14/drivers/isdn/sc/ |
D | command.c | 100 scs_ioctl ioc; in command() local 103 if (copy_from_user(&ioc, (scs_ioctl __user *)cmdptr, in command() 109 return sc_ioctl(card, &ioc); in command()
|
/linux-4.4.14/arch/x86/kernel/ |
D | msr.c | 126 static long msr_ioctl(struct file *file, unsigned int ioc, unsigned long arg) in msr_ioctl() argument 133 switch (ioc) { in msr_ioctl()
|
/linux-4.4.14/net/rxrpc/ |
D | ar-ack.c | 892 int genbit, loop, nbit, ioc, ret, mtu; in rxrpc_process_call() local 1250 ioc = 1; in rxrpc_process_call() 1252 ioc = 5; in rxrpc_process_call() 1258 ioc = 4; in rxrpc_process_call() 1263 ioc = 3; in rxrpc_process_call() 1267 ioc = 2; in rxrpc_process_call() 1272 &msg, iov, ioc, len); in rxrpc_process_call()
|
/linux-4.4.14/drivers/platform/x86/ |
D | intel_pmc_ipc.c | 310 static irqreturn_t ioc(int irq, void *dev_id) in ioc() function 349 if (request_irq(pdev->irq, ioc, 0, "intel_pmc_ipc", &ipcdev)) { in ipc_pci_probe() 695 if (request_irq(ipcdev.irq, ioc, 0, "intel_pmc_ipc", &ipcdev)) { in ipc_plat_probe()
|
D | intel_scu_ipc.c | 550 static irqreturn_t ioc(int irq, void *dev_id) in ioc() function 597 err = devm_request_irq(&pdev->dev, pdev->irq, ioc, 0, "intel_scu_ipc", in ipc_probe()
|
/linux-4.4.14/drivers/net/fddi/skfp/ |
D | skfddi.c | 965 struct s_skfp_ioctl ioc; in skfp_ioctl() local 968 if (copy_from_user(&ioc, rq->ifr_data, sizeof(struct s_skfp_ioctl))) in skfp_ioctl() 971 switch (ioc.cmd) { in skfp_ioctl() 973 ioc.len = sizeof(lp->MacStat); in skfp_ioctl() 974 status = copy_to_user(ioc.data, skfp_ctl_get_stats(dev), ioc.len) in skfp_ioctl() 985 printk("ioctl for %s: unknown cmd: %04x\n", dev->name, ioc.cmd); in skfp_ioctl()
|
/linux-4.4.14/kernel/ |
D | fork.c | 1044 struct io_context *ioc = current->io_context; in copy_io() local 1047 if (!ioc) in copy_io() 1053 ioc_task_link(ioc); in copy_io() 1054 tsk->io_context = ioc; in copy_io() 1055 } else if (ioprio_valid(ioc->ioprio)) { in copy_io() 1060 new_ioc->ioprio = ioc->ioprio; in copy_io()
|
/linux-4.4.14/drivers/usb/gadget/udc/ |
D | mv_u3d.h | 213 u32 ioc:1; /* interrupt on complete */ member
|
D | mv_u3d_core.c | 337 trb_hw->ctrl.ioc = 1; in mv_u3d_build_trb_one() 394 trb->trb_hw->ctrl.ioc = 1; in mv_u3d_build_trb_chain()
|
/linux-4.4.14/drivers/net/ethernet/dec/tulip/ |
D | de4x5.c | 5359 struct de4x5_ioctl *ioc = (struct de4x5_ioctl *) &rq->ifr_ifru; in de4x5_ioctl() local 5370 switch(ioc->cmd) { in de4x5_ioctl() 5372 ioc->len = ETH_ALEN; in de4x5_ioctl() 5376 if (copy_to_user(ioc->data, tmp.addr, ioc->len)) return -EFAULT; in de4x5_ioctl() 5381 if (copy_from_user(tmp.addr, ioc->data, ETH_ALEN)) return -EFAULT; in de4x5_ioctl() 5412 ioc->len = sizeof(statbuf); in de4x5_ioctl() 5414 memcpy(&statbuf, &lp->pktStats, ioc->len); in de4x5_ioctl() 5416 if (copy_to_user(ioc->data, &statbuf, ioc->len)) in de4x5_ioctl() 5429 if (copy_to_user(ioc->data, tmp.addr, 1)) return -EFAULT; in de4x5_ioctl() 5434 if (copy_from_user(tmp.addr, ioc->data, 1)) return -EFAULT; in de4x5_ioctl() [all …]
|
/linux-4.4.14/drivers/scsi/ |
D | hpsa.c | 6297 BIG_IOCTL_Command_struct *ioc; in hpsa_big_passthru_ioctl() local 6312 ioc = (BIG_IOCTL_Command_struct *) in hpsa_big_passthru_ioctl() 6313 kmalloc(sizeof(*ioc), GFP_KERNEL); in hpsa_big_passthru_ioctl() 6314 if (!ioc) { in hpsa_big_passthru_ioctl() 6318 if (copy_from_user(ioc, argp, sizeof(*ioc))) { in hpsa_big_passthru_ioctl() 6322 if ((ioc->buf_size < 1) && in hpsa_big_passthru_ioctl() 6323 (ioc->Request.Type.Direction != XFER_NONE)) { in hpsa_big_passthru_ioctl() 6328 if (ioc->malloc_size > MAX_KMALLOC_SIZE) { in hpsa_big_passthru_ioctl() 6332 if (ioc->buf_size > ioc->malloc_size * SG_ENTRIES_IN_CMD) { in hpsa_big_passthru_ioctl() 6346 left = ioc->buf_size; in hpsa_big_passthru_ioctl() [all …]
|
D | gdth.c | 1557 gdth_iochan_str *ioc; in gdth_search_drives() local 1739 ioc = (gdth_iochan_str *)ha->pscratch; in gdth_search_drives() 1740 ioc->hdr.version = 0xffffffff; in gdth_search_drives() 1741 ioc->hdr.list_entries = MAXBUS; in gdth_search_drives() 1742 ioc->hdr.first_chan = 0; in gdth_search_drives() 1743 ioc->hdr.last_chan = MAXBUS-1; in gdth_search_drives() 1744 ioc->hdr.list_offset = GDTOFFSOF(gdth_iochan_str, list[0]); in gdth_search_drives() 1748 ha->raw[bus_no].address = ioc->list[bus_no].address; in gdth_search_drives() 1749 ha->raw[bus_no].local_no = ioc->list[bus_no].local_no; in gdth_search_drives()
|
/linux-4.4.14/drivers/char/agp/ |
D | parisc-agp.c | 415 parisc_agp_setup(sba_list->ioc[0].ioc_hpa, lbadev->hba.base_addr); in parisc_agp_init()
|
/linux-4.4.14/Documentation/DocBook/ |
D | device-drivers.xml.db | 525 API-mpt-print-ioc-summary 533 API-mpt-remove-dead-ioc-func 546 API-mpt-do-ioc-recovery 575 API-mpt-ioc-reset
|
D | kernel-api.xml.db | 640 API-rq-ioc
|
/linux-4.4.14/arch/arm/boot/dts/ |
D | atlas7.dtsi | 143 pinctrl: ioc@18880000 { 144 compatible = "sirf,atlas7-ioc";
|
/linux-4.4.14/fs/btrfs/ |
D | volumes.c | 462 struct io_context *ioc; in run_scheduled_bios() local 464 ioc = current->io_context; in run_scheduled_bios() 475 if (ioc && ioc->nr_batch_requests > 0 && in run_scheduled_bios() 476 time_before(jiffies, ioc->last_waited + HZ/50UL) && in run_scheduled_bios() 478 ioc->last_waited == last_waited)) { in run_scheduled_bios() 485 last_waited = ioc->last_waited; in run_scheduled_bios()
|
/linux-4.4.14/tools/perf/util/ |
D | evsel.c | 926 int ioc, void *arg) in perf_evsel__run_ioctl() argument 936 err = ioctl(fd, ioc, arg); in perf_evsel__run_ioctl()
|
/linux-4.4.14/drivers/crypto/ccp/ |
D | ccp-ops.c | 114 u32 ioc; member 214 if (op->ioc || !cmd_q->free_slots) in ccp_do_cmd()
|
/linux-4.4.14/Documentation/security/ |
D | keys.txt | 659 const struct iovec *payload_iov, unsigned ioc, 676 The payload_iov and ioc arguments describe the payload data in an iovec
|
/linux-4.4.14/ |
D | MAINTAINERS | 1429 F: arch/arm/include/asm/hardware/ioc.h 9624 F: drivers/tty/serial/ioc?_serial.c 9625 F: include/linux/ioc?.h
|