Lines Matching refs:c2port_device

61 static void c2port_reset(struct c2port_device *dev)  in c2port_reset()
77 static void c2port_strobe_ck(struct c2port_device *dev) in c2port_strobe_ck()
99 static void c2port_write_ar(struct c2port_device *dev, u8 addr) in c2port_write_ar()
127 static int c2port_read_ar(struct c2port_device *dev, u8 *addr) in c2port_read_ar()
159 static int c2port_write_dr(struct c2port_device *dev, u8 data) in c2port_write_dr()
207 static int c2port_read_dr(struct c2port_device *dev, u8 *data) in c2port_read_dr()
257 static int c2port_poll_in_busy(struct c2port_device *dev) in c2port_poll_in_busy()
278 static int c2port_poll_out_ready(struct c2port_device *dev) in c2port_poll_out_ready()
306 struct c2port_device *c2dev = dev_get_drvdata(dev); in c2port_show_name()
315 struct c2port_device *c2dev = dev_get_drvdata(dev); in c2port_show_flash_blocks_num()
325 struct c2port_device *c2dev = dev_get_drvdata(dev); in c2port_show_flash_block_size()
335 struct c2port_device *c2dev = dev_get_drvdata(dev); in c2port_show_flash_size()
345 struct c2port_device *c2dev = dev_get_drvdata(dev); in access_show()
353 struct c2port_device *c2dev = dev_get_drvdata(dev); in access_store()
383 struct c2port_device *c2dev = dev_get_drvdata(dev); in c2port_store_reset()
400 static ssize_t __c2port_show_dev_id(struct c2port_device *dev, char *buf) in __c2port_show_dev_id()
419 struct c2port_device *c2dev = dev_get_drvdata(dev); in c2port_show_dev_id()
437 static ssize_t __c2port_show_rev_id(struct c2port_device *dev, char *buf) in __c2port_show_rev_id()
456 struct c2port_device *c2dev = dev_get_drvdata(dev); in c2port_show_rev_id()
477 struct c2port_device *c2dev = dev_get_drvdata(dev); in c2port_show_flash_access()
482 static ssize_t __c2port_store_flash_access(struct c2port_device *dev, in __c2port_store_flash_access()
522 struct c2port_device *c2dev = dev_get_drvdata(dev); in c2port_store_flash_access()
545 static ssize_t __c2port_write_flash_erase(struct c2port_device *dev) in __c2port_write_flash_erase()
606 struct c2port_device *c2dev = dev_get_drvdata(dev); in c2port_store_flash_erase()
626 static ssize_t __c2port_read_flash_data(struct c2port_device *dev, in __c2port_read_flash_data()
720 struct c2port_device *c2dev = dev_get_drvdata(kobj_to_dev(kobj)); in c2port_read_flash_data()
737 static ssize_t __c2port_write_flash_data(struct c2port_device *dev, in __c2port_write_flash_data()
835 struct c2port_device *c2dev = dev_get_drvdata(kobj_to_dev(kobj)); in c2port_write_flash_data()
891 struct c2port_device *c2port_device_register(char *name, in c2port_device_register()
894 struct c2port_device *c2dev; in c2port_device_register()
902 c2dev = kzalloc(sizeof(struct c2port_device), GFP_KERNEL); in c2port_device_register()
954 void c2port_device_unregister(struct c2port_device *c2dev) in c2port_device_unregister()