/drivers/block/ |
D | swim3.c | 208 #define swim3_err(fmt, arg...) dev_err(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 209 #define swim3_warn(fmt, arg...) dev_warn(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 210 #define swim3_info(fmt, arg...) dev_info(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 213 #define swim3_dbg(fmt, arg...) dev_dbg(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 236 static void seek_track(struct floppy_state *fs, int n); 237 static void act(struct floppy_state *fs); 244 static int grab_drive(struct floppy_state *fs, enum swim_state state, 246 static void release_drive(struct floppy_state *fs); 247 static int fd_eject(struct floppy_state *fs); 256 static bool swim3_end_request(struct floppy_state *fs, blk_status_t err, unsigned int nr_bytes) in swim3_end_request() argument [all …]
|
D | swim.c | 425 static inline int swim_track(struct floppy_state *fs, int track) in swim_track() argument 427 struct swim __iomem *base = fs->swd->base; in swim_track() 430 ret = swim_seek(base, track - fs->track); in swim_track() 433 fs->track = track; in swim_track() 436 fs->track = 0; in swim_track() 442 static int floppy_eject(struct floppy_state *fs) in floppy_eject() argument 444 struct swim __iomem *base = fs->swd->base; in floppy_eject() 446 swim_drive(base, fs->location); in floppy_eject() 450 fs->disk_in = 0; in floppy_eject() 451 fs->ejected = 1; in floppy_eject() [all …]
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_filter.c | 75 set_wr_txq(skb, CPL_PRIORITY_CONTROL, f->fs.val.iport & 0x3); in set_tcb_field() 168 u8 *nat_lp = (u8 *)&f->fs.nat_lport; in set_nat_params() 169 u8 *nat_fp = (u8 *)&f->fs.nat_fport; in set_nat_params() 172 if (f->fs.type) { in set_nat_params() 174 WORD_MASK, f->fs.nat_lip[15] | in set_nat_params() 175 f->fs.nat_lip[14] << 8 | in set_nat_params() 176 f->fs.nat_lip[13] << 16 | in set_nat_params() 177 (u64)f->fs.nat_lip[12] << 24, 1); in set_nat_params() 180 WORD_MASK, f->fs.nat_lip[11] | in set_nat_params() 181 f->fs.nat_lip[10] << 8 | in set_nat_params() [all …]
|
D | cxgb4_tc_flower.c | 128 static void cxgb4_action_natmode_tweak(struct ch_filter_specification *fs, in cxgb4_action_natmode_tweak() argument 140 fs->nat_mode = cxgb4_natmode_config_array[i].natmode; in cxgb4_action_natmode_tweak() 164 struct ch_filter_specification *fs) in cxgb4_process_flow_match() argument 193 fs->type = 1; in cxgb4_process_flow_match() 195 fs->val.ethtype = ethtype_key; in cxgb4_process_flow_match() 196 fs->mask.ethtype = ethtype_mask; in cxgb4_process_flow_match() 197 fs->val.proto = match.key->ip_proto; in cxgb4_process_flow_match() 198 fs->mask.proto = match.mask->ip_proto; in cxgb4_process_flow_match() 205 fs->type = 0; in cxgb4_process_flow_match() 206 memcpy(&fs->val.lip[0], &match.key->dst, sizeof(match.key->dst)); in cxgb4_process_flow_match() [all …]
|
D | cxgb4_tc_u32.c | 45 struct ch_filter_specification *fs, in fill_match_fields() argument 75 err = entry[j].val(fs, val, mask); in fill_match_fields() 91 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() 155 struct ch_filter_specification fs; in cxgb4_config_knode() local 198 memset(&fs, 0, sizeof(fs)); in cxgb4_config_knode() 201 fs.prio = 1; in cxgb4_config_knode() 202 fs.tc_prio = cls->common.prio; in cxgb4_config_knode() [all …]
|
D | cxgb4_ethtool.c | 1641 static void cxgb4_fill_filter_rule(struct ethtool_rx_flow_spec *fs, in cxgb4_fill_filter_rule() argument 1647 fs->flow_type = TCP_V6_FLOW; in cxgb4_fill_filter_rule() 1649 fs->flow_type = TCP_V4_FLOW; in cxgb4_fill_filter_rule() 1653 fs->flow_type = UDP_V6_FLOW; in cxgb4_fill_filter_rule() 1655 fs->flow_type = UDP_V4_FLOW; in cxgb4_fill_filter_rule() 1660 fs->h_u.tcp_ip6_spec.psrc = cpu_to_be16(dfs->val.fport); in cxgb4_fill_filter_rule() 1661 fs->m_u.tcp_ip6_spec.psrc = cpu_to_be16(dfs->mask.fport); in cxgb4_fill_filter_rule() 1662 fs->h_u.tcp_ip6_spec.pdst = cpu_to_be16(dfs->val.lport); in cxgb4_fill_filter_rule() 1663 fs->m_u.tcp_ip6_spec.pdst = cpu_to_be16(dfs->mask.lport); in cxgb4_fill_filter_rule() 1664 memcpy(&fs->h_u.tcp_ip6_spec.ip6src, &dfs->val.fip[0], in cxgb4_fill_filter_rule() [all …]
|
D | cxgb4_tc_matchall.c | 252 &tc_port_matchall->ingress.fs[filter_type]); in cxgb4_matchall_del_filter() 268 struct ch_filter_specification *fs; in cxgb4_matchall_add_filter() local 284 fs = &tc_port_matchall->ingress.fs[filter_type]; in cxgb4_matchall_add_filter() 285 memset(fs, 0, sizeof(*fs)); in cxgb4_matchall_add_filter() 288 fs->prio = 1; in cxgb4_matchall_add_filter() 289 fs->tc_prio = cls->common.prio; in cxgb4_matchall_add_filter() 290 fs->tc_cookie = cls->cookie; in cxgb4_matchall_add_filter() 291 fs->type = filter_type; in cxgb4_matchall_add_filter() 292 fs->hitcnts = 1; in cxgb4_matchall_add_filter() 294 fs->val.pfvf_vld = 1; in cxgb4_matchall_add_filter() [all …]
|
/drivers/clk/st/ |
D | clkgen-fsyn.c | 82 unsigned long output, struct stm_fs *fs); 322 static int clk_fs660c32_vco_get_rate(unsigned long input, struct stm_fs *fs, in clk_fs660c32_vco_get_rate() argument 325 unsigned long nd = fs->ndiv + 16; /* ndiv value */ in clk_fs660c32_vco_get_rate() 350 unsigned long output, struct stm_fs *fs) in clk_fs660c32_vco_get_params() argument 373 fs->ndiv = n - 16; /* Converting formula value to reg value */ in clk_fs660c32_vco_get_params() 533 static void quadfs_fsynth_program_enable(struct st_clk_quadfs_fsynth *fs) in quadfs_fsynth_program_enable() argument 539 CLKGEN_WRITE(fs, en[fs->chan], 1); in quadfs_fsynth_program_enable() 540 CLKGEN_WRITE(fs, en[fs->chan], 0); in quadfs_fsynth_program_enable() 543 static void quadfs_fsynth_program_rate(struct st_clk_quadfs_fsynth *fs) in quadfs_fsynth_program_rate() argument 552 CLKGEN_WRITE(fs, en[fs->chan], 0); in quadfs_fsynth_program_rate() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 66 struct ethtool_rx_flow_spec *fs, in get_flow_table() argument 77 switch (flow_type_mask(fs->flow_type)) { in get_flow_table() 84 eth_ft = &priv->fs.ethtool.l3_l4_ft[prio]; in get_flow_table() 90 eth_ft = &priv->fs.ethtool.l3_l4_ft[prio]; in get_flow_table() 95 eth_ft = &priv->fs.ethtool.l2_ft[prio]; in get_flow_table() 220 parse_tcp4(void *headers_c, void *headers_v, struct ethtool_rx_flow_spec *fs) in parse_tcp4() argument 222 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; in parse_tcp4() 223 struct ethtool_tcpip4_spec *l4_val = &fs->h_u.tcp_ip4_spec; in parse_tcp4() 233 parse_udp4(void *headers_c, void *headers_v, struct ethtool_rx_flow_spec *fs) in parse_udp4() argument 235 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.udp_ip4_spec; in parse_udp4() [all …]
|
D | en_fs.c | 146 for_each_set_bit(vlan, priv->fs.vlan->active_cvlans, VLAN_N_VID) in mlx5e_vport_context_update_vlans() 163 for_each_set_bit(vlan, priv->fs.vlan->active_cvlans, VLAN_N_VID) { in mlx5e_vport_context_update_vlans() 190 struct mlx5_flow_table *ft = priv->fs.vlan->ft.t; in __mlx5e_add_vlan_rule() 197 dest.ft = priv->fs.l2.ft.t; in __mlx5e_add_vlan_rule() 207 rule_p = &priv->fs.vlan->untagged_rule; in __mlx5e_add_vlan_rule() 212 rule_p = &priv->fs.vlan->any_cvlan_rule; in __mlx5e_add_vlan_rule() 218 rule_p = &priv->fs.vlan->any_svlan_rule; in __mlx5e_add_vlan_rule() 224 rule_p = &priv->fs.vlan->active_svlans_rule[vid]; in __mlx5e_add_vlan_rule() 234 rule_p = &priv->fs.vlan->active_cvlans_rule[vid]; in __mlx5e_add_vlan_rule() 284 if (priv->fs.vlan->untagged_rule) { in mlx5e_del_vlan_rule() [all …]
|
D | en_arfs.c | 123 err = mlx5_ttc_fwd_default_dest(priv->fs.ttc, arfs_get_tt(i)); in arfs_disable() 150 dest.ft = priv->fs.arfs->arfs_tables[i].ft.t; in mlx5e_arfs_enable() 152 err = mlx5_ttc_fwd_dest(priv->fs.ttc, arfs_get_tt(i), &dest); in mlx5e_arfs_enable() 175 destroy_workqueue(priv->fs.arfs->wq); in _mlx5e_cleanup_tables() 177 if (!IS_ERR_OR_NULL(priv->fs.arfs->arfs_tables[i].ft.t)) in _mlx5e_cleanup_tables() 178 arfs_destroy_table(&priv->fs.arfs->arfs_tables[i]); in _mlx5e_cleanup_tables() 188 kvfree(priv->fs.arfs); in mlx5e_arfs_destroy_tables() 194 struct arfs_table *arfs_t = &priv->fs.arfs->arfs_tables[type]; in arfs_add_default_rule() 328 struct mlx5e_arfs_tables *arfs = priv->fs.arfs; in arfs_create_table() 339 ft->t = mlx5_create_flow_table(priv->fs.ns, &ft_attr); in arfs_create_table() [all …]
|
/drivers/net/dsa/ |
D | bcm_sf2_cfp.c | 24 struct ethtool_rx_flow_spec fs; member 349 struct ethtool_rx_flow_spec *fs) in bcm_sf2_cfp_ipv4_rule_set() argument 364 switch (fs->flow_type & ~FLOW_EXT) { in bcm_sf2_cfp_ipv4_rule_set() 375 ip_frag = !!(be32_to_cpu(fs->h_ext.data[0]) & 1); in bcm_sf2_cfp_ipv4_rule_set() 378 if (fs->flow_type & FLOW_EXT) { in bcm_sf2_cfp_ipv4_rule_set() 379 vlan_tci = fs->h_ext.vlan_tci; in bcm_sf2_cfp_ipv4_rule_set() 380 vlan_m_tci = fs->m_ext.vlan_tci; in bcm_sf2_cfp_ipv4_rule_set() 384 if (fs->location == RX_CLS_LOC_ANY) in bcm_sf2_cfp_ipv4_rule_set() 388 rule_index = fs->location; in bcm_sf2_cfp_ipv4_rule_set() 393 input.fs = fs; in bcm_sf2_cfp_ipv4_rule_set() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | fs_tt_redirect.c | 97 fs_udp = priv->fs.udp; in mlx5e_fs_tt_redirect_udp_add_rule() 124 fs_udp = priv->fs.udp; in fs_udp_add_default_rule() 127 dest = mlx5_ttc_get_default_dest(priv->fs.ttc, fs_udp2tt(type)); in fs_udp_add_default_rule() 212 struct mlx5e_flow_table *ft = &priv->fs.udp->tables[type]; in fs_udp_create_table() 222 ft->t = mlx5_create_flow_table(priv->fs.ns, &ft_attr); in fs_udp_create_table() 263 err = mlx5_ttc_fwd_default_dest(priv->fs.ttc, fs_udp2tt(i)); in fs_udp_disable() 282 dest.ft = priv->fs.udp->tables[i].t; in fs_udp_enable() 285 err = mlx5_ttc_fwd_dest(priv->fs.ttc, fs_udp2tt(i), &dest); in fs_udp_enable() 298 struct mlx5e_fs_udp *fs_udp = priv->fs.udp; in mlx5e_fs_tt_redirect_udp_destroy() 313 priv->fs.udp = NULL; in mlx5e_fs_tt_redirect_udp_destroy() [all …]
|
/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-ethtool.c | 490 static int dpaa2_eth_prep_cls_rule(struct ethtool_rx_flow_spec *fs, void *key, in dpaa2_eth_prep_cls_rule() argument 495 switch (fs->flow_type & 0xFF) { in dpaa2_eth_prep_cls_rule() 497 err = dpaa2_eth_prep_eth_rule(&fs->h_u.ether_spec, &fs->m_u.ether_spec, in dpaa2_eth_prep_cls_rule() 501 err = dpaa2_eth_prep_uip_rule(&fs->h_u.usr_ip4_spec, in dpaa2_eth_prep_cls_rule() 502 &fs->m_u.usr_ip4_spec, key, mask, fields); in dpaa2_eth_prep_cls_rule() 505 err = dpaa2_eth_prep_l4_rule(&fs->h_u.tcp_ip4_spec, &fs->m_u.tcp_ip4_spec, in dpaa2_eth_prep_cls_rule() 509 err = dpaa2_eth_prep_l4_rule(&fs->h_u.udp_ip4_spec, &fs->m_u.udp_ip4_spec, in dpaa2_eth_prep_cls_rule() 513 err = dpaa2_eth_prep_l4_rule(&fs->h_u.sctp_ip4_spec, in dpaa2_eth_prep_cls_rule() 514 &fs->m_u.sctp_ip4_spec, key, mask, in dpaa2_eth_prep_cls_rule() 524 if (fs->flow_type & FLOW_EXT) { in dpaa2_eth_prep_cls_rule() [all …]
|
/drivers/net/fddi/skfp/ |
D | ess.c | 99 int fs); 113 int fs) in ess_raf_received_pack() argument 126 local = ((fs & L_INDICATOR) != 0) ; in ess_raf_received_pack() 133 return fs; in ess_raf_received_pack() 145 return fs; in ess_raf_received_pack() 173 return fs; in ess_raf_received_pack() 178 return fs; in ess_raf_received_pack() 197 return fs | I_INDICATOR; in ess_raf_received_pack() 200 return fs; in ess_raf_received_pack() 210 return fs; in ess_raf_received_pack() [all …]
|
/drivers/net/ethernet/freescale/enetc/ |
D | enetc_ethtool.c | 339 struct ethtool_rx_flow_spec *fs, bool en) in enetc_set_cls_entry() argument 349 switch (fs->flow_type & 0xff) { in enetc_set_cls_entry() 351 l4ip4_h = &fs->h_u.tcp_ip4_spec; in enetc_set_cls_entry() 352 l4ip4_m = &fs->m_u.tcp_ip4_spec; in enetc_set_cls_entry() 355 l4ip4_h = &fs->h_u.udp_ip4_spec; in enetc_set_cls_entry() 356 l4ip4_m = &fs->m_u.udp_ip4_spec; in enetc_set_cls_entry() 359 l4ip4_h = &fs->h_u.sctp_ip4_spec; in enetc_set_cls_entry() 360 l4ip4_m = &fs->m_u.sctp_ip4_spec; in enetc_set_cls_entry() 376 l3ip4_h = &fs->h_u.usr_ip4_spec; in enetc_set_cls_entry() 377 l3ip4_m = &fs->m_u.usr_ip4_spec; in enetc_set_cls_entry() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | fs_tcp.c | 89 fs_tcp = priv->fs.accel_tcp; in mlx5e_accel_fs_add_sk() 161 fs_tcp = priv->fs.accel_tcp; in accel_fs_tcp_add_default_rule() 164 dest = mlx5_ttc_get_default_dest(priv->fs.ttc, fs_accel2tt(type)); in accel_fs_tcp_add_default_rule() 271 struct mlx5e_flow_table *ft = &priv->fs.accel_tcp->tables[type]; in accel_fs_tcp_create_table() 281 ft->t = mlx5_create_flow_table(priv->fs.ns, &ft_attr); in accel_fs_tcp_create_table() 311 err = mlx5_ttc_fwd_default_dest(priv->fs.ttc, fs_accel2tt(i)); in accel_fs_tcp_disable() 330 dest.ft = priv->fs.accel_tcp->tables[i].t; in accel_fs_tcp_enable() 333 err = mlx5_ttc_fwd_dest(priv->fs.ttc, fs_accel2tt(i), &dest); in accel_fs_tcp_enable() 348 fs_tcp = priv->fs.accel_tcp; in accel_fs_tcp_destroy_table() 361 if (!priv->fs.accel_tcp) in mlx5e_accel_fs_tcp_destroy() [all …]
|
/drivers/iio/imu/inv_icm42600/ |
D | inv_icm42600_core.c | 56 .fs = INV_ICM42600_GYRO_FS_2000DPS, 62 .fs = INV_ICM42600_ACCEL_FS_16G, 213 if (conf->fs < 0) in inv_icm42600_set_accel_conf() 214 conf->fs = oldconf->fs; in inv_icm42600_set_accel_conf() 221 if (conf->fs != oldconf->fs || conf->odr != oldconf->odr) { in inv_icm42600_set_accel_conf() 222 val = INV_ICM42600_ACCEL_CONFIG0_FS(conf->fs) | in inv_icm42600_set_accel_conf() 227 oldconf->fs = conf->fs; in inv_icm42600_set_accel_conf() 257 if (conf->fs < 0) in inv_icm42600_set_gyro_conf() 258 conf->fs = oldconf->fs; in inv_icm42600_set_gyro_conf() 265 if (conf->fs != oldconf->fs || conf->odr != oldconf->odr) { in inv_icm42600_set_gyro_conf() [all …]
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | en_ethtool.c | 1346 if (cmd->fs.location >= MAX_NUM_OF_FS_RULES) in mlx4_en_validate_flow() 1349 if (cmd->fs.flow_type & FLOW_MAC_EXT) { in mlx4_en_validate_flow() 1351 if (!is_broadcast_ether_addr(cmd->fs.m_ext.h_dest)) in mlx4_en_validate_flow() 1355 switch (cmd->fs.flow_type & ~(FLOW_EXT | FLOW_MAC_EXT)) { in mlx4_en_validate_flow() 1358 if (cmd->fs.m_u.tcp_ip4_spec.tos) in mlx4_en_validate_flow() 1360 l4_mask = &cmd->fs.m_u.tcp_ip4_spec; in mlx4_en_validate_flow() 1369 l3_mask = &cmd->fs.m_u.usr_ip4_spec; in mlx4_en_validate_flow() 1371 cmd->fs.h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4 || in mlx4_en_validate_flow() 1378 eth_mask = &cmd->fs.m_u.ether_spec; in mlx4_en_validate_flow() 1394 if ((cmd->fs.flow_type & FLOW_EXT)) { in mlx4_en_validate_flow() [all …]
|
/drivers/iio/common/st_sensors/ |
D | st_sensors_core.c | 116 unsigned int fs, int *index_fs_avl) in st_sensors_match_fs() argument 121 if (sensor_settings->fs.fs_avl[i].num == 0) in st_sensors_match_fs() 124 if (sensor_settings->fs.fs_avl[i].num == fs) { in st_sensors_match_fs() 134 static int st_sensors_set_fullscale(struct iio_dev *indio_dev, unsigned int fs) in st_sensors_set_fullscale() argument 139 if (sdata->sensor_settings->fs.addr == 0) in st_sensors_set_fullscale() 142 err = st_sensors_match_fs(sdata->sensor_settings, fs, &i); in st_sensors_set_fullscale() 147 sdata->sensor_settings->fs.addr, in st_sensors_set_fullscale() 148 sdata->sensor_settings->fs.mask, in st_sensors_set_fullscale() 149 sdata->sensor_settings->fs.fs_avl[i].value); in st_sensors_set_fullscale() 153 sdata->current_fullscale = &sdata->sensor_settings->fs.fs_avl[i]; in st_sensors_set_fullscale() [all …]
|
/drivers/mtd/parsers/ |
D | afs.c | 122 struct footer_v1 fs; in afs_parse_v1_partition() local 142 ptr = off + mtd->erasesize - sizeof(fs); in afs_parse_v1_partition() 143 ret = mtd_read(mtd, ptr, sizeof(fs), &sz, (u_char *)&fs); in afs_parse_v1_partition() 144 if (ret >= 0 && sz != sizeof(fs)) in afs_parse_v1_partition() 154 if (word_sum(&fs, sizeof(fs) / sizeof(u32)) != 0xffffffff) in afs_parse_v1_partition() 160 if (fs.type == 2) in afs_parse_v1_partition() 163 iis_ptr = fs.image_info_base & mask; in afs_parse_v1_partition() 164 img_ptr = fs.image_start & mask; in afs_parse_v1_partition()
|
/drivers/media/i2c/s5c73m3/ |
D | s5c73m3-core.c | 115 const struct s5c73m3_frame_size *fs, in s5c73m3_fill_mbus_fmt() argument 118 mf->width = fs->width; in s5c73m3_fill_mbus_fmt() 119 mf->height = fs->height; in s5c73m3_fill_mbus_fmt() 799 const struct s5c73m3_frame_size *fs; in s5c73m3_find_frame_size() local 804 fs = s5c73m3_resolutions[idx]; in s5c73m3_find_frame_size() 807 int dist = abs(fs->width - fmt->width) + in s5c73m3_find_frame_size() 808 abs(fs->height - fmt->height); in s5c73m3_find_frame_size() 811 best_fs = fs; in s5c73m3_find_frame_size() 813 ++fs; in s5c73m3_find_frame_size() 822 const struct s5c73m3_frame_size **fs) in s5c73m3_oif_try_format() argument [all …]
|
/drivers/spi/ |
D | spi-sh-msiof.c | 415 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_8() argument 421 sh_msiof_write(p, SITFDR, buf_8[k] << fs); in sh_msiof_spi_write_fifo_8() 425 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_16() argument 431 sh_msiof_write(p, SITFDR, buf_16[k] << fs); in sh_msiof_spi_write_fifo_16() 435 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_16u() argument 441 sh_msiof_write(p, SITFDR, get_unaligned(&buf_16[k]) << fs); in sh_msiof_spi_write_fifo_16u() 445 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_32() argument 451 sh_msiof_write(p, SITFDR, buf_32[k] << fs); in sh_msiof_spi_write_fifo_32() 455 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_32u() argument 461 sh_msiof_write(p, SITFDR, get_unaligned(&buf_32[k]) << fs); in sh_msiof_spi_write_fifo_32u() [all …]
|
/drivers/comedi/drivers/ |
D | jr3_pci.c | 508 struct force_array __iomem *fs = &sensor->full_scale; in jr3_pci_poll_subdevice() local 512 r[0].l.range[0].min = -get_s16(&fs->fx) * 1000; in jr3_pci_poll_subdevice() 513 r[0].l.range[0].max = get_s16(&fs->fx) * 1000; in jr3_pci_poll_subdevice() 514 r[1].l.range[0].min = -get_s16(&fs->fy) * 1000; in jr3_pci_poll_subdevice() 515 r[1].l.range[0].max = get_s16(&fs->fy) * 1000; in jr3_pci_poll_subdevice() 516 r[2].l.range[0].min = -get_s16(&fs->fz) * 1000; in jr3_pci_poll_subdevice() 517 r[2].l.range[0].max = get_s16(&fs->fz) * 1000; in jr3_pci_poll_subdevice() 518 r[3].l.range[0].min = -get_s16(&fs->mx) * 100; in jr3_pci_poll_subdevice() 519 r[3].l.range[0].max = get_s16(&fs->mx) * 100; in jr3_pci_poll_subdevice() 520 r[4].l.range[0].min = -get_s16(&fs->my) * 100; in jr3_pci_poll_subdevice() [all …]
|
/drivers/scsi/esas2r/ |
D | esas2r_flash.c | 830 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 …]
|