Home
last modified time | relevance | path

Searched refs:ioc (Results 1 – 25 of 110) sorted by relevance

12345

/Linux-v4.19/drivers/scsi/mpt3sas/
Dmpt3sas_base.c102 _base_get_ioc_facts(struct MPT3SAS_ADAPTER *ioc);
117 mpt3sas_base_check_cmd_timeout(struct MPT3SAS_ADAPTER *ioc, in mpt3sas_base_check_cmd_timeout() argument
125 pr_err(MPT3SAS_FMT "Command %s\n", ioc->name, in mpt3sas_base_check_cmd_timeout()
143 struct MPT3SAS_ADAPTER *ioc; in _scsih_set_fwfault_debug() local
151 list_for_each_entry(ioc, &mpt3sas_ioc_list, list) in _scsih_set_fwfault_debug()
152 ioc->fwfault_debug = mpt3sas_fwfault_debug; in _scsih_set_fwfault_debug()
168 _base_clone_reply_to_sys_mem(struct MPT3SAS_ADAPTER *ioc, u32 reply, in _base_clone_reply_to_sys_mem() argument
176 u16 cmd_credit = ioc->facts.RequestCredit + 1; in _base_clone_reply_to_sys_mem()
177 void __iomem *reply_free_iomem = (void __iomem *)ioc->chip + in _base_clone_reply_to_sys_mem()
179 (cmd_credit * ioc->request_sz) + (index * sizeof(u32)); in _base_clone_reply_to_sys_mem()
[all …]
Dmpt3sas_trigger_diag.c68 _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 …]
Dmpt3sas_ctl.c93 _ctl_display_some_debug(struct MPT3SAS_ADAPTER *ioc, u16 smid, in _ctl_display_some_debug() argument
99 if (!(ioc->logging_level & MPT_DEBUG_IOCTL)) in _ctl_display_some_debug()
102 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _ctl_display_some_debug()
109 snprintf(ioc->tmp_string, MPT_STRING_LENGTH, in _ctl_display_some_debug()
113 desc = ioc->tmp_string; in _ctl_display_some_debug()
130 snprintf(ioc->tmp_string, MPT_STRING_LENGTH, in _ctl_display_some_debug()
135 desc = ioc->tmp_string; in _ctl_display_some_debug()
161 snprintf(ioc->tmp_string, MPT_STRING_LENGTH, in _ctl_display_some_debug()
165 desc = ioc->tmp_string; in _ctl_display_some_debug()
189 ioc->name, calling_function_name, desc, smid); in _ctl_display_some_debug()
[all …]
Dmpt3sas_scsih.c67 static void _scsih_expander_node_remove(struct MPT3SAS_ADAPTER *ioc,
71 static void _scsih_remove_device(struct MPT3SAS_ADAPTER *ioc,
73 static int _scsih_add_device(struct MPT3SAS_ADAPTER *ioc, u16 handle,
75 static int _scsih_pcie_add_device(struct MPT3SAS_ADAPTER *ioc, u16 handle);
76 static void _scsih_pcie_device_remove_from_sml(struct MPT3SAS_ADAPTER *ioc,
79 _scsih_pcie_check_device(struct MPT3SAS_ADAPTER *ioc, u16 handle);
80 static u8 _scsih_check_for_pending_tm(struct MPT3SAS_ADAPTER *ioc, u16 smid);
200 struct MPT3SAS_ADAPTER *ioc; member
296 struct MPT3SAS_ADAPTER *ioc; in _scsih_set_debug_level() local
303 list_for_each_entry(ioc, &mpt3sas_ioc_list, list) in _scsih_set_debug_level()
[all …]
Dmpt3sas_transport.c73 _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 …]
Dmpt3sas_config.c98 _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()
180 ioc->name, calling_function_name, desc, in _config_display_some_debug()
190 ioc->name, le16_to_cpu(mpi_reply->IOCStatus), in _config_display_some_debug()
204 _config_alloc_config_dma_memory(struct MPT3SAS_ADAPTER *ioc, in _config_alloc_config_dma_memory() argument
209 if (mem->sz > ioc->config_page_sz) { in _config_alloc_config_dma_memory()
210 mem->page = dma_alloc_coherent(&ioc->pdev->dev, mem->sz, in _config_alloc_config_dma_memory()
215 ioc->name, __func__, mem->sz); in _config_alloc_config_dma_memory()
219 mem->page = ioc->config_page; in _config_alloc_config_dma_memory()
[all …]
Dmpt3sas_base.h874 struct MPT3SAS_ADAPTER *ioc; member
886 typedef int (*MPT_BUILD_SG_SCMD)(struct MPT3SAS_ADAPTER *ioc,
888 typedef void (*MPT_BUILD_SG)(struct MPT3SAS_ADAPTER *ioc, void *psge,
891 typedef void (*MPT_BUILD_ZERO_LEN_SGE)(struct MPT3SAS_ADAPTER *ioc,
895 typedef void (*NVME_BUILD_PRP)(struct MPT3SAS_ADAPTER *ioc, u16 smid,
901 typedef void (*PUT_SMID_IO_FP_HIP) (struct MPT3SAS_ADAPTER *ioc, u16 smid,
903 typedef void (*PUT_SMID_DEFAULT) (struct MPT3SAS_ADAPTER *ioc, u16 smid);
958 typedef void (*MPT3SAS_FLUSH_RUNNING_CMDS)(struct MPT3SAS_ADAPTER *ioc);
1395 typedef u8 (*MPT_CALLBACK)(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index,
1414 void mpt3sas_base_start_watchdog(struct MPT3SAS_ADAPTER *ioc);
[all …]
Dmpt3sas_warpdrive.c54 _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-v4.19/drivers/message/fusion/
Dmptbase.c160 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 …]
Dmptscsih.c84 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 …]
Dmptsas.c112 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 …]
Dmptctl.c127 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 …]
Dmptfc.c197 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 …]
Dmptspi.c111 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 …]
/Linux-v4.19/drivers/net/ethernet/brocade/bna/
Dbfa_ioc.c58 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 …]
Dbfa_ioc_ct.c37 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 …]
Dbfa_ioc.h160 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 …]
/Linux-v4.19/arch/ia64/hp/common/
Dsba_iommu.c202 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-v4.19/drivers/scsi/bfa/
Dbfa_ioc_cb.c31 static bfa_boolean_t bfa_ioc_cb_firmware_lock(struct bfa_ioc_s *ioc);
32 static void bfa_ioc_cb_firmware_unlock(struct bfa_ioc_s *ioc);
33 static void bfa_ioc_cb_reg_init(struct bfa_ioc_s *ioc);
34 static void bfa_ioc_cb_map_port(struct bfa_ioc_s *ioc);
35 static void bfa_ioc_cb_isr_mode_set(struct bfa_ioc_s *ioc, bfa_boolean_t msix);
36 static void bfa_ioc_cb_notify_fail(struct bfa_ioc_s *ioc);
37 static void bfa_ioc_cb_ownership_reset(struct bfa_ioc_s *ioc);
38 static bfa_boolean_t bfa_ioc_cb_sync_start(struct bfa_ioc_s *ioc);
39 static void bfa_ioc_cb_sync_join(struct bfa_ioc_s *ioc);
40 static void bfa_ioc_cb_sync_leave(struct bfa_ioc_s *ioc);
[all …]
Dbfa_ioc_ct.c38 static bfa_boolean_t bfa_ioc_ct_firmware_lock(struct bfa_ioc_s *ioc);
39 static void bfa_ioc_ct_firmware_unlock(struct bfa_ioc_s *ioc);
40 static void bfa_ioc_ct_notify_fail(struct bfa_ioc_s *ioc);
41 static void bfa_ioc_ct_ownership_reset(struct bfa_ioc_s *ioc);
42 static bfa_boolean_t bfa_ioc_ct_sync_start(struct bfa_ioc_s *ioc);
43 static void bfa_ioc_ct_sync_join(struct bfa_ioc_s *ioc);
44 static void bfa_ioc_ct_sync_leave(struct bfa_ioc_s *ioc);
45 static void bfa_ioc_ct_sync_ack(struct bfa_ioc_s *ioc);
46 static bfa_boolean_t bfa_ioc_ct_sync_complete(struct bfa_ioc_s *ioc);
48 struct bfa_ioc_s *ioc, enum bfi_ioc_state fwstate);
[all …]
Dbfa_ioc.c98 static void bfa_ioc_hw_sem_get(struct bfa_ioc_s *ioc);
99 static void bfa_ioc_hwinit(struct bfa_ioc_s *ioc, bfa_boolean_t force);
100 static void bfa_ioc_timeout(void *ioc);
101 static void bfa_ioc_poll_fwinit(struct bfa_ioc_s *ioc);
102 static void bfa_ioc_send_enable(struct bfa_ioc_s *ioc);
103 static void bfa_ioc_send_disable(struct bfa_ioc_s *ioc);
104 static void bfa_ioc_send_getattr(struct bfa_ioc_s *ioc);
105 static void bfa_ioc_hb_monitor(struct bfa_ioc_s *ioc);
106 static void bfa_ioc_mbox_poll(struct bfa_ioc_s *ioc);
107 static void bfa_ioc_mbox_flush(struct bfa_ioc_s *ioc);
[all …]
/Linux-v4.19/drivers/parisc/
Dccio-dma.c227 struct ioc { struct
255 struct ioc *next; /* Linked list of discovered iocs */ argument
262 static struct ioc *ioc_list; argument
297 #define CCIO_SEARCH_LOOP(ioc, res_idx, mask, size) \ argument
301 idx = (unsigned int)((unsigned long)res_ptr - (unsigned long)ioc->res_map); \
306 ioc->res_hint = res_idx + (size >> 3); \
312 u##size *res_ptr = (u##size *)&((ioc)->res_map[ioa->res_hint & ~((size >> 3) - 1)]); \
313 u##size *res_end = (u##size *)&(ioc)->res_map[ioa->res_size]; \
314 CCIO_SEARCH_LOOP(ioc, res_idx, mask, size); \
315 res_ptr = (u##size *)&(ioc)->res_map[0]; \
[all …]
Dsba_iommu.c200 sba_dump_pdir_entry(struct ioc *ioc, char *msg, uint pide) in sba_dump_pdir_entry() argument
203 u64 *ptr = &(ioc->pdir_base[pide & (~0U * BITS_PER_LONG)]); in sba_dump_pdir_entry()
204 unsigned long *rptr = (unsigned long *) &(ioc->res_map[(pide >>3) & ~(sizeof(unsigned long) - 1)]); in sba_dump_pdir_entry()
232 sba_check_pdir(struct ioc *ioc, char *msg) in sba_check_pdir() argument
234 u32 *rptr_end = (u32 *) &(ioc->res_map[ioc->res_size]); in sba_check_pdir()
235 u32 *rptr = (u32 *) ioc->res_map; /* resource map ptr */ in sba_check_pdir()
236 u64 *pptr = ioc->pdir_base; /* pdir ptr */ in sba_check_pdir()
252 sba_dump_pdir_entry(ioc, msg, pide); in sba_check_pdir()
276 sba_dump_sg( struct ioc *ioc, struct scatterlist *startsg, int nents) in sba_dump_sg() argument
308 #define SBA_IOVA(ioc,iovp,offset,hint_reg) ((ioc->ibase) | (iovp) | (offset)) argument
[all …]
/Linux-v4.19/block/
Dblk-ioc.c26 void get_io_context(struct io_context *ioc) in get_io_context() argument
28 BUG_ON(atomic_long_read(&ioc->refcount) <= 0); in get_io_context()
29 atomic_long_inc(&ioc->refcount); in get_io_context()
65 struct io_context *ioc = icq->ioc; in ioc_destroy_icq() local
69 lockdep_assert_held(&ioc->lock); in ioc_destroy_icq()
71 radix_tree_delete(&ioc->icq_tree, icq->q->id); in ioc_destroy_icq()
80 if (rcu_access_pointer(ioc->icq_hint) == icq) in ioc_destroy_icq()
81 rcu_assign_pointer(ioc->icq_hint, NULL); in ioc_destroy_icq()
99 struct io_context *ioc = container_of(work, struct io_context, in ioc_release_fn() local
109 spin_lock_irqsave_nested(&ioc->lock, flags, 1); in ioc_release_fn()
[all …]
/Linux-v4.19/include/linux/
Diocontext.h74 struct io_context *ioc; member
129 static inline void get_io_context_active(struct io_context *ioc) in get_io_context_active() argument
131 WARN_ON_ONCE(atomic_long_read(&ioc->refcount) <= 0); in get_io_context_active()
132 WARN_ON_ONCE(atomic_read(&ioc->active_ref) <= 0); in get_io_context_active()
133 atomic_long_inc(&ioc->refcount); in get_io_context_active()
134 atomic_inc(&ioc->active_ref); in get_io_context_active()
137 static inline void ioc_task_link(struct io_context *ioc) in ioc_task_link() argument
139 get_io_context_active(ioc); in ioc_task_link()
141 WARN_ON_ONCE(atomic_read(&ioc->nr_tasks) <= 0); in ioc_task_link()
142 atomic_inc(&ioc->nr_tasks); in ioc_task_link()
[all …]

12345