• Home
  • Raw
  • Download

Lines Matching refs:acb

69 	struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;  in arcmsr_sysfs_iop_message_read()  local
79 spin_lock_irqsave(&acb->rqbuffer_lock, flags); in arcmsr_sysfs_iop_message_read()
80 if (acb->rqbuf_getIndex != acb->rqbuf_putIndex) { in arcmsr_sysfs_iop_message_read()
81 unsigned int tail = acb->rqbuf_getIndex; in arcmsr_sysfs_iop_message_read()
82 unsigned int head = acb->rqbuf_putIndex; in arcmsr_sysfs_iop_message_read()
90 memcpy(ptmpQbuffer, acb->rqbuffer + tail, allxfer_len); in arcmsr_sysfs_iop_message_read()
92 memcpy(ptmpQbuffer, acb->rqbuffer + tail, cnt_to_end); in arcmsr_sysfs_iop_message_read()
93 memcpy(ptmpQbuffer + cnt_to_end, acb->rqbuffer, allxfer_len - cnt_to_end); in arcmsr_sysfs_iop_message_read()
95 acb->rqbuf_getIndex = (acb->rqbuf_getIndex + allxfer_len) % ARCMSR_MAX_QBUFFER; in arcmsr_sysfs_iop_message_read()
97 if (acb->acb_flags & ACB_F_IOPDATA_OVERFLOW) { in arcmsr_sysfs_iop_message_read()
99 acb->acb_flags &= ~ACB_F_IOPDATA_OVERFLOW; in arcmsr_sysfs_iop_message_read()
100 prbuffer = arcmsr_get_iop_rqbuffer(acb); in arcmsr_sysfs_iop_message_read()
101 if (arcmsr_Read_iop_rqbuffer_data(acb, prbuffer) == 0) in arcmsr_sysfs_iop_message_read()
102 acb->acb_flags |= ACB_F_IOPDATA_OVERFLOW; in arcmsr_sysfs_iop_message_read()
104 spin_unlock_irqrestore(&acb->rqbuffer_lock, flags); in arcmsr_sysfs_iop_message_read()
116 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; in arcmsr_sysfs_iop_message_write() local
128 spin_lock_irqsave(&acb->wqbuffer_lock, flags); in arcmsr_sysfs_iop_message_write()
129 if (acb->wqbuf_putIndex != acb->wqbuf_getIndex) { in arcmsr_sysfs_iop_message_write()
130 arcmsr_write_ioctldata2iop(acb); in arcmsr_sysfs_iop_message_write()
131 spin_unlock_irqrestore(&acb->wqbuffer_lock, flags); in arcmsr_sysfs_iop_message_write()
134 pQbuffer = &acb->wqbuffer[acb->wqbuf_putIndex]; in arcmsr_sysfs_iop_message_write()
135 cnt2end = ARCMSR_MAX_QBUFFER - acb->wqbuf_putIndex; in arcmsr_sysfs_iop_message_write()
140 acb->wqbuf_putIndex = 0; in arcmsr_sysfs_iop_message_write()
141 pQbuffer = acb->wqbuffer; in arcmsr_sysfs_iop_message_write()
144 acb->wqbuf_putIndex += user_len; in arcmsr_sysfs_iop_message_write()
145 acb->wqbuf_putIndex %= ARCMSR_MAX_QBUFFER; in arcmsr_sysfs_iop_message_write()
146 if (acb->acb_flags & ACB_F_MESSAGE_WQBUFFER_CLEARED) { in arcmsr_sysfs_iop_message_write()
147 acb->acb_flags &= in arcmsr_sysfs_iop_message_write()
149 arcmsr_write_ioctldata2iop(acb); in arcmsr_sysfs_iop_message_write()
151 spin_unlock_irqrestore(&acb->wqbuffer_lock, flags); in arcmsr_sysfs_iop_message_write()
164 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; in arcmsr_sysfs_iop_message_clear() local
171 arcmsr_clear_iop2drv_rqueue_buffer(acb); in arcmsr_sysfs_iop_message_clear()
172 acb->acb_flags |= in arcmsr_sysfs_iop_message_clear()
176 spin_lock_irqsave(&acb->rqbuffer_lock, flags); in arcmsr_sysfs_iop_message_clear()
177 acb->rqbuf_getIndex = 0; in arcmsr_sysfs_iop_message_clear()
178 acb->rqbuf_putIndex = 0; in arcmsr_sysfs_iop_message_clear()
179 spin_unlock_irqrestore(&acb->rqbuffer_lock, flags); in arcmsr_sysfs_iop_message_clear()
180 spin_lock_irqsave(&acb->wqbuffer_lock, flags); in arcmsr_sysfs_iop_message_clear()
181 acb->wqbuf_getIndex = 0; in arcmsr_sysfs_iop_message_clear()
182 acb->wqbuf_putIndex = 0; in arcmsr_sysfs_iop_message_clear()
183 spin_unlock_irqrestore(&acb->wqbuffer_lock, flags); in arcmsr_sysfs_iop_message_clear()
184 pQbuffer = acb->rqbuffer; in arcmsr_sysfs_iop_message_clear()
186 pQbuffer = acb->wqbuffer; in arcmsr_sysfs_iop_message_clear()
218 int arcmsr_alloc_sysfs_attr(struct AdapterControlBlock *acb) in arcmsr_alloc_sysfs_attr() argument
220 struct Scsi_Host *host = acb->host; in arcmsr_alloc_sysfs_attr()
247 void arcmsr_free_sysfs_attr(struct AdapterControlBlock *acb) in arcmsr_free_sysfs_attr() argument
249 struct Scsi_Host *host = acb->host; in arcmsr_free_sysfs_attr()
271 struct AdapterControlBlock *acb = in arcmsr_attr_host_driver_posted_cmd() local
275 atomic_read(&acb->ccboutstandingcount)); in arcmsr_attr_host_driver_posted_cmd()
283 struct AdapterControlBlock *acb = in arcmsr_attr_host_driver_reset() local
287 acb->num_resets); in arcmsr_attr_host_driver_reset()
295 struct AdapterControlBlock *acb = in arcmsr_attr_host_driver_abort() local
299 acb->num_aborts); in arcmsr_attr_host_driver_abort()
307 struct AdapterControlBlock *acb = in arcmsr_attr_host_fw_model() local
311 acb->firm_model); in arcmsr_attr_host_fw_model()
319 struct AdapterControlBlock *acb = in arcmsr_attr_host_fw_version() local
324 acb->firm_version); in arcmsr_attr_host_fw_version()
332 struct AdapterControlBlock *acb = in arcmsr_attr_host_fw_request_len() local
337 acb->firm_request_len); in arcmsr_attr_host_fw_request_len()
345 struct AdapterControlBlock *acb = in arcmsr_attr_host_fw_numbers_queue() local
350 acb->firm_numbers_queue); in arcmsr_attr_host_fw_numbers_queue()
358 struct AdapterControlBlock *acb = in arcmsr_attr_host_fw_sdram_size() local
363 acb->firm_sdram_size); in arcmsr_attr_host_fw_sdram_size()
371 struct AdapterControlBlock *acb = in arcmsr_attr_host_fw_hd_channels() local
376 acb->firm_hd_channels); in arcmsr_attr_host_fw_hd_channels()