Lines Matching refs:req
39 nrfs_diag_reg_req_t req; in nrfs_diag_reg_read() local
41 NRFS_SERVICE_HDR_FILL(&req, NRFS_DIAG_REG); in nrfs_diag_reg_read()
42 req.ctx.ctx = (uint32_t)p_context; in nrfs_diag_reg_read()
43 req.reg.access_type = DIAG_REG_READ; in nrfs_diag_reg_read()
44 req.reg.addr = addr; in nrfs_diag_reg_read()
45 req.reg.val = 0; in nrfs_diag_reg_read()
47 return nrfs_backend_send(&req, sizeof(req)); in nrfs_diag_reg_read()
56 nrfs_diag_reg_req_t req; in nrfs_diag_reg_write() local
58 NRFS_SERVICE_HDR_FILL(&req, NRFS_DIAG_REG); in nrfs_diag_reg_write()
59 req.ctx.ctx = (uint32_t)p_context; in nrfs_diag_reg_write()
60 req.reg.access_type = DIAG_REG_WRITE; in nrfs_diag_reg_write()
61 req.reg.addr = addr; in nrfs_diag_reg_write()
62 req.reg.val = val; in nrfs_diag_reg_write()
64 return nrfs_backend_send(&req, sizeof(req)); in nrfs_diag_reg_write()
81 switch (p_data->hdr.req) { in nrfs_diag_service_notify()