Lines Matching defs:ccb

131 static int ilo_pkt_enqueue(struct ilo_hwinfo *hw, struct ccb *ccb,
138 fifobar = ccb->ccb_u1.send_fifobar;
140 fifobar = ccb->ccb_u3.recv_fifobar;
146 static int ilo_pkt_dequeue(struct ilo_hwinfo *hw, struct ccb *ccb,
154 fifobar = ccb->ccb_u1.send_fifobar;
155 desc = ccb->ccb_u2.send_desc;
157 fifobar = ccb->ccb_u3.recv_fifobar;
158 desc = ccb->ccb_u4.recv_desc;
175 static int ilo_pkt_recv(struct ilo_hwinfo *hw, struct ccb *ccb)
177 char *fifobar = ccb->ccb_u3.recv_fifobar;
182 static inline void doorbell_set(struct ccb *ccb)
184 iowrite8(1, ccb->ccb_u5.db_base);
187 static inline void doorbell_clr(struct ccb *ccb)
189 iowrite8(2, ccb->ccb_u5.db_base);
202 static void ctrl_setup(struct ccb *ccb, int nr_desc, int l2desc_sz)
205 ccb->send_ctrl = ctrl_set(l2desc_sz, nr_desc-1, nr_desc-1);
206 ccb->recv_ctrl = ctrl_set(l2desc_sz, nr_desc-1, nr_desc-1);
234 struct ccb *driver_ccb = &data->driver_ccb;
235 struct ccb __iomem *device_ccb = data->mapped_ccb;
257 /* clear the hw ccb */
258 memset_io(device_ccb, 0, sizeof(struct ccb));
269 struct ccb *driver_ccb, *ilo_ccb;
290 * Create two ccb's, one with virt addrs, one with phys addrs.
291 * Copy the phys addr ccb to device shared mem.
323 ilo_ccb->ccb_u5.db_base = NULL; /* hw ccb's doorbell is not used */
331 struct ccb *driver_ccb = &data->driver_ccb;
333 /* copy the ccb with physical addrs to device memory */
334 data->mapped_ccb = (struct ccb __iomem *)
336 memcpy_toio(data->mapped_ccb, &data->ilo_ccb, sizeof(struct ccb));
349 /* the ccb is ready to use */
356 struct ccb *driver_ccb = &data->driver_ccb;
375 static inline int is_channel_reset(struct ccb *ccb)
378 return FIFOBARTOHANDLE(ccb->ccb_u1.send_fifobar)->reset;
381 static inline void set_channel_reset(struct ccb *ccb)
384 FIFOBARTOHANDLE(ccb->ccb_u1.send_fifobar)->reset = 1;
424 * Mapped memory is zeroed on ilo reset, so set a per ccb flag
425 * to indicate that this ccb needs to be closed and reopened.
439 struct ccb *driver_ccb = &data->driver_ccb;
489 struct ccb *driver_ccb = &data->driver_ccb;
519 struct ccb *driver_ccb = &data->driver_ccb;
572 /* new ccb allocation */
579 /* each fd private_data holds sw/hw view of ccb */
593 /* write the ccb to hw */