/kernel/linux/linux-6.6/drivers/clk/tegra/ |
H A D | clk-dfll.c | 171 * Integrated I2C controller registers - relative to td->i2c_controller_base 331 static inline u32 dfll_readl(struct tegra_dfll *td, u32 offs) in dfll_readl() argument 333 return __raw_readl(td->base + offs); in dfll_readl() 336 static inline void dfll_writel(struct tegra_dfll *td, u32 val, u32 offs) in dfll_writel() argument 339 __raw_writel(val, td->base + offs); in dfll_writel() 342 static inline void dfll_wmb(struct tegra_dfll *td) in dfll_wmb() argument 344 dfll_readl(td, DFLL_CTRL); in dfll_wmb() 349 static inline u32 dfll_i2c_readl(struct tegra_dfll *td, u32 offs) in dfll_i2c_readl() argument 351 return __raw_readl(td->i2c_base + offs); in dfll_i2c_readl() 354 static inline void dfll_i2c_writel(struct tegra_dfll *td, u3 argument 359 dfll_i2c_wmb(struct tegra_dfll *td) dfll_i2c_wmb() argument 371 dfll_is_running(struct tegra_dfll *td) dfll_is_running() argument 391 struct tegra_dfll *td = dev_get_drvdata(dev); tegra_dfll_runtime_resume() local 428 struct tegra_dfll *td = dev_get_drvdata(dev); tegra_dfll_runtime_suspend() local 450 dfll_tune_low(struct tegra_dfll *td) dfll_tune_low() argument 492 dfll_set_mode(struct tegra_dfll *td, enum dfll_ctrl_mode mode) dfll_set_mode() argument 504 get_dvco_rate_below(struct tegra_dfll *td, u8 out_min) get_dvco_rate_below() argument 540 dfll_i2c_set_output_enabled(struct tegra_dfll *td, bool enable) dfll_i2c_set_output_enabled() argument 571 dfll_pwm_set_output_enabled(struct tegra_dfll *td, bool enable) dfll_pwm_set_output_enabled() argument 615 dfll_set_force_output_value(struct tegra_dfll *td, u8 out_val) dfll_set_force_output_value() argument 633 dfll_set_force_output_enabled(struct tegra_dfll *td, bool enable) dfll_set_force_output_enabled() argument 653 dfll_force_output(struct tegra_dfll *td, unsigned int out_sel) dfll_force_output() argument 676 dfll_load_i2c_lut(struct tegra_dfll *td) dfll_load_i2c_lut() argument 707 dfll_init_i2c_if(struct tegra_dfll *td) dfll_init_i2c_if() argument 741 dfll_init_out_if(struct tegra_dfll *td) dfll_init_out_if() argument 796 find_lut_index_for_rate(struct tegra_dfll *td, unsigned long rate) find_lut_index_for_rate() argument 827 dfll_calculate_rate_request(struct tegra_dfll *td, struct dfll_rate_req *req, unsigned long rate) dfll_calculate_rate_request() argument 880 dfll_set_frequency_request(struct tegra_dfll *td, struct dfll_rate_req *req) dfll_set_frequency_request() argument 912 dfll_request_rate(struct tegra_dfll *td, unsigned long rate) dfll_request_rate() argument 947 dfll_disable(struct tegra_dfll *td) dfll_disable() argument 968 dfll_enable(struct tegra_dfll *td) dfll_enable() argument 993 dfll_set_open_loop_config(struct tegra_dfll *td) dfll_set_open_loop_config() argument 1016 dfll_lock(struct tegra_dfll *td) dfll_lock() argument 1056 dfll_unlock(struct tegra_dfll *td) dfll_unlock() argument 1090 struct tegra_dfll *td = clk_hw_to_dfll(hw); dfll_clk_is_enabled() local 1097 struct tegra_dfll *td = clk_hw_to_dfll(hw); dfll_clk_enable() local 1113 struct tegra_dfll *td = clk_hw_to_dfll(hw); dfll_clk_disable() local 1124 struct tegra_dfll *td = clk_hw_to_dfll(hw); dfll_clk_recalc_rate() local 1133 struct tegra_dfll *td = clk_hw_to_dfll(hw); dfll_clk_determine_rate() local 1153 struct tegra_dfll *td = clk_hw_to_dfll(hw); dfll_clk_set_rate() local 1180 dfll_register_clk(struct tegra_dfll *td) dfll_register_clk() argument 1212 dfll_unregister_clk(struct tegra_dfll *td) dfll_unregister_clk() argument 1255 dfll_read_monitor_rate(struct tegra_dfll *td) dfll_read_monitor_rate() argument 1276 struct tegra_dfll *td = data; attr_enable_get() local 1284 struct tegra_dfll *td = data; attr_enable_set() local 1293 struct tegra_dfll *td = data; attr_lock_get() local 1301 struct tegra_dfll *td = data; attr_lock_set() local 1309 struct tegra_dfll *td = data; attr_rate_get() local 1318 struct tegra_dfll *td = data; attr_rate_set() local 1327 struct tegra_dfll *td = s->private; attr_registers_show() local 1363 dfll_debug_init(struct tegra_dfll *td) dfll_debug_init() argument 1381 dfll_debug_init(struct tegra_dfll *td) dfll_debug_init() argument 1396 dfll_set_default_params(struct tegra_dfll *td) dfll_set_default_params() argument 1424 dfll_init_clks(struct tegra_dfll *td) dfll_init_clks() argument 1457 dfll_init(struct tegra_dfll *td) dfll_init() argument 1528 struct tegra_dfll *td = dev_get_drvdata(dev); tegra_dfll_suspend() local 1553 struct tegra_dfll *td = dev_get_drvdata(dev); tegra_dfll_resume() local 1584 find_vdd_map_entry_exact(struct tegra_dfll *td, int uV) find_vdd_map_entry_exact() argument 1612 find_vdd_map_entry_min(struct tegra_dfll *td, int uV) find_vdd_map_entry_min() argument 1645 dfll_build_pwm_lut(struct tegra_dfll *td, unsigned long v_max) dfll_build_pwm_lut() argument 1700 dfll_build_i2c_lut(struct tegra_dfll *td, unsigned long v_max) dfll_build_i2c_lut() argument 1765 dfll_build_lut(struct tegra_dfll *td) dfll_build_lut() argument 1795 read_dt_param(struct tegra_dfll *td, const char *param, u32 *dest) read_dt_param() argument 1816 dfll_fetch_i2c_params(struct tegra_dfll *td) dfll_fetch_i2c_params() argument 1846 dfll_fetch_pwm_params(struct tegra_dfll *td) dfll_fetch_pwm_params() argument 1904 dfll_fetch_common_params(struct tegra_dfll *td) dfll_fetch_common_params() argument 1943 struct tegra_dfll *td; tegra_dfll_register() local 2082 struct tegra_dfll *td = platform_get_drvdata(pdev); tegra_dfll_unregister() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/signal/ |
H A D | test_signals_utils.c | 66 static void default_result(struct tdescr *td, bool force_exit) in default_result() argument 68 if (td->result == KSFT_SKIP) { in default_result() 70 } else if (td->pass) { in default_result() 72 td->result = KSFT_PASS; in default_result() 75 td->result = KSFT_FAIL; in default_result() 79 exit(td->result); in default_result() 90 static bool handle_signal_unsupported(struct tdescr *td, in handle_signal_unsupported() argument 93 if (feats_ok(td)) in handle_signal_unsupported() 99 if (!td->initialized) { in handle_signal_unsupported() 105 td in handle_signal_unsupported() 112 handle_signal_trigger(struct tdescr *td, siginfo_t *si, void *uc) handle_signal_trigger() argument 122 handle_signal_ok(struct tdescr *td, siginfo_t *si, void *uc) handle_signal_ok() argument 168 handle_signal_copyctx(struct tdescr *td, siginfo_t *si, void *uc_in) handle_signal_copyctx() argument 259 default_setup(struct tdescr *td) default_setup() argument 295 default_trigger(struct tdescr *td) default_trigger() argument 300 test_init(struct tdescr *td) test_init() argument 372 test_setup(struct tdescr *td) test_setup() argument 388 test_run(struct tdescr *td) test_run() argument 398 test_result(struct tdescr *td) test_result() argument 405 test_cleanup(struct tdescr *td) test_cleanup() argument [all...] |
H A D | test_signals_utils.h | 15 int test_init(struct tdescr *td); 16 int test_setup(struct tdescr *td); 17 void test_cleanup(struct tdescr *td); 18 int test_run(struct tdescr *td); 19 void test_result(struct tdescr *td); 21 static inline bool feats_ok(struct tdescr *td) in feats_ok() argument 23 if (td->feats_incompatible & td->feats_supported) in feats_ok() 25 return (td->feats_required & td in feats_ok() 60 get_current_context(struct tdescr *td, ucontext_t *dest_uc, size_t dest_sz) get_current_context() argument [all...] |
/kernel/linux/linux-5.10/drivers/clk/tegra/ |
H A D | clk-dfll.c | 171 * Integrated I2C controller registers - relative to td->i2c_controller_base 330 static inline u32 dfll_readl(struct tegra_dfll *td, u32 offs) in dfll_readl() argument 332 return __raw_readl(td->base + offs); in dfll_readl() 335 static inline void dfll_writel(struct tegra_dfll *td, u32 val, u32 offs) in dfll_writel() argument 338 __raw_writel(val, td->base + offs); in dfll_writel() 341 static inline void dfll_wmb(struct tegra_dfll *td) in dfll_wmb() argument 343 dfll_readl(td, DFLL_CTRL); in dfll_wmb() 348 static inline u32 dfll_i2c_readl(struct tegra_dfll *td, u32 offs) in dfll_i2c_readl() argument 350 return __raw_readl(td->i2c_base + offs); in dfll_i2c_readl() 353 static inline void dfll_i2c_writel(struct tegra_dfll *td, u3 argument 358 dfll_i2c_wmb(struct tegra_dfll *td) dfll_i2c_wmb() argument 370 dfll_is_running(struct tegra_dfll *td) dfll_is_running() argument 390 struct tegra_dfll *td = dev_get_drvdata(dev); tegra_dfll_runtime_resume() local 427 struct tegra_dfll *td = dev_get_drvdata(dev); tegra_dfll_runtime_suspend() local 449 dfll_tune_low(struct tegra_dfll *td) dfll_tune_low() argument 491 dfll_set_mode(struct tegra_dfll *td, enum dfll_ctrl_mode mode) dfll_set_mode() argument 503 get_dvco_rate_below(struct tegra_dfll *td, u8 out_min) get_dvco_rate_below() argument 539 dfll_i2c_set_output_enabled(struct tegra_dfll *td, bool enable) dfll_i2c_set_output_enabled() argument 570 dfll_pwm_set_output_enabled(struct tegra_dfll *td, bool enable) dfll_pwm_set_output_enabled() argument 614 dfll_set_force_output_value(struct tegra_dfll *td, u8 out_val) dfll_set_force_output_value() argument 632 dfll_set_force_output_enabled(struct tegra_dfll *td, bool enable) dfll_set_force_output_enabled() argument 652 dfll_force_output(struct tegra_dfll *td, unsigned int out_sel) dfll_force_output() argument 675 dfll_load_i2c_lut(struct tegra_dfll *td) dfll_load_i2c_lut() argument 706 dfll_init_i2c_if(struct tegra_dfll *td) dfll_init_i2c_if() argument 740 dfll_init_out_if(struct tegra_dfll *td) dfll_init_out_if() argument 795 find_lut_index_for_rate(struct tegra_dfll *td, unsigned long rate) find_lut_index_for_rate() argument 826 dfll_calculate_rate_request(struct tegra_dfll *td, struct dfll_rate_req *req, unsigned long rate) dfll_calculate_rate_request() argument 879 dfll_set_frequency_request(struct tegra_dfll *td, struct dfll_rate_req *req) dfll_set_frequency_request() argument 911 dfll_request_rate(struct tegra_dfll *td, unsigned long rate) dfll_request_rate() argument 946 dfll_disable(struct tegra_dfll *td) dfll_disable() argument 967 dfll_enable(struct tegra_dfll *td) dfll_enable() argument 992 dfll_set_open_loop_config(struct tegra_dfll *td) dfll_set_open_loop_config() argument 1015 dfll_lock(struct tegra_dfll *td) dfll_lock() argument 1055 dfll_unlock(struct tegra_dfll *td) dfll_unlock() argument 1089 struct tegra_dfll *td = clk_hw_to_dfll(hw); dfll_clk_is_enabled() local 1096 struct tegra_dfll *td = clk_hw_to_dfll(hw); dfll_clk_enable() local 1112 struct tegra_dfll *td = clk_hw_to_dfll(hw); dfll_clk_disable() local 1123 struct tegra_dfll *td = clk_hw_to_dfll(hw); dfll_clk_recalc_rate() local 1132 struct tegra_dfll *td = clk_hw_to_dfll(hw); dfll_clk_determine_rate() local 1152 struct tegra_dfll *td = clk_hw_to_dfll(hw); dfll_clk_set_rate() local 1179 dfll_register_clk(struct tegra_dfll *td) dfll_register_clk() argument 1211 dfll_unregister_clk(struct tegra_dfll *td) dfll_unregister_clk() argument 1254 dfll_read_monitor_rate(struct tegra_dfll *td) dfll_read_monitor_rate() argument 1275 struct tegra_dfll *td = data; attr_enable_get() local 1283 struct tegra_dfll *td = data; attr_enable_set() local 1292 struct tegra_dfll *td = data; attr_lock_get() local 1300 struct tegra_dfll *td = data; attr_lock_set() local 1308 struct tegra_dfll *td = data; attr_rate_get() local 1317 struct tegra_dfll *td = data; attr_rate_set() local 1326 struct tegra_dfll *td = s->private; attr_registers_show() local 1362 dfll_debug_init(struct tegra_dfll *td) dfll_debug_init() argument 1380 dfll_debug_init(struct tegra_dfll *td) dfll_debug_init() argument 1395 dfll_set_default_params(struct tegra_dfll *td) dfll_set_default_params() argument 1423 dfll_init_clks(struct tegra_dfll *td) dfll_init_clks() argument 1456 dfll_init(struct tegra_dfll *td) dfll_init() argument 1525 struct tegra_dfll *td = dev_get_drvdata(dev); tegra_dfll_suspend() local 1549 struct tegra_dfll *td = dev_get_drvdata(dev); tegra_dfll_resume() local 1579 find_vdd_map_entry_exact(struct tegra_dfll *td, int uV) find_vdd_map_entry_exact() argument 1607 find_vdd_map_entry_min(struct tegra_dfll *td, int uV) find_vdd_map_entry_min() argument 1640 dfll_build_pwm_lut(struct tegra_dfll *td, unsigned long v_max) dfll_build_pwm_lut() argument 1695 dfll_build_i2c_lut(struct tegra_dfll *td, unsigned long v_max) dfll_build_i2c_lut() argument 1760 dfll_build_lut(struct tegra_dfll *td) dfll_build_lut() argument 1790 read_dt_param(struct tegra_dfll *td, const char *param, u32 *dest) read_dt_param() argument 1811 dfll_fetch_i2c_params(struct tegra_dfll *td) dfll_fetch_i2c_params() argument 1841 dfll_fetch_pwm_params(struct tegra_dfll *td) dfll_fetch_pwm_params() argument 1899 dfll_fetch_common_params(struct tegra_dfll *td) dfll_fetch_common_params() argument 1938 struct tegra_dfll *td; tegra_dfll_register() local 2071 struct tegra_dfll *td = platform_get_drvdata(pdev); tegra_dfll_unregister() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/signal/ |
H A D | test_signals_utils.c | 61 static void default_result(struct tdescr *td, bool force_exit) in default_result() argument 63 if (td->result == KSFT_SKIP) { in default_result() 65 } else if (td->pass) { in default_result() 67 td->result = KSFT_PASS; in default_result() 70 td->result = KSFT_FAIL; in default_result() 74 exit(td->result); in default_result() 85 static bool handle_signal_unsupported(struct tdescr *td, in handle_signal_unsupported() argument 88 if (feats_ok(td)) in handle_signal_unsupported() 94 if (!td->initialized) { in handle_signal_unsupported() 100 td in handle_signal_unsupported() 107 handle_signal_trigger(struct tdescr *td, siginfo_t *si, void *uc) handle_signal_trigger() argument 117 handle_signal_ok(struct tdescr *td, siginfo_t *si, void *uc) handle_signal_ok() argument 163 handle_signal_copyctx(struct tdescr *td, siginfo_t *si, void *uc) handle_signal_copyctx() argument 202 default_setup(struct tdescr *td) default_setup() argument 238 default_trigger(struct tdescr *td) default_trigger() argument 243 test_init(struct tdescr *td) test_init() argument 295 test_setup(struct tdescr *td) test_setup() argument 311 test_run(struct tdescr *td) test_run() argument 323 test_result(struct tdescr *td) test_result() argument 330 test_cleanup(struct tdescr *td) test_cleanup() argument [all...] |
H A D | test_signals_utils.h | 13 int test_init(struct tdescr *td); 14 int test_setup(struct tdescr *td); 15 void test_cleanup(struct tdescr *td); 16 int test_run(struct tdescr *td); 17 void test_result(struct tdescr *td); 19 static inline bool feats_ok(struct tdescr *td) in feats_ok() argument 21 return (td->feats_required & td->feats_supported) == td->feats_required; in feats_ok() 32 * made available in td 56 get_current_context(struct tdescr *td, ucontext_t *dest_uc) get_current_context() argument [all...] |
/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | fhci-q.c | 53 void fhci_add_td_to_frame(struct fhci_time_frame *frame, struct td *td) in fhci_add_td_to_frame() argument 55 list_add_tail(&td->frame_lh, &frame->tds_list); in fhci_add_td_to_frame() 58 void fhci_add_tds_to_ed(struct ed *ed, struct td **td_list, int number) in fhci_add_tds_to_ed() 63 struct td *td = td_list[i]; in fhci_add_tds_to_ed() local 64 list_add_tail(&td->node, &ed->td_list); in fhci_add_tds_to_ed() 70 static struct td *peek_td_from_ed(struct ed *ed) in peek_td_from_ed() 72 struct td *td; in peek_td_from_ed() local 84 struct td *td; fhci_remove_td_from_frame() local 97 struct td *td; fhci_peek_td_from_frame() local 109 struct td *td; fhci_remove_td_from_ed() local 129 struct td *td; fhci_remove_td_from_done_list() local 142 struct td *td; fhci_move_td_from_ed_to_done_list() local 214 fhci_done_td(struct urb *urb, struct td *td) fhci_done_td() argument 267 struct td *td = peek_td_from_ed(ed); fhci_del_ed_list() local [all...] |
H A D | fhci-mem.c | 23 static void init_td(struct td *td) in init_td() argument 25 memset(td, 0, sizeof(*td)); in init_td() 26 INIT_LIST_HEAD(&td->node); in init_td() 27 INIT_LIST_HEAD(&td->frame_lh); in init_td() 37 static struct td *get_empty_td(struct fhci_hcd *fhci) in get_empty_td() 39 struct td *td; in get_empty_td() local 42 td in get_empty_td() 55 fhci_recycle_empty_td(struct fhci_hcd *fhci, struct td *td) fhci_recycle_empty_td() argument 90 struct td *td = get_empty_td(fhci); fhci_td_fill() local [all...] |
H A D | ohci-mem.c | 48 sizeof (struct td), in ohci_mem_init() 76 static inline struct td * 79 struct td *td; in dma_to_td() local 82 td = hc->td_hash [TD_HASH_FUNC(td_dma)]; in dma_to_td() 83 while (td && td->td_dma != td_dma) in dma_to_td() 84 td = td->td_hash; in dma_to_td() 85 return td; in dma_to_td() 93 struct td *td; td_alloc() local 111 td_free(struct ohci_hcd *hc, struct td *td) td_free() argument [all...] |
H A D | fhci-tds.c | 73 struct usb_td __iomem *td, in next_bd() 79 return ++td; in next_bd() 152 struct usb_td __iomem *td; in fhci_create_ep() local 168 ep_mem_size = ring_len * sizeof(*td) + sizeof(struct fhci_ep_pram); in fhci_create_ep() 203 ep->ep_pram_ptr = (void __iomem *)ep->td_base + sizeof(*td) * ring_len; in fhci_create_ep() 211 td = ep->td_base; in fhci_create_ep() 213 out_be32(&td->buf_ptr, 0); in fhci_create_ep() 214 out_be16(&td->status, 0); in fhci_create_ep() 215 out_be16(&td->length, 0); in fhci_create_ep() 216 out_be16(&td in fhci_create_ep() 72 next_bd(struct usb_td __iomem *base, struct usb_td __iomem *td, u16 status) next_bd() argument 281 struct usb_td __iomem *td; fhci_td_transaction_confirm() local 386 struct usb_td __iomem *td; fhci_host_transaction() local 471 struct usb_td __iomem *td; fhci_flush_bds() local 527 struct usb_td __iomem *td; fhci_flush_actual_frame() local 591 struct usb_td __iomem *td; fhci_host_transmit_actual_frame() local [all...] |
H A D | fhci-sched.c | 42 struct td *td; in fhci_transaction_confirm() local 48 td = fhci_remove_td_from_frame(usb->actual_frame); in fhci_transaction_confirm() 49 td_pkt = td->pkt; in fhci_transaction_confirm() 51 td->status = pkt->status; in fhci_transaction_confirm() 52 if (td->type == FHCI_TA_IN && td_pkt->info & PKT_DUMMY_PACKET) { in fhci_transaction_confirm() 53 if ((td->data + td->actual_len) && trans_len) in fhci_transaction_confirm() 54 memcpy(td->data + td in fhci_transaction_confirm() 129 struct td *td; fhci_flush_all_transmissions() local 155 add_packet(struct fhci_usb *usb, struct ed *ed, struct td *td) add_packet() argument 280 struct td *td; scan_ed_list() local 635 struct td *td; process_done_list() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | fhci-q.c | 53 void fhci_add_td_to_frame(struct fhci_time_frame *frame, struct td *td) in fhci_add_td_to_frame() argument 55 list_add_tail(&td->frame_lh, &frame->tds_list); in fhci_add_td_to_frame() 58 void fhci_add_tds_to_ed(struct ed *ed, struct td **td_list, int number) in fhci_add_tds_to_ed() 63 struct td *td = td_list[i]; in fhci_add_tds_to_ed() local 64 list_add_tail(&td->node, &ed->td_list); in fhci_add_tds_to_ed() 70 static struct td *peek_td_from_ed(struct ed *ed) in peek_td_from_ed() 72 struct td *td; in peek_td_from_ed() local 84 struct td *td; fhci_remove_td_from_frame() local 97 struct td *td; fhci_peek_td_from_frame() local 109 struct td *td; fhci_remove_td_from_ed() local 129 struct td *td; fhci_remove_td_from_done_list() local 142 struct td *td; fhci_move_td_from_ed_to_done_list() local 214 fhci_done_td(struct urb *urb, struct td *td) fhci_done_td() argument 267 struct td *td = peek_td_from_ed(ed); fhci_del_ed_list() local [all...] |
H A D | fhci-mem.c | 23 static void init_td(struct td *td) in init_td() argument 25 memset(td, 0, sizeof(*td)); in init_td() 26 INIT_LIST_HEAD(&td->node); in init_td() 27 INIT_LIST_HEAD(&td->frame_lh); in init_td() 37 static struct td *get_empty_td(struct fhci_hcd *fhci) in get_empty_td() 39 struct td *td; in get_empty_td() local 42 td in get_empty_td() 55 fhci_recycle_empty_td(struct fhci_hcd *fhci, struct td *td) fhci_recycle_empty_td() argument 90 struct td *td = get_empty_td(fhci); fhci_td_fill() local [all...] |
H A D | ohci-mem.c | 48 sizeof (struct td), in ohci_mem_init() 76 static inline struct td * 79 struct td *td; in dma_to_td() local 82 td = hc->td_hash [TD_HASH_FUNC(td_dma)]; in dma_to_td() 83 while (td && td->td_dma != td_dma) in dma_to_td() 84 td = td->td_hash; in dma_to_td() 85 return td; in dma_to_td() 93 struct td *td; td_alloc() local 111 td_free(struct ohci_hcd *hc, struct td *td) td_free() argument [all...] |
H A D | fhci-tds.c | 73 struct usb_td __iomem *td, in next_bd() 79 return ++td; in next_bd() 152 struct usb_td __iomem *td; in fhci_create_ep() local 168 ep_mem_size = ring_len * sizeof(*td) + sizeof(struct fhci_ep_pram); in fhci_create_ep() 203 ep->ep_pram_ptr = (void __iomem *)ep->td_base + sizeof(*td) * ring_len; in fhci_create_ep() 211 td = ep->td_base; in fhci_create_ep() 213 out_be32(&td->buf_ptr, 0); in fhci_create_ep() 214 out_be16(&td->status, 0); in fhci_create_ep() 215 out_be16(&td->length, 0); in fhci_create_ep() 216 out_be16(&td in fhci_create_ep() 72 next_bd(struct usb_td __iomem *base, struct usb_td __iomem *td, u16 status) next_bd() argument 281 struct usb_td __iomem *td; fhci_td_transaction_confirm() local 386 struct usb_td __iomem *td; fhci_host_transaction() local 471 struct usb_td __iomem *td; fhci_flush_bds() local 527 struct usb_td __iomem *td; fhci_flush_actual_frame() local 591 struct usb_td __iomem *td; fhci_host_transmit_actual_frame() local [all...] |
H A D | fhci-sched.c | 42 struct td *td; in fhci_transaction_confirm() local 48 td = fhci_remove_td_from_frame(usb->actual_frame); in fhci_transaction_confirm() 49 td_pkt = td->pkt; in fhci_transaction_confirm() 51 td->status = pkt->status; in fhci_transaction_confirm() 52 if (td->type == FHCI_TA_IN && td_pkt->info & PKT_DUMMY_PACKET) { in fhci_transaction_confirm() 53 if ((td->data + td->actual_len) && trans_len) in fhci_transaction_confirm() 54 memcpy(td->data + td in fhci_transaction_confirm() 129 struct td *td; fhci_flush_all_transmissions() local 155 add_packet(struct fhci_usb *usb, struct ed *ed, struct td *td) add_packet() argument 280 struct td *td; scan_ed_list() local 635 struct td *td; process_done_list() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/ |
H A D | testmode.c | 33 struct mt76_testmode_data *td = &phy->test; in mt76_testmode_tx_pending() local 36 struct sk_buff *skb = td->tx_skb; in mt76_testmode_tx_pending() 41 if (!skb || !td->tx_pending) in mt76_testmode_tx_pending() 47 tx_queued_limit = td->tx_queued_limit ? td->tx_queued_limit : 1000; in mt76_testmode_tx_pending() 51 while (td->tx_pending > 0 && in mt76_testmode_tx_pending() 52 td->tx_queued - td->tx_done < tx_queued_limit && in mt76_testmode_tx_pending() 61 td->tx_pending--; in mt76_testmode_tx_pending() 62 td in mt76_testmode_tx_pending() 95 struct mt76_testmode_data *td = &phy->test; mt76_testmode_free_skb() local 106 struct mt76_testmode_data *td = &phy->test; mt76_testmode_alloc_skb() local 180 struct mt76_testmode_data *td = &phy->test; mt76_testmode_tx_init() local 272 struct mt76_testmode_data *td = &phy->test; mt76_testmode_tx_start() local 284 struct mt76_testmode_data *td = &phy->test; mt76_testmode_tx_stop() local 300 mt76_testmode_param_set(struct mt76_testmode_data *td, u16 idx) mt76_testmode_param_set() argument 306 mt76_testmode_param_present(struct mt76_testmode_data *td, u16 idx) mt76_testmode_param_present() argument 314 struct mt76_testmode_data *td = &phy->test; mt76_testmode_init_defaults() local 366 struct mt76_testmode_data *td = &phy->test; mt76_testmode_set_state() local 412 struct mt76_testmode_data *td = &phy->test; mt76_testmode_cmd() local 539 struct mt76_testmode_data *td = &phy->test; mt76_testmode_dump_stats() local 575 struct mt76_testmode_data *td = &phy->test; mt76_testmode_dump() local [all...] |
/kernel/linux/linux-5.10/drivers/usb/c67x00/ |
H A D | c67x00-sched.c | 18 * in both urb->interval and td->privdata. 66 * an urb can be dequeued while a td is in progress 67 * after checking the td, the toggle bit might need to 82 #define td_udev(td) ((td)->ep_data->dev) 115 #define td_residue(td) ((__s8)(td->residue)) 116 #define td_ly_base_addr(td) (__le16_to_cpu((td)->ly_base_addr)) 117 #define td_port_length(td) (__le16_to_cp 136 dbg_td(struct c67x00_hcd *c67x00, struct c67x00_td *td, char *msg) dbg_td() argument 200 struct c67x00_td *td; c67x00_release_urb() local 567 struct c67x00_td *td; c67x00_create_td() local 637 c67x00_release_td(struct c67x00_td *td) c67x00_release_td() argument 798 struct c67x00_td *td, *ttd; c67x00_fill_frame() local 830 c67x00_parse_td(struct c67x00_hcd *c67x00, struct c67x00_td *td) c67x00_parse_td() argument 840 c67x00_td_to_error(struct c67x00_hcd *c67x00, struct c67x00_td *td) c67x00_td_to_error() argument 858 c67x00_end_of_data(struct c67x00_td *td) c67x00_end_of_data() argument 892 struct c67x00_td *td, *tmp; c67x00_clear_pipe() local 907 c67x00_handle_successful_td(struct c67x00_hcd *c67x00, struct c67x00_td *td) c67x00_handle_successful_td() argument 953 c67x00_handle_isoc(struct c67x00_hcd *c67x00, struct c67x00_td *td) c67x00_handle_isoc() argument 980 struct c67x00_td *td, *tmp; c67x00_check_td_list() local 1052 c67x00_send_td(struct c67x00_hcd *c67x00, struct c67x00_td *td) c67x00_send_td() argument 1066 struct c67x00_td *td; c67x00_send_frame() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/c67x00/ |
H A D | c67x00-sched.c | 18 * in both urb->interval and td->privdata. 66 * an urb can be dequeued while a td is in progress 67 * after checking the td, the toggle bit might need to 82 #define td_udev(td) ((td)->ep_data->dev) 115 #define td_residue(td) ((__s8)(td->residue)) 116 #define td_ly_base_addr(td) (__le16_to_cpu((td)->ly_base_addr)) 117 #define td_port_length(td) (__le16_to_cp 136 dbg_td(struct c67x00_hcd *c67x00, struct c67x00_td *td, char *msg) dbg_td() argument 200 struct c67x00_td *td; c67x00_release_urb() local 567 struct c67x00_td *td; c67x00_create_td() local 637 c67x00_release_td(struct c67x00_td *td) c67x00_release_td() argument 798 struct c67x00_td *td, *ttd; c67x00_fill_frame() local 830 c67x00_parse_td(struct c67x00_hcd *c67x00, struct c67x00_td *td) c67x00_parse_td() argument 840 c67x00_td_to_error(struct c67x00_hcd *c67x00, struct c67x00_td *td) c67x00_td_to_error() argument 858 c67x00_end_of_data(struct c67x00_td *td) c67x00_end_of_data() argument 892 struct c67x00_td *td, *tmp; c67x00_clear_pipe() local 907 c67x00_handle_successful_td(struct c67x00_hcd *c67x00, struct c67x00_td *td) c67x00_handle_successful_td() argument 953 c67x00_handle_isoc(struct c67x00_hcd *c67x00, struct c67x00_td *td) c67x00_handle_isoc() argument 980 struct c67x00_td *td, *tmp; c67x00_check_td_list() local 1052 c67x00_send_td(struct c67x00_hcd *c67x00, struct c67x00_td *td) c67x00_send_td() argument 1066 struct c67x00_td *td; c67x00_send_frame() local [all...] |
/kernel/linux/linux-5.10/arch/um/drivers/ |
H A D | vector_transports.c | 69 struct uml_l2tpv3_data *td = vp->transport_data; in l2tpv3_form_header() local 72 if (td->udp) in l2tpv3_form_header() 74 (*(uint32_t *) (header + td->session_offset)) = td->tx_session; in l2tpv3_form_header() 76 if (td->cookie) { in l2tpv3_form_header() 77 if (td->cookie_is_64) in l2tpv3_form_header() 78 (*(uint64_t *)(header + td->cookie_offset)) = in l2tpv3_form_header() 79 td->tx_cookie; in l2tpv3_form_header() 81 (*(uint32_t *)(header + td->cookie_offset)) = in l2tpv3_form_header() 82 td in l2tpv3_form_header() 99 struct uml_gre_data *td = vp->transport_data; gre_form_header() local 133 struct uml_l2tpv3_data *td = vp->transport_data; l2tpv3_verify_header() local 170 struct uml_gre_data *td = vp->transport_data; gre_verify_header() local 243 struct uml_gre_data *td; build_gre_transport_data() local 305 struct uml_l2tpv3_data *td; build_l2tpv3_transport_data() local [all...] |
/kernel/linux/linux-6.6/arch/um/drivers/ |
H A D | vector_transports.c | 69 struct uml_l2tpv3_data *td = vp->transport_data; in l2tpv3_form_header() local 72 if (td->udp) in l2tpv3_form_header() 74 (*(uint32_t *) (header + td->session_offset)) = td->tx_session; in l2tpv3_form_header() 76 if (td->cookie) { in l2tpv3_form_header() 77 if (td->cookie_is_64) in l2tpv3_form_header() 78 (*(uint64_t *)(header + td->cookie_offset)) = in l2tpv3_form_header() 79 td->tx_cookie; in l2tpv3_form_header() 81 (*(uint32_t *)(header + td->cookie_offset)) = in l2tpv3_form_header() 82 td in l2tpv3_form_header() 99 struct uml_gre_data *td = vp->transport_data; gre_form_header() local 133 struct uml_l2tpv3_data *td = vp->transport_data; l2tpv3_verify_header() local 170 struct uml_gre_data *td = vp->transport_data; gre_verify_header() local 243 struct uml_gre_data *td; build_gre_transport_data() local 305 struct uml_l2tpv3_data *td; build_l2tpv3_transport_data() local [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/ |
H A D | testmode.c | 23 struct mt76_testmode_data *td = &dev->test; in mt76_testmode_tx_pending() local 25 struct sk_buff *skb = td->tx_skb; in mt76_testmode_tx_pending() 29 if (!skb || !td->tx_pending) in mt76_testmode_tx_pending() 37 while (td->tx_pending > 0 && td->tx_queued - td->tx_done < 1000 && in mt76_testmode_tx_pending() 45 td->tx_pending--; in mt76_testmode_tx_pending() 46 td->tx_queued++; in mt76_testmode_tx_pending() 58 struct mt76_testmode_data *td = &dev->test; in mt76_testmode_tx_init() local 67 if (td in mt76_testmode_tx_init() 160 struct mt76_testmode_data *td = &dev->test; mt76_testmode_tx_start() local 171 struct mt76_testmode_data *td = &dev->test; mt76_testmode_tx_stop() local 186 mt76_testmode_param_set(struct mt76_testmode_data *td, u16 idx) mt76_testmode_param_set() argument 192 mt76_testmode_param_present(struct mt76_testmode_data *td, u16 idx) mt76_testmode_param_present() argument 200 struct mt76_testmode_data *td = &dev->test; mt76_testmode_init_defaults() local 247 struct mt76_testmode_data *td = &dev->test; mt76_testmode_set_state() local 293 struct mt76_testmode_data *td = &dev->test; mt76_testmode_cmd() local 395 struct mt76_testmode_data *td = &dev->test; mt76_testmode_dump_stats() local 425 struct mt76_testmode_data *td = &dev->test; mt76_testmode_dump() local [all...] |
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | dlfilter-test.c | 69 struct test_data *td = container_of(tool, struct test_data, tool); in process() local 70 int fd = td->fd; in process() 112 static int write_attr(struct test_data *td, u64 sample_type, u64 *id) in write_attr() argument 122 return perf_event__synthesize_attr(&td->tool, &attr, 1, id, process); in write_attr() 173 static int write_sample(struct test_data *td, u64 sample_type, u64 id, pid_t pid, pid_t tid) in write_sample() argument 178 .ip = td->ip, in write_sample() 179 .addr = td->addr, in write_sample() 197 err = process(&td->tool, event, &sample, td->machine); in write_sample() 245 static int check_filter_desc(struct test_data *td) in check_filter_desc() argument 263 get_ip_addr(struct test_data *td) get_ip_addr() argument 288 do_run_perf_script(struct test_data *td, int do_early) do_run_perf_script() argument 302 run_perf_script(struct test_data *td) run_perf_script() argument 320 test__dlfilter_test(struct test_data *td) test__dlfilter_test() argument 395 test_data__free(struct test_data *td) test_data__free() argument 408 struct test_data td = {.fd = -1}; test__dlfilter_ver() local [all...] |
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/ |
H A D | nand_bbt.c | 90 static int check_pattern_no_oob(uint8_t *buf, struct nand_bbt_descr *td) in check_pattern_no_oob() argument 92 if (memcmp(buf, td->pattern, td->len)) in check_pattern_no_oob() 102 * @td: search pattern descriptor 107 static int check_pattern(uint8_t *buf, int len, int paglen, struct nand_bbt_descr *td) in check_pattern() argument 109 if (td->options & NAND_BBT_NO_OOB) in check_pattern() 110 return check_pattern_no_oob(buf, td); in check_pattern() 113 if (memcmp(buf + paglen + td->offs, td->pattern, td in check_pattern() 128 check_short_pattern(uint8_t *buf, struct nand_bbt_descr *td) check_short_pattern() argument 142 add_marker_len(struct nand_bbt_descr *td) add_marker_len() argument 166 read_bbt(struct nand_chip *this, uint8_t *buf, int page, int num, struct nand_bbt_descr *td, int offs) read_bbt() argument 259 read_abs_bbt(struct nand_chip *this, uint8_t *buf, struct nand_bbt_descr *td, int chip) read_abs_bbt() argument 287 scan_read_data(struct nand_chip *this, uint8_t *buf, loff_t offs, struct nand_bbt_descr *td) scan_read_data() argument 343 scan_read(struct nand_chip *this, uint8_t *buf, loff_t offs, size_t len, struct nand_bbt_descr *td) scan_read() argument 369 bbt_get_ver_offs(struct nand_chip *this, struct nand_bbt_descr *td) bbt_get_ver_offs() argument 389 read_abs_bbts(struct nand_chip *this, uint8_t *buf, struct nand_bbt_descr *td, struct nand_bbt_descr *md) read_abs_bbts() argument 451 bbt_block_checkbad(struct nand_chip *this, struct nand_bbt_descr *td, loff_t offs, uint8_t *buf) bbt_block_checkbad() argument 552 search_bbt(struct nand_chip *this, uint8_t *buf, struct nand_bbt_descr *td) search_bbt() argument 629 search_read_bbts(struct nand_chip *this, uint8_t *buf, struct nand_bbt_descr *td, struct nand_bbt_descr *md) search_read_bbts() argument 654 get_bbt_block(struct nand_chip *this, struct nand_bbt_descr *td, struct nand_bbt_descr *md, int chip) get_bbt_block() argument 717 mark_bbt_block_bad(struct nand_chip *this, struct nand_bbt_descr *td, int chip, int block) mark_bbt_block_bad() argument 745 write_bbt(struct nand_chip *this, uint8_t *buf, struct nand_bbt_descr *td, struct nand_bbt_descr *md, int chipsel) write_bbt() argument 954 struct nand_bbt_descr *td = this->bbt_td; check_create() local 1080 struct nand_bbt_descr *td = this->bbt_td; nand_update_bbt() local 1130 mark_bbt_region(struct nand_chip *this, struct nand_bbt_descr *td) mark_bbt_region() argument 1249 struct nand_bbt_descr *td = this->bbt_td; nand_scan_bbt() local [all...] |
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
H A D | nand_bbt.c | 90 static int check_pattern_no_oob(uint8_t *buf, struct nand_bbt_descr *td) in check_pattern_no_oob() argument 92 if (memcmp(buf, td->pattern, td->len)) in check_pattern_no_oob() 102 * @td: search pattern descriptor 107 static int check_pattern(uint8_t *buf, int len, int paglen, struct nand_bbt_descr *td) in check_pattern() argument 109 if (td->options & NAND_BBT_NO_OOB) in check_pattern() 110 return check_pattern_no_oob(buf, td); in check_pattern() 113 if (memcmp(buf + paglen + td->offs, td->pattern, td in check_pattern() 128 check_short_pattern(uint8_t *buf, struct nand_bbt_descr *td) check_short_pattern() argument 142 add_marker_len(struct nand_bbt_descr *td) add_marker_len() argument 166 read_bbt(struct nand_chip *this, uint8_t *buf, int page, int num, struct nand_bbt_descr *td, int offs) read_bbt() argument 259 read_abs_bbt(struct nand_chip *this, uint8_t *buf, struct nand_bbt_descr *td, int chip) read_abs_bbt() argument 287 scan_read_data(struct nand_chip *this, uint8_t *buf, loff_t offs, struct nand_bbt_descr *td) scan_read_data() argument 343 scan_read(struct nand_chip *this, uint8_t *buf, loff_t offs, size_t len, struct nand_bbt_descr *td) scan_read() argument 369 bbt_get_ver_offs(struct nand_chip *this, struct nand_bbt_descr *td) bbt_get_ver_offs() argument 389 read_abs_bbts(struct nand_chip *this, uint8_t *buf, struct nand_bbt_descr *td, struct nand_bbt_descr *md) read_abs_bbts() argument 523 search_bbt(struct nand_chip *this, uint8_t *buf, struct nand_bbt_descr *td) search_bbt() argument 596 search_read_bbts(struct nand_chip *this, uint8_t *buf, struct nand_bbt_descr *td, struct nand_bbt_descr *md) search_read_bbts() argument 621 get_bbt_block(struct nand_chip *this, struct nand_bbt_descr *td, struct nand_bbt_descr *md, int chip) get_bbt_block() argument 684 mark_bbt_block_bad(struct nand_chip *this, struct nand_bbt_descr *td, int chip, int block) mark_bbt_block_bad() argument 712 write_bbt(struct nand_chip *this, uint8_t *buf, struct nand_bbt_descr *td, struct nand_bbt_descr *md, int chipsel) write_bbt() argument 921 struct nand_bbt_descr *td = this->bbt_td; check_create() local 1047 struct nand_bbt_descr *td = this->bbt_td; nand_update_bbt() local 1097 mark_bbt_region(struct nand_chip *this, struct nand_bbt_descr *td) mark_bbt_region() argument 1216 struct nand_bbt_descr *td = this->bbt_td; nand_scan_bbt() local [all...] |