Lines Matching refs:count
74 static void frpw_read_block_int( PIA *pi, char * buf, int count, int regr ) in frpw_read_block_int() argument
81 for (k=0;k<count;k++) { in frpw_read_block_int()
92 for (k=0;k<count;k++) { in frpw_read_block_int()
101 for (k=0;k<count;k++) buf[k] = r4(); in frpw_read_block_int()
107 for (k=0;k<count-2;k++) buf[k] = r4(); in frpw_read_block_int()
109 buf[count-2] = r4(); in frpw_read_block_int()
110 buf[count-1] = r4(); in frpw_read_block_int()
115 for (k=0;k<(count/2)-1;k++) ((u16 *)buf)[k] = r4w(); in frpw_read_block_int()
117 buf[count-2] = r4(); in frpw_read_block_int()
118 buf[count-1] = r4(); in frpw_read_block_int()
123 for (k=0;k<(count/4)-1;k++) ((u32 *)buf)[k] = r4l(); in frpw_read_block_int()
124 buf[count-4] = r4(); in frpw_read_block_int()
125 buf[count-3] = r4(); in frpw_read_block_int()
127 buf[count-2] = r4(); in frpw_read_block_int()
128 buf[count-1] = r4(); in frpw_read_block_int()
135 static void frpw_read_block( PIA *pi, char * buf, int count) in frpw_read_block() argument
137 { frpw_read_block_int(pi,buf,count,0x08); in frpw_read_block()
140 static void frpw_write_block( PIA *pi, char * buf, int count ) in frpw_write_block() argument
149 for (k=0;k<count;k++) { in frpw_write_block()
157 for (k=0;k<count;k++) w4(buf[k]); in frpw_write_block()
162 for (k=0;k<count/2;k++) w4w(((u16 *)buf)[k]); in frpw_write_block()
167 for (k=0;k<count/4;k++) w4l(((u32 *)buf)[k]); in frpw_write_block()