Lines Matching refs:BITS
53 #define BITS(reg, high, low) (((reg) & (BITMASK(high, low))) >> (low))
54 #define BIT(reg, n) BITS(reg, n, n)
180 if (BITS(0xc0000000, 31, 30) != 3)
266 printf("AUD_RID major revision\t\t\t0x%lx\n", BITS(dword, 23, 20));
267 printf("AUD_RID minor revision\t\t\t0x%lx\n", BITS(dword, 19, 16));
268 printf("AUD_RID revision id\t\t\t0x%lx\n", BITS(dword, 15, 8));
269 printf("AUD_RID stepping id\t\t\t0x%lx\n", BITS(dword, 7, 0));
298 BITS(dword, 30, 29), dip_port[BITS(dword, 30, 29)]);
304 BITS(dword, 20, 19), video_dip_index[BITS(dword, 20, 19)]);
306 BITS(dword, 17, 16), video_dip_trans[BITS(dword, 17, 16)]);
307 printf("VIDEO_DIP_CTL DIP buffer size\t\t%lu\n", BITS(dword, 11, 8));
308 printf("VIDEO_DIP_CTL DIP address\t\t%lu\n", BITS(dword, 3, 0));
311 printf("AUD_CONFIG pixel clock\t\t\t[0x%lx] %s\n", BITS(dword, 19, 16),
312 OPNAME(pixel_clock, BITS(dword, 19, 16)));
313 printf("AUD_CONFIG fabrication enabled\t\t%lu\n", BITS(dword, 2, 2));
321 printf("AUD_SUBN_CNT starting node number\t0x%lx\n", BITS(dword, 23, 16));
322 printf("AUD_SUBN_CNT total number of nodes\t0x%lx\n", BITS(dword, 7, 0));
325 printf("AUD_SUBN_CNT2 starting node number\t0x%lx\n", BITS(dword, 24, 16));
326 printf("AUD_SUBN_CNT2 total number of nodes\t0x%lx\n", BITS(dword, 7, 0));
330 printf("AUD_FUNC_GRP node type\t\t\t0x%lx\n", BITS(dword, 7, 0));
334 printf("AUD_GRP_CAP input delay\t\t\t%lu\n", BITS(dword, 11, 8));
335 printf("AUD_GRP_CAP output delay\t\t%lu\n", BITS(dword, 3, 0));
339 power_state[BITS(dword, 5, 4)]);
341 power_state[BITS(dword, 1, 0)]);
350 printf("AUD_OUT_CWCAP widget type\t\t0x%lx\n", BITS(dword, 23, 20));
351 printf("AUD_OUT_CWCAP sample delay\t\t0x%lx\n", BITS(dword, 19, 16));
353 BITS(dword, 15, 13) * 2 + BIT(dword, 0) + 1);
366 printf("AUD_OUT_DIG_CNVT SPDIF category\t\t0x%lx\n", BITS(dword, 14, 8));
377 printf("AUD_OUT_CH_STR stream id\t\t0x%lx\n", BITS(dword, 7, 4));
378 printf("AUD_OUT_CH_STR lowest channel\t\t0x%lx\n", BITS(dword, 3, 0));
381 printf("AUD_OUT_STR_DESC stream channels\t0x%lx\n", BITS(dword, 3, 0));
384 printf("AUD_PINW_CAP widget type\t\t0x%lx\n", BITS(dword, 23, 20));
385 printf("AUD_PINW_CAP sample delay\t\t0x%lx\n", BITS(dword, 19, 16));
387 BITS(dword, 15, 13) * 2 + BIT(dword, 0));
413 BITS(dword, 2, 0),
414 OPNAME(stream_type, BITS(dword, 2, 0)));
424 BITS(dword, 30, 29), dip_port[BITS(dword, 30, 29)]);
426 BITS(dword, 20, 18), OPNAME(dip_index, BITS(dword, 20, 18)));
428 BITS(dword, 17, 16), dip_trans[BITS(dword, 17, 16)]);
429 printf("AUD_CNTL_ST DIP address\t\t\t%lu\n", BITS(dword, 3, 0));
433 printf("AUD_CNTL_ST ELD bufsize\t\t\t%lu\n", BITS(dword, 13, 9));
434 printf("AUD_CNTL_ST ELD address\t\t\t%lu\n", BITS(dword, 8, 5));
443 printf("AUD_CONV_CHCNT HDMI HBR enabled\t\t%lu\n", BITS(dword, 15, 14));
444 printf("AUD_CONV_CHCNT HDMI channel count\t%lu\n", BITS(dword, 11, 8) + 1);
450 printf("\t\t\t\t\t[0x%x] %u => %lu \n", dword, i, BITS(dword, 7, 4));