Lines Matching defs:ccb

129 static int ilo_pkt_enqueue(struct ilo_hwinfo *hw, struct ccb *ccb,
136 fifobar = ccb->ccb_u1.send_fifobar;
138 fifobar = ccb->ccb_u3.recv_fifobar;
144 static int ilo_pkt_dequeue(struct ilo_hwinfo *hw, struct ccb *ccb,
152 fifobar = ccb->ccb_u1.send_fifobar;
153 desc = ccb->ccb_u2.send_desc;
155 fifobar = ccb->ccb_u3.recv_fifobar;
156 desc = ccb->ccb_u4.recv_desc;
173 static int ilo_pkt_recv(struct ilo_hwinfo *hw, struct ccb *ccb)
175 char *fifobar = ccb->ccb_u3.recv_fifobar;
180 static inline void doorbell_set(struct ccb *ccb)
182 iowrite8(1, ccb->ccb_u5.db_base);
185 static inline void doorbell_clr(struct ccb *ccb)
187 iowrite8(2, ccb->ccb_u5.db_base);
200 static void ctrl_setup(struct ccb *ccb, int nr_desc, int l2desc_sz)
203 ccb->send_ctrl = ctrl_set(l2desc_sz, nr_desc-1, nr_desc-1);
204 ccb->recv_ctrl = ctrl_set(l2desc_sz, nr_desc-1, nr_desc-1);
232 struct ccb *driver_ccb = &data->driver_ccb;
233 struct ccb __iomem *device_ccb = data->mapped_ccb;
255 /* clear the hw ccb */
256 memset_io(device_ccb, 0, sizeof(struct ccb));
267 struct ccb *driver_ccb, *ilo_ccb;
288 * Create two ccb's, one with virt addrs, one with phys addrs.
289 * Copy the phys addr ccb to device shared mem.
321 ilo_ccb->ccb_u5.db_base = NULL; /* hw ccb's doorbell is not used */
329 struct ccb *driver_ccb = &data->driver_ccb;
331 /* copy the ccb with physical addrs to device memory */
332 data->mapped_ccb = (struct ccb __iomem *)
334 memcpy_toio(data->mapped_ccb, &data->ilo_ccb, sizeof(struct ccb));
347 /* the ccb is ready to use */
354 struct ccb *driver_ccb = &data->driver_ccb;
373 static inline int is_channel_reset(struct ccb *ccb)
376 return FIFOBARTOHANDLE(ccb->ccb_u1.send_fifobar)->reset;
379 static inline void set_channel_reset(struct ccb *ccb)
382 FIFOBARTOHANDLE(ccb->ccb_u1.send_fifobar)->reset = 1;
428 * Mapped memory is zeroed on ilo reset, so set a per ccb flag
429 * to indicate that this ccb needs to be closed and reopened.
443 struct ccb *driver_ccb = &data->driver_ccb;
493 struct ccb *driver_ccb = &data->driver_ccb;
523 struct ccb *driver_ccb = &data->driver_ccb;
576 /* new ccb allocation */
583 /* each fd private_data holds sw/hw view of ccb */
597 /* write the ccb to hw */