/kernel/linux/linux-5.10/drivers/net/phy/ |
H A D | sfp.c | 20 #include "sfp.h" 221 struct sfp { struct 231 unsigned int (*get_state)(struct sfp *); 232 void (*set_state)(struct sfp *, unsigned int); 233 int (*read)(struct sfp *, bool, u8, void *, size_t); 234 int (*write)(struct sfp *, bool, u8, void *, size_t); 308 { .compatible = "sff,sfp", .data = &sfp_data, }, 315 static unsigned int sfp_gpio_get_state(struct sfp *sfp) in sfp_gpio_get_state() argument 320 if (gpio_flags[i] != GPIOD_IN || !sfp in sfp_gpio_get_state() 331 sff_gpio_get_state(struct sfp *sfp) sff_gpio_get_state() argument 336 sfp_gpio_set_state(struct sfp *sfp, unsigned int state) sfp_gpio_set_state() argument 355 sfp_i2c_read(struct sfp *sfp, bool a2, u8 dev_addr, void *buf, size_t len) sfp_i2c_read() argument 395 sfp_i2c_write(struct sfp *sfp, bool a2, u8 dev_addr, void *buf, size_t len) sfp_i2c_write() argument 422 sfp_i2c_configure(struct sfp *sfp, struct i2c_adapter *i2c) sfp_i2c_configure() argument 453 sfp_read(struct sfp *sfp, bool a2, u8 addr, void *buf, size_t len) sfp_read() argument 458 sfp_write(struct sfp *sfp, bool a2, u8 addr, void *buf, size_t len) sfp_write() argument 463 sfp_soft_get_state(struct sfp *sfp) sfp_soft_get_state() argument 486 sfp_soft_set_state(struct sfp *sfp, unsigned int state) sfp_soft_set_state() argument 501 sfp_soft_start_poll(struct sfp *sfp) sfp_soft_start_poll() argument 521 sfp_soft_stop_poll(struct sfp *sfp) sfp_soft_stop_poll() argument 526 sfp_get_state(struct sfp *sfp) sfp_get_state() argument 537 sfp_set_state(struct sfp *sfp, unsigned int state) sfp_set_state() argument 562 const struct sfp *sfp = data; sfp_hwmon_is_visible() local 655 sfp_hwmon_read_sensor(struct sfp *sfp, int reg, long *value) sfp_hwmon_read_sensor() argument 674 sfp_hwmon_calibrate(struct sfp *sfp, unsigned int slope, int offset, long *value) sfp_hwmon_calibrate() argument 681 sfp_hwmon_calibrate_temp(struct sfp *sfp, long *value) sfp_hwmon_calibrate_temp() argument 692 sfp_hwmon_calibrate_vcc(struct sfp *sfp, long *value) sfp_hwmon_calibrate_vcc() argument 700 sfp_hwmon_calibrate_bias(struct sfp *sfp, long *value) sfp_hwmon_calibrate_bias() argument 708 sfp_hwmon_calibrate_tx_power(struct sfp *sfp, long *value) sfp_hwmon_calibrate_tx_power() argument 716 sfp_hwmon_read_temp(struct sfp *sfp, int reg, long *value) sfp_hwmon_read_temp() argument 729 sfp_hwmon_read_vcc(struct sfp *sfp, int reg, long *value) sfp_hwmon_read_vcc() argument 742 sfp_hwmon_read_bias(struct sfp *sfp, int reg, long *value) sfp_hwmon_read_bias() argument 755 sfp_hwmon_read_tx_power(struct sfp *sfp, int reg, long *value) sfp_hwmon_read_tx_power() argument 768 sfp_hwmon_read_rx_power(struct sfp *sfp, int reg, long *value) sfp_hwmon_read_rx_power() argument 781 sfp_hwmon_temp(struct sfp *sfp, u32 attr, long *value) sfp_hwmon_temp() argument 847 sfp_hwmon_vcc(struct sfp *sfp, u32 attr, long *value) sfp_hwmon_vcc() argument 914 sfp_hwmon_bias(struct sfp *sfp, u32 attr, long *value) sfp_hwmon_bias() argument 981 sfp_hwmon_tx_power(struct sfp *sfp, u32 attr, long *value) sfp_hwmon_tx_power() argument 1048 sfp_hwmon_rx_power(struct sfp *sfp, u32 attr, long *value) sfp_hwmon_rx_power() argument 1118 struct sfp *sfp = dev_get_drvdata(dev); sfp_hwmon_read() local 1294 struct sfp *sfp = container_of(work, struct sfp, hwmon_probe.work); sfp_hwmon_probe() local 1341 sfp_hwmon_insert(struct sfp *sfp) sfp_hwmon_insert() argument 1361 sfp_hwmon_remove(struct sfp *sfp) sfp_hwmon_remove() argument 1371 sfp_hwmon_init(struct sfp *sfp) sfp_hwmon_init() argument 1378 sfp_hwmon_exit(struct sfp *sfp) sfp_hwmon_exit() argument 1383 sfp_hwmon_insert(struct sfp *sfp) sfp_hwmon_insert() argument 1388 sfp_hwmon_remove(struct sfp *sfp) sfp_hwmon_remove() argument 1392 sfp_hwmon_init(struct sfp *sfp) sfp_hwmon_init() argument 1397 sfp_hwmon_exit(struct sfp *sfp) sfp_hwmon_exit() argument 1403 sfp_module_tx_disable(struct sfp *sfp) sfp_module_tx_disable() argument 1411 sfp_module_tx_enable(struct sfp *sfp) sfp_module_tx_enable() argument 1419 sfp_module_tx_fault_reset(struct sfp *sfp) sfp_module_tx_fault_reset() argument 1434 sfp_sm_set_timer(struct sfp *sfp, unsigned int timeout) sfp_sm_set_timer() argument 1443 sfp_sm_next(struct sfp *sfp, unsigned int state, unsigned int timeout) sfp_sm_next() argument 1450 sfp_sm_mod_next(struct sfp *sfp, unsigned int state, unsigned int timeout) sfp_sm_mod_next() argument 1457 sfp_sm_phy_detach(struct sfp *sfp) sfp_sm_phy_detach() argument 1465 sfp_sm_probe_phy(struct sfp *sfp, bool is_c45) sfp_sm_probe_phy() argument 1498 sfp_sm_link_up(struct sfp *sfp) sfp_sm_link_up() argument 1504 sfp_sm_link_down(struct sfp *sfp) sfp_sm_link_down() argument 1509 sfp_sm_link_check_los(struct sfp *sfp) sfp_sm_link_check_los() argument 1531 sfp_los_event_active(struct sfp *sfp, unsigned int event) sfp_los_event_active() argument 1541 sfp_los_event_inactive(struct sfp *sfp, unsigned int event) sfp_los_event_inactive() argument 1551 sfp_sm_fault(struct sfp *sfp, unsigned int next_state, bool warn) sfp_sm_fault() argument 1576 sfp_sm_probe_for_phy(struct sfp *sfp) sfp_sm_probe_for_phy() argument 1596 sfp_module_parse_power(struct sfp *sfp) sfp_module_parse_power() argument 1659 sfp_sm_mod_hpower(struct sfp *sfp, bool enable) sfp_sm_mod_hpower() argument 1707 sfp_id_needs_byte_io(struct sfp *sfp, void *buf, size_t len) sfp_id_needs_byte_io() argument 1722 sfp_cotsworks_fixup_check(struct sfp *sfp, struct sfp_eeprom_id *id) sfp_cotsworks_fixup_check() argument 1754 sfp_sm_mod_probe(struct sfp *sfp, bool report) sfp_sm_mod_probe() argument 1908 sfp_sm_mod_remove(struct sfp *sfp) sfp_sm_mod_remove() argument 1922 sfp_sm_device(struct sfp *sfp, unsigned int event) sfp_sm_device() argument 1949 sfp_sm_module(struct sfp *sfp, unsigned int event) sfp_sm_module() argument 2059 sfp_sm_main(struct sfp *sfp, unsigned int event) sfp_sm_main() argument 2216 sfp_sm_event(struct sfp *sfp, unsigned int event) sfp_sm_event() argument 2238 sfp_attach(struct sfp *sfp) sfp_attach() argument 2243 sfp_detach(struct sfp *sfp) sfp_detach() argument 2248 sfp_start(struct sfp *sfp) sfp_start() argument 2253 sfp_stop(struct sfp *sfp) sfp_stop() argument 2258 sfp_module_info(struct sfp *sfp, struct ethtool_modinfo *modinfo) sfp_module_info() argument 2273 sfp_module_eeprom(struct sfp *sfp, struct ethtool_eeprom *ee, u8 *data) sfp_module_eeprom() argument 2318 struct sfp *sfp = container_of(work, struct sfp, timeout.work); sfp_timeout() local 2325 sfp_check_state(struct sfp *sfp) sfp_check_state() argument 2363 struct sfp *sfp = data; sfp_irq() local 2372 struct sfp *sfp = container_of(work, struct sfp, poll.work); sfp_poll() local 2383 struct sfp *sfp; sfp_alloc() local 2404 struct sfp *sfp = data; sfp_cleanup() local 2424 struct sfp *sfp; sfp_probe() local 2576 struct sfp *sfp = platform_get_drvdata(pdev); sfp_remove() local 2589 struct sfp *sfp = platform_get_drvdata(pdev); sfp_shutdown() local [all...] |
H A D | sfp.h | 5 #include <linux/sfp.h> 7 struct sfp; 10 void (*attach)(struct sfp *sfp); 11 void (*detach)(struct sfp *sfp); 12 void (*start)(struct sfp *sfp); 13 void (*stop)(struct sfp *sfp); [all...] |
H A D | sfp-bus.c | 11 #include "sfp.h" 20 * struct sfp_bus - internal representation of a sfp bus 30 struct sfp *sfp; member 130 * @bus: a pointer to the &struct sfp_bus structure for the sfp module 205 * @bus: a pointer to the &struct sfp_bus structure for the sfp module 232 * @bus: a pointer to the &struct sfp_bus structure for the sfp module 381 * @bus: a pointer to the &struct sfp_bus structure for the sfp module 424 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get() local 430 list_for_each_entry(sfp, in sfp_bus_get() 800 sfp_register_socket(struct device *dev, struct sfp *sfp, const struct sfp_socket_ops *ops) sfp_register_socket() argument [all...] |
H A D | Makefile | 29 obj-$(CONFIG_SFP) += sfp.o 30 sfp-obj-$(CONFIG_SFP) += sfp-bus.o 31 obj-y += $(sfp-obj-y) $(sfp-obj-m)
|
/kernel/linux/linux-6.6/drivers/net/phy/ |
H A D | sfp.c | 19 #include "sfp.h" 229 struct sfp { struct 240 unsigned int (*get_state)(struct sfp *); 241 void (*set_state)(struct sfp *, unsigned int); 242 int (*read)(struct sfp *, bool, u8, void *, size_t); 243 int (*write)(struct sfp *, bool, u8, void *, size_t); 338 { .compatible = "sff,sfp", .data = &sfp_data, }, 343 static void sfp_fixup_long_startup(struct sfp *sfp) in sfp_fixup_long_startup() argument 345 sfp in sfp_fixup_long_startup() 348 sfp_fixup_ignore_tx_fault(struct sfp *sfp) sfp_fixup_ignore_tx_fault() argument 354 sfp_fixup_10gbaset_30m(struct sfp *sfp) sfp_fixup_10gbaset_30m() argument 360 sfp_fixup_rollball_proto(struct sfp *sfp, unsigned int secs) sfp_fixup_rollball_proto() argument 366 sfp_fixup_fs_10gt(struct sfp *sfp) sfp_fixup_fs_10gt() argument 374 sfp_fixup_halny_gsfp(struct sfp *sfp) sfp_fixup_halny_gsfp() argument 383 sfp_fixup_rollball(struct sfp *sfp) sfp_fixup_rollball() argument 389 sfp_fixup_rollball_cc(struct sfp *sfp) sfp_fixup_rollball_cc() argument 535 sfp_gpio_get_state(struct sfp *sfp) sfp_gpio_get_state() argument 551 sff_gpio_get_state(struct sfp *sfp) sff_gpio_get_state() argument 556 sfp_gpio_set_state(struct sfp *sfp, unsigned int state) sfp_gpio_set_state() argument 592 sfp_i2c_read(struct sfp *sfp, bool a2, u8 dev_addr, void *buf, size_t len) sfp_i2c_read() argument 632 sfp_i2c_write(struct sfp *sfp, bool a2, u8 dev_addr, void *buf, size_t len) sfp_i2c_write() argument 659 sfp_i2c_configure(struct sfp *sfp, struct i2c_adapter *i2c) sfp_i2c_configure() argument 671 sfp_i2c_mdiobus_create(struct sfp *sfp) sfp_i2c_mdiobus_create() argument 694 sfp_i2c_mdiobus_destroy(struct sfp *sfp) sfp_i2c_mdiobus_destroy() argument 701 sfp_read(struct sfp *sfp, bool a2, u8 addr, void *buf, size_t len) sfp_read() argument 706 sfp_write(struct sfp *sfp, bool a2, u8 addr, void *buf, size_t len) sfp_write() argument 711 sfp_modify_u8(struct sfp *sfp, bool a2, u8 addr, u8 mask, u8 val) sfp_modify_u8() argument 727 sfp_soft_get_state(struct sfp *sfp) sfp_soft_get_state() argument 750 sfp_soft_set_state(struct sfp *sfp, unsigned int state, unsigned int soft) sfp_soft_set_state() argument 779 sfp_soft_start_poll(struct sfp *sfp) sfp_soft_start_poll() argument 803 sfp_soft_stop_poll(struct sfp *sfp) sfp_soft_stop_poll() argument 813 sfp_get_state(struct sfp *sfp) sfp_get_state() argument 828 sfp_set_state(struct sfp *sfp, unsigned int state) sfp_set_state() argument 839 sfp_mod_state(struct sfp *sfp, unsigned int mask, unsigned int set) sfp_mod_state() argument 863 const struct sfp *sfp = data; sfp_hwmon_is_visible() local 956 sfp_hwmon_read_sensor(struct sfp *sfp, int reg, long *value) sfp_hwmon_read_sensor() argument 975 sfp_hwmon_calibrate(struct sfp *sfp, unsigned int slope, int offset, long *value) sfp_hwmon_calibrate() argument 982 sfp_hwmon_calibrate_temp(struct sfp *sfp, long *value) sfp_hwmon_calibrate_temp() argument 993 sfp_hwmon_calibrate_vcc(struct sfp *sfp, long *value) sfp_hwmon_calibrate_vcc() argument 1001 sfp_hwmon_calibrate_bias(struct sfp *sfp, long *value) sfp_hwmon_calibrate_bias() argument 1009 sfp_hwmon_calibrate_tx_power(struct sfp *sfp, long *value) sfp_hwmon_calibrate_tx_power() argument 1017 sfp_hwmon_read_temp(struct sfp *sfp, int reg, long *value) sfp_hwmon_read_temp() argument 1030 sfp_hwmon_read_vcc(struct sfp *sfp, int reg, long *value) sfp_hwmon_read_vcc() argument 1043 sfp_hwmon_read_bias(struct sfp *sfp, int reg, long *value) sfp_hwmon_read_bias() argument 1056 sfp_hwmon_read_tx_power(struct sfp *sfp, int reg, long *value) sfp_hwmon_read_tx_power() argument 1069 sfp_hwmon_read_rx_power(struct sfp *sfp, int reg, long *value) sfp_hwmon_read_rx_power() argument 1082 sfp_hwmon_temp(struct sfp *sfp, u32 attr, long *value) sfp_hwmon_temp() argument 1148 sfp_hwmon_vcc(struct sfp *sfp, u32 attr, long *value) sfp_hwmon_vcc() argument 1215 sfp_hwmon_bias(struct sfp *sfp, u32 attr, long *value) sfp_hwmon_bias() argument 1282 sfp_hwmon_tx_power(struct sfp *sfp, u32 attr, long *value) sfp_hwmon_tx_power() argument 1349 sfp_hwmon_rx_power(struct sfp *sfp, u32 attr, long *value) sfp_hwmon_rx_power() argument 1419 struct sfp *sfp = dev_get_drvdata(dev); sfp_hwmon_read() local 1550 struct sfp *sfp = container_of(work, struct sfp, hwmon_probe.work); sfp_hwmon_probe() local 1594 sfp_hwmon_insert(struct sfp *sfp) sfp_hwmon_insert() argument 1604 sfp_hwmon_remove(struct sfp *sfp) sfp_hwmon_remove() argument 1614 sfp_hwmon_init(struct sfp *sfp) sfp_hwmon_init() argument 1621 sfp_hwmon_exit(struct sfp *sfp) sfp_hwmon_exit() argument 1626 sfp_hwmon_insert(struct sfp *sfp) sfp_hwmon_insert() argument 1631 sfp_hwmon_remove(struct sfp *sfp) sfp_hwmon_remove() argument 1635 sfp_hwmon_init(struct sfp *sfp) sfp_hwmon_init() argument 1640 sfp_hwmon_exit(struct sfp *sfp) sfp_hwmon_exit() argument 1646 sfp_module_tx_disable(struct sfp *sfp) sfp_module_tx_disable() argument 1653 sfp_module_tx_enable(struct sfp *sfp) sfp_module_tx_enable() argument 1663 struct sfp *sfp = s->private; sfp_debug_state_show() local 1691 sfp_debugfs_init(struct sfp *sfp) sfp_debugfs_init() argument 1699 sfp_debugfs_exit(struct sfp *sfp) sfp_debugfs_exit() argument 1704 sfp_debugfs_init(struct sfp *sfp) sfp_debugfs_init() argument 1708 sfp_debugfs_exit(struct sfp *sfp) sfp_debugfs_exit() argument 1713 sfp_module_tx_fault_reset(struct sfp *sfp) sfp_module_tx_fault_reset() argument 1730 sfp_sm_set_timer(struct sfp *sfp, unsigned int timeout) sfp_sm_set_timer() argument 1739 sfp_sm_next(struct sfp *sfp, unsigned int state, unsigned int timeout) sfp_sm_next() argument 1746 sfp_sm_mod_next(struct sfp *sfp, unsigned int state, unsigned int timeout) sfp_sm_mod_next() argument 1753 sfp_sm_phy_detach(struct sfp *sfp) sfp_sm_phy_detach() argument 1761 sfp_sm_probe_phy(struct sfp *sfp, int addr, bool is_c45) sfp_sm_probe_phy() argument 1798 sfp_sm_link_up(struct sfp *sfp) sfp_sm_link_up() argument 1804 sfp_sm_link_down(struct sfp *sfp) sfp_sm_link_down() argument 1809 sfp_sm_link_check_los(struct sfp *sfp) sfp_sm_link_check_los() argument 1831 sfp_los_event_active(struct sfp *sfp, unsigned int event) sfp_los_event_active() argument 1841 sfp_los_event_inactive(struct sfp *sfp, unsigned int event) sfp_los_event_inactive() argument 1851 sfp_sm_fault(struct sfp *sfp, unsigned int next_state, bool warn) sfp_sm_fault() argument 1865 sfp_sm_add_mdio_bus(struct sfp *sfp) sfp_sm_add_mdio_bus() argument 1884 sfp_sm_probe_for_phy(struct sfp *sfp) sfp_sm_probe_for_phy() argument 1908 sfp_module_parse_power(struct sfp *sfp) sfp_module_parse_power() argument 1974 sfp_sm_mod_hpower(struct sfp *sfp, bool enable) sfp_sm_mod_hpower() argument 1995 sfp_module_parse_rate_select(struct sfp *sfp) sfp_module_parse_rate_select() argument 2095 sfp_id_needs_byte_io(struct sfp *sfp, void *buf, size_t len) sfp_id_needs_byte_io() argument 2110 sfp_cotsworks_fixup_check(struct sfp *sfp, struct sfp_eeprom_id *id) sfp_cotsworks_fixup_check() argument 2146 sfp_module_parse_sff8472(struct sfp *sfp) sfp_module_parse_sff8472() argument 2158 sfp_sm_mod_probe(struct sfp *sfp, bool report) sfp_sm_mod_probe() argument 2348 sfp_sm_mod_remove(struct sfp *sfp) sfp_sm_mod_remove() argument 2364 sfp_sm_device(struct sfp *sfp, unsigned int event) sfp_sm_device() argument 2391 sfp_sm_module(struct sfp *sfp, unsigned int event) sfp_sm_module() argument 2508 sfp_sm_main(struct sfp *sfp, unsigned int event) sfp_sm_main() argument 2678 __sfp_sm_event(struct sfp *sfp, unsigned int event) __sfp_sm_event() argument 2696 sfp_sm_event(struct sfp *sfp, unsigned int event) sfp_sm_event() argument 2703 sfp_attach(struct sfp *sfp) sfp_attach() argument 2708 sfp_detach(struct sfp *sfp) sfp_detach() argument 2713 sfp_start(struct sfp *sfp) sfp_start() argument 2718 sfp_stop(struct sfp *sfp) sfp_stop() argument 2723 sfp_set_signal_rate(struct sfp *sfp, unsigned int rate_kbd) sfp_set_signal_rate() argument 2737 sfp_module_info(struct sfp *sfp, struct ethtool_modinfo *modinfo) sfp_module_info() argument 2752 sfp_module_eeprom(struct sfp *sfp, struct ethtool_eeprom *ee, u8 *data) sfp_module_eeprom() argument 2789 sfp_module_eeprom_by_page(struct sfp *sfp, const struct ethtool_module_eeprom *page, struct netlink_ext_ack *extack) sfp_module_eeprom_by_page() argument 2829 struct sfp *sfp = container_of(work, struct sfp, timeout.work); sfp_timeout() local 2836 sfp_check_state(struct sfp *sfp) sfp_check_state() argument 2876 struct sfp *sfp = data; sfp_irq() local 2885 struct sfp *sfp = container_of(work, struct sfp, poll.work); sfp_poll() local 2898 struct sfp *sfp; sfp_alloc() local 2919 struct sfp *sfp = data; sfp_cleanup() local 2934 sfp_i2c_get(struct sfp *sfp) sfp_i2c_get() argument 2964 struct sfp *sfp; sfp_probe() local 3086 struct sfp *sfp = platform_get_drvdata(pdev); sfp_remove() local 3100 struct sfp *sfp = platform_get_drvdata(pdev); sfp_shutdown() local [all...] |
H A D | sfp.h | 5 #include <linux/sfp.h> 7 struct sfp; 14 void (*fixup)(struct sfp *sfp); 18 void (*attach)(struct sfp *sfp); 19 void (*detach)(struct sfp *sfp); 20 void (*start)(struct sfp *sfp); [all...] |
H A D | sfp-bus.c | 11 #include "sfp.h" 14 * struct sfp_bus - internal representation of a sfp bus 24 struct sfp *sfp; member 37 * @bus: a pointer to the &struct sfp_bus structure for the sfp module 112 * @bus: a pointer to the &struct sfp_bus structure for the sfp module 139 * @bus: a pointer to the &struct sfp_bus structure for the sfp module 351 * @bus: a pointer to the &struct sfp_bus structure for the sfp module 405 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get() local 411 list_for_each_entry(sfp, in sfp_bus_get() 822 sfp_register_socket(struct device *dev, struct sfp *sfp, const struct sfp_socket_ops *ops) sfp_register_socket() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-sysfs.c | 286 static void pvr2_sysfs_add_control(struct pvr2_sysfs *sfp,int ctl_id) in pvr2_sysfs_add_control() argument 293 cptr = pvr2_hdw_get_ctrl_by_index(sfp->channel.hdw,ctl_id); in pvr2_sysfs_add_control() 303 cip->chptr = sfp; in pvr2_sysfs_add_control() 305 if (sfp->item_last) { in pvr2_sysfs_add_control() 306 sfp->item_last->item_next = cip; in pvr2_sysfs_add_control() 308 sfp->item_first = cip; in pvr2_sysfs_add_control() 310 sfp->item_last = cip; in pvr2_sysfs_add_control() 395 ret = sysfs_create_group(&sfp->class_dev->kobj,&cip->grp); in pvr2_sysfs_add_control() 413 static void pvr2_sysfs_add_debugifc(struct pvr2_sysfs *sfp) in pvr2_sysfs_add_debugifc() argument 429 sfp in pvr2_sysfs_add_debugifc() 449 pvr2_sysfs_tear_down_debugifc(struct pvr2_sysfs *sfp) pvr2_sysfs_tear_down_debugifc() argument 466 pvr2_sysfs_add_controls(struct pvr2_sysfs *sfp) pvr2_sysfs_add_controls() argument 476 pvr2_sysfs_tear_down_controls(struct pvr2_sysfs *sfp) pvr2_sysfs_tear_down_controls() argument 506 class_dev_destroy(struct pvr2_sysfs *sfp) class_dev_destroy() argument 551 struct pvr2_sysfs *sfp; v4l_minor_number_show() local 563 struct pvr2_sysfs *sfp; bus_info_show() local 574 struct pvr2_sysfs *sfp; hdw_name_show() local 585 struct pvr2_sysfs *sfp; hdw_desc_show() local 597 struct pvr2_sysfs *sfp; v4l_radio_minor_number_show() local 609 struct pvr2_sysfs *sfp; unit_number_show() local 617 class_dev_create(struct pvr2_sysfs *sfp, struct pvr2_sysfs_class *class_ptr) class_dev_create() argument 746 struct pvr2_sysfs *sfp; pvr2_sysfs_internal_check() local 759 struct pvr2_sysfs *sfp; pvr2_sysfs_create() local 804 struct pvr2_sysfs *sfp; debuginfo_show() local 815 struct pvr2_sysfs *sfp; debugcmd_show() local 826 struct pvr2_sysfs *sfp; debugcmd_store() local [all...] |
/kernel/linux/linux-6.6/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-sysfs.c | 282 static void pvr2_sysfs_add_control(struct pvr2_sysfs *sfp,int ctl_id) in pvr2_sysfs_add_control() argument 289 cptr = pvr2_hdw_get_ctrl_by_index(sfp->channel.hdw,ctl_id); in pvr2_sysfs_add_control() 299 cip->chptr = sfp; in pvr2_sysfs_add_control() 301 if (sfp->item_last) { in pvr2_sysfs_add_control() 302 sfp->item_last->item_next = cip; in pvr2_sysfs_add_control() 304 sfp->item_first = cip; in pvr2_sysfs_add_control() 306 sfp->item_last = cip; in pvr2_sysfs_add_control() 391 ret = sysfs_create_group(&sfp->class_dev->kobj,&cip->grp); in pvr2_sysfs_add_control() 409 static void pvr2_sysfs_add_debugifc(struct pvr2_sysfs *sfp) in pvr2_sysfs_add_debugifc() argument 425 sfp in pvr2_sysfs_add_debugifc() 445 pvr2_sysfs_tear_down_debugifc(struct pvr2_sysfs *sfp) pvr2_sysfs_tear_down_debugifc() argument 462 pvr2_sysfs_add_controls(struct pvr2_sysfs *sfp) pvr2_sysfs_add_controls() argument 472 pvr2_sysfs_tear_down_controls(struct pvr2_sysfs *sfp) pvr2_sysfs_tear_down_controls() argument 499 class_dev_destroy(struct pvr2_sysfs *sfp) class_dev_destroy() argument 544 struct pvr2_sysfs *sfp; v4l_minor_number_show() local 556 struct pvr2_sysfs *sfp; bus_info_show() local 567 struct pvr2_sysfs *sfp; hdw_name_show() local 578 struct pvr2_sysfs *sfp; hdw_desc_show() local 590 struct pvr2_sysfs *sfp; v4l_radio_minor_number_show() local 602 struct pvr2_sysfs *sfp; unit_number_show() local 610 class_dev_create(struct pvr2_sysfs *sfp) class_dev_create() argument 738 struct pvr2_sysfs *sfp; pvr2_sysfs_internal_check() local 750 struct pvr2_sysfs *sfp; pvr2_sysfs_create() local 779 struct pvr2_sysfs *sfp; debuginfo_show() local 790 struct pvr2_sysfs *sfp; debugcmd_show() local 801 struct pvr2_sysfs *sfp; debugcmd_store() local [all...] |
/kernel/linux/linux-6.6/drivers/pinctrl/starfive/ |
H A D | pinctrl-starfive-jh7110.c | 99 struct jh7110_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); in jh7110_pin_dbg_show() local 100 const struct jh7110_pinctrl_soc_info *info = sfp->info; in jh7110_pin_dbg_show() 104 if (pin < sfp->gc.ngpio) { in jh7110_pin_dbg_show() 107 u32 dout = readl_relaxed(sfp->base + info->dout_reg_base + offset); in jh7110_pin_dbg_show() 108 u32 doen = readl_relaxed(sfp->base + info->doen_reg_base + offset); in jh7110_pin_dbg_show() 109 u32 gpi = readl_relaxed(sfp->base + info->gpi_reg_base + offset); in jh7110_pin_dbg_show() 127 struct jh7110_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); in jh7110_dt_node_to_map() local 128 struct device *dev = sfp->gc.parent; in jh7110_dt_node_to_map() 152 mutex_lock(&sfp->mutex); in jh7110_dt_node_to_map() 230 mutex_unlock(&sfp in jh7110_dt_node_to_map() 253 jh7110_set_gpiomux(struct jh7110_pinctrl *sfp, unsigned int pin, unsigned int din, u32 dout, u32 doen) jh7110_set_gpiomux() argument 299 struct jh7110_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); jh7110_set_mux() local 351 jh7110_padcfg_rmw(struct jh7110_pinctrl *sfp, unsigned int pin, u32 mask, u32 value) jh7110_padcfg_rmw() argument 378 struct jh7110_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); jh7110_pinconf_get() local 448 struct jh7110_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); jh7110_pinconf_group_set() local 521 struct jh7110_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); jh7110_pinconf_dbg_show() local 561 struct jh7110_pinctrl *sfp = container_of(gc, jh7110_gpio_get_direction() local 577 struct jh7110_pinctrl *sfp = container_of(gc, jh7110_gpio_direction_input() local 596 struct jh7110_pinctrl *sfp = container_of(gc, jh7110_gpio_direction_output() local 614 struct jh7110_pinctrl *sfp = container_of(gc, jh7110_gpio_get() local 626 struct jh7110_pinctrl *sfp = container_of(gc, jh7110_gpio_set() local 645 struct jh7110_pinctrl *sfp = container_of(gc, jh7110_gpio_set_config() local 688 struct jh7110_pinctrl *sfp = container_of(gc, jh7110_gpio_add_pin_ranges() local 702 struct jh7110_pinctrl *sfp = jh7110_from_irq_data(d); jh7110_irq_ack() local 720 struct jh7110_pinctrl *sfp = jh7110_from_irq_data(d); jh7110_irq_mask() local 739 struct jh7110_pinctrl *sfp = jh7110_from_irq_data(d); jh7110_irq_mask_ack() local 762 struct jh7110_pinctrl *sfp = jh7110_from_irq_data(d); jh7110_irq_unmask() local 781 struct jh7110_pinctrl *sfp = jh7110_from_irq_data(d); jh7110_irq_set_type() local 856 struct jh7110_pinctrl *sfp; jh7110_pinctrl_probe() local 985 struct jh7110_pinctrl *sfp = dev_get_drvdata(dev); jh7110_pinctrl_suspend() local 999 struct jh7110_pinctrl *sfp = dev_get_drvdata(dev); jh7110_pinctrl_resume() local [all...] |
H A D | pinctrl-starfive-jh7100.c | 151 * sfp->gpio.pin_base = PAD_INVALID_GPIO then 152 * starfive_pin_to_gpio(sfp, validpin) is never a valid GPIO number. 216 static inline unsigned int starfive_pin_to_gpio(const struct starfive_pinctrl *sfp, in starfive_pin_to_gpio() argument 219 return pin - sfp->gpios.pin_base; in starfive_pin_to_gpio() 222 static inline unsigned int starfive_gpio_to_pin(const struct starfive_pinctrl *sfp, in starfive_gpio_to_pin() argument 225 return sfp->gpios.pin_base + gpio; in starfive_gpio_to_pin() 456 struct starfive_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); in starfive_pin_dbg_show() local 457 unsigned int gpio = starfive_pin_to_gpio(sfp, pin); in starfive_pin_dbg_show() 464 reg = sfp->base + GPON_DOUT_CFG + 8 * gpio; in starfive_pin_dbg_show() 481 struct starfive_pinctrl *sfp in starfive_dt_node_to_map() local 646 struct starfive_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); starfive_set_mux() local 697 starfive_padctl_get(struct starfive_pinctrl *sfp, unsigned int pin) starfive_padctl_get() argument 706 starfive_padctl_rmw(struct starfive_pinctrl *sfp, unsigned int pin, u16 _mask, u16 _value) starfive_padctl_rmw() argument 744 struct starfive_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); starfive_pinconf_get() local 808 struct starfive_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); starfive_pinconf_group_set() local 889 struct starfive_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); starfive_pinconf_dbg_show() local 931 struct starfive_pinctrl *sfp = container_of(gc, struct starfive_pinctrl, gc); starfive_gpio_get_direction() local 943 struct starfive_pinctrl *sfp = container_of(gc, struct starfive_pinctrl, gc); starfive_gpio_direction_input() local 961 struct starfive_pinctrl *sfp = container_of(gc, struct starfive_pinctrl, gc); starfive_gpio_direction_output() local 981 struct starfive_pinctrl *sfp = container_of(gc, struct starfive_pinctrl, gc); starfive_gpio_get() local 990 struct starfive_pinctrl *sfp = container_of(gc, struct starfive_pinctrl, gc); starfive_gpio_set() local 1002 struct starfive_pinctrl *sfp = container_of(gc, struct starfive_pinctrl, gc); starfive_gpio_set_config() local 1044 struct starfive_pinctrl *sfp = container_of(gc, struct starfive_pinctrl, gc); starfive_gpio_add_pin_ranges() local 1060 struct starfive_pinctrl *sfp = starfive_from_irq_data(d); starfive_irq_ack() local 1073 struct starfive_pinctrl *sfp = starfive_from_irq_data(d); starfive_irq_mask() local 1090 struct starfive_pinctrl *sfp = starfive_from_irq_data(d); starfive_irq_mask_ack() local 1107 struct starfive_pinctrl *sfp = starfive_from_irq_data(d); starfive_irq_unmask() local 1124 struct starfive_pinctrl *sfp = starfive_from_irq_data(d); starfive_irq_set_type() local 1190 struct starfive_pinctrl *sfp = starfive_from_irq_desc(desc); starfive_gpio_irq_handler() local 1210 struct starfive_pinctrl *sfp = container_of(gc, struct starfive_pinctrl, gc); starfive_gpio_init_hw() local 1231 struct starfive_pinctrl *sfp; starfive_probe() local [all...] |
H A D | pinctrl-starfive-jh7110-sys.c | 290 static void jh7110_set_function(struct jh7110_pinctrl *sfp, in jh7110_set_function() argument 304 reg = sfp->base + fs->offset; in jh7110_set_function() 308 raw_spin_lock_irqsave(&sfp->lock, flags); in jh7110_set_function() 311 raw_spin_unlock_irqrestore(&sfp->lock, flags); in jh7110_set_function() 314 static void jh7110_set_vin_group(struct jh7110_pinctrl *sfp, in jh7110_set_vin_group() argument 326 reg = sfp->base + gs->offset; in jh7110_set_vin_group() 330 raw_spin_lock_irqsave(&sfp->lock, flags); in jh7110_set_vin_group() 333 raw_spin_unlock_irqrestore(&sfp->lock, flags); in jh7110_set_vin_group() 336 static int jh7110_sys_set_one_pin_mux(struct jh7110_pinctrl *sfp, in jh7110_sys_set_one_pin_mux() argument 341 if (pin < sfp in jh7110_sys_set_one_pin_mux() 352 jh7110_sys_get_padcfg_base(struct jh7110_pinctrl *sfp, unsigned int pin) jh7110_sys_get_padcfg_base() argument 365 struct jh7110_pinctrl *sfp = jh7110_from_irq_desc(desc); jh7110_sys_irq_handler() local 385 struct jh7110_pinctrl *sfp = container_of(gc, jh7110_sys_init_hw() local [all...] |
H A D | pinctrl-starfive-jh7110-aon.c | 76 static int jh7110_aon_set_one_pin_mux(struct jh7110_pinctrl *sfp, in jh7110_aon_set_one_pin_mux() argument 81 if (pin < sfp->gc.ngpio && func == 0) in jh7110_aon_set_one_pin_mux() 82 jh7110_set_gpiomux(sfp, pin, din, dout, doen); in jh7110_aon_set_one_pin_mux() 87 static int jh7110_aon_get_padcfg_base(struct jh7110_pinctrl *sfp, in jh7110_aon_get_padcfg_base() argument 98 struct jh7110_pinctrl *sfp = jh7110_from_irq_desc(desc); in jh7110_aon_irq_handler() local 105 mis = readl_relaxed(sfp->base + JH7110_AON_GPIOMIS); in jh7110_aon_irq_handler() 107 generic_handle_domain_irq(sfp->gc.irq.domain, pin); in jh7110_aon_irq_handler() 114 struct jh7110_pinctrl *sfp = container_of(gc, in jh7110_aon_init_hw() local 118 writel_relaxed(0, sfp->base + JH7110_AON_GPIOIE); in jh7110_aon_init_hw() 120 writel_relaxed(0, sfp in jh7110_aon_init_hw() [all...] |
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | sg.c | 178 static int sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size); 179 static ssize_t sg_new_read(Sg_fd * sfp, char __user *buf, size_t count, 181 static ssize_t sg_new_write(Sg_fd *sfp, struct file *file, 184 static int sg_common_write(Sg_fd * sfp, Sg_request * srp, 187 static void sg_remove_scat(Sg_fd * sfp, Sg_scatter_hold * schp); 188 static void sg_build_reserve(Sg_fd * sfp, int req_size); 189 static void sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size); 190 static void sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp); 193 static Sg_request *sg_get_rq_mark(Sg_fd * sfp, int pack_id, bool *busy); 194 static Sg_request *sg_add_request(Sg_fd * sfp); 237 struct sg_fd *sfp = filp->private_data; sg_allow_access() local 289 Sg_fd *sfp; sg_open() local 385 Sg_fd *sfp; sg_release() local 444 Sg_fd *sfp; sg_read() local 556 sg_new_read(Sg_fd * sfp, char __user *buf, size_t count, Sg_request * srp) sg_new_read() argument 602 Sg_fd *sfp; sg_write() local 709 sg_new_write(Sg_fd *sfp, struct file *file, const char __user *buf, size_t count, int blocking, int read_only, int sg_io_owned, Sg_request **o_srp) sg_new_write() argument 776 sg_common_write(Sg_fd * sfp, Sg_request * srp, unsigned char *cmnd, int timeout, int blocking) sg_common_write() argument 834 srp_done(Sg_fd *sfp, Sg_request *srp) srp_done() argument 855 sg_fill_request_table(Sg_fd *sfp, sg_req_info_t *rinfo) sg_fill_request_table() argument 915 sg_ioctl_common(struct file *filp, Sg_device *sdp, Sg_fd *sfp, unsigned int cmd_in, void __user *p) sg_ioctl_common() argument 1152 Sg_fd *sfp; sg_ioctl() local 1170 Sg_fd *sfp; sg_compat_ioctl() local 1189 Sg_fd *sfp; sg_poll() local 1226 Sg_fd *sfp; sg_fasync() local 1240 Sg_fd *sfp; sg_vma_fault() local 1280 Sg_fd *sfp; sg_mmap() local 1322 struct sg_fd *sfp = srp->parentfp; sg_rq_end_io_usercontext() local 1339 Sg_fd *sfp; sg_rq_end_io() local 1619 Sg_fd *sfp; sg_remove_device() local 1721 Sg_fd *sfp = srp->parentfp; sg_start_req() local 1850 Sg_fd *sfp = srp->parentfp; sg_finish_rem_req() local 1873 sg_build_sgat(Sg_scatter_hold * schp, const Sg_fd * sfp, int tablesize) sg_build_sgat() argument 1886 sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size) sg_build_indirect() argument 1968 sg_remove_scat(Sg_fd * sfp, Sg_scatter_hold * schp) sg_remove_scat() argument 2024 sg_build_reserve(Sg_fd * sfp, int req_size) sg_build_reserve() argument 2042 sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size) sg_link_reserve() argument 2073 sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp) sg_unlink_reserve() argument 2091 sg_get_rq_mark(Sg_fd * sfp, int pack_id, bool *busy) sg_get_rq_mark() argument 2121 sg_add_request(Sg_fd * sfp) sg_add_request() argument 2152 sg_remove_request(Sg_fd * sfp, Sg_request * srp) sg_remove_request() argument 2181 Sg_fd *sfp; sg_add_sfp() local 2229 struct sg_fd *sfp = container_of(work, struct sg_fd, ew.work); sg_remove_sfp_usercontext() local 2264 struct sg_fd *sfp = container_of(kref, struct sg_fd, f_ref); sg_remove_sfp() local [all...] |
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | sg.c | 183 static int sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size); 184 static ssize_t sg_new_read(Sg_fd * sfp, char __user *buf, size_t count, 186 static ssize_t sg_new_write(Sg_fd *sfp, struct file *file, 189 static int sg_common_write(Sg_fd * sfp, Sg_request * srp, 192 static void sg_remove_scat(Sg_fd * sfp, Sg_scatter_hold * schp); 193 static void sg_build_reserve(Sg_fd * sfp, int req_size); 194 static void sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size); 195 static void sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp); 198 static Sg_request *sg_get_rq_mark(Sg_fd * sfp, int pack_id, bool *busy); 199 static Sg_request *sg_add_request(Sg_fd * sfp); 236 struct sg_fd *sfp = filp->private_data; sg_allow_access() local 289 Sg_fd *sfp; sg_open() local 385 Sg_fd *sfp; sg_release() local 444 Sg_fd *sfp; sg_read() local 558 sg_new_read(Sg_fd * sfp, char __user *buf, size_t count, Sg_request * srp) sg_new_read() argument 605 Sg_fd *sfp; sg_write() local 712 sg_new_write(Sg_fd *sfp, struct file *file, const char __user *buf, size_t count, int blocking, int read_only, int sg_io_owned, Sg_request **o_srp) sg_new_write() argument 779 sg_common_write(Sg_fd * sfp, Sg_request * srp, unsigned char *cmnd, int timeout, int blocking) sg_common_write() argument 836 srp_done(Sg_fd *sfp, Sg_request *srp) srp_done() argument 857 sg_fill_request_table(Sg_fd *sfp, sg_req_info_t *rinfo) sg_fill_request_table() argument 917 sg_ioctl_common(struct file *filp, Sg_device *sdp, Sg_fd *sfp, unsigned int cmd_in, void __user *p) sg_ioctl_common() argument 1154 Sg_fd *sfp; sg_ioctl() local 1171 Sg_fd *sfp; sg_poll() local 1208 Sg_fd *sfp; sg_fasync() local 1222 Sg_fd *sfp; sg_vma_fault() local 1262 Sg_fd *sfp; sg_mmap() local 1304 struct sg_fd *sfp = srp->parentfp; sg_rq_end_io_usercontext() local 1321 Sg_fd *sfp; sg_rq_end_io() local 1597 Sg_fd *sfp; sg_remove_device() local 1731 Sg_fd *sfp = srp->parentfp; sg_start_req() local 1836 Sg_fd *sfp = srp->parentfp; sg_finish_rem_req() local 1857 sg_build_sgat(Sg_scatter_hold * schp, const Sg_fd * sfp, int tablesize) sg_build_sgat() argument 1870 sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size) sg_build_indirect() argument 1948 sg_remove_scat(Sg_fd * sfp, Sg_scatter_hold * schp) sg_remove_scat() argument 2004 sg_build_reserve(Sg_fd * sfp, int req_size) sg_build_reserve() argument 2022 sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size) sg_link_reserve() argument 2053 sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp) sg_unlink_reserve() argument 2071 sg_get_rq_mark(Sg_fd * sfp, int pack_id, bool *busy) sg_get_rq_mark() argument 2101 sg_add_request(Sg_fd * sfp) sg_add_request() argument 2132 sg_remove_request(Sg_fd * sfp, Sg_request * srp) sg_remove_request() argument 2161 Sg_fd *sfp; sg_add_sfp() local 2209 struct sg_fd *sfp = container_of(work, struct sg_fd, ew.work); sg_remove_sfp_usercontext() local 2244 struct sg_fd *sfp = container_of(kref, struct sg_fd, f_ref); sg_remove_sfp() local [all...] |
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_dir2_sf.c | 268 struct xfs_dir2_sf_hdr *sfp; /* shortform directory header */ in xfs_dir2_block_to_sf() local 279 sfp = kmem_alloc(mp->m_sb.sb_inodesize, 0); in xfs_dir2_block_to_sf() 280 memcpy(sfp, sfhp, xfs_dir2_sf_hdr_size(sfhp->i8count)); in xfs_dir2_block_to_sf() 287 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_block_to_sf() 311 xfs_dir2_sf_get_parent_ino(sfp)); in xfs_dir2_block_to_sf() 319 xfs_dir2_sf_put_ino(mp, sfp, sfep, in xfs_dir2_block_to_sf() 324 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep); in xfs_dir2_block_to_sf() 328 ASSERT((char *)sfep - (char *)sfp == size); in xfs_dir2_block_to_sf() 345 xfs_init_local_fork(dp, XFS_DATA_FORK, sfp, size); in xfs_dir2_block_to_sf() 353 kmem_free(sfp); in xfs_dir2_block_to_sf() 374 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ xfs_dir2_sf_addname() local 466 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ xfs_dir2_sf_addname_easy() local 526 xfs_dir2_sf_hdr_t *sfp; /* new shortform dir */ xfs_dir2_sf_addname_hard() local 613 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ xfs_dir2_sf_addname_pick() local 681 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ xfs_dir2_sf_check() local 714 struct xfs_dir2_sf_hdr *sfp; xfs_dir2_sf_verify() local 816 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ xfs_dir2_sf_create() local 872 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ xfs_dir2_sf_lookup() local 953 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ xfs_dir2_sf_removename() local 1027 struct xfs_dir2_sf_hdr *sfp; xfs_dir2_sf_replace_needblock() local 1052 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ xfs_dir2_sf_replace() local 1171 xfs_dir2_sf_hdr_t *sfp; /* new sf directory */ xfs_dir2_sf_toino4() local 1244 xfs_dir2_sf_hdr_t *sfp; /* new sf directory */ xfs_dir2_sf_toino8() local [all...] |
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_dir2_sf.c | 268 struct xfs_dir2_sf_hdr *sfp; /* shortform directory header */ in xfs_dir2_block_to_sf() local 279 sfp = kmem_alloc(mp->m_sb.sb_inodesize, 0); in xfs_dir2_block_to_sf() 280 memcpy(sfp, sfhp, xfs_dir2_sf_hdr_size(sfhp->i8count)); in xfs_dir2_block_to_sf() 287 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_block_to_sf() 311 xfs_dir2_sf_get_parent_ino(sfp)); in xfs_dir2_block_to_sf() 319 xfs_dir2_sf_put_ino(mp, sfp, sfep, in xfs_dir2_block_to_sf() 324 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep); in xfs_dir2_block_to_sf() 328 ASSERT((char *)sfep - (char *)sfp == size); in xfs_dir2_block_to_sf() 345 xfs_init_local_fork(dp, XFS_DATA_FORK, sfp, size); in xfs_dir2_block_to_sf() 353 kmem_free(sfp); in xfs_dir2_block_to_sf() 374 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ xfs_dir2_sf_addname() local 466 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ xfs_dir2_sf_addname_easy() local 526 xfs_dir2_sf_hdr_t *sfp; /* new shortform dir */ xfs_dir2_sf_addname_hard() local 613 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ xfs_dir2_sf_addname_pick() local 681 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ xfs_dir2_sf_check() local 714 struct xfs_dir2_sf_hdr *sfp; xfs_dir2_sf_verify() local 816 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ xfs_dir2_sf_create() local 869 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ xfs_dir2_sf_lookup() local 949 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ xfs_dir2_sf_removename() local 1023 struct xfs_dir2_sf_hdr *sfp; xfs_dir2_sf_replace_needblock() local 1048 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ xfs_dir2_sf_replace() local 1167 xfs_dir2_sf_hdr_t *sfp; /* new sf directory */ xfs_dir2_sf_toino4() local 1240 xfs_dir2_sf_hdr_t *sfp; /* new sf directory */ xfs_dir2_sf_toino8() local [all...] |
/kernel/linux/linux-5.10/net/hsr/ |
H A D | hsr_debugfs.c | 27 hsr_node_table_show(struct seq_file *sfp, void *data) in hsr_node_table_show() argument 29 struct hsr_priv *priv = (struct hsr_priv *)sfp->private; in hsr_node_table_show() 32 seq_printf(sfp, "Node Table entries for (%s) device\n", in hsr_node_table_show() 34 seq_puts(sfp, "MAC-Address-A, MAC-Address-B, time_in[A], "); in hsr_node_table_show() 35 seq_puts(sfp, "time_in[B], Address-B port, "); in hsr_node_table_show() 37 seq_puts(sfp, "SAN-A, SAN-B, DAN-P\n"); in hsr_node_table_show() 39 seq_puts(sfp, "DAN-H\n"); in hsr_node_table_show() 46 seq_printf(sfp, "%pM ", &node->macaddress_A[0]); in hsr_node_table_show() 47 seq_printf(sfp, "%pM ", &node->macaddress_B[0]); in hsr_node_table_show() 48 seq_printf(sfp, " in hsr_node_table_show() [all...] |
/kernel/linux/linux-6.6/net/hsr/ |
H A D | hsr_debugfs.c | 19 hsr_node_table_show(struct seq_file *sfp, void *data) in hsr_node_table_show() argument 21 struct hsr_priv *priv = (struct hsr_priv *)sfp->private; in hsr_node_table_show() 24 seq_printf(sfp, "Node Table entries for (%s) device\n", in hsr_node_table_show() 26 seq_puts(sfp, "MAC-Address-A, MAC-Address-B, time_in[A], "); in hsr_node_table_show() 27 seq_puts(sfp, "time_in[B], Address-B port, "); in hsr_node_table_show() 29 seq_puts(sfp, "SAN-A, SAN-B, DAN-P\n"); in hsr_node_table_show() 31 seq_puts(sfp, "DAN-H\n"); in hsr_node_table_show() 38 seq_printf(sfp, "%pM ", &node->macaddress_A[0]); in hsr_node_table_show() 39 seq_printf(sfp, "%pM ", &node->macaddress_B[0]); in hsr_node_table_show() 40 seq_printf(sfp, " in hsr_node_table_show() [all...] |
/kernel/linux/linux-5.10/drivers/scsi/snic/ |
H A D | snic_debugfs.c | 179 snic_stats_show(struct seq_file *sfp, void *data) in snic_stats_show() argument 181 struct snic *snic = (struct snic *) sfp->private; in snic_stats_show() 188 seq_printf(sfp, in snic_stats_show() 194 seq_printf(sfp, in snic_stats_show() 225 seq_puts(sfp, "\nSGL Counters\n"); in snic_stats_show() 228 seq_printf(sfp, in snic_stats_show() 233 seq_puts(sfp, "\n"); in snic_stats_show() 237 seq_printf(sfp, in snic_stats_show() 242 seq_printf(sfp, in snic_stats_show() 257 seq_printf(sfp, in snic_stats_show() 414 snic_trc_seq_start(struct seq_file *sfp, loff_t *pos) snic_trc_seq_start() argument 420 snic_trc_seq_next(struct seq_file *sfp, void *data, loff_t *pos) snic_trc_seq_next() argument 426 snic_trc_seq_stop(struct seq_file *sfp, void *data) snic_trc_seq_stop() argument 432 snic_trc_seq_show(struct seq_file *sfp, void *data) snic_trc_seq_show() argument [all...] |
/kernel/linux/linux-6.6/drivers/scsi/snic/ |
H A D | snic_debugfs.c | 165 snic_stats_show(struct seq_file *sfp, void *data) in snic_stats_show() argument 167 struct snic *snic = (struct snic *) sfp->private; in snic_stats_show() 174 seq_printf(sfp, in snic_stats_show() 180 seq_printf(sfp, in snic_stats_show() 211 seq_puts(sfp, "\nSGL Counters\n"); in snic_stats_show() 214 seq_printf(sfp, in snic_stats_show() 219 seq_puts(sfp, "\n"); in snic_stats_show() 223 seq_printf(sfp, in snic_stats_show() 228 seq_printf(sfp, in snic_stats_show() 243 seq_printf(sfp, in snic_stats_show() 382 snic_trc_seq_start(struct seq_file *sfp, loff_t *pos) snic_trc_seq_start() argument 388 snic_trc_seq_next(struct seq_file *sfp, void *data, loff_t *pos) snic_trc_seq_next() argument 394 snic_trc_seq_stop(struct seq_file *sfp, void *data) snic_trc_seq_stop() argument 400 snic_trc_seq_show(struct seq_file *sfp, void *data) snic_trc_seq_show() argument [all...] |
/kernel/linux/linux-5.10/fs/freevxfs/ |
H A D | vxfs_fshead.c | 111 struct vxfs_fsh *pfp, *sfp; in vxfs_read_fshead() local 132 sfp = vxfs_getfsh(infp->vsi_fship, 0); in vxfs_read_fshead() 133 if (!sfp) { in vxfs_read_fshead() 139 vxfs_dumpfsh(sfp); in vxfs_read_fshead() 153 fs32_to_cpu(infp, sfp->fsh_ilistino[0])); in vxfs_read_fshead() 176 kfree(sfp); in vxfs_read_fshead() 186 kfree(sfp); in vxfs_read_fshead()
|
/kernel/linux/linux-6.6/fs/freevxfs/ |
H A D | vxfs_fshead.c | 87 struct vxfs_fsh *pfp, *sfp; in vxfs_read_fshead() local 108 sfp = vxfs_getfsh(infp->vsi_fship, 0); in vxfs_read_fshead() 109 if (!sfp) { in vxfs_read_fshead() 115 vxfs_dumpfsh(sfp); in vxfs_read_fshead() 129 fs32_to_cpu(infp, sfp->fsh_ilistino[0])); in vxfs_read_fshead() 152 kfree(sfp); in vxfs_read_fshead() 162 kfree(sfp); in vxfs_read_fshead()
|
/kernel/linux/linux-5.10/drivers/scsi/bfa/ |
H A D | bfa_ioc.c | 3630 static void bfa_sfp_getdata_send(struct bfa_sfp_s *sfp); 3631 static void bfa_sfp_media_get(struct bfa_sfp_s *sfp); 3632 static bfa_status_t bfa_sfp_speed_valid(struct bfa_sfp_s *sfp, 3636 bfa_cb_sfp_show(struct bfa_sfp_s *sfp) in bfa_cb_sfp_show() argument 3638 bfa_trc(sfp, sfp->lock); in bfa_cb_sfp_show() 3639 if (sfp->cbfn) in bfa_cb_sfp_show() 3640 sfp->cbfn(sfp->cbarg, sfp in bfa_cb_sfp_show() 3646 bfa_cb_sfp_state_query(struct bfa_sfp_s *sfp) bfa_cb_sfp_state_query() argument 3675 struct bfa_sfp_s *sfp = sfp_arg; bfa_sfp_notify() local 3704 bfa_sfp_scn_aen_post(struct bfa_sfp_s *sfp, struct bfi_sfp_scn_s *rsp) bfa_sfp_scn_aen_post() argument 3752 bfa_sfp_getdata_send(struct bfa_sfp_s *sfp) bfa_sfp_getdata_send() argument 3770 bfa_sfp_getdata(struct bfa_sfp_s *sfp, enum bfi_sfp_mem_e memtype) bfa_sfp_getdata() argument 3791 bfa_sfp_scn(struct bfa_sfp_s *sfp, struct bfi_mbmsg_s *msg) bfa_sfp_scn() argument 3835 bfa_sfp_show_comp(struct bfa_sfp_s *sfp, struct bfi_mbmsg_s *msg) bfa_sfp_show_comp() argument 3889 bfa_sfp_state_query(struct bfa_sfp_s *sfp) bfa_sfp_state_query() argument 3906 bfa_sfp_media_get(struct bfa_sfp_s *sfp) bfa_sfp_media_get() argument 3952 bfa_sfp_speed_valid(struct bfa_sfp_s *sfp, enum bfa_port_speed portspeed) bfa_sfp_speed_valid() argument 3987 struct bfa_sfp_s *sfp = sfparg; bfa_sfp_intr() local 4017 bfa_sfp_attach(struct bfa_sfp_s *sfp, struct bfa_ioc_s *ioc, void *dev, struct bfa_trc_mod_s *trcmod) bfa_sfp_attach() argument 4047 bfa_sfp_memclaim(struct bfa_sfp_s *sfp, u8 *dm_kva, u64 dm_pa) bfa_sfp_memclaim() argument 4066 bfa_sfp_show(struct bfa_sfp_s *sfp, struct sfp_mem_s *sfpmem, bfa_cb_sfp_t cbfn, void *cbarg) bfa_sfp_show() argument 4097 bfa_sfp_media(struct bfa_sfp_s *sfp, enum bfa_defs_sfp_media_e *media, bfa_cb_sfp_t cbfn, void *cbarg) bfa_sfp_media() argument 4130 bfa_sfp_speed(struct bfa_sfp_s *sfp, enum bfa_port_speed portspeed, bfa_cb_sfp_t cbfn, void *cbarg) bfa_sfp_speed() argument [all...] |
/kernel/linux/linux-6.6/drivers/scsi/bfa/ |
H A D | bfa_ioc.c | 3631 static void bfa_sfp_getdata_send(struct bfa_sfp_s *sfp); 3632 static void bfa_sfp_media_get(struct bfa_sfp_s *sfp); 3633 static bfa_status_t bfa_sfp_speed_valid(struct bfa_sfp_s *sfp, 3637 bfa_cb_sfp_show(struct bfa_sfp_s *sfp) in bfa_cb_sfp_show() argument 3639 bfa_trc(sfp, sfp->lock); in bfa_cb_sfp_show() 3640 if (sfp->cbfn) in bfa_cb_sfp_show() 3641 sfp->cbfn(sfp->cbarg, sfp in bfa_cb_sfp_show() 3647 bfa_cb_sfp_state_query(struct bfa_sfp_s *sfp) bfa_cb_sfp_state_query() argument 3676 struct bfa_sfp_s *sfp = sfp_arg; bfa_sfp_notify() local 3705 bfa_sfp_scn_aen_post(struct bfa_sfp_s *sfp, struct bfi_sfp_scn_s *rsp) bfa_sfp_scn_aen_post() argument 3753 bfa_sfp_getdata_send(struct bfa_sfp_s *sfp) bfa_sfp_getdata_send() argument 3771 bfa_sfp_getdata(struct bfa_sfp_s *sfp, enum bfi_sfp_mem_e memtype) bfa_sfp_getdata() argument 3792 bfa_sfp_scn(struct bfa_sfp_s *sfp, struct bfi_mbmsg_s *msg) bfa_sfp_scn() argument 3836 bfa_sfp_show_comp(struct bfa_sfp_s *sfp, struct bfi_mbmsg_s *msg) bfa_sfp_show_comp() argument 3890 bfa_sfp_state_query(struct bfa_sfp_s *sfp) bfa_sfp_state_query() argument 3907 bfa_sfp_media_get(struct bfa_sfp_s *sfp) bfa_sfp_media_get() argument 3953 bfa_sfp_speed_valid(struct bfa_sfp_s *sfp, enum bfa_port_speed portspeed) bfa_sfp_speed_valid() argument 3988 struct bfa_sfp_s *sfp = sfparg; bfa_sfp_intr() local 4018 bfa_sfp_attach(struct bfa_sfp_s *sfp, struct bfa_ioc_s *ioc, void *dev, struct bfa_trc_mod_s *trcmod) bfa_sfp_attach() argument 4048 bfa_sfp_memclaim(struct bfa_sfp_s *sfp, u8 *dm_kva, u64 dm_pa) bfa_sfp_memclaim() argument 4067 bfa_sfp_show(struct bfa_sfp_s *sfp, struct sfp_mem_s *sfpmem, bfa_cb_sfp_t cbfn, void *cbarg) bfa_sfp_show() argument 4098 bfa_sfp_media(struct bfa_sfp_s *sfp, enum bfa_defs_sfp_media_e *media, bfa_cb_sfp_t cbfn, void *cbarg) bfa_sfp_media() argument 4131 bfa_sfp_speed(struct bfa_sfp_s *sfp, enum bfa_port_speed portspeed, bfa_cb_sfp_t cbfn, void *cbarg) bfa_sfp_speed() argument [all...] |