Lines Matching refs:tablelength
62 void DIVA_DIDD_Read( DESCRIPTOR *table, int tablelength ) in DIVA_DIDD_Read() argument
64 memset(table, 0, tablelength); in DIVA_DIDD_Read()
66 if (tablelength > sizeof(DIDD_Table)) in DIVA_DIDD_Read()
67 tablelength = sizeof(DIDD_Table); in DIVA_DIDD_Read()
69 if(tablelength % sizeof(DESCRIPTOR)) { in DIVA_DIDD_Read()
70 tablelength /= sizeof(DESCRIPTOR); in DIVA_DIDD_Read()
71 tablelength *= sizeof(DESCRIPTOR); in DIVA_DIDD_Read()
74 if (tablelength > 0) in DIVA_DIDD_Read()
75 memcpy((void *)table, (void *)DIDD_Table, tablelength); in DIVA_DIDD_Read()
80 void DIVA_DIDD_Write(DESCRIPTOR *table, int tablelength) in DIVA_DIDD_Write() argument
82 if (tablelength > sizeof(DIDD_Table)) in DIVA_DIDD_Write()
83 tablelength = sizeof(DIDD_Table); in DIVA_DIDD_Write()
85 memcpy((void *)DIDD_Table, (void *)table, tablelength); in DIVA_DIDD_Write()