Lines Matching refs:fc
9 static void flexcop_sram_set_chip(struct flexcop_device *fc, in flexcop_sram_set_chip() argument
15 int flexcop_sram_init(struct flexcop_device *fc) in flexcop_sram_init() argument
17 switch (fc->rev) { in flexcop_sram_init()
20 flexcop_sram_set_chip(fc, FC_SRAM_1_32KB); in flexcop_sram_init()
23 flexcop_sram_set_chip(fc, FC_SRAM_1_48KB); in flexcop_sram_init()
31 int flexcop_sram_set_dest(struct flexcop_device *fc, flexcop_sram_dest_t dest, in flexcop_sram_set_dest() argument
35 v = fc->read_ibi_reg(fc, sram_dest_reg_714); in flexcop_sram_set_dest()
37 if (fc->rev != FLEXCOP_III && target == FC_SRAM_DEST_TARGET_FC3_CA) { in flexcop_sram_set_dest()
52 fc->write_ibi_reg(fc,sram_dest_reg_714,v); in flexcop_sram_set_dest()
59 void flexcop_wan_set_speed(struct flexcop_device *fc, flexcop_wan_speed_t s) in flexcop_wan_set_speed() argument
65 void flexcop_sram_ctrl(struct flexcop_device *fc, int usb_wan, int sramdma, int maximumfill) in flexcop_sram_ctrl() argument
67 flexcop_ibi_value v = fc->read_ibi_reg(fc,sram_dest_reg_714); in flexcop_sram_ctrl()
71 fc->write_ibi_reg(fc,sram_dest_reg_714,v); in flexcop_sram_ctrl()
306 static int flexcop_sram_detect(struct flexcop_device *fc)
309 r208 = fc->read_ibi_reg(fc, ctrl_208);
310 fc->write_ibi_reg(fc, ctrl_208, ibi_zero);
312 r71c_0 = fc->read_ibi_reg(fc, wan_ctrl_reg_71c);