/Linux-v4.19/drivers/net/phy/ |
D | sfp.c | 171 struct sfp { struct 180 unsigned int (*get_state)(struct sfp *); argument 181 void (*set_state)(struct sfp *, unsigned int); argument 182 int (*read)(struct sfp *, bool, u8, void *, size_t); argument 183 int (*write)(struct sfp *, bool, u8, void *, size_t); argument 237 static unsigned int sfp_gpio_get_state(struct sfp *sfp) in sfp_gpio_get_state() argument 242 if (gpio_flags[i] != GPIOD_IN || !sfp->gpio[i]) in sfp_gpio_get_state() 245 v = gpiod_get_value_cansleep(sfp->gpio[i]); in sfp_gpio_get_state() 253 static unsigned int sff_gpio_get_state(struct sfp *sfp) in sff_gpio_get_state() argument 255 return sfp_gpio_get_state(sfp) | SFP_F_PRESENT; in sff_gpio_get_state() [all …]
|
D | sfp.h | 7 struct sfp; 10 void (*start)(struct sfp *sfp); 11 void (*stop)(struct sfp *sfp); 12 int (*module_info)(struct sfp *sfp, struct ethtool_modinfo *modinfo); 13 int (*module_eeprom)(struct sfp *sfp, struct ethtool_eeprom *ee, 24 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp,
|
D | sfp-bus.c | 22 struct sfp *sfp; member 293 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get() local 299 list_for_each_entry(sfp, &sfp_buses, node) { in sfp_bus_get() 300 if (sfp->fwnode == fwnode) { in sfp_bus_get() 301 kref_get(&sfp->kref); in sfp_bus_get() 302 found = sfp; in sfp_bus_get() 351 bus->socket_ops->start(bus->sfp); in sfp_register_bus() 364 bus->socket_ops->stop(bus->sfp); in sfp_unregister_bus() 383 return bus->socket_ops->module_info(bus->sfp, modinfo); in sfp_get_module_info() 401 return bus->socket_ops->module_eeprom(bus->sfp, ee, data); in sfp_get_module_eeprom() [all …]
|
D | Makefile | 43 obj-$(CONFIG_SFP) += sfp.o 44 sfp-obj-$(CONFIG_SFP) += sfp-bus.o 45 obj-y += $(sfp-obj-y) $(sfp-obj-m)
|
/Linux-v4.19/drivers/media/usb/pvrusb2/ |
D | pvrusb2-sysfs.c | 296 static void pvr2_sysfs_add_control(struct pvr2_sysfs *sfp,int ctl_id) in pvr2_sysfs_add_control() argument 303 cptr = pvr2_hdw_get_ctrl_by_index(sfp->channel.hdw,ctl_id); in pvr2_sysfs_add_control() 313 cip->chptr = sfp; in pvr2_sysfs_add_control() 315 if (sfp->item_last) { in pvr2_sysfs_add_control() 316 sfp->item_last->item_next = cip; in pvr2_sysfs_add_control() 318 sfp->item_first = cip; in pvr2_sysfs_add_control() 320 sfp->item_last = cip; in pvr2_sysfs_add_control() 405 ret = sysfs_create_group(&sfp->class_dev->kobj,&cip->grp); in pvr2_sysfs_add_control() 423 static void pvr2_sysfs_add_debugifc(struct pvr2_sysfs *sfp) in pvr2_sysfs_add_debugifc() argument 439 sfp->debugifc = dip; in pvr2_sysfs_add_debugifc() [all …]
|
/Linux-v4.19/fs/xfs/libxfs/ |
D | xfs_dir2_sf.c | 156 xfs_dir2_sf_hdr_t *sfp; /* shortform directory header */ in xfs_dir2_block_to_sf() local 176 sfp = (xfs_dir2_sf_hdr_t *)dst; in xfs_dir2_block_to_sf() 177 memcpy(sfp, sfhp, xfs_dir2_sf_hdr_size(sfhp->i8count)); in xfs_dir2_block_to_sf() 184 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_block_to_sf() 210 dp->d_ops->sf_get_parent_ino(sfp)); in xfs_dir2_block_to_sf() 220 dp->d_ops->sf_put_ino(sfp, sfep, in xfs_dir2_block_to_sf() 225 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_block_to_sf() 229 ASSERT((char *)sfep - (char *)sfp == size); in xfs_dir2_block_to_sf() 275 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ in xfs_dir2_sf_addname() local 292 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_addname() [all …]
|
D | xfs_symlink_remote.c | 207 char *sfp; in xfs_symlink_shortform_verify() local 214 sfp = (char *)ifp->if_u1.if_data; in xfs_symlink_shortform_verify() 216 endp = sfp + size; in xfs_symlink_shortform_verify() 227 if (memchr(sfp, 0, size - 1)) in xfs_symlink_shortform_verify()
|
D | xfs_dir2_block.c | 1066 xfs_dir2_sf_hdr_t *sfp; /* shortform header */ in xfs_dir2_sf_to_block() local 1098 sfp = kmem_alloc(ifp->if_bytes, KM_SLEEP); in xfs_dir2_sf_to_block() 1099 memcpy(sfp, oldsfp, ifp->if_bytes); in xfs_dir2_sf_to_block() 1124 (sfp->count + 2) * (uint)sizeof(xfs_dir2_leaf_entry_t); in xfs_dir2_sf_to_block() 1140 btp->count = cpu_to_be32(sfp->count + 2); /* ., .. */ in xfs_dir2_sf_to_block() 1170 dep->inumber = cpu_to_be64(dp->d_ops->sf_get_parent_ino(sfp)); in xfs_dir2_sf_to_block() 1185 if (!sfp->count) in xfs_dir2_sf_to_block() 1188 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_to_block() 1221 dep->inumber = cpu_to_be64(dp->d_ops->sf_get_ino(sfp, sfep)); in xfs_dir2_sf_to_block() 1235 if (++i == sfp->count) in xfs_dir2_sf_to_block() [all …]
|
D | xfs_dir2.c | 177 xfs_dir2_sf_hdr_t *sfp; in xfs_dir_isempty() local 184 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir_isempty() 185 return !sfp->count; in xfs_dir_isempty()
|
/Linux-v4.19/drivers/scsi/ |
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); 199 static Sg_request *sg_add_request(Sg_fd * sfp); [all …]
|
/Linux-v4.19/drivers/scsi/snic/ |
D | snic_debugfs.c | 199 snic_stats_show(struct seq_file *sfp, void *data) in snic_stats_show() argument 201 struct snic *snic = (struct snic *) sfp->private; in snic_stats_show() 208 seq_printf(sfp, in snic_stats_show() 214 seq_printf(sfp, in snic_stats_show() 245 seq_puts(sfp, "\nSGL Counters\n"); in snic_stats_show() 248 seq_printf(sfp, in snic_stats_show() 253 seq_puts(sfp, "\n"); in snic_stats_show() 257 seq_printf(sfp, in snic_stats_show() 262 seq_printf(sfp, in snic_stats_show() 277 seq_printf(sfp, in snic_stats_show() [all …]
|
/Linux-v4.19/drivers/scsi/bfa/ |
D | bfa_ioc.c | 3647 static void bfa_sfp_getdata_send(struct bfa_sfp_s *sfp); 3648 static void bfa_sfp_media_get(struct bfa_sfp_s *sfp); 3649 static bfa_status_t bfa_sfp_speed_valid(struct bfa_sfp_s *sfp, 3653 bfa_cb_sfp_show(struct bfa_sfp_s *sfp) in bfa_cb_sfp_show() argument 3655 bfa_trc(sfp, sfp->lock); in bfa_cb_sfp_show() 3656 if (sfp->cbfn) in bfa_cb_sfp_show() 3657 sfp->cbfn(sfp->cbarg, sfp->status); in bfa_cb_sfp_show() 3658 sfp->lock = 0; in bfa_cb_sfp_show() 3659 sfp->cbfn = NULL; in bfa_cb_sfp_show() 3663 bfa_cb_sfp_state_query(struct bfa_sfp_s *sfp) in bfa_cb_sfp_state_query() argument [all …]
|
D | bfa_modules.h | 44 struct bfa_sfp_s sfp; /* SFP module */ member
|
/Linux-v4.19/fs/freevxfs/ |
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()
|
/Linux-v4.19/Documentation/devicetree/bindings/net/ |
D | sff,sfp.txt | 7 "sff,sfp" for SFP modules 42 sfp_eth3: sfp-eth3 { 43 compatible = "sff,sfp"; 57 sfp = <&sfp_eth3>; 62 sfp_eth0: sfp-eth0 { 63 compatible = "sff,sfp"; 79 sfp = <&sfp_eth0>;
|
/Linux-v4.19/arch/arm64/boot/dts/marvell/ |
D | armada-8040-mcbin.dts | 69 sfp_eth0: sfp-eth0 { 71 compatible = "sff,sfp"; 81 sfp_eth1: sfp-eth1 { 83 compatible = "sff,sfp"; 93 sfp_eth3: sfp-eth3 { 95 compatible = "sff,sfp"; 211 cp0_sfp_1g_pins: sfp-1g-pins { 236 sfp = <&sfp_eth0>; 242 sfp = <&sfp_eth1>; 315 sfp = <&sfp_eth3>; [all …]
|
/Linux-v4.19/fs/xfs/ |
D | xfs_dir2_readdir.c | 55 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ in xfs_dir2_sf_getdents() local 65 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_getdents() 97 ino = dp->d_ops->sf_get_parent_ino(sfp); in xfs_dir2_sf_getdents() 106 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_getdents() 107 for (i = 0; i < sfp->count; i++) { in xfs_dir2_sf_getdents() 114 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_sf_getdents() 118 ino = dp->d_ops->sf_get_ino(sfp, sfep); in xfs_dir2_sf_getdents() 124 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_sf_getdents()
|
/Linux-v4.19/arch/arm/boot/dts/ |
D | armada-388-clearfog.dtsi | 80 sfp: sfp { label 81 compatible = "sff,sfp"; 107 sfp = <&sfp>;
|
/Linux-v4.19/drivers/scsi/qla2xxx/ |
D | qla_bsg.c | 1536 void *sfp = dma_pool_alloc(ha->s_dma_pool, GFP_KERNEL, &sfp_dma); in qla2x00_update_fru_versions() local 1537 if (!sfp) { in qla2x00_update_fru_versions() 1549 memcpy(sfp, &image->field_info, sizeof(image->field_info)); in qla2x00_update_fru_versions() 1550 rval = qla2x00_write_sfp(vha, sfp_dma, sfp, in qla2x00_update_fru_versions() 1564 dma_pool_free(ha->s_dma_pool, sfp, sfp_dma); in qla2x00_update_fru_versions() 1586 uint8_t *sfp = dma_pool_alloc(ha->s_dma_pool, GFP_KERNEL, &sfp_dma); in qla2x00_read_fru_status() local 1587 if (!sfp) { in qla2x00_read_fru_status() 1596 rval = qla2x00_read_sfp(vha, sfp_dma, sfp, in qla2x00_read_fru_status() 1599 sr->status_reg = *sfp; in qla2x00_read_fru_status() 1613 dma_pool_free(ha->s_dma_pool, sfp, sfp_dma); in qla2x00_read_fru_status() [all …]
|
/Linux-v4.19/Documentation/networking/ |
D | kapi.rst | 164 .. kernel-doc:: drivers/net/phy/sfp-bus.c 167 .. kernel-doc:: include/linux/sfp.h 170 .. kernel-doc:: drivers/net/phy/sfp-bus.c
|
/Linux-v4.19/arch/powerpc/boot/dts/fsl/ |
D | p2041si-post.dtsi | 356 sfp: sfp@e8000 { label 357 compatible = "fsl,p2041-sfp", "fsl,qoriq-sfp-1.0";
|
D | p5020si-post.dtsi | 370 sfp: sfp@e8000 { label 371 compatible = "fsl,p5020-sfp", "fsl,qoriq-sfp-1.0";
|
D | p5040si-post.dtsi | 348 sfp: sfp@e8000 { label 349 compatible = "fsl,p5040-sfp", "fsl,qoriq-sfp-1.0";
|
D | p3041si-post.dtsi | 383 sfp: sfp@e8000 { label 384 compatible = "fsl,p3041-sfp", "fsl,qoriq-sfp-1.0";
|
/Linux-v4.19/arch/arm64/kernel/ |
D | signal.c | 349 char const __user *const sfp = (char const __user *)sf; in parse_user_sigframe() local 463 if (extra_size > sfp + SIGFRAME_MAXSZ - userp) in parse_user_sigframe() 666 char __user *sfp = (char __user *)user->sigframe; in setup_sigframe() local 687 extra_size = sfp + round_up(user->size, 16) - userp; in setup_sigframe()
|