/linux/drivers/iio/ |
H A D | industrialio-backend.c | 72 struct iio_backend *back; member 82 #define iio_backend_check_op(back, op) ({ \ argument 83 struct iio_backend *____back = back; \ 92 #define iio_backend_op_call(back, op, args...) ({ \ argument 93 struct iio_backend *__back = back; \ 103 #define iio_backend_ptr_op_call(back, op, args...) ({ \ argument 104 struct iio_backend *__back = back; \ 117 #define iio_backend_void_op_call(back, op, args...) { \ argument 118 struct iio_backend *__back = back; \ 133 struct iio_backend *back = file->private_data; in iio_backend_debugfs_read_reg() local [all …]
|
/linux/include/linux/iio/ |
H A D | backend.h | 94 int (*enable)(struct iio_backend *back); 95 void (*disable)(struct iio_backend *back); 96 int (*chan_enable)(struct iio_backend *back, unsigned int chan); 97 int (*chan_disable)(struct iio_backend *back, unsigned int chan); 98 int (*data_format_set)(struct iio_backend *back, unsigned int chan, 100 int (*data_source_set)(struct iio_backend *back, unsigned int chan, 102 int (*set_sample_rate)(struct iio_backend *back, unsigned int chan, 104 int (*test_pattern_set)(struct iio_backend *back, 107 int (*chan_status)(struct iio_backend *back, unsigned int chan, 109 int (*iodelay_set)(struct iio_backend *back, unsigned int chan, [all …]
|
/linux/drivers/iio/adc/ |
H A D | adi-axi-adc.c | 90 static int axi_adc_enable(struct iio_backend *back) in axi_adc_enable() argument 92 struct adi_axi_adc_state *st = iio_backend_get_priv(back); in axi_adc_enable() 117 static void axi_adc_disable(struct iio_backend *back) in axi_adc_disable() argument 119 struct adi_axi_adc_state *st = iio_backend_get_priv(back); in axi_adc_disable() 125 static int axi_adc_data_format_set(struct iio_backend *back, unsigned int chan, in axi_adc_data_format_set() argument 128 struct adi_axi_adc_state *st = iio_backend_get_priv(back); in axi_adc_data_format_set() 146 static int axi_adc_data_sample_trigger(struct iio_backend *back, in axi_adc_data_sample_trigger() argument 149 struct adi_axi_adc_state *st = iio_backend_get_priv(back); in axi_adc_data_sample_trigger() 163 static int axi_adc_iodelays_set(struct iio_backend *back, unsigned int lane, in axi_adc_iodelays_set() argument 166 struct adi_axi_adc_state *st = iio_backend_get_priv(back); in axi_adc_iodelays_set() [all …]
|
H A D | ad9467.c | 161 struct iio_backend *back; member 551 ret = iio_backend_data_format_set(st->back, chan, &data); in ad9467_backend_testmode_on() 555 ret = iio_backend_test_pattern_set(st->back, chan, pattern); in ad9467_backend_testmode_on() 559 return iio_backend_chan_enable(st->back, chan); in ad9467_backend_testmode_on() 571 ret = iio_backend_chan_disable(st->back, chan); in ad9467_backend_testmode_off() 575 ret = iio_backend_test_pattern_set(st->back, chan, in ad9467_backend_testmode_off() 580 return iio_backend_data_format_set(st->back, chan, &data); in ad9467_backend_testmode_off() 626 return iio_backend_data_sample_trigger(st->back, trigger); in ad9647_calibrate_polarity_set() 669 ret = iio_backend_iodelay_set(st->back, lane, val); in ad9467_calibrate_apply() 726 ret = iio_backend_chan_status(st->back, c, &stat); in ad9467_calibrate() [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_fltr.c | 61 struct ice_pf *pf = hw->back; in ice_fltr_set_vlan_vsi_promisc() 85 struct ice_pf *pf = hw->back; in ice_fltr_clear_vlan_vsi_promisc() 108 struct ice_pf *pf = hw->back; in ice_fltr_clear_vsi_promisc() 131 struct ice_pf *pf = hw->back; in ice_fltr_set_vsi_promisc() 150 return ice_add_mac(&vsi->back->hw, list); in ice_fltr_add_mac_list() 160 return ice_remove_mac(&vsi->back->hw, list); in ice_fltr_remove_mac_list() 170 return ice_add_vlan(&vsi->back->hw, list); in ice_fltr_add_vlan_list() 181 return ice_remove_vlan(&vsi->back->hw, list); in ice_fltr_remove_vlan_list() 191 return ice_add_eth_mac(&vsi->back->hw, list); in ice_fltr_add_eth_list() 201 return ice_remove_eth_mac(&vsi->back->hw, list); in ice_fltr_remove_eth_list() [all …]
|
H A D | ice_vsi_vlan_lib.c | 11 dev_err(ice_pf_to_dev(vsi->back), "%s %d specified invalid VLAN tpid 0x%04x\n", in print_invalid_tpid() 53 dev_err(ice_pf_to_dev(vsi->back), "Failure Adding VLAN %d on VSI %i, status %d\n", in ice_vsi_add_vlan() 66 struct ice_pf *pf = vsi->back; in ice_vsi_del_vlan() 93 struct ice_hw *hw = &vsi->back->hw; in ice_vsi_manage_vlan_insertion() 115 dev_err(ice_pf_to_dev(vsi->back), "update VSI for VLAN insert failed, err %d aq_err %s\n", in ice_vsi_manage_vlan_insertion() 133 struct ice_hw *hw = &vsi->back->hw; in ice_vsi_manage_vlan_stripping() 171 dev_err(ice_pf_to_dev(vsi->back), "update VSI for VLAN strip failed, ena = %d err %d aq_err %s\n", in ice_vsi_manage_vlan_stripping() 237 struct ice_hw *hw = &vsi->back->hw; in __ice_vsi_set_inner_port_vlan() 290 struct ice_hw *hw = &vsi->back->hw; in ice_vsi_clear_inner_port_vlan() 338 pf = vsi->back; in ice_cfg_vlan_pruning() [all …]
|
H A D | ice_lib.c | 55 ice_flush(&vsi->back->hw); in ice_vsi_ctrl_all_rx_rings() 75 struct ice_pf *pf = vsi->back; in ice_vsi_alloc_arrays() 154 dev_dbg(ice_pf_to_dev(vsi->back), "Not setting number of Tx/Rx descriptors for VSI type %d\n", in ice_vsi_set_num_desc() 169 struct ice_pf *pf = vsi->back; in ice_vsi_set_num_qs() 282 struct ice_pf *pf = vsi->back; in ice_vsi_delete_from_hw() 311 struct ice_pf *pf = vsi->back; in ice_vsi_free_arrays() 336 struct ice_pf *pf = vsi->back; in ice_vsi_free_stats() 377 struct ice_pf *pf = vsi->back; in ice_vsi_alloc_ring_stats() 441 if (!vsi || !vsi->back) in ice_vsi_free() 444 pf = vsi->back; in ice_vsi_free() [all …]
|
H A D | ice_arfs.c | 28 struct ice_pf *pf = hw->back; in ice_is_arfs_using_perfect_flow() 91 …dev_err(ice_pf_to_dev(vsi->back), "aRFS: Failed to update filter counters, invalid filter type %d\… in ice_arfs_update_active_fltr_cntrs() 112 dev = ice_pf_to_dev(vsi->back); in ice_arfs_del_flow_rules() 117 result = ice_fdir_write_fltr(vsi->back, &e->fltr_info, false, in ice_arfs_del_flow_rules() 149 dev = ice_pf_to_dev(vsi->back); in ice_arfs_add_flow_rules() 154 result = ice_fdir_write_fltr(vsi->back, in ice_arfs_add_flow_rules() 223 dev = ice_pf_to_dev(vsi->back); in ice_arfs_update_flow_rules() 308 arfs_entry = devm_kzalloc(ice_pf_to_dev(vsi->back), in ice_arfs_build_entry() 414 pf = vsi->back; in ice_rx_flow_steer() 547 if (!vsi || vsi->type != ICE_VSI_PF || !vsi->back || in ice_clear_arfs() [all …]
|
H A D | ice_base.c | 104 struct ice_pf *pf = vsi->back; in ice_vsi_alloc_q_vector() 181 struct ice_pf *pf = vsi->back; in ice_free_q_vector() 294 struct ice_hw *hw = &vsi->back->hw; in ice_setup_tx_ctx() 388 hw = &vsi->back->hw; in ice_setup_rx_ctx() 457 if (ice_is_eswitch_mode_switchdev(vsi->back)) { in ice_setup_rx_ctx() 477 …dev_err(ice_pf_to_dev(vsi->back), "Failed to set LAN Rx queue context for absolute Rx queue %d err… in ice_setup_rx_ctx() 486 if (!vsi->netdev || test_bit(ICE_FLAG_LEGACY_RX, vsi->back->flags)) in ice_setup_rx_ctx() 540 struct device *dev = ice_pf_to_dev(ring->vsi->back); in ice_vsi_cfg_rxq() 647 if (!vsi->netdev || test_bit(ICE_FLAG_LEGACY_RX, vsi->back->flags)) { in ice_vsi_cfg_frame_size() 726 struct ice_pf *pf = vsi->back; in ice_vsi_ctrl_one_rx_ring() [all …]
|
H A D | ice_vf_vsi_vlan_ops.c | 27 struct ice_pf *pf = vsi->back; in ice_port_vlan_on() 60 struct ice_pf *pf = vsi->back; in ice_port_vlan_off() 133 struct ice_pf *pf = vsi->back; in ice_vf_vsi_init_vlan_ops() 176 if (!ice_is_dvm_ena(&vsi->back->hw) || ice_vf_is_port_vlan_ena(vf)) in ice_vf_vsi_cfg_dvm_legacy_vlan_mode() 243 if (ice_is_dvm_ena(&vsi->back->hw) || ice_vf_is_port_vlan_ena(vf)) in ice_vf_vsi_cfg_svm_legacy_vlan_mode()
|
/linux/fs/bcachefs/ |
H A D | fifo.h | 9 size_t front, back, size, mask; \ 22 (fifo)->front = (fifo)->back = 0; \ 39 swap((l)->back, (r)->back); \ 53 #define fifo_used(fifo) (((fifo)->back - (fifo)->front)) 56 #define fifo_empty(fifo) ((fifo)->front == (fifo)->back) 60 #define fifo_peek_back(fifo) ((fifo)->data[((fifo)->back - 1) & (fifo)->mask]) 64 ? (fifo)->front : (fifo)->back) & ~(fifo)->mask) + \ 71 (fifo_full((f)) ? NULL : &(f)->data[(f)->back++ & (f)->mask]) 104 (i) = (fifo)->data[--(fifo)->back & (fifo)->mask]; \ 116 ((_iter != (_fifo)->back) && \ [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/crypto/ |
H A D | tls.c | 189 return &req->back; in nfp_net_tls_set_ipv4() 209 return &req->back; in nfp_net_tls_set_ipv6() 214 struct nfp_crypto_req_add_back *back, struct sock *sk, in nfp_net_tls_set_l4() argument 222 back->src_port = 0; in nfp_net_tls_set_l4() 223 back->dst_port = 0; in nfp_net_tls_set_l4() 225 back->src_port = inet->inet_dport; in nfp_net_tls_set_l4() 226 back->dst_port = inet->inet_sport; in nfp_net_tls_set_l4() 273 struct nfp_crypto_req_add_back *back; in nfp_net_tls_add() local 328 back = nfp_net_tls_set_ipv6(nn, req, sk, direction); in nfp_net_tls_add() 330 back = nfp_net_tls_set_ipv4(nn, req, sk, direction); in nfp_net_tls_add() [all …]
|
/linux/drivers/iio/dac/ |
H A D | adi-axi-dac.c | 85 static int axi_dac_enable(struct iio_backend *back) in axi_dac_enable() argument 87 struct axi_dac_state *st = iio_backend_get_priv(back); in axi_dac_enable() 110 static void axi_dac_disable(struct iio_backend *back) in axi_dac_disable() argument 112 struct axi_dac_state *st = iio_backend_get_priv(back); in axi_dac_disable() 118 static struct iio_buffer *axi_dac_request_buffer(struct iio_backend *back, in axi_dac_request_buffer() argument 121 struct axi_dac_state *st = iio_backend_get_priv(back); in axi_dac_request_buffer() 131 static void axi_dac_free_buffer(struct iio_backend *back, in axi_dac_free_buffer() argument 376 static int axi_dac_ext_info_set(struct iio_backend *back, uintptr_t private, in axi_dac_ext_info_set() argument 380 struct axi_dac_state *st = iio_backend_get_priv(back); in axi_dac_ext_info_set() 400 static int axi_dac_ext_info_get(struct iio_backend *back, uintptr_t private, in axi_dac_ext_info_get() argument [all …]
|
H A D | ad9739a.c | 74 struct iio_backend *back; member 140 return iio_backend_data_source_set(st->back, 0, IIO_BACKEND_EXTERNAL); in ad9739a_buffer_preenable() 147 return iio_backend_data_source_set(st->back, 0, in ad9739a_buffer_postdisable() 408 st->back = devm_iio_backend_get(dev, NULL); in ad9739a_probe() 409 if (IS_ERR(st->back)) in ad9739a_probe() 410 return PTR_ERR(st->back); in ad9739a_probe() 412 ret = devm_iio_backend_request_buffer(dev, st->back, indio_dev); in ad9739a_probe() 416 ret = iio_backend_extend_chan_spec(st->back, &ad9739a_channels[0]); in ad9739a_probe() 420 ret = iio_backend_set_sampling_freq(st->back, 0, st->sample_rate); in ad9739a_probe() 424 ret = devm_iio_backend_enable(dev, st->back); in ad9739a_probe() [all …]
|
/linux/Documentation/scsi/ |
H A D | sd-parameters.rst | 16 write back 1 0 on on 17 write back, no read (daft) 1 1 on off 20 To set cache type to "write back" and save this setting to the drive:: 22 # echo "write back" > cache_type 27 # echo "temporary write back" > cache_type
|
/linux/fs/erofs/ |
H A D | namei.c | 50 int head, back; in find_target_dirent() local 56 back = ndirents - 1; in find_target_dirent() 59 while (head <= back) { in find_target_dirent() 60 const int mid = head + (back - head) / 2; in find_target_dirent() 81 back = mid - 1; in find_target_dirent() 93 int head = 0, back = erofs_iblks(dir) - 1; in erofs_find_target_block() local 97 while (head <= back) { in erofs_find_target_block() 98 const int mid = head + (back - head) / 2; in erofs_find_target_block() 135 back = mid - 1; in erofs_find_target_block()
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_mbx.c | 36 struct hclge_dev *hdev = vport->back; in hclge_gen_resp_to_vf() 95 struct hclge_dev *hdev = vport->back; in hclge_send_mbx_msg() 142 struct hclge_dev *hdev = vport->back; in hclge_inform_reset_assert_to_vf() 186 struct hclge_dev *hdev = vport->back; in hclge_get_ring_chain_from_mbx() 265 struct hclge_dev *hdev = vport->back; in hclge_query_ring_vector_map() 338 struct hclge_dev *hdev = vport->back; in hclge_set_vf_promisc_mode() 360 struct hclge_dev *hdev = vport->back; in hclge_set_vf_uc_mac_addr() 402 struct hclge_dev *hdev = vport->back; in hclge_set_vf_mc_mac_addr() 443 struct hclge_dev *hdev = vport->back; in hclge_set_vf_vlan_cfg() 494 struct hnae3_ae_dev *ae_dev = vport->back->ae_dev; in hclge_get_basic_info() [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-bdi | 38 total write-back cache that relates to its current average 42 percentage of the write-back cache to a particular device. 52 total write-back cache that relates to its current average 56 of the write-back cache to a particular device. The value is 67 given percentage of the write-back cache. This is useful in 69 most of the write-back cache. For example in case of an NFS 80 given value of the write-back cache. The value is given as part 82 one device taking all or most of the write-back cache. For example 93 total write-back cache that relates to its current average 97 percentage of the write-back cache to a particular device [all …]
|
H A D | sysfs-bus-surface_aggregator-tabletsw | 18 - "folded-canvas": The type-cover has been folded back 19 part-ways, but does not lie flush with the back side of the 23 - "folded-back": The type cover has been fully folded back and 24 lies flush with the back side of the device. 47 back and the device operates mainly based on touch input.
|
/linux/lib/lz4/ |
H A D | lz4hc_compress.c | 208 int back = 0; in LZ4HC_InsertAndGetWiderMatch() local 210 while ((ip + back > iLowLimit) in LZ4HC_InsertAndGetWiderMatch() 211 && (matchPtr + back > lowPrefixPtr) in LZ4HC_InsertAndGetWiderMatch() 212 && (ip[back - 1] == matchPtr[back - 1])) in LZ4HC_InsertAndGetWiderMatch() 213 back--; in LZ4HC_InsertAndGetWiderMatch() 215 mlt -= back; in LZ4HC_InsertAndGetWiderMatch() 219 *matchpos = matchPtr + back; in LZ4HC_InsertAndGetWiderMatch() 220 *startpos = ip + back; in LZ4HC_InsertAndGetWiderMatch() 229 int back = 0; in LZ4HC_InsertAndGetWiderMatch() local 241 while ((ip + back > iLowLimit) in LZ4HC_InsertAndGetWiderMatch() [all …]
|
/linux/Documentation/driver-api/md/ |
H A D | raid5-cache.rst | 8 since 4.4) or write-back mode (supported since 4.10). mdadm (supported since 11 in write-through mode. A user can switch it to write-back mode by:: 13 echo "write-back" > /sys/block/md0/md/journal_mode 15 And switch it back to write-through mode by:: 30 tries to resync the array to bring it back to normal state. But before the 47 write-back mode 50 write-back mode fixes the 'write hole' issue too, since all write data is 51 cached on cache disk. But the main goal of 'write-back' cache is to speed up 56 overhead too. Write-back cache will aggregate the data and flush the data to 61 In write-back mode, MD reports IO completion to upper layer (usually [all …]
|
/linux/drivers/md/bcache/ |
H A D | util.h | 52 size_t front, back, size, mask; \ 58 c = (fifo)->data[iter], iter != (fifo)->back; \ 70 (fifo)->front = (fifo)->back = 0; \ 96 #define fifo_used(fifo) (((fifo)->back - (fifo)->front) & (fifo)->mask) 104 ((fifo)->data[((fifo)->back - 1) & (fifo)->mask]) 112 (fifo)->data[(fifo)->back++] = (i); \ 113 (fifo)->back &= (fifo)->mask; \ 143 --(fifo)->back; \ 144 (fifo)->back &= (fifo)->mask; \ 145 (i) = (fifo)->data[(fifo)->back] \ [all …]
|
/linux/scripts/coccinelle/iterators/ |
H A D | list_entry_update.cocci | 5 /// that there is a path from the reassignment back to the top of the loop. 39 @back depends on (org || report) && !context exists@ 49 @script:python depends on back && org@ 57 @script:python depends on back && report@
|
/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_main.c | 350 struct i40e_pf *pf = vsi->back; in i40e_tx_timeout() 716 struct i40e_pf *pf = vsi->back; in i40e_update_eth_stats() 864 struct i40e_pf *pf = vsi->back; in i40e_update_vsi_stats() 1235 struct i40e_pf *pf = vsi->back; in i40e_update_stats() 1484 struct i40e_pf *pf = vsi->back; in i40e_get_vf_new_vlan() 1584 struct i40e_pf *pf = vsi->back; in i40e_rm_default_mac_filter() 1647 set_bit(__I40E_MACVLAN_SYNC_PENDING, vsi->back->state); in i40e_add_filter() 1697 set_bit(__I40E_MACVLAN_SYNC_PENDING, vsi->back->state); in __i40e_del_filter() 1803 struct i40e_pf *pf = vsi->back; in i40e_set_mac() 1860 struct i40e_pf *pf = vsi->back; in i40e_config_rss_aq() [all …]
|
/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-packet.h | 52 uint64_t back:4; member 63 uint64_t back:4;
|