Lines Matching refs:tcode

71 #define	HCI1394_ARITH_LOCK_SWAP32(tcode, data) \
72 (((tcode) == CMD1394_LOCK_FETCH_ADD) || \
73 ((tcode) == CMD1394_LOCK_BOUNDED_ADD) || \
74 ((tcode) == CMD1394_LOCK_WRAP_ADD)) ? \
76 #define HCI1394_ARITH_LOCK_SWAP64(tcode, data) \
77 (((tcode) == CMD1394_LOCK_FETCH_ADD) || \
78 ((tcode) == CMD1394_LOCK_BOUNDED_ADD) || \
79 ((tcode) == CMD1394_LOCK_WRAP_ADD)) ? \
82 #define HCI1394_ARITH_LOCK_SWAP32(tcode, data) (data)
83 #define HCI1394_ARITH_LOCK_SWAP64(tcode, data) (data)
89 hci1394_basic_pkt_t *pkt, uint_t *tcode, hci1394_async_cmd_t **hcicmd,
91 static int hci1394_async_arresp_size_get(uint_t tcode, hci1394_q_handle_t q,
95 hci1394_basic_pkt_t *pkt, uint_t *tcode, hci1394_async_cmd_t **hcicmd,
734 uint_t tcode;
774 (hci1394_basic_pkt_t *)addr, &tcode, &hcicmd, &size);
932 uint_t tcode;
966 (hci1394_basic_pkt_t *)addr, &tcode, &hcicmd, &size);
1017 switch (tcode) {
1053 HCI1394_TNF_HAL_ERROR, "", tnf_uint, arreq_tcode, tcode);
1210 * Read ARRESP in from memory into 1394 Framework command. We read the tcode
1225 hci1394_basic_pkt_t *pkt, uint_t *tcode, hci1394_async_cmd_t **hcicmd,
1242 ASSERT(tcode != NULL);
1249 /* read in the arresp tcode */
1251 *tcode = HCI1394_DESC_TCODE_GET(quadlet);
1254 status = hci1394_async_arresp_size_get(*tcode,
1358 switch (*tcode) {
1370 arresp_tcode, *tcode);
1384 arresp_tcode, *tcode);
1406 arresp_tcode, *tcode);
1509 arresp_tcode, *tcode);
1517 /* we got a tcode that we don't know about. Return error */
1520 "unknown ARRESP received", tnf_uint, arresp_tcode, *tcode);
1546 hci1394_basic_pkt_t *pkt, uint_t *tcode, hci1394_async_cmd_t **hcicmd,
1558 ASSERT(tcode != NULL);
1565 /* read in the arresp tcode */
1567 *tcode = HCI1394_DESC_TCODE_GET(quadlet);
1599 switch (*tcode) {
1747 /* we got a tcode that we don't know about. Return error */
1750 "unknown ARREQ received", tnf_uint, arreq_tcode, *tcode);
1763 IEEE1394_BROADCAST_NODEID) && ((*tcode !=
1764 IEEE1394_TCODE_WRITE_QUADLET) && (*tcode !=
2405 * the tcode, phy quadlet, and it's 1's complement.
2479 * will set the tcode later on since this could be a block write or
2500 * setup the tcode for a quadlet write request and copy in
2524 /* setup the tcode and the length of the block write */
2604 * will set the tcode later on since this could be a block read or
2624 /* setup the tcode for a quadlet read request */
2644 /* setup the tcode and the length of the block read */
2729 * the tcode up as a lock request. Set SRCBusId if this lock is not a
2841 * the tcode for a write response. Set SRCBusId if the addr is not a
2918 * will set the tcode later based on type of read response. Set
2935 * setup the tcode for a quadlet read response, If the
2967 * Setup the tcode for a block read response, set the data
2994 * Setup the tcode for a block read response, setup the data
3073 * the tcode for a lock response. Set SRCBusId if the addr is not a
3091 /* set response size to 0 for error. Set the extended tcode */
3345 hci1394_async_arresp_size_get(uint_t tcode, hci1394_q_handle_t q_handle,
3359 if (tcode == IEEE1394_TCODE_WRITE_RESP) {
3361 } else if (tcode == IEEE1394_TCODE_READ_QUADLET_RESP) {
3363 } else if (tcode == IEEE1394_TCODE_READ_BLOCK_RESP) {
3373 } else if (tcode == IEEE1394_TCODE_LOCK_RESP) {
3386 "unknown ARRESP received", tnf_uint, arresp_tcode, tcode);