Lines Matching refs:mrq
161 struct memstick_request **mrq);
526 struct memstick_request **mrq) in h_mspro_block_req_init() argument
530 *mrq = &card->current_mrq; in h_mspro_block_req_init()
536 struct memstick_request **mrq) in h_mspro_block_default() argument
538 return mspro_block_complete_req(card, (*mrq)->error); in h_mspro_block_default()
542 struct memstick_request **mrq) in h_mspro_block_default_bad() argument
548 struct memstick_request **mrq) in h_mspro_block_get_ro() argument
552 if (!(*mrq)->error) { in h_mspro_block_get_ro()
553 if ((*mrq)->data[offsetof(struct ms_status_register, status0)] in h_mspro_block_get_ro()
560 return mspro_block_complete_req(card, (*mrq)->error); in h_mspro_block_get_ro()
564 struct memstick_request **mrq) in h_mspro_block_wait_for_ced() argument
566 dev_dbg(&card->dev, "wait for ced: value %x\n", (*mrq)->data[0]); in h_mspro_block_wait_for_ced()
568 if (!(*mrq)->error) { in h_mspro_block_wait_for_ced()
569 if ((*mrq)->data[0] & (MEMSTICK_INT_CMDNAK | MEMSTICK_INT_ERR)) in h_mspro_block_wait_for_ced()
570 (*mrq)->error = -EFAULT; in h_mspro_block_wait_for_ced()
571 else if (!((*mrq)->data[0] & MEMSTICK_INT_CED)) in h_mspro_block_wait_for_ced()
575 return mspro_block_complete_req(card, (*mrq)->error); in h_mspro_block_wait_for_ced()
579 struct memstick_request **mrq) in h_mspro_block_transfer_data() argument
586 if ((*mrq)->error) in h_mspro_block_transfer_data()
587 return mspro_block_complete_req(card, (*mrq)->error); in h_mspro_block_transfer_data()
589 switch ((*mrq)->tpc) { in h_mspro_block_transfer_data()
591 memstick_init_req(*mrq, MS_TPC_SET_CMD, &msb->transfer_cmd, 1); in h_mspro_block_transfer_data()
592 (*mrq)->need_card_int = 1; in h_mspro_block_transfer_data()
595 t_val = (*mrq)->int_reg; in h_mspro_block_transfer_data()
596 memstick_init_req(*mrq, MS_TPC_GET_INT, NULL, 1); in h_mspro_block_transfer_data()
601 t_val = (*mrq)->data[0]; in h_mspro_block_transfer_data()
605 memstick_init_req(*mrq, MS_TPC_SET_CMD, &t_val, 1); in h_mspro_block_transfer_data()
623 memstick_init_req(*mrq, MS_TPC_GET_INT, in h_mspro_block_transfer_data()
631 memstick_init_req(*mrq, MS_TPC_GET_INT, NULL, 1); in h_mspro_block_transfer_data()
643 memstick_init_req_sg(*mrq, msb->data_dir == READ in h_mspro_block_transfer_data()
647 (*mrq)->need_card_int = 1; in h_mspro_block_transfer_data()
653 t_val = (*mrq)->int_reg; in h_mspro_block_transfer_data()
656 memstick_init_req(*mrq, MS_TPC_GET_INT, NULL, 1); in h_mspro_block_transfer_data()