Lines Matching defs:frag

1141 	struct sbbc_fragment	frag;
1169 frag.f_id = msg_id;
1170 frag.f_type = msg->msg_type;
1171 frag.f_status = 0;
1172 frag.f_total_len = msg->msg_len;
1173 frag.f_frag_offset = 0;
1177 bcopy(&msg->msg_data, &frag.f_data, sizeof (msg->msg_data));
1188 rc = mbox_write(&header, &frag, msg);
1204 bytes_written += frag.f_frag_len;
1205 frag.f_frag_offset += frag.f_frag_len;
1272 struct sbbc_fragment frag;
1278 uint16_t type; /* frag.f_type.type */
1279 uint32_t f_id; /* frag.f_id */
1317 if (rc = mbox_read_frag(&header, &frag)) {
1323 type = frag.f_type.type;
1324 f_id = frag.f_id;
1413 rc = mbox_read(&header, &frag, waiter->w_msg);
1417 f, frag.f_id, frag.f_frag_offset,
1418 frag.f_frag_len, frag.f_total_len);
1420 if (rc || ((frag.f_frag_offset + frag.f_frag_len) ==
1421 frag.f_total_len)) {
1427 rc : frag.f_status;
1465 f_frag_len = tmpmsg.msg_len = frag.f_frag_len;
1468 * Set frag.f_frag_offset to 0 so we don't have to allocate
1471 f_frag_offset = frag.f_frag_offset;
1472 frag.f_frag_offset = 0;
1483 rc = mbox_read(&header, &frag, &tmpmsg);
1500 if (arg->msg_len >= frag.f_total_len) {
1516 frag.f_total_len) {
1598 struct sbbc_fragment *frag, sbbc_msg_t *msg)
1620 f_total_len = frag->f_total_len;
1621 f_frag_offset = frag->f_frag_offset;
1679 frag->f_frag_len = 0;
1687 frag->f_frag_len = min(bytes_remaining, free_space - frag_header_size);
1697 rc = iosram_write(SBBC_MAILBOX_KEY, sram_dst, (caddr_t)frag,
1714 (caddr_t)frag, space_at_end);
1720 (caddr_t)((caddr_t)frag + space_at_end),
1780 frag->f_frag_len = bytes_written;
1803 * Get the next frag from IOSRAM.
1809 struct sbbc_fragment *frag, sbbc_msg_t *msg)
1832 f_frag_offset = frag->f_frag_offset;
1833 f_frag_len = frag->f_frag_len;
1850 bcopy(&frag->f_data, &msg->msg_data, sizeof (msg->msg_data));
1963 struct sbbc_fragment frag;
1968 if (mbox_read_frag(header, &frag)) {
1977 next_msg += frag.f_frag_len;
2141 struct sbbc_fragment *frag)
2161 dst = (caddr_t)frag;
2180 if (rc = iosram_read(SBBC_MAILBOX_KEY, sram_src, (caddr_t)frag,