Home
last modified time | relevance | path

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

/linux-2.4.37.9/arch/ia64/hp/common/
Dsba_iommu.c172 struct ioc { struct
201 struct ioc *next; /* list of IOC's in system */ argument
211 static struct ioc *ioc_list; argument
226 # define GET_IOC(dev) ((struct ioc *) PCI_CONTROLLER(dev)->iommu)
284 sba_dump_pdir_entry(struct ioc *ioc, char *msg, uint pide) in sba_dump_pdir_entry() argument
287 u64 *ptr = &ioc->pdir_base[pide & ~(BITS_PER_LONG - 1)]; in sba_dump_pdir_entry()
288 unsigned long *rptr = (unsigned long *) &ioc->res_map[(pide >>3) & -sizeof(unsigned long)]; in sba_dump_pdir_entry()
315 sba_check_pdir(struct ioc *ioc, char *msg) in sba_check_pdir() argument
317 u64 *rptr_end = (u64 *) &(ioc->res_map[ioc->res_size]); in sba_check_pdir()
318 u64 *rptr = (u64 *) ioc->res_map; /* resource map ptr */ in sba_check_pdir()
[all …]
/linux-2.4.37.9/drivers/message/fusion/
Dmptbase.c183 static int mpt_base_reply(MPT_ADAPTER *ioc, MPT_FRAME_HDR *req, MPT_FRAME_HDR *reply);
185 static int mpt_do_ioc_recovery(MPT_ADAPTER *ioc, u32 reason, int sleepFlag);
188 static void mpt_adapter_disable(MPT_ADAPTER *ioc, int freeup);
189 static void mpt_adapter_dispose(MPT_ADAPTER *ioc);
191 static void MptDisplayIocCapabilities(MPT_ADAPTER *ioc);
192 static int MakeIocReady(MPT_ADAPTER *ioc, int force, int sleepFlag);
194 static int GetIocFacts(MPT_ADAPTER *ioc, int sleepFlag, int reason);
195 static int GetPortFacts(MPT_ADAPTER *ioc, int portnum, int sleepFlag);
196 static int SendIocInit(MPT_ADAPTER *ioc, int sleepFlag);
197 static int SendPortEnable(MPT_ADAPTER *ioc, int portnum, int sleepFlag);
[all …]
Dmptctl.c149 static int mptctl_do_fw_download(int ioc, char *ufwbuf, size_t fwlen);
151 struct buflist **blp, dma_addr_t *sglbuf_dma, MPT_ADAPTER *ioc);
153 struct buflist *buflist, MPT_ADAPTER *ioc);
157 static void mptctl_free_tm_flags(MPT_ADAPTER *ioc);
162 static int mptctl_ioc_reset(MPT_ADAPTER *ioc, int reset_phase);
202 mptctl_syscall_down(MPT_ADAPTER *ioc, int nonblock) in mptctl_syscall_down() argument
205 dctlprintk((KERN_INFO MYNAM "::mptctl_syscall_down(%p,%d) called\n", ioc, nonblock)); in mptctl_syscall_down()
207 if (ioc->ioctl->tmPtr != NULL) { in mptctl_syscall_down()
214 if (down_interruptible(&mptctl_syscall_sem_ioc[ioc->id])) in mptctl_syscall_down()
221 if (down_trylock(&mptctl_syscall_sem_ioc[ioc->id])) in mptctl_syscall_down()
[all …]
Dmptscsih.c159 static int mptscsih_io_done(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r);
161 static int mptscsih_taskmgmt_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r);
180 static int mptscsih_ioc_reset(MPT_ADAPTER *ioc, int post_reset);
181 static int mptscsih_event_process(MPT_ADAPTER *ioc, EventNotificationReply_t *pEvReply);
190 static int mptscsih_scandv_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r);
199 static int mptscsih_is_phys_disk(MPT_ADAPTER *ioc, int id);
446 spin_lock_irqsave(&hd->ioc->FreeQlock, flags); in mptscsih_getFreeChainBuffer()
454 chain_idx = offset / hd->ioc->req_sz; in mptscsih_getFreeChainBuffer()
461 spin_unlock_irqrestore(&hd->ioc->FreeQlock, flags); in mptscsih_getFreeChainBuffer()
467 hd->ioc->name, *retIndex, chainBuf)); in mptscsih_getFreeChainBuffer()
[all …]
Dmptbase.h354 u8 ioc; member
487 struct _MPT_ADAPTER *ioc; member
654 typedef int (*MPT_CALLBACK)(MPT_ADAPTER *ioc, MPT_FRAME_HDR *req, MPT_FRAME_HDR *reply);
655 typedef int (*MPT_EVHANDLER)(MPT_ADAPTER *ioc, EventNotificationReply_t *evReply);
656 typedef int (*MPT_RESETHANDLER)(MPT_ADAPTER *ioc, int reset_phase);
803 #define MPT_INDEX_2_MFPTR(ioc,idx) \ argument
804 (MPT_FRAME_HDR*)( (u8*)(ioc)->req_frames + (ioc)->req_sz * (idx) )
806 #define MFPTR_2_MPT_INDEX(ioc,mf) \ argument
807 (int)( ((u8*)mf - (u8*)(ioc)->req_frames) / (ioc)->req_sz )
809 #define MPT_INDEX_2_RFPTR(ioc,idx) \ argument
[all …]
Dmptlan.c151 static int lan_reply (MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf,
165 static int mpt_lan_ioc_reset(MPT_ADAPTER *ioc, int reset_phase);
166 static int mpt_lan_event_process(MPT_ADAPTER *ioc, EventNotificationReply_t *pEvReply);
203 lan_reply (MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *reply) in lan_reply() argument
205 struct net_device *dev = mpt_landev[ioc->id]; in lan_reply()
336 mpt_lan_ioc_reset(MPT_ADAPTER *ioc, int reset_phase) in mpt_lan_ioc_reset() argument
338 struct net_device *dev = mpt_landev[ioc->id]; in mpt_lan_ioc_reset()
376 mpt_lan_event_process(MPT_ADAPTER *ioc, EventNotificationReply_t *pEvReply) in mpt_lan_event_process() argument
/linux-2.4.37.9/arch/parisc/kernel/
Dccio-dma.c132 struct ioc { struct
161 struct ioc *next; /* Linked list of discovered iocs */ argument
170 static struct ioc *ioc_list; argument
206 #define CCIO_SEARCH_LOOP(ioc, res_idx, mask_ptr, size) \ argument
210 res_idx = (int)((unsigned long)res_ptr - (unsigned long)ioc->res_map); \
211 ioc->res_hint = res_idx + (size >> 3); \
217 u##size *res_ptr = (u##size *)&((ioc)->res_map[ioa->res_hint & ~((size >> 3) - 1)]); \
218 u##size *res_end = (u##size *)&(ioc)->res_map[ioa->res_size]; \
220 CCIO_SEARCH_LOOP(ioc, res_idx, mask_ptr, size); \
221 res_ptr = (u##size *)&(ioc)->res_map[0]; \
[all …]
Dsba_iommu.c201 struct ioc { struct
252 struct ioc ioc[MAX_IOC]; argument
351 sba_dump_pdir_entry(struct ioc *ioc, char *msg, uint pide) in sba_dump_pdir_entry() argument
354 u64 *ptr = &(ioc->pdir_base[pide & (~0U * BITS_PER_LONG)]); in sba_dump_pdir_entry()
355 unsigned long *rptr = (unsigned long *) &(ioc->res_map[(pide >>3) & ~(sizeof(unsigned long) - 1)]); in sba_dump_pdir_entry()
383 sba_check_pdir(struct ioc *ioc, char *msg) in sba_check_pdir() argument
385 u32 *rptr_end = (u32 *) &(ioc->res_map[ioc->res_size]); in sba_check_pdir()
386 u32 *rptr = (u32 *) ioc->res_map; /* resource map ptr */ in sba_check_pdir()
387 u64 *pptr = ioc->pdir_base; /* pdir ptr */ in sba_check_pdir()
403 sba_dump_pdir_entry(ioc, msg, pide); in sba_check_pdir()
[all …]
/linux-2.4.37.9/drivers/block/
Dsx8.c699 struct carm_msg_ioctl *ioc; in carm_array_info() local
715 ioc = carm_ref_msg(host, idx); in carm_array_info()
726 memset(ioc, 0, sizeof(*ioc)); in carm_array_info()
727 ioc->type = CARM_MSG_ARRAY; in carm_array_info()
728 ioc->subtype = CARM_ARRAY_INFO; in carm_array_info()
729 ioc->array_id = (u8) array_idx; in carm_array_info()
730 ioc->handle = cpu_to_le32(TAG_ENCODE(idx)); in carm_array_info()
731 ioc->data_addr = cpu_to_le32(msg_data); in carm_array_info()
753 struct carm_msg_ioctl *ioc; in carm_send_special() local
768 ioc = mem; in carm_send_special()
[all …]
/linux-2.4.37.9/drivers/net/
Dewrk3.c1829 struct ewrk3_ioctl *ioc = (struct ewrk3_ioctl *) &rq->ifr_data; in ewrk3_ioctl() local
1853 switch (ioc->cmd) { in ewrk3_ioctl()
1858 ioc->len = ETH_ALEN; in ewrk3_ioctl()
1859 if (copy_to_user(ioc->data, tmp->addr, ioc->len)) in ewrk3_ioctl()
1871 if (copy_from_user(tmp->addr, ioc->data, ETH_ALEN)) { in ewrk3_ioctl()
1929 ioc->len = (HASH_TABLE_LEN >> 3); in ewrk3_ioctl()
1930 if (copy_to_user(ioc->data, tmp->addr, ioc->len)) in ewrk3_ioctl()
1936 if (ioc->len > 1024) in ewrk3_ioctl()
1941 if (copy_from_user(tmp->addr, ioc->data, ETH_ALEN * ioc->len)) { in ewrk3_ioctl()
1984 ioc->len = sizeof(lp->pktStats); in ewrk3_ioctl()
[all …]
Ddgrs.c830 DGRS_IOCTL ioc; in dgrs_ioctl() local
836 if(copy_from_user(&ioc, ifr->ifr_data, sizeof(DGRS_IOCTL))) in dgrs_ioctl()
839 switch (ioc.cmd) in dgrs_ioctl()
842 if (ioc.len != sizeof(ulong)) in dgrs_ioctl()
844 if(copy_to_user(ioc.data, &devN->mem_start, ioc.len)) in dgrs_ioctl()
850 if (ioc.port > privN->bcomm->bc_nports) in dgrs_ioctl()
852 if (ioc.filter >= NFILTERS) in dgrs_ioctl()
854 if (ioc.len > privN->bcomm->bc_filter_area_len) in dgrs_ioctl()
867 privN->bcomm->bc_filter_port = ioc.port; in dgrs_ioctl()
868 privN->bcomm->bc_filter_num = ioc.filter; in dgrs_ioctl()
[all …]
Ddepca.c1894 struct depca_ioctl *ioc = (struct depca_ioctl *) &rq->ifr_data; in depca_ioctl() local
1903 switch (ioc->cmd) { in depca_ioctl()
1908 ioc->len = ETH_ALEN; in depca_ioctl()
1909 if (copy_to_user(ioc->data, tmp.addr, ioc->len)) in depca_ioctl()
1916 if (copy_from_user(tmp.addr, ioc->data, ETH_ALEN)) in depca_ioctl()
1971 ioc->len = (HASH_TABLE_LEN >> 3); in depca_ioctl()
1972 if (copy_to_user(ioc->data, lp->init_block.mcast_table, ioc->len)) in depca_ioctl()
1979 if (ioc->len >= HASH_TABLE_LEN) in depca_ioctl()
1981 if (copy_from_user(tmp.addr, ioc->data, ETH_ALEN * ioc->len)) in depca_ioctl()
2000 ioc->len = sizeof(lp->pktStats); in depca_ioctl()
[all …]
Dde4x5.c5570 struct de4x5_ioctl *ioc = (struct de4x5_ioctl *) &rq->ifr_data; in de4x5_ioctl() local
5581 switch(ioc->cmd) { in de4x5_ioctl()
5583 ioc->len = ETH_ALEN; in de4x5_ioctl()
5587 if (copy_to_user(ioc->data, tmp.addr, ioc->len)) return -EFAULT; in de4x5_ioctl()
5592 if (copy_from_user(tmp.addr, ioc->data, ETH_ALEN)) return -EFAULT; in de4x5_ioctl()
5639 ioc->len = sizeof(statbuf); in de4x5_ioctl()
5641 memcpy(&statbuf, &lp->pktStats, ioc->len); in de4x5_ioctl()
5643 if (copy_to_user(ioc->data, &statbuf, ioc->len)) in de4x5_ioctl()
5656 if (copy_to_user(ioc->data, tmp.addr, 1)) return -EFAULT; in de4x5_ioctl()
5661 if (copy_from_user(tmp.addr, ioc->data, 1)) return -EFAULT; in de4x5_ioctl()
[all …]
/linux-2.4.37.9/drivers/scsi/
Dmegaraid.c4784 struct uioctl_t ioc; local
4820 if(copy_from_user (&ioc, (char *) arg, sizeof (struct uioctl_t)))
4833 opcode = ioc.ui.fcs.opcode;
4834 subopcode = ioc.ui.fcs.subopcode;
4840 put_user (driver_ver, (u32 *) ioc.data);
4844 put_user (nadap, (int *) ioc.data);
4851 adapno = ioc.ui.fcs.adapno;
4866 ioc.data,
4874 if (copy_to_user (ioc.data,
4891 if( ioc.mbox[0] == FC_DEL_LOGDRV && ioc.mbox[2] == OP_DEL_LOGDRV ) {
[all …]
DcpqfcTSinit.c409 VENDOR_IOCTL_REQ ioc; in cpqfcTS_ioctl() local
452 if (copy_from_user(&ioc, arg, sizeof(VENDOR_IOCTL_REQ))) in cpqfcTS_ioctl()
455 vendor_cmd = ioc.argp; // i.e., CPQ specific command struct in cpqfcTS_ioctl()
Dgdth.c1910 gdth_iochan_str *ioc; in GDTH_INITFUNC() local
2092 ioc = (gdth_iochan_str *)ha->pscratch; in GDTH_INITFUNC()
2093 ioc->hdr.version = 0xffffffff; in GDTH_INITFUNC()
2094 ioc->hdr.list_entries = MAXBUS; in GDTH_INITFUNC()
2095 ioc->hdr.first_chan = 0; in GDTH_INITFUNC()
2096 ioc->hdr.last_chan = MAXBUS-1; in GDTH_INITFUNC()
2097 ioc->hdr.list_offset = GDTOFFSOF(gdth_iochan_str, list[0]); in GDTH_INITFUNC()
2101 ha->raw[bus_no].address = ioc->list[bus_no].address; in GDTH_INITFUNC()
2102 ha->raw[bus_no].local_no = ioc->list[bus_no].local_no; in GDTH_INITFUNC()
/linux-2.4.37.9/drivers/isdn/sc/
Dcommand.c125 scs_ioctl ioc; in command() local
129 if((err = copy_from_user(&ioc, (scs_ioctl *) cmdptr, in command()
135 return sc_ioctl(card, &ioc); in command()
/linux-2.4.37.9/include/asm-parisc/
Dpci.h270 #define GET_IOC(dev) ((struct ioc *)(HBA_DATA(dev->sysdata)->iommu))
274 struct ioc;
/linux-2.4.37.9/drivers/net/skfp/
Dskfddi.c1279 struct s_skfp_ioctl ioc; in skfp_ioctl() local
1282 copy_from_user(&ioc, rq->ifr_data, sizeof(struct s_skfp_ioctl)); in skfp_ioctl()
1283 switch (ioc.cmd) { in skfp_ioctl()
1285 ioc.len = sizeof(lp->MacStat); in skfp_ioctl()
1286 copy_to_user(ioc.data, skfp_ctl_get_stats(dev), ioc.len); in skfp_ioctl()
1296 printk("ioctl for %s: unknow cmd: %04x\n", dev->name, ioc.cmd); in skfp_ioctl()
/linux-2.4.37.9/arch/mips/jmr3927/rbhma3100/
Dsetup.c71 struct resource ioc; member