Lines Matching refs:fc
8 static void flexcop_sram_set_chip(struct flexcop_device *fc, in flexcop_sram_set_chip() argument
14 int flexcop_sram_init(struct flexcop_device *fc) in flexcop_sram_init() argument
16 switch (fc->rev) { in flexcop_sram_init()
19 flexcop_sram_set_chip(fc, FC_SRAM_1_32KB); in flexcop_sram_init()
22 flexcop_sram_set_chip(fc, FC_SRAM_1_48KB); in flexcop_sram_init()
30 int flexcop_sram_set_dest(struct flexcop_device *fc, flexcop_sram_dest_t dest, in flexcop_sram_set_dest() argument
34 v = fc->read_ibi_reg(fc, sram_dest_reg_714); in flexcop_sram_set_dest()
36 if (fc->rev != FLEXCOP_III && target == FC_SRAM_DEST_TARGET_FC3_CA) { in flexcop_sram_set_dest()
51 fc->write_ibi_reg(fc,sram_dest_reg_714,v); in flexcop_sram_set_dest()
58 void flexcop_wan_set_speed(struct flexcop_device *fc, flexcop_wan_speed_t s) in flexcop_wan_set_speed() argument
64 void flexcop_sram_ctrl(struct flexcop_device *fc, int usb_wan, int sramdma, int maximumfill) in flexcop_sram_ctrl() argument
66 flexcop_ibi_value v = fc->read_ibi_reg(fc,sram_dest_reg_714); in flexcop_sram_ctrl()
70 fc->write_ibi_reg(fc,sram_dest_reg_714,v); in flexcop_sram_ctrl()
305 static int flexcop_sram_detect(struct flexcop_device *fc)
308 r208 = fc->read_ibi_reg(fc, ctrl_208);
309 fc->write_ibi_reg(fc, ctrl_208, ibi_zero);
311 r71c_0 = fc->read_ibi_reg(fc, wan_ctrl_reg_71c);