Home
last modified time | relevance | path

Searched refs:rep (Results 1 – 25 of 67) sorted by relevance

123

/drivers/net/ethernet/mellanox/mlx5/core/
Den_rep.c88 struct mlx5_eswitch_rep *rep = rpriv->rep; in mlx5e_rep_update_hw_counters() local
93 err = mlx5_eswitch_get_vport_stats(esw, rep->vport, &vf_stats); in mlx5e_rep_update_hw_counters()
95 pr_warn("vport %d error %d reading stats\n", rep->vport, err); in mlx5e_rep_update_hw_counters()
180 struct mlx5_eswitch_rep *rep = rpriv->rep; in mlx5e_attr_get() local
189 ether_addr_copy(attr->u.ppid.id, rep->hw_id); in mlx5e_attr_get()
202 struct mlx5_eswitch_rep *rep = rpriv->rep; in mlx5e_add_sqs_fwd_rules() local
218 err = mlx5_eswitch_sqs2vport_start(esw, rep, sqs, num_sqs); in mlx5e_add_sqs_fwd_rules()
231 struct mlx5_eswitch_rep *rep = rpriv->rep; in mlx5e_remove_sqs_fwd_rules() local
233 mlx5_eswitch_sqs2vport_stop(esw, rep); in mlx5e_remove_sqs_fwd_rules()
246 struct net_device *netdev = rpriv->rep->netdev; in mlx5e_rep_neigh_update_init_interval()
[all …]
Deswitch_offloads.c127 struct mlx5_eswitch_rep *rep; in esw_set_global_vlan_pop() local
132 rep = &esw->offloads.vport_reps[vf_vport]; in esw_set_global_vlan_pop()
133 if (!rep->valid) in esw_set_global_vlan_pop()
136 err = __mlx5_eswitch_set_vport_vlan(esw, rep->vport, 0, 0, val); in esw_set_global_vlan_pop()
343 struct mlx5_eswitch_rep *rep) in mlx5_eswitch_sqs2vport_stop() argument
350 list_for_each_entry_safe(esw_sq, tmp, &rep->vport_sqs_list, list) { in mlx5_eswitch_sqs2vport_stop()
358 struct mlx5_eswitch_rep *rep, in mlx5_eswitch_sqs2vport_start() argument
378 rep->vport, in mlx5_eswitch_sqs2vport_start()
386 list_add(&esw_sq->list, &rep->vport_sqs_list); in mlx5_eswitch_sqs2vport_start()
391 mlx5_eswitch_sqs2vport_stop(esw, rep); in mlx5_eswitch_sqs2vport_start()
[all …]
Dvport.c728 struct mlx5_hca_vport_context *rep) in mlx5_query_hca_vport_context() argument
763 rep->field_select = MLX5_GET_PR(hca_vport_context, ctx, field_select); in mlx5_query_hca_vport_context()
764 rep->sm_virt_aware = MLX5_GET_PR(hca_vport_context, ctx, sm_virt_aware); in mlx5_query_hca_vport_context()
765 rep->has_smi = MLX5_GET_PR(hca_vport_context, ctx, has_smi); in mlx5_query_hca_vport_context()
766 rep->has_raw = MLX5_GET_PR(hca_vport_context, ctx, has_raw); in mlx5_query_hca_vport_context()
767 rep->policy = MLX5_GET_PR(hca_vport_context, ctx, vport_state_policy); in mlx5_query_hca_vport_context()
768 rep->phys_state = MLX5_GET_PR(hca_vport_context, ctx, in mlx5_query_hca_vport_context()
770 rep->vport_state = MLX5_GET_PR(hca_vport_context, ctx, vport_state); in mlx5_query_hca_vport_context()
771 rep->port_physical_state = MLX5_GET_PR(hca_vport_context, ctx, in mlx5_query_hca_vport_context()
773 rep->port_guid = MLX5_GET64_PR(hca_vport_context, ctx, port_guid); in mlx5_query_hca_vport_context()
[all …]
Deswitch.h145 struct mlx5_eswitch_rep *rep);
147 struct mlx5_eswitch_rep *rep);
263 struct mlx5_eswitch_rep *rep,
266 struct mlx5_eswitch_rep *rep);
277 struct mlx5_eswitch_rep *rep);
/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dconn.c39 struct nvif_notify_conn_rep_v0 rep; in nvkm_conn_hpd() local
45 rep.mask = NVIF_NOTIFY_CONN_V0_UNPLUG; in nvkm_conn_hpd()
47 rep.mask = NVIF_NOTIFY_CONN_V0_PLUG; in nvkm_conn_hpd()
48 rep.version = 0; in nvkm_conn_hpd()
50 nvkm_event_send(&disp->hpd, rep.mask, index, &rep, sizeof(rep)); in nvkm_conn_hpd()
Ddp.c540 struct nvif_notify_conn_rep_v0 rep = {}; in nvkm_dp_hpd() local
546 rep.mask |= NVIF_NOTIFY_CONN_V0_IRQ; in nvkm_dp_hpd()
552 rep.mask |= NVIF_NOTIFY_CONN_V0_UNPLUG; in nvkm_dp_hpd()
554 rep.mask |= NVIF_NOTIFY_CONN_V0_PLUG; in nvkm_dp_hpd()
556 nvkm_event_send(&disp->hpd, rep.mask, conn->index, &rep, sizeof(rep)); in nvkm_dp_hpd()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_surface.c701 struct drm_vmw_surface_arg *rep = &arg->rep; in vmw_surface_define_ioctl() local
866 rep->sid = user_srf->prime.base.hash.key; in vmw_surface_define_ioctl()
975 struct drm_vmw_surface_create_req *rep = &arg->rep; in vmw_surface_reference_ioctl() local
991 rep->flags = srf->flags; in vmw_surface_reference_ioctl()
992 rep->format = srf->format; in vmw_surface_reference_ioctl()
993 memcpy(rep->mip_levels, srf->mip_levels, sizeof(srf->mip_levels)); in vmw_surface_reference_ioctl()
995 rep->size_addr; in vmw_surface_reference_ioctl()
1274 struct drm_vmw_gb_surface_create_rep *rep = &arg->rep; in vmw_gb_surface_define_ioctl() local
1359 rep->handle = user_srf->prime.base.hash.key; in vmw_gb_surface_define_ioctl()
1360 rep->backup_size = res->backup_size; in vmw_gb_surface_define_ioctl()
[all …]
/drivers/hid/intel-ish-hid/
Dishtp-hid.c76 static void ishtp_hid_request(struct hid_device *hid, struct hid_report *rep, in ishtp_hid_request() argument
81 unsigned int len = ((rep->size - 1) >> 3) + 1 + (rep->id > 0); in ishtp_hid_request()
90 hid_ishtp_get_report(hid, rep->id, rep->type); in ishtp_hid_request()
101 hid_output_report(rep, buf + header_size); in ishtp_hid_request()
102 hid_ishtp_set_feature(hid, buf, len, rep->id); in ishtp_hid_request()
/drivers/infiniband/hw/mlx5/
Dib_virt.c56 struct mlx5_hca_vport_context *rep; in mlx5_ib_get_vf_config() local
59 rep = kzalloc(sizeof(*rep), GFP_KERNEL); in mlx5_ib_get_vf_config()
60 if (!rep) in mlx5_ib_get_vf_config()
63 err = mlx5_query_hca_vport_context(mdev, 1, 1, vf + 1, rep); in mlx5_ib_get_vf_config()
70 info->linkstate = mlx_to_net_policy(rep->policy); in mlx5_ib_get_vf_config()
75 kfree(rep); in mlx5_ib_get_vf_config()
/drivers/net/wireless/ath/ath5k/
Deeprom.c1601 struct ath5k_edge_power *rep; in ath5k_eeprom_read_ctl_info() local
1625 rep = ee->ee_ctl_pwr; in ath5k_eeprom_read_ctl_info()
1641 rep += AR5K_EEPROM_N_EDGES; in ath5k_eeprom_read_ctl_info()
1647 rep[j].freq = (val >> 8) & fmask; in ath5k_eeprom_read_ctl_info()
1648 rep[j + 1].freq = val & fmask; in ath5k_eeprom_read_ctl_info()
1652 rep[j].edge = (val >> 8) & pmask; in ath5k_eeprom_read_ctl_info()
1653 rep[j].flag = (val >> 14) & 1; in ath5k_eeprom_read_ctl_info()
1654 rep[j + 1].edge = val & pmask; in ath5k_eeprom_read_ctl_info()
1655 rep[j + 1].flag = (val >> 6) & 1; in ath5k_eeprom_read_ctl_info()
1659 rep[0].freq = (val >> 9) & fmask; in ath5k_eeprom_read_ctl_info()
[all …]
/drivers/staging/lustre/lnet/selftest/
Dframework.c1437 struct srpc_stat_reply *rep = &msg->msg_body.stat_reply; in sfw_unpack_message() local
1439 __swab32s(&rep->str_status); in sfw_unpack_message()
1440 sfw_unpack_sid(rep->str_sid); in sfw_unpack_message()
1441 sfw_unpack_fw_counters(rep->str_fw); in sfw_unpack_message()
1442 sfw_unpack_rpc_counters(rep->str_rpc); in sfw_unpack_message()
1443 sfw_unpack_lnet_counters(rep->str_lnet); in sfw_unpack_message()
1457 struct srpc_mksn_reply *rep = &msg->msg_body.mksn_reply; in sfw_unpack_message() local
1459 __swab32s(&rep->mksn_status); in sfw_unpack_message()
1460 __swab32s(&rep->mksn_timeout); in sfw_unpack_message()
1461 sfw_unpack_sid(rep->mksn_sid); in sfw_unpack_message()
[all …]
Dconrpc.c390 struct srpc_generic_reply *rep; in lstcon_rpc_get_reply() local
410 rep = &(*msgpp)->msg_body.reply; in lstcon_rpc_get_reply()
412 if (rep->sid.ses_nid == LNET_NID_ANY) in lstcon_rpc_get_reply()
414 else if (lstcon_session_match(rep->sid)) in lstcon_rpc_get_reply()
426 struct srpc_msg *rep; in lstcon_rpc_trans_stat() local
438 error = lstcon_rpc_get_reply(crpc, &rep); in lstcon_rpc_trans_stat()
449 lstcon_rpc_stat_reply(trans, rep, crpc->crp_node, stat); in lstcon_rpc_trans_stat()
473 struct srpc_generic_reply *rep; in lstcon_rpc_trans_interpreter() local
519 rep = (struct srpc_generic_reply *)&msg->msg_body.reply; in lstcon_rpc_trans_interpreter()
521 if (copy_to_user(&ent->rpe_sid, &rep->sid, sizeof(rep->sid)) || in lstcon_rpc_trans_interpreter()
[all …]
Dping_test.c173 struct srpc_ping_reply *rep = &rpc->srpc_replymsg.msg_body.ping_reply; in ping_server_handle() local
193 rep->pnr_seq = req->pnr_seq; in ping_server_handle()
194 rep->pnr_magic = LST_PING_TEST_MAGIC; in ping_server_handle()
198 rep->pnr_status = EPROTO; in ping_server_handle()
Dconsole.c374 struct srpc_debug_reply *rep; in lstcon_sesrpc_readent() local
382 rep = &msg->msg_body.dbg_reply; in lstcon_sesrpc_readent()
385 &rep->dbg_timeout, sizeof(int)) || in lstcon_sesrpc_readent()
387 &rep->dbg_name, LST_NAME_SIZE)) in lstcon_sesrpc_readent()
1391 struct srpc_batch_reply *rep = &msg->msg_body.bat_reply; in lstcon_tsbrpc_readent() local
1397 if (copy_to_user(&ent_up->rpe_priv[0], &rep->bar_active, in lstcon_tsbrpc_readent()
1398 sizeof(rep->bar_active))) in lstcon_tsbrpc_readent()
1470 struct srpc_stat_reply *rep = &msg->msg_body.stat_reply; in lstcon_statrpc_readent() local
1475 if (rep->str_status) in lstcon_statrpc_readent()
1482 if (copy_to_user(sfwk_stat, &rep->str_fw, sizeof(*sfwk_stat)) || in lstcon_statrpc_readent()
[all …]
/drivers/gpu/drm/nouveau/
Dnouveau_usif.c78 } *rep = header; in usif_notify() local
83 if (length == sizeof(rep->v0) && rep->v0.version == 0) { in usif_notify()
84 if (WARN_ON(!(ntfy = (void *)(unsigned long)rep->v0.token))) in usif_notify()
86 BUG_ON(rep->v0.route != NVDRM_NOTIFY_USIF); in usif_notify()
98 switch (rep->v0.version) { in usif_notify()
100 struct nvif_notify_rep_v0 *rep = (void *)ntfy->p->e.data; in usif_notify() local
101 rep->route = ntfy->route; in usif_notify()
102 rep->token = ntfy->token; in usif_notify()
Dnouveau_gem.c226 struct drm_nouveau_gem_info *rep) in nouveau_gem_info() argument
233 rep->domain = nvbo->valid_domains; in nouveau_gem_info()
235 rep->domain = NOUVEAU_GEM_DOMAIN_GART; in nouveau_gem_info()
237 rep->domain = NOUVEAU_GEM_DOMAIN_VRAM; in nouveau_gem_info()
238 rep->offset = nvbo->bo.offset; in nouveau_gem_info()
244 rep->offset = vma->offset; in nouveau_gem_info()
247 rep->size = nvbo->bo.mem.num_pages << PAGE_SHIFT; in nouveau_gem_info()
248 rep->map_handle = drm_vma_node_offset_addr(&nvbo->bo.vma_node); in nouveau_gem_info()
249 rep->tile_mode = nvbo->tile_mode; in nouveau_gem_info()
250 rep->tile_flags = nvbo->tile_flags; in nouveau_gem_info()
/drivers/gpu/drm/nouveau/nvkm/core/
Dclient.c78 } rep; member
86 return client->ntfy(&notify->rep, notify->size, n->data, n->size); in nvkm_client_notify()
157 notify->size = sizeof(notify->rep.v0); in nvkm_client_notify_new()
158 notify->rep.v0.version = req->v0.version; in nvkm_client_notify_new()
159 notify->rep.v0.route = req->v0.route; in nvkm_client_notify_new()
160 notify->rep.v0.token = req->v0.token; in nvkm_client_notify_new()
/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/
Dbase.c155 struct nvkm_gpio_ntfy_rep rep = { in nvkm_gpio_intr() local
159 nvkm_event_send(&gpio->event, rep.mask, i, &rep, sizeof(rep)); in nvkm_gpio_intr()
/drivers/input/keyboard/
Dspear-keyboard.c64 bool rep; member
161 kbd->rep = true; in spear_kbd_parse_dt()
220 kbd->rep = pdata->rep; in spear_kbd_probe()
249 if (kbd->rep) in spear_kbd_probe()
/drivers/media/platform/
Dsh_veu.c663 u32 *mant, u32 *frac, u32 *rep) in sh_veu_calc_scale() argument
668 *rep = *mant = *frac = 0; in sh_veu_calc_scale()
684 *rep = 1; in sh_veu_calc_scale()
687 *rep = 3; in sh_veu_calc_scale()
690 *rep = 7; in sh_veu_calc_scale()
693 if (*rep) in sh_veu_calc_scale()
717 u32 mant, frac, value, rep; in sh_veu_scale_v() local
719 sh_veu_calc_scale(veu, size_in, size_out, crop_out, &mant, &frac, &rep); in sh_veu_scale_v()
729 (((rep << 12) | crop_out) << 16); in sh_veu_scale_v()
739 u32 mant, frac, value, rep; in sh_veu_scale_h() local
[all …]
/drivers/isdn/gigaset/
Dev-layer.c1532 struct reply_t *rep; in process_event() local
1565 rep = at_state->replystruct; in process_event()
1600 for (;; rep++) { in process_event()
1601 rcode = rep->resp_code; in process_event()
1610 && ((int) at_state->ConState >= rep->min_ConState) in process_event()
1611 && (rep->max_ConState < 0 in process_event()
1612 || (int) at_state->ConState <= rep->max_ConState) in process_event()
1613 && (rep->parameter < 0 || rep->parameter == ev->parameter)) in process_event()
1617 p_command = rep->command; in process_event()
1623 do_action(rep->action[curact], cs, bcs, &at_state, &p_command, in process_event()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
Dbase.c149 struct nvkm_i2c_ntfy_rep rep = { in nvkm_i2c_intr() local
152 nvkm_event_send(&i2c->event, rep.mask, aux->id, in nvkm_i2c_intr()
153 &rep, sizeof(rep)); in nvkm_i2c_intr()
/drivers/tty/vt/
Dkeyboard.c131 static char rep; /* flag telling character repeat */ variable
285 rpt[1].delay = dev->rep[REP_DELAY]; in kbd_rate_helper()
286 rpt[1].period = dev->rep[REP_PERIOD]; in kbd_rate_helper()
459 if (rep) in fn_caps_toggle()
467 if (rep) in fn_caps_on()
485 if (rep || !tty) in fn_hold()
515 if (!rep) in fn_bare_num()
791 if (rep) in k_shift()
864 if (up_flag || rep) in k_lock()
873 if (up_flag || rep) in k_slock()
[all …]
/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dbase.c205 struct nvif_notify_uevent_rep rep = { in nvkm_fifo_uevent() local
207 nvkm_event_send(&fifo->uevent, 1, 0, &rep, sizeof(rep)); in nvkm_fifo_uevent()
/drivers/input/
Dinput.c78 dev->rep[REP_PERIOD] && dev->rep[REP_DELAY] && in input_start_autorepeat()
82 jiffies + msecs_to_jiffies(dev->rep[REP_DELAY])); in input_start_autorepeat()
198 if (dev->rep[REP_PERIOD]) in input_repeat_key()
200 msecs_to_jiffies(dev->rep[REP_PERIOD])); in input_repeat_key()
349 if (code <= REP_MAX && value >= 0 && dev->rep[code] != value) { in input_get_disposition()
350 dev->rep[code] = value; in input_get_disposition()
1657 dev->event(dev, EV_REP, REP_PERIOD, dev->rep[REP_PERIOD]); in input_dev_toggle()
1658 dev->event(dev, EV_REP, REP_DELAY, dev->rep[REP_DELAY]); in input_dev_toggle()
2066 dev->rep[REP_DELAY] = delay; in input_enable_softrepeat()
2067 dev->rep[REP_PERIOD] = period; in input_enable_softrepeat()
[all …]

123