33 pr_debug(
"invalid param: %d is not a valid card id\n", card);
37 pr_debug(
"%s: sndpkt: frst = 0x%lx nxt = %d f = %d n = %d\n",
39 sc_adapter[card]->channel[channel].first_sendbuf,
40 sc_adapter[card]->channel[channel].next_sendbuf,
41 sc_adapter[card]->channel[channel].free_sendbufs,
42 sc_adapter[card]->channel[channel].num_sendbufs);
44 if (!
sc_adapter[card]->channel[channel].free_sendbufs) {
51 pr_debug(
"%s: data overflows buffer size (data > buffer)\n",
59 pr_debug(
"%s: writing %d bytes to buffer offset 0x%lx\n",
67 pr_debug(
"%s: sndpkt size=%d, buf_offset=0x%lx buf_indx=%d\n",
73 channel + 1,
sizeof(
LLData), (
unsigned int *)&ReqLnkWrite);
76 pr_debug(
"%s: failed to send packet, status = %d\n",
99 pr_debug(
"invalid param: %d is not a valid card id\n", card);
107 pr_debug(
"%s: error status code: 0x%x\n",
117 pr_debug(
"%s: getting data from offset: 0x%lx\n",
136 pr_debug(
"%s: recycled buffer at offset 0x%lx size %d\n",
147 unsigned int nBuffers,
i, cBase;
152 pr_debug(
"invalid param: %d is not a valid card id\n", card);
159 pr_debug(
"%s: setting up channel buffer space in shared RAM\n",
164 pr_debug(
"%s: calculating buffer space: %d buffers, %d big\n",
166 nBuffers, buffer_size);
168 pr_debug(
"%s: not enough buffer space\n",
172 cBase = (nBuffers * buffer_size) * (c - 1);
173 pr_debug(
"%s: channel buffer offset from shared RAM: 0x%x\n",
179 pr_debug(
"%s: send buffer setup complete: first=0x%lx n=%d f=%d, nxt=%d\n",
189 pr_debug(
"%s: adding %d RecvBuffers:\n",
191 for (i = 0; i < nBuffers / 2; i++) {
194 (nBuffers / 2) * buffer_size) + (buffer_size *
i));
195 RcvBuffOffset.
msg_len = buffer_size;
196 pr_debug(
"%s: adding RcvBuffer #%d offset=0x%lx sz=%d bufsz:%d\n",
199 RcvBuffOffset.
msg_len, buffer_size);
201 c,
sizeof(
LLData), (
unsigned int *)&RcvBuffOffset);