Home
last modified time | relevance | path

Searched refs:rec (Results 1 – 25 of 61) sorted by relevance

123

/drivers/net/ethernet/aquantia/atlantic/macsec/
Dmacsec_api.c263 const struct aq_mss_ingress_prectlf_record *rec, in set_ingress_prectlf_record() argument
273 packed_record[0] = rec->sa_da[0] & 0xFFFF; in set_ingress_prectlf_record()
274 packed_record[1] = (rec->sa_da[0] >> 16) & 0xFFFF; in set_ingress_prectlf_record()
275 packed_record[2] = rec->sa_da[1] & 0xFFFF; in set_ingress_prectlf_record()
276 packed_record[3] = rec->eth_type & 0xFFFF; in set_ingress_prectlf_record()
277 packed_record[4] = rec->match_mask & 0xFFFF; in set_ingress_prectlf_record()
278 packed_record[5] = rec->match_type & 0xF; in set_ingress_prectlf_record()
279 packed_record[5] |= (rec->action & 0x1) << 4; in set_ingress_prectlf_record()
287 const struct aq_mss_ingress_prectlf_record *rec, in aq_mss_set_ingress_prectlf_record() argument
290 return AQ_API_CALL_SAFE(set_ingress_prectlf_record, hw, rec, in aq_mss_set_ingress_prectlf_record()
[all …]
Dmacsec_api.h54 struct aq_mss_egress_ctlf_record *rec,
63 const struct aq_mss_egress_ctlf_record *rec,
72 struct aq_mss_egress_class_record *rec,
81 const struct aq_mss_egress_class_record *rec,
90 struct aq_mss_egress_sc_record *rec,
99 const struct aq_mss_egress_sc_record *rec,
108 struct aq_mss_egress_sa_record *rec,
117 const struct aq_mss_egress_sa_record *rec,
126 struct aq_mss_egress_sakey_record *rec,
135 const struct aq_mss_egress_sakey_record *rec,
[all …]
/drivers/s390/scsi/
Dzfcp_dbf.c75 struct zfcp_dbf_hba *rec = &dbf->hba_buf; in zfcp_dbf_hba_fsf_res() local
79 memset(rec, 0, sizeof(*rec)); in zfcp_dbf_hba_fsf_res()
81 memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); in zfcp_dbf_hba_fsf_res()
82 rec->id = ZFCP_DBF_HBA_RES; in zfcp_dbf_hba_fsf_res()
83 rec->fsf_req_id = req->req_id; in zfcp_dbf_hba_fsf_res()
84 rec->fsf_req_status = req->status; in zfcp_dbf_hba_fsf_res()
85 rec->fsf_cmd = q_head->fsf_command; in zfcp_dbf_hba_fsf_res()
86 rec->fsf_seq_no = q_pref->req_seq_no; in zfcp_dbf_hba_fsf_res()
87 rec->u.res.req_issued = req->issued; in zfcp_dbf_hba_fsf_res()
88 rec->u.res.prot_status = q_pref->prot_status; in zfcp_dbf_hba_fsf_res()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_i2c.c44 struct amdgpu_i2c_bus_rec *rec = &i2c->rec; in amdgpu_i2c_pre_xfer() local
50 if (rec->hw_capable) { in amdgpu_i2c_pre_xfer()
51 temp = RREG32(rec->mask_clk_reg); in amdgpu_i2c_pre_xfer()
53 WREG32(rec->mask_clk_reg, temp); in amdgpu_i2c_pre_xfer()
57 temp = RREG32(rec->a_clk_reg) & ~rec->a_clk_mask; in amdgpu_i2c_pre_xfer()
58 WREG32(rec->a_clk_reg, temp); in amdgpu_i2c_pre_xfer()
60 temp = RREG32(rec->a_data_reg) & ~rec->a_data_mask; in amdgpu_i2c_pre_xfer()
61 WREG32(rec->a_data_reg, temp); in amdgpu_i2c_pre_xfer()
64 temp = RREG32(rec->en_clk_reg) & ~rec->en_clk_mask; in amdgpu_i2c_pre_xfer()
65 WREG32(rec->en_clk_reg, temp); in amdgpu_i2c_pre_xfer()
[all …]
Damdgpu_i2c.h28 const struct amdgpu_i2c_bus_rec *rec,
34 const struct amdgpu_i2c_bus_rec *rec,
/drivers/usb/misc/
Demi26.c76 const struct ihex_binrec *rec; in emi26_load_firmware() local
109 rec = (const struct ihex_binrec *)loader_fw->data; in emi26_load_firmware()
111 while (rec) { in emi26_load_firmware()
112 err = emi26_writememory(dev, be32_to_cpu(rec->addr), in emi26_load_firmware()
113 rec->data, be16_to_cpu(rec->len), in emi26_load_firmware()
117 rec = ihex_next_binrec(rec); in emi26_load_firmware()
129 rec = (const struct ihex_binrec *)bitstream_fw->data; in emi26_load_firmware()
132 addr = be32_to_cpu(rec->addr); in emi26_load_firmware()
135 while (rec && (i + be16_to_cpu(rec->len) < FW_LOAD_SIZE)) { in emi26_load_firmware()
136 memcpy(buf + i, rec->data, be16_to_cpu(rec->len)); in emi26_load_firmware()
[all …]
Demi62.c84 const struct ihex_binrec *rec; in emi62_load_firmware() local
115 rec = (const struct ihex_binrec *)loader_fw->data; in emi62_load_firmware()
118 while (rec) { in emi62_load_firmware()
119 err = emi62_writememory(dev, be32_to_cpu(rec->addr), in emi62_load_firmware()
120 rec->data, be16_to_cpu(rec->len), in emi62_load_firmware()
124 rec = ihex_next_binrec(rec); in emi62_load_firmware()
136 rec = (const struct ihex_binrec *)bitstream_fw->data; in emi62_load_firmware()
139 addr = be32_to_cpu(rec->addr); in emi62_load_firmware()
142 while (rec && (i + be16_to_cpu(rec->len) < FW_LOAD_SIZE)) { in emi62_load_firmware()
143 memcpy(buf + i, rec->data, be16_to_cpu(rec->len)); in emi62_load_firmware()
[all …]
/drivers/gpu/drm/radeon/
Dradeon_i2c.c89 struct radeon_i2c_bus_rec *rec = &i2c->rec; in pre_xfer() local
98 if (rec->hw_capable) { in pre_xfer()
111 if (rec->a_clk_reg == reg) { in pre_xfer()
123 if (ASIC_IS_DCE3(rdev) && rec->hw_capable) { in pre_xfer()
124 temp = RREG32(rec->mask_clk_reg); in pre_xfer()
126 WREG32(rec->mask_clk_reg, temp); in pre_xfer()
130 temp = RREG32(rec->a_clk_reg) & ~rec->a_clk_mask; in pre_xfer()
131 WREG32(rec->a_clk_reg, temp); in pre_xfer()
133 temp = RREG32(rec->a_data_reg) & ~rec->a_data_mask; in pre_xfer()
134 WREG32(rec->a_data_reg, temp); in pre_xfer()
[all …]
Dradeon_dp_auxch.c63 int instance = chan->rec.i2c_id & 0xf; in radeon_dp_aux_transfer_native()
99 tmp = RREG32(chan->rec.mask_clk_reg); in radeon_dp_aux_transfer_native()
101 WREG32(chan->rec.mask_clk_reg, tmp); in radeon_dp_aux_transfer_native()
107 tmp |= AUX_HPD_SEL(chan->rec.hpd); in radeon_dp_aux_transfer_native()
/drivers/infiniband/core/
Dmulticast.c97 struct ib_sa_mcmember_rec rec; member
124 static void join_handler(int status, struct ib_sa_mcmember_rec *rec,
126 static void leave_handler(int status, struct ib_sa_mcmember_rec *rec,
138 ret = memcmp(mgid->raw, group->rec.mgid.raw, sizeof *mgid); in mcast_find()
163 ret = memcmp(group->rec.mgid.raw, cur_group->rec.mgid.raw, in mcast_insert()
164 sizeof group->rec.mgid); in mcast_insert()
252 return leave_state & group->rec.join_state; in get_leave_state()
338 &member->multicast.rec, in send_join()
348 struct ib_sa_mcmember_rec rec; in send_leave() local
351 rec = group->rec; in send_leave()
[all …]
Dsa_query.c134 void (*callback)(int status, struct sa_path_rec *rec,
1201 struct sa_path_rec *rec, in init_ah_attr_grh_fields() argument
1205 enum ib_gid_type type = sa_conv_pathrec_to_gid_type(rec); in init_ah_attr_grh_fields()
1208 gid_attr = rdma_find_gid_by_port(device, &rec->sgid, type, in init_ah_attr_grh_fields()
1215 rdma_move_grh_sgid_attr(ah_attr, &rec->dgid, in init_ah_attr_grh_fields()
1216 be32_to_cpu(rec->flow_label), in init_ah_attr_grh_fields()
1217 rec->hop_limit, rec->traffic_class, in init_ah_attr_grh_fields()
1239 struct sa_path_rec *rec, in ib_init_ah_attr_from_path() argument
1247 rdma_ah_set_sl(ah_attr, rec->sl); in ib_init_ah_attr_from_path()
1249 rdma_ah_set_static_rate(ah_attr, rec->rate); in ib_init_ah_attr_from_path()
[all …]
/drivers/infiniband/hw/mlx4/
Dalias_GUID.c196 struct mlx4_sriov_alias_guid_info_rec_det *rec; in mlx4_ib_notify_slaves_on_guid_change() local
203 rec = &dev->sriov.alias_guid.ports_guid[port_num - 1]. in mlx4_ib_notify_slaves_on_guid_change()
236 required_value = *(__be64 *)&rec->all_recs[i * GUID_REC_SIZE]; in mlx4_ib_notify_slaves_on_guid_change()
242 rec->guid_indexes = rec->guid_indexes & in mlx4_ib_notify_slaves_on_guid_change()
295 struct mlx4_sriov_alias_guid_info_rec_det *rec; in aliasguid_query_handler() local
306 rec = &dev->sriov.alias_guid.ports_guid[port_index]. in aliasguid_query_handler()
312 rec->time_to_run = ktime_get_boottime_ns() + 1 * NSEC_PER_SEC; in aliasguid_query_handler()
326 rec = &dev->sriov.alias_guid.ports_guid[port_index]. in aliasguid_query_handler()
338 required_val = *(__be64 *)&rec->all_recs[i * GUID_REC_SIZE]; in aliasguid_query_handler()
355 if (rec->guids_retry_schedule[i] == 0) in aliasguid_query_handler()
[all …]
Dmcg.c102 struct ib_sa_mcmember_data rec; member
171 ret = memcmp(mgid->raw, group->rec.mgid.raw, sizeof *mgid); in mcast_find()
195 ret = memcmp(group->rec.mgid.raw, cur_group->rec.mgid.raw, in mcast_insert()
196 sizeof group->rec.mgid); in mcast_insert()
301 *sa_data = group->rec; in send_leave_to_wire()
341 *sa_data = group->rec; in send_reply_to_slave()
455 nzgroup = memcmp(&group->rec.mgid, &mgid0, sizeof mgid0); in release_group()
492 return leave_state & (group->rec.scope_join_state & 0xf); in get_leave_state()
556 if (memcmp(&group->rec.mgid, &mgid0, sizeof mgid0)) { in mlx4_ib_mcg_timeout_handler()
567 if (group->rec.scope_join_state & 0xf) in mlx4_ib_mcg_timeout_handler()
[all …]
/drivers/gpu/drm/mga/
Dmga_warp.c54 const struct ihex_binrec *rec; in mga_warp_install_microcode() local
88 for (rec = (const struct ihex_binrec *)fw->data; in mga_warp_install_microcode()
89 rec; in mga_warp_install_microcode()
90 rec = ihex_next_binrec(rec)) { in mga_warp_install_microcode()
91 size += WARP_UCODE_SIZE(be16_to_cpu(rec->len)); in mga_warp_install_microcode()
112 for (rec = (const struct ihex_binrec *)fw->data; in mga_warp_install_microcode()
113 rec; in mga_warp_install_microcode()
114 rec = ihex_next_binrec(rec)) { in mga_warp_install_microcode()
119 src_size = be16_to_cpu(rec->len); in mga_warp_install_microcode()
121 memcpy(vcbase, rec->data, src_size); in mga_warp_install_microcode()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_self_test.c2947 struct st_record *rec, char *message) in bnx2x_idle_chk6() argument
2952 for (i = 0; i < rec->loop; i++) { in bnx2x_idle_chk6()
2954 rec->pred_args.val1 = in bnx2x_idle_chk6()
2955 REG_RD(bp, rec->reg1 + i * rec->incr); in bnx2x_idle_chk6()
2956 rec->pred_args.val2 = in bnx2x_idle_chk6()
2957 REG_RD(bp, rec->reg1 + i * rec->incr + 4); in bnx2x_idle_chk6()
2960 rd_ptr = ((rec->pred_args.val1 & 0x3FFFFFC0) >> 6); in bnx2x_idle_chk6()
2961 wr_ptr = ((((rec->pred_args.val1 & 0xC0000000) >> 30) & 0x3) | in bnx2x_idle_chk6()
2962 ((rec->pred_args.val2 & 0x3FFFFF) << 2)); in bnx2x_idle_chk6()
2969 bnx2x_self_test_log(bp, rec->severity, message); in bnx2x_idle_chk6()
[all …]
/drivers/gpu/drm/i915/display/
Dintel_overlay.c959 struct drm_intel_overlay_put_image *rec) in check_overlay_dst() argument
965 drm_rect_init(&req, rec->dst_x, rec->dst_y, in check_overlay_dst()
966 rec->dst_width, rec->dst_height); in check_overlay_dst()
978 static int check_overlay_scaling(struct drm_intel_overlay_put_image *rec) in check_overlay_scaling() argument
983 tmp = ((rec->src_scan_height << 16) / rec->dst_height) >> 16; in check_overlay_scaling()
987 tmp = ((rec->src_scan_width << 16) / rec->dst_width) >> 16; in check_overlay_scaling()
995 struct drm_intel_overlay_put_image *rec, in check_overlay_src() argument
998 int uv_hscale = uv_hsubsampling(rec->flags); in check_overlay_src()
999 int uv_vscale = uv_vsubsampling(rec->flags); in check_overlay_src()
1006 if (rec->src_height > IMAGE_MAX_HEIGHT_LEGACY || in check_overlay_src()
[all …]
/drivers/watchdog/
Dziirave_wdt.c297 const struct ihex_binrec *rec; in ziirave_firm_verify() local
301 for (rec = (void *)fw->data; rec; rec = ihex_next_binrec(rec)) { in ziirave_firm_verify()
302 const u16 len = be16_to_cpu(rec->len); in ziirave_firm_verify()
303 const u32 addr = be32_to_cpu(rec->addr); in ziirave_firm_verify()
327 if (memcmp(data, rec->data, len)) { in ziirave_firm_verify()
341 const struct ihex_binrec *rec; in ziirave_firm_upload() local
368 for (rec = (void *)fw->data; rec; rec = ihex_next_binrec(rec)) { in ziirave_firm_upload()
369 ret = ziirave_firm_write_pkt(wdd, be32_to_cpu(rec->addr), in ziirave_firm_upload()
370 rec->data, be16_to_cpu(rec->len)); in ziirave_firm_upload()
/drivers/staging/wlan-ng/
Dprism2sta.c1472 struct hfa384x_assoc_status rec; in prism2sta_inf_assocstatus() local
1475 memcpy(&rec, &inf->info.assocstatus, sizeof(rec)); in prism2sta_inf_assocstatus()
1476 le16_to_cpus(&rec.assocstatus); in prism2sta_inf_assocstatus()
1477 le16_to_cpus(&rec.reason); in prism2sta_inf_assocstatus()
1492 if (ether_addr_equal(rec.sta_addr, hw->authlist.addr[i])) in prism2sta_inf_assocstatus()
1496 if (rec.assocstatus != HFA384x_ASSOCSTATUS_AUTHFAIL) in prism2sta_inf_assocstatus()
1501 (rec.assocstatus == HFA384x_ASSOCSTATUS_STAASSOC || in prism2sta_inf_assocstatus()
1502 rec.assocstatus == HFA384x_ASSOCSTATUS_REASSOC); in prism2sta_inf_assocstatus()
1504 if (rec.assocstatus == HFA384x_ASSOCSTATUS_AUTHFAIL) in prism2sta_inf_assocstatus()
1548 struct hfa384x_authenticate_station_data rec; in prism2sta_inf_authreq_defer() local
[all …]
Dprism2fw.c109 struct hfa384x_pdrec *rec[HFA384x_PDA_RECS_MAX]; member
279 pda.rec[0] = (struct hfa384x_pdrec *)pda.buf; in prism2_fwapply()
280 pda.rec[0]->len = cpu_to_le16(2); /* len in words */ in prism2_fwapply()
281 pda.rec[0]->code = cpu_to_le16(HFA384x_PDR_END_OF_PDA); in prism2_fwapply()
612 pda->rec[pda->nrec] = (struct hfa384x_pdrec *)&pda16[curroff]; in mkpdrlist()
614 if (le16_to_cpu(pda->rec[pda->nrec]->code) == in mkpdrlist()
616 memcpy(&nicid, &pda->rec[pda->nrec]->data.nicid, in mkpdrlist()
623 if (le16_to_cpu(pda->rec[pda->nrec]->code) == in mkpdrlist()
625 memcpy(&rfid, &pda->rec[pda->nrec]->data.mfisuprange, in mkpdrlist()
632 if (le16_to_cpu(pda->rec[pda->nrec]->code) == in mkpdrlist()
[all …]
/drivers/media/usb/gspca/
Dvicam.c227 const struct ihex_binrec *rec; in sd_init() local
243 for (rec = (void *)fw->data; rec; rec = ihex_next_binrec(rec)) { in sd_init()
244 memcpy(firmware_buf, rec->data, be16_to_cpu(rec->len)); in sd_init()
246 be16_to_cpu(rec->len)); in sd_init()
/drivers/infiniband/ulp/ipoib/
Dipoib_multicast.c376 status = ipoib_mcast_join_finish(mcast, &multicast->rec); in ipoib_mcast_join_complete()
466 struct ib_sa_mcmember_rec rec = { in ipoib_mcast_join() local
481 rec.mgid = mcast->mcmember.mgid; in ipoib_mcast_join()
482 rec.port_gid = priv->local_gid; in ipoib_mcast_join()
483 rec.pkey = cpu_to_be16(priv->pkey); in ipoib_mcast_join()
510 rec.qkey = priv->broadcast->mcmember.qkey; in ipoib_mcast_join()
511 rec.mtu_selector = IB_SA_EQ; in ipoib_mcast_join()
512 rec.mtu = priv->broadcast->mcmember.mtu; in ipoib_mcast_join()
513 rec.traffic_class = priv->broadcast->mcmember.traffic_class; in ipoib_mcast_join()
514 rec.rate_selector = IB_SA_EQ; in ipoib_mcast_join()
[all …]
/drivers/net/wireless/intersil/orinoco/
Dhermes.h508 __le16 rec; in hermes_read_wordrec() local
511 err = HERMES_READ_RECORD(hw, bap, rid, &rec); in hermes_read_wordrec()
512 *word = le16_to_cpu(rec); in hermes_read_wordrec()
519 __le16 rec; in hermes_read_wordrec_pr() local
522 err = HERMES_READ_RECORD_PR(hw, bap, rid, &rec); in hermes_read_wordrec_pr()
523 *word = le16_to_cpu(rec); in hermes_read_wordrec_pr()
530 __le16 rec = cpu_to_le16(word); in hermes_write_wordrec() local
531 return HERMES_WRITE_RECORD(hw, bap, rid, &rec); in hermes_write_wordrec()
/drivers/net/wireless/ath/wil6210/
Dfw_inc.c124 const struct wil_fw_record_capabilities *rec = data; in fw_handle_capabilities() local
127 if (size < sizeof(*rec)) { in fw_handle_capabilities()
136 memcpy(wil->fw_capabilities, rec->capabilities, in fw_handle_capabilities()
139 rec->capabilities, capa_size, false); in fw_handle_capabilities()
147 const struct wil_fw_record_brd_file *rec = data; in fw_handle_brd_file() local
170 le32_to_cpu(rec->brd_info[i].base_addr); in fw_handle_brd_file()
172 le32_to_cpu(rec->brd_info[i].max_size_bytes); in fw_handle_brd_file()
202 const struct wil_fw_record_concurrency *rec = data; in fw_handle_concurrency() local
208 if (size < sizeof(*rec)) { in fw_handle_concurrency()
214 n_combos = le16_to_cpu(rec->n_combos); in fw_handle_concurrency()
[all …]
/drivers/usb/serial/
Dio_edgeport.c317 const struct ihex_binrec *rec; in update_edgeport_E2PROM() local
341 rec = (const struct ihex_binrec *)fw->data; in update_edgeport_E2PROM()
342 BootMajorVersion = rec->data[0]; in update_edgeport_E2PROM()
343 BootMinorVersion = rec->data[1]; in update_edgeport_E2PROM()
344 BootBuildNumber = (rec->data[2] << 8) | rec->data[3]; in update_edgeport_E2PROM()
370 for (rec = ihex_next_binrec(rec); rec; in update_edgeport_E2PROM()
371 rec = ihex_next_binrec(rec)) { in update_edgeport_E2PROM()
372 Bootaddr = be32_to_cpu(rec->addr); in update_edgeport_E2PROM()
376 be16_to_cpu(rec->len), in update_edgeport_E2PROM()
377 &rec->data[0]); in update_edgeport_E2PROM()
[all …]
/drivers/net/phy/mscc/
Dmscc_macsec.c526 u32 rec = 0, control = 0; in vsc8584_macsec_transformation() local
555 vsc8584_macsec_phy_write(phydev, bank, MSCC_MS_XFORM_REC(index, rec++), in vsc8584_macsec_transformation()
559 vsc8584_macsec_phy_write(phydev, bank, MSCC_MS_XFORM_REC(index, rec++), in vsc8584_macsec_transformation()
565 MSCC_MS_XFORM_REC(index, rec++), in vsc8584_macsec_transformation()
571 MSCC_MS_XFORM_REC(index, rec++), in vsc8584_macsec_transformation()
575 vsc8584_macsec_phy_write(phydev, bank, MSCC_MS_XFORM_REC(index, rec++), in vsc8584_macsec_transformation()
582 MSCC_MS_XFORM_REC(index, rec++), in vsc8584_macsec_transformation()
587 vsc8584_macsec_phy_write(phydev, bank, MSCC_MS_XFORM_REC(index, rec++), in vsc8584_macsec_transformation()
589 vsc8584_macsec_phy_write(phydev, bank, MSCC_MS_XFORM_REC(index, rec++), in vsc8584_macsec_transformation()
592 while (rec < 20) in vsc8584_macsec_transformation()
[all …]

123