Home
last modified time | relevance | path

Searched refs:fs (Results 1 – 25 of 69) sorted by relevance

123

/drivers/block/
Dswim3.c211 #define swim3_err(fmt, arg...) dev_err(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg)
212 #define swim3_warn(fmt, arg...) dev_warn(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg)
213 #define swim3_info(fmt, arg...) dev_info(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg)
216 #define swim3_dbg(fmt, arg...) dev_dbg(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg)
239 static void seek_track(struct floppy_state *fs, int n);
241 static void act(struct floppy_state *fs);
248 static int grab_drive(struct floppy_state *fs, enum swim_state state,
250 static void release_drive(struct floppy_state *fs);
251 static int fd_eject(struct floppy_state *fs);
260 static bool swim3_end_request(struct floppy_state *fs, int err, unsigned int nr_bytes) in swim3_end_request() argument
[all …]
Dswim.c428 static inline int swim_track(struct floppy_state *fs, int track) in swim_track() argument
430 struct swim __iomem *base = fs->swd->base; in swim_track()
433 ret = swim_seek(base, track - fs->track); in swim_track()
436 fs->track = track; in swim_track()
439 fs->track = 0; in swim_track()
445 static int floppy_eject(struct floppy_state *fs) in floppy_eject() argument
447 struct swim __iomem *base = fs->swd->base; in floppy_eject()
449 swim_drive(base, fs->location); in floppy_eject()
453 fs->disk_in = 0; in floppy_eject()
454 fs->ejected = 1; in floppy_eject()
[all …]
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_filter.c53 struct ch_filter_specification *fs) in validate_filter() argument
62 if (unsupported(fconf, FCOE_F, fs->val.fcoe, fs->mask.fcoe) || in validate_filter()
63 unsupported(fconf, PORT_F, fs->val.iport, fs->mask.iport) || in validate_filter()
64 unsupported(fconf, TOS_F, fs->val.tos, fs->mask.tos) || in validate_filter()
65 unsupported(fconf, ETHERTYPE_F, fs->val.ethtype, in validate_filter()
66 fs->mask.ethtype) || in validate_filter()
67 unsupported(fconf, MACMATCH_F, fs->val.macidx, fs->mask.macidx) || in validate_filter()
68 unsupported(fconf, MPSHITTYPE_F, fs->val.matchtype, in validate_filter()
69 fs->mask.matchtype) || in validate_filter()
70 unsupported(fconf, FRAGMENTATION_F, fs->val.frag, fs->mask.frag) || in validate_filter()
[all …]
Dcxgb4_tc_u32.c44 struct ch_filter_specification *fs, in fill_match_fields() argument
74 err = entry[j].val(fs, val, mask); in fill_match_fields()
90 struct ch_filter_specification *fs, in fill_action_fields() argument
110 fs->action = FILTER_DROP; in fill_action_fields()
125 fs->action = FILTER_SWITCH; in fill_action_fields()
126 fs->eport = i; in fill_action_fields()
154 struct ch_filter_specification fs; in cxgb4_config_knode() local
192 memset(&fs, 0, sizeof(fs)); in cxgb4_config_knode()
265 ret = fill_match_fields(adapter, &fs, cls, in cxgb4_config_knode()
273 memcpy(&link->fs, &fs, sizeof(fs)); in cxgb4_config_knode()
[all …]
/drivers/clk/st/
Dclkgen-fsyn.c77 unsigned long output, struct stm_fs *fs);
265 static int clk_fs660c32_vco_get_rate(unsigned long input, struct stm_fs *fs, in clk_fs660c32_vco_get_rate() argument
268 unsigned long nd = fs->ndiv + 16; /* ndiv value */ in clk_fs660c32_vco_get_rate()
293 unsigned long output, struct stm_fs *fs) in clk_fs660c32_vco_get_params() argument
316 fs->ndiv = n - 16; /* Converting formula value to reg value */ in clk_fs660c32_vco_get_params()
476 static void quadfs_fsynth_program_enable(struct st_clk_quadfs_fsynth *fs) in quadfs_fsynth_program_enable() argument
482 CLKGEN_WRITE(fs, en[fs->chan], 1); in quadfs_fsynth_program_enable()
483 CLKGEN_WRITE(fs, en[fs->chan], 0); in quadfs_fsynth_program_enable()
486 static void quadfs_fsynth_program_rate(struct st_clk_quadfs_fsynth *fs) in quadfs_fsynth_program_rate() argument
495 CLKGEN_WRITE(fs, en[fs->chan], 0); in quadfs_fsynth_program_rate()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c56 struct ethtool_rx_flow_spec *fs, in get_flow_table() argument
66 switch (fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT)) { in get_flow_table()
71 eth_ft = &priv->fs.ethtool.l3_l4_ft[prio]; in get_flow_table()
76 eth_ft = &priv->fs.ethtool.l3_l4_ft[prio]; in get_flow_table()
81 eth_ft = &priv->fs.ethtool.l2_ft[prio]; in get_flow_table()
144 struct ethtool_rx_flow_spec *fs) in set_flow_attrs() argument
150 u32 flow_type = fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT); in set_flow_attrs()
160 l4_mask = &fs->m_u.tcp_ip4_spec; in set_flow_attrs()
161 l4_val = &fs->h_u.tcp_ip4_spec; in set_flow_attrs()
183 l4_mask = &fs->m_u.tcp_ip4_spec; in set_flow_attrs()
[all …]
Den_fs.c119 for_each_set_bit(vlan, priv->fs.vlan.active_vlans, VLAN_N_VID) in mlx5e_vport_context_update_vlans()
136 for_each_set_bit(vlan, priv->fs.vlan.active_vlans, VLAN_N_VID) { in mlx5e_vport_context_update_vlans()
161 struct mlx5_flow_table *ft = priv->fs.vlan.ft.t; in __mlx5e_add_vlan_rule()
167 dest.ft = priv->fs.l2.ft.t; in __mlx5e_add_vlan_rule()
174 rule_p = &priv->fs.vlan.untagged_rule; in __mlx5e_add_vlan_rule()
177 rule_p = &priv->fs.vlan.any_vlan_rule; in __mlx5e_add_vlan_rule()
181 rule_p = &priv->fs.vlan.active_vlans_rule[vid]; in __mlx5e_add_vlan_rule()
231 if (priv->fs.vlan.untagged_rule) { in mlx5e_del_vlan_rule()
232 mlx5_del_flow_rule(priv->fs.vlan.untagged_rule); in mlx5e_del_vlan_rule()
233 priv->fs.vlan.untagged_rule = NULL; in mlx5e_del_vlan_rule()
[all …]
Den_arfs.c106 err = mlx5_modify_rule_destination(priv->fs.ttc.rules[tt], in arfs_disable()
136 dest.ft = priv->fs.arfs.arfs_tables[i].ft.t; in mlx5e_arfs_enable()
139 err = mlx5_modify_rule_destination(priv->fs.ttc.rules[tt], in mlx5e_arfs_enable()
166 destroy_workqueue(priv->fs.arfs.wq); in mlx5e_arfs_destroy_tables()
168 if (!IS_ERR_OR_NULL(priv->fs.arfs.arfs_tables[i].ft.t)) in mlx5e_arfs_destroy_tables()
169 arfs_destroy_table(&priv->fs.arfs.arfs_tables[i]); in mlx5e_arfs_destroy_tables()
176 struct arfs_table *arfs_t = &priv->fs.arfs.arfs_tables[type]; in arfs_add_default_rule()
322 struct mlx5e_arfs_tables *arfs = &priv->fs.arfs; in arfs_create_table()
326 ft->t = mlx5_create_flow_table(priv->fs.ns, MLX5E_NIC_PRIO, in arfs_create_table()
356 spin_lock_init(&priv->fs.arfs.arfs_lock); in mlx5e_arfs_create_tables()
[all …]
Den_tc.c69 dest.ft = priv->fs.vlan.ft.t; in mlx5e_tc_add_nic_flow()
79 if (IS_ERR_OR_NULL(priv->fs.tc.t)) { in mlx5e_tc_add_nic_flow()
80 priv->fs.tc.t = in mlx5e_tc_add_nic_flow()
81 mlx5_create_auto_grouped_flow_table(priv->fs.ns, in mlx5e_tc_add_nic_flow()
86 if (IS_ERR(priv->fs.tc.t)) { in mlx5e_tc_add_nic_flow()
89 rule = ERR_CAST(priv->fs.tc.t); in mlx5e_tc_add_nic_flow()
97 rule = mlx5_add_flow_rule(priv->fs.tc.t, spec, in mlx5e_tc_add_nic_flow()
108 mlx5_destroy_flow_table(priv->fs.tc.t); in mlx5e_tc_add_nic_flow()
109 priv->fs.tc.t = NULL; in mlx5e_tc_add_nic_flow()
147 if (!mlx5e_tc_num_filters(priv) && (priv->fs.tc.t)) { in mlx5e_tc_del_flow()
[all …]
/drivers/staging/lustre/
Dsysfs-fs-lustre1 What: /sys/fs/lustre/version
7 What: /sys/fs/lustre/pinger
14 What: /sys/fs/lustre/health
22 What: /sys/fs/lustre/jobid_name
31 What: /sys/fs/lustre/jobid_var
43 What: /sys/fs/lustre/timeout
55 What: /sys/fs/lustre/max_dirty_mb
67 What: /sys/fs/lustre/debug_peer_on_timeout
76 What: /sys/fs/lustre/dump_on_timeout
84 What: /sys/fs/lustre/dump_on_eviction
[all …]
/drivers/mtd/
Dafs.c75 struct footer_v1 fs; in afs_read_footer_v1() local
76 u_int ptr = off + mtd->erasesize - sizeof(fs); in afs_read_footer_v1()
80 ret = mtd_read(mtd, ptr, sizeof(fs), &sz, (u_char *)&fs); in afs_read_footer_v1()
81 if (ret >= 0 && sz != sizeof(fs)) in afs_read_footer_v1()
93 if (fs.signature != AFSV1_FOOTER_MAGIC) in afs_read_footer_v1()
99 if (word_sum(&fs, sizeof(fs) / sizeof(u32)) != 0xffffffff) in afs_read_footer_v1()
105 if (fs.type == 2) in afs_read_footer_v1()
108 *iis_start = fs.image_info_base & mask; in afs_read_footer_v1()
109 *img_start = fs.image_start & mask; in afs_read_footer_v1()
/drivers/net/fddi/skfp/
Dess.c104 int fs);
118 int fs) in ess_raf_received_pack() argument
131 local = ((fs & L_INDICATOR) != 0) ; in ess_raf_received_pack()
138 return fs; in ess_raf_received_pack()
150 return fs; in ess_raf_received_pack()
178 return fs; in ess_raf_received_pack()
183 return fs; in ess_raf_received_pack()
202 return fs | I_INDICATOR; in ess_raf_received_pack()
205 return fs; in ess_raf_received_pack()
215 return fs; in ess_raf_received_pack()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1243 if (cmd->fs.location >= MAX_NUM_OF_FS_RULES) in mlx4_en_validate_flow()
1246 if (cmd->fs.flow_type & FLOW_MAC_EXT) { in mlx4_en_validate_flow()
1248 if (!is_broadcast_ether_addr(cmd->fs.m_ext.h_dest)) in mlx4_en_validate_flow()
1252 switch (cmd->fs.flow_type & ~(FLOW_EXT | FLOW_MAC_EXT)) { in mlx4_en_validate_flow()
1255 if (cmd->fs.m_u.tcp_ip4_spec.tos) in mlx4_en_validate_flow()
1257 l4_mask = &cmd->fs.m_u.tcp_ip4_spec; in mlx4_en_validate_flow()
1266 l3_mask = &cmd->fs.m_u.usr_ip4_spec; in mlx4_en_validate_flow()
1268 cmd->fs.h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4 || in mlx4_en_validate_flow()
1275 eth_mask = &cmd->fs.m_u.ether_spec; in mlx4_en_validate_flow()
1291 if ((cmd->fs.flow_type & FLOW_EXT)) { in mlx4_en_validate_flow()
[all …]
/drivers/iio/common/st_sensors/
Dst_sensors_core.c126 unsigned int fs, int *index_fs_avl) in st_sensors_match_fs() argument
131 if (sensor_settings->fs.fs_avl[i].num == 0) in st_sensors_match_fs()
134 if (sensor_settings->fs.fs_avl[i].num == fs) { in st_sensors_match_fs()
145 static int st_sensors_set_fullscale(struct iio_dev *indio_dev, unsigned int fs) in st_sensors_set_fullscale() argument
150 if (sdata->sensor_settings->fs.addr == 0) in st_sensors_set_fullscale()
153 err = st_sensors_match_fs(sdata->sensor_settings, fs, &i); in st_sensors_set_fullscale()
158 sdata->sensor_settings->fs.addr, in st_sensors_set_fullscale()
159 sdata->sensor_settings->fs.mask, in st_sensors_set_fullscale()
160 sdata->sensor_settings->fs.fs_avl[i].value); in st_sensors_set_fullscale()
165 &sdata->sensor_settings->fs.fs_avl[i]; in st_sensors_set_fullscale()
[all …]
/drivers/spi/
Dspi-sh-msiof.c380 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_8() argument
386 sh_msiof_write(p, TFDR, buf_8[k] << fs); in sh_msiof_spi_write_fifo_8()
390 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_16() argument
396 sh_msiof_write(p, TFDR, buf_16[k] << fs); in sh_msiof_spi_write_fifo_16()
400 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_16u() argument
406 sh_msiof_write(p, TFDR, get_unaligned(&buf_16[k]) << fs); in sh_msiof_spi_write_fifo_16u()
410 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_32() argument
416 sh_msiof_write(p, TFDR, buf_32[k] << fs); in sh_msiof_spi_write_fifo_32()
420 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_32u() argument
426 sh_msiof_write(p, TFDR, get_unaligned(&buf_32[k]) << fs); in sh_msiof_spi_write_fifo_32u()
[all …]
/drivers/dio/
Ddio.c119 mm_segment_t fs; in dio_find() local
138 fs = get_fs(); in dio_find()
142 set_fs(fs); in dio_find()
148 set_fs(fs); in dio_find()
173 mm_segment_t fs; in dio_init() local
217 fs = get_fs(); in dio_init()
221 set_fs(fs); in dio_init()
227 set_fs(fs); in dio_init()
/drivers/media/i2c/s5c73m3/
Ds5c73m3-core.c122 const struct s5c73m3_frame_size *fs, in s5c73m3_fill_mbus_fmt() argument
125 mf->width = fs->width; in s5c73m3_fill_mbus_fmt()
126 mf->height = fs->height; in s5c73m3_fill_mbus_fmt()
806 const struct s5c73m3_frame_size *fs; in s5c73m3_find_frame_size() local
811 fs = s5c73m3_resolutions[idx]; in s5c73m3_find_frame_size()
814 int dist = abs(fs->width - fmt->width) + in s5c73m3_find_frame_size()
815 abs(fs->height - fmt->height); in s5c73m3_find_frame_size()
818 best_fs = fs; in s5c73m3_find_frame_size()
820 ++fs; in s5c73m3_find_frame_size()
829 const struct s5c73m3_frame_size **fs) in s5c73m3_oif_try_format() argument
[all …]
/drivers/staging/comedi/drivers/
Djr3_pci.c539 struct force_array __iomem *fs = &channel->full_scale; in jr3_pci_poll_subdevice() local
542 spriv->range[0].range.min = -get_s16(&fs->fx) * 1000; in jr3_pci_poll_subdevice()
543 spriv->range[0].range.max = get_s16(&fs->fx) * 1000; in jr3_pci_poll_subdevice()
544 spriv->range[1].range.min = -get_s16(&fs->fy) * 1000; in jr3_pci_poll_subdevice()
545 spriv->range[1].range.max = get_s16(&fs->fy) * 1000; in jr3_pci_poll_subdevice()
546 spriv->range[2].range.min = -get_s16(&fs->fz) * 1000; in jr3_pci_poll_subdevice()
547 spriv->range[2].range.max = get_s16(&fs->fz) * 1000; in jr3_pci_poll_subdevice()
548 spriv->range[3].range.min = -get_s16(&fs->mx) * 100; in jr3_pci_poll_subdevice()
549 spriv->range[3].range.max = get_s16(&fs->mx) * 100; in jr3_pci_poll_subdevice()
550 spriv->range[4].range.min = -get_s16(&fs->my) * 100; in jr3_pci_poll_subdevice()
[all …]
/drivers/scsi/esas2r/
Desas2r_flash.c830 struct esas2r_ioctl_fs *fs = in esas2r_complete_fs_ioctl() local
836 fs->driver_error = rq->req_stat; in esas2r_complete_fs_ioctl()
838 if (fs->driver_error == RS_SUCCESS) in esas2r_complete_fs_ioctl()
839 fs->status = ATTO_STS_SUCCESS; in esas2r_complete_fs_ioctl()
841 fs->status = ATTO_STS_FAILED; in esas2r_complete_fs_ioctl()
846 struct esas2r_ioctl_fs *fs, in esas2r_process_fs_ioctl() argument
851 struct esas2r_ioctlfs_command *fsc = &fs->command; in esas2r_process_fs_ioctl()
855 fs->status = ATTO_STS_FAILED; in esas2r_process_fs_ioctl()
856 fs->driver_error = RS_PENDING; in esas2r_process_fs_ioctl()
858 if (fs->version > ESAS2R_FS_VER) { in esas2r_process_fs_ioctl()
[all …]
/drivers/ps3/
Dps3av_cmd.c478 u32 fs; member
489 static u8 ps3av_cnv_mclk(u32 fs) in ps3av_cnv_mclk() argument
494 if (ps3av_cnv_mclk_table[i].fs == fs) in ps3av_cnv_mclk()
497 printk(KERN_ERR "%s failed, fs:%x\n", __func__, fs); in ps3av_cnv_mclk()
513 static void ps3av_cnv_ns(u8 *ns, u32 fs, u32 video_vid) in ps3av_cnv_ns() argument
549 if (fs < PS3AV_CMD_AUDIO_FS_44K || fs > PS3AV_CMD_AUDIO_FS_192K) in ps3av_cnv_ns()
550 printk(KERN_ERR "%s failed, fs:%x\n", __func__, fs); in ps3av_cnv_ns()
679 u32 ch, u32 fs, u32 word_bits, u32 format, in ps3av_cmd_set_audio_mode() argument
685 if (!(ch | fs | format | word_bits | source)) { in ps3av_cmd_set_audio_mode()
687 fs = PS3AV_CMD_AUDIO_FS_48K; in ps3av_cmd_set_audio_mode()
[all …]
/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1300 ret = gfar_convert_to_filer(&j->fs, tab); in gfar_process_filer_changes()
1347 memcpy(&temp->fs, flow, sizeof(temp->fs)); in gfar_add_cls()
1349 gfar_invert_masks(&temp->fs); in gfar_add_cls()
1350 ret = gfar_check_capability(&temp->fs, priv); in gfar_add_cls()
1362 if (comp->fs.location > flow->location) { in gfar_add_cls()
1366 if (comp->fs.location == flow->location) { in gfar_add_cls()
1401 if (comp->fs.location == loc) { in gfar_del_cls()
1420 if (comp->fs.location == cmd->fs.location) { in gfar_get_cls()
1421 memcpy(&cmd->fs, &comp->fs, sizeof(cmd->fs)); in gfar_get_cls()
1422 gfar_invert_masks(&cmd->fs); in gfar_get_cls()
[all …]
/drivers/lguest/x86/
Dswitcher_32.S115 pushl %fs
181 popl %fs
206 pushl %fs; \
256 popl %fs; \
/drivers/net/ethernet/apple/
Dmacmace.c562 int intr, fs; in mace_interrupt() local
572 fs = mb->xmtfs; in mace_interrupt()
573 if ((fs & XMTSV) == 0) { in mace_interrupt()
574 printk(KERN_ERR "macmace: xmtfs not valid! (fs=%x)\n", fs); in mace_interrupt()
583 printk(KERN_DEBUG "macmace: tx ring ran out? (fs=%x)\n", fs); in mace_interrupt()
586 if (fs & (UFLO|LCOL|LCAR|RTRY)) { in mace_interrupt()
588 if (fs & LCAR) in mace_interrupt()
590 else if (fs & (UFLO|LCOL|RTRY)) { in mace_interrupt()
/drivers/iio/accel/
Dst_accel_core.c319 .fs = {
398 .fs = {
468 .fs = {
545 .fs = {
598 .fs = {
654 .fs = {
715 .fs = {
855 &adata->sensor_settings->fs.fs_avl[0]; in st_accel_common_probe()
/drivers/staging/lustre/lustre/obdclass/
Dkernelcomm.c55 mm_segment_t fs; in libcfs_kkuc_msg_put() local
66 fs = get_fs(); in libcfs_kkuc_msg_put()
77 set_fs(fs); in libcfs_kkuc_msg_put()

123