/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_api_cmd.c | 49 #define MASKED_IDX(chain, idx) ((idx) & ((chain)->num_cells - 1)) argument 89 static void set_prod_idx(struct hinic_api_cmd_chain *chain) in set_prod_idx() argument 91 enum hinic_api_cmd_chain_type chain_type = chain->chain_type; in set_prod_idx() 92 struct hinic_hwif *hwif = chain->hwif; in set_prod_idx() 100 prod_idx |= HINIC_API_CMD_PI_SET(chain->prod_idx, IDX); in set_prod_idx() 105 static u32 get_hw_cons_idx(struct hinic_api_cmd_chain *chain) in get_hw_cons_idx() argument 109 addr = HINIC_CSR_API_CMD_STATUS_ADDR(chain->chain_type); in get_hw_cons_idx() 110 val = hinic_hwif_read_reg(chain->hwif, addr); in get_hw_cons_idx() 115 static void dump_api_chain_reg(struct hinic_api_cmd_chain *chain) in dump_api_chain_reg() argument 119 addr = HINIC_CSR_API_CMD_STATUS_ADDR(chain->chain_type); in dump_api_chain_reg() [all …]
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_chain.c | 10 static void qed_chain_init(struct qed_chain *chain, in qed_chain_init() argument 14 memset(chain, 0, sizeof(*chain)); in qed_chain_init() 16 chain->elem_size = params->elem_size; in qed_chain_init() 17 chain->intended_use = params->intended_use; in qed_chain_init() 18 chain->mode = params->mode; in qed_chain_init() 19 chain->cnt_type = params->cnt_type; in qed_chain_init() 21 chain->elem_per_page = ELEMS_PER_PAGE(params->elem_size, in qed_chain_init() 23 chain->usable_per_page = USABLE_ELEMS_PER_PAGE(params->elem_size, in qed_chain_init() 26 chain->elem_unusable = UNUSABLE_ELEMS_PER_PAGE(params->elem_size, in qed_chain_init() 29 chain->elem_per_page_mask = chain->elem_per_page - 1; in qed_chain_init() [all …]
|
D | qed_spq.c | 228 DMA_LO_LE(p_spq->chain.p_phys_addr); in qed_spq_hw_initialize() 230 DMA_HI_LE(p_spq->chain.p_phys_addr); in qed_spq_hw_initialize() 236 struct qed_chain *p_chain = &p_hwfn->p_spq->chain; in qed_spq_hw_post() 341 struct qed_chain *p_chain = &p_eq->chain; in qed_eq_completion() 414 ret = qed_chain_alloc(p_hwfn->cdev, &p_eq->chain, ¶ms); in qed_eq_alloc() 435 qed_chain_reset(&p_hwfn->p_eq->chain); in qed_eq_setup() 443 qed_chain_free(p_hwfn->cdev, &p_hwfn->p_eq->chain); in qed_eq_free() 503 capacity = qed_chain_get_capacity(&p_spq->chain); in qed_spq_setup() 527 qed_chain_reset(&p_spq->chain); in qed_spq_setup() 570 ret = qed_chain_alloc(cdev, &p_spq->chain, ¶ms); in qed_spq_alloc() [all …]
|
/drivers/net/wireless/ath/ath9k/ |
D | ar9003_rtt.c | 72 static void ar9003_hw_rtt_load_hist_entry(struct ath_hw *ah, u8 chain, in ar9003_hw_rtt_load_hist_entry() argument 78 REG_WRITE(ah, AR_PHY_RTT_TABLE_SW_INTF_1_B(chain), val); in ar9003_hw_rtt_load_hist_entry() 83 REG_WRITE(ah, AR_PHY_RTT_TABLE_SW_INTF_B(chain), val); in ar9003_hw_rtt_load_hist_entry() 87 REG_WRITE(ah, AR_PHY_RTT_TABLE_SW_INTF_B(chain), val); in ar9003_hw_rtt_load_hist_entry() 90 if (!ath9k_hw_wait(ah, AR_PHY_RTT_TABLE_SW_INTF_B(chain), in ar9003_hw_rtt_load_hist_entry() 96 REG_WRITE(ah, AR_PHY_RTT_TABLE_SW_INTF_B(chain), val); in ar9003_hw_rtt_load_hist_entry() 99 ath9k_hw_wait(ah, AR_PHY_RTT_TABLE_SW_INTF_B(chain), in ar9003_hw_rtt_load_hist_entry() 106 int chain, i; in ar9003_hw_rtt_load_hist() local 108 for (chain = 0; chain < AR9300_MAX_CHAINS; chain++) { in ar9003_hw_rtt_load_hist() 109 if (!(ah->caps.rx_chainmask & (1 << chain))) in ar9003_hw_rtt_load_hist() [all …]
|
D | link.c | 153 int chain; in ath_paprd_activate() local 161 for (chain = 0; chain < AR9300_MAX_CHAINS; chain++) { in ath_paprd_activate() 162 if (!(ah->txchainmask & BIT(chain))) in ath_paprd_activate() 165 ar9003_paprd_populate_single_table(ah, caldata, chain); in ath_paprd_activate() 172 static bool ath_paprd_send_frame(struct ath_softc *sc, struct sk_buff *skb, int chain) in ath_paprd_send_frame() argument 193 txctl.paprd = BIT(chain); in ath_paprd_send_frame() 207 chain); in ath_paprd_send_frame() 223 int chain; in ath_paprd_calibrate() local 253 for (chain = 0; chain < AR9300_MAX_CHAINS; chain++) { in ath_paprd_calibrate() 254 if (!(ah->txchainmask & BIT(chain))) in ath_paprd_calibrate() [all …]
|
D | ar9003_paprd.c | 305 static unsigned int ar9003_get_desired_gain(struct ath_hw *ah, int chain, in ar9003_get_desired_gain() argument 333 switch (chain) { in ar9003_get_desired_gain() 348 "Invalid chainmask: %d\n", chain); in ar9003_get_desired_gain() 753 int chain) in ar9003_paprd_populate_single_table() argument 755 u32 *paprd_table_val = caldata->pa_table[chain]; in ar9003_paprd_populate_single_table() 756 u32 small_signal_gain = caldata->small_signal_gain[chain]; in ar9003_paprd_populate_single_table() 761 if (chain == 0) in ar9003_paprd_populate_single_table() 763 else if (chain == 1) in ar9003_paprd_populate_single_table() 765 else if (chain == 2) in ar9003_paprd_populate_single_table() 773 if (chain == 0) in ar9003_paprd_populate_single_table() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | fs_chains.c | 43 u32 chain; member 55 u32 chain; member 68 struct fs_chain *chain; member 77 .key_offset = offsetof(struct fs_chain, chain), 78 .key_len = sizeof_field(struct fs_chain, chain), 153 u32 chain, u32 prio, u32 level) in mlx5_chains_create_table() argument 164 sz = (chain == mlx5_chains_get_nf_ft_chain(chains)) ? FT_TBL_SZ : POOL_NEXT_SIZE; in mlx5_chains_create_table() 179 (chain == 0 && prio == 1 && level == 0)) { in mlx5_chains_create_table() 183 mlx5_get_fdb_sub_ns(chains->dev, chain) : in mlx5_chains_create_table() 204 (int)PTR_ERR(ft), chain, prio, level, sz); in mlx5_chains_create_table() [all …]
|
D | fs_chains.h | 43 mlx5_chains_get_table(struct mlx5_fs_chains *chains, u32 chain, u32 prio, 46 mlx5_chains_put_table(struct mlx5_fs_chains *chains, u32 chain, u32 prio, 59 mlx5_chains_get_chain_mapping(struct mlx5_fs_chains *chains, u32 chain, 82 mlx5_chains_get_table(struct mlx5_fs_chains *chains, u32 chain, u32 prio, in mlx5_chains_get_table() argument 85 mlx5_chains_put_table(struct mlx5_fs_chains *chains, u32 chain, u32 prio, in mlx5_chains_put_table() argument
|
/drivers/dma-buf/ |
D | dma-fence-chain.c | 21 static struct dma_fence *dma_fence_chain_get_prev(struct dma_fence_chain *chain) in dma_fence_chain_get_prev() argument 26 prev = dma_fence_get_rcu_safe(&chain->prev); in dma_fence_chain_get_prev() 41 struct dma_fence_chain *chain, *prev_chain; in dma_fence_chain_walk() local 44 chain = to_dma_fence_chain(fence); in dma_fence_chain_walk() 45 if (!chain) { in dma_fence_chain_walk() 50 while ((prev = dma_fence_chain_get_prev(chain))) { in dma_fence_chain_walk() 65 tmp = unrcu_pointer(cmpxchg(&chain->prev, RCU_INITIALIZER(prev), in dma_fence_chain_walk() 92 struct dma_fence_chain *chain; in dma_fence_chain_find_seqno() local 97 chain = to_dma_fence_chain(*pfence); in dma_fence_chain_find_seqno() 98 if (!chain || chain->base.seqno < seqno) in dma_fence_chain_find_seqno() [all …]
|
D | st-dma-fence-unwrap.c | 98 struct dma_fence *f, *chain, *array; in sanitycheck() local 111 chain = mock_chain(NULL, array); in sanitycheck() 112 if (!chain) in sanitycheck() 115 dma_fence_put(chain); in sanitycheck() 165 struct dma_fence *fence, *f1, *f2, *chain; in unwrap_chain() local 183 chain = mock_chain(f1, f2); in unwrap_chain() 184 if (!chain) in unwrap_chain() 187 dma_fence_unwrap_for_each(fence, &iter, chain) { in unwrap_chain() 203 dma_fence_put(chain); in unwrap_chain() 209 struct dma_fence *fence, *f1, *f2, *array, *chain; in unwrap_chain_array() local [all …]
|
/drivers/s390/cio/ |
D | vfio_ccw_cp.c | 319 struct ccwchain *chain; in ccwchain_alloc() local 321 chain = kzalloc(sizeof(*chain), GFP_KERNEL); in ccwchain_alloc() 322 if (!chain) in ccwchain_alloc() 325 chain->ch_ccw = kcalloc(len, sizeof(*chain->ch_ccw), GFP_DMA | GFP_KERNEL); in ccwchain_alloc() 326 if (!chain->ch_ccw) in ccwchain_alloc() 329 chain->ch_pa = kcalloc(len, sizeof(*chain->ch_pa), GFP_KERNEL); in ccwchain_alloc() 330 if (!chain->ch_pa) in ccwchain_alloc() 333 list_add_tail(&chain->next, &cp->ccwchain_list); in ccwchain_alloc() 335 return chain; in ccwchain_alloc() 338 kfree(chain->ch_ccw); in ccwchain_alloc() [all …]
|
D | crw.c | 66 unsigned int chain; in crw_collect_info() local 73 chain = 0; in crw_collect_info() 77 if (unlikely(chain > 1)) { in crw_collect_info() 90 "chain\n", __func__, chain); in crw_collect_info() 93 chain = tmp_crw.chn ? chain + 1 : 0; in crw_collect_info() 96 ccode = stcrw(&crw[chain]); in crw_collect_info() 101 crw[chain].slct, crw[chain].oflw, crw[chain].chn, in crw_collect_info() 102 crw[chain].rsc, crw[chain].anc, crw[chain].erc, in crw_collect_info() 103 crw[chain].rsid); in crw_collect_info() 105 if (crw[chain].oflw) { in crw_collect_info() [all …]
|
/drivers/crypto/marvell/cesa/ |
D | tdma.c | 51 writel_relaxed(dreq->chain.first->cur_dma, in mv_cesa_dma_step() 62 for (tdma = dreq->chain.first; tdma;) { in mv_cesa_dma_cleanup() 75 dreq->chain.first = NULL; in mv_cesa_dma_cleanup() 76 dreq->chain.last = NULL; in mv_cesa_dma_cleanup() 84 for (tdma = dreq->chain.first; tdma; tdma = tdma->next) { in mv_cesa_dma_prepare() 99 if (engine->chain.first == NULL && engine->chain.last == NULL) { in mv_cesa_tdma_chain() 100 engine->chain.first = dreq->chain.first; in mv_cesa_tdma_chain() 101 engine->chain.last = dreq->chain.last; in mv_cesa_tdma_chain() 105 last = engine->chain.last; in mv_cesa_tdma_chain() 106 last->next = dreq->chain.first; in mv_cesa_tdma_chain() [all …]
|
D | hash.c | 317 if (base->chain.first->flags & CESA_TDMA_SET_STATE) { in mv_cesa_ahash_dma_step() 363 (creq->base.chain.last->flags & CESA_TDMA_TYPE_MSK) == in mv_cesa_ahash_complete() 371 data = creq->base.chain.last->op->ctx.hash.hash; in mv_cesa_ahash_complete() 492 mv_cesa_dma_add_frag(struct mv_cesa_tdma_chain *chain, in mv_cesa_dma_add_frag() argument 499 op = mv_cesa_dma_add_op(chain, tmpl, false, flags); in mv_cesa_dma_add_frag() 507 ret = mv_cesa_dma_add_dummy_launch(chain, flags); in mv_cesa_dma_add_frag() 520 mv_cesa_ahash_dma_add_cache(struct mv_cesa_tdma_chain *chain, in mv_cesa_ahash_dma_add_cache() argument 536 return mv_cesa_dma_add_data_transfer(chain, in mv_cesa_ahash_dma_add_cache() 545 mv_cesa_ahash_dma_last_req(struct mv_cesa_tdma_chain *chain, in mv_cesa_ahash_dma_last_req() argument 560 op = mv_cesa_dma_add_frag(chain, &creq->op_tmpl, frag_len, in mv_cesa_ahash_dma_last_req() [all …]
|
D | cesa.h | 466 struct mv_cesa_tdma_chain chain; member 537 struct mv_cesa_tdma_chain chain; member 655 return req->chain.first ? CESA_DMA_REQ : CESA_STD_REQ; in mv_cesa_req_get_type() 813 bool mv_cesa_req_dma_iter_next_transfer(struct mv_cesa_dma_iter *chain, 849 mv_cesa_tdma_desc_iter_init(struct mv_cesa_tdma_chain *chain) in mv_cesa_tdma_desc_iter_init() argument 851 memset(chain, 0, sizeof(*chain)); in mv_cesa_tdma_desc_iter_init() 854 int mv_cesa_dma_add_result_op(struct mv_cesa_tdma_chain *chain, dma_addr_t src, 857 struct mv_cesa_op_ctx *mv_cesa_dma_add_op(struct mv_cesa_tdma_chain *chain, 862 int mv_cesa_dma_add_data_transfer(struct mv_cesa_tdma_chain *chain, 866 int mv_cesa_dma_add_dummy_launch(struct mv_cesa_tdma_chain *chain, gfp_t flags); [all …]
|
/drivers/media/usb/uvc/ |
D | uvc_ctrl.c | 933 static struct uvc_control *uvc_find_control(struct uvc_video_chain *chain, in uvc_find_control() argument 946 list_for_each_entry(entity, &chain->entities, chain) { in uvc_find_control() 953 uvc_dbg(chain->dev, CONTROL, "Control 0x%08x not found\n", in uvc_find_control() 959 static int uvc_ctrl_populate_cache(struct uvc_video_chain *chain, in uvc_ctrl_populate_cache() argument 965 ret = uvc_query_ctrl(chain->dev, UVC_GET_DEF, ctrl->entity->id, in uvc_ctrl_populate_cache() 966 chain->dev->intfnum, ctrl->info.selector, in uvc_ctrl_populate_cache() 974 ret = uvc_query_ctrl(chain->dev, UVC_GET_MIN, ctrl->entity->id, in uvc_ctrl_populate_cache() 975 chain->dev->intfnum, ctrl->info.selector, in uvc_ctrl_populate_cache() 982 ret = uvc_query_ctrl(chain->dev, UVC_GET_MAX, ctrl->entity->id, in uvc_ctrl_populate_cache() 983 chain->dev->intfnum, ctrl->info.selector, in uvc_ctrl_populate_cache() [all …]
|
D | uvc_entity.c | 17 static int uvc_mc_create_links(struct uvc_video_chain *chain, in uvc_mc_create_links() argument 39 remote = uvc_entity_by_id(chain->dev, entity->baSourceID[i]); in uvc_mc_create_links() 70 static int uvc_mc_init_entity(struct uvc_video_chain *chain, in uvc_mc_init_entity() argument 122 ret = v4l2_device_register_subdev(&chain->dev->vdev, in uvc_mc_init_entity() 135 int uvc_mc_register_entities(struct uvc_video_chain *chain) in uvc_mc_register_entities() argument 140 list_for_each_entry(entity, &chain->entities, chain) { in uvc_mc_register_entities() 141 ret = uvc_mc_init_entity(chain, entity); in uvc_mc_register_entities() 143 dev_info(&chain->dev->udev->dev, in uvc_mc_register_entities() 150 list_for_each_entry(entity, &chain->entities, chain) { in uvc_mc_register_entities() 151 ret = uvc_mc_create_links(chain, entity); in uvc_mc_register_entities() [all …]
|
D | uvc_driver.c | 1225 struct uvc_video_chain *chain; in uvc_gpio_event() local 1234 chain = list_first_entry(&dev->chains, struct uvc_video_chain, list); in uvc_gpio_event() 1235 uvc_ctrl_status_event(chain, unit->controls, &new_val); in uvc_gpio_event() 1347 static int uvc_scan_chain_entity(struct uvc_video_chain *chain, in uvc_scan_chain_entity() argument 1355 uvc_dbg(chain->dev, DESCR, in uvc_scan_chain_entity() 1366 if (chain->processing != NULL) { in uvc_scan_chain_entity() 1367 uvc_dbg(chain->dev, DESCR, in uvc_scan_chain_entity() 1372 chain->processing = entity; in uvc_scan_chain_entity() 1382 if (chain->selector != NULL) { in uvc_scan_chain_entity() 1383 uvc_dbg(chain->dev, DESCR, in uvc_scan_chain_entity() [all …]
|
D | uvc_v4l2.c | 29 static int uvc_control_add_xu_mapping(struct uvc_video_chain *chain, in uvc_control_add_xu_mapping() argument 89 ret = uvc_ctrl_add_mapping(chain, map); in uvc_control_add_xu_mapping() 103 static int uvc_ioctl_xu_ctrl_map(struct uvc_video_chain *chain, in uvc_ioctl_xu_ctrl_map() argument 134 ret = uvc_ctrl_add_mapping(chain, map); in uvc_ioctl_xu_ctrl_map() 138 ret = uvc_control_add_xu_mapping(chain, map, xmap); in uvc_ioctl_xu_ctrl_map() 142 uvc_dbg(chain->dev, CONTROL, in uvc_ioctl_xu_ctrl_map() 647 handle->chain = stream->chain; in uvc_v4l2_open() 686 struct uvc_video_chain *chain = handle->chain; in uvc_ioctl_querycap() local 693 | chain->caps; in uvc_ioctl_querycap() 926 struct uvc_video_chain *chain = handle->chain; in uvc_ioctl_enum_input() local [all …]
|
D | uvc_status.c | 144 struct uvc_video_chain **chain) in uvc_event_find_ctrl() argument 146 list_for_each_entry((*chain), &dev->chains, list) { in uvc_event_find_ctrl() 150 list_for_each_entry(entity, &(*chain)->entities, chain) { in uvc_event_find_ctrl() 169 struct uvc_video_chain *chain; in uvc_event_control() local 183 ctrl = uvc_event_find_ctrl(dev, status, &chain); in uvc_event_control() 189 return uvc_ctrl_status_event_async(urb, chain, ctrl, in uvc_event_control() 330 uvc_ctrl_status_event(w->chain, w->ctrl, w->data); in uvc_status_stop() 342 uvc_ctrl_status_event(w->chain, w->ctrl, w->data); in uvc_status_stop()
|
D | uvcvideo.h | 171 struct list_head chain; /* Entity as part of a video device chain. */ member 433 struct uvc_video_chain *chain; member 592 struct uvc_video_chain *chain; member 607 struct uvc_video_chain *chain; member 720 int uvc_mc_register_entities(struct uvc_video_chain *chain); 758 int uvc_query_v4l2_ctrl(struct uvc_video_chain *chain, 760 int uvc_query_v4l2_menu(struct uvc_video_chain *chain, 763 int uvc_ctrl_add_mapping(struct uvc_video_chain *chain, 768 bool uvc_ctrl_status_event_async(struct urb *urb, struct uvc_video_chain *chain, 770 void uvc_ctrl_status_event(struct uvc_video_chain *chain, [all …]
|
/drivers/net/ethernet/toshiba/ |
D | spider_net.c | 277 struct spider_net_descr_chain *chain) in spider_net_free_chain() argument 281 descr = chain->ring; in spider_net_free_chain() 286 } while (descr != chain->ring); in spider_net_free_chain() 288 dma_free_coherent(&card->pdev->dev, chain->num_desc * sizeof(struct spider_net_hw_descr), in spider_net_free_chain() 289 chain->hwring, chain->dma_addr); in spider_net_free_chain() 304 struct spider_net_descr_chain *chain) in spider_net_init_chain() argument 312 alloc_size = chain->num_desc * sizeof(struct spider_net_hw_descr); in spider_net_init_chain() 314 chain->hwring = dma_alloc_coherent(&card->pdev->dev, alloc_size, in spider_net_init_chain() 315 &chain->dma_addr, GFP_KERNEL); in spider_net_init_chain() 316 if (!chain->hwring) in spider_net_init_chain() [all …]
|
/drivers/net/wireless/mediatek/mt76/mt76x2/ |
D | eeprom.c | 198 mt76x2_set_rssi_offset(struct mt76x02_dev *dev, int chain, u8 val) in mt76x2_set_rssi_offset() argument 203 dest[chain] = 0; in mt76x2_set_rssi_offset() 207 dest[chain] = mt76x02_sign_extend_optional(val, 7); in mt76x2_set_rssi_offset() 347 int chain, int offset) in mt76x2_get_power_info_2g() argument 363 t->chain[chain].tssi_slope = data[0]; in mt76x2_get_power_info_2g() 364 t->chain[chain].tssi_offset = data[1]; in mt76x2_get_power_info_2g() 365 t->chain[chain].target_power = data[2]; in mt76x2_get_power_info_2g() 366 t->chain[chain].delta = in mt76x2_get_power_info_2g() 377 int chain, int offset) in mt76x2_get_power_info_5g() argument 415 t->chain[chain].tssi_slope = data[0]; in mt76x2_get_power_info_5g() [all …]
|
D | phy.c | 160 txp_0 = txp.chain[0].target_power + txp.chain[0].delta + delta; in mt76x2_phy_set_txpower() 161 txp_1 = txp.chain[1].target_power + txp.chain[1].delta + delta; in mt76x2_phy_set_txpower() 176 dev->target_power_delta[0] = txp_0 - txp.chain[0].target_power; in mt76x2_phy_set_txpower() 177 dev->target_power_delta[1] = txp_1 - txp.chain[0].target_power; in mt76x2_phy_set_txpower() 228 t.slope0 = txp.chain[0].tssi_slope; in mt76x2_phy_tssi_compensate() 229 t.offset0 = txp.chain[0].tssi_offset; in mt76x2_phy_tssi_compensate() 230 t.slope1 = txp.chain[1].tssi_slope; in mt76x2_phy_tssi_compensate() 231 t.offset1 = txp.chain[1].tssi_offset; in mt76x2_phy_tssi_compensate()
|
/drivers/net/ethernet/mscc/ |
D | ocelot_flower.c | 28 static int ocelot_chain_to_block(int chain, bool ingress) in ocelot_chain_to_block() argument 33 if (chain == 0) in ocelot_chain_to_block() 41 if (chain == 0) in ocelot_chain_to_block() 45 if (chain == VCAP_IS1_CHAIN(lookup)) in ocelot_chain_to_block() 50 if (chain == VCAP_IS2_CHAIN(lookup, pag)) in ocelot_chain_to_block() 53 if (chain == OCELOT_PSFP_CHAIN) in ocelot_chain_to_block() 62 static int ocelot_chain_to_lookup(int chain) in ocelot_chain_to_lookup() argument 67 if (chain == 0) in ocelot_chain_to_lookup() 70 return (chain / VCAP_LOOKUP) % 10; in ocelot_chain_to_lookup() 76 static int ocelot_chain_to_pag(int chain) in ocelot_chain_to_pag() argument [all …]
|