• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/s390/cio/

Lines Matching refs:cmb

42 #include <asm/cmb.h>
232 if (!cdev->private->cmb) {
318 cmb_data = cdev->private->cmb;
357 if (!cdev->private->cmb) {
423 cmb_data = cdev->private->cmb;
438 * struct cmb_area - container for global cmb data
446 struct cmb *mem;
473 * struct cmb - basic channel measurement block
486 * The cmb area made up from these blocks must be a contiguous array and may
488 * Only one cmb area can be present in the system.
490 struct cmb {
508 struct cmb *cmb;
519 * Find first unused cmb in cmb_area.mem.
521 * remains sorted by ->cmb->hw_data pointers.
523 cmb = cmb_area.mem;
526 data = node->cmb;
527 if ((struct cmb*)data->hw_block > cmb)
529 cmb++;
531 if (cmb - cmb_area.mem >= cmb_area.num_channels) {
536 /* insert new cmb */
538 cmb_data->hw_block = cmb;
539 cdev->private->cmb = cmb_data;
549 struct cmb *mem;
558 cmb_data->last_block = kzalloc(sizeof(struct cmb), GFP_KERNEL);
563 cmb_data->size = sizeof(struct cmb);
568 size = sizeof(struct cmb) * cmb_area.num_channels;
617 cmb_data = priv->cmb;
618 priv->cmb = NULL;
626 size = sizeof(struct cmb) * cmb_area.num_channels;
643 if (!cdev->private->cmb) {
647 cmb_data = cdev->private->cmb;
648 offset = mme ? (struct cmb *)cmb_data->hw_block - cmb_area.mem : 0;
656 struct cmb *cmb;
666 if (!cdev->private->cmb) {
670 cmb = ((struct cmb_data *)cdev->private->cmb)->last_block;
674 ret = cmb->ssch_rsch_count;
677 ret = cmb->sample_count;
680 val = cmb->device_connect_time;
683 val = cmb->function_pending_time;
686 val = cmb->device_disconnect_time;
689 val = cmb->control_unit_queuing_time;
692 val = cmb->device_active_only_time;
698 ret = time_to_avg_nsec(val, cmb->sample_count);
706 struct cmb *cmb;
716 cmb_data = cdev->private->cmb;
725 cmb = cmb_data->last_block;
737 data->ssch_rsch_count = cmb->ssch_rsch_count;
738 data->sample_count = cmb->sample_count;
741 data->device_connect_time = time_to_nsec(cmb->device_connect_time);
742 data->function_pending_time = time_to_nsec(cmb->function_pending_time);
744 time_to_nsec(cmb->device_disconnect_time);
746 = time_to_nsec(cmb->control_unit_queuing_time);
748 = time_to_nsec(cmb->device_active_only_time);
778 /* ******** extended cmb handling ********/
845 if (cdev->private->cmb) {
851 cdev->private->cmb = cmb_data;
875 cmb_data = cdev->private->cmb;
876 cdev->private->cmb = NULL;
897 if (!cdev->private->cmb) {
901 cmb_data = cdev->private->cmb;
911 struct cmbe *cmb;
922 cmb_data = cdev->private->cmb;
927 cmb = cmb_data->last_block;
931 ret = cmb->ssch_rsch_count;
934 ret = cmb->sample_count;
937 val = cmb->device_connect_time;
940 val = cmb->function_pending_time;
943 val = cmb->device_disconnect_time;
946 val = cmb->control_unit_queuing_time;
949 val = cmb->device_active_only_time;
952 val = cmb->device_busy_time;
955 val = cmb->initial_command_response_time;
961 ret = time_to_avg_nsec(val, cmb->sample_count);
969 struct cmbe *cmb;
979 cmb_data = cdev->private->cmb;
998 cmb = cmb_data->last_block;
1000 data->ssch_rsch_count = cmb->ssch_rsch_count;
1001 data->sample_count = cmb->sample_count;
1004 data->device_connect_time = time_to_nsec(cmb->device_connect_time);
1005 data->function_pending_time = time_to_nsec(cmb->function_pending_time);
1007 time_to_nsec(cmb->device_disconnect_time);
1009 = time_to_nsec(cmb->control_unit_queuing_time);
1011 = time_to_nsec(cmb->device_active_only_time);
1012 data->device_busy_time = time_to_nsec(cmb->device_busy_time);
1014 = time_to_nsec(cmb->initial_command_response_time);
1063 cmb_data = cdev->private->cmb;
1176 return sprintf(buf, "%d\n", to_ccwdev(dev)->private->cmb ? 1 : 0);