Lines Matching refs:req
878 h1394_read_request(void *sl_private, cmd1394_cmd_t *req) in h1394_read_request() argument
899 s_priv = S1394_GET_CMD_PRIV(req); in h1394_read_request()
903 switch (req->cmd_type) { in h1394_read_request()
910 cmd_length = req->cmd_u.b.blk_length; in h1394_read_request()
936 addr_blk = s1394_used_tree_search(hal, req->cmd_addr); in h1394_read_request()
945 req->cmd_result = IEEE1394_RESP_ADDRESS_ERROR; in h1394_read_request()
946 (void) s1394_send_response(hal, req); in h1394_read_request()
953 end_of_request = (req->cmd_addr + cmd_length) - 1; in h1394_read_request()
957 req->cmd_result = IEEE1394_RESP_ADDRESS_ERROR; in h1394_read_request()
958 (void) s1394_send_response(hal, req); in h1394_read_request()
968 req->cmd_result = IEEE1394_RESP_TYPE_ERROR; in h1394_read_request()
969 (void) s1394_send_response(hal, req); in h1394_read_request()
976 offset = req->cmd_addr - addr_blk->addr_lo; in h1394_read_request()
977 if ((req->cmd_type == CMD1394_ASYNCH_RD_QUAD) && in h1394_read_request()
981 req->cmd_result = IEEE1394_RESP_TYPE_ERROR; in h1394_read_request()
982 (void) s1394_send_response(hal, req); in h1394_read_request()
990 offset = req->cmd_addr - addr_blk->addr_lo; in h1394_read_request()
993 switch (req->cmd_type) { in h1394_read_request()
996 (void *)&(req->cmd_u.q.quadlet_data), cmd_length); in h1394_read_request()
1000 begin_ptr = req->cmd_u.b.data_block->b_wptr; in h1394_read_request()
1002 tmp_ptr = req->cmd_u.b.data_block->b_datap->db_lim; in h1394_read_request()
1007 req->cmd_u.b.data_block->b_wptr = end_ptr; in h1394_read_request()
1054 req->cmd_callback_arg = addr_blk->addr_arg; in h1394_read_request()
1068 recv_read_req(req); in h1394_read_request()
1070 req->cmd_result = IEEE1394_RESP_COMPLETE; in h1394_read_request()
1071 (void) s1394_send_response(hal, req); in h1394_read_request()
1096 h1394_write_request(void *sl_private, cmd1394_cmd_t *req) in h1394_write_request() argument
1120 s_priv = S1394_GET_CMD_PRIV(req); in h1394_write_request()
1124 switch (req->cmd_type) { in h1394_write_request()
1131 cmd_length = req->cmd_u.b.blk_length; in h1394_write_request()
1158 addr_blk = s1394_used_tree_search(hal, req->cmd_addr); in h1394_write_request()
1164 posted_write = s1394_is_posted_write(hal, req->cmd_addr); in h1394_write_request()
1168 req->cmd_result = IEEE1394_RESP_ADDRESS_ERROR; in h1394_write_request()
1174 end_of_request = (req->cmd_addr + cmd_length) - 1; in h1394_write_request()
1176 req->cmd_result = IEEE1394_RESP_ADDRESS_ERROR; in h1394_write_request()
1183 req->cmd_result = IEEE1394_RESP_TYPE_ERROR; in h1394_write_request()
1189 offset = req->cmd_addr - addr_blk->addr_lo; in h1394_write_request()
1190 if ((req->cmd_type == CMD1394_ASYNCH_WR_QUAD) && in h1394_write_request()
1192 req->cmd_result = IEEE1394_RESP_TYPE_ERROR; in h1394_write_request()
1209 hal->halinfo.hal_private, req, h_priv); in h1394_write_request()
1214 (void) s1394_send_response(hal, req); in h1394_write_request()
1223 offset = req->cmd_addr - addr_blk->addr_lo; in h1394_write_request()
1225 switch (req->cmd_type) { in h1394_write_request()
1227 bcopy((void *)&(req->cmd_u.q.quadlet_data), in h1394_write_request()
1232 begin_ptr = req->cmd_u.b.data_block->b_rptr; in h1394_write_request()
1234 tmp_ptr = req->cmd_u.b.data_block->b_wptr; in h1394_write_request()
1287 req->cmd_callback_arg = addr_blk->addr_arg; in h1394_write_request()
1301 recv_write_req(req); in h1394_write_request()
1303 req->cmd_result = IEEE1394_RESP_COMPLETE; in h1394_write_request()
1304 (void) s1394_send_response(hal, req); in h1394_write_request()
1329 h1394_lock_request(void *sl_private, cmd1394_cmd_t *req) in h1394_lock_request() argument
1347 s_priv = S1394_GET_CMD_PRIV(req); in h1394_lock_request()
1355 addr_blk = s1394_used_tree_search(hal, req->cmd_addr); in h1394_lock_request()
1361 req->cmd_result = IEEE1394_RESP_ADDRESS_ERROR; in h1394_lock_request()
1362 (void) s1394_send_response(hal, req); in h1394_lock_request()
1369 switch (req->cmd_type) { in h1394_lock_request()
1371 end_of_request = (req->cmd_addr + IEEE1394_QUADLET) - 1; in h1394_lock_request()
1377 end_of_request = (req->cmd_addr + IEEE1394_OCTLET) - 1; in h1394_lock_request()
1406 req->cmd_result = IEEE1394_RESP_ADDRESS_ERROR; in h1394_lock_request()
1407 (void) s1394_send_response(hal, req); in h1394_lock_request()
1417 req->cmd_result = IEEE1394_RESP_TYPE_ERROR; in h1394_lock_request()
1418 (void) s1394_send_response(hal, req); in h1394_lock_request()
1426 offset = req->cmd_addr - addr_blk->addr_lo; in h1394_lock_request()
1429 if (req->cmd_type == CMD1394_ASYNCH_LOCK_32) { in h1394_lock_request()
1435 arg_value = req->cmd_u.l32.arg_value; in h1394_lock_request()
1436 data_value = req->cmd_u.l32.data_value; in h1394_lock_request()
1437 lock_type = req->cmd_u.l32.lock_type; in h1394_lock_request()
1449 req->cmd_u.l32.old_value = old_value; in h1394_lock_request()
1461 req->cmd_u.l32.old_value = old_value; in h1394_lock_request()
1472 req->cmd_u.l32.old_value = old_value; in h1394_lock_request()
1483 req->cmd_u.l32.old_value = old_value; in h1394_lock_request()
1497 req->cmd_u.l32.old_value = old_value; in h1394_lock_request()
1512 req->cmd_u.l32.old_value = old_value; in h1394_lock_request()
1518 req->cmd_result = IEEE1394_RESP_TYPE_ERROR; in h1394_lock_request()
1519 (void) s1394_send_response(hal, req); in h1394_lock_request()
1534 arg_value = req->cmd_u.l64.arg_value; in h1394_lock_request()
1535 data_value = req->cmd_u.l64.data_value; in h1394_lock_request()
1536 lock_type = req->cmd_u.l64.lock_type; in h1394_lock_request()
1548 req->cmd_u.l64.old_value = old_value; in h1394_lock_request()
1560 req->cmd_u.l64.old_value = old_value; in h1394_lock_request()
1571 req->cmd_u.l64.old_value = old_value; in h1394_lock_request()
1582 req->cmd_u.l64.old_value = old_value; in h1394_lock_request()
1596 req->cmd_u.l64.old_value = old_value; in h1394_lock_request()
1611 req->cmd_u.l64.old_value = old_value; in h1394_lock_request()
1617 req->cmd_result = IEEE1394_RESP_TYPE_ERROR; in h1394_lock_request()
1618 (void) s1394_send_response(hal, req); in h1394_lock_request()
1631 req->cmd_callback_arg = addr_blk->addr_arg; in h1394_lock_request()
1645 recv_lock_req(req); in h1394_lock_request()
1647 req->cmd_result = IEEE1394_RESP_COMPLETE; in h1394_lock_request()
1648 (void) s1394_send_response(hal, req); in h1394_lock_request()