• Home
  • Raw
  • Download

Lines Matching refs:acb

71 	struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;  in arcmsr_sysfs_iop_message_read()  local
81 spin_lock_irqsave(&acb->rqbuffer_lock, flags); in arcmsr_sysfs_iop_message_read()
82 if (acb->rqbuf_getIndex != acb->rqbuf_putIndex) { in arcmsr_sysfs_iop_message_read()
83 unsigned int tail = acb->rqbuf_getIndex; in arcmsr_sysfs_iop_message_read()
84 unsigned int head = acb->rqbuf_putIndex; in arcmsr_sysfs_iop_message_read()
92 memcpy(ptmpQbuffer, acb->rqbuffer + tail, allxfer_len); in arcmsr_sysfs_iop_message_read()
94 memcpy(ptmpQbuffer, acb->rqbuffer + tail, cnt_to_end); in arcmsr_sysfs_iop_message_read()
95 memcpy(ptmpQbuffer + cnt_to_end, acb->rqbuffer, allxfer_len - cnt_to_end); in arcmsr_sysfs_iop_message_read()
97 acb->rqbuf_getIndex = (acb->rqbuf_getIndex + allxfer_len) % ARCMSR_MAX_QBUFFER; in arcmsr_sysfs_iop_message_read()
99 if (acb->acb_flags & ACB_F_IOPDATA_OVERFLOW) { in arcmsr_sysfs_iop_message_read()
101 acb->acb_flags &= ~ACB_F_IOPDATA_OVERFLOW; in arcmsr_sysfs_iop_message_read()
102 prbuffer = arcmsr_get_iop_rqbuffer(acb); in arcmsr_sysfs_iop_message_read()
103 if (arcmsr_Read_iop_rqbuffer_data(acb, prbuffer) == 0) in arcmsr_sysfs_iop_message_read()
104 acb->acb_flags |= ACB_F_IOPDATA_OVERFLOW; in arcmsr_sysfs_iop_message_read()
106 spin_unlock_irqrestore(&acb->rqbuffer_lock, flags); in arcmsr_sysfs_iop_message_read()
118 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; in arcmsr_sysfs_iop_message_write() local
130 spin_lock_irqsave(&acb->wqbuffer_lock, flags); in arcmsr_sysfs_iop_message_write()
131 if (acb->wqbuf_putIndex != acb->wqbuf_getIndex) { in arcmsr_sysfs_iop_message_write()
132 arcmsr_write_ioctldata2iop(acb); in arcmsr_sysfs_iop_message_write()
133 spin_unlock_irqrestore(&acb->wqbuffer_lock, flags); in arcmsr_sysfs_iop_message_write()
136 pQbuffer = &acb->wqbuffer[acb->wqbuf_putIndex]; in arcmsr_sysfs_iop_message_write()
137 cnt2end = ARCMSR_MAX_QBUFFER - acb->wqbuf_putIndex; in arcmsr_sysfs_iop_message_write()
142 acb->wqbuf_putIndex = 0; in arcmsr_sysfs_iop_message_write()
143 pQbuffer = acb->wqbuffer; in arcmsr_sysfs_iop_message_write()
146 acb->wqbuf_putIndex += user_len; in arcmsr_sysfs_iop_message_write()
147 acb->wqbuf_putIndex %= ARCMSR_MAX_QBUFFER; in arcmsr_sysfs_iop_message_write()
148 if (acb->acb_flags & ACB_F_MESSAGE_WQBUFFER_CLEARED) { in arcmsr_sysfs_iop_message_write()
149 acb->acb_flags &= in arcmsr_sysfs_iop_message_write()
151 arcmsr_write_ioctldata2iop(acb); in arcmsr_sysfs_iop_message_write()
153 spin_unlock_irqrestore(&acb->wqbuffer_lock, flags); in arcmsr_sysfs_iop_message_write()
166 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; in arcmsr_sysfs_iop_message_clear() local
173 arcmsr_clear_iop2drv_rqueue_buffer(acb); in arcmsr_sysfs_iop_message_clear()
174 acb->acb_flags |= in arcmsr_sysfs_iop_message_clear()
178 spin_lock_irqsave(&acb->rqbuffer_lock, flags); in arcmsr_sysfs_iop_message_clear()
179 acb->rqbuf_getIndex = 0; in arcmsr_sysfs_iop_message_clear()
180 acb->rqbuf_putIndex = 0; in arcmsr_sysfs_iop_message_clear()
181 spin_unlock_irqrestore(&acb->rqbuffer_lock, flags); in arcmsr_sysfs_iop_message_clear()
182 spin_lock_irqsave(&acb->wqbuffer_lock, flags); in arcmsr_sysfs_iop_message_clear()
183 acb->wqbuf_getIndex = 0; in arcmsr_sysfs_iop_message_clear()
184 acb->wqbuf_putIndex = 0; in arcmsr_sysfs_iop_message_clear()
185 spin_unlock_irqrestore(&acb->wqbuffer_lock, flags); in arcmsr_sysfs_iop_message_clear()
186 pQbuffer = acb->rqbuffer; in arcmsr_sysfs_iop_message_clear()
188 pQbuffer = acb->wqbuffer; in arcmsr_sysfs_iop_message_clear()
220 int arcmsr_alloc_sysfs_attr(struct AdapterControlBlock *acb) in arcmsr_alloc_sysfs_attr() argument
222 struct Scsi_Host *host = acb->host; in arcmsr_alloc_sysfs_attr()
249 void arcmsr_free_sysfs_attr(struct AdapterControlBlock *acb) in arcmsr_free_sysfs_attr() argument
251 struct Scsi_Host *host = acb->host; in arcmsr_free_sysfs_attr()
273 struct AdapterControlBlock *acb = in arcmsr_attr_host_driver_posted_cmd() local
277 atomic_read(&acb->ccboutstandingcount)); in arcmsr_attr_host_driver_posted_cmd()
285 struct AdapterControlBlock *acb = in arcmsr_attr_host_driver_reset() local
289 acb->num_resets); in arcmsr_attr_host_driver_reset()
297 struct AdapterControlBlock *acb = in arcmsr_attr_host_driver_abort() local
301 acb->num_aborts); in arcmsr_attr_host_driver_abort()
309 struct AdapterControlBlock *acb = in arcmsr_attr_host_fw_model() local
313 acb->firm_model); in arcmsr_attr_host_fw_model()
321 struct AdapterControlBlock *acb = in arcmsr_attr_host_fw_version() local
326 acb->firm_version); in arcmsr_attr_host_fw_version()
334 struct AdapterControlBlock *acb = in arcmsr_attr_host_fw_request_len() local
339 acb->firm_request_len); in arcmsr_attr_host_fw_request_len()
347 struct AdapterControlBlock *acb = in arcmsr_attr_host_fw_numbers_queue() local
352 acb->firm_numbers_queue); in arcmsr_attr_host_fw_numbers_queue()
360 struct AdapterControlBlock *acb = in arcmsr_attr_host_fw_sdram_size() local
365 acb->firm_sdram_size); in arcmsr_attr_host_fw_sdram_size()
373 struct AdapterControlBlock *acb = in arcmsr_attr_host_fw_hd_channels() local
378 acb->firm_hd_channels); in arcmsr_attr_host_fw_hd_channels()